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 # aggregate syntax: 
query I rowsort label-0
SELECT - COUNT( * ) + + 32
----
31

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

query I rowsort
SELECT + 22 + 91 * - 97 AS col0
----
-8805

onlyif mysql # DIV for integer division: 
query I rowsort label-2
SELECT - COALESCE ( 14, 79 ) DIV + 3 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-2
SELECT - COALESCE ( 14, 79 ) / + 3 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT ALL + MAX( + 10 ) * 19
----
190

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL + MAX ( + 10 ) * 19
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT + ( 84 ) + + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-4
SELECT + ( 84 ) + + COUNT ( * )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT - 4 - - 42 * ( 63 * MIN( DISTINCT 8 ) )
----
21164

skipif mysql # not compatible
query I rowsort label-5
SELECT - 4 - - 42 * ( 63 * MIN ( DISTINCT 8 ) )
----
21164

query I rowsort
SELECT - 80 - 65
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT DISTINCT MAX( ALL 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7
SELECT DISTINCT MAX ( ALL 24 ) AS col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8
SELECT DISTINCT - NULLIF ( - CAST( - 8 AS SIGNED ), 76 ) + - 18 col0
----
-26

skipif mysql # not compatible
query I rowsort label-8
SELECT DISTINCT - NULLIF ( - CAST ( - 8 AS INTEGER ), 76 ) + - 18 col0
----
-26

query I rowsort
SELECT DISTINCT NULLIF ( CASE + 0 WHEN + 37 THEN NULL ELSE + 7 END, - 51 + + 75 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-10
SELECT ALL CAST( - 76 AS SIGNED ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL CAST ( - 76 AS INTEGER ) AS col1
----
-76

query I rowsort
SELECT - 21 + - 52 AS col2
----
-73

query I rowsort
SELECT - 97 + 55 AS col2
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-13
SELECT ALL + 61 + 82 * MAX( ALL - 10 DIV + 32 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL + 61 + 82 * MAX ( ALL - 10 / + 32 ) AS col2
----
61

query I rowsort
SELECT ALL - NULLIF ( 86, AVG ( 26 ) ) + + 19
----
-67

query I rowsort
SELECT - 85 * - 55 AS col0
----
4675

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT + NULLIF ( COUNT( ALL ( + 52 ) ), MIN( ALL - 27 ) * 68 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-16
SELECT + NULLIF ( COUNT ( ALL ( + 52 ) ), MIN ( ALL - 27 ) * 68 ) col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-17
SELECT DISTINCT - 58 DIV 19 + - COALESCE ( + ( 53 ), - 34 + + ( + 59 ) ) * 70 AS col0
----
-3713

skipif mysql # not compatible
query I rowsort label-17
SELECT DISTINCT - 58 / 19 + - COALESCE ( + ( 53 ), - 34 + + ( + 59 ) ) * 70 AS col0
----
-3713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-18
SELECT ALL + CAST( COALESCE ( 36, + 24 * - 89 ) AS SIGNED ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL + CAST ( COALESCE ( 36, + 24 * - 89 ) AS INTEGER ) AS col1
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-19
SELECT DISTINCT - - ( 58 ) DIV - 22 + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-19
SELECT DISTINCT - - ( 58 ) / - 22 + COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-20
SELECT DISTINCT + + 31 DIV + 24 + - 25
----
-24

skipif mysql # not compatible
query I rowsort label-20
SELECT DISTINCT + + 31 / + 24 + - 25
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-21
SELECT DISTINCT - COALESCE ( - 39, - 1, 8 * + 0 - - 94, - 74 ) DIV COUNT( * ) + COUNT( 24 ) * 50
----
89

skipif mysql # not compatible
query I rowsort label-21
SELECT DISTINCT - COALESCE ( - 39, - 1, 8 * + 0 - - 94, - 74 ) / COUNT ( * ) + COUNT ( 24 ) * 50
----
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT ALL + - MIN( DISTINCT - 69 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL + - MIN ( DISTINCT - 69 ) AS col1
----
69

query I rowsort
SELECT - 57 * 55 AS col0
----
-3135

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

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

query I rowsort
SELECT ( + 66 ) * - 24 + + 58
----
-1526

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-27
SELECT + + CASE ( - COALESCE ( 66, COALESCE ( 69, 12, 18 ) + 66, + 24 * 84 ) ) WHEN 26 THEN - 69 WHEN 64 THEN 17 ELSE NULL END * + CAST( NULL AS DECIMAL ) + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-27
SELECT + + CASE ( - COALESCE ( 66, COALESCE ( 69, 12, 18 ) + 66, + 24 * 84 ) ) WHEN 26 THEN - 69 WHEN 64 THEN 17 ELSE NULL END * + CAST ( NULL AS REAL ) + - 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT DISTINCT 33 - 80 * MAX( DISTINCT + 57 )
----
-4527

skipif mysql # not compatible
query I rowsort label-28
SELECT DISTINCT 33 - 80 * MAX ( DISTINCT + 57 )
----
-4527

query I rowsort
SELECT ALL - 7 * - 23 AS col0
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-30
SELECT DISTINCT - CAST( + 62 AS SIGNED ) * 94
----
-5828

skipif mysql # not compatible
query I rowsort label-30
SELECT DISTINCT - CAST ( + 62 AS INTEGER ) * 94
----
-5828

query I rowsort
SELECT ALL + 5 - + 50
----
-45

query I rowsort
SELECT - 80 * + 74 + - 48 AS col2
----
-5968

query I rowsort
SELECT DISTINCT - 13 * 57
----
-741

query I rowsort
SELECT 66 * - - 27 AS col1
----
1782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-35
SELECT COUNT( * ) + - + CAST( - 14 AS SIGNED ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-35
SELECT COUNT ( * ) + - + CAST ( - 14 AS INTEGER ) AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-36
SELECT ALL 45 DIV 88 col0
----
0

skipif mysql # not compatible
query I rowsort label-36
SELECT ALL 45 / 88 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT MIN( DISTINCT - 5 ) * 22 AS col1
----
-110

skipif mysql # not compatible
query I rowsort label-37
SELECT MIN ( DISTINCT - 5 ) * 22 AS col1
----
-110

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

skipif mysql # not compatible
query I rowsort label-38
SELECT ALL 57 + COUNT ( * ) * - 97
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT DISTINCT COUNT( + 30 ) + + ( 26 )
----
27

skipif mysql # not compatible
query I rowsort label-39
SELECT DISTINCT COUNT ( + 30 ) + + ( 26 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT ALL - 38 + - COUNT( * ) + - 25
----
-64

skipif mysql # not compatible
query I rowsort label-40
SELECT ALL - 38 + - COUNT ( * ) + - 25
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-41
SELECT ALL + 75 + - - CASE 80 WHEN + 44 THEN NULL WHEN + 8 THEN COUNT( * ) DIV - COUNT( * ) ELSE 70 END
----
145

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL + 75 + - - CASE 80 WHEN + 44 THEN NULL WHEN + 8 THEN COUNT ( * ) / - COUNT ( * ) ELSE 70 END
----
145

query I rowsort
SELECT ( + ( 72 ) ) * + 92 AS col1
----
6624

query I rowsort
SELECT 91 * - - CASE + 76 WHEN + 19 THEN NULL ELSE + 41 END
----
3731

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

skipif mysql # not compatible
query I rowsort label-44
SELECT 26 * + 61 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 97 - - 21
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT ALL CASE - - 93 WHEN 91 THEN 10 + 41 WHEN + 40 THEN NULL WHEN - 45 THEN - 80 * + 45 + - 25 * 92 ELSE - COUNT( * ) END + CASE + 60 WHEN + 5 THEN + 36 WHEN + 23 + COUNT( * ) THEN NULL WHEN + 63 * 9 THEN COUNT( * ) WHEN - 75 / - 4 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL CASE - - 93 WHEN 91 THEN 10 + 41 WHEN + 40 THEN NULL WHEN - 45 THEN - 80 * + 45 + - 25 * 92 ELSE - COUNT ( * ) END + CASE + 60 WHEN + 5 THEN + 36 WHEN + 23 + COUNT ( * ) THEN NULL WHEN + 63 * 9 THEN COUNT ( * ) WHEN - 75 / - 4 THEN NULL END
----
NULL

query I rowsort
SELECT 42 * - - 56
----
2352

query I rowsort
SELECT 52 * - 18 AS col0
----
-936

query I rowsort
SELECT ALL 84 * 85 AS col0
----
7140

query I rowsort
SELECT ALL - 63 - 78 col0
----
-141

query I rowsort
SELECT 46 - - COALESCE ( 32, - 12 + 67 ) * 11
----
398

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-52
SELECT + - COUNT( - + 99 ) DIV + 9 - 49
----
-49

skipif mysql # not compatible
query I rowsort label-52
SELECT + - COUNT ( - + 99 ) / + 9 - 49
----
-49

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

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

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

query I rowsort
SELECT + + 6 * - 3 + 5 - 0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-56
SELECT 49 * - - COUNT( * ) + ( 56 ) * + MAX( NULLIF ( - CAST( 90 AS SIGNED ), 70 * 98 ) * 54 + - 5 )
----
-272391

skipif mysql # not compatible
query I rowsort label-56
SELECT 49 * - - COUNT ( * ) + ( 56 ) * + MAX ( NULLIF ( - CAST ( 90 AS INTEGER ), 70 * 98 ) * 54 + - 5 )
----
-272391

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT ALL + NULLIF ( - + 2, - MAX( DISTINCT - NULLIF ( 66, - 88 + + 74 ) ) ) * - 98 AS col2
----
196

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL + NULLIF ( - + 2, - MAX ( DISTINCT - NULLIF ( 66, - 88 + + 74 ) ) ) * - 98 AS col2
----
196

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-58
SELECT ALL - - ( + + COALESCE ( CAST( NULL AS SIGNED ), 82 DIV ( 54 ) + - 68 * 60 ) ) AS col0
----
-4079

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL - - ( + + COALESCE ( CAST ( NULL AS INTEGER ), 82 / ( 54 ) + - 68 * 60 ) ) AS col0
----
-4079

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-60
SELECT + 27 * - - CAST( 59 AS SIGNED ) AS col1
----
1593

skipif mysql # not compatible
query I rowsort label-60
SELECT + 27 * - - CAST ( 59 AS INTEGER ) AS col1
----
1593

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT DISTINCT + MAX( DISTINCT + CASE 92 WHEN 35 THEN 1 - - 39 END ) / + NULLIF ( - 72, 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT + MAX ( DISTINCT + CASE 92 WHEN 35 THEN 1 - - 39 END ) / + NULLIF ( - 72, 45 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT SUM( DISTINCT + 95 ) * 13
----
1235

skipif mysql # not compatible
query I rowsort label-62
SELECT SUM ( DISTINCT + 95 ) * 13
----
1235

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

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT DISTINCT + 96 * COALESCE ( + ( - 95 ), MIN( 83 ) * + 64, COALESCE ( 79, + 19, - 12 ) ) AS col2
----
-9120

skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT + 96 * COALESCE ( + ( - 95 ), MIN ( 83 ) * + 64, COALESCE ( 79, + 19, - 12 ) ) AS col2
----
-9120

query I rowsort
SELECT ( 27 ) * + + 12 * - 82 + - 89 * + 95 + - 32 AS col0
----
-35055

query I rowsort
SELECT ALL + 6 + + - 12 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT DISTINCT - 51 + - 94 / CASE COUNT( * ) WHEN - 35 * + 32 THEN NULL ELSE + 28 END + CASE - 99 WHEN 88 THEN - NULLIF ( 39, 47 * + COUNT( * ) + + 48 * + AVG ( + 67 ) ) * 99 + 6 WHEN - 34 THEN 48 * 46 ELSE NULL END * 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT - 51 + - 94 / CASE COUNT ( * ) WHEN - 35 * + 32 THEN NULL ELSE + 28 END + CASE - 99 WHEN 88 THEN - NULLIF ( 39, 47 * + COUNT ( * ) + + 48 * + AVG ( + 67 ) ) * 99 + 6 WHEN - 34 THEN 48 * 46 ELSE NULL END * 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT ALL COUNT( * ) + + 96 + + - 44
----
53

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL COUNT ( * ) + + 96 + + - 44
----
53

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

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

query I rowsort
SELECT ALL + 34 * + NULLIF ( 97, + 40 * - 89 ) AS col2
----
3298

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT 17 + + ( - ( 73 ) ) + + MAX( - 43 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-71
SELECT 17 + + ( - ( 73 ) ) + + MAX ( - 43 ) AS col2
----
-99

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

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

query I rowsort
SELECT 97 + + - 49 col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT - MAX( + 5 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-74
SELECT - MAX ( + 5 ) AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-75
SELECT 42 - + 11 * + - SUM( COALESCE ( CAST( + 96 AS SIGNED ), 46 DIV 62, 59 + 39 * 53 ) ) + 31 * 7
----
1315

skipif mysql # not compatible
query I rowsort label-75
SELECT 42 - + 11 * + - SUM ( COALESCE ( CAST ( + 96 AS INTEGER ), 46 / 62, 59 + 39 * 53 ) ) + 31 * 7
----
1315

query I rowsort
SELECT ( 54 ) + + + 13 AS col0
----
67

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

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

query I rowsort
SELECT ALL 25 - + 60 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT ( MIN( - 73 ) ) + COUNT( + 2 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-79
SELECT ( MIN ( - 73 ) ) + COUNT ( + 2 ) AS col2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-80
SELECT ALL ( NULLIF ( - CAST( + 1 AS SIGNED ), + 88 ) ) / CASE ( 19 ) WHEN + CAST( NULL AS SIGNED ) THEN - 26 + 2 * 29 WHEN - 31 * 55 THEN + MAX( DISTINCT 40 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL ( NULLIF ( - CAST ( + 1 AS INTEGER ), + 88 ) ) / CASE ( 19 ) WHEN + CAST ( NULL AS INTEGER ) THEN - 26 + 2 * 29 WHEN - 31 * 55 THEN + MAX ( DISTINCT 40 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT COUNT( + 60 ) + + + 12 + COUNT( 83 ) * 19
----
32

skipif mysql # not compatible
query I rowsort label-81
SELECT COUNT ( + 60 ) + + + 12 + COUNT ( 83 ) * 19
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT - COUNT( DISTINCT 49 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-82
SELECT - COUNT ( DISTINCT 49 ) col1
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-84
SELECT - 9 * + 19 + - 33 + - 57 DIV + 46
----
-205

skipif mysql # not compatible
query I rowsort label-84
SELECT - 9 * + 19 + - 33 + - 57 / + 46
----
-205

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

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT SUM( + 90 ) col0
----
90

skipif mysql # not compatible
query I rowsort label-86
SELECT SUM ( + 90 ) col0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-87
SELECT - ( + 99 ) * - CASE - CAST( 86 AS SIGNED ) WHEN 61 * 34 - 77 THEN 9 WHEN 31 THEN NULL WHEN + 69 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-87
SELECT - ( + 99 ) * - CASE - CAST ( 86 AS INTEGER ) WHEN 61 * 34 - 77 THEN 9 WHEN 31 THEN NULL WHEN + 69 THEN NULL ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT DISTINCT + + NULLIF ( + 98, MIN( ALL 22 ) )
----
98

skipif mysql # not compatible
query I rowsort label-89
SELECT DISTINCT + + NULLIF ( + 98, MIN ( ALL 22 ) )
----
98

query I rowsort
SELECT ALL + NULLIF ( + 7, + 64 * + 78 + - 47 )
----
7

query I rowsort
SELECT + 89 * - 75
----
-6675

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT - - 19 + + ( + AVG ( DISTINCT 63 ) ) + + ( SUM( ALL + ( + 74 ) ) + + CASE + 12 - NULLIF ( + ( 64 ), 12 ) * + ( 28 * - COUNT( * ) + 82 ) WHEN - 42 THEN + COUNT( * ) - 87 END ) * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-94
SELECT - - 19 + + ( + AVG ( DISTINCT 63 ) ) + + ( SUM ( ALL + ( + 74 ) ) + + CASE + 12 - NULLIF ( + ( 64 ), 12 ) * + ( 28 * - COUNT ( * ) + 82 ) WHEN - 42 THEN + COUNT ( * ) - 87 END ) * 89
----
NULL

query I rowsort
SELECT ALL 5 * - 42 + - - 48
----
-162

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT COUNT( * ) * - 38 + + + 58 * - 93 AS col0
----
-5432

skipif mysql # not compatible
query I rowsort label-97
SELECT COUNT ( * ) * - 38 + + + 58 * - 93 AS col0
----
-5432

query I rowsort
SELECT ALL + - 30 * - + 45 AS col0
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT - MIN( 37 ) * + ( - 41 )
----
1517

skipif mysql # not compatible
query I rowsort label-99
SELECT - MIN ( 37 ) * + ( - 41 )
----
1517

query I rowsort
SELECT ALL ( + - CASE - 20 WHEN - 6 * - AVG ( 62 ) THEN NULL ELSE 38 - 0 END ) * - 96 + 65
----
3713

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT ALL + 35 * - COALESCE ( + 29, + MIN( DISTINCT - 17 ) - 93 ) + MIN( + 94 + 74 )
----
-847

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL + 35 * - COALESCE ( + 29, + MIN ( DISTINCT - 17 ) - 93 ) + MIN ( + 94 + 74 )
----
-847

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-102
SELECT - 84 * + - SUM( + + 36 ) + + COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-102
SELECT - 84 * + - SUM ( + + 36 ) + + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-103
SELECT DISTINCT ( + ( - 22 ) ) * - ( - CAST( NULL AS SIGNED ) ) + 5 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT ( + ( - 22 ) ) * - ( - CAST ( NULL AS INTEGER ) ) + 5 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT ALL - 8 * + MAX( - 39 ) + 50
----
362

skipif mysql # not compatible
query I rowsort label-104
SELECT ALL - 8 * + MAX ( - 39 ) + 50
----
362

query I rowsort
SELECT - 9 * + 51 * 25
----
-11475

query I rowsort
SELECT - 15 * 61
----
-915

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT - MAX( ALL - + CASE + - 92 WHEN + 1 * 74 THEN 13 WHEN 88 THEN - 77 WHEN ( - 79 ) THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-107
SELECT - MAX ( ALL - + CASE + - 92 WHEN + 1 * 74 THEN 13 WHEN 88 THEN - 77 WHEN ( - 79 ) THEN NULL END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-108
SELECT + 91 + + 31 + + COUNT( * ) + COALESCE ( - CASE + 13 WHEN 9 THEN NULL WHEN CASE COUNT( * ) WHEN - SUM( ALL 22 ) + - 16 THEN 15 WHEN ( 1 ) + 22 * + CAST( + 20 * - COUNT( * ) AS SIGNED ) THEN NULL ELSE - 54 + 92 END THEN NULL ELSE 82 END, 43 + - 39, COUNT( * ), 93 - 93 * + 16 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-108
SELECT + 91 + + 31 + + COUNT ( * ) + COALESCE ( - CASE + 13 WHEN 9 THEN NULL WHEN CASE COUNT ( * ) WHEN - SUM ( ALL 22 ) + - 16 THEN 15 WHEN ( 1 ) + 22 * + CAST ( + 20 * - COUNT ( * ) AS INTEGER ) THEN NULL ELSE - 54 + 92 END THEN NULL ELSE 82 END, 43 + - 39, COUNT ( * ), 93 - 93 * + 16 ) AS col0
----
41

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

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT ALL - NULLIF ( 88, + SUM( DISTINCT + 62 ) ) * + 30 AS col1
----
-2640

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL - NULLIF ( 88, + SUM ( DISTINCT + 62 ) ) * + 30 AS col1
----
-2640

query I rowsort
SELECT - 55 * - 56
----
3080

query I rowsort
SELECT DISTINCT 84 - + - 12 + + 0 + - 55 col2
----
41

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

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

query I rowsort
SELECT - 37 + + 17 * + 85 + 87 * + 46 AS col1
----
5410

onlyif mysql # DIV for integer division: 
query I rowsort label-115
SELECT + 7 DIV + 37 * - + NULLIF ( - 74, 44 )
----
0

skipif mysql # not compatible
query I rowsort label-115
SELECT + 7 / + 37 * - + NULLIF ( - 74, 44 )
----
0

query I rowsort
SELECT - + 64 * - 13 - 38 + - - 83 * 69
----
6521

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

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL - MAX ( - 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT DISTINCT + COUNT( ALL 3 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-118
SELECT DISTINCT + COUNT ( ALL 3 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT ALL + 20 * - CASE WHEN NOT 82 >= + 46 THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-119
SELECT ALL + 20 * - CASE WHEN NOT 82 >= + 46 THEN + COUNT ( * ) ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL 26 * 46 * 0 + + - 4 * 33 AS col0
----
-132

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

skipif mysql # not compatible
query I rowsort label-122
SELECT DISTINCT + 40 / + - ( - COUNT ( * ) ) + + 59 AS col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-123
SELECT + NULLIF ( - 85, + 28 * + 50 - 43 * SUM( ( 22 ) ) ) DIV 79
----
-1

skipif mysql # not compatible
query I rowsort label-123
SELECT + NULLIF ( - 85, + 28 * + 50 - 43 * SUM ( ( 22 ) ) ) / 79
----
-1

query I rowsort
SELECT + - 58 col1
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-125
SELECT + - 87 DIV + 80
----
-1

skipif mysql # not compatible
query I rowsort label-125
SELECT + - 87 / + 80
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-126
SELECT - - SUM( - 53 ) DIV - - 55
----
0

skipif mysql # not compatible
query I rowsort label-126
SELECT - - SUM ( - 53 ) / - - 55
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-127
SELECT ALL + 67 DIV - - 75 + + 55
----
55

skipif mysql # not compatible
query I rowsort label-127
SELECT ALL + 67 / - - 75 + + 55
----
55

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

skipif mysql # not compatible
query I rowsort label-128
SELECT ( - MIN ( + - 86 ) )
----
86

onlyif mysql # DIV for integer division: 
query II rowsort label-129
SELECT ALL + 37, 87 DIV - 74 AS col2
----
37
-1

skipif mysql # not compatible
query II rowsort label-129
SELECT ALL + 37, 87 / - 74 AS col2
----
37
-1

query I rowsort
SELECT ALL + 79 * 15
----
1185

query II rowsort
SELECT + 47, - 53 AS col2
----
47
-53

query I rowsort
SELECT + NULLIF ( - 48, - - 86 + - 53 * + AVG ( - 89 ) ) + 54 * 3 col2
----
114

query I rowsort
SELECT + 68 * - 22 AS col2
----
-1496

query I rowsort
SELECT + 86 + 78 - - 32 + 52
----
248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-135
SELECT - 92 * + ( COALESCE ( - 20, + - 16 DIV - CASE - 4 WHEN 32 + + 66 THEN + COUNT( * ) DIV - 62 END ) )
----
1840

skipif mysql # not compatible
query I rowsort label-135
SELECT - 92 * + ( COALESCE ( - 20, + - 16 / - CASE - 4 WHEN 32 + + 66 THEN + COUNT ( * ) / - 62 END ) )
----
1840

query II rowsort
SELECT ALL + 52 AS col2, 34 + - - 88
----
52
122

onlyif mysql # aggregate syntax: 
query II rowsort label-137
SELECT 7 * COUNT( * ) + 18 AS col0, + 62
----
25
62

skipif mysql # not compatible
query II rowsort label-137
SELECT 7 * COUNT ( * ) + 18 AS col0, + 62
----
25
62

query I rowsort
SELECT ALL 61 * - + 68
----
-4148

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT ALL CASE - + ( + 13 ) WHEN + + ( + - COUNT( * ) ) THEN + 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL CASE - + ( + 13 ) WHEN + + ( + - COUNT ( * ) ) THEN + 52 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT - COUNT( * ) + 24 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-140
SELECT - COUNT ( * ) + 24 AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-141
SELECT ALL - 17 DIV + 98 * + 83 * - - COUNT( * ) * + COUNT( ALL ( 89 ) )
----
0

skipif mysql # not compatible
query I rowsort label-141
SELECT ALL - 17 / + 98 * + 83 * - - COUNT ( * ) * + COUNT ( ALL ( 89 ) )
----
0

query I rowsort
SELECT 51 + - 59 + 95 AS col0
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-143
SELECT 22 DIV 77 DIV - - NULLIF ( - + 12, - + 62 ) * COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-143
SELECT 22 / 77 / - - NULLIF ( - + 12, - + 62 ) * COUNT ( * ) col0
----
0

query I rowsort
SELECT 58 * + 35
----
2030

query I rowsort
SELECT 61 + 46 AS col1
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-146
SELECT 70 + - 8 + - - 95 DIV - 77 col1
----
61

skipif mysql # not compatible
query I rowsort label-146
SELECT 70 + - 8 + - - 95 / - 77 col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT + ( - + SUM( - 88 ) ) + - + 89 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-147
SELECT + ( - + SUM ( - 88 ) ) + - + 89 AS col1
----
-1

query I rowsort
SELECT ( - ( 92 ) ) + + - 12 AS col0
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-149
SELECT + 30 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-149
SELECT + 30 / - 72
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-150
SELECT DISTINCT - + 76 DIV CASE + + 26 WHEN 12 THEN NULL WHEN - + 8 THEN - 80 DIV COUNT( * ) + CAST( NULL AS SIGNED ) ELSE - 91 END + 46 col2
----
46

skipif mysql # not compatible
query I rowsort label-150
SELECT DISTINCT - + 76 / CASE + + 26 WHEN 12 THEN NULL WHEN - + 8 THEN - 80 / COUNT ( * ) + CAST ( NULL AS INTEGER ) ELSE - 91 END + 46 col2
----
46

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-151
SELECT DISTINCT - ( + - COALESCE ( - 43, + CAST( - + ( CAST( 13 AS DECIMAL ) ) AS SIGNED ) + + 77 ) ) * - 80
----
3440

skipif mysql # not compatible
query I rowsort label-151
SELECT DISTINCT - ( + - COALESCE ( - 43, + CAST ( - + ( CAST ( 13 AS REAL ) ) AS INTEGER ) + + 77 ) ) * - 80
----
3440

query I rowsort
SELECT ALL - 80 + + 52
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT - SUM( - 26 ) + 66 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-153
SELECT - SUM ( - 26 ) + 66 AS col1
----
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT - 98 + - SUM( + 27 )
----
-125

skipif mysql # not compatible
query I rowsort label-155
SELECT - 98 + - SUM ( + 27 )
----
-125

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

skipif mysql # not compatible
query I rowsort label-156
SELECT + MAX ( 19 )
----
19

onlyif mysql # DIV for integer division: 
query II rowsort label-157
SELECT ALL - 14 AS col2, 11 * 6 DIV + + 96 AS col1
----
-14
0

skipif mysql # not compatible
query II rowsort label-157
SELECT ALL - 14 AS col2, 11 * 6 / + + 96 AS col1
----
-14
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-159
SELECT CASE 57 WHEN + MIN( DISTINCT 11 ) THEN 51 * + 19 + CAST( COUNT( * ) AS SIGNED ) * - 61 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-159
SELECT CASE 57 WHEN + MIN ( DISTINCT 11 ) THEN 51 * + 19 + CAST ( COUNT ( * ) AS INTEGER ) * - 61 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT + 75 col2, 5
----
75
5

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT 42 * ( + 72 ) - - MIN( - + 82 ) + 65 AS col1
----
3007

skipif mysql # not compatible
query I rowsort label-161
SELECT 42 * ( + 72 ) - - MIN ( - + 82 ) + 65 AS col1
----
3007

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

query II rowsort
SELECT ALL - 56 AS col2, - 23 AS col0
----
-56
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-164
SELECT + 90 col1, COUNT( * ) * - 25 + - 85
----
90
-110

skipif mysql # not compatible
query II rowsort label-164
SELECT + 90 col1, COUNT ( * ) * - 25 + - 85
----
90
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT ALL MIN( DISTINCT - 30 ) * + 37 + CASE 60 WHEN 78 * - 99 + + 60 THEN NULL ELSE ( + COALESCE ( - COUNT( * ), - 20 + 78 ) ) END + 95
----
-1016

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL MIN ( DISTINCT - 30 ) * + 37 + CASE 60 WHEN 78 * - 99 + + 60 THEN NULL ELSE ( + COALESCE ( - COUNT ( * ), - 20 + 78 ) ) END + 95
----
-1016

query I rowsort
SELECT ALL 74 - + - 38
----
112

query I rowsort
SELECT DISTINCT 86 * ( + 63 ) * + - 38
----
-205884

query II rowsort
SELECT + 59, + 16 AS col2
----
59
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-169
SELECT DISTINCT - 74 AS col1, CASE + CAST( NULL AS SIGNED ) WHEN - + COALESCE ( 56, + CAST( NULL AS SIGNED ) ) THEN + COUNT( + ( 2 ) ) END * ( + 93 ) AS col1
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-169
SELECT DISTINCT - 74 AS col1, CASE + CAST ( NULL AS INTEGER ) WHEN - + COALESCE ( 56, + CAST ( NULL AS INTEGER ) ) THEN + COUNT ( + ( 2 ) ) END * ( + 93 ) AS col1
----
-74
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-172
SELECT ALL 78, CAST( NULL AS SIGNED ) AS col1
----
78
NULL

skipif mysql # not compatible
query II rowsort label-172
SELECT ALL 78, CAST ( NULL AS INTEGER ) AS col1
----
78
NULL

query III rowsort
SELECT 82 AS col1, 48 + 26 + + 77 AS col1, + 15 col1
----
82
151
15

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT MIN( DISTINCT + 5 ) * + 11 col1
----
55

skipif mysql # not compatible
query I rowsort label-174
SELECT MIN ( DISTINCT + 5 ) * + 11 col1
----
55

query I rowsort
SELECT DISTINCT 98 * 61
----
5978

query I rowsort
SELECT 69 - + ( 43 ) col0
----
26

query I rowsort
SELECT DISTINCT - 50 + - 22
----
-72

query I rowsort
SELECT 18 + 14
----
32

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-180
SELECT DISTINCT + 21, - 2 + - - SUM( ALL + 71 ) AS col2
----
21
69

skipif mysql # not compatible
query II rowsort label-180
SELECT DISTINCT + 21, - 2 + - - SUM ( ALL + 71 ) AS col2
----
21
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-181
SELECT 8 DIV - 37 * - 63 * + - 10 AS col1, 13 * - 46 + COUNT( * ) AS col2
----
0
-597

skipif mysql # not compatible
query II rowsort label-181
SELECT 8 / - 37 * - 63 * + - 10 AS col1, 13 * - 46 + COUNT ( * ) AS col2
----
0
-597

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-182
SELECT ALL + + 98 DIV + 62 * - + COUNT( ALL 2 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL + + 98 / + 62 * - + COUNT ( ALL 2 ) AS col0
----
-1

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

skipif mysql # not compatible
query I rowsort label-183
SELECT 26 / + 83 * + CAST ( 2 AS INTEGER )
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-185
SELECT MIN ( ALL 13 ) + - + CAST ( NULL AS INTEGER ) + - 98 * - 45 AS col2
----
NULL

query II rowsort
SELECT + 80, 44 AS col2
----
80
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-187
SELECT ALL + + 6 / + + COUNT( * ) * - CAST( NULL AS SIGNED ) - + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL + + 6 / + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) - + + 84
----
NULL

query I rowsort
SELECT ALL - 7 + + 53 - 8 * 23 * - 66 col1
----
12190

onlyif mysql # aggregate syntax: 
query II rowsort label-189
SELECT 29, 31 * MAX( DISTINCT - CASE 16 WHEN - 69 THEN NULL WHEN + 2 THEN - 16 END ) + - 34 AS col0
----
29
NULL

skipif mysql # not compatible
query II rowsort label-189
SELECT 29, 31 * MAX ( DISTINCT - CASE 16 WHEN - 69 THEN NULL WHEN + 2 THEN - 16 END ) + - 34 AS col0
----
29
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-190
SELECT ALL - + 10 * + 47 + - MAX( - 52 ), + CASE + - 13 WHEN 97 - 66 THEN + 98 + 91 WHEN CAST( NULL AS SIGNED ) + + 42 THEN + 11 + - 33 ELSE 67 END AS col0
----
-418
67

skipif mysql # not compatible
query II rowsort label-190
SELECT ALL - + 10 * + 47 + - MAX ( - 52 ), + CASE + - 13 WHEN 97 - 66 THEN + 98 + 91 WHEN CAST ( NULL AS INTEGER ) + + 42 THEN + 11 + - 33 ELSE 67 END AS col0
----
-418
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-191
SELECT ALL 92 AS col0, - ( + + NULLIF ( - - CASE 22 WHEN + 3 * + CASE + 7 WHEN 16 / ( 7 ) + - COUNT( * ) THEN NULL WHEN + NULLIF ( 66, COUNT( DISTINCT + 64 ) ) THEN ( 86 ) END - 99 THEN - 65 / + 17 ELSE NULL END, CAST( 97 AS SIGNED ) ) ) * 18 AS col1
----
92
NULL

skipif mysql # not compatible
query II rowsort label-191
SELECT ALL 92 AS col0, - ( + + NULLIF ( - - CASE 22 WHEN + 3 * + CASE + 7 WHEN 16 / ( 7 ) + - COUNT ( * ) THEN NULL WHEN + NULLIF ( 66, COUNT ( DISTINCT + 64 ) ) THEN ( 86 ) END - 99 THEN - 65 / + 17 ELSE NULL END, CAST ( 97 AS INTEGER ) ) ) * 18 AS col1
----
92
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-192
SELECT 56 + - 30 * ( COUNT( + CAST( NULL AS SIGNED ) ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-192
SELECT 56 + - 30 * ( COUNT ( + CAST ( NULL AS INTEGER ) ) ) AS col0
----
56

query I rowsort
SELECT + 38 * 43 * - - ( + 55 )
----
89870

onlyif mysql # aggregate syntax: 
query II rowsort label-194
SELECT COUNT( 83 ), 55 AS col1
----
1
55

skipif mysql # not compatible
query II rowsort label-194
SELECT COUNT ( 83 ), 55 AS col1
----
1
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-195
SELECT 25 DIV + + ( + 88 ) * - COUNT( * ) * + 83 + + 33 - ( - NULLIF ( 61, 35 + - COUNT( * ) * 64 ) ) - - 81
----
175

skipif mysql # not compatible
query I rowsort label-195
SELECT 25 / + + ( + 88 ) * - COUNT ( * ) * + 83 + + 33 - ( - NULLIF ( 61, 35 + - COUNT ( * ) * 64 ) ) - - 81
----
175

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

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

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

skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT - COUNT ( DISTINCT + 59 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT COUNT( * ) * - COUNT( * ) * - - CASE COUNT( * ) WHEN + COALESCE ( - + 80, + 10 ) THEN 99 * 29 WHEN 56 * COUNT( * ) THEN - 60 ELSE 76 END * - 86
----
6536

skipif mysql # not compatible
query I rowsort label-198
SELECT COUNT ( * ) * - COUNT ( * ) * - - CASE COUNT ( * ) WHEN + COALESCE ( - + 80, + 10 ) THEN 99 * 29 WHEN 56 * COUNT ( * ) THEN - 60 ELSE 76 END * - 86
----
6536

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

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

query II rowsort
SELECT - 3 + + 24, - 94 + - 86 AS col1
----
21
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT 44 * + MAX( 43 ) + + 84 - - 44 + 28 * 8
----
2244

skipif mysql # not compatible
query I rowsort label-201
SELECT 44 * + MAX ( 43 ) + + 84 - - 44 + 28 * 8
----
2244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-202
SELECT - 79 DIV + 76 * + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-202
SELECT - 79 / + 76 * + COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT + 14 * - - NULLIF ( + 30, - COUNT( * ) * COUNT( * ) * + 48 * + 32 * + 48 ) - - 98 AS col1
----
518

skipif mysql # not compatible
query I rowsort label-203
SELECT + 14 * - - NULLIF ( + 30, - COUNT ( * ) * COUNT ( * ) * + 48 * + 32 * + 48 ) - - 98 AS col1
----
518

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT + 73 + - 61 + - - NULLIF ( - + MAX( ALL 95 ), - 37 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-204
SELECT + 73 + - 61 + - - NULLIF ( - + MAX ( ALL 95 ), - 37 ) AS col1
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-205
SELECT + 79 - 18 + + COALESCE ( - + 87, + 94 DIV + - ( - ( + 25 ) ) + COUNT( * ) * + 95 ) DIV - 63 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-205
SELECT + 79 - 18 + + COALESCE ( - + 87, + 94 / + - ( - ( + 25 ) ) + COUNT ( * ) * + 95 ) / - 63 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT + CASE 72 WHEN + 99 THEN NULL WHEN - MIN( 21 ) THEN - SUM( - - 81 ) WHEN 80 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-206
SELECT + CASE 72 WHEN + 99 THEN NULL WHEN - MIN ( 21 ) THEN - SUM ( - - 81 ) WHEN 80 THEN NULL END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT ALL COUNT( * ) + 67 + + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL COUNT ( * ) + 67 + + COUNT ( * )
----
69

query II rowsort
SELECT DISTINCT 91 + - + 50, + 59 AS col1
----
41
59

query I rowsort
SELECT DISTINCT - COALESCE ( 11, 6 * + 54 + + - 83 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT ALL + COUNT( * ) + ( + 89 ) * - - ( + 2 )
----
179

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL + COUNT ( * ) + ( + 89 ) * - - ( + 2 )
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-212
SELECT + + COUNT( * ) + + - CAST( NULL AS SIGNED ) + - 20 AS col1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-213
SELECT + - CAST( + AVG ( 90 ) AS SIGNED ) * 61 col2
----
-5490

skipif mysql # not compatible
query I rowsort label-213
SELECT + - CAST ( + AVG ( 90 ) AS INTEGER ) * 61 col2
----
-5490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-214
SELECT - CAST( 13 AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-214
SELECT - CAST ( 13 AS INTEGER )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT ALL - COUNT( + 36 ) + - 58 + 30 * + CASE - 9 WHEN - COALESCE ( COUNT( * ), - 53 ) / - 27 THEN + 18 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL - COUNT ( + 36 ) + - 58 + 30 * + CASE - 9 WHEN - COALESCE ( COUNT ( * ), - 53 ) / - 27 THEN + 18 ELSE NULL END
----
NULL

query II rowsort
SELECT + 19 * + 65 col1, 26
----
1235
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT ALL - COUNT( * ) + 62 * - 60
----
-3721

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL - COUNT ( * ) + 62 * - 60
----
-3721

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT DISTINCT + NULLIF ( - 70, + MAX( 44 ) ) * - + ( + 47 ) AS col0
----
3290

skipif mysql # not compatible
query I rowsort label-219
SELECT DISTINCT + NULLIF ( - 70, + MAX ( 44 ) ) * - + ( + 47 ) AS col0
----
3290

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

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

query I rowsort
SELECT DISTINCT COALESCE ( + 86, 13 ) - ( + 41 ) + - - 77 * 70 AS col1
----
5435

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

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

query I rowsort
SELECT + - 65 * + - 48 + + 37
----
3157

query I rowsort
SELECT + 87 + + + 69
----
156

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

skipif mysql # not compatible
query I rowsort label-225
SELECT - MIN ( + 84 ) / + COUNT ( * )
----
-84

query II rowsort
SELECT - 63 * - + 44 * - + 6, - 93 AS col0
----
-16632
-93

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

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

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

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

query II rowsort
SELECT - 39 * + 21 * - 0 AS col1, 21 AS col2
----
0
21

query II rowsort
SELECT ALL + 62, - 79 AS col0
----
62
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-231
SELECT DISTINCT + 30 DIV ( 38 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT + 30 / ( 38 ) AS col0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-233
SELECT 48 DIV + - ( - + 8 ) + + 80 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-233
SELECT 48 / + - ( - + 8 ) + + 80 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT ( + CASE + COUNT( * ) WHEN 17 THEN NULL WHEN 78 - - COUNT( * ) + + - 99 - - 72 * 35 THEN NULL ELSE - 12 * 92 END ) AS col2
----
-1104

skipif mysql # not compatible
query I rowsort label-234
SELECT ( + CASE + COUNT ( * ) WHEN 17 THEN NULL WHEN 78 - - COUNT ( * ) + + - 99 - - 72 * 35 THEN NULL ELSE - 12 * 92 END ) AS col2
----
-1104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-235
SELECT ALL + CAST( 72 AS SIGNED ) * 92 AS col0
----
6624

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL + CAST ( 72 AS INTEGER ) * 92 AS col0
----
6624

query I rowsort
SELECT - 3 * - 10 AS col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-237
SELECT - COUNT( * ) + + 50 DIV + 15, + 91 * 91 AS col2
----
2
8281

skipif mysql # not compatible
query II rowsort label-237
SELECT - COUNT ( * ) + + 50 / + 15, + 91 * 91 AS col2
----
2
8281

query II rowsort
SELECT + 9, 35 col2
----
9
35

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-240
SELECT ALL + 89 * + CAST( 97 AS SIGNED ) + + - 48 AS col1
----
8585

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL + 89 * + CAST ( 97 AS INTEGER ) + + - 48 AS col1
----
8585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-241
SELECT - 3 + - CASE + - 5 WHEN - CAST( NULL AS SIGNED ) + COUNT( * ) / 15 - + + ( 18 ) - ( + COALESCE ( - 40, - ( - 3 ), + 64 * + 54 ) ) / ( + 84 ) * - SUM( 62 + - 63 ) THEN + MAX( DISTINCT 96 ) + - 70 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-241
SELECT - 3 + - CASE + - 5 WHEN - CAST ( NULL AS INTEGER ) + COUNT ( * ) / 15 - + + ( 18 ) - ( + COALESCE ( - 40, - ( - 3 ), + 64 * + 54 ) ) / ( + 84 ) * - SUM ( 62 + - 63 ) THEN + MAX ( DISTINCT 96 ) + - 70 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT + COUNT( * ) * - COUNT( * ) + - ( + - MIN( ALL - 61 ) ) * - 37 AS col0
----
2256

skipif mysql # not compatible
query I rowsort label-242
SELECT + COUNT ( * ) * - COUNT ( * ) + - ( + - MIN ( ALL - 61 ) ) * - 37 AS col0
----
2256

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT ALL + COALESCE ( - 17, 52, - 58 ) * COUNT( * ) + 78 + + + 69
----
130

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL + COALESCE ( - 17, 52, - 58 ) * COUNT ( * ) + 78 + + + 69
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-244
SELECT NULLIF ( + CAST( 43 AS SIGNED ), + MAX( DISTINCT 27 ) ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-244
SELECT NULLIF ( + CAST ( 43 AS INTEGER ), + MAX ( DISTINCT 27 ) ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT + SUM( - 75 ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-245
SELECT + SUM ( - 75 ) col2
----
-75

query I rowsort
SELECT DISTINCT + 79 * 90 + + 55
----
7165

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

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

query I rowsort
SELECT DISTINCT + 59 * 68 AS col0
----
4012

query I rowsort
SELECT COALESCE ( - 53, + + 73 * 40 - + ( - - 19 ) + - - 31 + - + 37 * ( - 86 ) ) AS col0
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-251
SELECT - 4 DIV - NULLIF ( - - MIN( - ( - 58 ) ), 90 * - - 52 + - - 95 ) * - 10 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-251
SELECT - 4 / - NULLIF ( - - MIN ( - ( - 58 ) ), 90 * - - 52 + - - 95 ) * - 10 AS col1
----
0

query I rowsort
SELECT + 73 * 25
----
1825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-253
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + 78 / - SUM( - 60 ) AS col1, - 30 AS col2
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-253
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + 78 / - SUM ( - 60 ) AS col1, - 30 AS col2
----
NULL
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT DISTINCT + 7 - + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-254
SELECT DISTINCT + 7 - + COUNT ( * )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT ALL CASE + COUNT( * ) WHEN - + 5 * 18 * - - COUNT( * ) THEN + COALESCE ( - 71, - - 43 + 1 * 0, - 90 ) - - 49 ELSE + 99 END AS col0
----
99

skipif mysql # not compatible
query I rowsort label-255
SELECT ALL CASE + COUNT ( * ) WHEN - + 5 * 18 * - - COUNT ( * ) THEN + COALESCE ( - 71, - - 43 + 1 * 0, - 90 ) - - 49 ELSE + 99 END AS col0
----
99

query I rowsort
SELECT ALL CASE - 80 WHEN + 68 THEN NULL ELSE - 86 END
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-257
SELECT + + 80 * - ( - ( - + 33 ) ) * + 95 + - 76 + + COALESCE ( 76, 46, 6 ) DIV 5 + COALESCE ( 94 + + 10 DIV - 76, - 46 + + 75, - 51 ) * 73
----
-243999

skipif mysql # not compatible
query I rowsort label-257
SELECT + + 80 * - ( - ( - + 33 ) ) * + 95 + - 76 + + COALESCE ( 76, 46, 6 ) / 5 + COALESCE ( 94 + + 10 / - 76, - 46 + + 75, - 51 ) * 73
----
-243999

query II rowsort
SELECT - 15, 45 AS col1
----
-15
45

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT COALESCE ( - COUNT( 82 ), + 61 * + MAX( + - ( + + 28 ) ) + 8 + - 20 * - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-259
SELECT COALESCE ( - COUNT ( 82 ), + 61 * + MAX ( + - ( + + 28 ) ) + 8 + - 20 * - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-260
SELECT ALL 88 AS col1, 41 + + MAX( ALL 91 ) AS col0
----
88
132

skipif mysql # not compatible
query II rowsort label-260
SELECT ALL 88 AS col1, 41 + + MAX ( ALL 91 ) AS col0
----
88
132

query I rowsort
SELECT + 89 * - 18
----
-1602

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT + NULLIF ( - 29, - MAX( 5 ) ) + - + 36 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-263
SELECT + NULLIF ( - 29, - MAX ( 5 ) ) + - + 36 AS col1
----
-65

query I rowsort
SELECT - 3 - - 19 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT + 22 + SUM( + 22 ) + + 8 * - 72 AS col0
----
-532

skipif mysql # not compatible
query I rowsort label-265
SELECT + 22 + SUM ( + 22 ) + + 8 * - 72 AS col0
----
-532

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

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

query I rowsort
SELECT DISTINCT ( 26 ) * 38 * ( + 12 ) + + - 30
----
11826

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-268
SELECT ALL CAST( + NULLIF ( ( + 41 ), 31 ) AS SIGNED ) * + - 33 AS col1
----
-1353

skipif mysql # not compatible
query I rowsort label-268
SELECT ALL CAST ( + NULLIF ( ( + 41 ), 31 ) AS INTEGER ) * + - 33 AS col1
----
-1353

onlyif mysql # DIV for integer division: 
query I rowsort label-269
SELECT ( + 53 ) DIV - + 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-269
SELECT ( + 53 ) / - + 67 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-270
SELECT 52 * - MAX( + + 5 ) * - CASE - + 48 WHEN COUNT( * ) THEN NULL ELSE + + 91 END - - 54 + COUNT( * ) - - CAST( MIN( 9 ) AS SIGNED ) DIV + 38
----
23715

skipif mysql # not compatible
query I rowsort label-270
SELECT 52 * - MAX ( + + 5 ) * - CASE - + 48 WHEN COUNT ( * ) THEN NULL ELSE + + 91 END - - 54 + COUNT ( * ) - - CAST ( MIN ( 9 ) AS INTEGER ) / + 38
----
23715

query I rowsort
SELECT ALL 15 + - 33 + - + 20 + + 47 AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-272
SELECT 63 DIV CASE + 33 WHEN + + 5 THEN - 95 * - COUNT( * ) ELSE 72 * + ( + ( 72 ) ) END + 9 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-272
SELECT 63 / CASE + 33 WHEN + + 5 THEN - 95 * - COUNT ( * ) ELSE 72 * + ( + ( 72 ) ) END + 9 AS col0
----
9

query I rowsort
SELECT 42 * + ( - 52 )
----
-2184

query I rowsort
SELECT 77 * - 28 AS col1
----
-2156

query I rowsort
SELECT DISTINCT - 81 + 37
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-276
SELECT ( + CAST( + COALESCE ( + MIN( ALL - 64 ), + - 5, - + 22 ) AS SIGNED ) ) * - - 80 + + COUNT( * ) col0
----
-5119

skipif mysql # not compatible
query I rowsort label-276
SELECT ( + CAST ( + COALESCE ( + MIN ( ALL - 64 ), + - 5, - + 22 ) AS INTEGER ) ) * - - 80 + + COUNT ( * ) col0
----
-5119

query I rowsort
SELECT ALL ( - 61 ) + + 70 AS col1
----
9

query I rowsort
SELECT DISTINCT 14 + - 48 * - COALESCE ( - + 73, 80 ) AS col0
----
-3490

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT DISTINCT - COALESCE ( ( - + ( - 3 ) ), - + MAX( ALL 36 ) + + 42, - + ( 96 ) + - 51, + SUM( + 29 ) + 99 )
----
-3

skipif mysql # not compatible
query I rowsort label-279
SELECT DISTINCT - COALESCE ( ( - + ( - 3 ) ), - + MAX ( ALL 36 ) + + 42, - + ( 96 ) + - 51, + SUM ( + 29 ) + 99 )
----
-3

query I rowsort
SELECT ALL - 54 + 42 AS col1
----
-12

query I rowsort
SELECT 67 - - 62
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-282
SELECT 76 * CAST( 90 AS SIGNED )
----
6840

skipif mysql # not compatible
query I rowsort label-282
SELECT 76 * CAST ( 90 AS INTEGER )
----
6840

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT DISTINCT + 9 * - + COUNT( * ) * 25 AS col2
----
-225

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT + 9 * - + COUNT ( * ) * 25 AS col2
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-284
SELECT ALL - 55 + NULLIF ( CAST( NULL AS SIGNED ), - 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-284
SELECT ALL - 55 + NULLIF ( CAST ( NULL AS INTEGER ), - 92 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-285
SELECT + ( - 1 ) DIV 23 - - + 92 * - MAX( 61 ) + - - COUNT( * ) * + COUNT( * )
----
-5611

skipif mysql # not compatible
query I rowsort label-285
SELECT + ( - 1 ) / 23 - - + 92 * - MAX ( 61 ) + - - COUNT ( * ) * + COUNT ( * )
----
-5611

query I rowsort
SELECT + 74 + + + 78 + - 81 col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT - 87 * 98 - + 38 + - 59 * SUM( ALL - 81 )
----
-3785

skipif mysql # not compatible
query I rowsort label-287
SELECT - 87 * 98 - + 38 + - 59 * SUM ( ALL - 81 )
----
-3785

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT - COALESCE ( - 47, - 15 - COUNT( - 29 ) + + - COALESCE ( + + NULLIF ( - 54, - + 60 / + 78 ), - 67, COUNT( * ) - 76 ) - - 20 * - 59 ) * 55 + 94
----
2679

skipif mysql # not compatible
query I rowsort label-288
SELECT - COALESCE ( - 47, - 15 - COUNT ( - 29 ) + + - COALESCE ( + + NULLIF ( - 54, - + 60 / + 78 ), - 67, COUNT ( * ) - 76 ) - - 20 * - 59 ) * 55 + 94
----
2679

query I rowsort
SELECT + ( 94 ) - + 95 + + 51 AS col2
----
50

query I rowsort
SELECT + - 54 * + 43 + + - 86 AS col2
----
-2408

query I rowsort
SELECT ALL + 69 * 16 - + + 39
----
1065

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT - CASE 86 WHEN + MAX( ALL + 43 ) * 37 / - COUNT( 85 ) - - 20 + + 72 * - 53 THEN 82 WHEN + COUNT( 59 ) * - 15 THEN MIN( 13 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-292
SELECT - CASE 86 WHEN + MAX ( ALL + 43 ) * 37 / - COUNT ( 85 ) - - 20 + + 72 * - 53 THEN 82 WHEN + COUNT ( 59 ) * - 15 THEN MIN ( 13 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-293
SELECT DISTINCT - + MIN( 68 ) - - - 39 + + - 35 AS col0, + 86 + + 74 AS col1
----
-142
160

skipif mysql # not compatible
query II rowsort label-293
SELECT DISTINCT - + MIN ( 68 ) - - - 39 + + - 35 AS col0, + 86 + + 74 AS col1
----
-142
160

query I rowsort
SELECT - 38 + + 51
----
13

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

skipif mysql # not compatible
query I rowsort label-295
SELECT DISTINCT - + 87 / - 91 AS col2
----
0

query I rowsort
SELECT - 65 + + 71 + + ( - + ( + - 41 ) ) + - + 55
----
-8

onlyif mysql # DIV for integer division: 
query II rowsort label-297
SELECT ALL - + 36 * + - 97 AS col2, - 93 DIV 7 AS col0
----
3492
-13

skipif mysql # not compatible
query II rowsort label-297
SELECT ALL - + 36 * + - 97 AS col2, - 93 / 7 AS col0
----
3492
-13

query I rowsort
SELECT + 13 * 53 AS col0
----
689

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT ALL - - 45 * - - 39 + + + COUNT( DISTINCT + 69 ) + + 40 AS col1
----
1796

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL - - 45 * - - 39 + + + COUNT ( DISTINCT + 69 ) + + 40 AS col1
----
1796

query I rowsort
SELECT ALL + 57 * 96
----
5472

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

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT - ( 44 ) + 99 + + + 43 * + 17 * + COUNT ( * )
----
786

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-302
SELECT ALL COUNT( * ) + COUNT( * ) * + - ( 15 ) DIV + 16 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL COUNT ( * ) + COUNT ( * ) * + - ( 15 ) / + 16 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-303
SELECT - 97 col1, COALESCE ( + NULLIF ( + - 12, + 63 ), + 0, + COUNT( * ) * - + 96 * + - 63 ) AS col0
----
-97
-12

skipif mysql # not compatible
query II rowsort label-303
SELECT - 97 col1, COALESCE ( + NULLIF ( + - 12, + 63 ), + 0, + COUNT ( * ) * - + 96 * + - 63 ) AS col0
----
-97
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-304
SELECT COALESCE ( ( + - 22 ), - COUNT( * ) + + + 53 DIV - 96 * COUNT( * ) ) + - 62 * 68 col0
----
-4238

skipif mysql # not compatible
query I rowsort label-304
SELECT COALESCE ( ( + - 22 ), - COUNT ( * ) + + + 53 / - 96 * COUNT ( * ) ) + - 62 * 68 col0
----
-4238

query II rowsort
SELECT 35 - - ( + 46 ) AS col2, 15 - - 31 AS col1
----
81
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-306
SELECT COUNT( * ) + + CASE - NULLIF ( - CAST( NULL AS DECIMAL ), 11 * + COUNT( * ) ) WHEN 20 * - 54 + + 61 THEN - 62 - 26 * - ( 38 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-306
SELECT COUNT ( * ) + + CASE - NULLIF ( - CAST ( NULL AS REAL ), 11 * + COUNT ( * ) ) WHEN 20 * - 54 + + 61 THEN - 62 - 26 * - ( 38 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT ALL 44 * + - CASE 42 WHEN + - 56 + - + COUNT( * ) + - + 56 THEN + + CASE WHEN 39 <= - COUNT( * ) + 33 THEN 33 + 91 WHEN NOT 24 + 28 * - 24 < NULL THEN NULL ELSE NULL END END / - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL 44 * + - CASE 42 WHEN + - 56 + - + COUNT ( * ) + - + 56 THEN + + CASE WHEN 39 <= - COUNT ( * ) + 33 THEN 33 + 91 WHEN NOT 24 + 28 * - 24 < NULL THEN NULL ELSE NULL END END / - 11
----
NULL

query I rowsort
SELECT ALL 56 + + 92 AS col0
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-309
SELECT ALL COALESCE ( - - 58, + 54 DIV - + 99 - - - 70 ) + + 22
----
80

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL COALESCE ( - - 58, + 54 / - + 99 - - - 70 ) + + 22
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-310
SELECT DISTINCT 73 DIV - 51 col2
----
-1

skipif mysql # not compatible
query I rowsort label-310
SELECT DISTINCT 73 / - 51 col2
----
-1

query I rowsort
SELECT ALL 38 + - 45
----
-7

query I rowsort
SELECT DISTINCT 49 + + 52 + + + 23
----
124

query II rowsort
SELECT DISTINCT 67 + + - 65 * - 49, + 24 AS col1
----
3252
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-314
SELECT CAST( - 47 AS SIGNED ) + SUM( ALL + 17 ) + - 79 * + - 69 + - 38
----
5383

skipif mysql # not compatible
query I rowsort label-314
SELECT CAST ( - 47 AS INTEGER ) + SUM ( ALL + 17 ) + - 79 * + - 69 + - 38
----
5383

query I rowsort
SELECT ALL 60 + - 58 - - - 22
----
-20

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-317
SELECT 66 DIV - 68 * - 62 * + 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-317
SELECT 66 / - 68 * - 62 * + 77 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-318
SELECT 87 * + - 5 + - - 17 DIV 19
----
-435

skipif mysql # not compatible
query I rowsort label-318
SELECT 87 * + - 5 + - - 17 / 19
----
-435

query I rowsort
SELECT ALL - + 3 col0
----
-3

query I rowsort
SELECT + NULLIF ( - ( + + 12 ), + - 80 + + 4 ) AS col2
----
-12

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

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL - - 89 / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT DISTINCT + 40 - + COUNT( - 85 )
----
39

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT + 40 - + COUNT ( - 85 )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-323
SELECT DISTINCT 64 DIV - - 5 + - 65
----
-53

skipif mysql # not compatible
query I rowsort label-323
SELECT DISTINCT 64 / - - 5 + - 65
----
-53

query I rowsort
SELECT 39 * 32
----
1248

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

query I rowsort
SELECT - + ( - 72 ) * - - 15 - + 15
----
1065

query I rowsort
SELECT - 11 * + - ( - 90 )
----
-990

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

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL MAX ( ALL 51 )
----
51

query I rowsort
SELECT ALL - ( - 30 ) + + - 71
----
-41

query I rowsort
SELECT - 38 - - + 78 AS col1
----
40

query I rowsort
SELECT DISTINCT + 72 + + 71 AS col1
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-332
SELECT 7 AS col0, CAST( - 84 AS SIGNED ) + - NULLIF ( + 80, - 94 / + + 33 * + 16 + + 11 ) AS col1
----
7
-164

skipif mysql # not compatible
query II rowsort label-332
SELECT 7 AS col0, CAST ( - 84 AS INTEGER ) + - NULLIF ( + 80, - 94 / + + 33 * + 16 + + 11 ) AS col1
----
7
-164

query I rowsort
SELECT DISTINCT + 53 + - + 48
----
5

query I rowsort
SELECT ALL - ( - + 8 ) + + 29 - 2 * + 28 AS col1
----
-19

query II rowsort
SELECT - 40, - 88 AS col1
----
-40
-88

query II rowsort
SELECT 51, 88 * + 51 col1
----
51
4488

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT - COUNT( DISTINCT 43 ) + - 63
----
-64

skipif mysql # not compatible
query I rowsort label-337
SELECT - COUNT ( DISTINCT 43 ) + - 63
----
-64

query II rowsort
SELECT 59 AS col1, 90
----
59
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-339
SELECT ALL CASE - SUM( 95 ) WHEN + - 20 THEN - + 64 + - - 16 WHEN + 35 + - MIN( + CAST( + 6 AS DECIMAL ) ) + - 49 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL CASE - SUM ( 95 ) WHEN + - 20 THEN - + 64 + - - 16 WHEN + 35 + - MIN ( + CAST ( + 6 AS REAL ) ) + - 49 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT - COUNT( + - 82 ) * 9 + 66 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-340
SELECT - COUNT ( + - 82 ) * 9 + 66 AS col1
----
57

query I rowsort
SELECT - 33 + 77 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT ALL - COUNT( 10 ) + 75 * + 85
----
6374

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL - COUNT ( 10 ) + 75 * + 85
----
6374

query I rowsort
SELECT DISTINCT 62 + - 1 - - 6 AS col2
----
67

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-345
SELECT ALL - COUNT( * ) * 30 AS col1, MIN( 21 ) - MIN( - + 78 )
----
-30
99

skipif mysql # not compatible
query II rowsort label-345
SELECT ALL - COUNT ( * ) * 30 AS col1, MIN ( 21 ) - MIN ( - + 78 )
----
-30
99

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

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL 97 + + CAST ( NULL AS INTEGER ) + + - 46
----
NULL

query I rowsort
SELECT DISTINCT - 9 * 51 * + - 71 * + 19 * - COALESCE ( + + 78, + - 51 * - + 79 + - 43 - 52 * 19 + 95, 86 )
----
-48296898

query I rowsort
SELECT DISTINCT + 54 - 2 AS col1
----
52

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

onlyif mysql # aggregate syntax: 
query II rowsort label-350
SELECT ALL + 22, COUNT( * ) + - 93 - + 29 AS col2
----
22
-121

skipif mysql # not compatible
query II rowsort label-350
SELECT ALL + 22, COUNT ( * ) + - 93 - + 29 AS col2
----
22
-121

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-352
SELECT + CAST( NULL AS SIGNED ) * 89 + - - ( - NULLIF ( 10, - 75 * + + 19 + - 65 * - ( - + ( - + CASE 8 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + 74 THEN + 52 WHEN 85 + - COUNT( * ) * 63 THEN NULL ELSE COUNT( * ) * 87 END ) ) ) ) - - MIN( DISTINCT - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-352
SELECT + CAST ( NULL AS INTEGER ) * 89 + - - ( - NULLIF ( 10, - 75 * + + 19 + - 65 * - ( - + ( - + CASE 8 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + 74 THEN + 52 WHEN 85 + - COUNT ( * ) * 63 THEN NULL ELSE COUNT ( * ) * 87 END ) ) ) ) - - MIN ( DISTINCT - 37 )
----
NULL

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT + NULLIF ( 84, 84 - + 9 * + - 81 * - 53 ), 71 AS col1
----
84
71

query I rowsort
SELECT ALL 53 * - 69 * - - NULLIF ( - 10, - 5 ) AS col2
----
36570

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

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

query I rowsort
SELECT + - 98 * - + 19
----
1862

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT ALL - MIN( DISTINCT + - 79 ) * - 61
----
-4819

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL - MIN ( DISTINCT + - 79 ) * - 61
----
-4819

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

query I rowsort
SELECT + 73 + + 40 + + 77
----
190

query I rowsort
SELECT + 40 * + 42 - 39 * + 21 + 83
----
944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-365
SELECT - - COALESCE ( - CASE - 93 WHEN + 6 THEN - + 40 WHEN + 41 THEN + 95 * + COALESCE ( ( - + 26 ), + 39 * COUNT( * ) + - 95, + COUNT( ALL - 84 ) ) END, 62 DIV + ( 11 ) + ( 20 + ( 24 ) * 21 ) * ( MAX( DISTINCT 6 ) ), 45 ) DIV 90 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-365
SELECT - - COALESCE ( - CASE - 93 WHEN + 6 THEN - + 40 WHEN + 41 THEN + 95 * + COALESCE ( ( - + 26 ), + 39 * COUNT ( * ) + - 95, + COUNT ( ALL - 84 ) ) END, 62 / + ( 11 ) + ( 20 + ( 24 ) * 21 ) * ( MAX ( DISTINCT 6 ) ), 45 ) / 90 AS col2
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-366
SELECT ALL + 35, COUNT( * ) * + 55 AS col2
----
35
55

skipif mysql # not compatible
query II rowsort label-366
SELECT ALL + 35, COUNT ( * ) * + 55 AS col2
----
35
55

onlyif mysql # aggregate syntax: 
query II rowsort label-367
SELECT ALL + 22 AS col1, COALESCE ( - - 13, + COUNT( * ), + 40 ) + + 0 + - 32
----
22
-19

skipif mysql # not compatible
query II rowsort label-367
SELECT ALL + 22 AS col1, COALESCE ( - - 13, + COUNT ( * ), + 40 ) + + 0 + - 32
----
22
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-368
SELECT + + 15 DIV 95 DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-368
SELECT + + 15 / 95 / 59
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-369
SELECT ALL + + MAX( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-369
SELECT ALL + + MAX ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT ALL - + MIN( + 82 ) * - - 35 + + 40 AS col0
----
-2830

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL - + MIN ( + 82 ) * - - 35 + + 40 AS col0
----
-2830

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

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

query I rowsort
SELECT DISTINCT - 8 * 59 + + 43 + 26
----
-403

query II rowsort
SELECT 64 AS col0, 68 AS col0
----
64
68

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT ALL + ( + CASE - COUNT( * ) WHEN - 76 THEN + 18 * + 54 WHEN CASE ( + MIN( 69 ) ) WHEN - 50 * COUNT( * ) THEN NULLIF ( - ( - NULLIF ( 23, - 87 ) ), - MIN( 14 ) / 35 ) WHEN COUNT( * ) THEN NULL END THEN NULL ELSE 96 END ) + - 5
----
91

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL + ( + CASE - COUNT ( * ) WHEN - 76 THEN + 18 * + 54 WHEN CASE ( + MIN ( 69 ) ) WHEN - 50 * COUNT ( * ) THEN NULLIF ( - ( - NULLIF ( 23, - 87 ) ), - MIN ( 14 ) / 35 ) WHEN COUNT ( * ) THEN NULL END THEN NULL ELSE 96 END ) + - 5
----
91

query I rowsort
SELECT ALL - 94 * + 42
----
-3948

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-376
SELECT DISTINCT + 22 + CAST( + + 4 AS SIGNED ) * - - 43 AS col2
----
194

skipif mysql # not compatible
query I rowsort label-376
SELECT DISTINCT + 22 + CAST ( + + 4 AS INTEGER ) * - - 43 AS col2
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT ALL - 68 + COUNT( * ) + - 9 - - 78 * + ( - 3 ) AS col2
----
-310

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL - 68 + COUNT ( * ) + - 9 - - 78 * + ( - 3 ) AS col2
----
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT ALL COUNT( + + 86 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL COUNT ( + + 86 ) AS col0
----
1

query I rowsort
SELECT ALL COALESCE ( 77, + 18 )
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-380
SELECT DISTINCT + 50 DIV 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-380
SELECT DISTINCT + 50 / 79 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT DISTINCT CASE + 27 WHEN + - COUNT( * ) + 78 THEN + 73 ELSE 48 END AS col1
----
48

skipif mysql # not compatible
query I rowsort label-381
SELECT DISTINCT CASE + 27 WHEN + - COUNT ( * ) + 78 THEN + 73 ELSE 48 END AS col1
----
48

query I rowsort
SELECT DISTINCT - 23 - - 54 + - 90 + + ( + 0 )
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-383
SELECT - MAX( DISTINCT + 56 ) * - + 78 AS col2, 80 - + 46 * - 35 + 41
----
4368
1731

skipif mysql # not compatible
query II rowsort label-383
SELECT - MAX ( DISTINCT + 56 ) * - + 78 AS col2, 80 - + 46 * - 35 + 41
----
4368
1731

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

query I rowsort
SELECT - 84 + - + 53 AS col2
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-386
SELECT - NULLIF ( - COUNT( * ), 76 + + 97 + + ( + 30 ) ) - CAST( - 18 AS SIGNED ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-386
SELECT - NULLIF ( - COUNT ( * ), 76 + + 97 + + ( + 30 ) ) - CAST ( - 18 AS INTEGER ) AS col1
----
19

query II rowsort
SELECT + 49 * - 59 AS col2, 80 + - 86
----
-2891
-6

query II rowsort
SELECT ALL + 32 * + 4 AS col0, 43 + + - 38
----
128
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-389
SELECT - CASE + 54 WHEN - - CASE + COALESCE ( + 94, + - COALESCE ( - - 16, - CAST( 32 AS DECIMAL ) ) + + 56 ) WHEN MIN( DISTINCT + 14 ) + COUNT( * ) THEN 53 + + 84 WHEN 85 THEN NULL ELSE 55 * 14 END + + 5 THEN 59 ELSE COUNT( - 23 ) DIV + CASE + COUNT( * ) * - COUNT( * ) WHEN + COUNT( - CAST( NULL AS SIGNED ) ) THEN NULL ELSE COUNT( * ) END END + 51 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-389
SELECT - CASE + 54 WHEN - - CASE + COALESCE ( + 94, + - COALESCE ( - - 16, - CAST ( 32 AS REAL ) ) + + 56 ) WHEN MIN ( DISTINCT + 14 ) + COUNT ( * ) THEN 53 + + 84 WHEN 85 THEN NULL ELSE 55 * 14 END + + 5 THEN 59 ELSE COUNT ( - 23 ) / + CASE + COUNT ( * ) * - COUNT ( * ) WHEN + COUNT ( - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE COUNT ( * ) END END + 51 AS col1
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-390
SELECT ALL + 60 DIV - SUM( DISTINCT 8 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL + 60 / - SUM ( DISTINCT 8 ) AS col0
----
-7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT DISTINCT + 51 * + - SUM( - 18 )
----
918

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT + 51 * + - SUM ( - 18 )
----
918

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT ALL + AVG ( - + CASE 75 WHEN + 66 THEN NULL WHEN + 37 THEN NULL ELSE + 77 END ) * - - CASE - ( + 62 ) WHEN - 44 THEN 29 WHEN + - 42 THEN + COUNT( * ) END * 55
----
NULL

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL + AVG ( - + CASE 75 WHEN + 66 THEN NULL WHEN + 37 THEN NULL ELSE + 77 END ) * - - CASE - ( + 62 ) WHEN - 44 THEN 29 WHEN + - 42 THEN + COUNT ( * ) END * 55
----
NULL

query I rowsort
SELECT DISTINCT - - 43 * + - 45
----
-1935

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-395
SELECT - + CAST( NULL AS SIGNED ) * - + 52, 20 AS col0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-395
SELECT - + CAST ( NULL AS INTEGER ) * - + 52, 20 AS col0
----
NULL
20

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-397
SELECT ALL + SUM( + NULLIF ( - + 32, + CAST( NULL AS SIGNED ) * + + 81 * 39 ) ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL + SUM ( + NULLIF ( - + 32, + CAST ( NULL AS INTEGER ) * + + 81 * 39 ) ) AS col1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-398
SELECT - + 27 DIV - 4 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-398
SELECT - + 27 / - 4 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT + NULLIF ( - NULLIF ( COUNT( * ), + 79 ), 57 ) + 65 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-399
SELECT + NULLIF ( - NULLIF ( COUNT ( * ), + 79 ), 57 ) + 65 AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-400
SELECT - - MAX( + + 61 ) * - - ( 94 ) * - + CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-400
SELECT - - MAX ( + + 61 ) * - - ( 94 ) * - + CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT + 17 * - 87
----
-1479

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-402
SELECT ALL + - 21 DIV + 58 + - - 99 + + + COALESCE ( + ( - ( ( - SUM( ALL - 2 ) ) ) ), + 23, 30 ) * - 25 + 66 DIV 30
----
151

skipif mysql # not compatible
query I rowsort label-402
SELECT ALL + - 21 / + 58 + - - 99 + + + COALESCE ( + ( - ( ( - SUM ( ALL - 2 ) ) ) ), + 23, 30 ) * - 25 + 66 / 30
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-403
SELECT DISTINCT - 91 DIV + 42 + + - ( + 13 ) col1
----
-15

skipif mysql # not compatible
query I rowsort label-403
SELECT DISTINCT - 91 / + 42 + + - ( + 13 ) col1
----
-15

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

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

query I rowsort
SELECT ALL + 75 + + 83 AS col2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT DISTINCT - MAX( + 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT - MAX ( + 73 ) AS col0
----
-73

query I rowsort
SELECT ALL - NULLIF ( + 65, - 91 ) + 38
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-408
SELECT CAST( NULL AS SIGNED ) * + 58 * - - 42 + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-408
SELECT CAST ( NULL AS INTEGER ) * + 58 * - - 42 + + 24
----
NULL

query I rowsort
SELECT - 73 - + - 74
----
1

query I rowsort
SELECT ALL 51 + + - 96
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-411
SELECT CAST( + 59 AS SIGNED ) * - - 3
----
177

skipif mysql # not compatible
query I rowsort label-411
SELECT CAST ( + 59 AS INTEGER ) * - - 3
----
177

query II rowsort
SELECT - 90 AS col1, 54 AS col2
----
-90
54

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT ALL 21 - - 3 + COUNT( DISTINCT - 7 )
----
25

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL 21 - - 3 + COUNT ( DISTINCT - 7 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-414
SELECT CAST( 89 AS SIGNED ) * - COUNT( 11 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-414
SELECT CAST ( 89 AS INTEGER ) * - COUNT ( 11 ) AS col2
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-415
SELECT ALL 46 AS col1, MIN( DISTINCT CAST( NULL AS SIGNED ) ) + CAST( - 68 AS SIGNED ) * + + COUNT( * ) AS col0
----
46
NULL

skipif mysql # not compatible
query II rowsort label-415
SELECT ALL 46 AS col1, MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + CAST ( - 68 AS INTEGER ) * + + COUNT ( * ) AS col0
----
46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT DISTINCT 50 - + + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT 50 - + + COUNT ( * )
----
49

query I rowsort
SELECT ALL + 63 * 59 AS col1
----
3717

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-418
SELECT 80 - 58 * + 46 + - - CAST( 24 AS SIGNED )
----
-2564

skipif mysql # not compatible
query I rowsort label-418
SELECT 80 - 58 * + 46 + - - CAST ( 24 AS INTEGER )
----
-2564

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT ALL 85 - - COUNT( ALL + 7 )
----
86

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL 85 - - COUNT ( ALL + 7 )
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-420
SELECT 51 * - 64 DIV + - COUNT( - + 46 ) * + COUNT( * ) AS col0
----
3264

skipif mysql # not compatible
query I rowsort label-420
SELECT 51 * - 64 / + - COUNT ( - + 46 ) * + COUNT ( * ) AS col0
----
3264

query I rowsort
SELECT ALL 79 * + 1
----
79

query I rowsort
SELECT DISTINCT + 46 * + 89
----
4094

query I rowsort
SELECT ALL 25 * + + 50
----
1250

query I rowsort
SELECT 86 * COALESCE ( - 66, - 6 )
----
-5676

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

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

query II rowsort
SELECT ALL 24 AS col2, - 83 * - 47 - 58
----
24
3843

query II rowsort
SELECT DISTINCT 29, - ( 92 ) * - - 95 - - + 55 AS col1
----
29
-8685

onlyif mysql # DIV for integer division: 
query I rowsort label-428
SELECT ALL + - 70 DIV 15
----
-4

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL + - 70 / 15
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT - ( + ( 94 ) ) * COUNT( * ) * - + 5
----
470

skipif mysql # not compatible
query I rowsort label-429
SELECT - ( + ( 94 ) ) * COUNT ( * ) * - + 5
----
470

onlyif mysql # aggregate syntax: 
query II rowsort label-430
SELECT ALL + 50, + COUNT( * ) * - 37 + 21 AS col1
----
50
-16

skipif mysql # not compatible
query II rowsort label-430
SELECT ALL + 50, + COUNT ( * ) * - 37 + 21 AS col1
----
50
-16

query II rowsort
SELECT - - 37 AS col1, + 20
----
37
20

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-433
SELECT 83 / - 77 * + 48 + CAST( NULL AS SIGNED ) * 89 + - 1 + - + 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-433
SELECT 83 / - 77 * + 48 + CAST ( NULL AS INTEGER ) * 89 + - 1 + - + 22 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-434
SELECT ALL + - CAST( - - CAST( - SUM( DISTINCT 50 ) AS DECIMAL ) AS SIGNED ) + + + 95 - - 90 AS col0, + 38
----
235
38

skipif mysql # not compatible
query II rowsort label-434
SELECT ALL + - CAST ( - - CAST ( - SUM ( DISTINCT 50 ) AS REAL ) AS INTEGER ) + + + 95 - - 90 AS col0, + 38
----
235
38

query I rowsort
SELECT ALL - - 2 * - 8
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-436
SELECT CAST( ( 3 ) AS SIGNED ) DIV MIN( + + ( + - 21 ) ) - - 54
----
54

skipif mysql # not compatible
query I rowsort label-436
SELECT CAST ( ( 3 ) AS INTEGER ) / MIN ( + + ( + - 21 ) ) - - 54
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-437
SELECT ALL + + 98 + + MIN( ALL - - 9 ) - - + 19 + + + SUM( ALL - 1 ) DIV + 20 + - 9
----
117

skipif mysql # not compatible
query I rowsort label-437
SELECT ALL + + 98 + + MIN ( ALL - - 9 ) - - + 19 + + + SUM ( ALL - 1 ) / + 20 + - 9
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-438
SELECT DISTINCT - + NULLIF ( 81, + 15 * 72 ) + - + COALESCE ( 22, - - 87, + + 50 DIV - 36 * + 11 ) + + 33
----
-70

skipif mysql # not compatible
query I rowsort label-438
SELECT DISTINCT - + NULLIF ( 81, + 15 * 72 ) + - + COALESCE ( 22, - - 87, + + 50 / - 36 * + 11 ) + + 33
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT 49 * - - 13 + + 39 - NULLIF ( + - COUNT( * ), 93 * 40 * 66 ) * + CASE - 90 WHEN + + 98 THEN - 20 * + 8 + 76 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-439
SELECT 49 * - - 13 + + 39 - NULLIF ( + - COUNT ( * ), 93 * 40 * 66 ) * + CASE - 90 WHEN + + 98 THEN - 20 * + 8 + 76 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT ALL - 43 + - - ( + + COUNT( * ) ) * - 99 + - 59
----
-201

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL - 43 + - - ( + + COUNT ( * ) ) * - 99 + - 59
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT 72 * + SUM( - 67 )
----
-4824

skipif mysql # not compatible
query I rowsort label-441
SELECT 72 * + SUM ( - 67 )
----
-4824

query II rowsort
SELECT + - 62, + 65 AS col0
----
-62
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-443
SELECT - 14 * + - 69 + CAST( NULL AS SIGNED ) + + - 44 * - 41 / - + CASE + - 22 WHEN - - 2 / - 87 + 18 + - CAST( NULL AS SIGNED ) THEN - + 31 * + 93 WHEN - 5 THEN 15 ELSE + 89 END + + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-443
SELECT - 14 * + - 69 + CAST ( NULL AS INTEGER ) + + - 44 * - 41 / - + CASE + - 22 WHEN - - 2 / - 87 + 18 + - CAST ( NULL AS INTEGER ) THEN - + 31 * + 93 WHEN - 5 THEN 15 ELSE + 89 END + + 83
----
NULL

query I rowsort
SELECT DISTINCT - ( + + 50 ) col1
----
-50

query I rowsort
SELECT DISTINCT 80 * - 32 AS col1
----
-2560

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT ALL MIN( + 66 ) * 26 AS col1
----
1716

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL MIN ( + 66 ) * 26 AS col1
----
1716

query I rowsort
SELECT ALL + 68 * 9 * + + 63 AS col0
----
38556

query I rowsort
SELECT ALL 85 - - 61 AS col0
----
146

query I rowsort
SELECT DISTINCT 44 * - + ( + 13 ) AS col2
----
-572

onlyif mysql # DIV for integer division: 
query I rowsort label-451
SELECT 60 DIV - - 45
----
1

skipif mysql # not compatible
query I rowsort label-451
SELECT 60 / - - 45
----
1

query II rowsort
SELECT 96 * + - 12 AS col1, + 49 * - 68 * + 1 AS col1
----
-1152
-3332

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

skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT - 50 * - 25 * + COUNT ( * ) col0
----
1250

onlyif mysql # DIV for integer division: 
query I rowsort label-454
SELECT ALL 32 DIV 70 * 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL 32 / 70 * 94 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-455
SELECT 86 DIV 55 * - 86 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-455
SELECT 86 / 55 * - 86 AS col2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-456
SELECT DISTINCT 78 DIV + 27
----
2

skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT 78 / + 27
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-457
SELECT ALL 96 DIV - 30
----
-3

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL 96 / - 30
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-458
SELECT 76 DIV + 86 AS col0, + 68 * + + 49
----
0
3332

skipif mysql # not compatible
query II rowsort label-458
SELECT 76 / + 86 AS col0, + 68 * + + 49
----
0
3332

query I rowsort
SELECT 11 + - + 0 + 72
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-460
SELECT + 72 * - + 5 - - 55 + + + ( COUNT( * ) ) DIV - + 41
----
-305

skipif mysql # not compatible
query I rowsort label-460
SELECT + 72 * - + 5 - - 55 + + + ( COUNT ( * ) ) / - + 41
----
-305

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-461
SELECT ALL + 74 + - + 18 + 15 * + 97 * 15 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL + 74 + - + 18 + 15 * + 97 * 15 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-462
SELECT ALL - CASE 52 WHEN - 57 THEN + 22 * 48 WHEN - CAST( + 91 AS SIGNED ) * - 25 THEN + 80 * + 85 END + + AVG ( + - CAST( NULL AS SIGNED ) ) / + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL - CASE 52 WHEN - 57 THEN + 22 * 48 WHEN - CAST ( + 91 AS INTEGER ) * - 25 THEN + 80 * + 85 END + + AVG ( + - CAST ( NULL AS INTEGER ) ) / + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT NULLIF ( - - 87, + NULLIF ( - - 47, 27 * - 48 * - 74 ) ) + - COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-463
SELECT NULLIF ( - - 87, + NULLIF ( - - 47, 27 * - 48 * - 74 ) ) + - COUNT ( * ) AS col1
----
86

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-465
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - 6, 24 * + COUNT( ALL + + 56 ) AS col0
----
NULL
24

skipif mysql # not compatible
query II rowsort label-465
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - 6, 24 * + COUNT ( ALL + + 56 ) AS col0
----
NULL
24

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT DISTINCT + ( 31 ) * - + 2 * - 78 * - - MIN( 60 ) + + - 64 + + + 16 AS col0
----
290112

skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT + ( 31 ) * - + 2 * - 78 * - - MIN ( 60 ) + + - 64 + + + 16 AS col0
----
290112

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT ALL - 17 * COUNT( * ) + - ( 73 ) + - 87 + + 43 - 56
----
-190

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL - 17 * COUNT ( * ) + - ( 73 ) + - 87 + + 43 - 56
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT - + 87 * 86 - - COUNT( * )
----
-7481

skipif mysql # not compatible
query I rowsort label-468
SELECT - + 87 * 86 - - COUNT ( * )
----
-7481

onlyif mysql # aggregate syntax: 
query II rowsort label-469
SELECT + MIN( + 58 ) AS col2, 64 * - 62 AS col0
----
58
-3968

skipif mysql # not compatible
query II rowsort label-469
SELECT + MIN ( + 58 ) AS col2, 64 * - 62 AS col0
----
58
-3968

query I rowsort
SELECT - - 54 * - 5 AS col0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT ALL - 17 * - ( 72 ) * + + COUNT( * ) - - - COUNT( * )
----
1223

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL - 17 * - ( 72 ) * + + COUNT ( * ) - - - COUNT ( * )
----
1223

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-472
SELECT DISTINCT 47 DIV - 27 AS col0, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-472
SELECT DISTINCT 47 / - 27 AS col0, - COUNT ( * )
----
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-473
SELECT DISTINCT + COALESCE ( + COUNT( * ), + 50 DIV - 22, - 44 * + 64 + - 13 ) * + 81 * 65 - + 53 * - ( 16 )
----
6113

skipif mysql # not compatible
query I rowsort label-473
SELECT DISTINCT + COALESCE ( + COUNT ( * ), + 50 / - 22, - 44 * + 64 + - 13 ) * + 81 * 65 - + 53 * - ( 16 )
----
6113

query I rowsort
SELECT DISTINCT + 90 * + 34 AS col1
----
3060

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT DISTINCT COUNT( * ) * + 61 - + 39 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-475
SELECT DISTINCT COUNT ( * ) * + 61 - + 39 AS col0
----
22

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

skipif mysql # not compatible
query I rowsort label-476
SELECT - 15 * 59 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-477
SELECT - CASE - COALESCE ( - 54, + ( + 74 ), 45 * + COUNT( * ) + + 0 ) WHEN ( 4 ) THEN - - 30 ELSE 61 DIV - ( + COUNT( DISTINCT + 45 ) ) * + 29 - - COUNT( * ) END * - 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-477
SELECT - CASE - COALESCE ( - 54, + ( + 74 ), 45 * + COUNT ( * ) + + 0 ) WHEN ( 4 ) THEN - - 30 ELSE 61 / - ( + COUNT ( DISTINCT + 45 ) ) * + 29 - - COUNT ( * ) END * - 0 AS col1
----
0

query II rowsort
SELECT + 92 AS col2, 16 * - 34 + 44
----
92
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT COUNT( - - 58 ) * 0 - - 39
----
39

skipif mysql # not compatible
query I rowsort label-479
SELECT COUNT ( - - 58 ) * 0 - - 39
----
39

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-481
SELECT COUNT( * ) * + 36 * CAST( + 63 AS SIGNED ) - 4 col0
----
2264

skipif mysql # not compatible
query I rowsort label-481
SELECT COUNT ( * ) * + 36 * CAST ( + 63 AS INTEGER ) - 4 col0
----
2264

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT - 61 * 5 * - - COUNT( * ) * - - 36 * COUNT( * ) * + 73 AS col2
----
-801540

skipif mysql # not compatible
query I rowsort label-482
SELECT - 61 * 5 * - - COUNT ( * ) * - - 36 * COUNT ( * ) * + 73 AS col2
----
-801540

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT DISTINCT NULLIF ( - ( + - 80 ), - COUNT( * ) * 60 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-483
SELECT DISTINCT NULLIF ( - ( + - 80 ), - COUNT ( * ) * 60 ) AS col0
----
80

query I rowsort
SELECT - 96 * - ( 61 ) AS col1
----
5856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-485
SELECT DISTINCT CASE 62 WHEN - + 73 - - - 88 THEN + ( + 20 ) WHEN - + ( + 11 ) THEN NULL WHEN CASE + - CASE - + 23 WHEN ( - NULLIF ( - MIN( DISTINCT + ( 37 ) ), + COALESCE ( + COUNT( * ), + 72 ) * + 28 ) ) + + 92 THEN - 9 WHEN + 38 THEN NULL ELSE NULL END WHEN + 89 + + 72 THEN - 66 * - 99 + - COALESCE ( + 52, 79 - + 43 * CASE CAST( 86 AS SIGNED ) WHEN - 29 + 98 * + 86 THEN + COUNT( 3 ) END ) WHEN - COUNT( * ) THEN - 92 END THEN NULL ELSE 10 END AS col1
----
10

skipif mysql # not compatible
query I rowsort label-485
SELECT DISTINCT CASE 62 WHEN - + 73 - - - 88 THEN + ( + 20 ) WHEN - + ( + 11 ) THEN NULL WHEN CASE + - CASE - + 23 WHEN ( - NULLIF ( - MIN ( DISTINCT + ( 37 ) ), + COALESCE ( + COUNT ( * ), + 72 ) * + 28 ) ) + + 92 THEN - 9 WHEN + 38 THEN NULL ELSE NULL END WHEN + 89 + + 72 THEN - 66 * - 99 + - COALESCE ( + 52, 79 - + 43 * CASE CAST ( 86 AS INTEGER ) WHEN - 29 + 98 * + 86 THEN + COUNT ( 3 ) END ) WHEN - COUNT ( * ) THEN - 92 END THEN NULL ELSE 10 END AS col1
----
10

query I rowsort
SELECT ALL 26 + 36 col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-487
SELECT ALL CASE - - 5 WHEN + - 72 THEN - CAST( NULL AS SIGNED ) * - 1 END + - + NULLIF ( + + COUNT( * ), - 38 * CASE + CASE + COUNT( * ) WHEN - 67 THEN - - 25 * + + 28 + - + ( 67 ) - + COUNT( * ) WHEN 85 THEN NULL END WHEN AVG ( CASE + NULLIF ( CAST( 63 AS DECIMAL ), + 55 + + 57 ) WHEN - 55 THEN NULL WHEN + 13 / 13 THEN NULL ELSE 13 END ) THEN 56 + 47 * 39 END + 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL CASE - - 5 WHEN + - 72 THEN - CAST ( NULL AS INTEGER ) * - 1 END + - + NULLIF ( + + COUNT ( * ), - 38 * CASE + CASE + COUNT ( * ) WHEN - 67 THEN - - 25 * + + 28 + - + ( 67 ) - + COUNT ( * ) WHEN 85 THEN NULL END WHEN AVG ( CASE + NULLIF ( CAST ( 63 AS REAL ), + 55 + + 57 ) WHEN - 55 THEN NULL WHEN + 13 / 13 THEN NULL ELSE 13 END ) THEN 56 + 47 * 39 END + 98 )
----
NULL

query I rowsort
SELECT + 90 - + 29
----
61

query I rowsort
SELECT + 66 - 46 AS col1
----
20

query I rowsort
SELECT ALL 90 + + 84 AS col1
----
174

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

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

query II rowsort
SELECT 76 AS col2, - 77 AS col1
----
76
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT ALL - + MIN( DISTINCT + - 18 ) + - ( + 41 ) * - 3 AS col1
----
141

skipif mysql # not compatible
query I rowsort label-494
SELECT ALL - + MIN ( DISTINCT + - 18 ) + - ( + 41 ) * - 3 AS col1
----
141

query I rowsort
SELECT DISTINCT 11 + + 76 AS col0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-496
SELECT + 50 * - COALESCE ( + + 50, - 56 * 97 * + 3 ) - - 34 + - CAST( NULL AS SIGNED ) + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-496
SELECT + 50 * - COALESCE ( + + 50, - 56 * 97 * + 3 ) - - 34 + - CAST ( NULL AS INTEGER ) + + 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT + + CASE - 23 WHEN 83 THEN NULL WHEN ( 72 ) THEN 20 / 8 WHEN - COUNT( * ) THEN 0 END / + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-497
SELECT + + CASE - 23 WHEN 83 THEN NULL WHEN ( 72 ) THEN 20 / 8 WHEN - COUNT ( * ) THEN 0 END / + 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT DISTINCT - 76 + + - COUNT( ALL 99 ) * - 62 + + + 12
----
-2

skipif mysql # not compatible
query I rowsort label-498
SELECT DISTINCT - 76 + + - COUNT ( ALL 99 ) * - 62 + + + 12
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-499
SELECT DISTINCT 38 DIV + + SUM( ALL 44 ) * - - 45 + - 80 + - CAST( ( + - 1 ) AS SIGNED ) * - ( - + 86 )
----
6

skipif mysql # not compatible
query I rowsort label-499
SELECT DISTINCT 38 / + + SUM ( ALL 44 ) * - - 45 + - 80 + - CAST ( ( + - 1 ) AS INTEGER ) * - ( - + 86 )
----
6

query I rowsort
SELECT + + 38 * + 6 + 74 * + 63 * 31 AS col1
----
144750

query I rowsort
SELECT ALL - 27 * 1 AS col0
----
-27

query I rowsort
SELECT + 26 + - 36 AS col0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-503
SELECT - 22 * - 19 + + - 60 + 42 DIV - 78 * - 24 - + 11 col1
----
347

skipif mysql # not compatible
query I rowsort label-503
SELECT - 22 * - 19 + + - 60 + 42 / - 78 * - 24 - + 11 col1
----
347

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

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

query I rowsort
SELECT DISTINCT + + NULLIF ( 1, - 40 ) AS col0
----
1

query I rowsort
SELECT + + 80 - 39 AS col0
----
41

query II rowsort
SELECT + 74 * 13 AS col2, - 24
----
962
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT ( + 87 ) * - + 85 + + + 75 + COUNT( * ) AS col0
----
-7319

skipif mysql # not compatible
query I rowsort label-508
SELECT ( + 87 ) * - + 85 + + + 75 + COUNT ( * ) AS col0
----
-7319

onlyif mysql # DIV for integer division: 
query I rowsort label-509
SELECT + 92 DIV 80 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-509
SELECT + 92 / 80 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-510
SELECT ALL + COALESCE ( + 88, - 82 DIV CAST( + 45 AS SIGNED ) + - 90, - - ( - 9 ) )
----
88

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL + COALESCE ( + 88, - 82 / CAST ( + 45 AS INTEGER ) + - 90, - - ( - 9 ) )
----
88

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

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

query I rowsort
SELECT - 50 - + 73 AS col0
----
-123

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

query I rowsort
SELECT + 21 * - - 74 + - 7 + + 33 * - 43 + 45
----
173

query I rowsort
SELECT COALESCE ( - COALESCE ( - 70, 11, - 37 ), + + 79 * + 39 ) AS col2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-516
SELECT ALL + 5 * + + CAST( NULL AS SIGNED ) * - COALESCE ( + + 37, - 78, - 91 - 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-516
SELECT ALL + 5 * + + CAST ( NULL AS INTEGER ) * - COALESCE ( + + 37, - 78, - 91 - 12 )
----
NULL

query I rowsort
SELECT ALL + 96 * + 45 + + 35 AS col2
----
4355

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT - 90 + 6 * - 30 * + - COUNT( * ) * + 16
----
2790

skipif mysql # not compatible
query I rowsort label-518
SELECT - 90 + 6 * - 30 * + - COUNT ( * ) * + 16
----
2790

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

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

query I rowsort
SELECT DISTINCT CASE + + 65 WHEN + 84 THEN 78 ELSE NULL END * - ( + - 34 ) + - NULLIF ( + ( + - 96 ), 80 / - + 88 + 50 * 59 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT + CASE CASE - 38 WHEN - SUM( ALL + 42 ) THEN NULL WHEN + 98 THEN + 40 END WHEN - - 80 * 81 THEN + ( 63 ) * - + ( + 41 ) / - 62 + + 76 + - - 36 END / 38
----
NULL

skipif mysql # not compatible
query I rowsort label-521
SELECT + CASE CASE - 38 WHEN - SUM ( ALL + 42 ) THEN NULL WHEN + 98 THEN + 40 END WHEN - - 80 * 81 THEN + ( 63 ) * - + ( + 41 ) / - 62 + + 76 + - - 36 END / 38
----
NULL

query II rowsort
SELECT - 67 AS col0, + 10 AS col1
----
-67
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT ALL + 2 * - + 0 + - NULLIF ( + + 83, + COUNT( * ) * - - COALESCE ( + 74, 18 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL + 2 * - + 0 + - NULLIF ( + + 83, + COUNT ( * ) * - - COALESCE ( + 74, 18 ) )
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-525
SELECT ALL - 18 * - 74 / CAST( NULL AS SIGNED ) + + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL - 18 * - 74 / CAST ( NULL AS INTEGER ) + + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT - 72 + + - NULLIF ( COUNT( * ), - 4 ) + - - 14 + - 0 * + ( - - CASE CASE - + 92 WHEN - ( + ( + COALESCE ( 87, - 77, + - 85 ) ) ) THEN - ( + 91 ) END WHEN - ( + 10 ) + 23 THEN + 68 WHEN - 65 THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-526
SELECT - 72 + + - NULLIF ( COUNT ( * ), - 4 ) + - - 14 + - 0 * + ( - - CASE CASE - + 92 WHEN - ( + ( + COALESCE ( 87, - 77, + - 85 ) ) ) THEN - ( + 91 ) END WHEN - ( + 10 ) + 23 THEN + 68 WHEN - 65 THEN NULL END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-527
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) * + - 47 + + CAST( - 34 AS SIGNED ) + + 87 + 62 + + 31 - + - 57 AS col2, 77
----
NULL
77

skipif mysql # not compatible
query II rowsort label-527
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) * + - 47 + + CAST ( - 34 AS INTEGER ) + + 87 + 62 + + 31 - + - 57 AS col2, 77
----
NULL
77

query I rowsort
SELECT 22 + + 17
----
39

query I rowsort
SELECT ALL - ( - 16 ) + - 33
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-530
SELECT ALL - COALESCE ( - 62, COALESCE ( + 25, 29 + - CAST( NULL AS SIGNED ) + - 72 + + CASE WHEN NOT NULL IS NULL THEN - 29 ELSE + 20 END, 28 ) ) + - 41
----
21

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL - COALESCE ( - 62, COALESCE ( + 25, 29 + - CAST ( NULL AS INTEGER ) + - 72 + + CASE WHEN NOT NULL IS NULL THEN - 29 ELSE + 20 END, 28 ) ) + - 41
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-531
SELECT ALL COUNT( * ) AS col2, - 29 + - + 23
----
1
-52

skipif mysql # not compatible
query II rowsort label-531
SELECT ALL COUNT ( * ) AS col2, - 29 + - + 23
----
1
-52

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

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

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

skipif mysql # not compatible
query II rowsort label-533
SELECT - - CAST ( NULL AS INTEGER ) AS col0, 88 AS col2
----
NULL
88

query I rowsort
SELECT ALL - 31 - - + 53 AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-535
SELECT 37 + + 97 * - 46 + - 45 DIV + COALESCE ( + 19, - 97, + 55 ) + - COUNT( * ) AS col2
----
-4428

skipif mysql # not compatible
query I rowsort label-535
SELECT 37 + + 97 * - 46 + - 45 / + COALESCE ( + 19, - 97, + 55 ) + - COUNT ( * ) AS col2
----
-4428

query I rowsort
SELECT - 10 + + 48 * - + 52
----
-2506

query I rowsort
SELECT 40 * 29 col2
----
1160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-538
SELECT - CAST( + - 35 AS SIGNED ) * 48
----
1680

skipif mysql # not compatible
query I rowsort label-538
SELECT - CAST ( + - 35 AS INTEGER ) * 48
----
1680

query I rowsort
SELECT + 93 + + - 74 + - 55 * 4 AS col1
----
-201

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

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

query II rowsort
SELECT ALL + + 24 - - - 57, 84 AS col2
----
-33
84

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT + 51 * COUNT( 40 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-542
SELECT + 51 * COUNT ( 40 ) AS col1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-543
SELECT ALL - COALESCE ( - 9, 99 ) DIV COALESCE ( + 70, + 62, + 91 * - 67 + + - 33 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-543
SELECT ALL - COALESCE ( - 9, 99 ) / COALESCE ( + 70, + 62, + 91 * - 67 + + - 33 ) AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-544
SELECT + + 44 * + 1 + + NULLIF ( - + 34, + 68 - + NULLIF ( + - CAST( + + 19 AS DECIMAL ), + 34 - 26 * + 60 ) * 91 )
----
10

skipif mysql # not compatible
query I rowsort label-544
SELECT + + 44 * + 1 + + NULLIF ( - + 34, + 68 - + NULLIF ( + - CAST ( + + 19 AS REAL ), + 34 - 26 * + 60 ) * 91 )
----
10

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

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

query I rowsort
SELECT ALL - + NULLIF ( + 42, - 96 ) AS col1
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-547
SELECT + 78 DIV - - 87 AS col2, 92 AS col1
----
0
92

skipif mysql # not compatible
query II rowsort label-547
SELECT + 78 / - - 87 AS col2, 92 AS col1
----
0
92

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT + 17 * - - COALESCE ( - + 24, 26 + 40, 45 + 11 * + COUNT( ALL + 0 ) )
----
-408

skipif mysql # not compatible
query I rowsort label-548
SELECT + 17 * - - COALESCE ( - + 24, 26 + 40, 45 + 11 * + COUNT ( ALL + 0 ) )
----
-408

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT 86 + - COUNT( * ) * - ( + 43 ) * - 0
----
86

skipif mysql # not compatible
query I rowsort label-549
SELECT 86 + - COUNT ( * ) * - ( + 43 ) * - 0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-550
SELECT ALL 56 DIV + + 3
----
18

skipif mysql # not compatible
query I rowsort label-550
SELECT ALL 56 / + + 3
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-551
SELECT DISTINCT 80 * + CAST( NULL AS SIGNED ), - 72 AS col1
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-551
SELECT DISTINCT 80 * + CAST ( NULL AS INTEGER ), - 72 AS col1
----
NULL
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-552
SELECT ALL 15 * - 28 * + CASE + - CAST( - 36 AS SIGNED ) WHEN + 8 + - 60 * - + 11 THEN - + CASE - - CAST( NULL AS DECIMAL ) WHEN ( + 53 ) THEN - + 37 / - 59 WHEN - NULLIF ( 74, - 37 + COUNT( * ) * - 2 ) + - 22 THEN + 42 WHEN ( 76 ) - COUNT( * ) THEN COUNT( * ) ELSE NULL END END * + COALESCE ( 56 / - COALESCE ( - COUNT( * ), - COUNT( * ) - 31 * - 2, 63 ) + 23, 95 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL 15 * - 28 * + CASE + - CAST ( - 36 AS INTEGER ) WHEN + 8 + - 60 * - + 11 THEN - + CASE - - CAST ( NULL AS REAL ) WHEN ( + 53 ) THEN - + 37 / - 59 WHEN - NULLIF ( 74, - 37 + COUNT ( * ) * - 2 ) + - 22 THEN + 42 WHEN ( 76 ) - COUNT ( * ) THEN COUNT ( * ) ELSE NULL END END * + COALESCE ( 56 / - COALESCE ( - COUNT ( * ), - COUNT ( * ) - 31 * - 2, 63 ) + 23, 95 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT MAX( ALL - 57 ) * 96
----
-5472

skipif mysql # not compatible
query I rowsort label-553
SELECT MAX ( ALL - 57 ) * 96
----
-5472

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT ALL 27 + NULLIF ( 99, - COUNT( * ) * - 81 * + 8 * + COUNT( * ) )
----
126

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL 27 + NULLIF ( 99, - COUNT ( * ) * - 81 * + 8 * + COUNT ( * ) )
----
126

query I rowsort
SELECT DISTINCT 50 + - - 43
----
93

query I rowsort
SELECT ALL + 46 + - 34
----
12

query I rowsort
SELECT ALL 79 + ( - + NULLIF ( - 33, + + 31 * - - 57 ) )
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-558
SELECT COALESCE ( - 21, + - 21, 65 DIV - 7 + - 11 + SUM( + 57 ) * + 16 DIV COALESCE ( + - COUNT( * ), - 83 ) * - 46 * + - COUNT( * ) + 10 + NULLIF ( ( - 27 ), + 21 * 21 ) ) * 7 AS col2
----
-147

skipif mysql # not compatible
query I rowsort label-558
SELECT COALESCE ( - 21, + - 21, 65 / - 7 + - 11 + SUM ( + 57 ) * + 16 / COALESCE ( + - COUNT ( * ), - 83 ) * - 46 * + - COUNT ( * ) + 10 + NULLIF ( ( - 27 ), + 21 * 21 ) ) * 7 AS col2
----
-147

query I rowsort
SELECT 24 * 92 AS col1
----
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT ALL COUNT( * ) + + + 80
----
81

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL COUNT ( * ) + + + 80
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT ALL + CASE ( 39 ) WHEN - - 46 + + ( + 91 ) THEN - 67 WHEN - + 71 * - 98 THEN NULL ELSE NULL END / - 28 * + SUM( - 14 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL + CASE ( 39 ) WHEN - - 46 + + ( + 91 ) THEN - 67 WHEN - + 71 * - 98 THEN NULL ELSE NULL END / - 28 * + SUM ( - 14 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT 4 + COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-562
SELECT 4 + COUNT ( * ) AS col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-563
SELECT ( - 90 ) + - + 73 DIV + 56
----
-91

skipif mysql # not compatible
query I rowsort label-563
SELECT ( - 90 ) + - + 73 / + 56
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT ALL COUNT( * ) + - - 6 * COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL COUNT ( * ) + - - 6 * COUNT ( * )
----
7

query I rowsort
SELECT 20 * 91
----
1820

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT ALL - - MIN( 93 ) - + + 46
----
47

skipif mysql # not compatible
query I rowsort label-567
SELECT ALL - - MIN ( 93 ) - + + 46
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT - CASE - AVG ( + 51 ) WHEN + 71 - - ( 35 ) THEN + 89 ELSE + 38 * + - COUNT( * ) END
----
38

skipif mysql # not compatible
query I rowsort label-568
SELECT - CASE - AVG ( + 51 ) WHEN + 71 - - ( 35 ) THEN + 89 ELSE + 38 * + - COUNT ( * ) END
----
38

query II rowsort
SELECT 75 - + - 81 AS col0, - 26
----
156
-26

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

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

query I rowsort
SELECT - 99 + + 34 AS col0
----
-65

query I rowsort
SELECT 52 * - 38 * 86 + + 5
----
-169931

onlyif mysql # DIV for integer division: 
query I rowsort label-573
SELECT ALL + + 51 DIV 95 * + 72
----
0

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL + + 51 / 95 * + 72
----
0

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

skipif mysql # not compatible
query I rowsort label-574
SELECT - MAX ( + + 59 )
----
-59

query I rowsort
SELECT ALL + 86 * - + 14 + + 11 AS col1
----
-1193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-576
SELECT + 48 * + 37 + + ( - CAST( - COUNT( * ) AS SIGNED ) ) AS col2
----
1777

skipif mysql # not compatible
query I rowsort label-576
SELECT + 48 * + 37 + + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2
----
1777

query I rowsort
SELECT 41 + + + 45 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT - COUNT( * ) * + 72 * - + 9 AS col2
----
648

skipif mysql # not compatible
query I rowsort label-578
SELECT - COUNT ( * ) * + 72 * - + 9 AS col2
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT - 84 * COUNT( * ) + 6 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-579
SELECT - 84 * COUNT ( * ) + 6 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT COUNT( * ) * - 86 + 85 + ( - + CASE + NULLIF ( - 67, - - 6 ) WHEN 93 THEN + + 0 ELSE NULL END ) * - 35 * - 50 / + - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-580
SELECT COUNT ( * ) * - 86 + 85 + ( - + CASE + NULLIF ( - 67, - - 6 ) WHEN 93 THEN + + 0 ELSE NULL END ) * - 35 * - 50 / + - 79 AS col1
----
NULL

query I rowsort
SELECT ALL - 7 * + 24 + 69 + + 14 * 4
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-582
SELECT ALL - 57 * 85 + - 34 DIV SUM( + 83 ) AS col1
----
-4845

skipif mysql # not compatible
query I rowsort label-582
SELECT ALL - 57 * 85 + - 34 / SUM ( + 83 ) AS col1
----
-4845

query II rowsort
SELECT + 94 AS col2, 84 AS col2
----
94
84

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT DISTINCT 69 * 67 + - + CASE + 66 WHEN - + 38 + 12 THEN NULL WHEN + 82 THEN NULL WHEN + + 30 THEN + 21 + 60 + - 54 / 29 * + ( - COUNT( * ) ) ELSE NULL END + - MIN( - - 25 ) + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT 69 * 67 + - + CASE + 66 WHEN - + 38 + 12 THEN NULL WHEN + 82 THEN NULL WHEN + + 30 THEN + 21 + 60 + - 54 / 29 * + ( - COUNT ( * ) ) ELSE NULL END + - MIN ( - - 25 ) + 1 AS col0
----
NULL

query II rowsort
SELECT + 99 AS col1, - 89 col0
----
99
-89

query I rowsort
SELECT DISTINCT 75 * + - 78 + 16 + - ( - + ( 79 ) )
----
-5755

query II rowsort
SELECT + 54 col1, + 71 col0
----
54
71

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-589
SELECT 95 + - 5 + 39 + + - CASE + - 96 WHEN 53 * COUNT( * ) + 28 * + 49 * + 38 / CAST( NULL AS SIGNED ) / ( - - 76 ) THEN + 6 + COUNT( * ) WHEN + 3 + - + 55 + 27 THEN + 99 - ( 96 - 17 ) END * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-589
SELECT 95 + - 5 + 39 + + - CASE + - 96 WHEN 53 * COUNT ( * ) + 28 * + 49 * + 38 / CAST ( NULL AS INTEGER ) / ( - - 76 ) THEN + 6 + COUNT ( * ) WHEN + 3 + - + 55 + 27 THEN + 99 - ( 96 - 17 ) END * 19
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-590
SELECT 30 * + ( + - 56 ), COUNT( * ) * - 22 + + 97 AS col0
----
-1680
75

skipif mysql # not compatible
query II rowsort label-590
SELECT 30 * + ( + - 56 ), COUNT ( * ) * - 22 + + 97 AS col0
----
-1680
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-591
SELECT ALL 67 * COUNT( * ) * 17 DIV - CASE - + 63 WHEN + COUNT( * ) * + 46 THEN NULL ELSE - 37 + NULLIF ( ( - - ( - ( - CAST( - 9 AS SIGNED ) ) ) ), + 36 * + + 11 + + 29 ) END
----
24

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL 67 * COUNT ( * ) * 17 / - CASE - + 63 WHEN + COUNT ( * ) * + 46 THEN NULL ELSE - 37 + NULLIF ( ( - - ( - ( - CAST ( - 9 AS INTEGER ) ) ) ), + 36 * + + 11 + + 29 ) END
----
24

query I rowsort
SELECT ALL COALESCE ( - 84, COALESCE ( + 62, 86 ) * - 21 ) * 88 AS col2
----
-7392

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

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL + 15 + - + COUNT ( * ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT SUM( - ( 92 ) )
----
-92

skipif mysql # not compatible
query I rowsort label-594
SELECT SUM ( - ( 92 ) )
----
-92

query I rowsort
SELECT 88 * - 33 + + 53 col0
----
-2851

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT SUM( - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-596
SELECT SUM ( - 6 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-597
SELECT ALL ( + 55 ) - - 46 + + + 19 * + - 79 * + CAST( NULL AS SIGNED ) + + - ( - 16 ) * + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL ( + 55 ) - - 46 + + + 19 * + - 79 * + CAST ( NULL AS INTEGER ) + + - ( - 16 ) * + 94 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-598
SELECT ALL + COALESCE ( + COUNT( * ), 94 ) AS col0, 30
----
1
30

skipif mysql # not compatible
query II rowsort label-598
SELECT ALL + COALESCE ( + COUNT ( * ), 94 ) AS col0, 30
----
1
30

query I rowsort
SELECT DISTINCT + 64 * - + 91
----
-5824

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT ALL COUNT( * ) - - 1 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL COUNT ( * ) - - 1 AS col0
----
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-602
SELECT - ( 1 ) + + 36 AS col1, + SUM( + CAST( NULL AS SIGNED ) ) - + COUNT( * )
----
35
NULL

skipif mysql # not compatible
query II rowsort label-602
SELECT - ( 1 ) + + 36 AS col1, + SUM ( + CAST ( NULL AS INTEGER ) ) - + COUNT ( * )
----
35
NULL

query I rowsort
SELECT + - 34 + + - 88 AS col2
----
-122

onlyif mysql # aggregate syntax: 
query II rowsort label-604
SELECT DISTINCT - 51 AS col1, MIN( ALL - 32 )
----
-51
-32

skipif mysql # not compatible
query II rowsort label-604
SELECT DISTINCT - 51 AS col1, MIN ( ALL - 32 )
----
-51
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-605
SELECT + COALESCE ( ( 18 ), - + 27 ) + COUNT( - - 5 ) * + + CAST( NULL AS SIGNED ) + - 65 + 2 * + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-605
SELECT + COALESCE ( ( 18 ), - + 27 ) + COUNT ( - - 5 ) * + + CAST ( NULL AS INTEGER ) + - 65 + 2 * + 55 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 48 * - 86 AS col1
----
-4128

query I rowsort
SELECT ALL - - 49 * - 87
----
-4263

query II rowsort
SELECT DISTINCT 89, - 15 AS col0
----
89
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT DISTINCT - 87 * - 33 + + + COUNT( * ) + + 9 * - + 27
----
2629

skipif mysql # not compatible
query I rowsort label-609
SELECT DISTINCT - 87 * - 33 + + + COUNT ( * ) + + 9 * - + 27
----
2629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-610
SELECT - + 18 + + COALESCE ( - 96, - NULLIF ( + - 29, CAST( 4 AS SIGNED ) + 62 * - 33 ) * 55 + - COUNT( * ) ) + + 47 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-610
SELECT - + 18 + + COALESCE ( - 96, - NULLIF ( + - 29, CAST ( 4 AS INTEGER ) + 62 * - 33 ) * 55 + - COUNT ( * ) ) + + 47 AS col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-611
SELECT - - NULLIF ( + COUNT( * ), - 66 / - CAST( 70 AS SIGNED ) ) + + 46 * - 53 AS col2
----
-2437

skipif mysql # not compatible
query I rowsort label-611
SELECT - - NULLIF ( + COUNT ( * ), - 66 / - CAST ( 70 AS INTEGER ) ) + + 46 * - 53 AS col2
----
-2437

query I rowsort
SELECT ALL 91 + + 30 AS col1
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-613
SELECT DISTINCT + COUNT( * ) + + 96 AS col2, COUNT( * ) * - + 44
----
97
-44

skipif mysql # not compatible
query II rowsort label-613
SELECT DISTINCT + COUNT ( * ) + + 96 AS col2, COUNT ( * ) * - + 44
----
97
-44

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

onlyif mysql # DIV for integer division: 
query I rowsort label-615
SELECT DISTINCT + 30 DIV + - 18 + - 55 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT + 30 / + - 18 + - 55 AS col0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-616
SELECT DISTINCT + 74 * - + CAST( + 82 AS SIGNED ) col1
----
-6068

skipif mysql # not compatible
query I rowsort label-616
SELECT DISTINCT + 74 * - + CAST ( + 82 AS INTEGER ) col1
----
-6068

query I rowsort
SELECT ALL + ( 14 ) * + 37 + - 60
----
458

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

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

query I rowsort
SELECT DISTINCT + CASE - 34 WHEN + 0 * + ( - 86 ) THEN - 86 ELSE NULL END * 20
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-620
SELECT - 32 DIV - 99 * 35
----
0

skipif mysql # not compatible
query I rowsort label-620
SELECT - 32 / - 99 * 35
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-621
SELECT - 1 DIV - + 99
----
0

skipif mysql # not compatible
query I rowsort label-621
SELECT - 1 / - + 99
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-622
SELECT DISTINCT 13 DIV MIN( ALL - 88 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-622
SELECT DISTINCT 13 / MIN ( ALL - 88 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT - 72 + MIN( DISTINCT 67 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-623
SELECT - 72 + MIN ( DISTINCT 67 ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT COUNT( - 86 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-624
SELECT COUNT ( - 86 ) col1
----
1

query I rowsort
SELECT + - 49 * + 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-626
SELECT - CASE + - 77 WHEN + 98 THEN + 85 * + 65 * + COUNT( CAST( - 80 AS SIGNED ) ) + CAST( - 6 AS SIGNED ) + + COALESCE ( - 83, COUNT( * ) * - NULLIF ( 17, + - 91 ) - + ( + 57 ) + - 0 * + COUNT( * ) + 10 * 23 ) WHEN - 71 * 46 THEN NULL END * + 60 - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-626
SELECT - CASE + - 77 WHEN + 98 THEN + 85 * + 65 * + COUNT ( CAST ( - 80 AS INTEGER ) ) + CAST ( - 6 AS INTEGER ) + + COALESCE ( - 83, COUNT ( * ) * - NULLIF ( 17, + - 91 ) - + ( + 57 ) + - 0 * + COUNT ( * ) + 10 * 23 ) WHEN - 71 * 46 THEN NULL END * + 60 - 46
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-627
SELECT ALL + 10 * 2 + 19 DIV - 29
----
20

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL + 10 * 2 + 19 / - 29
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT ALL - 99 / + + CASE + 15 WHEN - CASE - 23 WHEN + 45 THEN - 31 + 53 * - - 3 * - + 12 WHEN - NULLIF ( - 73, - 95 ) THEN NULL END THEN + COUNT( * ) WHEN + - AVG ( 34 ) * + NULLIF ( - MAX( DISTINCT + 97 ), - 83 * 23 - 29 ) + - ( - COUNT( * ) + 58 ) THEN NULL WHEN - 34 THEN + COUNT( * ) * - 6 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL - 99 / + + CASE + 15 WHEN - CASE - 23 WHEN + 45 THEN - 31 + 53 * - - 3 * - + 12 WHEN - NULLIF ( - 73, - 95 ) THEN NULL END THEN + COUNT ( * ) WHEN + - AVG ( 34 ) * + NULLIF ( - MAX ( DISTINCT + 97 ), - 83 * 23 - 29 ) + - ( - COUNT ( * ) + 58 ) THEN NULL WHEN - 34 THEN + COUNT ( * ) * - 6 END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-630
SELECT + 94 + 62 + + + 32 * + + COUNT( * ) AS col0, 53
----
188
53

skipif mysql # not compatible
query II rowsort label-630
SELECT + 94 + 62 + + + 32 * + + COUNT ( * ) AS col0, 53
----
188
53

query I rowsort
SELECT ALL 34 * ( + 14 )
----
476

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT + ( + 88 ) * MAX( ALL + 31 )
----
2728

skipif mysql # not compatible
query I rowsort label-632
SELECT + ( + 88 ) * MAX ( ALL + 31 )
----
2728

query II rowsort
SELECT - 61 + - - 89 AS col2, - 0
----
28
0

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT + 13 * + SUM( 10 ) * 93 - + ( ( + 53 ) ) AS col0
----
12037

skipif mysql # not compatible
query I rowsort label-634
SELECT + 13 * + SUM ( 10 ) * 93 - + ( ( + 53 ) ) AS col0
----
12037

onlyif mysql # aggregate syntax: 
query II rowsort label-635
SELECT + - COUNT( + 79 ) * 26 + + 86, + 2 AS col1
----
60
2

skipif mysql # not compatible
query II rowsort label-635
SELECT + - COUNT ( + 79 ) * 26 + + 86, + 2 AS col1
----
60
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-636
SELECT + - COUNT( * ) * + 52 * - 73 * + ( 36 ) * + 62 * - 68 * COALESCE ( + + COUNT( * ), 71 DIV AVG ( DISTINCT + 50 ) + MIN( DISTINCT 98 ) ) + ( - + 59 ) + - 40 * + 22 * + + 81 + 21 * + 9 - 28
----
-576212874

skipif mysql # not compatible
query I rowsort label-636
SELECT + - COUNT ( * ) * + 52 * - 73 * + ( 36 ) * + 62 * - 68 * COALESCE ( + + COUNT ( * ), 71 / AVG ( DISTINCT + 50 ) + MIN ( DISTINCT 98 ) ) + ( - + 59 ) + - 40 * + 22 * + + 81 + 21 * + 9 - 28
----
-576212874

query I rowsort
SELECT + - 89 + 72 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT ALL MIN( - - 12 )
----
12

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL MIN ( - - 12 )
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-639
SELECT + CAST( + - 74 AS SIGNED ) AS col1, - 15 AS col1
----
-74
-15

skipif mysql # not compatible
query II rowsort label-639
SELECT + CAST ( + - 74 AS INTEGER ) AS col1, - 15 AS col1
----
-74
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT + - COUNT( * ) + COALESCE ( NULLIF ( - COUNT( * ), + + 46 * - + 79 ), 16, NULLIF ( - 22, - 49 / ( - + 62 ) * - 12 ) * - 70 )
----
-2

skipif mysql # not compatible
query I rowsort label-640
SELECT + - COUNT ( * ) + COALESCE ( NULLIF ( - COUNT ( * ), + + 46 * - + 79 ), 16, NULLIF ( - 22, - 49 / ( - + 62 ) * - 12 ) * - 70 )
----
-2

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

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

query II rowsort
SELECT + + 28 + 8 AS col1, ( - 14 ) AS col2
----
36
-14

query II rowsort
SELECT ALL + 1 + + 64 AS col2, + 52 AS col0
----
65
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-644
SELECT DISTINCT CASE + 86 WHEN - - 11 THEN - CAST( CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-644
SELECT DISTINCT CASE + 86 WHEN - - 11 THEN - CAST ( CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 63 + - + 56 AS col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-646
SELECT + ( + - 96 ) + COUNT( * ) * + 76 * + 43 AS col2, - 80
----
3172
-80

skipif mysql # not compatible
query II rowsort label-646
SELECT + ( + - 96 ) + COUNT ( * ) * + 76 * + 43 AS col2, - 80
----
3172
-80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT ALL CASE - 97 WHEN + 17 THEN + COUNT( * ) * + + CASE + 37 WHEN 5 THEN NULL WHEN - 99 THEN ( 58 ) END * 22 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL CASE - 97 WHEN + 17 THEN + COUNT ( * ) * + + CASE + 37 WHEN 5 THEN NULL WHEN - 99 THEN ( 58 ) END * 22 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT + COUNT( * ) * - MAX( + 29 ) + + COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-649
SELECT + COUNT ( * ) * - MAX ( + 29 ) + + COUNT ( * ) AS col2
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-650
SELECT - 30 DIV + COUNT( ALL - 89 ) - 87 col0
----
-117

skipif mysql # not compatible
query I rowsort label-650
SELECT - 30 / + COUNT ( ALL - 89 ) - 87 col0
----
-117

query I rowsort
SELECT 34 * 44 * - 21 AS col1
----
-31416

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT - COUNT( * ) * 29 + 62 - NULLIF ( COUNT( * ), + 41 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-652
SELECT - COUNT ( * ) * 29 + 62 - NULLIF ( COUNT ( * ), + 41 ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT ALL + COUNT( * ) / 3 / - CASE + 66 WHEN 30 / MAX( ALL - 41 ) - + + ( + 81 ) + 76 + 28 * + - 88 + + 51 THEN 85 * + NULLIF ( - 0, - - 75 + + - MIN( - 29 ) + + 93 ) WHEN 79 * CASE + COALESCE ( 0, + 67 + + 23, + MAX( DISTINCT 67 ) ) WHEN + COALESCE ( ( - COUNT( * ) ), COALESCE ( 16, + 15 * 45 - 77 ), + 40 ) * - COUNT( * ) THEN NULL ELSE 62 END THEN NULL WHEN ( 57 ) * + 59 + - 81 / + 78 THEN NULL END * + 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL + COUNT ( * ) / 3 / - CASE + 66 WHEN 30 / MAX ( ALL - 41 ) - + + ( + 81 ) + 76 + 28 * + - 88 + + 51 THEN 85 * + NULLIF ( - 0, - - 75 + + - MIN ( - 29 ) + + 93 ) WHEN 79 * CASE + COALESCE ( 0, + 67 + + 23, + MAX ( DISTINCT 67 ) ) WHEN + COALESCE ( ( - COUNT ( * ) ), COALESCE ( 16, + 15 * 45 - 77 ), + 40 ) * - COUNT ( * ) THEN NULL ELSE 62 END THEN NULL WHEN ( 57 ) * + 59 + - 81 / + 78 THEN NULL END * + 54 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-654
SELECT 25 DIV 83 + + + 16 + 71 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-654
SELECT 25 / 83 + + + 16 + 71 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT ALL - 52 - + 17 * - 34 + - SUM( 18 ) + 79 + - 40 * + COUNT( * ) - - 67 AS col0
----
614

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL - 52 - + 17 * - 34 + - SUM ( 18 ) + 79 + - 40 * + COUNT ( * ) - - 67 AS col0
----
614

query I rowsort
SELECT 20 * 86 * - 44
----
-75680

query I rowsort
SELECT 30 + - + 95 + 78 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT DISTINCT - NULLIF ( - 54, + - 72 / + COUNT( * ) + - COUNT( * ) + + 15 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT - NULLIF ( - 54, + - 72 / + COUNT ( * ) + - COUNT ( * ) + + 15 ) AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-659
SELECT SUM( ALL + 26 ) * - 6 + - 20 + + 74 * - 48 + + NULLIF ( 86, CASE - MAX( DISTINCT 96 ) WHEN + CASE 25 WHEN + + 96 THEN 59 + - - ( + 68 ) ELSE NULL END * - 80 * 30 - + 52 - - 81 THEN 92 - + CAST( + ( + 93 ) AS DECIMAL ) WHEN 26 THEN NULL ELSE NULLIF ( - CASE - COUNT( * ) WHEN - COALESCE ( 28, + 86 ) + + 23 THEN 14 ELSE NULL END, 37 ) END ) * - 80 + CASE 6 WHEN + COUNT( * ) THEN NULL ELSE 47 + + 97 DIV + 38 END
----
-10559

skipif mysql # not compatible
query I rowsort label-659
SELECT SUM ( ALL + 26 ) * - 6 + - 20 + + 74 * - 48 + + NULLIF ( 86, CASE - MAX ( DISTINCT 96 ) WHEN + CASE 25 WHEN + + 96 THEN 59 + - - ( + 68 ) ELSE NULL END * - 80 * 30 - + 52 - - 81 THEN 92 - + CAST ( + ( + 93 ) AS REAL ) WHEN 26 THEN NULL ELSE NULLIF ( - CASE - COUNT ( * ) WHEN - COALESCE ( 28, + 86 ) + + 23 THEN 14 ELSE NULL END, 37 ) END ) * - 80 + CASE 6 WHEN + COUNT ( * ) THEN NULL ELSE 47 + + 97 / + 38 END
----
-10559

query I rowsort
SELECT ALL - ( - + 53 ) - 42 AS col0
----
11

query I rowsort
SELECT 10 * - - 28
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT - 85 * + 14 * - + 32 + + - COUNT( * ) AS col2
----
38079

skipif mysql # not compatible
query I rowsort label-662
SELECT - 85 * + 14 * - + 32 + + - COUNT ( * ) AS col2
----
38079

query I rowsort
SELECT DISTINCT - 35 * + 85 AS col0
----
-2975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-664
SELECT ALL - ( + - 53 ) * CAST( NULLIF ( + - 63, - + COALESCE ( + - 33, + 30 * - 30 - + 67 / - 1 ) ) AS SIGNED )
----
-3339

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL - ( + - 53 ) * CAST ( NULLIF ( + - 63, - + COALESCE ( + - 33, + 30 * - 30 - + 67 / - 1 ) ) AS INTEGER )
----
-3339

query I rowsort
SELECT - 51 + + 39 AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-666
SELECT - + 78 * - 46 * 27 + + 16 + ( - + 26 ) + 24 - - - COALESCE ( - SUM( - - NULLIF ( + 23, + CAST( - 95 AS SIGNED ) + + 78 ) ), + + 21 * - - 59 - + 8 + - 23, ( - - 26 ) ) DIV 81
----
96890

skipif mysql # not compatible
query I rowsort label-666
SELECT - + 78 * - 46 * 27 + + 16 + ( - + 26 ) + 24 - - - COALESCE ( - SUM ( - - NULLIF ( + 23, + CAST ( - 95 AS INTEGER ) + + 78 ) ), + + 21 * - - 59 - + 8 + - 23, ( - - 26 ) ) / 81
----
96890

query I rowsort
SELECT DISTINCT - - 90 * - - 82 AS col2
----
7380

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT - 79 * + 5 + - 56 + 85 DIV 12 * + 0 AS col0
----
-451

skipif mysql # not compatible
query I rowsort label-668
SELECT - 79 * + 5 + - 56 + 85 / 12 * + 0 AS col0
----
-451

query II rowsort
SELECT DISTINCT - 9, - 46 AS col1
----
-9
-46

query I rowsort
SELECT DISTINCT + 31 + + 81
----
112

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

skipif mysql # not compatible
query I rowsort label-671
SELECT + CAST ( NULL AS INTEGER ) + MAX ( ALL - 23 ) - - + 37 * - - 37 * + 62 + + + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT COUNT( * ) + + - COALESCE ( COUNT( * ), 53 + - 87 + - 43, + 11 * - - 0 + + - 13, - - 58 * - ( - COUNT( * ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-672
SELECT COUNT ( * ) + + - COALESCE ( COUNT ( * ), 53 + - 87 + - 43, + 11 * - - 0 + + - 13, - - 58 * - ( - COUNT ( * ) ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT ALL - + COUNT( ALL - 93 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-673
SELECT ALL - + COUNT ( ALL - 93 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-674
SELECT DISTINCT 73 AS col0, - CASE - 73 WHEN - 20 + + AVG ( + 61 ) + + COALESCE ( + 75, - + 34 + - 83 ) THEN 26 * - 85 WHEN - - COALESCE ( + CASE 69 WHEN 80 - + + 98 / + + COUNT( * ) + 64 - + COALESCE ( 94, + 12 + CAST( - ( 83 ) AS SIGNED ) / - 94, - 49 + 76 ) / 35 THEN NULL WHEN + 18 * 69 THEN - 23 ELSE - 50 + 53 END, 41 * ( 37 / 38 ) ) * - ( CAST( NULL AS SIGNED ) + 35 ) + COUNT( * ) THEN 55 * 87 END col0
----
73
NULL

skipif mysql # not compatible
query II rowsort label-674
SELECT DISTINCT 73 AS col0, - CASE - 73 WHEN - 20 + + AVG ( + 61 ) + + COALESCE ( + 75, - + 34 + - 83 ) THEN 26 * - 85 WHEN - - COALESCE ( + CASE 69 WHEN 80 - + + 98 / + + COUNT ( * ) + 64 - + COALESCE ( 94, + 12 + CAST ( - ( 83 ) AS INTEGER ) / - 94, - 49 + 76 ) / 35 THEN NULL WHEN + 18 * 69 THEN - 23 ELSE - 50 + 53 END, 41 * ( 37 / 38 ) ) * - ( CAST ( NULL AS INTEGER ) + 35 ) + COUNT ( * ) THEN 55 * 87 END col0
----
73
NULL

query I rowsort
SELECT + 86 * + + 87 + + ( - 14 ) * - + 3
----
7524

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT ALL COUNT( * ) + - MAX( DISTINCT 91 ) * + 41
----
-3730

skipif mysql # not compatible
query I rowsort label-676
SELECT ALL COUNT ( * ) + - MAX ( DISTINCT 91 ) * + 41
----
-3730

query I rowsort
SELECT 40 + + 78 - + 76
----
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT ALL - - 60 + + + SUM( ALL - + 28 )
----
32

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL - - 60 + + + SUM ( ALL - + 28 )
----
32

query II rowsort
SELECT DISTINCT + 44 + + 94 + 61, 84 AS col1
----
199
84

query I rowsort
SELECT 5 + + 3
----
8

query I rowsort
SELECT 89 * 52 * 55
----
254540

query III rowsort
SELECT - 37, + 51 AS col1, - + 65 col2
----
-37
51
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-684
SELECT 65 AS col1, COUNT( * ) + + 98
----
65
99

skipif mysql # not compatible
query II rowsort label-684
SELECT 65 AS col1, COUNT ( * ) + + 98
----
65
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT ALL COUNT( * ) * - 94 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL COUNT ( * ) * - 94 AS col2
----
-94

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-688
SELECT COUNT( * ) DIV + + NULLIF ( ( - 33 ), - - 7 * - + 42 )
----
0

skipif mysql # not compatible
query I rowsort label-688
SELECT COUNT ( * ) / + + NULLIF ( ( - 33 ), - - 7 * - + 42 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-689
SELECT DISTINCT NULLIF ( - 31, + + 29 * 29 * AVG ( ALL - - 52 ) ) * - 93 AS col2, ( - 46 ) / 74 * 79 * 66 / + + COUNT( * ) * + 27 + + CAST( NULL AS SIGNED ) * 71 + - + COUNT( ALL - + 95 )
----
2883
NULL

skipif mysql # not compatible
query II rowsort label-689
SELECT DISTINCT NULLIF ( - 31, + + 29 * 29 * AVG ( ALL - - 52 ) ) * - 93 AS col2, ( - 46 ) / 74 * 79 * 66 / + + COUNT ( * ) * + 27 + + CAST ( NULL AS INTEGER ) * 71 + - + COUNT ( ALL - + 95 )
----
2883
NULL

query I rowsort
SELECT 21 * - 11 - + 93
----
-324

query I rowsort
SELECT 59 * 79 * - 35
----
-163135

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

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL - MAX ( ALL - - 61 )
----
-61

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT + MIN( DISTINCT + 28 ) * + - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-695
SELECT + MIN ( DISTINCT + 28 ) * + - COUNT ( * )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-696
SELECT DISTINCT + 41 + CASE + 17 WHEN + + CASE + + COALESCE ( + 51, + - COUNT( * ) - - + 15, + 60 ) WHEN + CAST( - MAX( 59 ) AS DECIMAL ) - - 99 THEN NULL ELSE 17 END * - COUNT( * ) THEN NULL WHEN 98 THEN 50 DIV - 70 WHEN 2 + + 82 * + + ( + AVG ( 99 ) ) * + ( 89 * SUM( DISTINCT 10 ) ) THEN NULL ELSE ( NULLIF ( + 55, - COUNT( * ) * - 1 - + 54 ) ) * + 24 - 92 END DIV 80
----
56

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT + 41 + CASE + 17 WHEN + + CASE + + COALESCE ( + 51, + - COUNT ( * ) - - + 15, + 60 ) WHEN + CAST ( - MAX ( 59 ) AS REAL ) - - 99 THEN NULL ELSE 17 END * - COUNT ( * ) THEN NULL WHEN 98 THEN 50 / - 70 WHEN 2 + + 82 * + + ( + AVG ( 99 ) ) * + ( 89 * SUM ( DISTINCT 10 ) ) THEN NULL ELSE ( NULLIF ( + 55, - COUNT ( * ) * - 1 - + 54 ) ) * + 24 - 92 END / 80
----
56

query I rowsort
SELECT ALL + 83 + + 38 - - + 77 + - 14 AS col0
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT ALL - 2 + + MAX( ALL - 42 )
----
-44

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL - 2 + + MAX ( ALL - 42 )
----
-44

query II rowsort
SELECT 30, 30 * + 54 AS col0
----
30
1620

query I rowsort
SELECT 44 * 3 AS col1
----
132

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-701
SELECT + + 31 AS col0, 96 col2, - CAST( NULL AS DECIMAL ) / - 87
----
31
96
NULL

skipif mysql # not compatible
query III rowsort label-701
SELECT + + 31 AS col0, 96 col2, - CAST ( NULL AS REAL ) / - 87
----
31
96
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-702
SELECT ALL - MIN( DISTINCT - CAST( - + 28 AS SIGNED ) ) + - + 4
----
-32

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL - MIN ( DISTINCT - CAST ( - + 28 AS INTEGER ) ) + - + 4
----
-32

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-704
SELECT ALL + - 62 - ( + 37 ) + 32 + - 3 + - 44 DIV COUNT( * ) AS col2
----
-114

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL + - 62 - ( + 37 ) + 32 + - 3 + - 44 / COUNT ( * ) AS col2
----
-114

query I rowsort
SELECT + 66 * + 81 + - 74
----
5272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-706
SELECT 89 * + NULLIF ( + COALESCE ( 39, 56, - + CAST( NULL AS SIGNED ) + 19 DIV ( - COUNT( * ) ) + COUNT( + - 11 ) ), - 36 * + ( 71 ) ) col1
----
3471

skipif mysql # not compatible
query I rowsort label-706
SELECT 89 * + NULLIF ( + COALESCE ( 39, 56, - + CAST ( NULL AS INTEGER ) + 19 / ( - COUNT ( * ) ) + COUNT ( + - 11 ) ), - 36 * + ( 71 ) ) col1
----
3471

query I rowsort
SELECT DISTINCT COALESCE ( + 19, + 19 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT DISTINCT COUNT( * ) - + 66 + + 79 * - ( + 91 ) AS col2
----
-7254

skipif mysql # not compatible
query I rowsort label-708
SELECT DISTINCT COUNT ( * ) - + 66 + + 79 * - ( + 91 ) AS col2
----
-7254

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

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

query I rowsort
SELECT DISTINCT + 52 * 14
----
728

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT - 49 * - + 54 * COUNT( - + 20 ) * 0 * + - 26
----
0

skipif mysql # not compatible
query I rowsort label-711
SELECT - 49 * - + 54 * COUNT ( - + 20 ) * 0 * + - 26
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-712
SELECT + 43 + - CAST( + - 16 AS SIGNED ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-712
SELECT + 43 + - CAST ( + - 16 AS INTEGER ) AS col0
----
59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT DISTINCT + 67 * + 55 + - 82 + + MAX( ALL + 60 )
----
3663

skipif mysql # not compatible
query I rowsort label-714
SELECT DISTINCT + 67 * + 55 + - 82 + + MAX ( ALL + 60 )
----
3663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-715
SELECT + 95 + CASE - - COUNT( * ) WHEN - 11 THEN NULL WHEN - 4 + + 19 THEN NULL WHEN + 63 THEN - ( + - 12 ) + - + 60 WHEN + - COUNT( * ) THEN + ( - 51 ) ELSE - COALESCE ( COALESCE ( - 84, + - MAX( ( + 57 ) ) * - 93 * CASE + 12 WHEN - 43 + SUM( ALL + ( 88 ) ) THEN 1 WHEN 82 THEN - SUM( + 1 ) END, 88 * - 36 ), 21 ) END DIV 70 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-715
SELECT + 95 + CASE - - COUNT ( * ) WHEN - 11 THEN NULL WHEN - 4 + + 19 THEN NULL WHEN + 63 THEN - ( + - 12 ) + - + 60 WHEN + - COUNT ( * ) THEN + ( - 51 ) ELSE - COALESCE ( COALESCE ( - 84, + - MAX ( ( + 57 ) ) * - 93 * CASE + 12 WHEN - 43 + SUM ( ALL + ( 88 ) ) THEN 1 WHEN 82 THEN - SUM ( + 1 ) END, 88 * - 36 ), 21 ) END / 70 AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-716
SELECT ALL - ( COUNT( * ) ) * - - CAST( - 47 AS SIGNED ) + ( + COUNT( * ) ) + + - 23 AS col1, - 91
----
25
-91

skipif mysql # not compatible
query II rowsort label-716
SELECT ALL - ( COUNT ( * ) ) * - - CAST ( - 47 AS INTEGER ) + ( + COUNT ( * ) ) + + - 23 AS col1, - 91
----
25
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT ALL - COUNT( * ) * - 85 + - 97 - 75
----
-87

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL - COUNT ( * ) * - 85 + - 97 - 75
----
-87

query I rowsort
SELECT + 70 + + + 42 AS col1
----
112

query I rowsort
SELECT ALL 39 * - ( 11 ) * - 26 AS col0
----
11154

query I rowsort
SELECT DISTINCT 61 * 77 + + 40 * 96 + + 11
----
8548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-721
SELECT ALL + ( 69 ) * - MAX( + - 48 ) + - CASE - CASE + 55 WHEN 70 THEN NULL ELSE 38 * + + 29 - - 22 * + 66 END WHEN + + 5 * + 92 * - + 33 * ( 13 ) DIV - 34 + - + 2 THEN NULL WHEN + 88 * 63 * - + 10 THEN NULL ELSE - 35 DIV + 90 END
----
3312

skipif mysql # not compatible
query I rowsort label-721
SELECT ALL + ( 69 ) * - MAX ( + - 48 ) + - CASE - CASE + 55 WHEN 70 THEN NULL ELSE 38 * + + 29 - - 22 * + 66 END WHEN + + 5 * + 92 * - + 33 * ( 13 ) / - 34 + - + 2 THEN NULL WHEN + 88 * 63 * - + 10 THEN NULL ELSE - 35 / + 90 END
----
3312

query II rowsort
SELECT DISTINCT 28 * + - 70 AS col1, 71 * - - 6 AS col0
----
-1960
426

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-723
SELECT ALL - + 98 / + CAST( NULL AS SIGNED ) + - 28 + + 84 * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL - + 98 / + CAST ( NULL AS INTEGER ) + - 28 + + 84 * 19
----
NULL

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

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

query I rowsort
SELECT + CASE + 46 WHEN 12 + 19 THEN - - 3 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT + - 64 * CASE - + COUNT( * ) WHEN 32 THEN - - 63 ELSE + + 22 END
----
-1408

skipif mysql # not compatible
query I rowsort label-726
SELECT + - 64 * CASE - + COUNT ( * ) WHEN 32 THEN - - 63 ELSE + + 22 END
----
-1408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-727
SELECT ALL + COALESCE ( - - MIN( ALL - + COALESCE ( + 3, - 4, - 64 ) ), + COUNT( * ) * ( + + SUM( - 86 ) ) + + 56, + CASE - CASE 15 WHEN + + 20 THEN + - CASE ( 55 ) WHEN + ( - + 13 ) THEN 40 ELSE NULL END * - + 55 + - 66 END WHEN COUNT( * ) THEN 37 ELSE CAST( 56 AS SIGNED ) END * 41 + COALESCE ( - 83, + 12 + - 7, - SUM( DISTINCT 65 ) + COALESCE ( 92 + 20 * - COUNT( * ), 42 ), MAX( + 14 ) * - 53 ) * 32 ) col1
----
-3

skipif mysql # not compatible
query I rowsort label-727
SELECT ALL + COALESCE ( - - MIN ( ALL - + COALESCE ( + 3, - 4, - 64 ) ), + COUNT ( * ) * ( + + SUM ( - 86 ) ) + + 56, + CASE - CASE 15 WHEN + + 20 THEN + - CASE ( 55 ) WHEN + ( - + 13 ) THEN 40 ELSE NULL END * - + 55 + - 66 END WHEN COUNT ( * ) THEN 37 ELSE CAST ( 56 AS INTEGER ) END * 41 + COALESCE ( - 83, + 12 + - 7, - SUM ( DISTINCT 65 ) + COALESCE ( 92 + 20 * - COUNT ( * ), 42 ), MAX ( + 14 ) * - 53 ) * 32 ) col1
----
-3

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

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

query I rowsort
SELECT ALL + 29 * + 70
----
2030

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT ALL COUNT( * ) * - + 59 * - ( + + 68 ) col0
----
4012

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL COUNT ( * ) * - + 59 * - ( + + 68 ) col0
----
4012

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-732
SELECT DISTINCT COUNT( * ) AS col1, 66 * + 52 * ( - 87 )
----
1
-298584

skipif mysql # not compatible
query II rowsort label-732
SELECT DISTINCT COUNT ( * ) AS col1, 66 * + 52 * ( - 87 )
----
1
-298584

query I rowsort
SELECT - 3 + + 18
----
15

query I rowsort
SELECT ALL COALESCE ( + + ( + 21 ), 84 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT - MIN( + 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-735
SELECT - MIN ( + 20 ) AS col2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-736
SELECT - 55 + 79 + + 72 DIV 18 + - 63
----
-35

skipif mysql # not compatible
query I rowsort label-736
SELECT - 55 + 79 + + 72 / 18 + - 63
----
-35

query II rowsort
SELECT - 4, + 37 - + - 9 col2
----
-4
46

onlyif mysql # aggregate syntax: 
query II rowsort label-738
SELECT - 58, SUM( DISTINCT - + 29 ) AS col0
----
-58
-29

skipif mysql # not compatible
query II rowsort label-738
SELECT - 58, SUM ( DISTINCT - + 29 ) AS col0
----
-58
-29

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-741
SELECT - 19 DIV 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-741
SELECT - 19 / 46 AS col1
----
0

query I rowsort
SELECT ALL 90 * + 81 * + - 25
----
-182250

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT - SUM( 78 ) * - 79 - - 62 AS col2
----
6224

skipif mysql # not compatible
query I rowsort label-743
SELECT - SUM ( 78 ) * - 79 - - 62 AS col2
----
6224

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT ALL + - 71 * MIN( 47 ) * MIN( DISTINCT - + 50 ) + + 23 * + SUM( - + 2 ) AS col0
----
166804

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL + - 71 * MIN ( 47 ) * MIN ( DISTINCT - + 50 ) + + 23 * + SUM ( - + 2 ) AS col0
----
166804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-746
SELECT - 98 * + + CASE + - 85 WHEN + NULLIF ( + - 18, - - CASE - 54 WHEN + 69 THEN + 22 ELSE NULL END ) THEN NULL WHEN - 38 THEN + CAST( - 62 AS SIGNED ) ELSE 64 + + 52 END
----
-11368

skipif mysql # not compatible
query I rowsort label-746
SELECT - 98 * + + CASE + - 85 WHEN + NULLIF ( + - 18, - - CASE - 54 WHEN + 69 THEN + 22 ELSE NULL END ) THEN NULL WHEN - 38 THEN + CAST ( - 62 AS INTEGER ) ELSE 64 + + 52 END
----
-11368

query I rowsort
SELECT + - 80 * - - 31 AS col2
----
-2480

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT + 50 * - ( + + SUM( + - 66 ) ) - 8 AS col1
----
3292

skipif mysql # not compatible
query I rowsort label-748
SELECT + 50 * - ( + + SUM ( + - 66 ) ) - 8 AS col1
----
3292

query I rowsort
SELECT - - 20 * + - 58 * 20 * 25
----
-580000

query II rowsort
SELECT - 87 AS col2, 45 AS col0
----
-87
45

onlyif mysql # DIV for integer division: 
query II rowsort label-751
SELECT ALL 66 DIV + COALESCE ( + - 95, + - 49 - 29 ) - 95 AS col0, 70
----
-95
70

skipif mysql # not compatible
query II rowsort label-751
SELECT ALL 66 / + COALESCE ( + - 95, + - 49 - 29 ) - 95 AS col0, 70
----
-95
70

query I rowsort
SELECT DISTINCT - ( + 67 ) * 17
----
-1139

onlyif mysql # aggregate syntax: 
query II rowsort label-753
SELECT + - 7 col2, 1 - - MAX( - - NULLIF ( 65, - ( + + 82 ) ) )
----
-7
66

skipif mysql # not compatible
query II rowsort label-753
SELECT + - 7 col2, 1 - - MAX ( - - NULLIF ( 65, - ( + + 82 ) ) )
----
-7
66

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

query II rowsort
SELECT ALL + - 14 AS col2, 29 * - 88 AS col0
----
-14
-2552

query I rowsort
SELECT + COALESCE ( - 60, - + 2 ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT SUM( + 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-757
SELECT SUM ( + 31 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT + + 93 * + 20 + - MIN( ALL 47 )
----
1813

skipif mysql # not compatible
query I rowsort label-758
SELECT + + 93 * + 20 + - MIN ( ALL 47 )
----
1813

query I rowsort
SELECT + - 87 * - + 6 AS col0
----
522

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-760
SELECT + COUNT( * ) AS col2, 69 DIV 48
----
1
1

skipif mysql # not compatible
query II rowsort label-760
SELECT + COUNT ( * ) AS col2, 69 / 48
----
1
1

query I rowsort
SELECT COALESCE ( 89, - + 69 ) AS col1
----
89

query I rowsort
SELECT - 95 * - + ( - - 70 ) + + ( + 9 ) AS col2
----
6659

query I rowsort
SELECT ( + + 92 ) * 99
----
9108

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

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

query I rowsort
SELECT DISTINCT ( + + 42 ) + - - 14
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-766
SELECT DISTINCT + 17 + COUNT( * ) + + 96 * - COUNT( * ), - 87 - + + 82 AS col0
----
-78
-169

skipif mysql # not compatible
query II rowsort label-766
SELECT DISTINCT + 17 + COUNT ( * ) + + 96 * - COUNT ( * ), - 87 - + + 82 AS col0
----
-78
-169

query I rowsort
SELECT ALL - 62 + + - 27 * + 82 AS col2
----
-2276

query I rowsort
SELECT 55 - + - 86 AS col1
----
141

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

skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT 19 * + 86 * COUNT ( * ) / + ( + COUNT ( * ) ) AS col2
----
1634

query I rowsort
SELECT 65 - - - 7 * - 13
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-771
SELECT 39 + + ( + 61 ) + - 47 DIV + 59 * - 6
----
100

skipif mysql # not compatible
query I rowsort label-771
SELECT 39 + + ( + 61 ) + - 47 / + 59 * - 6
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-772
SELECT 74 DIV + 39 col0
----
1

skipif mysql # not compatible
query I rowsort label-772
SELECT 74 / + 39 col0
----
1

query II rowsort
SELECT ALL - - 6 + 74, 55 col2
----
80
55

query I rowsort
SELECT ALL + + 27 - - 80
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-775
SELECT DISTINCT - + 64 DIV COUNT( * ) + - 57 AS col0
----
-121

skipif mysql # not compatible
query I rowsort label-775
SELECT DISTINCT - + 64 / COUNT ( * ) + - 57 AS col0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT - ( + COUNT( + + 77 ) ) + + - 72 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-776
SELECT - ( + COUNT ( + + 77 ) ) + + - 72 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-777
SELECT ALL - CASE + COUNT( * ) WHEN 41 + + AVG ( ALL - 54 ) * - 48 THEN - 37 END - - - ( - 31 ), - 79 AS col1
----
NULL
-79

skipif mysql # not compatible
query II rowsort label-777
SELECT ALL - CASE + COUNT ( * ) WHEN 41 + + AVG ( ALL - 54 ) * - 48 THEN - 37 END - - - ( - 31 ), - 79 AS col1
----
NULL
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-778
SELECT + 54 DIV - 21 + + - 71
----
-73

skipif mysql # not compatible
query I rowsort label-778
SELECT + 54 / - 21 + + - 71
----
-73

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-780
SELECT + COALESCE ( - 49, + - CASE 13 WHEN - - NULLIF ( COALESCE ( COUNT( * ), + 78 ), CASE - COUNT( * ) WHEN - 17 THEN NULL WHEN - ( 14 ) THEN NULL WHEN - + 80 + + 73 + - - COUNT( * ) THEN 28 END ) - - 39 + 55 - 69 * - SUM( - 2 ) + - - 44 / - - 11 THEN NULL WHEN CAST( - COUNT( DISTINCT - 95 ) AS SIGNED ) THEN - 82 ELSE NULL END + COALESCE ( ( + 73 ), 69 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-780
SELECT + COALESCE ( - 49, + - CASE 13 WHEN - - NULLIF ( COALESCE ( COUNT ( * ), + 78 ), CASE - COUNT ( * ) WHEN - 17 THEN NULL WHEN - ( 14 ) THEN NULL WHEN - + 80 + + 73 + - - COUNT ( * ) THEN 28 END ) - - 39 + 55 - 69 * - SUM ( - 2 ) + - - 44 / - - 11 THEN NULL WHEN CAST ( - COUNT ( DISTINCT - 95 ) AS INTEGER ) THEN - 82 ELSE NULL END + COALESCE ( ( + 73 ), 69 ) )
----
-49

query I rowsort
SELECT - 4 * 82
----
-328

onlyif mysql # aggregate syntax: 
query II rowsort label-782
SELECT 91 + - COUNT( * ) AS col0, + COUNT( DISTINCT - - NULLIF ( - 9, + 19 ) ) + + 49
----
90
50

skipif mysql # not compatible
query II rowsort label-782
SELECT 91 + - COUNT ( * ) AS col0, + COUNT ( DISTINCT - - NULLIF ( - 9, + 19 ) ) + + 49
----
90
50

query I rowsort
SELECT + + 24 col0
----
24

query I rowsort
SELECT + 70 * - - 45 * - 6
----
-18900

query I rowsort
SELECT DISTINCT 21 * + 11
----
231

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT DISTINCT - COUNT( * ) + + - 36 + + 19 - + 92 + - ( + 80 )
----
-190

skipif mysql # not compatible
query I rowsort label-787
SELECT DISTINCT - COUNT ( * ) + + - 36 + + 19 - + 92 + - ( + 80 )
----
-190

onlyif mysql # DIV for integer division: 
query I rowsort label-788
SELECT 4 DIV + 21
----
0

skipif mysql # not compatible
query I rowsort label-788
SELECT 4 / + 21
----
0

query I rowsort
SELECT 40 * - 10 AS col0
----
-400

query II rowsort
SELECT DISTINCT 93 AS col2, - 3 * + - 63 AS col2
----
93
189

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT ALL COUNT( * ) + - 81
----
-80

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL COUNT ( * ) + - 81
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT 39 + - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-792
SELECT 39 + - COUNT ( * )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-793
SELECT DISTINCT 31 + - COUNT( * ) DIV - + ( + + 78 ) + + 66 * CAST( 42 AS SIGNED )
----
2803

skipif mysql # not compatible
query I rowsort label-793
SELECT DISTINCT 31 + - COUNT ( * ) / - + ( + + 78 ) + + 66 * CAST ( 42 AS INTEGER )
----
2803

query I rowsort
SELECT DISTINCT 43 * - 37 * - 78 * + 36 col2
----
4467528

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

skipif mysql # not compatible
query I rowsort label-795
SELECT DISTINCT + 22 / ( ( + 84 ) ) * - 40 * COUNT ( - 6 ) + + 11 AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-796
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) + + + 37 * 27 + - ( - 75 ) * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-796
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) + + + 37 * 27 + - ( - 75 ) * - 54
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-797
SELECT ( - CAST( - COALESCE ( 22, 63 * - 81 - + 26 * - - 26 ) AS SIGNED ) ) + 65 DIV + 56 AS col0, - 54
----
23
-54

skipif mysql # not compatible
query II rowsort label-797
SELECT ( - CAST ( - COALESCE ( 22, 63 * - 81 - + 26 * - - 26 ) AS INTEGER ) ) + 65 / + 56 AS col0, - 54
----
23
-54

query I rowsort
SELECT ALL 72 - + 94
----
-22

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

skipif mysql # not compatible
query II rowsort label-799
SELECT - 26 col0, + ( - - COUNT ( * ) )
----
-26
1

query I rowsort
SELECT ALL + ( - 96 ) - + 8
----
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-801
SELECT DISTINCT COUNT( ALL + 15 ) * 36 AS col0, + 56
----
36
56

skipif mysql # not compatible
query II rowsort label-801
SELECT DISTINCT COUNT ( ALL + 15 ) * 36 AS col0, + 56
----
36
56

query I rowsort
SELECT ALL - 48 * - 99 AS col2
----
4752

query II rowsort
SELECT ALL + - 35 AS col0, 71 col1
----
-35
71

query II rowsort
SELECT + 5 AS col2, - 52 * 35 AS col1
----
5
-1820

query I rowsort
SELECT - 79 * - - 18
----
-1422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-806
SELECT + 3 * + + CAST( + COUNT( * ) AS SIGNED ) + - COUNT( * ) * - 44 * 43 DIV + 65 - - - ( + 34 ) - + 40 AS col1, - ( - 98 ) col0
----
-42
98

skipif mysql # not compatible
query II rowsort label-806
SELECT + 3 * + + CAST ( + COUNT ( * ) AS INTEGER ) + - COUNT ( * ) * - 44 * 43 / + 65 - - - ( + 34 ) - + 40 AS col1, - ( - 98 ) col0
----
-42
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-807
SELECT - + COUNT( + 74 ) DIV SUM( - 48 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-807
SELECT - + COUNT ( + 74 ) / SUM ( - 48 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-808
SELECT DISTINCT + + MIN( DISTINCT + 96 ) DIV - CASE 3 WHEN - COUNT( * ) * - 38 * + 13 DIV - 9 + - 26 THEN NULL ELSE + 68 END * + 1
----
-1

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT + + MIN ( DISTINCT + 96 ) / - CASE 3 WHEN - COUNT ( * ) * - 38 * + 13 / - 9 + - 26 THEN NULL ELSE + 68 END * + 1
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-810
SELECT - + COUNT( * ) * 61 * + 76 DIV - COUNT( * ) + - CAST( NULLIF ( - COUNT( * ), - 62 ) AS SIGNED ) - ( - + 93 ) + - 36 + + 58 + COALESCE ( - 97, - 55 ) * + NULLIF ( + - 32, COALESCE ( - + 13, + ( - 60 ) ) * - - 46 * + 73 ) AS col1
----
7856

skipif mysql # not compatible
query I rowsort label-810
SELECT - + COUNT ( * ) * 61 * + 76 / - COUNT ( * ) + - CAST ( NULLIF ( - COUNT ( * ), - 62 ) AS INTEGER ) - ( - + 93 ) + - 36 + + 58 + COALESCE ( - 97, - 55 ) * + NULLIF ( + - 32, COALESCE ( - + 13, + ( - 60 ) ) * - - 46 * + 73 ) AS col1
----
7856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-811
SELECT ALL + 5 DIV - + SUM( + 69 ) * - 14 col1
----
0

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL + 5 / - + SUM ( + 69 ) * - 14 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-812
SELECT ALL + 62 * - - 17 + - 85 + - + CAST( NULL AS SIGNED ) * CASE + MIN( - ( - - 33 ) ) WHEN + 55 THEN - 94 WHEN - 59 THEN NULL ELSE 98 END * + COUNT( * ) + - 32 * - 77 * - 5 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL + 62 * - - 17 + - 85 + - + CAST ( NULL AS INTEGER ) * CASE + MIN ( - ( - - 33 ) ) WHEN + 55 THEN - 94 WHEN - 59 THEN NULL ELSE 98 END * + COUNT ( * ) + - 32 * - 77 * - 5 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-813
SELECT - CAST( - + 56 AS SIGNED ) + + + SUM( ALL + 70 ) AS col0
----
126

skipif mysql # not compatible
query I rowsort label-813
SELECT - CAST ( - + 56 AS INTEGER ) + + + SUM ( ALL + 70 ) AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT - 5 * - + 13 - + 94 + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-814
SELECT - 5 * - + 13 - + 94 + COUNT ( * )
----
-28

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

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

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

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

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

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

query II rowsort
SELECT + 89, - 85 col2
----
89
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-819
SELECT ALL - 7 * + - NULLIF ( - 22, + 2 + - 54 * + - 59 ), NULLIF ( + - 15, - COUNT( * ) + 61 * ( - 88 ) ) AS col1
----
-154
-15

skipif mysql # not compatible
query II rowsort label-819
SELECT ALL - 7 * + - NULLIF ( - 22, + 2 + - 54 * + - 59 ), NULLIF ( + - 15, - COUNT ( * ) + 61 * ( - 88 ) ) AS col1
----
-154
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-820
SELECT ALL 84 * 95 AS col0, + COUNT( * ) * COUNT( * )
----
7980
1

skipif mysql # not compatible
query II rowsort label-820
SELECT ALL 84 * 95 AS col0, + COUNT ( * ) * COUNT ( * )
----
7980
1

query I rowsort
SELECT DISTINCT + 63 - + 34
----
29

query I rowsort
SELECT + COALESCE ( - ( - - 43 ), + ( 73 ) * ( + NULLIF ( - - 96, + 70 * - - 86 ) ) ) + 6 * 66 * 2 AS col0
----
749

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT - COUNT( DISTINCT + - 50 ) - - 33 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-824
SELECT - COUNT ( DISTINCT + - 50 ) - - 33 AS col1
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-825
SELECT - COUNT( * ) AS col1, 32 * - 75
----
-1
-2400

skipif mysql # not compatible
query II rowsort label-825
SELECT - COUNT ( * ) AS col1, 32 * - 75
----
-1
-2400

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-827
SELECT ALL - CAST( 69 AS SIGNED ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL - CAST ( 69 AS INTEGER ) AS col0
----
-69

query I rowsort
SELECT ALL 83 * + + 83 + 92 + + - 86
----
6895

query I rowsort
SELECT + 23 - - ( + 28 )
----
51

query I rowsort
SELECT + + 83 / - 32 + + CASE 40 WHEN + 44 THEN + 82 WHEN - 81 * 25 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT - SUM( DISTINCT + 52 ) + + 99 + + 10 * + 17 AS col0
----
217

skipif mysql # not compatible
query I rowsort label-831
SELECT - SUM ( DISTINCT + 52 ) + + 99 + + 10 * + 17 AS col0
----
217

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

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

query II rowsort
SELECT ALL - 33, + 99 + - 2 + 91 AS col1
----
-33
188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-834
SELECT + 80 + CAST( + ( 0 ) AS SIGNED ) / CAST( NULL AS SIGNED ) + + 93 * + COUNT( * ) * + CASE + - 78 WHEN 16 / - + 54 THEN + + MIN( + + 55 ) - 84 WHEN 1 * + + COUNT( * ) + + ( + 38 ) + + - 44 THEN NULL WHEN - - 84 THEN NULL ELSE - - 31 * 50 + - + 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-834
SELECT + 80 + CAST ( + ( 0 ) AS INTEGER ) / CAST ( NULL AS INTEGER ) + + 93 * + COUNT ( * ) * + CASE + - 78 WHEN 16 / - + 54 THEN + + MIN ( + + 55 ) - 84 WHEN 1 * + + COUNT ( * ) + + ( + 38 ) + + - 44 THEN NULL WHEN - - 84 THEN NULL ELSE - - 31 * 50 + - + 14 END
----
NULL

query I rowsort
SELECT + 50 + - 10 * - + 32 AS col2
----
370

query I rowsort
SELECT + - 5 + + 30
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT ALL + COUNT( * ) + 92 * + + 60 AS col1
----
5521

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL + COUNT ( * ) + 92 * + + 60 AS col1
----
5521

onlyif mysql # aggregate syntax: 
query II rowsort label-838
SELECT ALL MIN( ALL + 95 ) AS col0, 76
----
95
76

skipif mysql # not compatible
query II rowsort label-838
SELECT ALL MIN ( ALL + 95 ) AS col0, 76
----
95
76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT 56 / + 42 * - - 66 * 29 * + 72 * + + 3 + 52 - - - MAX( DISTINCT - 2 ) * + + CASE COUNT( * ) WHEN + 4 / 15 THEN - COUNT( * ) ELSE NULL END * MAX( DISTINCT + 39 ) + - - 50 * - MIN( ALL - 11 ) + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-840
SELECT 56 / + 42 * - - 66 * 29 * + 72 * + + 3 + 52 - - - MAX ( DISTINCT - 2 ) * + + CASE COUNT ( * ) WHEN + 4 / 15 THEN - COUNT ( * ) ELSE NULL END * MAX ( DISTINCT + 39 ) + - - 50 * - MIN ( ALL - 11 ) + 2 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + ( + 83 ) * - - 2 + + 45 AS col0
----
211

query I rowsort
SELECT + + 81 + - 49 AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-843
SELECT ALL + ( + - 92 ) DIV + + 78 + + 9 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL + ( + - 92 ) / + + 78 + + 9 AS col2
----
8

query II rowsort
SELECT ALL + 28, 80 AS col0
----
28
80

query I rowsort
SELECT + 33 * 0 AS col2
----
0

query I rowsort
SELECT - 39 * - - 51 + + 99 col0
----
-1890

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-847
SELECT ( + + MIN( DISTINCT CAST( NULL AS DECIMAL ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-847
SELECT ( + + MIN ( DISTINCT CAST ( NULL AS REAL ) ) ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-848
SELECT ALL + COUNT ( * ) * + 61 + + COUNT ( * ) AS col1
----
62

query I rowsort
SELECT - 79 * + 91 * + 54 * + 54 * - + 33
----
691783092

query I rowsort
SELECT DISTINCT + 21 * - 74
----
-1554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-851
SELECT - COUNT( * ) * - 98 DIV CASE + - 58 WHEN + 27 THEN NULL ELSE + - 21 * + 75 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-851
SELECT - COUNT ( * ) * - 98 / CASE + - 58 WHEN + 27 THEN NULL ELSE + - 21 * + 75 END AS col2
----
0

query II rowsort
SELECT ALL + 76 * 68, - 70 AS col1
----
5168
-70

query I rowsort
SELECT DISTINCT + 58 * + 55 * 29 AS col0
----
92510

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT - COUNT( * ) * 10 * + 29 AS col0
----
-290

skipif mysql # not compatible
query I rowsort label-854
SELECT - COUNT ( * ) * 10 * + 29 AS col0
----
-290

query I rowsort
SELECT + ( 60 ) * + - 76 AS col2
----
-4560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-856
SELECT - 89 - + + ( + NULLIF ( - - CAST( + 40 AS SIGNED ), 70 ) ) * + 99 AS col1, ( 20 )
----
-4049
20

skipif mysql # not compatible
query II rowsort label-856
SELECT - 89 - + + ( + NULLIF ( - - CAST ( + 40 AS INTEGER ), 70 ) ) * + 99 AS col1, ( 20 )
----
-4049
20

query I rowsort
SELECT ALL NULLIF ( 34, 99 )
----
34

query I rowsort
SELECT DISTINCT + 59 * - 20
----
-1180

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

skipif mysql # not compatible
query I rowsort label-859
SELECT ALL + - COUNT ( * ) / + + 30
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT + ( - - CASE 78 WHEN - + 22 + - 77 THEN NULL WHEN - - SUM( - 32 ) THEN 41 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-860
SELECT + ( - - CASE 78 WHEN - + 22 + - 77 THEN NULL WHEN - - SUM ( - 32 ) THEN 41 END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-861
SELECT + MIN( DISTINCT + 31 ), 5 AS col1
----
31
5

skipif mysql # not compatible
query II rowsort label-861
SELECT + MIN ( DISTINCT + 31 ), 5 AS col1
----
31
5

query I rowsort
SELECT 84 * 34 AS col0
----
2856

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

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

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

skipif mysql # not compatible
query I rowsort label-864
SELECT 76 / 83
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-865
SELECT ALL - 5 + - - 94 * 58 DIV + 95
----
52

skipif mysql # not compatible
query I rowsort label-865
SELECT ALL - 5 + - - 94 * 58 / + 95
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT DISTINCT + 46 + + NULLIF ( - 7, ( - 62 ) * 8 ) * - 78 + - COUNT( * )
----
591

skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT + 46 + + NULLIF ( - 7, ( - 62 ) * 8 ) * - 78 + - COUNT ( * )
----
591

query I rowsort
SELECT ( + 81 ) * 92
----
7452

query II rowsort
SELECT ALL - 62 AS col1, 40
----
-62
40

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT 33 - + 85 + + + 71 + + COUNT( * ) * 59
----
78

skipif mysql # not compatible
query I rowsort label-869
SELECT 33 - + 85 + + + 71 + + COUNT ( * ) * 59
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-870
SELECT + 37 AS col0, COUNT( * ) DIV 33 DIV + + 35
----
37
0

skipif mysql # not compatible
query II rowsort label-870
SELECT + 37 AS col0, COUNT ( * ) / 33 / + + 35
----
37
0

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

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

query II rowsort
SELECT ( - 31 ) + + + ( 75 ), + 38 AS col1
----
44
38

query I rowsort
SELECT ALL 55 * + 1 * - - 37 col2
----
2035

query I rowsort
SELECT ( 2 ) * + 3 AS col2
----
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT 77 - - + SUM( ALL 23 ) - + COUNT( * ) + - 10 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-876
SELECT 77 - - + SUM ( ALL 23 ) - + COUNT ( * ) + - 10 AS col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-877
SELECT CASE - SUM( - - 34 ) WHEN 48 THEN - ( - CAST( + 84 AS SIGNED ) ) WHEN 63 THEN NULL WHEN COUNT( * ) * + MAX( DISTINCT + 25 ) THEN NULL END + + ( MIN( + + 33 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-877
SELECT CASE - SUM ( - - 34 ) WHEN 48 THEN - ( - CAST ( + 84 AS INTEGER ) ) WHEN 63 THEN NULL WHEN COUNT ( * ) * + MAX ( DISTINCT + 25 ) THEN NULL END + + ( MIN ( + + 33 ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-878
SELECT DISTINCT 6 DIV + COALESCE ( + 62, 21 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT 6 / + COALESCE ( + 62, 21 ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-879
SELECT + - 86 * + - ( - 22 ) DIV - - COUNT( * ) * - COUNT( * ) + + 12 * + CAST( + ( - 98 ) AS SIGNED ) * - + 15 + + ( - 24 ) * MIN( - ( + ( - ( - 46 ) ) ) ) + + ( 6 )
----
20642

skipif mysql # not compatible
query I rowsort label-879
SELECT + - 86 * + - ( - 22 ) / - - COUNT ( * ) * - COUNT ( * ) + + 12 * + CAST ( + ( - 98 ) AS INTEGER ) * - + 15 + + ( - 24 ) * MIN ( - ( + ( - ( - 46 ) ) ) ) + + ( 6 )
----
20642

query I rowsort
SELECT 66 * 65 + 78 AS col1
----
4368

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

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

query I rowsort
SELECT 19 * 1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-883
SELECT - 71 + + + ( + - 35 ) * - + CASE + CAST( - 76 AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) THEN - + 25 WHEN 82 * MIN( 32 ) THEN - 12 / + 68 ELSE NULL END + - 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-883
SELECT - 71 + + + ( + - 35 ) * - + CASE + CAST ( - 76 AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) THEN - + 25 WHEN 82 * MIN ( 32 ) THEN - 12 / + 68 ELSE NULL END + - 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT DISTINCT + COUNT( * ) + + + 81 + - - NULLIF ( - - COALESCE ( + 0, + 72 + 98 ), - - 78 * 75 ) * + 90 * 93
----
82

skipif mysql # not compatible
query I rowsort label-884
SELECT DISTINCT + COUNT ( * ) + + + 81 + - - NULLIF ( - - COALESCE ( + 0, + 72 + 98 ), - - 78 * 75 ) * + 90 * 93
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT DISTINCT - 67 + - COUNT( * ) * 83
----
-150

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT - 67 + - COUNT ( * ) * 83
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-886
SELECT ALL + COUNT( * ) + + COUNT( * ) + + COUNT( * ) AS col1, - 10 * - COALESCE ( + NULLIF ( + 6, - 40 ), + + MIN( ALL + 97 ) + + - CAST( - 76 AS SIGNED ), - COUNT( * ) ) AS col2
----
3
60

skipif mysql # not compatible
query II rowsort label-886
SELECT ALL + COUNT ( * ) + + COUNT ( * ) + + COUNT ( * ) AS col1, - 10 * - COALESCE ( + NULLIF ( + 6, - 40 ), + + MIN ( ALL + 97 ) + + - CAST ( - 76 AS INTEGER ), - COUNT ( * ) ) AS col2
----
3
60

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

skipif mysql # not compatible
query I rowsort label-887
SELECT ( COUNT ( 26 ) )
----
1

query I rowsort
SELECT ALL + 28 + 98
----
126

query I rowsort
SELECT + 21 - 78 AS col1
----
-57

query II rowsort
SELECT - 24 AS col1, - 45
----
-24
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT SUM( ALL 49 ) + MIN( ALL ( + 49 ) )
----
98

skipif mysql # not compatible
query I rowsort label-891
SELECT SUM ( ALL 49 ) + MIN ( ALL ( + 49 ) )
----
98

query I rowsort
SELECT NULLIF ( + + 61, 18 + + + ( - 14 ) * + 22 ) - - 97 AS col0
----
158

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

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

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

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

query II rowsort
SELECT - 58, - 13 * 90 AS col1
----
-58
-1170

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT - COUNT( - 57 ) * - 19 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-898
SELECT - COUNT ( - 57 ) * - 19 AS col0
----
19

query I rowsort
SELECT ALL + 92 * 97 - 59 + 13
----
8878

query I rowsort
SELECT DISTINCT - ( - 76 )
----
76

query I rowsort
SELECT DISTINCT - 59 * - 51 - 53
----
2956

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT - COUNT( * ) * + + 3 + + 15 * + 88
----
1317

skipif mysql # not compatible
query I rowsort label-902
SELECT - COUNT ( * ) * + + 3 + + 15 * + 88
----
1317

onlyif mysql # aggregate syntax: 
query II rowsort label-903
SELECT COUNT( * ) * - + COUNT( * ) + - - 63 * 94 AS col0, 5
----
5921
5

skipif mysql # not compatible
query II rowsort label-903
SELECT COUNT ( * ) * - + COUNT ( * ) + - - 63 * 94 AS col0, 5
----
5921
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-904
SELECT SUM( 64 ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-904
SELECT SUM ( 64 ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-905
SELECT DISTINCT 73 DIV 80 * 29
----
0

skipif mysql # not compatible
query I rowsort label-905
SELECT DISTINCT 73 / 80 * 29
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-906
SELECT CAST( + 16 AS SIGNED ) * + 13
----
208

skipif mysql # not compatible
query I rowsort label-906
SELECT CAST ( + 16 AS INTEGER ) * + 13
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT MIN( ALL - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-907
SELECT MIN ( ALL - 11 )
----
-11

query I rowsort
SELECT ALL 66 * + 81 col0
----
5346

onlyif mysql # aggregate syntax: 
query II rowsort label-909
SELECT + 71 * - 48 AS col1, + COALESCE ( + 32, + COUNT( * ) + 81 - + 23 + - 91 )
----
-3408
32

skipif mysql # not compatible
query II rowsort label-909
SELECT + 71 * - 48 AS col1, + COALESCE ( + 32, + COUNT ( * ) + 81 - + 23 + - 91 )
----
-3408
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-910
SELECT CAST( NULL AS SIGNED ) * + 16 + 90 * 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-910
SELECT CAST ( NULL AS INTEGER ) * + 16 + 90 * 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT SUM( + 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-911
SELECT SUM ( + 64 ) AS col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-912
SELECT DISTINCT - NULLIF ( + CAST( NULL AS SIGNED ), + 35 * 82 ) + - 67 + - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT - NULLIF ( + CAST ( NULL AS INTEGER ), + 35 * 82 ) + - 67 + - 6 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-913
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), - 28 + 65 ) * + 13 + + - 78 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-913
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), - 28 + 65 ) * + 13 + + - 78 col1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-915
SELECT ALL 57 + - COUNT( * ) DIV 64 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-915
SELECT ALL 57 + - COUNT ( * ) / 64 AS col2
----
57

query II rowsort
SELECT ALL + - 65 + - 70, - 6 col2
----
-135
-6

query I rowsort
SELECT - 5 + + + 23 col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-918
SELECT - + 94 * - 81 / + 4 + + 92 * + + CAST( NULL AS DECIMAL ) * + + 97 * - ( + - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-918
SELECT - + 94 * - 81 / + 4 + + 92 * + + CAST ( NULL AS REAL ) * + + 97 * - ( + - COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 88 * + 92
----
8096

query I rowsort
SELECT - - 19 - + 44 + + - 61 - + + 89 * - 74
----
6500

query I rowsort
SELECT + 76 * CASE + 92 WHEN - 57 THEN NULL ELSE + 47 END
----
3572

query I rowsort
SELECT ALL 59 * - 49 * - 1
----
2891

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT DISTINCT - MIN( ALL - - 75 ) - + 23
----
-98

skipif mysql # not compatible
query I rowsort label-924
SELECT DISTINCT - MIN ( ALL - - 75 ) - + 23
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT DISTINCT COUNT( 45 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT COUNT ( 45 ) AS col2
----
1

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

query I rowsort
SELECT - 74 * - - 65 AS col1
----
-4810

query I rowsort
SELECT - 44 + - 6 AS col1
----
-50

query II rowsort
SELECT - 81 AS col0, - 40 AS col0
----
-81
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-930
SELECT ( - ( + 14 ) ), - ( - 67 ) * NULLIF ( + + COUNT( * ), 99 ) + + 21 - + - SUM( ALL + 26 ) * - + 16 * 50 AS col0
----
-14
-20712

skipif mysql # not compatible
query II rowsort label-930
SELECT ( - ( + 14 ) ), - ( - 67 ) * NULLIF ( + + COUNT ( * ), 99 ) + + 21 - + - SUM ( ALL + 26 ) * - + 16 * 50 AS col0
----
-14
-20712

query I rowsort
SELECT - 20 * - 72
----
1440

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-933
SELECT + 50 DIV + + 90 - + MIN( DISTINCT + + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-933
SELECT + 50 / + + 90 - + MIN ( DISTINCT + + 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT ALL - 18 * + SUM( 63 ) AS col0
----
-1134

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL - 18 * + SUM ( 63 ) AS col0
----
-1134

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

skipif mysql # not compatible
query I rowsort label-935
SELECT - COUNT ( * ) / 57 AS col1
----
0

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

query I rowsort
SELECT ALL - 45 * 56 AS col0
----
-2520

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-939
SELECT - MIN( - ( - + 53 ) ) DIV + - 3 + - 48, - 11 * + 81 * - 93 * - 38 + + + 8 AS col2
----
-31
-3148786

skipif mysql # not compatible
query II rowsort label-939
SELECT - MIN ( - ( - + 53 ) ) / + - 3 + - 48, - 11 * + 81 * - 93 * - 38 + + + 8 AS col2
----
-31
-3148786

query I rowsort
SELECT - 30 + 82
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-941
SELECT NULLIF ( - 93, + + CAST( NULL AS SIGNED ) + + 34 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-941
SELECT NULLIF ( - 93, + + CAST ( NULL AS INTEGER ) + + 34 ) AS col1
----
-93

query I rowsort
SELECT + 54 * 28 AS col1
----
1512

query I rowsort
SELECT DISTINCT 62 * + 27 + 98
----
1772

onlyif mysql # aggregate syntax: 
query II rowsort label-944
SELECT ALL 31 * + + 7 + 1, - 90 + + 40 * + + 56 * + - COUNT( * ) + 98 + + 87 * - - 80 * - CASE CASE - 31 WHEN - + 59 THEN + 30 * 77 + - COUNT( ALL + 98 ) + - ( + 2 ) * + + 43 + + 38 WHEN 78 THEN - 89 END WHEN - COUNT( * ) - + COUNT( * ) + 33 * ( 7 ) - + AVG ( 84 ) * SUM( DISTINCT + COALESCE ( - 94, + 54 * ( 75 * 45 ) ) * 15 ) * + AVG ( DISTINCT 10 * 82 ) THEN + 61 + 81 ELSE NULL END AS col2
----
218
NULL

skipif mysql # not compatible
query II rowsort label-944
SELECT ALL 31 * + + 7 + 1, - 90 + + 40 * + + 56 * + - COUNT ( * ) + 98 + + 87 * - - 80 * - CASE CASE - 31 WHEN - + 59 THEN + 30 * 77 + - COUNT ( ALL + 98 ) + - ( + 2 ) * + + 43 + + 38 WHEN 78 THEN - 89 END WHEN - COUNT ( * ) - + COUNT ( * ) + 33 * ( 7 ) - + AVG ( 84 ) * SUM ( DISTINCT + COALESCE ( - 94, + 54 * ( 75 * 45 ) ) * 15 ) * + AVG ( DISTINCT 10 * 82 ) THEN + 61 + 81 ELSE NULL END AS col2
----
218
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT + COUNT( * ) * - - 2 + - 25 * + - 42 col1
----
1052

skipif mysql # not compatible
query I rowsort label-945
SELECT + COUNT ( * ) * - - 2 + - 25 * + - 42 col1
----
1052

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT DISTINCT 9 * + 18 + + MAX( DISTINCT - 28 ) AS col2
----
134

skipif mysql # not compatible
query I rowsort label-947
SELECT DISTINCT 9 * + 18 + + MAX ( DISTINCT - 28 ) AS col2
----
134

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

skipif mysql # not compatible
query I rowsort label-948
SELECT CAST ( - ( MAX ( ALL + 93 ) ) AS INTEGER ) col2
----
-93

query I rowsort
SELECT ALL 50 * - 66
----
-3300

query I rowsort
SELECT + 67 * - ( - + 52 ) + 37 * - + 47 + + - 48 AS col1
----
1697

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT + - NULLIF ( + 80, - 40 ) + + NULLIF ( + 29, COUNT( * ) ) + + + 85
----
34

skipif mysql # not compatible
query I rowsort label-951
SELECT + - NULLIF ( + 80, - 40 ) + + NULLIF ( + 29, COUNT ( * ) ) + + + 85
----
34

query I rowsort
SELECT + + 46 + + + ( + - 60 )
----
-14

query II rowsort
SELECT + 74 * + ( + + 15 ) AS col2, + 19
----
1110
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-954
SELECT + - ( + + NULLIF ( + COUNT( DISTINCT + 94 ), COUNT( * ) + - 88 ) ) + 62 DIV 28 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-954
SELECT + - ( + + NULLIF ( + COUNT ( DISTINCT + 94 ), COUNT ( * ) + - 88 ) ) + 62 / 28 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT ALL CASE - MIN( 31 ) WHEN + 76 - 94 THEN + 17 * + 61 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-955
SELECT ALL CASE - MIN ( 31 ) WHEN + 76 - 94 THEN + 17 * + 61 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT ALL + COALESCE ( + COUNT( * ), - 71, - - 98 )
----
1

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL + COALESCE ( + COUNT ( * ), - 71, - - 98 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT + + SUM( - 97 ) + + 88 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-957
SELECT + + SUM ( - 97 ) + + 88 AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-958
SELECT DISTINCT - ( NULLIF ( + SUM( CAST( NULL AS DECIMAL ) ), + 85 ) ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT - ( NULLIF ( + SUM ( CAST ( NULL AS REAL ) ), + 85 ) ) - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-959
SELECT + - 21 * - 9 * CAST( 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-959
SELECT + - 21 * - 9 * CAST ( 0 AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-960
SELECT + MIN( - CAST( - 12 AS SIGNED ) ) - - + CAST( + 57 AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-960
SELECT + MIN ( - CAST ( - 12 AS INTEGER ) ) - - + CAST ( + 57 AS INTEGER )
----
69

query I rowsort
SELECT + 44 + 11
----
55

query I rowsort
SELECT - 50 + 83 * + 46 + - - 29
----
3797

query I rowsort
SELECT + 62 * 9
----
558

query I rowsort
SELECT ALL 32 * + + 56 AS col2
----
1792

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT + COUNT( * ) + - + 90 * 42 * + - 21 AS col2
----
79381

skipif mysql # not compatible
query I rowsort label-965
SELECT + COUNT ( * ) + - + 90 * 42 * + - 21 AS col2
----
79381

onlyif mysql # DIV for integer division: 
query I rowsort label-966
SELECT - ( - 31 ) DIV 8 + - - 67 * + - 94 * 30 AS col0
----
-188937

skipif mysql # not compatible
query I rowsort label-966
SELECT - ( - 31 ) / 8 + - - 67 * + - 94 * 30 AS col0
----
-188937

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

query I rowsort
SELECT ALL + 59 + - 90 - + 7 * 18 - - + 78
----
-79

query I rowsort
SELECT DISTINCT 55 * 82 * - 60
----
-270600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-970
SELECT DISTINCT + NULLIF ( - + CAST( + 14 AS SIGNED ), COALESCE ( 71, - 47 * 71 * + COUNT( * ) + - 30 * - 79 + + 76 ) ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-970
SELECT DISTINCT + NULLIF ( - + CAST ( + 14 AS INTEGER ), COALESCE ( 71, - 47 * 71 * + COUNT ( * ) + - 30 * - 79 + + 76 ) ) AS col2
----
-14

query I rowsort
SELECT 93 + + 60 * 5
----
393

query II rowsort
SELECT 92, - ( + 97 ) + - - 99 + + + 42 AS col0
----
92
44

query I rowsort
SELECT - 39 * - + 35 + 78 * - 21 col1
----
-273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-974
SELECT 60 / + ( + 29 ) * - COUNT( * ) / + CAST( NULL AS SIGNED ) + - 70 + - - 56 + + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-974
SELECT 60 / + ( + 29 ) * - COUNT ( * ) / + CAST ( NULL AS INTEGER ) + - 70 + - - 56 + + - 57
----
NULL

query I rowsort
SELECT ALL - 23 + ( 48 ) + + + 88
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT DISTINCT + MAX( DISTINCT - 75 ) * 58
----
-4350

skipif mysql # not compatible
query I rowsort label-976
SELECT DISTINCT + MAX ( DISTINCT - 75 ) * 58
----
-4350

query I rowsort
SELECT DISTINCT 48 + + ( + 24 ) + - 25
----
47

query I rowsort
SELECT 58 + - - 68
----
126

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

skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT + - 69 + + COUNT ( * ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT ALL - - 6 + - 43 + + COUNT( * ) * + 15
----
-22

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL - - 6 + - 43 + + COUNT ( * ) * + 15
----
-22

query I rowsort
SELECT DISTINCT + - 44 * - 65 - - - 41 - 25
----
2794

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

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

query I rowsort
SELECT - 65 * - 79 AS col0
----
5135

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT + 23 * - 85 * + 68 - - COUNT( * ) AS col0
----
-132939

skipif mysql # not compatible
query I rowsort label-984
SELECT + 23 * - 85 * + 68 - - COUNT ( * ) AS col0
----
-132939

query II rowsort
SELECT DISTINCT - 56 AS col0, 33
----
-56
33

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT DISTINCT - COUNT( * ) - + 11 + - 1 * - 16
----
4

skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT - COUNT ( * ) - + 11 + - 1 * - 16
----
4

query I rowsort
SELECT + 31 * - 80 AS col2
----
-2480

query I rowsort
SELECT ALL - 97 - 66 col0
----
-163

query II rowsort
SELECT - 48, 25 + - + 37 - + - 24 + - + 73 * - - 40 col1
----
-48
-2908

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-990
SELECT DISTINCT - + 89 - + 69 * COUNT( * ) * - - 60 DIV + COUNT( * ) AS col1
----
-4229

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT - + 89 - + 69 * COUNT ( * ) * - - 60 / + COUNT ( * ) AS col1
----
-4229

onlyif mysql # aggregate syntax: 
query II rowsort label-991
SELECT ALL ( COUNT( DISTINCT 42 ) ) * - - 40 * - - 86 + + 35 * 82 AS col0, 75 AS col0
----
6310
75

skipif mysql # not compatible
query II rowsort label-991
SELECT ALL ( COUNT ( DISTINCT 42 ) ) * - - 40 * - - 86 + + 35 * 82 AS col0, 75 AS col0
----
6310
75

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT DISTINCT SUM( ALL 35 )
----
35

skipif mysql # not compatible
query I rowsort label-992
SELECT DISTINCT SUM ( ALL 35 )
----
35

query II rowsort
SELECT ALL + 89 AS col0, 23
----
89
23

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT DISTINCT 68 * + 67 * - COUNT( * ) * 72 * - + 93 AS col0
----
30506976

skipif mysql # not compatible
query I rowsort label-994
SELECT DISTINCT 68 * + 67 * - COUNT ( * ) * 72 * - + 93 AS col0
----
30506976

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT - COALESCE ( COUNT( 81 ), - - 15, + 58 ) * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-995
SELECT - COALESCE ( COUNT ( 81 ), - - 15, + 58 ) * + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-996
SELECT + 17 + COALESCE ( - ( NULLIF ( - - 97, + + 38 ) ), COUNT( * ) * + 98 ) + - + COALESCE ( + - 47, - 81 + - 85, + - 97 + - + 57 ) - + - 39 + + 15, 64 AS col1
----
21
64

skipif mysql # not compatible
query II rowsort label-996
SELECT + 17 + COALESCE ( - ( NULLIF ( - - 97, + + 38 ) ), COUNT ( * ) * + 98 ) + - + COALESCE ( + - 47, - 81 + - 85, + - 97 + - + 57 ) - + - 39 + + 15, 64 AS col1
----
21
64

query I rowsort
SELECT ALL 56 * 61 * + COALESCE ( - 94, - 63 )
----
-321104

query I rowsort
SELECT ALL + 18 * 19 * - + 9
----
-3078

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

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL 85 + COUNT ( * ) AS col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1000
SELECT DISTINCT COUNT( * ) + 95 + 91 * + COALESCE ( - 69, + + 14, + + 84 * CAST( NULL AS SIGNED ) * - 30 ) + - COUNT( * )
----
-6184

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT COUNT ( * ) + 95 + 91 * + COALESCE ( - 69, + + 14, + + 84 * CAST ( NULL AS INTEGER ) * - 30 ) + - COUNT ( * )
----
-6184

onlyif mysql # aggregate syntax: 
query II rowsort label-1001
SELECT DISTINCT 14 + 67 AS col1, MIN( ALL 18 ) AS col0
----
81
18

skipif mysql # not compatible
query II rowsort label-1001
SELECT DISTINCT 14 + 67 AS col1, MIN ( ALL 18 ) AS col0
----
81
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT ( + + 13 ) + - 30 * - ( - SUM( DISTINCT + - 85 ) ) * + 66
----
168313

skipif mysql # not compatible
query I rowsort label-1002
SELECT ( + + 13 ) + - 30 * - ( - SUM ( DISTINCT + - 85 ) ) * + 66
----
168313

query II rowsort
SELECT 2 * CASE - + 44 WHEN - 18 THEN NULL ELSE - - 74 END AS col1, + 82 AS col0
----
148
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT ALL 43 + COUNT( * ) + + 51 * - CASE + 48 WHEN + 33 THEN - - 7 ELSE - - 9 END
----
-415

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL 43 + COUNT ( * ) + + 51 * - CASE + 48 WHEN + 33 THEN - - 7 ELSE - - 9 END
----
-415

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

skipif mysql # not compatible
query I rowsort label-1005
SELECT DISTINCT 78 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1006
SELECT ALL COUNT( * ) * - - CAST( NULL AS SIGNED ) * - - COALESCE ( + 52, 71, - - 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * - - COALESCE ( + 52, 71, - - 23 )
----
NULL

query I rowsort
SELECT DISTINCT 48 + - + 80 + + + 3 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT ( + 44 ) + - - 83 * - - COUNT( * ) + - + 60
----
67

skipif mysql # not compatible
query I rowsort label-1008
SELECT ( + 44 ) + - - 83 * - - COUNT ( * ) + - + 60
----
67

query II rowsort
SELECT ALL 83 + - 90 - - 50, 22 col1
----
43
22

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1011
SELECT ALL - + CASE - - 95 WHEN NULLIF ( COUNT( * ), + 33 + 71 ) * - COUNT( * ) + - 72 THEN 71 + 1 + - 61 * ( + 60 ) / + 62 * MAX( - CAST( NULL AS SIGNED ) ) * + 35 * - 98 * + + MAX( DISTINCT CAST( + 46 AS SIGNED ) ) WHEN - + 70 + 63 + - 32 THEN + 23 END - 16 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL - + CASE - - 95 WHEN NULLIF ( COUNT ( * ), + 33 + 71 ) * - COUNT ( * ) + - 72 THEN 71 + 1 + - 61 * ( + 60 ) / + 62 * MAX ( - CAST ( NULL AS INTEGER ) ) * + 35 * - 98 * + + MAX ( DISTINCT CAST ( + 46 AS INTEGER ) ) WHEN - + 70 + 63 + - 32 THEN + 23 END - 16 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1012
SELECT 22 + - - 54 + + - 30 DIV 94
----
76

skipif mysql # not compatible
query I rowsort label-1012
SELECT 22 + - - 54 + + - 30 / 94
----
76

query II rowsort
SELECT - + ( + ( + + 72 ) ) * 54 - - - 55 col2, - 29 * + 81 AS col1
----
-3943
-2349

onlyif mysql # aggregate syntax: 
query II rowsort label-1014
SELECT + - ( 21 ) AS col2, - 89 - + - COUNT( * )
----
-21
-88

skipif mysql # not compatible
query II rowsort label-1014
SELECT + - ( 21 ) AS col2, - 89 - + - COUNT ( * )
----
-21
-88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT ( - - 7 ) - - 63 + - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-1016
SELECT ( - - 7 ) - - 63 + - COUNT ( * )
----
69

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

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

query I rowsort
SELECT ALL + - 66 * + 57
----
-3762

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT COUNT( * ) * - - ( + - COUNT( * ) ) * - SUM( + 46 ) + + + 99 AS col0
----
145

skipif mysql # not compatible
query I rowsort label-1019
SELECT COUNT ( * ) * - - ( + - COUNT ( * ) ) * - SUM ( + 46 ) + + + 99 AS col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT DISTINCT + + ( - 5 ) * + 93 + SUM( DISTINCT + 93 ) AS col2
----
-372

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT + + ( - 5 ) * + 93 + SUM ( DISTINCT + 93 ) AS col2
----
-372

query I rowsort
SELECT - 56 + - 52
----
-108

query I rowsort
SELECT ALL + + 99 - - 92
----
191

query II rowsort
SELECT ALL - 49 * + 33 AS col2, 47
----
-1617
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1024
SELECT + CASE + CAST( - AVG ( DISTINCT + 8 ) AS SIGNED ) WHEN + 69 + ( - NULLIF ( 88, + 13 ) ) THEN + CAST( NULL AS SIGNED ) WHEN + 84 + + + NULLIF ( - ( - 93 ), + AVG ( ALL + + 84 ) ) / - 75 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1024
SELECT + CASE + CAST ( - AVG ( DISTINCT + 8 ) AS INTEGER ) WHEN + 69 + ( - NULLIF ( 88, + 13 ) ) THEN + CAST ( NULL AS INTEGER ) WHEN + 84 + + + NULLIF ( - ( - 93 ), + AVG ( ALL + + 84 ) ) / - 75 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 78 * - 59 + - 45 col0
----
4557

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

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

query I rowsort
SELECT + 5 + 46 col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT DISTINCT CASE + - ( + 30 ) WHEN + COUNT( * ) * 66 THEN - + 59 WHEN + 93 THEN NULL WHEN + - 46 + + + MIN( 10 ) THEN NULL ELSE - 87 END
----
-87

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT CASE + - ( + 30 ) WHEN + COUNT ( * ) * 66 THEN - + 59 WHEN + 93 THEN NULL WHEN + - 46 + + + MIN ( 10 ) THEN NULL ELSE - 87 END
----
-87

query I rowsort
SELECT ALL - 58 + - 21 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT 58 + - 82 + + - 90 - 34 * - + MIN( 46 )
----
1450

skipif mysql # not compatible
query I rowsort label-1030
SELECT 58 + - 82 + + - 90 - 34 * - + MIN ( 46 )
----
1450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1031
SELECT ALL COUNT( ALL - CAST( + 32 AS SIGNED ) ), 68 AS col2
----
1
68

skipif mysql # not compatible
query II rowsort label-1031
SELECT ALL COUNT ( ALL - CAST ( + 32 AS INTEGER ) ), 68 AS col2
----
1
68

query I rowsort
SELECT ALL - 59 + - 18 * - ( + 14 ) + + ( + 31 ) + 80 AS col0
----
304

onlyif mysql # aggregate syntax: 
query II rowsort label-1033
SELECT - 35 col2, COUNT( * ) + - - 2 * - + 24 * 11 + - + MIN( + + 81 ) - 38 * + + 75
----
-35
-3458

skipif mysql # not compatible
query II rowsort label-1033
SELECT - 35 col2, COUNT ( * ) + - - 2 * - + 24 * 11 + - + MIN ( + + 81 ) - 38 * + + 75
----
-35
-3458

onlyif mysql # DIV for integer division: 
query I rowsort label-1034
SELECT ALL + 86 * 81 DIV ( 15 ) AS col2
----
464

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL + 86 * 81 / ( 15 ) AS col2
----
464

query II rowsort
SELECT - 43 AS col2, - 1 AS col1
----
-43
-1

query I rowsort
SELECT ALL 43 + - 34
----
9

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

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

query I rowsort
SELECT + 13 + 69 AS col0
----
82

query I rowsort
SELECT - NULLIF ( - + 56, - 35 + - 98 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT + 90 + + - 84 + - SUM( DISTINCT - 60 )
----
66

skipif mysql # not compatible
query I rowsort label-1040
SELECT + 90 + + - 84 + - SUM ( DISTINCT - 60 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT ALL COUNT( - 98 ) + - 42 - + + 37 + + 88 + + + 26 + + - 49 * + 5 + + 97 AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-1041
SELECT ALL COUNT ( - 98 ) + - 42 - + + 37 + + 88 + + + 26 + + - 49 * + 5 + + 97 AS col0
----
-112

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1042
SELECT + COALESCE ( 21, - - 73 + COUNT( * ) * + 35 * - 26 - - + 52 - - + 9 + + + 42 * + 82 / 7 + 83 ) + - - CASE + CAST( NULL AS DECIMAL ) WHEN 90 THEN + 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1042
SELECT + COALESCE ( 21, - - 73 + COUNT ( * ) * + 35 * - 26 - - + 52 - - + 9 + + + 42 * + 82 / 7 + 83 ) + - - CASE + CAST ( NULL AS REAL ) WHEN 90 THEN + 5 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1043
SELECT ALL CASE MAX( - - ( + CAST( NULL AS SIGNED ) ) ) WHEN + 21 THEN - MIN( + 57 ) WHEN - 51 * - 95 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL CASE MAX ( - - ( + CAST ( NULL AS INTEGER ) ) ) WHEN + 21 THEN - MIN ( + 57 ) WHEN - 51 * - 95 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT + 77 + + 23 * - COUNT( * ) + 35
----
89

skipif mysql # not compatible
query I rowsort label-1044
SELECT + 77 + + 23 * - COUNT ( * ) + 35
----
89

query II rowsort
SELECT ALL 11 AS col1, + 40
----
11
40

query I rowsort
SELECT + 95 * + 80 col2
----
7600

onlyif mysql # aggregate syntax: 
query II rowsort label-1047
SELECT DISTINCT + 44, COALESCE ( + + 11, COUNT( * ), + 15, ( + 30 ) + + COUNT( * ) * + MIN( - 19 ) + - 57 ) + + MIN( DISTINCT + 41 ) AS col0
----
44
52

skipif mysql # not compatible
query II rowsort label-1047
SELECT DISTINCT + 44, COALESCE ( + + 11, COUNT ( * ), + 15, ( + 30 ) + + COUNT ( * ) * + MIN ( - 19 ) + - 57 ) + + MIN ( DISTINCT + 41 ) AS col0
----
44
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT + CASE - COUNT( * ) WHEN - + COUNT( + 38 ) * 13 + - - 91 - - + ( + + 21 ) THEN + 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1048
SELECT + CASE - COUNT ( * ) WHEN - + COUNT ( + 38 ) * 13 + - - 91 - - + ( + + 21 ) THEN + 64 END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1050
SELECT ALL - 5 DIV 71 * + + MAX( DISTINCT - 83 )
----
0

skipif mysql # not compatible
query I rowsort label-1050
SELECT ALL - 5 / 71 * + + MAX ( DISTINCT - 83 )
----
0

query II rowsort
SELECT + 43, + ( + 17 ) AS col1
----
43
17

query I rowsort
SELECT - + 93 * + 2 + 39
----
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1053
SELECT ALL - 35 * + + COUNT( * ) + - NULLIF ( - - 91, AVG ( 21 ) * - - 0 + 71 * 87 + 22 - - 73 + + 10 ) - + - CASE + COUNT( * ) WHEN - 25 * 98 / CAST( NULL AS DECIMAL ) / + 86 THEN - SUM( DISTINCT - 2 ) WHEN MIN( ALL + 24 ) THEN - 63 * - + 53 + ( + 53 ) + - - ( - 76 ) * NULLIF ( - - 30, 32 + COALESCE ( COUNT( * ), CASE + 1 WHEN - COUNT( * ) + + ( - CAST( NULL AS SIGNED ) ) * - 15 THEN MAX( DISTINCT 49 ) + 91 ELSE 74 END, SUM( 20 ) ) ) / 70 WHEN 26 THEN 77 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL - 35 * + + COUNT ( * ) + - NULLIF ( - - 91, AVG ( 21 ) * - - 0 + 71 * 87 + 22 - - 73 + + 10 ) - + - CASE + COUNT ( * ) WHEN - 25 * 98 / CAST ( NULL AS REAL ) / + 86 THEN - SUM ( DISTINCT - 2 ) WHEN MIN ( ALL + 24 ) THEN - 63 * - + 53 + ( + 53 ) + - - ( - 76 ) * NULLIF ( - - 30, 32 + COALESCE ( COUNT ( * ), CASE + 1 WHEN - COUNT ( * ) + + ( - CAST ( NULL AS INTEGER ) ) * - 15 THEN MAX ( DISTINCT 49 ) + 91 ELSE 74 END, SUM ( 20 ) ) ) / 70 WHEN 26 THEN 77 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT + 77 AS col0, - 73
----
77
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT DISTINCT + - NULLIF ( + SUM( - 27 ), - 78 * + + COUNT( * ) + 79 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-1055
SELECT DISTINCT + - NULLIF ( + SUM ( - 27 ), - 78 * + + COUNT ( * ) + 79 ) AS col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1056
SELECT + 13 DIV - - 22 + + - 8 + + 96
----
88

skipif mysql # not compatible
query I rowsort label-1056
SELECT + 13 / - - 22 + + - 8 + + 96
----
88

query I rowsort
SELECT ALL 52 * - 61
----
-3172

query I rowsort
SELECT ALL 57 * + - 99
----
-5643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1059
SELECT ALL + + CASE + 97 WHEN + 36 THEN NULL WHEN CAST( - ( - NULLIF ( + + 30, 19 + - + 8 ) ) AS DECIMAL ) THEN + NULLIF ( + + CASE NULLIF ( + ( COUNT( * ) ), + + COUNT( * ) ) WHEN + COALESCE ( 24, + - 62 + 3 * + + CASE - 43 WHEN - + 22 * - CAST( NULL AS SIGNED ) THEN + 67 WHEN - 50 * - + COUNT( * ) THEN NULL END ) THEN - 76 / + 50 - 28 + - 93 - + + 59 + + + COUNT( * ) - - + 33 * + NULLIF ( + 26 * 92, 43 * - 38 ) * + 17 * SUM( 30 + 8 * - 3 ) END, 86 * 45 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL + + CASE + 97 WHEN + 36 THEN NULL WHEN CAST ( - ( - NULLIF ( + + 30, 19 + - + 8 ) ) AS REAL ) THEN + NULLIF ( + + CASE NULLIF ( + ( COUNT ( * ) ), + + COUNT ( * ) ) WHEN + COALESCE ( 24, + - 62 + 3 * + + CASE - 43 WHEN - + 22 * - CAST ( NULL AS INTEGER ) THEN + 67 WHEN - 50 * - + COUNT ( * ) THEN NULL END ) THEN - 76 / + 50 - 28 + - 93 - + + 59 + + + COUNT ( * ) - - + 33 * + NULLIF ( + 26 * 92, 43 * - 38 ) * + 17 * SUM ( 30 + 8 * - 3 ) END, 86 * 45 ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1061
SELECT - - COUNT( * ) * - COUNT( * ) DIV COALESCE ( + CASE 43 WHEN + 94 THEN - 20 * 42 + 35 DIV CASE 34 WHEN - 89 THEN NULL WHEN + 51 * - - 53 * + 41 + + - 26 THEN + COUNT( * ) WHEN 29 THEN COUNT( * ) ELSE NULL END ELSE NULL END, + - 18, - 3 ) - - COUNT( * ) + + 32 * - - 74 + + + COUNT( * ) * + + COALESCE ( + 33, 19 ) - + + 72 - + - 5
----
2335

skipif mysql # not compatible
query I rowsort label-1061
SELECT - - COUNT ( * ) * - COUNT ( * ) / COALESCE ( + CASE 43 WHEN + 94 THEN - 20 * 42 + 35 / CASE 34 WHEN - 89 THEN NULL WHEN + 51 * - - 53 * + 41 + + - 26 THEN + COUNT ( * ) WHEN 29 THEN COUNT ( * ) ELSE NULL END ELSE NULL END, + - 18, - 3 ) - - COUNT ( * ) + + 32 * - - 74 + + + COUNT ( * ) * + + COALESCE ( + 33, 19 ) - + + 72 - + - 5
----
2335

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

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

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

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

query I rowsort
SELECT + 29 * + 28 AS col0
----
812

query I rowsort
SELECT - 99 + - NULLIF ( - 98, - 95 ) + + 8
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT ALL 47 * MAX( ALL - + 7 ) + + 67 + + + 36 * 93 * 60 - + SUM( DISTINCT ( + ( - 98 ) ) ) - + 64 * + COUNT( * ) * - + 1 * - 1 col1
----
200652

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL 47 * MAX ( ALL - + 7 ) + + 67 + + + 36 * 93 * 60 - + SUM ( DISTINCT ( + ( - 98 ) ) ) - + 64 * + COUNT ( * ) * - + 1 * - 1 col1
----
200652

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1068
SELECT ALL + COUNT( * ) * - 59 + CAST( - - 62 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL + COUNT ( * ) * - 59 + CAST ( - - 62 AS INTEGER )
----
3

query I rowsort
SELECT ALL - 12 * + + ( 65 ) + - 66 - - 55 + - 44 + - - 98 * 23
----
1419

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT DISTINCT 10 * - COUNT( * ) + ( COUNT( * ) ) * - + 33 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-1070
SELECT DISTINCT 10 * - COUNT ( * ) + ( COUNT ( * ) ) * - + 33 AS col2
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1071
SELECT ALL - 54 + - - COUNT( * ) DIV - 79
----
-54

skipif mysql # not compatible
query I rowsort label-1071
SELECT ALL - 54 + - - COUNT ( * ) / - 79
----
-54

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

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

query I rowsort
SELECT ALL + 27 + - - 84
----
111

onlyif mysql # DIV for integer division: 
query II rowsort label-1074
SELECT + 55 DIV 61, 95 AS col0
----
0
95

skipif mysql # not compatible
query II rowsort label-1074
SELECT + 55 / 61, 95 AS col0
----
0
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT ALL - 55 * - COUNT( * ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL - 55 * - COUNT ( * ) AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1077
SELECT ALL - 28 + + 51 + 82 * - CASE COUNT( * ) WHEN - 54 + - 63 + - COUNT( * ) + CASE - 79 WHEN + + 2 THEN - 5 * + 49 END + + + 85 * + COUNT( * ) * + NULLIF ( - + COALESCE ( + COUNT( * ), + + 68 * - CAST( NULL AS SIGNED ) + - 74 + + 33 * - 82 - + + CASE + 78 WHEN 16 THEN + 35 END * + + ( + - 27 ), - 27 ), 50 / + ( - + MIN( - - 96 ) ) + + NULLIF ( COUNT( * ), 15 ) ) * + 47 THEN + 43 / - 30 END * + MIN( ALL + 62 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL - 28 + + 51 + 82 * - CASE COUNT ( * ) WHEN - 54 + - 63 + - COUNT ( * ) + CASE - 79 WHEN + + 2 THEN - 5 * + 49 END + + + 85 * + COUNT ( * ) * + NULLIF ( - + COALESCE ( + COUNT ( * ), + + 68 * - CAST ( NULL AS INTEGER ) + - 74 + + 33 * - 82 - + + CASE + 78 WHEN 16 THEN + 35 END * + + ( + - 27 ), - 27 ), 50 / + ( - + MIN ( - - 96 ) ) + + NULLIF ( COUNT ( * ), 15 ) ) * + 47 THEN + 43 / - 30 END * + MIN ( ALL + 62 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT - COUNT( * ) * + 90 * 74 AS col0
----
-6660

skipif mysql # not compatible
query I rowsort label-1078
SELECT - COUNT ( * ) * + 90 * 74 AS col0
----
-6660

query I rowsort
SELECT + 31 * + + 49 col2
----
1519

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

query I rowsort
SELECT ALL 48 * 45 AS col2
----
2160

query I rowsort
SELECT DISTINCT + 10 - + 98 AS col2
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-1083
SELECT - ( - 50 ) + - 77 + 9 DIV + 95 + + 87 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-1083
SELECT - ( - 50 ) + - 77 + 9 / + 95 + + 87 AS col1
----
60

query I rowsort
SELECT ALL - 38 * + - 53 col1
----
2014

query I rowsort
SELECT - 75 + - 19 AS col2
----
-94

query I rowsort
SELECT - 84 * + - ( + 60 ) AS col2
----
5040

query I rowsort
SELECT + - COALESCE ( - - 29, - 26 * - + 4, - 32 + + ( - 68 ) ) * + 18 col2
----
-522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1088
SELECT DISTINCT + 42 * - 16, + 75 DIV 22 + + COUNT( - CAST( NULL AS SIGNED ) ) AS col0
----
-672
3

skipif mysql # not compatible
query II rowsort label-1088
SELECT DISTINCT + 42 * - 16, + 75 / 22 + + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0
----
-672
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1090
SELECT 4 DIV - 19 + - 31 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-1090
SELECT 4 / - 19 + - 31 AS col2
----
-31

query I rowsort
SELECT ALL - ( + 28 ) * 88 AS col0
----
-2464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1092
SELECT DISTINCT + - CASE - 54 WHEN 78 + - 21 / - + 30 THEN + + COALESCE ( - + ( + 9 ), + 1 ) + - 83 + + ( - 55 ) + - - 71 + - CAST( + 0 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT + - CASE - 54 WHEN 78 + - 21 / - + 30 THEN + + COALESCE ( - + ( + 9 ), + 1 ) + - 83 + + ( - 55 ) + - - 71 + - CAST ( + 0 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT + + 16 * - 53 - COUNT( + ( 44 ) ) AS col1
----
-849

skipif mysql # not compatible
query I rowsort label-1093
SELECT + + 16 * - 53 - COUNT ( + ( 44 ) ) AS col1
----
-849

onlyif mysql # aggregate syntax: 
query II rowsort label-1094
SELECT NULLIF ( 12, + 87 + 68 ), - MAX( DISTINCT - 4 ) + - - 72 AS col0
----
12
76

skipif mysql # not compatible
query II rowsort label-1094
SELECT NULLIF ( 12, + 87 + 68 ), - MAX ( DISTINCT - 4 ) + - - 72 AS col0
----
12
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1095
SELECT + COUNT( - ( + 88 ) ) - - ( + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1096
SELECT + - ( + - 33 ) DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-1096
SELECT + - ( + - 33 ) / + 51
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1097
SELECT ALL 44 * - 93 + 11 + + COALESCE ( - 31, + 6 + + 62, - 69 * + 92 + + - ( + 15 ) * 97 ) DIV - - 86 * + 68 * + - 90 DIV COUNT( * ) + - - CASE AVG ( DISTINCT - 44 ) WHEN - 60 THEN 96 WHEN + 84 THEN NULL ELSE + 20 + - 70 * - 83 END
----
1749

skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL 44 * - 93 + 11 + + COALESCE ( - 31, + 6 + + 62, - 69 * + 92 + + - ( + 15 ) * 97 ) / - - 86 * + 68 * + - 90 / COUNT ( * ) + - - CASE AVG ( DISTINCT - 44 ) WHEN - 60 THEN 96 WHEN + 84 THEN NULL ELSE + 20 + - 70 * - 83 END
----
1749

query I rowsort
SELECT ALL - 22 * + 76
----
-1672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1099
SELECT ALL - 51 * - MIN( ALL - + 54 ) * 2 + + - 35 + + - 33 + - 89 DIV COUNT( * ) + 3 + - 62 AS col2
----
-5724

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL - 51 * - MIN ( ALL - + 54 ) * 2 + + - 35 + + - 33 + - 89 / COUNT ( * ) + 3 + - 62 AS col2
----
-5724

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1100
SELECT CASE - 17 WHEN - 28 THEN NULL WHEN + + ( 98 ) * - + 55 + COUNT( * ) - - + 25 - 4 * + - 9 THEN - ( + 66 ) - + 27 - + 48 + ( ( - CASE - 57 WHEN - - 70 * 92 + 82 * + COALESCE ( COUNT( DISTINCT + 64 ), - 92 + MAX( 79 ) ) + + + 71 THEN - 50 ELSE + 2 + + + 70 - + + 51 END ) ) / - 82 * + - MAX( + 55 ) * - NULLIF ( + 70 + COUNT( * ) * + SUM( DISTINCT 11 ), CAST( NULL AS DECIMAL ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1100
SELECT CASE - 17 WHEN - 28 THEN NULL WHEN + + ( 98 ) * - + 55 + COUNT ( * ) - - + 25 - 4 * + - 9 THEN - ( + 66 ) - + 27 - + 48 + ( ( - CASE - 57 WHEN - - 70 * 92 + 82 * + COALESCE ( COUNT ( DISTINCT + 64 ), - 92 + MAX ( 79 ) ) + + + 71 THEN - 50 ELSE + 2 + + + 70 - + + 51 END ) ) / - 82 * + - MAX ( + 55 ) * - NULLIF ( + 70 + COUNT ( * ) * + SUM ( DISTINCT 11 ), CAST ( NULL AS REAL ) ) ELSE NULL END
----
NULL

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

query I rowsort
SELECT DISTINCT 32 + 29 AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1103
SELECT DISTINCT 91 * - NULLIF ( + 17, CAST( NULL AS SIGNED ) * + CAST( 39 AS SIGNED ) * + + 35 ) AS col1
----
-1547

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT 91 * - NULLIF ( + 17, CAST ( NULL AS INTEGER ) * + CAST ( 39 AS INTEGER ) * + + 35 ) AS col1
----
-1547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1104
SELECT + NULLIF ( - + COALESCE ( + - COUNT( * ), + - COALESCE ( 89, + 89 ) + + COUNT( * ) ), 21 * + - CAST( NULL AS SIGNED ) ) * - 15 + + 52 * - + ( COALESCE ( - + 43, - + NULLIF ( - 29, + 2 ), + CAST( NULL AS SIGNED ) ) ) AS col1
----
2221

skipif mysql # not compatible
query I rowsort label-1104
SELECT + NULLIF ( - + COALESCE ( + - COUNT ( * ), + - COALESCE ( 89, + 89 ) + + COUNT ( * ) ), 21 * + - CAST ( NULL AS INTEGER ) ) * - 15 + + 52 * - + ( COALESCE ( - + 43, - + NULLIF ( - 29, + 2 ), + CAST ( NULL AS INTEGER ) ) ) AS col1
----
2221

query I rowsort
SELECT DISTINCT 67 + - + 76 AS col0
----
-9

query I rowsort
SELECT DISTINCT - 24 * 66 AS col0
----
-1584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1107
SELECT 2 + + CAST( NULL AS SIGNED ) + - 79 - + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1107
SELECT 2 + + CAST ( NULL AS INTEGER ) + - 79 - + 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT ALL + COUNT( * ) * - - 74 * - 78 AS col2
----
-5772

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL + COUNT ( * ) * - - 74 * - 78 AS col2
----
-5772

query I rowsort
SELECT ALL 60 * + 5 AS col0
----
300

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT 27 + - 85 + + 16 * - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-1111
SELECT 27 + - 85 + + 16 * - COUNT ( * )
----
-74

query I rowsort
SELECT 37 + + 26 AS col2
----
63

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

skipif mysql # not compatible
query I rowsort label-1113
SELECT 8 / + COUNT ( * ) col1
----
8

query I rowsort
SELECT + 42 + - - 77 AS col2
----
119

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

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL + COUNT ( * ) / - 68
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1116
SELECT 27 DIV + 97 * + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1116
SELECT 27 / + 97 * + 98 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT DISTINCT + NULLIF ( + 70, 55 ) + + COUNT( - 49 ) - 3 * 81 AS col1
----
-172

skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT + NULLIF ( + 70, 55 ) + + COUNT ( - 49 ) - 3 * 81 AS col1
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT MIN( DISTINCT + 14 ) + + 30
----
44

skipif mysql # not compatible
query I rowsort label-1118
SELECT MIN ( DISTINCT + 14 ) + + 30
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1119
SELECT ALL - - 80 * + 70 + + 33 + CAST( NULL AS SIGNED ) * ( - + 41 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL - - 80 * + 70 + + 33 + CAST ( NULL AS INTEGER ) * ( - + 41 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1121
SELECT 96 * + 26 + - + 60 + + + ( + - 68 ) + + COUNT( * ) DIV - + 89 + ( + 82 ) * - + 58 * + - 77 DIV + COUNT( * )
----
368580

skipif mysql # not compatible
query I rowsort label-1121
SELECT 96 * + 26 + - + 60 + + + ( + - 68 ) + + COUNT ( * ) / - + 89 + ( + 82 ) * - + 58 * + - 77 / + COUNT ( * )
----
368580

query I rowsort
SELECT DISTINCT - 70 + 18
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT ALL + + MAX( - 78 ) + - - 80 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL + + MAX ( - 78 ) + - - 80 AS col0
----
2

query I rowsort
SELECT ALL + - 5 + 58 * - 28 col0
----
-1629

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1125
SELECT ALL + CAST( NULL AS DECIMAL ) * CAST( + 0 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL + CAST ( NULL AS REAL ) * CAST ( + 0 AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1126
SELECT DISTINCT - 68 + - 30 + - 76 - + CASE - 31 WHEN + - COUNT( * ) THEN NULL ELSE + - ( + + CAST( NULL AS SIGNED ) ) END * 76 / - + 8 * 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1126
SELECT DISTINCT - 68 + - 30 + - 76 - + CASE - 31 WHEN + - COUNT ( * ) THEN NULL ELSE + - ( + + CAST ( NULL AS INTEGER ) ) END * 76 / - + 8 * 95 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT + + MAX( ALL - 8 ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-1127
SELECT + + MAX ( ALL - 8 ) col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT ALL - - CASE + + COUNT( * ) WHEN + 64 + + + 6 + - 36 THEN NULL WHEN + - 66 * + 39 THEN + MIN( DISTINCT 32 ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL - - CASE + + COUNT ( * ) WHEN + 64 + + + 6 + - 36 THEN NULL WHEN + - 66 * + 39 THEN + MIN ( DISTINCT 32 ) ELSE NULL END col1
----
NULL

query I rowsort
SELECT ALL - + 75 + 48 col1
----
-27

query I rowsort
SELECT ALL + 76 + 63 AS col2
----
139

onlyif mysql # DIV for integer division: 
query II rowsort label-1131
SELECT + - 68, + 34 DIV + + 9 + - 36 + - 22 * - + 88 * - - 34 * + ( 13 ) AS col1
----
-68
855679

skipif mysql # not compatible
query II rowsort label-1131
SELECT + - 68, + 34 / + + 9 + - 36 + - 22 * - + 88 * - - 34 * + ( 13 ) AS col1
----
-68
855679

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

query II rowsort
SELECT 33, - 39 AS col0
----
33
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1134
SELECT CASE ( - 21 ) WHEN - 56 * + + ( + + 66 ) THEN - - AVG ( ALL + - 76 ) * - COUNT( - 64 ) + + - 29 + NULLIF ( + 8, + 29 ) + 32 * - 64 WHEN + CASE - COALESCE ( + 31, 20 - + SUM( DISTINCT - 97 ), - MIN( ALL 24 ) * 9 * + 55 * - + 95 + - CASE - COUNT( * ) WHEN - + 99 THEN NULL ELSE 38 * 6 / - + 29 / - 94 END * 92 + + - AVG ( 41 ) + - ( + ( + 22 ) ) * 56 ) WHEN - 42 * - ( CAST( NULL AS SIGNED ) ) THEN + 38 / - 88 END THEN NULL END * 95
----
NULL

skipif mysql # not compatible
query I rowsort label-1134
SELECT CASE ( - 21 ) WHEN - 56 * + + ( + + 66 ) THEN - - AVG ( ALL + - 76 ) * - COUNT ( - 64 ) + + - 29 + NULLIF ( + 8, + 29 ) + 32 * - 64 WHEN + CASE - COALESCE ( + 31, 20 - + SUM ( DISTINCT - 97 ), - MIN ( ALL 24 ) * 9 * + 55 * - + 95 + - CASE - COUNT ( * ) WHEN - + 99 THEN NULL ELSE 38 * 6 / - + 29 / - 94 END * 92 + + - AVG ( 41 ) + - ( + ( + 22 ) ) * 56 ) WHEN - 42 * - ( CAST ( NULL AS INTEGER ) ) THEN + 38 / - 88 END THEN NULL END * 95
----
NULL

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1137
SELECT ( + + 68 ) + + COUNT ( * ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT ALL COUNT( * ) - - - 30 + + 2 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL COUNT ( * ) - - - 30 + + 2 AS col1
----
-27

query I rowsort
SELECT 83 * 39 AS col2
----
3237

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

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

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

skipif mysql # not compatible
query II rowsort label-1141
SELECT DISTINCT - COUNT ( * ), 98 AS col0
----
-1
98

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

skipif mysql # not compatible
query I rowsort label-1142
SELECT 96 - - CAST ( NULL AS INTEGER ) + - 20 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1143
SELECT ALL 72 * + 0 DIV - 47
----
0

skipif mysql # not compatible
query I rowsort label-1143
SELECT ALL 72 * + 0 / - 47
----
0

query II rowsort
SELECT ALL 41, + 1 AS col2
----
41
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT DISTINCT COUNT( * ) * 1 col1
----
1

skipif mysql # not compatible
query I rowsort label-1145
SELECT DISTINCT COUNT ( * ) * 1 col1
----
1

query I rowsort
SELECT DISTINCT 19 * 2 AS col0
----
38

query I rowsort
SELECT NULLIF ( 16, + AVG ( ALL + + 80 ) ) * - + 45 * - ( - 25 )
----
-18000

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT ALL COUNT( * ) * 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL COUNT ( * ) * 70 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT COALESCE ( - 62, COUNT( * ) + + - 30 + - 71, + MIN( ALL + 75 ) + + 25 + + COUNT( * ) ) * + 85 AS col2
----
-5270

skipif mysql # not compatible
query I rowsort label-1149
SELECT COALESCE ( - 62, COUNT ( * ) + + - 30 + - 71, + MIN ( ALL + 75 ) + + 25 + + COUNT ( * ) ) * + 85 AS col2
----
-5270

query I rowsort
SELECT 47 * 23 AS col0
----
1081

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT NULLIF ( - 17, - CASE - MIN( DISTINCT - 14 ) WHEN - + 42 THEN + 19 ELSE - - 39 + + + 99 END ) - 45 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-1151
SELECT NULLIF ( - 17, - CASE - MIN ( DISTINCT - 14 ) WHEN - + 42 THEN + 19 ELSE - - 39 + + + 99 END ) - 45 AS col0
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1152
SELECT DISTINCT - COUNT( * ) + - + 97 DIV - + COUNT( * ) + - 61 + - 46 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-1152
SELECT DISTINCT - COUNT ( * ) + - + 97 / - + COUNT ( * ) + - 61 + - 46 AS col2
----
-11

query I rowsort
SELECT ALL + + 57 + + 81 AS col0
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1154
SELECT ALL 63 + 95 * + 86 + - + 42 DIV - 20 + + COUNT( - + CAST( NULL AS SIGNED ) )
----
8235

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL 63 + 95 * + 86 + - + 42 / - 20 + + COUNT ( - + CAST ( NULL AS INTEGER ) )
----
8235

query I rowsort
SELECT DISTINCT COALESCE ( 30, 8 * + 17 ) col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1156
SELECT - 45 AS col1, + COUNT( * ), + 89 + - CAST( + 57 AS SIGNED ) + - 72 AS col2
----
-45
1
-40

skipif mysql # not compatible
query III rowsort label-1156
SELECT - 45 AS col1, + COUNT ( * ), + 89 + - CAST ( + 57 AS INTEGER ) + - 72 AS col2
----
-45
1
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ALL - - 44 + NULLIF ( SUM( DISTINCT - 54 ), + 50 / + 97 ) + + 82
----
72

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL - - 44 + NULLIF ( SUM ( DISTINCT - 54 ), + 50 / + 97 ) + + 82
----
72

query I rowsort
SELECT ALL 90 + - NULLIF ( - 79, + 29 ) col0
----
169

onlyif mysql # aggregate syntax: 
query II rowsort label-1159
SELECT 91 + + COUNT( * ), + 60 * + MIN( ALL + 88 ) col1
----
92
5280

skipif mysql # not compatible
query II rowsort label-1159
SELECT 91 + + COUNT ( * ), + 60 * + MIN ( ALL + 88 ) col1
----
92
5280

query I rowsort
SELECT 34 * + 71
----
2414

query II rowsort
SELECT DISTINCT - 93, - 14 AS col0
----
-93
-14

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1163
SELECT 98, + COUNT( * ) * - 86 - - + 95 + + 17 AS col1
----
98
26

skipif mysql # not compatible
query II rowsort label-1163
SELECT 98, + COUNT ( * ) * - 86 - - + 95 + + 17 AS col1
----
98
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1164
SELECT + 56 / + + CAST( NULL AS SIGNED ) * + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1164
SELECT + 56 / + + CAST ( NULL AS INTEGER ) * + 43 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT ALL - COALESCE ( - MIN( DISTINCT - + 42 ), 12 + + - 34 ) * + + 97 + - - 79
----
-3995

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL - COALESCE ( - MIN ( DISTINCT - + 42 ), 12 + + - 34 ) * + + 97 + - - 79
----
-3995

query I rowsort
SELECT DISTINCT - - 37 * - + 53 + + 14 * + 51 AS col0
----
-1247

query II rowsort
SELECT ALL - - 48 AS col1, + 66 AS col2
----
48
66

query II rowsort
SELECT + - 91, - 26 AS col1
----
-91
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT DISTINCT + 85 * + 9 + - + 24 - - CASE - + 63 WHEN - + 76 + + 77 + - - 61 * - 3 / + 99 THEN + + 76 * + - 91 * + - MAX( ALL + 7 ) + 33 + + 87 / - 5 ELSE NULL END + + MAX( + 66 ) + - + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT + 85 * + 9 + - + 24 - - CASE - + 63 WHEN - + 76 + + 77 + - - 61 * - 3 / + 99 THEN + + 76 * + - 91 * + - MAX ( ALL + 7 ) + 33 + + 87 / - 5 ELSE NULL END + + MAX ( + 66 ) + - + 69
----
NULL

query I rowsort
SELECT DISTINCT - 83 * 59 AS col2
----
-4897

query II rowsort
SELECT + 37 AS col2, + 31 * - + 90 + 10
----
37
-2780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1172
SELECT - + CAST( COUNT( * ) AS SIGNED ) + - 73 + 48 AS col2, - 85 * + COUNT( * ) AS col2
----
-26
-85

skipif mysql # not compatible
query II rowsort label-1172
SELECT - + CAST ( COUNT ( * ) AS INTEGER ) + - 73 + 48 AS col2, - 85 * + COUNT ( * ) AS col2
----
-26
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-1173
SELECT - 81 DIV + + 45 - + 47 - + 6 * + 69 DIV - + 17 + - 40 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-1173
SELECT - 81 / + + 45 - + 47 - + 6 * + 69 / - + 17 + - 40 AS col0
----
-64

query I rowsort
SELECT ALL + 41 * - ( 35 ) * 45 * 7 * 38 AS col2
----
-17176950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1175
SELECT - NULLIF ( + 97, ( - CAST( 45 AS SIGNED ) ) + - COUNT( * ) ) * - - 52 AS col2
----
-5044

skipif mysql # not compatible
query I rowsort label-1175
SELECT - NULLIF ( + 97, ( - CAST ( 45 AS INTEGER ) ) + - COUNT ( * ) ) * - - 52 AS col2
----
-5044

onlyif mysql # aggregate syntax: 
query II rowsort label-1176
SELECT DISTINCT + 23 * - + 99, COUNT( * ) + + 87 AS col2
----
-2277
88

skipif mysql # not compatible
query II rowsort label-1176
SELECT DISTINCT + 23 * - + 99, COUNT ( * ) + + 87 AS col2
----
-2277
88

query II rowsort
SELECT DISTINCT + 51 * - + 0 AS col0, + ( 82 )
----
0
82

onlyif mysql # aggregate syntax: 
query II rowsort label-1178
SELECT ALL + COUNT( * ) * - + 79 * + 54, 87 AS col2
----
-4266
87

skipif mysql # not compatible
query II rowsort label-1178
SELECT ALL + COUNT ( * ) * - + 79 * + 54, 87 AS col2
----
-4266
87

onlyif mysql # aggregate syntax: 
query II rowsort label-1179
SELECT COUNT( - 47 ), + 91 * COUNT( * ) - - COUNT( * ) col1
----
1
92

skipif mysql # not compatible
query II rowsort label-1179
SELECT COUNT ( - 47 ), + 91 * COUNT ( * ) - - COUNT ( * ) col1
----
1
92

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

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

query I rowsort
SELECT - CASE + + 74 WHEN 49 THEN + - 76 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT - COUNT( * ) * + 64 + + 91 * - COUNT( * ) + - 93 AS col2
----
-248

skipif mysql # not compatible
query I rowsort label-1182
SELECT - COUNT ( * ) * + 64 + + 91 * - COUNT ( * ) + - 93 AS col2
----
-248

onlyif mysql # DIV for integer division: 
query I rowsort label-1183
SELECT - 95 DIV - 41 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1183
SELECT - 95 / - 41 AS col1
----
2

query I rowsort
SELECT + 1 * - COALESCE ( - + 62, - 29 * + + 63 )
----
62

query I rowsort
SELECT - 13 + + - 48 + - - 26 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-1186
SELECT - MAX( DISTINCT + 6 ) AS col2, 6 col0
----
-6
6

skipif mysql # not compatible
query II rowsort label-1186
SELECT - MAX ( DISTINCT + 6 ) AS col2, 6 col0
----
-6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT ALL CASE + 94 WHEN COUNT( * ) * + ( - 80 ) - NULLIF ( + 45, + 5 ) + - COUNT( * ) THEN NULL ELSE 77 END
----
77

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL CASE + 94 WHEN COUNT ( * ) * + ( - 80 ) - NULLIF ( + 45, + 5 ) + - COUNT ( * ) THEN NULL ELSE 77 END
----
77

query II rowsort
SELECT + 89 + 37 AS col0, ( - - 43 ) + + 6 + ( - - 9 ) AS col0
----
126
58

query I rowsort
SELECT ALL + ( + - 22 ) + + 44 AS col1
----
22

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

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL 59 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 65 + + + 15
----
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1192
SELECT ALL + 5 + CAST( NULL AS DECIMAL ) - - CAST( NULL AS DECIMAL ) * 20 * - - AVG ( ALL - COALESCE ( + - ( + 23 ), + 48 ) ) * COUNT( DISTINCT 60 ) + - 20 / + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL + 5 + CAST ( NULL AS REAL ) - - CAST ( NULL AS REAL ) * 20 * - - AVG ( ALL - COALESCE ( + - ( + 23 ), + 48 ) ) * COUNT ( DISTINCT 60 ) + - 20 / + 18
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1193
SELECT - + ( MIN ( + 26 ) )
----
-26

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

skipif mysql # not compatible
query I rowsort label-1194
SELECT DISTINCT + SUM ( CAST ( NULL AS INTEGER ) ) * + MIN ( ALL 16 ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL - 31 + CAST ( NULL AS INTEGER ) + ( + - 71 )
----
NULL

query I rowsort
SELECT ALL 69 * 93 AS col0
----
6417

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT ALL + 61 + + COALESCE ( 4, + 0 + + COUNT( * ), - 27 + ( + 4 ) + - NULLIF ( + - 18, + 81 ) * - ( + + ( + 64 ) ) - + 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL + 61 + + COALESCE ( 4, + 0 + + COUNT ( * ), - 27 + ( + 4 ) + - NULLIF ( + - 18, + 81 ) * - ( + + ( + 64 ) ) - + 65 ) AS col2
----
65

query II rowsort
SELECT DISTINCT 78 + 57, + 84 col2
----
135
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT + - 81 * + COUNT( * ) * + + CASE - + 10 WHEN + - 61 THEN 98 / + 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1199
SELECT + - 81 * + COUNT ( * ) * + + CASE - + 10 WHEN + - 61 THEN 98 / + 74 END
----
NULL

query I rowsort
SELECT + 27 + 2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT DISTINCT - NULLIF ( - COUNT( ALL + - 47 ), + CASE 80 WHEN + + 3 + - + 26 THEN NULL WHEN + + 46 * COUNT( + + ( - 35 ) ) * - 1 THEN NULL ELSE 58 + + 17 END + + + COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT - NULLIF ( - COUNT ( ALL + - 47 ), + CASE 80 WHEN + + 3 + - + 26 THEN NULL WHEN + + 46 * COUNT ( + + ( - 35 ) ) * - 1 THEN NULL ELSE 58 + + 17 END + + + COUNT ( * ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1202
SELECT ALL COALESCE ( + NULLIF ( - + 51, + COUNT( 87 ) * + MAX( - - 24 ) ), 31 * ( + 17 ) ) AS col2, - 81 AS col2
----
-51
-81

skipif mysql # not compatible
query II rowsort label-1202
SELECT ALL COALESCE ( + NULLIF ( - + 51, + COUNT ( 87 ) * + MAX ( - - 24 ) ), 31 * ( + 17 ) ) AS col2, - 81 AS col2
----
-51
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-1203
SELECT ALL COUNT( * ) * + 98 AS col2, 45 col0
----
98
45

skipif mysql # not compatible
query II rowsort label-1203
SELECT ALL COUNT ( * ) * + 98 AS col2, 45 col0
----
98
45

query I rowsort
SELECT + 93 * + NULLIF ( + + 7, 21 ) AS col0
----
651

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT ALL + NULLIF ( + 74, + 89 ) + 57 * - ( + + MAX( - 25 ) ) + - + 57 + + - 73 * + COUNT( * )
----
1369

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL + NULLIF ( + 74, + 89 ) + 57 * - ( + + MAX ( - 25 ) ) + - + 57 + + - 73 * + COUNT ( * )
----
1369

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1207
SELECT DISTINCT 81 DIV + - 24 AS col0, - ( - MIN( DISTINCT - 17 ) ) + - 67 AS col1
----
-3
-84

skipif mysql # not compatible
query II rowsort label-1207
SELECT DISTINCT 81 / + - 24 AS col0, - ( - MIN ( DISTINCT - 17 ) ) + - 67 AS col1
----
-3
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-1208
SELECT ALL - COALESCE ( 12, - + 22 ) AS col0, + 56 DIV 30 + - 63 AS col0
----
-12
-62

skipif mysql # not compatible
query II rowsort label-1208
SELECT ALL - COALESCE ( 12, - + 22 ) AS col0, + 56 / 30 + - 63 AS col0
----
-12
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-1209
SELECT - + 49 * - 69 col2, + 25 + - - 94 + NULLIF ( + 44, ( 3 ) + - 4 * COUNT( * ) ) * + + 13
----
3381
691

skipif mysql # not compatible
query II rowsort label-1209
SELECT - + 49 * - 69 col2, + 25 + - - 94 + NULLIF ( + 44, ( 3 ) + - 4 * COUNT ( * ) ) * + + 13
----
3381
691

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1210
SELECT ALL 99 * + CASE + + COALESCE ( - + 79, - - 51 + 80 * 96, + COALESCE ( 18, AVG ( DISTINCT 81 ) + 50 / - 40 / - - 96, + COUNT( ALL - 74 ) ) ) WHEN - 94 + - - 15 THEN - CAST( NULL AS SIGNED ) END * - + ( - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL 99 * + CASE + + COALESCE ( - + 79, - - 51 + 80 * 96, + COALESCE ( 18, AVG ( DISTINCT 81 ) + 50 / - 40 / - - 96, + COUNT ( ALL - 74 ) ) ) WHEN - 94 + - - 15 THEN - CAST ( NULL AS INTEGER ) END * - + ( - 70 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1211
SELECT DISTINCT 95 / 1 / + CAST( NULL AS SIGNED ) - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-1211
SELECT DISTINCT 95 / 1 / + CAST ( NULL AS INTEGER ) - 51
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT ALL + CASE + 27 WHEN - - 7 * 10 + 81 + + 79 THEN COALESCE ( + 25, + + 84 * + COUNT( ALL - 89 ) ) + + 85 - - 10 WHEN + 75 - - - 28 THEN - 31 + SUM( - 58 ) + + 79 WHEN 46 THEN NULL ELSE 41 * - 39 - + - NULLIF ( + 18, + COUNT( * ) ) END AS col1
----
-1581

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL + CASE + 27 WHEN - - 7 * 10 + 81 + + 79 THEN COALESCE ( + 25, + + 84 * + COUNT ( ALL - 89 ) ) + + 85 - - 10 WHEN + 75 - - - 28 THEN - 31 + SUM ( - 58 ) + + 79 WHEN 46 THEN NULL ELSE 41 * - 39 - + - NULLIF ( + 18, + COUNT ( * ) ) END AS col1
----
-1581

query I rowsort
SELECT - ( + 52 ) + - + 69 * - + 14
----
914

query II rowsort
SELECT ALL + 31 AS col0, 21 col1
----
31
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT ALL + COALESCE ( + ( + COALESCE ( - SUM( ALL 7 ), ( 76 ) * + ( COUNT( DISTINCT - ( + + 71 ) ) ) + ( + - 88 ) ) ), - 12 * - + 59 + + + COUNT( * ) - 47 + 40 )
----
-7

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL + COALESCE ( + ( + COALESCE ( - SUM ( ALL 7 ), ( 76 ) * + ( COUNT ( DISTINCT - ( + + 71 ) ) ) + ( + - 88 ) ) ), - 12 * - + 59 + + + COUNT ( * ) - 47 + 40 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT + COUNT( * ) + + 69 + 4 * - 14 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-1218
SELECT + COUNT ( * ) + + 69 + 4 * - 14 AS col1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-1219
SELECT - 31 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-1219
SELECT - 31 / + 77
----
0

query I rowsort
SELECT - 19 * - + 67 AS col1
----
1273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1221
SELECT - COUNT( * ) + CAST( - 50 AS SIGNED ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-1221
SELECT - COUNT ( * ) + CAST ( - 50 AS INTEGER ) AS col1
----
-51

query I rowsort
SELECT ALL - 45 * + + ( + + 1 ) * + 48 + 83 + + 37 - + 36 + - 3
----
-2079

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

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

query I rowsort
SELECT NULLIF ( - 21, - 19 )
----
-21

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

query I rowsort
SELECT COALESCE ( - 78, + ( - 72 ), - 30 * + - 15 )
----
-78

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

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

query I rowsort
SELECT - 84 * + - 32
----
2688

query I rowsort
SELECT DISTINCT + - 1 * - 87 + - ( + 93 ) * - 66 AS col2
----
6225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1230
SELECT ALL - + 35 * - COUNT( * ) + - + 22 * + 0 DIV + - 69 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL - + 35 * - COUNT ( * ) + - + 22 * + 0 / + - 69 AS col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-1231
SELECT + 11 DIV ( 56 ) * - 66 - + 53 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-1231
SELECT + 11 / ( 56 ) * - 66 - + 53 AS col0
----
-53

query I rowsort
SELECT ALL - CASE + 31 WHEN - + 44 THEN NULL ELSE - ( - 69 ) END + 1 + - 31 col2
----
-99

query II rowsort
SELECT - - 20 AS col1, ( + 90 ) - + 48 * - 73
----
20
3594

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1234
SELECT - - CAST( NULL AS DECIMAL ) / 18 - - 37 + MIN( + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1234
SELECT - - CAST ( NULL AS REAL ) / 18 - - 37 + MIN ( + 66 )
----
NULL

query I rowsort
SELECT ALL - 38 - 86 AS col2
----
-124

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

skipif mysql # not compatible
query II rowsort label-1236
SELECT DISTINCT COUNT ( * ) AS col0, 89
----
1
89

query II rowsort
SELECT + 65, 93 AS col2
----
65
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT ALL + 47 * - 53 * + 20 + - 10 - - - COUNT( * ) AS col0
----
-49831

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL + 47 * - 53 * + 20 + - 10 - - - COUNT ( * ) AS col0
----
-49831

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1239
SELECT - COUNT( * ) + 50 DIV - 14 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1239
SELECT - COUNT ( * ) + 50 / - 14 AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1240
SELECT 20 DIV COUNT( * ) * NULLIF ( + + COUNT( * ), - 74 ) - - 47 + CASE + 8 WHEN - 89 THEN COUNT( * ) WHEN CAST( NULL AS SIGNED ) * - + 86 + + NULLIF ( + COUNT( * ), + 92 ) THEN NULL ELSE 34 END + - 70 + 64 * + 5 * 97 * + 57
----
1769311

skipif mysql # not compatible
query I rowsort label-1240
SELECT 20 / COUNT ( * ) * NULLIF ( + + COUNT ( * ), - 74 ) - - 47 + CASE + 8 WHEN - 89 THEN COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) * - + 86 + + NULLIF ( + COUNT ( * ), + 92 ) THEN NULL ELSE 34 END + - 70 + 64 * + 5 * 97 * + 57
----
1769311

query I rowsort
SELECT - 53 * + - 21 + + 86
----
1199

query I rowsort
SELECT 23 + 31
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-1243
SELECT - ( 14 ) - + 54 - - - 53 + - COUNT( * ) * 55 * - + MIN( - 42 ) AS col2, + SUM( ALL - 18 ) AS col2
----
-2431
-18

skipif mysql # not compatible
query II rowsort label-1243
SELECT - ( 14 ) - + 54 - - - 53 + - COUNT ( * ) * 55 * - + MIN ( - 42 ) AS col2, + SUM ( ALL - 18 ) AS col2
----
-2431
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-1244
SELECT ALL 10, + ( COUNT( * ) ) + - 32 - + + 99 AS col0
----
10
-130

skipif mysql # not compatible
query II rowsort label-1244
SELECT ALL 10, + ( COUNT ( * ) ) + - 32 - + + 99 AS col0
----
10
-130

onlyif mysql # aggregate syntax: 
query II rowsort label-1245
SELECT - COUNT( * ) AS col2, COALESCE ( 5, + 79 ) AS col2
----
-1
5

skipif mysql # not compatible
query II rowsort label-1245
SELECT - COUNT ( * ) AS col2, COALESCE ( 5, + 79 ) AS col2
----
-1
5

query II rowsort
SELECT - 71 AS col2, 65 * 11 AS col2
----
-71
715

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1248
SELECT ALL - + CAST( NULL AS SIGNED ), 20 AS col1
----
NULL
20

skipif mysql # not compatible
query II rowsort label-1248
SELECT ALL - + CAST ( NULL AS INTEGER ), 20 AS col1
----
NULL
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT CASE 33 WHEN - COUNT( * ) + - 6 + - 63 * - 15 * - COUNT( ALL - - 97 ) THEN + 19 * + - 14 + - + 32 ELSE NULL END + 38 * + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1249
SELECT CASE 33 WHEN - COUNT ( * ) + - 6 + - 63 * - 15 * - COUNT ( ALL - - 97 ) THEN + 19 * + - 14 + - + 32 ELSE NULL END + 38 * + 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT 51 * - COUNT( * ) + 94 * + 17 + + COUNT( * ) col1
----
1548

skipif mysql # not compatible
query I rowsort label-1250
SELECT 51 * - COUNT ( * ) + 94 * + 17 + + COUNT ( * ) col1
----
1548

onlyif mysql # aggregate syntax: 
query II rowsort label-1251
SELECT ALL 61 * - COUNT( * ) AS col1, + 88 * + COUNT( * ) * - 18 AS col1
----
-61
-1584

skipif mysql # not compatible
query II rowsort label-1251
SELECT ALL 61 * - COUNT ( * ) AS col1, + 88 * + COUNT ( * ) * - 18 AS col1
----
-61
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT CASE - 38 WHEN + 9 * - 25 * - - ( - - 61 ) + + ( ( 89 ) ) THEN + - 32 ELSE NULL END * - COUNT( * ) + + 54 + - + 60 * 55 * + + 1 * - 12 * + NULLIF ( - 43, + 28 * + NULLIF ( ( - AVG ( DISTINCT - 4 ) ), - CASE - - 44 WHEN + - COUNT( * ) * - - 48 + + 49 * - ( - + SUM( DISTINCT - 4 ) ) THEN + 39 * + COUNT( * ) END ) - - COUNT( * ) - + - 91 - MIN( ALL + - 23 ) * - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1252
SELECT CASE - 38 WHEN + 9 * - 25 * - - ( - - 61 ) + + ( ( 89 ) ) THEN + - 32 ELSE NULL END * - COUNT ( * ) + + 54 + - + 60 * 55 * + + 1 * - 12 * + NULLIF ( - 43, + 28 * + NULLIF ( ( - AVG ( DISTINCT - 4 ) ), - CASE - - 44 WHEN + - COUNT ( * ) * - - 48 + + 49 * - ( - + SUM ( DISTINCT - 4 ) ) THEN + 39 * + COUNT ( * ) END ) - - COUNT ( * ) - + - 91 - MIN ( ALL + - 23 ) * - 21 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1253
SELECT DISTINCT 96 + 92 DIV - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-1253
SELECT DISTINCT 96 + 92 / - COUNT ( * )
----
4

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

skipif mysql # not compatible
query I rowsort label-1254
SELECT 95 * - COUNT ( DISTINCT + 77 ) AS col0
----
-95

onlyif mysql # DIV for integer division: 
query II rowsort label-1255
SELECT 15 DIV 60 + 66 * - 57, NULLIF ( - ( + 3 ), - 56 * - 65 ) AS col2
----
-3762
-3

skipif mysql # not compatible
query II rowsort label-1255
SELECT 15 / 60 + 66 * - 57, NULLIF ( - ( + 3 ), - 56 * - 65 ) AS col2
----
-3762
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1256
SELECT ALL 14 * - COUNT( * ), 6 DIV COUNT( * ) col1
----
-14
6

skipif mysql # not compatible
query II rowsort label-1256
SELECT ALL 14 * - COUNT ( * ), 6 / COUNT ( * ) col1
----
-14
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1257
SELECT 2 DIV 94 * + + 10 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1257
SELECT 2 / 94 * + + 10 AS col0
----
0

query II rowsort
SELECT 40 + - 18 + + 26 + 79 * - - 51 AS col2, - 78
----
4077
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-1259
SELECT ALL - COUNT( 36 ) AS col1, + COUNT( * ) * COALESCE ( - 6, + + 10 ) + + 18 col1
----
-1
12

skipif mysql # not compatible
query II rowsort label-1259
SELECT ALL - COUNT ( 36 ) AS col1, + COUNT ( * ) * COALESCE ( - 6, + + 10 ) + + 18 col1
----
-1
12

query I rowsort
SELECT ALL + 6 + 7 * + + 86 * + 98 + - 77 AS col2
----
58925

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

skipif mysql # not compatible
query I rowsort label-1261
SELECT CAST ( NULL AS INTEGER ) - 32 * - 79 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1262
SELECT DISTINCT NULLIF ( + + 18, - 84 ) + + 20 * + NULLIF ( NULLIF ( 38, - + COUNT( * ) ), + 57 ) * 79 AS col1, COUNT( * ) + + 15 AS col1
----
60058
16

skipif mysql # not compatible
query II rowsort label-1262
SELECT DISTINCT NULLIF ( + + 18, - 84 ) + + 20 * + NULLIF ( NULLIF ( 38, - + COUNT ( * ) ), + 57 ) * 79 AS col1, COUNT ( * ) + + 15 AS col1
----
60058
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1263
SELECT ALL SUM( + 0 ) + + 88 DIV 66 + - - 4 + 51
----
56

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL SUM ( + 0 ) + + 88 / 66 + - - 4 + 51
----
56

query I rowsort
SELECT DISTINCT + 34 + + ( 60 ) AS col2
----
94

query I rowsort
SELECT ALL - 71 + - 11 + + - 20 AS col1
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1266
SELECT ALL + 16 * - - 79 AS col0, 41 / CASE 46 WHEN - CAST( - 5 AS SIGNED ) * - + CASE + SUM( 53 ) WHEN - - 8 THEN NULL WHEN + - 77 / - + 89 + CASE - - 59 WHEN - 86 - - 96 - + 40 / + 78 * + 32 * COUNT( * ) THEN + ( + NULLIF ( - 40, + 76 ) ) - 42 END + 38 / + + 42 * + + 6 THEN + NULLIF ( + 50, 27 ) WHEN + COUNT( * ) * MAX( DISTINCT ( - - 53 ) ) THEN + 85 END THEN + - 88 WHEN + 36 THEN - AVG ( 36 ) * + 30 + + 53 WHEN 53 THEN 92 * 34 + COUNT( * ) END * 75 + - 38 AS col0
----
1264
NULL

skipif mysql # not compatible
query II rowsort label-1266
SELECT ALL + 16 * - - 79 AS col0, 41 / CASE 46 WHEN - CAST ( - 5 AS INTEGER ) * - + CASE + SUM ( 53 ) WHEN - - 8 THEN NULL WHEN + - 77 / - + 89 + CASE - - 59 WHEN - 86 - - 96 - + 40 / + 78 * + 32 * COUNT ( * ) THEN + ( + NULLIF ( - 40, + 76 ) ) - 42 END + 38 / + + 42 * + + 6 THEN + NULLIF ( + 50, 27 ) WHEN + COUNT ( * ) * MAX ( DISTINCT ( - - 53 ) ) THEN + 85 END THEN + - 88 WHEN + 36 THEN - AVG ( 36 ) * + 30 + + 53 WHEN 53 THEN 92 * 34 + COUNT ( * ) END * 75 + - 38 AS col0
----
1264
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1267
SELECT ALL NULLIF ( + 66, + 49 ) DIV + 28
----
2

skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL NULLIF ( + 66, + 49 ) / + 28
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1268
SELECT 53 - + ( + CAST( - COUNT( * ) AS SIGNED ) ) * + + 57 - 42 * - + 41 AS col2
----
1832

skipif mysql # not compatible
query I rowsort label-1268
SELECT 53 - + ( + CAST ( - COUNT ( * ) AS INTEGER ) ) * + + 57 - 42 * - + 41 AS col2
----
1832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1269
SELECT 62 - - 74 + + ( ( + 51 ) ) + - - COUNT( * ) * + COUNT( * ) + - COUNT( * ) + - 31 + - - 19 * 68 * - MAX( ALL + - CAST( + 96 AS SIGNED ) ) AS col0, - 73 + - 15 AS col0
----
124188
-88

skipif mysql # not compatible
query II rowsort label-1269
SELECT 62 - - 74 + + ( ( + 51 ) ) + - - COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) + - 31 + - - 19 * 68 * - MAX ( ALL + - CAST ( + 96 AS INTEGER ) ) AS col0, - 73 + - 15 AS col0
----
124188
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT ALL - NULLIF ( + ( + SUM( 35 ) ), + 56 ) + - 89 - - 87 / SUM( + 29 ) * 97 * - 87 + 33 * 44 / - 12 * + COUNT( * ) / - CASE + + 32 WHEN 43 - 60 + - 3 THEN + 86 + 81 + 77 * COUNT( * ) * - COALESCE ( - COUNT( * ), - - MIN( DISTINCT - 60 ) + - 93 ) * 43 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL - NULLIF ( + ( + SUM ( 35 ) ), + 56 ) + - 89 - - 87 / SUM ( + 29 ) * 97 * - 87 + 33 * 44 / - 12 * + COUNT ( * ) / - CASE + + 32 WHEN 43 - 60 + - 3 THEN + 86 + 81 + 77 * COUNT ( * ) * - COALESCE ( - COUNT ( * ), - - MIN ( DISTINCT - 60 ) + - 93 ) * 43 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1271
SELECT ALL + COALESCE ( + - 50, 66 * - CASE + - 28 WHEN - 9 * + 53 * + + 66 + + + 92 + + + 54 * + 29 DIV + + 17 THEN 31 WHEN - CASE WHEN 60 <> NULL THEN + + COUNT( * ) + COUNT( * ) ELSE NULL END THEN NULL END * COUNT( * ) + + + 42 + + 16, - + 84 DIV + - 74 + - + 98 DIV 76 + 43 + - + CASE 39 WHEN - 10 DIV CAST( NULL AS SIGNED ) THEN + 81 ELSE NULL END + MIN( - + 20 ) * - 75 )
----
-50

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL + COALESCE ( + - 50, 66 * - CASE + - 28 WHEN - 9 * + 53 * + + 66 + + + 92 + + + 54 * + 29 / + + 17 THEN 31 WHEN - CASE WHEN 60 <> NULL THEN + + COUNT ( * ) + COUNT ( * ) ELSE NULL END THEN NULL END * COUNT ( * ) + + + 42 + + 16, - + 84 / + - 74 + - + 98 / 76 + 43 + - + CASE 39 WHEN - 10 / CAST ( NULL AS INTEGER ) THEN + 81 ELSE NULL END + MIN ( - + 20 ) * - 75 )
----
-50

query I rowsort
SELECT DISTINCT - - 79 * + 49 AS col2
----
3871

query II rowsort
SELECT - 84 * - 74 * 27 * - 14, 76 AS col1
----
-2349648
76

onlyif mysql # aggregate syntax: 
query II rowsort label-1274
SELECT DISTINCT - + COUNT( * ) * - 59 col2, 34
----
59
34

skipif mysql # not compatible
query II rowsort label-1274
SELECT DISTINCT - + COUNT ( * ) * - 59 col2, 34
----
59
34

query II rowsort
SELECT 89 + + ( ( + + 53 ) ) AS col1, 61
----
142
61

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

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

query II rowsort
SELECT + 25 + - 17 * - - 14 * ( + 61 ) * - ( 50 ), + 29 AS col1
----
725925
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1278
SELECT ALL + + MAX( DISTINCT + - 6 ) DIV + 82 * + 34 DIV + 1 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL + + MAX ( DISTINCT + - 6 ) / + 82 * + 34 / + 1 AS col2
----
0

query I rowsort
SELECT - + 60 col2
----
-60

query I rowsort
SELECT ALL 31 * + 27 + + - 60 AS col0
----
777

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT ALL + MIN( + 15 ) * 57 * 92
----
78660

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL + MIN ( + 15 ) * 57 * 92
----
78660

query I rowsort
SELECT ALL - 40 * + - 99 + 61 + + 87 AS col1
----
4108

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

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

query I rowsort
SELECT ALL - 7 * - 96 + + 89 AS col1
----
761

query I rowsort
SELECT ALL + 24 * - ( - 73 ) + + + 17 col0
----
1769

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1287
SELECT ( 77 ) + + 20 + + + 69 + + 44 - 25 + COUNT( * ) DIV - SUM( + - 79 )
----
185

skipif mysql # not compatible
query I rowsort label-1287
SELECT ( 77 ) + + 20 + + + 69 + + 44 - 25 + COUNT ( * ) / - SUM ( + - 79 )
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-1288
SELECT COUNT( * ) * 84 * + 40 AS col0, - 2 * - + 73 * + 39
----
3360
5694

skipif mysql # not compatible
query II rowsort label-1288
SELECT COUNT ( * ) * 84 * + 40 AS col0, - 2 * - + 73 * + 39
----
3360
5694

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT DISTINCT 95 * - ( + + COUNT( * ) )
----
-95

skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT 95 * - ( + + COUNT ( * ) )
----
-95

query I rowsort
SELECT - 27 * 34 + 22 + + ( - 93 ) AS col1
----
-989

onlyif mysql # aggregate syntax: 
query II rowsort label-1291
SELECT CASE + 96 WHEN - 22 * SUM( ALL 48 ) THEN + 95 END + NULLIF ( + COUNT( * ), + 84 + + - ( - - 50 ) ) AS col2, 11 AS col0
----
NULL
11

skipif mysql # not compatible
query II rowsort label-1291
SELECT CASE + 96 WHEN - 22 * SUM ( ALL 48 ) THEN + 95 END + NULLIF ( + COUNT ( * ), + 84 + + - ( - - 50 ) ) AS col2, 11 AS col0
----
NULL
11

query II rowsort
SELECT ALL - 45 AS col0, 38 AS col2
----
-45
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1293
SELECT - ( 86 ) DIV - + 51 - MAX( ALL + + ( + ( + 29 ) ) )
----
-28

skipif mysql # not compatible
query I rowsort label-1293
SELECT - ( 86 ) / - + 51 - MAX ( ALL + + ( + ( + 29 ) ) )
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1294
SELECT ALL 2 - COUNT( * ) * - ( COALESCE ( + 49, 42, + COUNT( * ) DIV + 49, + 87 ) ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL 2 - COUNT ( * ) * - ( COALESCE ( + 49, 42, + COUNT ( * ) / + 49, + 87 ) ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT ALL - 13 * 55 * 85 + - - COUNT( * )
----
-60774

skipif mysql # not compatible
query I rowsort label-1295
SELECT ALL - 13 * 55 * 85 + - - COUNT ( * )
----
-60774

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT + ( + CASE + 31 WHEN 32 THEN NULL ELSE - + 45 * - ( + COUNT( * ) ) + + COUNT( * ) + - 91 + - - 75 * 58 END ) * + COUNT( * )
----
4305

skipif mysql # not compatible
query I rowsort label-1296
SELECT + ( + CASE + 31 WHEN 32 THEN NULL ELSE - + 45 * - ( + COUNT ( * ) ) + + COUNT ( * ) + - 91 + - - 75 * 58 END ) * + COUNT ( * )
----
4305

onlyif mysql # aggregate syntax: 
query II rowsort label-1297
SELECT ALL 38 AS col0, + 99 / - NULLIF ( CASE + COALESCE ( - 7, 52 + - 16 ) WHEN 98 THEN + 96 END, + - COALESCE ( + AVG ( DISTINCT + 53 ), + 65, + 20 + - 22 ) ) * - COUNT( * ) + 80 + - 91 col2
----
38
NULL

skipif mysql # not compatible
query II rowsort label-1297
SELECT ALL 38 AS col0, + 99 / - NULLIF ( CASE + COALESCE ( - 7, 52 + - 16 ) WHEN 98 THEN + 96 END, + - COALESCE ( + AVG ( DISTINCT + 53 ), + 65, + 20 + - 22 ) ) * - COUNT ( * ) + 80 + - 91 col2
----
38
NULL

query I rowsort
SELECT + - 42 - + 19 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT - CASE ( - 0 ) WHEN + 67 * - 5 THEN + SUM( + - 58 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1299
SELECT - CASE ( - 0 ) WHEN + 67 * - 5 THEN + SUM ( + - 58 ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT ALL - ( MAX( DISTINCT - - 39 ) ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL - ( MAX ( DISTINCT - - 39 ) ) AS col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1301
SELECT + + 67 * + CAST( NULL AS SIGNED ) / 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1301
SELECT + + 67 * + CAST ( NULL AS INTEGER ) / 51 AS col1
----
NULL

query II rowsort
SELECT - 11, + 74 AS col1
----
-11
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1303
SELECT ALL + AVG ( + 82 ) * - ( 94 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL + AVG ( + 82 ) * - ( 94 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1304
SELECT CASE - NULLIF ( + 14, + 58 ) WHEN 54 THEN - 10 * CASE + 97 WHEN - 53 * - ( + 36 ) THEN + 28 WHEN + ( - + 5 ) + + 50 THEN NULL WHEN - NULLIF ( + CAST( NULL AS SIGNED ), - 39 ) THEN NULL ELSE + 84 END / - NULLIF ( + 28, + COALESCE ( + 2, - 95 / - + COUNT( * ), + - 48 - + 46 ) ) + - + MIN( ALL + - ( CASE - 59 WHEN + 23 THEN 59 + + 64 ELSE NULL END ) ) + + 18 + + COUNT( * ) WHEN + ( - 80 ) THEN NULL WHEN - - COUNT( * ) * 95 THEN - ( 70 ) * + CAST( - ( + 93 ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1304
SELECT CASE - NULLIF ( + 14, + 58 ) WHEN 54 THEN - 10 * CASE + 97 WHEN - 53 * - ( + 36 ) THEN + 28 WHEN + ( - + 5 ) + + 50 THEN NULL WHEN - NULLIF ( + CAST ( NULL AS INTEGER ), - 39 ) THEN NULL ELSE + 84 END / - NULLIF ( + 28, + COALESCE ( + 2, - 95 / - + COUNT ( * ), + - 48 - + 46 ) ) + - + MIN ( ALL + - ( CASE - 59 WHEN + 23 THEN 59 + + 64 ELSE NULL END ) ) + + 18 + + COUNT ( * ) WHEN + ( - 80 ) THEN NULL WHEN - - COUNT ( * ) * 95 THEN - ( 70 ) * + CAST ( - ( + 93 ) AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT - 64 * 67
----
-4288

query I rowsort
SELECT - 62 - + 10
----
-72

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

skipif mysql # not compatible
query I rowsort label-1307
SELECT ALL + 37 * - MAX ( - + 88 ) AS col1
----
3256

query II rowsort
SELECT - - NULLIF ( + 86, + - 49 ) * - + 86 - - 56 AS col1, 95 AS col0
----
-7340
95

query I rowsort
SELECT DISTINCT + 4 + + - 67
----
-63

query I rowsort
SELECT - 15 * + 10
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-1311
SELECT + ( 6 ) + + ( - + 5 ) DIV - 31 - 68
----
-62

skipif mysql # not compatible
query I rowsort label-1311
SELECT + ( 6 ) + + ( - + 5 ) / - 31 - 68
----
-62

query I rowsort
SELECT - 32 - 93
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT ALL CASE - 33 WHEN + 90 THEN - - 52 + + + 41 * + 27 - - CASE 83 WHEN + + MIN( DISTINCT - 83 ) * + COUNT( DISTINCT + 4 ) THEN 98 / - - 48 + - + 9 * 76 WHEN - COUNT( * ) THEN 6 END WHEN + 70 THEN - 89 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL CASE - 33 WHEN + 90 THEN - - 52 + + + 41 * + 27 - - CASE 83 WHEN + + MIN ( DISTINCT - 83 ) * + COUNT ( DISTINCT + 4 ) THEN 98 / - - 48 + - + 9 * 76 WHEN - COUNT ( * ) THEN 6 END WHEN + 70 THEN - 89 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT - ( - - CASE - - 91 WHEN + 69 THEN + 40 * - 76 - + CASE - COUNT( * ) WHEN + 62 - - 51 THEN + + 91 / + - 41 END ELSE NULL END ) / + + 85 + NULLIF ( - 82, - + 86 ) - + - 35 + - 76 * - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1314
SELECT - ( - - CASE - - 91 WHEN + 69 THEN + 40 * - 76 - + CASE - COUNT ( * ) WHEN + 62 - - 51 THEN + + 91 / + - 41 END ELSE NULL END ) / + + 85 + NULLIF ( - 82, - + 86 ) - + - 35 + - 76 * - - 70
----
NULL

query I rowsort
SELECT - 3 + + - 10 + - 32 * + - 34
----
1075

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT - 8 - - ( - - COUNT( - 34 ) ) + COUNT( * ) + + - 49 * + 53
----
-2603

skipif mysql # not compatible
query I rowsort label-1316
SELECT - 8 - - ( - - COUNT ( - 34 ) ) + COUNT ( * ) + + - 49 * + 53
----
-2603

onlyif mysql # DIV for integer division: 
query I rowsort label-1317
SELECT ALL COALESCE ( + 89, + 32 * - + 38 * CASE WHEN NOT - 0 <= 40 THEN - - 23 + - 5 + 16 DIV + 60 ELSE + ( + 17 ) END + 6 ) col2
----
89

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL COALESCE ( + 89, + 32 * - + 38 * CASE WHEN NOT - 0 <= 40 THEN - - 23 + - 5 + 16 / + 60 ELSE + ( + 17 ) END + 6 ) col2
----
89

query I rowsort
SELECT DISTINCT - 6 + - + ( + 25 )
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-1319
SELECT DISTINCT + 61 DIV - 65 * + 26
----
0

skipif mysql # not compatible
query I rowsort label-1319
SELECT DISTINCT + 61 / - 65 * + 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT DISTINCT - COALESCE ( + 51, - + 79 + 20 ) * - 99 + + COALESCE ( - 82, - COUNT( * ) ) AS col2
----
4967

skipif mysql # not compatible
query I rowsort label-1320
SELECT DISTINCT - COALESCE ( + 51, - + 79 + 20 ) * - 99 + + COALESCE ( - 82, - COUNT ( * ) ) AS col2
----
4967

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1322
SELECT ALL - COUNT( * ) * - 22 + 10 * - 3 DIV 55
----
22

skipif mysql # not compatible
query I rowsort label-1322
SELECT ALL - COUNT ( * ) * - 22 + 10 * - 3 / 55
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT ( - COUNT( 7 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1323
SELECT ( - COUNT ( 7 ) ) AS col0
----
-1

query I rowsort
SELECT 43 * - 30 + - 27 * 80 col2
----
-3450

onlyif mysql # DIV for integer division: 
query I rowsort label-1325
SELECT - 13 DIV + - 58 * + 20 * + - NULLIF ( - + 62, - 95 ) DIV + 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1325
SELECT - 13 / + - 58 * + 20 * + - NULLIF ( - + 62, - 95 ) / + 17 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1326
SELECT + COALESCE ( - 0, - + NULLIF ( - + SUM( ALL + 98 ), + - 10 * - - AVG ( ALL - CAST( NULL AS SIGNED ) ) + + 57 - - 22 + - - 95 / + 70 ) ) * + 57
----
0

skipif mysql # not compatible
query I rowsort label-1326
SELECT + COALESCE ( - 0, - + NULLIF ( - + SUM ( ALL + 98 ), + - 10 * - - AVG ( ALL - CAST ( NULL AS INTEGER ) ) + + 57 - - 22 + - - 95 / + 70 ) ) * + 57
----
0

query I rowsort
SELECT + COALESCE ( + 60, - 44 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT + COUNT( ALL ( - - NULLIF ( + 78, 63 ) ) ) + - COUNT( * ) + - 40 + + 74
----
34

skipif mysql # not compatible
query I rowsort label-1328
SELECT + COUNT ( ALL ( - - NULLIF ( + 78, 63 ) ) ) + - COUNT ( * ) + - 40 + + 74
----
34

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1330
SELECT COALESCE ( + 15, + COUNT( * ) * 79 * - ( - 77 ) - - 24 DIV - 78 * - 98 + - - 58 + COUNT( * ) + 93 - - + COUNT( * ) * + - COUNT( * ) + + COUNT( + 9 ) + + ( - 34 ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1330
SELECT COALESCE ( + 15, + COUNT ( * ) * 79 * - ( - 77 ) - - 24 / - 78 * - 98 + - - 58 + COUNT ( * ) + 93 - - + COUNT ( * ) * + - COUNT ( * ) + + COUNT ( + 9 ) + + ( - 34 ) ) AS col1
----
15

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

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

query I rowsort
SELECT - 0 + 76
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1333
SELECT + COUNT( * ) * + MIN( ALL + - 88 ) DIV + 96 + - 13 - + 42
----
-55

skipif mysql # not compatible
query I rowsort label-1333
SELECT + COUNT ( * ) * + MIN ( ALL + - 88 ) / + 96 + - 13 - + 42
----
-55

query II rowsort
SELECT DISTINCT + + 95 AS col1, 28
----
95
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT DISTINCT + 86 * + - COUNT( * ) - + 57
----
-143

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT + 86 * + - COUNT ( * ) - + 57
----
-143

query II rowsort
SELECT + 32, 67 AS col2
----
32
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT + + CASE + 65 WHEN + + COUNT( * ) THEN NULL WHEN 32 + - + 98 THEN - COUNT( * ) + - + 70 END * 61 + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1337
SELECT + + CASE + 65 WHEN + + COUNT ( * ) THEN NULL WHEN 32 + - + 98 THEN - COUNT ( * ) + - + 70 END * 61 + 28 AS col2
----
NULL

query I rowsort
SELECT + - 65 - - - 96
----
-161

query I rowsort
SELECT DISTINCT 36 * + COALESCE ( 64, + 85 ) * 74 col2
----
170496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1340
SELECT - 91 * + - NULLIF ( 47, 83 / - COUNT( * ) ) + CAST( NULL AS DECIMAL ) - COALESCE ( + - COUNT( + ( - + 53 ) ), - - COALESCE ( - + 1, - - ( 96 ) ) ) + 57 * - NULLIF ( - - CAST( 25 AS SIGNED ), - + 82 ), CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1340
SELECT - 91 * + - NULLIF ( 47, 83 / - COUNT ( * ) ) + CAST ( NULL AS REAL ) - COALESCE ( + - COUNT ( + ( - + 53 ) ), - - COALESCE ( - + 1, - - ( 96 ) ) ) + 57 * - NULLIF ( - - CAST ( 25 AS INTEGER ), - + 82 ), CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0
----
NULL
NULL

query I rowsort
SELECT ALL + 27 * 88
----
2376

query I rowsort
SELECT ALL 63 * - 77 + - + 78 * - - 39 AS col2
----
-7893

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT + 33 + - + COUNT( * ) + + + 13
----
45

skipif mysql # not compatible
query I rowsort label-1343
SELECT + 33 + - + COUNT ( * ) + + + 13
----
45

query I rowsort
SELECT DISTINCT - 8 + 85 AS col0
----
77

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1346
SELECT + - CAST( NULL AS SIGNED ) / + + COUNT( * ) * + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1346
SELECT + - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) * + 55 AS col1
----
NULL

query I rowsort
SELECT + + 94 * 27
----
2538

query I rowsort
SELECT - + 89 + - 74 - - 34 + 60 * + 62 AS col2
----
3591

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

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

query I rowsort
SELECT - 9 + - ( ( + 95 ) )
----
-104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1351
SELECT - CAST( - 27 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-1351
SELECT - CAST ( - 27 AS INTEGER )
----
27

query I rowsort
SELECT DISTINCT + 74 + + 71 + 98 * - 69 * - 82 * + 75 AS col1
----
41586445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1353
SELECT ALL - ( - 29 ) + - + 52 * - CAST( - + COUNT( 98 ) AS SIGNED ) * + 1 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL - ( - 29 ) + - + 52 * - CAST ( - + COUNT ( 98 ) AS INTEGER ) * + 1 AS col2
----
-23

query III rowsort
SELECT DISTINCT - 75 - 37 AS col2, - 74 AS col0, + ( 91 ) * + + 97
----
-112
-74
8827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1355
SELECT DISTINCT COALESCE ( - - 40, - + COUNT( * ) + + + CAST( ( + NULLIF ( + 25, + 99 + - 20 / + COUNT( * ) ) ) AS SIGNED ) ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-1355
SELECT DISTINCT COALESCE ( - - 40, - + COUNT ( * ) + + + CAST ( ( + NULLIF ( + 25, + 99 + - 20 / + COUNT ( * ) ) ) AS INTEGER ) ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT 57 * - ( + 42 ) - - COUNT( * ) AS col1
----
-2393

skipif mysql # not compatible
query I rowsort label-1356
SELECT 57 * - ( + 42 ) - - COUNT ( * ) AS col1
----
-2393

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1357
SELECT - ( - NULLIF ( 96, - CAST( - 1 AS SIGNED ) * + 25 ) ) DIV + 45
----
2

skipif mysql # not compatible
query I rowsort label-1357
SELECT - ( - NULLIF ( 96, - CAST ( - 1 AS INTEGER ) * + 25 ) ) / + 45
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT - COUNT( * ) * - 90 col1
----
90

skipif mysql # not compatible
query I rowsort label-1358
SELECT - COUNT ( * ) * - 90 col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT DISTINCT - MAX( ALL + 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT - MAX ( ALL + 99 ) AS col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1360
SELECT ALL - CAST( NULL AS SIGNED ) / COALESCE ( - MAX( - 86 ), - 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL - CAST ( NULL AS INTEGER ) / COALESCE ( - MAX ( - 86 ), - 53 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1361
SELECT MIN( CAST( - 71 AS SIGNED ) ) DIV - 39
----
1

skipif mysql # not compatible
query I rowsort label-1361
SELECT MIN ( CAST ( - 71 AS INTEGER ) ) / - 39
----
1

query I rowsort
SELECT DISTINCT - - 22 * 1 + - + 44 col0
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-1363
SELECT ALL + 31 * + + 75, - COUNT( DISTINCT - 54 ) * - 34 col1
----
2325
34

skipif mysql # not compatible
query II rowsort label-1363
SELECT ALL + 31 * + + 75, - COUNT ( DISTINCT - 54 ) * - 34 col1
----
2325
34

query I rowsort
SELECT - 64 + + + 51
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1365
SELECT - ( + 96 ) + - + 84 DIV - 49 col1
----
-95

skipif mysql # not compatible
query I rowsort label-1365
SELECT - ( + 96 ) + - + 84 / - 49 col1
----
-95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1366
SELECT ALL - - 47 + CAST( - 85 AS SIGNED ) + + 53 DIV - + 31, + 72 * 42 AS col2
----
-39
3024

skipif mysql # not compatible
query II rowsort label-1366
SELECT ALL - - 47 + CAST ( - 85 AS INTEGER ) + + 53 / - + 31, + 72 * 42 AS col2
----
-39
3024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1367
SELECT DISTINCT CASE + MIN( ALL 30 ) WHEN - 79 / COALESCE ( + + 79, - - COUNT( * ), + + 23 - + + AVG ( ALL 15 ), 2 + + CASE - 41 WHEN 87 + - 39 THEN - + 43 * + + COUNT( * ) + - + 38 WHEN - 55 THEN NULL END - + 9 * + 43 + CAST( NULL AS SIGNED ) / 43 * + MIN( 84 ) ) * - - 46 + 43 + 32 THEN NULL WHEN + ( - + COUNT( * ) ) THEN - 65 + + 12 END + + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1367
SELECT DISTINCT CASE + MIN ( ALL 30 ) WHEN - 79 / COALESCE ( + + 79, - - COUNT ( * ), + + 23 - + + AVG ( ALL 15 ), 2 + + CASE - 41 WHEN 87 + - 39 THEN - + 43 * + + COUNT ( * ) + - + 38 WHEN - 55 THEN NULL END - + 9 * + 43 + CAST ( NULL AS INTEGER ) / 43 * + MIN ( 84 ) ) * - - 46 + 43 + 32 THEN NULL WHEN + ( - + COUNT ( * ) ) THEN - 65 + + 12 END + + - 14
----
NULL

query I rowsort
SELECT ALL - 79 + - - 95 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT COUNT( * ) * - MIN( DISTINCT - - 79 ) * + - 32
----
2528

skipif mysql # not compatible
query I rowsort label-1369
SELECT COUNT ( * ) * - MIN ( DISTINCT - - 79 ) * + - 32
----
2528

query II rowsort
SELECT ALL ( + 90 ) + + 0, + 43 AS col1
----
90
43

query II rowsort
SELECT - 11 + + + 11 AS col1, + 90 col0
----
0
90

query I rowsort
SELECT ALL 54 * + 96 * + - 27 AS col2
----
-139968

query I rowsort
SELECT 92 * - 6 + + 3 AS col1
----
-549

onlyif mysql # aggregate syntax: 
query II rowsort label-1374
SELECT DISTINCT 32 * MIN( DISTINCT 86 ), + 67 AS col2
----
2752
67

skipif mysql # not compatible
query II rowsort label-1374
SELECT DISTINCT 32 * MIN ( DISTINCT 86 ), + 67 AS col2
----
2752
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT ALL CASE - + 38 WHEN - ( 64 ) + MIN( ALL + 38 ) THEN + COUNT( * ) * - 14 END + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL CASE - + 38 WHEN - ( 64 ) + MIN ( ALL + 38 ) THEN + COUNT ( * ) * - 14 END + - 69
----
NULL

query I rowsort
SELECT DISTINCT 96 * + 86 * - + 50
----
-412800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1377
SELECT ALL CASE WHEN NOT NULL NOT IN ( - COALESCE ( + - CAST( + 45 AS SIGNED ), - 66, - 9 * COALESCE ( 80, NULLIF ( - 12, + + ( + 26 ) + - - MAX( 18 ) + 66 + 98 ) + + + AVG ( ALL 35 ), - - 55 - - - 67, + 42 ) ), + COUNT( * ) * - + 23, + 66 * + 93 + - ( - 61 ) + + 10 * + 92 * + - 40 * - 47 / 29, COUNT( * ) * 30 / 28 + 73 ) THEN COUNT( * ) / - - 86 ELSE NULL END - - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL CASE WHEN NOT NULL NOT IN ( - COALESCE ( + - CAST ( + 45 AS INTEGER ), - 66, - 9 * COALESCE ( 80, NULLIF ( - 12, + + ( + 26 ) + - - MAX ( 18 ) + 66 + 98 ) + + + AVG ( ALL 35 ), - - 55 - - - 67, + 42 ) ), + COUNT ( * ) * - + 23, + 66 * + 93 + - ( - 61 ) + + 10 * + 92 * + - 40 * - 47 / 29, COUNT ( * ) * 30 / 28 + 73 ) THEN COUNT ( * ) / - - 86 ELSE NULL END - - 66
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1378
SELECT DISTINCT 20 DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-1378
SELECT DISTINCT 20 / + 56
----
0

query I rowsort
SELECT ALL - 89 - - - 18 AS col0
----
-107

onlyif mysql # DIV for integer division: 
query II rowsort label-1380
SELECT ALL 33 AS col0, - 69 DIV - - 72 + + 27
----
33
27

skipif mysql # not compatible
query II rowsort label-1380
SELECT ALL 33 AS col0, - 69 / - - 72 + + 27
----
33
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1381
SELECT CAST( 46 AS SIGNED ) - - NULLIF ( ( - 66 ), + - 41 * MIN( DISTINCT - + 23 ) * - - 75 - + + 52 * + 71 / - - COUNT( * ) + + 52 ) + + 57 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1381
SELECT CAST ( 46 AS INTEGER ) - - NULLIF ( ( - 66 ), + - 41 * MIN ( DISTINCT - + 23 ) * - - 75 - + + 52 * + 71 / - - COUNT ( * ) + + 52 ) + + 57 AS col2
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1382
SELECT DISTINCT COUNT( - 16 ) DIV - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT COUNT ( - 16 ) / - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT 30 + + + ( - 34 ) * + + SUM( ALL 20 ) AS col2
----
-650

skipif mysql # not compatible
query I rowsort label-1383
SELECT 30 + + + ( - 34 ) * + + SUM ( ALL 20 ) AS col2
----
-650

query I rowsort
SELECT 72 * - 11 * - + ( + 52 )
----
41184

query I rowsort
SELECT DISTINCT 19 * + + 41 AS col0
----
779

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1386
SELECT CAST( NULL AS DECIMAL ) * - + CASE - + 63 WHEN + 83 THEN - 72 * + 62 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1386
SELECT CAST ( NULL AS REAL ) * - + CASE - + 63 WHEN + 83 THEN - 72 * + 62 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT - 97 AS col0, 62 * + + 50 AS col2
----
-97
3100

query I rowsort
SELECT 71 * + 42 AS col1
----
2982

query II rowsort
SELECT ALL - 42 AS col2, + 8
----
-42
8

query I rowsort
SELECT + 99 * - - 22 + - 65 AS col0
----
2113

query I rowsort
SELECT - CASE 0 WHEN - 70 THEN + 12 END + + 34 * + 33 + + COALESCE ( - - 6, + 15, - ( + 52 ) * - 7, 57 + - AVG ( DISTINCT + + 62 ) ) AS col2
----
NULL

query I rowsort
SELECT NULLIF ( + + 12, - 57 ) * + + 89 AS col1
----
1068

query I rowsort
SELECT ALL - + 95 + - 44 AS col0
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT + NULLIF ( - 15, + + NULLIF ( + - 16, - - 70 + - + ( - SUM( ALL + 60 ) ) ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1394
SELECT + NULLIF ( - 15, + + NULLIF ( + - 16, - - 70 + - + ( - SUM ( ALL + 60 ) ) ) ) AS col0
----
-15

query I rowsort
SELECT + 1 - 6 * 21 * - + 47
----
5923

query II rowsort
SELECT DISTINCT 80 + ( 81 ), 94 AS col2
----
161
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT DISTINCT - COUNT( DISTINCT + 42 ) * ( + 89 ) + - 27 AS col1
----
-116

skipif mysql # not compatible
query I rowsort label-1397
SELECT DISTINCT - COUNT ( DISTINCT + 42 ) * ( + 89 ) + - 27 AS col1
----
-116

query I rowsort
SELECT ALL + + 15 + 75
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1399
SELECT ALL - + 53 DIV - 84 * + ( + 29 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL - + 53 / - 84 * + ( + 29 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1400
SELECT ALL - NULLIF ( 88, - + 79 * - CAST( 21 AS SIGNED ) * + 80 + 95 + 76 + + 94 * - 76 + + 0 ) + MIN( DISTINCT - 11 )
----
-99

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL - NULLIF ( 88, - + 79 * - CAST ( 21 AS INTEGER ) * + 80 + 95 + 76 + + 94 * - 76 + + 0 ) + MIN ( DISTINCT - 11 )
----
-99

query I rowsort
SELECT DISTINCT - 16 * - 94
----
1504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1402
SELECT + NULLIF ( + - 86, + + 94 ) * - 24 + + COALESCE ( + + 47, - COUNT( * ), COUNT( * ) + - - CAST( NULL AS SIGNED ) ) * - + 72
----
-1320

skipif mysql # not compatible
query I rowsort label-1402
SELECT + NULLIF ( + - 86, + + 94 ) * - 24 + + COALESCE ( + + 47, - COUNT ( * ), COUNT ( * ) + - - CAST ( NULL AS INTEGER ) ) * - + 72
----
-1320

query I rowsort
SELECT - 69 * + 74 * 31 + ( 72 ) AS col0
----
-158214

query I rowsort
SELECT - 8 + - + 3 + 54 * - 29 AS col2
----
-1577

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT ALL - + NULLIF ( + COUNT( * ), + 94 ) - 94 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL - + NULLIF ( + COUNT ( * ), + 94 ) - 94 AS col2
----
-95

query I rowsort
SELECT 37 + 9 AS col0
----
46

query II rowsort
SELECT DISTINCT - 74 - + 73, + 34 AS col1
----
-147
34

query I rowsort
SELECT 31 + ( - 41 ) * - 46 AS col1
----
1917

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT DISTINCT SUM( + - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-1409
SELECT DISTINCT SUM ( + - 48 )
----
-48

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

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

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

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

query I rowsort
SELECT ALL COALESCE ( + - 57, + - 98 )
----
-57

query I rowsort
SELECT 56 + - 26
----
30

query I rowsort
SELECT 27 * 32 AS col1
----
864

onlyif mysql # aggregate syntax: 
query II rowsort label-1415
SELECT DISTINCT COUNT( * ) * 71 AS col1, 60 AS col2
----
71
60

skipif mysql # not compatible
query II rowsort label-1415
SELECT DISTINCT COUNT ( * ) * 71 AS col1, 60 AS col2
----
71
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT SUM( - + 4 ) + 31 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1416
SELECT SUM ( - + 4 ) + 31 AS col2
----
27

query II rowsort
SELECT ALL 78 * + + 26 AS col2, - 7 AS col1
----
2028
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-1418
SELECT 46 DIV + 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1418
SELECT 46 / + 95 AS col2
----
0

query I rowsort
SELECT ALL 95 * - 86
----
-8170

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT DISTINCT - 12 * - COUNT( * ) * + 60
----
720

skipif mysql # not compatible
query I rowsort label-1420
SELECT DISTINCT - 12 * - COUNT ( * ) * + 60
----
720

query I rowsort
SELECT + ( - 62 ) + 86 AS col1
----
24

query I rowsort
SELECT ALL 42 * - - 57 col2
----
2394

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT DISTINCT 65 + SUM( + + 92 )
----
157

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT 65 + SUM ( + + 92 )
----
157

query I rowsort
SELECT - 24 - + ( + + 57 ) AS col1
----
-81

query I rowsort
SELECT DISTINCT 94 + + - 40 AS col2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1426
SELECT + - 83 DIV - + 30 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1426
SELECT + - 83 / - + 30 AS col2
----
2

query I rowsort
SELECT + - 78 + - 5 + 86 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT DISTINCT 55 * - 0 + - - COUNT( * ) - 96 * 61 AS col0
----
-5855

skipif mysql # not compatible
query I rowsort label-1428
SELECT DISTINCT 55 * - 0 + - - COUNT ( * ) - 96 * 61 AS col0
----
-5855

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT - 76 * 70 + - COUNT( * ) + COUNT( ALL + 23 )
----
-5320

skipif mysql # not compatible
query I rowsort label-1430
SELECT - 76 * 70 + - COUNT ( * ) + COUNT ( ALL + 23 )
----
-5320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1431
SELECT ALL + 73 * + COUNT( * ) + + + COUNT( * ) + + 57 + 31 * + 56 * 26 * - CAST( - 4 AS SIGNED ) * 23
----
4152643

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL + 73 * + COUNT ( * ) + + + COUNT ( * ) + + 57 + 31 * + 56 * 26 * - CAST ( - 4 AS INTEGER ) * 23
----
4152643

query I rowsort
SELECT ALL - + 92 * - 48 AS col2
----
4416

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1434
SELECT DISTINCT + - ( + - 97 ) * CAST( - CASE + 26 WHEN - 81 THEN NULL WHEN 72 + + 46 * 13 * + + CAST( NULL AS SIGNED ) + - 65 THEN + AVG ( + 21 ) + 94 END AS SIGNED ) + - - 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT + - ( + - 97 ) * CAST ( - CASE + 26 WHEN - 81 THEN NULL WHEN 72 + + 46 * 13 * + + CAST ( NULL AS INTEGER ) + - 65 THEN + AVG ( + 21 ) + 94 END AS INTEGER ) + - - 8 AS col2
----
NULL

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

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

query I rowsort
SELECT + - ( COALESCE ( + 60, - 51 ) ) * + 77 + + + 26
----
-4594

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT 76 * - 37 + COUNT( * ) + + COUNT( * ) * + 35
----
-2776

skipif mysql # not compatible
query I rowsort label-1437
SELECT 76 * - 37 + COUNT ( * ) + + COUNT ( * ) * + 35
----
-2776

query II rowsort
SELECT + CASE + 54 WHEN - + 34 THEN 27 ELSE - + 2 END, + 4 AS col1
----
-2
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1439
SELECT CASE 49 WHEN - + 49 THEN - CAST( NULL AS SIGNED ) * + 55 WHEN + 95 THEN NULL WHEN - 41 * + + 64 + + 41 + + COUNT( - + 18 ) THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1439
SELECT CASE 49 WHEN - + 49 THEN - CAST ( NULL AS INTEGER ) * + 55 WHEN + 95 THEN NULL WHEN - 41 * + + 64 + + 41 + + COUNT ( - + 18 ) THEN NULL ELSE NULL END col2
----
NULL

query I rowsort
SELECT + 15 * - 89 - + - 7 AS col0
----
-1328

onlyif mysql # DIV for integer division: 
query I rowsort label-1441
SELECT DISTINCT + + 75 DIV - + 77
----
0

skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT + + 75 / - + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT ALL + - 56 * COUNT( * ) - + - 72 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL + - 56 * COUNT ( * ) - + - 72 AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1443
SELECT ALL + + NULLIF ( - CAST( NULL AS DECIMAL ), + 37 + 81 * + + 33 ) * 74 + - CAST( - + 1 AS SIGNED ) - + COUNT( * ) AS col0, + ( + ( - COUNT( + - 71 ) ) ) * - 54 + 38 AS col0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-1443
SELECT ALL + + NULLIF ( - CAST ( NULL AS REAL ), + 37 + 81 * + + 33 ) * 74 + - CAST ( - + 1 AS INTEGER ) - + COUNT ( * ) AS col0, + ( + ( - COUNT ( + - 71 ) ) ) * - 54 + 38 AS col0
----
NULL
92

query I rowsort
SELECT 25 * - - 96 - + 8
----
2392

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT ALL + 98 * + MIN( DISTINCT 75 ) AS col1
----
7350

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL + 98 * + MIN ( DISTINCT 75 ) AS col1
----
7350

query I rowsort
SELECT - 31 * - + 76 col1
----
2356

query I rowsort
SELECT ALL - 25 * + 32
----
-800

query I rowsort
SELECT - 8 * - 25 AS col0
----
200

query I rowsort
SELECT - 13 * - 93 AS col1
----
1209

query I rowsort
SELECT + ( + 37 ) * - 78 * - 6
----
17316

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT - MAX( - - 86 ) - + + NULLIF ( - - 14, - - 25 ) AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-1452
SELECT - MAX ( - - 86 ) - + + NULLIF ( - - 14, - - 25 ) AS col1
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1453
SELECT ALL + 53 / CASE 91 WHEN + COUNT( * ) THEN 75 + - - 65 WHEN - COALESCE ( + ( CAST( NULL AS SIGNED ) ), + COUNT( * ) + - 14, CASE - 87 WHEN - - 19 THEN + - ( - 38 ) END + - COALESCE ( NULLIF ( - 8, 57 + - COUNT( + - 56 ) ), + 22 * - 78 + - 57 + 75 * - - COUNT( * ) - + + 47 + - - 2 ) ) * + - 79 THEN + + COUNT( * ) + - + 28 + 19 * + - 74 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL + 53 / CASE 91 WHEN + COUNT ( * ) THEN 75 + - - 65 WHEN - COALESCE ( + ( CAST ( NULL AS INTEGER ) ), + COUNT ( * ) + - 14, CASE - 87 WHEN - - 19 THEN + - ( - 38 ) END + - COALESCE ( NULLIF ( - 8, 57 + - COUNT ( + - 56 ) ), + 22 * - 78 + - 57 + 75 * - - COUNT ( * ) - + + 47 + - - 2 ) ) * + - 79 THEN + + COUNT ( * ) + - + 28 + 19 * + - 74 ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1455
SELECT - 60 - - 46 + + 4 - 33 * - - NULLIF ( + COUNT( * ), - 55 ) + 22 + 64 * + 50 + + + 7 - + + 58 DIV + 14 + - + 10
----
3172

skipif mysql # not compatible
query I rowsort label-1455
SELECT - 60 - - 46 + + 4 - 33 * - - NULLIF ( + COUNT ( * ), - 55 ) + 22 + 64 * + 50 + + + 7 - + + 58 / + 14 + - + 10
----
3172

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT ALL - ( - COALESCE ( - + COUNT( * ), - 51, 83 * + - 2 + COUNT( * ) - 77 ) ) * - 77 * + CASE 42 WHEN - + 17 * - COUNT( * ) * + 82 THEN - - 24 END * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL - ( - COALESCE ( - + COUNT ( * ), - 51, 83 * + - 2 + COUNT ( * ) - 77 ) ) * - 77 * + CASE 42 WHEN - + 17 * - COUNT ( * ) * + 82 THEN - - 24 END * - 27
----
NULL

query I rowsort
SELECT ALL 30 + 87 AS col2
----
117

query I rowsort
SELECT - ( + ( + 46 ) ) + - 84
----
-130

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1459
SELECT ALL + 54 + - - 61 * + 28 AS col1, 11 + + CASE + + 1 WHEN + 48 * + COUNT( - + CAST( - + 55 AS DECIMAL ) ) * COUNT( * ) + ( - 31 ) + ( + 93 ) * - 19 + - AVG ( - 44 ) THEN - 48 * - 92 END + 95
----
1762
NULL

skipif mysql # not compatible
query II rowsort label-1459
SELECT ALL + 54 + - - 61 * + 28 AS col1, 11 + + CASE + + 1 WHEN + 48 * + COUNT ( - + CAST ( - + 55 AS REAL ) ) * COUNT ( * ) + ( - 31 ) + ( + 93 ) * - 19 + - AVG ( - 44 ) THEN - 48 * - 92 END + 95
----
1762
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT - 24 + + 15 * ( COUNT( * ) )
----
-9

skipif mysql # not compatible
query I rowsort label-1460
SELECT - 24 + + 15 * ( COUNT ( * ) )
----
-9

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

skipif mysql # not compatible
query I rowsort label-1461
SELECT - COUNT ( - 28 )
----
-1

query II rowsort
SELECT ALL 88 * + - 61 * - 30 AS col1, - 28 * 65
----
161040
-1820

onlyif mysql # DIV for integer division: 
query I rowsort label-1463
SELECT ALL 18 + + 33 DIV 49 * - 79 col2
----
18

skipif mysql # not compatible
query I rowsort label-1463
SELECT ALL 18 + + 33 / 49 * - 79 col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1464
SELECT + 88 + + - 40 * - 51 col1, - NULLIF ( + 41, - - ( - - 65 ) + + ( + 88 ) ) + 89 + 64 + - 22 DIV 15 * - 90 * COALESCE ( + COUNT( * ), 79 ) + + 60 AS col1
----
2128
262

skipif mysql # not compatible
query II rowsort label-1464
SELECT + 88 + + - 40 * - 51 col1, - NULLIF ( + 41, - - ( - - 65 ) + + ( + 88 ) ) + 89 + 64 + - 22 / 15 * - 90 * COALESCE ( + COUNT ( * ), 79 ) + + 60 AS col1
----
2128
262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1465
SELECT + + COUNT( ALL - - CAST( + + 95 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-1465
SELECT + + COUNT ( ALL - - CAST ( + + 95 AS INTEGER ) )
----
1

query II rowsort
SELECT ALL + + 80 AS col0, - 96 + - 1 AS col1
----
80
-97

query I rowsort
SELECT 86 * + 19 + + 57
----
1691

query I rowsort
SELECT + + 22 * - 41
----
-902

onlyif mysql # DIV for integer division: 
query II rowsort label-1469
SELECT + + 25 DIV + 14 + 60 AS col1, 19 AS col2
----
61
19

skipif mysql # not compatible
query II rowsort label-1469
SELECT + + 25 / + 14 + 60 AS col1, 19 AS col2
----
61
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1470
SELECT DISTINCT - 11 / + + 73 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1470
SELECT DISTINCT - 11 / + + 73 - + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1471
SELECT + - CAST( NULL AS SIGNED ) + COUNT( + + 83 ) - + - 47 + - - 77 + + CASE + 40 WHEN + + COUNT( * ) THEN + COUNT( * ) ELSE NULL END * 2 + + 53 - + 72 + 47 * - - 56 * 76 AS col2, + 19 AS col0
----
NULL
19

skipif mysql # not compatible
query II rowsort label-1471
SELECT + - CAST ( NULL AS INTEGER ) + COUNT ( + + 83 ) - + - 47 + - - 77 + + CASE + 40 WHEN + + COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END * 2 + + 53 - + 72 + 47 * - - 56 * 76 AS col2, + 19 AS col0
----
NULL
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1472
SELECT + + COUNT( 94 ) + - 66 / CAST( NULL AS SIGNED ) col2
----
NULL

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

query I rowsort
SELECT + 99 + - 55 + 25 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT - 64 * - 42 + + + COUNT( * ) + + + 32 AS col0
----
2721

skipif mysql # not compatible
query I rowsort label-1474
SELECT - 64 * - 42 + + + COUNT ( * ) + + + 32 AS col0
----
2721

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT 95 * - 10 + + + 85 + - MAX( - - 72 ) * + 91 * - 75 + - - 12 + + 47 AS col1
----
490594

skipif mysql # not compatible
query I rowsort label-1475
SELECT 95 * - 10 + + + 85 + - MAX ( - - 72 ) * + 91 * - 75 + - - 12 + + 47 AS col1
----
490594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1476
SELECT ALL + COALESCE ( + 66, + 41 * - + 74 * + 69 ) * - + MAX( DISTINCT - + CAST( + ( - - 28 ) AS SIGNED ) ) - 64 - + MAX( DISTINCT + - 89 )
----
1873

skipif mysql # not compatible
query I rowsort label-1476
SELECT ALL + COALESCE ( + 66, + 41 * - + 74 * + 69 ) * - + MAX ( DISTINCT - + CAST ( + ( - - 28 ) AS INTEGER ) ) - 64 - + MAX ( DISTINCT + - 89 )
----
1873

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

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

query I rowsort
SELECT + + 20 + + ( 5 ) AS col2
----
25

query I rowsort
SELECT ALL + 15 * + 74 * + 12
----
13320

onlyif mysql # DIV for integer division: 
query I rowsort label-1480
SELECT + 38 + - + 55 DIV - 51
----
39

skipif mysql # not compatible
query I rowsort label-1480
SELECT + 38 + - + 55 / - 51
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT + COUNT( * ) - - 15 * + + 47 * - - 58
----
40891

skipif mysql # not compatible
query I rowsort label-1481
SELECT + COUNT ( * ) - - 15 * + + 47 * - - 58
----
40891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1482
SELECT 30 * - + CAST( + 13 AS SIGNED ) + - 25 + 90 AS col2
----
-325

skipif mysql # not compatible
query I rowsort label-1482
SELECT 30 * - + CAST ( + 13 AS INTEGER ) + - 25 + 90 AS col2
----
-325

query I rowsort
SELECT - 20 + + + 37 AS col0
----
17

query I rowsort
SELECT + 90 * + + 62
----
5580

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT + COUNT( * ) * + 35 * COUNT( * ) + - COUNT( * ) + + 23 + + 99 AS col0
----
156

skipif mysql # not compatible
query I rowsort label-1485
SELECT + COUNT ( * ) * + 35 * COUNT ( * ) + - COUNT ( * ) + + 23 + + 99 AS col0
----
156

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

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

query II rowsort
SELECT DISTINCT 77 AS col2, + 2 + + - 64
----
77
-62

query II rowsort
SELECT ALL + 67 + + 22 AS col1, 23 AS col0
----
89
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1489
SELECT CAST( 83 AS SIGNED ) + + 25 AS col0
----
108

skipif mysql # not compatible
query I rowsort label-1489
SELECT CAST ( 83 AS INTEGER ) + + 25 AS col0
----
108

query II rowsort
SELECT DISTINCT 35 AS col0, 78 * - 74 AS col1
----
35
-5772

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1491
SELECT 67 * + - 63 + 22 * - + COALESCE ( + 18, - 54 * 31 + COUNT( * ) + 94 DIV - 53 ) * - - SUM( + - 80 ) * 49 AS col2
----
1548099

skipif mysql # not compatible
query I rowsort label-1491
SELECT 67 * + - 63 + 22 * - + COALESCE ( + 18, - 54 * 31 + COUNT ( * ) + 94 / - 53 ) * - - SUM ( + - 80 ) * 49 AS col2
----
1548099

onlyif mysql # aggregate syntax: 
query II rowsort label-1492
SELECT DISTINCT + 40 * 51 AS col2, MIN( + 39 ) + - + 77
----
2040
-38

skipif mysql # not compatible
query II rowsort label-1492
SELECT DISTINCT + 40 * 51 AS col2, MIN ( + 39 ) + - + 77
----
2040
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-1493
SELECT 75 DIV - 44
----
-1

skipif mysql # not compatible
query I rowsort label-1493
SELECT 75 / - 44
----
-1

query I rowsort
SELECT ALL + 67 + - - 48
----
115

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

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

query II rowsort
SELECT 20 AS col2, 15 AS col1
----
20
15

query I rowsort
SELECT DISTINCT + 49 + + 59 AS col2
----
108

query II rowsort
SELECT - 51 AS col0, 43 - ( - - 20 ) + 10
----
-51
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1499
SELECT 65 DIV - - 61
----
1

skipif mysql # not compatible
query I rowsort label-1499
SELECT 65 / - - 61
----
1

query I rowsort
SELECT 0 + 22 * - + 43
----
-946

query I rowsort
SELECT DISTINCT - 23 + - 97 + 83 * - 46 AS col1
----
-3938

query I rowsort
SELECT DISTINCT 18 + 30 * - 10 AS col1
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT ALL + COUNT( ALL + + 80 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL + COUNT ( ALL + + 80 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT ALL - + 38 + MIN( ALL 89 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL - + 38 + MIN ( ALL 89 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-1505
SELECT ALL - CASE 68 WHEN - - MAX( ALL + + 33 ) - + ( + - MAX( - 88 ) ) - + NULLIF ( - 0, 33 ) THEN 87 ELSE NULL END AS col1, + COUNT( * ) * + + 82 AS col2
----
NULL
82

skipif mysql # not compatible
query II rowsort label-1505
SELECT ALL - CASE 68 WHEN - - MAX ( ALL + + 33 ) - + ( + - MAX ( - 88 ) ) - + NULLIF ( - 0, 33 ) THEN 87 ELSE NULL END AS col1, + COUNT ( * ) * + + 82 AS col2
----
NULL
82

query I rowsort
SELECT + 81 + + 92 + + 72 * - 46 AS col1
----
-3139

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

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

query I rowsort
SELECT + 39 - 3 AS col2
----
36

query I rowsort
SELECT 64 + 0
----
64

query I rowsort
SELECT DISTINCT - - 96 - + 99
----
-3

query II rowsort
SELECT ALL - 23 AS col0, ( - 69 )
----
-23
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1512
SELECT + 92 AS col0, + 76 + - ( + ( 79 ) ) + - 88 * + - 53 + + CAST( NULL AS SIGNED ) - - ( 72 ) AS col1
----
92
NULL

skipif mysql # not compatible
query II rowsort label-1512
SELECT + 92 AS col0, + 76 + - ( + ( 79 ) ) + - 88 * + - 53 + + CAST ( NULL AS INTEGER ) - - ( 72 ) AS col1
----
92
NULL

query I rowsort
SELECT - 31 + 0
----
-31

query I rowsort
SELECT DISTINCT + 38 * + - 11 + - 9
----
-427

query I rowsort
SELECT ALL - + ( - CASE 32 WHEN 74 THEN + + 75 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT ALL - 5 * - MIN( DISTINCT 16 )
----
80

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL - 5 * - MIN ( DISTINCT 16 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT CASE - 68 WHEN 34 THEN NULL WHEN + + 66 THEN + COUNT( * ) / + - 58 ELSE + 89 END AS col1
----
89

skipif mysql # not compatible
query I rowsort label-1517
SELECT CASE - 68 WHEN 34 THEN NULL WHEN + + 66 THEN + COUNT ( * ) / + - 58 ELSE + 89 END AS col1
----
89

query I rowsort
SELECT 41 * - + 69 - 46 AS col0
----
-2875

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT DISTINCT + + ( - - ( - 6 ) ) * - - COUNT( * ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT + + ( - - ( - 6 ) ) * - - COUNT ( * ) col2
----
-6

query II rowsort
SELECT ALL - 22 AS col1, - ( + + 58 ) * + 78 + 13 - 51 - - - 95 AS col1
----
-22
-4657

query II rowsort
SELECT ALL - + 55 AS col0, - 46
----
-55
-46

query I rowsort
SELECT 81 * 44
----
3564

query II rowsort
SELECT + 49 AS col0, + 97 * + 68
----
49
6596

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT - 24 * + - COUNT( * ) + + 39
----
63

skipif mysql # not compatible
query I rowsort label-1524
SELECT - 24 * + - COUNT ( * ) + + 39
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-1525
SELECT ALL 85 DIV - + 22
----
-3

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL 85 / - + 22
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1526
SELECT 30 * - CAST( 27 AS SIGNED ) * - 24 + + 61 - - 13 + - + 47, - 64 * - - 19 AS col1
----
19467
-1216

skipif mysql # not compatible
query II rowsort label-1526
SELECT 30 * - CAST ( 27 AS INTEGER ) * - 24 + + 61 - - 13 + - + 47, - 64 * - - 19 AS col1
----
19467
-1216

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

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

query I rowsort
SELECT ALL 55 + - - 86
----
141

query I rowsort
SELECT ALL 19 + 53 + - 2 * 87 * 33
----
-5670

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

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

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

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

query I rowsort
SELECT 80 - + 90 AS col2
----
-10

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1534
SELECT 58 + + + 84 - - 6 + + + ( - 84 ) * ( + - COUNT( * ) ) AS col1, 37
----
232
37

skipif mysql # not compatible
query II rowsort label-1534
SELECT 58 + + + 84 - - 6 + + + ( - 84 ) * ( + - COUNT ( * ) ) AS col1, 37
----
232
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT - 36 + + - 87 - + CASE - - 92 WHEN 52 THEN - 41 * + 27 + + 70 * + ( - AVG ( 29 ) ) + - - 39 * COUNT( * ) - + + 12 + 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1535
SELECT - 36 + + - 87 - + CASE - - 92 WHEN 52 THEN - 41 * + 27 + + 70 * + ( - AVG ( 29 ) ) + - - 39 * COUNT ( * ) - + + 12 + 27 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT 48 - - COALESCE ( + + COUNT( * ), 13 )
----
49

skipif mysql # not compatible
query I rowsort label-1536
SELECT 48 - - COALESCE ( + + COUNT ( * ), 13 )
----
49

query I rowsort
SELECT 58 * - ( + - 95 )
----
5510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1538
SELECT + CAST( 57 AS SIGNED ) + - NULLIF ( + CAST( + 6 AS SIGNED ), + 0 * 10 * - MIN( ALL + 9 ) + - - 74 ) / - 4 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1538
SELECT + CAST ( 57 AS INTEGER ) + - NULLIF ( + CAST ( + 6 AS INTEGER ), + 0 * 10 * - MIN ( ALL + 9 ) + - - 74 ) / - 4 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1539
SELECT 68 * + 29 + + + 61 AS col1, + 20 * - - 78 DIV - - NULLIF ( COUNT( * ), - - CAST( NULL AS SIGNED ) )
----
2033
1560

skipif mysql # not compatible
query II rowsort label-1539
SELECT 68 * + 29 + + + 61 AS col1, + 20 * - - 78 / - - NULLIF ( COUNT ( * ), - - CAST ( NULL AS INTEGER ) )
----
2033
1560

query I rowsort
SELECT 96 * CASE + - 65 WHEN 27 + + 39 * + 17 + - 84 / - 56 THEN NULL ELSE 45 END
----
4320

query I rowsort
SELECT 29 + 81 AS col1
----
110

query I rowsort
SELECT - 85 + - + 36 AS col0
----
-121

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1543
SELECT 3 * CAST( - 65 AS SIGNED ) + - ( + 68 ) DIV + 59
----
-196

skipif mysql # not compatible
query I rowsort label-1543
SELECT 3 * CAST ( - 65 AS INTEGER ) + - ( + 68 ) / + 59
----
-196

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT + ( + 39 ) + - + MAX( + + 76 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-1545
SELECT + ( + 39 ) + - + MAX ( + + 76 ) AS col1
----
-37

query I rowsort
SELECT + ( + 12 ) + 28 + + 77
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-1547
SELECT + COUNT( * ) col0, COUNT( * ) * 56 + NULLIF ( ( - 96 ), 57 )
----
1
-40

skipif mysql # not compatible
query II rowsort label-1547
SELECT + COUNT ( * ) col0, COUNT ( * ) * 56 + NULLIF ( ( - 96 ), 57 )
----
1
-40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT ALL 65 + + 16 + COALESCE ( - 6, + COUNT( * ) ) * ( 10 ) + 34 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL 65 + + 16 + COALESCE ( - 6, + COUNT ( * ) ) * ( 10 ) + 34 AS col0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-1550
SELECT + SUM( ALL 36 ) + - - 41 AS col2, - COUNT( * ) * + ( + + 12 )
----
77
-12

skipif mysql # not compatible
query II rowsort label-1550
SELECT + SUM ( ALL 36 ) + - - 41 AS col2, - COUNT ( * ) * + ( + + 12 )
----
77
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1551
SELECT ALL - 32 DIV 82 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1551
SELECT ALL - 32 / 82 * - COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1552
SELECT ALL CASE + 51 WHEN - CAST( NULL AS SIGNED ) * - 91 * - 33 + - 56 * + NULLIF ( + - 28, + + 45 ) + - - COUNT( * ) THEN NULL WHEN 45 THEN NULL ELSE + + 76 END
----
76

skipif mysql # not compatible
query I rowsort label-1552
SELECT ALL CASE + 51 WHEN - CAST ( NULL AS INTEGER ) * - 91 * - 33 + - 56 * + NULLIF ( + - 28, + + 45 ) + - - COUNT ( * ) THEN NULL WHEN 45 THEN NULL ELSE + + 76 END
----
76

query I rowsort
SELECT + 47 + - 34 AS col2
----
13

query I rowsort
SELECT ALL 59 * - 63
----
-3717

query I rowsort
SELECT ALL 29 - - 87 col2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT - CASE - - 34 WHEN - ( ( - COUNT( * ) ) ) * + 82 - 97 + - - SUM( DISTINCT - 72 ) * - 22 + + 19 THEN - 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1556
SELECT - CASE - - 34 WHEN - ( ( - COUNT ( * ) ) ) * + 82 - 97 + - - SUM ( DISTINCT - 72 ) * - 22 + + 19 THEN - 32 END
----
NULL

query II rowsort
SELECT 12 AS col0, - 94 AS col2
----
12
-94

query I rowsort
SELECT - 7 * - 89 AS col0
----
623

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT + 77 * + 39 + - - COUNT( * ) col1
----
3004

skipif mysql # not compatible
query I rowsort label-1559
SELECT + 77 * + 39 + - - COUNT ( * ) col1
----
3004

query I rowsort
SELECT ALL - 4 * 25
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT + + 98 + + 35 + - 23 * + ( - COUNT( - 80 ) ) * + + 86 AS col2
----
2111

skipif mysql # not compatible
query I rowsort label-1561
SELECT + + 98 + + 35 + - 23 * + ( - COUNT ( - 80 ) ) * + + 86 AS col2
----
2111

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT - - MAX( - + 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1562
SELECT - - MAX ( - + 8 ) AS col1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1563
SELECT + + 49 * - - 86 * 69 - + CAST( + 67 AS SIGNED ) + + 67 AS col1
----
290766

skipif mysql # not compatible
query I rowsort label-1563
SELECT + + 49 * - - 86 * 69 - + CAST ( + 67 AS INTEGER ) + + 67 AS col1
----
290766

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1564
SELECT ALL - CAST( + ( 17 ) AS SIGNED ) col2, + ( MAX( DISTINCT + 31 ) )
----
-17
31

skipif mysql # not compatible
query II rowsort label-1564
SELECT ALL - CAST ( + ( 17 ) AS INTEGER ) col2, + ( MAX ( DISTINCT + 31 ) )
----
-17
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1565
SELECT 93, 57 + 32 * + CAST( + - ( 12 ) AS SIGNED ) * 57 * - - 38 * + CASE - 56 WHEN - - 10 * SUM( 27 ) * 51 + - 90 + - 45 THEN - 11 END * + 48 + + 44 - - + COALESCE ( + 45, - 79 ) - - 90 * + 84 / + - 90 * + 65 + - 32 * MAX( DISTINCT 52 ) * - 97 + + MIN( ALL + 68 ) AS col2
----
93
NULL

skipif mysql # not compatible
query II rowsort label-1565
SELECT 93, 57 + 32 * + CAST ( + - ( 12 ) AS INTEGER ) * 57 * - - 38 * + CASE - 56 WHEN - - 10 * SUM ( 27 ) * 51 + - 90 + - 45 THEN - 11 END * + 48 + + 44 - - + COALESCE ( + 45, - 79 ) - - 90 * + 84 / + - 90 * + 65 + - 32 * MAX ( DISTINCT 52 ) * - 97 + + MIN ( ALL + 68 ) AS col2
----
93
NULL

query I rowsort
SELECT + 66 + + - 7
----
59

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

skipif mysql # not compatible
query I rowsort label-1567
SELECT - MIN ( DISTINCT - CAST ( 68 AS INTEGER ) )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1568
SELECT + ( - + 65 ) + 59 + + - 51 AS col2, + 87 + + - NULLIF ( + NULLIF ( - + COUNT( * ), + + ( + + 63 ) ), + - CAST( NULL AS SIGNED ) / + + 68 )
----
-57
88

skipif mysql # not compatible
query II rowsort label-1568
SELECT + ( - + 65 ) + 59 + + - 51 AS col2, + 87 + + - NULLIF ( + NULLIF ( - + COUNT ( * ), + + ( + + 63 ) ), + - CAST ( NULL AS INTEGER ) / + + 68 )
----
-57
88

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1570
SELECT ALL - 27 * + COUNT( DISTINCT + CAST( + 61 AS SIGNED ) ) + 20 + 8
----
1

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL - 27 * + COUNT ( DISTINCT + CAST ( + 61 AS INTEGER ) ) + 20 + 8
----
1

query I rowsort
SELECT + - 22 * - - 30
----
-660

query I rowsort
SELECT - - 16 + + 68 * - - 8 col0
----
560

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT + MIN( ALL + 53 ) * 18 AS col0
----
954

skipif mysql # not compatible
query I rowsort label-1574
SELECT + MIN ( ALL + 53 ) * 18 AS col0
----
954

query I rowsort
SELECT ALL 50 * + 12
----
600

onlyif mysql # DIV for integer division: 
query I rowsort label-1576
SELECT ALL + 8 DIV + 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL + 8 / + 49 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1577
SELECT - COALESCE ( - 10, + 97 ) / - CAST( NULL AS SIGNED ) * - 13 AS col0, ( - + 36 ) * + - 36 + + - 6 - + 23 * - + MAX( ALL CAST( NULL AS SIGNED ) ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1577
SELECT - COALESCE ( - 10, + 97 ) / - CAST ( NULL AS INTEGER ) * - 13 AS col0, ( - + 36 ) * + - 36 + + - 6 - + 23 * - + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
NULL
NULL

query I rowsort
SELECT DISTINCT 16 * - 23 + - - ( - 0 ) AS col1
----
-368

query I rowsort
SELECT + 25 * 90 AS col1
----
2250

query I rowsort
SELECT - 31 * + + CASE - 33 WHEN + 45 THEN + 18 END
----
NULL

query II rowsort
SELECT ( 58 ) col1, - 44
----
58
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1582
SELECT ALL + COALESCE ( - + CAST( NULL AS SIGNED ), - 76 + - 2, - MAX( DISTINCT + + 9 ) DIV - 43 - - 2 * 36 )
----
-78

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL + COALESCE ( - + CAST ( NULL AS INTEGER ), - 76 + - 2, - MAX ( DISTINCT + + 9 ) / - 43 - - 2 * 36 )
----
-78

query I rowsort
SELECT DISTINCT + ( - NULLIF ( - ( ( - 75 ) ), + 44 ) )
----
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-1584
SELECT - 95 * + 99 AS col1, + 90 + - 1 DIV + 75 * 47 col2
----
-9405
90

skipif mysql # not compatible
query II rowsort label-1584
SELECT - 95 * + 99 AS col1, + 90 + - 1 / + 75 * 47 col2
----
-9405
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT COALESCE ( - ( - COUNT( DISTINCT + 97 ) ), + 48 * - 64 - SUM( - 14 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1585
SELECT COALESCE ( - ( - COUNT ( DISTINCT + 97 ) ), + 48 * - 64 - SUM ( - 14 ) )
----
1

query I rowsort
SELECT DISTINCT 77 * 35 - - 62
----
2757

query I rowsort
SELECT ALL - 45 * 72 AS col0
----
-3240

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT DISTINCT + COUNT( * ) * - ( - + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT + COUNT ( * ) * - ( - + 46 )
----
46

query I rowsort
SELECT - 0 * - ( - + 2 ) AS col1
----
0

query I rowsort
SELECT + 17 - - 44 AS col0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1593
SELECT - - 69 + + 59 + - 47 DIV + - COUNT( * ) AS col2, ( + 23 ) + 14
----
175
37

skipif mysql # not compatible
query II rowsort label-1593
SELECT - - 69 + + 59 + - 47 / + - COUNT ( * ) AS col2, ( + 23 ) + 14
----
175
37

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1595
SELECT - 27 DIV - - 25
----
-1

skipif mysql # not compatible
query I rowsort label-1595
SELECT - 27 / - - 25
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT - COUNT( * ) - - - 70
----
-71

skipif mysql # not compatible
query I rowsort label-1596
SELECT - COUNT ( * ) - - - 70
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1597
SELECT ALL - COUNT( ALL - 68 ) col2, 96 - - - 11 * + CAST( - MIN( - + 68 ) AS SIGNED ) + - 50 DIV 71
----
-1
-652

skipif mysql # not compatible
query II rowsort label-1597
SELECT ALL - COUNT ( ALL - 68 ) col2, 96 - - - 11 * + CAST ( - MIN ( - + 68 ) AS INTEGER ) + - 50 / 71
----
-1
-652

query II rowsort
SELECT + 54 + - 75 AS col2, 5
----
-21
5

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

skipif mysql # not compatible
query I rowsort label-1599
SELECT + - 12 / + 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT + MIN( DISTINCT + 94 ) + - SUM( ALL 13 ) * + - 88 * - 26 AS col2
----
-29650

skipif mysql # not compatible
query I rowsort label-1600
SELECT + MIN ( DISTINCT + 94 ) + - SUM ( ALL 13 ) * + - 88 * - 26 AS col2
----
-29650

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT + + ( - 65 ) * - SUM( DISTINCT + - ( - 96 ) ) AS col0
----
6240

skipif mysql # not compatible
query I rowsort label-1601
SELECT + + ( - 65 ) * - SUM ( DISTINCT + - ( - 96 ) ) AS col0
----
6240

query I rowsort
SELECT - - 68 + - 3
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-1603
SELECT ALL SUM( DISTINCT + 48 ) AS col0, COUNT( * ) * + 52
----
48
52

skipif mysql # not compatible
query II rowsort label-1603
SELECT ALL SUM ( DISTINCT + 48 ) AS col0, COUNT ( * ) * + 52
----
48
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT + + 87 - - + NULLIF ( 79, + 41 ) - + MAX( ALL 73 ) * - + 57 * - 43
----
-178757

skipif mysql # not compatible
query I rowsort label-1604
SELECT + + 87 - - + NULLIF ( 79, + 41 ) - + MAX ( ALL 73 ) * - + 57 * - 43
----
-178757

query I rowsort
SELECT 10 * + 66 AS col1
----
660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1606
SELECT ALL 83 + - 28 + - 92 + + COALESCE ( + + COUNT( * ), - CASE 14 WHEN + 89 + CAST( NULL AS SIGNED ) THEN + 84 + + 46 WHEN + AVG ( ALL + - 24 ) THEN NULL ELSE NULL END, 89 - 15 + - + 37 * 59 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-1606
SELECT ALL 83 + - 28 + - 92 + + COALESCE ( + + COUNT ( * ), - CASE 14 WHEN + 89 + CAST ( NULL AS INTEGER ) THEN + 84 + + 46 WHEN + AVG ( ALL + - 24 ) THEN NULL ELSE NULL END, 89 - 15 + - + 37 * 59 ) AS col2
----
-36

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

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

query I rowsort
SELECT ALL - 67 + 76
----
9

query II rowsort
SELECT - 93 * + 28 + - 4 AS col1, - 94 AS col1
----
-2608
-94

query I rowsort
SELECT ( 29 ) - + + 4 + + 72 + - 78 - 88
----
-69

query II rowsort
SELECT ALL - 20 col0, - 92
----
-20
-92

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1613
SELECT ( + + 96 ) + + 47 DIV - - 30 - - + 78 AS col1, - COALESCE ( - ( + - 29 ), + - COUNT( * ), - CAST( + - 29 AS SIGNED ) * - 77 + + + 45 + ( - COUNT( DISTINCT + - 98 ) ) )
----
175
-29

skipif mysql # not compatible
query II rowsort label-1613
SELECT ( + + 96 ) + + 47 / - - 30 - - + 78 AS col1, - COALESCE ( - ( + - 29 ), + - COUNT ( * ), - CAST ( + - 29 AS INTEGER ) * - 77 + + + 45 + ( - COUNT ( DISTINCT + - 98 ) ) )
----
175
-29

query I rowsort
SELECT DISTINCT 1 * - 45
----
-45

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

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL 54 - + COUNT ( * ) AS col2
----
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1616
SELECT 0 + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1616
SELECT 0 + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT ALL - MAX( - - ( 7 ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL - MAX ( - - ( 7 ) ) AS col0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1618
SELECT 6 * + COALESCE ( + - 1, - 81 * 12 ) * + 45 * ( - + COALESCE ( - + 82, + SUM( ALL 55 ) + + 53 DIV - COALESCE ( MIN( + - 7 ), + + 77 * - + 11 * - 53 * - COUNT( * ) * - 86 + - 75 + 28 ) ) ) AS col1
----
-22140

skipif mysql # not compatible
query I rowsort label-1618
SELECT 6 * + COALESCE ( + - 1, - 81 * 12 ) * + 45 * ( - + COALESCE ( - + 82, + SUM ( ALL 55 ) + + 53 / - COALESCE ( MIN ( + - 7 ), + + 77 * - + 11 * - 53 * - COUNT ( * ) * - 86 + - 75 + 28 ) ) ) AS col1
----
-22140

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

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

query I rowsort
SELECT 15 + + NULLIF ( + 9, + + ( + 65 ) + + - 47 + ( 69 ) ) AS col0
----
24

query I rowsort
SELECT 19 * + 88 AS col0
----
1672

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT ALL - COUNT( + - 22 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL - COUNT ( + - 22 ) AS col1
----
-1

query I rowsort
SELECT 78 * 72 + + 52 AS col1
----
5668

query I rowsort
SELECT DISTINCT + 87 * + 54
----
4698

query I rowsort
SELECT 9 * 83
----
747

query I rowsort
SELECT ALL + ( 14 ) * + 87 col0
----
1218

query I rowsort
SELECT ALL - 15 + COALESCE ( 28 + - ( 84 ) * - 50, + 64 )
----
4213

query I rowsort
SELECT DISTINCT - 97 + + 39 AS col1
----
-58

query I rowsort
SELECT 5 - - 72 AS col2
----
77

query I rowsort
SELECT ALL + 70 + - CASE - 93 WHEN 2 + - 75 THEN NULL ELSE 36 END
----
34

query I rowsort
SELECT DISTINCT + ( 29 ) + 1
----
30

query I rowsort
SELECT DISTINCT - 98 + + COALESCE ( - 71 + 90, - 52 )
----
-79

query I rowsort
SELECT 69 + 2
----
71

query I rowsort
SELECT ALL - 80 + 19 AS col2
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1635
SELECT DISTINCT + 25 DIV - MIN( 8 )
----
-3

skipif mysql # not compatible
query I rowsort label-1635
SELECT DISTINCT + 25 / - MIN ( 8 )
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT COUNT( * ) * MAX( DISTINCT 39 )
----
39

skipif mysql # not compatible
query I rowsort label-1637
SELECT COUNT ( * ) * MAX ( DISTINCT 39 )
----
39

query I rowsort
SELECT ALL 56 * ( - 41 ) col0
----
-2296

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

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

query I rowsort
SELECT DISTINCT - ( ( 88 ) ) + ( + ( 45 ) )
----
-43

query I rowsort
SELECT DISTINCT 50 + + 94
----
144

query I rowsort
SELECT 39 * ( + 30 ) AS col1
----
1170

query I rowsort
SELECT 49 - - 20
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT CASE 18 WHEN + 13 + + 60 * COALESCE ( - ( 94 ) + COUNT( * ) * 86, + 87 ) THEN + COALESCE ( + 58, 52 ) * 6 END + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1644
SELECT CASE 18 WHEN + 13 + + 60 * COALESCE ( - ( 94 ) + COUNT ( * ) * 86, + 87 ) THEN + COALESCE ( + 58, 52 ) * 6 END + 28 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT 8 * COUNT( * ) + 6
----
14

skipif mysql # not compatible
query I rowsort label-1645
SELECT 8 * COUNT ( * ) + 6
----
14

query I rowsort
SELECT ALL + 45 * + 49
----
2205

query I rowsort
SELECT DISTINCT + 36 - + 51 AS col2
----
-15

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

skipif mysql # not compatible
query I rowsort label-1648
SELECT MAX ( ALL - 64 )
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1649
SELECT + 13 DIV MAX( DISTINCT - 36 * 58 ) - 53 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-1649
SELECT + 13 / MAX ( DISTINCT - 36 * 58 ) - 53 AS col2
----
-53

query I rowsort
SELECT ( + 65 ) * - 99
----
-6435

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT COUNT( 8 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1651
SELECT COUNT ( 8 ) col0
----
1

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

skipif mysql # not compatible
query I rowsort label-1652
SELECT + COUNT ( DISTINCT + 37 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT - ( NULLIF ( - ( 9 ), + 6 ) ) * 90 - COUNT( * ) * MAX( DISTINCT 65 * + 32 ) AS col0
----
-1270

skipif mysql # not compatible
query I rowsort label-1653
SELECT - ( NULLIF ( - ( 9 ), + 6 ) ) * 90 - COUNT ( * ) * MAX ( DISTINCT 65 * + 32 ) AS col0
----
-1270

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT 9 DIV 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1654
SELECT 9 / 39 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT ALL 47 + + ( 59 + + COALESCE ( COUNT( DISTINCT + 88 ) + - ( 25 ), 41 ) * 61 ) * 29
----
-40698

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL 47 + + ( 59 + + COALESCE ( COUNT ( DISTINCT + 88 ) + - ( 25 ), 41 ) * 61 ) * 29
----
-40698

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT ALL + MIN( 47 ) * + 67 AS col0
----
3149

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL + MIN ( 47 ) * + 67 AS col0
----
3149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1657
SELECT ALL - CAST( + ( - ( - CAST( 28 AS SIGNED ) ) ) AS SIGNED ) + - 70 * MAX( ALL 7 * - 5 ) AS col0
----
2422

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL - CAST ( + ( - ( - CAST ( 28 AS INTEGER ) ) ) AS INTEGER ) + - 70 * MAX ( ALL 7 * - 5 ) AS col0
----
2422

onlyif mysql # DIV for integer division: 
query I rowsort label-1658
SELECT + ( 80 ) DIV 28 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1658
SELECT + ( 80 ) / 28 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT + 59 * - 15 + - ( + COUNT( * ) ) AS col0
----
-886

skipif mysql # not compatible
query I rowsort label-1659
SELECT + 59 * - 15 + - ( + COUNT ( * ) ) AS col0
----
-886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1660
SELECT 40 * - CASE 11 + + 80 WHEN COUNT( * ) - - 66 * + 87 THEN + 73 WHEN + 95 * + 35 THEN NULL WHEN + 65 + - CAST( - 99 AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN + 96 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT 40 * - CASE 11 + + 80 WHEN COUNT ( * ) - - 66 * + 87 THEN + 73 WHEN + 95 * + 35 THEN NULL WHEN + 65 + - CAST ( - 99 AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN + 96 END col1
----
NULL

query I rowsort
SELECT 27 + - 29 AS col2
----
-2

query I rowsort
SELECT + + 85 * 68 - - 61
----
5841

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT + ( - 84 ) + COUNT( DISTINCT - 68 ) * + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-1663
SELECT + ( - 84 ) + COUNT ( DISTINCT - 68 ) * + COUNT ( * )
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-1664
SELECT + 17 + + 44 DIV 85
----
17

skipif mysql # not compatible
query I rowsort label-1664
SELECT + 17 + + 44 / 85
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT - SUM( DISTINCT + 42 ) * 13
----
-546

skipif mysql # not compatible
query I rowsort label-1665
SELECT - SUM ( DISTINCT + 42 ) * 13
----
-546

query I rowsort
SELECT ALL + 49 * - 50 AS col0
----
-2450

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

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

query I rowsort
SELECT ALL + + 4 * - 78 AS col2
----
-312

query I rowsort
SELECT - + 10 + + 52 * + 39 AS col2
----
2018

query I rowsort
SELECT ALL + + 88 + + 61 AS col0
----
149

query I rowsort
SELECT - - ( 97 ) + 3
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT ALL - + 12 * - SUM( ALL + 16 )
----
192

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL - + 12 * - SUM ( ALL + 16 )
----
192

query I rowsort
SELECT - 19 + 91 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT - 91 * + 86 * - MIN( 72 * + 85 ) AS col2
----
47895120

skipif mysql # not compatible
query I rowsort label-1674
SELECT - 91 * + 86 * - MIN ( 72 * + 85 ) AS col2
----
47895120

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT - MAX( 97 ) + 25 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-1675
SELECT - MAX ( 97 ) + 25 AS col2
----
-72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT - 72 - + MAX( DISTINCT - 73 ) + 73
----
74

skipif mysql # not compatible
query I rowsort label-1677
SELECT - 72 - + MAX ( DISTINCT - 73 ) + 73
----
74

query I rowsort
SELECT - ( - 58 ) * - 1
----
-58

query I rowsort
SELECT - 7 + 22 AS col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1680
SELECT ALL - 86 DIV - + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL - 86 / - + 97 AS col1
----
0

query I rowsort
SELECT 41 * - 72 + 12 AS col0
----
-2940

query I rowsort
SELECT - ( + 27 ) * + 92
----
-2484

query I rowsort
SELECT + 1 * - 50 AS col1
----
-50

query I rowsort
SELECT + 46 * 57 + + 4 * + 57 AS col2
----
2850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1685
SELECT + 18 - - CASE + 35 WHEN 20 THEN 75 WHEN COALESCE ( CAST( 66 AS SIGNED ), - 83 - - 95 * - 85 ) THEN NULL ELSE 73 * - 36 END
----
-2610

skipif mysql # not compatible
query I rowsort label-1685
SELECT + 18 - - CASE + 35 WHEN 20 THEN 75 WHEN COALESCE ( CAST ( 66 AS INTEGER ), - 83 - - 95 * - 85 ) THEN NULL ELSE 73 * - 36 END
----
-2610

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1686
SELECT CAST( NULL AS DECIMAL ) / COUNT( * ) + + 35 * - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1686
SELECT CAST ( NULL AS REAL ) / COUNT ( * ) + + 35 * - 24 AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( + 85, + 27 + 58 )
----
NULL

query I rowsort
SELECT - 82 + + 93 * 67
----
6149

query I rowsort
SELECT ALL + 17 * - 33 + - 78 AS col1
----
-639

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1690
SELECT - NULLIF ( + CAST( + CASE - 75 WHEN + 19 THEN NULL WHEN - 72 THEN - 37 ELSE NULL END AS SIGNED ), 38 * NULLIF ( + 91 * 18, - ( - COALESCE ( - 81, + 25 ) ) * - 92 ) ) * 72 + ( 1 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1690
SELECT - NULLIF ( + CAST ( + CASE - 75 WHEN + 19 THEN NULL WHEN - 72 THEN - 37 ELSE NULL END AS INTEGER ), 38 * NULLIF ( + 91 * 18, - ( - COALESCE ( - 81, + 25 ) ) * - 92 ) ) * 72 + ( 1 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 88 * + 28 AS col1
----
-2464

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT - 24 * + ( 63 ) * 99 + 58 * COUNT( * )
----
-149630

skipif mysql # not compatible
query I rowsort label-1692
SELECT - 24 * + ( 63 ) * 99 + 58 * COUNT ( * )
----
-149630

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1694
SELECT ALL + 45 * + + ( + CAST( NULL AS SIGNED ) ) * 27 + ( - COUNT( * ) ) / - 9 + - COUNT( * )
----
NULL

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

query I rowsort
SELECT - 74 * - + 6 + - ( - 44 + 97 * + 56 ) * 9
----
-48048

query I rowsort
SELECT + + 24 * - + 49 * 67 + - ( + 6 )
----
-78798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1697
SELECT CASE + 53 WHEN 88 * 28 THEN + CAST( NULL AS SIGNED ) ELSE + 6 END AS col2
----
6

skipif mysql # not compatible
query I rowsort label-1697
SELECT CASE + 53 WHEN 88 * 28 THEN + CAST ( NULL AS INTEGER ) ELSE + 6 END AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT DISTINCT - - ( 29 ) * COUNT( + 96 ) + + 56 * 83
----
4677

skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT - - ( 29 ) * COUNT ( + 96 ) + + 56 * 83
----
4677

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT DISTINCT 49 * - NULLIF ( 36, 89 * + 53 ) * + COUNT( * )
----
-1764

skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT 49 * - NULLIF ( 36, 89 * + 53 ) * + COUNT ( * )
----
-1764

query I rowsort
SELECT DISTINCT + 75 * + - 14 AS col2
----
-1050

query I rowsort
SELECT + 90 - - 54
----
144

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

skipif mysql # not compatible
query I rowsort label-1702
SELECT DISTINCT COUNT ( * ) - + ( - 25 ) AS col1
----
26

query I rowsort
SELECT + 79 * + + 56
----
4424

query II rowsort
SELECT 94 AS col0, - 56 * - NULLIF ( 52, 90 )
----
94
2912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1705
SELECT - CASE 43 WHEN ( MAX( ALL - 39 ) ) + 68 * + 80 THEN NULL ELSE + 14 END + - CAST( - 16 AS SIGNED ) * + 16 AS col2
----
242

skipif mysql # not compatible
query I rowsort label-1705
SELECT - CASE 43 WHEN ( MAX ( ALL - 39 ) ) + 68 * + 80 THEN NULL ELSE + 14 END + - CAST ( - 16 AS INTEGER ) * + 16 AS col2
----
242

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT DISTINCT MAX( DISTINCT + 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT MAX ( DISTINCT + 59 ) AS col0
----
59

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

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

query I rowsort
SELECT ALL CASE 74 WHEN - - 42 / 42 THEN 17 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1709
SELECT 89, - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) col0
----
89
NULL

skipif mysql # not compatible
query II rowsort label-1709
SELECT 89, - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) col0
----
89
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1710
SELECT - 1 * + 54 DIV - 77 * - 37
----
0

skipif mysql # not compatible
query I rowsort label-1710
SELECT - 1 * + 54 / - 77 * - 37
----
0

query I rowsort
SELECT + 13 * + 63
----
819

query I rowsort
SELECT - 19 + 78 AS col1
----
59

query I rowsort
SELECT DISTINCT - 73 * - - 56 AS col0
----
-4088

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT - 95 + COUNT( * ) + - 12 + - COUNT( * ) * + 58 * + 67 AS col2
----
-3992

skipif mysql # not compatible
query I rowsort label-1714
SELECT - 95 + COUNT ( * ) + - 12 + - COUNT ( * ) * + 58 * + 67 AS col2
----
-3992

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT ALL + MIN( DISTINCT CASE - 63 WHEN - 5 THEN NULL WHEN - 50 + 31 THEN + 63 ELSE - 74 END )
----
-74

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL + MIN ( DISTINCT CASE - 63 WHEN - 5 THEN NULL WHEN - 50 + 31 THEN + 63 ELSE - 74 END )
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1717
SELECT ALL ( + - 80 ) DIV - - 51 + COUNT( * ) + 89 * + CAST( 43 + - 24 AS SIGNED )
----
1691

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL ( + - 80 ) / - - 51 + COUNT ( * ) + 89 * + CAST ( 43 + - 24 AS INTEGER )
----
1691

query I rowsort
SELECT DISTINCT 67 / + 11 + 20 * CASE - 98 WHEN 94 - 38 THEN ( + 30 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1719
SELECT ALL + 73 DIV - 97 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL + 73 / - 97 + + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1720
SELECT ALL + 96 DIV - 19 + - 90
----
-95

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL + 96 / - 19 + - 90
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-1721
SELECT DISTINCT + 29 DIV - 2 + + - 44
----
-58

skipif mysql # not compatible
query I rowsort label-1721
SELECT DISTINCT + 29 / - 2 + + - 44
----
-58

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

skipif mysql # not compatible
query I rowsort label-1722
SELECT DISTINCT + COUNT ( * ) / + SUM ( DISTINCT - 43 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1723
SELECT 59 DIV - SUM( 19 ) - + 75 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-1723
SELECT 59 / - SUM ( 19 ) - + 75 AS col1
----
-78

query II rowsort
SELECT + 19 AS col2, NULLIF ( + + 47, 79 )
----
19
47

query I rowsort
SELECT ( + 98 ) * 63 + 55 AS col0
----
6229

query I rowsort
SELECT + 41 * 80 - + 53 col2
----
3227

query I rowsort
SELECT + + CASE + + 11 WHEN 6 THEN NULL WHEN - 93 THEN + 10 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT DISTINCT - - COUNT( * ) - 46 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-1728
SELECT DISTINCT - - COUNT ( * ) - 46 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT - 8 - MIN( - 74 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-1729
SELECT - 8 - MIN ( - 74 ) AS col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1730
SELECT ALL - + COUNT( - - 28 ) * - 91 DIV NULLIF ( - 1, 91 ) + + NULLIF ( - 73, 53 ) * - COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL - + COUNT ( - - 28 ) * - 91 / NULLIF ( - 1, 91 ) + + NULLIF ( - 73, 53 ) * - COUNT ( * ) AS col2
----
-18

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

query I rowsort
SELECT DISTINCT - - 71 * + 94 AS col0
----
6674

query II rowsort
SELECT ALL - - 65 AS col2, 93 * - + 46 - 80
----
65
-4358

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT - ( + COALESCE ( + 51, 11, + NULLIF ( - 86, - COUNT( * ) * 47 ) * + 8 ) ) * COUNT( * ) + 38
----
-13

skipif mysql # not compatible
query I rowsort label-1734
SELECT - ( + COALESCE ( + 51, 11, + NULLIF ( - 86, - COUNT ( * ) * 47 ) * + 8 ) ) * COUNT ( * ) + 38
----
-13

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

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

query I rowsort
SELECT 59 + + 99 AS col0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT + 16 * 28 - - - COUNT( * )
----
447

skipif mysql # not compatible
query I rowsort label-1737
SELECT + 16 * 28 - - - COUNT ( * )
----
447

query I rowsort
SELECT 36 * - 54 AS col1
----
-1944

query I rowsort
SELECT 79 * - + ( 78 ) * 87 col0
----
-536094

query I rowsort
SELECT DISTINCT 49 * 3 AS col1
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT ALL 37 * - CASE COALESCE ( - MIN( - 86 ), 49, 25 + - 51 / COUNT( * ) ) WHEN ( NULLIF ( - 65, 88 ) ) + - AVG ( + 49 ) THEN NULL WHEN 35 THEN 20 * - 90 - NULLIF ( 22 + + 95, + 39 ) ELSE 22 END
----
-814

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL 37 * - CASE COALESCE ( - MIN ( - 86 ), 49, 25 + - 51 / COUNT ( * ) ) WHEN ( NULLIF ( - 65, 88 ) ) + - AVG ( + 49 ) THEN NULL WHEN 35 THEN 20 * - 90 - NULLIF ( 22 + + 95, + 39 ) ELSE 22 END
----
-814

query I rowsort
SELECT 0 * + 77
----
0

query I rowsort
SELECT ALL 31 + - + 80
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT CASE - 34 WHEN - + 38 + - COALESCE ( 38, - 67 * 82 - 17 * + 75 ) + + ( - 89 ) THEN - 93 + - 17 ELSE COUNT( * ) END * 8
----
8

skipif mysql # not compatible
query I rowsort label-1744
SELECT CASE - 34 WHEN - + 38 + - COALESCE ( 38, - 67 * 82 - 17 * + 75 ) + + ( - 89 ) THEN - 93 + - 17 ELSE COUNT ( * ) END * 8
----
8

query I rowsort
SELECT 90 * + 57
----
5130

query I rowsort
SELECT 28 + - 49 AS col0
----
-21

query I rowsort
SELECT DISTINCT + 97 + + + 27 - 63 col0
----
61

query I rowsort
SELECT DISTINCT - ( 18 ) * 7 * 66
----
-8316

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT ALL ( ( 66 ) ) + - - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-1749
SELECT ALL ( ( 66 ) ) + - - COUNT ( * )
----
67

query I rowsort
SELECT ALL - 24 * - - 22
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT ALL COUNT( * ) + + - 60 * - + 97 * + + 92
----
535441

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL COUNT ( * ) + + - 60 * - + 97 * + + 92
----
535441

query I rowsort
SELECT 8 * - 91 - 66 AS col2
----
-794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1753
SELECT + COUNT( * ) * 85 - + 23 + + + 51 + + 70 DIV 21
----
116

skipif mysql # not compatible
query I rowsort label-1753
SELECT + COUNT ( * ) * 85 - + 23 + + + 51 + + 70 / 21
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT - CASE - 27 WHEN + COUNT( * ) THEN NULL WHEN + 59 / 64 THEN - 49 * 49 + 65 * 38 END + + CASE ( - COUNT( * ) ) + + 24 WHEN ( - 60 ) THEN NULL ELSE + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1754
SELECT - CASE - 27 WHEN + COUNT ( * ) THEN NULL WHEN + 59 / 64 THEN - 49 * 49 + 65 * 38 END + + CASE ( - COUNT ( * ) ) + + 24 WHEN ( - 60 ) THEN NULL ELSE + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1755
SELECT + 56 * + 27 - - CASE 64 WHEN 79 * CASE - CAST( NULL AS SIGNED ) WHEN - COUNT( * ) / + 56 - 26 * 65 THEN NULL ELSE 78 * - ( 50 ) - CAST( - ( + NULLIF ( 45, 69 ) ) AS SIGNED ) END - + 23 THEN - 8 WHEN + COALESCE ( 84, + 59 * 0, 64 + 99, 35 + - 0 ) THEN - 36 * + 71 + 43 END - COUNT( * ) * - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1755
SELECT + 56 * + 27 - - CASE 64 WHEN 79 * CASE - CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) / + 56 - 26 * 65 THEN NULL ELSE 78 * - ( 50 ) - CAST ( - ( + NULLIF ( 45, 69 ) ) AS INTEGER ) END - + 23 THEN - 8 WHEN + COALESCE ( 84, + 59 * 0, 64 + 99, 35 + - 0 ) THEN - 36 * + 71 + 43 END - COUNT ( * ) * - 31 AS col2
----
NULL

query I rowsort
SELECT 56 + - 20 + ( + - 78 ) * + 90
----
-6984

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

query I rowsort
SELECT + ( + 59 ) * + 70 + + 5 AS col1
----
4135

query I rowsort
SELECT 97 * + 71 + - 90 * + - 97 * + 8 AS col2
----
76727

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

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

query I rowsort
SELECT ( - 78 ) + + + 34 + ( - 22 ) col1
----
-66

query I rowsort
SELECT + NULLIF ( 84, - 2 ) AS col0
----
84

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

query I rowsort
SELECT ALL - - 68 * - 11 + 24 * 20
----
-268

query I rowsort
SELECT - 81 * CASE 47 WHEN - - 49 * - 55 THEN 62 / + 84 END * - 43 + + 70
----
NULL

query II rowsort
SELECT - 99 * - + 51 AS col2, 24 AS col1
----
5049
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1767
SELECT - CASE 81 WHEN + 73 THEN NULL WHEN + 74 THEN MAX( DISTINCT - CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1767
SELECT - CASE 81 WHEN + 73 THEN NULL WHEN + 74 THEN MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) END
----
NULL

query II rowsort
SELECT ALL 6 AS col2, + 97 * 24 * + + 56 + + 23 - - 3
----
6
130394

query I rowsort
SELECT DISTINCT - 45 + - + 35 + 41
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT ALL - COUNT( * ) + 76 * 42 * 84 AS col0
----
268127

skipif mysql # not compatible
query I rowsort label-1770
SELECT ALL - COUNT ( * ) + 76 * 42 * 84 AS col0
----
268127

onlyif mysql # DIV for integer division: 
query I rowsort label-1771
SELECT 74 - + 96 DIV - 44
----
76

skipif mysql # not compatible
query I rowsort label-1771
SELECT 74 - + 96 / - 44
----
76

query I rowsort
SELECT 80 + + 29 col0
----
109

query I rowsort
SELECT 83 * - - 22
----
1826

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT COUNT( - - 83 ) / + 73 * 80 - + - CASE + MIN( DISTINCT + 53 ) WHEN - 2 + ( 44 ) / - COUNT( * ) THEN 81 / - 50 WHEN 24 + 34 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1774
SELECT COUNT ( - - 83 ) / + 73 * 80 - + - CASE + MIN ( DISTINCT + 53 ) WHEN - 2 + ( 44 ) / - COUNT ( * ) THEN 81 / - 50 WHEN 24 + 34 THEN NULL END
----
NULL

query II rowsort
SELECT ALL 78 + + + 7 * + 66 AS col2, + 28 AS col0
----
540
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1776
SELECT ALL + 56 DIV + + 19 col2
----
2

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL + 56 / + + 19 col2
----
2

query I rowsort
SELECT DISTINCT - 1 + 70 col2
----
69

query I rowsort
SELECT ALL 42 + + 73
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT ALL ( 13 ) + - - ( + - 94 ) * + 92 * 21 + - COALESCE ( - 47, - 16 * SUM( 3 ) + 61, ( + ( + 1 ) ) ) col0
----
-181548

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL ( 13 ) + - - ( + - 94 ) * + 92 * 21 + - COALESCE ( - 47, - 16 * SUM ( 3 ) + 61, ( + ( + 1 ) ) ) col0
----
-181548

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT - MAX( 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-1780
SELECT - MAX ( 46 ) AS col2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-1781
SELECT NULLIF ( 95, + 68 ) DIV + 56 col0
----
1

skipif mysql # not compatible
query I rowsort label-1781
SELECT NULLIF ( 95, + 68 ) / + 56 col0
----
1

query I rowsort
SELECT + 64 * - 49
----
-3136

query I rowsort
SELECT - 82 + - 32 AS col1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT DISTINCT + NULLIF ( - MIN( DISTINCT - 55 ), + 86 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT + NULLIF ( - MIN ( DISTINCT - 55 ), + 86 ) AS col1
----
55

query II rowsort
SELECT + - 76 * 41 * + 62, 44 + + 22 AS col2
----
-193192
66

query I rowsort
SELECT ALL + + 45 * - 23 * + 22 * 31
----
-705870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1787
SELECT - NULLIF ( - - 84, CAST( NULL AS SIGNED ) ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-1787
SELECT - NULLIF ( - - 84, CAST ( NULL AS INTEGER ) ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT MIN( 55 )
----
55

skipif mysql # not compatible
query I rowsort label-1788
SELECT MIN ( 55 )
----
55

query I rowsort
SELECT + + CASE - 57 WHEN - 52 THEN - 47 END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1790
SELECT + 33 / CAST( NULL AS SIGNED ) - - CASE + ( + 53 ) WHEN - SUM( ALL - 36 ) + 99 THEN - 41 / 64 END - - COUNT( * ) * 34 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1790
SELECT + 33 / CAST ( NULL AS INTEGER ) - - CASE + ( + 53 ) WHEN - SUM ( ALL - 36 ) + 99 THEN - 41 / 64 END - - COUNT ( * ) * 34 col0
----
NULL

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

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

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

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

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

query I rowsort
SELECT + 83 * 43 + - 65 + + 55 - + 3 AS col0
----
3556

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT + 45 * COUNT( * ) - 47 - - 68 * 23
----
1562

skipif mysql # not compatible
query I rowsort label-1796
SELECT + 45 * COUNT ( * ) - 47 - - 68 * 23
----
1562

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1797
SELECT ALL + + CASE + 0 WHEN + - 16 THEN - ( CAST( NULL AS SIGNED ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL + + CASE + 0 WHEN + - 16 THEN - ( CAST ( NULL AS INTEGER ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1798
SELECT DISTINCT + 81 * COUNT( * ) + - 7 AS col2, + 57 + - 95 + 21 DIV - 24
----
74
-38

skipif mysql # not compatible
query II rowsort label-1798
SELECT DISTINCT + 81 * COUNT ( * ) + - 7 AS col2, + 57 + - 95 + 21 / - 24
----
74
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1799
SELECT - + 50 * + - NULLIF ( + - 45, - + CASE - - 7 WHEN ( 22 ) + - 83 * - ( 61 * 63 + CAST( 11 AS SIGNED ) ) THEN NULL ELSE - 64 END ) AS col2
----
-2250

skipif mysql # not compatible
query I rowsort label-1799
SELECT - + 50 * + - NULLIF ( + - 45, - + CASE - - 7 WHEN ( 22 ) + - 83 * - ( 61 * 63 + CAST ( 11 AS INTEGER ) ) THEN NULL ELSE - 64 END ) AS col2
----
-2250

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT ALL + 38 * + 86 + CASE - COUNT( * ) WHEN - 41 * + COUNT( * ) THEN 70 * - 23 WHEN ( - 95 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL + 38 * + 86 + CASE - COUNT ( * ) WHEN - 41 * + COUNT ( * ) THEN 70 * - 23 WHEN ( - 95 ) THEN NULL END
----
NULL

query II rowsort
SELECT + 56, + 9 * + 31 AS col1
----
56
279

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT - 72 + + 18 - + MIN( ALL + 60 )
----
-114

skipif mysql # not compatible
query I rowsort label-1803
SELECT - 72 + + 18 - + MIN ( ALL + 60 )
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT 59 * COUNT( * ) * - - COUNT( * ) - + - 81
----
140

skipif mysql # not compatible
query I rowsort label-1804
SELECT 59 * COUNT ( * ) * - - COUNT ( * ) - + - 81
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1805
SELECT - ( - + 46 ) + ( + 52 ) + + CAST( - + COUNT( * ) AS SIGNED ) * - 38
----
136

skipif mysql # not compatible
query I rowsort label-1805
SELECT - ( - + 46 ) + ( + 52 ) + + CAST ( - + COUNT ( * ) AS INTEGER ) * - 38
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT - 55 - - COALESCE ( COUNT( - - 81 ), - 61 - - + 13 ) * - ( + 64 ) AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-1806
SELECT - 55 - - COALESCE ( COUNT ( - - 81 ), - 61 - - + 13 ) * - ( + 64 ) AS col0
----
-119

onlyif mysql # aggregate syntax: 
query II rowsort label-1807
SELECT COUNT( * ) col0, + 77 + + + 10
----
1
87

skipif mysql # not compatible
query II rowsort label-1807
SELECT COUNT ( * ) col0, + 77 + + + 10
----
1
87

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1809
SELECT ALL - 96 + + 5 AS col2, - 71 DIV 36 * - COUNT( * )
----
-91
1

skipif mysql # not compatible
query II rowsort label-1809
SELECT ALL - 96 + + 5 AS col2, - 71 / 36 * - COUNT ( * )
----
-91
1

query II rowsort
SELECT - 25, - 21 AS col1
----
-25
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT ALL NULLIF ( - 35, + COUNT( * ) + - - ( - 2 ) * + SUM( + 70 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL NULLIF ( - 35, + COUNT ( * ) + - - ( - 2 ) * + SUM ( + 70 ) )
----
-35

query I rowsort
SELECT DISTINCT + 69 * - - 73
----
5037

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

skipif mysql # not compatible
query I rowsort label-1813
SELECT DISTINCT - COUNT ( * ) + - + 9 AS col2
----
-10

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

skipif mysql # not compatible
query I rowsort label-1814
SELECT - MAX ( + 21 )
----
-21

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

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

query II rowsort
SELECT - 36 AS col0, ( + 95 ) + - 19 AS col2
----
-36
76

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

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

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

query I rowsort
SELECT - 0 + + 45 + + - 55 * + - 36 + + 61 + + 7
----
2093

query II rowsort
SELECT 61 AS col1, + 74 + + - 70 AS col2
----
61
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1821
SELECT - COALESCE ( - 24, 29 * - - COUNT( * ) ), 15 AS col0
----
24
15

skipif mysql # not compatible
query II rowsort label-1821
SELECT - COALESCE ( - 24, 29 * - - COUNT ( * ) ), 15 AS col0
----
24
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1822
SELECT + 41 + CAST( NULL AS SIGNED ) - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1822
SELECT + 41 + CAST ( NULL AS INTEGER ) - + 56
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1824
SELECT DISTINCT - 83 / 16 * - - CAST( NULL AS SIGNED ) + - - 95 * - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT - 83 / 16 * - - CAST ( NULL AS INTEGER ) + - - 95 * - 32 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1825
SELECT + - MAX( + 66 ) DIV + 19 + - - 48, - CASE NULLIF ( 2, + CASE + 76 WHEN 94 + 16 * + ( + COUNT( * ) ) THEN - AVG ( ALL 8 ) DIV 47 ELSE NULL END ) WHEN - ( + 27 ) THEN NULL ELSE 69 END col2
----
45
-69

skipif mysql # not compatible
query II rowsort label-1825
SELECT + - MAX ( + 66 ) / + 19 + - - 48, - CASE NULLIF ( 2, + CASE + 76 WHEN 94 + 16 * + ( + COUNT ( * ) ) THEN - AVG ( ALL 8 ) / 47 ELSE NULL END ) WHEN - ( + 27 ) THEN NULL ELSE 69 END col2
----
45
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT ALL - - 89 * 97 * - COUNT( * ) * 25 * - + 53 col2
----
11438725

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL - - 89 * 97 * - COUNT ( * ) * 25 * - + 53 col2
----
11438725

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1827
SELECT DISTINCT + COUNT( * ) AS col1, + CAST( NULL AS DECIMAL ) * - 44 * + 10 * - 15 * - 59 * + 67 - 10 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1827
SELECT DISTINCT + COUNT ( * ) AS col1, + CAST ( NULL AS REAL ) * - 44 * + 10 * - 15 * - 59 * + 67 - 10 AS col0
----
1
NULL

query I rowsort
SELECT - 97 * + 56 + + + 73 - - + 40
----
-5319

query I rowsort
SELECT + - 77 * + 86 * + 22 + - NULLIF ( + + 3, - 94 / - 15 ) col0
----
-145687

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1830
SELECT ALL 22 DIV + 50 * + 65 * CAST( + 11 AS SIGNED ) + - - 40 * + 52 + - ( + 32 ) AS col0
----
2048

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL 22 / + 50 * + 65 * CAST ( + 11 AS INTEGER ) + - - 40 * + 52 + - ( + 32 ) AS col0
----
2048

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1832
SELECT ALL COUNT( * ) DIV + + 43 + 3
----
3

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL COUNT ( * ) / + + 43 + 3
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1833
SELECT DISTINCT + 27 DIV - 79 + - 2
----
-2

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT + 27 / - 79 + - 2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT ALL - COUNT( ALL - 6 ) / - 6 + + - ( 5 ) * CASE + 1 WHEN 46 / 80 + - 28 * 4 THEN NULL WHEN 78 THEN 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL - COUNT ( ALL - 6 ) / - 6 + + - ( 5 ) * CASE + 1 WHEN 46 / 80 + - 28 * 4 THEN NULL WHEN 78 THEN 41 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1835
SELECT 79 DIV 93 + + 51 * + 42 * + 16 col0
----
34272

skipif mysql # not compatible
query I rowsort label-1835
SELECT 79 / 93 + + 51 * + 42 * + 16 col0
----
34272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1836
SELECT ALL COALESCE ( 42, + CAST( NULL AS SIGNED ) * 59, 37 ) * CASE - MIN( DISTINCT - 9 ) WHEN 84 * - 20 THEN + 26 * - 49 WHEN - 91 THEN NULL ELSE NULL END + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL COALESCE ( 42, + CAST ( NULL AS INTEGER ) * 59, 37 ) * CASE - MIN ( DISTINCT - 9 ) WHEN 84 * - 20 THEN + 26 * - 49 WHEN - 91 THEN NULL ELSE NULL END + - 74
----
NULL

query I rowsort
SELECT + 56 * - - 21
----
1176

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

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

query I rowsort
SELECT ALL 39 * + 17 + + 41 AS col1
----
704

query I rowsort
SELECT + ( NULLIF ( - + 35, - + 55 * - NULLIF ( - + 77, + 8 ) + - 52 + - 7 ) )
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-1841
SELECT - 79 + - 18 AS col0, - 17 * CASE NULLIF ( COUNT( ALL + 77 ), 21 ) WHEN - ( 66 ) THEN 39 WHEN 95 THEN NULL ELSE - 53 + COALESCE ( 81 + 97, + 42 ) * - 82 END * - COUNT( * )
----
-97
-249033

skipif mysql # not compatible
query II rowsort label-1841
SELECT - 79 + - 18 AS col0, - 17 * CASE NULLIF ( COUNT ( ALL + 77 ), 21 ) WHEN - ( 66 ) THEN 39 WHEN 95 THEN NULL ELSE - 53 + COALESCE ( 81 + 97, + 42 ) * - 82 END * - COUNT ( * )
----
-97
-249033

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1843
SELECT + 49 DIV 59 col2, 34 * 9 - ( + + 50 )
----
0
256

skipif mysql # not compatible
query II rowsort label-1843
SELECT + 49 / 59 col2, 34 * 9 - ( + + 50 )
----
0
256

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

skipif mysql # not compatible
query I rowsort label-1844
SELECT 64 * - 20 + + COUNT ( * ) AS col1
----
-1279

query I rowsort
SELECT ALL 72 * - 52
----
-3744

query II rowsort
SELECT ALL 76 * + 23 + + - 7 AS col2, + 95
----
1741
95

query I rowsort
SELECT ALL + CASE 51 WHEN - NULLIF ( + 19, - 79 * 50 ) THEN + 55 WHEN - 54 * - 30 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT ALL - 86 * COUNT( * ) - - 8
----
-78

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL - 86 * COUNT ( * ) - - 8
----
-78

query I rowsort
SELECT 44 * - 98
----
-4312

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1850
SELECT ALL - CAST( + 7 AS SIGNED ) DIV 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL - CAST ( + 7 AS INTEGER ) / 92 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1851
SELECT SUM( DISTINCT CAST( - 89 AS SIGNED ) ) * + COUNT( * ) * CASE + 75 WHEN + + 11 THEN NULL ELSE COUNT( * ) + 86 * - ( + 42 + + 57 * COALESCE ( ( COUNT( * ) ) + 6 * COUNT( * ), 6 * - 76 ) ) END
----
3375325

skipif mysql # not compatible
query I rowsort label-1851
SELECT SUM ( DISTINCT CAST ( - 89 AS INTEGER ) ) * + COUNT ( * ) * CASE + 75 WHEN + + 11 THEN NULL ELSE COUNT ( * ) + 86 * - ( + 42 + + 57 * COALESCE ( ( COUNT ( * ) ) + 6 * COUNT ( * ), 6 * - 76 ) ) END
----
3375325

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT COUNT( ALL + + 41 ) + + - 84 + - 33
----
-116

skipif mysql # not compatible
query I rowsort label-1852
SELECT COUNT ( ALL + + 41 ) + + - 84 + - 33
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1853
SELECT COUNT( * ) * - - 20, - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
20
NULL

skipif mysql # not compatible
query II rowsort label-1853
SELECT COUNT ( * ) * - - 20, - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
20
NULL

query I rowsort
SELECT ALL ( - - 38 ) AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1855
SELECT CAST( COALESCE ( CAST( 69 AS SIGNED ), - 14 / + 98 / - + COUNT( * ) * 51 + + 96 + - COUNT( * ) * - 95, - COUNT( * ), 36 * - 4 ) AS SIGNED ) * + 91 AS col1
----
6279

skipif mysql # not compatible
query I rowsort label-1855
SELECT CAST ( COALESCE ( CAST ( 69 AS INTEGER ), - 14 / + 98 / - + COUNT ( * ) * 51 + + 96 + - COUNT ( * ) * - 95, - COUNT ( * ), 36 * - 4 ) AS INTEGER ) * + 91 AS col1
----
6279

query II rowsort
SELECT + 8 + 74 AS col0, 34
----
82
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1857
SELECT ALL - COALESCE ( 92, - - SUM( ALL - 35 ) ) + + 92 + + 44 * + 60 * + ( + 65 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL - COALESCE ( 92, - - SUM ( ALL - 35 ) ) + + 92 + + 44 * + 60 * + ( + 65 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1858
SELECT ALL + + 82 + - + MAX( + CAST( + 35 AS SIGNED ) )
----
47

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL + + 82 + - + MAX ( + CAST ( + 35 AS INTEGER ) )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1859
SELECT ALL 5 + 34 DIV - - 87 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL 5 + 34 / - - 87 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1860
SELECT - 74 * + COUNT( * ) - + 11 * - COALESCE ( - 70, + - 48 * CAST( - 9 AS SIGNED ) * + 63 - + 5 ) + + COUNT( * ) AS col1
----
-843

skipif mysql # not compatible
query I rowsort label-1860
SELECT - 74 * + COUNT ( * ) - + 11 * - COALESCE ( - 70, + - 48 * CAST ( - 9 AS INTEGER ) * + 63 - + 5 ) + + COUNT ( * ) AS col1
----
-843

query I rowsort
SELECT ALL - 78 + + - 68
----
-146

query II rowsort
SELECT DISTINCT + 56 + 40 AS col2, - 50
----
96
-50

query I rowsort
SELECT + 74 * + 68 - + + 39
----
4993

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT ALL - 28 + + + 43 + + MAX( ALL 57 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL - 28 + + + 43 + + MAX ( ALL 57 ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT + 10 * SUM( + 26 )
----
260

skipif mysql # not compatible
query I rowsort label-1866
SELECT + 10 * SUM ( + 26 )
----
260

onlyif mysql # aggregate syntax: 
query III rowsort label-1867
SELECT + 55 AS col2, 73 * + 56 * 79, + COUNT( 61 ) AS col1
----
55
322952
1

skipif mysql # not compatible
query III rowsort label-1867
SELECT + 55 AS col2, 73 * + 56 * 79, + COUNT ( 61 ) AS col1
----
55
322952
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1868
SELECT COALESCE ( - + 2, - + NULLIF ( - - COUNT( * ), + + MAX( 9 ) + - 6 ) + - - 46 - + NULLIF ( - 35, 32 ) ) DIV - 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1868
SELECT COALESCE ( - + 2, - + NULLIF ( - - COUNT ( * ), + + MAX ( 9 ) + - 6 ) + - - 46 - + NULLIF ( - 35, 32 ) ) / - 67 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ALL COUNT( - 86 ) + + - 33
----
-32

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL COUNT ( - 86 ) + + - 33
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT SUM( ALL - + NULLIF ( 12, - - 66 * + 49 ) ) * - ( COALESCE ( NULLIF ( 0, 39 + - MAX( ALL - 35 + 83 ) ), 69 ) ) + - 75 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-1870
SELECT SUM ( ALL - + NULLIF ( 12, - - 66 * + 49 ) ) * - ( COALESCE ( NULLIF ( 0, 39 + - MAX ( ALL - 35 + 83 ) ), 69 ) ) + - 75 AS col0
----
-75

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1872
SELECT DISTINCT - 57 AS col0, + 7 + 64 + + MIN( + + 70 ) * 33 DIV 91 + + - 51 + 35 AS col2
----
-57
80

skipif mysql # not compatible
query II rowsort label-1872
SELECT DISTINCT - 57 AS col0, + 7 + 64 + + MIN ( + + 70 ) * 33 / 91 + + - 51 + 35 AS col2
----
-57
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1873
SELECT 28 + + 43 DIV COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-1873
SELECT 28 + + 43 / COUNT ( * ) AS col2
----
71

query I rowsort
SELECT 99 * - 31
----
-3069

query I rowsort
SELECT 34 * + 16 * 72 * - 21 AS col0
----
-822528

query I rowsort
SELECT ALL 19 * 9
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT ALL 54 * - MAX( + 8 ) AS col1
----
-432

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL 54 * - MAX ( + 8 ) AS col1
----
-432

query I rowsort
SELECT 18 + - 11 + + 27 * - 68 + 24 AS col2
----
-1805

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

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

query II rowsort
SELECT 24 * + - 40 * + 91 AS col0, ( + 55 )
----
-87360
55

onlyif mysql # aggregate syntax: 
query II rowsort label-1881
SELECT - 36 AS col0, - SUM( - 55 ) - - ( 34 )
----
-36
89

skipif mysql # not compatible
query II rowsort label-1881
SELECT - 36 AS col0, - SUM ( - 55 ) - - ( 34 )
----
-36
89

query II rowsort
SELECT - 89, 32 AS col1
----
-89
32

query II rowsort
SELECT DISTINCT 93 AS col2, 4 * 59
----
93
236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1884
SELECT CASE 86 WHEN + COUNT( * ) THEN + 94 ELSE - + 94 + - 88 END * + CAST( NULL AS SIGNED ) - - + 7 + 46 * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-1884
SELECT CASE 86 WHEN + COUNT ( * ) THEN + 94 ELSE - + 94 + - 88 END * + CAST ( NULL AS INTEGER ) - - + 7 + 46 * 77
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1885
SELECT DISTINCT 51 col0, MIN( DISTINCT + 65 )
----
51
65

skipif mysql # not compatible
query II rowsort label-1885
SELECT DISTINCT 51 col0, MIN ( DISTINCT + 65 )
----
51
65

onlyif mysql # DIV for integer division: 
query I rowsort label-1886
SELECT + 56 DIV + 51
----
1

skipif mysql # not compatible
query I rowsort label-1886
SELECT + 56 / + 51
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1887
SELECT ALL - 34 DIV SUM( - 48 ) + 25 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL - 34 / SUM ( - 48 ) + 25 AS col1
----
25

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

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

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

skipif mysql # not compatible
query I rowsort label-1889
SELECT - 22 / - - COUNT ( * )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT - CASE + COUNT( * ) WHEN - ( + - 16 ) THEN - + 84 END / + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1890
SELECT - CASE + COUNT ( * ) WHEN - ( + - 16 ) THEN - + 84 END / + 61
----
NULL

query I rowsort
SELECT ALL - + 59 * + 28 AS col2
----
-1652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1892
SELECT DISTINCT + CASE - 5 WHEN + COUNT( * ) * + CASE - - ( - 13 ) WHEN + 60 * ( 60 ) THEN COUNT( * ) ELSE NULL END + 18 - + 44 / + MAX( ALL CAST( NULL AS SIGNED ) ) THEN + 24 * + 1 WHEN + 52 * - 20 THEN NULL ELSE - 9 * 99 + 8 END + + CAST( 49 AS SIGNED )
----
-834

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT + CASE - 5 WHEN + COUNT ( * ) * + CASE - - ( - 13 ) WHEN + 60 * ( 60 ) THEN COUNT ( * ) ELSE NULL END + 18 - + 44 / + MAX ( ALL CAST ( NULL AS INTEGER ) ) THEN + 24 * + 1 WHEN + 52 * - 20 THEN NULL ELSE - 9 * 99 + 8 END + + CAST ( 49 AS INTEGER )
----
-834

query I rowsort
SELECT ALL - ( - + 34 ) + - 41
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT 25 + 99 - + + 8 * + + 79 * - + COUNT( * ) col2
----
756

skipif mysql # not compatible
query I rowsort label-1894
SELECT 25 + 99 - + + 8 * + + 79 * - + COUNT ( * ) col2
----
756

query I rowsort
SELECT ALL - 49 * - 7 AS col1
----
343

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

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

query I rowsort
SELECT NULLIF ( 90, - 74 ) + - 68 + - 57 AS col1
----
-35

query I rowsort
SELECT - + NULLIF ( 52, 44 ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT COUNT( DISTINCT 60 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1899
SELECT COUNT ( DISTINCT 60 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT ALL SUM( + 6 ) * MIN( - ( + CASE 49 WHEN - 19 THEN + + 66 END ) ) + + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL SUM ( + 6 ) * MIN ( - ( + CASE 49 WHEN - 19 THEN + + 66 END ) ) + + 77 AS col1
----
NULL

query I rowsort
SELECT 94 - + - 85 * + 52
----
4514

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1904
SELECT ALL - NULLIF ( - 57, + NULLIF ( + CAST( NULL AS SIGNED ), 43 ) ) * 25 + 83 - + - 70 AS col2
----
1578

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL - NULLIF ( - 57, + NULLIF ( + CAST ( NULL AS INTEGER ), 43 ) ) * 25 + 83 - + - 70 AS col2
----
1578

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT COUNT( * ) + + 7 * - 95 + + 88 AS col2
----
-576

skipif mysql # not compatible
query I rowsort label-1905
SELECT COUNT ( * ) + + 7 * - 95 + + 88 AS col2
----
-576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1906
SELECT - ( + 53 ) DIV + + ( COUNT( + ( + 17 ) ) ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-1906
SELECT - ( + 53 ) / + + ( COUNT ( + ( + 17 ) ) ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-1907
SELECT + 13 * 43 AS col2, CASE 36 WHEN + 38 THEN + 41 WHEN + 90 THEN NULL END * - COALESCE ( - MIN( ALL 14 ), MIN( + 98 ), - 44 ) / ( 89 ) col0
----
559
NULL

skipif mysql # not compatible
query II rowsort label-1907
SELECT + 13 * 43 AS col2, CASE 36 WHEN + 38 THEN + 41 WHEN + 90 THEN NULL END * - COALESCE ( - MIN ( ALL 14 ), MIN ( + 98 ), - 44 ) / ( 89 ) col0
----
559
NULL

query I rowsort
SELECT DISTINCT + 92 * + 37
----
3404

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT ALL - ( + - COUNT( * ) ) * + NULLIF ( 58, 56 * + 17 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL - ( + - COUNT ( * ) ) * + NULLIF ( 58, 56 * + 17 ) AS col2
----
58

query I rowsort
SELECT DISTINCT - CASE - NULLIF ( - ( 15 ), 41 ) WHEN 27 THEN + 95 - 44 * - 6 ELSE NULL END * - 11 - 39 * + 25 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT - 77 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-1911
SELECT - 77 / + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT ALL - 38 * - COUNT( - 42 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL - 38 * - COUNT ( - 42 ) AS col2
----
38

query I rowsort
SELECT + 53 * - + 22 AS col2
----
-1166

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1914
SELECT DISTINCT + SUM( + 96 ) col2, - 77 + + + 65 DIV + 68
----
96
-77

skipif mysql # not compatible
query II rowsort label-1914
SELECT DISTINCT + SUM ( + 96 ) col2, - 77 + + + 65 / + 68
----
96
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT DISTINCT COALESCE ( + 57, + 15, - 57 ) + + SUM( DISTINCT 87 ) * + COUNT( * ) AS col2
----
144

skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT COALESCE ( + 57, + 15, - 57 ) + + SUM ( DISTINCT 87 ) * + COUNT ( * ) AS col2
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT ALL 5 + + + COALESCE ( - + 44, - - 6 DIV + 1 + - - COALESCE ( - 87, - 62 ), - + 38 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL 5 + + + COALESCE ( - + 44, - - 6 / + 1 + - - COALESCE ( - 87, - 62 ), - + 38 ) AS col1
----
-39

query I rowsort
SELECT + 70 - + 94 * - 87
----
8248

query I rowsort
SELECT DISTINCT + 71 + - + 7 * - 30 * + ( + 74 ) * + + 27 AS col2
----
419651

onlyif mysql # aggregate syntax: 
query II rowsort label-1920
SELECT DISTINCT - MIN( ALL + 28 ) + 73 * 69 AS col1, 15 * - 91 AS col2
----
5009
-1365

skipif mysql # not compatible
query II rowsort label-1920
SELECT DISTINCT - MIN ( ALL + 28 ) + 73 * 69 AS col1, 15 * - 91 AS col2
----
5009
-1365

query II rowsort
SELECT ALL 81 + + 78 col2, NULLIF ( - 55, + 60 * + + 67 + + 67 + + - 36 ) * - 73
----
159
4015

onlyif mysql # DIV for integer division: 
query I rowsort label-1922
SELECT + + 16 + - 80 + 92 DIV + 3 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-1922
SELECT + + 16 + - 80 + 92 / + 3 AS col2
----
-34

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1924
SELECT DISTINCT + 89 + - 38 AS col2, 92 * - 68 * CASE - + COUNT( * ) WHEN + 27 THEN 97 + 83 + - 63 * - 99 END AS col1
----
51
NULL

skipif mysql # not compatible
query II rowsort label-1924
SELECT DISTINCT + 89 + - 38 AS col2, 92 * - 68 * CASE - + COUNT ( * ) WHEN + 27 THEN 97 + 83 + - 63 * - 99 END AS col1
----
51
NULL

query II rowsort
SELECT + + 83 - + 95 AS col2, 3
----
-12
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1926
SELECT ALL - CASE + CAST( NULL AS SIGNED ) WHEN - 74 + + + 19 + + - 92 * + COALESCE ( + 72, 66, - + 16 * 70 ) * + 54 THEN NULL WHEN COALESCE ( 38, COUNT( * ), 9 * 12 ) / ( 67 * + 92 ) THEN 65 WHEN + COUNT( * ) THEN + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / 49 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL - CASE + CAST ( NULL AS INTEGER ) WHEN - 74 + + + 19 + + - 92 * + COALESCE ( + 72, 66, - + 16 * 70 ) * + 54 THEN NULL WHEN COALESCE ( 38, COUNT ( * ), 9 * 12 ) / ( 67 * + 92 ) THEN 65 WHEN + COUNT ( * ) THEN + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / 49 END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT ALL COUNT( * ) + - 53
----
-52

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL COUNT ( * ) + - 53
----
-52

query I rowsort
SELECT + 96 * + 22
----
2112

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1930
SELECT + + 23 + - COALESCE ( - COUNT( * ), - 1 ) AS col0, COALESCE ( - 94, 3 DIV - 78 DIV + 30, - COALESCE ( - 28, - 82 + 95, CASE + 57 WHEN MIN( ALL 42 ) THEN MIN( ALL + 38 ) + 60 ELSE NULL END ) ) DIV + 63 col1
----
24
-1

skipif mysql # not compatible
query II rowsort label-1930
SELECT + + 23 + - COALESCE ( - COUNT ( * ), - 1 ) AS col0, COALESCE ( - 94, 3 / - 78 / + 30, - COALESCE ( - 28, - 82 + 95, CASE + 57 WHEN MIN ( ALL 42 ) THEN MIN ( ALL + 38 ) + 60 ELSE NULL END ) ) / + 63 col1
----
24
-1

query I rowsort
SELECT - ( - 73 ) * + 93 AS col1
----
6789

query I rowsort
SELECT - 92 + - - 50 col1
----
-42

query I rowsort
SELECT + 50 * - 52
----
-2600

onlyif mysql # aggregate syntax: 
query II rowsort label-1934
SELECT - + 82 * - 17 AS col2, 92 * ( + - COUNT( - 97 ) )
----
1394
-92

skipif mysql # not compatible
query II rowsort label-1934
SELECT - + 82 * - 17 AS col2, 92 * ( + - COUNT ( - 97 ) )
----
1394
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-1935
SELECT ALL + 76 * + 69 * + COUNT( ALL 63 ) AS col1, 28 * - NULLIF ( 47, - 93 - - + 86 ) AS col0
----
5244
-1316

skipif mysql # not compatible
query II rowsort label-1935
SELECT ALL + 76 * + 69 * + COUNT ( ALL 63 ) AS col1, 28 * - NULLIF ( 47, - 93 - - + 86 ) AS col0
----
5244
-1316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1936
SELECT ALL + CASE - 62 WHEN - MAX( 93 ) / + 13 THEN - 20 * 94 WHEN - CAST( - + 87 AS SIGNED ) THEN - 17 / + 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL + CASE - 62 WHEN - MAX ( 93 ) / + 13 THEN - 20 * 94 WHEN - CAST ( - + 87 AS INTEGER ) THEN - 17 / + 45 END
----
NULL

query I rowsort
SELECT - 60 + + + 41
----
-19

query I rowsort
SELECT - 36 * + 78
----
-2808

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT ALL + MIN( + - 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL + MIN ( + - 92 ) AS col1
----
-92

query I rowsort
SELECT DISTINCT + 61 * 15 AS col0
----
915

query I rowsort
SELECT DISTINCT + 52 * + 63
----
3276

query I rowsort
SELECT ALL 18 * - 23
----
-414

onlyif mysql # DIV for integer division: 
query II rowsort label-1943
SELECT - COALESCE ( 30, + - 87 + + 19 ) DIV 77, 93 + + 53 AS col2
----
0
146

skipif mysql # not compatible
query II rowsort label-1943
SELECT - COALESCE ( 30, + - 87 + + 19 ) / 77, 93 + + 53 AS col2
----
0
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1944
SELECT DISTINCT - 95 * 5 + - + CASE + + CAST( ( + 42 ) AS SIGNED ) WHEN - + 61 - + + 79 - CASE + - COUNT( * ) WHEN - 88 THEN NULL WHEN 76 + 51 THEN + COALESCE ( 41, + 51 * + 71, AVG ( DISTINCT 96 ) ) WHEN 47 * + 49 THEN + 63 + + SUM( DISTINCT ( 18 ) ) * - 36 ELSE NULL END + ( CAST( 23 AS SIGNED ) + 27 ) * + 88 THEN NULL WHEN 53 DIV COUNT( * ) - - 94 THEN + 68 * - CASE AVG ( 58 ) DIV - 33 WHEN + 81 + + 81 THEN NULL WHEN + MAX( DISTINCT 39 ) * + COUNT( * ) THEN 41 - + 5 ELSE COUNT( * ) * - COUNT( * ) END - - 34 WHEN COUNT( * ) - - 73 THEN NULL ELSE 5 END + CASE - 31 WHEN 70 THEN NULL WHEN 66 * 65 + + 62 THEN 74 * SUM( DISTINCT + 76 ) ELSE 73 END DIV + 48
----
-479

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT - 95 * 5 + - + CASE + + CAST ( ( + 42 ) AS INTEGER ) WHEN - + 61 - + + 79 - CASE + - COUNT ( * ) WHEN - 88 THEN NULL WHEN 76 + 51 THEN + COALESCE ( 41, + 51 * + 71, AVG ( DISTINCT 96 ) ) WHEN 47 * + 49 THEN + 63 + + SUM ( DISTINCT ( 18 ) ) * - 36 ELSE NULL END + ( CAST ( 23 AS INTEGER ) + 27 ) * + 88 THEN NULL WHEN 53 / COUNT ( * ) - - 94 THEN + 68 * - CASE AVG ( 58 ) / - 33 WHEN + 81 + + 81 THEN NULL WHEN + MAX ( DISTINCT 39 ) * + COUNT ( * ) THEN 41 - + 5 ELSE COUNT ( * ) * - COUNT ( * ) END - - 34 WHEN COUNT ( * ) - - 73 THEN NULL ELSE 5 END + CASE - 31 WHEN 70 THEN NULL WHEN 66 * 65 + + 62 THEN 74 * SUM ( DISTINCT + 76 ) ELSE 73 END / + 48
----
-479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1945
SELECT NULLIF ( CASE 26 WHEN - + MIN( 92 ) + CAST( 64 AS SIGNED ) THEN - 34 * 25 * 76 + - 87 * + 25 WHEN + CASE 35 WHEN 21 THEN COUNT( * ) WHEN - 71 * - MAX( DISTINCT 36 ) THEN + 7 * + 57 ELSE NULL END * 27 THEN 0 END, - 11 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1945
SELECT NULLIF ( CASE 26 WHEN - + MIN ( 92 ) + CAST ( 64 AS INTEGER ) THEN - 34 * 25 * 76 + - 87 * + 25 WHEN + CASE 35 WHEN 21 THEN COUNT ( * ) WHEN - 71 * - MAX ( DISTINCT 36 ) THEN + 7 * + 57 ELSE NULL END * 27 THEN 0 END, - 11 ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1946
SELECT - 46 + ( - ( - 54 ) ) + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1947
SELECT DISTINCT - 4 * + - 49 * + 22 * + 91 + - 41 AS col2, MIN( ALL + 53 ) DIV - 26 + 48 + - - MAX( ALL + ( 62 ) ) + - 36
----
392351
72

skipif mysql # not compatible
query II rowsort label-1947
SELECT DISTINCT - 4 * + - 49 * + 22 * + 91 + - 41 AS col2, MIN ( ALL + 53 ) / - 26 + 48 + - - MAX ( ALL + ( 62 ) ) + - 36
----
392351
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT ALL CASE + 48 WHEN 47 * 30 * - + 30 + - 18 THEN + - 75 WHEN 0 THEN NULL WHEN + COUNT( * ) THEN + COUNT( * ) * - 47 ELSE NULL END * ( 51 ) + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL CASE + 48 WHEN 47 * 30 * - + 30 + - 18 THEN + - 75 WHEN 0 THEN NULL WHEN + COUNT ( * ) THEN + COUNT ( * ) * - 47 ELSE NULL END * ( 51 ) + 67
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1949
SELECT - - 57 AS col2, ( 69 ) - - 0 * - NULLIF ( - NULLIF ( + + 71, + 75 / COALESCE ( + + 32, + 7 ) + 34 ), - 53 ) + + NULLIF ( 1, + COUNT( * ) + 53 )
----
57
70

skipif mysql # not compatible
query II rowsort label-1949
SELECT - - 57 AS col2, ( 69 ) - - 0 * - NULLIF ( - NULLIF ( + + 71, + 75 / COALESCE ( + + 32, + 7 ) + 34 ), - 53 ) + + NULLIF ( 1, + COUNT ( * ) + 53 )
----
57
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1950
SELECT + + 35 + - 17 DIV - + 58 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-1950
SELECT + + 35 + - 17 / - + 58 AS col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-1951
SELECT + - 60 + + 80 DIV + 80
----
-59

skipif mysql # not compatible
query I rowsort label-1951
SELECT + - 60 + + 80 / + 80
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-1952
SELECT ALL + 55 * - 91 DIV 90 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL + 55 * - 91 / 90 AS col1
----
-55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT + COALESCE ( - 19, - - 58 * + ( 51 ) + + + COUNT( * ) * 2 ) + + 50
----
31

skipif mysql # not compatible
query I rowsort label-1954
SELECT + COALESCE ( - 19, - - 58 * + ( 51 ) + + + COUNT ( * ) * 2 ) + + 50
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT DISTINCT 13 - + COUNT( * ) * + 88 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT 13 - + COUNT ( * ) * + 88 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT ALL - 5 * AVG ( DISTINCT ( 56 ) ) * CASE + 4 WHEN COUNT( * ) THEN + 42 WHEN + 59 * + 78 THEN - 85 ELSE NULL END * + 27 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL - 5 * AVG ( DISTINCT ( 56 ) ) * CASE + 4 WHEN COUNT ( * ) THEN + 42 WHEN + 59 * + 78 THEN - 85 ELSE NULL END * + 27 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1957
SELECT + 57 + COUNT( * ) DIV 90 + 68
----
125

skipif mysql # not compatible
query I rowsort label-1957
SELECT + 57 + COUNT ( * ) / 90 + 68
----
125

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1959
SELECT 2 DIV - - 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1959
SELECT 2 / - - 46 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT 38 * + COUNT( * ) * COUNT( * ) * 10 + 73 * + COUNT( * ) AS col1
----
453

skipif mysql # not compatible
query I rowsort label-1960
SELECT 38 * + COUNT ( * ) * COUNT ( * ) * 10 + 73 * + COUNT ( * ) AS col1
----
453

query I rowsort
SELECT 44 - + 73 AS col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1962
SELECT ALL 96 DIV + + ( - 95 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL 96 / + + ( - 95 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1963
SELECT ALL - 83 AS col0, + CASE 20 WHEN - COUNT( * ) THEN 58 * + COUNT( * ) WHEN - 23 THEN + - 55 * + 85 * 65 END / + 75 * 94 + 8 * - 4 AS col0
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-1963
SELECT ALL - 83 AS col0, + CASE 20 WHEN - COUNT ( * ) THEN 58 * + COUNT ( * ) WHEN - 23 THEN + - 55 * + 85 * 65 END / + 75 * 94 + 8 * - 4 AS col0
----
-83
NULL

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

skipif mysql # not compatible
query I rowsort label-1964
SELECT + 72 * 58 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1965
SELECT ALL 42 DIV + 24
----
1

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL 42 / + 24
----
1

query I rowsort
SELECT ALL - COALESCE ( 33, - + 3 * - 28 ) * 5
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-1967
SELECT ALL 60 DIV - - 33
----
1

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL 60 / - - 33
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1968
SELECT ALL + 75 + - + 14 * + NULLIF ( + 95, 42 ) + - CASE CAST( + 28 AS SIGNED ) WHEN - 50 THEN - NULLIF ( CASE + 20 WHEN 33 THEN NULL ELSE + 49 END, + COUNT( * ) ) ELSE NULL END / 4
----
NULL

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL + 75 + - + 14 * + NULLIF ( + 95, 42 ) + - CASE CAST ( + 28 AS INTEGER ) WHEN - 50 THEN - NULLIF ( CASE + 20 WHEN 33 THEN NULL ELSE + 49 END, + COUNT ( * ) ) ELSE NULL END / 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT - 9 * + + COALESCE ( - - NULLIF ( + + 3, + 1 * + - 45 + + 59 + + 82 * + + COUNT( * ) + - - ( 68 ) ), + 23 * 56 - 98 ) + 6 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-1969
SELECT - 9 * + + COALESCE ( - - NULLIF ( + + 3, + 1 * + - 45 + + 59 + + 82 * + + COUNT ( * ) + - - ( 68 ) ), + 23 * 56 - 98 ) + 6 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL + 66 * + COALESCE ( 66, + NULLIF ( + + COUNT( * ), 67 ) + + - ( + COUNT( * ) ) )
----
4356

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL + 66 * + COALESCE ( 66, + NULLIF ( + + COUNT ( * ), 67 ) + + - ( + COUNT ( * ) ) )
----
4356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1971
SELECT ( - 25 ) * + + CAST( - 38 AS SIGNED ) + - COALESCE ( + 18, - CAST( NULL AS SIGNED ) ) * - 97 + + ( - - 64 ) AS col1
----
2760

skipif mysql # not compatible
query I rowsort label-1971
SELECT ( - 25 ) * + + CAST ( - 38 AS INTEGER ) + - COALESCE ( + 18, - CAST ( NULL AS INTEGER ) ) * - 97 + + ( - - 64 ) AS col1
----
2760

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

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL CAST ( + 7 AS INTEGER ) + - - 70
----
77

query II rowsort
SELECT 83 AS col1, 8 AS col0
----
83
8

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1974
SELECT + 40, 82 + - 11 - + CAST( NULL AS DECIMAL ) AS col0
----
40
NULL

skipif mysql # not compatible
query II rowsort label-1974
SELECT + 40, 82 + - 11 - + CAST ( NULL AS REAL ) AS col0
----
40
NULL

query II rowsort
SELECT ALL - 14 AS col1, 44
----
-14
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT + COUNT( ALL + 91 ) * + ( - + 91 ) + - - 2
----
-89

skipif mysql # not compatible
query I rowsort label-1976
SELECT + COUNT ( ALL + 91 ) * + ( - + 91 ) + - - 2
----
-89

query I rowsort
SELECT DISTINCT + 31 + + 62 col0
----
93

query II rowsort
SELECT - 2 * + COALESCE ( - 17, - ( - ( + 89 ) ) ) AS col2, 73
----
34
73

query I rowsort
SELECT ALL - 5 * - 29 AS col2
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT - COUNT( * ) + + MAX( DISTINCT + - 68 )
----
-69

skipif mysql # not compatible
query I rowsort label-1980
SELECT - COUNT ( * ) + + MAX ( DISTINCT + - 68 )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1981
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + 39 + 96 / - - 90 * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-1981
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + 39 + 96 / - - 90 * 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1982
SELECT ALL COALESCE ( + - NULLIF ( + 9, - 9 ), - - 27, - CAST( NULL AS SIGNED ) * + COUNT( * ) * - 42 * + 19 + + + 38 )
----
-9

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL COALESCE ( + - NULLIF ( + 9, - 9 ), - - 27, - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - 42 * + 19 + + + 38 )
----
-9

query I rowsort
SELECT - 69 * + 36 * - 32 col0
----
79488

query I rowsort
SELECT 69 * - 19 * + ( - 96 )
----
125856

query II rowsort
SELECT - - 2 AS col1, + 55
----
2
55

query I rowsort
SELECT - 61 + + + 45 + + - 34 + + - ( - 69 ) * + + 30
----
2020

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT SUM( + - 41 ) / + 12 + CASE + 36 WHEN - 41 THEN NULL WHEN 1 THEN + + 28 END / + - 32 * 46 + + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1987
SELECT SUM ( + - 41 ) / + 12 + CASE + 36 WHEN - 41 THEN NULL WHEN 1 THEN + + 28 END / + - 32 * 46 + + 82 AS col1
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT + ( + 52 ) / - CAST ( NULL AS REAL )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1991
SELECT 41 / - COUNT ( * ) AS col2
----
-41

query II rowsort
SELECT ALL 82 AS col2, 12
----
82
12

onlyif mysql # DIV for integer division: 
query I rowsort label-1993
SELECT ALL 71 DIV + ( + 44 )
----
1

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL 71 / + ( + 44 )
----
1

query II rowsort
SELECT 44, - 86 AS col0
----
44
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-1995
SELECT - MIN( DISTINCT - - 31 ) * - - 34 * - 64 AS col0, 12 * + - COUNT( * ) * 62 AS col0
----
67456
-744

skipif mysql # not compatible
query II rowsort label-1995
SELECT - MIN ( DISTINCT - - 31 ) * - - 34 * - 64 AS col0, 12 * + - COUNT ( * ) * 62 AS col0
----
67456
-744

query II rowsort
SELECT ALL 66 AS col1, - 75
----
66
-75

query II rowsort
SELECT - + 64 col1, 47 AS col1
----
-64
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1998
SELECT COUNT( * ) + + + COALESCE ( 40, + 30 * - 42 DIV + 58 DIV + 14 + - COALESCE ( - 78, - 22 ) + + 37, - + 31 ) * 24 AS col0
----
961

skipif mysql # not compatible
query I rowsort label-1998
SELECT COUNT ( * ) + + + COALESCE ( 40, + 30 * - 42 / + 58 / + 14 + - COALESCE ( - 78, - 22 ) + + 37, - + 31 ) * 24 AS col0
----
961

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1999
SELECT 18 * - + 31, - ( - CAST( NULL AS DECIMAL ) ) * + CASE + + COALESCE ( 13, + 13 * AVG ( + 75 ) + + - 54 ) WHEN - + 7 THEN 58 END - + NULLIF ( - ( - 96 ), - 80 ) AS col0
----
-558
NULL

skipif mysql # not compatible
query II rowsort label-1999
SELECT 18 * - + 31, - ( - CAST ( NULL AS REAL ) ) * + CASE + + COALESCE ( 13, + 13 * AVG ( + 75 ) + + - 54 ) WHEN - + 7 THEN 58 END - + NULLIF ( - ( - 96 ), - 80 ) AS col0
----
-558
NULL

query I rowsort
SELECT DISTINCT 90 + CASE + 41 WHEN 26 * + 54 + - NULLIF ( ( - 13 ), + 7 ) + 79 * - 64 + + - ( + 73 ) THEN 9 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT DISTINCT 7 * + MIN( - 62 ) * + 17
----
-7378

skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT 7 * + MIN ( - 62 ) * + 17
----
-7378

query II rowsort
SELECT ALL - 79 + 55 AS col2, - 92 col1
----
-24
-92

query I rowsort
SELECT ALL 1 + - 8
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2004
SELECT SUM( ALL - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT SUM ( ALL - CAST ( NULL AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT ALL ( 36 ) + + 15 AS col1
----
51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2006
SELECT ALL 89 + + 62, CASE 51 WHEN 55 THEN NULL ELSE 79 DIV 73 + CAST( - + 36 AS SIGNED ) END + + 46 + - 0 AS col2
----
151
11

skipif mysql # not compatible
query II rowsort label-2006
SELECT ALL 89 + + 62, CASE 51 WHEN 55 THEN NULL ELSE 79 / 73 + CAST ( - + 36 AS INTEGER ) END + + 46 + - 0 AS col2
----
151
11

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2008
SELECT COALESCE ( + COUNT( * ), - CASE + - 90 WHEN CAST( NULL AS SIGNED ) * - 12 THEN - - 25 END + + COUNT( ALL - + 11 ) ) + + - 77 - + 46 * 4 col2
----
-260

skipif mysql # not compatible
query I rowsort label-2008
SELECT COALESCE ( + COUNT ( * ), - CASE + - 90 WHEN CAST ( NULL AS INTEGER ) * - 12 THEN - - 25 END + + COUNT ( ALL - + 11 ) ) + + - 77 - + 46 * 4 col2
----
-260

onlyif mysql # DIV for integer division: 
query I rowsort label-2009
SELECT ALL 41 DIV 50 * + + 93
----
0

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL 41 / 50 * + + 93
----
0

query I rowsort
SELECT 88 * - 65 AS col2
----
-5720

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT + SUM( - CASE + + 87 WHEN 99 * 78 + - 20 THEN - + 9 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2013
SELECT + SUM ( - CASE + + 87 WHEN 99 * 78 + - 20 THEN - + 9 ELSE NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2014
SELECT ALL 5 DIV - 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL 5 / - 66 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2015
SELECT + 35 DIV - 74 - 81
----
-81

skipif mysql # not compatible
query I rowsort label-2015
SELECT + 35 / - 74 - 81
----
-81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2017
SELECT + 29 * - 1 + - + SUM( - - ( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2018
SELECT ALL + MAX( - - 67 ) - 45 + - + 31 + 2 DIV + + 34
----
-9

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL + MAX ( - - 67 ) - 45 + - + 31 + 2 / + + 34
----
-9

query I rowsort
SELECT + + 66 * - ( - + 43 ) + + 24
----
2862

query I rowsort
SELECT + 66 + - 54
----
12

query I rowsort
SELECT + 50 - - 22 AS col2
----
72

query I rowsort
SELECT DISTINCT - 71 * + 65
----
-4615

onlyif mysql # DIV for integer division: 
query II rowsort label-2023
SELECT 63 * 44 DIV + 42 AS col1, - 58 AS col0
----
66
-58

skipif mysql # not compatible
query II rowsort label-2023
SELECT 63 * 44 / + 42 AS col1, - 58 AS col0
----
66
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT - CASE + CASE - + 43 WHEN - + 49 * - 4 * + 46 - 70 THEN - + CASE + 80 WHEN - - COUNT( - - 19 ) * 55 + 29 THEN NULL WHEN + 47 THEN COUNT( * ) + + 80 WHEN 11 THEN NULL WHEN - 8 THEN NULL END ELSE NULL END WHEN 19 + - 62 THEN + NULLIF ( COUNT( * ), 65 + + ( - COUNT( * ) + + 36 ) ) + 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT - CASE + CASE - + 43 WHEN - + 49 * - 4 * + 46 - 70 THEN - + CASE + 80 WHEN - - COUNT ( - - 19 ) * 55 + 29 THEN NULL WHEN + 47 THEN COUNT ( * ) + + 80 WHEN 11 THEN NULL WHEN - 8 THEN NULL END ELSE NULL END WHEN 19 + - 62 THEN + NULLIF ( COUNT ( * ), 65 + + ( - COUNT ( * ) + + 36 ) ) + 18 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT + - MAX( 94 ) * - 9
----
846

skipif mysql # not compatible
query I rowsort label-2025
SELECT + - MAX ( 94 ) * - 9
----
846

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT - - MAX( DISTINCT + ( + 71 ) ) * 39 + + 2 * - - 9
----
2787

skipif mysql # not compatible
query I rowsort label-2026
SELECT - - MAX ( DISTINCT + ( + 71 ) ) * 39 + + 2 * - - 9
----
2787

query I rowsort
SELECT + 78 + - - 7 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT - + COUNT( + 48 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2028
SELECT - + COUNT ( + 48 ) col1
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2030
SELECT - 92 + - CAST( NULL AS SIGNED ) AS col2, + 35 - - COUNT( * ) col0
----
NULL
36

skipif mysql # not compatible
query II rowsort label-2030
SELECT - 92 + - CAST ( NULL AS INTEGER ) AS col2, + 35 - - COUNT ( * ) col0
----
NULL
36

query I rowsort
SELECT ALL - 23 * - 62 * 48 AS col2
----
68448

query I rowsort
SELECT - 67 * - 77
----
5159

query I rowsort
SELECT - 55 + - 7 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-2034
SELECT DISTINCT NULLIF ( - 86, + COUNT( * ) ), - 10 * - 14 * COUNT( * ) + - 3 col1
----
-86
137

skipif mysql # not compatible
query II rowsort label-2034
SELECT DISTINCT NULLIF ( - 86, + COUNT ( * ) ), - 10 * - 14 * COUNT ( * ) + - 3 col1
----
-86
137

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT DISTINCT - ( 34 ) + - - 15 + + 73 * + 62 * + + COUNT( DISTINCT + 8 )
----
4507

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT - ( 34 ) + - - 15 + + 73 * + 62 * + + COUNT ( DISTINCT + 8 )
----
4507

onlyif mysql # DIV for integer division: 
query I rowsort label-2036
SELECT DISTINCT 42 DIV + 60 * - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT 42 / + 60 * - 65 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2037
SELECT ALL 1 + - 32 - - COUNT( * ) * - CAST( + 49 AS SIGNED ) * + 50 + - - 99 - + - ( + 56 ) * CASE 56 WHEN + 34 * + 17 + 84 + 63 / - 24 THEN 52 WHEN - CAST( NULL AS DECIMAL ) THEN ( COUNT( * ) ) / + COALESCE ( COUNT( * ), + 82 ) - MIN( + ( 86 ) ) * 60 ELSE NULL END + COALESCE ( - 97, + 36 * 24 + 99 ) * + 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL 1 + - 32 - - COUNT ( * ) * - CAST ( + 49 AS INTEGER ) * + 50 + - - 99 - + - ( + 56 ) * CASE 56 WHEN + 34 * + 17 + 84 + 63 / - 24 THEN 52 WHEN - CAST ( NULL AS REAL ) THEN ( COUNT ( * ) ) / + COALESCE ( COUNT ( * ), + 82 ) - MIN ( + ( 86 ) ) * 60 ELSE NULL END + COALESCE ( - 97, + 36 * 24 + 99 ) * + 12 AS col0
----
NULL

query I rowsort
SELECT - 7 + - 12
----
-19

query I rowsort
SELECT ALL - 75 + - + 81 AS col2
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-2040
SELECT - 70, - MAX( ALL - 38 ) + 77 AS col0
----
-70
115

skipif mysql # not compatible
query II rowsort label-2040
SELECT - 70, - MAX ( ALL - 38 ) + 77 AS col0
----
-70
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT DISTINCT - 57 + - 28 + 26 * - 52 * - 43 * + COUNT( * ) * + + 65
----
3778755

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT - 57 + - 28 + 26 * - 52 * - 43 * + COUNT ( * ) * + + 65
----
3778755

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT DISTINCT CASE - + 2 WHEN - SUM( ALL + 47 ) / 90 / + + 33 THEN 41 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT CASE - + 2 WHEN - SUM ( ALL + 47 ) / 90 / + + 33 THEN 41 END col0
----
NULL

query I rowsort
SELECT - 71 * 98 AS col0
----
-6958

query I rowsort
SELECT + 77 + + - 71 AS col1
----
6

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

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

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

query I rowsort
SELECT ALL NULLIF ( - + 11, + 78 ) * + + 28 + - 14
----
-322

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

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

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

skipif mysql # not compatible
query I rowsort label-2049
SELECT + SUM ( + - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT DISTINCT 6 * 66 - - 5 + + ( SUM( + 19 ) ) - ( - 58 ) * - 93 AS col1
----
-4974

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT 6 * 66 - - 5 + + ( SUM ( + 19 ) ) - ( - 58 ) * - 93 AS col1
----
-4974

query I rowsort
SELECT ALL 81 * + 62 * + - 75 - - 42 AS col0
----
-376608

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

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

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

query I rowsort
SELECT ALL + + ( - 63 ) col0
----
-63

query II rowsort
SELECT + 20 + + 79 + 65 AS col0, 33 * + 22 AS col0
----
164
726

query I rowsort
SELECT + 60 * 80
----
4800

onlyif mysql # aggregate syntax: 
query II rowsort label-2057
SELECT - 49 AS col2, CASE - 55 WHEN - + 28 THEN NULL WHEN - + COUNT( * ) THEN NULL WHEN - - 78 + + 8 THEN NULL ELSE + 97 END AS col0
----
-49
97

skipif mysql # not compatible
query II rowsort label-2057
SELECT - 49 AS col2, CASE - 55 WHEN - + 28 THEN NULL WHEN - + COUNT ( * ) THEN NULL WHEN - - 78 + + 8 THEN NULL ELSE + 97 END AS col0
----
-49
97

query II rowsort
SELECT ALL + 42, - ( + + CASE + + 66 WHEN - - 16 THEN - 45 ELSE - - 52 END ) + 50 AS col2
----
42
-2

query I rowsort
SELECT ALL + ( - 94 ) col2
----
-94

query I rowsort
SELECT ALL 17 * + + 86 * + 93 * - ( 69 ) * - NULLIF ( + 35, AVG ( - 94 ) ) AS col1
----
328357890

onlyif mysql # DIV for integer division: 
query I rowsort label-2061
SELECT + - 73 DIV - - 9
----
-8

skipif mysql # not compatible
query I rowsort label-2061
SELECT + - 73 / - - 9
----
-8

query I rowsort
SELECT ALL + 62 * - CASE 19 WHEN - - 71 THEN + + 60 ELSE + 12 END - + 51 * - + 34 + 96
----
1086

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT + - 82 + - 91 - ( - + COUNT( * ) )
----
-172

skipif mysql # not compatible
query I rowsort label-2063
SELECT + - 82 + - 91 - ( - + COUNT ( * ) )
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT ALL - ( + 71 ) * - - COUNT( * ) + - - 40
----
-31

skipif mysql # not compatible
query I rowsort label-2064
SELECT ALL - ( + 71 ) * - - COUNT ( * ) + - - 40
----
-31

query I rowsort
SELECT ALL + 68 * - + 59 * 84 * + - 89 + + 76 col1
----
29993788

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2066
SELECT + MAX( ALL - 8 ) * + CAST( NULL AS DECIMAL ) + + CASE - COUNT( * ) WHEN - COUNT( * ) THEN - 10 + - 13 + - 72 + + + 3 ELSE - 83 * + + COUNT( * ) - - 85 / + COUNT( ALL - 70 - - NULLIF ( 27, + 94 ) * ( + 25 - - 93 * + 62 ) ) + 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT + MAX ( ALL - 8 ) * + CAST ( NULL AS REAL ) + + CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN - 10 + - 13 + - 72 + + + 3 ELSE - 83 * + + COUNT ( * ) - - 85 / + COUNT ( ALL - 70 - - NULLIF ( 27, + 94 ) * ( + 25 - - 93 * + 62 ) ) + 81 END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2068
SELECT - + COUNT( * ) AS col0, COUNT( * ) * + COALESCE ( + CAST( NULL AS SIGNED ), 93, 88 ) + - 40 AS col0
----
-1
53

skipif mysql # not compatible
query II rowsort label-2068
SELECT - + COUNT ( * ) AS col0, COUNT ( * ) * + COALESCE ( + CAST ( NULL AS INTEGER ), 93, 88 ) + - 40 AS col0
----
-1
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT DISTINCT + 35 + + CASE - - 3 WHEN - 87 THEN + - ( 91 ) * + - MAX( ALL + 99 ) + 94 - - - 99 END / 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT + 35 + + CASE - - 3 WHEN - 87 THEN + - ( 91 ) * + - MAX ( ALL + 99 ) + 94 - - - 99 END / 87 AS col0
----
NULL

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

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

query II rowsort
SELECT ALL + 66 + - 22 * - - 97, ( + + 47 ) AS col2
----
-2068
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2072
SELECT DISTINCT 37 + - ( + - NULLIF ( + 34, - SUM( DISTINCT - 84 ) * - 62 ) ), 4 * + 6 DIV + 87 + + 22 AS col0
----
71
22

skipif mysql # not compatible
query II rowsort label-2072
SELECT DISTINCT 37 + - ( + - NULLIF ( + 34, - SUM ( DISTINCT - 84 ) * - 62 ) ), 4 * + 6 / + 87 + + 22 AS col0
----
71
22

query I rowsort
SELECT DISTINCT - 61 + + - 62 * 61 AS col1
----
-3843

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT ALL COALESCE ( + COUNT( * ), + + 84 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL COALESCE ( + COUNT ( * ), + + 84 ) AS col0
----
1

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

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

query I rowsort
SELECT + 54 * + - 91 * 33
----
-162162

query I rowsort
SELECT ALL + 16 * 77
----
1232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2078
SELECT + COUNT( - - 71 ) DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-2078
SELECT + COUNT ( - - 71 ) / 75
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2079
SELECT DISTINCT ( - + 79 ), CAST( + - 7 AS SIGNED ) AS col1
----
-79
-7

skipif mysql # not compatible
query II rowsort label-2079
SELECT DISTINCT ( - + 79 ), CAST ( + - 7 AS INTEGER ) AS col1
----
-79
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2080
SELECT ALL CAST( 25 AS SIGNED ), 34 * - MIN( DISTINCT + 63 ) * - 61 + - + 92 AS col2
----
25
130570

skipif mysql # not compatible
query II rowsort label-2080
SELECT ALL CAST ( 25 AS INTEGER ), 34 * - MIN ( DISTINCT + 63 ) * - 61 + - + 92 AS col2
----
25
130570

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT - ( - 76 ) - - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-2081
SELECT - ( - 76 ) - - COUNT ( * )
----
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT DISTINCT + COALESCE ( + COUNT( DISTINCT - ( + 94 ) ), - 10 * + - MAX( 64 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT + COALESCE ( + COUNT ( DISTINCT - ( + 94 ) ), - 10 * + - MAX ( 64 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2084
SELECT ALL 9 DIV 37 - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL 9 / 37 - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2085
SELECT - NULLIF ( COUNT( * ), + 86 + 2 ) DIV + COALESCE ( + 59, + - 55, - - 16 - + - 83 ) + + 12 AS col1, 63
----
12
63

skipif mysql # not compatible
query II rowsort label-2085
SELECT - NULLIF ( COUNT ( * ), + 86 + 2 ) / + COALESCE ( + 59, + - 55, - - 16 - + - 83 ) + + 12 AS col1, 63
----
12
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2086
SELECT + 87 * COUNT( + 74 ) DIV 7
----
12

skipif mysql # not compatible
query I rowsort label-2086
SELECT + 87 * COUNT ( + 74 ) / 7
----
12

query I rowsort
SELECT ALL + COALESCE ( ( 33 ), + 17 )
----
33

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2089
SELECT COUNT( * ) + + 73, - NULLIF ( - - 72, - 89 + - + COUNT( - + 41 ) * - 90 + - - 69 * - 9 ) * - 51 - 64 + + 92 col0
----
74
3700

skipif mysql # not compatible
query II rowsort label-2089
SELECT COUNT ( * ) + + 73, - NULLIF ( - - 72, - 89 + - + COUNT ( - + 41 ) * - 90 + - - 69 * - 9 ) * - 51 - 64 + + 92 col0
----
74
3700

onlyif mysql # aggregate syntax: 
query II rowsort label-2090
SELECT ALL + + 49 * - 12, ( NULLIF ( + - 28, - 51 ) ) + - 75 * + + COUNT( * ) AS col2
----
-588
-103

skipif mysql # not compatible
query II rowsort label-2090
SELECT ALL + + 49 * - 12, ( NULLIF ( + - 28, - 51 ) ) + - 75 * + + COUNT ( * ) AS col2
----
-588
-103

query I rowsort
SELECT 77 * - - 44 AS col0
----
3388

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

query I rowsort
SELECT ALL + 56 + - 47 - - 87 AS col2
----
96

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2095
SELECT MIN( + - CAST( NULL AS SIGNED ) ) AS col2, 72
----
NULL
72

skipif mysql # not compatible
query II rowsort label-2095
SELECT MIN ( + - CAST ( NULL AS INTEGER ) ) AS col2, 72
----
NULL
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT + - NULLIF ( + MAX( ALL + 89 ), + - 94 )
----
-89

skipif mysql # not compatible
query I rowsort label-2096
SELECT + - NULLIF ( + MAX ( ALL + 89 ), + - 94 )
----
-89

query I rowsort
SELECT DISTINCT + 64 + - - 1 AS col0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2098
SELECT ALL + 6 DIV + + 98, COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-2098
SELECT ALL + 6 / + + 98, COUNT ( * ) AS col0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT ALL ( COUNT( * ) ) + + - 85
----
-84

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL ( COUNT ( * ) ) + + - 85
----
-84

query I rowsort
SELECT 26 * + 8 * - 26 AS col0
----
-5408

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT DISTINCT COUNT( * ) + + - CASE + + 21 WHEN - + 10 * - ( + 49 ) - - 13 + - + 89 + + 79 THEN NULL WHEN 17 THEN 63 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT COUNT ( * ) + + - CASE + + 21 WHEN - + 10 * - ( + 49 ) - - 13 + - + 89 + + 79 THEN NULL WHEN 17 THEN 63 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 31 * 19 AS col0
----
589

query I rowsort
SELECT ALL ( + 56 ) * 58 - 36 + - + ( - - 68 ) * + 25
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT COUNT( * ) + - 81 col1
----
-80

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2105
SELECT 79 - + + 65 + - 64 + - COUNT( * ) + - 82 * + - 34 + 60 + - CAST( NULL AS DECIMAL ) AS col0, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2105
SELECT 79 - + + 65 + - 64 + - COUNT ( * ) + - 82 * + - 34 + 60 + - CAST ( NULL AS REAL ) AS col0, COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2106
SELECT ALL 24 AS col2, 98 + - - 59 DIV + 35 AS col0
----
24
99

skipif mysql # not compatible
query II rowsort label-2106
SELECT ALL 24 AS col2, 98 + - - 59 / + 35 AS col0
----
24
99

query I rowsort
SELECT DISTINCT 89 - - + 42 + + 81 AS col2
----
212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2108
SELECT CAST( 61 AS SIGNED ) * 71 AS col0, - COALESCE ( 12, - COUNT( * ), - 85 ) DIV 13 * 43 + 5 + + 51 * COUNT( DISTINCT + + CASE - ( 84 ) WHEN + ( - 10 ) + 78 * + 99 THEN 91 END )
----
4331
5

skipif mysql # not compatible
query II rowsort label-2108
SELECT CAST ( 61 AS INTEGER ) * 71 AS col0, - COALESCE ( 12, - COUNT ( * ), - 85 ) / 13 * 43 + 5 + + 51 * COUNT ( DISTINCT + + CASE - ( 84 ) WHEN + ( - 10 ) + 78 * + 99 THEN 91 END )
----
4331
5

query I rowsort
SELECT ALL + 85 * + 82 col0
----
6970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2110
SELECT CAST( 44 AS SIGNED ) + - 75
----
-31

skipif mysql # not compatible
query I rowsort label-2110
SELECT CAST ( 44 AS INTEGER ) + - 75
----
-31

query I rowsort
SELECT ALL 24 - - 83
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-2112
SELECT DISTINCT 59 DIV - 9
----
-6

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT 59 / - 9
----
-6

query I rowsort
SELECT ( + + 89 ) * + - 6 AS col0
----
-534

query I rowsort
SELECT 97 + 44 col0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT ALL COUNT( - 92 ) * - 54 / + CASE 10 WHEN - COUNT( * ) * + 7 THEN + 64 WHEN - - 11 THEN NULL ELSE NULL END + ( - + 18 ) + - COUNT( * ) * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL COUNT ( - 92 ) * - 54 / + CASE 10 WHEN - COUNT ( * ) * + 7 THEN + 64 WHEN - - 11 THEN NULL ELSE NULL END + ( - + 18 ) + - COUNT ( * ) * + 20
----
NULL

query I rowsort
SELECT DISTINCT + 68 * - 93 AS col0
----
-6324

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT MAX( + 16 ) * + 33 AS col0
----
528

skipif mysql # not compatible
query I rowsort label-2117
SELECT MAX ( + 16 ) * + 33 AS col0
----
528

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

query I rowsort
SELECT 23 / - CASE - + ( 50 ) WHEN 91 THEN + 90 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT - NULLIF ( + - COUNT( * ), 76 - + - 27 )
----
1

skipif mysql # not compatible
query I rowsort label-2120
SELECT - NULLIF ( + - COUNT ( * ), 76 - + - 27 )
----
1

query I rowsort
SELECT DISTINCT - 84 * + + 37
----
-3108

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT DISTINCT - - MAX( DISTINCT + 29 ) col1
----
29

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT - - MAX ( DISTINCT + 29 ) col1
----
29

query I rowsort
SELECT ALL - + ( + 54 ) + + 40 AS col0
----
-14

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2125
SELECT DISTINCT - - 59 DIV COUNT( * ) + - - SUM( 37 ) - - 88, + 31 + NULLIF ( - COUNT( * ), - SUM( - 67 ) ) AS col2
----
184
30

skipif mysql # not compatible
query II rowsort label-2125
SELECT DISTINCT - - 59 / COUNT ( * ) + - - SUM ( 37 ) - - 88, + 31 + NULLIF ( - COUNT ( * ), - SUM ( - 67 ) ) AS col2
----
184
30

onlyif mysql # aggregate syntax: 
query II rowsort label-2126
SELECT DISTINCT + - SUM( + - 41 ) + - 57 + 82 + - 64 AS col0, 57 + + 82 AS col1
----
2
139

skipif mysql # not compatible
query II rowsort label-2126
SELECT DISTINCT + - SUM ( + - 41 ) + - 57 + 82 + - 64 AS col0, 57 + + 82 AS col1
----
2
139

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

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL - COUNT ( * ) + + 88 AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2128
SELECT ALL + + 47 + + + COUNT( * ) + - CAST( 22 AS SIGNED ) col1
----
26

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL + + 47 + + + COUNT ( * ) + - CAST ( 22 AS INTEGER ) col1
----
26

query II rowsort
SELECT DISTINCT - - ( 59 ) + + 24 - 63 * 99 * 62 AS col1, - 12
----
-386611
-12

query I rowsort
SELECT DISTINCT + + 71 * + 52 + + ( + - 63 ) * - 42
----
6338

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT DISTINCT - + 92 + + 6 * + - ( - + COUNT( * ) ) + - 84 AS col0
----
-170

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT - + 92 + + 6 * + - ( - + COUNT ( * ) ) + - 84 AS col0
----
-170

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT - MAX( + 71 ) + + 68 * + 94 + 46 * 73
----
9679

skipif mysql # not compatible
query I rowsort label-2134
SELECT - MAX ( + 71 ) + + 68 * + 94 + 46 * 73
----
9679

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

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

query I rowsort
SELECT DISTINCT + + 80 * - + 34
----
-2720

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT - 12 * 73 + + - MIN( + + 65 )
----
-941

skipif mysql # not compatible
query I rowsort label-2137
SELECT - 12 * 73 + + - MIN ( + + 65 )
----
-941

onlyif mysql # aggregate syntax: 
query II rowsort label-2138
SELECT - 2 AS col1, MAX( + + 41 ) + + 35 * - 68
----
-2
-2339

skipif mysql # not compatible
query II rowsort label-2138
SELECT - 2 AS col1, MAX ( + + 41 ) + + 35 * - 68
----
-2
-2339

onlyif mysql # DIV for integer division: 
query I rowsort label-2139
SELECT 34 DIV + + ( - + 66 ) * + 81 + 10
----
10

skipif mysql # not compatible
query I rowsort label-2139
SELECT 34 / + + ( - + 66 ) * + 81 + 10
----
10

query II rowsort
SELECT 32 AS col0, 7 * 69 col1
----
32
483

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2141
SELECT 68 AS col2, COUNT( * ) DIV COUNT( * ) AS col0
----
68
1

skipif mysql # not compatible
query II rowsort label-2141
SELECT 68 AS col2, COUNT ( * ) / COUNT ( * ) AS col0
----
68
1

query II rowsort
SELECT DISTINCT 9, 32 * + 98 AS col1
----
9
3136

query I rowsort
SELECT 46 + - 51 col2
----
-5

query I rowsort
SELECT 82 * 79 col2
----
6478

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

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

query II rowsort
SELECT - 12 AS col2, ( + 9 ) AS col1
----
-12
9

query I rowsort
SELECT DISTINCT 77 * + 43 col2
----
3311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2148
SELECT DISTINCT COUNT( 92 ) * + MAX( DISTINCT - 38 ) * - 37 * + CAST( NULL AS SIGNED ) AS col1, - ( + NULLIF ( - 26, - 23 ) ) DIV + + 30 * + 78 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2148
SELECT DISTINCT COUNT ( 92 ) * + MAX ( DISTINCT - 38 ) * - 37 * + CAST ( NULL AS INTEGER ) AS col1, - ( + NULLIF ( - 26, - 23 ) ) / + + 30 * + 78 AS col0
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2149
SELECT 62 DIV - 50 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2149
SELECT 62 / - 50 AS col2
----
-1

query I rowsort
SELECT 97 * + - 91 * + 95 AS col0
----
-838565

query I rowsort
SELECT ALL 76 * + - 3 AS col1
----
-228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2152
SELECT 68 - - - CAST( NULL AS SIGNED ) + + + 62 + COALESCE ( - 98, 82, + - 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2152
SELECT 68 - - - CAST ( NULL AS INTEGER ) + + + 62 + COALESCE ( - 98, 82, + - 27 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2153
SELECT - COUNT( * ), ( - 90 ) * + CAST( NULL AS SIGNED ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2153
SELECT - COUNT ( * ), ( - 90 ) * + CAST ( NULL AS INTEGER ) AS col0
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2154
SELECT CAST( NULL AS SIGNED ) * - - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-2154
SELECT CAST ( NULL AS INTEGER ) * - - 43
----
NULL

query II rowsort
SELECT 62 AS col1, - 80
----
62
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2156
SELECT - COUNT( * ) AS col0, + 62 DIV - + 86 + + 64 - + 80 col2
----
-1
-16

skipif mysql # not compatible
query II rowsort label-2156
SELECT - COUNT ( * ) AS col0, + 62 / - + 86 + + 64 - + 80 col2
----
-1
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2157
SELECT ALL COUNT( * ) AS col1, COUNT( * ) / CASE + SUM( DISTINCT - ( + 31 ) ) WHEN + CASE + 22 WHEN COALESCE ( + - 0, + + 58 * - + CASE - 94 WHEN - 20 * - + ( 40 ) + + ( COUNT( * ) ) - 21 THEN COUNT( * ) WHEN CAST( 8 AS SIGNED ) * 83 + - ( 46 ) THEN + 4 / 68 WHEN + 87 THEN + 38 ELSE NULL END ) THEN 28 * 2 + 9 WHEN - 8 + 0 THEN + 6 + + 63 WHEN ( + 34 ) + CAST( 20 AS DECIMAL ) THEN NULL ELSE + 86 END THEN - COUNT( * ) END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2157
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) / CASE + SUM ( DISTINCT - ( + 31 ) ) WHEN + CASE + 22 WHEN COALESCE ( + - 0, + + 58 * - + CASE - 94 WHEN - 20 * - + ( 40 ) + + ( COUNT ( * ) ) - 21 THEN COUNT ( * ) WHEN CAST ( 8 AS INTEGER ) * 83 + - ( 46 ) THEN + 4 / 68 WHEN + 87 THEN + 38 ELSE NULL END ) THEN 28 * 2 + 9 WHEN - 8 + 0 THEN + 6 + + 63 WHEN ( + 34 ) + CAST ( 20 AS REAL ) THEN NULL ELSE + 86 END THEN - COUNT ( * ) END
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL + + 0 * 96 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + + 0 * 96 + COUNT ( * )
----
1

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2161
SELECT ALL + - CAST( COUNT( * ) AS SIGNED ) * 95 + 99 * + 63
----
6142

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL + - CAST ( COUNT ( * ) AS INTEGER ) * 95 + 99 * + 63
----
6142

query I rowsort
SELECT + + 25 + - + 26
----
-1

query I rowsort
SELECT + - 50 + - 99 + + 36
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2164
SELECT 45 / + 91 * + - 32 + 86 / + + 59 - CASE 64 WHEN - ( + + 10 ) / - 76 * + COUNT( * ) + MAX( DISTINCT 52 ) + + 60 + - 72 * 10 THEN + SUM( + 38 ) * + CAST( NULL AS SIGNED ) + 2 / + 47 ELSE NULL END - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2164
SELECT 45 / + 91 * + - 32 + 86 / + + 59 - CASE 64 WHEN - ( + + 10 ) / - 76 * + COUNT ( * ) + MAX ( DISTINCT 52 ) + + 60 + - 72 * 10 THEN + SUM ( + 38 ) * + CAST ( NULL AS INTEGER ) + 2 / + 47 ELSE NULL END - 72 AS col0
----
NULL

query I rowsort
SELECT ALL - ( 29 ) * + 73
----
-2117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2166
SELECT ALL - 48 * + NULLIF ( - 11, - + ( - 23 ) ) + - 65 + + COALESCE ( + + COALESCE ( COALESCE ( - NULLIF ( - 89, + - 71 ), - - 63 ), + MIN( 92 ) * - ( - COUNT( * ) ) * MAX( DISTINCT 59 * ( 2 ) - - 29 * ( NULLIF ( 34, + 22 ) ) ) + 82 ), - 47 * + COUNT( * ), + 19 + + 71 DIV - NULLIF ( 64 DIV - 11, 42 * - 9 ) ) + + 68 * + 19 AS col2
----
1844

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL - 48 * + NULLIF ( - 11, - + ( - 23 ) ) + - 65 + + COALESCE ( + + COALESCE ( COALESCE ( - NULLIF ( - 89, + - 71 ), - - 63 ), + MIN ( 92 ) * - ( - COUNT ( * ) ) * MAX ( DISTINCT 59 * ( 2 ) - - 29 * ( NULLIF ( 34, + 22 ) ) ) + 82 ), - 47 * + COUNT ( * ), + 19 + + 71 / - NULLIF ( 64 / - 11, 42 * - 9 ) ) + + 68 * + 19 AS col2
----
1844

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2167
SELECT DISTINCT + 58 AS col1, CAST( NULL AS SIGNED ) * + 28 + + 89 AS col1
----
58
NULL

skipif mysql # not compatible
query II rowsort label-2167
SELECT DISTINCT + 58 AS col1, CAST ( NULL AS INTEGER ) * + 28 + + 89 AS col1
----
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT ALL - 83 * + COUNT( * ) + - 65 + + SUM( + 18 )
----
-130

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL - 83 * + COUNT ( * ) + - 65 + + SUM ( + 18 )
----
-130

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT ALL COALESCE ( + 10, ( + 39 ) ) * - SUM( - 8 ) col1
----
80

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL COALESCE ( + 10, ( + 39 ) ) * - SUM ( - 8 ) col1
----
80

query I rowsort
SELECT ALL 19 * + - 73 + 92 + + - 50
----
-1345

onlyif mysql # aggregate syntax: 
query II rowsort label-2172
SELECT ALL + 66, - COUNT( ALL 70 ) * + 94 + - ( - NULLIF ( + 87, - - 78 + + 22 * - ( - - 10 ) + 21 + + 17 ) ) + + 53 AS col2
----
66
46

skipif mysql # not compatible
query II rowsort label-2172
SELECT ALL + 66, - COUNT ( ALL 70 ) * + 94 + - ( - NULLIF ( + 87, - - 78 + + 22 * - ( - - 10 ) + 21 + + 17 ) ) + + 53 AS col2
----
66
46

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

query I rowsort
SELECT + + 23 * 71 * - 97 col0
----
-158401

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT - + 18 * - - MIN( - 59 ) AS col1
----
1062

skipif mysql # not compatible
query I rowsort label-2175
SELECT - + 18 * - - MIN ( - 59 ) AS col1
----
1062

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT - COUNT( ALL - 3 ) * + + 5
----
-5

skipif mysql # not compatible
query I rowsort label-2176
SELECT - COUNT ( ALL - 3 ) * + + 5
----
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2177
SELECT - 31 + - NULLIF ( COUNT( * ), - 98 * + 28 + + + 65 - - CASE + 41 WHEN + - 84 THEN 5 / 27 * - 75 / + MIN( ALL - - CASE - 38 WHEN + - 40 - + 35 THEN NULL ELSE 67 END ) END + - 85 * - NULLIF ( 7 + 76, COUNT( ALL CAST( 21 AS DECIMAL ) ) - + 68 ) * 42 ) + - 1 col2
----
-33

skipif mysql # not compatible
query I rowsort label-2177
SELECT - 31 + - NULLIF ( COUNT ( * ), - 98 * + 28 + + + 65 - - CASE + 41 WHEN + - 84 THEN 5 / 27 * - 75 / + MIN ( ALL - - CASE - 38 WHEN + - 40 - + 35 THEN NULL ELSE 67 END ) END + - 85 * - NULLIF ( 7 + 76, COUNT ( ALL CAST ( 21 AS REAL ) ) - + 68 ) * 42 ) + - 1 col2
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-2178
SELECT + COUNT( - - 13 ), COUNT( * ) + + - 76 AS col0
----
1
-75

skipif mysql # not compatible
query II rowsort label-2178
SELECT + COUNT ( - - 13 ), COUNT ( * ) + + - 76 AS col0
----
1
-75

query I rowsort
SELECT ALL + NULLIF ( - + NULLIF ( 22, + 7 * + - 39 * ( - 12 ) ), + ( 81 ) ) AS col2
----
-22

query II rowsort
SELECT DISTINCT - 3 * - 97, + 48 AS col0
----
291
48

query I rowsort
SELECT ALL - 85 * + + 36
----
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT DISTINCT - 12 * - - 74 * MIN( - 69 )
----
61272

skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT - 12 * - - 74 * MIN ( - 69 )
----
61272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2183
SELECT ALL CASE CASE - 19 WHEN + 56 THEN NULL WHEN - 11 THEN + - COUNT( * ) / CAST( NULL AS DECIMAL ) END WHEN + 3 THEN - 94 * + + COALESCE ( + 29, 93 * + - 19, 11 * + CASE + + 48 WHEN + 31 THEN 26 END * 93 + - 8 / - CAST( NULL AS SIGNED ) ) * - 67 + - 79 WHEN + 9 THEN - 54 + 93 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL CASE CASE - 19 WHEN + 56 THEN NULL WHEN - 11 THEN + - COUNT ( * ) / CAST ( NULL AS REAL ) END WHEN + 3 THEN - 94 * + + COALESCE ( + 29, 93 * + - 19, 11 * + CASE + + 48 WHEN + 31 THEN 26 END * 93 + - 8 / - CAST ( NULL AS INTEGER ) ) * - 67 + - 79 WHEN + 9 THEN - 54 + 93 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT - 77 + + + COUNT( + - 82 )
----
-76

skipif mysql # not compatible
query I rowsort label-2184
SELECT - 77 + + + COUNT ( + - 82 )
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-2185
SELECT ALL - 86 * - - 42, - COUNT( * ) AS col0
----
-3612
-1

skipif mysql # not compatible
query II rowsort label-2185
SELECT ALL - 86 * - - 42, - COUNT ( * ) AS col0
----
-3612
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2186
SELECT DISTINCT ( - ( COUNT( * ) ) ), CASE 42 WHEN + 50 + - 95 / - 72 THEN + COUNT( * ) WHEN + 15 / - - 91 THEN - + 24 ELSE + + MIN( 39 ) END + + ( + - 21 ) + - COUNT( ALL + 2 ) * ( CAST( NULL AS SIGNED ) ) * 32 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2186
SELECT DISTINCT ( - ( COUNT ( * ) ) ), CASE 42 WHEN + 50 + - 95 / - 72 THEN + COUNT ( * ) WHEN + 15 / - - 91 THEN - + 24 ELSE + + MIN ( 39 ) END + + ( + - 21 ) + - COUNT ( ALL + 2 ) * ( CAST ( NULL AS INTEGER ) ) * 32 AS col1
----
-1
NULL

query I rowsort
SELECT - 59 + 17 - 4
----
-46

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

skipif mysql # not compatible
query I rowsort label-2188
SELECT - CAST ( NULL AS INTEGER ) + 91 col0
----
NULL

query I rowsort
SELECT ALL + 23 + + 52
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2190
SELECT ALL COUNT( * ) + - COALESCE ( - - ( - 37 ), - - 25 / - 54 ) + CAST( NULL AS SIGNED ) * 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL COUNT ( * ) + - COALESCE ( - - ( - 37 ), - - 25 / - 54 ) + CAST ( NULL AS INTEGER ) * 0 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2191
SELECT + - 15 + - CASE 66 WHEN - COUNT( * ) THEN 3 WHEN + - 20 THEN NULL ELSE + - 9 + 40 END * - CAST( + - 66 AS SIGNED ) AS col0, + 89 + CASE + 3 WHEN - 66 THEN - + COALESCE ( ( - + 64 ), + 44, COUNT( * ) ) END AS col1
----
-2061
NULL

skipif mysql # not compatible
query II rowsort label-2191
SELECT + - 15 + - CASE 66 WHEN - COUNT ( * ) THEN 3 WHEN + - 20 THEN NULL ELSE + - 9 + 40 END * - CAST ( + - 66 AS INTEGER ) AS col0, + 89 + CASE + 3 WHEN - 66 THEN - + COALESCE ( ( - + 64 ), + 44, COUNT ( * ) ) END AS col1
----
-2061
NULL

query I rowsort
SELECT + + COALESCE ( + 82, 64 * - 43 ) + + - 49 + + - 68
----
-35

query I rowsort
SELECT ALL + 34 + + 50 AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2194
SELECT - ( - + 8 ) * CAST( NULL AS SIGNED ) / - 20 * + + COUNT( DISTINCT - 76 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2194
SELECT - ( - + 8 ) * CAST ( NULL AS INTEGER ) / - 20 * + + COUNT ( DISTINCT - 76 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2195
SELECT + - SUM( ALL + 9 ) + + CAST( - - 6 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-2195
SELECT + - SUM ( ALL + 9 ) + + CAST ( - - 6 AS INTEGER )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2196
SELECT DISTINCT - 1 + + 67 / + - 67 * - CAST( NULL AS SIGNED ) * - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT - 1 + + 67 / + - 67 * - CAST ( NULL AS INTEGER ) * - 29 AS col2
----
NULL

query I rowsort
SELECT ALL 43 * 8
----
344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2198
SELECT DISTINCT + + 39 DIV + 80 + - 3 DIV + + COUNT( - 40 )
----
-3

skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT + + 39 / + 80 + - 3 / + + COUNT ( - 40 )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2199
SELECT ALL + 29 DIV - - 71 * - COUNT( * ) - + 24 * COUNT( * ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL + 29 / - - 71 * - COUNT ( * ) - + 24 * COUNT ( * ) AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2200
SELECT + + COUNT( * ) * + + CASE + + 10 WHEN - CAST( 27 AS SIGNED ) THEN 97 WHEN 86 THEN + - 22 + - - 27 - + NULLIF ( 17, + ( - COUNT( * ) ) / + + 54 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2200
SELECT + + COUNT ( * ) * + + CASE + + 10 WHEN - CAST ( 27 AS INTEGER ) THEN 97 WHEN 86 THEN + - 22 + - - 27 - + NULLIF ( 17, + ( - COUNT ( * ) ) / + + 54 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT ALL - - 54 * - 41 + + COUNT( * ) * + CASE + 80 WHEN - + COALESCE ( - 73, 96 / 87 * - 68 * + 50 ) THEN - COALESCE ( + + COUNT( * ), 25 * + - 20 + + 44, - 84 / 8 ) WHEN - 54 THEN 78 * 28 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL - - 54 * - 41 + + COUNT ( * ) * + CASE + 80 WHEN - + COALESCE ( - 73, 96 / 87 * - 68 * + 50 ) THEN - COALESCE ( + + COUNT ( * ), 25 * + - 20 + + 44, - 84 / 8 ) WHEN - 54 THEN 78 * 28 END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2202
SELECT - 79 * COUNT ( - + 59 ) - 37 AS col2
----
-116

query I rowsort
SELECT ALL 73 * + ( - 5 ) AS col2
----
-365

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT + 42 + - - 88 * 50 * - - CASE + COUNT( * ) WHEN - 82 THEN + - COUNT( * ) + + COUNT( * ) ELSE NULL END * + + ( + - 28 ) * - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2204
SELECT + 42 + - - 88 * 50 * - - CASE + COUNT ( * ) WHEN - 82 THEN + - COUNT ( * ) + + COUNT ( * ) ELSE NULL END * + + ( + - 28 ) * - + COUNT ( * ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2206
SELECT DISTINCT + 24 AS col2, 97 + - 66 - + SUM( ALL - + 46 ) AS col0
----
24
77

skipif mysql # not compatible
query II rowsort label-2206
SELECT DISTINCT + 24 AS col2, 97 + - 66 - + SUM ( ALL - + 46 ) AS col0
----
24
77

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

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

query I rowsort
SELECT - 1 * + - 93 AS col2
----
93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT DISTINCT 66 * - 41 * COUNT( * ) AS col0
----
-2706

skipif mysql # not compatible
query I rowsort label-2210
SELECT DISTINCT 66 * - 41 * COUNT ( * ) AS col0
----
-2706

onlyif mysql # DIV for integer division: 
query I rowsort label-2211
SELECT ALL + COALESCE ( 62, 27 ) DIV + 29 + + - 2 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL + COALESCE ( 62, 27 ) / + 29 + + - 2 AS col2
----
0

query I rowsort
SELECT - ( + 27 ) + 88 AS col1
----
61

query II rowsort
SELECT + 18 AS col2, + 36 AS col2
----
18
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT + NULLIF ( 55, - - SUM( - - 75 ) * + 18 ) + 51 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-2214
SELECT + NULLIF ( 55, - - SUM ( - - 75 ) * + 18 ) + 51 AS col0
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2215
SELECT ALL + 27 DIV + MIN( - 81 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL + 27 / + MIN ( - 81 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2216
SELECT COUNT( * ) AS col2, + 10 - 32 AS col0
----
1
-22

skipif mysql # not compatible
query II rowsort label-2216
SELECT COUNT ( * ) AS col2, + 10 - 32 AS col0
----
1
-22

query I rowsort
SELECT - 65 + + 20 + + + 51
----
6

query I rowsort
SELECT ALL + 91 + 56 AS col0
----
147

query I rowsort
SELECT DISTINCT - ( - 39 ) + + + 6
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-2220
SELECT ALL - SUM( + + 72 ) * - 68, + 76 * MIN( DISTINCT + 48 ) AS col0
----
4896
3648

skipif mysql # not compatible
query II rowsort label-2220
SELECT ALL - SUM ( + + 72 ) * - 68, + 76 * MIN ( DISTINCT + 48 ) AS col0
----
4896
3648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2221
SELECT DISTINCT + 10 + + COALESCE ( - - 28, 98 + + 45 + 29 + COUNT( 66 ), + 34 * + 84 + + 83 + - + 77 * + COUNT( * ) * - 6 DIV + COUNT( * ) * 63 * + 5 * 39 * + 80 ) - + 37 col0
----
1

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT + 10 + + COALESCE ( - - 28, 98 + + 45 + 29 + COUNT ( 66 ), + 34 * + 84 + + 83 + - + 77 * + COUNT ( * ) * - 6 / + COUNT ( * ) * 63 * + 5 * 39 * + 80 ) - + 37 col0
----
1

query I rowsort
SELECT ALL + 64 + 36 AS col2
----
100

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

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

query I rowsort
SELECT - 88 - - 3
----
-85

query II rowsort
SELECT DISTINCT - 88, + 62 col2
----
-88
62

query I rowsort
SELECT ALL - NULLIF ( + 35, - + 99 ) - 0 * - - 1
----
-35

query II rowsort
SELECT DISTINCT 31 AS col2, 86
----
31
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT 16 - + + MAX( - + 4 ) * - 97 AS col2
----
-372

skipif mysql # not compatible
query I rowsort label-2228
SELECT 16 - + + MAX ( - + 4 ) * - 97 AS col2
----
-372

query II rowsort
SELECT + + 62 AS col0, 45 * + ( - - 67 )
----
62
3015

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT - COALESCE ( - + 12, - 32 ) * + NULLIF ( COALESCE ( 36, - + 61 * - + ( - + 35 ) ), ( + + COUNT( * ) ) + - COUNT( * ) * 31 ) + COALESCE ( - 49, - 52 )
----
383

skipif mysql # not compatible
query I rowsort label-2230
SELECT - COALESCE ( - + 12, - 32 ) * + NULLIF ( COALESCE ( 36, - + 61 * - + ( - + 35 ) ), ( + + COUNT ( * ) ) + - COUNT ( * ) * 31 ) + COALESCE ( - 49, - 52 )
----
383

query I rowsort
SELECT 8 * - + 54 + - - 62 AS col0
----
-370

onlyif mysql # DIV for integer division: 
query I rowsort label-2232
SELECT - 87 DIV - 18
----
4

skipif mysql # not compatible
query I rowsort label-2232
SELECT - 87 / - 18
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2233
SELECT ALL - + CASE + COUNT( ALL - 61 ) WHEN + CAST( - CAST( + ( - 43 ) AS SIGNED ) AS DECIMAL ) THEN SUM( ALL - - 94 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL - + CASE + COUNT ( ALL - 61 ) WHEN + CAST ( - CAST ( + ( - 43 ) AS INTEGER ) AS REAL ) THEN SUM ( ALL - - 94 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2234
SELECT ALL CAST( + 20 AS SIGNED ) * 48
----
960

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL CAST ( + 20 AS INTEGER ) * 48
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT - COUNT( * ) + + + 78
----
77

skipif mysql # not compatible
query I rowsort label-2235
SELECT - COUNT ( * ) + + + 78
----
77

query I rowsort
SELECT 85 - - 95 AS col0
----
180

query I rowsort
SELECT + 40 * ( + + 6 )
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT + - SUM( - ( - + 13 ) ) * - 53 + - + 68 * - 24 AS col0
----
2321

skipif mysql # not compatible
query I rowsort label-2238
SELECT + - SUM ( - ( - + 13 ) ) * - 53 + - + 68 * - 24 AS col0
----
2321

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT + 1 * - SUM( DISTINCT - 90 ) + + 81 col1
----
171

skipif mysql # not compatible
query I rowsort label-2239
SELECT + 1 * - SUM ( DISTINCT - 90 ) + + 81 col1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT + 64 * + + 70 + - + 94 * - + COUNT( * ) AS col1
----
4574

skipif mysql # not compatible
query I rowsort label-2240
SELECT + 64 * + + 70 + - + 94 * - + COUNT ( * ) AS col1
----
4574

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT DISTINCT COUNT( * ) + 75 - - 30 + 38 AS col1
----
144

skipif mysql # not compatible
query I rowsort label-2241
SELECT DISTINCT COUNT ( * ) + 75 - - 30 + 38 AS col1
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2242
SELECT CASE - 94 WHEN 2 THEN 16 + - - 9 WHEN 86 THEN ( - + NULLIF ( 82, + 92 * - - ( - - 23 ) * COUNT( * ) + - CASE 20 WHEN + - CASE + - 80 WHEN + 85 THEN CAST( 1 AS SIGNED ) * - 29 END THEN - 3 WHEN SUM( ALL COALESCE ( - 65, + 27, - 42 ) ) - COUNT( * ) THEN NULL ELSE - 44 * 47 - 85 END ) ) * ( + COUNT( * ) ) + + 56 ELSE NULL END * MIN( DISTINCT + 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2242
SELECT CASE - 94 WHEN 2 THEN 16 + - - 9 WHEN 86 THEN ( - + NULLIF ( 82, + 92 * - - ( - - 23 ) * COUNT ( * ) + - CASE 20 WHEN + - CASE + - 80 WHEN + 85 THEN CAST ( 1 AS INTEGER ) * - 29 END THEN - 3 WHEN SUM ( ALL COALESCE ( - 65, + 27, - 42 ) ) - COUNT ( * ) THEN NULL ELSE - 44 * 47 - 85 END ) ) * ( + COUNT ( * ) ) + + 56 ELSE NULL END * MIN ( DISTINCT + 57 )
----
NULL

query I rowsort
SELECT 16 + + - 5 col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2244
SELECT ( + 19 ) DIV + 32 * - + 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2244
SELECT ( + 19 ) / + 32 * - + 64 AS col1
----
0

query I rowsort
SELECT ALL NULLIF ( 60, 3 * + + 89 + - - ( - 11 ) + 46 - + 60 * NULLIF ( - + 75, + 47 ) ) + + 44 AS col1
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-2246
SELECT DISTINCT 59 * - 71 AS col0, + 63 * + COUNT( * ) + + 61 * - + 81 + + 30
----
-4189
-4848

skipif mysql # not compatible
query II rowsort label-2246
SELECT DISTINCT 59 * - 71 AS col0, + 63 * + COUNT ( * ) + + 61 * - + 81 + + 30
----
-4189
-4848

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT DISTINCT 52 + - + 34 * + + 51 + - COUNT( * ) AS col0
----
-1683

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT 52 + - + 34 * + + 51 + - COUNT ( * ) AS col0
----
-1683

query I rowsort
SELECT ALL NULLIF ( - 59, + + 17 ) + - 48
----
-107

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2249
SELECT CAST( - - 90 AS DECIMAL ) * + CAST( NULL AS SIGNED ) * + + 58 + + - 18 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2249
SELECT CAST ( - - 90 AS REAL ) * + CAST ( NULL AS INTEGER ) * + + 58 + + - 18 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2250
SELECT + AVG ( DISTINCT - 71 ) + CASE + 4 WHEN + SUM( + - 66 ) THEN NULL WHEN 66 THEN - 52 * + 50 END AS col2, - 30
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-2250
SELECT + AVG ( DISTINCT - 71 ) + CASE + 4 WHEN + SUM ( + - 66 ) THEN NULL WHEN 66 THEN - 52 * + 50 END AS col2, - 30
----
NULL
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-2251
SELECT COUNT( * ) - - + NULLIF ( - - COUNT( * ), + 95 ) AS col2, CASE - 83 WHEN + 98 * + 97 + + - MIN( ALL - 19 ) THEN - 34 END * + 60 * - 4
----
2
NULL

skipif mysql # not compatible
query II rowsort label-2251
SELECT COUNT ( * ) - - + NULLIF ( - - COUNT ( * ), + 95 ) AS col2, CASE - 83 WHEN + 98 * + 97 + + - MIN ( ALL - 19 ) THEN - 34 END * + 60 * - 4
----
2
NULL

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

skipif mysql # not compatible
query I rowsort label-2252
SELECT - MAX ( + + 79 )
----
-79

query II rowsort
SELECT + 86 + - 21 AS col0, 75 * - 78
----
65
-5850

query I rowsort
SELECT + 56 - - - 46
----
10

query II rowsort
SELECT ALL - - 75 - + + 55 AS col1, 99
----
20
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT ALL + + COUNT( * ) * + - 42 - + 4
----
-46

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL + + COUNT ( * ) * + - 42 - + 4
----
-46

query I rowsort
SELECT DISTINCT + - 46 * - 81
----
3726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2258
SELECT ALL - - 83 - MAX( + CAST( - + 48 AS SIGNED ) ) DIV 51
----
83

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL - - 83 - MAX ( + CAST ( - + 48 AS INTEGER ) ) / 51
----
83

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2260
SELECT 30 + + 38, - COUNT( * ) AS col0
----
68
-1

skipif mysql # not compatible
query II rowsort label-2260
SELECT 30 + + 38, - COUNT ( * ) AS col0
----
68
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2261
SELECT + 88 * CAST( + 95 AS SIGNED ) AS col2
----
8360

skipif mysql # not compatible
query I rowsort label-2261
SELECT + 88 * CAST ( + 95 AS INTEGER ) AS col2
----
8360

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT MIN( + + 87 ) * - 13 + + - 47
----
-1178

skipif mysql # not compatible
query I rowsort label-2262
SELECT MIN ( + + 87 ) * - 13 + + - 47
----
-1178

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT DISTINCT + - 71 * MIN( + 76 ) AS col0
----
-5396

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT + - 71 * MIN ( + 76 ) AS col0
----
-5396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2264
SELECT + + 63 * + NULLIF ( + + 13, + ( + + 72 ) * - 76 * + 55 + - 82 / + CAST( NULL AS SIGNED ) ) + 8 + - 25 / - 44 * + 9 * - + 11 * - - CASE + COUNT( * ) WHEN + MAX( + 89 ) * 3 * + 10 + 13 THEN NULL WHEN - COUNT( * ) THEN - 46 + 3 END + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2264
SELECT + + 63 * + NULLIF ( + + 13, + ( + + 72 ) * - 76 * + 55 + - 82 / + CAST ( NULL AS INTEGER ) ) + 8 + - 25 / - 44 * + 9 * - + 11 * - - CASE + COUNT ( * ) WHEN + MAX ( + 89 ) * 3 * + 10 + 13 THEN NULL WHEN - COUNT ( * ) THEN - 46 + 3 END + 87 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2265
SELECT DISTINCT - COUNT( ALL 37 ) AS col0, - 93
----
-1
-93

skipif mysql # not compatible
query II rowsort label-2265
SELECT DISTINCT - COUNT ( ALL 37 ) AS col0, - 93
----
-1
-93

query I rowsort
SELECT - COALESCE ( - 42, 67, + + 32 ) AS col1
----
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT ALL - COALESCE ( - 34, - SUM( 57 ), - 7 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL - COALESCE ( - 34, - SUM ( 57 ), - 7 ) AS col2
----
34

query I rowsort
SELECT 91 * + 62
----
5642

query I rowsort
SELECT DISTINCT - NULLIF ( + + 89, + 76 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT ALL 79 * - 3 + + COUNT( * )
----
-236

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL 79 * - 3 + + COUNT ( * )
----
-236

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT SUM( 86 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-2272
SELECT SUM ( 86 ) AS col1
----
86

query I rowsort
SELECT 78 * - 80 * - 88
----
549120

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT 81 * MIN( DISTINCT - - 36 )
----
2916

skipif mysql # not compatible
query I rowsort label-2274
SELECT 81 * MIN ( DISTINCT - - 36 )
----
2916

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT ALL NULLIF ( + 24, - COUNT( * ) * + 18 ) + - 53 * + ( 78 )
----
-4110

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL NULLIF ( + 24, - COUNT ( * ) * + 18 ) + - 53 * + ( 78 )
----
-4110

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

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

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

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

query I rowsort
SELECT + 6 + + + 14 AS col1
----
20

query I rowsort
SELECT DISTINCT 11 + + - ( - - 84 ) * 8
----
-661

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2282
SELECT - NULLIF ( + 84, - CASE + 82 WHEN + 9 * - + 87 + + 61 * - 66 - + CAST( NULL AS SIGNED ) + NULLIF ( 36, + MAX( - 34 ) ) + - + COUNT( * ) * + - 79 * + - 42 + + 14 * ( + CASE - SUM( - 20 ) WHEN 4 + + 56 * - ( 86 + NULLIF ( + 42, CAST( NULL AS SIGNED ) * 43 + + 39 ) ) THEN NULL ELSE 65 * + 45 + 10 * + COUNT( * ) END ) + - 21 THEN NULL ELSE - 57 END )
----
-84

skipif mysql # not compatible
query I rowsort label-2282
SELECT - NULLIF ( + 84, - CASE + 82 WHEN + 9 * - + 87 + + 61 * - 66 - + CAST ( NULL AS INTEGER ) + NULLIF ( 36, + MAX ( - 34 ) ) + - + COUNT ( * ) * + - 79 * + - 42 + + 14 * ( + CASE - SUM ( - 20 ) WHEN 4 + + 56 * - ( 86 + NULLIF ( + 42, CAST ( NULL AS INTEGER ) * 43 + + 39 ) ) THEN NULL ELSE 65 * + 45 + 10 * + COUNT ( * ) END ) + - 21 THEN NULL ELSE - 57 END )
----
-84

query II rowsort
SELECT ALL 40 AS col2, 11 * + + 9
----
40
99

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

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

query I rowsort
SELECT + 40 + 50
----
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2286
SELECT DISTINCT NULLIF ( - + 8, - 17 DIV + + CAST( 92 AS SIGNED ) DIV + 88 ) DIV + - 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT NULLIF ( - + 8, - 17 / + + CAST ( 92 AS INTEGER ) / + 88 ) / + - 19 AS col1
----
0

query I rowsort
SELECT ALL 67 * NULLIF ( 69, 47 )
----
4623

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT - + SUM( ALL + 44 ) * 95
----
-4180

skipif mysql # not compatible
query I rowsort label-2289
SELECT - + SUM ( ALL + 44 ) * 95
----
-4180

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT + + 65 - + COUNT( * ) * 82
----
-17

skipif mysql # not compatible
query I rowsort label-2290
SELECT + + 65 - + COUNT ( * ) * 82
----
-17

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2292
SELECT ALL - 79 DIV + - SUM( - 89 ) * - 37
----
0

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL - 79 / + - SUM ( - 89 ) * - 37
----
0

query II rowsort
SELECT - 89 AS col1, 93
----
-89
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT DISTINCT - 77 + COUNT( * ) - + 35 * 94 * + - 71 + - + ( + 88 )
----
233426

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT - 77 + COUNT ( * ) - + 35 * 94 * + - 71 + - + ( + 88 )
----
233426

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2295
SELECT - + 49 - + 51 * - + 66 + + 6 + 47 DIV - 92 + ( - COUNT( * ) )
----
3322

skipif mysql # not compatible
query I rowsort label-2295
SELECT - + 49 - + 51 * - + 66 + + 6 + 47 / - 92 + ( - COUNT ( * ) )
----
3322

query II rowsort
SELECT + 48 AS col1, + 63 + 72
----
48
135

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2298
SELECT ALL + COUNT( * ) AS col2, - 71 * + ( 95 )
----
1
-6745

skipif mysql # not compatible
query II rowsort label-2298
SELECT ALL + COUNT ( * ) AS col2, - 71 * + ( 95 )
----
1
-6745

query I rowsort
SELECT ALL 75 * ( - + 20 ) + - 17 AS col0
----
-1517

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT - 42 + MIN( DISTINCT - 62 ) AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-2300
SELECT - 42 + MIN ( DISTINCT - 62 ) AS col1
----
-104

query II rowsort
SELECT + 6, + 26 * 8 + 52 - 28 AS col0
----
6
232

query I rowsort
SELECT + 93 * + + 63 + + 90 AS col2
----
5949

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2304
SELECT ALL - 96 DIV + 1 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL - 96 / + 1 AS col0
----
-96

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

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL - COUNT ( * ) / + - 70
----
0

query I rowsort
SELECT - 76 * + 4 col1
----
-304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2307
SELECT ALL + CAST( + 66 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL + CAST ( + 66 AS INTEGER )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT - ( - 31 ) * + 76 + - - 69 - - + COUNT( * )
----
2426

skipif mysql # not compatible
query I rowsort label-2308
SELECT - ( - 31 ) * + 76 + - - 69 - - + COUNT ( * )
----
2426

onlyif mysql # DIV for integer division: 
query I rowsort label-2309
SELECT - 29 DIV 16
----
-1

skipif mysql # not compatible
query I rowsort label-2309
SELECT - 29 / 16
----
-1

query I rowsort
SELECT + 35 * 6 col0
----
210

query I rowsort
SELECT - 46 + 32 AS col2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2312
SELECT ALL CAST( NULL AS SIGNED ) * + NULLIF ( - 91, ( - 35 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL CAST ( NULL AS INTEGER ) * + NULLIF ( - 91, ( - 35 ) ) AS col2
----
NULL

query I rowsort
SELECT COALESCE ( + 98, - 10 + - 33 - 67 ) AS col0
----
98

query I rowsort
SELECT ALL + 33 * ( - 96 )
----
-3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2315
SELECT DISTINCT - 82 * - CAST( 75 AS SIGNED )
----
6150

skipif mysql # not compatible
query I rowsort label-2315
SELECT DISTINCT - 82 * - CAST ( 75 AS INTEGER )
----
6150

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ALL + CASE 54 WHEN - - 52 * - COUNT( * ) THEN - 20 ELSE - 60 END
----
-60

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL + CASE 54 WHEN - - 52 * - COUNT ( * ) THEN - 20 ELSE - 60 END
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT - 12 * 40 + - ( + COUNT( * ) ) * - 76 + - 18 AS col2
----
-422

skipif mysql # not compatible
query I rowsort label-2317
SELECT - 12 * 40 + - ( + COUNT ( * ) ) * - 76 + - 18 AS col2
----
-422

query II rowsort
SELECT ALL - 81 AS col1, 26
----
-81
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2319
SELECT - SUM( - ( + 92 ) ) + + - ( COUNT( ALL 7 ) ) - + 66 * - 52 * + 27 AS col0, 4 * CAST( + 16 AS SIGNED ) + 42
----
92755
106

skipif mysql # not compatible
query II rowsort label-2319
SELECT - SUM ( - ( + 92 ) ) + + - ( COUNT ( ALL 7 ) ) - + 66 * - 52 * + 27 AS col0, 4 * CAST ( + 16 AS INTEGER ) + 42
----
92755
106

query I rowsort
SELECT + + 5 * 56
----
280

query I rowsort
SELECT - 70 + ( - 21 ) AS col0
----
-91

query I rowsort
SELECT + 40 - - - 31
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT + ( + COUNT( * ) ) - 86 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-2323
SELECT + ( + COUNT ( * ) ) - 86 AS col2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2324
SELECT ALL CASE + + 2 WHEN - 23 / + + 45 * + 37 + + CASE - - 34 WHEN 50 THEN NULL ELSE 77 * - - 2 * 66 END + 3 * - + 50 THEN - 95 WHEN + CAST( NULL AS DECIMAL ) * 46 THEN NULL ELSE + 48 * 12 * COUNT( * ) END AS col0
----
576

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL CASE + + 2 WHEN - 23 / + + 45 * + 37 + + CASE - - 34 WHEN 50 THEN NULL ELSE 77 * - - 2 * 66 END + 3 * - + 50 THEN - 95 WHEN + CAST ( NULL AS REAL ) * 46 THEN NULL ELSE + 48 * 12 * COUNT ( * ) END AS col0
----
576

query I rowsort
SELECT ALL 28 * + ( - 71 )
----
-1988

query I rowsort
SELECT ALL 67 + 50 AS col2
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2327
SELECT ALL + 59 + - 32 * - 11 + - 81 + - 78 * - + CASE CAST( - 2 AS SIGNED ) WHEN - + COALESCE ( + + 10, MAX( ALL - 23 ) + - - 67 - 56 ) THEN - - 97 + 67 + + 49 * - 8 END * 29 * - 22 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL + 59 + - 32 * - 11 + - 81 + - 78 * - + CASE CAST ( - 2 AS INTEGER ) WHEN - + COALESCE ( + + 10, MAX ( ALL - 23 ) + - - 67 - 56 ) THEN - - 97 + 67 + + 49 * - 8 END * 29 * - 22 * + COUNT ( * )
----
NULL

query I rowsort
SELECT + + 53 + - 24 + - 69
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT ALL - CASE + + 10 WHEN + NULLIF ( 80, - 58 ) THEN + COUNT( * ) ELSE NULL END + + SUM( ALL + 26 ) + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL - CASE + + 10 WHEN + NULLIF ( 80, - 58 ) THEN + COUNT ( * ) ELSE NULL END + + SUM ( ALL + 26 ) + - 24
----
NULL

query I rowsort
SELECT + - 78 + - ( + 24 ) + - 52 AS col2
----
-154

query II rowsort
SELECT + 68, 27 AS col2
----
68
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT + + COUNT( * ) + SUM( DISTINCT NULLIF ( 83, + - ( - + 88 ) * - 6 ) )
----
84

skipif mysql # not compatible
query I rowsort label-2332
SELECT + + COUNT ( * ) + SUM ( DISTINCT NULLIF ( 83, + - ( - + 88 ) * - 6 ) )
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-2333
SELECT + 18 col1, + 58 DIV 46 AS col1
----
18
1

skipif mysql # not compatible
query II rowsort label-2333
SELECT + 18 col1, + 58 / 46 AS col1
----
18
1

query II rowsort
SELECT - + 93 AS col1, - 78
----
-93
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-2335
SELECT + COUNT( * ) * - + 70 AS col2, - 45
----
-70
-45

skipif mysql # not compatible
query II rowsort label-2335
SELECT + COUNT ( * ) * - + 70 AS col2, - 45
----
-70
-45

query II rowsort
SELECT - 49 + - + 14 AS col1, - 14
----
-63
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT + 19 * CASE 12 WHEN ( - COUNT( * ) ) + - + COUNT( * ) + COUNT( * ) THEN - 61 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2337
SELECT + 19 * CASE 12 WHEN ( - COUNT ( * ) ) + - + COUNT ( * ) + COUNT ( * ) THEN - 61 ELSE NULL END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL 1 + - + ( - 82 ) + - COUNT ( * ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT 6 * + + NULLIF ( + MAX( ALL - + 29 ), NULLIF ( 14, - COUNT( * ) ) )
----
-174

skipif mysql # not compatible
query I rowsort label-2339
SELECT 6 * + + NULLIF ( + MAX ( ALL - + 29 ), NULLIF ( 14, - COUNT ( * ) ) )
----
-174

query I rowsort
SELECT DISTINCT 30 * 82
----
2460

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT COUNT( * ) + - + COUNT( * ) * 52 * - 89
----
4629

skipif mysql # not compatible
query I rowsort label-2342
SELECT COUNT ( * ) + - + COUNT ( * ) * 52 * - 89
----
4629

query I rowsort
SELECT ALL 29 * 97 AS col0
----
2813

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

skipif mysql # not compatible
query I rowsort label-2344
SELECT 38 + - CAST ( NULL AS INTEGER ) + + + 16
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2345
SELECT 90 + - 82 DIV + - 55
----
91

skipif mysql # not compatible
query I rowsort label-2345
SELECT 90 + - 82 / + - 55
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT COALESCE ( - + 36, + - 73 * + 3 * - 90 * 67 + + MAX( DISTINCT 42 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-2346
SELECT COALESCE ( - + 36, + - 73 * + 3 * - 90 * 67 + + MAX ( DISTINCT 42 ) )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2347
SELECT - COUNT( * ) DIV ( + - COUNT( * ) ) - + 99
----
-98

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

query I rowsort
SELECT + 72 * 80 + + 69
----
5829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2349
SELECT ALL + - COUNT( 68 ) + + 43 * - + CASE 72 WHEN + 99 THEN 84 * CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL + - COUNT ( 68 ) + + 43 * - + CASE 72 WHEN + 99 THEN 84 * CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2350
SELECT DISTINCT - - 34 + - 10 + + 45 * ( + - CAST( NULL AS SIGNED ) ), - COUNT( * ) * 66 * + 21 + 71 AS col0
----
NULL
-1315

skipif mysql # not compatible
query II rowsort label-2350
SELECT DISTINCT - - 34 + - 10 + + 45 * ( + - CAST ( NULL AS INTEGER ) ), - COUNT ( * ) * 66 * + 21 + 71 AS col0
----
NULL
-1315

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT DISTINCT + 30 + 87 * - + COUNT( * ) + - 3 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT + 30 + 87 * - + COUNT ( * ) + - 3 AS col0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2352
SELECT DISTINCT COALESCE ( + COUNT( + 60 ), - 51 * COUNT( * ) * + - 52 DIV - SUM( DISTINCT 67 ), + 87 )
----
1

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT COALESCE ( + COUNT ( + 60 ), - 51 * COUNT ( * ) * + - 52 / - SUM ( DISTINCT 67 ), + 87 )
----
1

query II rowsort
SELECT 18 - 27 AS col0, + 1
----
-9
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2354
SELECT - + MIN( + 64 ), + 45 DIV - COUNT( * ) AS col2
----
-64
-45

skipif mysql # not compatible
query II rowsort label-2354
SELECT - + MIN ( + 64 ), + 45 / - COUNT ( * ) AS col2
----
-64
-45

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

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

query I rowsort
SELECT 81 + 12
----
93

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2358
SELECT DISTINCT + 23 - NULLIF ( - - COUNT( * ), - CAST( NULL AS SIGNED ) ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT + 23 - NULLIF ( - - COUNT ( * ), - CAST ( NULL AS INTEGER ) ) AS col2
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2359
SELECT ALL 57 col2, - CAST( NULL AS DECIMAL ) + 23 AS col2
----
57
NULL

skipif mysql # not compatible
query II rowsort label-2359
SELECT ALL 57 col2, - CAST ( NULL AS REAL ) + 23 AS col2
----
57
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2360
SELECT COUNT( * ) - - 23 * - 44 AS col0, 86 AS col1
----
-1011
86

skipif mysql # not compatible
query II rowsort label-2360
SELECT COUNT ( * ) - - 23 * - 44 AS col0, 86 AS col1
----
-1011
86

query I rowsort
SELECT ALL 95 * 70 AS col2
----
6650

query I rowsort
SELECT 16 - - ( - 12 ) * + 67 * 77 AS col0
----
-61892

query II rowsort
SELECT + 15 AS col0, 46 * 50 * - 42
----
15
-96600

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2365
SELECT + 34 DIV COUNT( * ) + - 51 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2365
SELECT + 34 / COUNT ( * ) + - 51 AS col1
----
-17

query I rowsort
SELECT ( + 55 ) * - 79
----
-4345

onlyif mysql # DIV for integer division: 
query I rowsort label-2367
SELECT 6 + + 68 + + ( - 77 ) DIV - 73
----
75

skipif mysql # not compatible
query I rowsort label-2367
SELECT 6 + + 68 + + ( - 77 ) / - 73
----
75

query I rowsort
SELECT 41 * + 51
----
2091

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

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 36
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2370
SELECT DISTINCT COALESCE ( 6, + 45, - - COUNT( * ) * - COUNT( 91 ) * + 95, - CASE + NULLIF ( + 64, - 28 * - 43 * - AVG ( 90 ) + - - 28 + - + 77 ) WHEN - 83 THEN + 51 END ) DIV - ( + 56 ) * 8 * + ( - - 20 ) - + MIN( DISTINCT - 6 )
----
6

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT COALESCE ( 6, + 45, - - COUNT ( * ) * - COUNT ( 91 ) * + 95, - CASE + NULLIF ( + 64, - 28 * - 43 * - AVG ( 90 ) + - - 28 + - + 77 ) WHEN - 83 THEN + 51 END ) / - ( + 56 ) * 8 * + ( - - 20 ) - + MIN ( DISTINCT - 6 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2371
SELECT ALL - COALESCE ( 21, - CASE - 60 WHEN - + 76 + + COUNT( * ) + + COUNT( * ) THEN NULL WHEN + COALESCE ( + ( - 16 ), - CAST( NULL AS SIGNED ) ) * - COUNT( * ) + - 72 THEN NULL WHEN + CAST( NULL AS SIGNED ) * + 45 THEN 73 * + CAST( - 95 AS SIGNED ) END + - 62, + - 4 )
----
-21

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL - COALESCE ( 21, - CASE - 60 WHEN - + 76 + + COUNT ( * ) + + COUNT ( * ) THEN NULL WHEN + COALESCE ( + ( - 16 ), - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + - 72 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * + 45 THEN 73 * + CAST ( - 95 AS INTEGER ) END + - 62, + - 4 )
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-2372
SELECT 50 + - COUNT( + 51 ) col2, - 90 + - - 33
----
49
-57

skipif mysql # not compatible
query II rowsort label-2372
SELECT 50 + - COUNT ( + 51 ) col2, - 90 + - - 33
----
49
-57

query I rowsort
SELECT 61 * 71 AS col1
----
4331

query I rowsort
SELECT ALL + 33 + + ( - 10 ) - - + 74
----
97

query I rowsort
SELECT 53 * 54 + 16 col1
----
2878

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

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

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

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

query I rowsort
SELECT DISTINCT + 50 + - 34
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT + + ( - MAX( - 99 ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-2379
SELECT + + ( - MAX ( - 99 ) ) AS col0
----
99

query I rowsort
SELECT - 89 + 71
----
-18

query II rowsort
SELECT + 24, + 21 + 7 AS col1
----
24
28

query I rowsort
SELECT 0 + - + 68
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT ALL + SUM( - 70 ) + + 21
----
-49

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL + SUM ( - 70 ) + + 21
----
-49

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

skipif mysql # not compatible
query I rowsort label-2384
SELECT + 55 + - - COUNT ( * ) + - + 60 AS col2
----
-4

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

skipif mysql # not compatible
query I rowsort label-2385
SELECT - MIN ( + + 69 )
----
-69

query I rowsort
SELECT + ( + - 62 ) - - - 54
----
-116

query II rowsort
SELECT ALL - 20, 91 AS col0
----
-20
91

query I rowsort
SELECT ALL + 7 * - - 19
----
133

query I rowsort
SELECT ALL + 96 - + 26 + + 33 * - 28 * - NULLIF ( - 14, + - 99 )
----
-12866

onlyif mysql # aggregate syntax: 
query II rowsort label-2390
SELECT DISTINCT + COUNT( * ) AS col2, - 19 * - - 40 AS col2
----
1
-760

skipif mysql # not compatible
query II rowsort label-2390
SELECT DISTINCT + COUNT ( * ) AS col2, - 19 * - - 40 AS col2
----
1
-760

query II rowsort
SELECT ALL - 9 - 72 AS col2, 39
----
-81
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT - COALESCE ( + COUNT( * ), + 42 ) + + + MAX( ALL + 83 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-2392
SELECT - COALESCE ( + COUNT ( * ), + 42 ) + + + MAX ( ALL + 83 ) AS col0
----
82

query I rowsort
SELECT ALL - 36 * - ( - 12 ) AS col1
----
-432

query I rowsort
SELECT - 89 + - 25 AS col2
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-2395
SELECT ALL + 18 * 76 DIV 32
----
42

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL + 18 * 76 / 32
----
42

query I rowsort
SELECT DISTINCT NULLIF ( - 19, + 73 * + 51 )
----
-19

query I rowsort
SELECT - CASE + 77 WHEN - 22 * - 12 * - 0 * + + 14 THEN NULL WHEN - 72 THEN + 98 END * + - 86 * - 68
----
NULL

query II rowsort
SELECT + 83 * 72, - 56 + + 23 AS col2
----
5976
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-2399
SELECT ALL COALESCE ( + MAX( DISTINCT - ( - 5 ) ), + - COALESCE ( - + 69, - - 36 * - 41 * - + 16 * + + 71 + + 98 ) + + COUNT( * ) ) AS col2, + 61
----
5
61

skipif mysql # not compatible
query II rowsort label-2399
SELECT ALL COALESCE ( + MAX ( DISTINCT - ( - 5 ) ), + - COALESCE ( - + 69, - - 36 * - 41 * - + 16 * + + 71 + + 98 ) + + COUNT ( * ) ) AS col2, + 61
----
5
61

query II rowsort
SELECT + 18 * 6, - 26 + - 69 AS col1
----
108
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT + COUNT( * ) + SUM( 65 ) + 98 * + COUNT( * )
----
164

skipif mysql # not compatible
query I rowsort label-2401
SELECT + COUNT ( * ) + SUM ( 65 ) + 98 * + COUNT ( * )
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2402
SELECT ALL COALESCE ( - 34, - 23 * - COUNT( * ) * - + 0 + + NULLIF ( - - 67, - ( + 71 ) + + CAST( - 0 AS SIGNED ) - - 55 * 87 ), - - 59 ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL COALESCE ( - 34, - 23 * - COUNT ( * ) * - + 0 + + NULLIF ( - - 67, - ( + 71 ) + + CAST ( - 0 AS INTEGER ) - - 55 * 87 ), - - 59 ) col1
----
-34

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

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

skipif mysql # not compatible
query I rowsort label-2404
SELECT + 82 * - COUNT ( DISTINCT - + 85 ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT ( SUM( DISTINCT - + 30 ) ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-2405
SELECT ( SUM ( DISTINCT - + 30 ) ) col2
----
-30

query II rowsort
SELECT ALL + 74 * - 4 AS col1, + 74 * - 5
----
-296
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT + CASE + - 86 WHEN + 18 THEN NULL WHEN - 1 THEN + 10 * + + 31 END * 22 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2407
SELECT + CASE + - 86 WHEN + 18 THEN NULL WHEN - 1 THEN + 10 * + + 31 END * 22 * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2408
SELECT COALESCE ( 97, CAST( NULL AS SIGNED ) + - CAST( + 44 AS SIGNED ) + + 22 * - COUNT( * ) + - 80 * + 23 DIV + - 85 * + 90 + + COALESCE ( ( + + COUNT( * ) ), SUM( 56 ) DIV ( 26 ) - - 21 + + 53 * + + 79 - 49 + + 39 - + 66 + 71 * + 84, COUNT( * ) * - 41 ) )
----
97

skipif mysql # not compatible
query I rowsort label-2408
SELECT COALESCE ( 97, CAST ( NULL AS INTEGER ) + - CAST ( + 44 AS INTEGER ) + + 22 * - COUNT ( * ) + - 80 * + 23 / + - 85 * + 90 + + COALESCE ( ( + + COUNT ( * ) ), SUM ( 56 ) / ( 26 ) - - 21 + + 53 * + + 79 - 49 + + 39 - + 66 + 71 * + 84, COUNT ( * ) * - 41 ) )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT ALL - COUNT( * ) * 49 + - 8 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL - COUNT ( * ) * 49 + - 8 AS col1
----
-57

query I rowsort
SELECT - 39 * - 63 - + 31
----
2426

onlyif mysql # DIV for integer division: 
query I rowsort label-2411
SELECT ALL - 12 DIV 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL - 12 / 49 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2412
SELECT + 37 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-2412
SELECT + 37 / - 68
----
0

query I rowsort
SELECT ALL - 92 * + - 95 + - + 49
----
8691

query I rowsort
SELECT ALL + 28 * - + 90 + + - 64
----
-2584

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2415
SELECT + + NULLIF ( + - 31, + COUNT( * ) * + COUNT( * ) - + - 86 + - 88 * + 88 + + 14 + - CAST( NULL AS DECIMAL ) + 75 + + COALESCE ( - - 88, + - 96 + - 95 ) ) + + + 81 * - - 45 DIV - - COUNT( DISTINCT 6 ) AS col1
----
3614

skipif mysql # not compatible
query I rowsort label-2415
SELECT + + NULLIF ( + - 31, + COUNT ( * ) * + COUNT ( * ) - + - 86 + - 88 * + 88 + + 14 + - CAST ( NULL AS REAL ) + 75 + + COALESCE ( - - 88, + - 96 + - 95 ) ) + + + 81 * - - 45 / - - COUNT ( DISTINCT 6 ) AS col1
----
3614

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT + + COUNT( * ) * + 20 * 29 - + NULLIF ( + ( - 73 ), + ( 28 ) - 43 + - 22 ) AS col1
----
653

skipif mysql # not compatible
query I rowsort label-2416
SELECT + + COUNT ( * ) * + 20 * 29 - + NULLIF ( + ( - 73 ), + ( 28 ) - 43 + - 22 ) AS col1
----
653

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT - 25 * - + SUM( DISTINCT 66 ) + + - 40
----
1610

skipif mysql # not compatible
query I rowsort label-2418
SELECT - 25 * - + SUM ( DISTINCT 66 ) + + - 40
----
1610

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT ALL CASE - + COUNT( * ) WHEN + 96 + + 78 + - - COUNT( * ) THEN - + 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL CASE - + COUNT ( * ) WHEN + 96 + + 78 + - - COUNT ( * ) THEN - + 91 END
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( + + 42, + + 16 )
----
42

query I rowsort
SELECT - 89 * ( - 94 )
----
8366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2422
SELECT + CAST( + + 42 AS SIGNED ) + + 20 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-2422
SELECT + CAST ( + + 42 AS INTEGER ) + + 20 AS col1
----
62

query I rowsort
SELECT ALL COALESCE ( + ( COALESCE ( 6, 90 ) ), + - 89 )
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2424
SELECT + 78 DIV - 18
----
-4

skipif mysql # not compatible
query I rowsort label-2424
SELECT + 78 / - 18
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT DISTINCT CASE - COUNT( * ) WHEN - COUNT( 11 ) + 21 THEN - 29 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT CASE - COUNT ( * ) WHEN - COUNT ( 11 ) + 21 THEN - 29 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 30 + + 87 AS col2
----
57

query I rowsort
SELECT ALL + 87 * - + 43 * 57
----
-213237

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT - 6 + SUM( + 17 ) + - 33
----
-22

skipif mysql # not compatible
query I rowsort label-2428
SELECT - 6 + SUM ( + 17 ) + - 33
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT ALL MIN( 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL MIN ( 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT DISTINCT - COUNT( ALL - + 91 ) * + 74 col1
----
-74

skipif mysql # not compatible
query I rowsort label-2430
SELECT DISTINCT - COUNT ( ALL - + 91 ) * + 74 col1
----
-74

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

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

query I rowsort
SELECT - 88 * + 47 * - 74 * + 50 AS col2
----
15303200

query I rowsort
SELECT - 52 + + 98 AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2434
SELECT ALL + 40 DIV - ( - - 85 ) + + ( + ( - + ( - 14 ) ) )
----
14

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL + 40 / - ( - - 85 ) + + ( + ( - + ( - 14 ) ) )
----
14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2435
SELECT + 63 DIV + - 51 + - NULLIF ( - CAST( + + 54 AS SIGNED ), + + 99 DIV 11 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-2435
SELECT + 63 / + - 51 + - NULLIF ( - CAST ( + + 54 AS INTEGER ), + + 99 / 11 ) AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2436
SELECT - 88 / + ( - ( + - 13 ) ) + - - COUNT( * ) * - + 22 * - CASE + 81 WHEN + + 62 - CAST( + 44 AS SIGNED ) THEN + CAST( NULL AS SIGNED ) + - + CAST( - - 11 AS SIGNED ) ELSE NULL END * 97 / - - 88 + - 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2436
SELECT - 88 / + ( - ( + - 13 ) ) + - - COUNT ( * ) * - + 22 * - CASE + 81 WHEN + + 62 - CAST ( + 44 AS INTEGER ) THEN + CAST ( NULL AS INTEGER ) + - + CAST ( - - 11 AS INTEGER ) ELSE NULL END * 97 / - - 88 + - 76 AS col1
----
NULL

query I rowsort
SELECT - 16 + NULLIF ( + 40, - 24 * - 34 ) + - 77 * 6 - + - 57
----
-381

query II rowsort
SELECT 31 AS col1, - 13 AS col1
----
31
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2439
SELECT + 11 * + + MAX( - 16 ) + - COUNT( * ) / ( + CAST( NULL AS SIGNED ) ) + - ( - 71 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2439
SELECT + 11 * + + MAX ( - 16 ) + - COUNT ( * ) / ( + CAST ( NULL AS INTEGER ) ) + - ( - 71 ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2441
SELECT ALL + + COALESCE ( CAST( + 78 AS SIGNED ), 94 * + - 75 * 84 * - - 42 )
----
78

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL + + COALESCE ( CAST ( + 78 AS INTEGER ), 94 * + - 75 * 84 * - - 42 )
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-2442
SELECT DISTINCT - 88 DIV + 23 + - - 58 * + 65 * + - 57 AS col1, + ( COALESCE ( - - 87, - 88 + - AVG ( DISTINCT + 45 ) DIV + 70 ) ) AS col1
----
-214893
87

skipif mysql # not compatible
query II rowsort label-2442
SELECT DISTINCT - 88 / + 23 + - - 58 * + 65 * + - 57 AS col1, + ( COALESCE ( - - 87, - 88 + - AVG ( DISTINCT + 45 ) / + 70 ) ) AS col1
----
-214893
87

query I rowsort
SELECT + 62 + - 1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT ALL - 9 DIV 69 + 7 + - 8
----
-1

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL - 9 / 69 + 7 + - 8
----
-1

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

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

query I rowsort
SELECT + 82 * + 9 + - + 19
----
719

query I rowsort
SELECT - + 51 * - 66
----
3366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2448
SELECT + + CAST( NULL AS SIGNED ) * - 59 * 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2448
SELECT + + CAST ( NULL AS INTEGER ) * - 59 * 78 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2449
SELECT + 94 * + - COALESCE ( + COALESCE ( - COUNT( * ), 96 DIV - AVG ( DISTINCT - 70 ), - 38 ), - 21 ) + + COUNT( * ) AS col1, 9 AS col2
----
95
9

skipif mysql # not compatible
query II rowsort label-2449
SELECT + 94 * + - COALESCE ( + COALESCE ( - COUNT ( * ), 96 / - AVG ( DISTINCT - 70 ), - 38 ), - 21 ) + + COUNT ( * ) AS col1, 9 AS col2
----
95
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT - 51 + + MIN( ALL - 84 ) AS col2
----
-135

skipif mysql # not compatible
query I rowsort label-2450
SELECT - 51 + + MIN ( ALL - 84 ) AS col2
----
-135

query II rowsort
SELECT 93 + 88 + ( + 68 ) * + - 98 AS col0, 64 AS col1
----
-6483
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT ALL - MIN( 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL - MIN ( 26 )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2453
SELECT DISTINCT CASE + 34 WHEN + ( + CAST( NULL AS SIGNED ) ) * 40 THEN NULL WHEN + 15 THEN + ( - - COUNT( * ) ) WHEN - + 7 * - - 14 + + COALESCE ( + + 29, - 84 * + + 61 * + NULLIF ( - + ( + 39 ), + 73 ) + - - MIN( + 36 ) + + 60 ) THEN NULL ELSE NULL END / - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT CASE + 34 WHEN + ( + CAST ( NULL AS INTEGER ) ) * 40 THEN NULL WHEN + 15 THEN + ( - - COUNT ( * ) ) WHEN - + 7 * - - 14 + + COALESCE ( + + 29, - 84 * + + 61 * + NULLIF ( - + ( + 39 ), + 73 ) + - - MIN ( + 36 ) + + 60 ) THEN NULL ELSE NULL END / - 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT COALESCE ( + 60, CASE NULLIF ( + 55, - + 47 ) WHEN 1 THEN 26 - - ( + 54 ) ELSE NULL END, + 41 * - COUNT( * ) )
----
60

skipif mysql # not compatible
query I rowsort label-2454
SELECT COALESCE ( + 60, CASE NULLIF ( + 55, - + 47 ) WHEN 1 THEN 26 - - ( + 54 ) ELSE NULL END, + 41 * - COUNT ( * ) )
----
60

query I rowsort
SELECT 87 + 84 + + 65
----
236

query I rowsort
SELECT 97 + 0
----
97

query I rowsort
SELECT DISTINCT 66 * - - 69
----
4554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2458
SELECT COUNT( * ) + 4 col1, + CAST( + 12 AS SIGNED ) + + NULLIF ( + 76, - + 69 )
----
5
88

skipif mysql # not compatible
query II rowsort label-2458
SELECT COUNT ( * ) + 4 col1, + CAST ( + 12 AS INTEGER ) + + NULLIF ( + 76, - + 69 )
----
5
88

query I rowsort
SELECT 42 + 71
----
113

query I rowsort
SELECT 16 * + 31
----
496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2461
SELECT DISTINCT 30 * + + CASE + 46 WHEN + CASE - NULLIF ( 46, - + ( + - 92 ) ) WHEN - 77 THEN + 96 * 26 * - + CAST( - + 88 AS SIGNED ) + - - 1 END THEN 96 END * COALESCE ( 47, - + 62 ) * + COUNT( * ) - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT 30 * + + CASE + 46 WHEN + CASE - NULLIF ( 46, - + ( + - 92 ) ) WHEN - 77 THEN + 96 * 26 * - + CAST ( - + 88 AS INTEGER ) + - - 1 END THEN 96 END * COALESCE ( 47, - + 62 ) * + COUNT ( * ) - 98 AS col2
----
NULL

query II rowsort
SELECT 76 AS col1, + 54 AS col2
----
76
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT ALL ( + 3 ) + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL ( + 3 ) + - COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2464
SELECT 60 DIV NULLIF ( + + 30, 68 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2464
SELECT 60 / NULLIF ( + + 30, 68 ) AS col2
----
2

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

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

query I rowsort
SELECT ALL - 11 * 95
----
-1045

query I rowsort
SELECT ALL + 57 + + 50
----
107

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2469
SELECT DISTINCT MAX( + 46 ) DIV + + 14 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT MAX ( + 46 ) / + + 14 AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2470
SELECT 50 DIV + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2470
SELECT 50 / + 83 AS col2
----
0

query I rowsort
SELECT ALL - 84 * + 8 * + + ( 21 )
----
-14112

query I rowsort
SELECT ( + CASE + ( + + 91 ) WHEN 48 THEN - + 42 END ) * 27 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2473
SELECT ALL - CAST( - 75 AS SIGNED ) * + 25 AS col2
----
1875

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL - CAST ( - 75 AS INTEGER ) * + 25 AS col2
----
1875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2474
SELECT ALL 93 + COALESCE ( + 99, + CAST( 59 AS SIGNED ), + 44 )
----
192

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL 93 + COALESCE ( + 99, + CAST ( 59 AS INTEGER ), + 44 )
----
192

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT + - 88 * + MIN( ALL + + 96 )
----
-8448

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT + - 88 * + MIN ( ALL + + 96 )
----
-8448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2477
SELECT + SUM( ALL + - CAST( - 38 AS DECIMAL ) ) * - CASE + - CASE COALESCE ( + MAX( DISTINCT - - 66 ), - 51 + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) ) WHEN + 30 - - + 94 THEN NULL ELSE + + 48 END WHEN - - 83 THEN 83 END AS col1, 12
----
NULL
12

skipif mysql # not compatible
query II rowsort label-2477
SELECT + SUM ( ALL + - CAST ( - 38 AS REAL ) ) * - CASE + - CASE COALESCE ( + MAX ( DISTINCT - - 66 ), - 51 + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) WHEN + 30 - - + 94 THEN NULL ELSE + + 48 END WHEN - - 83 THEN 83 END AS col1, 12
----
NULL
12

query I rowsort
SELECT ALL - - 75 - - 96
----
171

query II rowsort
SELECT + 64 col2, + 39 AS col2
----
64
39

query I rowsort
SELECT + 92 * - 54 - + + 53
----
-5021

query I rowsort
SELECT DISTINCT - - ( - 60 ) AS col2
----
-60

query II rowsort
SELECT ( ( 87 ) ) * + 66 AS col1, + 72
----
5742
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT ALL - 28 * + 2 + + + SUM( 3 ) * - + 50 * - 91
----
13594

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL - 28 * + 2 + + + SUM ( 3 ) * - + 50 * - 91
----
13594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2484
SELECT DISTINCT - 17 * + - 9 * - ( CAST( - 46 AS SIGNED ) ) col0
----
7038

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT - 17 * + - 9 * - ( CAST ( - 46 AS INTEGER ) ) col0
----
7038

query I rowsort
SELECT ALL - 84 * 64 AS col1
----
-5376

onlyif mysql # DIV for integer division: 
query II rowsort label-2486
SELECT 57 DIV ( + - 18 ) - - 5, - 32 DIV + + 26 AS col1
----
2
-1

skipif mysql # not compatible
query II rowsort label-2486
SELECT 57 / ( + - 18 ) - - 5, - 32 / + + 26 AS col1
----
2
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2487
SELECT ALL NULLIF ( + 11, + 64 ) DIV + + 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL NULLIF ( + 11, + 64 ) / + + 24 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT DISTINCT + COUNT( * ) + + + 54
----
55

skipif mysql # not compatible
query I rowsort label-2488
SELECT DISTINCT + COUNT ( * ) + + + 54
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2489
SELECT ALL CASE - 35 WHEN - - 40 THEN COALESCE ( - COUNT( * ), - + SUM( DISTINCT + 62 ) - - 71 + CASE - - 34 WHEN - 10 * - - 58 THEN NULL WHEN + COUNT( * ) / + - 62 * - - 83 * - COALESCE ( - + 94, - 92 - + 69 ) + - + 42 THEN + SUM( + - 4 ) END ) / + 61 + + + 53 ELSE - ( - CAST( NULL AS SIGNED ) ) * - 73 END + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL CASE - 35 WHEN - - 40 THEN COALESCE ( - COUNT ( * ), - + SUM ( DISTINCT + 62 ) - - 71 + CASE - - 34 WHEN - 10 * - - 58 THEN NULL WHEN + COUNT ( * ) / + - 62 * - - 83 * - COALESCE ( - + 94, - 92 - + 69 ) + - + 42 THEN + SUM ( + - 4 ) END ) / + 61 + + + 53 ELSE - ( - CAST ( NULL AS INTEGER ) ) * - 73 END + 58 AS col2
----
NULL

query I rowsort
SELECT 15 + - 85
----
-70

query I rowsort
SELECT 51 * + - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT NULLIF ( - - 20, - COUNT( * ) / 53 ) + + - COUNT( * ) + - COUNT( 88 )
----
18

skipif mysql # not compatible
query I rowsort label-2492
SELECT NULLIF ( - - 20, - COUNT ( * ) / 53 ) + + - COUNT ( * ) + - COUNT ( 88 )
----
18

query II rowsort
SELECT ALL 11 + + 10, - 33 AS col2
----
21
-33

query I rowsort
SELECT 41 + 42
----
83

query II rowsort
SELECT 76 * 10 * - + 66, 96 * - + 48 - + 19 AS col2
----
-50160
-4627

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

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

query I rowsort
SELECT ALL 5 + + NULLIF ( 86, - 15 * - + 18 * - 83 * - 94 ) * + 4 - + + 68
----
281

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT - MIN( 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-2498
SELECT - MIN ( 38 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT ALL MAX( DISTINCT - + 24 ) * + + 2 * - 80
----
3840

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL MAX ( DISTINCT - + 24 ) * + + 2 * - 80
----
3840

onlyif mysql # aggregate syntax: 
query II rowsort label-2500
SELECT ALL - SUM( ALL 48 ), 70 + + 47 AS col0
----
-48
117

skipif mysql # not compatible
query II rowsort label-2500
SELECT ALL - SUM ( ALL 48 ), 70 + + 47 AS col0
----
-48
117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2501
SELECT - COALESCE ( + 61, - 61 * + 11 + - - CAST( - 84 AS SIGNED ) ) - 97 AS col1, + 44 * - 22 * + 6 AS col2
----
-158
-5808

skipif mysql # not compatible
query II rowsort label-2501
SELECT - COALESCE ( + 61, - 61 * + 11 + - - CAST ( - 84 AS INTEGER ) ) - 97 AS col1, + 44 * - 22 * + 6 AS col2
----
-158
-5808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2502
SELECT DISTINCT CAST( - + CAST( 75 AS SIGNED ) AS SIGNED ), 23 * + MAX( ALL + 99 ) AS col2
----
-75
2277

skipif mysql # not compatible
query II rowsort label-2502
SELECT DISTINCT CAST ( - + CAST ( 75 AS INTEGER ) AS INTEGER ), 23 * + MAX ( ALL + 99 ) AS col2
----
-75
2277

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2504
SELECT 43 + + - 14 * - CAST( + 69 AS SIGNED )
----
1009

skipif mysql # not compatible
query I rowsort label-2504
SELECT 43 + + - 14 * - CAST ( + 69 AS INTEGER )
----
1009

query I rowsort
SELECT - 83 * - - 26 * 83 * 81 AS col2
----
-14508234

onlyif mysql # aggregate syntax: 
query II rowsort label-2506
SELECT 74 * + - COUNT( * ) AS col1, 6 + + 46 + + COUNT( * ) * + 67 * 45 AS col0
----
-74
3067

skipif mysql # not compatible
query II rowsort label-2506
SELECT 74 * + - COUNT ( * ) AS col1, 6 + + 46 + + COUNT ( * ) * + 67 * 45 AS col0
----
-74
3067

onlyif mysql # DIV for integer division: 
query II rowsort label-2507
SELECT ALL - 73 DIV 63, - 13 AS col0
----
-1
-13

skipif mysql # not compatible
query II rowsort label-2507
SELECT ALL - 73 / 63, - 13 AS col0
----
-1
-13

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

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

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

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

query I rowsort
SELECT + + 18 * 46
----
828

query I rowsort
SELECT ALL - 79 * + - 87 + + ( + + 9 )
----
6882

onlyif mysql # DIV for integer division: 
query I rowsort label-2512
SELECT - + 68 DIV - + 9
----
7

skipif mysql # not compatible
query I rowsort label-2512
SELECT - + 68 / - + 9
----
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT + MAX( - NULLIF ( - 46, + 58 ) ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-2514
SELECT + MAX ( - NULLIF ( - 46, + 58 ) ) AS col0
----
46

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2516
SELECT - 7 + + COUNT( * ) * 8, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-2516
SELECT - 7 + + COUNT ( * ) * 8, COUNT ( * )
----
1
1

query I rowsort
SELECT ALL + ( + ( - 47 ) ) * 60 + + 78
----
-2742

onlyif mysql # DIV for integer division: 
query I rowsort label-2518
SELECT ALL + 73 * - 33 * - 49 * 58 + + 19 DIV 88 AS col2
----
6846378

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL + 73 * - 33 * - 49 * 58 + + 19 / 88 AS col2
----
6846378

query I rowsort
SELECT ALL 71 + + 54
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT COUNT( * ) * 55 * - - 43 + 29 col1
----
2394

skipif mysql # not compatible
query I rowsort label-2520
SELECT COUNT ( * ) * 55 * - - 43 + 29 col1
----
2394

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

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL - ( + + COUNT ( * ) ) + - + 50 * - CAST ( NULL AS INTEGER ) + 10 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2522
SELECT DISTINCT - 74 + - - 9 DIV 48 DIV + 95
----
-74

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT - 74 + - - 9 / 48 / + 95
----
-74

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2524
SELECT - CASE + 0 WHEN CAST( - 88 AS DECIMAL ) THEN NULL WHEN + 28 * 77 + + - 8 THEN - COUNT( * ) * - 12 - COUNT( + 54 ) WHEN + + 28 + + + CASE + + 73 WHEN + CAST( AVG ( - ( - + 33 ) ) AS SIGNED ) / - 86 * + CASE + 15 WHEN - 94 * - + 87 THEN + ( - 88 ) END + + 78 + - 0 THEN + COUNT( * ) / 42 WHEN CASE ( 57 ) WHEN + CAST( CASE 49 WHEN NULLIF ( - 0, - COUNT( * ) ) / - ( - 96 + 40 ) THEN NULL WHEN - 95 * COUNT( * ) THEN 2 END AS SIGNED ) * 36 THEN + 66 * 84 - NULLIF ( + CASE WHEN NOT NULL IN ( 97 ) THEN + COUNT( * ) ELSE NULL END, - 88 * NULLIF ( 84 * + COUNT( * ), + 71 ) ) END / + 47 + 94 * 3 THEN NULL END THEN ( - 37 ) ELSE 91 END
----
-91

skipif mysql # not compatible
query I rowsort label-2524
SELECT - CASE + 0 WHEN CAST ( - 88 AS REAL ) THEN NULL WHEN + 28 * 77 + + - 8 THEN - COUNT ( * ) * - 12 - COUNT ( + 54 ) WHEN + + 28 + + + CASE + + 73 WHEN + CAST ( AVG ( - ( - + 33 ) ) AS INTEGER ) / - 86 * + CASE + 15 WHEN - 94 * - + 87 THEN + ( - 88 ) END + + 78 + - 0 THEN + COUNT ( * ) / 42 WHEN CASE ( 57 ) WHEN + CAST ( CASE 49 WHEN NULLIF ( - 0, - COUNT ( * ) ) / - ( - 96 + 40 ) THEN NULL WHEN - 95 * COUNT ( * ) THEN 2 END AS INTEGER ) * 36 THEN + 66 * 84 - NULLIF ( + CASE WHEN NOT NULL IN ( 97 ) THEN + COUNT ( * ) ELSE NULL END, - 88 * NULLIF ( 84 * + COUNT ( * ), + 71 ) ) END / + 47 + 94 * 3 THEN NULL END THEN ( - 37 ) ELSE 91 END
----
-91

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

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

query I rowsort
SELECT DISTINCT - ( - + ( - ( - 94 ) ) ) * - 86
----
-8084

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2527
SELECT DISTINCT + COUNT( * ) * ( + CASE - + ( - + 64 ) WHEN + - 97 THEN NULL WHEN - 1 - - 51 + + + 45 THEN + + CAST( NULL AS SIGNED ) + + 47 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT + COUNT ( * ) * ( + CASE - + ( - + 64 ) WHEN + - 97 THEN NULL WHEN - 1 - - 51 + + + 45 THEN + + CAST ( NULL AS INTEGER ) + + 47 ELSE NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2528
SELECT DISTINCT 64 DIV + 61 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT 64 / + 61 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2529
SELECT - SUM( ALL CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT - SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL ( + + 32 ) col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT + MIN( 21 ) + + - 5 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-2531
SELECT + MIN ( 21 ) + + - 5 AS col2
----
16

query I rowsort
SELECT ALL 69 - + 73
----
-4

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2535
SELECT ALL - 44 * 36 * + ( - 15 ) + + COALESCE ( + + 5, + 32 ) DIV - 20 AS col0
----
23760

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL - 44 * 36 * + ( - 15 ) + + COALESCE ( + + 5, + 32 ) / - 20 AS col0
----
23760

query I rowsort
SELECT + - COALESCE ( - + 73, 20 ) * - 10
----
-730

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

query II rowsort
SELECT ALL 99 AS col2, - 63 * - 78 AS col1
----
99
4914

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

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL - ( COUNT ( * ) ) * - + 54 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT DISTINCT - SUM( ALL CASE - 58 WHEN - + 29 + + 63 * 69 THEN + - 73 ELSE - 10 END ) * 17 * + + 71 AS col1
----
12070

skipif mysql # not compatible
query I rowsort label-2540
SELECT DISTINCT - SUM ( ALL CASE - 58 WHEN - + 29 + + 63 * 69 THEN + - 73 ELSE - 10 END ) * 17 * + + 71 AS col1
----
12070

query I rowsort
SELECT + - 81 + - 18 + - 21
----
-120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT - + 10 * MAX( + 34 ) * + 37 + + COUNT( * ) + 90 * ( SUM( ALL + ( - - 4 ) ) ) AS col2
----
-12219

skipif mysql # not compatible
query I rowsort label-2543
SELECT - + 10 * MAX ( + 34 ) * + 37 + + COUNT ( * ) + 90 * ( SUM ( ALL + ( - - 4 ) ) ) AS col2
----
-12219

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT + 19 * - COALESCE ( - 88, 7 ) * + + 80 * COUNT( * )
----
133760

skipif mysql # not compatible
query I rowsort label-2544
SELECT + 19 * - COALESCE ( - 88, 7 ) * + + 80 * COUNT ( * )
----
133760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2545
SELECT 87 DIV 8 - + SUM( DISTINCT + 57 ) + ( 89 ) AS col2, CAST( - 94 AS SIGNED ) + - 65 * + 45 - - + 46 AS col2
----
42
-2973

skipif mysql # not compatible
query II rowsort label-2545
SELECT 87 / 8 - + SUM ( DISTINCT + 57 ) + ( 89 ) AS col2, CAST ( - 94 AS INTEGER ) + - 65 * + 45 - - + 46 AS col2
----
42
-2973

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT ALL + COUNT( * ) * + 82 * + - ( 25 ) + + COALESCE ( + NULLIF ( + COUNT( * ), AVG ( 89 ) + + 67 / 22 ), + 79 * + + COUNT( * ) - + COUNT( * ) + - 54, + + 53 * - - 39 * + + 50 + - 0 * + 42 ) + - 73 * + + 93 * 0 AS col1
----
-2049

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL + COUNT ( * ) * + 82 * + - ( 25 ) + + COALESCE ( + NULLIF ( + COUNT ( * ), AVG ( 89 ) + + 67 / 22 ), + 79 * + + COUNT ( * ) - + COUNT ( * ) + - 54, + + 53 * - - 39 * + + 50 + - 0 * + 42 ) + - 73 * + + 93 * 0 AS col1
----
-2049

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

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

query I rowsort
SELECT DISTINCT ( 44 ) * - + 97 AS col0
----
-4268

query I rowsort
SELECT - 77 * + ( + 90 )
----
-6930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2551
SELECT 33 * 8 * 26 * - MIN( + COALESCE ( + CAST( - 21 AS SIGNED ), 89 ) ) * + 26 + 44 - - 25
----
3747813

skipif mysql # not compatible
query I rowsort label-2551
SELECT 33 * 8 * 26 * - MIN ( + COALESCE ( + CAST ( - 21 AS INTEGER ), 89 ) ) * + 26 + 44 - - 25
----
3747813

query I rowsort
SELECT DISTINCT + 42 * 60 * + 55 AS col2
----
138600

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT + 41 * + MIN( ALL + 19 ) AS col2
----
779

skipif mysql # not compatible
query I rowsort label-2554
SELECT + 41 * + MIN ( ALL + 19 ) AS col2
----
779

query II rowsort
SELECT NULLIF ( - + 71, 10 * - 20 ), - 19 AS col1
----
-71
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-2556
SELECT NULLIF ( - - 20, + 99 / + 96 ) AS col0, - COUNT( * ) AS col1
----
20
-1

skipif mysql # not compatible
query II rowsort label-2556
SELECT NULLIF ( - - 20, + 99 / + 96 ) AS col0, - COUNT ( * ) AS col1
----
20
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2557
SELECT ALL CAST( + COALESCE ( 27, + 73 * 82 ) AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL CAST ( + COALESCE ( 27, + 73 * 82 ) AS INTEGER )
----
27

query II rowsort
SELECT DISTINCT + 80 * + + 71 AS col0, ( 34 ) * - 23 AS col0
----
5680
-782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2559
SELECT DISTINCT - 3 * 51 * + + COUNT( * ) - - 43 - CASE + 50 WHEN + CAST( NULL AS SIGNED ) THEN + 68 + - - 66 END * + ( - COUNT( * ) ) + - 68 + + 77 + COALESCE ( - 95, 67 + - - COUNT( * ), + 36 / - + 72 * 57 ) * - COUNT( - 8 ) * - COUNT( * ) + - CASE - COUNT( * ) WHEN - CAST( - + COUNT( * ) AS SIGNED ) - 22 * + + COUNT( * ) * - 33 THEN + COALESCE ( 77, CAST( + 16 AS SIGNED ) ) * NULLIF ( + 68 + CAST( - 45 AS SIGNED ) * 22, + 60 + + 75 ) WHEN 1 + 41 THEN - 57 END + ( 44 ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT - 3 * 51 * + + COUNT ( * ) - - 43 - CASE + 50 WHEN + CAST ( NULL AS INTEGER ) THEN + 68 + - - 66 END * + ( - COUNT ( * ) ) + - 68 + + 77 + COALESCE ( - 95, 67 + - - COUNT ( * ), + 36 / - + 72 * 57 ) * - COUNT ( - 8 ) * - COUNT ( * ) + - CASE - COUNT ( * ) WHEN - CAST ( - + COUNT ( * ) AS INTEGER ) - 22 * + + COUNT ( * ) * - 33 THEN + COALESCE ( 77, CAST ( + 16 AS INTEGER ) ) * NULLIF ( + 68 + CAST ( - 45 AS INTEGER ) * 22, + 60 + + 75 ) WHEN 1 + 41 THEN - 57 END + ( 44 ) / - COUNT ( * )
----
NULL

query II rowsort
SELECT ALL ( - 74 ) AS col1, + 44
----
-74
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT - MIN( DISTINCT - 88 ) * + 95 * - + 18 * - + 52 + + 0 + - 64
----
7824896

skipif mysql # not compatible
query I rowsort label-2561
SELECT - MIN ( DISTINCT - 88 ) * + 95 * - + 18 * - + 52 + + 0 + - 64
----
7824896

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT - COALESCE ( 83, + COALESCE ( 67, - 17 + + 12 ) * + 19 DIV - 8 DIV - + 77 )
----
-83

skipif mysql # not compatible
query I rowsort label-2562
SELECT - COALESCE ( 83, + COALESCE ( 67, - 17 + + 12 ) * + 19 / - 8 / - + 77 )
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2563
SELECT - 51 + - 82 DIV + - 89 - - - COALESCE ( NULLIF ( + + 11, - 86 ), + + MIN( ALL + 0 ), - 67 )
----
-62

skipif mysql # not compatible
query I rowsort label-2563
SELECT - 51 + - 82 / + - 89 - - - COALESCE ( NULLIF ( + + 11, - 86 ), + + MIN ( ALL + 0 ), - 67 )
----
-62

query I rowsort
SELECT ALL + + ( - 58 ) * + 73 AS col2
----
-4234

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2566
SELECT - COALESCE ( - + 95, 35 ) DIV - 8 + + 42
----
31

skipif mysql # not compatible
query I rowsort label-2566
SELECT - COALESCE ( - + 95, 35 ) / - 8 + + 42
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2567
SELECT - 79 + + 57 DIV - + COALESCE ( - - 49, ( + - ( + 40 ) ), 50 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-2567
SELECT - 79 + + 57 / - + COALESCE ( - - 49, ( + - ( + 40 ) ), 50 ) AS col1
----
-80

query I rowsort
SELECT - 92 + 92
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2569
SELECT - 1 DIV COUNT( DISTINCT + 23 ) * 62 - - 62 - - 13
----
13

skipif mysql # not compatible
query I rowsort label-2569
SELECT - 1 / COUNT ( DISTINCT + 23 ) * 62 - - 62 - - 13
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2570
SELECT DISTINCT - 90 DIV - 37 col2, COUNT( * ) AS col1
----
2
1

skipif mysql # not compatible
query II rowsort label-2570
SELECT DISTINCT - 90 / - 37 col2, COUNT ( * ) AS col1
----
2
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2571
SELECT ALL + COALESCE ( - - CASE WHEN NOT - 73 < + + 91 THEN + - 13 END, + 62 ), + 14 DIV + 68 col0
----
62
0

skipif mysql # not compatible
query II rowsort label-2571
SELECT ALL + COALESCE ( - - CASE WHEN NOT - 73 < + + 91 THEN + - 13 END, + 62 ), + 14 / + 68 col0
----
62
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2573
SELECT + COUNT( * ) DIV 27 + - 74
----
-74

skipif mysql # not compatible
query I rowsort label-2573
SELECT + COUNT ( * ) / 27 + - 74
----
-74

query I rowsort
SELECT DISTINCT 7 + - - 26 AS col2
----
33

query I rowsort
SELECT ALL - 97 + - 61 + + 82
----
-76

query I rowsort
SELECT ALL 48 * 98 - - 75 AS col0
----
4779

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

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

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

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

query I rowsort
SELECT ALL 18 + 12 AS col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2580
SELECT 56 * - COALESCE ( 71, 58 DIV 65 + 5 ) + + 23 col1
----
-3953

skipif mysql # not compatible
query I rowsort label-2580
SELECT 56 * - COALESCE ( 71, 58 / 65 + 5 ) + + 23 col1
----
-3953

query II rowsort
SELECT 69 AS col0, - 5
----
69
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-2582
SELECT - 31 * + 19 + - + COUNT( * ) * MIN( 68 ) * 1, 97 AS col0
----
-657
97

skipif mysql # not compatible
query II rowsort label-2582
SELECT - 31 * + 19 + - + COUNT ( * ) * MIN ( 68 ) * 1, 97 AS col0
----
-657
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2583
SELECT ALL COALESCE ( - 4, CAST( NULL AS SIGNED ) DIV - 62 DIV - - CAST( NULL AS SIGNED ) * + 22 DIV - + 28 * NULLIF ( 68, + + 29 * 94 ), + 94 - COUNT( * ) + - + 55 * + + 87 + 50 * + - COUNT( * ) ) - 66 + + NULLIF ( 58, - 12 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL COALESCE ( - 4, CAST ( NULL AS INTEGER ) / - 62 / - - CAST ( NULL AS INTEGER ) * + 22 / - + 28 * NULLIF ( 68, + + 29 * 94 ), + 94 - COUNT ( * ) + - + 55 * + + 87 + 50 * + - COUNT ( * ) ) - 66 + + NULLIF ( 58, - 12 ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT ALL 88 * - COUNT( * ) col0
----
-88

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL 88 * - COUNT ( * ) col0
----
-88

query I rowsort
SELECT 50 + + 41 + + + ( + - 17 )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-2586
SELECT ALL 0 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL 0 / - 49
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2587
SELECT DISTINCT 17 DIV + + 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT 17 / + + 23 AS col1
----
0

query I rowsort
SELECT ALL + 94 * + + 25
----
2350

query I rowsort
SELECT ( + + 71 ) + - - 68 AS col0
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2590
SELECT 69 DIV ( + 95 ) * COUNT( * ) * ( + 47 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2590
SELECT 69 / ( + 95 ) * COUNT ( * ) * ( + 47 ) AS col0
----
0

query I rowsort
SELECT ALL 52 * + 56
----
2912

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

skipif mysql # not compatible
query I rowsort label-2592
SELECT 40 * - - COUNT ( * )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2593
SELECT 47 / - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2593
SELECT 47 / - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 92 * - - 98
----
9016

query II rowsort
SELECT 59 * - 90 * - 53, 28 AS col2
----
281430
28

query I rowsort
SELECT ALL - 61 + 30 AS col1
----
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT - - ( + - SUM( - + 73 ) ) col1
----
73

skipif mysql # not compatible
query I rowsort label-2598
SELECT - - ( + - SUM ( - + 73 ) ) col1
----
73

query I rowsort
SELECT 0 * - - 50 col1
----
0

query I rowsort
SELECT + 26 * + 80 + 67
----
2147

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT DISTINCT - 67 + COUNT( * ) * + - 71 * CASE - 16 WHEN COUNT( * ) + - 97 THEN 44 + + 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2603
SELECT DISTINCT - 67 + COUNT ( * ) * + - 71 * CASE - 16 WHEN COUNT ( * ) + - 97 THEN 44 + + 97 END
----
NULL

query I rowsort
SELECT ALL - + 57 + - 75 + + + 93 * - 42 AS col2
----
-4038

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT - 18 + + COUNT( - + 50 )
----
-17

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT - 18 + + COUNT ( - + 50 )
----
-17

query I rowsort
SELECT 77 + + 66 AS col0
----
143

query I rowsort
SELECT DISTINCT + 22 * ( + 19 ) - 15
----
403

query I rowsort
SELECT 25 * - 27 AS col2
----
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT MAX( ALL - 56 ) * COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-2609
SELECT MAX ( ALL - 56 ) * COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2610
SELECT 70 * - 17 - + 21 + 42 DIV ( + - 46 ) DIV COUNT( * ) AS col2
----
-1211

skipif mysql # not compatible
query I rowsort label-2610
SELECT 70 * - 17 - + 21 + 42 / ( + - 46 ) / COUNT ( * ) AS col2
----
-1211

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT 70 * - NULLIF ( - 16, - 11 + 68 + - 84 + - 29 * + 69 * + COUNT( * ) ) AS col0
----
1120

skipif mysql # not compatible
query I rowsort label-2611
SELECT 70 * - NULLIF ( - 16, - 11 + 68 + - 84 + - 29 * + 69 * + COUNT ( * ) ) AS col0
----
1120

query I rowsort
SELECT ALL 12 * - - 77
----
924

query II rowsort
SELECT DISTINCT - 8 AS col2, - 31 * - 58 AS col2
----
-8
1798

query I rowsort
SELECT DISTINCT 47 * - 94 AS col1
----
-4418

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT DISTINCT - NULLIF ( - COUNT( * ), - 82 / + 98 ) * MIN( - 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT - NULLIF ( - COUNT ( * ), - 82 / + 98 ) * MIN ( - 93 ) AS col1
----
-93

query II rowsort
SELECT DISTINCT - ( - 48 ) col0, + ( + + 13 ) AS col2
----
48
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2617
SELECT ALL - CAST( + 56 AS SIGNED ) * 18 col1
----
-1008

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL - CAST ( + 56 AS INTEGER ) * 18 col1
----
-1008

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT SUM( DISTINCT + - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-2619
SELECT SUM ( DISTINCT + - 95 )
----
-95

query I rowsort
SELECT 50 * 99 AS col1
----
4950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2621
SELECT 85 * - SUM( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2621
SELECT 85 * - SUM ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT COUNT( * ) * - 99 - + 43
----
-142

skipif mysql # not compatible
query I rowsort label-2622
SELECT COUNT ( * ) * - 99 - + 43
----
-142

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2623
SELECT + CASE CAST( NULL AS DECIMAL ) WHEN + - 31 THEN - + 23 + 31 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2623
SELECT + CASE CAST ( NULL AS REAL ) WHEN + - 31 THEN - + 23 + 31 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2624
SELECT 60 AS col1, CAST( NULL AS SIGNED )
----
60
NULL

skipif mysql # not compatible
query II rowsort label-2624
SELECT 60 AS col1, CAST ( NULL AS INTEGER )
----
60
NULL

query I rowsort
SELECT + 4 * + - 69
----
-276

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT ALL + 96 + + CASE - 21 WHEN 99 THEN COUNT( * ) + - COALESCE ( + + 2, + 4 * - 24 * 48 + + - 47, - + 42 ) WHEN - 55 * - 88 + - 25 THEN NULL END + - - ( + + COUNT( + 2 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL + 96 + + CASE - 21 WHEN 99 THEN COUNT ( * ) + - COALESCE ( + + 2, + 4 * - 24 * 48 + + - 47, - + 42 ) WHEN - 55 * - 88 + - 25 THEN NULL END + - - ( + + COUNT ( + 2 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 66 + - - 6 + + 74
----
146

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

skipif mysql # not compatible
query I rowsort label-2629
SELECT - 10 / COUNT ( * )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT - + COUNT( * ) + + 6 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2630
SELECT - + COUNT ( * ) + + 6 AS col0
----
5

query I rowsort
SELECT ALL - - 21 + 36 * + 75 * - - 5 * + 75
----
1012521

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT ALL - - 29 * COUNT( * ) + 88
----
117

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL - - 29 * COUNT ( * ) + 88
----
117

query I rowsort
SELECT + 66 * 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2636
SELECT DISTINCT - CAST( + - 49 AS SIGNED ) * + + 47 * - 13 AS col0
----
-29939

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT - CAST ( + - 49 AS INTEGER ) * + + 47 * - 13 AS col0
----
-29939

onlyif mysql # DIV for integer division: 
query I rowsort label-2637
SELECT - 1 DIV + 23 * - 99 * - 23 col1
----
0

skipif mysql # not compatible
query I rowsort label-2637
SELECT - 1 / + 23 * - 99 * - 23 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT - COUNT( * ) * 38 * + MAX( DISTINCT - - ( + - 68 ) ) AS col0
----
2584

skipif mysql # not compatible
query I rowsort label-2638
SELECT - COUNT ( * ) * 38 * + MAX ( DISTINCT - - ( + - 68 ) ) AS col0
----
2584

query I rowsort
SELECT ALL - 66 * - 68
----
4488

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT ALL 85 * 38 - - + COUNT( * ) col0
----
3231

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL 85 * 38 - - + COUNT ( * ) col0
----
3231

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2643
SELECT + CAST( NULL AS DECIMAL ) * 26 - + 44 / 32
----
NULL

skipif mysql # not compatible
query I rowsort label-2643
SELECT + CAST ( NULL AS REAL ) * 26 - + 44 / 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT - 59 + - COUNT( * ) - - - COUNT( * ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-2644
SELECT - 59 + - COUNT ( * ) - - - COUNT ( * ) AS col1
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2645
SELECT - COALESCE ( + - CAST( + 76 AS SIGNED ), + + CAST( - 24 AS SIGNED ) * - - 57, - + 79 ) + 27 * - 70
----
-1814

skipif mysql # not compatible
query I rowsort label-2645
SELECT - COALESCE ( + - CAST ( + 76 AS INTEGER ), + + CAST ( - 24 AS INTEGER ) * - - 57, - + 79 ) + 27 * - 70
----
-1814

onlyif mysql # DIV for integer division: 
query II rowsort label-2646
SELECT ALL + 39 DIV - 69, - 77 + + 34 AS col2
----
0
-43

skipif mysql # not compatible
query II rowsort label-2646
SELECT ALL + 39 / - 69, - 77 + + 34 AS col2
----
0
-43

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

skipif mysql # not compatible
query I rowsort label-2647
SELECT - COUNT ( * ) / 99 * 80
----
0

query I rowsort
SELECT + ( - 6 ) * 21 * 29 AS col1
----
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT - COUNT( ALL + - 62 ) + 62 * 51 AS col2
----
3161

skipif mysql # not compatible
query I rowsort label-2649
SELECT - COUNT ( ALL + - 62 ) + 62 * 51 AS col2
----
3161

query I rowsort
SELECT DISTINCT + 21 * - - 39
----
819

query II rowsort
SELECT 31 * + + ( - ( - - 52 ) ) + - 72 AS col0, - 66 AS col1
----
-1684
-66

query I rowsort
SELECT ALL 96 * + 99 * - + NULLIF ( - - 2, - + 48 * 69 ) * - + 92 - 54 + - 68 + 42 * + 62
----
1751218

query I rowsort
SELECT ALL + 73 * + 42 + 48 * 11
----
3594

query I rowsort
SELECT DISTINCT - 58 * 68 col0
----
-3944

query I rowsort
SELECT ALL 70 * + - 2 + - 48 + - 87 col0
----
-275

query I rowsort
SELECT DISTINCT 7 * + - 90 + + - 89 + + 68 AS col2
----
-651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2657
SELECT + + 89 + - 77 * + CAST( NULL AS SIGNED ) + 69 + 5 + + 21 + - 17 + + - 99 * + 58 * ( + + COUNT( * ) ) * CASE MIN( ALL + 54 ) WHEN - ( + 27 ) - SUM( ALL - - 32 ) - 77 THEN - - COUNT( * ) WHEN + + 63 THEN + - CASE 44 WHEN - 24 * COUNT( * ) THEN - 80 WHEN - ( + + 36 ) + + 29 + - 17 * - 28 THEN 55 + + 22 * - 55 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-2657
SELECT + + 89 + - 77 * + CAST ( NULL AS INTEGER ) + 69 + 5 + + 21 + - 17 + + - 99 * + 58 * ( + + COUNT ( * ) ) * CASE MIN ( ALL + 54 ) WHEN - ( + 27 ) - SUM ( ALL - - 32 ) - 77 THEN - - COUNT ( * ) WHEN + + 63 THEN + - CASE 44 WHEN - 24 * COUNT ( * ) THEN - 80 WHEN - ( + + 36 ) + + 29 + - 17 * - 28 THEN 55 + + 22 * - 55 END END
----
NULL

query I rowsort
SELECT + - 78 * - NULLIF ( 32, + 9 ) AS col2
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT DISTINCT 96 + + - 21 - 39 / COUNT( * ) + CASE + + COUNT( * ) WHEN - 96 THEN + COUNT( * ) WHEN 90 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT 96 + + - 21 - 39 / COUNT ( * ) + CASE + + COUNT ( * ) WHEN - 96 THEN + COUNT ( * ) WHEN 90 THEN NULL END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT + 84 * + ( - 47 ) + - COUNT( 48 ) + - 86
----
-4035

skipif mysql # not compatible
query I rowsort label-2661
SELECT + 84 * + ( - 47 ) + - COUNT ( 48 ) + - 86
----
-4035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2662
SELECT ALL CASE - COALESCE ( 73, - AVG ( + CAST( - 4 AS SIGNED ) ) + - + 40, 79 * 17 ) WHEN - NULLIF ( - - CAST( + 22 AS SIGNED ), SUM( - CAST( + - ( 63 ) AS DECIMAL ) ) ) * - CAST( + 89 AS SIGNED ) / - 69 / + CASE 39 WHEN - 86 THEN NULL WHEN + 68 * CAST( - CAST( + - COUNT( * ) AS SIGNED ) AS SIGNED ) * - 15 + - - CAST( NULL AS SIGNED ) THEN - 46 END + - NULLIF ( + AVG ( + 65 ), + 98 ) THEN NULL WHEN + COUNT( * ) THEN - 6 - COUNT( 56 ) / 74 END / - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL CASE - COALESCE ( 73, - AVG ( + CAST ( - 4 AS INTEGER ) ) + - + 40, 79 * 17 ) WHEN - NULLIF ( - - CAST ( + 22 AS INTEGER ), SUM ( - CAST ( + - ( 63 ) AS REAL ) ) ) * - CAST ( + 89 AS INTEGER ) / - 69 / + CASE 39 WHEN - 86 THEN NULL WHEN + 68 * CAST ( - CAST ( + - COUNT ( * ) AS INTEGER ) AS INTEGER ) * - 15 + - - CAST ( NULL AS INTEGER ) THEN - 46 END + - NULLIF ( + AVG ( + 65 ), + 98 ) THEN NULL WHEN + COUNT ( * ) THEN - 6 - COUNT ( 56 ) / 74 END / - 90
----
NULL

query I rowsort
SELECT DISTINCT + 90 - - ( - - 27 )
----
117

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL NULLIF ( COUNT( ALL + 21 ), - 0 )
----
1

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL NULLIF ( COUNT ( ALL + 21 ), - 0 )
----
1

query II rowsort
SELECT 99, 21 AS col2
----
99
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2668
SELECT ALL + 95 AS col0, + 91 DIV + + COUNT( * )
----
95
91

skipif mysql # not compatible
query II rowsort label-2668
SELECT ALL + 95 AS col0, + 91 / + + COUNT ( * )
----
95
91

query I rowsort
SELECT + 31 * + 85 - - 14 AS col0
----
2649

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT + 59 * - 86 * + 25 * - MAX( ALL - 72 ) col2
----
-9133200

skipif mysql # not compatible
query I rowsort label-2670
SELECT + 59 * - 86 * + 25 * - MAX ( ALL - 72 ) col2
----
-9133200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2671
SELECT + ( - - CAST( COUNT( - 12 ) AS SIGNED ) ) * 3 * - 99 + + 52 AS col1
----
-245

skipif mysql # not compatible
query I rowsort label-2671
SELECT + ( - - CAST ( COUNT ( - 12 ) AS INTEGER ) ) * 3 * - 99 + + 52 AS col1
----
-245

query I rowsort
SELECT DISTINCT + 53 * - ( - + 54 ) AS col2
----
2862

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2673
SELECT ALL + 35 + - + MAX( DISTINCT 69 ) DIV 17 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL + 35 + - + MAX ( DISTINCT 69 ) / 17 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT ( - + COUNT( ALL + 23 ) ) * - - 37 col1
----
-37

skipif mysql # not compatible
query I rowsort label-2674
SELECT ( - + COUNT ( ALL + 23 ) ) * - - 37 col1
----
-37

query I rowsort
SELECT ( - 22 ) * - ( + 59 ) + + - 17 - + 46 * + 83 * 75
----
-285069

onlyif mysql # aggregate syntax: 
query II rowsort label-2676
SELECT ALL - 4 AS col1, - 31 * MIN( 21 ) AS col2
----
-4
-651

skipif mysql # not compatible
query II rowsort label-2676
SELECT ALL - 4 AS col1, - 31 * MIN ( 21 ) AS col2
----
-4
-651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2677
SELECT DISTINCT + 17 + + - CAST( NULL AS SIGNED ) * - NULLIF ( - CAST( NULL AS SIGNED ), + - COALESCE ( 8, - 51 ) ) / 99 + 60 + + 29 + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT + 17 + + - CAST ( NULL AS INTEGER ) * - NULLIF ( - CAST ( NULL AS INTEGER ), + - COALESCE ( 8, - 51 ) ) / 99 + 60 + + 29 + 38 AS col2
----
NULL

query I rowsort
SELECT ALL + 36 + - ( 11 )
----
25

query I rowsort
SELECT 91 * + 62 AS col2
----
5642

query I rowsort
SELECT DISTINCT + 18 + - 87 + 83 * + + 74
----
6073

onlyif mysql # aggregate syntax: 
query II rowsort label-2681
SELECT ALL - SUM( + 85 ) + + 13 AS col1, 88
----
-72
88

skipif mysql # not compatible
query II rowsort label-2681
SELECT ALL - SUM ( + 85 ) + + 13 AS col1, 88
----
-72
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2682
SELECT 4 DIV + ( - 73 ) * 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2682
SELECT 4 / + ( - 73 ) * 41 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2683
SELECT DISTINCT + + 92 DIV - + 63 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT + + 92 / - + 63 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2684
SELECT 79, MIN( + - ( - CAST( NULL AS SIGNED ) ) ) + + MAX( + ( + - 54 ) ) AS col2
----
79
NULL

skipif mysql # not compatible
query II rowsort label-2684
SELECT 79, MIN ( + - ( - CAST ( NULL AS INTEGER ) ) ) + + MAX ( + ( + - 54 ) ) AS col2
----
79
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2685
SELECT 27 DIV + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2685
SELECT 27 / + 79 AS col0
----
0

query I rowsort
SELECT DISTINCT - 80 - - + CASE - 3 WHEN - - ( + 74 ) + + 4 THEN - 18 END - - - 64 + + ( - NULLIF ( + 81, + 58 ) ) / 94 + - 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2687
SELECT ALL 85 - - + COUNT( * ) + - 46 DIV - 16 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL 85 - - + COUNT ( * ) + - 46 / - 16 AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-2688
SELECT ALL - 32 AS col0, 16 + - 21 * + COUNT( 81 )
----
-32
-5

skipif mysql # not compatible
query II rowsort label-2688
SELECT ALL - 32 AS col0, 16 + - 21 * + COUNT ( 81 )
----
-32
-5

query I rowsort
SELECT - - COALESCE ( - - 65, - + 30 )
----
65

query II rowsort
SELECT DISTINCT 42 AS col0, + 84 * - 67 col1
----
42
-5628

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2692
SELECT + 21 * - - 66 - 53 + + 4 AS col2, - 20 + 24 + + CAST( NULL AS DECIMAL ) + - + 18 * - 56
----
1337
NULL

skipif mysql # not compatible
query II rowsort label-2692
SELECT + 21 * - - 66 - 53 + + 4 AS col2, - 20 + 24 + + CAST ( NULL AS REAL ) + - + 18 * - 56
----
1337
NULL

query II rowsort
SELECT 65 col2, 27 * - 63 AS col1
----
65
-1701

query I rowsort
SELECT ALL - 86 - + 15
----
-101

query II rowsort
SELECT - 21 AS col1, + 11
----
-21
11

query I rowsort
SELECT 1 * - ( + 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT ( + + ( - 3 ) ) + + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-2697
SELECT ( + + ( - 3 ) ) + + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2698
SELECT ALL 93, 92 * + COUNT( * ) AS col1
----
93
92

skipif mysql # not compatible
query II rowsort label-2698
SELECT ALL 93, 92 * + COUNT ( * ) AS col1
----
93
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2699
SELECT - 61 + + + 38 - CAST( + - 97 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-2699
SELECT - 61 + + + 38 - CAST ( + - 97 AS INTEGER )
----
74

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2700
SELECT 24 + + CAST( NULL AS DECIMAL ) + - 82 - - + 93 * + 29 / AVG ( + 72 ) * 90, 86 * - - 94 AS col0
----
NULL
8084

skipif mysql # not compatible
query II rowsort label-2700
SELECT 24 + + CAST ( NULL AS REAL ) + - 82 - - + 93 * + 29 / AVG ( + 72 ) * 90, 86 * - - 94 AS col0
----
NULL
8084

query I rowsort
SELECT ALL 89 * 76
----
6764

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2702
SELECT CASE + + 97 WHEN - 92 THEN ( - CAST( NULL AS DECIMAL ) ) WHEN + - 65 * - 12 * - + 21 THEN NULL END * + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-2702
SELECT CASE + + 97 WHEN - 92 THEN ( - CAST ( NULL AS REAL ) ) WHEN + - 65 * - 12 * - + 21 THEN NULL END * + - 97
----
NULL

query I rowsort
SELECT DISTINCT 24 * 11
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-2704
SELECT 40 DIV - + 38 col1
----
-1

skipif mysql # not compatible
query I rowsort label-2704
SELECT 40 / - + 38 col1
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2706
SELECT CASE + 62 WHEN 38 * - ( + 72 ) + + + ( - 57 ) THEN NULL WHEN - ( 40 ) * - 22 THEN - - NULLIF ( + 20, COUNT( * ) ) END + + COUNT( * ) + CAST( + + ( + - 12 ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2706
SELECT CASE + 62 WHEN 38 * - ( + 72 ) + + + ( - 57 ) THEN NULL WHEN - ( 40 ) * - 22 THEN - - NULLIF ( + 20, COUNT ( * ) ) END + + COUNT ( * ) + CAST ( + + ( + - 12 ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 47 + 40
----
87

query I rowsort
SELECT ALL 23 + - 95
----
-72

query I rowsort
SELECT DISTINCT 41 + - 79 * - 3
----
278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2710
SELECT CASE + + 35 WHEN - CAST( + + 76 AS SIGNED ) THEN NULL ELSE - - 39 END * + 20 DIV - COUNT( * )
----
-780

skipif mysql # not compatible
query I rowsort label-2710
SELECT CASE + + 35 WHEN - CAST ( + + 76 AS INTEGER ) THEN NULL ELSE - - 39 END * + 20 / - COUNT ( * )
----
-780

query II rowsort
SELECT DISTINCT 29 * + 22 AS col2, COALESCE ( - + 78, + 7 ) col2
----
638
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT DISTINCT - MAX( + 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT - MAX ( + 13 ) AS col0
----
-13

query I rowsort
SELECT DISTINCT 46 + - 52
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-2714
SELECT + COUNT( DISTINCT - 29 ), - 98 + + - COUNT( * ) AS col2
----
1
-99

skipif mysql # not compatible
query II rowsort label-2714
SELECT + COUNT ( DISTINCT - 29 ), - 98 + + - COUNT ( * ) AS col2
----
1
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2715
SELECT ALL + COALESCE ( 87, 95 + - - COUNT( * ) * 39, - - ( + SUM( - 60 ) ) - 90 DIV 81 ) + - 1 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL + COALESCE ( 87, 95 + - - COUNT ( * ) * 39, - - ( + SUM ( - 60 ) ) - 90 / 81 ) + - 1 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT - CASE - MIN( - 58 ) WHEN + 13 THEN + - 69 + 34 + + 20 * 48 + + 46 END * COUNT( * ) - ( MAX( + + 65 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT - CASE - MIN ( - 58 ) WHEN + 13 THEN + - 69 + 34 + + 20 * 48 + + 46 END * COUNT ( * ) - ( MAX ( + + 65 ) ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2718
SELECT 4 DIV + + 43 DIV COUNT( * ) * 53 + 65
----
65

skipif mysql # not compatible
query I rowsort label-2718
SELECT 4 / + + 43 / COUNT ( * ) * 53 + 65
----
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2719
SELECT + 82 * + 91 + + 31 / + 76 * - 10 + 35 + + CAST( + - COUNT( - + 69 ) AS DECIMAL ) + 9 * + 46 / - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT + 82 * + 91 + + 31 / + 76 * - 10 + 35 + + CAST ( + - COUNT ( - + 69 ) AS REAL ) + 9 * + 46 / - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL 90 * - - 38 AS col0
----
3420

query I rowsort
SELECT 98 + - ( - 84 ) AS col2
----
182

onlyif mysql # aggregate syntax: 
query II rowsort label-2722
SELECT DISTINCT - 40 * + + 96, - MIN( 44 ) AS col2
----
-3840
-44

skipif mysql # not compatible
query II rowsort label-2722
SELECT DISTINCT - 40 * + + 96, - MIN ( 44 ) AS col2
----
-3840
-44

query I rowsort
SELECT DISTINCT 17 - 1 - 88
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-2724
SELECT 96 * + 45 + - 18 DIV 26 + 78 AS col0
----
4398

skipif mysql # not compatible
query I rowsort label-2724
SELECT 96 * + 45 + - 18 / 26 + 78 AS col0
----
4398

query I rowsort
SELECT ALL - + 35 col0
----
-35

query I rowsort
SELECT - + 27 * 59 + + + ( + 80 ) * - - 81 AS col1
----
4887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2727
SELECT CAST( - + 35 AS SIGNED ) * - 29 * + 42 + + 6 + - 44 * COUNT( * ) - - 19 + + - 74 + - - 26 + + + CASE + 95 WHEN COALESCE ( - - 41, + + 36 ) + - 4 + + CASE + + 71 WHEN 66 THEN - 96 END THEN + 40 + 68 * - - 50 * - - COUNT( * ) WHEN + 91 THEN + 5 WHEN - 1 * - 6 THEN ( 24 ) END * + + 82 + - MAX( 35 ) + - 53 + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-2727
SELECT CAST ( - + 35 AS INTEGER ) * - 29 * + 42 + + 6 + - 44 * COUNT ( * ) - - 19 + + - 74 + - - 26 + + + CASE + 95 WHEN COALESCE ( - - 41, + + 36 ) + - 4 + + CASE + + 71 WHEN 66 THEN - 96 END THEN + 40 + 68 * - - 50 * - - COUNT ( * ) WHEN + 91 THEN + 5 WHEN - 1 * - 6 THEN ( 24 ) END * + + 82 + - MAX ( 35 ) + - 53 + 31
----
NULL

query I rowsort
SELECT + 93 + ( - 44 ) AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2729
SELECT ALL - COUNT( * ) DIV COUNT( * ) * - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL - COUNT ( * ) / COUNT ( * ) * - COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2730
SELECT - 2 DIV CAST( NULLIF ( + + COALESCE ( + - 96, 85, - 17 + 38 * - 8 ), - 10 + - + NULLIF ( - 53, - 72 * - 2 ) + 60 * + 4 * + 6 * CASE + - CAST( + NULLIF ( + 42, 94 DIV + COALESCE ( - + NULLIF ( + 3, + + 53 ), - COALESCE ( + + 53, - + 7 DIV - 82 + - - 77 ) + + - 14 ) + 25 ) AS SIGNED ) WHEN 89 * + 27 THEN 54 * + ( - 17 * - 26 ) WHEN - 38 + + 32 THEN - CAST( NULL AS SIGNED ) * 55 ELSE NULL END ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2730
SELECT - 2 / CAST ( NULLIF ( + + COALESCE ( + - 96, 85, - 17 + 38 * - 8 ), - 10 + - + NULLIF ( - 53, - 72 * - 2 ) + 60 * + 4 * + 6 * CASE + - CAST ( + NULLIF ( + 42, 94 / + COALESCE ( - + NULLIF ( + 3, + + 53 ), - COALESCE ( + + 53, - + 7 / - 82 + - - 77 ) + + - 14 ) + 25 ) AS INTEGER ) WHEN 89 * + 27 THEN 54 * + ( - 17 * - 26 ) WHEN - 38 + + 32 THEN - CAST ( NULL AS INTEGER ) * 55 ELSE NULL END ) AS INTEGER ) AS col0
----
0

query I rowsort
SELECT DISTINCT - - 73 * 98 * + 63 * - 4 AS col0
----
-1802808

onlyif mysql # aggregate syntax: 
query II rowsort label-2732
SELECT ALL MAX( ALL - 27 ) AS col2, + 92
----
-27
92

skipif mysql # not compatible
query II rowsort label-2732
SELECT ALL MAX ( ALL - 27 ) AS col2, + 92
----
-27
92

query I rowsort
SELECT - 59 * - + 26 * + 50 AS col1
----
76700

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT ALL - COUNT( ALL - 54 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL - COUNT ( ALL - 54 ) col0
----
-1

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

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

query I rowsort
SELECT DISTINCT + 58 + - + 56 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT DISTINCT + 53 + + COUNT( * ) * - - 22 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT + 53 + + COUNT ( * ) * - - 22 AS col1
----
75

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

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

query I rowsort
SELECT ALL - 35 + 46
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2740
SELECT ALL + 80 + + - CAST( 37 AS SIGNED ) + + + 98 + 11 * + ( - + 71 ) AS col0
----
-640

skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL + 80 + + - CAST ( 37 AS INTEGER ) + + + 98 + 11 * + ( - + 71 ) AS col0
----
-640

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT - COUNT( * ) + 46 col1
----
45

skipif mysql # not compatible
query I rowsort label-2742
SELECT - COUNT ( * ) + 46 col1
----
45

query I rowsort
SELECT - 88 - + 50 col2
----
-138

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT ALL MAX( ALL + 34 ) + 19 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL MAX ( ALL + 34 ) + 19 AS col0
----
53

query I rowsort
SELECT ALL 70 * - 73 AS col0
----
-5110

query I rowsort
SELECT + 76 + 92 AS col1
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2748
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 66 + + COUNT( * ), 15 AS col2
----
NULL
15

skipif mysql # not compatible
query II rowsort label-2748
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 66 + + COUNT ( * ), 15 AS col2
----
NULL
15

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

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

query I rowsort
SELECT ALL 34 * - - 92 col1
----
3128

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

skipif mysql # not compatible
query I rowsort label-2751
SELECT + COUNT ( * ) / + 64 * 30 AS col0
----
0

query II rowsort
SELECT ALL + 23, 6 AS col0
----
23
6

query I rowsort
SELECT + - NULLIF ( - - ( + 97 ), + 28 )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2754
SELECT ALL + CAST( - + 88 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL + CAST ( - + 88 AS INTEGER )
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-2755
SELECT + 36 * MAX( 45 ) + + 86 * + 32, 10 AS col1
----
4372
10

skipif mysql # not compatible
query II rowsort label-2755
SELECT + 36 * MAX ( 45 ) + + 86 * + 32, 10 AS col1
----
4372
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2756
SELECT ALL + 23 * + - 16 * 59 + - 38 + - 17 DIV + 23 - 85 DIV NULLIF ( COUNT( * ), - COUNT( * ) ), MAX( ALL - 12 ) AS col1
----
-21835
-12

skipif mysql # not compatible
query II rowsort label-2756
SELECT ALL + 23 * + - 16 * 59 + - 38 + - 17 / + 23 - 85 / NULLIF ( COUNT ( * ), - COUNT ( * ) ), MAX ( ALL - 12 ) AS col1
----
-21835
-12

query I rowsort
SELECT - 90 * 2 AS col1
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT DISTINCT ( COUNT( ALL + 90 ) ) * + 60
----
60

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT ( COUNT ( ALL + 90 ) ) * + 60
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2759
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, + MAX( - - 85 ) col0
----
NULL
85

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

query I rowsort
SELECT - - 40 * 93 col0
----
3720

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT ALL + 72 * - 23 + - MIN( DISTINCT - 49 ) AS col0
----
-1607

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL + 72 * - 23 + - MIN ( DISTINCT - 49 ) AS col0
----
-1607

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT ALL - + 95 + - + COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL - + 95 + - + COUNT ( * )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2763
SELECT - 87 * - + 14 * + CASE - COALESCE ( + ( - 62 ), 87 ) WHEN - + 49 THEN AVG ( + - 75 ) * - + COUNT( * ) * + 42 + + MIN( 9 ) WHEN 14 THEN + + CAST( + + 97 AS SIGNED ) * COUNT( * ) ELSE NULL END * - 40 * - COALESCE ( + 12, + 55 * + 7 + - COUNT( * ) ) - + NULLIF ( - ( - ( - + 56 ) ), + + 54 + + + 79 ) + + 96 * - + 83 * NULLIF ( - 94, 58 ) * - 5 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2763
SELECT - 87 * - + 14 * + CASE - COALESCE ( + ( - 62 ), 87 ) WHEN - + 49 THEN AVG ( + - 75 ) * - + COUNT ( * ) * + 42 + + MIN ( 9 ) WHEN 14 THEN + + CAST ( + + 97 AS INTEGER ) * COUNT ( * ) ELSE NULL END * - 40 * - COALESCE ( + 12, + 55 * + 7 + - COUNT ( * ) ) - + NULLIF ( - ( - ( - + 56 ) ), + + 54 + + + 79 ) + + 96 * - + 83 * NULLIF ( - 94, 58 ) * - 5 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2764
SELECT ALL + 54 + COUNT( * ) - + MAX( - + 20 ) DIV + - 77 AS col1, 31 + - 69 AS col2
----
55
-38

skipif mysql # not compatible
query II rowsort label-2764
SELECT ALL + 54 + COUNT ( * ) - + MAX ( - + 20 ) / + - 77 AS col1, 31 + - 69 AS col2
----
55
-38

query I rowsort
SELECT + 19 + + ( + 92 ) AS col2
----
111

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

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

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

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL + 48 + CAST ( NULL AS INTEGER ) - + 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2768
SELECT - ( 43 ) + + + MAX( DISTINCT 77 ), - 79 AS col0
----
34
-79

skipif mysql # not compatible
query II rowsort label-2768
SELECT - ( 43 ) + + + MAX ( DISTINCT 77 ), - 79 AS col0
----
34
-79

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

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

query I rowsort
SELECT - 65 + - 92 * - 36
----
3247

query I rowsort
SELECT ALL - 49 + 17 * 70 AS col0
----
1141

query II rowsort
SELECT - 9 col2, 66 AS col1
----
-9
66

query I rowsort
SELECT - 29 * + ( + + 89 )
----
-2581

query I rowsort
SELECT - 35 + + - 24 AS col1
----
-59

query I rowsort
SELECT ALL - 13 * + 85 * 36
----
-39780

query II rowsort
SELECT 9, 13 + + 8 AS col0
----
9
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT ALL - CASE + 37 WHEN 5 + COUNT( * ) THEN + - CASE + 60 WHEN + 18 * - 35 THEN + 8 WHEN - 32 THEN NULL WHEN + + 38 THEN NULL WHEN - 21 THEN + 17 ELSE NULL END END - + ( + COUNT( * ) ) + + 81 * + COUNT( * ) * - 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL - CASE + 37 WHEN 5 + COUNT ( * ) THEN + - CASE + 60 WHEN + 18 * - 35 THEN + 8 WHEN - 32 THEN NULL WHEN + + 38 THEN NULL WHEN - 21 THEN + 17 ELSE NULL END END - + ( + COUNT ( * ) ) + + 81 * + COUNT ( * ) * - 58 AS col0
----
NULL

query I rowsort
SELECT + 4 * 35
----
140

query II rowsort
SELECT ALL + 74 AS col2, + 50
----
74
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2781
SELECT CAST( NULL AS SIGNED ) col2, + 71 * ( COUNT( * ) ) DIV + 45
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2781
SELECT CAST ( NULL AS INTEGER ) col2, + 71 * ( COUNT ( * ) ) / + 45
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2782
SELECT ALL + COUNT( * ) DIV - 63 - + 62 * + 83, - 2 * 33 AS col0
----
-5146
-66

skipif mysql # not compatible
query II rowsort label-2782
SELECT ALL + COUNT ( * ) / - 63 - + 62 * + 83, - 2 * 33 AS col0
----
-5146
-66

query I rowsort
SELECT - - 45 * 9 * + + 19
----
7695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2784
SELECT ALL MAX( - 40 ) * + + CAST( 6 AS SIGNED )
----
-240

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL MAX ( - 40 ) * + + CAST ( 6 AS INTEGER )
----
-240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2785
SELECT - - 26 * + 72 + + 77 DIV + - 47 DIV + 1 + + COUNT( - 96 )
----
1872

skipif mysql # not compatible
query I rowsort label-2785
SELECT - - 26 * + 72 + + 77 / + - 47 / + 1 + + COUNT ( - 96 )
----
1872

query I rowsort
SELECT ALL + 90 * - 50 AS col1
----
-4500

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT - COUNT( - - 27 ) * - 35 + 2 - - 77 * - + ( - - 65 ) * 37 * - 42
----
7777807

skipif mysql # not compatible
query I rowsort label-2787
SELECT - COUNT ( - - 27 ) * - 35 + 2 - - 77 * - + ( - - 65 ) * 37 * - 42
----
7777807

query I rowsort
SELECT + 48 + - 90 - + 66 col1
----
-108

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

skipif mysql # not compatible
query I rowsort label-2789
SELECT - + CAST ( 20 AS INTEGER ) + + 73 AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2790
SELECT 93 * ( + + 93 ) * + + 29 * 54 * - + COUNT( * ) + 76 + MIN( DISTINCT + CAST( 6 AS SIGNED ) ) AS col1
----
-13544252

skipif mysql # not compatible
query I rowsort label-2790
SELECT 93 * ( + + 93 ) * + + 29 * 54 * - + COUNT ( * ) + 76 + MIN ( DISTINCT + CAST ( 6 AS INTEGER ) ) AS col1
----
-13544252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2791
SELECT + + CAST( NULL AS SIGNED ) / + ( 27 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2791
SELECT + + CAST ( NULL AS INTEGER ) / + ( 27 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT DISTINCT + + 20 / + 67 - CASE - - 25 WHEN COUNT( * ) THEN 54 * 77 - - 58 + - 51 + + 54 + 35 / + AVG ( DISTINCT + NULLIF ( + 21, + - 59 ) ) ELSE NULL END + + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT + + 20 / + 67 - CASE - - 25 WHEN COUNT ( * ) THEN 54 * 77 - - 58 + - 51 + + 54 + 35 / + AVG ( DISTINCT + NULLIF ( + 21, + - 59 ) ) ELSE NULL END + + 12 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2793
SELECT + - 44 + CASE - 70 WHEN 73 * - + 54 THEN + - CAST( - - 1 AS SIGNED ) END * 59 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2793
SELECT + - 44 + CASE - 70 WHEN 73 * - + 54 THEN + - CAST ( - - 1 AS INTEGER ) END * 59 col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2794
SELECT ALL + - 55 * + + 53 + 39 + 56 * ( - 72 ) AS col1, 30 + 46 / + AVG ( DISTINCT - 64 ) * - CAST( NULL AS DECIMAL )
----
-6908
NULL

skipif mysql # not compatible
query II rowsort label-2794
SELECT ALL + - 55 * + + 53 + 39 + 56 * ( - 72 ) AS col1, 30 + 46 / + AVG ( DISTINCT - 64 ) * - CAST ( NULL AS REAL )
----
-6908
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2795
SELECT ALL + MIN( DISTINCT 95 ) * 0 * 81 * - + 11 + 15 + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL + MIN ( DISTINCT 95 ) * 0 * 81 * - + 11 + 15 + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2797
SELECT ALL - ( + 4 ) * - 10 - + 46 + + + COUNT( * ) / - CAST( NULL AS SIGNED ) AS col0, 32 * 91 - COUNT( * ) AS col1
----
NULL
2911

skipif mysql # not compatible
query II rowsort label-2797
SELECT ALL - ( + 4 ) * - 10 - + 46 + + + COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col0, 32 * 91 - COUNT ( * ) AS col1
----
NULL
2911

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

query I rowsort
SELECT DISTINCT - 56 + - 6 AS col0
----
-62

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

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

query I rowsort
SELECT 89 + + 85 + - 22
----
152

query I rowsort
SELECT ALL 7 + + 2
----
9

query I rowsort
SELECT ALL 24 * 94
----
2256

query II rowsort
SELECT ALL 71 + - 8, 61 AS col2
----
63
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT ALL - COUNT( * ) - - + 74 - 14
----
59

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL - COUNT ( * ) - - + 74 - 14
----
59

query I rowsort
SELECT ALL 23 * - 63
----
-1449

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT CASE 29 WHEN 39 * - 86 THEN - 80 WHEN - ( + AVG ( ALL - 5 ) ) THEN + - COUNT( * ) END - - 4 / ( + 89 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT CASE 29 WHEN 39 * - 86 THEN - 80 WHEN - ( + AVG ( ALL - 5 ) ) THEN + - COUNT ( * ) END - - 4 / ( + 89 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2808
SELECT 4 DIV - ( NULLIF ( - + ( + 85 ), 35 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2808
SELECT 4 / - ( NULLIF ( - + ( + 85 ), 35 ) ) AS col2
----
0

query I rowsort
SELECT ALL - 18 - + 48 * + 77 AS col2
----
-3714

onlyif mysql # DIV for integer division: 
query I rowsort label-2810
SELECT ALL + CASE + AVG ( ALL 45 ) WHEN + - 49 * 57 THEN NULL ELSE 92 * + 46 END DIV - + 42 - - 33
----
-67

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL + CASE + AVG ( ALL 45 ) WHEN + - 49 * 57 THEN NULL ELSE 92 * + 46 END / - + 42 - - 33
----
-67

query I rowsort
SELECT ( - 59 ) - 10
----
-69

query I rowsort
SELECT 29 * + 28 * 58
----
47096

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2813
SELECT ALL + 46 DIV - MAX( DISTINCT - 57 ) AS col0, 20 + - 59
----
0
-39

skipif mysql # not compatible
query II rowsort label-2813
SELECT ALL + 46 / - MAX ( DISTINCT - 57 ) AS col0, 20 + - 59
----
0
-39

query I rowsort
SELECT 3 - + ( + 11 ) * 30
----
-327

query I rowsort
SELECT DISTINCT - 73 * - 34 AS col0
----
2482

query II rowsort
SELECT ALL - 5 * - 2, - 80 + - 47 - - + 9 AS col1
----
10
-118

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

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

query I rowsort
SELECT - 25 * 12 - + 82
----
-382

query I rowsort
SELECT + NULLIF ( + + 80, + 27 + + 42 * 25 )
----
80

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

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

query I rowsort
SELECT ALL - - 24 + - + 21 * 46 AS col2
----
-942

query I rowsort
SELECT 21 * + 85 - + - 98
----
1883

query I rowsort
SELECT 1 - ( - 16 ) AS col1
----
17

query I rowsort
SELECT 44 * - - 12 AS col2
----
528

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

query I rowsort
SELECT DISTINCT + 3 * + + 8
----
24

query I rowsort
SELECT ALL - 49 + + 6 col0
----
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-2828
SELECT ALL - 43 AS col1, - 95 DIV 36 * - 18 AS col2
----
-43
36

skipif mysql # not compatible
query II rowsort label-2828
SELECT ALL - 43 AS col1, - 95 / 36 * - 18 AS col2
----
-43
36

query I rowsort
SELECT + 17 * + - 59 * COALESCE ( + + 28, 23 ) * - 59 + 42 AS col2
----
1656998

query I rowsort
SELECT ( ( - 40 ) ) * - 10 + + 41
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT + MAX( DISTINCT + 27 ) * 14 - + MAX( - 23 ) * - - 58
----
1712

skipif mysql # not compatible
query I rowsort label-2831
SELECT + MAX ( DISTINCT + 27 ) * 14 - + MAX ( - 23 ) * - - 58
----
1712

query I rowsort
SELECT 69 + + - 17 AS col1
----
52

query I rowsort
SELECT 4 - + 58
----
-54

query I rowsort
SELECT + 60 * 65 * 27 + ( + 62 ) AS col2
----
105362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2835
SELECT ALL COUNT( * ) - + + CAST( 64 AS SIGNED ) DIV + + 96 + 82
----
83

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL COUNT ( * ) - + + CAST ( 64 AS INTEGER ) / + + 96 + 82
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT ( - - 34 ) * MAX( ALL - 14 )
----
-476

skipif mysql # not compatible
query I rowsort label-2836
SELECT ( - - 34 ) * MAX ( ALL - 14 )
----
-476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2837
SELECT COALESCE ( + + 75, + - COUNT( * ) + - MIN( DISTINCT + ( 54 ) ) DIV + AVG ( DISTINCT 86 ) * + + 84, + 51 ) + - COALESCE ( - 88, + 75 * + CAST( 30 AS SIGNED ) + ( + COUNT( * ) ) * - + NULLIF ( - NULLIF ( + + CASE + 87 WHEN + 80 THEN + + 55 WHEN - CAST( NULL AS DECIMAL ) THEN 89 DIV - COUNT( * ) * - + 60 ELSE NULL END, - 37 + + 29 * + - 71 ), - 43 ), + + 81 ) AS col2
----
163

skipif mysql # not compatible
query I rowsort label-2837
SELECT COALESCE ( + + 75, + - COUNT ( * ) + - MIN ( DISTINCT + ( 54 ) ) / + AVG ( DISTINCT 86 ) * + + 84, + 51 ) + - COALESCE ( - 88, + 75 * + CAST ( 30 AS INTEGER ) + ( + COUNT ( * ) ) * - + NULLIF ( - NULLIF ( + + CASE + 87 WHEN + 80 THEN + + 55 WHEN - CAST ( NULL AS REAL ) THEN 89 / - COUNT ( * ) * - + 60 ELSE NULL END, - 37 + + 29 * + - 71 ), - 43 ), + + 81 ) AS col2
----
163

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

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

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

query II rowsort
SELECT ALL 29 AS col1, 71 * - 51 AS col0
----
29
-3621

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT - MAX( 23 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-2841
SELECT - MAX ( 23 ) AS col1
----
-23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT COUNT( * ) + + NULLIF ( + MAX( + - 72 ), 78 )
----
-71

skipif mysql # not compatible
query I rowsort label-2843
SELECT COUNT ( * ) + + NULLIF ( + MAX ( + - 72 ), 78 )
----
-71

query II rowsort
SELECT 90 AS col1, 73
----
90
73

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2846
SELECT - CAST( NULL AS SIGNED ) AS col1, + 32 - - 68
----
NULL
100

skipif mysql # not compatible
query II rowsort label-2846
SELECT - CAST ( NULL AS INTEGER ) AS col1, + 32 - - 68
----
NULL
100

onlyif mysql # DIV for integer division: 
query I rowsort label-2847
SELECT - 30 DIV + 83 * + 53
----
0

skipif mysql # not compatible
query I rowsort label-2847
SELECT - 30 / + 83 * + 53
----
0

query II rowsort
SELECT - + 33, 20 * ( - 52 ) + + 96 + 84 AS col0
----
-33
-860

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT ALL - + 0 * 13 + + - MIN( 4 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL - + 0 * 13 + + - MIN ( 4 ) AS col0
----
-4

query I rowsort
SELECT ALL - ( - 18 ) * + 44 / 48 + 79 + - 21 + CASE + 65 WHEN - + 3 + + 5 THEN - + 1 WHEN + + 23 / + 37 THEN NULL ELSE NULL END / - 21 AS col1
----
NULL

query I rowsort
SELECT ALL + + 1 * - 99 * - 86 * - 91 AS col0
----
-774774

query I rowsort
SELECT ALL + - 2 * - 16 + + 21 AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2854
SELECT + 68 * + + 22 * + 16 + ( - 16 ) + + CAST( + - ( 85 ) AS SIGNED ) * - COALESCE ( - - COALESCE ( NULLIF ( 49, - SUM( DISTINCT - 15 ) * - CASE + 36 WHEN + 3 THEN + 45 / + - 28 * + + 49 ELSE - - 61 * + 66 END ), + 29 ), - 24, 8 ) * + + COALESCE ( + COUNT( - - 62 ), + + 48, - 34 ) + + - 50
----
28035

skipif mysql # not compatible
query I rowsort label-2854
SELECT + 68 * + + 22 * + 16 + ( - 16 ) + + CAST ( + - ( 85 ) AS INTEGER ) * - COALESCE ( - - COALESCE ( NULLIF ( 49, - SUM ( DISTINCT - 15 ) * - CASE + 36 WHEN + 3 THEN + 45 / + - 28 * + + 49 ELSE - - 61 * + 66 END ), + 29 ), - 24, 8 ) * + + COALESCE ( + COUNT ( - - 62 ), + + 48, - 34 ) + + - 50
----
28035

query I rowsort
SELECT DISTINCT + - 51 * + + 54
----
-2754

query II rowsort
SELECT 82 AS col1, 90
----
82
90

query I rowsort
SELECT ALL 72 * 4 + - 82 + 40 * - 64 AS col2
----
-2354

query I rowsort
SELECT - 46 + + 6 * + 37
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT - 85 + ( - - 96 ) * COUNT( + COALESCE ( + + 85, + 69 / + 13 + 31, - ( + 27 ) * - + 81 ) )
----
11

skipif mysql # not compatible
query I rowsort label-2859
SELECT - 85 + ( - - 96 ) * COUNT ( + COALESCE ( + + 85, + 69 / + 13 + 31, - ( + 27 ) * - + 81 ) )
----
11

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2861
SELECT - 86 col0, + 5 DIV + + 6 * - ( 48 ) * + - 63 + - CAST( + + 1 AS SIGNED ) + - + 16 AS col2
----
-86
-17

skipif mysql # not compatible
query II rowsort label-2861
SELECT - 86 col0, + 5 / + + 6 * - ( 48 ) * + - 63 + - CAST ( + + 1 AS INTEGER ) + - + 16 AS col2
----
-86
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2862
SELECT + 0 DIV + 56 + + 15 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-2862
SELECT + 0 / + 56 + + 15 / - 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT ALL + 31 * COUNT( * ) - 21 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-2863
SELECT ALL + 31 * COUNT ( * ) - 21 AS col0
----
10

query II rowsort
SELECT ALL + ( - 19 ) AS col0, 94 * 2
----
-19
188

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

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT + MAX ( - 91 ) / + COUNT ( * ) / COUNT ( * ) * - COUNT ( * )
----
91

query I rowsort
SELECT ALL + 18 - 21 AS col2
----
-3

query I rowsort
SELECT - 6 * - 92
----
552

query I rowsort
SELECT + 12 + - ( + 51 ) + - 64 + 26 AS col0
----
-77

query I rowsort
SELECT ALL - 54 * 73 * - + 54
----
212868

onlyif mysql # DIV for integer division: 
query I rowsort label-2870
SELECT - 23 DIV - 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2870
SELECT - 23 / - 94 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT + 29 * - 75 * + 31 * COUNT( * ) * - 37
----
2494725

skipif mysql # not compatible
query I rowsort label-2871
SELECT + 29 * - 75 * + 31 * COUNT ( * ) * - 37
----
2494725

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

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

query I rowsort
SELECT + 5 * - 65
----
-325

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT ALL COUNT( * ) * + - 8 * - 64
----
512

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL COUNT ( * ) * + - 8 * - 64
----
512

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT ALL - MIN( 62 ) * + 98 + - 37 AS col2
----
-6113

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL - MIN ( 62 ) * + 98 + - 37 AS col2
----
-6113

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2876
SELECT + 69 * 40 * ( 16 ) AS col2, + 97, + CAST( 55 AS SIGNED ) + 39 AS col0
----
44160
97
94

skipif mysql # not compatible
query III rowsort label-2876
SELECT + 69 * 40 * ( 16 ) AS col2, + 97, + CAST ( 55 AS INTEGER ) + 39 AS col0
----
44160
97
94

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

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL + COUNT ( + 37 ) * - 33 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-2878
SELECT - 16 + - - COUNT( * ), - SUM( DISTINCT ( + 34 ) ) AS col2
----
-15
-34

skipif mysql # not compatible
query II rowsort label-2878
SELECT - 16 + - - COUNT ( * ), - SUM ( DISTINCT ( + 34 ) ) AS col2
----
-15
-34

query II rowsort
SELECT DISTINCT - ( 75 ) AS col1, 87 * 53 AS col2
----
-75
4611

query I rowsort
SELECT ALL 84 + - + 27 AS col0
----
57

query I rowsort
SELECT + 58 - + 15
----
43

query I rowsort
SELECT + + ( ( - 19 ) ) * + + 63
----
-1197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2883
SELECT DISTINCT 46 / + - 19 - - - 23 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT DISTINCT 46 / + - 19 - - - 23 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 20 + 63 - + 49 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT + CASE WHEN - COUNT( * ) BETWEEN 4 * - 25 + - + COUNT( * ) AND + 83 THEN - 50 END AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-2885
SELECT + CASE WHEN - COUNT ( * ) BETWEEN 4 * - 25 + - + COUNT ( * ) AND + 83 THEN - 50 END AS col1
----
-50

query I rowsort
SELECT ALL + 51 * - 91
----
-4641

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT DISTINCT + 93 + - + COALESCE ( + + 49, 7 * - COUNT( DISTINCT 62 ) ) col0
----
44

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT + 93 + - + COALESCE ( + + 49, 7 * - COUNT ( DISTINCT 62 ) ) col0
----
44

query I rowsort
SELECT + - ( - 69 ) * + 65
----
4485

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2890
SELECT + + COUNT( * ) DIV + + ( - 15 ) + - 76 * + 3 col2, + 11 * 49 + + - 79 AS col2
----
-228
460

skipif mysql # not compatible
query II rowsort label-2890
SELECT + + COUNT ( * ) / + + ( - 15 ) + - 76 * + 3 col2, + 11 * 49 + + - 79 AS col2
----
-228
460

query I rowsort
SELECT ALL + 75 * + 44 * + 59 - + 19 + + + 87 AS col0
----
194768

query I rowsort
SELECT - ( + 34 ) * 5
----
-170

onlyif mysql # aggregate syntax: 
query II rowsort label-2893
SELECT + 8 * - 92 * - 69 + - 58 + COUNT( * ) + 1 AS col1, CASE - + 6 WHEN NULLIF ( 13, 69 ) THEN + CASE - - 0 WHEN - ( 70 ) THEN + COUNT( * ) + - 5 WHEN - COUNT( * ) * + SUM( ALL - 26 ) + 63 THEN NULL END END - + + 62 AS col2
----
50728
NULL

skipif mysql # not compatible
query II rowsort label-2893
SELECT + 8 * - 92 * - 69 + - 58 + COUNT ( * ) + 1 AS col1, CASE - + 6 WHEN NULLIF ( 13, 69 ) THEN + CASE - - 0 WHEN - ( 70 ) THEN + COUNT ( * ) + - 5 WHEN - COUNT ( * ) * + SUM ( ALL - 26 ) + 63 THEN NULL END END - + + 62 AS col2
----
50728
NULL

query I rowsort
SELECT COALESCE ( 77, 58 )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2895
SELECT - 0 - - COALESCE ( + COUNT( * ), + + ( + CAST( 16 AS SIGNED ) ) * - 76 * MAX( CAST( - 35 AS SIGNED ) ) ), - 98 AS col1
----
1
-98

skipif mysql # not compatible
query II rowsort label-2895
SELECT - 0 - - COALESCE ( + COUNT ( * ), + + ( + CAST ( 16 AS INTEGER ) ) * - 76 * MAX ( CAST ( - 35 AS INTEGER ) ) ), - 98 AS col1
----
1
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT 96 * - - COUNT( * ) + - 70 + - 26
----
0

skipif mysql # not compatible
query I rowsort label-2896
SELECT 96 * - - COUNT ( * ) + - 70 + - 26
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2897
SELECT - 15, - SUM( 52 ) * - 34 + + 84 DIV + SUM( 19 ) + - 71 AS col2, - 77 + SUM( - + 39 ) AS col0
----
-15
1701
-116

skipif mysql # not compatible
query III rowsort label-2897
SELECT - 15, - SUM ( 52 ) * - 34 + + 84 / + SUM ( 19 ) + - 71 AS col2, - 77 + SUM ( - + 39 ) AS col0
----
-15
1701
-116

query I rowsort
SELECT COALESCE ( + - ( + 50 ), - - 73, - 61 )
----
-50

query I rowsort
SELECT - 16 + 70
----
54

query I rowsort
SELECT - 22 - - 41
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-2901
SELECT ALL - 24 DIV - ( + 3 )
----
8

skipif mysql # not compatible
query I rowsort label-2901
SELECT ALL - 24 / - ( + 3 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2902
SELECT DISTINCT CAST( 93 AS SIGNED ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT CAST ( 93 AS INTEGER ) AS col0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2903
SELECT DISTINCT - NULLIF ( - + 26, + + 20 ) * COALESCE ( 94, - 40 * + 67, - + 1 DIV + + SUM( 33 ) )
----
2444

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT - NULLIF ( - + 26, + + 20 ) * COALESCE ( 94, - 40 * + 67, - + 1 / + + SUM ( 33 ) )
----
2444

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT - 86 + 2 * - MIN( DISTINCT + + 39 ) * - 70
----
5374

skipif mysql # not compatible
query I rowsort label-2904
SELECT - 86 + 2 * - MIN ( DISTINCT + + 39 ) * - 70
----
5374

onlyif mysql # DIV for integer division: 
query I rowsort label-2905
SELECT ALL - + 5 DIV + - 11 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL - + 5 / + - 11 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT - - MAX( 83 ) + - MIN( 60 )
----
23

skipif mysql # not compatible
query I rowsort label-2907
SELECT - - MAX ( 83 ) + - MIN ( 60 )
----
23

query I rowsort
SELECT ALL + - 92 + - ( - - 42 ) col0
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT ALL - 91 + + + 17 + + COUNT( DISTINCT 21 )
----
-73

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL - 91 + + + 17 + + COUNT ( DISTINCT 21 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT - 78 * - - COUNT( * ) + - ( + 85 )
----
-163

skipif mysql # not compatible
query I rowsort label-2910
SELECT - 78 * - - COUNT ( * ) + - ( + 85 )
----
-163

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2911
SELECT ALL 18 DIV + 41 * + + NULLIF ( - + 24, + - 73 + + 86 DIV - + 79 DIV 16 + CAST( NULL AS DECIMAL ) - + - 46 DIV + COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL 18 / + 41 * + + NULLIF ( - + 24, + - 73 + + 86 / - + 79 / 16 + CAST ( NULL AS REAL ) - + - 46 / + COUNT ( * ) ) AS col2
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2913
SELECT - + NULLIF ( - 58, CASE 29 WHEN 46 * + COUNT( * ) THEN + - ( - 11 ) END * + COUNT( DISTINCT - + CAST( + ( - - 19 ) AS SIGNED ) ) ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-2913
SELECT - + NULLIF ( - 58, CASE 29 WHEN 46 * + COUNT ( * ) THEN + - ( - 11 ) END * + COUNT ( DISTINCT - + CAST ( + ( - - 19 ) AS INTEGER ) ) ) AS col2
----
58

query I rowsort
SELECT - 5 + + 36 AS col1
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2915
SELECT - COALESCE ( + 59, CAST( + 43 AS SIGNED ) ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-2915
SELECT - COALESCE ( + 59, CAST ( + 43 AS INTEGER ) ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-2916
SELECT - ( - + 93 ) * - COUNT( * ) AS col1, COUNT( * ) + - + 44
----
-93
-43

skipif mysql # not compatible
query II rowsort label-2916
SELECT - ( - + 93 ) * - COUNT ( * ) AS col1, COUNT ( * ) + - + 44
----
-93
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2917
SELECT + NULLIF ( + COALESCE ( - - COALESCE ( - - MIN( - - 2 ), - + 36 ), + 53 * + 42, 27 ), - - ( + COALESCE ( ( 62 ), + ( ( + - 31 ) ), 35 ) ) * + + COUNT( * ) + 78 * - - 22 ) AS col0, CAST( NULL AS SIGNED )
----
2
NULL

skipif mysql # not compatible
query II rowsort label-2917
SELECT + NULLIF ( + COALESCE ( - - COALESCE ( - - MIN ( - - 2 ), - + 36 ), + 53 * + 42, 27 ), - - ( + COALESCE ( ( 62 ), + ( ( + - 31 ) ), 35 ) ) * + + COUNT ( * ) + 78 * - - 22 ) AS col0, CAST ( NULL AS INTEGER )
----
2
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT COUNT ( * ) - + 97 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT ALL - 89 * COUNT( * ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL - 89 * COUNT ( * ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT DISTINCT - NULLIF ( 77, + 12 * + 25 * + COUNT( * ) ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT - NULLIF ( 77, + 12 * + 25 * + COUNT ( * ) ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT + - 57 * - + 48 + 21 + + - 95 * COUNT( * )
----
2662

skipif mysql # not compatible
query I rowsort label-2922
SELECT + - 57 * - + 48 + 21 + + - 95 * COUNT ( * )
----
2662

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2923
SELECT DISTINCT - 19 AS col0, COALESCE ( - 74, + 47 * + - ( SUM( + ( 11 ) ) ) DIV + + 61, - - 56 DIV + 55 ) AS col0
----
-19
-74

skipif mysql # not compatible
query II rowsort label-2923
SELECT DISTINCT - 19 AS col0, COALESCE ( - 74, + 47 * + - ( SUM ( + ( 11 ) ) ) / + + 61, - - 56 / + 55 ) AS col0
----
-19
-74

query I rowsort
SELECT 69 * 45 * - 7
----
-21735

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2925
SELECT 90 DIV COUNT( * ) + - 31 + + 80 * COUNT( * ) * - 55 AS col1, 73
----
-4341
73

skipif mysql # not compatible
query II rowsort label-2925
SELECT 90 / COUNT ( * ) + - 31 + + 80 * COUNT ( * ) * - 55 AS col1, 73
----
-4341
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2926
SELECT ALL - 43, + CAST( NULL AS SIGNED ) * + 17 AS col1
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-2926
SELECT ALL - 43, + CAST ( NULL AS INTEGER ) * + 17 AS col1
----
-43
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2928
SELECT COUNT( + 81 ) DIV - MAX( DISTINCT + + 3 ) AS col2, - 82 - - 85 AS col2
----
0
3

skipif mysql # not compatible
query II rowsort label-2928
SELECT COUNT ( + 81 ) / - MAX ( DISTINCT + + 3 ) AS col2, - 82 - - 85 AS col2
----
0
3

query I rowsort
SELECT 63 * + 92 * - 34 + + 76
----
-196988

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT 91 * + MAX( 77 ) + - ( - ( 22 ) ) col1
----
7029

skipif mysql # not compatible
query I rowsort label-2930
SELECT 91 * + MAX ( 77 ) + - ( - ( 22 ) ) col1
----
7029

query II rowsort
SELECT ALL - 33 AS col0, + 91 col2
----
-33
91

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2933
SELECT COALESCE ( 63, COUNT( * ) - - COUNT( DISTINCT - - 1 ) ) DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-2933
SELECT COALESCE ( 63, COUNT ( * ) - - COUNT ( DISTINCT - - 1 ) ) / 74
----
0

query I rowsort
SELECT ALL 58 + - - 24 AS col0
----
82

query I rowsort
SELECT 23 * 98 AS col2
----
2254

onlyif mysql # aggregate syntax: 
query III rowsort label-2936
SELECT ALL - COUNT( * ) + 91 AS col2, - ( 68 ) AS col1, - 18 + COUNT( * ) AS col0
----
90
-68
-17

skipif mysql # not compatible
query III rowsort label-2936
SELECT ALL - COUNT ( * ) + 91 AS col2, - ( 68 ) AS col1, - 18 + COUNT ( * ) AS col0
----
90
-68
-17

query I rowsort
SELECT 29 + - - 96 * + - 90 + 49 + - 60
----
-8622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2938
SELECT NULLIF ( - 39, 44 * + 59 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2938
SELECT NULLIF ( - 39, 44 * + 59 ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2939
SELECT - 47 * 91 + + - ( CAST( NULL AS DECIMAL ) ) + - CAST( NULL AS SIGNED ) * - - 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2939
SELECT - 47 * 91 + + - ( CAST ( NULL AS REAL ) ) + - CAST ( NULL AS INTEGER ) * - - 13 AS col0
----
NULL

query II rowsort
SELECT 80 AS col1, 16
----
80
16

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

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

query I rowsort
SELECT 48 + + + 58 + - - 42 + - NULLIF ( + 50, - - ( + 87 ) ) + + 96 + - 66 * + - 3 + - + ( - 67 ) + - 19 * - 6 AS col1
----
573

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

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL - 19 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2944
SELECT ALL + CAST( - 67 AS SIGNED ) + - - MIN( DISTINCT - 3 ) * - + 27
----
14

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL + CAST ( - 67 AS INTEGER ) + - - MIN ( DISTINCT - 3 ) * - + 27
----
14

query I rowsort
SELECT DISTINCT 51 * 34 AS col0
----
1734

query I rowsort
SELECT DISTINCT + 47 + - + 41 * 49
----
-1962

query II rowsort
SELECT ALL + 29 col2, 99
----
29
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT ALL 23 + + COUNT( * ) col2
----
24

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL 23 + + COUNT ( * ) col2
----
24

query I rowsort
SELECT ALL - 45 - - 26 * + - 35
----
-955

onlyif mysql # aggregate syntax: 
query II rowsort label-2950
SELECT 65 * - + 89 - - + 80 * + 98 * COUNT( * ) * + 86 - - 25 + - 76 - + 70 AS col0, - 83 + + + 75 AS col1
----
668334
-8

skipif mysql # not compatible
query II rowsort label-2950
SELECT 65 * - + 89 - - + 80 * + 98 * COUNT ( * ) * + 86 - - 25 + - 76 - + 70 AS col0, - 83 + + + 75 AS col1
----
668334
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT ALL NULLIF ( + + COUNT( * ), + 51 + 99 * + - 67 )
----
1

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL NULLIF ( + + COUNT ( * ), + 51 + 99 * + - 67 )
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2953
SELECT 70 AS col1, CAST( - + 28 AS SIGNED ) * - + 63 - MIN( DISTINCT - 61 )
----
70
1825

skipif mysql # not compatible
query II rowsort label-2953
SELECT 70 AS col1, CAST ( - + 28 AS INTEGER ) * - + 63 - MIN ( DISTINCT - 61 )
----
70
1825

query I rowsort
SELECT + 99 + + 85 * + - 94 AS col2
----
-7891

query II rowsort
SELECT + 20 AS col0, + COALESCE ( + 1, + - 14 )
----
20
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2956
SELECT DISTINCT + 41 * NULLIF ( + 43, - 51 * + 49 * + - SUM( 60 ) - + 46 ) + + 91, + 74 AS col0
----
1854
74

skipif mysql # not compatible
query II rowsort label-2956
SELECT DISTINCT + 41 * NULLIF ( + 43, - 51 * + 49 * + - SUM ( 60 ) - + 46 ) + + 91, + 74 AS col0
----
1854
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT COUNT( * ) - - 18 + + 80
----
99

skipif mysql # not compatible
query I rowsort label-2957
SELECT COUNT ( * ) - - 18 + + 80
----
99

query I rowsort
SELECT ALL + - 85 * 21
----
-1785

query I rowsort
SELECT ALL - 49 * - 82 + - - 9
----
4027

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT 13 * - SUM( ALL - 52 )
----
676

skipif mysql # not compatible
query I rowsort label-2960
SELECT 13 * - SUM ( ALL - 52 )
----
676

query I rowsort
SELECT 16 + 29
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2962
SELECT - COALESCE ( 59, ( 2 ) ) DIV - 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2962
SELECT - COALESCE ( 59, ( 2 ) ) / - 86 AS col0
----
0

query I rowsort
SELECT + COALESCE ( - 98, - 66 ) * - - 50 * - + 91 + 67 AS col1
----
445967

query I rowsort
SELECT + 15 * 40 - 8 * + 61 + - 97 AS col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2965
SELECT 89 DIV + 34 - 86 col0
----
-84

skipif mysql # not compatible
query I rowsort label-2965
SELECT 89 / + 34 - 86 col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT MIN( ALL 54 ) * - 41 AS col0
----
-2214

skipif mysql # not compatible
query I rowsort label-2966
SELECT MIN ( ALL 54 ) * - 41 AS col0
----
-2214

query I rowsort
SELECT DISTINCT 62 * - 37 + + + 37 AS col1
----
-2257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2968
SELECT DISTINCT + 41 + CAST( NULL AS SIGNED ) + + + SUM( 81 ) - + SUM( DISTINCT 19 ) + - MIN( ALL - + 72 ) + + 26 + + COUNT( * ) / 28 * + 62 * - CAST( + 21 AS SIGNED ) - + + 64 * + - 62 + + 28 * + COUNT( * ) * + 35 * + 42 + + + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT + 41 + CAST ( NULL AS INTEGER ) + + + SUM ( 81 ) - + SUM ( DISTINCT 19 ) + - MIN ( ALL - + 72 ) + + 26 + + COUNT ( * ) / 28 * + 62 * - CAST ( + 21 AS INTEGER ) - + + 64 * + - 62 + + 28 * + COUNT ( * ) * + 35 * + 42 + + + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT MIN( 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2969
SELECT MIN ( 1 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2970
SELECT ALL COALESCE ( - 59, + NULLIF ( 2, - 41 ) ) + + 44 DIV 59 DIV + 11
----
-59

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL COALESCE ( - 59, + NULLIF ( 2, - 41 ) ) + + 44 / 59 / + 11
----
-59

query I rowsort
SELECT 33 * + CASE 44 WHEN + 68 THEN 34 END + 33 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2972
SELECT COUNT( * ) + + - CAST( NULL AS SIGNED ) * - 44 * + + 80 * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-2972
SELECT COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * - 44 * + + 80 * + 87
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2973
SELECT ( + ( 8 ) ) DIV + 29
----
0

skipif mysql # not compatible
query I rowsort label-2973
SELECT ( + ( 8 ) ) / + 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT - 5 * COUNT( * ) + 14
----
9

skipif mysql # not compatible
query I rowsort label-2974
SELECT - 5 * COUNT ( * ) + 14
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2975
SELECT + COALESCE ( - + 53, + 25 ), COUNT( * ) AS col2
----
-53
1

skipif mysql # not compatible
query II rowsort label-2975
SELECT + COALESCE ( - + 53, + 25 ), COUNT ( * ) AS col2
----
-53
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT 29 + - - 82 DIV + + 96 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2976
SELECT 29 + - - 82 / + + 96 AS col1
----
29

query I rowsort
SELECT COALESCE ( - 72, + - 82 ) + + 58 AS col2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2978
SELECT ALL 75 DIV - 32 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL 75 / - 32 AS col2
----
-2

query I rowsort
SELECT ( 7 ) * - 16
----
-112

query I rowsort
SELECT 70 * - 82 + - 50 * - 50 + 90 * + 53
----
1530

query I rowsort
SELECT ALL 45 - - 59
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2982
SELECT DISTINCT CAST( NULL AS SIGNED ) - 0 - + + ( - + 70 ) / 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2982
SELECT DISTINCT CAST ( NULL AS INTEGER ) - 0 - + + ( - + 70 ) / 70 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( - 74 ) * 64 AS col2
----
4736

query I rowsort
SELECT + + 69 - 24
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT ALL + 63 * - 70 - + COUNT( * ) AS col0
----
-4411

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL + 63 * - 70 - + COUNT ( * ) AS col0
----
-4411

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT + + 58 * COALESCE ( 46, - SUM( ALL - 82 ) )
----
2668

skipif mysql # not compatible
query I rowsort label-2986
SELECT + + 58 * COALESCE ( 46, - SUM ( ALL - 82 ) )
----
2668

query I rowsort
SELECT - - ( - 18 ) + 64 + - 2 col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT + COUNT( * ) + - 77 + - 20 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-2988
SELECT + COUNT ( * ) + - 77 + - 20 AS col0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2989
SELECT ALL + 56 DIV - 44 + 44 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL + 56 / - 44 + 44 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT + + 82 + - COUNT( + + 70 ) * - 5
----
87

skipif mysql # not compatible
query I rowsort label-2990
SELECT + + 82 + - COUNT ( + + 70 ) * - 5
----
87

query I rowsort
SELECT - + 18 + + - 50 AS col0
----
-68

query I rowsort
SELECT - 12 * + 15
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT ALL + COUNT( - 84 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL + COUNT ( - 84 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT DISTINCT COALESCE ( 63, NULLIF ( 43, + + 65 + - NULLIF ( COUNT( * ), - + 6 * - 50 ) + - + COUNT( * ) - + 74 ) * + COUNT( * ) )
----
63

skipif mysql # not compatible
query I rowsort label-2994
SELECT DISTINCT COALESCE ( 63, NULLIF ( 43, + + 65 + - NULLIF ( COUNT ( * ), - + 6 * - 50 ) + - + COUNT ( * ) - + 74 ) * + COUNT ( * ) )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2995
SELECT ALL 58 * - + CASE CASE - - 22 WHEN + 56 THEN + - 32 ELSE NULL END WHEN + COALESCE ( + 4, + COUNT( * ) + - 54 * + CASE + CAST( + 15 AS SIGNED ) WHEN - CASE + + 53 WHEN 22 * + - 69 * + + 16 + + + 19 DIV - - 56 + + COUNT( * ) THEN - 70 END * 71 * COUNT( - - 75 ) * - CASE + 42 WHEN - COUNT( * ) * - 45 + + + ( - MAX( 24 ) ) THEN NULL WHEN + - 74 THEN - MIN( DISTINCT + 16 ) * COUNT( * ) * - 32 END + 23 THEN NULL WHEN - + CAST( NULL AS SIGNED ) + - 76 + + - COUNT( * ) * + SUM( DISTINCT + 18 ) THEN 28 DIV 12 END + 40 * + 64 ) THEN - ( - 34 ) * + 46 ELSE 46 END + - COUNT( * ) DIV 7
----
-2668

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL 58 * - + CASE CASE - - 22 WHEN + 56 THEN + - 32 ELSE NULL END WHEN + COALESCE ( + 4, + COUNT ( * ) + - 54 * + CASE + CAST ( + 15 AS INTEGER ) WHEN - CASE + + 53 WHEN 22 * + - 69 * + + 16 + + + 19 / - - 56 + + COUNT ( * ) THEN - 70 END * 71 * COUNT ( - - 75 ) * - CASE + 42 WHEN - COUNT ( * ) * - 45 + + + ( - MAX ( 24 ) ) THEN NULL WHEN + - 74 THEN - MIN ( DISTINCT + 16 ) * COUNT ( * ) * - 32 END + 23 THEN NULL WHEN - + CAST ( NULL AS INTEGER ) + - 76 + + - COUNT ( * ) * + SUM ( DISTINCT + 18 ) THEN 28 / 12 END + 40 * + 64 ) THEN - ( - 34 ) * + 46 ELSE 46 END + - COUNT ( * ) / 7
----
-2668

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2996
SELECT 0 * + 90 * + COUNT( * ) + - - 38 + - 92 + 78 - 74 * + ( - 95 ) - + 63 * COUNT( * ) DIV - 59 AS col1
----
7055

skipif mysql # not compatible
query I rowsort label-2996
SELECT 0 * + 90 * + COUNT ( * ) + - - 38 + - 92 + 78 - 74 * + ( - 95 ) - + 63 * COUNT ( * ) / - 59 AS col1
----
7055

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2998
SELECT - 2 DIV 72 + - ( + COUNT( * ) ), - 38 * + + NULLIF ( MIN( DISTINCT + 62 ), + 84 ) * 40 + - - ( 9 ) + - 52 * + ( - ( - COUNT( * ) ) ) - 50 * + - 45 + + COUNT( * ) AS col1
----
-1
-92032

skipif mysql # not compatible
query II rowsort label-2998
SELECT - 2 / 72 + - ( + COUNT ( * ) ), - 38 * + + NULLIF ( MIN ( DISTINCT + 62 ), + 84 ) * 40 + - - ( 9 ) + - 52 * + ( - ( - COUNT ( * ) ) ) - 50 * + - 45 + + COUNT ( * ) AS col1
----
-1
-92032

query I rowsort
SELECT + 99 + - - 96
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT ALL - 85 * - COUNT( * ) * + SUM( DISTINCT - 35 ) * - + 27 - - + 49 + + 3 AS col1
----
80377

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL - 85 * - COUNT ( * ) * + SUM ( DISTINCT - 35 ) * - + 27 - - + 49 + + 3 AS col1
----
80377

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT CASE - 4 WHEN 43 * - 46 - + - AVG ( DISTINCT - + 51 ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3001
SELECT CASE - 4 WHEN 43 * - 46 - + - AVG ( DISTINCT - + 51 ) THEN + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3002
SELECT - 87 * - + 93 * 80 AS col1, - MIN( - + 4 ) AS col2
----
647280
4

skipif mysql # not compatible
query II rowsort label-3002
SELECT - 87 * - + 93 * 80 AS col1, - MIN ( - + 4 ) AS col2
----
647280
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT ALL + COUNT( * ) * 9 - - 16 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL + COUNT ( * ) * 9 - - 16 AS col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-3004
SELECT + COUNT( * ), + 73 * - - 1 * + - 15 * - 9 col2
----
1
9855

skipif mysql # not compatible
query II rowsort label-3004
SELECT + COUNT ( * ), + 73 * - - 1 * + - 15 * - 9 col2
----
1
9855

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3005
SELECT 66 * - - COUNT( * ) + - 52 DIV - ( - + 24 )
----
64

skipif mysql # not compatible
query I rowsort label-3005
SELECT 66 * - - COUNT ( * ) + - 52 / - ( - + 24 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3006
SELECT ALL + 34 * SUM( DISTINCT 40 ) * + - 6 + 75 + - + CAST( 32 AS SIGNED ) - + + 14 col2
----
-8131

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL + 34 * SUM ( DISTINCT 40 ) * + - 6 + 75 + - + CAST ( 32 AS INTEGER ) - + + 14 col2
----
-8131

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT DISTINCT + MAX( DISTINCT + CASE - 39 WHEN + - 7 THEN NULL WHEN - + 69 THEN NULL ELSE + + 91 + - 20 END ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-3007
SELECT DISTINCT + MAX ( DISTINCT + CASE - 39 WHEN + - 7 THEN NULL WHEN - + 69 THEN NULL ELSE + + 91 + - 20 END ) AS col1
----
71

query I rowsort
SELECT - 97 * + 42
----
-4074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3009
SELECT + SUM( + 85 ) * - 22 * - ( - 30 ) * + + 20 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3009
SELECT + SUM ( + 85 ) * - 22 * - ( - 30 ) * + + 20 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3010
SELECT ALL - 15 AS col1, - 45 * - - 79 + - - COUNT( * )
----
-15
-3554

skipif mysql # not compatible
query II rowsort label-3010
SELECT ALL - 15 AS col1, - 45 * - - 79 + - - COUNT ( * )
----
-15
-3554

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT + - 46 + - 41 + - COUNT( * ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-3011
SELECT + - 46 + - 41 + - COUNT ( * ) AS col2
----
-88

query I rowsort
SELECT DISTINCT + NULLIF ( + 33, + 66 + + 87 ) AS col2
----
33

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

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

query I rowsort
SELECT + + 27 + + - 81
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-3015
SELECT - 89 AS col1, CASE + - 21 WHEN 12 THEN - 52 WHEN + CASE 13 WHEN 89 * COUNT( * ) + - 54 THEN + COALESCE ( - 43, + 36 / - COUNT( DISTINCT 60 ), CASE + - 49 WHEN - 23 - - 91 THEN - + 24 * - 32 END, - 28 ) + - + 83 ELSE NULL END + - + 28 THEN NULL END AS col2
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-3015
SELECT - 89 AS col1, CASE + - 21 WHEN 12 THEN - 52 WHEN + CASE 13 WHEN 89 * COUNT ( * ) + - 54 THEN + COALESCE ( - 43, + 36 / - COUNT ( DISTINCT 60 ), CASE + - 49 WHEN - 23 - - 91 THEN - + 24 * - 32 END, - 28 ) + - + 83 ELSE NULL END + - + 28 THEN NULL END AS col2
----
-89
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3017
SELECT DISTINCT 53 + + COALESCE ( + MIN( - 70 ), - 4 DIV 99, 20 DIV - ( + - 89 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT 53 + + COALESCE ( + MIN ( - 70 ), - 4 / 99, 20 / - ( + - 89 ) )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3018
SELECT - CASE 38 WHEN - - 96 THEN + + 83 + - ( + + 77 ) + - - 43 END + + + 30 AS col1, 78 * + + 95 * - COUNT( * ) * + 25 + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3018
SELECT - CASE 38 WHEN - - 96 THEN + + 83 + - ( + + 77 ) + - - 43 END + + + 30 AS col1, 78 * + + 95 * - COUNT ( * ) * + 25 + CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT ALL 71 + - 72 * + + 77 AS col2
----
-5473

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT DISTINCT 15 + + + 58 - SUM( + + 76 ) / - 13 - ( + + 14 ) + + + NULLIF ( CASE 25 WHEN + 42 * - 29 + + 76 THEN 34 * - MAX( + 11 ) END, COUNT( ALL 7 ) - - 5 * - 18 ) * - + 21 * - - 93 - + ( + 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3020
SELECT DISTINCT 15 + + + 58 - SUM ( + + 76 ) / - 13 - ( + + 14 ) + + + NULLIF ( CASE 25 WHEN + 42 * - 29 + + 76 THEN 34 * - MAX ( + 11 ) END, COUNT ( ALL 7 ) - - 5 * - 18 ) * - + 21 * - - 93 - + ( + 64 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3021
SELECT + 54 - - 39 - - 63 + + ( - - 3 ) * + + ( + COUNT( DISTINCT - 74 ) ) DIV - + COUNT( * ) + + + COUNT( * ) + + 0 + + 65
----
219

skipif mysql # not compatible
query I rowsort label-3021
SELECT + 54 - - 39 - - 63 + + ( - - 3 ) * + + ( + COUNT ( DISTINCT - 74 ) ) / - + COUNT ( * ) + + + COUNT ( * ) + + 0 + + 65
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3022
SELECT ALL + COALESCE ( + - CAST( 82 AS SIGNED ), - 39 )
----
-82

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL + COALESCE ( + - CAST ( 82 AS INTEGER ), - 39 )
----
-82

query I rowsort
SELECT - - ( - 75 ) col2
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-3024
SELECT ALL COUNT( * ) + + 45, 74 + + 37 AS col1
----
46
111

skipif mysql # not compatible
query II rowsort label-3024
SELECT ALL COUNT ( * ) + + 45, 74 + + 37 AS col1
----
46
111

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

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

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

query II rowsort
SELECT DISTINCT - 79 * + 3 col2, 79
----
-237
79

query I rowsort
SELECT ALL + 6 * + 78
----
468

onlyif mysql # DIV for integer division: 
query II rowsort label-3029
SELECT 44 DIV - 29, + 50 AS col2
----
-1
50

skipif mysql # not compatible
query II rowsort label-3029
SELECT 44 / - 29, + 50 AS col2
----
-1
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3030
SELECT 19 + - 37 DIV - 33
----
20

skipif mysql # not compatible
query I rowsort label-3030
SELECT 19 + - 37 / - 33
----
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT + + NULLIF ( - + 0, - AVG ( ALL + 3 ) + + + 45 ) * + CASE 52 WHEN NULLIF ( + - 52, - MAX( DISTINCT + - 29 ) ) * 22 THEN + + ( 31 ) WHEN - COUNT( * ) * COUNT( * ) + - COUNT( * ) * - 39 THEN 25 ELSE NULL END * 86 * + 82 * 78 + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3032
SELECT + + NULLIF ( - + 0, - AVG ( ALL + 3 ) + + + 45 ) * + CASE 52 WHEN NULLIF ( + - 52, - MAX ( DISTINCT + - 29 ) ) * 22 THEN + + ( 31 ) WHEN - COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) * - 39 THEN 25 ELSE NULL END * 86 * + 82 * 78 + 44
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3033
SELECT + 65 * + COUNT( * ) DIV + + COALESCE ( - 73, - 2 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3033
SELECT + 65 * + COUNT ( * ) / + + COALESCE ( - 73, - 2 ) AS col0
----
0

query I rowsort
SELECT + ( 15 ) + 72 col0
----
87

query I rowsort
SELECT ALL + NULLIF ( - NULLIF ( - - 31, + 8 * + - 63 + + + 46 ), - 79 ) * 18 * - 45 col1
----
25110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT - COUNT( * ) * 12 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-3037
SELECT - COUNT ( * ) * 12 AS col2
----
-12

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3039
SELECT DISTINCT - CAST( + 80 AS SIGNED ) * - - CAST( + - 27 AS SIGNED ) col2
----
2160

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT - CAST ( + 80 AS INTEGER ) * - - CAST ( + - 27 AS INTEGER ) col2
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT - MIN( ALL 21 ) + + 43 + - 57 * 99 * 75 + + - 47 * + 90 + + 2 * + + ( + 49 )
----
-427335

skipif mysql # not compatible
query I rowsort label-3040
SELECT - MIN ( ALL 21 ) + + 43 + - 57 * 99 * 75 + + - 47 * + 90 + + 2 * + + ( + 49 )
----
-427335

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT - MIN( DISTINCT + + 2 ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-3041
SELECT - MIN ( DISTINCT + + 2 ) * - 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3042
SELECT + CAST( - + 68 AS SIGNED ) * + - NULLIF ( 44, 17 )
----
2992

skipif mysql # not compatible
query I rowsort label-3042
SELECT + CAST ( - + 68 AS INTEGER ) * + - NULLIF ( 44, 17 )
----
2992

onlyif mysql # aggregate syntax: 
query III rowsort label-3043
SELECT 58 + COUNT( * ) AS col2, + 64 + - 90 + - 95 AS col0, - COUNT( * ) + - 96 * - ( + ( 80 ) ) + COUNT( * ) + 52 + ( + 89 )
----
59
-121
7821

skipif mysql # not compatible
query III rowsort label-3043
SELECT 58 + COUNT ( * ) AS col2, + 64 + - 90 + - 95 AS col0, - COUNT ( * ) + - 96 * - ( + ( 80 ) ) + COUNT ( * ) + 52 + ( + 89 )
----
59
-121
7821

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT ALL + 79 + - 63 * - COUNT( * )
----
142

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL + 79 + - 63 * - COUNT ( * )
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3045
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - 94 - - 42 * + 57 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3045
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - 94 - - 42 * + 57 + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3046
SELECT COALESCE ( 80, - + ( + 63 ) DIV - + COUNT( * ) ) + + 29 AS col1
----
109

skipif mysql # not compatible
query I rowsort label-3046
SELECT COALESCE ( 80, - + ( + 63 ) / - + COUNT ( * ) ) + + 29 AS col1
----
109

query I rowsort
SELECT ALL - + 24 + 1 col2
----
-23

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

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

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

skipif mysql # not compatible
query I rowsort label-3049
SELECT MIN ( 80 ) + - COUNT ( * ) AS col0
----
79

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

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

query II rowsort
SELECT 95 AS col1, - 47 AS col0
----
95
-47

query II rowsort
SELECT ( 9 ) + - ( - 22 ) * + 54, - 39 AS col2
----
1197
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3053
SELECT ALL SUM( + 11 ) - - CAST( NULL AS SIGNED ) + - COUNT( * ) + 57 * - 90 * + - 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL SUM ( + 11 ) - - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + 57 * - 90 * + - 66 AS col0
----
NULL

query I rowsort
SELECT 38 + - - 14 AS col1
----
52

query I rowsort
SELECT ALL - 65 - + 17 AS col2
----
-82

query I rowsort
SELECT DISTINCT 87 * - - 89
----
7743

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3057
SELECT ( - MIN( + + 31 ) ) + 72 + - + 39 + + + 38 DIV - COALESCE ( 68, 36 * - 11 * + 11 DIV - + 46 )
----
2

skipif mysql # not compatible
query I rowsort label-3057
SELECT ( - MIN ( + + 31 ) ) + 72 + - + 39 + + + 38 / - COALESCE ( 68, 36 * - 11 * + 11 / - + 46 )
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT + 55 / + - 1 + CASE - 53 WHEN + 23 + - 45 * + COUNT( * ) + + 1 THEN NULL WHEN + - COUNT( * ) THEN 88 END * + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-3059
SELECT + 55 / + - 1 + CASE - 53 WHEN + 23 + - 45 * + COUNT ( * ) + + 1 THEN NULL WHEN + - COUNT ( * ) THEN 88 END * + + 54
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3060
SELECT 47 * - CAST( 37 AS SIGNED ) * - 49
----
85211

skipif mysql # not compatible
query I rowsort label-3060
SELECT 47 * - CAST ( 37 AS INTEGER ) * - 49
----
85211

query I rowsort
SELECT 83 + + 76 * + 61
----
4719

query I rowsort
SELECT DISTINCT - - 18 * 67
----
1206

query I rowsort
SELECT DISTINCT - - 58 AS col0
----
58

query I rowsort
SELECT ALL - + 43 * - 0 col2
----
0

query I rowsort
SELECT ALL + 60 + 83 AS col1
----
143

query I rowsort
SELECT ALL - - 76 + - + 20 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT + NULLIF ( 53, + 57 + + 52 * - ( + ( COUNT( * ) ) ) * + + 13 ) col0
----
53

skipif mysql # not compatible
query I rowsort label-3067
SELECT + NULLIF ( 53, + 57 + + 52 * - ( + ( COUNT ( * ) ) ) * + + 13 ) col0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3068
SELECT 37 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3068
SELECT 37 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 64 + - 37 col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3070
SELECT 26 DIV - - 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3070
SELECT 26 / - - 36 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT 13 - - COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-3071
SELECT 13 - - COUNT ( * ) AS col0
----
14

query I rowsort
SELECT ALL - - 88 + + 98 + - - 40
----
226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3073
SELECT DISTINCT - NULLIF ( + 24, + + ( - ( + + 13 ) ) ) + CAST( + ( + NULLIF ( 61, - 64 + - 53 ) ) AS SIGNED ) col0
----
37

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT - NULLIF ( + 24, + + ( - ( + + 13 ) ) ) + CAST ( + ( + NULLIF ( 61, - 64 + - 53 ) ) AS INTEGER ) col0
----
37

query II rowsort
SELECT ALL 46 AS col2, - 26 AS col0
----
46
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT - COALESCE ( - COUNT( * ), 64 )
----
1

skipif mysql # not compatible
query I rowsort label-3075
SELECT - COALESCE ( - COUNT ( * ), 64 )
----
1

query I rowsort
SELECT 97 + + 69 + 6 AS col2
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT NULLIF ( + - 34, ( - COUNT( * ) ) ) + - + 44
----
-78

skipif mysql # not compatible
query I rowsort label-3077
SELECT NULLIF ( + - 34, ( - COUNT ( * ) ) ) + - + 44
----
-78

query I rowsort
SELECT 42 * - NULLIF ( + 43, 6 ) * + 82
----
-148092

query II rowsort
SELECT 32 + - + 15 AS col1, - 2 AS col0
----
17
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3080
SELECT ALL 76 DIV ( ( 80 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL 76 / ( ( 80 ) )
----
0

query II rowsort
SELECT ALL 5, - 69 AS col2
----
5
-69

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

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

query II rowsort
SELECT - 28 * + 54 AS col1, 8 * 86 AS col1
----
-1512
688

query II rowsort
SELECT 72 AS col2, ( - - 11 ) - + 84 AS col2
----
72
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-3085
SELECT ALL ( + 90 ) DIV - 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL ( + 90 ) / - 97 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3086
SELECT - COALESCE ( 65, + ( - + CAST( - - ( + 38 ) AS SIGNED ) ) * - 77, - 74 * 9 * + CASE + - 99 WHEN - + COUNT( * ) + - + 1 * + + COUNT( ALL + - CAST( + 10 AS SIGNED ) ) - + + 53 + 4 * - - 45 * 24 THEN - CAST( + + 68 AS SIGNED ) - - 45 + - 24 + - MIN( DISTINCT 38 ) DIV + 96 WHEN + 60 THEN NULL ELSE NULL END * + - COUNT( * ) ), - 97 * - 10 - ( + 83 ) AS col1
----
-65
887

skipif mysql # not compatible
query II rowsort label-3086
SELECT - COALESCE ( 65, + ( - + CAST ( - - ( + 38 ) AS INTEGER ) ) * - 77, - 74 * 9 * + CASE + - 99 WHEN - + COUNT ( * ) + - + 1 * + + COUNT ( ALL + - CAST ( + 10 AS INTEGER ) ) - + + 53 + 4 * - - 45 * 24 THEN - CAST ( + + 68 AS INTEGER ) - - 45 + - 24 + - MIN ( DISTINCT 38 ) / + 96 WHEN + 60 THEN NULL ELSE NULL END * + - COUNT ( * ) ), - 97 * - 10 - ( + 83 ) AS col1
----
-65
887

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3087
SELECT + COUNT( DISTINCT + 6 ) DIV - + 45 * - 58
----
0

skipif mysql # not compatible
query I rowsort label-3087
SELECT + COUNT ( DISTINCT + 6 ) / - + 45 * - 58
----
0

query I rowsort
SELECT + ( 39 ) * + - 81 * 57
----
-180063

query II rowsort
SELECT ALL + 99 AS col2, + 10 AS col1
----
99
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3090
SELECT + - 80 AS col2, - 10 * COUNT( * )
----
-80
-10

skipif mysql # not compatible
query II rowsort label-3090
SELECT + - 80 AS col2, - 10 * COUNT ( * )
----
-80
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-3091
SELECT + - COUNT( * ), 95 * - 73 AS col2
----
-1
-6935

skipif mysql # not compatible
query II rowsort label-3091
SELECT + - COUNT ( * ), 95 * - 73 AS col2
----
-1
-6935

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

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

query I rowsort
SELECT ALL + 18 * - + 65 + + 58 AS col1
----
-1112

onlyif mysql # aggregate syntax: 
query II rowsort label-3094
SELECT - 23 AS col1, MIN( ALL - 46 ) * + COUNT( 89 )
----
-23
-46

skipif mysql # not compatible
query II rowsort label-3094
SELECT - 23 AS col1, MIN ( ALL - 46 ) * + COUNT ( 89 )
----
-23
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-3095
SELECT + + 53 * - + 60 + - + 23 * + + 10 col0, SUM( ALL 71 ) AS col1
----
-3410
71

skipif mysql # not compatible
query II rowsort label-3095
SELECT + + 53 * - + 60 + - + 23 * + + 10 col0, SUM ( ALL 71 ) AS col1
----
-3410
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT - COUNT( * ) * + 47 * 61 * 73 + 22 + + 92 + + 64
----
-209113

skipif mysql # not compatible
query I rowsort label-3096
SELECT - COUNT ( * ) * + 47 * 61 * 73 + 22 + + 92 + + 64
----
-209113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3097
SELECT - - 34 * CAST( + AVG ( DISTINCT 3 ) AS SIGNED ) + - 10
----
92

skipif mysql # not compatible
query I rowsort label-3097
SELECT - - 34 * CAST ( + AVG ( DISTINCT 3 ) AS INTEGER ) + - 10
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3098
SELECT DISTINCT + + 15 col2, - CAST( 3 AS SIGNED ) AS col2
----
15
-3

skipif mysql # not compatible
query II rowsort label-3098
SELECT DISTINCT + + 15 col2, - CAST ( 3 AS INTEGER ) AS col2
----
15
-3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3100
SELECT ALL + COUNT( * ) * - 14 * - + 62 + + + 68 * - - 24 + 68 col0, COUNT( - 85 ) col0
----
2568
1

skipif mysql # not compatible
query II rowsort label-3100
SELECT ALL + COUNT ( * ) * - 14 * - + 62 + + + 68 * - - 24 + 68 col0, COUNT ( - 85 ) col0
----
2568
1

query I rowsort
SELECT + 7 + - + 7
----
0

query I rowsort
SELECT ALL + 3 * 88 + - - ( 63 ) * + 28
----
2028

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT + 53 * - + 78 * + 58 + - + SUM( DISTINCT 52 ) + + + 33 * + 2
----
-239758

skipif mysql # not compatible
query I rowsort label-3103
SELECT + 53 * - + 78 * + 58 + - + SUM ( DISTINCT 52 ) + + + 33 * + 2
----
-239758

query I rowsort
SELECT ALL - 88 * ( 24 ) - + - ( + 58 )
----
-2054

query I rowsort
SELECT - + 8 * - 90 - 71
----
649

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT - MAX( DISTINCT - 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-3106
SELECT - MAX ( DISTINCT - 72 ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT - COALESCE ( - 23, + - NULLIF ( - COUNT( * ), - - COUNT( * ) ) * 25, + 99 )
----
23

skipif mysql # not compatible
query I rowsort label-3107
SELECT - COALESCE ( - 23, + - NULLIF ( - COUNT ( * ), - - COUNT ( * ) ) * 25, + 99 )
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3108
SELECT - - COUNT( * ), 47 * - COALESCE ( + 28, + - ( COUNT( * ) ) ) - 28 AS col2
----
1
-1344

skipif mysql # not compatible
query II rowsort label-3108
SELECT - - COUNT ( * ), 47 * - COALESCE ( + 28, + - ( COUNT ( * ) ) ) - 28 AS col2
----
1
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT - + SUM( ALL - + 52 ) + - + 40 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3109
SELECT - + SUM ( ALL - + 52 ) + - + 40 AS col1
----
12

query I rowsort
SELECT + 95 * 79 AS col2
----
7505

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3112
SELECT ALL + 37 DIV 15
----
2

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL + 37 / 15
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT - 71 * + SUM( DISTINCT - 81 ) AS col2
----
5751

skipif mysql # not compatible
query I rowsort label-3113
SELECT - 71 * + SUM ( DISTINCT - 81 ) AS col2
----
5751

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3115
SELECT DISTINCT - 65 - COALESCE ( COUNT( * ), - - 86 * + - 64 * - ( - + 26 ) + + 88 + - + 80 + - 47 DIV - 40 DIV 59 ) DIV + 85 * 97 DIV + - 3 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT - 65 - COALESCE ( COUNT ( * ), - - 86 * + - 64 * - ( - + 26 ) + + 88 + - + 80 + - 47 / - 40 / 59 ) / + 85 * 97 / + - 3 AS col0
----
-65

query II rowsort
SELECT ALL - 47 * - 4 AS col2, + 17
----
188
17

onlyif mysql # aggregate syntax: 
query II rowsort label-3117
SELECT - 41 * COUNT( - - 81 ) AS col1, 74 col1
----
-41
74

skipif mysql # not compatible
query II rowsort label-3117
SELECT - 41 * COUNT ( - - 81 ) AS col1, 74 col1
----
-41
74

query I rowsort
SELECT ALL CASE + 27 WHEN - COALESCE ( - 55, - - NULLIF ( + + 59, - + ( - 20 ) * + NULLIF ( + 55, + 9 + - 77 - - - 55 ) * - 7 ) ) THEN NULL WHEN + - 74 THEN + 17 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 2, 14 ) col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3120
SELECT - 29 + 93 DIV - COUNT( - 65 ) AS col1
----
-122

skipif mysql # not compatible
query I rowsort label-3120
SELECT - 29 + 93 / - COUNT ( - 65 ) AS col1
----
-122

query I rowsort
SELECT - 34 - + 27 AS col2
----
-61

query II rowsort
SELECT - 5 * 30, 41 * + 53 AS col0
----
-150
2173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3123
SELECT DISTINCT + 30 * + COALESCE ( 96, + COUNT( * ) DIV 70, - 52 + - 31 )
----
2880

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT + 30 * + COALESCE ( 96, + COUNT ( * ) / 70, - 52 + - 31 )
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT ALL - 75 + 68 + + - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL - 75 + 68 + + - COUNT ( * )
----
-8

query I rowsort
SELECT - 98 + + - 25 AS col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT DISTINCT COALESCE ( 86, + ( + COUNT( ALL - + 97 ) ), - + 81 )
----
86

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT COALESCE ( 86, + ( + COUNT ( ALL - + 97 ) ), - + 81 )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-3127
SELECT DISTINCT + 30 + - - 88 DIV - 33 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT + 30 + - - 88 / - 33 AS col1
----
28

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

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL COUNT ( * ) / - 86 col1
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3130
SELECT 38 * - 8 + - - 57 DIV - COUNT( * ) + 65 col0
----
-296

skipif mysql # not compatible
query I rowsort label-3130
SELECT 38 * - 8 + - - 57 / - COUNT ( * ) + 65 col0
----
-296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3131
SELECT ALL 72 DIV + 6 + - MAX( DISTINCT - 93 )
----
105

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL 72 / + 6 + - MAX ( DISTINCT - 93 )
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT + 25 + + COUNT( * ) - - - 99 * 41
----
-4033

skipif mysql # not compatible
query I rowsort label-3132
SELECT + 25 + + COUNT ( * ) - - - 99 * 41
----
-4033

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3133
SELECT ALL + CAST( + 66 AS SIGNED ) DIV - 1 + - 64 * - 29 AS col2
----
1790

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL + CAST ( + 66 AS INTEGER ) / - 1 + - 64 * - 29 AS col2
----
1790

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL - - 17 * - 56 + + 61 * - COUNT( * )
----
-1013

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL - - 17 * - 56 + + 61 * - COUNT ( * )
----
-1013

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

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

query I rowsort
SELECT DISTINCT + + 70 col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT + CASE - 78 WHEN - COUNT( * ) * - - MIN( DISTINCT ( 95 ) ) THEN + MIN( - NULLIF ( - - 87, 16 * + + 96 ) ) ELSE - 86 * - + 93 END
----
7998

skipif mysql # not compatible
query I rowsort label-3137
SELECT + CASE - 78 WHEN - COUNT ( * ) * - - MIN ( DISTINCT ( 95 ) ) THEN + MIN ( - NULLIF ( - - 87, 16 * + + 96 ) ) ELSE - 86 * - + 93 END
----
7998

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT + COALESCE ( + 89, - 15 ) * 11 * + + 2 * - 98 + - 49 + - 98 + + 69 + + + COUNT( * )
----
-191961

skipif mysql # not compatible
query I rowsort label-3139
SELECT + COALESCE ( + 89, - 15 ) * 11 * + + 2 * - 98 + - 49 + - 98 + + 69 + + + COUNT ( * )
----
-191961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3140
SELECT + CASE - - 37 WHEN - CAST( + 64 AS SIGNED ) * - 0 + + 46 / + 60 THEN 75 ELSE NULL END * + + 49 / + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3140
SELECT + CASE - - 37 WHEN - CAST ( + 64 AS INTEGER ) * - 0 + + 46 / + 60 THEN 75 ELSE NULL END * + + 49 / + 30
----
NULL

query II rowsort
SELECT ( 83 ) AS col1, - ( - + 30 ) * CASE - 39 WHEN - 17 + + - 74 THEN 68 END * 17 + 11 AS col0
----
83
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3142
SELECT ALL + MAX( DISTINCT - - CAST( NULL AS SIGNED ) ), - 59 + + 83 DIV - - 93 AS col2
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-3142
SELECT ALL + MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ), - 59 + + 83 / - - 93 AS col2
----
NULL
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3143
SELECT ALL 38 DIV NULLIF ( - 38, 90 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL 38 / NULLIF ( - 38, 90 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3144
SELECT + 71 - - MAX( ALL - 41 ), 63 AS col2
----
30
63

skipif mysql # not compatible
query II rowsort label-3144
SELECT + 71 - - MAX ( ALL - 41 ), 63 AS col2
----
30
63

onlyif mysql # aggregate syntax: 
query II rowsort label-3145
SELECT ALL + 58 AS col0, + SUM( 45 )
----
58
45

skipif mysql # not compatible
query II rowsort label-3145
SELECT ALL + 58 AS col0, + SUM ( 45 )
----
58
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3146
SELECT DISTINCT + 33 * 71 * CAST( - NULLIF ( 63, - 98 / - + 9 / 1 + + 86 / - COALESCE ( - + CASE + 33 WHEN + 47 THEN ( - COUNT( * ) ) * + CAST( NULL AS DECIMAL ) + - 68 - + CASE - - 58 WHEN + - CAST( + 99 AS SIGNED ) THEN - 10 + 3 / + COUNT( * ) END WHEN - + 12 THEN NULL WHEN - 16 * + AVG ( - ( 17 ) ) * 77 THEN NULL ELSE NULL END, 41 * - - ( - - ( COUNT( * ) ) ), ( + 64 ) * + 37 + - + 75 ) * + - 11 ) AS SIGNED )
----
-147609

skipif mysql # not compatible
query I rowsort label-3146
SELECT DISTINCT + 33 * 71 * CAST ( - NULLIF ( 63, - 98 / - + 9 / 1 + + 86 / - COALESCE ( - + CASE + 33 WHEN + 47 THEN ( - COUNT ( * ) ) * + CAST ( NULL AS REAL ) + - 68 - + CASE - - 58 WHEN + - CAST ( + 99 AS INTEGER ) THEN - 10 + 3 / + COUNT ( * ) END WHEN - + 12 THEN NULL WHEN - 16 * + AVG ( - ( 17 ) ) * 77 THEN NULL ELSE NULL END, 41 * - - ( - - ( COUNT ( * ) ) ), ( + 64 ) * + 37 + - + 75 ) * + - 11 ) AS INTEGER )
----
-147609

query II rowsort
SELECT ALL 39 AS col2, - 76
----
39
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT COUNT( * ) + + 74 + 71 - 26
----
120

skipif mysql # not compatible
query I rowsort label-3148
SELECT COUNT ( * ) + + 74 + 71 - 26
----
120

query I rowsort
SELECT 64 + 78
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-3150
SELECT 38 DIV 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3150
SELECT 38 / 68 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT 83 * + MAX( ALL + 1 ) * - - COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-3151
SELECT 83 * + MAX ( ALL + 1 ) * - - COUNT ( * ) AS col1
----
83

query I rowsort
SELECT ALL + 43 + + - 26 AS col2
----
17

query I rowsort
SELECT ALL - 89 + + + 12 AS col0
----
-77

query I rowsort
SELECT 66 + - 11
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-3155
SELECT DISTINCT 20, - 8 DIV 43 * 75 AS col2
----
20
0

skipif mysql # not compatible
query II rowsort label-3155
SELECT DISTINCT 20, - 8 / 43 * 75 AS col2
----
20
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT ALL 57 + - SUM( ALL 57 ) * 73 - - 82 col1
----
-4022

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL 57 + - SUM ( ALL 57 ) * 73 - - 82 col1
----
-4022

onlyif mysql # aggregate syntax: 
query II rowsort label-3157
SELECT DISTINCT + MIN( ALL + + 69 ) * - - 28, 56 col0
----
1932
56

skipif mysql # not compatible
query II rowsort label-3157
SELECT DISTINCT + MIN ( ALL + + 69 ) * - - 28, 56 col0
----
1932
56

query II rowsort
SELECT DISTINCT 28, 7 AS col2
----
28
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3159
SELECT - COALESCE ( + 60, + COUNT( * ) - + 23 ) * - ( CASE 40 WHEN + 1 + - 12 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN + COUNT( * ) * 30 + - - 55 DIV - 61 DIV + 79 ELSE - 77 END ) AS col2
----
-4620

skipif mysql # not compatible
query I rowsort label-3159
SELECT - COALESCE ( + 60, + COUNT ( * ) - + 23 ) * - ( CASE 40 WHEN + 1 + - 12 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) * 30 + - - 55 / - 61 / + 79 ELSE - 77 END ) AS col2
----
-4620

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3161
SELECT MAX( DISTINCT - - 47 ) / - + 23 + - AVG ( - 84 ) + - 8 * + 29 / + 23 * + + 58 - - CAST( - COALESCE ( - 7, - 2 * 31, + CAST( - 76 AS SIGNED ) + + COUNT( * ) ) AS SIGNED ) + - 43 / + 48 * + 23 + 34 + - ( - 10 ) + + 36 - - 88 / CASE + CASE - + SUM( + - 85 ) WHEN - CASE + + 29 WHEN - - 49 THEN + - NULLIF ( + 65, - - ( + 80 ) * 28 - + + 42 ) ELSE CAST( NULL AS SIGNED ) + + + 95 END + - 9 + + 72 + + 45 / - + COALESCE ( - - COUNT( * ), - + COALESCE ( COUNT( * ), + COUNT( * ) * + 74 ) * 42 ) * 2 THEN NULL WHEN - 94 + ( + 62 - 29 ) THEN NULL ELSE 90 + 57 * - COUNT( * ) END WHEN ( + COUNT( * ) ) THEN 0 * - 48 ELSE - 27 + 63 * + 9 END + COUNT( * ) * 3 * + CAST( CASE 86 WHEN 31 THEN + 28 END - - 33 * 43 AS SIGNED ) / + 64 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3161
SELECT MAX ( DISTINCT - - 47 ) / - + 23 + - AVG ( - 84 ) + - 8 * + 29 / + 23 * + + 58 - - CAST ( - COALESCE ( - 7, - 2 * 31, + CAST ( - 76 AS INTEGER ) + + COUNT ( * ) ) AS INTEGER ) + - 43 / + 48 * + 23 + 34 + - ( - 10 ) + + 36 - - 88 / CASE + CASE - + SUM ( + - 85 ) WHEN - CASE + + 29 WHEN - - 49 THEN + - NULLIF ( + 65, - - ( + 80 ) * 28 - + + 42 ) ELSE CAST ( NULL AS INTEGER ) + + + 95 END + - 9 + + 72 + + 45 / - + COALESCE ( - - COUNT ( * ), - + COALESCE ( COUNT ( * ), + COUNT ( * ) * + 74 ) * 42 ) * 2 THEN NULL WHEN - 94 + ( + 62 - 29 ) THEN NULL ELSE 90 + 57 * - COUNT ( * ) END WHEN ( + COUNT ( * ) ) THEN 0 * - 48 ELSE - 27 + 63 * + 9 END + COUNT ( * ) * 3 * + CAST ( CASE 86 WHEN 31 THEN + 28 END - - 33 * 43 AS INTEGER ) / + 64 col1
----
NULL

query I rowsort
SELECT ALL + + 57 + 31 + ( - 48 )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3163
SELECT + 92, + COALESCE ( - - COUNT( * ), + 10 + + + 54 ) * - 46 * + ( 39 ) - + + 73 + COUNT( * ) AS col2
----
92
-1866

skipif mysql # not compatible
query II rowsort label-3163
SELECT + 92, + COALESCE ( - - COUNT ( * ), + 10 + + + 54 ) * - 46 * + ( 39 ) - + + 73 + COUNT ( * ) AS col2
----
92
-1866

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT 42 * - - COALESCE ( + SUM( ALL 73 ), - COUNT( * ), + + 93 ) + + - 50 * + MAX( - 48 )
----
5466

skipif mysql # not compatible
query I rowsort label-3164
SELECT 42 * - - COALESCE ( + SUM ( ALL 73 ), - COUNT ( * ), + + 93 ) + + - 50 * + MAX ( - 48 )
----
5466

onlyif mysql # DIV for integer division: 
query I rowsort label-3165
SELECT DISTINCT 37 DIV ( + ( + 37 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT 37 / ( + ( + 37 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3166
SELECT - - MIN( ALL + - 36 ) DIV - + 90 - + + MAX( + - ( 18 ) )
----
18

skipif mysql # not compatible
query I rowsort label-3166
SELECT - - MIN ( ALL + - 36 ) / - + 90 - + + MAX ( + - ( 18 ) )
----
18

query I rowsort
SELECT - 25 - - CASE - 4 WHEN - - 25 THEN - + 21 ELSE + 38 END / + + 23 * - CASE 1 WHEN 64 * 83 * + - 77 * 72 THEN 52 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3168
SELECT - 52 * MIN( DISTINCT + - 5 ) DIV + 99 DIV + COUNT( * ) + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3168
SELECT - 52 * MIN ( DISTINCT + - 5 ) / + 99 / + COUNT ( * ) + - COUNT ( * )
----
1

query I rowsort
SELECT + 91 + - 12 AS col0
----
79

query I rowsort
SELECT ALL 59 * 5 AS col2
----
295

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

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

query I rowsort
SELECT DISTINCT 53 + ( - 92 ) AS col0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3173
SELECT COUNT( + 49 ) + - 18 DIV + + MIN( 20 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3173
SELECT COUNT ( + 49 ) + - 18 / + + MIN ( 20 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT DISTINCT 17 + - 65 - + 39 * - - 75 * COALESCE ( - COUNT( * ), + 10 * + 34 + 27 + - + 53 + - 41 + - + 50 - - 53 ) AS col1
----
2877

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT 17 + - 65 - + 39 * - - 75 * COALESCE ( - COUNT ( * ), + 10 * + 34 + 27 + - + 53 + - 41 + - + 50 - - 53 ) AS col1
----
2877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3175
SELECT ALL 52 + + - CAST( - 95 AS SIGNED ) AS col2
----
147

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL 52 + + - CAST ( - 95 AS INTEGER ) AS col2
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-3176
SELECT DISTINCT 11 DIV 81 * + 20 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT 11 / 81 * + 20 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3177
SELECT DISTINCT ( - CAST( + - 60 AS SIGNED ) ) + - 56 * 46 * - + 78 AS col1
----
200988

skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT ( - CAST ( + - 60 AS INTEGER ) ) + - 56 * 46 * - + 78 AS col1
----
200988

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3178
SELECT ALL 16 + - NULLIF ( - 77, CASE - COUNT( * ) WHEN + COUNT( * ) THEN + COUNT( * ) DIV + CASE - COUNT( * ) WHEN - 28 * + ( ( + ( - + 6 ) ) ) DIV 29 * + 84 + + 93 + + + 14 + 58 + 13 DIV + 39 * 28 + + + 83 - - 12 * - 7 - - 11 THEN NULL ELSE 38 * + 28 END DIV - AVG ( - - 83 ) - - - 41 + - - 91 + - ( - 4 ) ELSE + + ( + 90 ) END ) * - 40 DIV - ( - - COUNT( * ) ) AS col0, + COUNT( * ) + + 88 AS col0
----
3096
89

skipif mysql # not compatible
query II rowsort label-3178
SELECT ALL 16 + - NULLIF ( - 77, CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN + COUNT ( * ) / + CASE - COUNT ( * ) WHEN - 28 * + ( ( + ( - + 6 ) ) ) / 29 * + 84 + + 93 + + + 14 + 58 + 13 / + 39 * 28 + + + 83 - - 12 * - 7 - - 11 THEN NULL ELSE 38 * + 28 END / - AVG ( - - 83 ) - - - 41 + - - 91 + - ( - 4 ) ELSE + + ( + 90 ) END ) * - 40 / - ( - - COUNT ( * ) ) AS col0, + COUNT ( * ) + + 88 AS col0
----
3096
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT - COUNT( - + COALESCE ( - + 60, - - 99, + 85 / + 55 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3179
SELECT - COUNT ( - + COALESCE ( - + 60, - - 99, + 85 / + 55 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3180
SELECT ( + ( + - 10 ) ) - + 11 - + 2 DIV + 18
----
-21

skipif mysql # not compatible
query I rowsort label-3180
SELECT ( + ( + - 10 ) ) - + 11 - + 2 / + 18
----
-21

query I rowsort
SELECT ALL 10 * - 82 AS col2
----
-820

onlyif mysql # aggregate syntax: 
query II rowsort label-3182
SELECT 98 + - 52 AS col2, - 54 * COUNT( * )
----
46
-54

skipif mysql # not compatible
query II rowsort label-3182
SELECT 98 + - 52 AS col2, - 54 * COUNT ( * )
----
46
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT - SUM( DISTINCT 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-3183
SELECT - SUM ( DISTINCT 58 )
----
-58

query I rowsort
SELECT CASE + ( + 74 ) WHEN + 40 THEN 12 + 28 ELSE NULL END AS col0
----
NULL

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

query I rowsort
SELECT 57 * + 16
----
912

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT DISTINCT SUM( 71 )
----
71

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT SUM ( 71 )
----
71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT - COUNT( - 47 ) + 30 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-3189
SELECT - COUNT ( - 47 ) + 30 AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3190
SELECT CASE 73 WHEN - CAST( NULL AS SIGNED ) THEN 71 WHEN + 30 THEN NULL END * + - 60 + - - SUM( ALL 36 ) * - 6 + + 93 * - 76 * + 62 - 98 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3190
SELECT CASE 73 WHEN - CAST ( NULL AS INTEGER ) THEN 71 WHEN + 30 THEN NULL END * + - 60 + - - SUM ( ALL 36 ) * - 6 + + 93 * - 76 * + 62 - 98 col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3191
SELECT - MIN ( + 98 )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3192
SELECT - 33 / - 11 + - 44 * CAST( NULL AS SIGNED ) * + + ( - ( + + 2 ) ) - - 94 + - 64 + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3192
SELECT - 33 / - 11 + - 44 * CAST ( NULL AS INTEGER ) * + + ( - ( + + 2 ) ) - - 94 + - 64 + + COUNT ( * ) AS col1
----
NULL

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

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

query I rowsort
SELECT + 23 + + + 53 - - 23
----
99

query I rowsort
SELECT DISTINCT - 7 * + + 55 + 27
----
-358

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT ALL - 96 * + COUNT( * ) + 56 * COUNT( * ) + - 35 + + 56 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3196
SELECT ALL - 96 * + COUNT ( * ) + 56 * COUNT ( * ) + - 35 + + 56 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT ALL - + NULLIF ( + + 97, + COUNT( * ) * + ( - 34 ) ) * - 43 AS col0
----
4171

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL - + NULLIF ( + + 97, + COUNT ( * ) * + ( - 34 ) ) * - 43 AS col0
----
4171

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

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

query I rowsort
SELECT 88 * - 61 - + + 48
----
-5416

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT + 92 * - - ( + CASE 21 WHEN COUNT( * ) THEN - COUNT( * ) * 52 + 37 + - 20 * + 89 - + ( - 60 ) + - 41 END ) + + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3201
SELECT + 92 * - - ( + CASE 21 WHEN COUNT ( * ) THEN - COUNT ( * ) * 52 + 37 + - 20 * + 89 - + ( - 60 ) + - 41 END ) + + - 66
----
NULL

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

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

query I rowsort
SELECT ALL 70 * + 14 AS col0
----
980

query I rowsort
SELECT ALL + 89 + + - 37 AS col0
----
52

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

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

query I rowsort
SELECT - 40 * + - 27
----
1080

query I rowsort
SELECT + 80 - + 65 + - 26 + 79 * 16 + 91 - + 17 AS col0
----
1327

query I rowsort
SELECT - NULLIF ( + 38, ( + 75 ) )
----
-38

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

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

query I rowsort
SELECT ALL 56 * - 74 AS col0
----
-4144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3211
SELECT - COALESCE ( CAST( NULL AS SIGNED ), - 86 * 9, - 17 )
----
774

skipif mysql # not compatible
query I rowsort label-3211
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), - 86 * 9, - 17 )
----
774

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT - CASE COUNT( * ) WHEN 38 * - 70 THEN 97 * + 84 WHEN + 95 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3212
SELECT - CASE COUNT ( * ) WHEN 38 * - 70 THEN 97 * + 84 WHEN + 95 THEN NULL END
----
NULL

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

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

query I rowsort
SELECT + 14 * - CASE - 9 WHEN + 71 / 92 THEN + 20 + + 77 WHEN 57 THEN - 33 - - 95 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 20 * + 41
----
820

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT + COUNT( * ) + + 90
----
91

skipif mysql # not compatible
query I rowsort label-3216
SELECT + COUNT ( * ) + + 90
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT - COALESCE ( 7, 76 * 78 + 3 * + 32, + 88 + + COUNT( * ), 82 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-3217
SELECT - COALESCE ( 7, 76 * 78 + 3 * + 32, + 88 + + COUNT ( * ), 82 ) AS col1
----
-7

query I rowsort
SELECT + 78 * + ( + 95 ) AS col2
----
7410

query I rowsort
SELECT - 84 * + 7 AS col2
----
-588

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3221
SELECT - CAST( NULL AS SIGNED ) / ( 42 ) - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3221
SELECT - CAST ( NULL AS INTEGER ) / ( 42 ) - 83 AS col0
----
NULL

query I rowsort
SELECT + 55 * 20 AS col2
----
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT DISTINCT COUNT( * ) * MAX( - 82 * - 97 ) AS col2
----
7954

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT COUNT ( * ) * MAX ( - 82 * - 97 ) AS col2
----
7954

onlyif mysql # DIV for integer division: 
query I rowsort label-3224
SELECT ALL - 0 DIV - 71 + - 77 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL - 0 / - 71 + - 77 AS col0
----
-77

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

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

query I rowsort
SELECT - 24 * - 87
----
2088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3227
SELECT ALL - NULLIF ( - 33, - 67 * + CAST( - 47 AS SIGNED ) ) * - 69 + COALESCE ( 0, - COALESCE ( 97, - 6 ) )
----
-2277

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL - NULLIF ( - 33, - 67 * + CAST ( - 47 AS INTEGER ) ) * - 69 + COALESCE ( 0, - COALESCE ( 97, - 6 ) )
----
-2277

query I rowsort
SELECT + 12 + 84 * - 65 AS col0
----
-5448

query I rowsort
SELECT - 94 - 20 * 89
----
-1874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3230
SELECT + CAST( ( COALESCE ( + 10, 89, - 94 / + 60, 79 / 84 ) ) AS SIGNED ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-3230
SELECT + CAST ( ( COALESCE ( + 10, 89, - 94 / + 60, 79 / 84 ) ) AS INTEGER ) AS col1
----
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT DISTINCT - COALESCE ( 41, + COUNT( * ) ) * + 99 + - 50 col0
----
-4109

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT - COALESCE ( 41, + COUNT ( * ) ) * + 99 + - 50 col0
----
-4109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3233
SELECT NULLIF ( + 19, - 81 * - 67 + - CAST( + 40 AS SIGNED ) ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3233
SELECT NULLIF ( + 19, - 81 * - 67 + - CAST ( + 40 AS INTEGER ) ) AS col2
----
19

query I rowsort
SELECT DISTINCT + 63 * ( - 67 ) + 65
----
-4156

query I rowsort
SELECT ALL 37 * - 38 + 7 AS col2
----
-1399

query I rowsort
SELECT + 31 * 63 + - 64 * ( 46 * 31 )
----
-89311

query I rowsort
SELECT ALL 56 * 52 + 1
----
2913

query I rowsort
SELECT - NULLIF ( 67, - ( - 91 ) ) * 9
----
-603

query I rowsort
SELECT + 93 * + 17 + 55 * + 65 AS col1
----
5156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3240
SELECT NULLIF ( 46, COALESCE ( 81, CAST( - ( COUNT( * ) ) AS SIGNED ) ) * 99 - 83 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-3240
SELECT NULLIF ( 46, COALESCE ( 81, CAST ( - ( COUNT ( * ) ) AS INTEGER ) ) * 99 - 83 ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT DISTINCT 24 * 49 - - COUNT( * ) col1
----
1177

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT 24 * 49 - - COUNT ( * ) col1
----
1177

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT SUM( + 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3242
SELECT SUM ( + 62 ) AS col1
----
62

query I rowsort
SELECT + 57 + 22 col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT ALL ( - COUNT( * ) ) * + 69 - + 46
----
-115

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL ( - COUNT ( * ) ) * + 69 - + 46
----
-115

query I rowsort
SELECT DISTINCT + 40 * - 58
----
-2320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3246
SELECT DISTINCT 61 * + CAST( NULL AS SIGNED ) - 82 / 81 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3246
SELECT DISTINCT 61 * + CAST ( NULL AS INTEGER ) - 82 / 81 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT ALL + 14 DIV 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL + 14 / 87 AS col2
----
0

query I rowsort
SELECT DISTINCT + - 8 * + ( 63 ) col0
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT - - CASE COUNT( * ) WHEN - 96 + 72 THEN 23 + 46 / 77 WHEN - COUNT( * ) THEN - 15 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3249
SELECT - - CASE COUNT ( * ) WHEN - 96 + 72 THEN 23 + 46 / 77 WHEN - COUNT ( * ) THEN - 15 END + COUNT ( * )
----
NULL

query I rowsort
SELECT + + 95 * + 5 AS col2
----
475

query I rowsort
SELECT - + 84 * + 65 AS col0
----
-5460

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

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

query I rowsort
SELECT DISTINCT - 70 + 30 AS col1
----
-40

query I rowsort
SELECT ALL 88 + 97 * 15
----
1543

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT MIN( 26 ) + 26
----
52

skipif mysql # not compatible
query I rowsort label-3255
SELECT MIN ( 26 ) + 26
----
52

query I rowsort
SELECT ALL - - 66 + 19 AS col2
----
85

query I rowsort
SELECT DISTINCT 36 + 31
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3258
SELECT ALL - 57 + - CASE COUNT( * ) WHEN + 16 * - 89 THEN 75 WHEN COUNT( * ) * + CAST( - 33 * ( - COUNT( * ) * + 70 ) AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL - 57 + - CASE COUNT ( * ) WHEN + 16 * - 89 THEN 75 WHEN COUNT ( * ) * + CAST ( - 33 * ( - COUNT ( * ) * + 70 ) AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3259
SELECT DISTINCT CASE - CAST( NULL AS SIGNED ) WHEN - 22 * + 51 THEN NULL ELSE 38 * 6 END DIV COUNT( * ) col1
----
228

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT CASE - CAST ( NULL AS INTEGER ) WHEN - 22 * + 51 THEN NULL ELSE 38 * 6 END / COUNT ( * ) col1
----
228

query I rowsort
SELECT DISTINCT 59 + - 89 AS col2
----
-30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT SUM( ALL + - 98 ) + + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3262
SELECT SUM ( ALL + - 98 ) + + 98 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT MAX( DISTINCT 22 ) * 78
----
1716

skipif mysql # not compatible
query I rowsort label-3264
SELECT MAX ( DISTINCT 22 ) * 78
----
1716

query I rowsort
SELECT ALL 41 + - 51 AS col1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3266
SELECT ALL + 26 - - 31 DIV + 25
----
27

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL + 26 - - 31 / + 25
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3267
SELECT + ( + 41 ) * + CAST( + 75 * 34 AS SIGNED ) - 78 AS col2
----
104472

skipif mysql # not compatible
query I rowsort label-3267
SELECT + ( + 41 ) * + CAST ( + 75 * 34 AS INTEGER ) - 78 AS col2
----
104472

query I rowsort
SELECT 92 * 50 * 21
----
96600

query I rowsort
SELECT ( + + 89 ) * ( 97 - - ( + COALESCE ( - 32, 26 + 36 * + 13 ) ) )
----
5785

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT DISTINCT 92 * + + SUM( DISTINCT + 6 )
----
552

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT 92 * + + SUM ( DISTINCT + 6 )
----
552

query I rowsort
SELECT 1 - + + 69 AS col1
----
-68

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

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

query I rowsort
SELECT - 92 * + 55 AS col2
----
-5060

query I rowsort
SELECT - 62 + + ( 5 ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT 24 - - COUNT( * ) * + 28 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-3275
SELECT 24 - - COUNT ( * ) * + 28 AS col0
----
52

query I rowsort
SELECT DISTINCT NULLIF ( + - 29, + 61 * - 70 )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3277
SELECT ALL + - COUNT( * ) + + + 57 - + 63 * CASE + 43 WHEN - COUNT( * ) * CAST( NULL AS SIGNED ) THEN 64 * - CAST( NULL AS SIGNED ) WHEN - 26 THEN + 71 + + 51 WHEN + 43 / - 20 - - 48 THEN + CASE + 57 WHEN CASE AVG ( DISTINCT - 29 ) WHEN 74 + 43 THEN NULL WHEN + ( CAST( + MIN( 25 ) AS DECIMAL ) ) THEN + 7 * COUNT( * ) + 67 * 87 ELSE - COUNT( * ) + - 18 END + 43 THEN NULL ELSE 58 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL + - COUNT ( * ) + + + 57 - + 63 * CASE + 43 WHEN - COUNT ( * ) * CAST ( NULL AS INTEGER ) THEN 64 * - CAST ( NULL AS INTEGER ) WHEN - 26 THEN + 71 + + 51 WHEN + 43 / - 20 - - 48 THEN + CASE + 57 WHEN CASE AVG ( DISTINCT - 29 ) WHEN 74 + 43 THEN NULL WHEN + ( CAST ( + MIN ( 25 ) AS REAL ) ) THEN + 7 * COUNT ( * ) + 67 * 87 ELSE - COUNT ( * ) + - 18 END + 43 THEN NULL ELSE 58 END END
----
NULL

query I rowsort
SELECT + ( - 80 ) * 94
----
-7520

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

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

query I rowsort
SELECT DISTINCT - 19 + + - 18 + - 36
----
-73

query I rowsort
SELECT ALL 81 + + 84 + + 73
----
238

onlyif mysql # DIV for integer division: 
query I rowsort label-3282
SELECT ( - 42 ) DIV - ( 42 )
----
1

skipif mysql # not compatible
query I rowsort label-3282
SELECT ( - 42 ) / - ( 42 )
----
1

query I rowsort
SELECT ALL - - 39 + + 62
----
101

query I rowsort
SELECT 11 * + - CASE - 49 WHEN 26 / - AVG ( DISTINCT + 97 ) THEN 49 END * 56
----
NULL

query I rowsort
SELECT - 8 + + + 63 AS col1
----
55

query I rowsort
SELECT ALL + - 26 * + - ( - 81 ) + 99
----
-2007

query I rowsort
SELECT NULLIF ( - 75, 86 / 98 ) AS col0
----
-75

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

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

query II rowsort
SELECT ALL - 22 AS col0, 42
----
-22
42

query I rowsort
SELECT 57 - + 61 + - + 87 * 34
----
-2962

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT ALL - ( - SUM( ALL - ( CASE 97 WHEN 60 THEN - 20 + 76 * 40 WHEN + 82 THEN NULL END ) ) ) + 14 * 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL - ( - SUM ( ALL - ( CASE 97 WHEN 60 THEN - 20 + 76 * 40 WHEN + 82 THEN NULL END ) ) ) + 14 * 18 AS col0
----
NULL

query I rowsort
SELECT + 79 * - + ( + 67 ) * - 20 + 86
----
105946

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

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

query I rowsort
SELECT ALL 93 * - - ( 76 )
----
7068

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

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

query I rowsort
SELECT ALL 11 * - - 54 AS col2
----
594

query I rowsort
SELECT ALL 87 - - 63 * + 89 AS col1
----
5694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3298
SELECT + 54 col1, CAST( NULL AS SIGNED ) + - SUM( - 99 ) AS col1
----
54
NULL

skipif mysql # not compatible
query II rowsort label-3298
SELECT + 54 col1, CAST ( NULL AS INTEGER ) + - SUM ( - 99 ) AS col1
----
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT MIN( 63 )
----
63

skipif mysql # not compatible
query I rowsort label-3299
SELECT MIN ( 63 )
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3300
SELECT 82 DIV + + 71 col1
----
1

skipif mysql # not compatible
query I rowsort label-3300
SELECT 82 / + + 71 col1
----
1

query II rowsort
SELECT ALL - 56, 18 AS col0
----
-56
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3302
SELECT ALL 51 * + COUNT( * ) * + 95 DIV 94
----
51

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL 51 * + COUNT ( * ) * + 95 / 94
----
51

query I rowsort
SELECT 68 * - 25 + - - 88
----
-1612

onlyif mysql # DIV for integer division: 
query I rowsort label-3304
SELECT ALL 33 DIV - - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL 33 / - - 85 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3305
SELECT 7 / + CAST( NULL AS SIGNED ) * 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3305
SELECT 7 / + CAST ( NULL AS INTEGER ) * 11 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3306
SELECT ALL - 46, 51 + + COUNT( 2 ) + COUNT( 40 ) * + 39 AS col1
----
-46
91

skipif mysql # not compatible
query II rowsort label-3306
SELECT ALL - 46, 51 + + COUNT ( 2 ) + COUNT ( 40 ) * + 39 AS col1
----
-46
91

query I rowsort
SELECT ( + 83 ) * 87
----
7221

query II rowsort
SELECT - 6 AS col2, + 34
----
-6
34

query I rowsort
SELECT - 51 + + + ( - 1 ) + - 36 AS col2
----
-88

query I rowsort
SELECT + 60 * + + 43 + + + 11 + - 66 AS col1
----
2525

query I rowsort
SELECT ALL + 56 + - 90 + + + 18 * + 74
----
1298

query I rowsort
SELECT ALL - 82 + + 53 + 5 + 84
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3313
SELECT + 13 + CAST( COUNT( * ) AS SIGNED ) * 31 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3313
SELECT + 13 + CAST ( COUNT ( * ) AS INTEGER ) * 31 AS col0
----
44

query I rowsort
SELECT DISTINCT 82 + 21 * + ( - 62 )
----
-1220

query I rowsort
SELECT ALL + 12 * 0 + 3 * 55 AS col0
----
165

query I rowsort
SELECT DISTINCT + ( - 93 ) + 87 AS col0
----
-6

query I rowsort
SELECT DISTINCT - 30 + - - 61 + + 39
----
70

query I rowsort
SELECT - + CASE + 22 WHEN + 69 THEN + 74 * + 13 END + 64 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT - - 85 + + CASE COUNT( * ) WHEN 90 THEN + 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3319
SELECT - - 85 + + CASE COUNT ( * ) WHEN 90 THEN + 58 END
----
NULL

query I rowsort
SELECT - - 74 + + ( + 98 ) + + 22
----
194

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3323
SELECT - NULLIF ( ( 69 ), 19 ) + - 5 DIV SUM( ALL + 99 + - 70 )
----
-69

skipif mysql # not compatible
query I rowsort label-3323
SELECT - NULLIF ( ( 69 ), 19 ) + - 5 / SUM ( ALL + 99 + - 70 )
----
-69

query I rowsort
SELECT ALL + + 7 - - ( + + 56 ) * 58
----
3255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3325
SELECT ALL - 36 DIV - 80 * COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL - 36 / - 80 * COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT DISTINCT COUNT( ALL - NULLIF ( + 66, - 32 + 16 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT COUNT ( ALL - NULLIF ( + 66, - 32 + 16 ) )
----
1

query I rowsort
SELECT ALL - 25 - + 60 AS col1
----
-85

query I rowsort
SELECT ALL + 71 * 33
----
2343

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT DISTINCT - 44 - + 2 + - + 19 - - + NULLIF ( + 21, 39 ) * COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT - 44 - + 2 + - + 19 - - + NULLIF ( + 21, 39 ) * COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT - SUM( + 57 ) * 70
----
-3990

skipif mysql # not compatible
query I rowsort label-3330
SELECT - SUM ( + 57 ) * 70
----
-3990

query I rowsort
SELECT ( ( - ( - 13 ) ) ) col1
----
13

query I rowsort
SELECT 62 * + 14 + - - ( + + NULLIF ( ( 83 ), + 57 + 94 ) ) + 51 * + 43
----
3144

query I rowsort
SELECT ALL + 71 * + 22 * 90 AS col1
----
140580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3334
SELECT - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) / COALESCE ( - 45, 65 * 23, COUNT( * ) + 72, 58 ) + + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3334
SELECT - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) / COALESCE ( - 45, 65 * 23, COUNT ( * ) + 72, 58 ) + + 43 AS col2
----
NULL

query I rowsort
SELECT - ( 66 ) * 51 * + + ( 23 ) AS col2
----
-77418

query I rowsort
SELECT + 99 * - 13 AS col2
----
-1287

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT COALESCE ( + - ( - COUNT( * ) ), + - 39 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3337
SELECT COALESCE ( + - ( - COUNT ( * ) ), + - 39 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT CASE - CASE MIN( DISTINCT - 6 ) WHEN COUNT( * ) + - 70 THEN 78 + + 16 END WHEN - 95 - + COUNT( * ) THEN COUNT( * ) * 76 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3338
SELECT CASE - CASE MIN ( DISTINCT - 6 ) WHEN COUNT ( * ) + - 70 THEN 78 + + 16 END WHEN - 95 - + COUNT ( * ) THEN COUNT ( * ) * 76 END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3339
SELECT + 98 * - 27 DIV + COUNT( * ) AS col0
----
-2646

skipif mysql # not compatible
query I rowsort label-3339
SELECT + 98 * - 27 / + COUNT ( * ) AS col0
----
-2646

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3343
SELECT 47 * + + 95 * - + 18 - 74 + 29 DIV 4
----
-80437

skipif mysql # not compatible
query I rowsort label-3343
SELECT 47 * + + 95 * - + 18 - 74 + 29 / 4
----
-80437

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT ALL - ( COUNT( * ) ) * + 5 * + 93
----
-465

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL - ( COUNT ( * ) ) * + 5 * + 93
----
-465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3345
SELECT DISTINCT + NULLIF ( - - 41, - + COUNT( + - 17 ) ) DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT + NULLIF ( - - 41, - + COUNT ( + - 17 ) ) / + 82
----
0

query I rowsort
SELECT + 38 * + 94 * + 59 + + 51
----
210799

query I rowsort
SELECT - - COALESCE ( 81, + 2 ) AS col2
----
81

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

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

query I rowsort
SELECT DISTINCT 39 * - + 23 - 82
----
-979

query II rowsort
SELECT ALL + 51 - - 93 AS col1, + 78 + + 53
----
144
131

query I rowsort
SELECT + - 45 * + 50 * - 17
----
38250

query I rowsort
SELECT DISTINCT + ( + 19 ) - - 69 AS col1
----
88

query I rowsort
SELECT ALL 18 * + - 59
----
-1062

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT DISTINCT 35 * + - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT 35 * + - COUNT ( * )
----
-35

query I rowsort
SELECT + COALESCE ( - + 62, - 72, - 35 ) + - 22 + 81
----
-3

query I rowsort
SELECT + 76 + + - 47
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3357
SELECT DISTINCT - 22 DIV 21 * + 82 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-3357
SELECT DISTINCT - 22 / 21 * + 82 AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3358
SELECT - CAST( 63 AS SIGNED ) - - - COUNT( * ) - 25 + - 16 + - NULLIF ( 8, 39 + + COUNT( DISTINCT - 29 ) )
----
-113

skipif mysql # not compatible
query I rowsort label-3358
SELECT - CAST ( 63 AS INTEGER ) - - - COUNT ( * ) - 25 + - 16 + - NULLIF ( 8, 39 + + COUNT ( DISTINCT - 29 ) )
----
-113

onlyif mysql # aggregate syntax: 
query II rowsort label-3359
SELECT + COUNT( * ) * 20 + + 64 AS col2, COUNT( * ) AS col1
----
84
1

skipif mysql # not compatible
query II rowsort label-3359
SELECT + COUNT ( * ) * 20 + + 64 AS col2, COUNT ( * ) AS col1
----
84
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT ALL + MIN( - 59 ) * - + 98 AS col2
----
5782

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL + MIN ( - 59 ) * - + 98 AS col2
----
5782

onlyif mysql # DIV for integer division: 
query I rowsort label-3361
SELECT DISTINCT 76 DIV 41 + - COALESCE ( - 52, 30 - 86 ) + 22 DIV 67 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT 76 / 41 + - COALESCE ( - 52, 30 - 86 ) + 22 / 67 AS col2
----
53

query I rowsort
SELECT DISTINCT + CASE WHEN ( + 52 >= - 98 * ( COALESCE ( 91, 87 ) ) ) THEN - 70 + + NULLIF ( 5 + 56, + 65 ) * 66 END
----
3956

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3363
SELECT - COUNT( * ) DIV 91 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3363
SELECT - COUNT ( * ) / 91 + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3364
SELECT ALL 51 DIV + 30 + 18 * + 1 * + 9
----
163

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL 51 / + 30 + 18 * + 1 * + 9
----
163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3365
SELECT DISTINCT + NULLIF ( + 15, - 4 + + 85 ) DIV - SUM( ALL + ( 95 ) ) + - 25 * 28 AS col2
----
-700

skipif mysql # not compatible
query I rowsort label-3365
SELECT DISTINCT + NULLIF ( + 15, - 4 + + 85 ) / - SUM ( ALL + ( 95 ) ) + - 25 * 28 AS col2
----
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT - 76 / COUNT( * ) + COUNT( * ) + - 33 * - CASE 10 WHEN - 11 THEN 36 ELSE NULL END * - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3366
SELECT - 76 / COUNT ( * ) + COUNT ( * ) + - 33 * - CASE 10 WHEN - 11 THEN 36 ELSE NULL END * - 93 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3367
SELECT - 88 * 52 + - 62 + + MAX( ALL CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT - 88 * 52 + - 62 + + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT ALL - COUNT( * ) + 89 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL - COUNT ( * ) + 89 AS col1
----
88

query I rowsort
SELECT ALL - 45 * - 21 AS col1
----
945

query I rowsort
SELECT ALL - ( + - 0 ) + - 63
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3371
SELECT DISTINCT - - CASE WHEN NOT ( + 82 ) IS NULL THEN COUNT( ALL 99 ) DIV - 41 ELSE 70 END
----
0

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT - - CASE WHEN NOT ( + 82 ) IS NULL THEN COUNT ( ALL 99 ) / - 41 ELSE 70 END
----
0

query II rowsort
SELECT ALL - 76 AS col2, - 94
----
-76
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT - 61 + - SUM( - 81 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-3373
SELECT - 61 + - SUM ( - 81 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT 35 * - - ( + 54 ) + - 95 + - COALESCE ( 92, COUNT( * ) * - 72, + ( COUNT( * ) ) + - ( - 68 ) * - 24 ) + COALESCE ( COALESCE ( + 34, - 49 ), 26 - + 68 )
----
1737

skipif mysql # not compatible
query I rowsort label-3374
SELECT 35 * - - ( + 54 ) + - 95 + - COALESCE ( 92, COUNT ( * ) * - 72, + ( COUNT ( * ) ) + - ( - 68 ) * - 24 ) + COALESCE ( COALESCE ( + 34, - 49 ), 26 - + 68 )
----
1737

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3375
SELECT MAX( + 38 ) + 43 AS col2, - 66 + - 89 + - 71 DIV 71
----
81
-156

skipif mysql # not compatible
query II rowsort label-3375
SELECT MAX ( + 38 ) + 43 AS col2, - 66 + - 89 + - 71 / 71
----
81
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT ALL - - 44 * + 15 + - 78 + - ( + COUNT( * ) ) * 7
----
575

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL - - 44 * + 15 + - 78 + - ( + COUNT ( * ) ) * 7
----
575

query I rowsort
SELECT 66 + 34 AS col0
----
100

query I rowsort
SELECT - 97 + 26 AS col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3379
SELECT DISTINCT - + 15 - - COUNT( - CAST( - CAST( - + 91 AS SIGNED ) AS SIGNED ) ) + 4
----
-10

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT - + 15 - - COUNT ( - CAST ( - CAST ( - + 91 AS INTEGER ) AS INTEGER ) ) + 4
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3380
SELECT + - 20 * + 56 + 56 AS col0, CAST( NULL AS SIGNED ) * + 90 - - COUNT( * ) AS col0
----
-1064
NULL

skipif mysql # not compatible
query II rowsort label-3380
SELECT + - 20 * + 56 + 56 AS col0, CAST ( NULL AS INTEGER ) * + 90 - - COUNT ( * ) AS col0
----
-1064
NULL

query I rowsort
SELECT 4 * + ( + 26 ) * 49 AS col2
----
5096

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3382
SELECT DISTINCT + ( - COALESCE ( - 94, - COUNT( * ) + + 39 * ( NULLIF ( + 45, + 29 ) ) ) ) * - CASE - 47 - + 33 / - MAX( - 27 ) WHEN - CAST( NULL AS DECIMAL ) * + 90 + 97 THEN + 11 - - 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT + ( - COALESCE ( - 94, - COUNT ( * ) + + 39 * ( NULLIF ( + 45, + 29 ) ) ) ) * - CASE - 47 - + 33 / - MAX ( - 27 ) WHEN - CAST ( NULL AS REAL ) * + 90 + 97 THEN + 11 - - 39 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3383
SELECT ALL - + CAST( NULL AS SIGNED ) * 14 + - 78 + 92 + - CAST( NULL AS DECIMAL ) * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL - + CAST ( NULL AS INTEGER ) * 14 + - 78 + 92 + - CAST ( NULL AS REAL ) * - 11
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3384
SELECT ALL CAST( - + 2 AS SIGNED ) - 61 + + COUNT( * ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL CAST ( - + 2 AS INTEGER ) - 61 + + COUNT ( * ) AS col2
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3385
SELECT + CAST( NULL AS SIGNED ) + - - ( + SUM( 75 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3385
SELECT + CAST ( NULL AS INTEGER ) + - - ( + SUM ( 75 ) )
----
NULL

query I rowsort
SELECT - 47 + ( + - 37 )
----
-84

query II rowsort
SELECT ALL 26, 35 AS col0
----
26
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3388
SELECT ( + + 38 ) DIV - 89 col2
----
0

skipif mysql # not compatible
query I rowsort label-3388
SELECT ( + + 38 ) / - 89 col2
----
0

query II rowsort
SELECT 76 * - + 4, NULLIF ( + 25, + ( 56 ) ) + + 18 AS col0
----
-304
43

query I rowsort
SELECT 11 + + - 97 + + 62 * + + 11
----
596

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT DISTINCT 82 * MIN( DISTINCT - 8 ) AS col1
----
-656

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT 82 * MIN ( DISTINCT - 8 ) AS col1
----
-656

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3392
SELECT ALL 95 AS col2, - CAST( + + 8 AS SIGNED ) + - 76 * + - 66 * + - 95 + + 45 * + 56
----
95
-474008

skipif mysql # not compatible
query II rowsort label-3392
SELECT ALL 95 AS col2, - CAST ( + + 8 AS INTEGER ) + - 76 * + - 66 * + - 95 + + 45 * + 56
----
95
-474008

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT COUNT( * ) * - ( + 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-3393
SELECT COUNT ( * ) * - ( + 31 )
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-3394
SELECT ALL 28 + ( - COUNT( DISTINCT - 21 ) ), - 85 AS col2
----
27
-85

skipif mysql # not compatible
query II rowsort label-3394
SELECT ALL 28 + ( - COUNT ( DISTINCT - 21 ) ), - 85 AS col2
----
27
-85

onlyif mysql # aggregate syntax: 
query III rowsort label-3395
SELECT DISTINCT 0, - 31 AS col1, - COUNT( * ) AS col2
----
0
-31
-1

skipif mysql # not compatible
query III rowsort label-3395
SELECT DISTINCT 0, - 31 AS col1, - COUNT ( * ) AS col2
----
0
-31
-1

query II rowsort
SELECT - 4 AS col2, 54 + - + 91 + + + 93 + + 45 * + COALESCE ( + 27, 4 ) col2
----
-4
1271

query II rowsort
SELECT + 57, + 85 col2
----
57
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3398
SELECT - COUNT( * ) DIV + 87 + - 69
----
-69

skipif mysql # not compatible
query I rowsort label-3398
SELECT - COUNT ( * ) / + 87 + - 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT ( ( + SUM( + + 52 ) ) ) * 36 + - COUNT( * ) * 2
----
1870

skipif mysql # not compatible
query I rowsort label-3399
SELECT ( ( + SUM ( + + 52 ) ) ) * 36 + - COUNT ( * ) * 2
----
1870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3400
SELECT ALL + ( + - COUNT( * ) ) DIV - 97 * + 1 * 90
----
0

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL + ( + - COUNT ( * ) ) / - 97 * + 1 * 90
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3401
SELECT COUNT( * ) DIV - + 8
----
0

skipif mysql # not compatible
query I rowsort label-3401
SELECT COUNT ( * ) / - + 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT DISTINCT - MIN( ALL 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT - MIN ( ALL 5 )
----
-5

query II rowsort
SELECT + - 70 AS col1, 82 + + 11 AS col2
----
-70
93

query II rowsort
SELECT + 69 AS col2, - 28 col2
----
69
-28

query II rowsort
SELECT DISTINCT - 22 AS col1, - CASE + 28 WHEN - 73 THEN 95 - - 96 * 64 ELSE NULL END
----
-22
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3406
SELECT ALL - - 17 - - COALESCE ( + + 13, + + 2 * + + 54 DIV + 93 + + 20 * 31 ) col0
----
30

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL - - 17 - - COALESCE ( + + 13, + + 2 * + + 54 / + 93 + + 20 * 31 ) col0
----
30

query I rowsort
SELECT 81 * + + 47
----
3807

query II rowsort
SELECT ALL - 70 AS col2, 11 AS col2
----
-70
11

query I rowsort
SELECT DISTINCT - ( - 47 ) AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3410
SELECT ALL - CAST( + - 66 AS SIGNED ) col1
----
66

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL - CAST ( + - 66 AS INTEGER ) col1
----
66

query II rowsort
SELECT ALL 32 AS col1, 6
----
32
6

query I rowsort
SELECT - 36 * - 62 * 70 AS col2
----
156240

onlyif mysql # aggregate syntax: 
query II rowsort label-3413
SELECT 83 * + + 68 AS col0, + COUNT( * ) + COUNT( * ) AS col1
----
5644
2

skipif mysql # not compatible
query II rowsort label-3413
SELECT 83 * + + 68 AS col0, + COUNT ( * ) + COUNT ( * ) AS col1
----
5644
2

query II rowsort
SELECT - - 29 AS col0, 47 + - + 12
----
29
35

query I rowsort
SELECT ALL + 12 * + 96 col0
----
1152

onlyif mysql # DIV for integer division: 
query I rowsort label-3416
SELECT 76 DIV + 43 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3416
SELECT 76 / + 43 AS col1
----
1

query I rowsort
SELECT COALESCE ( - - 88, - 60 ) * 75 + + + 56 AS col1
----
6656

query I rowsort
SELECT ALL 41 + - 30
----
11

query I rowsort
SELECT ALL - 67 + + - 62 AS col2
----
-129

query I rowsort
SELECT ALL ( - + 34 ) + + + 1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3421
SELECT NULLIF ( + CAST( - 43 AS SIGNED ), - + 73 ) DIV + COALESCE ( + 98, + ( COUNT( + 66 ) ) ) * COUNT( ALL 54 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3421
SELECT NULLIF ( + CAST ( - 43 AS INTEGER ), - + 73 ) / + COALESCE ( + 98, + ( COUNT ( + 66 ) ) ) * COUNT ( ALL 54 ) AS col1
----
0

query I rowsort
SELECT ALL + 4 + 84
----
88

query I rowsort
SELECT ALL ( - 47 ) + + 48 - 38 * - 50 * - 4
----
-7599

query I rowsort
SELECT DISTINCT CASE 95 WHEN + + 63 THEN + + 55 + - 49 WHEN + 35 THEN NULL END AS col2
----
NULL

query II rowsort
SELECT 82 + 31, 54 AS col1
----
113
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3426
SELECT COUNT( * ) - + 38 + + + 22 AS col0, 38 * 9 AS col2
----
-15
342

skipif mysql # not compatible
query II rowsort label-3426
SELECT COUNT ( * ) - + 38 + + + 22 AS col0, 38 * 9 AS col2
----
-15
342

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT 91 + - + COUNT( * ) + - 74 + - 43 * - MAX( DISTINCT + 80 ) - - COUNT( * ) * - 72
----
3384

skipif mysql # not compatible
query I rowsort label-3427
SELECT 91 + - + COUNT ( * ) + - 74 + - 43 * - MAX ( DISTINCT + 80 ) - - COUNT ( * ) * - 72
----
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT 27 * - - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-3428
SELECT 27 * - - COUNT ( * )
----
27

query I rowsort
SELECT + 63 + + 42
----
105

query I rowsort
SELECT + 69 * 32 * 66 AS col0
----
145728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3431
SELECT + 39 + + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT + 39 + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( 61, - - 39 )
----
61

query II rowsort
SELECT + 57 + 78 col2, + 24 AS col1
----
135
24

query I rowsort
SELECT ALL - 80 * - NULLIF ( - + 73, + ( - 53 ) ) + + - 25 AS col0
----
-5865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3435
SELECT CASE - + COUNT( * ) WHEN - CAST( NULL AS SIGNED ) + 20 THEN NULL WHEN 26 * - NULLIF ( 55, 74 / + 85 + - 0 ) * + 57 THEN - CASE CAST( + CAST( 1 AS DECIMAL ) AS SIGNED ) WHEN - COUNT( * ) THEN CASE WHEN NOT ( 39 ) NOT IN ( 61 ) THEN + 27 END ELSE NULL END ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3435
SELECT CASE - + COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) + 20 THEN NULL WHEN 26 * - NULLIF ( 55, 74 / + 85 + - 0 ) * + 57 THEN - CASE CAST ( + CAST ( 1 AS REAL ) AS INTEGER ) WHEN - COUNT ( * ) THEN CASE WHEN NOT ( 39 ) NOT IN ( 61 ) THEN + 27 END ELSE NULL END ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT ALL - COUNT( * ) * - 93 - - + 57 AS col1
----
150

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL - COUNT ( * ) * - 93 - - + 57 AS col1
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3437
SELECT ALL - 85 * CAST( NULL AS SIGNED ) - - - MAX( ALL 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT ALL - 85 * CAST ( NULL AS INTEGER ) - - - MAX ( ALL 94 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT + + COUNT( DISTINCT 92 ) + 29
----
30

skipif mysql # not compatible
query I rowsort label-3438
SELECT + + COUNT ( DISTINCT 92 ) + 29
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3439
SELECT + 21 + + + MIN( 16 ) * 89 * + NULLIF ( 9, - CAST( NULL AS SIGNED ) ) AS col2
----
12837

skipif mysql # not compatible
query I rowsort label-3439
SELECT + 21 + + + MIN ( 16 ) * 89 * + NULLIF ( 9, - CAST ( NULL AS INTEGER ) ) AS col2
----
12837

query I rowsort
SELECT + 90 * + + 3 AS col2
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT ALL 60 * + + COUNT( * ) col2
----
60

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL 60 * + + COUNT ( * ) col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT 99 * + MIN( DISTINCT + 68 ) + COUNT( * ) * - 59 + + COUNT( * )
----
6674

skipif mysql # not compatible
query I rowsort label-3442
SELECT 99 * + MIN ( DISTINCT + 68 ) + COUNT ( * ) * - 59 + + COUNT ( * )
----
6674

onlyif mysql # DIV for integer division: 
query I rowsort label-3443
SELECT - 4 + - + 44 DIV + 67 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-3443
SELECT - 4 + - + 44 / + 67 AS col1
----
-4

query I rowsort
SELECT + - 7 * + - 63 * + + 36 AS col1
----
15876

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT - - 2 * - + 72 * - - COUNT( * ) AS col2
----
-144

skipif mysql # not compatible
query I rowsort label-3445
SELECT - - 2 * - + 72 * - - COUNT ( * ) AS col2
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT ALL + 63 * - NULLIF ( + 59, SUM( - 21 ) * - MIN( 17 ) ) * + 27
----
-100359

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL + 63 * - NULLIF ( + 59, SUM ( - 21 ) * - MIN ( 17 ) ) * + 27
----
-100359

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3447
SELECT + - COUNT( ALL 35 ) + + - MAX( DISTINCT - 11 ) DIV - COALESCE ( + 63, - CAST( NULLIF ( + MAX( ALL - 31 ), 13 * COUNT( * ) ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3447
SELECT + - COUNT ( ALL 35 ) + + - MAX ( DISTINCT - 11 ) / - COALESCE ( + 63, - CAST ( NULLIF ( + MAX ( ALL - 31 ), 13 * COUNT ( * ) ) AS INTEGER ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3448
SELECT ALL + MIN( DISTINCT - 77 ) AS col2, - 50 + - ( - + CASE + 97 WHEN - 98 THEN CAST( - NULLIF ( 50, 32 * - 53 + - MAX( ALL 18 ) / + 33 ) AS DECIMAL ) / 88 + 56 * 19 ELSE NULL END )
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-3448
SELECT ALL + MIN ( DISTINCT - 77 ) AS col2, - 50 + - ( - + CASE + 97 WHEN - 98 THEN CAST ( - NULLIF ( 50, 32 * - 53 + - MAX ( ALL 18 ) / + 33 ) AS REAL ) / 88 + 56 * 19 ELSE NULL END )
----
-77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT + + 69 * - MAX( DISTINCT - 42 ) + + COALESCE ( + MAX( 26 ), 21 ) + 60 AS col2
----
2984

skipif mysql # not compatible
query I rowsort label-3449
SELECT + + 69 * - MAX ( DISTINCT - 42 ) + + COALESCE ( + MAX ( 26 ), 21 ) + 60 AS col2
----
2984

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT + + SUM( DISTINCT + + 17 ) + + 74
----
91

skipif mysql # not compatible
query I rowsort label-3450
SELECT + + SUM ( DISTINCT + + 17 ) + + 74
----
91

query I rowsort
SELECT - + 75 * - 14 * + 36 AS col2
----
37800

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT DISTINCT - SUM( ALL - 74 ) * 76
----
5624

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT - SUM ( ALL - 74 ) * 76
----
5624

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3453
SELECT + - CAST( NULL AS DECIMAL ) * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3453
SELECT + - CAST ( NULL AS REAL ) * + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3454
SELECT ( - - 35 ), CASE - - 99 WHEN 80 - + 4 THEN NULL WHEN + + COUNT( * ) THEN 80 END + - 18 AS col1
----
35
NULL

skipif mysql # not compatible
query II rowsort label-3454
SELECT ( - - 35 ), CASE - - 99 WHEN 80 - + 4 THEN NULL WHEN + + COUNT ( * ) THEN 80 END + - 18 AS col1
----
35
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT ALL - ( + + 8 ) * ( + COALESCE ( + COUNT( * ), - + 50 ) ) + + 99 + + 34 AS col0
----
125

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL - ( + + 8 ) * ( + COALESCE ( + COUNT ( * ), - + 50 ) ) + + 99 + + 34 AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT ALL CASE + 41 WHEN MIN( NULLIF ( + 56, 35 * - 68 + 91 ) ) * + 0 THEN NULL WHEN 11 - COALESCE ( COUNT( * ) - - 45, ( COUNT( * ) ) ) * 23 THEN 33 ELSE COUNT( + 16 ) END
----
1

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL CASE + 41 WHEN MIN ( NULLIF ( + 56, 35 * - 68 + 91 ) ) * + 0 THEN NULL WHEN 11 - COALESCE ( COUNT ( * ) - - 45, ( COUNT ( * ) ) ) * 23 THEN 33 ELSE COUNT ( + 16 ) END
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3457
SELECT ALL + COALESCE ( + 97, 3, - SUM( + 48 ) * 57 ) + 93 DIV + 94
----
97

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL + COALESCE ( + 97, 3, - SUM ( + 48 ) * 57 ) + 93 / + 94
----
97

query I rowsort
SELECT DISTINCT 18 + + 31 AS col2
----
49

query I rowsort
SELECT ALL + 8 + ( + 95 ) + + 42 + - 18 * - 7
----
271

query I rowsort
SELECT ALL + 35 + + 31
----
66

query I rowsort
SELECT ALL - 36 + + + 56 + 55
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3462
SELECT ALL + 9 + - MIN( ALL + - 52 ) AS col1, + 25 * - + 84 - 79
----
61
-2179

skipif mysql # not compatible
query II rowsort label-3462
SELECT ALL + 9 + - MIN ( ALL + - 52 ) AS col1, + 25 * - + 84 - 79
----
61
-2179

onlyif mysql # aggregate syntax: 
query II rowsort label-3463
SELECT - COUNT( * ), - COUNT( ALL + - 15 ) AS col1
----
-1
-1

skipif mysql # not compatible
query II rowsort label-3463
SELECT - COUNT ( * ), - COUNT ( ALL + - 15 ) AS col1
----
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3464
SELECT ALL COALESCE ( CAST( + 15 AS SIGNED ), + + 77 + - 87 DIV - 95, + 80 * - COUNT( * ) - - CAST( - 28 AS SIGNED ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL COALESCE ( CAST ( + 15 AS INTEGER ), + + 77 + - 87 / - 95, + 80 * - COUNT ( * ) - - CAST ( - 28 AS INTEGER ) ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT - 93 + + ( + 67 ) * + - 38 * + - SUM( 84 )
----
213771

skipif mysql # not compatible
query I rowsort label-3465
SELECT - 93 + + ( + 67 ) * + - 38 * + - SUM ( 84 )
----
213771

query I rowsort
SELECT + 69 + - 45 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT ALL - CASE + 1 WHEN - 65 THEN NULL WHEN NULLIF ( - 65, 66 ) THEN - - 66 * - CASE 45 WHEN 88 + COUNT( ALL - 7 ) THEN NULL WHEN - 40 THEN NULL ELSE - 29 * 45 END ELSE NULL END + - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3467
SELECT ALL - CASE + 1 WHEN - 65 THEN NULL WHEN NULLIF ( - 65, 66 ) THEN - - 66 * - CASE 45 WHEN 88 + COUNT ( ALL - 7 ) THEN NULL WHEN - 40 THEN NULL ELSE - 29 * 45 END ELSE NULL END + - 15 AS col0
----
NULL

query I rowsort
SELECT - 81 * ( - + 41 )
----
3321

query I rowsort
SELECT DISTINCT - 91 - + 96 + + + 65 AS col0
----
-122

query I rowsort
SELECT DISTINCT ( - 39 ) - + NULLIF ( + 48, 84 ) AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT ALL 21 - - - 6 - + 62 + - CASE 6 WHEN COUNT( * ) THEN + 18 * 84 * - 66 WHEN + COUNT( * ) + + MAX( DISTINCT - 74 ) THEN + 38 END * + ( 85 ) * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL 21 - - - 6 - + 62 + - CASE 6 WHEN COUNT ( * ) THEN + 18 * 84 * - 66 WHEN + COUNT ( * ) + + MAX ( DISTINCT - 74 ) THEN + 38 END * + ( 85 ) * 86
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3472
SELECT DISTINCT 80 DIV - ( - 82 ) * + 67 * + - 76 col0
----
0

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT 80 / - ( - 82 ) * + 67 * + - 76 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT COUNT( + 78 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3473
SELECT COUNT ( + 78 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT MAX( ALL - + 21 ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-3474
SELECT MAX ( ALL - + 21 ) col2
----
-21

query II rowsort
SELECT - - 53 * - - 65 + - + 53 AS col0, - 11
----
3392
-11

query II rowsort
SELECT ALL + + 15 AS col1, + 42 AS col2
----
15
42

query I rowsort
SELECT ALL 94 * - 28 AS col2
----
-2632

onlyif mysql # aggregate syntax: 
query II rowsort label-3478
SELECT + 82, ( - COUNT( * ) ) * + + COUNT( * ) * 87 - + COALESCE ( - - ( + - 89 ), - 98 + - 97, - MIN( - 6 ) + 7 ) + 18 AS col2
----
82
20

skipif mysql # not compatible
query II rowsort label-3478
SELECT + 82, ( - COUNT ( * ) ) * + + COUNT ( * ) * 87 - + COALESCE ( - - ( + - 89 ), - 98 + - 97, - MIN ( - 6 ) + 7 ) + 18 AS col2
----
82
20

query II rowsort
SELECT ALL + 54, + 51 AS col2
----
54
51

query II rowsort
SELECT + 16, - 67 AS col0
----
16
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3481
SELECT ALL + 90 * 35 - + 14 AS col1, 38 DIV + + 39 - + COUNT( - + 13 ) AS col1
----
3136
-1

skipif mysql # not compatible
query II rowsort label-3481
SELECT ALL + 90 * 35 - + 14 AS col1, 38 / + + 39 - + COUNT ( - + 13 ) AS col1
----
3136
-1

query I rowsort
SELECT + 48 + + 41 * 73 - 52 AS col0
----
2989

query I rowsort
SELECT ALL + ( + - 58 )
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3484
SELECT + + COUNT( * ) DIV 12 col1
----
0

skipif mysql # not compatible
query I rowsort label-3484
SELECT + + COUNT ( * ) / 12 col1
----
0

query I rowsort
SELECT ALL 45 * + 69 + + COALESCE ( - 87, + 10 ) + + ( 37 ) + - - 77 AS col1
----
3132

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT DISTINCT - 78 * COUNT( * ) + + 41 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT - 78 * COUNT ( * ) + + 41 AS col2
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3487
SELECT + 47 DIV 82 DIV COALESCE ( - 48, - - COALESCE ( - + COUNT( + - 28 ), 59 ), - 24 * - 24 + + 32 * ( 15 ), 50 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3487
SELECT + 47 / 82 / COALESCE ( - 48, - - COALESCE ( - + COUNT ( + - 28 ), 59 ), - 24 * - 24 + + 32 * ( 15 ), 50 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3488
SELECT ALL 48 * - 37 + - - 38 DIV + - 89 AS col1
----
-1776

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL 48 * - 37 + - - 38 / + - 89 AS col1
----
-1776

query I rowsort
SELECT ALL - 96 * 90 + - + 22 AS col2
----
-8662

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3490
SELECT ALL - CAST( NULL AS SIGNED ) * 49 * - + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL - CAST ( NULL AS INTEGER ) * 49 * - + 15
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3491
SELECT + COUNT( * ) DIV - 42 * 11 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3491
SELECT + COUNT ( * ) / - 42 * 11 AS col2
----
0

query I rowsort
SELECT - 17 * 27 AS col1
----
-459

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT COALESCE ( + MAX( DISTINCT - 5 ), COALESCE ( - 77, COUNT( * ) - - + COUNT( * ) ) * + - 47 * - 58 * 54, - 83 * + 23 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3493
SELECT COALESCE ( + MAX ( DISTINCT - 5 ), COALESCE ( - 77, COUNT ( * ) - - + COUNT ( * ) ) * + - 47 * - 58 * 54, - 83 * + 23 ) AS col1
----
-5

query I rowsort
SELECT 27 * - 28 AS col1
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT ALL - SUM( - + 20 ) * - + 69
----
-1380

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL - SUM ( - + 20 ) * - + 69
----
-1380

query I rowsort
SELECT DISTINCT 4 - - + 27 * - + 5
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT ALL 63 * ( - 11 ) * + 29 * COUNT( * ) * - 95
----
1909215

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL 63 * ( - 11 ) * + 29 * COUNT ( * ) * - 95
----
1909215

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT ALL COUNT( * ) - - + 37 - - 40 + + 95
----
173

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL COUNT ( * ) - - + 37 - - 40 + + 95
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT ALL - 42 - - MAX( + + 4 ) + + COALESCE ( - + 54, 49 * + ( - 82 ) + - 55 + + ( - 18 ), - 77 ) + - 41 * - 63 AS col1
----
2491

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL - 42 - - MAX ( + + 4 ) + + COALESCE ( - + 54, 49 * + ( - 82 ) + - 55 + + ( - 18 ), - 77 ) + - 41 * - 63 AS col1
----
2491

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT 42 * - 19 * + MAX( + 12 ) AS col1
----
-9576

skipif mysql # not compatible
query I rowsort label-3500
SELECT 42 * - 19 * + MAX ( + 12 ) AS col1
----
-9576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3501
SELECT ( + CASE - NULLIF ( + 15, 95 * - COUNT( * ) ) WHEN + - 46 THEN - + 38 - - CAST( COUNT( * ) AS SIGNED ) END ) + - 49 * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-3501
SELECT ( + CASE - NULLIF ( + 15, 95 * - COUNT ( * ) ) WHEN + - 46 THEN - + 38 - - CAST ( COUNT ( * ) AS INTEGER ) END ) + - 49 * 78
----
NULL

query II rowsort
SELECT 52 - - 5 AS col1, 52
----
57
52

query I rowsort
SELECT 55 * + - 16
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT 26 + + + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-3504
SELECT 26 + + + COUNT ( * )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3505
SELECT ALL - CAST( NULL AS SIGNED ) - 52 + + + 49 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL - CAST ( NULL AS INTEGER ) - 52 + + + 49 * CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT 40 * 57 * 62
----
141360

onlyif mysql # aggregate syntax: 
query II rowsort label-3507
SELECT DISTINCT - COUNT( * ) * 49 AS col2, COUNT( * ) * + - 69 * + 80 AS col1
----
-49
-5520

skipif mysql # not compatible
query II rowsort label-3507
SELECT DISTINCT - COUNT ( * ) * 49 AS col2, COUNT ( * ) * + - 69 * + 80 AS col1
----
-49
-5520

query I rowsort
SELECT + 30 * + ( + 74 ) * 94 AS col2
----
208680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3509
SELECT ALL - + ( + COUNT( * ) ) * - 12 * + 73 AS col2, - COALESCE ( - CASE + 81 WHEN + 75 THEN CAST( NULL AS SIGNED ) * NULLIF ( + 1 * 4, 46 ) END, COUNT( * ) )
----
876
-1

skipif mysql # not compatible
query II rowsort label-3509
SELECT ALL - + ( + COUNT ( * ) ) * - 12 * + 73 AS col2, - COALESCE ( - CASE + 81 WHEN + 75 THEN CAST ( NULL AS INTEGER ) * NULLIF ( + 1 * 4, 46 ) END, COUNT ( * ) )
----
876
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT - COUNT( * ) + + - NULLIF ( + COUNT( * ), + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3510
SELECT - COUNT ( * ) + + - NULLIF ( + COUNT ( * ), + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ALL - + 94 * COUNT( * ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL - + 94 * COUNT ( * ) AS col0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3512
SELECT + + 68 * + COUNT( * ) + - 43 DIV - 21
----
70

skipif mysql # not compatible
query I rowsort label-3512
SELECT + + 68 * + COUNT ( * ) + - 43 / - 21
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT ALL - COUNT( + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL - COUNT ( + 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT DISTINCT + + MAX( + 27 ) + - 61 + 3 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT + + MAX ( + 27 ) + - 61 + 3 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT ALL - MIN( + 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL - MIN ( + 82 ) AS col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3516
SELECT ALL + - COUNT( * ) + - 97 + - CASE + 42 WHEN + 60 THEN + - COUNT( * ) END * + 91 / + CAST( NULL AS SIGNED ) * - 26 * - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL + - COUNT ( * ) + - 97 + - CASE + 42 WHEN + 60 THEN + - COUNT ( * ) END * + 91 / + CAST ( NULL AS INTEGER ) * - 26 * - 93 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3517
SELECT + + ( 68 ), 86 * 65 + 5 DIV - 47 + + - 84 AS col2
----
68
5506

skipif mysql # not compatible
query II rowsort label-3517
SELECT + + ( 68 ), 86 * 65 + 5 / - 47 + + - 84 AS col2
----
68
5506

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT 89 * + MAX( + 72 ) + SUM( + + 91 ) AS col1
----
6499

skipif mysql # not compatible
query I rowsort label-3518
SELECT 89 * + MAX ( + 72 ) + SUM ( + + 91 ) AS col1
----
6499

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT + 32 * - SUM( DISTINCT + + 68 ) col0
----
-2176

skipif mysql # not compatible
query I rowsort label-3519
SELECT + 32 * - SUM ( DISTINCT + + 68 ) col0
----
-2176

onlyif mysql # aggregate syntax: 
query II rowsort label-3520
SELECT 48 + COUNT( * ) AS col2, 3 AS col2
----
49
3

skipif mysql # not compatible
query II rowsort label-3520
SELECT 48 + COUNT ( * ) AS col2, 3 AS col2
----
49
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3521
SELECT ALL + ( - ( - 44 ) ) DIV - 71 AS col2, + SUM( ALL + 25 ) AS col2
----
0
25

skipif mysql # not compatible
query II rowsort label-3521
SELECT ALL + ( - ( - 44 ) ) / - 71 AS col2, + SUM ( ALL + 25 ) AS col2
----
0
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT ALL MAX( - + 58 ) + + + COUNT( * ) * - 61 * - - 68 AS col2
----
-4206

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL MAX ( - + 58 ) + + + COUNT ( * ) * - 61 * - - 68 AS col2
----
-4206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3523
SELECT + COUNT( * ) * + MAX( ALL + 27 ) * + 90 + - + 0 + - 9 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3523
SELECT + COUNT ( * ) * + MAX ( ALL + 27 ) * + 90 + - + 0 + - 9 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3524
SELECT ALL - COUNT( * ) + + ( + 92 ) - + SUM( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL - COUNT ( * ) + + ( + 92 ) - + SUM ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT + 0 * COUNT( * ) + + + MAX( 56 )
----
56

skipif mysql # not compatible
query I rowsort label-3525
SELECT + 0 * COUNT ( * ) + + + MAX ( 56 )
----
56

query I rowsort
SELECT 85 * + + 68 col2
----
5780

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT 20 * - - NULLIF ( - 76, - ( - + 70 ) * + 84 * 10 + - + COUNT( * ) )
----
-1520

skipif mysql # not compatible
query I rowsort label-3527
SELECT 20 * - - NULLIF ( - 76, - ( - + 70 ) * + 84 * 10 + - + COUNT ( * ) )
----
-1520

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT 91 + + + COUNT( * ) * 98 * - - 66 col2
----
6559

skipif mysql # not compatible
query I rowsort label-3528
SELECT 91 + + + COUNT ( * ) * 98 * - - 66 col2
----
6559

query I rowsort
SELECT DISTINCT 99 - + ( - + 26 ) + + 57 AS col0
----
182

query II rowsort
SELECT + 88, + 0 * - 89 AS col2
----
88
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3531
SELECT DISTINCT CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) / 37 AS col1, 2 * - 75
----
NULL
-150

skipif mysql # not compatible
query II rowsort label-3531
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) / 37 AS col1, 2 * - 75
----
NULL
-150

query I rowsort
SELECT 26 + - 34 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT DISTINCT 45 - CASE + + 61 WHEN - + 5 * + 4 * + + 22 THEN NULL ELSE 38 END * - + MAX( - 88 )
----
-3299

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT 45 - CASE + + 61 WHEN - + 5 * + 4 * + + 22 THEN NULL ELSE 38 END * - + MAX ( - 88 )
----
-3299

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3534
SELECT DISTINCT CASE - 39 WHEN - 65 / + + 75 + 61 THEN NULL WHEN 20 THEN 60 * + 84 + - 20 + - 33 + - CAST( NULL AS SIGNED ) ELSE NULL END * + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT CASE - 39 WHEN - 65 / + + 75 + 61 THEN NULL WHEN 20 THEN 60 * + 84 + - 20 + - 33 + - CAST ( NULL AS INTEGER ) ELSE NULL END * + 85
----
NULL

query I rowsort
SELECT ALL 44 * + + 5 AS col2
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT DISTINCT 3 * COUNT( * ) * COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-3536
SELECT DISTINCT 3 * COUNT ( * ) * COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3537
SELECT ALL COUNT( * ) AS col2, 21 AS col0
----
1
21

skipif mysql # not compatible
query II rowsort label-3537
SELECT ALL COUNT ( * ) AS col2, 21 AS col0
----
1
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3538
SELECT - CASE + + 61 WHEN - 47 + + ( CAST( NULL AS SIGNED ) ) + 41 * NULLIF ( CAST( NULL AS SIGNED ), ( + - 31 ) + - COUNT( 23 ) ) * + 66 THEN COUNT( * ) WHEN COUNT( * ) - 98 THEN 49 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT - CASE + + 61 WHEN - 47 + + ( CAST ( NULL AS INTEGER ) ) + 41 * NULLIF ( CAST ( NULL AS INTEGER ), ( + - 31 ) + - COUNT ( 23 ) ) * + 66 THEN COUNT ( * ) WHEN COUNT ( * ) - 98 THEN 49 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 15 + - - 91
----
106

query I rowsort
SELECT ALL + 65 + + 83 * - 79 AS col0
----
-6492

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT + COUNT( DISTINCT - + 9 ) * COUNT( - 60 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3541
SELECT + COUNT ( DISTINCT - + 9 ) * COUNT ( - 60 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT ALL - 90 + + COUNT( * ) * - 42 AS col0
----
-132

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL - 90 + + COUNT ( * ) * - 42 AS col0
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-3543
SELECT + 3 * + - 38 * + 45 + ( + 95 ) DIV - 99 * - + 22
----
-5130

skipif mysql # not compatible
query I rowsort label-3543
SELECT + 3 * + - 38 * + 45 + ( + 95 ) / - 99 * - + 22
----
-5130

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT - COUNT( * ) * + + 63 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-3544
SELECT - COUNT ( * ) * + + 63 AS col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3545
SELECT DISTINCT + NULLIF ( - + 90, CAST( NULL AS DECIMAL ) * 73 + + + COALESCE ( + SUM( ALL - 41 ), - 46 + MAX( DISTINCT - + 66 ) ) ) * - 71 AS col0
----
6390

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT + NULLIF ( - + 90, CAST ( NULL AS REAL ) * 73 + + + COALESCE ( + SUM ( ALL - 41 ), - 46 + MAX ( DISTINCT - + 66 ) ) ) * - 71 AS col0
----
6390

onlyif mysql # aggregate syntax: 
query II rowsort label-3546
SELECT - 30 * 37 * - 62 AS col2, - 52 * MAX( - 39 )
----
68820
2028

skipif mysql # not compatible
query II rowsort label-3546
SELECT - 30 * 37 * - 62 AS col2, - 52 * MAX ( - 39 )
----
68820
2028

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3547
SELECT 62 * - CAST( - - 73 AS SIGNED ) AS col0
----
-4526

skipif mysql # not compatible
query I rowsort label-3547
SELECT 62 * - CAST ( - - 73 AS INTEGER ) AS col0
----
-4526

query I rowsort
SELECT ALL + - 66 * - + 87
----
5742

query I rowsort
SELECT ALL - - 46 * 23 + + 61 - 28 col0
----
1091

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3550
SELECT COALESCE ( + - 27, - 50 ) * + CAST( - + MAX( + 84 ) AS SIGNED ) * + + 42 * - 74 - + - 38 + - 47 * + 54
----
-7051444

skipif mysql # not compatible
query I rowsort label-3550
SELECT COALESCE ( + - 27, - 50 ) * + CAST ( - + MAX ( + 84 ) AS INTEGER ) * + + 42 * - 74 - + - 38 + - 47 * + 54
----
-7051444

query I rowsort
SELECT DISTINCT + 80 * 33 + + 34 * - 74 col1
----
124

query II rowsort
SELECT ALL + - 74 * + 13 * + - 4 + + ( - 90 ), - 2 AS col1
----
3758
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT + 96 * - MAX( - 20 ) + + ( + 84 ) + 82 - 89 * + + 10
----
1196

skipif mysql # not compatible
query I rowsort label-3553
SELECT + 96 * - MAX ( - 20 ) + + ( + 84 ) + 82 - 89 * + + 10
----
1196

query I rowsort
SELECT - 76 * - 14
----
1064

query I rowsort
SELECT + 53 * 7
----
371

query II rowsort
SELECT ALL + 65 AS col1, - 43 AS col0
----
65
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-3557
SELECT DISTINCT + 32 DIV + - 3
----
-10

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT + 32 / + - 3
----
-10

query II rowsort
SELECT DISTINCT + 43 AS col0, - 88
----
43
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3559
SELECT ALL CAST( 66 AS SIGNED ) * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + 11 * - + 36, 93 * MAX( DISTINCT + ( + 47 ) ) + + + 21 - 27 * 42 col2
----
NULL
3258

skipif mysql # not compatible
query II rowsort label-3559
SELECT ALL CAST ( 66 AS INTEGER ) * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + 11 * - + 36, 93 * MAX ( DISTINCT + ( + 47 ) ) + + + 21 - 27 * 42 col2
----
NULL
3258

query I rowsort
SELECT 23 * + + 58 + 21 AS col1
----
1355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3561
SELECT DISTINCT + CAST( - - CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT + CAST ( - - CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT + 93 + + 37 * 47
----
1832

query II rowsort
SELECT ALL + 0, + 26 AS col2
----
0
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3564
SELECT + MAX( - 62 ), 24 AS col2
----
-62
24

skipif mysql # not compatible
query II rowsort label-3564
SELECT + MAX ( - 62 ), 24 AS col2
----
-62
24

query I rowsort
SELECT - 81 * 65 * - - 97 * + 88 * + - 44
----
1977449760

query I rowsort
SELECT 60 * - 50 + 29 AS col1
----
-2971

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT - COALESCE ( + 30, 91 + NULLIF ( 54, 38 ), MIN( DISTINCT - 16 ) + + MAX( DISTINCT + + 87 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-3567
SELECT - COALESCE ( + 30, 91 + NULLIF ( 54, 38 ), MIN ( DISTINCT - 16 ) + + MAX ( DISTINCT + + 87 ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT + COUNT( * ) - - + COALESCE ( + 33, - 85 + + 96, + COALESCE ( - ( + ( + 89 ) ), - COUNT( * ) + 43 - + 35, 24 * COUNT( ALL 62 * 80 ) ) ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-3568
SELECT + COUNT ( * ) - - + COALESCE ( + 33, - 85 + + 96, + COALESCE ( - ( + ( + 89 ) ), - COUNT ( * ) + 43 - + 35, 24 * COUNT ( ALL 62 * 80 ) ) ) AS col0
----
34

query I rowsort
SELECT + 51 * - 71 * 97 AS col1
----
-351237

query I rowsort
SELECT - CASE CASE 29 WHEN + 26 * 33 / + ( - + COALESCE ( 67, - - 80 ) ) + 37 THEN NULL ELSE - 43 END WHEN - 1 THEN 55 END * + 37 - - 20 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + ( NULLIF ( 23, + - 81 + - 51 ) ) * - + 14, 57 AS col0
----
-322
57

query I rowsort
SELECT ALL 38 + + 47 * - + 2 AS col0
----
-56

query I rowsort
SELECT + 44 - - 25 col2
----
69

query I rowsort
SELECT DISTINCT 86 + + 89 + + 92 - 20 + 72 AS col2
----
319

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT + 74 + + 46 + - 75 + - - MAX( + 16 ) * COUNT( * ) + - 60
----
1

skipif mysql # not compatible
query I rowsort label-3575
SELECT + 74 + + 46 + - 75 + - - MAX ( + 16 ) * COUNT ( * ) + - 60
----
1

query I rowsort
SELECT ALL + 3 * + 25
----
75

query II rowsort
SELECT ALL - 98, 51 AS col0
----
-98
51

query I rowsort
SELECT + 1 + - 20 + - 11 - + CASE - + 78 WHEN + 95 + + + ( 1 ) - + 77 THEN NULL WHEN - 76 THEN 87 ELSE 36 END
----
-66

query II rowsort
SELECT + 35 AS col1, - 35 * - 93
----
35
3255

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT + ( + 7 ) + - COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3580
SELECT + ( + 7 ) + - COUNT ( * ) AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3581
SELECT - + 59 DIV + 58
----
-1

skipif mysql # not compatible
query I rowsort label-3581
SELECT - + 59 / + 58
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT ALL + MIN( + - 32 ) + ( 0 ) + + 65 + 3 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL + MIN ( + - 32 ) + ( 0 ) + + 65 + 3 AS col2
----
36

query I rowsort
SELECT + - 48 * + 8 * 89 * + - 15
----
512640

query III rowsort
SELECT 24, + 64 AS col2, - 4 - + 17 AS col0
----
24
64
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT - + 23 / + 68 / CAST( NULL AS SIGNED ) + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3585
SELECT - + 23 / + 68 / CAST ( NULL AS INTEGER ) + + 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3586
SELECT DISTINCT - + 84 * - - 12 - + - 20 / + MIN( + + 83 ) * + 95 / - - 4 + - 0 + - CAST( NULL AS DECIMAL ) * - 2 * - + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3586
SELECT DISTINCT - + 84 * - - 12 - + - 20 / + MIN ( + + 83 ) * + 95 / - - 4 + - 0 + - CAST ( NULL AS REAL ) * - 2 * - + 42
----
NULL

query I rowsort
SELECT + CASE - 91 WHEN - AVG ( DISTINCT - 55 ) THEN NULL ELSE 44 END col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT - 53 + - COUNT( * ) + + 98 * + 98
----
9550

skipif mysql # not compatible
query I rowsort label-3588
SELECT - 53 + - COUNT ( * ) + + 98 * + 98
----
9550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3589
SELECT ( - + CAST( - - ( + 87 ) AS SIGNED ) )
----
-87

skipif mysql # not compatible
query I rowsort label-3589
SELECT ( - + CAST ( - - ( + 87 ) AS INTEGER ) )
----
-87

query I rowsort
SELECT DISTINCT + COALESCE ( + 82, 80 ) * + + 85 - + - 55 col1
----
7025

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT ALL + 27 * - - ( + COUNT( * ) )
----
27

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL + 27 * - - ( + COUNT ( * ) )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3592
SELECT - 17 DIV + 61 * - + 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3592
SELECT - 17 / + 61 * - + 63 AS col0
----
0

query II rowsort
SELECT ALL + 19 * + ( - - 18 ) AS col1, 20 * - 23 + - 79 AS col0
----
342
-539

query I rowsort
SELECT - 34 * - - 77 * 77
----
-201586

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT DISTINCT + 46 * - COUNT( * ) * 60 AS col0
----
-2760

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT + 46 * - COUNT ( * ) * 60 AS col0
----
-2760

query I rowsort
SELECT NULLIF ( - 51, + - 85 - + 91 ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT ALL + NULLIF ( COUNT( * ), - - 23 ) * - 69 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL + NULLIF ( COUNT ( * ), - - 23 ) * - 69 AS col2
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3598
SELECT CASE + COALESCE ( 52, + 66 + - 91 ) WHEN + NULLIF ( + 72, - AVG ( ALL - ( - + 21 ) ) ) THEN NULL WHEN + - CASE + 13 WHEN 99 THEN 78 + 7 ELSE + COALESCE ( 5, 74, - 89 ) * 34 END + 47 THEN CAST( NULL AS SIGNED ) ELSE - 50 * + COUNT( * ) END col0
----
-50

skipif mysql # not compatible
query I rowsort label-3598
SELECT CASE + COALESCE ( 52, + 66 + - 91 ) WHEN + NULLIF ( + 72, - AVG ( ALL - ( - + 21 ) ) ) THEN NULL WHEN + - CASE + 13 WHEN 99 THEN 78 + 7 ELSE + COALESCE ( 5, 74, - 89 ) * 34 END + 47 THEN CAST ( NULL AS INTEGER ) ELSE - 50 * + COUNT ( * ) END col0
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-3599
SELECT - 75 + + 21, COUNT( * ) * + + 21 + - 53 AS col2
----
-54
-32

skipif mysql # not compatible
query II rowsort label-3599
SELECT - 75 + + 21, COUNT ( * ) * + + 21 + - 53 AS col2
----
-54
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3600
SELECT + ( - + 35 ) * + + 15 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3600
SELECT + ( - + 35 ) * + + 15 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3601
SELECT CASE + NULLIF ( + 9, + 22 * 55 / - 49 + + 18 ) WHEN + + 99 * + 30 * + ( - - 77 ) THEN + - COALESCE ( + CAST( NULL AS SIGNED ), 14 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT CASE + NULLIF ( + 9, + 22 * 55 / - 49 + + 18 ) WHEN + + 99 * + 30 * + ( - - 77 ) THEN + - COALESCE ( + CAST ( NULL AS INTEGER ), 14 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3602
SELECT - 51 DIV + + 97 * + 57 * + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3602
SELECT - 51 / + + 97 * + 57 * + + COUNT ( * )
----
0

query II rowsort
SELECT + 57 * + 58, + 20 col1
----
3306
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT DISTINCT COALESCE ( - MIN( - + 95 ), 43 * - COUNT( * ) + + - CASE - AVG ( DISTINCT + + 28 ) WHEN 46 / - ( - COUNT( * ) ) + 59 THEN ( 82 ) WHEN ( ( 80 ) ) THEN 23 * 80 - + 74 WHEN 68 THEN NULL ELSE NULL END ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT COALESCE ( - MIN ( - + 95 ), 43 * - COUNT ( * ) + + - CASE - AVG ( DISTINCT + + 28 ) WHEN 46 / - ( - COUNT ( * ) ) + 59 THEN ( 82 ) WHEN ( ( 80 ) ) THEN 23 * 80 - + 74 WHEN 68 THEN NULL ELSE NULL END ) AS col2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3605
SELECT ALL CASE - 78 WHEN + + CAST( NULL AS SIGNED ) * - 5 + - 96 + - COUNT( * ) - - + 62 * + + 16 * + CAST( NULL AS SIGNED ) + AVG ( DISTINCT - 46 ) * + 86 - 57 * 22 THEN NULL WHEN - 93 + - ( + 69 ) THEN - 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL CASE - 78 WHEN + + CAST ( NULL AS INTEGER ) * - 5 + - 96 + - COUNT ( * ) - - + 62 * + + 16 * + CAST ( NULL AS INTEGER ) + AVG ( DISTINCT - 46 ) * + 86 - 57 * 22 THEN NULL WHEN - 93 + - ( + 69 ) THEN - 45 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3606
SELECT ALL 3 * - 80 + + 25 * - - CAST( NULL AS SIGNED ) + - + NULLIF ( + 56, + ( - 86 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL 3 * - 80 + + 25 * - - CAST ( NULL AS INTEGER ) + - + NULLIF ( + 56, + ( - 86 ) )
----
NULL

query I rowsort
SELECT - 21 + 77 AS col2
----
56

query I rowsort
SELECT ALL 91 * - 37
----
-3367

query II rowsort
SELECT + 19 + - 35, 10 + + - 76 col2
----
-16
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT + - 37 + - - 83 + - COUNT( * ) * - 27 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-3610
SELECT + - 37 + - - 83 + - COUNT ( * ) * - 27 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT - + 68 * SUM( 36 ) * 33 * - + COUNT( * ) + 27 + - 42 + 41
----
80810

skipif mysql # not compatible
query I rowsort label-3611
SELECT - + 68 * SUM ( 36 ) * 33 * - + COUNT ( * ) + 27 + - 42 + 41
----
80810

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT + - 88 + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-3612
SELECT + - 88 + COUNT ( * )
----
-87

query I rowsort
SELECT ALL + 82 + + NULLIF ( 4, + 8 + + 27 ) + - 48 col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT DISTINCT MIN( + 9 )
----
9

skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT MIN ( + 9 )
----
9

query I rowsort
SELECT ALL + - 32 * - 29 * + + 71
----
65888

query I rowsort
SELECT + 21 * 87 * - + 75 * + 51
----
-6988275

query I rowsort
SELECT ALL 4 - 97 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-3618
SELECT DISTINCT ( - + 40 ) AS col1, COUNT( * ) * 32 AS col0
----
-40
32

skipif mysql # not compatible
query II rowsort label-3618
SELECT DISTINCT ( - + 40 ) AS col1, COUNT ( * ) * 32 AS col0
----
-40
32

query I rowsort
SELECT - 88 - + 36 - - 65 AS col0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3620
SELECT ALL + 30 DIV + 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL + 30 / + 64 AS col2
----
0

query II rowsort
SELECT - - ( + 38 ), + 48 + + + 45 AS col1
----
38
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT ALL 45 * + 1 * - 8 * MIN( DISTINCT + + 37 ) - - + ( + COUNT( * ) )
----
-13319

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL 45 * + 1 * - 8 * MIN ( DISTINCT + + 37 ) - - + ( + COUNT ( * ) )
----
-13319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3623
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), - - 26 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3623
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), - - 26 ) AS col0
----
NULL

query I rowsort
SELECT + 24 * - - 55
----
1320

query I rowsort
SELECT ALL COALESCE ( 86, - 40 ) * 25 AS col1
----
2150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3626
SELECT DISTINCT 6 * CASE - 71 WHEN + 63 THEN AVG ( NULLIF ( 81, + 40 * - 23 ) ) + - CAST( - 87 AS SIGNED ) + - 34 + + ( COUNT( * ) ) WHEN 92 THEN + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3626
SELECT DISTINCT 6 * CASE - 71 WHEN + 63 THEN AVG ( NULLIF ( 81, + 40 * - 23 ) ) + - CAST ( - 87 AS INTEGER ) + - 34 + + ( COUNT ( * ) ) WHEN 92 THEN + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3627
SELECT 59 DIV 17 - + 17
----
-14

skipif mysql # not compatible
query I rowsort label-3627
SELECT 59 / 17 - + 17
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT DISTINCT - CASE - - COUNT( * ) WHEN - 66 THEN - + 77 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT DISTINCT - CASE - - COUNT ( * ) WHEN - 66 THEN - + 77 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT ALL CASE - + 35 WHEN - 3 + COALESCE ( - 73, 16 ) + - 13 * - 41 * - ( NULLIF ( 88, - AVG ( - 1 ) ) ) THEN NULL WHEN + 22 * - COUNT( * ) - - 76 THEN 94 * 67 END * - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL CASE - + 35 WHEN - 3 + COALESCE ( - 73, 16 ) + - 13 * - 41 * - ( NULLIF ( 88, - AVG ( - 1 ) ) ) THEN NULL WHEN + 22 * - COUNT ( * ) - - 76 THEN 94 * 67 END * - 17
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3630
SELECT CAST( NULL AS SIGNED ) * + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-3630
SELECT CAST ( NULL AS INTEGER ) * + - 18
----
NULL

query I rowsort
SELECT 60 * - 46 + + 11
----
-2749

query II rowsort
SELECT ALL - 81 col0, + 93
----
-81
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3633
SELECT + 94 AS col1, - COUNT( * ) + + + 98 * + - 9 AS col0
----
94
-883

skipif mysql # not compatible
query II rowsort label-3633
SELECT + 94 AS col1, - COUNT ( * ) + + + 98 * + - 9 AS col0
----
94
-883

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT ALL - CASE - 73 WHEN + + 88 - + 59 + - ( - - 42 ) / + NULLIF ( - 16, - COUNT( * ) ) * + 96 THEN NULL WHEN - - 85 * - + 58 + AVG ( DISTINCT - 32 ) THEN NULL ELSE + COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL - CASE - 73 WHEN + + 88 - + 59 + - ( - - 42 ) / + NULLIF ( - 16, - COUNT ( * ) ) * + 96 THEN NULL WHEN - - 85 * - + 58 + AVG ( DISTINCT - 32 ) THEN NULL ELSE + COUNT ( * ) END AS col1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3635
SELECT CAST( NULL AS DECIMAL ) * + NULLIF ( - 70, COALESCE ( + 89, - 13 - - 7 * + 2 + + - 19 + + 32 + 68 * AVG ( + 6 ) + - 30 ) + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3635
SELECT CAST ( NULL AS REAL ) * + NULLIF ( - 70, COALESCE ( + 89, - 13 - - 7 * + 2 + + - 19 + + 32 + 68 * AVG ( + 6 ) + - 30 ) + 1 )
----
NULL

query I rowsort
SELECT ALL + 51 + + 45 - - + ( 15 ) AS col2
----
111

query I rowsort
SELECT ALL - 97 + + 65 - - 4 * - - 78 AS col1
----
280

query I rowsort
SELECT ALL - NULLIF ( 23, ( + - 0 ) )
----
-23

query II rowsort
SELECT + 62 AS col1, - 88 * + 82 col2
----
62
-7216

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT ALL 86 * - - COUNT( * ) * + COUNT( * ) * - - 73 AS col1
----
6278

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL 86 * - - COUNT ( * ) * + COUNT ( * ) * - - 73 AS col1
----
6278

query I rowsort
SELECT DISTINCT + 7 + - 97 AS col0
----
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-3642
SELECT - 70, 80 DIV + 5 AS col1
----
-70
16

skipif mysql # not compatible
query II rowsort label-3642
SELECT - 70, 80 / + 5 AS col1
----
-70
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3643
SELECT 27 col1, + CASE COUNT( * ) WHEN - 95 THEN NULL WHEN + 13 THEN NULL ELSE MAX( - - 38 ) END * - ( - CAST( NULL AS SIGNED ) ) * - - 25 - 56
----
27
NULL

skipif mysql # not compatible
query II rowsort label-3643
SELECT 27 col1, + CASE COUNT ( * ) WHEN - 95 THEN NULL WHEN + 13 THEN NULL ELSE MAX ( - - 38 ) END * - ( - CAST ( NULL AS INTEGER ) ) * - - 25 - 56
----
27
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3644
SELECT + 56 + CAST( NULL AS SIGNED ) - - COUNT( * ) + - + 9 * + 35 / - COALESCE ( 73, + ( 62 ), - ( + 86 ) ) * COALESCE ( - ( - 39 ), CASE - 73 WHEN + 66 THEN + 43 WHEN 19 * 53 THEN NULL WHEN ( + 97 ) THEN NULL END ) + - 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3644
SELECT + 56 + CAST ( NULL AS INTEGER ) - - COUNT ( * ) + - + 9 * + 35 / - COALESCE ( 73, + ( 62 ), - ( + 86 ) ) * COALESCE ( - ( - 39 ), CASE - 73 WHEN + 66 THEN + 43 WHEN 19 * 53 THEN NULL WHEN ( + 97 ) THEN NULL END ) + - 86 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3645
SELECT + CASE - COALESCE ( 45, - - 42 ) WHEN + ( - 27 ) THEN 29 * 74 * ( - CAST( NULL AS SIGNED ) ) WHEN + - COUNT( * ) / + CASE - + CASE 83 WHEN 52 THEN NULL WHEN 1 THEN NULL ELSE 35 * COUNT( * ) END WHEN 64 * 27 THEN + 24 WHEN + SUM( + 69 ) THEN - 93 WHEN + 75 * 52 THEN NULL END * - ( + 12 ) THEN NULL ELSE COUNT( * ) * - 28 END
----
-28

skipif mysql # not compatible
query I rowsort label-3645
SELECT + CASE - COALESCE ( 45, - - 42 ) WHEN + ( - 27 ) THEN 29 * 74 * ( - CAST ( NULL AS INTEGER ) ) WHEN + - COUNT ( * ) / + CASE - + CASE 83 WHEN 52 THEN NULL WHEN 1 THEN NULL ELSE 35 * COUNT ( * ) END WHEN 64 * 27 THEN + 24 WHEN + SUM ( + 69 ) THEN - 93 WHEN + 75 * 52 THEN NULL END * - ( + 12 ) THEN NULL ELSE COUNT ( * ) * - 28 END
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT - - SUM( DISTINCT + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-3646
SELECT - - SUM ( DISTINCT + 34 )
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3647
SELECT + 39 DIV + 30 col2
----
1

skipif mysql # not compatible
query I rowsort label-3647
SELECT + 39 / + 30 col2
----
1

query I rowsort
SELECT ALL - + 59 + - + 94
----
-153

query I rowsort
SELECT - 92 - - COALESCE ( 71, 5 ) col2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3650
SELECT + 96 * - CAST( 99 AS SIGNED ) col0
----
-9504

skipif mysql # not compatible
query I rowsort label-3650
SELECT + 96 * - CAST ( 99 AS INTEGER ) col0
----
-9504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3651
SELECT DISTINCT - COALESCE ( + - 57, + 63 * - 21 + + - MAX( + + 19 ) - - + 52 + - + COUNT( * ) * COUNT( * ) + + 24 + - + 64 * + 50 + 68 DIV 21 )
----
57

skipif mysql # not compatible
query I rowsort label-3651
SELECT DISTINCT - COALESCE ( + - 57, + 63 * - 21 + + - MAX ( + + 19 ) - - + 52 + - + COUNT ( * ) * COUNT ( * ) + + 24 + - + 64 * + 50 + 68 / 21 )
----
57

query II rowsort
SELECT DISTINCT - 20 AS col1, COALESCE ( - 81, + 13 * + 69 ) * - 70 - + 13 AS col1
----
-20
5657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3653
SELECT + CAST( + - 2 AS SIGNED ) + - + 86 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-3653
SELECT + CAST ( + - 2 AS INTEGER ) + - + 86 AS col0
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3654
SELECT COUNT( * ) + + COUNT( * ) DIV COUNT( * ) + 58
----
60

skipif mysql # not compatible
query I rowsort label-3654
SELECT COUNT ( * ) + + COUNT ( * ) / COUNT ( * ) + 58
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT + COUNT( ALL + 12 ) - 77 + - 48 * 53
----
-2620

skipif mysql # not compatible
query I rowsort label-3655
SELECT + COUNT ( ALL + 12 ) - 77 + - 48 * 53
----
-2620

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT + ( - - 51 ) + - ( COUNT( * ) ) + - 48 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3656
SELECT + ( - - 51 ) + - ( COUNT ( * ) ) + - 48 AS col1
----
2

query I rowsort
SELECT 17 - + 88
----
-71

query I rowsort
SELECT ALL - COALESCE ( - 75, + 58 * - - 58 * - + 78 ) AS col1
----
75

query I rowsort
SELECT DISTINCT - 7 * + + 5
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT SUM( + 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-3660
SELECT SUM ( + 24 ) AS col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3661
SELECT 36 DIV + 24
----
1

skipif mysql # not compatible
query I rowsort label-3661
SELECT 36 / + 24
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3662
SELECT - 46 DIV + 72 + + 74 * + ( + COUNT( * ) ) DIV + - NULLIF ( + CAST( + + 93 AS SIGNED ), + 9 * - - CAST( + + 35 AS SIGNED ) + COUNT( * ) * - 61 - COUNT( * ) + + 38 ) - 99 * 37 AS col1
----
-3663

skipif mysql # not compatible
query I rowsort label-3662
SELECT - 46 / + 72 + + 74 * + ( + COUNT ( * ) ) / + - NULLIF ( + CAST ( + + 93 AS INTEGER ), + 9 * - - CAST ( + + 35 AS INTEGER ) + COUNT ( * ) * - 61 - COUNT ( * ) + + 38 ) - 99 * 37 AS col1
----
-3663

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT COUNT( * ) + + 26 col2
----
27

skipif mysql # not compatible
query I rowsort label-3663
SELECT COUNT ( * ) + + 26 col2
----
27

query I rowsort
SELECT 20 * + 37
----
740

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT SUM( 20 ) + - 20
----
0

skipif mysql # not compatible
query I rowsort label-3665
SELECT SUM ( 20 ) + - 20
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3666
SELECT 26 DIV + 5
----
5

skipif mysql # not compatible
query I rowsort label-3666
SELECT 26 / + 5
----
5

query I rowsort
SELECT ALL 22 + 52
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3668
SELECT MIN( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3668
SELECT MIN ( + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 39 + - 21 + - - ( 98 )
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3670
SELECT + 64 * + + 81 + - + CAST( NULL AS SIGNED ) * - + 15 AS col0, MIN( 63 ) AS col0
----
NULL
63

skipif mysql # not compatible
query II rowsort label-3670
SELECT + 64 * + + 81 + - + CAST ( NULL AS INTEGER ) * - + 15 AS col0, MIN ( 63 ) AS col0
----
NULL
63

query I rowsort
SELECT 61 * + 75 col1
----
4575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3672
SELECT + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3672
SELECT + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3673
SELECT ALL ( COUNT( * ) ) + + 17 + 5 AS col1, 36 * - + NULLIF ( 69, 21 ) AS col0
----
23
-2484

skipif mysql # not compatible
query II rowsort label-3673
SELECT ALL ( COUNT ( * ) ) + + 17 + 5 AS col1, 36 * - + NULLIF ( 69, 21 ) AS col0
----
23
-2484

query I rowsort
SELECT DISTINCT 45 * - 89 * 55 AS col0
----
-220275

query I rowsort
SELECT - 1 * + + 52 + + - 33 AS col1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3676
SELECT 51 + - CAST( NULL AS SIGNED ) * 45 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3676
SELECT 51 + - CAST ( NULL AS INTEGER ) * 45 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3677
SELECT CAST( NULL AS SIGNED ) * 93 - 79 / ( - COUNT( * ) ) + + 34 * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3677
SELECT CAST ( NULL AS INTEGER ) * 93 - 79 / ( - COUNT ( * ) ) + + 34 * - 68
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3678
SELECT - 23 + + 8 + COUNT( * ) + - SUM( + ( - 20 ) ) + + COUNT( * ) AS col1, - 84
----
7
-84

skipif mysql # not compatible
query II rowsort label-3678
SELECT - 23 + + 8 + COUNT ( * ) + - SUM ( + ( - 20 ) ) + + COUNT ( * ) AS col1, - 84
----
7
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-3679
SELECT COALESCE ( + 86, + + COUNT( * ) ) + 65 AS col2, - 70 AS col2
----
151
-70

skipif mysql # not compatible
query II rowsort label-3679
SELECT COALESCE ( + 86, + + COUNT ( * ) ) + 65 AS col2, - 70 AS col2
----
151
-70

query I rowsort
SELECT DISTINCT - - 7 * - 49
----
-343

query I rowsort
SELECT ALL - 55 - - 41 + 66 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT ALL - + MAX( 89 ) * 94 + + - ( - + 22 )
----
-8344

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL - + MAX ( 89 ) * 94 + + - ( - + 22 )
----
-8344

query I rowsort
SELECT + 3 + 23 * - + ( 21 )
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT ALL - - COUNT( * ) - + 2 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL - - COUNT ( * ) - + 2 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT DISTINCT 82 * - - CASE + ( - 18 ) WHEN + - 11 THEN AVG ( ALL ( 76 ) ) * - + 32 + - + 51 * COUNT( DISTINCT + 34 ) + COALESCE ( - 33, 7 ) * ( + ( - COUNT( * ) ) ) END * + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3685
SELECT DISTINCT 82 * - - CASE + ( - 18 ) WHEN + - 11 THEN AVG ( ALL ( 76 ) ) * - + 32 + - + 51 * COUNT ( DISTINCT + 34 ) + COALESCE ( - 33, 7 ) * ( + ( - COUNT ( * ) ) ) END * + 71 AS col0
----
NULL

query I rowsort
SELECT - + 36 * + - 9
----
324

query I rowsort
SELECT DISTINCT COALESCE ( - 30, + 17 )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3688
SELECT - CASE COALESCE ( 64, - 57 + 45 ) WHEN - - 21 THEN CAST( NULL AS SIGNED ) * + - ( 4 ) * 61 + + 77 + - 24 WHEN - CASE 59 WHEN 93 THEN NULL WHEN 78 THEN 80 + 29 * 65 ELSE 32 * 63 - + ( + 36 ) END THEN NULL WHEN NULLIF ( - 80, - 3 ) THEN - 77 ELSE 36 END + COUNT( * ) * + 99
----
63

skipif mysql # not compatible
query I rowsort label-3688
SELECT - CASE COALESCE ( 64, - 57 + 45 ) WHEN - - 21 THEN CAST ( NULL AS INTEGER ) * + - ( 4 ) * 61 + + 77 + - 24 WHEN - CASE 59 WHEN 93 THEN NULL WHEN 78 THEN 80 + 29 * 65 ELSE 32 * 63 - + ( + 36 ) END THEN NULL WHEN NULLIF ( - 80, - 3 ) THEN - 77 ELSE 36 END + COUNT ( * ) * + 99
----
63

query I rowsort
SELECT - ( - 87 ) * - - CASE - 91 WHEN 73 THEN NULL ELSE 9 END AS col1
----
783

onlyif mysql # DIV for integer division: 
query I rowsort label-3690
SELECT DISTINCT + - 39 DIV 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3690
SELECT DISTINCT + - 39 / 76 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3691
SELECT - ( - CASE 37 WHEN + 61 * + - ( - + 52 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN - - 42 / + 94 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3691
SELECT - ( - CASE 37 WHEN + 61 * + - ( - + 52 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN - - 42 / + 94 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT ALL + COALESCE ( - ( - - 67 ), - NULLIF ( + 76, 92 * + ( + + COALESCE ( - - 32, 94 ) ) / + + 69 ) ) + - MAX( ALL - 38 ) + + 23 * COUNT( 99 )
----
-6

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL + COALESCE ( - ( - - 67 ), - NULLIF ( + 76, 92 * + ( + + COALESCE ( - - 32, 94 ) ) / + + 69 ) ) + - MAX ( ALL - 38 ) + + 23 * COUNT ( 99 )
----
-6

query I rowsort
SELECT ALL CASE + 68 WHEN + 33 THEN + 80 + + 69 - - - 20 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT DISTINCT + 87 + - 4 + + + COALESCE ( 46, + - COUNT( * ), - + 59 ) AS col0
----
129

skipif mysql # not compatible
query I rowsort label-3694
SELECT DISTINCT + 87 + - 4 + + + COALESCE ( 46, + - COUNT ( * ), - + 59 ) AS col0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT - MIN( DISTINCT + + 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-3695
SELECT - MIN ( DISTINCT + + 85 )
----
-85

query I rowsort
SELECT - 34 * - 24 AS col2
----
816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3697
SELECT + 40 * COALESCE ( + 93, + 23 + COALESCE ( + - 46, - 33, - 12 * - 44 * + 92 + - + 34 + - + 61 * - + 31 ), CASE - + 46 WHEN + 73 THEN - COUNT( * ) WHEN 50 * COUNT( * ) THEN NULL WHEN - 50 * 96 THEN + 10 * 0 + 63 ELSE NULL END + + 84 ) DIV 40 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-3697
SELECT + 40 * COALESCE ( + 93, + 23 + COALESCE ( + - 46, - 33, - 12 * - 44 * + 92 + - + 34 + - + 61 * - + 31 ), CASE - + 46 WHEN + 73 THEN - COUNT ( * ) WHEN 50 * COUNT ( * ) THEN NULL WHEN - 50 * 96 THEN + 10 * 0 + 63 ELSE NULL END + + 84 ) / 40 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT ALL NULLIF ( 53, 14 ) * + COUNT( * ) + 89 + - 53
----
89

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL NULLIF ( 53, 14 ) * + COUNT ( * ) + 89 + - 53
----
89

query I rowsort
SELECT ( - 87 ) col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT ALL - COUNT( * ) * + - COUNT( ALL - + 65 ) * NULLIF ( - 86, 8 )
----
-86

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL - COUNT ( * ) * + - COUNT ( ALL - + 65 ) * NULLIF ( - 86, 8 )
----
-86

query I rowsort
SELECT ALL - 68 * + 40 + + 9
----
-2711

query II rowsort
SELECT DISTINCT + 13 AS col2, + ( 15 ) AS col2
----
13
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3703
SELECT 33 DIV - 58 - - COUNT( ALL + - 53 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3703
SELECT 33 / - 58 - - COUNT ( ALL + - 53 ) AS col2
----
1

query I rowsort
SELECT ALL - 97 * + - 88 AS col1
----
8536

onlyif mysql # aggregate syntax: 
query II rowsort label-3705
SELECT + COUNT( * ) AS col2, - 49 * - 20 + + 36
----
1
1016

skipif mysql # not compatible
query II rowsort label-3705
SELECT + COUNT ( * ) AS col2, - 49 * - 20 + + 36
----
1
1016

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT DISTINCT + NULLIF ( - + COUNT( * ), CASE - + 58 WHEN - COUNT( * ) THEN NULL WHEN + 60 THEN 45 * + 84 * - ( - 99 ) + - 74 * + 21 + + COUNT( * ) + - - 69 END * 89 + + 81 + - 15 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT + NULLIF ( - + COUNT ( * ), CASE - + 58 WHEN - COUNT ( * ) THEN NULL WHEN + 60 THEN 45 * + 84 * - ( - 99 ) + - 74 * + 21 + + COUNT ( * ) + - - 69 END * 89 + + 81 + - 15 ) AS col0
----
-1

query I rowsort
SELECT - 97 * - ( + 54 ) + ( + 43 ) AS col1
----
5281

query I rowsort
SELECT ( + 92 ) * - 78 + - - 59 + 82 * 41
----
-3755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3709
SELECT ALL + 95 * + 94 + + COUNT( * ), CAST( NULL AS SIGNED ) - - + 84 AS col0
----
8931
NULL

skipif mysql # not compatible
query II rowsort label-3709
SELECT ALL + 95 * + 94 + + COUNT ( * ), CAST ( NULL AS INTEGER ) - - + 84 AS col0
----
8931
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3710
SELECT - 81, + 35 DIV - 38 + 31 AS col0
----
-81
31

skipif mysql # not compatible
query II rowsort label-3710
SELECT - 81, + 35 / - 38 + 31 AS col0
----
-81
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3711
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) * + 63 - - - CAST( - 40 AS SIGNED ) - + + 96 AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) * + 63 - - - CAST ( - 40 AS INTEGER ) - + + 96 AS col0
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT ALL - NULLIF ( ( + MIN( + 57 ) ), + 36 ) * - 93 AS col0
----
5301

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL - NULLIF ( ( + MIN ( + 57 ) ), + 36 ) * - 93 AS col0
----
5301

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3713
SELECT + - CAST( NULL AS SIGNED ) * + - NULLIF ( CAST( NULL AS SIGNED ), + 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT + - CAST ( NULL AS INTEGER ) * + - NULLIF ( CAST ( NULL AS INTEGER ), + 2 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3714
SELECT ALL COUNT( * ) DIV + 49 - - 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL COUNT ( * ) / + 49 - - 30 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT DISTINCT + SUM( DISTINCT - 28 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT + SUM ( DISTINCT - 28 ) AS col1
----
-28

query I rowsort
SELECT ALL ( - - 4 ) * + + 17
----
68

query I rowsort
SELECT + 40 - - + 78
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3718
SELECT ALL + CASE + 55 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE - 17 END AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL + CASE + 55 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 17 END AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3719
SELECT + 68 * - - COALESCE ( + + CAST( NULL AS DECIMAL ), 68 - - CASE 62 WHEN + - CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) - - SUM( ALL + 88 ) / 28 THEN - 75 WHEN - 9 * + + 69 + + ( 56 ) + - 99 * + 75 THEN ( 57 ) + ( - 29 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3719
SELECT + 68 * - - COALESCE ( + + CAST ( NULL AS REAL ), 68 - - CASE 62 WHEN + - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) - - SUM ( ALL + 88 ) / 28 THEN - 75 WHEN - 9 * + + 69 + + ( 56 ) + - 99 * + 75 THEN ( 57 ) + ( - 29 ) END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT + + CAST( 63 AS SIGNED ) - - 18
----
81

skipif mysql # not compatible
query I rowsort label-3720
SELECT + + CAST ( 63 AS INTEGER ) - - 18
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT + - 13 - - ( + COUNT( * ) ) + - COUNT( * ) + - COUNT( * ) + - - 0 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3721
SELECT + - 13 - - ( + COUNT ( * ) ) + - COUNT ( * ) + - COUNT ( * ) + - - 0 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL + CASE COUNT( * ) WHEN + 0 THEN NULL ELSE - - 56 + 82 * - + 66 + 94 * + + 28 END
----
-2724

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL + CASE COUNT ( * ) WHEN + 0 THEN NULL ELSE - - 56 + 82 * - + 66 + 94 * + + 28 END
----
-2724

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT + + 38 + - ( + 57 ) * MAX( ALL - 21 ) + - 2 AS col1
----
1233

skipif mysql # not compatible
query I rowsort label-3723
SELECT + + 38 + - ( + 57 ) * MAX ( ALL - 21 ) + - 2 AS col1
----
1233

onlyif mysql # DIV for integer division: 
query II rowsort label-3724
SELECT ALL 11 AS col0, + 33 DIV 26
----
11
1

skipif mysql # not compatible
query II rowsort label-3724
SELECT ALL 11 AS col0, + 33 / 26
----
11
1

query I rowsort
SELECT + 70 + + 53
----
123

query I rowsort
SELECT - 64 - + 32 AS col0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3727
SELECT ALL COALESCE ( 16, + 65 DIV - 82 * + 23, + 28 )
----
16

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL COALESCE ( 16, + 65 / - 82 * + 23, + 28 )
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-3728
SELECT - NULLIF ( + CASE + + 30 WHEN - 74 THEN NULL ELSE + + 68 END, - 35 ) - - 43 DIV + 1 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3728
SELECT - NULLIF ( + CASE + + 30 WHEN - 74 THEN NULL ELSE + + 68 END, - 35 ) - - 43 / + 1 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT DISTINCT + 56 + ( - COUNT( * ) ) + + 36 + - - COUNT( * ) + + - COUNT( * ) + + 5 + + + ( 20 ) - 22 + + 93 - - 66 * 22 * + COUNT( * ) * 11 * - - 91 + SUM( 19 ) * - 80 col1
----
1452119

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT + 56 + ( - COUNT ( * ) ) + + 36 + - - COUNT ( * ) + + - COUNT ( * ) + + 5 + + + ( 20 ) - 22 + + 93 - - 66 * 22 * + COUNT ( * ) * 11 * - - 91 + SUM ( 19 ) * - 80 col1
----
1452119

query I rowsort
SELECT DISTINCT ( + + 74 ) + - 94
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT ALL + 38 + COUNT( * ) * + 81 + 45
----
164

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL + 38 + COUNT ( * ) * + 81 + 45
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT DISTINCT COALESCE ( + 58, 37 * + NULLIF ( - 4, + - 54 ) * 42 - - - 75 + + 21 * + COUNT( * ) * COUNT( * ), + + COUNT( * ) + + + 85 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT COALESCE ( + 58, 37 * + NULLIF ( - 4, + - 54 ) * 42 - - - 75 + + 21 * + COUNT ( * ) * COUNT ( * ), + + COUNT ( * ) + + + 85 ) AS col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3733
SELECT ALL 12 DIV - 91 * + 38 - - 41 + NULLIF ( + MAX( - + 24 ), 77 ) * - MIN( 98 ) AS col2
----
2393

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL 12 / - 91 * + 38 - - 41 + NULLIF ( + MAX ( - + 24 ), 77 ) * - MIN ( 98 ) AS col2
----
2393

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT ALL + 66 * + - COUNT( * ) * + - 9 AS col1
----
594

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL + 66 * + - COUNT ( * ) * + - 9 AS col1
----
594

query I rowsort
SELECT 39 * + 79 + + - 44 AS col2
----
3037

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT DISTINCT + COUNT( * ) * 54 * + 25 col0
----
1350

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT + COUNT ( * ) * 54 * + 25 col0
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT DISTINCT + 76 * + MAX( + - 38 ) * - 15 + - ( - COUNT( * ) ) + + 95 * - 54 * + 18 * - 89 col1
----
8261581

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT + 76 * + MAX ( + - 38 ) * - 15 + - ( - COUNT ( * ) ) + + 95 * - 54 * + 18 * - 89 col1
----
8261581

onlyif mysql # DIV for integer division: 
query I rowsort label-3738
SELECT DISTINCT 24 DIV - - 47 - - ( + - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT 24 / - - 47 - - ( + - 12 )
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3739
SELECT + 57 DIV + - NULLIF ( + 59, - 0 ) * 39 + - 7 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-3739
SELECT + 57 / + - NULLIF ( + 59, - 0 ) * 39 + - 7 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT + MAX( DISTINCT - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-3740
SELECT + MAX ( DISTINCT - 40 )
----
-40

query I rowsort
SELECT 56 * - 85 - 17
----
-4777

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3742
SELECT ALL - 43 AS col2, 19 * + 25 + - CAST( NULL AS SIGNED ) AS col2
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-3742
SELECT ALL - 43 AS col2, 19 * + 25 + - CAST ( NULL AS INTEGER ) AS col2
----
-43
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3743
SELECT + - COUNT( * ) col1, 37 DIV - 10 AS col0
----
-1
-3

skipif mysql # not compatible
query II rowsort label-3743
SELECT + - COUNT ( * ) col1, 37 / - 10 AS col0
----
-1
-3

query I rowsort
SELECT 33 + - 52 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-3745
SELECT DISTINCT - + 78 AS col0, COUNT( * ) AS col1
----
-78
1

skipif mysql # not compatible
query II rowsort label-3745
SELECT DISTINCT - + 78 AS col0, COUNT ( * ) AS col1
----
-78
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3746
SELECT ALL - COUNT( * ) DIV + - COUNT( * ) + 24 * - 8, ( + - ( - 6 ) ) AS col2
----
-191
6

skipif mysql # not compatible
query II rowsort label-3746
SELECT ALL - COUNT ( * ) / + - COUNT ( * ) + 24 * - 8, ( + - ( - 6 ) ) AS col2
----
-191
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3747
SELECT + CASE - CASE 0 WHEN + + CASE + 93 WHEN - 55 * - + 97 / - - 60 THEN - 33 ELSE + COUNT( * ) / - 47 END * 20 * - - 83 * - 36 * - + 97 * - + CAST( - 78 AS DECIMAL ) THEN NULL WHEN 91 THEN 40 WHEN + 45 THEN 2 ELSE - ( 20 ) - - 70 END WHEN + COUNT( * ) THEN NULL WHEN 38 - + 22 / - COUNT( * ) THEN 67 ELSE NULL END * - MIN( 32 * ( - 95 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3747
SELECT + CASE - CASE 0 WHEN + + CASE + 93 WHEN - 55 * - + 97 / - - 60 THEN - 33 ELSE + COUNT ( * ) / - 47 END * 20 * - - 83 * - 36 * - + 97 * - + CAST ( - 78 AS REAL ) THEN NULL WHEN 91 THEN 40 WHEN + 45 THEN 2 ELSE - ( 20 ) - - 70 END WHEN + COUNT ( * ) THEN NULL WHEN 38 - + 22 / - COUNT ( * ) THEN 67 ELSE NULL END * - MIN ( 32 * ( - 95 ) ) AS col0
----
NULL

query I rowsort
SELECT ( - 82 ) + + + 3
----
-79

query I rowsort
SELECT 25 * - 90 AS col0
----
-2250

query I rowsort
SELECT ALL - 22 + + 7 + 1 col1
----
-14

query I rowsort
SELECT - 74 + 0 AS col2
----
-74

query I rowsort
SELECT ALL NULLIF ( + - 98, 93 + - 58 * - - CASE + 18 WHEN ( + - 99 ) THEN - 84 ELSE NULL END + - - 55 + - 14 - + + 24 * - 20 ) + + 36 AS col0
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3753
SELECT - MAX( - COALESCE ( 63, + - 96, - 60 * + 67, - 19 * 43, - 56 ) ) * + + 8 + 73 AS col2, + 26 DIV - - 10
----
577
2

skipif mysql # not compatible
query II rowsort label-3753
SELECT - MAX ( - COALESCE ( 63, + - 96, - 60 * + 67, - 19 * 43, - 56 ) ) * + + 8 + 73 AS col2, + 26 / - - 10
----
577
2

query I rowsort
SELECT ALL 41 + - 17 * - 16 * + 5
----
1401

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3755
SELECT 94 DIV MIN( ALL 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3755
SELECT 94 / MIN ( ALL 63 ) AS col2
----
1

query I rowsort
SELECT ALL 85 + - + 79 AS col0
----
6

query I rowsort
SELECT DISTINCT 89 + 64
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3758
SELECT ( - 99 ) + ( CAST( 5 AS SIGNED ) ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-3758
SELECT ( - 99 ) + ( CAST ( 5 AS INTEGER ) ) AS col1
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-3759
SELECT ALL 23 + 29 DIV - COALESCE ( + 59, + 28 * - - 55, - 21 )
----
23

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL 23 + 29 / - COALESCE ( + 59, + 28 * - - 55, - 21 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT ( - + COUNT( * ) ) * NULLIF ( + 33, - COUNT( - + 77 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-3760
SELECT ( - + COUNT ( * ) ) * NULLIF ( + 33, - COUNT ( - + 77 ) )
----
-33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3761
SELECT DISTINCT CAST( - 42 AS SIGNED ) DIV 50 + 47
----
47

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT CAST ( - 42 AS INTEGER ) / 50 + 47
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3762
SELECT COUNT( * ) - + 35 * + + 87 * + COUNT( ALL CAST( NULL AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-3762
SELECT COUNT ( * ) - + 35 * + + 87 * + COUNT ( ALL CAST ( NULL AS INTEGER ) )
----
1

query I rowsort
SELECT 60 * + 25
----
1500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3764
SELECT 96 + + MAX( ALL - 21 ) * + 26 + + - 6 DIV 74 AS col0
----
-450

skipif mysql # not compatible
query I rowsort label-3764
SELECT 96 + + MAX ( ALL - 21 ) * + 26 + + - 6 / 74 AS col0
----
-450

onlyif mysql # DIV for integer division: 
query I rowsort label-3765
SELECT 80 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-3765
SELECT 80 / 84
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3766
SELECT 86 * 49 DIV 77 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-3766
SELECT 86 * 49 / 77 AS col0
----
54

query I rowsort
SELECT 38 - + - 77 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT + 9 * - - MIN( + 90 ) * 60 + - CASE + - 49 WHEN + - 55 + - 3 + + 29 THEN 67 ELSE NULL END + - 23 + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT + 9 * - - MIN ( + 90 ) * 60 + - CASE + - 49 WHEN + - 55 + - 3 + + 29 THEN 67 ELSE NULL END + - 23 + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT + - 48 * + 82 + - + 50 + COUNT( ALL + 49 ) * - 36 AS col1
----
-4022

skipif mysql # not compatible
query I rowsort label-3769
SELECT + - 48 * + 82 + - + 50 + COUNT ( ALL + 49 ) * - 36 AS col1
----
-4022

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT COUNT( * ) - + + MIN( - 65 )
----
66

skipif mysql # not compatible
query I rowsort label-3770
SELECT COUNT ( * ) - + + MIN ( - 65 )
----
66

query I rowsort
SELECT DISTINCT + - 95 + - 94 AS col0
----
-189

query II rowsort
SELECT ALL - - ( 93 ), - 71 AS col1
----
93
-71

query I rowsort
SELECT 17 * + - 70 + + - 18 AS col2
----
-1208

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT ALL - MIN( - + 41 ) + SUM( + + 99 ) * 44
----
4397

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL - MIN ( - + 41 ) + SUM ( + + 99 ) * 44
----
4397

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3775
SELECT + + CAST( - 39 AS SIGNED ) AS col1, ( + 69 )
----
-39
69

skipif mysql # not compatible
query II rowsort label-3775
SELECT + + CAST ( - 39 AS INTEGER ) AS col1, ( + 69 )
----
-39
69

query I rowsort
SELECT 96 + - 72
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT - MAX( 68 ) * 14 + + 82 + 47 * - 0 AS col0
----
-870

skipif mysql # not compatible
query I rowsort label-3777
SELECT - MAX ( 68 ) * 14 + + 82 + 47 * - 0 AS col0
----
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT DISTINCT - 97 + - ( - + COUNT( * ) ) + + + 78 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT - 97 + - ( - + COUNT ( * ) ) + + + 78 AS col1
----
-18

query I rowsort
SELECT ALL 23 + 14
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT 45 - + ( + MIN( DISTINCT + + 29 ) ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-3780
SELECT 45 - + ( + MIN ( DISTINCT + + 29 ) ) AS col0
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3781
SELECT ALL - MIN( DISTINCT - 24 ) DIV + + ( + 16 )
----
1

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL - MIN ( DISTINCT - 24 ) / + + ( + 16 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL COUNT( ALL + 42 )
----
1

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL COUNT ( ALL + 42 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3783
SELECT ALL - 38 - - 76 - + + 11 * - - COUNT( * ) DIV - 62
----
38

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL - 38 - - 76 - + + 11 * - - COUNT ( * ) / - 62
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3784
SELECT 35 + + COUNT( * ) + - + 14 - + + 19 + - COUNT( + 58 ) * + 81 * - - 59 * - ( + - CAST( 40 AS SIGNED ) ) + + ( - - 53 ) * 29 * - - 96
----
-43605

skipif mysql # not compatible
query I rowsort label-3784
SELECT 35 + + COUNT ( * ) + - + 14 - + + 19 + - COUNT ( + 58 ) * + 81 * - - 59 * - ( + - CAST ( 40 AS INTEGER ) ) + + ( - - 53 ) * 29 * - - 96
----
-43605

query I rowsort
SELECT DISTINCT 22 - 25 AS col1
----
-3

query I rowsort
SELECT 54 + + 73 * - 37 AS col1
----
-2647

onlyif mysql # DIV for integer division: 
query II rowsort label-3787
SELECT 89 + - 80 DIV + 98 AS col2, 60 DIV + - 45 AS col2
----
89
-1

skipif mysql # not compatible
query II rowsort label-3787
SELECT 89 + - 80 / + 98 AS col2, 60 / + - 45 AS col2
----
89
-1

query I rowsort
SELECT + 9 * + + 81
----
729

onlyif mysql # DIV for integer division: 
query I rowsort label-3789
SELECT DISTINCT 15 DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT 15 / + 99
----
0

query I rowsort
SELECT ALL 37 * - CASE + + COALESCE ( 24, + 91 ) WHEN - + 91 THEN NULL WHEN 73 + - 60 THEN NULL ELSE - 78 END AS col1
----
2886

query I rowsort
SELECT - + 78 + - 80 AS col2
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT DISTINCT - - 45 * + COUNT( * ) + 90 AS col0
----
135

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT - - 45 * + COUNT ( * ) + 90 AS col0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3793
SELECT ALL + + 78 * - 71 * + 74 + - AVG ( DISTINCT 38 ) + 8 * + 25 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL + + 78 * - 71 * + 74 + - AVG ( DISTINCT 38 ) + 8 * + 25 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) * - 46 + + - 14 + 65 + MIN( - ( - 73 ) )
----
170

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) * - 46 + + - 14 + 65 + MIN ( - ( - 73 ) )
----
170

query I rowsort
SELECT - 61 * 57 + 76
----
-3401

query I rowsort
SELECT - + ( 54 ) + - 3 * 42 AS col0
----
-180

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3797
SELECT + - 32 AS col0, 40 DIV - ( - 44 ) + + - COUNT( DISTINCT 43 ) DIV + 91 + - 79
----
-32
-79

skipif mysql # not compatible
query II rowsort label-3797
SELECT + - 32 AS col0, 40 / - ( - 44 ) + + - COUNT ( DISTINCT 43 ) / + 91 + - 79
----
-32
-79

query I rowsort
SELECT 40 * - 83 + - - 36
----
-3284

query II rowsort
SELECT ALL + 21 AS col1, + 76 AS col1
----
21
76

query I rowsort
SELECT + 22 * ( + 69 ) + - 30
----
1488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3801
SELECT ALL + 71 * COUNT( * ) DIV + + 35 - 5
----
-3

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL + 71 * COUNT ( * ) / + + 35 - 5
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT - + 74 + COUNT( ALL + - 38 )
----
-73

skipif mysql # not compatible
query I rowsort label-3802
SELECT - + 74 + COUNT ( ALL + - 38 )
----
-73

query II rowsort
SELECT + 80 AS col1, 18
----
80
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT - + COUNT( * ) * + 94 + NULLIF ( + 31, - 41 )
----
-63

skipif mysql # not compatible
query I rowsort label-3804
SELECT - + COUNT ( * ) * + 94 + NULLIF ( + 31, - 41 )
----
-63

query I rowsort
SELECT - 77 * 5 + ( - ( + - 32 ) )
----
-353

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3806
SELECT ALL - CAST( - + 74 AS SIGNED ) * + - 89 + + + 32 + + + 32
----
-6522

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL - CAST ( - + 74 AS INTEGER ) * + - 89 + + + 32 + + + 32
----
-6522

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT ALL ( MIN( 19 ) ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL ( MIN ( 19 ) ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT DISTINCT ( ( + ( - + COUNT( * ) ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT ( ( + ( - + COUNT ( * ) ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT DISTINCT NULLIF ( + 91, + CASE - ( + - COALESCE ( + 82, + + COUNT( * ) ) ) WHEN + - 13 THEN 30 WHEN + 10 - - 29 THEN NULL END + + + COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-3809
SELECT DISTINCT NULLIF ( + 91, + CASE - ( + - COALESCE ( + 82, + + COUNT ( * ) ) ) WHEN + - 13 THEN 30 WHEN + 10 - - 29 THEN NULL END + + + COUNT ( * ) )
----
91

query I rowsort
SELECT - 58 * + + 90
----
-5220

query I rowsort
SELECT - 75 + + + 24
----
-51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3812
SELECT ALL NULLIF ( + 38, 47 * CAST( - 95 AS DECIMAL ) + - 37 * - 30 + + 69 + + + 75 + + NULLIF ( - 96, + + COALESCE ( CAST( NULL AS DECIMAL ), - - 91 * - 63 * - 45 ) * + + 27 + + ( - - 96 ) * 29 + 94 / 17 ) * NULLIF ( - MIN( DISTINCT 64 ), 9 ) / 10 / - 43 + 67 ) col0
----
38

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL NULLIF ( + 38, 47 * CAST ( - 95 AS REAL ) + - 37 * - 30 + + 69 + + + 75 + + NULLIF ( - 96, + + COALESCE ( CAST ( NULL AS REAL ), - - 91 * - 63 * - 45 ) * + + 27 + + ( - - 96 ) * 29 + 94 / 17 ) * NULLIF ( - MIN ( DISTINCT 64 ), 9 ) / 10 / - 43 + 67 ) col0
----
38

query I rowsort
SELECT - 22 * - + 21
----
462

query I rowsort
SELECT ALL - 7 * - 81
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT - COUNT( * ) / + - 95 / + + CASE ( - 61 ) WHEN 87 + - COUNT( * ) THEN NULL WHEN - COALESCE ( + + 68, - 34, - 99 ) THEN NULL WHEN - 29 + - 94 THEN + + 61 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT - COUNT ( * ) / + - 95 / + + CASE ( - 61 ) WHEN 87 + - COUNT ( * ) THEN NULL WHEN - COALESCE ( + + 68, - 34, - 99 ) THEN NULL WHEN - 29 + - 94 THEN + + 61 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 68 * - 38 AS col0
----
-2584

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT ALL 27 * MAX( DISTINCT - 11 ) AS col2
----
-297

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL 27 * MAX ( DISTINCT - 11 ) AS col2
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3818
SELECT + NULLIF ( + CAST( NULL AS SIGNED ), + 90 ) / 9 / + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3818
SELECT + NULLIF ( + CAST ( NULL AS INTEGER ), + 90 ) / 9 / + 6
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3819
SELECT DISTINCT + 90 * - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT + 90 * - + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT - COUNT( ALL + - 55 )
----
-1

skipif mysql # not compatible
query I rowsort label-3820
SELECT - COUNT ( ALL + - 55 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3821
SELECT - CASE - + 72 WHEN COUNT( * ) THEN 44 WHEN - - CAST( - - 46 AS SIGNED ) THEN NULL ELSE - 15 END + 34 - + + 73 AS col2, - 68 * ( - SUM( - - 53 ) ) * + + 88 AS col0
----
-24
317152

skipif mysql # not compatible
query II rowsort label-3821
SELECT - CASE - + 72 WHEN COUNT ( * ) THEN 44 WHEN - - CAST ( - - 46 AS INTEGER ) THEN NULL ELSE - 15 END + 34 - + + 73 AS col2, - 68 * ( - SUM ( - - 53 ) ) * + + 88 AS col0
----
-24
317152

query I rowsort
SELECT + - 90 + 23 AS col1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3823
SELECT ALL - 11 / - ( + CAST( NULL AS SIGNED ) ) + - 92 + + - 46 * ( - - COALESCE ( - + COUNT( * ), 22 + + 79, - MIN( - 91 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL - 11 / - ( + CAST ( NULL AS INTEGER ) ) + - 92 + + - 46 * ( - - COALESCE ( - + COUNT ( * ), 22 + + 79, - MIN ( - 91 ) ) )
----
NULL

query I rowsort
SELECT ALL + + ( - 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT 46 * - 41 * + - COUNT( 3 ) - 72 col0
----
1814

skipif mysql # not compatible
query I rowsort label-3825
SELECT 46 * - 41 * + - COUNT ( 3 ) - 72 col0
----
1814

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3826
SELECT DISTINCT - 17 DIV - 63 - + COUNT( * ) * + + ( 21 ) + - 34 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT - 17 / - 63 - + COUNT ( * ) * + + ( 21 ) + - 34 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT DISTINCT - 2 * 83 + - 58 * + MIN( - 81 ) - - - 13 AS col1
----
4519

skipif mysql # not compatible
query I rowsort label-3827
SELECT DISTINCT - 2 * 83 + - 58 * + MIN ( - 81 ) - - - 13 AS col1
----
4519

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3828
SELECT ALL + 74 DIV - COUNT( * ) + - + 94 AS col0
----
-168

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL + 74 / - COUNT ( * ) + - + 94 AS col0
----
-168

onlyif mysql # aggregate syntax: 
query II rowsort label-3829
SELECT - + CASE + 15 WHEN - 76 + + ( + + 4 ) THEN 3 ELSE + COUNT( * ) END * - - 45 * - 16, 6 AS col0
----
720
6

skipif mysql # not compatible
query II rowsort label-3829
SELECT - + CASE + 15 WHEN - 76 + + ( + + 4 ) THEN 3 ELSE + COUNT ( * ) END * - - 45 * - 16, 6 AS col0
----
720
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3830
SELECT + CAST( NULL AS DECIMAL ) / ( + 6 ) / 99 * + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3830
SELECT + CAST ( NULL AS REAL ) / ( + 6 ) / 99 * + - 6
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3831
SELECT DISTINCT - 41 * + CAST( NULL AS SIGNED ), CASE - 25 WHEN - 39 THEN - + CAST( + 97 AS SIGNED ) + - - CASE + 66 WHEN - COUNT( DISTINCT COALESCE ( CAST( - 91 AS SIGNED ), 46 ) ) * + 79 + + 29 THEN NULL WHEN + 45 / + 37 THEN 2 * COALESCE ( - CASE + 56 WHEN 93 THEN CAST( + COALESCE ( 66, COALESCE ( - 98, - 71 + 76 * + 7 ) ) AS SIGNED ) + - 42 WHEN - 20 THEN NULL END, 24, - 7 ) ELSE 28 END END * + 64 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3831
SELECT DISTINCT - 41 * + CAST ( NULL AS INTEGER ), CASE - 25 WHEN - 39 THEN - + CAST ( + 97 AS INTEGER ) + - - CASE + 66 WHEN - COUNT ( DISTINCT COALESCE ( CAST ( - 91 AS INTEGER ), 46 ) ) * + 79 + + 29 THEN NULL WHEN + 45 / + 37 THEN 2 * COALESCE ( - CASE + 56 WHEN 93 THEN CAST ( + COALESCE ( 66, COALESCE ( - 98, - 71 + 76 * + 7 ) ) AS INTEGER ) + - 42 WHEN - 20 THEN NULL END, 24, - 7 ) ELSE 28 END END * + 64 AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT + + 45 * + - 5 - - COUNT( * ) * + ( + 45 ) - + 23
----
-203

skipif mysql # not compatible
query I rowsort label-3832
SELECT + + 45 * + - 5 - - COUNT ( * ) * + ( + 45 ) - + 23
----
-203

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3833
SELECT + CASE + 1 WHEN + 28 THEN CAST( 9 AS SIGNED ) WHEN - MIN( - - 44 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT + CASE + 1 WHEN + 28 THEN CAST ( 9 AS INTEGER ) WHEN - MIN ( - - 44 ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3834
SELECT ALL + 16 * + 65 - MAX( - 29 ) / - - 12 * + 37 * + - 69 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL + 16 * + 65 - MAX ( - 29 ) / - - 12 * + 37 * + - 69 - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3835
SELECT + + CASE 76 WHEN + 67 * 73 + - 12 + + COUNT( * ) + + - 16 / + 40 * + 20 THEN - + 82 END * 88 / - - 21 + + - 92 * 19, 82 * - 25 - 61 AS col2
----
NULL
-2111

skipif mysql # not compatible
query II rowsort label-3835
SELECT + + CASE 76 WHEN + 67 * 73 + - 12 + + COUNT ( * ) + + - 16 / + 40 * + 20 THEN - + 82 END * 88 / - - 21 + + - 92 * 19, 82 * - 25 - 61 AS col2
----
NULL
-2111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3836
SELECT ALL + 59 / + CASE MIN( + 49 ) WHEN - COUNT( * ) * 16 / CAST( + MIN( + + 98 ) AS SIGNED ) * + 17 * - - 73 + + 10 + 97 THEN - + 80 * + COUNT( * ) + COUNT( * ) END * 4 * + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL + 59 / + CASE MIN ( + 49 ) WHEN - COUNT ( * ) * 16 / CAST ( + MIN ( + + 98 ) AS INTEGER ) * + 17 * - - 73 + + 10 + 97 THEN - + 80 * + COUNT ( * ) + COUNT ( * ) END * 4 * + 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT DISTINCT + 93 * + + COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT + 93 * + + COUNT ( * ) AS col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3838
SELECT + 52 / + CASE - - CAST( NULL AS SIGNED ) WHEN - 27 * 47 THEN - 62 WHEN - 33 + NULLIF ( + + 85, - 71 * COALESCE ( - + 46, + 19 * + - 67 + - 41 ) + + + 56 / 39 + 2 + - 37 + - NULLIF ( + 25, - COALESCE ( + COUNT( * ), + 7, 17 ) * - 26 ) + + 47 * - 18 ) * CASE 96 * 77 + + 98 WHEN - 16 THEN 58 END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT + 52 / + CASE - - CAST ( NULL AS INTEGER ) WHEN - 27 * 47 THEN - 62 WHEN - 33 + NULLIF ( + + 85, - 71 * COALESCE ( - + 46, + 19 * + - 67 + - 41 ) + + + 56 / 39 + 2 + - 37 + - NULLIF ( + 25, - COALESCE ( + COUNT ( * ), + 7, 17 ) * - 26 ) + + 47 * - 18 ) * CASE 96 * 77 + + 98 WHEN - 16 THEN 58 END THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT + SUM( NULLIF ( - - 86, - 1 * - 92 + + - 77 ) ) + - + ( - COUNT( * ) ) * + - 49 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-3839
SELECT + SUM ( NULLIF ( - - 86, - 1 * - 92 + + - 77 ) ) + - + ( - COUNT ( * ) ) * + - 49 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT COALESCE ( 9, ( + COUNT( * ) ), - COUNT( * ) + - ( + 6 ) )
----
9

skipif mysql # not compatible
query I rowsort label-3840
SELECT COALESCE ( 9, ( + COUNT ( * ) ), - COUNT ( * ) + - ( + 6 ) )
----
9

query I rowsort
SELECT - 34 * - 37 AS col1
----
1258

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT ALL NULLIF ( - + MIN( - + 28 ), - 40 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL NULLIF ( - + MIN ( - + 28 ), - 40 ) AS col1
----
28

query I rowsort
SELECT 11 * 72 + - ( + 60 )
----
732

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT NULLIF ( - MAX( ALL + 36 ), 64 - 29 )
----
-36

skipif mysql # not compatible
query I rowsort label-3844
SELECT NULLIF ( - MAX ( ALL + 36 ), 64 - 29 )
----
-36

query I rowsort
SELECT ALL ( + 14 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT DISTINCT - COUNT( * ) * + 66 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT - COUNT ( * ) * + 66 AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT - COUNT( DISTINCT 62 ) * - - 0 * - 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3847
SELECT - COUNT ( DISTINCT 62 ) * - - 0 * - 85 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3848
SELECT 89 + + CAST( + 57 AS SIGNED )
----
146

skipif mysql # not compatible
query I rowsort label-3848
SELECT 89 + + CAST ( + 57 AS INTEGER )
----
146

query II rowsort
SELECT ALL 97, + 21 col1
----
97
21

query I rowsort
SELECT 79 + ( - 83 ) col1
----
-4

query II rowsort
SELECT 7, 31 AS col0
----
7
31

query I rowsort
SELECT 89 + + 88 AS col1
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT 24 - + 14 + + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-3853
SELECT 24 - + 14 + + COUNT ( * ) AS col2
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3854
SELECT COUNT( * ) DIV - 8 * + 27
----
0

skipif mysql # not compatible
query I rowsort label-3854
SELECT COUNT ( * ) / - 8 * + 27
----
0

query I rowsort
SELECT ALL - 55 + + - 0 AS col2
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3856
SELECT - ( - CAST( - 52 AS SIGNED ) ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3856
SELECT - ( - CAST ( - 52 AS INTEGER ) ) AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3857
SELECT CAST( NULL AS SIGNED ) + + 95 - - + CAST( NULL AS SIGNED ) + 63 / + CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) * + 93 + - + CASE + + 19 WHEN - 73 THEN NULL WHEN - 82 THEN 88 / - COALESCE ( - 91, + - ( + 57 ) + + COUNT( * ) * - - 82, + 66 ) END * + 64 + - 28 * - SUM( ALL 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3857
SELECT CAST ( NULL AS INTEGER ) + + 95 - - + CAST ( NULL AS INTEGER ) + 63 / + CAST ( - CAST ( NULL AS REAL ) AS REAL ) * + 93 + - + CASE + + 19 WHEN - 73 THEN NULL WHEN - 82 THEN 88 / - COALESCE ( - 91, + - ( + 57 ) + + COUNT ( * ) * - - 82, + 66 ) END * + 64 + - 28 * - SUM ( ALL 90 )
----
NULL

query I rowsort
SELECT ALL 55 * - - 17
----
935

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT ALL - COUNT( * ) + + 25 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL - COUNT ( * ) + + 25 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT + COUNT( * ) + - 21 col2
----
-20

skipif mysql # not compatible
query I rowsort label-3860
SELECT + COUNT ( * ) + - 21 col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT ALL - MIN( + + 95 ) + + - 59 * + + ( - 94 ) AS col1
----
5451

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL - MIN ( + + 95 ) + + - 59 * + + ( - 94 ) AS col1
----
5451

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT - COUNT( * ) + + 4 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3862
SELECT - COUNT ( * ) + + 4 AS col1
----
3

query I rowsort
SELECT - 52 * 74 AS col1
----
-3848

onlyif mysql # DIV for integer division: 
query I rowsort label-3864
SELECT ( + 79 ) + - - 41 DIV + + 95
----
79

skipif mysql # not compatible
query I rowsort label-3864
SELECT ( + 79 ) + - - 41 / + + 95
----
79

query II rowsort
SELECT + - 46 AS col0, - 72
----
-46
-72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3866
SELECT DISTINCT - COUNT( * ) - - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3866
SELECT DISTINCT - COUNT ( * ) - - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + ( + 94 ) AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3868
SELECT ALL - CASE - COUNT( * ) WHEN CAST( COALESCE ( + + 83, COUNT( * ) * - 76 * - 27 ) AS SIGNED ) + + + 22 * 76 THEN + + NULLIF ( + 73, MIN( ALL - 33 ) ) * - - 88 - + ( + 31 ) + + 95 * 18 * - - 65 + - 29 * 20 WHEN COUNT( ALL ( - 42 ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL - CASE - COUNT ( * ) WHEN CAST ( COALESCE ( + + 83, COUNT ( * ) * - 76 * - 27 ) AS INTEGER ) + + + 22 * 76 THEN + + NULLIF ( + 73, MIN ( ALL - 33 ) ) * - - 88 - + ( + 31 ) + + 95 * 18 * - - 65 + - 29 * 20 WHEN COUNT ( ALL ( - 42 ) ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT CAST( - ( 82 ) AS SIGNED ) * + 68 * - 59
----
328984

skipif mysql # not compatible
query I rowsort label-3869
SELECT CAST ( - ( 82 ) AS INTEGER ) * + 68 * - 59
----
328984

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT - 50 * + - COUNT( ALL + 60 ) + - COUNT( * ) + + 47 * + 39 - + 7 - + 32 * - 48 * - - 54 - + 49 + + + COUNT( * ) AS col1
----
84771

skipif mysql # not compatible
query I rowsort label-3870
SELECT - 50 * + - COUNT ( ALL + 60 ) + - COUNT ( * ) + + 47 * + 39 - + 7 - + 32 * - 48 * - - 54 - + 49 + + + COUNT ( * ) AS col1
----
84771

query I rowsort
SELECT 71 + - 69 * - 77 AS col0
----
5384

query II rowsort
SELECT + - 5, 67 col1
----
-5
67

query II rowsort
SELECT + 19, - 11 AS col2
----
19
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT ( - 40 ) * + 56 * + - CASE + - 50 WHEN 65 THEN + 16 WHEN - - AVG ( DISTINCT + 93 ) * + ( - + COUNT( * ) ) THEN NULL WHEN - + 72 THEN + 26 END * + 6 + + - NULLIF ( + + 21, 53 ) + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3874
SELECT ( - 40 ) * + 56 * + - CASE + - 50 WHEN 65 THEN + 16 WHEN - - AVG ( DISTINCT + 93 ) * + ( - + COUNT ( * ) ) THEN NULL WHEN - + 72 THEN + 26 END * + 6 + + - NULLIF ( + + 21, 53 ) + 69 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT ( - COUNT( * ) ) * 64 * + 95 AS col2
----
-6080

skipif mysql # not compatible
query I rowsort label-3875
SELECT ( - COUNT ( * ) ) * 64 * + 95 AS col2
----
-6080

query I rowsort
SELECT ALL 58 * 76 * + 86 AS col0
----
379088

query II rowsort
SELECT + 28 AS col2, 54 + 7 AS col2
----
28
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ALL - MAX( DISTINCT - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL - MAX ( DISTINCT - 0 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT ( + + 84 ) DIV - + 82
----
-1

skipif mysql # not compatible
query I rowsort label-3879
SELECT ( + + 84 ) / - + 82
----
-1

query I rowsort
SELECT DISTINCT 63 + 66 * - 81
----
-5283

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT ALL 87 + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL 87 + COUNT ( * )
----
88

query I rowsort
SELECT ALL 98 + 92
----
190

query I rowsort
SELECT ( - 68 ) * 33
----
-2244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3884
SELECT DISTINCT SUM( ALL - + 65 ) DIV 54
----
-1

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT SUM ( ALL - + 65 ) / 54
----
-1

query II rowsort
SELECT ALL 51 + - 28 col2, + 20
----
23
20

onlyif mysql # aggregate syntax: 
query II rowsort label-3886
SELECT - 51 AS col1, - COUNT( * )
----
-51
-1

skipif mysql # not compatible
query II rowsort label-3886
SELECT - 51 AS col1, - COUNT ( * )
----
-51
-1

query I rowsort
SELECT 15 + + + 30
----
45

query I rowsort
SELECT 24 + - + 82 AS col0
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3889
SELECT 84, - ( - 84 ) * 75 DIV 62 - + + COUNT( * ) + - - 97 col2
----
84
197

skipif mysql # not compatible
query II rowsort label-3889
SELECT 84, - ( - 84 ) * 75 / 62 - + + COUNT ( * ) + - - 97 col2
----
84
197

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT ALL 15 + + - 91 + - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL 15 + + - 91 + - COUNT ( * )
----
-77

query II rowsort
SELECT DISTINCT 13 AS col1, 41
----
13
41

query I rowsort
SELECT 61 * 23 AS col1
----
1403

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT ALL 83 + + - 23 + - - 93 * + COUNT( * ) * + + COUNT( * ) AS col2
----
153

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL 83 + + - 23 + - - 93 * + COUNT ( * ) * + + COUNT ( * ) AS col2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT + ( + - 79 ) - - - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-3894
SELECT + ( + - 79 ) - - - COUNT ( * )
----
-80

query II rowsort
SELECT ALL 3 AS col1, 90 col2
----
3
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT 40 - + + MIN( + ( - 96 ) ) * + 71
----
6856

skipif mysql # not compatible
query I rowsort label-3896
SELECT 40 - + + MIN ( + ( - 96 ) ) * + 71
----
6856

query I rowsort
SELECT + 50 * - COALESCE ( + - 56, + 37 )
----
2800

query I rowsort
SELECT - - CASE 18 WHEN + 57 THEN + 56 ELSE 85 END col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT - COUNT( * ) * 61
----
-61

skipif mysql # not compatible
query I rowsort label-3899
SELECT - COUNT ( * ) * 61
----
-61

query I rowsort
SELECT ALL + + NULLIF ( 50, + 26 ) * + 35
----
1750

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3901
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) / + 9 * + AVG ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT DISTINCT + - CAST ( NULL AS REAL ) / + 9 * + AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT DISTINCT - 59 * + COUNT( * ) col2
----
-59

skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT - 59 * + COUNT ( * ) col2
----
-59

query I rowsort
SELECT ALL - + 52 * 88 col1
----
-4576

query I rowsort
SELECT ALL + 56 * 0 + CASE - + 4 WHEN - 6 + + + AVG ( ALL - + 41 ) + - 48 - NULLIF ( - + 99, 6 ) THEN 84 + - AVG ( 81 ) WHEN + + 91 + 73 + - NULLIF ( + + 44, 34 * 61 * - - 13 ) * 57 THEN 17 END + + 15 / 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT + - NULLIF ( + COUNT( - - ( - - 50 ) ), 19 + - - 10 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3905
SELECT + - NULLIF ( + COUNT ( - - ( - - 50 ) ), 19 + - - 10 ) col2
----
-1

query II rowsort
SELECT + 66 AS col0, - 11 * - 0 AS col2
----
66
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT 54 * COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-3907
SELECT 54 * COUNT ( * ) AS col2
----
54

query I rowsort
SELECT ALL - ( + + 58 ) AS col2
----
-58

query I rowsort
SELECT ALL - 67 * - 64 + - + 53
----
4235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3910
SELECT ALL 11 + - CAST( + 6 AS SIGNED ) + + 71 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL 11 + - CAST ( + 6 AS INTEGER ) + + 71 AS col0
----
76

query I rowsort
SELECT ALL COALESCE ( 74, + 38 * 72 * + + 51 ) * - 15
----
-1110

query I rowsort
SELECT DISTINCT + 3 + - 79 AS col0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3913
SELECT - 81 + + CAST( 62 AS SIGNED ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3913
SELECT - 81 + + CAST ( 62 AS INTEGER ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT ALL COUNT( ALL 21 ) + COUNT( * ) * - 10
----
-9

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL COUNT ( ALL 21 ) + COUNT ( * ) * - 10
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3915
SELECT - CAST( + 39 AS SIGNED ) + SUM( ALL 18 ) - COALESCE ( 67, 35 ) DIV + 98 + NULLIF ( - + 0, - 1 ) * - 57 AS col0, NULLIF ( + 63, - ( MIN( DISTINCT CAST( NULL AS SIGNED ) ) ) * 96 * - + 37 + - + 60 ) AS col0
----
-21
63

skipif mysql # not compatible
query II rowsort label-3915
SELECT - CAST ( + 39 AS INTEGER ) + SUM ( ALL 18 ) - COALESCE ( 67, 35 ) / + 98 + NULLIF ( - + 0, - 1 ) * - 57 AS col0, NULLIF ( + 63, - ( MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) ) * 96 * - + 37 + - + 60 ) AS col0
----
-21
63

query I rowsort
SELECT + 63 * + 53
----
3339

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT - COUNT( DISTINCT + + ( + 23 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3917
SELECT - COUNT ( DISTINCT + + ( + 23 ) )
----
-1

query I rowsort
SELECT ALL - 86 + - + 88
----
-174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3919
SELECT DISTINCT + 31 + - - CAST( 30 AS SIGNED ) + + - COUNT( * ) * - + 10 AS col2, 47 + - 7 - - COUNT( * ) DIV + 77
----
71
40

skipif mysql # not compatible
query II rowsort label-3919
SELECT DISTINCT + 31 + - - CAST ( 30 AS INTEGER ) + + - COUNT ( * ) * - + 10 AS col2, 47 + - 7 - - COUNT ( * ) / + 77
----
71
40

query I rowsort
SELECT + 3 + + + 12 AS col0
----
15

query I rowsort
SELECT + - 9 + - + 68 + - 59
----
-136

onlyif mysql # DIV for integer division: 
query I rowsort label-3922
SELECT ALL + ( 17 ) DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL + ( 17 ) / + 70
----
0

query I rowsort
SELECT + + 98 + 25 * + + 2 + - 75 + 35 AS col2
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT + + 92 - + 70 DIV 79 + COALESCE ( - 1, - - ( ( 48 ) ) * + 38 + + ( - 51 ) * + - ( 97 ) + - 87 )
----
91

skipif mysql # not compatible
query I rowsort label-3924
SELECT + + 92 - + 70 / 79 + COALESCE ( - 1, - - ( ( 48 ) ) * + 38 + + ( - 51 ) * + - ( 97 ) + - 87 )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3925
SELECT + 73 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3925
SELECT + 73 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + - NULLIF ( - 48, - 1 ) + + + COALESCE ( 34, + + 23 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT + CASE - 98 WHEN + ( + 14 ) THEN NULL WHEN + ( 96 ) THEN 86 ELSE + - 63 END * + 55 * + 78 * - - COUNT( * ) AS col1
----
-270270

skipif mysql # not compatible
query I rowsort label-3927
SELECT + CASE - 98 WHEN + ( + 14 ) THEN NULL WHEN + ( 96 ) THEN 86 ELSE + - 63 END * + 55 * + 78 * - - COUNT ( * ) AS col1
----
-270270

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT ALL MAX( ALL 10 )
----
10

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL MAX ( ALL 10 )
----
10

query I rowsort
SELECT ALL NULLIF ( + 40, + 14 ) AS col1
----
40

query I rowsort
SELECT ALL + 63 * - 10 * 67 * 24 AS col0
----
-1013040

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT + COALESCE ( 45, 41 + - SUM( - + 69 ) ) + - - ( - 1 )
----
44

skipif mysql # not compatible
query I rowsort label-3931
SELECT + COALESCE ( 45, 41 + - SUM ( - + 69 ) ) + - - ( - 1 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3932
SELECT ALL + 52 * NULLIF ( - 20, ( CAST( 26 AS SIGNED ) ) ) + - 43 - - 56 DIV - + 76 * + - CAST( - + COUNT( * ) AS SIGNED ) DIV COUNT( DISTINCT 30 ) AS col0
----
-1083

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL + 52 * NULLIF ( - 20, ( CAST ( 26 AS INTEGER ) ) ) + - 43 - - 56 / - + 76 * + - CAST ( - + COUNT ( * ) AS INTEGER ) / COUNT ( DISTINCT 30 ) AS col0
----
-1083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3933
SELECT - ( - + NULLIF ( - 72, CAST( + 60 AS SIGNED ) * - CAST( 86 AS SIGNED ) + 36 + 60 + - 40 + + 74 * SUM( DISTINCT + 11 ) * - 14 / - + CAST( NULL AS SIGNED ) ) ) AS col1, 48 * - - 57 + + 18 + + + 74 * + 31 * - 37 * - + 33
----
-72
2803728

skipif mysql # not compatible
query II rowsort label-3933
SELECT - ( - + NULLIF ( - 72, CAST ( + 60 AS INTEGER ) * - CAST ( 86 AS INTEGER ) + 36 + 60 + - 40 + + 74 * SUM ( DISTINCT + 11 ) * - 14 / - + CAST ( NULL AS INTEGER ) ) ) AS col1, 48 * - - 57 + + 18 + + + 74 * + 31 * - 37 * - + 33
----
-72
2803728

query II rowsort
SELECT - 28 + 50, 0 AS col1
----
22
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3935
SELECT DISTINCT 2 * 49 AS col1, - MIN( ALL 73 ) AS col0
----
98
-73

skipif mysql # not compatible
query II rowsort label-3935
SELECT DISTINCT 2 * 49 AS col1, - MIN ( ALL 73 ) AS col0
----
98
-73

query I rowsort
SELECT - + 91 * - 51 * 75
----
348075

onlyif mysql # aggregate syntax: 
query II rowsort label-3937
SELECT + 3 + + COUNT( * ) AS col0, 49 + 3 AS col1
----
4
52

skipif mysql # not compatible
query II rowsort label-3937
SELECT + 3 + + COUNT ( * ) AS col0, 49 + 3 AS col1
----
4
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3938
SELECT DISTINCT NULLIF ( + ( 12 ), - + 92 ) * + COUNT( * ) * 78 - - - 61 + 86 + - NULLIF ( - 24, 43 * + + SUM( ALL - 60 ) - + + MIN( ALL - - 76 ) ) DIV + 66 * COUNT( * )
----
961

skipif mysql # not compatible
query I rowsort label-3938
SELECT DISTINCT NULLIF ( + ( 12 ), - + 92 ) * + COUNT ( * ) * 78 - - - 61 + 86 + - NULLIF ( - 24, 43 * + + SUM ( ALL - 60 ) - + + MIN ( ALL - - 76 ) ) / + 66 * COUNT ( * )
----
961

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3939
SELECT ALL - 89 / - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL - 89 / - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT DISTINCT 21 * 78 + + 0 + + CAST( NULL AS SIGNED ) * + - 98 / 73 + + 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT 21 * 78 + + 0 + + CAST ( NULL AS INTEGER ) * + - 98 / 73 + + 27 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT + COUNT( + ( COALESCE ( + + 43, - - 32 * - - 60 + - 77 * - 8 ) ) ) * 56 + - - 3 col0
----
59

skipif mysql # not compatible
query I rowsort label-3941
SELECT + COUNT ( + ( COALESCE ( + + 43, - - 32 * - - 60 + - 77 * - 8 ) ) ) * 56 + - - 3 col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3942
SELECT ALL 96 * + CASE - 40 WHEN + 24 * - ( - COUNT( ALL + 66 ) ) + + - CAST( NULL AS SIGNED ) THEN + - 65 + COUNT( * ) WHEN 14 * - + CAST( + COUNT( * ) AS SIGNED ) + - CAST( NULL AS SIGNED ) THEN + COALESCE ( 61, - 21 ) * + CASE 95 WHEN 1 THEN - + ( - - 45 ) END + + COUNT( DISTINCT 65 ) + CAST( 62 AS SIGNED ) ELSE NULLIF ( 98, 82 ) END + + 59 * MIN( + 56 DIV - 68 + ( 66 ) )
----
13302

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL 96 * + CASE - 40 WHEN + 24 * - ( - COUNT ( ALL + 66 ) ) + + - CAST ( NULL AS INTEGER ) THEN + - 65 + COUNT ( * ) WHEN 14 * - + CAST ( + COUNT ( * ) AS INTEGER ) + - CAST ( NULL AS INTEGER ) THEN + COALESCE ( 61, - 21 ) * + CASE 95 WHEN 1 THEN - + ( - - 45 ) END + + COUNT ( DISTINCT 65 ) + CAST ( 62 AS INTEGER ) ELSE NULLIF ( 98, 82 ) END + + 59 * MIN ( + 56 / - 68 + ( 66 ) )
----
13302

onlyif mysql # aggregate syntax: 
query II rowsort label-3943
SELECT + COUNT( * ), 48 - + MIN( 35 ) + + - 12 col0
----
1
1

skipif mysql # not compatible
query II rowsort label-3943
SELECT + COUNT ( * ), 48 - + MIN ( 35 ) + + - 12 col0
----
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3944
SELECT 81 * 35 DIV ( - 66 ) + + 70 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-3944
SELECT 81 * 35 / ( - 66 ) + + 70 AS col2
----
28

query II rowsort
SELECT + 47 AS col0, 65 * ( - 75 ) AS col0
----
47
-4875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT DISTINCT CAST( NULL AS SIGNED ) * ( - ( 0 ) ) - 61 + - CAST( NULL AS SIGNED ) * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT CAST ( NULL AS INTEGER ) * ( - ( 0 ) ) - 61 + - CAST ( NULL AS INTEGER ) * + 83
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3947
SELECT DISTINCT + COUNT( * ), 42 AS col2
----
1
42

skipif mysql # not compatible
query II rowsort label-3947
SELECT DISTINCT + COUNT ( * ), 42 AS col2
----
1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT - 3 * 19 * + + SUM( + ( + - 87 ) )
----
4959

skipif mysql # not compatible
query I rowsort label-3948
SELECT - 3 * 19 * + + SUM ( + ( + - 87 ) )
----
4959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3949
SELECT DISTINCT CAST( + - NULLIF ( + - 26, - - NULLIF ( - 31, 99 ) * 94 ) AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT CAST ( + - NULLIF ( + - 26, - - NULLIF ( - 31, 99 ) * 94 ) AS INTEGER )
----
26

query I rowsort
SELECT - 67 * 96
----
-6432

query II rowsort
SELECT 13, + 11 - + 46 AS col0
----
13
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3952
SELECT ALL + 64 AS col2, + 61 DIV + ( + 62 ) DIV + COUNT( 20 )
----
64
0

skipif mysql # not compatible
query II rowsort label-3952
SELECT ALL + 64 AS col2, + 61 / + ( + 62 ) / + COUNT ( 20 )
----
64
0

query II rowsort
SELECT 19 AS col1, 78 * - NULLIF ( - - ( 72 ), - CASE 31 WHEN + + 9 * + 70 * + - 21 THEN NULL WHEN 85 + 23 THEN NULL ELSE - 57 END ) AS col2
----
19
-5616

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT DISTINCT - 25 * - COUNT( * ) * - 23 * + 22
----
-12650

skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT - 25 * - COUNT ( * ) * - 23 * + 22
----
-12650

query I rowsort
SELECT DISTINCT - - 11 * - 40
----
-440

query I rowsort
SELECT ALL + NULLIF ( - - 74, + 9 )
----
74

query II rowsort
SELECT 0 AS col0, - 40
----
0
-40

query I rowsort
SELECT - 65 - - NULLIF ( - - 92, - 37 ) AS col1
----
27

query II rowsort
SELECT + ( + + 56 ) + - 35 AS col0, - 50 AS col1
----
21
-50

query I rowsort
SELECT + - 29 + - 62
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3961
SELECT DISTINCT 36 + + CAST( + COUNT( + 7 ) AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT 36 + + CAST ( + COUNT ( + 7 ) AS INTEGER )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-3962
SELECT ALL + 48 + + 79 * - 13 col0, + ( - 7 ) + + COUNT( DISTINCT 50 )
----
-979
-6

skipif mysql # not compatible
query II rowsort label-3962
SELECT ALL + 48 + + 79 * - 13 col0, + ( - 7 ) + + COUNT ( DISTINCT 50 )
----
-979
-6

query I rowsort
SELECT DISTINCT 40 * 43 col0
----
1720

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT ALL 75 + + + SUM( - 7 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL 75 + + + SUM ( - 7 ) AS col1
----
68

query I rowsort
SELECT 82 + 44 AS col1
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-3966
SELECT 24 DIV - 79 * + - 41
----
0

skipif mysql # not compatible
query I rowsort label-3966
SELECT 24 / - 79 * + - 41
----
0

query II rowsort
SELECT DISTINCT 74 - - - COALESCE ( - 65, + 27 - + - 1 ) AS col0, + 78 AS col1
----
139
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT 8 * + COUNT( * ) * + 33
----
264

skipif mysql # not compatible
query I rowsort label-3968
SELECT 8 * + COUNT ( * ) * + 33
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3969
SELECT DISTINCT + CASE + 91 WHEN + MAX( ALL - + 56 ) THEN NULL ELSE ( 73 ) * + + 11 * - 93 END - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT + CASE + 91 WHEN + MAX ( ALL - + 56 ) THEN NULL ELSE ( 73 ) * + + 11 * - 93 END - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3970
SELECT DISTINCT + 13 * ( 60 ) DIV + - 24 + - MAX( ALL + 23 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT + 13 * ( 60 ) / + - 24 + - MAX ( ALL + 23 ) AS col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3971
SELECT DISTINCT COUNT( * ) DIV + NULLIF ( - 79, - + ( + - 77 ) ) col2, - 96 + + + 6
----
0
-90

skipif mysql # not compatible
query II rowsort label-3971
SELECT DISTINCT COUNT ( * ) / + NULLIF ( - 79, - + ( + - 77 ) ) col2, - 96 + + + 6
----
0
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3972
SELECT CASE 49 WHEN COALESCE ( 77, + 27 + + + 44 + 16 + - 28 / CAST( - 8 AS DECIMAL ) + - 95 * 22 + + MIN( ALL - 26 ) / - 36 + CAST( + AVG ( ALL CAST( NULL AS DECIMAL ) ) AS SIGNED ), + - 90 ) THEN + + COALESCE ( - 91, ( - 72 ) ) END * - 62 * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3972
SELECT CASE 49 WHEN COALESCE ( 77, + 27 + + + 44 + 16 + - 28 / CAST ( - 8 AS REAL ) + - 95 * 22 + + MIN ( ALL - 26 ) / - 36 + CAST ( + AVG ( ALL CAST ( NULL AS REAL ) ) AS INTEGER ), + - 90 ) THEN + + COALESCE ( - 91, ( - 72 ) ) END * - 62 * + 80
----
NULL

query I rowsort
SELECT 33 * + 41 AS col2
----
1353

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT 14 + 56 + - + 23 + - 37 * COUNT( * ) - - + 49 + + 11 + 28
----
98

skipif mysql # not compatible
query I rowsort label-3974
SELECT 14 + 56 + - + 23 + - 37 * COUNT ( * ) - - + 49 + + 11 + 28
----
98

query I rowsort
SELECT 49 - - + 65 * ( + 15 ) * + + 48 + - + 25 * - 7 + + - 93
----
46931

query I rowsort
SELECT ALL - 45 * - 82 col1
----
3690

query II rowsort
SELECT + 69 + + 17, 97 col2
----
86
97

query I rowsort
SELECT ( - + 63 ) + 60
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT - 62 * + COUNT( * ) * - 17
----
1054

skipif mysql # not compatible
query I rowsort label-3979
SELECT - 62 * + COUNT ( * ) * - 17
----
1054

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT DISTINCT + 41 * - ( + MIN( + - 24 ) ) * + 30 + + - 25 + 58 AS col2
----
29553

skipif mysql # not compatible
query I rowsort label-3980
SELECT DISTINCT + 41 * - ( + MIN ( + - 24 ) ) * + 30 + + - 25 + 58 AS col2
----
29553

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT ALL + 19 + + COUNT( * ) * 68 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL + 19 + + COUNT ( * ) * 68 AS col2
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3982
SELECT DISTINCT - 50 + - 45, NULLIF ( - COUNT( * ), - 58 ) DIV 65 AS col0
----
-95
0

skipif mysql # not compatible
query II rowsort label-3982
SELECT DISTINCT - 50 + - 45, NULLIF ( - COUNT ( * ), - 58 ) / 65 AS col0
----
-95
0

query I rowsort
SELECT DISTINCT + + ( + + 13 ) * + - CASE + 38 WHEN + + 28 THEN - + 98 ELSE NULL END / - 23 + 47
----
NULL

query I rowsort
SELECT ALL - 16 + + 87 AS col1
----
71

query I rowsort
SELECT 63 * - + 15 AS col2
----
-945

query I rowsort
SELECT 79 + + 54
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3987
SELECT 17 / + + CAST( NULL AS SIGNED ) - - NULLIF ( + - 64, 7 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3987
SELECT 17 / + + CAST ( NULL AS INTEGER ) - - NULLIF ( + - 64, 7 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT ( + + COALESCE ( + NULLIF ( + 65, 21 * - + 97 ), + 93 - + + COUNT( * ) * + - 96 - + 67 ) ) * - 52 + + 33 + + + 34 + + COUNT( * )
----
-3312

skipif mysql # not compatible
query I rowsort label-3988
SELECT ( + + COALESCE ( + NULLIF ( + 65, 21 * - + 97 ), + 93 - + + COUNT ( * ) * + - 96 - + 67 ) ) * - 52 + + 33 + + + 34 + + COUNT ( * )
----
-3312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3989
SELECT ALL COUNT( * ) DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL COUNT ( * ) / + 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT COUNT( + + 32 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3990
SELECT COUNT ( + + 32 ) AS col1
----
1

query I rowsort
SELECT 17 * 31 + 0 AS col0
----
527

onlyif mysql # DIV for integer division: 
query I rowsort label-3992
SELECT - 25 DIV + - 3 + + 92
----
100

skipif mysql # not compatible
query I rowsort label-3992
SELECT - 25 / + - 3 + + 92
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3993
SELECT COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3993
SELECT COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( + - 67 ) * 74 col0
----
4958

query I rowsort
SELECT ALL 86 * - + 15 AS col1
----
-1290

query I rowsort
SELECT 95 * - 41 AS col0
----
-3895

onlyif mysql # DIV for integer division: 
query II rowsort label-3997
SELECT 27 * - 52 * + 6 + + 2 + - 26, 96 DIV - 24 AS col1
----
-8448
-4

skipif mysql # not compatible
query II rowsort label-3997
SELECT 27 * - 52 * + 6 + + 2 + - 26, 96 / - 24 AS col1
----
-8448
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT DISTINCT COUNT( * ) * 86
----
86

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT COUNT ( * ) * 86
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT COUNT( * ) * 57 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-3999
SELECT COUNT ( * ) * 57 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT DISTINCT - SUM( + 60 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-4000
SELECT DISTINCT - SUM ( + 60 ) AS col1
----
-60

query I rowsort
SELECT + 44 * - ( - - 26 ) * - 67
----
76648

onlyif mysql # DIV for integer division: 
query I rowsort label-4002
SELECT ALL + + 85 DIV - - 7 col1
----
12

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL + + 85 / - - 7 col1
----
12

query I rowsort
SELECT ALL + + 10 + + 68
----
78

query I rowsort
SELECT 30 * + 11
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ALL ( + - COUNT( * ) ) + - 70 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL ( + - COUNT ( * ) ) + - 70 AS col0
----
-71

query I rowsort
SELECT 32 * 43
----
1376

query I rowsort
SELECT ALL - ( + - 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL + + 18 + - MAX( - - 68 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL + + 18 + - MAX ( - - 68 ) AS col2
----
-50

query I rowsort
SELECT ( - 3 ) * - 71 * ( 22 )
----
4686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4010
SELECT DISTINCT + - CAST( - 35 AS SIGNED ) + - - 63 + 66 AS col1
----
164

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT + - CAST ( - 35 AS INTEGER ) + - - 63 + 66 AS col1
----
164

query I rowsort
SELECT ALL 39 * - 59
----
-2301

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ALL - 48 + + COALESCE ( + + 29, COALESCE ( + COUNT( * ), - 21 ), + MIN( + 55 ) * COUNT( * ) ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL - 48 + + COALESCE ( + + 29, COALESCE ( + COUNT ( * ), - 21 ), + MIN ( + 55 ) * COUNT ( * ) ) AS col1
----
-19

query I rowsort
SELECT - 83 * 91 * + 81
----
-611793

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT DISTINCT + + COALESCE ( + 87, + + 34, - COUNT( * ) * + COUNT( * ) ) * + 0 * 46 col2
----
0

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT + + COALESCE ( + 87, + + 34, - COUNT ( * ) * + COUNT ( * ) ) * + 0 * 46 col2
----
0

query I rowsort
SELECT DISTINCT - - 76 + 99 + 89 AS col2
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT DISTINCT + COUNT( * ) + ( + 69 )
----
70

skipif mysql # not compatible
query I rowsort label-4016
SELECT DISTINCT + COUNT ( * ) + ( + 69 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT + CASE + 42 WHEN - 54 THEN 23 / CASE + 69 WHEN + 13 THEN - 7 * + + 71 + + 49 * + + CASE - 45 WHEN - + 44 THEN - 67 WHEN 46 / + 93 * - + 73 * - - ( + COALESCE ( + - 35, + 38 + + 3, ( ( + - COUNT( * ) ) ) + - COUNT( * ) * 61 ) ) THEN NULL END WHEN + 83 + 92 * + 68 THEN NULL END - - 0 * - 16 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4017
SELECT + CASE + 42 WHEN - 54 THEN 23 / CASE + 69 WHEN + 13 THEN - 7 * + + 71 + + 49 * + + CASE - 45 WHEN - + 44 THEN - 67 WHEN 46 / + 93 * - + 73 * - - ( + COALESCE ( + - 35, + 38 + + 3, ( ( + - COUNT ( * ) ) ) + - COUNT ( * ) * 61 ) ) THEN NULL END WHEN + 83 + 92 * + 68 THEN NULL END - - 0 * - 16 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT + MIN( + + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-4018
SELECT + MIN ( + + 53 )
----
53

query I rowsort
SELECT - NULLIF ( 7, - 99 ) + - + 82
----
-89

query I rowsort
SELECT - 46 * + 65 AS col0
----
-2990

query II rowsort
SELECT - 69 AS col2, 75 AS col2
----
-69
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4022
SELECT - 23 AS col0, COUNT( * )
----
-23
1

skipif mysql # not compatible
query II rowsort label-4022
SELECT - 23 AS col0, COUNT ( * )
----
-23
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4023
SELECT - CAST( NULL AS SIGNED ) * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT - CAST ( NULL AS INTEGER ) * 15
----
NULL

query I rowsort
SELECT ALL + 58 * 75
----
4350

query I rowsort
SELECT ALL + 76 * - 23 - - 34 AS col0
----
-1714

onlyif mysql # aggregate syntax: 
query II rowsort label-4026
SELECT ALL + 43 AS col2, COUNT( * )
----
43
1

skipif mysql # not compatible
query II rowsort label-4026
SELECT ALL + 43 AS col2, COUNT ( * )
----
43
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT DISTINCT + 40 * - COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT + 40 * - COUNT ( * ) AS col1
----
-40

query II rowsort
SELECT ALL + 88 AS col1, + 58
----
88
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT + 80 * + COALESCE ( 91, - 99 + - COUNT( * ) )
----
7280

skipif mysql # not compatible
query I rowsort label-4029
SELECT + 80 * + COALESCE ( 91, - 99 + - COUNT ( * ) )
----
7280

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT ALL + MIN( ALL - + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL + MIN ( ALL - + 80 )
----
-80

query I rowsort
SELECT NULLIF ( + 55, + 1 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4032
SELECT CASE 16 WHEN + + 4 THEN NULL WHEN - 4 THEN NULL ELSE + - COUNT( ALL + 33 ) END AS col0, + 26
----
-1
26

skipif mysql # not compatible
query II rowsort label-4032
SELECT CASE 16 WHEN + + 4 THEN NULL WHEN - 4 THEN NULL ELSE + - COUNT ( ALL + 33 ) END AS col0, + 26
----
-1
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT - 68 - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-4033
SELECT - 68 - COUNT ( * )
----
-69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4034
SELECT + NULLIF ( - - 97, + CAST( NULL AS SIGNED ) ) DIV + 98 DIV 1
----
0

skipif mysql # not compatible
query I rowsort label-4034
SELECT + NULLIF ( - - 97, + CAST ( NULL AS INTEGER ) ) / + 98 / 1
----
0

query II rowsort
SELECT ALL + 78, + 30 * + - 97 AS col2
----
78
-2910

query I rowsort
SELECT - 44 * + 60
----
-2640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4037
SELECT + CASE + CASE - MAX( - - 14 ) WHEN - + 66 * - 92 + - 18 - 70 + + MIN( DISTINCT - + 5 ) + + COUNT( * ) * 48 THEN 18 WHEN - + 36 THEN NULL END WHEN + 35 * - COALESCE ( - COUNT( * ), 12 + + 43 ) THEN - 8 WHEN 38 - + - COUNT( ALL - 86 ) - + 99 + 78 / - CAST( NULL AS SIGNED ) THEN + 33 ELSE 20 * + 91 + 95 END AS col0
----
1915

skipif mysql # not compatible
query I rowsort label-4037
SELECT + CASE + CASE - MAX ( - - 14 ) WHEN - + 66 * - 92 + - 18 - 70 + + MIN ( DISTINCT - + 5 ) + + COUNT ( * ) * 48 THEN 18 WHEN - + 36 THEN NULL END WHEN + 35 * - COALESCE ( - COUNT ( * ), 12 + + 43 ) THEN - 8 WHEN 38 - + - COUNT ( ALL - 86 ) - + 99 + 78 / - CAST ( NULL AS INTEGER ) THEN + 33 ELSE 20 * + 91 + 95 END AS col0
----
1915

query I rowsort
SELECT + CASE 41 WHEN + + 30 THEN NULL ELSE + NULLIF ( + 33, + 89 ) - - 25 END
----
58

query II rowsort
SELECT DISTINCT + 62 AS col2, - 9 AS col1
----
62
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT ALL - 5 * - 22 + - - COUNT( * ) AS col0
----
111

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL - 5 * - 22 + - - COUNT ( * ) AS col0
----
111

query I rowsort
SELECT + 14 - 67 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT ALL + 87 * 68 + + NULLIF ( - ( + + NULLIF ( + SUM( DISTINCT 92 ), - 35 ) ), CASE + ( + 83 ) WHEN + 92 + + + 41 / + 47 THEN SUM( DISTINCT + - 63 ) END ) - + 19 * - 27
----
6337

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL + 87 * 68 + + NULLIF ( - ( + + NULLIF ( + SUM ( DISTINCT 92 ), - 35 ) ), CASE + ( + 83 ) WHEN + 92 + + + 41 / + 47 THEN SUM ( DISTINCT + - 63 ) END ) - + 19 * - 27
----
6337

query I rowsort
SELECT - + 88 + NULLIF ( - - 26, 77 ) AS col1
----
-62

query I rowsort
SELECT + + ( 8 ) AS col1
----
8

query I rowsort
SELECT DISTINCT + - COALESCE ( - 50, - + 28 * - + 87 * - 79 ) col1
----
50

query I rowsort
SELECT + - 13 + + 31
----
18

query I rowsort
SELECT ALL 57 * 12 + 48 + + 2 * COALESCE ( + 96, + 57, + 71 )
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT - 1 - SUM( ALL - 4 ) col2
----
3

skipif mysql # not compatible
query I rowsort label-4048
SELECT - 1 - SUM ( ALL - 4 ) col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4049
SELECT + COUNT( CAST( NULL AS SIGNED ) ) * + + 7 * - 38 + 8 + - COUNT( * ) + - MAX( DISTINCT + + 66 ) * + - COUNT( * ) DIV COUNT( ALL - 36 ) + - MAX( - 95 ) + + - 39
----
129

skipif mysql # not compatible
query I rowsort label-4049
SELECT + COUNT ( CAST ( NULL AS INTEGER ) ) * + + 7 * - 38 + 8 + - COUNT ( * ) + - MAX ( DISTINCT + + 66 ) * + - COUNT ( * ) / COUNT ( ALL - 36 ) + - MAX ( - 95 ) + + - 39
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT ALL 87 * 7 * + COUNT( + - 17 ) + + + 19 * - 48 * - CASE 73 WHEN - COUNT( * ) * - 78 + - + MIN( ALL 81 ) / - 16 + - + 22 / + 5 * + + 94 THEN - COUNT( * ) + 68 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL 87 * 7 * + COUNT ( + - 17 ) + + + 19 * - 48 * - CASE 73 WHEN - COUNT ( * ) * - 78 + - + MIN ( ALL 81 ) / - 16 + - + 22 / + 5 * + + 94 THEN - COUNT ( * ) + 68 ELSE NULL END
----
NULL

query I rowsort
SELECT + 67 + + 92 * + 22
----
2091

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT DISTINCT - MAX( ALL 70 ) + + + 15
----
-55

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT - MAX ( ALL 70 ) + + + 15
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT ALL + MIN( DISTINCT + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL + MIN ( DISTINCT + 70 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4054
SELECT + CAST( - + NULLIF ( 52, - 8 + 41 + - 14 - - 9 + - 69 ) AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-4054
SELECT + CAST ( - + NULLIF ( 52, - 8 + 41 + - 14 - - 9 + - 69 ) AS INTEGER )
----
-52

query I rowsort
SELECT ALL + 17 - + ( + - 67 ) * + + 17 * 85 AS col0
----
96832

query I rowsort
SELECT + COALESCE ( + 82, + - 75 * + 84, + - 87 * 8 ) col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT - - 48 + - - MAX( - - 9 ) + 99
----
156

skipif mysql # not compatible
query I rowsort label-4057
SELECT - - 48 + - - MAX ( - - 9 ) + 99
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-4058
SELECT + + 37 DIV + 54 + - 17 + + - 54
----
-71

skipif mysql # not compatible
query I rowsort label-4058
SELECT + + 37 / + 54 + - 17 + + - 54
----
-71

query I rowsort
SELECT - + 31 * - - 77 * 66
----
-157542

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT ALL - - 74 * - SUM( ALL + 87 ) AS col0
----
-6438

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL - - 74 * - SUM ( ALL + 87 ) AS col0
----
-6438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4061
SELECT - CAST( + - 19 AS SIGNED ), COUNT( * ) AS col2
----
19
1

skipif mysql # not compatible
query II rowsort label-4061
SELECT - CAST ( + - 19 AS INTEGER ), COUNT ( * ) AS col2
----
19
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4062
SELECT - 23 + 60 AS col1, 37 + 24 DIV - 68 * - 50
----
37
37

skipif mysql # not compatible
query II rowsort label-4062
SELECT - 23 + 60 AS col1, 37 + 24 / - 68 * - 50
----
37
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4063
SELECT DISTINCT CASE - 12 WHEN - 89 * - + ( - 7 ) * - + 98 + + COALESCE ( + 96, + 49 - 11, + + 66 ) THEN + 49 WHEN + 5 + - + CAST( NULL AS SIGNED ) * COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT CASE - 12 WHEN - 89 * - + ( - 7 ) * - + 98 + + COALESCE ( + 96, + 49 - 11, + + 66 ) THEN + 49 WHEN + 5 + - + CAST ( NULL AS INTEGER ) * COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 99 - 51
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4065
SELECT - 11 DIV - 51 * + - 27, + 37 + 53 + + CASE AVG ( + 80 ) WHEN 95 THEN COUNT( * ) * 51 END DIV + - 34 AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4065
SELECT - 11 / - 51 * + - 27, + 37 + 53 + + CASE AVG ( + 80 ) WHEN 95 THEN COUNT ( * ) * 51 END / + - 34 AS col0
----
0
NULL

query I rowsort
SELECT ALL 16 * 36 * - + 90 col2
----
-51840

query II rowsort
SELECT ALL 75 * - ( 97 ) AS col2, 70 AS col1
----
-7275
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4068
SELECT - 87 * - CAST( NULL AS SIGNED ) / CAST( 23 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4068
SELECT - 87 * - CAST ( NULL AS INTEGER ) / CAST ( 23 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4069
SELECT - 68 + - - 2 AS col0, 29 * + 7 * 44 * + COUNT( * ) AS col2
----
-66
8932

skipif mysql # not compatible
query II rowsort label-4069
SELECT - 68 + - - 2 AS col0, 29 * + 7 * 44 * + COUNT ( * ) AS col2
----
-66
8932

query I rowsort
SELECT - 27 - 7 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT ALL + MAX( ALL CASE 61 WHEN 95 THEN + + 59 WHEN + + 96 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL + MAX ( ALL CASE 61 WHEN 95 THEN + + 59 WHEN + + 96 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT - 45 + + + 79 + + COUNT( * ) + 44 col2
----
79

skipif mysql # not compatible
query I rowsort label-4072
SELECT - 45 + + + 79 + + COUNT ( * ) + 44 col2
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-4073
SELECT 91 DIV - 27 - + 97
----
-100

skipif mysql # not compatible
query I rowsort label-4073
SELECT 91 / - 27 - + 97
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT ALL + CASE + 30 WHEN - - NULLIF ( COALESCE ( - 70, - 8 * - 0 ), + - 62 + + + 93 ) / + 25 - COUNT( * ) THEN NULL WHEN 84 + 85 THEN + 25 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL + CASE + 30 WHEN - - NULLIF ( COALESCE ( - 70, - 8 * - 0 ), + - 62 + + + 93 ) / + 25 - COUNT ( * ) THEN NULL WHEN 84 + 85 THEN + 25 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4075
SELECT DISTINCT + 78 / - COUNT( DISTINCT + 85 ) * + + CAST( + - 51 AS SIGNED ) + - - 9 + - - CAST( NULL AS SIGNED ) / + + MIN( - 41 ) / + COUNT( * ) + - 88 * - + MIN( ALL + - CAST( NULL AS SIGNED ) ) * - 49 * + 76 + - 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT + 78 / - COUNT ( DISTINCT + 85 ) * + + CAST ( + - 51 AS INTEGER ) + - - 9 + - - CAST ( NULL AS INTEGER ) / + + MIN ( - 41 ) / + COUNT ( * ) + - 88 * - + MIN ( ALL + - CAST ( NULL AS INTEGER ) ) * - 49 * + 76 + - 57 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ALL + CASE - 49 WHEN COUNT( * ) THEN NULL WHEN 85 / COUNT( * ) + + + 83 - - SUM( DISTINCT - ( - 71 ) ) * + + 27 THEN + - 37 + - 91 + + 24 - + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL + CASE - 49 WHEN COUNT ( * ) THEN NULL WHEN 85 / COUNT ( * ) + + + 83 - - SUM ( DISTINCT - ( - 71 ) ) * + + 27 THEN + - 37 + - 91 + + 24 - + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4077
SELECT - + COUNT( * ) + + - COUNT( * ) col1, + SUM( ALL + 4 ) * - NULLIF ( 8, NULLIF ( 94, + AVG ( DISTINCT + 1 ) * + 41 + - - 6 - + SUM( DISTINCT + 79 ) + + - 63 ) ) AS col1
----
-2
-32

skipif mysql # not compatible
query II rowsort label-4077
SELECT - + COUNT ( * ) + + - COUNT ( * ) col1, + SUM ( ALL + 4 ) * - NULLIF ( 8, NULLIF ( 94, + AVG ( DISTINCT + 1 ) * + 41 + - - 6 - + SUM ( DISTINCT + 79 ) + + - 63 ) ) AS col1
----
-2
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4078
SELECT ALL - 11 DIV - - 25 + + MAX( ALL + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL - 11 / - - 25 + + MAX ( ALL + 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT - 2 * - COUNT( * ) * - 95
----
-190

skipif mysql # not compatible
query I rowsort label-4079
SELECT - 2 * - COUNT ( * ) * - 95
----
-190

query I rowsort
SELECT - 10 * - - 22 + - 48 + + 79 AS col0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT + MIN( DISTINCT - - 32 )
----
32

skipif mysql # not compatible
query I rowsort label-4081
SELECT + MIN ( DISTINCT - - 32 )
----
32

query I rowsort
SELECT DISTINCT 76 * + + ( + + ( - 3 ) ) + - 79 * 82 * 48 * + ( + 7 )
----
-2176836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4083
SELECT ALL + 25 * CASE - - CAST( NULL AS SIGNED ) WHEN - 35 + - AVG ( 61 ) + 89 * - + COUNT( * ) THEN + + 99 + 78 END + - 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL + 25 * CASE - - CAST ( NULL AS INTEGER ) WHEN - 35 + - AVG ( 61 ) + 89 * - + COUNT ( * ) THEN + + 99 + 78 END + - 43 AS col1
----
NULL

query I rowsort
SELECT + 38 * - 3 AS col0
----
-114

query I rowsort
SELECT ALL + ( - 75 ) * 28 * + 4 - - NULLIF ( - - 8, + 16 * - 45 + + - 0 )
----
-8392

onlyif mysql # DIV for integer division: 
query I rowsort label-4086
SELECT + 65 DIV 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4086
SELECT + 65 / 48 AS col1
----
1

query I rowsort
SELECT ALL - 21 - 43 + 49 * + 61
----
2925

query I rowsort
SELECT - ( 39 ) * + 4 AS col0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT DISTINCT + COALESCE ( + + 31, - 20 * + + 71, + COUNT( * ) * + - 21 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT + COALESCE ( + + 31, - 20 * + + 71, + COUNT ( * ) * + - 21 ) AS col1
----
31

query I rowsort
SELECT DISTINCT - 69 * - ( - - 15 ) + + + 52 AS col0
----
1087

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4091
SELECT 8 - + + 70 * - - 71 * CAST( ( + 13 ) AS SIGNED ) + 70 AS col0
----
-64532

skipif mysql # not compatible
query I rowsort label-4091
SELECT 8 - + + 70 * - - 71 * CAST ( ( + 13 ) AS INTEGER ) + 70 AS col0
----
-64532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4092
SELECT ALL - CAST( 8 AS SIGNED ) * + + 75
----
-600

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL - CAST ( 8 AS INTEGER ) * + + 75
----
-600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4093
SELECT ( + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) ) - - 15 - + + COALESCE ( - 11, + 58 * + ( + - 31 ) * + - 57 * + - NULLIF ( - ( - + 8 ), - - MIN( DISTINCT + 13 ) * + ( + - 99 ) ) * + 87, + 15 + - 56 + MIN( ALL 47 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4093
SELECT ( + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) - - 15 - + + COALESCE ( - 11, + 58 * + ( + - 31 ) * + - 57 * + - NULLIF ( - ( - + 8 ), - - MIN ( DISTINCT + 13 ) * + ( + - 99 ) ) * + 87, + 15 + - 56 + MIN ( ALL 47 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4094
SELECT DISTINCT 26 AS col1, COUNT( * ) * + 55 * + - COUNT( * ) col1
----
26
-55

skipif mysql # not compatible
query II rowsort label-4094
SELECT DISTINCT 26 AS col1, COUNT ( * ) * + 55 * + - COUNT ( * ) col1
----
26
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-4095
SELECT 33 DIV - + 78
----
0

skipif mysql # not compatible
query I rowsort label-4095
SELECT 33 / - + 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT 4 * + 2 * + MIN( DISTINCT - 36 )
----
-288

skipif mysql # not compatible
query I rowsort label-4096
SELECT 4 * + 2 * + MIN ( DISTINCT - 36 )
----
-288

onlyif mysql # aggregate syntax: 
query II rowsort label-4097
SELECT ( + ( COUNT( * ) ) ) + - 74 AS col0, - 18 AS col2
----
-73
-18

skipif mysql # not compatible
query II rowsort label-4097
SELECT ( + ( COUNT ( * ) ) ) + - 74 AS col0, - 18 AS col2
----
-73
-18

query II rowsort
SELECT - 88, ( + + 29 ) * - - 19 * - 70 col1
----
-88
-38570

query I rowsort
SELECT 49 + - - 68
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT DISTINCT + COALESCE ( - 8, - 69, + 25 * + 95 * + - 0 * ( + CASE + SUM( + 94 ) WHEN - 18 * - + 8 * - 53 THEN NULL WHEN + AVG ( ALL - 5 ) + 34 THEN NULL ELSE - 35 END ) + - 83 + + COUNT( * ) ) * + + 13
----
-104

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT + COALESCE ( - 8, - 69, + 25 * + 95 * + - 0 * ( + CASE + SUM ( + 94 ) WHEN - 18 * - + 8 * - 53 THEN NULL WHEN + AVG ( ALL - 5 ) + 34 THEN NULL ELSE - 35 END ) + - 83 + + COUNT ( * ) ) * + + 13
----
-104

query I rowsort
SELECT ALL - 68 * + 42
----
-2856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4102
SELECT COUNT( * ) DIV - 72 * + ( - 41 ) * + 80
----
0

skipif mysql # not compatible
query I rowsort label-4102
SELECT COUNT ( * ) / - 72 * + ( - 41 ) * + 80
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4103
SELECT ALL 96 AS col1, COUNT( * ) + 14
----
96
15

skipif mysql # not compatible
query II rowsort label-4103
SELECT ALL 96 AS col1, COUNT ( * ) + 14
----
96
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4104
SELECT ALL ( - + 93 ) + MIN( DISTINCT 11 ) DIV - 77
----
-93

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL ( - + 93 ) + MIN ( DISTINCT 11 ) / - 77
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT DISTINCT SUM( 73 ) + 81
----
154

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT SUM ( 73 ) + 81
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4106
SELECT ALL + 33 + - CAST( 77 AS SIGNED ) - - 82 / + 80 + 30 - - - 71 + + + CAST( NULL AS SIGNED ) / 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL + 33 + - CAST ( 77 AS INTEGER ) - - 82 / + 80 + 30 - - - 71 + + + CAST ( NULL AS INTEGER ) / 27 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4107
SELECT 49 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-4107
SELECT 49 / + 82
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4108
SELECT ALL - 87 AS col0, 53 * - CAST( NULL AS DECIMAL ) AS col1
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-4108
SELECT ALL - 87 AS col0, 53 * - CAST ( NULL AS REAL ) AS col1
----
-87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT ALL + 77 + COUNT( - 15 ) * - 61
----
16

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL + 77 + COUNT ( - 15 ) * - 61
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4110
SELECT + COUNT( * ), - 61 AS col1
----
1
-61

skipif mysql # not compatible
query II rowsort label-4110
SELECT + COUNT ( * ), - 61 AS col1
----
1
-61

query I rowsort
SELECT DISTINCT + + 36 + 85
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL - - SUM( 61 ) + MIN( + + 64 )
----
125

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL - - SUM ( 61 ) + MIN ( + + 64 )
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-4113
SELECT - COUNT( * ) AS col0, - 0 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-4113
SELECT - COUNT ( * ) AS col0, - 0 AS col0
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4114
SELECT + COALESCE ( - + CASE 76 WHEN - + 49 THEN - CAST( - CASE 29 WHEN - + 69 * 76 + + - 67 * 57 * + + CASE - ( + NULLIF ( + 85, + 20 * - NULLIF ( - 25, ( + - 72 ) * 86 ) * + + 4 - - 55 ) ) WHEN - 74 THEN NULL ELSE + - 30 END THEN + - 56 ELSE NULL END AS SIGNED ) END, + MIN( 11 ) DIV 25 + - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4114
SELECT + COALESCE ( - + CASE 76 WHEN - + 49 THEN - CAST ( - CASE 29 WHEN - + 69 * 76 + + - 67 * 57 * + + CASE - ( + NULLIF ( + 85, + 20 * - NULLIF ( - 25, ( + - 72 ) * 86 ) * + + 4 - - 55 ) ) WHEN - 74 THEN NULL ELSE + - 30 END THEN + - 56 ELSE NULL END AS INTEGER ) END, + MIN ( 11 ) / 25 + - 1 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4115
SELECT DISTINCT + + 45 - - 26 - CAST( NULL AS SIGNED ) * + 23 / - ( - 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT + + 45 - - 26 - CAST ( NULL AS INTEGER ) * + 23 / - ( - 99 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT + - 99 * ( - ( + 7 ) ) - - - 42 * - 25 * - 67 - MIN( - 52 ) col2
----
-69605

skipif mysql # not compatible
query I rowsort label-4116
SELECT + - 99 * ( - ( + 7 ) ) - - - 42 * - 25 * - 67 - MIN ( - 52 ) col2
----
-69605

query I rowsort
SELECT ALL + - 94 - - - 95
----
-189

query I rowsort
SELECT DISTINCT - + NULLIF ( 71, + 73 )
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-4119
SELECT - 2 + 50 + 83 DIV + + 27 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-4119
SELECT - 2 + 50 + 83 / + + 27 AS col0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4120
SELECT DISTINCT - 4, + COUNT( * ) AS col2
----
-4
1

skipif mysql # not compatible
query II rowsort label-4120
SELECT DISTINCT - 4, + COUNT ( * ) AS col2
----
-4
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4121
SELECT CASE CAST( + ( 58 ) AS SIGNED ) WHEN + + ( + 80 ) / - - COUNT( * ) + 46 + - 67 + CAST( NULL AS SIGNED ) THEN + + COUNT( * ) * - + 84 WHEN + - 63 + - 33 * + COALESCE ( 7, + - 1 + - CAST( ( + 56 ) AS SIGNED ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT CASE CAST ( + ( 58 ) AS INTEGER ) WHEN + + ( + 80 ) / - - COUNT ( * ) + 46 + - 67 + CAST ( NULL AS INTEGER ) THEN + + COUNT ( * ) * - + 84 WHEN + - 63 + - 33 * + COALESCE ( 7, + - 1 + - CAST ( ( + 56 ) AS INTEGER ) ) THEN NULL END
----
NULL

query I rowsort
SELECT 22 * - - 46 AS col2
----
1012

query I rowsort
SELECT 53 - 1 col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4124
SELECT ALL + ( - 61 ) DIV - COUNT( * ) col2, + 5 * - 4
----
61
-20

skipif mysql # not compatible
query II rowsort label-4124
SELECT ALL + ( - 61 ) / - COUNT ( * ) col2, + 5 * - 4
----
61
-20

query I rowsort
SELECT + 38 * 33 - - 19
----
1273

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ALL CASE - 33 WHEN 53 THEN NULL WHEN + 48 + - 34 THEN - 74 * + + 62 * + 79 - + - 32 - + 95 + 34 * COUNT( * ) + + 81 + NULLIF ( + 97, - + ( - COUNT( * ) ) ) - + + 54 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL CASE - 33 WHEN 53 THEN NULL WHEN + 48 + - 34 THEN - 74 * + + 62 * + 79 - + - 32 - + 95 + 34 * COUNT ( * ) + + 81 + NULLIF ( + 97, - + ( - COUNT ( * ) ) ) - + + 54 ELSE NULL END
----
NULL

query I rowsort
SELECT + 52 * 13 * - 22
----
-14872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4128
SELECT 2 * + - NULLIF ( CAST( NULL AS SIGNED ), + 99 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4128
SELECT 2 * + - NULLIF ( CAST ( NULL AS INTEGER ), + 99 ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4129
SELECT ALL + 65 DIV MAX( + 53 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL + 65 / MAX ( + 53 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT COUNT( * ) + + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4130
SELECT COUNT ( * ) + + + COUNT ( * ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4131
SELECT ALL 58 * - 83, - ( NULLIF ( - 40, + 62 * + 69 + - 8 - CAST( NULL AS SIGNED ) * + - 83 * - 62 * + NULLIF ( - CAST( + CASE + - SUM( 93 ) WHEN - 33 / - - ( - - AVG ( - 85 ) ) THEN + 41 * 16 * - 45 + + 38 ELSE 9 END AS SIGNED ), - 63 ) / - 3 - - - 31 - - ( + SUM( ALL + 51 ) ) / - 25 + COUNT( * ) ) ) + 63 AS col2
----
-4814
103

skipif mysql # not compatible
query II rowsort label-4131
SELECT ALL 58 * - 83, - ( NULLIF ( - 40, + 62 * + 69 + - 8 - CAST ( NULL AS INTEGER ) * + - 83 * - 62 * + NULLIF ( - CAST ( + CASE + - SUM ( 93 ) WHEN - 33 / - - ( - - AVG ( - 85 ) ) THEN + 41 * 16 * - 45 + + 38 ELSE 9 END AS INTEGER ), - 63 ) / - 3 - - - 31 - - ( + SUM ( ALL + 51 ) ) / - 25 + COUNT ( * ) ) ) + 63 AS col2
----
-4814
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT 18 + + + COUNT( DISTINCT - - 17 ) * - 95 + - - 90 + - 30 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4132
SELECT 18 + + + COUNT ( DISTINCT - - 17 ) * - 95 + - - 90 + - 30 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT DISTINCT MIN( - 30 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT MIN ( - 30 ) AS col1
----
-30

query I rowsort
SELECT DISTINCT - COALESCE ( + NULLIF ( + 22, 81 * - 41 - - 60 + - 2 * - 64 ), 31 ) + + 97
----
75

query I rowsort
SELECT ALL 22 + + 68 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT 14 + + + 29 + 51 * + 7 + - MAX( DISTINCT - - 88 ) + + 8 AS col2
----
320

skipif mysql # not compatible
query I rowsort label-4136
SELECT 14 + + + 29 + 51 * + 7 + - MAX ( DISTINCT - - 88 ) + + 8 AS col2
----
320

onlyif mysql # aggregate syntax: 
query II rowsort label-4137
SELECT DISTINCT COUNT( + - 2 ) + + NULLIF ( + - 37, 77 * + 59 - MIN( DISTINCT ( - 1 ) ) + 61 ) * + 40 + - 33, - 65 * - 54 col1
----
-1512
3510

skipif mysql # not compatible
query II rowsort label-4137
SELECT DISTINCT COUNT ( + - 2 ) + + NULLIF ( + - 37, 77 * + 59 - MIN ( DISTINCT ( - 1 ) ) + 61 ) * + 40 + - 33, - 65 * - 54 col1
----
-1512
3510

query I rowsort
SELECT ALL 9 + + 76 AS col2
----
85

query II rowsort
SELECT ALL 68 + 3, + 37 col0
----
71
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4140
SELECT CAST( NULL AS DECIMAL ) + - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4140
SELECT CAST ( NULL AS REAL ) + - 10 AS col2
----
NULL

query I rowsort
SELECT 39 + + 81 * - 20
----
-1581

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT COUNT( * ) - 86 + - - 53 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-4142
SELECT COUNT ( * ) - 86 + - - 53 AS col0
----
-32

query II rowsort
SELECT 84 + - 41 + 62 * - + 46 AS col2, - 83 + NULLIF ( - 65, - 26 ) + + 97 + - - 53 * - 11
----
-2809
-634

query I rowsort
SELECT DISTINCT - 24 * + + NULLIF ( + + 25, + - AVG ( - 89 ) - 78 ) * + + 1 - - - 84 AS col1
----
-684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4145
SELECT ALL + 56 * + + CAST( 63 AS SIGNED ) - 48 AS col1, - CASE - - 52 WHEN + 87 + + 14 THEN - + 13 + + 6 * - + 38 * + 84 + + SUM( ALL - ( 66 ) ) END
----
3480
NULL

skipif mysql # not compatible
query II rowsort label-4145
SELECT ALL + 56 * + + CAST ( 63 AS INTEGER ) - 48 AS col1, - CASE - - 52 WHEN + 87 + + 14 THEN - + 13 + + 6 * - + 38 * + 84 + + SUM ( ALL - ( 66 ) ) END
----
3480
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT + MAX( DISTINCT - 52 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4146
SELECT + MAX ( DISTINCT - 52 ) AS col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4147
SELECT ALL + CAST( 4 AS SIGNED ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL + CAST ( 4 AS INTEGER ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT DISTINCT + + COUNT( * ) * - 83 + - + 84 - - + 49
----
-118

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT + + COUNT ( * ) * - 83 + - + 84 - - + 49
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT + - 76 * - + COUNT( * ) + + 57 + ( 88 ) col1
----
221

skipif mysql # not compatible
query I rowsort label-4149
SELECT + - 76 * - + COUNT ( * ) + + 57 + ( 88 ) col1
----
221

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT DISTINCT - COUNT( * ) * 38 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT - COUNT ( * ) * 38 AS col0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4151
SELECT + 77 * + CAST( NULL AS SIGNED ) * - - 98 - + 30 * + - 81 / + - ( - 86 ), - 5 AS col0
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-4151
SELECT + 77 * + CAST ( NULL AS INTEGER ) * - - 98 - + 30 * + - 81 / + - ( - 86 ), - 5 AS col0
----
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT COALESCE ( + - COUNT( * ), + - 8, + 8 ) * - 27 + - 79 + 11 col0
----
-41

skipif mysql # not compatible
query I rowsort label-4152
SELECT COALESCE ( + - COUNT ( * ), + - 8, + 8 ) * - 27 + - 79 + 11 col0
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-4153
SELECT - SUM( 35 ), COALESCE ( 44, + - 11 ) * + COUNT( * ) + - - 34 AS col1
----
-35
78

skipif mysql # not compatible
query II rowsort label-4153
SELECT - SUM ( 35 ), COALESCE ( 44, + - 11 ) * + COUNT ( * ) + - - 34 AS col1
----
-35
78

onlyif mysql # aggregate syntax: 
query II rowsort label-4154
SELECT - MIN( 68 ) * + 86 + + MIN( + + 60 ) * - 11 - + - 99 * - + ( + 51 ) col2, + SUM( ALL 33 ) AS col2
----
-11557
33

skipif mysql # not compatible
query II rowsort label-4154
SELECT - MIN ( 68 ) * + 86 + + MIN ( + + 60 ) * - 11 - + - 99 * - + ( + 51 ) col2, + SUM ( ALL 33 ) AS col2
----
-11557
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT ALL + + ( + + MAX( 76 ) )
----
76

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL + + ( + + MAX ( 76 ) )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4156
SELECT ALL - CASE COUNT( * ) WHEN + - 38 THEN + COUNT( * ) END * - 40 AS col0, 77 DIV + 84
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4156
SELECT ALL - CASE COUNT ( * ) WHEN + - 38 THEN + COUNT ( * ) END * - 40 AS col0, 77 / + 84
----
NULL
0

query I rowsort
SELECT - - 74 * - - ( + - 48 ) * - 12 + + + 72 + ( - 11 ) * - 89
----
43675

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT DISTINCT + + NULLIF ( ( + MAX( + - 83 ) ), - COUNT( * ) ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT + + NULLIF ( ( + MAX ( + - 83 ) ), - COUNT ( * ) ) AS col1
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4159
SELECT DISTINCT + 36 * 92 DIV + - 43 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-4159
SELECT DISTINCT + 36 * 92 / + - 43 AS col1
----
-77

query I rowsort
SELECT DISTINCT + ( 88 ) * - 57 + + 82 * + 95
----
2774

query I rowsort
SELECT DISTINCT + ( + 32 ) AS col2
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-4162
SELECT - 81 DIV 37 * + - ( - + 89 ) * - + 95 AS col1, - ( - 92 )
----
16910
92

skipif mysql # not compatible
query II rowsort label-4162
SELECT - 81 / 37 * + - ( - + 89 ) * - + 95 AS col1, - ( - 92 )
----
16910
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4163
SELECT - 16 DIV 18 * + + 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4163
SELECT - 16 / 18 * + + 83 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4164
SELECT ALL CASE 63 WHEN - + ( 73 ) * + CAST( + + 93 AS SIGNED ) * - 54 THEN NULL WHEN - 24 * 23 * + MIN( ALL - CAST( NULL AS SIGNED ) ) - + + ( + 96 ) THEN NULL ELSE 20 END
----
20

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL CASE 63 WHEN - + ( 73 ) * + CAST ( + + 93 AS INTEGER ) * - 54 THEN NULL WHEN - 24 * 23 * + MIN ( ALL - CAST ( NULL AS INTEGER ) ) - + + ( + 96 ) THEN NULL ELSE 20 END
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4165
SELECT - 46 DIV 56 col2
----
0

skipif mysql # not compatible
query I rowsort label-4165
SELECT - 46 / 56 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4166
SELECT - 80 DIV - ( - - 91 ) AS col0, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-4166
SELECT - 80 / - ( - - 91 ) AS col0, COUNT ( * )
----
0
1

query I rowsort
SELECT DISTINCT COALESCE ( 86, 31 * - 73 )
----
86

query I rowsort
SELECT ALL 10 + - 79
----
-69

query I rowsort
SELECT ALL 68 + + - 30
----
38

query I rowsort
SELECT - 74 - + + 91 AS col1
----
-165

query I rowsort
SELECT ALL COALESCE ( + 91, 60 )
----
91

query I rowsort
SELECT - 62 * 39
----
-2418

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT - MIN( DISTINCT - 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4173
SELECT - MIN ( DISTINCT - 81 ) AS col2
----
81

query I rowsort
SELECT ALL + ( 24 ) * - - 10
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4175
SELECT ALL - MIN( ALL - 79 ) - CAST( + - AVG ( ALL - 66 ) AS SIGNED ) * + COUNT( * ) * + 77 * + 93 * COALESCE ( - 93, - 71 * COUNT( * ) - - NULLIF ( - 9, 60 ) + 33 DIV - 93 ) col0
----
43954297

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL - MIN ( ALL - 79 ) - CAST ( + - AVG ( ALL - 66 ) AS INTEGER ) * + COUNT ( * ) * + 77 * + 93 * COALESCE ( - 93, - 71 * COUNT ( * ) - - NULLIF ( - 9, 60 ) + 33 / - 93 ) col0
----
43954297

onlyif mysql # aggregate syntax: 
query II rowsort label-4176
SELECT ALL 48 AS col0, - COUNT( * ) * - - 66
----
48
-66

skipif mysql # not compatible
query II rowsort label-4176
SELECT ALL 48 AS col0, - COUNT ( * ) * - - 66
----
48
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-4177
SELECT DISTINCT + + MIN( ALL + - 52 ) * 33 + + 43 + + + MAX( + 62 ), + 97 AS col0
----
-1611
97

skipif mysql # not compatible
query II rowsort label-4177
SELECT DISTINCT + + MIN ( ALL + - 52 ) * 33 + + 43 + + + MAX ( + 62 ), + 97 AS col0
----
-1611
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4178
SELECT - 9 AS col0, + 75 + - - COALESCE ( + 16, - + ( + COUNT( * ) ) * + 6 + + 93 )
----
-9
91

skipif mysql # not compatible
query II rowsort label-4178
SELECT - 9 AS col0, + 75 + - - COALESCE ( + 16, - + ( + COUNT ( * ) ) * + 6 + + 93 )
----
-9
91

query I rowsort
SELECT DISTINCT - 83 - - + 6
----
-77

query I rowsort
SELECT DISTINCT + + 43 col1
----
43

query I rowsort
SELECT DISTINCT + - 83 col1
----
-83

query I rowsort
SELECT DISTINCT + 3 * + 79 + + 62 AS col2
----
299

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4183
SELECT + - COUNT( * ) - + + CAST( NULLIF ( 28, - + 53 * + 28 + + COUNT( * ) - 60 + MIN( DISTINCT + - 47 ) ) AS SIGNED ) AS col2, - 70 + + 84
----
-29
14

skipif mysql # not compatible
query II rowsort label-4183
SELECT + - COUNT ( * ) - + + CAST ( NULLIF ( 28, - + 53 * + 28 + + COUNT ( * ) - 60 + MIN ( DISTINCT + - 47 ) ) AS INTEGER ) AS col2, - 70 + + 84
----
-29
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4184
SELECT + - CASE - 72 WHEN + CAST( SUM( 75 ) AS SIGNED ) THEN COUNT( * ) WHEN - - 61 + + 14 * NULLIF ( - CASE - + 73 WHEN 47 THEN - + 63 END, - 42 * 8 * - COUNT( * ) + - 66 + 2 * + COUNT( * ) - ( + 18 ) * - 29 ) + 43 + + + MAX( DISTINCT + 48 ) / - 7 THEN NULL END * + CASE + + CAST( NULL AS SIGNED ) WHEN 99 * + ( 47 ) + + 99 THEN CAST( 78 AS SIGNED ) * + NULLIF ( 19 * + 49, - 79 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4184
SELECT + - CASE - 72 WHEN + CAST ( SUM ( 75 ) AS INTEGER ) THEN COUNT ( * ) WHEN - - 61 + + 14 * NULLIF ( - CASE - + 73 WHEN 47 THEN - + 63 END, - 42 * 8 * - COUNT ( * ) + - 66 + 2 * + COUNT ( * ) - ( + 18 ) * - 29 ) + 43 + + + MAX ( DISTINCT + 48 ) / - 7 THEN NULL END * + CASE + + CAST ( NULL AS INTEGER ) WHEN 99 * + ( 47 ) + + 99 THEN CAST ( 78 AS INTEGER ) * + NULLIF ( 19 * + 49, - 79 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT + COALESCE ( + - MAX( - 50 ), 17 ) * - - 23 * - - COUNT( 21 ) + + 39
----
1189

skipif mysql # not compatible
query I rowsort label-4185
SELECT + COALESCE ( + - MAX ( - 50 ), 17 ) * - - 23 * - - COUNT ( 21 ) + + 39
----
1189

query I rowsort
SELECT DISTINCT 23 * + 98
----
2254

query I rowsort
SELECT ALL + 9 * - + 47
----
-423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4188
SELECT + CAST( NULL AS SIGNED ) * 4 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT + CAST ( NULL AS INTEGER ) * 4 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4189
SELECT ALL CAST( NULL AS SIGNED ) * - 57 + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL CAST ( NULL AS INTEGER ) * - 57 + + 22
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4190
SELECT + 31 DIV - + CAST( + 31 AS SIGNED ) - 3 + - 39
----
-43

skipif mysql # not compatible
query I rowsort label-4190
SELECT + 31 / - + CAST ( + 31 AS INTEGER ) - 3 + - 39
----
-43

query I rowsort
SELECT DISTINCT - ( + - ( - + 91 ) ) * 48 + + - 36 col1
----
-4404

onlyif mysql # aggregate syntax: 
query II rowsort label-4192
SELECT ALL + - 41 * COUNT( * ) + + 16 + 20 * + 72, 19 AS col2
----
1415
19

skipif mysql # not compatible
query II rowsort label-4192
SELECT ALL + - 41 * COUNT ( * ) + + 16 + 20 * + 72, 19 AS col2
----
1415
19

query I rowsort
SELECT ALL + 7 * + 39 * - 37 AS col0
----
-10101

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT DISTINCT - 40 * + 10 + + + COUNT( * )
----
-399

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT - 40 * + 10 + + + COUNT ( * )
----
-399

query I rowsort
SELECT + + 68 * - - 50
----
3400

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4196
SELECT ALL - MAX( DISTINCT + CASE - + 4 WHEN + + 45 + CAST( 22 AS DECIMAL ) * - + 15 THEN + + 26 END ) * + + 28 + - + 99 * - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL - MAX ( DISTINCT + CASE - + 4 WHEN + + 45 + CAST ( 22 AS REAL ) * - + 15 THEN + + 26 END ) * + + 28 + - + 99 * - 60 AS col0
----
NULL

query I rowsort
SELECT + ( 74 ) + - - 57 AS col0
----
131

query I rowsort
SELECT NULLIF ( 73, - 32 ) AS col2
----
73

query II rowsort
SELECT + 28 + 68 AS col1, + 38 AS col1
----
96
38

query I rowsort
SELECT - 34 - - + 66 + - 89
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4201
SELECT ALL + CAST( 86 AS SIGNED ) * + - 38 + - - 24 * - ( + 27 ) AS col1, - 0 AS col2
----
-3916
0

skipif mysql # not compatible
query II rowsort label-4201
SELECT ALL + CAST ( 86 AS INTEGER ) * + - 38 + - - 24 * - ( + 27 ) AS col1, - 0 AS col2
----
-3916
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT - 1 * - COUNT( * ) + 36 + 14 * + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4202
SELECT - 1 * - COUNT ( * ) + 36 + 14 * + COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT - COUNT( * ) - 84 - + 31 AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-4203
SELECT - COUNT ( * ) - 84 - + 31 AS col2
----
-116

query I rowsort
SELECT ALL + 52 * + 31 * - - 56 + - 87 * - 97
----
98711

query I rowsort
SELECT ALL + 63 * + + 40 + - CASE - 75 WHEN + 67 THEN - 55 WHEN - + 89 THEN NULL ELSE NULL END * 57 AS col0
----
NULL

query II rowsort
SELECT - 28, COALESCE ( - ( + 82 ), + + 99 ) AS col1
----
-28
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT ALL COUNT( * ) * + COUNT( * ) * 83 + - 3
----
80

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL COUNT ( * ) * + COUNT ( * ) * 83 + - 3
----
80

query I rowsort
SELECT ALL ( 16 ) * 18 * - - 55 * - ( - 16 )
----
253440

query I rowsort
SELECT ALL + 37 * - ( + + NULLIF ( + + 18, + - 91 * 77 * 35 ) )
----
-666

query I rowsort
SELECT DISTINCT + 69 * 35 + + 83 AS col2
----
2498

query I rowsort
SELECT DISTINCT ( 20 ) col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT + COUNT( * ) * + 6
----
6

skipif mysql # not compatible
query I rowsort label-4212
SELECT + COUNT ( * ) * + 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT DISTINCT + 29 - + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT + 29 - + COUNT ( * )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4214
SELECT ALL CAST( NULL AS SIGNED ) AS col2, + COUNT( * ) DIV + 72 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4214
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) / + 72 AS col1
----
NULL
0

query II rowsort
SELECT - 32 + 20 AS col2, + 97 AS col1
----
-12
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4216
SELECT ALL - CAST( NULL AS SIGNED ) - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL - CAST ( NULL AS INTEGER ) - 37
----
NULL

query I rowsort
SELECT 58 * - 5 * 39 * - 18
----
203580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4218
SELECT ALL + 47 - - + ( + NULLIF ( 86, - 12 * 72 * + COUNT( * ) - - COUNT( * ) * - CAST( + + 17 AS SIGNED ) ) )
----
133

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL + 47 - - + ( + NULLIF ( 86, - 12 * 72 * + COUNT ( * ) - - COUNT ( * ) * - CAST ( + + 17 AS INTEGER ) ) )
----
133

query II rowsort
SELECT ALL 60, - 99 col2
----
60
-99

query I rowsort
SELECT COALESCE ( - + 17, - 8 ) + 93 AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4221
SELECT ALL - - COUNT( * ) / - + CAST( NULL AS SIGNED ) * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL - - COUNT ( * ) / - + CAST ( NULL AS INTEGER ) * + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT ALL - 48 * + COUNT( + 27 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL - 48 * + COUNT ( + 27 ) AS col1
----
-48

query I rowsort
SELECT 90 + - + 67 AS col2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4224
SELECT ALL - 37 DIV + 56 - - - 54 col1
----
-54

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL - 37 / + 56 - - - 54 col1
----
-54

query I rowsort
SELECT + 15 + - 98 * - 2
----
211

query II rowsort
SELECT ALL - 80 col2, 67
----
-80
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4227
SELECT - COUNT( * ), + 47 AS col2
----
-1
47

skipif mysql # not compatible
query II rowsort label-4227
SELECT - COUNT ( * ), + 47 AS col2
----
-1
47

query I rowsort
SELECT 13 - + 68 AS col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4229
SELECT ALL NULLIF ( ( + 26 ), - - 89 - 34 * 16 / + 2 ) * - CAST( NULL AS SIGNED ) * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL NULLIF ( ( + 26 ), - - 89 - 34 * 16 / + 2 ) * - CAST ( NULL AS INTEGER ) * + 45
----
NULL

query I rowsort
SELECT - 82 * 19 * - 47
----
73226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4231
SELECT - + 43 DIV - - ( + 35 ) + - COUNT( * ) + - + 21 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-4231
SELECT - + 43 / - - ( + 35 ) + - COUNT ( * ) + - + 21 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-4232
SELECT + - 62 AS col2, - COUNT( * )
----
-62
-1

skipif mysql # not compatible
query II rowsort label-4232
SELECT + - 62 AS col2, - COUNT ( * )
----
-62
-1

query I rowsort
SELECT ALL + 22 + - + 92
----
-70

query I rowsort
SELECT + 91 * 25 * + + 47 + + 77 + + 2 + + 51 AS col2
----
107055

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT ALL + MAX( + ( - 58 ) ) + + SUM( ALL - - 93 )
----
35

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL + MAX ( + ( - 58 ) ) + + SUM ( ALL - - 93 )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4236
SELECT - 4 DIV + 87 + - 28 + + 22 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4236
SELECT - 4 / + 87 + - 28 + + 22 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT ALL + 72 + - CASE + 42 WHEN + 22 * - 74 * + - 62 THEN - 41 / - 59 * - - MAX( DISTINCT - 83 ) * + 7 + + 50 END - - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL + 72 + - CASE + 42 WHEN + 22 * - 74 * + - 62 THEN - 41 / - 59 * - - MAX ( DISTINCT - 83 ) * + 7 + + 50 END - - 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT + ( - 74 ) + - - COUNT( * ) * - 93 + + ( - - COALESCE ( + + 18, 64 + - 86 + ( 98 ) + - 75 ) ) * ( + COUNT( * ) ) + - 58 AS col2
----
-207

skipif mysql # not compatible
query I rowsort label-4238
SELECT + ( - 74 ) + - - COUNT ( * ) * - 93 + + ( - - COALESCE ( + + 18, 64 + - 86 + ( 98 ) + - 75 ) ) * ( + COUNT ( * ) ) + - 58 AS col2
----
-207

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4239
SELECT + 95 AS col2, COUNT( * ) + - 59 + 79 + + 62 DIV 7 AS col2
----
95
29

skipif mysql # not compatible
query II rowsort label-4239
SELECT + 95 AS col2, COUNT ( * ) + - 59 + 79 + + 62 / 7 AS col2
----
95
29

onlyif mysql # aggregate syntax: 
query II rowsort label-4240
SELECT + COUNT( * ) col1, + 6 * - - 32
----
1
192

skipif mysql # not compatible
query II rowsort label-4240
SELECT + COUNT ( * ) col1, + 6 * - - 32
----
1
192

query I rowsort
SELECT 92 * 60 + 17
----
5537

query I rowsort
SELECT 18 * + - 96 AS col2
----
-1728

onlyif mysql # DIV for integer division: 
query I rowsort label-4243
SELECT DISTINCT 24 DIV + 33
----
0

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT 24 / + 33
----
0

query I rowsort
SELECT ALL 99 * - 64
----
-6336

onlyif mysql # DIV for integer division: 
query I rowsort label-4245
SELECT 17 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-4245
SELECT 17 / 71
----
0

query I rowsort
SELECT 77 * 99 + 82 AS col1
----
7705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4247
SELECT DISTINCT 34 * CAST( + 84 AS SIGNED )
----
2856

skipif mysql # not compatible
query I rowsort label-4247
SELECT DISTINCT 34 * CAST ( + 84 AS INTEGER )
----
2856

onlyif mysql # DIV for integer division: 
query I rowsort label-4248
SELECT 43 DIV + - 42
----
-1

skipif mysql # not compatible
query I rowsort label-4248
SELECT 43 / + - 42
----
-1

query I rowsort
SELECT ALL ( 71 ) * - 22
----
-1562

query I rowsort
SELECT ALL - NULLIF ( + - 47, 52 ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4251
SELECT ALL COUNT( * ) - + - 28, 28 AS col0
----
29
28

skipif mysql # not compatible
query II rowsort label-4251
SELECT ALL COUNT ( * ) - + - 28, 28 AS col0
----
29
28

query I rowsort
SELECT 33 - CASE - - 6 WHEN + - 85 THEN - 92 WHEN - - 79 + 7 / + + 59 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4253
SELECT 68 * + MIN( ALL - 97 ) AS col0, + 17 + + 80 AS col0
----
-6596
97

skipif mysql # not compatible
query II rowsort label-4253
SELECT 68 * + MIN ( ALL - 97 ) AS col0, + 17 + + 80 AS col0
----
-6596
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4254
SELECT - 21 * + + 64 - - 18 AS col0, - COUNT( * )
----
-1326
-1

skipif mysql # not compatible
query II rowsort label-4254
SELECT - 21 * + + 64 - - 18 AS col0, - COUNT ( * )
----
-1326
-1

query II rowsort
SELECT 78 * - CASE - 99 WHEN + - 69 * 22 + + 61 - + 88 + - 56 THEN NULL ELSE ( + + 52 ) END, + 3 AS col1
----
-4056
3

query I rowsort
SELECT ALL - 16 * + 35 * + 93
----
-52080

query II rowsort
SELECT 77 - - + 54 AS col0, 2
----
131
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4258
SELECT DISTINCT 26 * + ( + 60 ) * - 82 - + COUNT( * ) AS col1, - 36
----
-127921
-36

skipif mysql # not compatible
query II rowsort label-4258
SELECT DISTINCT 26 * + ( + 60 ) * - 82 - + COUNT ( * ) AS col1, - 36
----
-127921
-36

query I rowsort
SELECT + ( - 0 ) - + 53 AS col1
----
-53

query I rowsort
SELECT - 30 * 73 AS col2
----
-2190

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT DISTINCT - + ( SUM( - 0 ) ) * + 89 + + - 31
----
-31

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT - + ( SUM ( - 0 ) ) * + 89 + + - 31
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4262
SELECT - 57 + - ( + - 69 ) * + 9 * + 18 - 70 * + CASE ( + CAST( NULL AS SIGNED ) ) WHEN - CASE - 39 WHEN + MAX( DISTINCT + 11 ) THEN NULL WHEN ( COUNT( + - 3 ) ) - 68 + + ( + 34 ) - - ( + 80 ) / + 89 THEN 67 WHEN + 92 THEN NULL ELSE - 92 + + 93 END THEN + COUNT( * ) ELSE - COALESCE ( 42, COALESCE ( + 79, - + 88 + 62 ) / 34 ) - + 99 * CASE + 46 WHEN + 19 THEN NULL WHEN - 11 / - 57 THEN ( CASE 42 WHEN MAX( 83 ) THEN 37 ELSE NULL END ) WHEN 77 * 78 THEN - 30 END END - 95 * + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT - 57 + - ( + - 69 ) * + 9 * + 18 - 70 * + CASE ( + CAST ( NULL AS INTEGER ) ) WHEN - CASE - 39 WHEN + MAX ( DISTINCT + 11 ) THEN NULL WHEN ( COUNT ( + - 3 ) ) - 68 + + ( + 34 ) - - ( + 80 ) / + 89 THEN 67 WHEN + 92 THEN NULL ELSE - 92 + + 93 END THEN + COUNT ( * ) ELSE - COALESCE ( 42, COALESCE ( + 79, - + 88 + 62 ) / 34 ) - + 99 * CASE + 46 WHEN + 19 THEN NULL WHEN - 11 / - 57 THEN ( CASE 42 WHEN MAX ( 83 ) THEN 37 ELSE NULL END ) WHEN 77 * 78 THEN - 30 END END - 95 * + 43 AS col0
----
NULL

query I rowsort
SELECT 84 * - - ( 7 )
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT COUNT( * ) + + + 5
----
6

skipif mysql # not compatible
query I rowsort label-4264
SELECT COUNT ( * ) + + + 5
----
6

query I rowsort
SELECT DISTINCT - + 48 + - + 6 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT + CASE + 86 WHEN 4 THEN NULL WHEN - COUNT( * ) + + ( + 81 ) * 28 THEN 0 WHEN COUNT( * ) / - 18 * + 91 * CASE - - 53 WHEN - ( + 27 ) THEN - 78 END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4266
SELECT + CASE + 86 WHEN 4 THEN NULL WHEN - COUNT ( * ) + + ( + 81 ) * 28 THEN 0 WHEN COUNT ( * ) / - 18 * + 91 * CASE - - 53 WHEN - ( + 27 ) THEN - 78 END THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4267
SELECT DISTINCT + - 18 + + 98 + + 1 + - + 36 + 33 DIV + 54 * 31 - - + 17 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT + - 18 + + 98 + + 1 + - + 36 + 33 / + 54 * 31 - - + 17 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT - MAX( + ( - 42 ) )
----
42

skipif mysql # not compatible
query I rowsort label-4268
SELECT - MAX ( + ( - 42 ) )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT ALL + 10 * + 97 + - ( + - 79 ) + - + 42 * COUNT( * )
----
1007

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL + 10 * + 97 + - ( + - 79 ) + - + 42 * COUNT ( * )
----
1007

onlyif mysql # DIV for integer division: 
query I rowsort label-4270
SELECT 53 * - 39 - 34 + + 48 DIV + - 95 + + ( + 76 )
----
-2025

skipif mysql # not compatible
query I rowsort label-4270
SELECT 53 * - 39 - 34 + + 48 / + - 95 + + ( + 76 )
----
-2025

query I rowsort
SELECT 86 + - 78 AS col1
----
8

query I rowsort
SELECT DISTINCT + 99 * - NULLIF ( - 23, - 17 / + 3 ) AS col1
----
2277

query I rowsort
SELECT ALL - 40 * + ( - 10 ) AS col0
----
400

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4274
SELECT - + ( - + CASE - - 88 WHEN CAST( NULL AS DECIMAL ) THEN - 27 ELSE NULL END ) / 42 + - + 87 + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4274
SELECT - + ( - + CASE - - 88 WHEN CAST ( NULL AS REAL ) THEN - 27 ELSE NULL END ) / 42 + - + 87 + + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT ALL - COUNT( * ) * - 47 + - ( COUNT( * ) ) + 63 - + + 83 * - 64 + 75 col0
----
5496

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL - COUNT ( * ) * - 47 + - ( COUNT ( * ) ) + 63 - + + 83 * - 64 + 75 col0
----
5496

query I rowsort
SELECT 33 - + 10 AS col0
----
23

query II rowsort
SELECT ALL - 14 AS col1, 48
----
-14
48

query I rowsort
SELECT DISTINCT - ( - - 38 ) AS col0
----
-38

query I rowsort
SELECT 23 * - 7 AS col2
----
-161

query I rowsort
SELECT + 17 * 65 + + - 72 AS col1
----
1033

onlyif mysql # aggregate syntax: 
query II rowsort label-4281
SELECT COUNT( * ) + 45 + - 82 col2, 48 + 55 * - - 70 + - 92 AS col0
----
-36
3806

skipif mysql # not compatible
query II rowsort label-4281
SELECT COUNT ( * ) + 45 + - 82 col2, 48 + 55 * - - 70 + - 92 AS col0
----
-36
3806

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT + SUM( - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-4282
SELECT + SUM ( - 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT 71 * 32 * + SUM( + 24 )
----
54528

skipif mysql # not compatible
query I rowsort label-4283
SELECT 71 * 32 * + SUM ( + 24 )
----
54528

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4284
SELECT ALL 9 DIV - CAST( - - 51 AS SIGNED ) * 25
----
0

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL 9 / - CAST ( - - 51 AS INTEGER ) * 25
----
0

query I rowsort
SELECT 42 + 67
----
109

query I rowsort
SELECT + 33 * + - COALESCE ( + - 55, - - 74 )
----
1815

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4287
SELECT + 54 * + ( - + 36 ) + - + NULLIF ( - SUM( - 12 ), - 36 ) - - - CAST( + 49 AS SIGNED ) DIV + COALESCE ( + 41, + + 76 ) AS col2
----
-1957

skipif mysql # not compatible
query I rowsort label-4287
SELECT + 54 * + ( - + 36 ) + - + NULLIF ( - SUM ( - 12 ), - 36 ) - - - CAST ( + 49 AS INTEGER ) / + COALESCE ( + 41, + + 76 ) AS col2
----
-1957

onlyif mysql # aggregate syntax: 
query II rowsort label-4288
SELECT ALL + 23, + 15 + 21 + + COUNT( * ) + 56 col2
----
23
93

skipif mysql # not compatible
query II rowsort label-4288
SELECT ALL + 23, + 15 + 21 + + COUNT ( * ) + 56 col2
----
23
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT + MIN( - + 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-4289
SELECT + MIN ( - + 54 )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4290
SELECT + MIN( ALL + 91 ) / - - 81 + + + COUNT( * ) + - CAST( NULL AS SIGNED ) * - + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT + MIN ( ALL + 91 ) / - - 81 + + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - + 21 AS col0
----
NULL

query II rowsort
SELECT ALL 49, + 6 AS col2
----
49
6

query I rowsort
SELECT DISTINCT 8 * + 47 AS col1
----
376

query I rowsort
SELECT DISTINCT 85 * + 50 AS col0
----
4250

query II rowsort
SELECT ALL 57, + 6 + + 36 AS col1
----
57
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT - MIN( 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-4295
SELECT - MIN ( 30 )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4296
SELECT + CASE + COUNT( * ) WHEN + 55 * + + 89 * - COUNT( + 84 ) THEN NULL WHEN + 64 THEN + ( - COUNT( * ) ) ELSE + CAST( NULL AS DECIMAL ) * - 3 + + 86 + - 57 * + 0 - - + 31 + 95 * - 11 * 58 * + 92 END / + COUNT( * ) + COALESCE ( + 34, + + 89 ) - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT + CASE + COUNT ( * ) WHEN + 55 * + + 89 * - COUNT ( + 84 ) THEN NULL WHEN + 64 THEN + ( - COUNT ( * ) ) ELSE + CAST ( NULL AS REAL ) * - 3 + + 86 + - 57 * + 0 - - + 31 + 95 * - 11 * 58 * + 92 END / + COUNT ( * ) + COALESCE ( + 34, + + 89 ) - 66 AS col1
----
NULL

query I rowsort
SELECT + ( + 20 ) * 26 + + 18 col1
----
538

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4298
SELECT - COUNT( * ) AS col1, 45 DIV + 58 AS col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-4298
SELECT - COUNT ( * ) AS col1, 45 / + 58 AS col2
----
-1
0

query I rowsort
SELECT + + 40 + + 95 col1
----
135

query I rowsort
SELECT + - 66 + 55
----
-11

query I rowsort
SELECT DISTINCT 90 + - + 15 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT ALL + COUNT( ALL + 10 )
----
1

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL + COUNT ( ALL + 10 )
----
1

query I rowsort
SELECT ALL 34 + - 23 AS col0
----
11

query I rowsort
SELECT ALL + - 58 + - 7 AS col0
----
-65

query I rowsort
SELECT DISTINCT - 63 * + 92 + + + 57 * 16
----
-4884

query I rowsort
SELECT ALL + 5 + 31 - - 46 * - 64 * + + COALESCE ( - 76, + 46 + NULLIF ( - + COALESCE ( + 35, 93 ), - + COALESCE ( - 86, 4 ) ), - 42 )
----
223780

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT + 87 + + ( - 72 ) + NULLIF ( + 99, - MAX( + + 56 ) )
----
114

skipif mysql # not compatible
query I rowsort label-4307
SELECT + 87 + + ( - 72 ) + NULLIF ( + 99, - MAX ( + + 56 ) )
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4308
SELECT DISTINCT 56 + - ( + 25 ), 24 + - CAST( 67 AS SIGNED ) + - 80 * + 11 AS col2
----
31
-923

skipif mysql # not compatible
query II rowsort label-4308
SELECT DISTINCT 56 + - ( + 25 ), 24 + - CAST ( 67 AS INTEGER ) + - 80 * + 11 AS col2
----
31
-923

query II rowsort
SELECT ALL - + 45 * - 18 + ( 28 ), 40 AS col2
----
838
40

query I rowsort
SELECT - 0 + - - 91
----
91

query I rowsort
SELECT ALL + NULLIF ( 59, 4 * 20 ) + - + 41 AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4312
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COALESCE ( + + 47, - + 44 * - - COUNT( 84 ) * - 90 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COALESCE ( + + 47, - + 44 * - - COUNT ( 84 ) * - 90 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT + + COUNT( * ) + + + 30 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-4313
SELECT + + COUNT ( * ) + + + 30 AS col1
----
31

query I rowsort
SELECT - CASE + 52 WHEN - ( + - ( - - 17 ) ) THEN + 11 / + + 52 * + 80 * 55 + 80 + 11 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT ALL - + ( + - COUNT( * ) ) * 66
----
66

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL - + ( + - COUNT ( * ) ) * 66
----
66

query I rowsort
SELECT + - 64 + + NULLIF ( ( - + 73 ), - 13 )
----
-137

query I rowsort
SELECT - - 59 + + + 97 + - 54
----
102

query II rowsort
SELECT 83 AS col2, 24
----
83
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT ALL - COUNT( * ) * - + 20 - 84 - + - 21 + - 35 + - 0 * 89 + - 55 * - + CASE + 4 WHEN 48 THEN 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL - COUNT ( * ) * - + 20 - 84 - + - 21 + - 35 + - 0 * 89 + - 55 * - + CASE + 4 WHEN 48 THEN 98 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT ( + CAST( 55 AS SIGNED ) )
----
55

skipif mysql # not compatible
query I rowsort label-4320
SELECT ( + CAST ( 55 AS INTEGER ) )
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4321
SELECT DISTINCT + MAX( - 14 ) AS col0, + CASE COUNT( * ) WHEN + 72 THEN 64 END * - + 67 / AVG ( 45 )
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-4321
SELECT DISTINCT + MAX ( - 14 ) AS col0, + CASE COUNT ( * ) WHEN + 72 THEN 64 END * - + 67 / AVG ( 45 )
----
-14
NULL

query I rowsort
SELECT ALL + 87 * - 41 AS col0
----
-3567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4323
SELECT ALL + COALESCE ( + SUM( DISTINCT + 19 ), + - COUNT( * ) + - - 83 + 76, - - COUNT( * ) * 26 - 82 + + 88 - + 66 * CAST( NULL AS SIGNED ) ) DIV - 25 * 87 col2
----
0

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL + COALESCE ( + SUM ( DISTINCT + 19 ), + - COUNT ( * ) + - - 83 + 76, - - COUNT ( * ) * 26 - 82 + + 88 - + 66 * CAST ( NULL AS INTEGER ) ) / - 25 * 87 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4324
SELECT + 63 DIV + + 31 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4324
SELECT + 63 / + + 31 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4325
SELECT - NULLIF ( + + 44, - 21 + - - 32 ) * + MAX( ALL + 35 ) + - - 11 + + 11 - - + 48 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4325
SELECT - NULLIF ( + + 44, - 21 + - - 32 ) * + MAX ( ALL + 35 ) + - - 11 + + 11 - - + 48 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT COALESCE ( + 91, - 99 * + - 95, - - 38 * + COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-4326
SELECT COALESCE ( + 91, - 99 * + - 95, - - 38 * + COUNT ( * ) )
----
91

query I rowsort
SELECT ALL - 15 * - 47 AS col1
----
705

query I rowsort
SELECT - 9 * - + 77 AS col1
----
693

query I rowsort
SELECT - NULLIF ( 93, - 78 ) + + + 71
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4330
SELECT NULLIF ( + + 88, + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - - 10 / + COUNT( * ) )
----
88

skipif mysql # not compatible
query I rowsort label-4330
SELECT NULLIF ( + + 88, + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - - 10 / + COUNT ( * ) )
----
88

query I rowsort
SELECT DISTINCT 87 * 16 * + 66 + 40
----
91912

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT MIN( + 72 )
----
72

skipif mysql # not compatible
query I rowsort label-4332
SELECT MIN ( + 72 )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4333
SELECT ALL 61 * + 18 + - 33 DIV + 65 AS col2
----
1098

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL 61 * + 18 + - 33 / + 65 AS col2
----
1098

query I rowsort
SELECT - - 11 - - 64
----
75

query I rowsort
SELECT - NULLIF ( + 51, - 43 * + 66 / - 52 )
----
-51

query I rowsort
SELECT - + 36 + - 82 + - 86 AS col0
----
-204

onlyif mysql # aggregate syntax: 
query II rowsort label-4337
SELECT ALL 79 * COUNT( * ), ( - 61 ) * + NULLIF ( 27, 88 ) - + - COUNT( * ) + + - 24 AS col0
----
79
-1670

skipif mysql # not compatible
query II rowsort label-4337
SELECT ALL 79 * COUNT ( * ), ( - 61 ) * + NULLIF ( 27, 88 ) - + - COUNT ( * ) + + - 24 AS col0
----
79
-1670

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT ALL - 56 + + + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL - 56 + + + COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT DISTINCT COUNT( DISTINCT - 44 )
----
1

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT COUNT ( DISTINCT - 44 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT COUNT( - 66 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4340
SELECT COUNT ( - 66 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4341
SELECT DISTINCT - COUNT( * ) + + ( - 9 ) DIV + COUNT( - 5 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT - COUNT ( * ) + + ( - 9 ) / + COUNT ( - 5 ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT ALL 45 * - - 12 * - MIN( + - 20 )
----
10800

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL 45 * - - 12 * - MIN ( + - 20 )
----
10800

query I rowsort
SELECT + 89 - - 15 * - 45 AS col1
----
-586

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL COUNT( - 96 ) + - ( - 61 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL COUNT ( - 96 ) + - ( - 61 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT - COUNT( - + 76 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4345
SELECT - COUNT ( - + 76 ) AS col2
----
-1

query I rowsort
SELECT ALL ( - 61 ) AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4347
SELECT + - 68 * - MIN( CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4347
SELECT + - 68 * - MIN ( CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT + - 10 * - 54 AS col2
----
540

query I rowsort
SELECT + - 4 * + 83 AS col2
----
-332

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4350
SELECT ALL + 99 DIV - COUNT( * ), - 45 AS col2
----
-99
-45

skipif mysql # not compatible
query II rowsort label-4350
SELECT ALL + 99 / - COUNT ( * ), - 45 AS col2
----
-99
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT DISTINCT + COUNT( * ) - 97 - + 16 * - 84 AS col1
----
1248

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT + COUNT ( * ) - 97 - + 16 * - 84 AS col1
----
1248

query I rowsort
SELECT + + NULLIF ( + COALESCE ( 92, NULLIF ( - 21, 51 + + 84 ) ), - 28 ) + + + 87 AS col0
----
179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4353
SELECT ALL 4 - + CAST( - - AVG ( DISTINCT - 83 ) AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL 4 - + CAST ( - - AVG ( DISTINCT - 83 ) AS INTEGER )
----
87

query II rowsort
SELECT DISTINCT ( 25 ), - 30 AS col2
----
25
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT ALL + MAX( DISTINCT - - 67 ) * - - 60
----
4020

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL + MAX ( DISTINCT - - 67 ) * - - 60
----
4020

query II rowsort
SELECT ALL 9 AS col1, + 44 * 52 AS col0
----
9
2288

query I rowsort
SELECT + 22 * + + 16
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT - COUNT( * ) * + 85
----
-85

skipif mysql # not compatible
query I rowsort label-4358
SELECT - COUNT ( * ) * + 85
----
-85

query I rowsort
SELECT ALL ( + + 57 ) * + 11
----
627

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4360
SELECT + 40 + + COUNT( * ) DIV + + 42 + + 99
----
139

skipif mysql # not compatible
query I rowsort label-4360
SELECT + 40 + + COUNT ( * ) / + + 42 + + 99
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4361
SELECT - NULLIF ( - COALESCE ( 84, - 28 ), + CAST( + 26 AS SIGNED ) - + 17 + - + 25 * 12 * + COUNT( * ) * 54 ) DIV + - 53 - - 23 - + 63 + - + 58 * 7 * 40 + + 85 AS col1, + 26 col1
----
-16196
26

skipif mysql # not compatible
query II rowsort label-4361
SELECT - NULLIF ( - COALESCE ( 84, - 28 ), + CAST ( + 26 AS INTEGER ) - + 17 + - + 25 * 12 * + COUNT ( * ) * 54 ) / + - 53 - - 23 - + 63 + - + 58 * 7 * 40 + + 85 AS col1, + 26 col1
----
-16196
26

query II rowsort
SELECT ALL - 7, + 94 AS col1
----
-7
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4363
SELECT 19 * COALESCE ( + MAX( ALL 29 ), - CAST( NULL AS SIGNED ) * 4 * 40 + COUNT( * ) + - + 91 + - 52 + NULLIF ( + 15, - + 17 ) ) + - ( - ( + 41 ) ) AS col1
----
592

skipif mysql # not compatible
query I rowsort label-4363
SELECT 19 * COALESCE ( + MAX ( ALL 29 ), - CAST ( NULL AS INTEGER ) * 4 * 40 + COUNT ( * ) + - + 91 + - 52 + NULLIF ( + 15, - + 17 ) ) + - ( - ( + 41 ) ) AS col1
----
592

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4364
SELECT 81 DIV - + CAST( + + ( - + 69 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4364
SELECT 81 / - + CAST ( + + ( - + 69 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL - NULLIF ( SUM( + 62 ), - 30 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL - NULLIF ( SUM ( + 62 ), - 30 ) AS col1
----
-62

query I rowsort
SELECT 61 + - 22 + + ( - 13 ) + + 54 * + 3
----
188

onlyif mysql # DIV for integer division: 
query I rowsort label-4367
SELECT 68 - - 87 DIV + 44
----
69

skipif mysql # not compatible
query I rowsort label-4367
SELECT 68 - - 87 / + 44
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4368
SELECT 71 DIV ( + - 86 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4368
SELECT 71 / ( + - 86 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT ALL + 57 + + - 69 * - 32 * 68 - + CASE + 89 WHEN + 23 THEN + COUNT( * ) * + - 55 - - 34 ELSE + 35 END * + - CASE 14 WHEN + 81 THEN + 81 * - 29 + - 62 + - - COUNT( * ) - 19 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL + 57 + + - 69 * - 32 * 68 - + CASE + 89 WHEN + 23 THEN + COUNT ( * ) * + - 55 - - 34 ELSE + 35 END * + - CASE 14 WHEN + 81 THEN + 81 * - 29 + - 62 + - - COUNT ( * ) - 19 END AS col0
----
NULL

query I rowsort
SELECT 77 + - - 63 AS col2
----
140

query I rowsort
SELECT ALL - COALESCE ( - - NULLIF ( - 3, - - 98 * + 22 ), - 23 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT SUM( DISTINCT 72 ) * - + 34 + - 62
----
-2510

skipif mysql # not compatible
query I rowsort label-4372
SELECT SUM ( DISTINCT 72 ) * - + 34 + - 62
----
-2510

query II rowsort
SELECT + 45 AS col2, - 79
----
45
-79

query I rowsort
SELECT ALL + 57 + - 71 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL + COUNT( ALL ( + - 2 ) ) + - + 70
----
-69

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL + COUNT ( ALL ( + - 2 ) ) + - + 70
----
-69

query I rowsort
SELECT ALL + 85 * - 14
----
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT DISTINCT 26 + MAX( DISTINCT 21 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT 26 + MAX ( DISTINCT 21 ) AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4378
SELECT DISTINCT - - 41 + + + CAST( NULL AS SIGNED ) * + + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT - - 41 + + + CAST ( NULL AS INTEGER ) * + + 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT DISTINCT - 27 + + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT - 27 + + COUNT ( * )
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4380
SELECT + 60 + + ( - 11 ) DIV + COALESCE ( - - 43, MIN( ALL + 54 ), + - COUNT( * ) ) * - 54 * + MAX( DISTINCT + 84 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4380
SELECT + 60 + + ( - 11 ) / + COALESCE ( - - 43, MIN ( ALL + 54 ), + - COUNT ( * ) ) * - 54 * + MAX ( DISTINCT + 84 ) AS col1
----
60

query I rowsort
SELECT + 73 + + - 95
----
-22

query I rowsort
SELECT - 35 + - - 87 AS col2
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4383
SELECT - 40 DIV - 30
----
1

skipif mysql # not compatible
query I rowsort label-4383
SELECT - 40 / - 30
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4384
SELECT ALL 79 * + + NULLIF ( 19, - COUNT( * ) + + 61 + - - 71 ) * - 60 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL 79 * + + NULLIF ( 19, - COUNT ( * ) + + 61 + - - 71 ) * - 60 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT DISTINCT 97 * SUM( DISTINCT 76 ) * + 2 AS col1
----
14744

skipif mysql # not compatible
query I rowsort label-4385
SELECT DISTINCT 97 * SUM ( DISTINCT 76 ) * + 2 AS col1
----
14744

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4386
SELECT DISTINCT + COUNT( * ) DIV ( 7 ), + 73 DIV + - 50 AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-4386
SELECT DISTINCT + COUNT ( * ) / ( 7 ), + 73 / + - 50 AS col1
----
0
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4387
SELECT DISTINCT CAST( - 27 AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT CAST ( - 27 AS INTEGER )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT + 85 + + + CASE + 81 WHEN - + 55 THEN + + 34 * - + 10 ELSE - 13 * + - 10 * - 75 + CASE + 4 WHEN + 60 * + 10 * COUNT( - 4 ) THEN + + COALESCE ( + ( 62 ), + 5 ) + 51 WHEN - 56 THEN - 49 + - 69 END * 90 + + CASE - - 38 WHEN + - 44 + 60 * - - 76 / - - 58 THEN NULL ELSE + 56 END - AVG ( DISTINCT - COALESCE ( - 97, + 15 * + 58 ) ) END + - CASE - 41 WHEN + 24 * - 59 THEN ( ( + 69 ) ) WHEN 2 THEN NULL WHEN + NULLIF ( 16, + 46 * 28 ) + - 89 THEN NULL ELSE NULL END * 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4388
SELECT + 85 + + + CASE + 81 WHEN - + 55 THEN + + 34 * - + 10 ELSE - 13 * + - 10 * - 75 + CASE + 4 WHEN + 60 * + 10 * COUNT ( - 4 ) THEN + + COALESCE ( + ( 62 ), + 5 ) + 51 WHEN - 56 THEN - 49 + - 69 END * 90 + + CASE - - 38 WHEN + - 44 + 60 * - - 76 / - - 58 THEN NULL ELSE + 56 END - AVG ( DISTINCT - COALESCE ( - 97, + 15 * + 58 ) ) END + - CASE - 41 WHEN + 24 * - 59 THEN ( ( + 69 ) ) WHEN 2 THEN NULL WHEN + NULLIF ( 16, + 46 * 28 ) + - 89 THEN NULL ELSE NULL END * 52 AS col0
----
NULL

query I rowsort
SELECT + 89 * + 32 AS col0
----
2848

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4390
SELECT DISTINCT - CASE - 28 WHEN - + CAST( + + 47 AS DECIMAL ) - - 65 + + 60 THEN + COALESCE ( + 39, - + 88 + + COALESCE ( + - 95, - 30 + + + 96, + + 77 ) ) * - COUNT( * ) ELSE NULL END * 11 * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT - CASE - 28 WHEN - + CAST ( + + 47 AS REAL ) - - 65 + + 60 THEN + COALESCE ( + 39, - + 88 + + COALESCE ( + - 95, - 30 + + + 96, + + 77 ) ) * - COUNT ( * ) ELSE NULL END * 11 * + 73
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4391
SELECT + NULLIF ( + 63, + 84 * + 37 ) DIV - 11 col0
----
-5

skipif mysql # not compatible
query I rowsort label-4391
SELECT + NULLIF ( + 63, + 84 * + 37 ) / - 11 col0
----
-5

query I rowsort
SELECT 62 + - + 53
----
9

query II rowsort
SELECT DISTINCT 62, 75 + 49 + - 96 AS col2
----
62
28

query II rowsort
SELECT 48 AS col2, 36 AS col0
----
48
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4395
SELECT DISTINCT 69 DIV + 57 DIV + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT 69 / + 57 / + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT ALL 87 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL 87 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4397
SELECT CASE MAX( ALL CAST( NULL AS SIGNED ) ) WHEN - ( - - 81 ) THEN - - COUNT( * ) WHEN - - 75 THEN NULL ELSE COUNT( * ) END * + + 49 + + 67 + - ( COUNT( + - 25 ) ) / + + 16 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4397
SELECT CASE MAX ( ALL CAST ( NULL AS INTEGER ) ) WHEN - ( - - 81 ) THEN - - COUNT ( * ) WHEN - - 75 THEN NULL ELSE COUNT ( * ) END * + + 49 + + 67 + - ( COUNT ( + - 25 ) ) / + + 16 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT ALL 80 + 90 * + COUNT( * ) - - 78 + - 52 AS col0
----
196

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL 80 + 90 * + COUNT ( * ) - - 78 + - 52 AS col0
----
196

query I rowsort
SELECT ALL 56 + + - ( - 8 )
----
64

query I rowsort
SELECT DISTINCT + 70 + - + 57
----
13

query II rowsort
SELECT ALL - 48 AS col2, 58 * + 65 AS col2
----
-48
3770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4402
SELECT CAST( 0 AS SIGNED ) * + 98
----
0

skipif mysql # not compatible
query I rowsort label-4402
SELECT CAST ( 0 AS INTEGER ) * + 98
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4403
SELECT + COUNT( * ) AS col2, + 55 AS col2
----
1
55

skipif mysql # not compatible
query II rowsort label-4403
SELECT + COUNT ( * ) AS col2, + 55 AS col2
----
1
55

query I rowsort
SELECT ALL 21 + - 71
----
-50

query II rowsort
SELECT + 43 AS col0, + ( - 50 ) AS col2
----
43
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4406
SELECT - 41 * 74 + ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT - 41 * 74 + ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 26 * + - 15 * 75 AS col2
----
-29250

onlyif mysql # DIV for integer division: 
query I rowsort label-4408
SELECT ALL 85 + - + 75 - 14 DIV + 72 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL 85 + - + 75 - 14 / + 72 AS col1
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4409
SELECT + COUNT( * ) * 37 DIV ( - - 64 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4409
SELECT + COUNT ( * ) * 37 / ( - - 64 ) AS col2
----
0

query I rowsort
SELECT DISTINCT - - NULLIF ( - - 52, - - 34 ) AS col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4411
SELECT ALL - 32 DIV 1 * + + COUNT( * ) + + 28 * - + 64 AS col1
----
-1824

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL - 32 / 1 * + + COUNT ( * ) + + 28 * - + 64 AS col1
----
-1824

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4412
SELECT ALL - - 41 AS col2, + ( + CAST( NULL AS SIGNED ) )
----
41
NULL

skipif mysql # not compatible
query II rowsort label-4412
SELECT ALL - - 41 AS col2, + ( + CAST ( NULL AS INTEGER ) )
----
41
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4413
SELECT - - COUNT( 28 ) * - 29 - 88 + - 7 * + 57 + + ( + MIN( DISTINCT - CAST( - 1 AS SIGNED ) ) ) AS col2
----
-515

skipif mysql # not compatible
query I rowsort label-4413
SELECT - - COUNT ( 28 ) * - 29 - 88 + - 7 * + 57 + + ( + MIN ( DISTINCT - CAST ( - 1 AS INTEGER ) ) ) AS col2
----
-515

query I rowsort
SELECT - 24 + - 58 * + 48
----
-2808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4415
SELECT ALL - 82 * + CAST( + 44 AS SIGNED ) + 96
----
-3512

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL - 82 * + CAST ( + 44 AS INTEGER ) + 96
----
-3512

query I rowsort
SELECT + 33 * - 16
----
-528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4417
SELECT + CAST( NULL AS SIGNED ) * + + 71 / - + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4417
SELECT + CAST ( NULL AS INTEGER ) * + + 71 / - + 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT ALL + MAX( ( - 40 ) )
----
-40

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL + MAX ( ( - 40 ) )
----
-40

onlyif mysql # DIV for integer division: 
query II rowsort label-4419
SELECT + ( - 44 ) - + 73 DIV 19, 21 * + 37 AS col0
----
-47
777

skipif mysql # not compatible
query II rowsort label-4419
SELECT + ( - 44 ) - + 73 / 19, 21 * + 37 AS col0
----
-47
777

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4420
SELECT - CAST( NULL AS SIGNED ) * - 0 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT - CAST ( NULL AS INTEGER ) * - 0 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4421
SELECT 38 + - 53 DIV COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-4421
SELECT 38 + - 53 / COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4422
SELECT - + 71, + 10 + + 37 + ( + 1 ) DIV + + 48 * + - 31 - - 41 + + - COUNT( * ) DIV ( 62 ) * 17 AS col1
----
-71
88

skipif mysql # not compatible
query II rowsort label-4422
SELECT - + 71, + 10 + + 37 + ( + 1 ) / + + 48 * + - 31 - - 41 + + - COUNT ( * ) / ( 62 ) * 17 AS col1
----
-71
88

onlyif mysql # aggregate syntax: 
query II rowsort label-4423
SELECT + 10 * + COUNT( ALL ( - - 34 ) ) AS col1, - 8 + 27 col1
----
10
19

skipif mysql # not compatible
query II rowsort label-4423
SELECT + 10 * + COUNT ( ALL ( - - 34 ) ) AS col1, - 8 + 27 col1
----
10
19

query I rowsort
SELECT - 16 * + ( + 28 ) * 17 AS col1
----
-7616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4425
SELECT ALL CASE ( 69 ) WHEN + COUNT( * ) THEN - CAST( NULL AS SIGNED ) * - 80 WHEN + 58 * 43 - 52 + + 81 THEN - 25 + 32 * - - ( + - COUNT( ALL 98 ) ) + - 26 + 17 + - - 38 + - 34 - - 75 + 8 * 88 * 65 ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL CASE ( 69 ) WHEN + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) * - 80 WHEN + 58 * 43 - 52 + + 81 THEN - 25 + 32 * - - ( + - COUNT ( ALL 98 ) ) + - 26 + 17 + - - 38 + - 34 - - 75 + 8 * 88 * 65 ELSE CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT - 74 + 22 + - 45 AS col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4427
SELECT - 86 * CASE - 69 WHEN 43 * + COUNT( * ) THEN 84 WHEN - 89 * - + CAST( - - SUM( + 96 ) AS SIGNED ) THEN - + 10 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4427
SELECT - 86 * CASE - 69 WHEN 43 * + COUNT ( * ) THEN 84 WHEN - 89 * - + CAST ( - - SUM ( + 96 ) AS INTEGER ) THEN - + 10 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4428
SELECT ALL + 29 + - 53 - - 85 - - COUNT( * ) DIV - + 49 + 70 AS col2
----
131

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL + 29 + - 53 - - 85 - - COUNT ( * ) / - + 49 + 70 AS col2
----
131

query I rowsort
SELECT DISTINCT 15 + 83
----
98

query I rowsort
SELECT - 33 + + - 3 AS col0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4431
SELECT + 39 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4431
SELECT + 39 / - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 31 * + + 25 + + - 15 + 76 col2
----
836

onlyif mysql # aggregate syntax: 
query II rowsort label-4433
SELECT - 50 + - - 86 AS col2, COUNT( * )
----
36
1

skipif mysql # not compatible
query II rowsort label-4433
SELECT - 50 + - - 86 AS col2, COUNT ( * )
----
36
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT + 50 * MAX( + 1 ) * - 40 + - + 60 * + - COUNT( * )
----
-1940

skipif mysql # not compatible
query I rowsort label-4434
SELECT + 50 * MAX ( + 1 ) * - 40 + - + 60 * + - COUNT ( * )
----
-1940

query I rowsort
SELECT + 9 * + 28 * - 15
----
-3780

onlyif mysql # DIV for integer division: 
query I rowsort label-4436
SELECT ALL 14 DIV + 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL 14 / + 76 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4437
SELECT + 62 DIV 19 + 68 + - 60
----
11

skipif mysql # not compatible
query I rowsort label-4437
SELECT + 62 / 19 + 68 + - 60
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4438
SELECT ALL CAST( - - 31 AS SIGNED ) * + SUM( - ( + - ( - 96 ) ) ) + - - 26 + 30 - - 15 + + 39 AS col2, 1 AS col1
----
-2866
1

skipif mysql # not compatible
query II rowsort label-4438
SELECT ALL CAST ( - - 31 AS INTEGER ) * + SUM ( - ( + - ( - 96 ) ) ) + - - 26 + 30 - - 15 + + 39 AS col2, 1 AS col1
----
-2866
1

query I rowsort
SELECT DISTINCT 43 * - - 61 + - 41 + - 24
----
2558

query I rowsort
SELECT + 73 + - COALESCE ( - 87, + 77 ) AS col1
----
160

onlyif mysql # DIV for integer division: 
query I rowsort label-4441
SELECT 94 * 54 + + 29 DIV - + 21
----
5075

skipif mysql # not compatible
query I rowsort label-4441
SELECT 94 * 54 + + 29 / - + 21
----
5075

query I rowsort
SELECT - CASE + ( + 10 ) WHEN + 56 THEN NULL WHEN - - 42 THEN NULL ELSE - + 61 END * 63
----
3843

onlyif mysql # aggregate syntax: 
query II rowsort label-4443
SELECT ALL - 86 * - CASE + 43 WHEN + 59 THEN + COUNT( DISTINCT + 8 ) * 20 / + 90 * + COUNT( * ) ELSE NULL END / 96, 2 AS col2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-4443
SELECT ALL - 86 * - CASE + 43 WHEN + 59 THEN + COUNT ( DISTINCT + 8 ) * 20 / + 90 * + COUNT ( * ) ELSE NULL END / 96, 2 AS col2
----
NULL
2

query I rowsort
SELECT - + 17 + + 48 AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4445
SELECT ALL + + NULLIF ( 52, - 11 / SUM( ALL + - CAST( NULL AS SIGNED ) ) ) col1
----
52

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL + + NULLIF ( 52, - 11 / SUM ( ALL + - CAST ( NULL AS INTEGER ) ) ) col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT DISTINCT + MIN( ALL 90 ) col2
----
90

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT + MIN ( ALL 90 ) col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4447
SELECT ALL - CAST( NULL AS SIGNED ) * + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 80
----
NULL

query I rowsort
SELECT + - 31 * - 76 col0
----
2356

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4449
SELECT ALL + ( - - 75 ) AS col2, - 82 + 54 * 44 - + + 72 * + ( + 87 ) AS col2, CAST( NULL AS SIGNED ) col2
----
75
-3970
NULL

skipif mysql # not compatible
query III rowsort label-4449
SELECT ALL + ( - - 75 ) AS col2, - 82 + 54 * 44 - + + 72 * + ( + 87 ) AS col2, CAST ( NULL AS INTEGER ) col2
----
75
-3970
NULL

query I rowsort
SELECT ( - 57 ) col2
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4451
SELECT + 97 DIV - 30 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4451
SELECT + 97 / - 30 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4452
SELECT - ( 52 ) * - CASE + COUNT( * ) WHEN 73 THEN NULL ELSE - 95 * - 84 + CAST( + ( - + 68 ) AS SIGNED ) * - 53 END
----
602368

skipif mysql # not compatible
query I rowsort label-4452
SELECT - ( 52 ) * - CASE + COUNT ( * ) WHEN 73 THEN NULL ELSE - 95 * - 84 + CAST ( + ( - + 68 ) AS INTEGER ) * - 53 END
----
602368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4453
SELECT ALL + 59 DIV COUNT( * ) * - ( 61 )
----
-3599

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL + 59 / COUNT ( * ) * - ( 61 )
----
-3599

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT - - MAX( + 50 ) * - COUNT( * ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-4454
SELECT - - MAX ( + 50 ) * - COUNT ( * ) AS col1
----
-50

query I rowsort
SELECT ALL + - 27 * - 70
----
1890

query I rowsort
SELECT - - 99 * 69 AS col2
----
6831

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT ALL - NULLIF ( + + COUNT( * ), - + COUNT( * ) * + NULLIF ( 89, + 6 * 77 ) ) * + ( + 61 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL - NULLIF ( + + COUNT ( * ), - + COUNT ( * ) * + NULLIF ( 89, + 6 * 77 ) ) * + ( + 61 ) AS col0
----
-61

query I rowsort
SELECT ALL - 88 + 66
----
-22

query I rowsort
SELECT ALL + 24 + - 17
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4460
SELECT - CASE + ( + 30 ) WHEN CAST( NULL AS SIGNED ) * - ( + 26 ) - + COUNT( ALL + 60 ) THEN 51 WHEN + + 39 THEN NULL ELSE - 81 END + - - 8 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-4460
SELECT - CASE + ( + 30 ) WHEN CAST ( NULL AS INTEGER ) * - ( + 26 ) - + COUNT ( ALL + 60 ) THEN 51 WHEN + + 39 THEN NULL ELSE - 81 END + - - 8 AS col0
----
89

query I rowsort
SELECT ALL - 97 * 38
----
-3686

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT DISTINCT + 43 + 48 * - ( - MAX( ALL + - 38 ) ) AS col2
----
-1781

skipif mysql # not compatible
query I rowsort label-4462
SELECT DISTINCT + 43 + 48 * - ( - MAX ( ALL + - 38 ) ) AS col2
----
-1781

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4463
SELECT - ( + - 35 ) + + + 51 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4463
SELECT - ( + - 35 ) + + + 51 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( - ( - 8 ), 86 )
----
8

query I rowsort
SELECT - 15 + + 30 * - 30 * + 70 * - 39 AS col0
----
2456985

query I rowsort
SELECT - 27 * 74
----
-1998

onlyif mysql # DIV for integer division: 
query I rowsort label-4467
SELECT - 33 + + ( + 88 ) DIV + 22 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-4467
SELECT - 33 + + ( + 88 ) / + 22 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT DISTINCT ( + CASE + COUNT( * ) WHEN + 63 THEN - 68 * + 10 + - 6 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT ( + CASE + COUNT ( * ) WHEN + 63 THEN - 68 * + 10 + - 6 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4469
SELECT 16 AS col1, COUNT( * ) DIV + 86
----
16
0

skipif mysql # not compatible
query II rowsort label-4469
SELECT 16 AS col1, COUNT ( * ) / + 86
----
16
0

query I rowsort
SELECT + 9 + - + 59 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-4471
SELECT ALL - COUNT( * ) * + + 74 * 24, 56 AS col2
----
-1776
56

skipif mysql # not compatible
query II rowsort label-4471
SELECT ALL - COUNT ( * ) * + + 74 * 24, 56 AS col2
----
-1776
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4472
SELECT DISTINCT + CAST( + 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT + CAST ( + 61 AS INTEGER )
----
61

query I rowsort
SELECT - 32 * - + 80 AS col2
----
2560

query II rowsort
SELECT DISTINCT + 44 col0, 29
----
44
29

query I rowsort
SELECT ALL - 63 * + 86
----
-5418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4476
SELECT COALESCE ( COUNT( * ), + - SUM( ALL 0 ) + 57 * - CASE + CAST( NULL AS SIGNED ) WHEN + - AVG ( DISTINCT - 18 ) THEN NULL ELSE - ( + - 2 ) END, + + 72 - - 5 ) * + 20 * - 16 - 74
----
-394

skipif mysql # not compatible
query I rowsort label-4476
SELECT COALESCE ( COUNT ( * ), + - SUM ( ALL 0 ) + 57 * - CASE + CAST ( NULL AS INTEGER ) WHEN + - AVG ( DISTINCT - 18 ) THEN NULL ELSE - ( + - 2 ) END, + + 72 - - 5 ) * + 20 * - 16 - 74
----
-394

query I rowsort
SELECT + - 37 * + 5 * 79 AS col1
----
-14615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4478
SELECT + + 21 DIV - COALESCE ( 97, - SUM( CAST( NULL AS SIGNED ) ) * 65 + + 3 + COUNT( * ) * + NULLIF ( + + 23, 85 + - ( 42 ) ) ), ( - 87 ) AS col1
----
0
-87

skipif mysql # not compatible
query II rowsort label-4478
SELECT + + 21 / - COALESCE ( 97, - SUM ( CAST ( NULL AS INTEGER ) ) * 65 + + 3 + COUNT ( * ) * + NULLIF ( + + 23, 85 + - ( 42 ) ) ), ( - 87 ) AS col1
----
0
-87

query I rowsort
SELECT + + CASE 20 WHEN - 70 THEN + + 28 * + + 15 * 13 END
----
NULL

query I rowsort
SELECT ALL - 46 * - 29 AS col2
----
1334

query I rowsort
SELECT - + 77 * + 80 AS col2
----
-6160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4482
SELECT ALL CAST( NULL AS DECIMAL ) / 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL CAST ( NULL AS REAL ) / 38 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4483
SELECT ALL + - CAST( - 35 AS SIGNED ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL + - CAST ( - 35 AS INTEGER ) AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT 85 * + 9 - + ( - 59 ) - 42 + + - CAST( + 28 AS SIGNED )
----
754

skipif mysql # not compatible
query I rowsort label-4484
SELECT 85 * + 9 - + ( - 59 ) - 42 + + - CAST ( + 28 AS INTEGER )
----
754

onlyif mysql # aggregate syntax: 
query II rowsort label-4485
SELECT ALL + CASE + - 61 WHEN - 26 + + 74 THEN + 61 WHEN + 65 * + 50 + 43 + - - 22 THEN NULL END * - 95 * - 90 AS col2, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4485
SELECT ALL + CASE + - 61 WHEN - 26 + + 74 THEN + 61 WHEN + 65 * + 50 + 43 + - - 22 THEN NULL END * - 95 * - 90 AS col2, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4486
SELECT 38 AS col0, 71 * ( + - 7 ) * - ( CAST( NULL AS DECIMAL ) ) AS col0
----
38
NULL

skipif mysql # not compatible
query II rowsort label-4486
SELECT 38 AS col0, 71 * ( + - 7 ) * - ( CAST ( NULL AS REAL ) ) AS col0
----
38
NULL

query II rowsort
SELECT + + 59 col2, + 77
----
59
77

query II rowsort
SELECT - 39 AS col0, 84
----
-39
84

query I rowsort
SELECT ALL + 30 * + 38 col0
----
1140

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT ( + + COUNT( * ) ) * - 89 + + - ( + 91 ) AS col2
----
-180

skipif mysql # not compatible
query I rowsort label-4490
SELECT ( + + COUNT ( * ) ) * - 89 + + - ( + 91 ) AS col2
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT - 4 * 48 + + COUNT( * ) - COUNT( * ) + + + COUNT( * )
----
-191

skipif mysql # not compatible
query I rowsort label-4491
SELECT - 4 * 48 + + COUNT ( * ) - COUNT ( * ) + + + COUNT ( * )
----
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT - COALESCE ( 99, + MIN( ALL + - 0 ) * - - 84 )
----
-99

skipif mysql # not compatible
query I rowsort label-4492
SELECT - COALESCE ( 99, + MIN ( ALL + - 0 ) * - - 84 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT DISTINCT + 81 + + + MIN( - + 75 )
----
6

skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT + 81 + + + MIN ( - + 75 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT DISTINCT - COUNT( * ) + + + 53
----
52

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT - COUNT ( * ) + + + 53
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT DISTINCT 70 + + - 5 * + MAX( ALL + 80 )
----
-330

skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT 70 + + - 5 * + MAX ( ALL + 80 )
----
-330

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4496
SELECT ALL - 88 AS col0, + CAST( NULL AS SIGNED )
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-4496
SELECT ALL - 88 AS col0, + CAST ( NULL AS INTEGER )
----
-88
NULL

query II rowsort
SELECT ALL - 75, + 83 AS col2
----
-75
83

query I rowsort
SELECT ALL + 38 + + ( + - 52 )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4499
SELECT DISTINCT 69 + + 92 - - 8 * SUM( COALESCE ( 42, - 8 * - - 9 ) ) * MAX( ALL CAST( NULL AS SIGNED ) ) * - + CAST( + + 52 AS SIGNED ) * + NULLIF ( 78, - 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT 69 + + 92 - - 8 * SUM ( COALESCE ( 42, - 8 * - - 9 ) ) * MAX ( ALL CAST ( NULL AS INTEGER ) ) * - + CAST ( + + 52 AS INTEGER ) * + NULLIF ( 78, - 80 )
----
NULL

query I rowsort
SELECT ALL 4 + - 78
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-4501
SELECT ( - - ( - 91 ) ) DIV - 36 - + 52 + - - 92 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-4501
SELECT ( - - ( - 91 ) ) / - 36 - + 52 + - - 92 AS col1
----
42

query I rowsort
SELECT DISTINCT + 12 * - - 83 AS col0
----
996

onlyif mysql # DIV for integer division: 
query I rowsort label-4503
SELECT ALL 68 DIV - 66
----
-1

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL 68 / - 66
----
-1

query I rowsort
SELECT DISTINCT - 48 * + - 36 AS col0
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL - COUNT( * ) * 38 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL - COUNT ( * ) * 38 AS col2
----
-38

query I rowsort
SELECT DISTINCT 97 * + 78 AS col2
----
7566

onlyif mysql # DIV for integer division: 
query I rowsort label-4507
SELECT ALL + 94 - + 88 DIV + 15 - + 17 * + 37 + - + 14 * - + 87 * 67 col1
----
81066

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL + 94 - + 88 / + 15 - + 17 * + 37 + - + 14 * - + 87 * 67 col1
----
81066

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT CASE MAX( ALL ( - 32 ) ) WHEN + - COALESCE ( + 51, 14, + 59 + - - ( 86 ) ) / - 72 THEN + + 65 WHEN - 67 THEN ( + 5 ) WHEN - ( - + COUNT( * ) ) + - 14 THEN - 69 ELSE NULL END + ( - - 59 ) * - 63 * - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4508
SELECT CASE MAX ( ALL ( - 32 ) ) WHEN + - COALESCE ( + 51, 14, + 59 + - - ( 86 ) ) / - 72 THEN + + 65 WHEN - 67 THEN ( + 5 ) WHEN - ( - + COUNT ( * ) ) + - 14 THEN - 69 ELSE NULL END + ( - - 59 ) * - 63 * - 65 AS col2
----
NULL

query I rowsort
SELECT 28 * 18 * + 5
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT DISTINCT - MIN( 25 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT - MIN ( 25 ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-4511
SELECT - 33 - - COUNT( * ), COALESCE ( MIN( ALL 12 ), + - NULLIF ( 70, - ( MIN( ALL 75 ) ) ) ) col1
----
-32
12

skipif mysql # not compatible
query II rowsort label-4511
SELECT - 33 - - COUNT ( * ), COALESCE ( MIN ( ALL 12 ), + - NULLIF ( 70, - ( MIN ( ALL 75 ) ) ) ) col1
----
-32
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4512
SELECT DISTINCT - + CAST( 8 AS SIGNED ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT - + CAST ( 8 AS INTEGER ) AS col1
----
-8

query II rowsort
SELECT 74 + - - 15 AS col2, - 23 AS col0
----
89
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4514
SELECT DISTINCT + 36 * + 15 + + 33 + - 48 AS col2, + COUNT( ALL 51 ) DIV + 97 col0
----
525
0

skipif mysql # not compatible
query II rowsort label-4514
SELECT DISTINCT + 36 * + 15 + + 33 + - 48 AS col2, + COUNT ( ALL 51 ) / + 97 col0
----
525
0

query I rowsort
SELECT 20 * + 52 * + 6 AS col0
----
6240

query I rowsort
SELECT ALL - 3 * + 97
----
-291

query I rowsort
SELECT ALL - COALESCE ( - 99, + + 74 * + - 6 + + + 61 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4518
SELECT + 69 * + 18 + + CASE + 99 WHEN - 2 THEN NULL WHEN - - 94 + 3 THEN - - 72 * + - 39 * 31 + 25 / - COUNT( ALL - 43 ) - 63 END AS col2, 51
----
NULL
51

skipif mysql # not compatible
query II rowsort label-4518
SELECT + 69 * + 18 + + CASE + 99 WHEN - 2 THEN NULL WHEN - - 94 + 3 THEN - - 72 * + - 39 * 31 + 25 / - COUNT ( ALL - 43 ) - 63 END AS col2, 51
----
NULL
51

query I rowsort
SELECT ALL + 43 + - 84
----
-41

query I rowsort
SELECT 23 * 65 AS col1
----
1495

query I rowsort
SELECT 69 * 40
----
2760

query I rowsort
SELECT ALL - 49 + + 52 AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4523
SELECT MAX( + - 56 ) + 77 * + 59 + + + 2 * + 2 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT MAX ( + - 56 ) + 77 * + 59 + + + 2 * + 2 / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4524
SELECT DISTINCT 63 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT 63 * + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4525
SELECT 61 * + 20 + + CAST( + - 22 AS SIGNED ) * - 84
----
3068

skipif mysql # not compatible
query I rowsort label-4525
SELECT 61 * + 20 + + CAST ( + - 22 AS INTEGER ) * - 84
----
3068

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT DISTINCT COUNT( * ) - + - 35 + - - 64 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT COUNT ( * ) - + - 35 + - - 64 AS col1
----
100

query I rowsort
SELECT DISTINCT + 53 * - + 38 AS col2
----
-2014

query I rowsort
SELECT ALL 62 * 12 AS col1
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ( + MIN( - - 81 ) ) + - + NULLIF ( + + 30, + 51 * 53 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4529
SELECT ( + MIN ( - - 81 ) ) + - + NULLIF ( + + 30, + 51 * 53 ) AS col2
----
51

query II rowsort
SELECT 65, 30 AS col0
----
65
30

onlyif mysql # aggregate syntax: 
query II rowsort label-4531
SELECT 37 + - 64 - + 85 AS col0, + 83 * COUNT( * ) * - + 28 * - 26 col0
----
-112
60424

skipif mysql # not compatible
query II rowsort label-4531
SELECT 37 + - 64 - + 85 AS col0, + 83 * COUNT ( * ) * - + 28 * - 26 col0
----
-112
60424

onlyif mysql # DIV for integer division: 
query I rowsort label-4532
SELECT 40 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-4532
SELECT 40 / - 95
----
0

query I rowsort
SELECT 11 * - + 54 * - 3 * - ( - 66 )
----
117612

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ALL 2 * + - COUNT( * ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL 2 * + - COUNT ( * ) col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4535
SELECT DISTINCT + SUM( - 15 ) DIV - 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT + SUM ( - 15 ) / - 94 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4536
SELECT 89 DIV + 56
----
1

skipif mysql # not compatible
query I rowsort label-4536
SELECT 89 / + 56
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4537
SELECT ALL - + 64 * 12 * + - 52 + + 37 + + 75 + - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + + MAX( - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL - + 64 * 12 * + - 52 + + 37 + + 75 + - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + + MAX ( - 29 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4538
SELECT ALL COUNT( * ) * + 41 + + 46 * - 24 + + 27 - - + 28 / - - 12 * 69 * - NULLIF ( - 17, + COUNT( * ) ) * 16 - + CAST( NULL AS SIGNED ) - CAST( SUM( - 6 ) AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL COUNT ( * ) * + 41 + + 46 * - 24 + + 27 - - + 28 / - - 12 * 69 * - NULLIF ( - 17, + COUNT ( * ) ) * 16 - + CAST ( NULL AS INTEGER ) - CAST ( SUM ( - 6 ) AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL - + 33 * 41 + - 79 + 31
----
-1401

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4540
SELECT - CAST( ( - 15 ) AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-4540
SELECT - CAST ( ( - 15 ) AS INTEGER )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4541
SELECT DISTINCT + CASE - COALESCE ( MIN( - + 30 ), 68 * + - 91 + CAST( NULL AS SIGNED ) + - 12 ) WHEN 91 THEN + 2 * + COUNT( * ) + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT + CASE - COALESCE ( MIN ( - + 30 ), 68 * + - 91 + CAST ( NULL AS INTEGER ) + - 12 ) WHEN 91 THEN + 2 * + COUNT ( * ) + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 33 * - 21 + - + 94 + - 98
----
-885

query I rowsort
SELECT + 77 * 57 AS col0
----
4389

query I rowsort
SELECT ( - 11 ) AS col0
----
-11

query II rowsort
SELECT DISTINCT + 66 AS col2, 85 AS col2
----
66
85

query I rowsort
SELECT DISTINCT 91 * + 71 + 81 + - + 23 + + 84 * + 17 AS col0
----
7947

query I rowsort
SELECT - + 92 * 73
----
-6716

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT - COUNT( - 94 ) * - 66 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-4548
SELECT - COUNT ( - 94 ) * - 66 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL + NULLIF ( - + 36, + CASE - COALESCE ( + - 48, - + 15 + - 97 + + ( - MIN( + + CASE WHEN NULL NOT IN ( - 73, + 99, - + 74 - + + 30 * + 16 ) THEN 31 + - 65 END ) ) * - + 20, 90 * + - 3 ) WHEN - 43 * 17 THEN NULL ELSE + 4 END )
----
-36

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL + NULLIF ( - + 36, + CASE - COALESCE ( + - 48, - + 15 + - 97 + + ( - MIN ( + + CASE WHEN NULL NOT IN ( - 73, + 99, - + 74 - + + 30 * + 16 ) THEN 31 + - 65 END ) ) * - + 20, 90 * + - 3 ) WHEN - 43 * 17 THEN NULL ELSE + 4 END )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4550
SELECT ALL + 35 AS col2, 41 + - + 23 DIV + - COUNT( * ) AS col1
----
35
64

skipif mysql # not compatible
query II rowsort label-4550
SELECT ALL + 35 AS col2, 41 + - + 23 / + - COUNT ( * ) AS col1
----
35
64

query II rowsort
SELECT - CASE + + 40 WHEN + 21 THEN NULL WHEN + + 13 / - 11 THEN + - 27 END + + 57 AS col1, + 65 * + 22
----
NULL
1430

query II rowsort
SELECT ALL ( + + NULLIF ( 57, + 90 ) ), 42 AS col0
----
57
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4553
SELECT 32 col0, + ( - COUNT( * ) )
----
32
-1

skipif mysql # not compatible
query II rowsort label-4553
SELECT 32 col0, + ( - COUNT ( * ) )
----
32
-1

query I rowsort
SELECT ALL + 66 * + - 92
----
-6072

onlyif mysql # DIV for integer division: 
query I rowsort label-4555
SELECT - 56 DIV + 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4555
SELECT - 56 / + 62 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT + 9 + - CASE + + ( 10 ) WHEN + + CASE + + 60 WHEN - - 22 / - COUNT( * ) * - 70 THEN NULL ELSE - 93 * - 19 + - 47 END * + 2 THEN 92 - + - 41 WHEN 53 THEN 38 ELSE NULL END + + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4556
SELECT + 9 + - CASE + + ( 10 ) WHEN + + CASE + + 60 WHEN - - 22 / - COUNT ( * ) * - 70 THEN NULL ELSE - 93 * - 19 + - 47 END * + 2 THEN 92 - + - 41 WHEN 53 THEN 38 ELSE NULL END + + 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4557
SELECT + COUNT( * ) * 16 AS col1, COUNT( * )
----
16
1

skipif mysql # not compatible
query II rowsort label-4557
SELECT + COUNT ( * ) * 16 AS col1, COUNT ( * )
----
16
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4558
SELECT ALL ( - 9 ) * 17 * CASE 68 WHEN COUNT( * ) THEN + COUNT( * ) * + 24 + CAST( NULL AS SIGNED ) / - ( - COUNT( - + 24 ) ) WHEN - 61 * + - ( + 84 ) THEN - 99 * - 32 END * + 24 * - COUNT( * ) + + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL ( - 9 ) * 17 * CASE 68 WHEN COUNT ( * ) THEN + COUNT ( * ) * + 24 + CAST ( NULL AS INTEGER ) / - ( - COUNT ( - + 24 ) ) WHEN - 61 * + - ( + 84 ) THEN - 99 * - 32 END * + 24 * - COUNT ( * ) + + 43 AS col1
----
NULL

query I rowsort
SELECT - 14 - 67 * 92
----
-6178

query I rowsort
SELECT - 73 + - 55 AS col2
----
-128

query I rowsort
SELECT - NULLIF ( + 45, - 64 )
----
-45

query II rowsort
SELECT ALL 49 AS col2, - 73 + - 24
----
49
-97

query I rowsort
SELECT ALL 61 * + 9 * - + 42
----
-23058

onlyif mysql # aggregate syntax: 
query II rowsort label-4564
SELECT ALL - COUNT( * ) + - ( + + 91 ) + 20 + + MIN( DISTINCT 99 ) AS col0, 11 * + 58 + + 20 AS col1
----
27
658

skipif mysql # not compatible
query II rowsort label-4564
SELECT ALL - COUNT ( * ) + - ( + + 91 ) + 20 + + MIN ( DISTINCT 99 ) AS col0, 11 * + 58 + + 20 AS col1
----
27
658

query I rowsort
SELECT + 84 - - - 99
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT SUM( DISTINCT 64 )
----
64

skipif mysql # not compatible
query I rowsort label-4566
SELECT SUM ( DISTINCT 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ALL COALESCE ( - + 87, + 97 + - - 96 + 96 ) + - ( + - NULLIF ( + COUNT( * ), - COUNT( * ) + - - 52 ) ) * + 72
----
-15

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL COALESCE ( - + 87, + 97 + - - 96 + 96 ) + - ( + - NULLIF ( + COUNT ( * ), - COUNT ( * ) + - - 52 ) ) * + 72
----
-15

query II rowsort
SELECT ALL - 32 AS col1, ( + 30 ) AS col1
----
-32
30

query II rowsort
SELECT + - 83 AS col1, + 96
----
-83
96

query I rowsort
SELECT - 85 * - 41 + - + 53
----
3432

query II rowsort
SELECT + + 32 - 26, ( + 10 ) col0
----
6
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4572
SELECT - + ( + + COUNT( * ) ) DIV - 56 * + + 48 + 2
----
2

skipif mysql # not compatible
query I rowsort label-4572
SELECT - + ( + + COUNT ( * ) ) / - 56 * + + 48 + 2
----
2

query I rowsort
SELECT ALL + 93 * 65 AS col0
----
6045

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4574
SELECT + + 88 + ( + CAST( 90 AS SIGNED ) ) AS col2
----
178

skipif mysql # not compatible
query I rowsort label-4574
SELECT + + 88 + ( + CAST ( 90 AS INTEGER ) ) AS col2
----
178

query I rowsort
SELECT DISTINCT + - 37 col2
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-4576
SELECT 22 * 26 * + 83 + 60 + + 0 + + 78, ( - COUNT( * ) ) * SUM( - 71 ) AS col2
----
47614
71

skipif mysql # not compatible
query II rowsort label-4576
SELECT 22 * 26 * + 83 + 60 + + 0 + + 78, ( - COUNT ( * ) ) * SUM ( - 71 ) AS col2
----
47614
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT - + 30 * + - MIN( + 86 ) * 74 - + - 63 * + + COUNT( * ) * 68 AS col1
----
195204

skipif mysql # not compatible
query I rowsort label-4577
SELECT - + 30 * + - MIN ( + 86 ) * 74 - + - 63 * + + COUNT ( * ) * 68 AS col1
----
195204

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4578
SELECT COALESCE ( + - 21, 46 ), CAST( + 87 AS SIGNED ) AS col2
----
-21
87

skipif mysql # not compatible
query II rowsort label-4578
SELECT COALESCE ( + - 21, 46 ), CAST ( + 87 AS INTEGER ) AS col2
----
-21
87

query I rowsort
SELECT - 81 * + COALESCE ( - 33, + + 66, + - 99 + + + CASE + 87 WHEN + - 81 THEN + 80 * + 60 - + 40 * - 35 ELSE NULL END + + + 93 )
----
2673

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT COALESCE ( - 2, - 89 * - + SUM( - - 56 ) + - 93 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4580
SELECT COALESCE ( - 2, - 89 * - + SUM ( - - 56 ) + - 93 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT ALL + CASE 61 WHEN + COUNT( DISTINCT 10 ) THEN + 51 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL + CASE 61 WHEN + COUNT ( DISTINCT 10 ) THEN + 51 END col1
----
NULL

query II rowsort
SELECT ALL - 80 * - ( 42 ), - 55 * - 96 col1
----
3360
5280

query I rowsort
SELECT + 45 * - 79
----
-3555

query I rowsort
SELECT - 50 + - 1 AS col1
----
-51

query II rowsort
SELECT ALL ( 47 ) AS col1, + 42
----
47
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4586
SELECT - 3 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-4586
SELECT - 3 / - 54
----
0

query II rowsort
SELECT - 14 + + NULLIF ( - 60, AVG ( DISTINCT - - 32 ) ), 4 AS col1
----
-74
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4588
SELECT - 67 DIV 33 * 12
----
-24

skipif mysql # not compatible
query I rowsort label-4588
SELECT - 67 / 33 * 12
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT DISTINCT + 18 + MAX( + + 62 )
----
80

skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT + 18 + MAX ( + + 62 )
----
80

query I rowsort
SELECT - 61 + + - 37
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT DISTINCT - COALESCE ( + COUNT( * ), + 48 ) + + 78 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT - COALESCE ( + COUNT ( * ), + 48 ) + + 78 AS col0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4592
SELECT ALL + - 54 DIV - - 38 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL + - 54 / - - 38 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4593
SELECT - 79 + + COALESCE ( - 21, - 90 DIV + 17 + + 32 ) AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-4593
SELECT - 79 + + COALESCE ( - 21, - 90 / + 17 + + 32 ) AS col1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT DISTINCT - CASE + COUNT( * ) WHEN - ( + + COUNT( * ) ) THEN NULL ELSE - MIN( 64 ) END col1
----
64

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT - CASE + COUNT ( * ) WHEN - ( + + COUNT ( * ) ) THEN NULL ELSE - MIN ( 64 ) END col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4595
SELECT ALL - + COUNT( * ) + - + 28 + - + CAST( NULL AS SIGNED ) * + 13 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL - + COUNT ( * ) + - + 28 + - + CAST ( NULL AS INTEGER ) * + 13 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ( - - ( + 41 ) ) * COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-4596
SELECT ( - - ( + 41 ) ) * COUNT ( * )
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4597
SELECT ALL ( + + 35 ) AS col0, COUNT( * ) * + - 43 DIV + - COUNT( * )
----
35
43

skipif mysql # not compatible
query II rowsort label-4597
SELECT ALL ( + + 35 ) AS col0, COUNT ( * ) * + - 43 / + - COUNT ( * )
----
35
43

query I rowsort
SELECT DISTINCT - - 99 - + NULLIF ( 29, - + 22 - 34 * + 63 * + 64 * - - 14 )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4599
SELECT - 95 * + 52, - COUNT( * ) AS col2
----
-4940
-1

skipif mysql # not compatible
query II rowsort label-4599
SELECT - 95 * + 52, - COUNT ( * ) AS col2
----
-4940
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4600
SELECT ALL - ( + 85 ) * 23 DIV - - 44
----
-44

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL - ( + 85 ) * 23 / - - 44
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4601
SELECT 65 * - + COUNT( * ) - - + 30 DIV - 57 * - ( 64 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-4601
SELECT 65 * - + COUNT ( * ) - - + 30 / - 57 * - ( 64 ) AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4602
SELECT CAST( COUNT( * ) AS SIGNED ) - 82 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-4602
SELECT CAST ( COUNT ( * ) AS INTEGER ) - 82 AS col2
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4603
SELECT + NULLIF ( 9, 44 ), CAST( NULL AS SIGNED ) * + 57 * + + 65 col1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-4603
SELECT + NULLIF ( 9, 44 ), CAST ( NULL AS INTEGER ) * + 57 * + + 65 col1
----
9
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4604
SELECT COUNT( - + 35 ) / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT COUNT ( - + 35 ) / + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT + 9 AS col2, - ( - - 86 )
----
9
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4606
SELECT DISTINCT 4 DIV + ( - - 97 ) * - COUNT( * ) + - - 83 + + 42 AS col2
----
125

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT 4 / + ( - - 97 ) * - COUNT ( * ) + - - 83 + + 42 AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT ALL - MAX( + + 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL - MAX ( + + 15 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT - 38 * - - 40 - - 91 + + - COUNT( + 75 )
----
-1430

skipif mysql # not compatible
query I rowsort label-4608
SELECT - 38 * - - 40 - - 91 + + - COUNT ( + 75 )
----
-1430

onlyif mysql # aggregate syntax: 
query II rowsort label-4609
SELECT ALL 39 * + + 1 * MAX( + + COALESCE ( 44, + 49 ) ) * - NULLIF ( 76, + COALESCE ( 94, + + COUNT( * ) + 69, - MAX( - 89 ) ) ), 83 AS col2
----
-130416
83

skipif mysql # not compatible
query II rowsort label-4609
SELECT ALL 39 * + + 1 * MAX ( + + COALESCE ( 44, + 49 ) ) * - NULLIF ( 76, + COALESCE ( 94, + + COUNT ( * ) + 69, - MAX ( - 89 ) ) ), 83 AS col2
----
-130416
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4610
SELECT MIN( + + 70 ) DIV 27 * + MIN( ALL + 92 ) * - SUM( - + 26 )
----
4784

skipif mysql # not compatible
query I rowsort label-4610
SELECT MIN ( + + 70 ) / 27 * + MIN ( ALL + 92 ) * - SUM ( - + 26 )
----
4784

query II rowsort
SELECT ( - 23 ) * + + 40 * 31, + ( + + 2 ) AS col1
----
-28520
2

query I rowsort
SELECT 21 * COALESCE ( - 17, + 22 )
----
-357

query I rowsort
SELECT ALL 33 + + + 59 col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT ALL - COUNT( 21 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL - COUNT ( 21 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4615
SELECT 5 + - - NULLIF ( CASE + 14 WHEN - 27 THEN + 38 ELSE 88 + 20 END, - + 41 + + 20 ) * - COUNT( * ) col1, SUM( - + 97 ) + - COUNT( * ) DIV - - ( + CAST( 69 AS SIGNED ) ) AS col0
----
-103
-97

skipif mysql # not compatible
query II rowsort label-4615
SELECT 5 + - - NULLIF ( CASE + 14 WHEN - 27 THEN + 38 ELSE 88 + 20 END, - + 41 + + 20 ) * - COUNT ( * ) col1, SUM ( - + 97 ) + - COUNT ( * ) / - - ( + CAST ( 69 AS INTEGER ) ) AS col0
----
-103
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4616
SELECT COUNT( * ) * - + MAX( DISTINCT 41 ) AS col0, + 0 AS col1
----
-41
0

skipif mysql # not compatible
query II rowsort label-4616
SELECT COUNT ( * ) * - + MAX ( DISTINCT 41 ) AS col0, + 0 AS col1
----
-41
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4617
SELECT ALL 97 + - + 95 - + COUNT( * ) * - 58 + + 9 + + CAST( + COALESCE ( - - 58, + + NULLIF ( + COUNT( * ), + 64 * CAST( NULL AS SIGNED ) ) + - 87 + + 84 ) AS SIGNED ) * + - CAST( + 58 AS SIGNED )
----
-3295

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL 97 + - + 95 - + COUNT ( * ) * - 58 + + 9 + + CAST ( + COALESCE ( - - 58, + + NULLIF ( + COUNT ( * ), + 64 * CAST ( NULL AS INTEGER ) ) + - 87 + + 84 ) AS INTEGER ) * + - CAST ( + 58 AS INTEGER )
----
-3295

query I rowsort
SELECT 37 * - 11 col0
----
-407

query I rowsort
SELECT DISTINCT - 32 * - + 70
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT DISTINCT MIN( + 33 ) + + + 3 + + 26 * - 13 * 19 AS col0
----
-6386

skipif mysql # not compatible
query I rowsort label-4620
SELECT DISTINCT MIN ( + 33 ) + + + 3 + + 26 * - 13 * 19 AS col0
----
-6386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4621
SELECT - ( - COUNT( CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4621
SELECT - ( - COUNT ( CAST ( NULL AS INTEGER ) ) )
----
0

query I rowsort
SELECT 5 - + + 28
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT 51 + 11 + - + 61 + COUNT( - 23 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4623
SELECT 51 + 11 + - + 61 + COUNT ( - 23 ) AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4624
SELECT DISTINCT 13, - 31 * COUNT( 80 ) DIV - 91 + 74 AS col1
----
13
74

skipif mysql # not compatible
query II rowsort label-4624
SELECT DISTINCT 13, - 31 * COUNT ( 80 ) / - 91 + 74 AS col1
----
13
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT ALL 13 - - ( CASE + ( - 43 ) WHEN + 78 - - 52 THEN NULL WHEN 20 THEN + 87 + 29 END ) - 17 + - 0 * + - 46 * COUNT( * ) * - 16 * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL 13 - - ( CASE + ( - 43 ) WHEN + 78 - - 52 THEN NULL WHEN 20 THEN + 87 + 29 END ) - 17 + - 0 * + - 46 * COUNT ( * ) * - 16 * 58
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4626
SELECT DISTINCT CAST( 19 AS SIGNED ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT CAST ( 19 AS INTEGER ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT ALL - COUNT( * ) - + - 10 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL - COUNT ( * ) - + - 10 AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4628
SELECT 74 - 31 + + CAST( - 43 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4628
SELECT 74 - 31 + + CAST ( - 43 AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4629
SELECT ALL 3 AS col1, - CAST( NULL AS SIGNED )
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4629
SELECT ALL 3 AS col1, - CAST ( NULL AS INTEGER )
----
3
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4630
SELECT DISTINCT + COALESCE ( + ( 75 ), + COUNT( ALL - NULLIF ( - + 64, + - 4 + 21 DIV - + 9 ) ) ) DIV + 70
----
1

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT + COALESCE ( + ( 75 ), + COUNT ( ALL - NULLIF ( - + 64, + - 4 + 21 / - + 9 ) ) ) / + 70
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ALL - + CASE - - 35 WHEN + COUNT( * ) * + 94 + - 39 + - 40 * - - ( + 78 ) THEN NULL WHEN + 31 THEN NULL ELSE + 5 * - 95 END
----
475

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL - + CASE - - 35 WHEN + COUNT ( * ) * + 94 + - 39 + - 40 * - - ( + 78 ) THEN NULL WHEN + 31 THEN NULL ELSE + 5 * - 95 END
----
475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4632
SELECT 0 + - COUNT( * ) - + - COUNT( * ) * - - CAST( + 55 AS SIGNED ) + - 14 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-4632
SELECT 0 + - COUNT ( * ) - + - COUNT ( * ) * - - CAST ( + 55 AS INTEGER ) + - 14 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT MAX( ALL + 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4633
SELECT MAX ( ALL + 20 ) AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4634
SELECT 19 * 32 / - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT 19 * 32 / - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 38
----
NULL

query I rowsort
SELECT 89 - 85 AS col2
----
4

query I rowsort
SELECT ALL - - 21 * 90
----
1890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4637
SELECT ALL - - COALESCE ( - + COUNT( * ), - 94 * 42, + 60 + + + 7 + - 71 + + - CASE 4 WHEN + 81 + - 51 + - + 40 * - 14 THEN NULL ELSE CAST( + - ( + + COUNT( DISTINCT 79 ) ) AS SIGNED ) DIV 30 END - 3 + - 33 * - 75 * NULLIF ( 15, + + COALESCE ( + MIN( - 3 ), - 75 + - - 28 + - 61 * 10 + + ( - - 68 ) + - 39 - + NULLIF ( - 33, + + 8 * - 79 + - 2 ) + 61 + - 76 * + + 31 ) * 42 ) * + 38 + COUNT( * ) * + 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL - - COALESCE ( - + COUNT ( * ), - 94 * 42, + 60 + + + 7 + - 71 + + - CASE 4 WHEN + 81 + - 51 + - + 40 * - 14 THEN NULL ELSE CAST ( + - ( + + COUNT ( DISTINCT 79 ) ) AS INTEGER ) / 30 END - 3 + - 33 * - 75 * NULLIF ( 15, + + COALESCE ( + MIN ( - 3 ), - 75 + - - 28 + - 61 * 10 + + ( - - 68 ) + - 39 - + NULLIF ( - 33, + + 8 * - 79 + - 2 ) + 61 + - 76 * + + 31 ) * 42 ) * + 38 + COUNT ( * ) * + 34 )
----
-1

query I rowsort
SELECT 6 + - 23
----
-17

query I rowsort
SELECT 80 * - ( 89 )
----
-7120

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT - 72 * + 57 + - + COALESCE ( - + 80, - COUNT( * ) )
----
-4024

skipif mysql # not compatible
query I rowsort label-4640
SELECT - 72 * + 57 + - + COALESCE ( - + 80, - COUNT ( * ) )
----
-4024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4641
SELECT NULLIF ( - + 28, 46 ) DIV 43 * + COUNT( * ) * - CAST( + - COUNT( * ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4641
SELECT NULLIF ( - + 28, 46 ) / 43 * + COUNT ( * ) * - CAST ( + - COUNT ( * ) AS INTEGER )
----
0

query I rowsort
SELECT 25 + 10 * + 48
----
505

query I rowsort
SELECT ALL 92 + - 10
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4644
SELECT ALL ( + COALESCE ( 86, + 69 + + COUNT( * ) * + 47 ) ) DIV + + 74 + + 68 - - 82 - + 86
----
65

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL ( + COALESCE ( 86, + 69 + + COUNT ( * ) * + 47 ) ) / + + 74 + + 68 - - 82 - + 86
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4645
SELECT COALESCE ( 67, 78, - ( - - 97 ) + + + COUNT( * ) ) DIV 15 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4645
SELECT COALESCE ( 67, 78, - ( - - 97 ) + + + COUNT ( * ) ) / 15 AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4646
SELECT ALL + CASE - CAST( - - 31 AS SIGNED ) WHEN - 42 THEN NULL ELSE + COUNT( * ) + 52 + - + 77 END + 2 * - 70 * 94 col0
----
-13184

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL + CASE - CAST ( - - 31 AS INTEGER ) WHEN - 42 THEN NULL ELSE + COUNT ( * ) + 52 + - + 77 END + 2 * - 70 * 94 col0
----
-13184

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT ALL - 18 + - ( CASE 55 WHEN ( - - MAX( ALL 0 ) ) * - COUNT( * ) / 92 + + 85 THEN + 40 - + - 73 END ) + - COALESCE ( + 76, - 28 ) + + 3 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL - 18 + - ( CASE 55 WHEN ( - - MAX ( ALL 0 ) ) * - COUNT ( * ) / 92 + + 85 THEN + 40 - + - 73 END ) + - COALESCE ( + 76, - 28 ) + + 3 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4648
SELECT DISTINCT + 63 DIV + 49 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT + 63 / + 49 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4649
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( ALL 98 ) + + 64 * - 29 + MAX( - 96 ) + + - ( - 40 ) - - ( + 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( ALL 98 ) + + 64 * - 29 + MAX ( - 96 ) + + - ( - 40 ) - - ( + 9 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT ALL ( + COUNT( * ) ) * - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL ( + COUNT ( * ) ) * - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL COUNT( * ) + - 25
----
-24

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL COUNT ( * ) + - 25
----
-24

query I rowsort
SELECT 73 * - 20 + - 10 AS col1
----
-1470

query I rowsort
SELECT + 14 + 95
----
109

query I rowsort
SELECT ALL 2 - 98
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT + + 58 + - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-4655
SELECT + + 58 + - COUNT ( * )
----
57

query I rowsort
SELECT - - ( + 65 ) + + - 40 col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4657
SELECT ALL CAST( NULL AS SIGNED ) * + 26 + + ( ( + - 37 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL CAST ( NULL AS INTEGER ) * + 26 + + ( ( + - 37 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4658
SELECT + 16 / + - 58 * CAST( NULL AS SIGNED ) * + + ( + CASE 70 WHEN - - MAX( ALL - 51 ) + - - 34 THEN + 95 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4658
SELECT + 16 / + - 58 * CAST ( NULL AS INTEGER ) * + + ( + CASE 70 WHEN - - MAX ( ALL - 51 ) + - - 34 THEN + 95 END )
----
NULL

query I rowsort
SELECT - 91 + + ( - + 22 ) col2
----
-113

onlyif mysql # DIV for integer division: 
query I rowsort label-4660
SELECT + ( + 84 ) DIV + COALESCE ( + + 79, + 59 + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-4660
SELECT + ( + 84 ) / + COALESCE ( + + 79, + 59 + 71 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4661
SELECT - 4 * - 61 col2, - COUNT( * ) + + 33 + + 73
----
244
105

skipif mysql # not compatible
query II rowsort label-4661
SELECT - 4 * - 61 col2, - COUNT ( * ) + + 33 + + 73
----
244
105

query I rowsort
SELECT - - 43 + - - 5 + + 86 + - 38 * - 49 AS col0
----
1996

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT + SUM( DISTINCT + 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-4663
SELECT + SUM ( DISTINCT + 49 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-4664
SELECT DISTINCT 31 * 70 * + ( + COUNT( * ) ) + 5 AS col1, 36 AS col0
----
2175
36

skipif mysql # not compatible
query II rowsort label-4664
SELECT DISTINCT 31 * 70 * + ( + COUNT ( * ) ) + 5 AS col1, 36 AS col0
----
2175
36

query I rowsort
SELECT DISTINCT + 51 * + - 90
----
-4590

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4666
SELECT ALL + 88 DIV - COUNT( * ), + 27 AS col0
----
-88
27

skipif mysql # not compatible
query II rowsort label-4666
SELECT ALL + 88 / - COUNT ( * ), + 27 AS col0
----
-88
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL + 7 * - COUNT( * ) * - 23 * COUNT( DISTINCT - 47 ) * NULLIF ( - 43, 64 * 63 + + ( - 9 ) * - 47 ) + - 93 AS col1
----
-7016

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL + 7 * - COUNT ( * ) * - 23 * COUNT ( DISTINCT - 47 ) * NULLIF ( - 43, 64 * 63 + + ( - 9 ) * - 47 ) + - 93 AS col1
----
-7016

onlyif mysql # DIV for integer division: 
query I rowsort label-4668
SELECT + 4 DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-4668
SELECT + 4 / 50
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4669
SELECT - 10 * + COUNT( ALL + 76 ) AS col2, + 67 + - 61 AS col1
----
-10
6

skipif mysql # not compatible
query II rowsort label-4669
SELECT - 10 * + COUNT ( ALL + 76 ) AS col2, + 67 + - 61 AS col1
----
-10
6

query I rowsort
SELECT ( - 89 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT - 86 * - COUNT( + 37 )
----
86

skipif mysql # not compatible
query I rowsort label-4671
SELECT - 86 * - COUNT ( + 37 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4672
SELECT ALL + CASE 38 WHEN CAST( NULL AS DECIMAL ) * ( + ( COUNT( * ) ) ) THEN NULL ELSE + COUNT( DISTINCT + 13 ) END AS col1, + 39
----
1
39

skipif mysql # not compatible
query II rowsort label-4672
SELECT ALL + CASE 38 WHEN CAST ( NULL AS REAL ) * ( + ( COUNT ( * ) ) ) THEN NULL ELSE + COUNT ( DISTINCT + 13 ) END AS col1, + 39
----
1
39

query I rowsort
SELECT - 50 * 14 * - 51 AS col2
----
35700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4674
SELECT COALESCE ( + 71, - CAST( + 97 AS SIGNED ) )
----
71

skipif mysql # not compatible
query I rowsort label-4674
SELECT COALESCE ( + 71, - CAST ( + 97 AS INTEGER ) )
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-4675
SELECT ALL + COUNT( ALL 29 ) * - 57, 54 - + 77 AS col1
----
-57
-23

skipif mysql # not compatible
query II rowsort label-4675
SELECT ALL + COUNT ( ALL 29 ) * - 57, 54 - + 77 AS col1
----
-57
-23

query I rowsort
SELECT ALL - ( - ( - 31 ) ) * - + 4 + + + 81
----
205

query II rowsort
SELECT ALL + 66 AS col0, - 29 AS col2
----
66
-29

query I rowsort
SELECT DISTINCT + 59 * - - 25 AS col0
----
1475

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT - 92 * + COUNT( * ) - + + 73 - - + 93
----
-72

skipif mysql # not compatible
query I rowsort label-4679
SELECT - 92 * + COUNT ( * ) - + + 73 - - + 93
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT COALESCE ( + - 53, + + COALESCE ( - ( - 91 ), - COUNT( * ) + - - COUNT( * ) ) - + 16 + 31 )
----
-53

skipif mysql # not compatible
query I rowsort label-4680
SELECT COALESCE ( + - 53, + + COALESCE ( - ( - 91 ), - COUNT ( * ) + - - COUNT ( * ) ) - + 16 + 31 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT + MIN( - 41 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-4681
SELECT + MIN ( - 41 ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT - COUNT( + 26 ) * + 81
----
-81

skipif mysql # not compatible
query I rowsort label-4682
SELECT - COUNT ( + 26 ) * + 81
----
-81

query I rowsort
SELECT + ( + 97 ) * - 10 * - 70 AS col2
----
67900

query I rowsort
SELECT - 60 + ( - - 72 ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ALL + SUM( ALL + + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL + SUM ( ALL + + 75 )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4686
SELECT DISTINCT 98, + 92 + MAX( DISTINCT - 41 ) - - - CAST( - - ( - 44 ) AS SIGNED ) * - - 51 + 63 + + 75 AS col0
----
98
2433

skipif mysql # not compatible
query II rowsort label-4686
SELECT DISTINCT 98, + 92 + MAX ( DISTINCT - 41 ) - - - CAST ( - - ( - 44 ) AS INTEGER ) * - - 51 + 63 + + 75 AS col0
----
98
2433

query I rowsort
SELECT ALL + 97 * - + 25 - - + 82 AS col0
----
-2343

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT DISTINCT + 66 * - 94 + + SUM( ALL + 96 )
----
-6108

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT + 66 * - 94 + + SUM ( ALL + 96 )
----
-6108

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT - 92 * - COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-4689
SELECT - 92 * - COUNT ( * ) AS col1
----
92

query I rowsort
SELECT + 61 * 59
----
3599

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT ALL COUNT( * ) * + + 71 * 82
----
5822

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL COUNT ( * ) * + + 71 * 82
----
5822

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4692
SELECT ( - CAST( 8 AS SIGNED ) ) AS col0, + 29 + - CAST( NULL AS DECIMAL ) col2
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-4692
SELECT ( - CAST ( 8 AS INTEGER ) ) AS col0, + 29 + - CAST ( NULL AS REAL ) col2
----
-8
NULL

query I rowsort
SELECT + + 77 + - 5
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-4694
SELECT ALL COUNT( * ) * - 15 + - + 71 AS col1, COALESCE ( 20, 63 ) AS col0
----
-86
20

skipif mysql # not compatible
query II rowsort label-4694
SELECT ALL COUNT ( * ) * - 15 + - + 71 AS col1, COALESCE ( 20, 63 ) AS col0
----
-86
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4695
SELECT + - 3 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT + - 3 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4696
SELECT ALL + COUNT( * ) col0, - 60
----
1
-60

skipif mysql # not compatible
query II rowsort label-4696
SELECT ALL + COUNT ( * ) col0, - 60
----
1
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4697
SELECT - ( - CAST( 12 AS SIGNED ) )
----
12

skipif mysql # not compatible
query I rowsort label-4697
SELECT - ( - CAST ( 12 AS INTEGER ) )
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4698
SELECT ALL + 22 + + + 4 * - 83 + - 52 DIV 14
----
-313

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL + 22 + + + 4 * - 83 + - 52 / 14
----
-313

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT + 64 - - COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4699
SELECT + 64 - - COUNT ( * ) AS col0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4700
SELECT ALL - 47 + - 59 * - NULLIF ( 40, + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) ) AS col1
----
2313

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL - 47 + - 59 * - NULLIF ( 40, + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) ) AS col1
----
2313

onlyif mysql # aggregate syntax: 
query II rowsort label-4701
SELECT - 84 AS col2, - NULLIF ( 90, - COALESCE ( + - 85, + COUNT( * ) * - 68 * + 55, + + 1 ) * - 38 )
----
-84
-90

skipif mysql # not compatible
query II rowsort label-4701
SELECT - 84 AS col2, - NULLIF ( 90, - COALESCE ( + - 85, + COUNT ( * ) * - 68 * + 55, + + 1 ) * - 38 )
----
-84
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4702
SELECT DISTINCT 75 * - - 59 * + - 52 DIV - - COUNT( * ) AS col2, COUNT( ( 41 ) ) + 12 - + 27 * + NULLIF ( - - 89, 81 * - + COALESCE ( + 46, COUNT( * ) * 51 * - 81 * + + 7 DIV 10 + 90, + 15 * - 83 - + + 92 + + 71 * + 20 + - 98 ) + - COUNT( * ) + + SUM( ALL + 1 ) ) * - - CAST( NULL AS SIGNED ) + + + 3 + ( COUNT( * ) )
----
-230100
NULL

skipif mysql # not compatible
query II rowsort label-4702
SELECT DISTINCT 75 * - - 59 * + - 52 / - - COUNT ( * ) AS col2, COUNT ( ( 41 ) ) + 12 - + 27 * + NULLIF ( - - 89, 81 * - + COALESCE ( + 46, COUNT ( * ) * 51 * - 81 * + + 7 / 10 + 90, + 15 * - 83 - + + 92 + + 71 * + 20 + - 98 ) + - COUNT ( * ) + + SUM ( ALL + 1 ) ) * - - CAST ( NULL AS INTEGER ) + + + 3 + ( COUNT ( * ) )
----
-230100
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4703
SELECT ALL - 45 * + 25 * + MAX( + + 63 ) AS col1, + CASE - - 33 WHEN + 34 THEN - 68 WHEN - 60 / - 46 * + - 81 + 25 * 41 * + 40 THEN NULL END
----
-70875
NULL

skipif mysql # not compatible
query II rowsort label-4703
SELECT ALL - 45 * + 25 * + MAX ( + + 63 ) AS col1, + CASE - - 33 WHEN + 34 THEN - 68 WHEN - 60 / - 46 * + - 81 + 25 * 41 * + 40 THEN NULL END
----
-70875
NULL

query I rowsort
SELECT DISTINCT 39 * - 73
----
-2847

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4705
SELECT 90 DIV + - 22 + 90 * - - COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4705
SELECT 90 / + - 22 + 90 * - - COUNT ( * ) AS col0
----
86

query I rowsort
SELECT - 68 * - - 95
----
-6460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4707
SELECT ALL - CAST( NULL AS SIGNED ) / ( - + 44 ) + - ( + CAST( NULL AS SIGNED ) ) - 76 - 25 - - 42 * + - 28 * - 42 * - 37 * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL - CAST ( NULL AS INTEGER ) / ( - + 44 ) + - ( + CAST ( NULL AS INTEGER ) ) - 76 - 25 - - 42 * + - 28 * - 42 * - 37 * + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( - - 51 ) AS col0
----
-51

query I rowsort
SELECT 11 * CASE 96 WHEN + 0 THEN NULL ELSE - 73 + - 68 END
----
-1551

onlyif mysql # DIV for integer division: 
query II rowsort label-4710
SELECT ALL + 55 - + 18 - 62 DIV 36 AS col0, - 57 AS col2
----
36
-57

skipif mysql # not compatible
query II rowsort label-4710
SELECT ALL + 55 - + 18 - 62 / 36 AS col0, - 57 AS col2
----
36
-57

query II rowsort
SELECT 97 AS col0, + 10 - - - 35 + - 18 AS col1
----
97
-43

query I rowsort
SELECT 59 + 26
----
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4713
SELECT 5, + MAX( + NULLIF ( 49, + - CAST( NULL AS DECIMAL ) DIV - 71 ) ) DIV + NULLIF ( - + 19, + + 60 * + COUNT( ALL - 28 ) * - - 35 * - 91 * - - 40 DIV - 95 + + 24 ) col2
----
5
-2

skipif mysql # not compatible
query II rowsort label-4713
SELECT 5, + MAX ( + NULLIF ( 49, + - CAST ( NULL AS REAL ) / - 71 ) ) / + NULLIF ( - + 19, + + 60 * + COUNT ( ALL - 28 ) * - - 35 * - 91 * - - 40 / - 95 + + 24 ) col2
----
5
-2

query II rowsort
SELECT + 41 AS col2, 55
----
41
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT 36 + + + 4 + + + 2 * + COUNT( * ) + 47 * - 94
----
-4376

skipif mysql # not compatible
query I rowsort label-4715
SELECT 36 + + + 4 + + + 2 * + COUNT ( * ) + 47 * - 94
----
-4376

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4716
SELECT + 94, - 71 DIV 54 * 33 * MIN( - 62 ) + + + 67 * 92 + - - 92 - 27 * + 22 AS col1
----
94
7708

skipif mysql # not compatible
query II rowsort label-4716
SELECT + 94, - 71 / 54 * 33 * MIN ( - 62 ) + + + 67 * 92 + - - 92 - 27 * + 22 AS col1
----
94
7708

query I rowsort
SELECT 46 + + ( 48 ) * 30 AS col0
----
1486

query I rowsort
SELECT DISTINCT + 10 * 90 * 44 AS col0
----
39600

query I rowsort
SELECT ALL - NULLIF ( 99, - 12 * + 60 )
----
-99

query I rowsort
SELECT ALL - - ( + ( + 69 ) ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT ALL - - ( - COUNT( * ) ) * - - 28 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL - - ( - COUNT ( * ) ) * - - 28 AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT - 23 * - 59 * - + 29 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT - 23 * - 59 * - + 29 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4723
SELECT DISTINCT - + 97 AS col2, MAX( ALL - 84 ) + 66 AS col1
----
-97
-18

skipif mysql # not compatible
query II rowsort label-4723
SELECT DISTINCT - + 97 AS col2, MAX ( ALL - 84 ) + 66 AS col1
----
-97
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-4724
SELECT - 60, 42 + - + ( COUNT( 34 ) ) AS col0
----
-60
41

skipif mysql # not compatible
query II rowsort label-4724
SELECT - 60, 42 + - + ( COUNT ( 34 ) ) AS col0
----
-60
41

query I rowsort
SELECT + ( - - 1 ) + 44 AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4726
SELECT - CAST( NULL AS SIGNED ) * - 74 + + 78 + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT - CAST ( NULL AS INTEGER ) * - 74 + + 78 + 7
----
NULL

query I rowsort
SELECT + 12 + - + 40 AS col2
----
-28

onlyif mysql # DIV for integer division: 
query II rowsort label-4728
SELECT DISTINCT 61, 68 + 13 DIV 48 * - 80 + + - ( + + 29 ) AS col0
----
61
39

skipif mysql # not compatible
query II rowsort label-4728
SELECT DISTINCT 61, 68 + 13 / 48 * - 80 + + - ( + + 29 ) AS col0
----
61
39

query I rowsort
SELECT - 39 * - - 67
----
-2613

query I rowsort
SELECT ALL + 51 + + 31 + + 72
----
154

query I rowsort
SELECT DISTINCT - 93 + - 19 * - 14
----
173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4732
SELECT DISTINCT + NULLIF ( CAST( NULL AS SIGNED ), + - 23 ) * 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT + NULLIF ( CAST ( NULL AS INTEGER ), + - 23 ) * 58 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT ALL ( + COUNT( * ) ) + - 1 * - MIN( - + 64 )
----
-63

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL ( + COUNT ( * ) ) + - 1 * - MIN ( - + 64 )
----
-63

query I rowsort
SELECT - 62 + + 47 + - 28 * - + 37 AS col2
----
1021

query I rowsort
SELECT ALL - 60 + - + 55 AS col0
----
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4736
SELECT 67 + - 42 + + 18 + + COUNT( * ) DIV 71 * COUNT( * ) - COUNT( * ) * 27 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4736
SELECT 67 + - 42 + + 18 + + COUNT ( * ) / 71 * COUNT ( * ) - COUNT ( * ) * 27 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT + CASE - 14 WHEN + 44 + + 32 THEN - 73 * COUNT( * ) * - ( + 52 ) * - + 65 / + 45 / - + ( + - 10 ) + + 74 * - AVG ( DISTINCT - 12 ) WHEN + - 58 - + 68 + + 6 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4737
SELECT + CASE - 14 WHEN + 44 + + 32 THEN - 73 * COUNT ( * ) * - ( + 52 ) * - + 65 / + 45 / - + ( + - 10 ) + + 74 * - AVG ( DISTINCT - 12 ) WHEN + - 58 - + 68 + + 6 THEN NULL END
----
NULL

query II rowsort
SELECT - + 13 AS col2, 6 AS col0
----
-13
6

query I rowsort
SELECT DISTINCT - 13 * - 31 AS col0
----
403

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4740
SELECT - 34 * 86 DIV - COUNT( * ) + - 33 col1
----
2891

skipif mysql # not compatible
query I rowsort label-4740
SELECT - 34 * 86 / - COUNT ( * ) + - 33 col1
----
2891

query I rowsort
SELECT 21 * 33
----
693

query II rowsort
SELECT 56 * + 31 * - 67 AS col0, - 44 + 91 AS col1
----
-116312
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT DISTINCT COUNT( * ) * - 71 col2
----
-71

skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT COUNT ( * ) * - 71 col2
----
-71

query II rowsort
SELECT ALL 55 * + + 42 AS col0, 29 * 19
----
2310
551

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT ALL - ( - - MIN( + + 31 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL - ( - - MIN ( + + 31 ) )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4746
SELECT DISTINCT - SUM( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT - SUM ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4747
SELECT CAST( - + 73 AS SIGNED ) * + 8 - - 52 - + 83 - + 96 AS col1
----
-711

skipif mysql # not compatible
query I rowsort label-4747
SELECT CAST ( - + 73 AS INTEGER ) * + 8 - - 52 - + 83 - + 96 AS col1
----
-711

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4748
SELECT 13 * - CAST( + 4 AS SIGNED ) + + 81 - - - 92
----
-63

skipif mysql # not compatible
query I rowsort label-4748
SELECT 13 * - CAST ( + 4 AS INTEGER ) + + 81 - - - 92
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4749
SELECT + AVG ( ALL + CAST( NULL AS DECIMAL ) ) * 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT + AVG ( ALL + CAST ( NULL AS REAL ) ) * 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT + NULLIF ( - - NULLIF ( + 93, + - COUNT( * ) * + - 49 * - MAX( + - 43 ) ), ( + COALESCE ( - 0, 48 * 87 + - 68 ) ) ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-4750
SELECT + NULLIF ( - - NULLIF ( + 93, + - COUNT ( * ) * + - 49 * - MAX ( + - 43 ) ), ( + COALESCE ( - 0, 48 * 87 + - 68 ) ) ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT + + COUNT( ALL + + 70 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4751
SELECT + + COUNT ( ALL + + 70 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4752
SELECT - 96 * COUNT( * ) col2, 49
----
-96
49

skipif mysql # not compatible
query II rowsort label-4752
SELECT - 96 * COUNT ( * ) col2, 49
----
-96
49

query I rowsort
SELECT DISTINCT - - 62 * 88 * 57 AS col2
----
310992

query I rowsort
SELECT ALL 79 + + 83 * - 85
----
-6976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4755
SELECT DISTINCT - 64 * + ( MIN( - 80 ) ) - - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT - 64 * + ( MIN ( - 80 ) ) - - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT - COUNT( - + 57 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4756
SELECT - COUNT ( - + 57 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4757
SELECT + 59 * + 75, 8 * COUNT( * ) col1
----
4425
8

skipif mysql # not compatible
query II rowsort label-4757
SELECT + 59 * + 75, 8 * COUNT ( * ) col1
----
4425
8

query I rowsort
SELECT 23 - - 84 + + - 72 * + 64
----
-4501

query I rowsort
SELECT ALL + - 8 + 34 * + 19 - + + 19 AS col1
----
619

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT - NULLIF ( ( + COUNT( * ) ), - 29 + - 36 ) + - + 41
----
-42

skipif mysql # not compatible
query I rowsort label-4760
SELECT - NULLIF ( ( + COUNT ( * ) ), - 29 + - 36 ) + - + 41
----
-42

query II rowsort
SELECT - 26 + + 94 AS col1, 8 AS col0
----
68
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT ALL COALESCE ( + 58, + COUNT( * ), + 46, - 67 ) * - + COUNT( * ) col2
----
-58

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL COALESCE ( + 58, + COUNT ( * ), + 46, - 67 ) * - + COUNT ( * ) col2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4763
SELECT ALL + 27 DIV 37
----
0

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL + 27 / 37
----
0

query I rowsort
SELECT DISTINCT - ( - 87 ) - + 55 - + 96 AS col0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4765
SELECT ALL + COUNT( * ) DIV + - COUNT( - 28 ) AS col1, - 25 * COUNT( * )
----
-1
-25

skipif mysql # not compatible
query II rowsort label-4765
SELECT ALL + COUNT ( * ) / + - COUNT ( - 28 ) AS col1, - 25 * COUNT ( * )
----
-1
-25

query I rowsort
SELECT - 15 + + 34 AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4767
SELECT + 21 + - 77 DIV + 69 - + 87 + + + 14 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4767
SELECT + 21 + - 77 / + 69 - + 87 + + + 14 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT ALL - 54 - COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL - 54 - COUNT ( * ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT ALL + ( + + 77 ) * MAX( DISTINCT + 70 ) AS col0
----
5390

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL + ( + + 77 ) * MAX ( DISTINCT + 70 ) AS col0
----
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT - 92 * + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-4770
SELECT - 92 * + COUNT ( * )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4771
SELECT + MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT + MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4772
SELECT - 9 DIV - COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4772
SELECT - 9 / - COUNT ( * ) AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4773
SELECT + COUNT( * ) * 22 * + - CASE + 98 WHEN + 44 * - - 26 * 85 THEN - 26 * + CAST( NULL AS SIGNED ) END, 28 * - + 58 col1
----
NULL
-1624

skipif mysql # not compatible
query II rowsort label-4773
SELECT + COUNT ( * ) * 22 * + - CASE + 98 WHEN + 44 * - - 26 * 85 THEN - 26 * + CAST ( NULL AS INTEGER ) END, 28 * - + 58 col1
----
NULL
-1624

query I rowsort
SELECT ALL 79 * - 50
----
-3950

query I rowsort
SELECT 91 * 18 + - + 17 + - 5 + + 42
----
1658

query I rowsort
SELECT + 91 * - 85
----
-7735

onlyif mysql # DIV for integer division: 
query I rowsort label-4777
SELECT - 17 DIV - 93 + + - 94 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-4777
SELECT - 17 / - 93 + + - 94 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT + MIN( ALL - 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-4778
SELECT + MIN ( ALL - 41 ) AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4779
SELECT DISTINCT + CAST( + 4 AS SIGNED ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT + CAST ( + 4 AS INTEGER ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4780
SELECT DISTINCT + 97 AS col0, 92 + 12 - - + NULLIF ( 57, + COUNT( * ) ) col0
----
97
161

skipif mysql # not compatible
query II rowsort label-4780
SELECT DISTINCT + 97 AS col0, 92 + 12 - - + NULLIF ( 57, + COUNT ( * ) ) col0
----
97
161

query I rowsort
SELECT 29 * + - 52 + 10 * - 77
----
-2278

query II rowsort
SELECT ALL + 10, - 24 AS col0
----
10
-24

query I rowsort
SELECT + 19 * + CASE + 80 WHEN + 28 THEN - 54 / + 50 - + + 4 WHEN - 65 / 8 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 42 * - ( 42 ) + - + 2 AS col0
----
-1766

query II rowsort
SELECT + 55 AS col1, + 37 AS col2
----
55
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT ALL + 34 * - COUNT( * ) + - ( + 94 ) AS col0
----
-128

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL + 34 * - COUNT ( * ) + - ( + 94 ) AS col0
----
-128

query II rowsort
SELECT + 95 col1, 89
----
95
89

onlyif mysql # aggregate syntax: 
query III rowsort label-4788
SELECT DISTINCT 94 * - 65 + - + COUNT( * ), 81 * + - COUNT( 9 ) col0, + - MAX( 75 ) AS col0
----
-6111
-81
-75

skipif mysql # not compatible
query III rowsort label-4788
SELECT DISTINCT 94 * - 65 + - + COUNT ( * ), 81 * + - COUNT ( 9 ) col0, + - MAX ( 75 ) AS col0
----
-6111
-81
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT DISTINCT - 55 * + COUNT( * ) + - 72 AS col1
----
-127

skipif mysql # not compatible
query I rowsort label-4789
SELECT DISTINCT - 55 * + COUNT ( * ) + - 72 AS col1
----
-127

query I rowsort
SELECT ALL + - ( - 93 ) col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT ALL + 69 * + 7 + 46 + 84 + - 74 + - - COUNT( * )
----
540

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL + 69 * + 7 + 46 + 84 + - 74 + - - COUNT ( * )
----
540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4792
SELECT ALL + 41 * 4 * + CAST( NULL AS SIGNED ) * - 52 + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL + 41 * 4 * + CAST ( NULL AS INTEGER ) * - 52 + 39 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + + - 50 + CASE - 53 WHEN - + 49 THEN - 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + + - 50 + CASE - 53 WHEN - + 49 THEN - 38 END
----
NULL

query II rowsort
SELECT - 30 + - 0 - + - 50 AS col2, - 28 AS col0
----
20
-28

query I rowsort
SELECT - - 66 * - - 62 + + + 36 AS col2
----
4128

query I rowsort
SELECT - 44 + - + 14 + + 7
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4797
SELECT ALL - 12 * CASE + 24 WHEN + 36 * - - 4 - 98 + 6 THEN + + 71 ELSE 0 END + - 84 + + + 8 + 2 * - 99 * - ( - 22 ) - 47 + - AVG ( ALL CAST( NULL AS DECIMAL ) ) + - - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL - 12 * CASE + 24 WHEN + 36 * - - 4 - 98 + 6 THEN + + 71 ELSE 0 END + - 84 + + + 8 + 2 * - 99 * - ( - 22 ) - 47 + - AVG ( ALL CAST ( NULL AS REAL ) ) + - - 54 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4798
SELECT + 2, COUNT( * ) AS col2
----
2
1

skipif mysql # not compatible
query II rowsort label-4798
SELECT + 2, COUNT ( * ) AS col2
----
2
1

query II rowsort
SELECT - 57 + + 74 * + + 88 AS col2, + 6 AS col2
----
6455
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4800
SELECT ALL + 94, SUM( DISTINCT 75 ) + - + 0 + - 80 AS col0
----
94
-5

skipif mysql # not compatible
query II rowsort label-4800
SELECT ALL + 94, SUM ( DISTINCT 75 ) + - + 0 + - 80 AS col0
----
94
-5

query II rowsort
SELECT + 1 * ( + - 57 ), 2 + 14 - - 41 AS col1
----
-57
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4802
SELECT COALESCE ( - 32, 16 + + 6 + + 72 * 62 DIV 16 * + + 52, - 73 * 6 - - 8 + COUNT( * ) + 74 + + 64 * + 38 + NULLIF ( + + 4, + 3 ) * - - 29 * NULLIF ( + ( - 73 ), + - 84 ), 29 )
----
-32

skipif mysql # not compatible
query I rowsort label-4802
SELECT COALESCE ( - 32, 16 + + 6 + + 72 * 62 / 16 * + + 52, - 73 * 6 - - 8 + COUNT ( * ) + 74 + + 64 * + 38 + NULLIF ( + + 4, + 3 ) * - - 29 * NULLIF ( + ( - 73 ), + - 84 ), 29 )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4803
SELECT DISTINCT + MIN( - 45 ) - - 18 + - COUNT( * ) - + + COALESCE ( - 68, + 50 ) * + ( ( - 31 ) ) / + CAST( NULL AS SIGNED ) + - NULLIF ( - 7, - 25 / 98 - COUNT( * ) - - 64 + - COUNT( * ) * - 27 ) + + - 98 + + - 22 * + + 21 * + 57 / + + 29 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT + MIN ( - 45 ) - - 18 + - COUNT ( * ) - + + COALESCE ( - 68, + 50 ) * + ( ( - 31 ) ) / + CAST ( NULL AS INTEGER ) + - NULLIF ( - 7, - 25 / 98 - COUNT ( * ) - - 64 + - COUNT ( * ) * - 27 ) + + - 98 + + - 22 * + + 21 * + 57 / + + 29 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT ALL + COUNT( + ( - - 57 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL + COUNT ( + ( - - 57 ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT ( 30 ) - - 77
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4806
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 48 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4807
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col1, + CAST( - COUNT( * ) AS SIGNED ) + + 9 + - 82 * ( + 24 ) DIV - - 28
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-4807
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col1, + CAST ( - COUNT ( * ) AS INTEGER ) + + 9 + - 82 * ( + 24 ) / - - 28
----
NULL
-62

query I rowsort
SELECT - 45 + + 85
----
40

query I rowsort
SELECT - 4 * + 51
----
-204

query I rowsort
SELECT ALL + 32 * - - 36 col2
----
1152

query I rowsort
SELECT - 21 + + + 75
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT DISTINCT + COUNT( * ) * - 57
----
-57

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT + COUNT ( * ) * - 57
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT ALL COALESCE ( NULLIF ( - COUNT( * ), + 5 - 86 + + 9 / + - 51 + + 34 / + + 19 ), 3 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL COALESCE ( NULLIF ( - COUNT ( * ), + 5 - 86 + + 9 / + - 51 + + 34 / + + 19 ), 3 ) AS col2
----
-1

query II rowsort
SELECT ALL ( + - 85 ) AS col2, - 82 AS col0
----
-85
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-4815
SELECT - CASE + 52 WHEN + 10 * + 64 THEN - + 76 / - 25 * - 84 - 92 / + 41 + 82 + + 26 - 88 ELSE NULL END / - 64 * - COUNT( - + 16 ) * + 84 + 64, 90 * 67 + + - 74 * 81 - + 13 AS col1
----
NULL
23

skipif mysql # not compatible
query II rowsort label-4815
SELECT - CASE + 52 WHEN + 10 * + 64 THEN - + 76 / - 25 * - 84 - 92 / + 41 + 82 + + 26 - 88 ELSE NULL END / - 64 * - COUNT ( - + 16 ) * + 84 + 64, 90 * 67 + + - 74 * 81 - + 13 AS col1
----
NULL
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4816
SELECT DISTINCT 67 * - - 88 AS col2, + 9 * + COUNT( * ) + MAX( - 86 ) - + + COUNT( * ) * - + NULLIF ( - + 93, + 58 ) col1
----
5896
-170

skipif mysql # not compatible
query II rowsort label-4816
SELECT DISTINCT 67 * - - 88 AS col2, + 9 * + COUNT ( * ) + MAX ( - 86 ) - + + COUNT ( * ) * - + NULLIF ( - + 93, + 58 ) col1
----
5896
-170

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4817
SELECT DISTINCT + CAST( - 29 AS SIGNED ) DIV + 30 + - 55 + + 75 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT + CAST ( - 29 AS INTEGER ) / + 30 + - 55 + + 75 AS col0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4818
SELECT ALL ( - COUNT( * ) ) DIV - + 92 + - 91, COUNT( * ) AS col2
----
-91
1

skipif mysql # not compatible
query II rowsort label-4818
SELECT ALL ( - COUNT ( * ) ) / - + 92 + - 91, COUNT ( * ) AS col2
----
-91
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT - 87 * - SUM( DISTINCT 65 ) + - + 95 AS col2
----
5560

skipif mysql # not compatible
query I rowsort label-4819
SELECT - 87 * - SUM ( DISTINCT 65 ) + - + 95 AS col2
----
5560

query I rowsort
SELECT + ( + + 96 ) * + - 43
----
-4128

onlyif mysql # DIV for integer division: 
query I rowsort label-4821
SELECT + 37 DIV + + 51 * - 17 + - + 43 * 91
----
-3913

skipif mysql # not compatible
query I rowsort label-4821
SELECT + 37 / + + 51 * - 17 + - + 43 * 91
----
-3913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4822
SELECT CAST( 74 AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4822
SELECT CAST ( 74 AS INTEGER ) AS col2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4823
SELECT + 60 DIV - 21 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4823
SELECT + 60 / - 21 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4824
SELECT - 25 DIV - + 45 * - NULLIF ( + ( + ( + 27 ) ), 67 DIV + 48 - + 46 ) * + 21 DIV NULLIF ( COUNT( * ), - 92 + - CASE - - ( + 48 ) WHEN + 10 * 55 THEN + - 32 WHEN + - ( + ( + + 0 ) ) * + 24 THEN 7 END * COUNT( * ) * - 37 ) - - 9
----
9

skipif mysql # not compatible
query I rowsort label-4824
SELECT - 25 / - + 45 * - NULLIF ( + ( + ( + 27 ) ), 67 / + 48 - + 46 ) * + 21 / NULLIF ( COUNT ( * ), - 92 + - CASE - - ( + 48 ) WHEN + 10 * 55 THEN + - 32 WHEN + - ( + ( + + 0 ) ) * + 24 THEN 7 END * COUNT ( * ) * - 37 ) - - 9
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4825
SELECT + + MAX( + 96 ) AS col2, + 9 + COALESCE ( + - 71, - + 33 - + 12 ) + + 35 * + ( 3 ) AS col2
----
96
43

skipif mysql # not compatible
query II rowsort label-4825
SELECT + + MAX ( + 96 ) AS col2, + 9 + COALESCE ( + - 71, - + 33 - + 12 ) + + 35 * + ( 3 ) AS col2
----
96
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT ALL 4 DIV + NULLIF ( 24, - + NULLIF ( 72, - - 96 ) ) + - + 32 DIV + - NULLIF ( + 11, 30 DIV + + 38 + 12 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL 4 / + NULLIF ( 24, - + NULLIF ( 72, - - 96 ) ) + - + 32 / + - NULLIF ( + 11, 30 / + + 38 + 12 ) AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4827
SELECT ALL + 15 DIV ( - 35 ) + + 71, COUNT( * ) DIV - - COUNT( * ) col2
----
71
1

skipif mysql # not compatible
query II rowsort label-4827
SELECT ALL + 15 / ( - 35 ) + + 71, COUNT ( * ) / - - COUNT ( * ) col2
----
71
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT ALL - COUNT( - 98 ) * - 10 + - 49
----
-39

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL - COUNT ( - 98 ) * - 10 + - 49
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT - + COALESCE ( ( NULLIF ( 40, - - COUNT( * ) ) ), + 12, - 65 * + 59 * 71 - - MIN( - + 90 ) + - 41 * + + 34, + + 20 - + + COUNT( * ) ) + - COUNT( * ) + - 76 * + ( - - 82 )
----
-6273

skipif mysql # not compatible
query I rowsort label-4829
SELECT - + COALESCE ( ( NULLIF ( 40, - - COUNT ( * ) ) ), + 12, - 65 * + 59 * 71 - - MIN ( - + 90 ) + - 41 * + + 34, + + 20 - + + COUNT ( * ) ) + - COUNT ( * ) + - 76 * + ( - - 82 )
----
-6273

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT + + 95 - + + COUNT( * ) - - COALESCE ( + 71, + + COUNT( + 91 ), 99 + + 56 ) * - 83 + + 40 AS col1
----
-5759

skipif mysql # not compatible
query I rowsort label-4830
SELECT + + 95 - + + COUNT ( * ) - - COALESCE ( + 71, + + COUNT ( + 91 ), 99 + + 56 ) * - 83 + + 40 AS col1
----
-5759

query I rowsort
SELECT ALL - + 42 * 42 + + 68 + - ( + - 91 ) AS col0
----
-1605

query II rowsort
SELECT + ( - + 60 ), + 82 AS col1
----
-60
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT 34 * + - 79 / + - 66 + + - CASE + ( + + 57 ) WHEN COUNT( * ) + + 64 THEN 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4833
SELECT 34 * + - 79 / + - 66 + + - CASE + ( + + 57 ) WHEN COUNT ( * ) + + 64 THEN 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4834
SELECT ALL + + CASE + 21 WHEN + ( + 63 ) / + 34 THEN NULL ELSE + 47 * + + COUNT( * ) END AS col1, 91 col0
----
47
91

skipif mysql # not compatible
query II rowsort label-4834
SELECT ALL + + CASE + 21 WHEN + ( + 63 ) / + 34 THEN NULL ELSE + 47 * + + COUNT ( * ) END AS col1, 91 col0
----
47
91

query I rowsort
SELECT ALL + 48 * - 60 AS col1
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT COUNT( ALL - ( + + 35 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4836
SELECT COUNT ( ALL - ( + + 35 ) ) AS col2
----
1

query II rowsort
SELECT DISTINCT - + ( - 26 ) * + - 52 - - - 82 AS col0, 56
----
-1434
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT DISTINCT + - ( 61 ) - - 10 * COUNT( * ) + + - 98 - + 52 AS col0
----
-201

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT + - ( 61 ) - - 10 * COUNT ( * ) + + - 98 - + 52 AS col0
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT 63 * ( + + 93 ) * + 4 + + - 41 * + 66 + + 51 * - 81 * - SUM( DISTINCT + 62 ) + - - 31
----
276883

skipif mysql # not compatible
query I rowsort label-4839
SELECT 63 * ( + + 93 ) * + 4 + + - 41 * + 66 + + 51 * - 81 * - SUM ( DISTINCT + 62 ) + - - 31
----
276883

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT COUNT( * ) + - 82 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-4840
SELECT COUNT ( * ) + - 82 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT NULLIF ( - - 76, - + COUNT( ALL - 43 ) * + 96 + - - COUNT( * ) - + 57 + + COUNT( * ) * + 69 ) + + 57 AS col0
----
133

skipif mysql # not compatible
query I rowsort label-4841
SELECT NULLIF ( - - 76, - + COUNT ( ALL - 43 ) * + 96 + - - COUNT ( * ) - + 57 + + COUNT ( * ) * + 69 ) + + 57 AS col0
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-4842
SELECT 24 DIV - 16 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4842
SELECT 24 / - 16 AS col0
----
-1

query I rowsort
SELECT 59 * - NULLIF ( - - 32, 30 * ( 84 ) ) AS col2
----
-1888

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT 30 + - + NULLIF ( - - 34, - + NULLIF ( - COUNT( ALL - 57 ), + COUNT( * ) ) )
----
-4

skipif mysql # not compatible
query I rowsort label-4844
SELECT 30 + - + NULLIF ( - - 34, - + NULLIF ( - COUNT ( ALL - 57 ), + COUNT ( * ) ) )
----
-4

query II rowsort
SELECT 17, 42 AS col2
----
17
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4846
SELECT DISTINCT - 55 DIV + 18
----
-3

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT - 55 / + 18
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4847
SELECT ALL 44 + - 46 + + COALESCE ( + + 0, COUNT( * ) * - 9 - - 71 + - ( - AVG ( - 90 ) ) DIV - 6 + + 35 - - MIN( DISTINCT - - 99 ), - SUM( DISTINCT - + 17 ) ) + - COUNT( * ) + - 72 + + 88 * + 57 + COALESCE ( + - ( 12 ), - COUNT( * ) * + MAX( DISTINCT - + 27 ) + + ( + 93 ) * + 30 ) * 40
----
4461

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL 44 + - 46 + + COALESCE ( + + 0, COUNT ( * ) * - 9 - - 71 + - ( - AVG ( - 90 ) ) / - 6 + + 35 - - MIN ( DISTINCT - - 99 ), - SUM ( DISTINCT - + 17 ) ) + - COUNT ( * ) + - 72 + + 88 * + 57 + COALESCE ( + - ( 12 ), - COUNT ( * ) * + MAX ( DISTINCT - + 27 ) + + ( + 93 ) * + 30 ) * 40
----
4461

query II rowsort
SELECT DISTINCT 27 AS col0, 79 AS col0
----
27
79

query I rowsort
SELECT ALL 38 * - - 34
----
1292

query I rowsort
SELECT ALL 96 + - + 68
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4851
SELECT DISTINCT + 83 + - 17 * - COUNT( * ) / + CAST( + ( + CAST( NULL AS SIGNED ) ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT + 83 + - 17 * - COUNT ( * ) / + CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4852
SELECT CAST( NULL AS SIGNED ) * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT CAST ( NULL AS INTEGER ) * - 44
----
NULL

query I rowsort
SELECT ALL + 65 + 11
----
76

query I rowsort
SELECT 94 + 0 AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4855
SELECT CASE 23 WHEN CASE + 28 WHEN + 89 * + SUM( 38 ) * + CAST( NULL AS SIGNED ) + + 46 THEN + 75 * - 76 + - - 9 - - 7 * + + 73 + - 18 / - + ( - 5 ) END / + + 99 - + 57 THEN - COUNT( * ) ELSE NULL END * 21 + + + NULLIF ( + 40, 49 ) / + ( - - 76 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4855
SELECT CASE 23 WHEN CASE + 28 WHEN + 89 * + SUM ( 38 ) * + CAST ( NULL AS INTEGER ) + + 46 THEN + 75 * - 76 + - - 9 - - 7 * + + 73 + - 18 / - + ( - 5 ) END / + + 99 - + 57 THEN - COUNT ( * ) ELSE NULL END * 21 + + + NULLIF ( + 40, 49 ) / + ( - - 76 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 95 + + - 5
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL 54 + CASE + 36 WHEN - COUNT( * ) + 41 THEN MAX( DISTINCT - ( + 90 ) ) / + ( - NULLIF ( + COUNT( DISTINCT - 60 ), COUNT( * ) ) ) WHEN 49 THEN NULL ELSE NULL END * + 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL 54 + CASE + 36 WHEN - COUNT ( * ) + 41 THEN MAX ( DISTINCT - ( + 90 ) ) / + ( - NULLIF ( + COUNT ( DISTINCT - 60 ), COUNT ( * ) ) ) WHEN 49 THEN NULL ELSE NULL END * + 12 AS col0
----
NULL

query I rowsort
SELECT 84 + - ( + 93 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT ALL + 2 + COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL + 2 + COUNT ( * ) AS col0
----
3

query I rowsort
SELECT ALL 12 + - 5 AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4861
SELECT ALL - 30 DIV 59 col2
----
0

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL - 30 / 59 col2
----
0

query I rowsort
SELECT 74 * - 67
----
-4958

query I rowsort
SELECT - 26 * 24 + 76
----
-548

query I rowsort
SELECT ALL - ( + 3 ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ALL - COUNT( * ) - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL - COUNT ( * ) - COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT DISTINCT + 49 * 91 AS col0
----
4459

query I rowsort
SELECT 96 + - COALESCE ( - 43 + - 98, + 64 )
----
237

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4868
SELECT 99 * - SUM( ALL 29 DIV 78 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4868
SELECT 99 * - SUM ( ALL 29 / 78 ) AS col1
----
0

query I rowsort
SELECT ALL - 4 - + 39 col1
----
-43

query I rowsort
SELECT ALL + 40 * + 8
----
320

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT DISTINCT - SUM( DISTINCT - NULLIF ( - 9, 29 ) ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-4871
SELECT DISTINCT - SUM ( DISTINCT - NULLIF ( - 9, 29 ) ) AS col2
----
-9

query I rowsort
SELECT ALL + 31 * 75 AS col1
----
2325

query I rowsort
SELECT - 50 * 81 + 91 * - 28
----
-6598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4874
SELECT ALL - CASE 76 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN 30 THEN - 71 * + 28 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL - CASE 76 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN 30 THEN - 71 * + 28 END AS col2
----
NULL

query I rowsort
SELECT 14 * + 92 AS col2
----
1288

query I rowsort
SELECT 50 + - 31
----
19

query I rowsort
SELECT DISTINCT 22 * - 21
----
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL 56 * + COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL 56 * + COUNT ( * ) AS col0
----
56

query I rowsort
SELECT 40 * - NULLIF ( 79, 65 ) AS col2
----
-3160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4880
SELECT ALL - CASE - 9 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - ( COUNT( ALL 37 ) ) THEN + CAST( NULL AS SIGNED ) + - COUNT( * ) / - 33 ELSE NULL END / + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL - CASE - 9 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - ( COUNT ( ALL 37 ) ) THEN + CAST ( NULL AS INTEGER ) + - COUNT ( * ) / - 33 ELSE NULL END / + 3
----
NULL

query I rowsort
SELECT DISTINCT 91 + 43 AS col2
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4882
SELECT ALL 50 + MAX( DISTINCT - CAST( 51 AS SIGNED ) + + 84 )
----
83

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL 50 + MAX ( DISTINCT - CAST ( 51 AS INTEGER ) + + 84 )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4883
SELECT 59 DIV 56
----
1

skipif mysql # not compatible
query I rowsort label-4883
SELECT 59 / 56
----
1

query I rowsort
SELECT ALL 21 + + 42
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4885
SELECT DISTINCT 55 + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * COALESCE ( 70, 64 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT 55 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * COALESCE ( 70, 64 ) AS col2
----
NULL

query I rowsort
SELECT ALL 14 + 51 * - 15 col0
----
-751

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4887
SELECT COUNT( DISTINCT ( 65 ) ) DIV + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4887
SELECT COUNT ( DISTINCT ( 65 ) ) / + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT ALL 90 + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL 90 + COUNT ( * )
----
91

query I rowsort
SELECT 55 * + 18
----
990

onlyif mysql # DIV for integer division: 
query I rowsort label-4890
SELECT DISTINCT 8 DIV 5 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT 8 / 5 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4891
SELECT ALL 43 DIV 67 col0
----
0

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL 43 / 67 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4892
SELECT MIN( DISTINCT + 20 ) DIV + 41
----
0

skipif mysql # not compatible
query I rowsort label-4892
SELECT MIN ( DISTINCT + 20 ) / + 41
----
0

query I rowsort
SELECT ALL 54 + 88
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT ALL - - 53 + - ( - MIN( - 54 ) + + 83 )
----
-84

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL - - 53 + - ( - MIN ( - 54 ) + + 83 )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4895
SELECT - COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4895
SELECT - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4896
SELECT - 78 * 11 + + 55 * ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4896
SELECT - 78 * 11 + + 55 * ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4897
SELECT + CAST( 14 AS SIGNED ) * 47
----
658

skipif mysql # not compatible
query I rowsort label-4897
SELECT + CAST ( 14 AS INTEGER ) * 47
----
658

query I rowsort
SELECT ALL 61 * 71 - 49 * 49
----
1930

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT + - ( ( + COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4899
SELECT + - ( ( + COUNT ( * ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4900
SELECT + 54 - + ( MAX( DISTINCT 10 ) ) DIV - MAX( ALL - ( ( - 81 ) ) )
----
54

skipif mysql # not compatible
query I rowsort label-4900
SELECT + 54 - + ( MAX ( DISTINCT 10 ) ) / - MAX ( ALL - ( ( - 81 ) ) )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT ( COALESCE ( 45, MIN( 85 ) * + 78 ) ) + - 55 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-4901
SELECT ( COALESCE ( 45, MIN ( 85 ) * + 78 ) ) + - 55 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT ALL 82 * - COUNT( * ) - 27
----
-109

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL 82 * - COUNT ( * ) - 27
----
-109

query I rowsort
SELECT NULLIF ( + 34, 95 * - 42 + 0 )
----
34

query I rowsort
SELECT ALL - 20 * - 48 - 22 col1
----
938

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT - ( COUNT( * ) ) / + CASE 28 * + 72 + - 45 * + 2 WHEN - 14 THEN NULL WHEN 37 THEN - COALESCE ( CASE WHEN + 17 IS NOT NULL THEN ( + ( - 39 ) ) WHEN NOT NULL = ( NULL ) THEN NULL ELSE 52 END, - COUNT( * ) * - 80, + NULLIF ( CASE - 70 WHEN 48 + 63 THEN NULL ELSE 89 * + 57 END, + 15 ) + - CASE + 19 WHEN - 97 THEN + 66 + - 25 END ) * + 79 + 93 * 21 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT - ( COUNT ( * ) ) / + CASE 28 * + 72 + - 45 * + 2 WHEN - 14 THEN NULL WHEN 37 THEN - COALESCE ( CASE WHEN + 17 IS NOT NULL THEN ( + ( - 39 ) ) WHEN NOT NULL = ( NULL ) THEN NULL ELSE 52 END, - COUNT ( * ) * - 80, + NULLIF ( CASE - 70 WHEN 48 + 63 THEN NULL ELSE 89 * + 57 END, + 15 ) + - CASE + 19 WHEN - 97 THEN + 66 + - 25 END ) * + 79 + 93 * 21 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( 33, + 95 + - 26 ) AS col1
----
33

query I rowsort
SELECT ALL - - ( - 42 ) * - 33
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT - + 60 * + CASE COUNT( ALL 17 ) WHEN 26 THEN - 48 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT - + 60 * + CASE COUNT ( ALL 17 ) WHEN 26 THEN - 48 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 38 * 63
----
-2394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4910
SELECT ALL - CAST( NULL AS SIGNED ) + + + COALESCE ( + 77, 52 * 85, 24 - - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL - CAST ( NULL AS INTEGER ) + + + COALESCE ( + 77, 52 * 85, 24 - - COUNT ( * ) )
----
NULL

query I rowsort
SELECT - 45 + + - 28 AS col0
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-4912
SELECT - 63 DIV 24 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-4912
SELECT - 63 / 24 / 86
----
0

query I rowsort
SELECT ALL + CASE - 15 WHEN 4 THEN NULL ELSE 58 END + + 27
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4914
SELECT DISTINCT + ( + 59 ) * CAST( + 49 AS SIGNED )
----
2891

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT + ( + 59 ) * CAST ( + 49 AS INTEGER )
----
2891

query I rowsort
SELECT ALL 50 + + 46 * 78
----
3638

query I rowsort
SELECT DISTINCT - ( 94 ) * 92
----
-8648

query I rowsort
SELECT ALL + 37 + 81 + 94
----
212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4918
SELECT DISTINCT - CAST( - ( 14 ) AS SIGNED ) + COUNT( * ) DIV - 41 col2
----
14

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT - CAST ( - ( 14 ) AS INTEGER ) + COUNT ( * ) / - 41 col2
----
14

query I rowsort
SELECT + 9 * + 49 AS col2
----
441

query I rowsort
SELECT ALL - 65 + - + 77 + 53 AS col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4921
SELECT - COUNT( ALL CASE - 79 WHEN 24 THEN CAST( NULL AS SIGNED ) WHEN - 64 THEN NULL WHEN + 90 THEN NULL ELSE NULL END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4921
SELECT - COUNT ( ALL CASE - 79 WHEN 24 THEN CAST ( NULL AS INTEGER ) WHEN - 64 THEN NULL WHEN + 90 THEN NULL ELSE NULL END ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ALL 67 + NULLIF ( - 40, + 42 + COUNT( * ) ) + 4 * - 46 AS col0
----
-157

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL 67 + NULLIF ( - 40, + 42 + COUNT ( * ) ) + 4 * - 46 AS col0
----
-157

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4923
SELECT - 73 + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4923
SELECT - 73 + CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT ALL - 65 + + + 96 - 71
----
-40

query I rowsort
SELECT + ( + 18 ) + - ( ( - 29 ) ) * 54 AS col1
----
1584

query I rowsort
SELECT ALL + 2 + + 24
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT ALL SUM( DISTINCT - 95 ) + 53
----
-42

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL SUM ( DISTINCT - 95 ) + 53
----
-42

query I rowsort
SELECT ALL 37 - + 76 AS col2
----
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4929
SELECT ALL 48 * CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL 48 * CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT DISTINCT COUNT( * ) - - 54 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT COUNT ( * ) - - 54 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT + + MAX( + - 52 ) + + ( MIN( DISTINCT 2 ) ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-4931
SELECT + + MAX ( + - 52 ) + + ( MIN ( DISTINCT 2 ) ) AS col1
----
-50

query I rowsort
SELECT + 11 * - 49 * + 8
----
-4312

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT + ( 42 ) * + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-4933
SELECT + ( 42 ) * + COUNT ( * )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4934
SELECT + 25 * - + 92 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4934
SELECT + 25 * - + 92 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT + + COUNT( * ) + - 84
----
-83

skipif mysql # not compatible
query I rowsort label-4935
SELECT + + COUNT ( * ) + - 84
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4936
SELECT ALL CASE - - 41 WHEN 99 + - 1 THEN 16 END / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL CASE - - 41 WHEN 99 + - 1 THEN 16 END / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4937
SELECT + 38 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT + 38 + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + - 5 * - 82 col2
----
410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4939
SELECT COUNT( * ) DIV + 76 + ( + MAX( 94 ) )
----
94

skipif mysql # not compatible
query I rowsort label-4939
SELECT COUNT ( * ) / + 76 + ( + MAX ( 94 ) )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4940
SELECT DISTINCT 26 DIV + - 38 * COUNT( * ) + 38
----
38

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT 26 / + - 38 * COUNT ( * ) + 38
----
38

query I rowsort
SELECT ALL + NULLIF ( - 25, + 93 ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL + NULLIF ( + - 80, + 41 + + COUNT( * ) ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL + NULLIF ( + - 80, + 41 + + COUNT ( * ) ) AS col0
----
-80

query I rowsort
SELECT DISTINCT - 3 * - 60 + - 16 AS col2
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4944
SELECT + + CAST( MIN( - 21 ) AS SIGNED ) + + 54 col0
----
33

skipif mysql # not compatible
query I rowsort label-4944
SELECT + + CAST ( MIN ( - 21 ) AS INTEGER ) + + 54 col0
----
33

query I rowsort
SELECT + + 69 * + 45 * - ( 87 ) - - 69
----
-270066

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4946
SELECT - 97 * - - 59 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT - 97 * - - 59 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4947
SELECT DISTINCT 66 * - 76 * 42 + + 50 DIV SUM( ALL + ( 73 ) ) AS col0
----
-210672

skipif mysql # not compatible
query I rowsort label-4947
SELECT DISTINCT 66 * - 76 * 42 + + 50 / SUM ( ALL + ( 73 ) ) AS col0
----
-210672

query I rowsort
SELECT DISTINCT - 42 * - + 13 AS col1
----
546

query I rowsort
SELECT + 75 / - + 88 + - CASE - 56 WHEN 54 * NULLIF ( 34, 19 / 69 ) + + 44 THEN NULL WHEN 92 THEN - 57 END * + 56 + - 26 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( 95 ) col2
----
95

query I rowsort
SELECT + 63 + 30
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT DISTINCT + 44 * + COUNT( * ) + 10 * + COALESCE ( - 97, - 42 ) + + 45
----
-881

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT + 44 * + COUNT ( * ) + 10 * + COALESCE ( - 97, - 42 ) + + 45
----
-881

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT + SUM( DISTINCT - 92 ) + + - 69 + COALESCE ( 44, - 25 * - 3 ) AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-4953
SELECT + SUM ( DISTINCT - 92 ) + + - 69 + COALESCE ( 44, - 25 * - 3 ) AS col0
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4954
SELECT ALL - NULLIF ( - COUNT( * ), + ( - 84 ) ) * + 69 + - ( - NULLIF ( 47, - ( CAST( NULL AS SIGNED ) ) ) )
----
116

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL - NULLIF ( - COUNT ( * ), + ( - 84 ) ) * + 69 + - ( - NULLIF ( 47, - ( CAST ( NULL AS INTEGER ) ) ) )
----
116

query II rowsort
SELECT ALL + 24, + 63 AS col2
----
24
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT NULLIF ( - 24, - COALESCE ( - NULLIF ( + 36, + COUNT( * ) * - 34 ), - ( + 58 ) + - COUNT( * ) ) + 49 * 31 )
----
-24

skipif mysql # not compatible
query I rowsort label-4956
SELECT NULLIF ( - 24, - COALESCE ( - NULLIF ( + 36, + COUNT ( * ) * - 34 ), - ( + 58 ) + - COUNT ( * ) ) + 49 * 31 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT DISTINCT + 95 * + 77 + + MIN( ALL - 76 ) - 96 * 48 AS col0
----
2631

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT + 95 * + 77 + + MIN ( ALL - 76 ) - 96 * 48 AS col0
----
2631

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT DISTINCT COUNT( * ) * - 15 + + 3
----
-12

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT COUNT ( * ) * - 15 + + 3
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT + CAST( + - 23 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-4959
SELECT + CAST ( + - 23 AS INTEGER )
----
-23

query II rowsort
SELECT + 19, - 19 col2
----
19
-19

query I rowsort
SELECT - 85 + - 19 AS col0
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT - COUNT( ALL + ( 91 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4962
SELECT - COUNT ( ALL + ( 91 ) )
----
-1

query I rowsort
SELECT ALL + 6 * - 60 col0
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT ALL 58 * - - 13 + - - COUNT( * )
----
755

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL 58 * - - 13 + - - COUNT ( * )
----
755

query I rowsort
SELECT ALL NULLIF ( + 27, 94 * + 10 + 22 * + 85 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ALL 77 * 36 - 60 + COUNT( * )
----
2713

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL 77 * 36 - 60 + COUNT ( * )
----
2713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4967
SELECT ALL + 7 * + CAST( - ( 9 ) AS SIGNED ) * 59
----
-3717

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL + 7 * + CAST ( - ( 9 ) AS INTEGER ) * 59
----
-3717

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT - COUNT( + + 6 )
----
-1

skipif mysql # not compatible
query I rowsort label-4968
SELECT - COUNT ( + + 6 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4969
SELECT ALL - 43 * - 37 DIV 1 * - MAX( DISTINCT - 29 ) AS col2
----
46139

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL - 43 * - 37 / 1 * - MAX ( DISTINCT - 29 ) AS col2
----
46139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4970
SELECT DISTINCT CAST( - + 7 AS SIGNED ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4970
SELECT DISTINCT CAST ( - + 7 AS INTEGER ) AS col1
----
-7

query II rowsort
SELECT - 96 AS col2, + 87
----
-96
87

query I rowsort
SELECT ALL + 6 - + + 3 + - 15 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT DISTINCT - MAX( ( - 75 ) )
----
75

skipif mysql # not compatible
query I rowsort label-4973
SELECT DISTINCT - MAX ( ( - 75 ) )
----
75

query II rowsort
SELECT - - 63 AS col1, + 29 * + 57 AS col2
----
63
1653

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT - COUNT( * ) - 6 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4975
SELECT - COUNT ( * ) - 6 AS col2
----
-7

query II rowsort
SELECT ALL - 52 AS col2, - 83 * - 51
----
-52
4233

query I rowsort
SELECT DISTINCT 57 * - 16 AS col1
----
-912

query II rowsort
SELECT DISTINCT 60 col0, 55
----
60
55

query I rowsort
SELECT ALL - 65 * - 53 * + - 50
----
-172250

query I rowsort
SELECT 73 * 44 + - 65 * 24 col0
----
1652

query I rowsort
SELECT - ( - - 16 ) AS col1
----
-16

query I rowsort
SELECT 21 + 91 AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT ALL 42 * MAX( 36 )
----
1512

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL 42 * MAX ( 36 )
----
1512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4984
SELECT 52 DIV - 36 * + COUNT( * ) - 95 col0
----
-96

skipif mysql # not compatible
query I rowsort label-4984
SELECT 52 / - 36 * + COUNT ( * ) - 95 col0
----
-96

query I rowsort
SELECT DISTINCT - + ( 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT + COUNT( + - 86 )
----
1

skipif mysql # not compatible
query I rowsort label-4986
SELECT + COUNT ( + - 86 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT ALL + 38 + - + ( 10 ) + - ( 43 + - ( - COUNT( 56 ) + 31 ) * 11 ) * - NULLIF ( - 47 - - ( 25 + + COUNT( 27 ) ), - 98 * + COALESCE ( + 15 * COALESCE ( - MAX( + 72 ) / 31, - 72, 17 - COUNT( * ), 74 ), + 33 - 88, - 33 ) ) AS col1
----
6055

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL + 38 + - + ( 10 ) + - ( 43 + - ( - COUNT ( 56 ) + 31 ) * 11 ) * - NULLIF ( - 47 - - ( 25 + + COUNT ( 27 ) ), - 98 * + COALESCE ( + 15 * COALESCE ( - MAX ( + 72 ) / 31, - 72, 17 - COUNT ( * ), 74 ), + 33 - 88, - 33 ) ) AS col1
----
6055

query I rowsort
SELECT DISTINCT ( 34 ) + 40 AS col2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4989
SELECT 21 * + 2 DIV + 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4989
SELECT 21 * + 2 / + 70 AS col1
----
0

query I rowsort
SELECT - 66 + + + 35 * + + 40 col1
----
1334

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT ALL + 88 * - 76 - COUNT( 6 ) + + 66 AS col2
----
-6623

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL + 88 * - 76 - COUNT ( 6 ) + + 66 AS col2
----
-6623

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4992
SELECT ALL CAST( NULL AS SIGNED ) + - NULLIF ( CASE 36 WHEN + 5 THEN NULL WHEN - 50 THEN - 48 * - 70 + ( 39 ) END, + 17 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL CAST ( NULL AS INTEGER ) + - NULLIF ( CASE 36 WHEN + 5 THEN NULL WHEN - 50 THEN - 48 * - 70 + ( 39 ) END, + 17 ) AS col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( 76, + 83, - 31 * + 30 ) + 41
----
117

query I rowsort
SELECT ALL + 37 + - 10
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT CASE MIN( - 68 ) WHEN - + 18 THEN 57 * 61 ELSE 89 * 81 END * MIN( DISTINCT 94 - - 27 )
----
872289

skipif mysql # not compatible
query I rowsort label-4995
SELECT CASE MIN ( - 68 ) WHEN - + 18 THEN 57 * 61 ELSE 89 * 81 END * MIN ( DISTINCT 94 - - 27 )
----
872289

query I rowsort
SELECT DISTINCT 39 + + - 86 + + 3
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4997
SELECT ( - 37 ) + - - COUNT( * ) / + - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4997
SELECT ( - 37 ) + - - COUNT ( * ) / + - ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + 20 - + 47
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT ( + + 61 ) + + 58 * - COUNT( * ) * 67
----
-3825

skipif mysql # not compatible
query I rowsort label-4999
SELECT ( + + 61 ) + + 58 * - COUNT ( * ) * 67
----
-3825

query I rowsort
SELECT ALL 38 * + 17
----
646

query I rowsort
SELECT DISTINCT 90 - - - 62 + - 95
----
-67

query I rowsort
SELECT 93 * 95
----
8835

query I rowsort
SELECT 0 - 62
----
-62

query I rowsort
SELECT ALL - NULLIF ( 2, + 27 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT + ( ( + + ( - 8 ) ) ) + MIN( 9 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5005
SELECT + ( ( + + ( - 8 ) ) ) + MIN ( 9 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT COUNT( * ) + + 58 col0
----
59

skipif mysql # not compatible
query I rowsort label-5006
SELECT COUNT ( * ) + + 58 col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT 41 / 75 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5007
SELECT 41 / 75 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5008
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - COUNT( * ) + - + 66 * + ( 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - + 66 * + ( 45 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT DISTINCT - - COALESCE ( COUNT( * ), ( - 32 ) * 38 ) + + SUM( ALL - 68 ) col1
----
-67

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT - - COALESCE ( COUNT ( * ), ( - 32 ) * 38 ) + + SUM ( ALL - 68 ) col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT DISTINCT + + 25 + - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT + + 25 + - COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT - 0 * + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5011
SELECT - 0 * + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT 80 + - ( + 85 ) * + + 52 AS col0
----
-4340

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5013
SELECT DISTINCT + + 50 + + 16 AS col1, 47 + + - 11 DIV - COUNT( * ) AS col0
----
66
58

skipif mysql # not compatible
query II rowsort label-5013
SELECT DISTINCT + + 50 + + 16 AS col1, 47 + + - 11 / - COUNT ( * ) AS col0
----
66
58

query I rowsort
SELECT ALL + 9 + 21
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT ALL + SUM( + - 45 ) * - - 67 * - + 93
----
280395

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL + SUM ( + - 45 ) * - - 67 * - + 93
----
280395

query I rowsort
SELECT DISTINCT + - 58 + - 6 AS col1
----
-64

query I rowsort
SELECT DISTINCT - 59 * 86 + 14 col2
----
-5060

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT DISTINCT 98 + + COUNT( * ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT 98 + + COUNT ( * ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT - ( + - COALESCE ( 1, COUNT( * ) * - 88 + 50 ) ) * - 22
----
-22

skipif mysql # not compatible
query I rowsort label-5019
SELECT - ( + - COALESCE ( 1, COUNT ( * ) * - 88 + 50 ) ) * - 22
----
-22

query I rowsort
SELECT 30 + + 25
----
55

query I rowsort
SELECT DISTINCT - 33 + + 96
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT DISTINCT - 24 * COUNT( * ) * - COUNT( * ) col2
----
24

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT - 24 * COUNT ( * ) * - COUNT ( * ) col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT 49 * + + COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-5023
SELECT 49 * + + COUNT ( * ) AS col2
----
49

query I rowsort
SELECT ALL 50 - + 34 + + ( - + ( 5 ) ) + 68
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5025
SELECT 68 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-5025
SELECT 68 / - 83
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5026
SELECT ALL 44 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL 44 / + 63
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5027
SELECT COUNT( * ) * + 57 + + 24 AS col1, 68
----
81
68

skipif mysql # not compatible
query II rowsort label-5027
SELECT COUNT ( * ) * + 57 + + 24 AS col1, 68
----
81
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT + COUNT( 51 )
----
1

skipif mysql # not compatible
query I rowsort label-5028
SELECT + COUNT ( 51 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5029
SELECT 94 DIV 41 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5029
SELECT 94 / 41 AS col1
----
2

query I rowsort
SELECT ( - 78 ) * - 1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5031
SELECT CAST( NULL AS SIGNED ) + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-5031
SELECT CAST ( NULL AS INTEGER ) + - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT + COUNT( + + 8 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5032
SELECT + COUNT ( + + 8 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT DISTINCT COALESCE ( - 66, - - 18 * + SUM( 27 ) ) * + 10 col0
----
-660

skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT COALESCE ( - 66, - - 18 * + SUM ( 27 ) ) * + 10 col0
----
-660

onlyif mysql # aggregate syntax: 
query II rowsort label-5034
SELECT - COUNT( * ) AS col2, 53 AS col2
----
-1
53

skipif mysql # not compatible
query II rowsort label-5034
SELECT - COUNT ( * ) AS col2, 53 AS col2
----
-1
53

query I rowsort
SELECT 28 * - 24 col0
----
-672

query I rowsort
SELECT DISTINCT 70 * + + 85 AS col2
----
5950

query I rowsort
SELECT + 18 * - 33
----
-594

query I rowsort
SELECT ALL - - 27 + + 27
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-5039
SELECT - COUNT( * ) col1, 94 + ( 26 ) + + MAX( - 16 ) + + 31 * 79 AS col1
----
-1
2553

skipif mysql # not compatible
query II rowsort label-5039
SELECT - COUNT ( * ) col1, 94 + ( 26 ) + + MAX ( - 16 ) + + 31 * 79 AS col1
----
-1
2553

onlyif mysql # DIV for integer division: 
query I rowsort label-5040
SELECT + 84 DIV + 20 - 73
----
-69

skipif mysql # not compatible
query I rowsort label-5040
SELECT + 84 / + 20 - 73
----
-69

query I rowsort
SELECT - + 93 * 53 AS col0
----
-4929

query I rowsort
SELECT DISTINCT - 71 + - 0 + + 17 AS col2
----
-54

query I rowsort
SELECT ALL + 13 + + + 32 + + 70
----
115

query I rowsort
SELECT + + 7 - - - 13 AS col1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5045
SELECT ALL + COUNT( * ) DIV - - 71
----
0

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL + COUNT ( * ) / - - 71
----
0

query I rowsort
SELECT - - 32 * - + NULLIF ( 17, + 69 / - 90 ) AS col1
----
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT ALL - 21 * NULLIF ( + + 66, - + 31 ) * - CASE + 52 WHEN 86 + - 52 THEN COALESCE ( - 19, 84 / COUNT( * ) ) * 85 END + - 78 * - CASE 29 WHEN 18 - - 62 / 49 THEN NULL WHEN 81 * CASE + 22 WHEN 35 THEN NULL ELSE 99 + 35 END THEN 93 * + ( 56 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL - 21 * NULLIF ( + + 66, - + 31 ) * - CASE + 52 WHEN 86 + - 52 THEN COALESCE ( - 19, 84 / COUNT ( * ) ) * 85 END + - 78 * - CASE 29 WHEN 18 - - 62 / 49 THEN NULL WHEN 81 * CASE + 22 WHEN 35 THEN NULL ELSE 99 + 35 END THEN 93 * + ( 56 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5048
SELECT NULLIF ( - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), NULLIF ( + 58, MAX( ALL - 39 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT NULLIF ( - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), NULLIF ( + 58, MAX ( ALL - 39 ) ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 99 + - - 52
----
151

query I rowsort
SELECT ALL 4 + NULLIF ( 38, + 37 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT ALL - 77 + COUNT( DISTINCT 68 )
----
-76

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL - 77 + COUNT ( DISTINCT 68 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT ALL - 72 + MIN( - - 43 ) * + 34 + 50
----
1440

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL - 72 + MIN ( - - 43 ) * + 34 + 50
----
1440

query I rowsort
SELECT - 57 * + 75
----
-4275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5054
SELECT - + ( 86 ) - - - MAX( + 78 ) + + - ( + 73 ) DIV - 41
----
-163

skipif mysql # not compatible
query I rowsort label-5054
SELECT - + ( 86 ) - - - MAX ( + 78 ) + + - ( + 73 ) / - 41
----
-163

query I rowsort
SELECT + ( - 99 ) AS col1
----
-99

query I rowsort
SELECT DISTINCT + ( - NULLIF ( + 79, + 40 ) )
----
-79

query II rowsort
SELECT + 50, - 27 AS col1
----
50
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT ( + ( + SUM( + - 69 ) ) )
----
-69

skipif mysql # not compatible
query I rowsort label-5058
SELECT ( + ( + SUM ( + - 69 ) ) )
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-5059
SELECT + COUNT( * ) AS col1, 87 - - - 54 col2
----
1
33

skipif mysql # not compatible
query II rowsort label-5059
SELECT + COUNT ( * ) AS col1, 87 - - - 54 col2
----
1
33

query I rowsort
SELECT ALL 78 * - 79 - 28
----
-6190

query I rowsort
SELECT + 62 * 94 AS col0
----
5828

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT DISTINCT + MAX( DISTINCT - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT + MAX ( DISTINCT - 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT - COUNT( * ) + - 32
----
-33

skipif mysql # not compatible
query I rowsort label-5063
SELECT - COUNT ( * ) + - 32
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT COALESCE ( + 18, + COUNT( * ) * - - 61 )
----
18

skipif mysql # not compatible
query I rowsort label-5064
SELECT COALESCE ( + 18, + COUNT ( * ) * - - 61 )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-5065
SELECT ALL + COUNT( * ) AS col0, - 75 * + 20 col2
----
1
-1500

skipif mysql # not compatible
query II rowsort label-5065
SELECT ALL + COUNT ( * ) AS col0, - 75 * + 20 col2
----
1
-1500

query I rowsort
SELECT ALL 38 * + + 92 AS col0
----
3496

query II rowsort
SELECT ALL + ( + - 93 ) AS col2, 89
----
-93
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5068
SELECT 21 DIV - + 91 + - 5 + 7 - - + ( - 74 ) * - 43 AS col0
----
3184

skipif mysql # not compatible
query I rowsort label-5068
SELECT 21 / - + 91 + - 5 + 7 - - + ( - 74 ) * - 43 AS col0
----
3184

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT ALL - SUM( ALL - + NULLIF ( 37, - 23 ) ) * + 40 + + 83 AS col2
----
1563

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL - SUM ( ALL - + NULLIF ( 37, - 23 ) ) * + 40 + + 83 AS col2
----
1563

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5070
SELECT - 90 * CASE 27 WHEN - 55 THEN NULL ELSE + + CAST( - 14 AS SIGNED ) + + 93 END AS col1
----
-7110

skipif mysql # not compatible
query I rowsort label-5070
SELECT - 90 * CASE 27 WHEN - 55 THEN NULL ELSE + + CAST ( - 14 AS INTEGER ) + + 93 END AS col1
----
-7110

query I rowsort
SELECT + 96 * + 23 AS col0
----
2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5072
SELECT ALL - 75 * 94 DIV - - CASE - CAST( - COUNT( * ) AS SIGNED ) WHEN COUNT( * ) THEN CAST( 32 AS SIGNED ) * - ( 66 ) WHEN 37 * 48 THEN + 89 END AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL - 75 * 94 / - - CASE - CAST ( - COUNT ( * ) AS INTEGER ) WHEN COUNT ( * ) THEN CAST ( 32 AS INTEGER ) * - ( 66 ) WHEN 37 * 48 THEN + 89 END AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5073
SELECT - CAST( 11 AS SIGNED ) - + + ( + + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT - CAST ( 11 AS INTEGER ) - + + ( + + CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5074
SELECT + COUNT( * ) AS col2, CASE + 73 WHEN + 47 THEN + NULLIF ( 95, - CAST( 73 AS DECIMAL ) ) + 6 WHEN 96 * ( - 19 ) THEN NULL ELSE NULL END * 65 col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5074
SELECT + COUNT ( * ) AS col2, CASE + 73 WHEN + 47 THEN + NULLIF ( 95, - CAST ( 73 AS REAL ) ) + 6 WHEN 96 * ( - 19 ) THEN NULL ELSE NULL END * 65 col0
----
1
NULL

query I rowsort
SELECT ALL - 85 * + 63 AS col1
----
-5355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5076
SELECT DISTINCT MIN( ALL 25 ) DIV + COUNT( - + CAST( - + COALESCE ( 16, 98 * 67 ) AS SIGNED ) ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT MIN ( ALL 25 ) / + COUNT ( - + CAST ( - + COALESCE ( 16, 98 * 67 ) AS INTEGER ) ) AS col0
----
25

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5077
SELECT ALL 45 * + 52 + + CAST( + - 64 AS SIGNED ), CAST( NULL AS DECIMAL ) * + 2 AS col1
----
2276
NULL

skipif mysql # not compatible
query II rowsort label-5077
SELECT ALL 45 * + 52 + + CAST ( + - 64 AS INTEGER ), CAST ( NULL AS REAL ) * + 2 AS col1
----
2276
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( - 28, - + 82 ) AS col0
----
-28

query I rowsort
SELECT ALL - ( - + 41 ) * - 62 + - - 42 + - - 5 AS col2
----
-2495

onlyif mysql # DIV for integer division: 
query I rowsort label-5080
SELECT + - 72 - - - 36 DIV - 71 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-5080
SELECT + - 72 - - - 36 / - 71 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT + + 97 - + - 92 / - 63 * - 16 - - 83 * 73 / CASE COUNT( * ) WHEN 88 THEN 95 + 80 WHEN 78 THEN - 89 + 57 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5081
SELECT + + 97 - + - 92 / - 63 * - 16 - - 83 * 73 / CASE COUNT ( * ) WHEN 88 THEN 95 + 80 WHEN 78 THEN - 89 + 57 ELSE NULL END
----
NULL

query I rowsort
SELECT - - NULLIF ( - 94, 14 + - 70 / - + 57 / - 27 ) + 46
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5083
SELECT ALL 8 + 89 + + 49 + + - CAST( NULL AS SIGNED ) + ( - - SUM( - 86 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL 8 + 89 + + 49 + + - CAST ( NULL AS INTEGER ) + ( - - SUM ( - 86 ) ) AS col2
----
NULL

query I rowsort
SELECT - - ( 38 ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT + + COUNT( * ) * COUNT( * ) - MIN( - 77 )
----
78

skipif mysql # not compatible
query I rowsort label-5085
SELECT + + COUNT ( * ) * COUNT ( * ) - MIN ( - 77 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT ALL 22 + + 31 + - 95 + - 76 + - - SUM( + ( 45 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL 22 + + 31 + - 95 + - 76 + - - SUM ( + ( 45 ) )
----
-73

query I rowsort
SELECT + 91 + + - 52
----
39

query II rowsort
SELECT + 18 AS col2, 48
----
18
48

query I rowsort
SELECT DISTINCT + 14 + + 80 col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT ALL + MIN( DISTINCT - 63 ) col1
----
-63

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL + MIN ( DISTINCT - 63 ) col1
----
-63

query II rowsort
SELECT ALL 96 AS col0, 31 + - 31 AS col2
----
96
0

query I rowsort
SELECT + 18 + 69 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT - COALESCE ( 36, COUNT( * ) * - - COUNT( * ), + 48 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5093
SELECT - COALESCE ( 36, COUNT ( * ) * - - COUNT ( * ), + 48 ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT + NULLIF ( 7, 87 + + + 49 - 2 * + COUNT( * ) * 65 ) + 6
----
13

skipif mysql # not compatible
query I rowsort label-5094
SELECT + NULLIF ( 7, 87 + + + 49 - 2 * + COUNT ( * ) * 65 ) + 6
----
13

query I rowsort
SELECT ALL + + 20 - - 17 AS col1
----
37

onlyif mysql # DIV for integer division: 
query II rowsort label-5096
SELECT - + 22 AS col0, + 25 DIV + 54 - + 25 + + 36
----
-22
11

skipif mysql # not compatible
query II rowsort label-5096
SELECT - + 22 AS col0, + 25 / + 54 - + 25 + + 36
----
-22
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT + - COUNT( * ) + 79
----
78

skipif mysql # not compatible
query I rowsort label-5097
SELECT + - COUNT ( * ) + 79
----
78

query I rowsort
SELECT ALL - 40 - + 12
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT - COUNT( * ) + 3 + - + NULLIF ( 33, + 56 + + 56 * + 8 + + COUNT( * ) ) + 49 * - 18
----
-913

skipif mysql # not compatible
query I rowsort label-5099
SELECT - COUNT ( * ) + 3 + - + NULLIF ( 33, + 56 + + 56 * + 8 + + COUNT ( * ) ) + 49 * - 18
----
-913

onlyif mysql # aggregate syntax: 
query II rowsort label-5100
SELECT ALL + 79 * 17, + COUNT( * ) - - + 95 AS col1
----
1343
96

skipif mysql # not compatible
query II rowsort label-5100
SELECT ALL + 79 * 17, + COUNT ( * ) - - + 95 AS col1
----
1343
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5101
SELECT + MIN( DISTINCT + 46 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5101
SELECT + MIN ( DISTINCT + 46 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 15 * 36 * 78 * 65 col0
----
-2737800

query I rowsort
SELECT ALL 15 * - 57 AS col0
----
-855

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5104
SELECT - NULLIF ( + 85, 79 * + NULLIF ( - 5, - 91 * - - SUM( - 78 ) + + 70 * - SUM( DISTINCT 43 + + 65 ) + 84 ) + - MIN( ALL + 57 ) ) DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-5104
SELECT - NULLIF ( + 85, 79 * + NULLIF ( - 5, - 91 * - - SUM ( - 78 ) + + 70 * - SUM ( DISTINCT 43 + + 65 ) + 84 ) + - MIN ( ALL + 57 ) ) / 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT DISTINCT 50 * - - COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT 50 * - - COUNT ( * ) AS col2
----
50

query I rowsort
SELECT ALL - 16 * + + 42 AS col2
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT - 73 * - COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-5107
SELECT - 73 * - COUNT ( * ) AS col0
----
73

query I rowsort
SELECT 99 + + 59 * - ( - 19 ) * + 97 AS col0
----
108836

query I rowsort
SELECT ALL + 44 + - 49 * + 65 * + - 85 AS col1
----
270769

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5110
SELECT ALL CAST( NULL AS DECIMAL ) + COUNT( * ) * - - COUNT( * ) - + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL CAST ( NULL AS REAL ) + COUNT ( * ) * - - COUNT ( * ) - + 3 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT - 4 * + COUNT( * ) + - 53
----
-57

skipif mysql # not compatible
query I rowsort label-5111
SELECT - 4 * + COUNT ( * ) + - 53
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-5112
SELECT ALL - COUNT( * ) * - COUNT( * ), 46 AS col0
----
1
46

skipif mysql # not compatible
query II rowsort label-5112
SELECT ALL - COUNT ( * ) * - COUNT ( * ), 46 AS col0
----
1
46

query I rowsort
SELECT 96 * - 57
----
-5472

query II rowsort
SELECT - 9 + + 93 AS col2, CASE + 65 WHEN + 25 THEN + + 72 END * 44 + 17 * + 87 AS col2
----
84
NULL

query I rowsort
SELECT DISTINCT + - 18 + 9 + - 66 AS col2
----
-75

query I rowsort
SELECT ALL - 46 + - - ( + + 76 ) * - 81 AS col2
----
-6202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5117
SELECT ALL + CASE + + 86 WHEN + - MIN( ALL + 18 ) - 31 THEN + 36 / CASE 25 WHEN - 88 THEN 35 - CASE 95 WHEN - 15 THEN CASE COALESCE ( + SUM( ALL 54 ), COUNT( * ) + 97, 63 * + CAST( 37 AS SIGNED ) ) WHEN 26 THEN + 78 END END ELSE 52 * MAX( ALL + 2 * + 97 ) END END * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL + CASE + + 86 WHEN + - MIN ( ALL + 18 ) - 31 THEN + 36 / CASE 25 WHEN - 88 THEN 35 - CASE 95 WHEN - 15 THEN CASE COALESCE ( + SUM ( ALL 54 ), COUNT ( * ) + 97, 63 * + CAST ( 37 AS INTEGER ) ) WHEN 26 THEN + 78 END END ELSE 52 * MAX ( ALL + 2 * + 97 ) END END * 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT + 76 * 41 + - 52 - - 44 + - COUNT( * ) * + COUNT( * ) * + + 3 AS col0
----
3105

skipif mysql # not compatible
query I rowsort label-5118
SELECT + 76 * 41 + - 52 - - 44 + - COUNT ( * ) * + COUNT ( * ) * + + 3 AS col0
----
3105

query I rowsort
SELECT ALL - 85 + + 50 AS col2
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5120
SELECT ALL COUNT( * ) DIV COUNT( * ) + 18
----
19

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL COUNT ( * ) / COUNT ( * ) + 18
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT ALL + COUNT( * ) - 56 * + + 65
----
-3639

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL + COUNT ( * ) - 56 * + + 65
----
-3639

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT - COUNT( * ) * 3
----
-3

skipif mysql # not compatible
query I rowsort label-5122
SELECT - COUNT ( * ) * 3
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5123
SELECT ALL + - ( + - CASE + SUM( DISTINCT + 71 ) WHEN - + ( - 16 ) DIV 16 + MIN( + 30 ) THEN - 28 * - 86 + 12 * 40 WHEN + 31 * 75 THEN NULL ELSE 75 + - 36 * 92 END ) DIV NULLIF ( - SUM( - 67 ) * + 17, 97 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL + - ( + - CASE + SUM ( DISTINCT + 71 ) WHEN - + ( - 16 ) / 16 + MIN ( + 30 ) THEN - 28 * - 86 + 12 * 40 WHEN + 31 * 75 THEN NULL ELSE 75 + - 36 * 92 END ) / NULLIF ( - SUM ( - 67 ) * + 17, 97 ) AS col0
----
-2

query I rowsort
SELECT DISTINCT NULLIF ( - 71, - 49 * 11 )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5125
SELECT COUNT( * ) * + - CAST( + 65 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-5125
SELECT COUNT ( * ) * + - CAST ( + 65 AS INTEGER )
----
-65

query II rowsort
SELECT 14 - + - 49, 96 * - 54 AS col1
----
63
-5184

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT ALL 49 * ( + 85 ) * + MAX( + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL 49 * ( + 85 ) * + MAX ( + 0 )
----
0

query I rowsort
SELECT ALL - 20 * + 68
----
-1360

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5129
SELECT DISTINCT 51, 94 DIV + - MIN( ALL 36 ) + - ( - + 41 ) AS col2
----
51
39

skipif mysql # not compatible
query II rowsort label-5129
SELECT DISTINCT 51, 94 / + - MIN ( ALL 36 ) + - ( - + 41 ) AS col2
----
51
39

query I rowsort
SELECT DISTINCT 74 * - NULLIF ( 28, - 46 ) AS col0
----
-2072

query II rowsort
SELECT ALL 57 col2, - 4
----
57
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5132
SELECT + 16, + 24 / + ( CAST( NULL AS SIGNED ) ) + 30 AS col1
----
16
NULL

skipif mysql # not compatible
query II rowsort label-5132
SELECT + 16, + 24 / + ( CAST ( NULL AS INTEGER ) ) + 30 AS col1
----
16
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT DISTINCT 3 + COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT 3 + COUNT ( * ) AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5134
SELECT 19 DIV + - CAST( + 42 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5134
SELECT 19 / + - CAST ( + 42 AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL 55 + - - COUNT( * ) * 43
----
98

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL 55 + - - COUNT ( * ) * 43
----
98

query I rowsort
SELECT DISTINCT + 30 + + 70 + + 44
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5137
SELECT CAST( NULL AS SIGNED ) / + + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5137
SELECT CAST ( NULL AS INTEGER ) / + + 58 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT DISTINCT + COUNT( * ) + + + 95 col0
----
96

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT + COUNT ( * ) + + + 95 col0
----
96

query II rowsort
SELECT ALL - 83, + 11 AS col0
----
-83
11

query I rowsort
SELECT ALL 19 + + 11
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT ( + 85 ) * MIN( DISTINCT + - ( CASE - 90 WHEN - 98 * - 22 THEN + 17 WHEN - 17 / 23 THEN NULL END ) ) + + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5141
SELECT ( + 85 ) * MIN ( DISTINCT + - ( CASE - 90 WHEN - 98 * - 22 THEN + 17 WHEN - 17 / 23 THEN NULL END ) ) + + 82 AS col1
----
NULL

query I rowsort
SELECT 28 * + 60 * - 93 * 69
----
-10780560

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT ALL - COUNT( - 14 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL - COUNT ( - 14 ) col2
----
-1

query II rowsort
SELECT + 92 AS col0, - 43 * 87
----
92
-3741

onlyif mysql # DIV for integer division: 
query I rowsort label-5145
SELECT 34 DIV + 41
----
0

skipif mysql # not compatible
query I rowsort label-5145
SELECT 34 / + 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT + + MIN( - + 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-5146
SELECT + + MIN ( - + 52 )
----
-52

query I rowsort
SELECT + 60 - 91 AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5148
SELECT - 64 * + CAST( + 56 AS SIGNED ) * - 4 + - - 88 col2
----
14424

skipif mysql # not compatible
query I rowsort label-5148
SELECT - 64 * + CAST ( + 56 AS INTEGER ) * - 4 + - - 88 col2
----
14424

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT - 32 * + COUNT( * ) + + - 14
----
-46

skipif mysql # not compatible
query I rowsort label-5149
SELECT - 32 * + COUNT ( * ) + + - 14
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-5150
SELECT ALL + COUNT( * ) - 87 + - - 84 AS col1, 95 AS col1
----
-2
95

skipif mysql # not compatible
query II rowsort label-5150
SELECT ALL + COUNT ( * ) - 87 + - - 84 AS col1, 95 AS col1
----
-2
95

query I rowsort
SELECT ALL - 34 - + 48 AS col0
----
-82

query I rowsort
SELECT ALL + + 66 * - + 83
----
-5478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5153
SELECT - CASE 53 WHEN - MAX( + 72 ) + - 30 THEN - 31 DIV - + 27 ELSE - 16 END AS col1
----
16

skipif mysql # not compatible
query I rowsort label-5153
SELECT - CASE 53 WHEN - MAX ( + 72 ) + - 30 THEN - 31 / - + 27 ELSE - 16 END AS col1
----
16

query I rowsort
SELECT - 9 - + + 11 AS col2
----
-20

onlyif mysql # DIV for integer division: 
query II rowsort label-5155
SELECT - + 72, NULLIF ( + - 9, + 89 ) DIV 68 + + 91 + - 71 AS col1
----
-72
20

skipif mysql # not compatible
query II rowsort label-5155
SELECT - + 72, NULLIF ( + - 9, + 89 ) / 68 + + 91 + - 71 AS col1
----
-72
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT - 23 - - 65 - + - 76 * + + CASE + + CASE + 89 WHEN + 85 - + 61 - - 88 THEN + SUM( 40 ) * MIN( DISTINCT 5 * - 61 ) WHEN + 74 / NULLIF ( 30 * - 76, + COUNT( * ) ) + 9 THEN - SUM( 22 ) * + ( 62 + - 28 ) ELSE NULL END WHEN + 64 THEN 66 WHEN 36 + 51 THEN NULL ELSE - 84 * 40 END * - MIN( + 19 ) * + 47
----
228036522

skipif mysql # not compatible
query I rowsort label-5156
SELECT - 23 - - 65 - + - 76 * + + CASE + + CASE + 89 WHEN + 85 - + 61 - - 88 THEN + SUM ( 40 ) * MIN ( DISTINCT 5 * - 61 ) WHEN + 74 / NULLIF ( 30 * - 76, + COUNT ( * ) ) + 9 THEN - SUM ( 22 ) * + ( 62 + - 28 ) ELSE NULL END WHEN + 64 THEN 66 WHEN 36 + 51 THEN NULL ELSE - 84 * 40 END * - MIN ( + 19 ) * + 47
----
228036522

query I rowsort
SELECT ALL - - ( - + 40 ) - - 66 + + 36 + - 59
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5158
SELECT + 76 DIV - 69
----
-1

skipif mysql # not compatible
query I rowsort label-5158
SELECT + 76 / - 69
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT + ( - MAX( - 58 ) ) + 16 * + + CASE 84 WHEN + 37 + - - 29 + - 62 * - 12 THEN NULL WHEN + 90 THEN + 85 ELSE NULL END + - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5159
SELECT + ( - MAX ( - 58 ) ) + 16 * + + CASE 84 WHEN + 37 + - - 29 + - 62 * - 12 THEN NULL WHEN + 90 THEN + 85 ELSE NULL END + - 37 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5160
SELECT ALL COUNT( * ) AS col2, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-5160
SELECT ALL COUNT ( * ) AS col2, + COUNT ( * )
----
1
1

query I rowsort
SELECT 28 + - 0 AS col2
----
28

query I rowsort
SELECT ALL + COALESCE ( + + 33, - - 10 ) * + 27 * - 26 * + 2 AS col2
----
-46332

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT DISTINCT CASE + 47 WHEN 86 THEN + + ( - 4 ) ELSE NULL END / + 91 * + 90 * + + COALESCE ( - 43, + 56, 53 + + 2 ) + COUNT( * ) * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT CASE + 47 WHEN 86 THEN + + ( - 4 ) ELSE NULL END / + 91 * + 90 * + + COALESCE ( - 43, + 56, 53 + + 2 ) + COUNT ( * ) * 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT ALL - 61 + - COUNT( * ) - + 35
----
-97

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL - 61 + - COUNT ( * ) - + 35
----
-97

query I rowsort
SELECT DISTINCT - 43 + 50
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT COUNT( * ) * - + 59 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-5166
SELECT COUNT ( * ) * - + 59 AS col2
----
-59

query I rowsort
SELECT ALL 62 + + 53 AS col1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT DISTINCT COUNT( * ) * - 29 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-5168
SELECT DISTINCT COUNT ( * ) * - 29 AS col2
----
-29

query II rowsort
SELECT ALL 79 + - 55 col0, + 84 AS col0
----
24
84

onlyif mysql # aggregate syntax: 
query II rowsort label-5170
SELECT DISTINCT - 44 + COUNT( * ) - + NULLIF ( - 8, MAX( ALL - 59 ) ) + - COUNT( * ), 36 col2
----
-36
36

skipif mysql # not compatible
query II rowsort label-5170
SELECT DISTINCT - 44 + COUNT ( * ) - + NULLIF ( - 8, MAX ( ALL - 59 ) ) + - COUNT ( * ), 36 col2
----
-36
36

query I rowsort
SELECT + 61 + - - 87
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT ALL COALESCE ( - + 11, + ( - NULLIF ( 29, - - COUNT( * ) - - 70 ) ) ) * + - 36 * + - MIN( DISTINCT + 26 ) AS col0
----
-10296

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL COALESCE ( - + 11, + ( - NULLIF ( 29, - - COUNT ( * ) - - 70 ) ) ) * + - 36 * + - MIN ( DISTINCT + 26 ) AS col0
----
-10296

query I rowsort
SELECT ALL + 96 * - + ( + - 39 ) + + 8 AS col1
----
3752

query II rowsort
SELECT + 7 + + ( 35 ) + - 62, ( + 74 ) col0
----
-20
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT DISTINCT - ( + 49 ) * - - COUNT( * ) + + 47 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT - ( + 49 ) * - - COUNT ( * ) + + 47 AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5176
SELECT - CASE - 15 WHEN MIN( - NULLIF ( + - 94, - + 39 ) ) THEN ( 24 ) * - 66 - 12 + + 56 * - CAST( - 2 + AVG ( ALL 95 + 25 ) AS SIGNED ) WHEN + 10 THEN + COUNT( * ) END * 62 + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5176
SELECT - CASE - 15 WHEN MIN ( - NULLIF ( + - 94, - + 39 ) ) THEN ( 24 ) * - 66 - 12 + + 56 * - CAST ( - 2 + AVG ( ALL 95 + 25 ) AS INTEGER ) WHEN + 10 THEN + COUNT ( * ) END * 62 + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT ALL - COUNT( * ) * + + 68 - - CASE 61 WHEN COUNT( * ) - 39 - + + COUNT( * ) / ( 77 ) * - COUNT( * ) THEN ( MAX( DISTINCT + 37 ) ) * - 22 WHEN 54 THEN 62 * + 97 WHEN COUNT( * ) THEN NULL END + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL - COUNT ( * ) * + + 68 - - CASE 61 WHEN COUNT ( * ) - 39 - + + COUNT ( * ) / ( 77 ) * - COUNT ( * ) THEN ( MAX ( DISTINCT + 37 ) ) * - 22 WHEN 54 THEN 62 * + 97 WHEN COUNT ( * ) THEN NULL END + 40
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5178
SELECT DISTINCT + 36 * - 12 - ( + CAST( NULL AS SIGNED ) ) + + 27 + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT + 36 * - 12 - ( + CAST ( NULL AS INTEGER ) ) + + 27 + 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT ALL - CASE + 23 WHEN + - SUM( ALL + 54 ) THEN NULL ELSE - + COALESCE ( - NULLIF ( - ( + COUNT( * ) ), 79 ), ( - 33 ) - ( 20 ) ) END * - 70
----
-70

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL - CASE + 23 WHEN + - SUM ( ALL + 54 ) THEN NULL ELSE - + COALESCE ( - NULLIF ( - ( + COUNT ( * ) ), 79 ), ( - 33 ) - ( 20 ) ) END * - 70
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT + 58 + + + 88 * MAX( DISTINCT + - 36 ) + 89
----
-3021

skipif mysql # not compatible
query I rowsort label-5180
SELECT + 58 + + + 88 * MAX ( DISTINCT + - 36 ) + 89
----
-3021

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5181
SELECT DISTINCT + 27 DIV + - COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT + 27 / + - COUNT ( * ) AS col2
----
-27

query I rowsort
SELECT ALL + - 88 * - 34 AS col0
----
2992

query II rowsort
SELECT + 85 * - 47 + + 59 * 20 AS col2, + 23 AS col1
----
-2815
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT - MAX( - + 29 ) * - 66
----
-1914

skipif mysql # not compatible
query I rowsort label-5184
SELECT - MAX ( - + 29 ) * - 66
----
-1914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5185
SELECT + + NULLIF ( + + COALESCE ( + + 57, + 1, + + 13 + + 24 * - ( - COUNT( + + 39 ) ) - COUNT( * ) ), - CAST( - 92 AS SIGNED ) ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-5185
SELECT + + NULLIF ( + + COALESCE ( + + 57, + 1, + + 13 + + 24 * - ( - COUNT ( + + 39 ) ) - COUNT ( * ) ), - CAST ( - 92 AS INTEGER ) ) AS col2
----
57

query I rowsort
SELECT ALL - 3 * - 20 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT + - COUNT( * ) * 45
----
-45

skipif mysql # not compatible
query I rowsort label-5187
SELECT + - COUNT ( * ) * 45
----
-45

query I rowsort
SELECT - + 33 + + NULLIF ( 60, - 17 ) - - + 68 + - + 49
----
46

query I rowsort
SELECT + + 64 * - 23 AS col2
----
-1472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5190
SELECT ALL COUNT( * ) * + 5 DIV 4 col1
----
1

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL COUNT ( * ) * + 5 / 4 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT - 1 * - + CASE + + 24 WHEN - 4 * - - COALESCE ( - 82, + 55 ) THEN NULL WHEN + - ( MIN( 72 ) ) THEN COUNT( * ) ELSE NULL END * + COUNT( + 85 ) + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT - 1 * - + CASE + + 24 WHEN - 4 * - - COALESCE ( - 82, + 55 ) THEN NULL WHEN + - ( MIN ( 72 ) ) THEN COUNT ( * ) ELSE NULL END * + COUNT ( + 85 ) + 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-5192
SELECT ALL + - COUNT( * ) * - 72 + - + 66 - + 89, 50 col2, - 84 - + COUNT( * ) AS col1
----
-83
50
-85

skipif mysql # not compatible
query III rowsort label-5192
SELECT ALL + - COUNT ( * ) * - 72 + - + 66 - + 89, 50 col2, - 84 - + COUNT ( * ) AS col1
----
-83
50
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT DISTINCT + + SUM( + 54 ) + - ( - - COUNT( * ) ) + - 37 + - - 79
----
95

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT + + SUM ( + 54 ) + - ( - - COUNT ( * ) ) + - 37 + - - 79
----
95

query I rowsort
SELECT + ( - 36 ) * 79 AS col0
----
-2844

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT - 80 * + COALESCE ( 23, - - MAX( + 48 ) )
----
-1840

skipif mysql # not compatible
query I rowsort label-5195
SELECT - 80 * + COALESCE ( 23, - - MAX ( + 48 ) )
----
-1840

query I rowsort
SELECT DISTINCT - 39 * + 75
----
-2925

query I rowsort
SELECT DISTINCT + CASE 28 WHEN + COALESCE ( COALESCE ( - COALESCE ( 95, 37 ), - 57 ), 83 ) THEN - 53 * - 91 WHEN 85 THEN NULL END + 71 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5198
SELECT ALL - 30 + + 56 + 48 + - - 34 * 19 * 44 DIV - 71 AS col1
----
-326

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL - 30 + + 56 + 48 + - - 34 * 19 * 44 / - 71 AS col1
----
-326

onlyif mysql # DIV for integer division: 
query I rowsort label-5199
SELECT - 44 - + 29 DIV - - 68
----
-44

skipif mysql # not compatible
query I rowsort label-5199
SELECT - 44 - + 29 / - - 68
----
-44

query I rowsort
SELECT ALL - 57 * 10 * + 22
----
-12540

query II rowsort
SELECT - 14, - ( + - 10 ) col0
----
-14
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5202
SELECT ALL CASE - + 35 WHEN - 0 + - ( + CAST( - 36 AS SIGNED ) ) THEN - - 84 * + COUNT( * ) ELSE + 84 END
----
84

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL CASE - + 35 WHEN - 0 + - ( + CAST ( - 36 AS INTEGER ) ) THEN - - 84 * + COUNT ( * ) ELSE + 84 END
----
84

query I rowsort
SELECT ALL 8 + - 97 * + 52
----
-5036

query I rowsort
SELECT - 14 * - 87 AS col0
----
1218

query I rowsort
SELECT - ( - 57 ) + - 10
----
47

query II rowsort
SELECT 17 AS col0, 96
----
17
96

query I rowsort
SELECT + 66 - - 41 + - 78 AS col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5208
SELECT ALL - CASE + 55 WHEN + + 12 * + - 44 * + NULLIF ( - 72, - + 9 + + + 49 + + 26 ) + - - 96 THEN NULL WHEN 39 + COUNT( * ) THEN NULL WHEN + 93 THEN NULL ELSE 63 * - 33 END DIV 68
----
30

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL - CASE + 55 WHEN + + 12 * + - 44 * + NULLIF ( - 72, - + 9 + + + 49 + + 26 ) + - - 96 THEN NULL WHEN 39 + COUNT ( * ) THEN NULL WHEN + 93 THEN NULL ELSE 63 * - 33 END / 68
----
30

query I rowsort
SELECT + NULLIF ( - 15, 45 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT - SUM( - 4 ) * 59 - + + 85 * + COUNT( * )
----
151

skipif mysql # not compatible
query I rowsort label-5210
SELECT - SUM ( - 4 ) * 59 - + + 85 * + COUNT ( * )
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5211
SELECT CAST( + 75 AS SIGNED ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-5211
SELECT CAST ( + 75 AS INTEGER ) AS col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5212
SELECT ALL CAST( - + 44 AS SIGNED ) * - 84 + - + 10 - + CAST( - - 5 AS SIGNED ) AS col1
----
3681

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL CAST ( - + 44 AS INTEGER ) * - 84 + - + 10 - + CAST ( - - 5 AS INTEGER ) AS col1
----
3681

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT + MAX( DISTINCT - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-5213
SELECT + MAX ( DISTINCT - 73 )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5214
SELECT DISTINCT + 42 / + + 2 * - COUNT( * ) * + 26 * - - 31 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT + 42 / + + 2 * - COUNT ( * ) * + 26 * - - 31 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT ALL + MAX( ALL - ( - 52 ) )
----
52

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL + MAX ( ALL - ( - 52 ) )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT DISTINCT + COUNT( * ) * + 18 col0
----
18

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT + COUNT ( * ) * + 18 col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5217
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) + + + 45 + - + MIN( DISTINCT + NULLIF ( - - 26, + 35 ) ) - - + 90 * - 1 + + - 23 * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-5217
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) + + + 45 + - + MIN ( DISTINCT + NULLIF ( - - 26, + 35 ) ) - - + 90 * - 1 + + - 23 * - 69
----
NULL

query II rowsort
SELECT ALL + - 86, - 11 AS col2
----
-86
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5219
SELECT ALL - 98 * + CASE - COUNT( * ) WHEN - - 85 - + 38 + - - COUNT( * ) + - - 44 + - CAST( NULL AS SIGNED ) THEN + 84 END * + - 42 - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL - 98 * + CASE - COUNT ( * ) WHEN - - 85 - + 38 + - - COUNT ( * ) + - - 44 + - CAST ( NULL AS INTEGER ) THEN + 84 END * + - 42 - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT - CASE 6 WHEN + 27 THEN + COUNT( * ) WHEN - + MAX( 62 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5220
SELECT - CASE 6 WHEN + 27 THEN + COUNT ( * ) WHEN - + MAX ( 62 ) THEN NULL END AS col0
----
NULL

query II rowsort
SELECT + - 54 * - + 93 + + 29, 80 * - 29 * 42 * + 65 AS col0
----
5051
-6333600

onlyif mysql # DIV for integer division: 
query I rowsort label-5222
SELECT - + 43 + + 99 DIV 49
----
-41

skipif mysql # not compatible
query I rowsort label-5222
SELECT - + 43 + + 99 / 49
----
-41

query I rowsort
SELECT + - ( 20 ) AS col1
----
-20

query I rowsort
SELECT ALL + ( - - 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT ( + NULLIF ( + - COUNT( * ), 49 * - 76 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5225
SELECT ( + NULLIF ( + - COUNT ( * ), 49 * - 76 ) )
----
-1

query I rowsort
SELECT + 44 - 21 AS col1
----
23

query I rowsort
SELECT ALL + - ( + 16 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT - ( SUM( ALL - + 18 ) ) col2
----
18

skipif mysql # not compatible
query I rowsort label-5228
SELECT - ( SUM ( ALL - + 18 ) ) col2
----
18

query I rowsort
SELECT + 98 * - - NULLIF ( + 78, + 11 * + - 91 * + AVG ( + 13 ) ) AS col2
----
7644

query I rowsort
SELECT + 94 * - 73 + + 57 * - + 37 AS col2
----
-8971

query I rowsort
SELECT + + 36 - - - ( - - 51 ) + + - 19 col2
----
-34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5232
SELECT ALL + 30 * + 61 * - CAST( NULL AS DECIMAL ) * + CASE + 27 WHEN CASE - - 43 WHEN + - 43 THEN + 80 + + 16 ELSE NULL END THEN NULL ELSE + 25 - + 77 END + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL + 30 * + 61 * - CAST ( NULL AS REAL ) * + CASE + 27 WHEN CASE - - 43 WHEN + - 43 THEN + 80 + + 16 ELSE NULL END THEN NULL ELSE + 25 - + 77 END + 70 AS col0
----
NULL

query I rowsort
SELECT - - 61 + - - 80
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5234
SELECT DISTINCT COUNT( * ) * + ( - 96 ) DIV + 76
----
-1

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT COUNT ( * ) * + ( - 96 ) / + 76
----
-1

query I rowsort
SELECT 84 + + 57 + 5
----
146

query I rowsort
SELECT ALL + 98 + - + 62 AS col2
----
36

query II rowsort
SELECT - 12, 61 AS col1
----
-12
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5238
SELECT 12 + + 80 * + 44 + - CAST( - 40 AS SIGNED )
----
3572

skipif mysql # not compatible
query I rowsort label-5238
SELECT 12 + + 80 * + 44 + - CAST ( - 40 AS INTEGER )
----
3572

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT ALL COUNT( * ) + - - 82 * 8 * SUM( + 25 )
----
16401

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL COUNT ( * ) + - - 82 * 8 * SUM ( + 25 )
----
16401

onlyif mysql # aggregate syntax: 
query II rowsort label-5240
SELECT 8 AS col0, COALESCE ( - 66, - 67 ) * 91 * + COUNT( * ) - + 52 AS col0
----
8
-6058

skipif mysql # not compatible
query II rowsort label-5240
SELECT 8 AS col0, COALESCE ( - 66, - 67 ) * 91 * + COUNT ( * ) - + 52 AS col0
----
8
-6058

query I rowsort
SELECT 28 + - - 39 * 6 + - - 53 + + 60 + - - 10 + - 45 * 67 AS col2
----
-2630

query I rowsort
SELECT 99 + 72 + + ( + - 61 ) * - + 44
----
2855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5243
SELECT 89 AS col1, AVG ( DISTINCT + 19 ) + - NULLIF ( + CAST( NULL AS SIGNED ), - - 46 * - COUNT( * ) + + 59 )
----
89
NULL

skipif mysql # not compatible
query II rowsort label-5243
SELECT 89 AS col1, AVG ( DISTINCT + 19 ) + - NULLIF ( + CAST ( NULL AS INTEGER ), - - 46 * - COUNT ( * ) + + 59 )
----
89
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5244
SELECT 38 + 99 + - 45 DIV COUNT( * ) col0
----
92

skipif mysql # not compatible
query I rowsort label-5244
SELECT 38 + 99 + - 45 / COUNT ( * ) col0
----
92

query I rowsort
SELECT DISTINCT - 8 * - + 75 AS col1
----
600

query I rowsort
SELECT 18 * + - 12 AS col0
----
-216

query I rowsort
SELECT 54 * - - 79 col0
----
4266

query I rowsort
SELECT ALL - ( - - 36 ) * + 42 * 31 AS col0
----
-46872

query II rowsort
SELECT ALL 85 AS col0, 43 AS col0
----
85
43

onlyif mysql # aggregate syntax: 
query II rowsort label-5250
SELECT DISTINCT 95 * - ( 15 ) * - 78, - NULLIF ( + CASE - 1 WHEN 43 THEN + 45 END, + + MIN( DISTINCT - - 9 ) * - COALESCE ( 91 * + 49, 36 ) + - 13 ) AS col0
----
111150
NULL

skipif mysql # not compatible
query II rowsort label-5250
SELECT DISTINCT 95 * - ( 15 ) * - 78, - NULLIF ( + CASE - 1 WHEN 43 THEN + 45 END, + + MIN ( DISTINCT - - 9 ) * - COALESCE ( 91 * + 49, 36 ) + - 13 ) AS col0
----
111150
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5251
SELECT + 26 / + 45 * + 53 + + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT + 26 / + 45 * + 53 + + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( 43, + - 38 )
----
-43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5253
SELECT ( - + 19 ) DIV + + CAST( + + 77 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5253
SELECT ( - + 19 ) / + + CAST ( + + 77 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5254
SELECT ALL + - COUNT( * ) DIV + 27 * ( 79 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL + - COUNT ( * ) / + 27 * ( 79 ) AS col1
----
0

query I rowsort
SELECT 65 * + 70
----
4550

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT - 76 + + - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-5256
SELECT - 76 + + - COUNT ( * )
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-5257
SELECT + - COUNT( * ) AS col1, 73 * ( + COUNT( * ) ) + - 77 * 13 col2
----
-1
-928

skipif mysql # not compatible
query II rowsort label-5257
SELECT + - COUNT ( * ) AS col1, 73 * ( + COUNT ( * ) ) + - 77 * 13 col2
----
-1
-928

query I rowsort
SELECT - 20 * - 6
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5259
SELECT + CAST( NULL AS SIGNED ) * 27 + - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5259
SELECT + CAST ( NULL AS INTEGER ) * 27 + - 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL + COUNT( * ) + - 46 - - + 56
----
11

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL + COUNT ( * ) + - 46 - - + 56
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5261
SELECT + COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5261
SELECT + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL - 47, 5 * + 86 AS col2
----
-47
430

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT + COALESCE ( + + 65, 32 * - - 73 * COUNT( * ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-5263
SELECT + COALESCE ( + + 65, 32 * - - 73 * COUNT ( * ) ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT ALL + - 50 + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL + - 50 + COUNT ( * )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT DISTINCT - - MIN( DISTINCT + 15 ) + ( 49 )
----
64

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT - - MIN ( DISTINCT + 15 ) + ( 49 )
----
64

query II rowsort
SELECT + 95, - 95 + + + 81 AS col2
----
95
-14

query I rowsort
SELECT 14 * + 93 + + 26 AS col2
----
1328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5268
SELECT CASE 26 WHEN + 62 THEN + CAST( NULL AS SIGNED ) ELSE NULL END * - 91 * - 75 + + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5268
SELECT CASE 26 WHEN + 62 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END * - 91 * - 75 + + - 57
----
NULL

query I rowsort
SELECT 3 + + 2 AS col2
----
5

query II rowsort
SELECT + 1 AS col1, - 52
----
1
-52

query II rowsort
SELECT DISTINCT - + 84 AS col2, - 36
----
-84
-36

query II rowsort
SELECT 84 * + 93, 45 AS col2
----
7812
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5273
SELECT COUNT( * ) DIV + 95, 7 DIV - - 77 * - - 59 AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-5273
SELECT COUNT ( * ) / + 95, 7 / - - 77 * - - 59 AS col1
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT ALL COUNT( * ) * + - COALESCE ( - 52, - 19 * 14 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL COUNT ( * ) * + - COALESCE ( - 52, - 19 * 14 ) AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5275
SELECT COUNT( * ) * - 51 * + 6 * + + COALESCE ( - CAST( NULL AS SIGNED ), - + ( - 54 ) )
----
-16524

skipif mysql # not compatible
query I rowsort label-5275
SELECT COUNT ( * ) * - 51 * + 6 * + + COALESCE ( - CAST ( NULL AS INTEGER ), - + ( - 54 ) )
----
-16524

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT COUNT( DISTINCT + - 3 ) + + 25 * - 18
----
-449

skipif mysql # not compatible
query I rowsort label-5276
SELECT COUNT ( DISTINCT + - 3 ) + + 25 * - 18
----
-449

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5277
SELECT 2 + + ( CASE - - 88 WHEN ( - + 55 ) THEN + - 33 WHEN - 96 * + COALESCE ( + 34, - AVG ( + 17 ) / 24 - 60 * - 99, + CAST( NULL AS DECIMAL ) * 8 ) THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5277
SELECT 2 + + ( CASE - - 88 WHEN ( - + 55 ) THEN + - 33 WHEN - 96 * + COALESCE ( + 34, - AVG ( + 17 ) / 24 - 60 * - 99, + CAST ( NULL AS REAL ) * 8 ) THEN NULL END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5278
SELECT NULLIF ( + CAST( + - 79 AS SIGNED ), - 50 ) * + + ( + 54 )
----
-4266

skipif mysql # not compatible
query I rowsort label-5278
SELECT NULLIF ( + CAST ( + - 79 AS INTEGER ), - 50 ) * + + ( + 54 )
----
-4266

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5279
SELECT 54 DIV + 82 * - 93 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5279
SELECT 54 / + 82 * - 93 * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT 28 - + - COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-5280
SELECT 28 - + - COUNT ( * )
----
29

query I rowsort
SELECT - 77 * + + 91 - + 69 + + + 20
----
-7056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5282
SELECT COUNT( * ) + + 49 AS col2, + 35 + 54 + - 79 + - - 4 + - + 59 * - 58 + - 96 * + CASE + - 65 WHEN + NULLIF ( + CAST( NULL AS SIGNED ), COALESCE ( 62, 28 * 43, + COUNT( * ) + 33 ) * + 64 + 22 ) THEN - COUNT( * ) WHEN - COUNT( * ) / 85 THEN NULL WHEN - COUNT( * ) + - 63 * 6 THEN NULL END AS col1
----
50
NULL

skipif mysql # not compatible
query II rowsort label-5282
SELECT COUNT ( * ) + + 49 AS col2, + 35 + 54 + - 79 + - - 4 + - + 59 * - 58 + - 96 * + CASE + - 65 WHEN + NULLIF ( + CAST ( NULL AS INTEGER ), COALESCE ( 62, 28 * 43, + COUNT ( * ) + 33 ) * + 64 + 22 ) THEN - COUNT ( * ) WHEN - COUNT ( * ) / 85 THEN NULL WHEN - COUNT ( * ) + - 63 * 6 THEN NULL END AS col1
----
50
NULL

query I rowsort
SELECT 93 - 1 AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5284
SELECT 80 * NULLIF ( + 25, - 37 * - - 33 + + CAST( NULL AS SIGNED ) + + 78 ) / - CAST( NULL AS SIGNED ) + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5284
SELECT 80 * NULLIF ( + 25, - 37 * - - 33 + + CAST ( NULL AS INTEGER ) + + 78 ) / - CAST ( NULL AS INTEGER ) + 99 AS col1
----
NULL

query II rowsort
SELECT + 74 * - 56, - 43 + + - 65 * - 66 - - 68 AS col2
----
-4144
4315

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT DISTINCT NULLIF ( + + COALESCE ( - - COALESCE ( 75, - 28 - + 24 * - - SUM( + 89 ) ), + - 13, + 18 * - 32 * + 2 ), 15 ) * 64 + 35 col1
----
4835

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT NULLIF ( + + COALESCE ( - - COALESCE ( 75, - 28 - + 24 * - - SUM ( + 89 ) ), + - 13, + 18 * - 32 * + 2 ), 15 ) * 64 + 35 col1
----
4835

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5287
SELECT 72 + 53 + + 86 + + + 23 DIV - - ( - 84 ) * - 23, + 22 + - + 37 * COUNT( * ) col1
----
211
-15

skipif mysql # not compatible
query II rowsort label-5287
SELECT 72 + 53 + + 86 + + + 23 / - - ( - 84 ) * - 23, + 22 + - + 37 * COUNT ( * ) col1
----
211
-15

query II rowsort
SELECT - 76 * - + 71 * 24 AS col1, + 50
----
129504
50

query I rowsort
SELECT 28 + 41 AS col0
----
69

query I rowsort
SELECT - 90 * 33 AS col2
----
-2970

query I rowsort
SELECT ALL + 36 * 79 + + 33 + + 19
----
2896

query I rowsort
SELECT - - 33 + 64 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT + COUNT( * ) * - 46 + 59
----
13

skipif mysql # not compatible
query I rowsort label-5293
SELECT + COUNT ( * ) * - 46 + 59
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5294
SELECT DISTINCT - COUNT( * ) * - 81 * + + CAST( - 88 AS SIGNED ) col2
----
-7128

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT - COUNT ( * ) * - 81 * + + CAST ( - 88 AS INTEGER ) col2
----
-7128

query I rowsort
SELECT - 87 * - 70 + - NULLIF ( 22, + 2 * - 58 )
----
6068

query II rowsort
SELECT DISTINCT + 26 * + 52 * 97, + 15 col2
----
131144
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5297
SELECT CAST( NULL AS SIGNED ) * - - 12 * - - 11 + - - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5297
SELECT CAST ( NULL AS INTEGER ) * - - 12 * - - 11 + - - 2 AS col1
----
NULL

query I rowsort
SELECT - 61 + - + 79 AS col1
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT + 67 + + - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-5299
SELECT + 67 + + - COUNT ( * )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-5300
SELECT - 79 * + MIN( - 52 ), 15 + CASE 90 WHEN + - 80 THEN NULL WHEN - 96 + COUNT( * ) * + 19 THEN NULL WHEN - COUNT( * ) / + 37 * + ( - 52 ) - 76 * COUNT( * ) THEN 94 * 34 END + - COUNT( DISTINCT 84 ) AS col2
----
4108
NULL

skipif mysql # not compatible
query II rowsort label-5300
SELECT - 79 * + MIN ( - 52 ), 15 + CASE 90 WHEN + - 80 THEN NULL WHEN - 96 + COUNT ( * ) * + 19 THEN NULL WHEN - COUNT ( * ) / + 37 * + ( - 52 ) - 76 * COUNT ( * ) THEN 94 * 34 END + - COUNT ( DISTINCT 84 ) AS col2
----
4108
NULL

query I rowsort
SELECT + 43 + - 2 + - 96 * - + 64 AS col2
----
6185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5302
SELECT - 55 + + COUNT( * ) DIV + - 93 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-5302
SELECT - 55 + + COUNT ( * ) / + - 93 AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5303
SELECT - COALESCE ( ( - CASE - - COUNT( * ) WHEN + ( 14 ) THEN - 71 ELSE NULL END ), + - 15 ), + MIN( + - CAST( NULL AS SIGNED ) ) AS col0
----
15
NULL

skipif mysql # not compatible
query II rowsort label-5303
SELECT - COALESCE ( ( - CASE - - COUNT ( * ) WHEN + ( 14 ) THEN - 71 ELSE NULL END ), + - 15 ), + MIN ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
15
NULL

query I rowsort
SELECT - 31 + - 83 + - - 28 + + + 56 AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5305
SELECT ALL CAST( NULL AS SIGNED ) * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL CAST ( NULL AS INTEGER ) * 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT DISTINCT CASE - COALESCE ( + 75, 59 * 31, - - COUNT( * ) ) WHEN MAX( + 11 ) THEN 97 + + 74 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5306
SELECT DISTINCT CASE - COALESCE ( + 75, 59 * 31, - - COUNT ( * ) ) WHEN MAX ( + 11 ) THEN 97 + + 74 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5307
SELECT DISTINCT 78 * + 40 * + + COUNT( * ) * 23 AS col1, 67 AS col1
----
71760
67

skipif mysql # not compatible
query II rowsort label-5307
SELECT DISTINCT 78 * + 40 * + + COUNT ( * ) * 23 AS col1, 67 AS col1
----
71760
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5308
SELECT DISTINCT 35 AS col2, 24 * - 64 * + CAST( - 84 AS SIGNED )
----
35
129024

skipif mysql # not compatible
query II rowsort label-5308
SELECT DISTINCT 35 AS col2, 24 * - 64 * + CAST ( - 84 AS INTEGER )
----
35
129024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5309
SELECT ALL CAST( NULL AS SIGNED ) * - 1 * - - 69 * - ( + + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL CAST ( NULL AS INTEGER ) * - 1 * - - 69 * - ( + + 66 )
----
NULL

query I rowsort
SELECT - 13 + + 44 AS col1
----
31

query I rowsort
SELECT + 77 + - ( - - 35 )
----
42

query I rowsort
SELECT - 89 * + - 34 AS col2
----
3026

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5313
SELECT + COUNT( * ) + + NULLIF ( - ( - MIN( DISTINCT - + COALESCE ( + 67, + 76 ) ) ), ( COALESCE ( - 89, 84 * + COUNT( * ) ) ) ) + 50 DIV + 73 * COUNT( * ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-5313
SELECT + COUNT ( * ) + + NULLIF ( - ( - MIN ( DISTINCT - + COALESCE ( + 67, + 76 ) ) ), ( COALESCE ( - 89, 84 * + COUNT ( * ) ) ) ) + 50 / + 73 * COUNT ( * ) AS col0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-5314
SELECT - - COALESCE ( 75, + + 81 - - + 55 DIV + + NULLIF ( + 2, + 38 - - + 77 + + + 91 * - - 18 DIV - 5 + - 74 ) * - 27 )
----
75

skipif mysql # not compatible
query I rowsort label-5314
SELECT - - COALESCE ( 75, + + 81 - - + 55 / + + NULLIF ( + 2, + 38 - - + 77 + + + 91 * - - 18 / - 5 + - 74 ) * - 27 )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5315
SELECT + 62 + - 46 DIV + - 16 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5315
SELECT + 62 + - 46 / + - 16 AS col1
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5316
SELECT ALL - 86 + - COALESCE ( - COALESCE ( - 8, - 59 + + 3, 63 ), 66, + - COALESCE ( - COUNT( * ), + 31 * + - 98 + 1 - - ( - 19 ), MIN( 7 ) * COUNT( * ) + + 54 * - ( - COUNT( * ) ) ) ) DIV - COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL - 86 + - COALESCE ( - COALESCE ( - 8, - 59 + + 3, 63 ), 66, + - COALESCE ( - COUNT ( * ), + 31 * + - 98 + 1 - - ( - 19 ), MIN ( 7 ) * COUNT ( * ) + + 54 * - ( - COUNT ( * ) ) ) ) / - COUNT ( * ) AS col0
----
-78

query I rowsort
SELECT ALL - 75 * + 17 AS col0
----
-1275

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT DISTINCT + COUNT( * ) + 18
----
19

skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT + COUNT ( * ) + 18
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5319
SELECT + 24 + 74 + - CAST( NULL AS SIGNED ) + + 68 * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5319
SELECT + 24 + 74 + - CAST ( NULL AS INTEGER ) + + 68 * - 43
----
NULL

query I rowsort
SELECT ALL 94 + 79 * + - 69 AS col0
----
-5357

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5321
SELECT ALL + - 1 DIV - - COUNT( * ) + + - 78 * - COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL + - 1 / - - COUNT ( * ) + + - 78 * - COUNT ( * ) AS col2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5322
SELECT ( 73 ) DIV - - 27 + COUNT( - 13 ) col0
----
3

skipif mysql # not compatible
query I rowsort label-5322
SELECT ( 73 ) / - - 27 + COUNT ( - 13 ) col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT + - CASE + 83 WHEN + 33 THEN + 0 * + - 75 * - 31 + - + 52 ELSE 4 * 58 * ( + COUNT( * ) ) + - ( - + 80 ) * + 53 END
----
-4472

skipif mysql # not compatible
query I rowsort label-5323
SELECT + - CASE + 83 WHEN + 33 THEN + 0 * + - 75 * - 31 + - + 52 ELSE 4 * 58 * ( + COUNT ( * ) ) + - ( - + 80 ) * + 53 END
----
-4472

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT - + COUNT( * ) + - 41 * + + 81 + + - 99 AS col0
----
-3421

skipif mysql # not compatible
query I rowsort label-5324
SELECT - + COUNT ( * ) + - 41 * + + 81 + + - 99 AS col0
----
-3421

query II rowsort
SELECT ALL + - 23, 7 + + 60 AS col2
----
-23
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5326
SELECT DISTINCT + MIN( - 29 ) AS col2, + 49 * + 91 * - CAST( - - COUNT( + 11 ) AS SIGNED ) * - - 16 * - + 32 AS col0
----
-29
2283008

skipif mysql # not compatible
query II rowsort label-5326
SELECT DISTINCT + MIN ( - 29 ) AS col2, + 49 * + 91 * - CAST ( - - COUNT ( + 11 ) AS INTEGER ) * - - 16 * - + 32 AS col0
----
-29
2283008

query I rowsort
SELECT - 58 * 17 + - + 34 AS col1
----
-1020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5328
SELECT - ( - 32 ) * - ( + CAST( NULL AS DECIMAL ) ) + - 87 + - CASE + MAX( ALL - + 24 ) WHEN + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + + ( 93 ) - + 90 + - COUNT( * ) THEN NULL ELSE CAST( 80 AS SIGNED ) * - SUM( NULLIF ( + CAST( NULL AS SIGNED ), 23 ) ) END * COALESCE ( + AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) * + 50, - CAST( COALESCE ( - 49, 75 ) AS SIGNED ) + + 96 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5328
SELECT - ( - 32 ) * - ( + CAST ( NULL AS REAL ) ) + - 87 + - CASE + MAX ( ALL - + 24 ) WHEN + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + ( 93 ) - + 90 + - COUNT ( * ) THEN NULL ELSE CAST ( 80 AS INTEGER ) * - SUM ( NULLIF ( + CAST ( NULL AS INTEGER ), 23 ) ) END * COALESCE ( + AVG ( DISTINCT + CAST ( NULL AS REAL ) ) * + 50, - CAST ( COALESCE ( - 49, 75 ) AS INTEGER ) + + 96 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5329
SELECT - 50 DIV - COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5329
SELECT - 50 / - COUNT ( * ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-5330
SELECT + 62 * - 41 AS col1, - COALESCE ( - ( 52 ), - 29, - 0, 68 * 93 ) * - COUNT( * ) AS col1
----
-2542
-52

skipif mysql # not compatible
query II rowsort label-5330
SELECT + 62 * - 41 AS col1, - COALESCE ( - ( 52 ), - 29, - 0, 68 * 93 ) * - COUNT ( * ) AS col1
----
-2542
-52

query I rowsort
SELECT - 68 + 88
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-5332
SELECT - 79 DIV + 44
----
-1

skipif mysql # not compatible
query I rowsort label-5332
SELECT - 79 / + 44
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT DISTINCT - 49 * - MAX( - 65 )
----
-3185

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT - 49 * - MAX ( - 65 )
----
-3185

query I rowsort
SELECT ALL CASE 25 WHEN 77 THEN - - 82 WHEN + COALESCE ( + 88, 67 + - 78, - 26 / ( ( 10 ) ) / - 84 - - 65 ) * + 71 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT ALL + COUNT( * ) * + 59 + ( - - 97 )
----
156

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL + COUNT ( * ) * + 59 + ( - - 97 )
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5336
SELECT - CASE - + CAST( - 88 AS SIGNED ) WHEN + - 52 THEN 64 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5336
SELECT - CASE - + CAST ( - 88 AS INTEGER ) WHEN + - 52 THEN 64 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT - MAX( DISTINCT 75 ) * - + ( + 25 ) AS col0
----
1875

skipif mysql # not compatible
query I rowsort label-5337
SELECT - MAX ( DISTINCT 75 ) * - + ( + 25 ) AS col0
----
1875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5338
SELECT - 48 + - NULLIF ( - + ( - ( - + 55 ) ), + 28 ) * - COUNT( * ) DIV - 78
----
-48

skipif mysql # not compatible
query I rowsort label-5338
SELECT - 48 + - NULLIF ( - + ( - ( - + 55 ) ), + 28 ) * - COUNT ( * ) / - 78
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT ALL - 5 + - COUNT( * ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL - 5 + - COUNT ( * ) col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5340
SELECT + + COUNT( * ) * + 65 + - 33 * 42 + - MAX( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5340
SELECT + + COUNT ( * ) * + 65 + - 33 * 42 + - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - + NULLIF ( + + ( + 33 ), + 83 ) - 44
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT DISTINCT - 46 + MIN( - + ( + CASE - 10 WHEN 69 THEN + 35 ELSE NULL END ) ) * - - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT - 46 + MIN ( - + ( + CASE - 10 WHEN 69 THEN + 35 ELSE NULL END ) ) * - - 14 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 88 + + + 22
----
110

query II rowsort
SELECT DISTINCT + 66 + - 35 AS col1, - 28 + - - 59 - + 91 - + 14 * 12 + + 14 + + - 9 AS col1
----
31
-223

onlyif mysql # aggregate syntax: 
query II rowsort label-5345
SELECT - - ( + 83 ) AS col0, COUNT( * ) + + 45 AS col1
----
83
46

skipif mysql # not compatible
query II rowsort label-5345
SELECT - - ( + 83 ) AS col0, COUNT ( * ) + + 45 AS col1
----
83
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5346
SELECT - 79 + + - 9 / - CASE - - CASE + + 56 WHEN - 32 - - 99 THEN + COALESCE ( - 86, - - 42 ) * + COUNT( * ) + + ( + 93 ) - 65 WHEN + 7 THEN - 40 * - 80 WHEN - CAST( NULL AS SIGNED ) THEN NULL END WHEN 3 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5346
SELECT - 79 + + - 9 / - CASE - - CASE + + 56 WHEN - 32 - - 99 THEN + COALESCE ( - 86, - - 42 ) * + COUNT ( * ) + + ( + 93 ) - 65 WHEN + 7 THEN - 40 * - 80 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END WHEN 3 THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT + - SUM( ALL + 8 ) - + COUNT( * ) * + MIN( ALL 79 ) * 15 + - NULLIF ( - - 72, - 51 / 53 + + 12 + + + 27 / + SUM( DISTINCT + 66 ) + - 80 ) * 31 + + ( + 73 - 25 ) AS col2
----
-3377

skipif mysql # not compatible
query I rowsort label-5347
SELECT + - SUM ( ALL + 8 ) - + COUNT ( * ) * + MIN ( ALL 79 ) * 15 + - NULLIF ( - - 72, - 51 / 53 + + 12 + + + 27 / + SUM ( DISTINCT + 66 ) + - 80 ) * 31 + + ( + 73 - 25 ) AS col2
----
-3377

query II rowsort
SELECT + ( - 96 ) col2, ( - 80 ) AS col2
----
-96
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-5349
SELECT DISTINCT COUNT( * ) - 3 - - 77 * + 28 * NULLIF ( 33, - - COUNT( * ) ) DIV - CAST( - CAST( + COUNT( * ) AS DECIMAL ) AS SIGNED ) + + 16 + - 22, + 86 col2
----
71140
86

skipif mysql # not compatible
query II rowsort label-5349
SELECT DISTINCT COUNT ( * ) - 3 - - 77 * + 28 * NULLIF ( 33, - - COUNT ( * ) ) / - CAST ( - CAST ( + COUNT ( * ) AS REAL ) AS INTEGER ) + + 16 + - 22, + 86 col2
----
71140
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT ALL + 14 * + + ( + - MAX( ALL ( 14 ) ) )
----
-196

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL + 14 * + + ( + - MAX ( ALL ( 14 ) ) )
----
-196

query I rowsort
SELECT DISTINCT + - ( + - 52 ) * - 80 + 45 AS col2
----
-4115

query I rowsort
SELECT DISTINCT - - 39 - 30 AS col2
----
9

query I rowsort
SELECT DISTINCT - 31 - 69 AS col0
----
-100

query I rowsort
SELECT ALL - ( - 0 ) col0
----
0

query II rowsort
SELECT + 61 - - 37 col2, - 2 col1
----
98
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5356
SELECT CAST( NULL AS SIGNED ) * - - 97 / - - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5356
SELECT CAST ( NULL AS INTEGER ) * - - 97 / - - 8
----
NULL

query I rowsort
SELECT 47 * 55
----
2585

query I rowsort
SELECT 18 + - 23 AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5359
SELECT DISTINCT - ( + CAST( + + ( COALESCE ( 33, - 27 * + NULLIF ( - 78, - 14 ) + - - CAST( + - SUM( 14 ) AS SIGNED ) + 47 + - 44 * ( - 92 ) * COUNT( * ) + 75 ) ) AS SIGNED ) ) * 42
----
-1386

skipif mysql # not compatible
query I rowsort label-5359
SELECT DISTINCT - ( + CAST ( + + ( COALESCE ( 33, - 27 * + NULLIF ( - 78, - 14 ) + - - CAST ( + - SUM ( 14 ) AS INTEGER ) + 47 + - 44 * ( - 92 ) * COUNT ( * ) + 75 ) ) AS INTEGER ) ) * 42
----
-1386

query I rowsort
SELECT - 34 * 9 + - 14
----
-320

query I rowsort
SELECT DISTINCT 31 * + + 14 AS col1
----
434

onlyif mysql # aggregate syntax: 
query II rowsort label-5362
SELECT 10 AS col1, ( + 47 ) + - 99 * ( + MAX( DISTINCT + - 66 ) ) + + - 3
----
10
6578

skipif mysql # not compatible
query II rowsort label-5362
SELECT 10 AS col1, ( + 47 ) + - 99 * ( + MAX ( DISTINCT + - 66 ) ) + + - 3
----
10
6578

onlyif mysql # DIV for integer division: 
query I rowsort label-5363
SELECT 56 DIV + 17
----
3

skipif mysql # not compatible
query I rowsort label-5363
SELECT 56 / + 17
----
3

query I rowsort
SELECT ALL 66 + + 0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT 9 * - + 0 + - MAX( + 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-5365
SELECT 9 * - + 0 + - MAX ( + 5 ) AS col2
----
-5

query I rowsort
SELECT 63 + - 11 - - - 2 * - 45
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT ALL + 73 + - MAX( - 91 ) AS col2
----
164

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL + 73 + - MAX ( - 91 ) AS col2
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-5368
SELECT DISTINCT - 19 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT - 19 / + 65
----
0

query I rowsort
SELECT 82 + 51
----
133

query I rowsort
SELECT 53 + 86 AS col0
----
139

query I rowsort
SELECT ALL - 1 * + - 8
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT ALL + - 20 + - - CASE - 64 WHEN - + 66 * - 17 + + + 53 * - 11 * - MIN( + COALESCE ( 84, 5 ) ) / 69 + - 73 THEN + 85 END + 63 * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL + - 20 + - - CASE - 64 WHEN - + 66 * - 17 + + + 53 * - 11 * - MIN ( + COALESCE ( 84, 5 ) ) / 69 + - 73 THEN + 85 END + 63 * 85
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5373
SELECT 78 + + - 22 + 8 * + 55 * - + ( - CAST( NULL AS DECIMAL ) ) * - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT 78 + + - 22 + 8 * + 55 * - + ( - CAST ( NULL AS REAL ) ) * - 94 AS col0
----
NULL

query I rowsort
SELECT ALL 53 + - 43 AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5375
SELECT 24 + + - 89 DIV 21 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-5375
SELECT 24 + + - 89 / 21 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT ALL CASE - 18 WHEN + + COUNT( * ) THEN + - 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL CASE - 18 WHEN + + COUNT ( * ) THEN + - 26 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT + SUM( 76 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5377
SELECT + SUM ( 76 ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT 57 * - COUNT( * ) col1
----
-57

skipif mysql # not compatible
query I rowsort label-5378
SELECT 57 * - COUNT ( * ) col1
----
-57

query I rowsort
SELECT + ( 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT 88 + COUNT( * ) * ( + 59 )
----
147

skipif mysql # not compatible
query I rowsort label-5380
SELECT 88 + COUNT ( * ) * ( + 59 )
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT - - COALESCE ( - + COUNT( * ), + 70 + - SUM( ALL - 55 ) + + 5, - 6 )
----
-1

skipif mysql # not compatible
query I rowsort label-5381
SELECT - - COALESCE ( - + COUNT ( * ), + 70 + - SUM ( ALL - 55 ) + + 5, - 6 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5382
SELECT ( CAST( - 52 AS SIGNED ) ) + - 96
----
-148

skipif mysql # not compatible
query I rowsort label-5382
SELECT ( CAST ( - 52 AS INTEGER ) ) + - 96
----
-148

query I rowsort
SELECT - ( - + 59 ) AS col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5384
SELECT 93 + + CAST( + + 9 AS SIGNED )
----
102

skipif mysql # not compatible
query I rowsort label-5384
SELECT 93 + + CAST ( + + 9 AS INTEGER )
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT - MAX( - + 51 ) * - + 34 AS col2
----
-1734

skipif mysql # not compatible
query I rowsort label-5385
SELECT - MAX ( - + 51 ) * - + 34 AS col2
----
-1734

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT 57 + COUNT( ALL + - 67 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-5386
SELECT 57 + COUNT ( ALL + - 67 ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT 72 / - CASE + 8 WHEN - - ( - - COUNT( * ) ) / - 2 + + + 6 + + 13 THEN - - 57 + - 37 * - SUM( 32 ) END + + - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5387
SELECT 72 / - CASE + 8 WHEN - - ( - - COUNT ( * ) ) / - 2 + + + 6 + + 13 THEN - - 57 + - 37 * - SUM ( 32 ) END + + - 7 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + CASE + + 44 WHEN - 27 THEN - - 36 + 14 END * - + COALESCE ( 9, + + 48 )
----
NULL

query I rowsort
SELECT + 53 * + 55 - NULLIF ( - - 39, 63 + 32 + 34 ) - + 80
----
2796

onlyif mysql # DIV for integer division: 
query I rowsort label-5390
SELECT ( + 27 ) DIV - 22
----
-1

skipif mysql # not compatible
query I rowsort label-5390
SELECT ( + 27 ) / - 22
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT 83 * - - MIN( DISTINCT - 75 ) * 97 + + 4 + + 97 + + + 47
----
-603677

skipif mysql # not compatible
query I rowsort label-5391
SELECT 83 * - - MIN ( DISTINCT - 75 ) * 97 + + 4 + + 97 + + + 47
----
-603677

query I rowsort
SELECT 26 + + 15 col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT DISTINCT - 99 * - COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT - 99 * - COUNT ( * )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5394
SELECT + 92, + COUNT( * ) AS col2
----
92
1

skipif mysql # not compatible
query II rowsort label-5394
SELECT + 92, + COUNT ( * ) AS col2
----
92
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT ALL COUNT( * ) * + 34 col2
----
34

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL COUNT ( * ) * + 34 col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5396
SELECT 77 * + NULLIF ( - 88, - CAST( NULL AS SIGNED ) ) * + + 66 + + 86 * + 1 * - 46 * 62 + + 51 * - CAST( + NULLIF ( + + 81, + 57 ) AS SIGNED ) AS col0
----
-696619

skipif mysql # not compatible
query I rowsort label-5396
SELECT 77 * + NULLIF ( - 88, - CAST ( NULL AS INTEGER ) ) * + + 66 + + 86 * + 1 * - 46 * 62 + + 51 * - CAST ( + NULLIF ( + + 81, + 57 ) AS INTEGER ) AS col0
----
-696619

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5397
SELECT ALL 26 + + - 21 * + - 52 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL 26 + + - 21 * + - 52 + - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL - 4 * + 29, - 5 + - 44 + + + 64 AS col1
----
-116
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5399
SELECT COUNT( * ) DIV + COUNT( * ), - 81 AS col2
----
1
-81

skipif mysql # not compatible
query II rowsort label-5399
SELECT COUNT ( * ) / + COUNT ( * ), - 81 AS col2
----
1
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5400
SELECT ALL 90 + - 1 DIV - COUNT( * ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL 90 + - 1 / - COUNT ( * ) AS col2
----
91

query II rowsort
SELECT 82 AS col1, 87 + - 88 + + - 7 AS col1
----
82
-8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5402
SELECT ALL - 98 AS col2, CASE ( + 69 ) WHEN + CASE + 21 WHEN - + 69 THEN NULL ELSE + 90 - 33 + 39 DIV CAST( NULL AS SIGNED ) + - 46 * - - 52 * - - 61 END THEN + 4 WHEN + + 46 THEN 48 * 51 - 2 WHEN 8 THEN 79 ELSE 14 END DIV + 86
----
-98
0

skipif mysql # not compatible
query II rowsort label-5402
SELECT ALL - 98 AS col2, CASE ( + 69 ) WHEN + CASE + 21 WHEN - + 69 THEN NULL ELSE + 90 - 33 + 39 / CAST ( NULL AS INTEGER ) + - 46 * - - 52 * - - 61 END THEN + 4 WHEN + + 46 THEN 48 * 51 - 2 WHEN 8 THEN 79 ELSE 14 END / + 86
----
-98
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT 37 * NULLIF ( 14, COUNT( * ) ) AS col0
----
518

skipif mysql # not compatible
query I rowsort label-5403
SELECT 37 * NULLIF ( 14, COUNT ( * ) ) AS col0
----
518

query I rowsort
SELECT 72 * + + 26
----
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT DISTINCT 78 * ( 26 ) * 14 + + 54 * - COALESCE ( + + COUNT( * ), 30 )
----
28338

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT 78 * ( 26 ) * 14 + + 54 * - COALESCE ( + + COUNT ( * ), 30 )
----
28338

query I rowsort
SELECT ALL 13 + 31 AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5407
SELECT ALL COUNT( * ) + + + 44 + - 31 * CAST( - 78 AS SIGNED ) + - CASE - - 7 WHEN + NULLIF ( - 1, - 86 / + ( 49 ) ) + AVG ( + 73 ) * + 18 * NULLIF ( 70, - COUNT( * ) * 78 + + 24 ) THEN - 84 ELSE + COALESCE ( 17, ( + 47 ) ) END
----
2446

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL COUNT ( * ) + + + 44 + - 31 * CAST ( - 78 AS INTEGER ) + - CASE - - 7 WHEN + NULLIF ( - 1, - 86 / + ( 49 ) ) + AVG ( + 73 ) * + 18 * NULLIF ( 70, - COUNT ( * ) * 78 + + 24 ) THEN - 84 ELSE + COALESCE ( 17, ( + 47 ) ) END
----
2446

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT - SUM( ALL - 23 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-5408
SELECT - SUM ( ALL - 23 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5409
SELECT - + COUNT( * ) AS col1, + 21 AS col0
----
-1
21

skipif mysql # not compatible
query II rowsort label-5409
SELECT - + COUNT ( * ) AS col1, + 21 AS col0
----
-1
21

query I rowsort
SELECT ALL + COALESCE ( + 64, + 42 + - 76 ) * + 69 * - 29
----
-128064

query I rowsort
SELECT + 34 + 62
----
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5412
SELECT 69 * + 91 * ( + + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT 69 * + 91 * ( + + CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT 72 + - + 11 AS col0
----
61

query II rowsort
SELECT - + 36 + - - 53 * + 55 + 92 col0, + COALESCE ( 19, 78 + - ( + 51 ) )
----
2971
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5415
SELECT 22 AS col2, + 71 - + COUNT( 98 ) - - - CAST( NULL AS SIGNED ) AS col2
----
22
NULL

skipif mysql # not compatible
query II rowsort label-5415
SELECT 22 AS col2, + 71 - + COUNT ( 98 ) - - - CAST ( NULL AS INTEGER ) AS col2
----
22
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5416
SELECT - - SUM( ALL - 34 ) * - ( 18 ) * - 50 + + 47 AS col1, + 31
----
-30553
31

skipif mysql # not compatible
query II rowsort label-5416
SELECT - - SUM ( ALL - 34 ) * - ( 18 ) * - 50 + + 47 AS col1, + 31
----
-30553
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5417
SELECT ALL + 55 DIV - - ( + 92 )
----
0

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL + 55 / - - ( + 92 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT ALL MAX( DISTINCT 76 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL MAX ( DISTINCT 76 ) AS col2
----
76

query I rowsort
SELECT - ( - ( - - ( + 45 ) ) ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT - + COUNT( * ) + 14 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-5420
SELECT - + COUNT ( * ) + 14 AS col0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-5421
SELECT ALL - ( + - 22 ) DIV + - 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL - ( + - 22 ) / + - 98 AS col2
----
0

query II rowsort
SELECT DISTINCT - 0 AS col0, - 14 * + 52 * + 72 AS col1
----
0
-52416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5423
SELECT - 20 * 55 * + 59 + - - MAX( - 9 ) - - + SUM( + + 92 ) / + + CASE + COUNT( * ) WHEN 71 + - COALESCE ( - CAST( + 58 AS SIGNED ), - + 45, + 65 + 71 * 84 ) THEN - 34 END * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5423
SELECT - 20 * 55 * + 59 + - - MAX ( - 9 ) - - + SUM ( + + 92 ) / + + CASE + COUNT ( * ) WHEN 71 + - COALESCE ( - CAST ( + 58 AS INTEGER ), - + 45, + 65 + 71 * 84 ) THEN - 34 END * - 43
----
NULL

query II rowsort
SELECT ALL 93 AS col2, 16 * - 69
----
93
-1104

onlyif mysql # aggregate syntax: 
query II rowsort label-5425
SELECT - - 51 AS col0, MAX( + 91 ) + - NULLIF ( + + COUNT( * ), - 99 ) - 75 * - 13 AS col1
----
51
1065

skipif mysql # not compatible
query II rowsort label-5425
SELECT - - 51 AS col0, MAX ( + 91 ) + - NULLIF ( + + COUNT ( * ), - 99 ) - 75 * - 13 AS col1
----
51
1065

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5426
SELECT - + MIN( - 98 ) AS col1, CASE - + 54 WHEN + 73 + 44 * 37 THEN + ( - 97 ) + 39 END + CASE - + COUNT( * ) WHEN + 46 * - + ( + 17 ) THEN + 19 / - CAST( - COALESCE ( + SUM( 19 ), ( - 59 ) / - 45, + 73 + + 12 ) + - 76 AS SIGNED ) END
----
98
NULL

skipif mysql # not compatible
query II rowsort label-5426
SELECT - + MIN ( - 98 ) AS col1, CASE - + 54 WHEN + 73 + 44 * 37 THEN + ( - 97 ) + 39 END + CASE - + COUNT ( * ) WHEN + 46 * - + ( + 17 ) THEN + 19 / - CAST ( - COALESCE ( + SUM ( 19 ), ( - 59 ) / - 45, + 73 + + 12 ) + - 76 AS INTEGER ) END
----
98
NULL

query I rowsort
SELECT ALL - + 9 * - - 24 AS col1
----
-216

query I rowsort
SELECT - 87 * - 51 col2
----
4437

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5429
SELECT - 61 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5429
SELECT - 61 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT DISTINCT COALESCE ( COUNT( * ), - 44, - 45 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT COALESCE ( COUNT ( * ), - 44, - 45 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT ( + COALESCE ( - 89, + 48, - MAX( ALL + + NULLIF ( 91, - 50 ) ) * - 82 + - + 65 - - 92 - - 86 ) ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-5431
SELECT ( + COALESCE ( - 89, + 48, - MAX ( ALL + + NULLIF ( 91, - 50 ) ) * - 82 + - + 65 - - 92 - - 86 ) ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-5432
SELECT ALL - 81 * - COUNT( * ), + 67 AS col2
----
81
67

skipif mysql # not compatible
query II rowsort label-5432
SELECT ALL - 81 * - COUNT ( * ), + 67 AS col2
----
81
67

query I rowsort
SELECT - 33 * - 87 AS col0
----
2871

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT - MIN( DISTINCT + + 54 ) + - 89 AS col2
----
-143

skipif mysql # not compatible
query I rowsort label-5434
SELECT - MIN ( DISTINCT + + 54 ) + - 89 AS col2
----
-143

query I rowsort
SELECT ALL 79 * + 52 * - - 20 AS col0
----
82160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5436
SELECT COALESCE ( + COUNT( * ), - 0 + + - 59, - 63 DIV 10, - 81 * COUNT( ALL + - 16 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5436
SELECT COALESCE ( + COUNT ( * ), - 0 + + - 59, - 63 / 10, - 81 * COUNT ( ALL + - 16 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT ALL + 50 * - + MIN( DISTINCT - + 43 ) + - 0 AS col2
----
2150

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL + 50 * - + MIN ( DISTINCT - + 43 ) + - 0 AS col2
----
2150

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT - 26 * - 53 + - 17 + - - ( + 84 ) * - 80 * - 43 * - NULLIF ( 1, + 84 + 17 ) + - MIN( - 32 ) + + ( CASE + 3 WHEN + 42 * - 3 THEN NULL WHEN 0 + - 47 THEN - 0 + + 67 END ) * - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5438
SELECT - 26 * - 53 + - 17 + - - ( + 84 ) * - 80 * - 43 * - NULLIF ( 1, + 84 + 17 ) + - MIN ( - 32 ) + + ( CASE + 3 WHEN + 42 * - 3 THEN NULL WHEN 0 + - 47 THEN - 0 + + 67 END ) * - 38 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5439
SELECT 46 DIV COUNT( * ) + + ( + 84 )
----
130

skipif mysql # not compatible
query I rowsort label-5439
SELECT 46 / COUNT ( * ) + + ( + 84 )
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT ALL + 19 * + COUNT( * ) * - 27
----
-513

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL + 19 * + COUNT ( * ) * - 27
----
-513

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT - 49 + + COUNT( - 5 )
----
-48

skipif mysql # not compatible
query I rowsort label-5441
SELECT - 49 + + COUNT ( - 5 )
----
-48

query I rowsort
SELECT ALL 69 * - 12 + - 16
----
-844

query I rowsort
SELECT - 43 + 66
----
23

query I rowsort
SELECT + 87 * - 65 + - - 95 AS col2
----
-5560

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5445
SELECT ALL 30 DIV - CAST( + - 94 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL 30 / - CAST ( + - 94 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT + COALESCE ( - 29, 44 + 96, - CASE - + CASE - - 27 WHEN + + CASE ( 53 ) WHEN + ( - 46 ) - - 82 THEN - + 10 * 85 + CASE - - ( COUNT( * ) ) WHEN + 76 THEN 18 WHEN 67 THEN - 59 * + ( 70 ) ELSE 49 END + MAX( DISTINCT 90 ) * COUNT( * ) + ( - 86 ) ELSE 59 * 21 END THEN - MIN( - 46 ) + 16 * COALESCE ( - 67, + AVG ( NULLIF ( 38, 57 * 64 ) ) + 93 ) WHEN - 39 + 43 THEN 62 * - 39 END WHEN - 30 + 73 THEN 91 END ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-5446
SELECT + COALESCE ( - 29, 44 + 96, - CASE - + CASE - - 27 WHEN + + CASE ( 53 ) WHEN + ( - 46 ) - - 82 THEN - + 10 * 85 + CASE - - ( COUNT ( * ) ) WHEN + 76 THEN 18 WHEN 67 THEN - 59 * + ( 70 ) ELSE 49 END + MAX ( DISTINCT 90 ) * COUNT ( * ) + ( - 86 ) ELSE 59 * 21 END THEN - MIN ( - 46 ) + 16 * COALESCE ( - 67, + AVG ( NULLIF ( 38, 57 * 64 ) ) + 93 ) WHEN - 39 + 43 THEN 62 * - 39 END WHEN - 30 + 73 THEN 91 END ) AS col1
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5447
SELECT + CAST( + + 95 AS SIGNED ) + 20 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-5447
SELECT + CAST ( + + 95 AS INTEGER ) + 20 AS col1
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5448
SELECT DISTINCT + 87 * 7 - - 40 / + 11 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT + 87 * 7 - - 40 / + 11 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT + ( + - COUNT( * ) ) + - + 1 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5449
SELECT + ( + - COUNT ( * ) ) + - + 1 AS col0
----
-2

query I rowsort
SELECT ALL - COALESCE ( - 1, + 40 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT + - MAX( DISTINCT - 38 ) * + MAX( + 9 )
----
342

skipif mysql # not compatible
query I rowsort label-5451
SELECT + - MAX ( DISTINCT - 38 ) * + MAX ( + 9 )
----
342

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT - + CASE + + COALESCE ( 49, + 26 ) WHEN - 39 THEN COUNT( * ) * + COUNT( * ) WHEN - 9 THEN NULL WHEN - 66 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5452
SELECT - + CASE + + COALESCE ( 49, + 26 ) WHEN - 39 THEN COUNT ( * ) * + COUNT ( * ) WHEN - 9 THEN NULL WHEN - 66 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT ALL + 26 * - COUNT( + - 52 )
----
-26

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL + 26 * - COUNT ( + - 52 )
----
-26

query I rowsort
SELECT + - 69 + ( + ( + 33 ) ) col0
----
-36

query I rowsort
SELECT - + 88 * - - 8 AS col1
----
-704

onlyif mysql # aggregate syntax: 
query II rowsort label-5456
SELECT - 45 + - - 8 AS col1, 2 * - - 88 * 95 + - COUNT( * ) * - 97 + - MIN( + - 83 ) AS col0
----
-37
16900

skipif mysql # not compatible
query II rowsort label-5456
SELECT - 45 + - - 8 AS col1, 2 * - - 88 * 95 + - COUNT ( * ) * - 97 + - MIN ( + - 83 ) AS col0
----
-37
16900

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5457
SELECT - - COUNT( * ) * + + CAST( NULL AS DECIMAL ) * + - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5457
SELECT - - COUNT ( * ) * + + CAST ( NULL AS REAL ) * + - 17 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5458
SELECT ALL - 8 + + - 9 + + - 94 DIV + - 86 + + + 5 + + 89 * + + ( + 87 ) AS col0
----
7732

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL - 8 + + - 9 + + - 94 / + - 86 + + + 5 + + 89 * + + ( + 87 ) AS col0
----
7732

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT ALL + - 94 + + + 5 + - 78 - + 65 - + ( + - SUM( DISTINCT - + 78 ) ) * - - 62 * ( + + 55 )
----
-266212

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL + - 94 + + + 5 + - 78 - + 65 - + ( + - SUM ( DISTINCT - + 78 ) ) * - - 62 * ( + + 55 )
----
-266212

query I rowsort
SELECT DISTINCT 80 + + 10 * - + 82 AS col0
----
-740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5461
SELECT ALL COUNT( * ) + + - COUNT( * ) + - 6 + ( CAST( ( + + 92 ) AS SIGNED ) ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL COUNT ( * ) + + - COUNT ( * ) + - 6 + ( CAST ( ( + + 92 ) AS INTEGER ) ) AS col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5462
SELECT - 0, + CASE + - 3 WHEN - - CAST( + 42 AS SIGNED ) THEN - - COUNT( * ) + - COUNT( DISTINCT 47 ) + - 88 ELSE NULL END / - - COUNT( * ) - 79 * + COUNT( * ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5462
SELECT - 0, + CASE + - 3 WHEN - - CAST ( + 42 AS INTEGER ) THEN - - COUNT ( * ) + - COUNT ( DISTINCT 47 ) + - 88 ELSE NULL END / - - COUNT ( * ) - 79 * + COUNT ( * ) AS col0
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5463
SELECT DISTINCT + 23 DIV COUNT( * ) + 59 AS col2, COALESCE ( + + 68, CAST( - 3 AS SIGNED ), + 57 DIV - - 64 + - 61 )
----
82
68

skipif mysql # not compatible
query II rowsort label-5463
SELECT DISTINCT + 23 / COUNT ( * ) + 59 AS col2, COALESCE ( + + 68, CAST ( - 3 AS INTEGER ), + 57 / - - 64 + - 61 )
----
82
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT - 22 * 6 - - MIN( - + 32 ) col2
----
-164

skipif mysql # not compatible
query I rowsort label-5464
SELECT - 22 * 6 - - MIN ( - + 32 ) col2
----
-164

query I rowsort
SELECT + 73 * + 11 AS col0
----
803

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT - SUM( DISTINCT + 90 ) + - + 88 - - COUNT( * ) * 92
----
-86

skipif mysql # not compatible
query I rowsort label-5466
SELECT - SUM ( DISTINCT + 90 ) + - + 88 - - COUNT ( * ) * 92
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5467
SELECT + 9 AS col1, 19 DIV - NULLIF ( + - 23, - 96 + + 86 * - + 47 + - + 30 * + - 49 DIV - - COUNT( * ) ) AS col0
----
9
0

skipif mysql # not compatible
query II rowsort label-5467
SELECT + 9 AS col1, 19 / - NULLIF ( + - 23, - 96 + + 86 * - + 47 + - + 30 * + - 49 / - - COUNT ( * ) ) AS col0
----
9
0

query I rowsort
SELECT DISTINCT + 32 * 49
----
1568

onlyif mysql # aggregate syntax: 
query II rowsort label-5469
SELECT ALL + NULLIF ( 69, + - 4 * + 70 ), - COUNT( * ) AS col1
----
69
-1

skipif mysql # not compatible
query II rowsort label-5469
SELECT ALL + NULLIF ( 69, + - 4 * + 70 ), - COUNT ( * ) AS col1
----
69
-1

query I rowsort
SELECT ALL + NULLIF ( + 88, 87 )
----
88

query I rowsort
SELECT - ( + 87 ) * 41
----
-3567

onlyif mysql # aggregate syntax: 
query II rowsort label-5472
SELECT + COUNT( * ) col0, 73 AS col1
----
1
73

skipif mysql # not compatible
query II rowsort label-5472
SELECT + COUNT ( * ) col0, 73 AS col1
----
1
73

query I rowsort
SELECT ( + 72 ) AS col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5474
SELECT - CAST( NULL AS SIGNED ) * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-5474
SELECT - CAST ( NULL AS INTEGER ) * 97
----
NULL

query II rowsort
SELECT DISTINCT + - ( 13 ) * + 80 AS col1, 81 * 69
----
-1040
5589

query I rowsort
SELECT - 39 * - 19 * + 3 AS col1
----
2223

query I rowsort
SELECT 1 * - 2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5478
SELECT ALL - + CASE + 24 WHEN - 52 / - 17 + 1 + 81 * + COUNT( * ) THEN + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL - + CASE + 24 WHEN - 52 / - 17 + 1 + 81 * + COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT ALL - + 5 * + - 97 AS col2
----
485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5480
SELECT ALL - CAST( - - 36 AS SIGNED ) col1
----
-36

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL - CAST ( - - 36 AS INTEGER ) col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5481
SELECT ALL COUNT( * ) AS col0, + 50 + - 26 / + - 63 * + CAST( NULL AS SIGNED ) col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5481
SELECT ALL COUNT ( * ) AS col0, + 50 + - 26 / + - 63 * + CAST ( NULL AS INTEGER ) col2
----
1
NULL

query II rowsort
SELECT 9 * + 41 * 40 AS col2, + 4 AS col1
----
14760
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5483
SELECT 71 * - 59 / - COUNT( * ) + - 98 * - + 35 / + CAST( NULL AS DECIMAL ) / - ( + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5483
SELECT 71 * - 59 / - COUNT ( * ) + - 98 * - + 35 / + CAST ( NULL AS REAL ) / - ( + COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT + 46 + + + 79
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT + COUNT( * ) * + - 63 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-5485
SELECT + COUNT ( * ) * + - 63 AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5486
SELECT - 67 AS col1, - 4 + + 41 - - - 78 * + 87 - + NULLIF ( - 63, 97 + CAST( NULL AS SIGNED ) + + + 34 + COUNT( * ) * - - 33 * 76 * + CAST( 66 AS SIGNED ) - - + 46 / 85 / + + 5 + + ( + COUNT( * ) ) ) + 7
----
-67
-6679

skipif mysql # not compatible
query II rowsort label-5486
SELECT - 67 AS col1, - 4 + + 41 - - - 78 * + 87 - + NULLIF ( - 63, 97 + CAST ( NULL AS INTEGER ) + + + 34 + COUNT ( * ) * - - 33 * 76 * + CAST ( 66 AS INTEGER ) - - + 46 / 85 / + + 5 + + ( + COUNT ( * ) ) ) + 7
----
-67
-6679

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5487
SELECT ALL - 79 + - 6 + - + COALESCE ( - CASE - - 49 WHEN 51 + 42 THEN NULL ELSE - + CAST( NULL AS SIGNED ) END, + 78 ) AS col1, + 29 AS col1
----
-163
29

skipif mysql # not compatible
query II rowsort label-5487
SELECT ALL - 79 + - 6 + - + COALESCE ( - CASE - - 49 WHEN 51 + 42 THEN NULL ELSE - + CAST ( NULL AS INTEGER ) END, + 78 ) AS col1, + 29 AS col1
----
-163
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5488
SELECT - 82 + 98 + - + 52 * CAST( - 37 AS SIGNED )
----
1940

skipif mysql # not compatible
query I rowsort label-5488
SELECT - 82 + 98 + - + 52 * CAST ( - 37 AS INTEGER )
----
1940

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT DISTINCT + COALESCE ( + + CASE 47 WHEN + - 8 THEN 30 WHEN 56 THEN + + NULLIF ( ( 2 ), - 34 * - COUNT( * ) + + 98 ) ELSE - 19 END, + 43 * - + ( 79 ) ) + + NULLIF ( + + 95, 96 ) * 48 AS col0
----
4541

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT + COALESCE ( + + CASE 47 WHEN + - 8 THEN 30 WHEN 56 THEN + + NULLIF ( ( 2 ), - 34 * - COUNT ( * ) + + 98 ) ELSE - 19 END, + 43 * - + ( 79 ) ) + + NULLIF ( + + 95, 96 ) * 48 AS col0
----
4541

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT DISTINCT 62 + COUNT( * ) col0
----
63

skipif mysql # not compatible
query I rowsort label-5490
SELECT DISTINCT 62 + COUNT ( * ) col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT ALL COUNT( 92 ) + + MIN( - 75 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL COUNT ( 92 ) + + MIN ( - 75 ) AS col1
----
-74

query I rowsort
SELECT COALESCE ( - CASE ( + 46 ) WHEN - + 40 THEN - 58 + - - 99 ELSE NULL END, + 68, + 54 ) + - 72 AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5493
SELECT 63 DIV - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5493
SELECT 63 / - 76 AS col0
----
0

query I rowsort
SELECT ALL 61 - - - 35 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT 46 * NULLIF ( MIN( DISTINCT 65 ), + 23 ) - - 5
----
2995

skipif mysql # not compatible
query I rowsort label-5495
SELECT 46 * NULLIF ( MIN ( DISTINCT 65 ), + 23 ) - - 5
----
2995

onlyif mysql # DIV for integer division: 
query II rowsort label-5496
SELECT DISTINCT - 74 DIV + - 20 AS col2, + 36
----
3
36

skipif mysql # not compatible
query II rowsort label-5496
SELECT DISTINCT - 74 / + - 20 AS col2, + 36
----
3
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5497
SELECT ALL - MAX( - + 87 ) * - - COUNT( * ) - - COALESCE ( - + ( - + 54 ), + + 44, + - ( + - COALESCE ( + + COUNT( * ), - 85, - + 82 DIV + 21 + 70 ) ) * CASE - - 78 WHEN + COUNT( * ) THEN NULL WHEN - COUNT( * ) * + - 80 THEN - 23 + 79 END + - 78 DIV + 81 ) AS col0
----
141

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL - MAX ( - + 87 ) * - - COUNT ( * ) - - COALESCE ( - + ( - + 54 ), + + 44, + - ( + - COALESCE ( + + COUNT ( * ), - 85, - + 82 / + 21 + 70 ) ) * CASE - - 78 WHEN + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) * + - 80 THEN - 23 + 79 END + - 78 / + 81 ) AS col0
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5498
SELECT 72 * - + 23 * - CAST( + 65 AS SIGNED ) DIV COUNT( * ) col0, + 80
----
107640
80

skipif mysql # not compatible
query II rowsort label-5498
SELECT 72 * - + 23 * - CAST ( + 65 AS INTEGER ) / COUNT ( * ) col0, + 80
----
107640
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT DISTINCT 60 - + + COUNT( + - 39 )
----
59

skipif mysql # not compatible
query I rowsort label-5499
SELECT DISTINCT 60 - + + COUNT ( + - 39 )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5500
SELECT + ( + 36 ) * CASE + - 22 WHEN CASE + + NULLIF ( - 6, + NULLIF ( + 43, - CAST( NULL AS SIGNED ) ) * 83 * + 75 + 59 * CASE - COUNT( * ) WHEN - 86 * COUNT( * ) THEN - 10 * + 46 WHEN 16 - 29 * 49 THEN CASE - MAX( + 10 ) WHEN 73 THEN + 85 - 68 WHEN + 6 THEN NULL ELSE NULL END + 79 ELSE NULL END - CASE COUNT( * ) WHEN - 66 THEN NULL ELSE COUNT( * ) END ) WHEN NULLIF ( - 96, 52 * + COUNT( * ) ) THEN NULL WHEN ( - 49 ) + + 80 THEN + ( - 51 ) END THEN NULL WHEN 30 THEN 84 WHEN 17 THEN + ( + 46 ) ELSE + 50 DIV + CASE 18 * + NULLIF ( - 82, + 65 ) WHEN - 79 THEN NULL ELSE 89 END END - 17 + 7 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-5500
SELECT + ( + 36 ) * CASE + - 22 WHEN CASE + + NULLIF ( - 6, + NULLIF ( + 43, - CAST ( NULL AS INTEGER ) ) * 83 * + 75 + 59 * CASE - COUNT ( * ) WHEN - 86 * COUNT ( * ) THEN - 10 * + 46 WHEN 16 - 29 * 49 THEN CASE - MAX ( + 10 ) WHEN 73 THEN + 85 - 68 WHEN + 6 THEN NULL ELSE NULL END + 79 ELSE NULL END - CASE COUNT ( * ) WHEN - 66 THEN NULL ELSE COUNT ( * ) END ) WHEN NULLIF ( - 96, 52 * + COUNT ( * ) ) THEN NULL WHEN ( - 49 ) + + 80 THEN + ( - 51 ) END THEN NULL WHEN 30 THEN 84 WHEN 17 THEN + ( + 46 ) ELSE + 50 / + CASE 18 * + NULLIF ( - 82, + 65 ) WHEN - 79 THEN NULL ELSE 89 END END - 17 + 7 AS col1
----
-10

query I rowsort
SELECT DISTINCT 95 * 16 AS col1
----
1520

query I rowsort
SELECT 62 + + - 30 AS col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5503
SELECT CAST( - COALESCE ( - 46, + 66 - + 64 ) AS SIGNED ) + + - 28 + - 5
----
13

skipif mysql # not compatible
query I rowsort label-5503
SELECT CAST ( - COALESCE ( - 46, + 66 - + 64 ) AS INTEGER ) + + - 28 + - 5
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT 55 + + MIN( DISTINCT - 6 )
----
49

skipif mysql # not compatible
query I rowsort label-5504
SELECT 55 + + MIN ( DISTINCT - 6 )
----
49

query I rowsort
SELECT ALL - - 97 col0
----
97

query I rowsort
SELECT 79 * + 65 + + + ( + 39 )
----
5174

query I rowsort
SELECT ALL 11 * ( + - 74 ) AS col1
----
-814

query II rowsort
SELECT ALL - + ( 37 ) AS col1, 84 AS col1
----
-37
84

query I rowsort
SELECT + 77 + 6 AS col2
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5510
SELECT NULLIF ( - COUNT( * ), + 88 ) + + 49, COUNT( * ) col2
----
48
1

skipif mysql # not compatible
query II rowsort label-5510
SELECT NULLIF ( - COUNT ( * ), + 88 ) + + 49, COUNT ( * ) col2
----
48
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5511
SELECT + 44 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-5511
SELECT + 44 / - 71
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5512
SELECT ALL - 83 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL - 83 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT 26 * + + 71 * COUNT( * ) + 48 + - 2 AS col0
----
1892

skipif mysql # not compatible
query I rowsort label-5513
SELECT 26 * + + 71 * COUNT ( * ) + 48 + - 2 AS col0
----
1892

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT + SUM( - 48 ) + + + 94 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT + SUM ( - 48 ) + + + 94 AS col0
----
46

query I rowsort
SELECT - ( + 21 ) * - 2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT ALL + - COUNT( * ) + + - 6 + - 30 + - 56 + + - 16 + - COUNT( * ) * 10 - 68 + + + COUNT( * ) + - MIN( ALL 26 )
----
-212

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL + - COUNT ( * ) + + - 6 + - 30 + - 56 + + - 16 + - COUNT ( * ) * 10 - 68 + + + COUNT ( * ) + - MIN ( ALL 26 )
----
-212

query I rowsort
SELECT 18 + - 91 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT DISTINCT COUNT( - - COALESCE ( + + 74, + + 61 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT COUNT ( - - COALESCE ( + + 74, + + 61 ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT COUNT( * ) * SUM( DISTINCT 60 ) * - 73 + - - NULLIF ( - + 98, + 73 * 66 * + - ( + - COUNT( * ) ) + + + 93 + + 62 )
----
-4478

skipif mysql # not compatible
query I rowsort label-5519
SELECT COUNT ( * ) * SUM ( DISTINCT 60 ) * - 73 + - - NULLIF ( - + 98, + 73 * 66 * + - ( + - COUNT ( * ) ) + + + 93 + + 62 )
----
-4478

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT - SUM( - 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-5520
SELECT - SUM ( - 75 ) AS col0
----
75

query I rowsort
SELECT ALL 20 - - 19 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT ALL COUNT( - 30 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL COUNT ( - 30 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT MIN( 67 ) + - 75 - - + 45 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-5523
SELECT MIN ( 67 ) + - 75 - - + 45 AS col0
----
37

query I rowsort
SELECT 56 - 80
----
-24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5525
SELECT ALL 14 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL 14 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 62 + + ( + 60 ) AS col2
----
122

query I rowsort
SELECT ALL - 15 * + + 74 col1
----
-1110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5528
SELECT ALL CASE 80 WHEN + COALESCE ( - + 53, + + 82 ) THEN + - 65 * - + CAST( + 20 AS SIGNED ) - 99 + + + COUNT( * ) * 17 ELSE ( 28 ) * + 34 END AS col2
----
952

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL CASE 80 WHEN + COALESCE ( - + 53, + + 82 ) THEN + - 65 * - + CAST ( + 20 AS INTEGER ) - 99 + + + COUNT ( * ) * 17 ELSE ( 28 ) * + 34 END AS col2
----
952

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT - SUM( DISTINCT 32 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-5529
SELECT - SUM ( DISTINCT 32 ) AS col0
----
-32

query I rowsort
SELECT 82 * - - 90 AS col2
----
7380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5531
SELECT + CAST( - 51 AS SIGNED ) + - 98 + + + MIN( 82 ) * + - 82 + 59 AS col0
----
-6814

skipif mysql # not compatible
query I rowsort label-5531
SELECT + CAST ( - 51 AS INTEGER ) + - 98 + + + MIN ( 82 ) * + - 82 + 59 AS col0
----
-6814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5532
SELECT + NULLIF ( - + 79, + - COUNT( * ) ) AS col2, + 52 + - - 92 + 14 * - + 44 + + - 18 + + + NULLIF ( 96, + CAST( + 78 AS SIGNED ) + - CAST( - 65 AS SIGNED ) ) * - + ( + 10 )
----
-79
-1450

skipif mysql # not compatible
query II rowsort label-5532
SELECT + NULLIF ( - + 79, + - COUNT ( * ) ) AS col2, + 52 + - - 92 + 14 * - + 44 + + - 18 + + + NULLIF ( 96, + CAST ( + 78 AS INTEGER ) + - CAST ( - 65 AS INTEGER ) ) * - + ( + 10 )
----
-79
-1450

onlyif mysql # aggregate syntax: 
query II rowsort label-5533
SELECT DISTINCT + 13 col0, + COALESCE ( + + COUNT( * ), - 47 ) AS col1
----
13
1

skipif mysql # not compatible
query II rowsort label-5533
SELECT DISTINCT + 13 col0, + COALESCE ( + + COUNT ( * ), - 47 ) AS col1
----
13
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5534
SELECT DISTINCT + 20 AS col1, - 33 * - - CAST( + + 38 AS SIGNED ) - - 58
----
20
-1196

skipif mysql # not compatible
query II rowsort label-5534
SELECT DISTINCT + 20 AS col1, - 33 * - - CAST ( + + 38 AS INTEGER ) - - 58
----
20
-1196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5535
SELECT DISTINCT + + CASE 21 WHEN - 53 THEN + CAST( NULL AS SIGNED ) - 51 * 41 + + 59 WHEN - + NULLIF ( - + 23, 80 / 42 ) THEN NULL WHEN + - ( 58 ) * + - 62 + - 53 THEN NULL ELSE - 15 END
----
-15

skipif mysql # not compatible
query I rowsort label-5535
SELECT DISTINCT + + CASE 21 WHEN - 53 THEN + CAST ( NULL AS INTEGER ) - 51 * 41 + + 59 WHEN - + NULLIF ( - + 23, 80 / 42 ) THEN NULL WHEN + - ( 58 ) * + - 62 + - 53 THEN NULL ELSE - 15 END
----
-15

query I rowsort
SELECT + - 33 * - 15 * + + 73 AS col0
----
36135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5537
SELECT ALL - 28 DIV - MIN( ALL + - 28 )
----
-1

skipif mysql # not compatible
query I rowsort label-5537
SELECT ALL - 28 / - MIN ( ALL + - 28 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT ALL + - COUNT( * ) * - - 40 + + - COUNT( * ) + + 5
----
-36

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL + - COUNT ( * ) * - - 40 + + - COUNT ( * ) + + 5
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT ALL + NULLIF ( 88, 58 ) * 31 + + 62 + - 20 + + CASE - SUM( ALL - - 50 ) WHEN 58 THEN + 97 * - - 16 + + COUNT( * ) END * - 83 + + 41 + - + COUNT( * ) * 47 * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL + NULLIF ( 88, 58 ) * 31 + + 62 + - 20 + + CASE - SUM ( ALL - - 50 ) WHEN 58 THEN + 97 * - - 16 + + COUNT ( * ) END * - 83 + + 41 + - + COUNT ( * ) * 47 * + 2
----
NULL

query I rowsort
SELECT - 71 * - + 84 col2
----
5964

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT ALL - 24 * - 91 + COUNT( * ) * + - 44 AS col1
----
2140

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL - 24 * - 91 + COUNT ( * ) * + - 44 AS col1
----
2140

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT + COUNT( * ) * + - 36 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-5542
SELECT + COUNT ( * ) * + - 36 AS col2
----
-36

query I rowsort
SELECT NULLIF ( 58, + 37 + + 13 )
----
58

query I rowsort
SELECT ALL - - 93 * 68 + + 60 AS col2
----
6384

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT ALL + CASE + NULLIF ( - 84, - 65 + COUNT( 55 ) ) WHEN - + 5 + + - 62 * + 5 * 58 * - + 1 THEN - 1 WHEN + + 23 * + 34 THEN + COUNT( * ) WHEN + 86 THEN NULL WHEN 42 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL + CASE + NULLIF ( - 84, - 65 + COUNT ( 55 ) ) WHEN - + 5 + + - 62 * + 5 * 58 * - + 1 THEN - 1 WHEN + + 23 * + 34 THEN + COUNT ( * ) WHEN + 86 THEN NULL WHEN 42 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5546
SELECT 67 AS col1, COALESCE ( - ( - NULLIF ( 76, 22 ) ), + CAST( NULL AS SIGNED ) - COUNT( * ) )
----
67
76

skipif mysql # not compatible
query II rowsort label-5546
SELECT 67 AS col1, COALESCE ( - ( - NULLIF ( 76, 22 ) ), + CAST ( NULL AS INTEGER ) - COUNT ( * ) )
----
67
76

query I rowsort
SELECT ALL + 51 + + ( ( - 41 ) ) AS col2
----
10

query I rowsort
SELECT DISTINCT + 29 + 1 + - 37 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT ALL - - 74 + MAX( DISTINCT - 70 ) + - - ( - 95 ) - + 5
----
-96

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL - - 74 + MAX ( DISTINCT - 70 ) + - - ( - 95 ) - + 5
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5550
SELECT DISTINCT - 0 DIV - + 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT - 0 / - + 68 AS col1
----
0

query I rowsort
SELECT - 39 - + - ( + 67 ) AS col1
----
28

query I rowsort
SELECT - 50 * - + 52 AS col1
----
2600

query II rowsort
SELECT 42, - 82 AS col2
----
42
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5554
SELECT ALL + 28 - + COUNT( * ) + - - COALESCE ( + COALESCE ( + 52, SUM( - 56 ) ), + 0, + CASE - 64 WHEN ( + + ( MIN( - CAST( - 36 AS SIGNED ) ) ) ) * 10 THEN - 18 - - ( + COALESCE ( 54, + CAST( - CAST( - 30 AS DECIMAL ) AS SIGNED ) + 79 * 91 ) ) ELSE + 4 END + 97 )
----
79

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL + 28 - + COUNT ( * ) + - - COALESCE ( + COALESCE ( + 52, SUM ( - 56 ) ), + 0, + CASE - 64 WHEN ( + + ( MIN ( - CAST ( - 36 AS INTEGER ) ) ) ) * 10 THEN - 18 - - ( + COALESCE ( 54, + CAST ( - CAST ( - 30 AS REAL ) AS INTEGER ) + 79 * 91 ) ) ELSE + 4 END + 97 )
----
79

query I rowsort
SELECT DISTINCT - 73 * ( + 60 )
----
-4380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5556
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 54 * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 54 * - 37
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5557
SELECT DISTINCT COUNT( * ) AS col0, - NULLIF ( + + 28, + 71 * - COUNT( * ) + - MAX( + 66 ) + - 98 )
----
1
-28

skipif mysql # not compatible
query II rowsort label-5557
SELECT DISTINCT COUNT ( * ) AS col0, - NULLIF ( + + 28, + 71 * - COUNT ( * ) + - MAX ( + 66 ) + - 98 )
----
1
-28

query II rowsort
SELECT ALL ( 83 ) AS col1, + 78
----
83
78

query I rowsort
SELECT DISTINCT + 83 * - 43 AS col2
----
-3569

query I rowsort
SELECT ALL - 28 - - 26 * + 69
----
1766

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT DISTINCT + 74 * COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT + 74 * COUNT ( * )
----
74

query I rowsort
SELECT + 49 * 6 AS col2
----
294

query I rowsort
SELECT + 25 + 54 AS col0
----
79

query II rowsort
SELECT 66 AS col1, + 9 * - 24
----
66
-216

query I rowsort
SELECT - ( - ( - - 7 ) ) - + 59 AS col0
----
-52

query I rowsort
SELECT DISTINCT + 39 + + - ( - 1 ) + 30 * 87 + - + 25 * + 41 AS col2
----
1625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5567
SELECT ALL - CAST( + 92 AS SIGNED ) DIV - 12 + COUNT( + 15 )
----
8

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL - CAST ( + 92 AS INTEGER ) / - 12 + COUNT ( + 15 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT + COUNT( - - 28 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5568
SELECT + COUNT ( - - 28 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5569
SELECT ALL 8 / - CAST( NULL AS SIGNED ) / - + 56 + + CAST( NULL AS SIGNED ) * - + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL 8 / - CAST ( NULL AS INTEGER ) / - + 56 + + CAST ( NULL AS INTEGER ) * - + 9 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5570
SELECT DISTINCT + COUNT( * ) / 56 - 86 / - + 23 + + 21 + - - NULLIF ( CASE - 40 WHEN CAST( NULL AS DECIMAL ) THEN - - 12 WHEN - SUM( ALL - 17 ) THEN NULL END, - + 27 * + ( + - 12 ) / - ( 95 ) ) + + - 96 * + - 91 col2, - 42 col0
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-5570
SELECT DISTINCT + COUNT ( * ) / 56 - 86 / - + 23 + + 21 + - - NULLIF ( CASE - 40 WHEN CAST ( NULL AS REAL ) THEN - - 12 WHEN - SUM ( ALL - 17 ) THEN NULL END, - + 27 * + ( + - 12 ) / - ( 95 ) ) + + - 96 * + - 91 col2, - 42 col0
----
NULL
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5571
SELECT ALL + + 34 / - - 76 + + 77 + - - ( + - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL + + 34 / - - 76 + + 77 + - - ( + - CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5572
SELECT ALL + 77 DIV 6 - - 18 + - - 50 + 17 * + 20, 86 * - 28 + - 96 + 92 DIV + 6 AS col2
----
420
-2489

skipif mysql # not compatible
query II rowsort label-5572
SELECT ALL + 77 / 6 - - 18 + - - 50 + 17 * + 20, 86 * - 28 + - 96 + 92 / + 6 AS col2
----
420
-2489

query I rowsort
SELECT + + 20 * + 76 + + 46 AS col2
----
1566

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT + 55 - - ( + - COUNT( * ) ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-5574
SELECT + 55 - - ( + - COUNT ( * ) ) AS col2
----
54

query I rowsort
SELECT - 99 + - 8 AS col0
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5576
SELECT - + 55 * + NULLIF ( 38, - - CAST( NULL AS SIGNED ) ) - - 16
----
-2074

skipif mysql # not compatible
query I rowsort label-5576
SELECT - + 55 * + NULLIF ( 38, - - CAST ( NULL AS INTEGER ) ) - - 16
----
-2074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5577
SELECT ALL + 98 / + 87 * - - 78 + + CAST( NULL AS SIGNED ) * + COUNT( * ) / + ( 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL + 98 / + 87 * - - 78 + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) / + ( 59 )
----
NULL

query I rowsort
SELECT + + ( 63 ) AS col2
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-5579
SELECT DISTINCT + 22 DIV - + 57 * + 10 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT + 22 / - + 57 * + 10 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5580
SELECT ALL 35 * + + CAST( NULL AS SIGNED ) * CASE + - COUNT( * ) WHEN - 75 THEN - 20 WHEN + 37 / - 6 + - - 49 THEN - COUNT( * ) * - - COUNT( * ) - - 46 + + 60 + - CAST( - 6 AS SIGNED ) + + NULLIF ( - ( - + COUNT( * ) ), 25 ) WHEN - MIN( DISTINCT + + 69 ) + 21 THEN + 15 ELSE NULL END - - 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL 35 * + + CAST ( NULL AS INTEGER ) * CASE + - COUNT ( * ) WHEN - 75 THEN - 20 WHEN + 37 / - 6 + - - 49 THEN - COUNT ( * ) * - - COUNT ( * ) - - 46 + + 60 + - CAST ( - 6 AS INTEGER ) + + NULLIF ( - ( - + COUNT ( * ) ), 25 ) WHEN - MIN ( DISTINCT + + 69 ) + 21 THEN + 15 ELSE NULL END - - 62 AS col1
----
NULL

query I rowsort
SELECT + 71 * - - 23
----
1633

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT + COUNT( * ) * MIN( DISTINCT 82 ) + 17 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-5582
SELECT + COUNT ( * ) * MIN ( DISTINCT 82 ) + 17 AS col0
----
99

query II rowsort
SELECT + 85 + - 85 - 73 * 92 AS col0, + 75
----
-6716
75

query I rowsort
SELECT + + ( - 70 )
----
-70

query I rowsort
SELECT ALL + 68 * + - 80 - - 50 AS col2
----
-5390

query I rowsort
SELECT + 27 * + 33
----
891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5587
SELECT ALL NULLIF ( - - 10, CAST( - - COUNT( * ) AS SIGNED ) + 79 + - + 23 ) col0
----
10

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL NULLIF ( - - 10, CAST ( - - COUNT ( * ) AS INTEGER ) + 79 + - + 23 ) col0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5588
SELECT 53 + 86 DIV + 94
----
53

skipif mysql # not compatible
query I rowsort label-5588
SELECT 53 + 86 / + 94
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT CASE + - 67 WHEN 20 THEN NULL WHEN - + COUNT( * ) THEN - 75 / - 92 END - + MIN( ALL - 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5589
SELECT CASE + - 67 WHEN 20 THEN NULL WHEN - + COUNT ( * ) THEN - 75 / - 92 END - + MIN ( ALL - 46 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT ( + - COUNT( * ) ) * + 22 * 84 AS col1
----
-1848

skipif mysql # not compatible
query I rowsort label-5590
SELECT ( + - COUNT ( * ) ) * + 22 * 84 AS col1
----
-1848

query I rowsort
SELECT 97 + + 43 * + 57 AS col0
----
2548

query I rowsort
SELECT DISTINCT + 52 * + + 39
----
2028

onlyif mysql # aggregate syntax: 
query II rowsort label-5593
SELECT DISTINCT 36 + + COUNT( * ) + + 65 AS col2, - 20 * - 72 * - 0 AS col0
----
102
0

skipif mysql # not compatible
query II rowsort label-5593
SELECT DISTINCT 36 + + COUNT ( * ) + + 65 AS col2, - 20 * - 72 * - 0 AS col0
----
102
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5594
SELECT 97 + + CAST( 42 AS SIGNED ) AS col1
----
139

skipif mysql # not compatible
query I rowsort label-5594
SELECT 97 + + CAST ( 42 AS INTEGER ) AS col1
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5595
SELECT DISTINCT - 52 + 15 + + 34 AS col1, 80 / + CASE - CAST( NULL AS SIGNED ) WHEN - COUNT( * ) * - + 59 THEN - 86 + - - 14 ELSE NULL END
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-5595
SELECT DISTINCT - 52 + 15 + + 34 AS col1, 80 / + CASE - CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) * - + 59 THEN - 86 + - - 14 ELSE NULL END
----
-3
NULL

query I rowsort
SELECT DISTINCT - 80 * + - ( - 41 )
----
-3280

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT ALL + COUNT( * ) + + 98 * 96 + 60 + + - COUNT( * ) - + 30 col1
----
9438

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL + COUNT ( * ) + + 98 * 96 + 60 + + - COUNT ( * ) - + 30 col1
----
9438

onlyif mysql # aggregate syntax: 
query II rowsort label-5598
SELECT ALL - 36 + + - COUNT( * ) AS col2, COUNT( ALL - - 67 )
----
-37
1

skipif mysql # not compatible
query II rowsort label-5598
SELECT ALL - 36 + + - COUNT ( * ) AS col2, COUNT ( ALL - - 67 )
----
-37
1

query I rowsort
SELECT ALL + 45 + - 23 + + 61 AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5600
SELECT + CAST( - + 14 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-5600
SELECT + CAST ( - + 14 AS INTEGER )
----
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5601
SELECT - + ( + CAST( NULL AS DECIMAL ) ) * - 93 + 20 * 23 * + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5601
SELECT - + ( + CAST ( NULL AS REAL ) ) * - 93 + 20 * 23 * + 36
----
NULL

query I rowsort
SELECT DISTINCT - + 29 + + ( + 49 ) * - ( 31 ) AS col1
----
-1548

query I rowsort
SELECT DISTINCT + 43 + - - 72
----
115

query I rowsort
SELECT ALL - ( - ( 91 ) ) AS col2
----
91

query I rowsort
SELECT ALL 72 * + 16 + + 63 + - 61 AS col1
----
1154

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT DISTINCT + 93 * - - MAX( - - 26 )
----
2418

skipif mysql # not compatible
query I rowsort label-5606
SELECT DISTINCT + 93 * - - MAX ( - - 26 )
----
2418

query I rowsort
SELECT + + COALESCE ( ( - + 41 ), + 0 + - 67 )
----
-41

query I rowsort
SELECT ALL + 60 * CASE - 62 WHEN 4 / AVG ( 81 ) THEN NULL WHEN 52 THEN - 70 END
----
NULL

query I rowsort
SELECT + 99 - 66 AS col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5610
SELECT 70 * - - 67 - COALESCE ( 99, - - 82 DIV 45 )
----
4591

skipif mysql # not compatible
query I rowsort label-5610
SELECT 70 * - - 67 - COALESCE ( 99, - - 82 / 45 )
----
4591

query I rowsort
SELECT ALL - 43 * - 24 AS col0
----
1032

query I rowsort
SELECT 19 * 60
----
1140

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT - - 49 * - 17 - COUNT( * ) AS col0
----
-834

skipif mysql # not compatible
query I rowsort label-5613
SELECT - - 49 * - 17 - COUNT ( * ) AS col0
----
-834

query II rowsort
SELECT DISTINCT - 33, + 79 - + 45 AS col0
----
-33
34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5615
SELECT CAST( - - 24 AS SIGNED ) DIV - 92 AS col1, 4 + - 87 + - NULLIF ( + 49, - CAST( NULL AS SIGNED ) ) + + - 8 + 45 + + 84 DIV + 15 AS col1
----
0
-90

skipif mysql # not compatible
query II rowsort label-5615
SELECT CAST ( - - 24 AS INTEGER ) / - 92 AS col1, 4 + - 87 + - NULLIF ( + 49, - CAST ( NULL AS INTEGER ) ) + + - 8 + 45 + + 84 / + 15 AS col1
----
0
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5616
SELECT ALL 3 DIV + - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL 3 / + - COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5617
SELECT MIN( + - 79 ) * - 16 DIV + COUNT( * ) + + 34 + MAX( ALL + + 33 ) * 86 + - 30 * - - COUNT( * ) + + - 57 AS col2
----
4049

skipif mysql # not compatible
query I rowsort label-5617
SELECT MIN ( + - 79 ) * - 16 / + COUNT ( * ) + + 34 + MAX ( ALL + + 33 ) * 86 + - 30 * - - COUNT ( * ) + + - 57 AS col2
----
4049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5618
SELECT ALL 38 + + - 53 + + 23 + + 13 * + + 82 * + + CAST( NULL AS SIGNED ), COUNT( * ) + + 67 AS col0
----
NULL
68

skipif mysql # not compatible
query II rowsort label-5618
SELECT ALL 38 + + - 53 + + 23 + + 13 * + + 82 * + + CAST ( NULL AS INTEGER ), COUNT ( * ) + + 67 AS col0
----
NULL
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5619
SELECT ALL 55 * - COUNT( + + ( - - CAST( - + 97 AS SIGNED ) ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL 55 * - COUNT ( + + ( - - CAST ( - + 97 AS INTEGER ) ) ) AS col1
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-5620
SELECT 62 DIV + - 64
----
0

skipif mysql # not compatible
query I rowsort label-5620
SELECT 62 / + - 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT ( - COUNT( ALL - + 64 ) ) - 96 * + 58
----
-5569

skipif mysql # not compatible
query I rowsort label-5621
SELECT ( - COUNT ( ALL - + 64 ) ) - 96 * + 58
----
-5569

query I rowsort
SELECT 7 * 69
----
483

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT DISTINCT 60 * + + COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-5623
SELECT DISTINCT 60 * + + COUNT ( * ) AS col2
----
60

query I rowsort
SELECT ALL 25 + 40
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT ALL + NULLIF ( - COALESCE ( COUNT( * ), + 34 ), COUNT( * ) * - 23 ) + + - 35 + - 88
----
-124

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL + NULLIF ( - COALESCE ( COUNT ( * ), + 34 ), COUNT ( * ) * - 23 ) + + - 35 + - 88
----
-124

query I rowsort
SELECT ( + + ( - + 35 ) ) + + 5 * - + 11 AS col0
----
-90

query I rowsort
SELECT DISTINCT 54 + + + 19 + ( - 72 )
----
1

query I rowsort
SELECT 0 + - 51 AS col1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5629
SELECT 77 + - 48 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5629
SELECT 77 + - 48 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 81 AS col1, 42 + - 51
----
-81
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5631
SELECT - 82, - 43 * + CAST( NULL AS SIGNED ) AS col2
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-5631
SELECT - 82, - 43 * + CAST ( NULL AS INTEGER ) AS col2
----
-82
NULL

query I rowsort
SELECT ( - 23 ) + 31 + + 57 + - - 5
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT - MIN( DISTINCT + + 33 ) col2
----
-33

skipif mysql # not compatible
query I rowsort label-5633
SELECT - MIN ( DISTINCT + + 33 ) col2
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-5634
SELECT ( + COUNT( * ) ) + + 1 col2, 2 AS col1
----
2
2

skipif mysql # not compatible
query II rowsort label-5634
SELECT ( + COUNT ( * ) ) + + 1 col2, 2 AS col1
----
2
2

query I rowsort
SELECT ALL + 16 * + + 32 + - NULLIF ( 52, - 2 / + - 29 / - - 21 ) + CASE + - 30 WHEN - - 75 THEN 65 WHEN + 66 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT DISTINCT - COUNT( * ) - COUNT( * ) - + 44 + 4
----
-42

skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) - + 44 + 4
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5637
SELECT DISTINCT COUNT( + 43 ) / 33 * - 23 * - CASE 43 WHEN ( + + 32 ) THEN + CASE WHEN NOT NULL BETWEEN ( + 24 ) AND ( + 73 + - 68 ) THEN + 45 ELSE + 64 + - + 95 + - + ( COUNT( * ) ) END * - COUNT( - 93 ) + ( - + 23 ) / CAST( NULL AS SIGNED ) WHEN + 16 THEN - 61 + - NULLIF ( MIN( + 9 ), + 68 ) WHEN - 37 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT COUNT ( + 43 ) / 33 * - 23 * - CASE 43 WHEN ( + + 32 ) THEN + CASE WHEN NOT NULL BETWEEN ( + 24 ) AND ( + 73 + - 68 ) THEN + 45 ELSE + 64 + - + 95 + - + ( COUNT ( * ) ) END * - COUNT ( - 93 ) + ( - + 23 ) / CAST ( NULL AS INTEGER ) WHEN + 16 THEN - 61 + - NULLIF ( MIN ( + 9 ), + 68 ) WHEN - 37 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - - 40 * + 28 * - + 44 + 54 - 20 + 17 + - + 96 * - 56 AS col1
----
-43853

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5639
SELECT ALL 78 * + CASE + COUNT( ALL - 32 ) WHEN 94 + - 52 THEN NULL ELSE - - CASE + - 85 WHEN 54 THEN - 49 * 30 END / - COUNT( * ) + - ( - NULLIF ( + CASE 10 WHEN - - COUNT( * ) * + 42 THEN + - SUM( DISTINCT + 93 ) END, + - 64 ) ) * - 63 / - 27 + CASE + 94 WHEN 8 THEN + CASE + 41 WHEN - 78 THEN - ( - 71 ) WHEN - 80 + - CAST( - 5 AS SIGNED ) THEN + 44 ELSE NULL END WHEN + COUNT( * ) + + CASE 17 - + 97 * - 2 WHEN 90 + 32 THEN + ( 76 ) ELSE CASE 39 WHEN + 91 + 81 THEN 40 + - 59 END END THEN - 31 + 37 / 50 ELSE 66 + 7 END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL 78 * + CASE + COUNT ( ALL - 32 ) WHEN 94 + - 52 THEN NULL ELSE - - CASE + - 85 WHEN 54 THEN - 49 * 30 END / - COUNT ( * ) + - ( - NULLIF ( + CASE 10 WHEN - - COUNT ( * ) * + 42 THEN + - SUM ( DISTINCT + 93 ) END, + - 64 ) ) * - 63 / - 27 + CASE + 94 WHEN 8 THEN + CASE + 41 WHEN - 78 THEN - ( - 71 ) WHEN - 80 + - CAST ( - 5 AS INTEGER ) THEN + 44 ELSE NULL END WHEN + COUNT ( * ) + + CASE 17 - + 97 * - 2 WHEN 90 + 32 THEN + ( 76 ) ELSE CASE 39 WHEN + 91 + 81 THEN 40 + - 59 END END THEN - 31 + 37 / 50 ELSE 66 + 7 END END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5640
SELECT 44 DIV - 39 + 61 * 18
----
1097

skipif mysql # not compatible
query I rowsort label-5640
SELECT 44 / - 39 + 61 * 18
----
1097

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT ALL 43 * - + COUNT( * ) + + - 95 - + 25
----
-163

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL 43 * - + COUNT ( * ) + + - 95 - + 25
----
-163

query I rowsort
SELECT ALL + 64 * - 48
----
-3072

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT + COUNT( * ) * - 19 * ( - - COUNT( * ) ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-5643
SELECT + COUNT ( * ) * - 19 * ( - - COUNT ( * ) ) AS col2
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5644
SELECT + ( 53 ) DIV 13 * 93 + + COALESCE ( + COUNT( * ), - + 34 * - NULLIF ( + ( - - NULLIF ( 85, + 68 ) ), 73 ) + + + 52 * + 92 ) AS col0
----
373

skipif mysql # not compatible
query I rowsort label-5644
SELECT + ( 53 ) / 13 * 93 + + COALESCE ( + COUNT ( * ), - + 34 * - NULLIF ( + ( - - NULLIF ( 85, + 68 ) ), 73 ) + + + 52 * + 92 ) AS col0
----
373

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5645
SELECT + 97 + - SUM( CAST( - 80 AS SIGNED ) ) AS col1, 14 * - 61 * + COUNT( * )
----
177
-854

skipif mysql # not compatible
query II rowsort label-5645
SELECT + 97 + - SUM ( CAST ( - 80 AS INTEGER ) ) AS col1, 14 * - 61 * + COUNT ( * )
----
177
-854

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT - COUNT( * ) * + - 25 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-5646
SELECT - COUNT ( * ) * + - 25 AS col2
----
25

query II rowsort
SELECT 98 AS col1, - ( - + 81 )
----
98
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT CASE - 64 WHEN - 23 THEN - COUNT( * ) - 36 END * + + 24 + + + 48 + 47 + - 88 * + 46 / AVG ( DISTINCT - - 98 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5648
SELECT CASE - 64 WHEN - 23 THEN - COUNT ( * ) - 36 END * + + 24 + + + 48 + 47 + - 88 * + 46 / AVG ( DISTINCT - - 98 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT DISTINCT MIN( - 0 ) * ( - 13 ) + 18 col2
----
18

skipif mysql # not compatible
query I rowsort label-5649
SELECT DISTINCT MIN ( - 0 ) * ( - 13 ) + 18 col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT - ( + + 83 ) + SUM( ALL + + 80 ) + - + 39 - - 53 * - 40 * + - 36 - + ( + 9 ) AS col1
----
76269

skipif mysql # not compatible
query I rowsort label-5650
SELECT - ( + + 83 ) + SUM ( ALL + + 80 ) + - + 39 - - 53 * - 40 * + - 36 - + ( + 9 ) AS col1
----
76269

query I rowsort
SELECT ALL + 69 + + + 76 * - 97 * - 89 + - + 85 AS col0
----
656092

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT COUNT( DISTINCT + - 34 )
----
1

skipif mysql # not compatible
query I rowsort label-5652
SELECT COUNT ( DISTINCT + - 34 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT ALL + COALESCE ( + 38, + 25 * 8, + 32 * + + COUNT( * ) ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL + COALESCE ( + 38, + 25 * 8, + 32 * + + COUNT ( * ) ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT DISTINCT - 42 + + MAX( 48 ) * - - MAX( DISTINCT - 39 )
----
-1914

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT - 42 + + MAX ( 48 ) * - - MAX ( DISTINCT - 39 )
----
-1914

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5655
SELECT - 20 * 86, - 17 * - - 0 + + CAST( NULL AS SIGNED ) * - + 94 AS col1
----
-1720
NULL

skipif mysql # not compatible
query II rowsort label-5655
SELECT - 20 * 86, - 17 * - - 0 + + CAST ( NULL AS INTEGER ) * - + 94 AS col1
----
-1720
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5656
SELECT + 43 DIV - - 15 AS col1, 93 AS col1
----
2
93

skipif mysql # not compatible
query II rowsort label-5656
SELECT + 43 / - - 15 AS col1, 93 AS col1
----
2
93

query I rowsort
SELECT DISTINCT 49 + - 37 + + 27
----
39

query I rowsort
SELECT ALL CASE 73 WHEN + 18 THEN + ( + 29 ) WHEN - NULLIF ( - 72, - + 72 ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL 84 + ( + + 47 )
----
131

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5660
SELECT + 90 * - + 33 * + COALESCE ( + COUNT( + - 59 ), + 28 ) * + CASE + ( - - 29 ) WHEN + - CASE - 73 WHEN 88 THEN CASE - 89 WHEN + ( + 61 ) THEN + COUNT( * ) * - - 12 * 97 + - - ( 66 ) + CAST( NULL AS DECIMAL ) - + 11 WHEN - 28 THEN 80 END ELSE - 2 * 27 END * 44 - 84 / COUNT( * ) THEN COALESCE ( - COUNT( * ), 10 ) ELSE - 24 END * 65
----
4633200

skipif mysql # not compatible
query I rowsort label-5660
SELECT + 90 * - + 33 * + COALESCE ( + COUNT ( + - 59 ), + 28 ) * + CASE + ( - - 29 ) WHEN + - CASE - 73 WHEN 88 THEN CASE - 89 WHEN + ( + 61 ) THEN + COUNT ( * ) * - - 12 * 97 + - - ( 66 ) + CAST ( NULL AS REAL ) - + 11 WHEN - 28 THEN 80 END ELSE - 2 * 27 END * 44 - 84 / COUNT ( * ) THEN COALESCE ( - COUNT ( * ), 10 ) ELSE - 24 END * 65
----
4633200

query I rowsort
SELECT DISTINCT - 25 + - 77 * 83 AS col2
----
-6416

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT + 60 * - 8 / - 24 * + CASE + 48 WHEN - NULLIF ( - + 7, + - 91 ) THEN - 57 * - + COUNT( * ) * - 41 - - - 91 * 90 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5662
SELECT + 60 * - 8 / - 24 * + CASE + 48 WHEN - NULLIF ( - + 7, + - 91 ) THEN - 57 * - + COUNT ( * ) * - 41 - - - 91 * 90 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5663
SELECT - CAST( NULL AS SIGNED ) - + COUNT( * ) / - 72 * + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5663
SELECT - CAST ( NULL AS INTEGER ) - + COUNT ( * ) / - 72 * + 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT - COUNT( + 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-5664
SELECT - COUNT ( + 43 )
----
-1

query I rowsort
SELECT + 53 + + ( - 65 )
----
-12

query I rowsort
SELECT DISTINCT + 87 * + - 39 AS col1
----
-3393

query I rowsort
SELECT + 79 * - - 62 col1
----
4898

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT + + COUNT( * ) + - - 79
----
80

skipif mysql # not compatible
query I rowsort label-5668
SELECT + + COUNT ( * ) + - - 79
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT + COUNT( + 51 ) - + 31
----
-30

skipif mysql # not compatible
query I rowsort label-5669
SELECT + COUNT ( + 51 ) - + 31
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT ALL + SUM( ALL - ( - 35 ) ) col2
----
35

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL + SUM ( ALL - ( - 35 ) ) col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT ALL + MIN( + 41 ) col0
----
41

skipif mysql # not compatible
query I rowsort label-5671
SELECT ALL + MIN ( + 41 ) col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT - - NULLIF ( + + 53, + + 19 / 11 + + 24 * COUNT( * ) )
----
53

skipif mysql # not compatible
query I rowsort label-5672
SELECT - - NULLIF ( + + 53, + + 19 / 11 + + 24 * COUNT ( * ) )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5673
SELECT COALESCE ( + + ( - 88 ), + CAST( NULL AS SIGNED ) * SUM( DISTINCT 98 ) * COUNT( * ) ) col2
----
-88

skipif mysql # not compatible
query I rowsort label-5673
SELECT COALESCE ( + + ( - 88 ), + CAST ( NULL AS INTEGER ) * SUM ( DISTINCT 98 ) * COUNT ( * ) ) col2
----
-88

query II rowsort
SELECT + COALESCE ( - + 28, - 38, 16 ) + - 93 col1, + 52 AS col1
----
-121
52

onlyif mysql # aggregate syntax: 
query II rowsort label-5675
SELECT - 37 + - + SUM( ALL + ( - + 80 ) ) AS col2, + 42
----
43
42

skipif mysql # not compatible
query II rowsort label-5675
SELECT - 37 + - + SUM ( ALL + ( - + 80 ) ) AS col2, + 42
----
43
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5676
SELECT ALL + - NULLIF ( + - COALESCE ( + 26, COUNT( * ) + 91, + CAST( - MIN( - - 31 ) AS SIGNED ) + + 66 + - + 34 + + 38 ), ( - + ( + 29 ) ) ), + 9 * - 84 * 76 + + - 30 col2
----
26
-57486

skipif mysql # not compatible
query II rowsort label-5676
SELECT ALL + - NULLIF ( + - COALESCE ( + 26, COUNT ( * ) + 91, + CAST ( - MIN ( - - 31 ) AS INTEGER ) + + 66 + - + 34 + + 38 ), ( - + ( + 29 ) ) ), + 9 * - 84 * 76 + + - 30 col2
----
26
-57486

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT + 81 * 29 * MAX( - + 66 ) * 87 * - 84 col1
----
1132988472

skipif mysql # not compatible
query I rowsort label-5677
SELECT + 81 * 29 * MAX ( - + 66 ) * 87 * - 84 col1
----
1132988472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5678
SELECT - CASE - - 28 WHEN CASE - 52 WHEN - - COUNT( - + CAST( 30 AS SIGNED ) ) THEN + - 76 * - + 62 + - 31 + + - 51 * 40 + - COUNT( * ) / - + 50 WHEN + ( ( + 74 ) ) * 35 + - SUM( - 61 ) + - 6 THEN + 88 * + 17 * ( 19 ) / - ( 50 + 86 ) END THEN + COUNT( * ) ELSE - 35 END + 84
----
119

skipif mysql # not compatible
query I rowsort label-5678
SELECT - CASE - - 28 WHEN CASE - 52 WHEN - - COUNT ( - + CAST ( 30 AS INTEGER ) ) THEN + - 76 * - + 62 + - 31 + + - 51 * 40 + - COUNT ( * ) / - + 50 WHEN + ( ( + 74 ) ) * 35 + - SUM ( - 61 ) + - 6 THEN + 88 * + 17 * ( 19 ) / - ( 50 + 86 ) END THEN + COUNT ( * ) ELSE - 35 END + 84
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5679
SELECT + - COUNT( * ) DIV + COALESCE ( - + 2, - 65, + + 75 DIV 89 * + ( - NULLIF ( 3, 1 ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5679
SELECT + - COUNT ( * ) / + COALESCE ( - + 2, - 65, + + 75 / 89 * + ( - NULLIF ( 3, 1 ) ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT ALL - 61 * + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL - 61 * + COUNT ( * )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5681
SELECT ALL - 62 * - 75 + 77 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL - 62 * - 75 + 77 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 68 - 15 AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5683
SELECT - CAST( NULL AS SIGNED ) * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5683
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT ALL + ( + 12 ) AS col1
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5685
SELECT - COUNT( * ) DIV - + 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5685
SELECT - COUNT ( * ) / - + 85 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5686
SELECT NULLIF ( + - 70, + COUNT( * ) - - 13 + - 69 + + + 60 + 96 / - 21 + COALESCE ( - COALESCE ( - + NULLIF ( + 39, - 62 * - COUNT( * ) ), - + 92 * 50 ), + CAST( NULLIF ( 81, - 55 ) AS DECIMAL ) + - COUNT( * ) * 1 ) * - COUNT( * ) + + 5 ) col2
----
-70

skipif mysql # not compatible
query I rowsort label-5686
SELECT NULLIF ( + - 70, + COUNT ( * ) - - 13 + - 69 + + + 60 + 96 / - 21 + COALESCE ( - COALESCE ( - + NULLIF ( + 39, - 62 * - COUNT ( * ) ), - + 92 * 50 ), + CAST ( NULLIF ( 81, - 55 ) AS REAL ) + - COUNT ( * ) * 1 ) * - COUNT ( * ) + + 5 ) col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5687
SELECT DISTINCT CASE - 47 WHEN + 91 * - CASE - + 65 WHEN 56 THEN - 81 END + - 16 THEN NULL WHEN - + 68 + - 77 + + ( + - 1 ) / - 59 THEN + CASE MIN( + 4 ) WHEN + 89 * - - CASE CAST( SUM( DISTINCT + 67 ) AS SIGNED ) WHEN ( - 33 ) / + 10 THEN - 77 WHEN + 31 THEN 47 * 31 END THEN NULL ELSE 30 END ELSE NULL END * 6 + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT CASE - 47 WHEN + 91 * - CASE - + 65 WHEN 56 THEN - 81 END + - 16 THEN NULL WHEN - + 68 + - 77 + + ( + - 1 ) / - 59 THEN + CASE MIN ( + 4 ) WHEN + 89 * - - CASE CAST ( SUM ( DISTINCT + 67 ) AS INTEGER ) WHEN ( - 33 ) / + 10 THEN - 77 WHEN + 31 THEN 47 * 31 END THEN NULL ELSE 30 END ELSE NULL END * 6 + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT ALL 49 * - MAX( ALL + 85 ) * + 83 + + 76 + 49 + 12
----
-345558

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL 49 * - MAX ( ALL + 85 ) * + 83 + + 76 + 49 + 12
----
-345558

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT ALL + CASE + 64 WHEN 16 + + 61 + 64 * + - 34 / COUNT( * ) * - 93 THEN 2 * + ( + - 28 ) WHEN + + 74 - + COUNT( * ) * - CASE 70 WHEN - 28 + COUNT( * ) - + 40 THEN NULL WHEN - NULLIF ( - SUM( DISTINCT + + 38 ), 87 ) THEN 42 + + ( + 81 ) + - 87 END * - ( 62 + + 25 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL + CASE + 64 WHEN 16 + + 61 + 64 * + - 34 / COUNT ( * ) * - 93 THEN 2 * + ( + - 28 ) WHEN + + 74 - + COUNT ( * ) * - CASE 70 WHEN - 28 + COUNT ( * ) - + 40 THEN NULL WHEN - NULLIF ( - SUM ( DISTINCT + + 38 ), 87 ) THEN 42 + + ( + 81 ) + - 87 END * - ( 62 + + 25 ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 17 * - 7 + + 90
----
-29

query I rowsort
SELECT ALL 86 * 61 + - - 73 AS col2
----
5319

query I rowsort
SELECT ALL ( - 12 ) col2
----
-12

query I rowsort
SELECT - 30 + + CASE - 56 WHEN - - 67 THEN ( - 49 ) + + 20 / - 48 END AS col2
----
NULL

query I rowsort
SELECT ALL - 3 * + 22 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT DISTINCT - SUM( DISTINCT 33 ) * - 31
----
1023

skipif mysql # not compatible
query I rowsort label-5695
SELECT DISTINCT - SUM ( DISTINCT 33 ) * - 31
----
1023

query I rowsort
SELECT - 0 * - 70 * + + ( - ( 39 ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5697
SELECT ALL - - MAX( + 40 ) * + - CASE - ( - 75 ) WHEN + 1 THEN - + 82 WHEN - - 61 * + 89 / 37 + + MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) THEN - 70 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL - - MAX ( + 40 ) * + - CASE - ( - 75 ) WHEN + 1 THEN - + 82 WHEN - - 61 * + 89 / 37 + + MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) THEN - 70 ELSE NULL END
----
NULL

query I rowsort
SELECT - - 19 + 97
----
116

query I rowsort
SELECT ALL - NULLIF ( - + 70, - - 60 * 0 + 89 * - - AVG ( DISTINCT 78 ) )
----
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5700
SELECT + 99 * - 79 * - + 39 - + COUNT( * ) * - - ( 36 ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5700
SELECT + 99 * - 79 * - + 39 - + COUNT ( * ) * - - ( 36 ) + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 38 + + ( 45 )
----
7

query I rowsort
SELECT - 43 * - 23 AS col1
----
989

query II rowsort
SELECT ALL - 89 AS col0, ( + + 87 ) AS col1
----
-89
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT - 52 + - MAX( ( + 61 ) ) * + 72 AS col1
----
-4444

skipif mysql # not compatible
query I rowsort label-5704
SELECT - 52 + - MAX ( ( + 61 ) ) * + 72 AS col1
----
-4444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT - - CASE + 33 WHEN + 96 + 57 THEN + CAST( 77 AS SIGNED ) + CAST( NULL AS SIGNED ) - + - 18 + + - 57 * 28 WHEN 22 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT - - CASE + 33 WHEN + 96 + 57 THEN + CAST ( 77 AS INTEGER ) + CAST ( NULL AS INTEGER ) - + - 18 + + - 57 * 28 WHEN 22 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT ALL 96 * - COUNT( DISTINCT - 79 ) * SUM( DISTINCT CASE - - 43 WHEN + - 84 THEN 2 END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL 96 * - COUNT ( DISTINCT - 79 ) * SUM ( DISTINCT CASE - - 43 WHEN + - 84 THEN 2 END ) col0
----
NULL

query I rowsort
SELECT - 65 + + 70
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5708
SELECT + - 62 * - + 77 * + 97 AS col2, 43 DIV ( + 89 ) DIV SUM( DISTINCT + NULLIF ( - 82, + + 83 DIV - - 53 ) ) DIV + ( + 94 ) + 83 + + ( + ( + 62 ) )
----
463078
145

skipif mysql # not compatible
query II rowsort label-5708
SELECT + - 62 * - + 77 * + 97 AS col2, 43 / ( + 89 ) / SUM ( DISTINCT + NULLIF ( - 82, + + 83 / - - 53 ) ) / + ( + 94 ) + 83 + + ( + ( + 62 ) )
----
463078
145

query I rowsort
SELECT ALL + 56 * + CASE - - 83 WHEN - 33 * + + 43 + + + 21 THEN NULL WHEN 90 THEN - COALESCE ( - 3, - 16 ) + - + 52 WHEN 44 * - - 75 THEN NULL END / - + 43 * + 34 + - 24 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5710
SELECT DISTINCT 27 * + 78 * 32 DIV - 64 col0
----
-1053

skipif mysql # not compatible
query I rowsort label-5710
SELECT DISTINCT 27 * + 78 * 32 / - 64 col0
----
-1053

query I rowsort
SELECT DISTINCT 67 + - + 48
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5712
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5713
SELECT DISTINCT - + COUNT( * ) / COALESCE ( 98, - ( - ( + + 24 ) ) * 82, - AVG ( DISTINCT + 69 ) * + CAST( 25 AS SIGNED ) * 9 * - COALESCE ( 51, COUNT( * ) ) * - + 65 * + 42 + COUNT( * ) - + + ( 66 ) ) * - + 51 * - + CASE 11 WHEN + - 71 THEN 76 WHEN 6 * + 19 THEN 27 - 25 END * SUM( - ( 20 ) * + 41 - - 92 ) - 85 * 74 + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT - + COUNT ( * ) / COALESCE ( 98, - ( - ( + + 24 ) ) * 82, - AVG ( DISTINCT + 69 ) * + CAST ( 25 AS INTEGER ) * 9 * - COALESCE ( 51, COUNT ( * ) ) * - + 65 * + 42 + COUNT ( * ) - + + ( 66 ) ) * - + 51 * - + CASE 11 WHEN + - 71 THEN 76 WHEN 6 * + 19 THEN 27 - 25 END * SUM ( - ( 20 ) * + 41 - - 92 ) - 85 * 74 + 40
----
NULL

query I rowsort
SELECT ALL 85 + 78 col1
----
163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5715
SELECT - + 51 * - COUNT( * ) / - 35 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5715
SELECT - + 51 * - COUNT ( * ) / - 35 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT 25 - - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-5716
SELECT 25 - - COUNT ( * )
----
26

query I rowsort
SELECT ALL 12 + - 23
----
-11

query I rowsort
SELECT ( + 28 ) + 43 + + 58 * + 24
----
1463

query II rowsort
SELECT ALL - 6 + 39 * + NULLIF ( + 63, - + 29 * - 49 ) + 83 AS col2, 16
----
2534
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT ALL - SUM( DISTINCT - - 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL - SUM ( DISTINCT - - 99 )
----
-99

query I rowsort
SELECT 0 + 14
----
14

query II rowsort
SELECT + 12 AS col0, ( + 26 ) * - - 97 + + 49 AS col2
----
12
2571

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5723
SELECT 87 + COUNT( * ) DIV 5
----
87

skipif mysql # not compatible
query I rowsort label-5723
SELECT 87 + COUNT ( * ) / 5
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL 30 * - COUNT( * ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL 30 * - COUNT ( * ) AS col0
----
-30

query II rowsort
SELECT 9 AS col0, - 45 AS col2
----
9
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5726
SELECT ALL 79 AS col0, CAST( - 21 AS SIGNED )
----
79
-21

skipif mysql # not compatible
query II rowsort label-5726
SELECT ALL 79 AS col0, CAST ( - 21 AS INTEGER )
----
79
-21

query I rowsort
SELECT 22 + 74 + - 57 AS col2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5728
SELECT - 33, + 5 + CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) AS col1
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-5728
SELECT - 33, + 5 + CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) AS col1
----
-33
NULL

query II rowsort
SELECT DISTINCT 20 AS col2, - 46 AS col0
----
20
-46

query II rowsort
SELECT ALL - 81, 89 * + 56 AS col0
----
-81
4984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5731
SELECT DISTINCT CAST( - - 51 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT CAST ( - - 51 AS INTEGER )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT 1 * COUNT( * ) + - 90
----
-89

skipif mysql # not compatible
query I rowsort label-5732
SELECT 1 * COUNT ( * ) + - 90
----
-89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5733
SELECT COUNT( * ) + - 28 + 0 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5733
SELECT COUNT ( * ) + - 28 + 0 - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5734
SELECT SUM( + CAST( NULL AS SIGNED ) ) / 68 * ( + - 10 ) + + MIN( - - 31 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5734
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) / 68 * ( + - 10 ) + + MIN ( - - 31 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5735
SELECT ALL + 16 * - - CAST( NULL AS SIGNED ) / + + 73 - - 85 + - + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL + 16 * - - CAST ( NULL AS INTEGER ) / + + 73 - - 85 + - + 23
----
NULL

query II rowsort
SELECT ALL 16 + + + 4 AS col2, - 26 AS col0
----
20
-26

query I rowsort
SELECT 70 + - - 25 AS col0
----
95

query I rowsort
SELECT ALL - 25 + + 20 * 46
----
895

query I rowsort
SELECT - 99 * + 93
----
-9207

onlyif mysql # aggregate syntax: 
query II rowsort label-5740
SELECT ALL + + SUM( ALL + 99 ) + 8 + 69, 34 + 96 AS col1
----
176
130

skipif mysql # not compatible
query II rowsort label-5740
SELECT ALL + + SUM ( ALL + 99 ) + 8 + 69, 34 + 96 AS col1
----
176
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5741
SELECT ALL - CASE - - 5 WHEN + - 37 THEN 33 * - 5 WHEN + MAX( - - ( 1 ) ) * + + CAST( NULL AS SIGNED ) THEN NULL WHEN - - 93 THEN - CAST( - 45 AS SIGNED ) * 41 + + 79 + + 55 + - 9 / 27 / - 63 * - 82 END + - COALESCE ( + 4, - 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL - CASE - - 5 WHEN + - 37 THEN 33 * - 5 WHEN + MAX ( - - ( 1 ) ) * + + CAST ( NULL AS INTEGER ) THEN NULL WHEN - - 93 THEN - CAST ( - 45 AS INTEGER ) * 41 + + 79 + + 55 + - 9 / 27 / - 63 * - 82 END + - COALESCE ( + 4, - 2 )
----
NULL

query II rowsort
SELECT DISTINCT 17 AS col1, - 90 + - - ( - + 9 ) * 45 col0
----
17
-495

query I rowsort
SELECT DISTINCT + ( 31 )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5744
SELECT ALL + + 89 DIV - 58
----
-1

skipif mysql # not compatible
query I rowsort label-5744
SELECT ALL + + 89 / - 58
----
-1

query I rowsort
SELECT 40 + - + 28 col0
----
12

query I rowsort
SELECT DISTINCT 14 + COALESCE ( - - 74, + 7 )
----
88

query I rowsort
SELECT ALL 33 + 14 * + 33
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT DISTINCT COUNT( DISTINCT - 50 ) * 47 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-5748
SELECT DISTINCT COUNT ( DISTINCT - 50 ) * 47 AS col2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5749
SELECT ALL + 11 DIV - + 73 * + 25 col1
----
0

skipif mysql # not compatible
query I rowsort label-5749
SELECT ALL + 11 / - + 73 * + 25 col1
----
0

query I rowsort
SELECT ALL - 38 - - 15 + + 27 + + 28
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT ALL - SUM( - 40 )
----
40

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL - SUM ( - 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT DISTINCT 32 * COUNT( * ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT 32 * COUNT ( * ) AS col1
----
32

query I rowsort
SELECT 81 - - CASE + 35 WHEN + 80 THEN + + 89 WHEN + 43 THEN NULL WHEN - - AVG ( - + 80 ) * + - 98 + + 34 THEN COALESCE ( - 21, + - 35 ) END - - - 88 * 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT COALESCE ( + COUNT( * ), ( + 3 ) + 88 ) * 86 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-5754
SELECT COALESCE ( + COUNT ( * ), ( + 3 ) + 88 ) * 86 AS col2
----
86

query I rowsort
SELECT - 71 * - 21 + + - ( - 6 ) AS col0
----
1497

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT ALL COALESCE ( 0, - 7 + - 23 ) - - MIN( 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL COALESCE ( 0, - 7 + - 23 ) - - MIN ( 24 ) AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5757
SELECT NULLIF ( 43, + + NULLIF ( SUM( - 67 ), + - AVG ( - CAST( 98 AS SIGNED ) ) ) * - COUNT( * ) - 23 ) * + CAST( - CAST( + 36 AS DECIMAL ) AS SIGNED ) + + 43 * 51 AS col1
----
645

skipif mysql # not compatible
query I rowsort label-5757
SELECT NULLIF ( 43, + + NULLIF ( SUM ( - 67 ), + - AVG ( - CAST ( 98 AS INTEGER ) ) ) * - COUNT ( * ) - 23 ) * + CAST ( - CAST ( + 36 AS REAL ) AS INTEGER ) + + 43 * 51 AS col1
----
645

query I rowsort
SELECT 76 * NULLIF ( - + 28, + 59 ) - + + 8 + + 38
----
-2098

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5759
SELECT DISTINCT COUNT( ALL - ( - + 10 ) ) DIV + 37 * + 96 col2
----
0

skipif mysql # not compatible
query I rowsort label-5759
SELECT DISTINCT COUNT ( ALL - ( - + 10 ) ) / + 37 * + 96 col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5760
SELECT ALL + ( - 64 ) * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL + ( - 64 ) * + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT ALL CASE 46 WHEN 93 THEN 19 * - CASE + 33 WHEN 97 THEN - 67 WHEN + 1 + - 1 THEN 88 ELSE NULL END + 69 - 96 + + 66 WHEN + 82 * - COUNT( * ) * - 72 THEN + + MAX( DISTINCT + - 29 ) END / 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL CASE 46 WHEN 93 THEN 19 * - CASE + 33 WHEN 97 THEN - 67 WHEN + 1 + - 1 THEN 88 ELSE NULL END + 69 - 96 + + 66 WHEN + 82 * - COUNT ( * ) * - 72 THEN + + MAX ( DISTINCT + - 29 ) END / 72 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5762
SELECT CAST( NULL AS SIGNED ) * + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5762
SELECT CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5763
SELECT DISTINCT ( COUNT( * ) ) * + 2, 25 AS col1
----
2
25

skipif mysql # not compatible
query II rowsort label-5763
SELECT DISTINCT ( COUNT ( * ) ) * + 2, 25 AS col1
----
2
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT ALL - ( - ( + - COALESCE ( + - COUNT( - 77 ), - - 20 * + 17 * + - 54 * + + 60 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL - ( - ( + - COALESCE ( + - COUNT ( - 77 ), - - 20 * + 17 * + - 54 * + + 60 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT + 25 + - COUNT( 30 ) + + NULLIF ( + 82, 32 + + 17 ) - - - 99 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5765
SELECT + 25 + - COUNT ( 30 ) + + NULLIF ( + 82, 32 + + 17 ) - - - 99 AS col2
----
7

query I rowsort
SELECT 16 * + 65
----
1040

query I rowsort
SELECT ALL 17 + - 8 AS col0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5768
SELECT COUNT( * ) * + + 41 col0, - 79
----
41
-79

skipif mysql # not compatible
query II rowsort label-5768
SELECT COUNT ( * ) * + + 41 col0, - 79
----
41
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-5769
SELECT DISTINCT + 32 + + 89 + + 75 DIV NULLIF ( + 77, + CASE - - 35 WHEN + 17 * + + 16 DIV + 72 THEN NULL ELSE - + 4 END )
----
121

skipif mysql # not compatible
query I rowsort label-5769
SELECT DISTINCT + 32 + + 89 + + 75 / NULLIF ( + 77, + CASE - - 35 WHEN + 17 * + + 16 / + 72 THEN NULL ELSE - + 4 END )
----
121

query I rowsort
SELECT ALL - + 17 + 12 * - 51 + - 46
----
-675

onlyif mysql # DIV for integer division: 
query I rowsort label-5771
SELECT + CASE 95 WHEN + 76 THEN NULL ELSE - + 99 * + 19 DIV + 1 END AS col0
----
-1881

skipif mysql # not compatible
query I rowsort label-5771
SELECT + CASE 95 WHEN + 76 THEN NULL ELSE - + 99 * + 19 / + 1 END AS col0
----
-1881

onlyif mysql # aggregate syntax: 
query II rowsort label-5772
SELECT ALL + + 37 + + 3 AS col1, + MIN( + 14 ) AS col2
----
40
14

skipif mysql # not compatible
query II rowsort label-5772
SELECT ALL + + 37 + + 3 AS col1, + MIN ( + 14 ) AS col2
----
40
14

query I rowsort
SELECT + - 99 + + ( - + 0 )
----
-99

query I rowsort
SELECT ALL ( + - 71 ) AS col2
----
-71

query I rowsort
SELECT ALL - + 25 + - 14
----
-39

query I rowsort
SELECT - 64 + 35 + - - 25
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5777
SELECT - 33 DIV - 26 AS col2, - CASE 91 WHEN - 59 THEN NULL ELSE - - MAX( ALL + + 85 ) END + + 41 * CASE 53 WHEN + CASE 9 WHEN - MIN( CAST( 93 AS SIGNED ) ) THEN - - 25 END * + - 35 + + 43 + - COUNT( * ) THEN - NULLIF ( - + 35, + - CAST( NULL AS SIGNED ) ) - + 98 + - - 6 WHEN - 5 THEN - 98 * - 11 + + NULLIF ( + 28, 0 + 65 * 91 ) DIV - CAST( 95 + - COUNT( * ) AS SIGNED ) ELSE NULL END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5777
SELECT - 33 / - 26 AS col2, - CASE 91 WHEN - 59 THEN NULL ELSE - - MAX ( ALL + + 85 ) END + + 41 * CASE 53 WHEN + CASE 9 WHEN - MIN ( CAST ( 93 AS INTEGER ) ) THEN - - 25 END * + - 35 + + 43 + - COUNT ( * ) THEN - NULLIF ( - + 35, + - CAST ( NULL AS INTEGER ) ) - + 98 + - - 6 WHEN - 5 THEN - 98 * - 11 + + NULLIF ( + 28, 0 + 65 * 91 ) / - CAST ( 95 + - COUNT ( * ) AS INTEGER ) ELSE NULL END
----
1
NULL

query II rowsort
SELECT ALL + 38 + + 48, - 37 AS col1
----
86
-37

query I rowsort
SELECT - 73 - - 16
----
-57

query I rowsort
SELECT DISTINCT + - 95 - 33
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5781
SELECT - CAST( + 73 AS SIGNED ) * 84 * - 73
----
447636

skipif mysql # not compatible
query I rowsort label-5781
SELECT - CAST ( + 73 AS INTEGER ) * 84 * - 73
----
447636

query I rowsort
SELECT ALL CASE + 9 WHEN - 57 * - + 39 THEN 30 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5783
SELECT ALL + 7 - + COUNT( * ) + + 15 AS col1, - 56
----
21
-56

skipif mysql # not compatible
query II rowsort label-5783
SELECT ALL + 7 - + COUNT ( * ) + + 15 AS col1, - 56
----
21
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-5784
SELECT ALL + COUNT( * ) AS col1, + 11 + ( 87 ) * + COUNT( * ) * - SUM( + - 93 )
----
1
8102

skipif mysql # not compatible
query II rowsort label-5784
SELECT ALL + COUNT ( * ) AS col1, + 11 + ( 87 ) * + COUNT ( * ) * - SUM ( + - 93 )
----
1
8102

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT ALL + 8 * + MIN( + 98 ) - + 35 * + - 81 AS col1
----
3619

skipif mysql # not compatible
query I rowsort label-5785
SELECT ALL + 8 * + MIN ( + 98 ) - + 35 * + - 81 AS col1
----
3619

onlyif mysql # aggregate syntax: 
query II rowsort label-5786
SELECT + 46, + SUM( + - 38 ) * - 22 + ( - 58 ) AS col2
----
46
778

skipif mysql # not compatible
query II rowsort label-5786
SELECT + 46, + SUM ( + - 38 ) * - 22 + ( - 58 ) AS col2
----
46
778

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5787
SELECT DISTINCT + COUNT( * ) AS col0, - CAST( + + 95 AS SIGNED )
----
1
-95

skipif mysql # not compatible
query II rowsort label-5787
SELECT DISTINCT + COUNT ( * ) AS col0, - CAST ( + + 95 AS INTEGER )
----
1
-95

query I rowsort
SELECT + 87 * - 19 + 61 AS col0
----
-1592

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5789
SELECT + 61 - + ( COALESCE ( + 6, - 83 + + 76 + 0, 67 ) ), 44 * + 36 + - CASE + CAST( NULL AS DECIMAL ) WHEN - MAX( DISTINCT - 62 ) / 58 THEN 85 END col0
----
55
NULL

skipif mysql # not compatible
query II rowsort label-5789
SELECT + 61 - + ( COALESCE ( + 6, - 83 + + 76 + 0, 67 ) ), 44 * + 36 + - CASE + CAST ( NULL AS REAL ) WHEN - MAX ( DISTINCT - 62 ) / 58 THEN 85 END col0
----
55
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5790
SELECT + 93 DIV 33 * - + COUNT( * ) + + 62
----
60

skipif mysql # not compatible
query I rowsort label-5790
SELECT + 93 / 33 * - + COUNT ( * ) + + 62
----
60

query II rowsort
SELECT + 57 AS col0, 41 AS col0
----
57
41

query I rowsort
SELECT ALL 19 * + 53 AS col2
----
1007

onlyif mysql # DIV for integer division: 
query I rowsort label-5793
SELECT - 25 DIV + 20
----
-1

skipif mysql # not compatible
query I rowsort label-5793
SELECT - 25 / + 20
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5794
SELECT ALL + COALESCE ( + - 69, + + 55 * - + CASE AVG ( DISTINCT + + CASE - + 65 WHEN + 98 / - ( 82 ) / 9 * - 81 / + - 57 THEN - 15 WHEN + 83 THEN NULL END ) WHEN + ( - 10 ) * CAST( + COUNT( * ) AS DECIMAL ) * + 20 THEN - 47 * - + 55 WHEN 70 THEN NULL WHEN + + 63 THEN NULL END )
----
-69

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL + COALESCE ( + - 69, + + 55 * - + CASE AVG ( DISTINCT + + CASE - + 65 WHEN + 98 / - ( 82 ) / 9 * - 81 / + - 57 THEN - 15 WHEN + 83 THEN NULL END ) WHEN + ( - 10 ) * CAST ( + COUNT ( * ) AS REAL ) * + 20 THEN - 47 * - + 55 WHEN 70 THEN NULL WHEN + + 63 THEN NULL END )
----
-69

query I rowsort
SELECT DISTINCT - 62 * - + 28
----
1736

query I rowsort
SELECT 81 * - 79 + 15
----
-6384

onlyif mysql # aggregate syntax: 
query II rowsort label-5797
SELECT ALL + 61 AS col0, 87 + + 30 * - NULLIF ( 92, + SUM( ALL 92 ) )
----
61
NULL

skipif mysql # not compatible
query II rowsort label-5797
SELECT ALL + 61 AS col0, 87 + + 30 * - NULLIF ( 92, + SUM ( ALL 92 ) )
----
61
NULL

query I rowsort
SELECT DISTINCT + 90 * 96
----
8640

query I rowsort
SELECT + 54 + 64 AS col2
----
118

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5800
SELECT COALESCE ( + - COUNT( * ), 10 DIV 94 - - CASE 31 WHEN COUNT( * ) THEN + ( - 46 ) WHEN 78 + + - CASE - 82 WHEN + - CAST( + 99 AS DECIMAL ) THEN - - 62 END + - 18 + - 62 DIV - + 24 THEN NULL ELSE - 5 - + + 50 END ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5800
SELECT COALESCE ( + - COUNT ( * ), 10 / 94 - - CASE 31 WHEN COUNT ( * ) THEN + ( - 46 ) WHEN 78 + + - CASE - 82 WHEN + - CAST ( + 99 AS REAL ) THEN - - 62 END + - 18 + - 62 / - + 24 THEN NULL ELSE - 5 - + + 50 END ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5801
SELECT + COUNT( * ), - 89 * - 59 AS col2
----
1
5251

skipif mysql # not compatible
query II rowsort label-5801
SELECT + COUNT ( * ), - 89 * - 59 AS col2
----
1
5251

onlyif mysql # DIV for integer division: 
query I rowsort label-5802
SELECT + + 71 * 24 DIV 20 + - 94
----
-9

skipif mysql # not compatible
query I rowsort label-5802
SELECT + + 71 * 24 / 20 + - 94
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5803
SELECT + + ( 9 ) * - + 82 + - CAST( NULL AS SIGNED ) * + 51 + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT + + ( 9 ) * - + 82 + - CAST ( NULL AS INTEGER ) * + 51 + 63
----
NULL

query II rowsort
SELECT ALL + 41, - ( + 39 ) AS col2
----
41
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT + 88 * COUNT( * ) + + 24
----
112

skipif mysql # not compatible
query I rowsort label-5805
SELECT + 88 * COUNT ( * ) + + 24
----
112

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5806
SELECT ALL + 53 * - + 78 * + CAST( NULL AS DECIMAL ) + + ( + ( - - 71 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL + 53 * - + 78 * + CAST ( NULL AS REAL ) + + ( + ( - - 71 ) ) AS col1
----
NULL

query II rowsort
SELECT 35 AS col2, + 90 * 85
----
35
7650

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT + - 88 + COUNT( * ) + - + MAX( 68 )
----
-155

skipif mysql # not compatible
query I rowsort label-5808
SELECT + - 88 + COUNT ( * ) + - + MAX ( 68 )
----
-155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5809
SELECT DISTINCT - 83 + + + CASE + CASE 62 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - - COUNT( * ) THEN + 8 END WHEN + 48 THEN + 99 END * - - CAST( - 30 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT DISTINCT - 83 + + + CASE + CASE 62 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - - COUNT ( * ) THEN + 8 END WHEN + 48 THEN + 99 END * - - CAST ( - 30 AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5810
SELECT DISTINCT + 2 + + 48 DIV - 54 - + NULLIF ( - COUNT( * ), - - 68 + + 5 - - 97 * - 21 * - 73 ) - - - CAST( + 83 AS SIGNED ) + + - 53 * + 46 + - 40 AS col0
----
-2558

skipif mysql # not compatible
query I rowsort label-5810
SELECT DISTINCT + 2 + + 48 / - 54 - + NULLIF ( - COUNT ( * ), - - 68 + + 5 - - 97 * - 21 * - 73 ) - - - CAST ( + 83 AS INTEGER ) + + - 53 * + 46 + - 40 AS col0
----
-2558

query I rowsort
SELECT + - 44 * 19 col0
----
-836

onlyif mysql # DIV for integer division: 
query I rowsort label-5812
SELECT + NULLIF ( 11, - 8 ) DIV + 92 * - 18 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5812
SELECT + NULLIF ( 11, - 8 ) / + 92 * - 18 AS col2
----
0

query I rowsort
SELECT DISTINCT - 0 + 56
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5814
SELECT DISTINCT 74 + - - 24 + 48 - + 60 DIV - ( + + 6 ) * - COUNT( * ) * - COUNT( * ) col2, MAX( DISTINCT + 14 )
----
156
14

skipif mysql # not compatible
query II rowsort label-5814
SELECT DISTINCT 74 + - - 24 + 48 - + 60 / - ( + + 6 ) * - COUNT ( * ) * - COUNT ( * ) col2, MAX ( DISTINCT + 14 )
----
156
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5815
SELECT - 17 + - MAX( - CAST( - - 8 AS SIGNED ) )
----
-9

skipif mysql # not compatible
query I rowsort label-5815
SELECT - 17 + - MAX ( - CAST ( - - 8 AS INTEGER ) )
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-5816
SELECT ALL - + 22 DIV 50 * + - 11 + + 53, - ( - 1 ) * - 30 col2
----
53
-30

skipif mysql # not compatible
query II rowsort label-5816
SELECT ALL - + 22 / 50 * + - 11 + + 53, - ( - 1 ) * - 30 col2
----
53
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT DISTINCT SUM( + - 92 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-5817
SELECT DISTINCT SUM ( + - 92 ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT + ( + COUNT( * ) ) * - + 98 * 93 + 47 * + 10 + - 32
----
-8676

skipif mysql # not compatible
query I rowsort label-5818
SELECT + ( + COUNT ( * ) ) * - + 98 * 93 + 47 * + 10 + - 32
----
-8676

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5819
SELECT - CAST( + 97 AS SIGNED ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-5819
SELECT - CAST ( + 97 AS INTEGER ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT - 37 + + MIN( DISTINCT - - 24 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-5820
SELECT - 37 + + MIN ( DISTINCT - - 24 ) AS col0
----
-13

query I rowsort
SELECT ALL + 76 * 27 AS col2
----
2052

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5822
SELECT - 84 * 53, - CAST( + + 68 AS SIGNED ) AS col1
----
-4452
-68

skipif mysql # not compatible
query II rowsort label-5822
SELECT - 84 * 53, - CAST ( + + 68 AS INTEGER ) AS col1
----
-4452
-68

query I rowsort
SELECT ALL - 76 * - 14 AS col2
----
1064

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT ALL + COUNT( 63 )
----
1

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL + COUNT ( 63 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5825
SELECT DISTINCT - 94 DIV + + 76 + - 3 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-5825
SELECT DISTINCT - 94 / + + 76 + - 3 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT 86 * - 85 + + 68 * + COUNT( * )
----
-7242

skipif mysql # not compatible
query I rowsort label-5826
SELECT 86 * - 85 + + 68 * + COUNT ( * )
----
-7242

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5827
SELECT + 24 * - - 10 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0, 60
----
NULL
60

skipif mysql # not compatible
query II rowsort label-5827
SELECT + 24 * - - 10 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, 60
----
NULL
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5828
SELECT ALL - COUNT( * ) / - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL - COUNT ( * ) / - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT ( + COUNT( - - 58 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5829
SELECT ( + COUNT ( - - 58 ) )
----
1

query I rowsort
SELECT DISTINCT 51 * - - 31
----
1581

onlyif mysql # aggregate syntax: 
query II rowsort label-5831
SELECT ALL + COUNT( * ) * + 0 + - 71 * + 81 AS col1, + 3 AS col0
----
-5751
3

skipif mysql # not compatible
query II rowsort label-5831
SELECT ALL + COUNT ( * ) * + 0 + - 71 * + 81 AS col1, + 3 AS col0
----
-5751
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT ALL 75 * + - 36 + SUM( DISTINCT 43 ) AS col0
----
-2657

skipif mysql # not compatible
query I rowsort label-5832
SELECT ALL 75 * + - 36 + SUM ( DISTINCT 43 ) AS col0
----
-2657

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT - + 34 - + + COUNT( * ) + - + 9
----
-44

skipif mysql # not compatible
query I rowsort label-5833
SELECT - + 34 - + + COUNT ( * ) + - + 9
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT ALL - + SUM( ALL + + 35 ) * - 64 AS col2
----
2240

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL - + SUM ( ALL + + 35 ) * - 64 AS col2
----
2240

query I rowsort
SELECT + 43 + - ( 72 ) * - 91 AS col2
----
6595

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT ALL + 54 + + 16 * 91 * ( + COUNT( * ) )
----
1510

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL + 54 + + 16 * 91 * ( + COUNT ( * ) )
----
1510

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT ALL - COUNT( + 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL - COUNT ( + 14 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5838
SELECT - 10 + - 27 + - 7 DIV 25 + - - COUNT( * ) DIV - ( - 78 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-5838
SELECT - 10 + - 27 + - 7 / 25 + - - COUNT ( * ) / - ( - 78 ) AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5839
SELECT - - COALESCE ( + COUNT( * ), - + 24 * - - NULLIF ( + 18, CAST( - 73 AS DECIMAL ) ) + COUNT( * ) + + 97 * - 61 + + SUM( ALL - + 44 ) DIV + SUM( DISTINCT + - 72 ) * - - 47 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5839
SELECT - - COALESCE ( + COUNT ( * ), - + 24 * - - NULLIF ( + 18, CAST ( - 73 AS REAL ) ) + COUNT ( * ) + + 97 * - 61 + + SUM ( ALL - + 44 ) / + SUM ( DISTINCT + - 72 ) * - - 47 ) AS col2
----
1

query I rowsort
SELECT - COALESCE ( + 46, - 17 )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5841
SELECT + ( + 25 ) * + CAST( - 5 AS SIGNED ) * - 70 - 59 * NULLIF ( - + 66, - 42 * + 1 + 28 + COUNT( * ) - NULLIF ( + - 20, - + 32 ) * - 50 ) * + 92 + SUM( DISTINCT + 56 ) AS col1
----
367054

skipif mysql # not compatible
query I rowsort label-5841
SELECT + ( + 25 ) * + CAST ( - 5 AS INTEGER ) * - 70 - 59 * NULLIF ( - + 66, - 42 * + 1 + 28 + COUNT ( * ) - NULLIF ( + - 20, - + 32 ) * - 50 ) * + 92 + SUM ( DISTINCT + 56 ) AS col1
----
367054

query I rowsort
SELECT ALL + ( + - 3 ) * + - 73 * + 77 * 2
----
33726

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT - MAX( ALL - - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-5843
SELECT - MAX ( ALL - - 50 )
----
-50

query I rowsort
SELECT DISTINCT - 10 - 58 * 4
----
-242

onlyif mysql # DIV for integer division: 
query I rowsort label-5845
SELECT ALL + 77 DIV + 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL + 77 / + 85 AS col1
----
0

query I rowsort
SELECT ALL + 72 * + - 15 * 36
----
-38880

query I rowsort
SELECT 17 * + + 72
----
1224

query I rowsort
SELECT 4 + - 7 + + + 35 AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5849
SELECT CASE - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) WHEN - 99 THEN NULL WHEN 63 + - - 57 / - + 60 THEN 78 / + - 16 END + + 44 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5849
SELECT CASE - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN - 99 THEN NULL WHEN 63 + - - 57 / - + 60 THEN 78 / + - 16 END + + 44 col0
----
NULL

query I rowsort
SELECT 90 + + COALESCE ( + 65, 48 * - - 79 ) col0
----
155

query II rowsort
SELECT ALL 94 AS col1, - 37
----
94
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5852
SELECT COUNT( * ) DIV + + ( - 81 ) DIV 56 * 50 * - ( 41 )
----
0

skipif mysql # not compatible
query I rowsort label-5852
SELECT COUNT ( * ) / + + ( - 81 ) / 56 * 50 * - ( 41 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5853
SELECT ALL + CAST( NULL AS SIGNED ) / - - AVG ( + + 81 ) * 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL + CAST ( NULL AS INTEGER ) / - - AVG ( + + 81 ) * 16 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5854
SELECT NULLIF ( + ( - + CASE + 56 WHEN - 79 * + 5 + + 37 THEN NULL ELSE + 28 END ), - 80 ) + - 70 DIV + COUNT( * ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5854
SELECT NULLIF ( + ( - + CASE + 56 WHEN - 79 * + 5 + + 37 THEN NULL ELSE + 28 END ), - 80 ) + - 70 / + COUNT ( * ) AS col1
----
-98

query II rowsort
SELECT ALL 5 col2, 87
----
5
87

query I rowsort
SELECT 25 + 85 AS col1
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5857
SELECT 35 + CASE - 62 WHEN 54 THEN NULL WHEN + 47 THEN 5 DIV + COUNT( ( + + 24 ) ) + + 52 ELSE - + 28 END AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5857
SELECT 35 + CASE - 62 WHEN 54 THEN NULL WHEN + 47 THEN 5 / + COUNT ( ( + + 24 ) ) + + 52 ELSE - + 28 END AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5858
SELECT ALL CASE 0 WHEN + COUNT( * ) * + - 63 THEN + 8 WHEN + CAST( - + 43 AS SIGNED ) THEN COUNT( ALL + 27 ) WHEN COUNT( * ) THEN NULL ELSE NULL END + - - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL CASE 0 WHEN + COUNT ( * ) * + - 63 THEN + 8 WHEN + CAST ( - + 43 AS INTEGER ) THEN COUNT ( ALL + 27 ) WHEN COUNT ( * ) THEN NULL ELSE NULL END + - - 74
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5859
SELECT 90 * MAX( + 47 ) + + - 10 + 34, 81 * + + 28 + COUNT( * ) * 40 AS col0
----
4254
2308

skipif mysql # not compatible
query II rowsort label-5859
SELECT 90 * MAX ( + 47 ) + + - 10 + 34, 81 * + + 28 + COUNT ( * ) * 40 AS col0
----
4254
2308

query I rowsort
SELECT ALL 36 + 60
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT ALL - COALESCE ( - - CASE ( + 42 ) WHEN + 55 / - + AVG ( - NULLIF ( - 91, + 76 ) ) + - SUM( + 51 ) * + + 58 THEN MAX( 74 ) WHEN - COUNT( * ) * + - 50 * + - ( NULLIF ( + 74, COUNT( * ) ) ) / + - 29 THEN 38 * + 1 END, 72 ) * + + NULLIF ( 58, + 38 ) * + 51 + - COUNT( * ) * - 89
----
-212887

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL - COALESCE ( - - CASE ( + 42 ) WHEN + 55 / - + AVG ( - NULLIF ( - 91, + 76 ) ) + - SUM ( + 51 ) * + + 58 THEN MAX ( 74 ) WHEN - COUNT ( * ) * + - 50 * + - ( NULLIF ( + 74, COUNT ( * ) ) ) / + - 29 THEN 38 * + 1 END, 72 ) * + + NULLIF ( 58, + 38 ) * + 51 + - COUNT ( * ) * - 89
----
-212887

query I rowsort
SELECT ALL 0 + - - 60 * 26 * + - 2 AS col1
----
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT DISTINCT ( + + 88 ) + 69 + - - 22 / - + 0 * - 93 * CASE - CASE ( - COUNT( * ) ) WHEN - 77 * - 44 - COUNT( * ) + + 99 THEN - MIN( - 30 ) WHEN - 30 THEN NULL WHEN + ( + 80 ) + + 33 / + COALESCE ( - - 93, - MAX( DISTINCT 58 ) ) + - 99 * + 90 THEN - + COUNT( * ) - AVG ( DISTINCT - 74 ) / 10 ELSE NULL END WHEN 16 THEN 3 END * + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5863
SELECT DISTINCT ( + + 88 ) + 69 + - - 22 / - + 0 * - 93 * CASE - CASE ( - COUNT ( * ) ) WHEN - 77 * - 44 - COUNT ( * ) + + 99 THEN - MIN ( - 30 ) WHEN - 30 THEN NULL WHEN + ( + 80 ) + + 33 / + COALESCE ( - - 93, - MAX ( DISTINCT 58 ) ) + - 99 * + 90 THEN - + COUNT ( * ) - AVG ( DISTINCT - 74 ) / 10 ELSE NULL END WHEN 16 THEN 3 END * + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT ALL + MAX( - 70 ) + + + COUNT( 15 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL + MAX ( - 70 ) + + + COUNT ( 15 ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT DISTINCT - ( + 76 ) * - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-5865
SELECT DISTINCT - ( + 76 ) * - COUNT ( * )
----
76

query I rowsort
SELECT + 39 * + 94 + + + 46 col1
----
3712

query I rowsort
SELECT ALL + 8 + - - ( 89 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5868
SELECT 32, COALESCE ( + MIN( ALL + + 30 ), + 37, - 13 ) + - 15 AS col1
----
32
15

skipif mysql # not compatible
query II rowsort label-5868
SELECT 32, COALESCE ( + MIN ( ALL + + 30 ), + 37, - 13 ) + - 15 AS col1
----
32
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5869
SELECT ALL + 17 DIV - 96 col1
----
0

skipif mysql # not compatible
query I rowsort label-5869
SELECT ALL + 17 / - 96 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5870
SELECT ALL + + ( + COUNT( * ) ) DIV - 39 AS col1, + COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-5870
SELECT ALL + + ( + COUNT ( * ) ) / - 39 AS col1, + COUNT ( * ) AS col1
----
0
1

query I rowsort
SELECT 63 * - 79 AS col1
----
-4977

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5872
SELECT ALL + MAX( + NULLIF ( - CAST( NULL AS DECIMAL ), - 41 * + 23 * - - 67 ) ) * 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5872
SELECT ALL + MAX ( + NULLIF ( - CAST ( NULL AS REAL ), - 41 * + 23 * - - 67 ) ) * 7 AS col0
----
NULL

query I rowsort
SELECT ALL - + ( 46 ) * 37 + - 59
----
-1761

query I rowsort
SELECT DISTINCT + + 89 * + - 18 * + 90 * + 40 AS col1
----
-5767200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5875
SELECT DISTINCT - 48 * ( + - CAST( NULL AS SIGNED ) ) + - - 3 + - + 91 + - 95 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT DISTINCT - 48 * ( + - CAST ( NULL AS INTEGER ) ) + - - 3 + - + 91 + - 95 col2
----
NULL

query I rowsort
SELECT ALL - - 76 * - 45 * + 34 - ( + 38 ) AS col2
----
-116318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5877
SELECT - CAST( NULL AS SIGNED ) * - ( - - 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5877
SELECT - CAST ( NULL AS INTEGER ) * - ( - - 76 )
----
NULL

query I rowsort
SELECT 32 * - 15 + 30
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT ALL MIN( + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL MIN ( + 86 )
----
86

query I rowsort
SELECT ( - 85 ) + + - 21 AS col2
----
-106

query II rowsort
SELECT - 37, 77 * + + 1 AS col0
----
-37
77

query II rowsort
SELECT DISTINCT 89 AS col1, ( 46 ) * + - 88 AS col2
----
89
-4048

query II rowsort
SELECT 50 AS col1, + 67 * 6 * - 49 - 45
----
50
-19743

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5884
SELECT ALL CAST( + + 72 AS SIGNED ) + - + 82
----
-10

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL CAST ( + + 72 AS INTEGER ) + - + 82
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT DISTINCT - 3 + + 97 * - ( - NULLIF ( 22, - + COUNT( * ) - + COUNT( * ) ) ) + 56 AS col0
----
2187

skipif mysql # not compatible
query I rowsort label-5885
SELECT DISTINCT - 3 + + 97 * - ( - NULLIF ( 22, - + COUNT ( * ) - + COUNT ( * ) ) ) + 56 AS col0
----
2187

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT ALL CASE - 78 WHEN - COUNT( * ) + + 4 - 31 THEN - COUNT( * ) * - - 99 WHEN + - 38 THEN 86 + 3 + + SUM( - 79 ) ELSE NULL END * - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL CASE - 78 WHEN - COUNT ( * ) + + 4 - 31 THEN - COUNT ( * ) * - - 99 WHEN + - 38 THEN 86 + 3 + + SUM ( - 79 ) ELSE NULL END * - 88 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5887
SELECT DISTINCT COUNT( * ) + 71, + 40 + + - 12 + + 43 AS col0
----
72
71

skipif mysql # not compatible
query II rowsort label-5887
SELECT DISTINCT COUNT ( * ) + 71, + 40 + + - 12 + + 43 AS col0
----
72
71

query I rowsort
SELECT ALL 60 + - + 75 + + ( 35 ) * - 24 + + 72
----
-783

query II rowsort
SELECT - 7, 96 AS col0
----
-7
96

query II rowsort
SELECT 80 AS col1, 71 + - - 98 + + 90 AS col0
----
80
259

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT DISTINCT 95 + + COUNT( * ) - + 54 + 74 * 46 * + COUNT( * ) + + ( + SUM( DISTINCT + + 54 ) ) AS col2
----
3500

skipif mysql # not compatible
query I rowsort label-5891
SELECT DISTINCT 95 + + COUNT ( * ) - + 54 + 74 * 46 * + COUNT ( * ) + + ( + SUM ( DISTINCT + + 54 ) ) AS col2
----
3500

onlyif mysql # aggregate syntax: 
query II rowsort label-5892
SELECT + MAX( DISTINCT + ( - ( - + 14 ) ) ) AS col1, 78 AS col2
----
14
78

skipif mysql # not compatible
query II rowsort label-5892
SELECT + MAX ( DISTINCT + ( - ( - + 14 ) ) ) AS col1, 78 AS col2
----
14
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5893
SELECT - 17 DIV 33 * - - 40 - + 93
----
-93

skipif mysql # not compatible
query I rowsort label-5893
SELECT - 17 / 33 * - - 40 - + 93
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5894
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) * - 29 * 50 * - - 80 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) * - 29 * 50 * - - 80 col0
----
NULL

query II rowsort
SELECT DISTINCT + 57 AS col2, 19 * - 96 * 40
----
57
-72960

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT ALL COUNT( * ) * - + 31 - 51 * + 2
----
-133

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL COUNT ( * ) * - + 31 - 51 * + 2
----
-133

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5897
SELECT + 95 DIV + CAST( - + 85 AS SIGNED ) + + ( + 95 ) + + 89 col1, - ( - 69 ) AS col1
----
183
69

skipif mysql # not compatible
query II rowsort label-5897
SELECT + 95 / + CAST ( - + 85 AS INTEGER ) + + ( + 95 ) + + 89 col1, - ( - 69 ) AS col1
----
183
69

query I rowsort
SELECT + - 57 + + - ( COALESCE ( 50, - - 98 ) )
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT ALL + + ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL + + ( COUNT ( * ) ) AS col1
----
1

query II rowsort
SELECT - 75, 65 + - NULLIF ( - + 63, + 78 ) AS col0
----
-75
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5901
SELECT + CAST( NULL AS SIGNED ) * - 66 + - - COUNT( * ) * - - 58 / 67 + 34 AS col1, + 22 + - + 24 AS col0
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-5901
SELECT + CAST ( NULL AS INTEGER ) * - 66 + - - COUNT ( * ) * - - 58 / 67 + 34 AS col1, + 22 + - + 24 AS col0
----
NULL
-2

query I rowsort
SELECT + 1 * + 31 AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5903
SELECT 7 * - MAX( - 23 ) + - + 10 AS col0, CAST( NULL AS SIGNED ) col0
----
151
NULL

skipif mysql # not compatible
query II rowsort label-5903
SELECT 7 * - MAX ( - 23 ) + - + 10 AS col0, CAST ( NULL AS INTEGER ) col0
----
151
NULL

query I rowsort
SELECT ALL + - ( 35 ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-5905
SELECT - + 99 * - COUNT( * ), - 0 AS col2
----
99
0

skipif mysql # not compatible
query II rowsort label-5905
SELECT - + 99 * - COUNT ( * ), - 0 AS col2
----
99
0

query I rowsort
SELECT DISTINCT + 94 * + ( + - 16 ) AS col0
----
-1504

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5907
SELECT + 49 col0, COALESCE ( + ( - NULLIF ( - 79, - - 46 ) ), + - 41 + - + 17 + - 14 ) * - 22 / - CAST( NULL AS DECIMAL )
----
49
NULL

skipif mysql # not compatible
query II rowsort label-5907
SELECT + 49 col0, COALESCE ( + ( - NULLIF ( - 79, - - 46 ) ), + - 41 + - + 17 + - 14 ) * - 22 / - CAST ( NULL AS REAL )
----
49
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5908
SELECT - + 50 DIV - 68 * + 12 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5908
SELECT - + 50 / - 68 * + 12 AS col1
----
0

query I rowsort
SELECT + + 80 + - + 42
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5910
SELECT ALL CAST( NULL AS SIGNED ) AS col0, 25
----
NULL
25

skipif mysql # not compatible
query II rowsort label-5910
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 25
----
NULL
25

query I rowsort
SELECT DISTINCT + 11 + + 67
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5912
SELECT - 9 DIV - 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5912
SELECT - 9 / - 32 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5913
SELECT ALL + 17 + + - COUNT( * ) col0, + CAST( NULL AS SIGNED ) * + AVG ( DISTINCT - - 65 )
----
16
NULL

skipif mysql # not compatible
query II rowsort label-5913
SELECT ALL + 17 + + - COUNT ( * ) col0, + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT - - 65 )
----
16
NULL

query I rowsort
SELECT ALL COALESCE ( - ( 92 ), - 67 )
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5915
SELECT DISTINCT - 44 * + - COUNT( * ) DIV + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-5915
SELECT DISTINCT - 44 * + - COUNT ( * ) / + COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT ALL + ( 27 ) + - MAX( DISTINCT + - 89 ) + + 77 + - - ( - - ( 79 ) ) * 97 AS col0
----
7856

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL + ( 27 ) + - MAX ( DISTINCT + - 89 ) + + 77 + - - ( - - ( 79 ) ) * 97 AS col0
----
7856

query I rowsort
SELECT ALL + COALESCE ( + 28, - 14 + + 41, 95 ) + - 7 AS col1
----
21

query I rowsort
SELECT - 55 * + - 69 * 56
----
212520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5919
SELECT - 66 + - + CAST( - + MIN( ALL + + ( + 28 ) ) AS SIGNED ), 74 AS col1
----
-38
74

skipif mysql # not compatible
query II rowsort label-5919
SELECT - 66 + - + CAST ( - + MIN ( ALL + + ( + 28 ) ) AS INTEGER ), 74 AS col1
----
-38
74

query I rowsort
SELECT DISTINCT + ( 9 ) * + + 68 AS col0
----
612

query I rowsort
SELECT + 48 - - + 26
----
74

query I rowsort
SELECT DISTINCT ( + 50 ) col1
----
50

query I rowsort
SELECT ALL ( + - 79 ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-5924
SELECT - 19 + - - COUNT( * ) + - 48 + 72 * 50 AS col0, 36 AS col1
----
3534
36

skipif mysql # not compatible
query II rowsort label-5924
SELECT - 19 + - - COUNT ( * ) + - 48 + 72 * 50 AS col0, 36 AS col1
----
3534
36

query I rowsort
SELECT - 95 + - 40 + + 56
----
-79

query I rowsort
SELECT ALL 7 + + - 36 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT - 13 + - COALESCE ( + 56, + COUNT( * ) * 61 * - + COUNT( * ) ) - 43
----
-112

skipif mysql # not compatible
query I rowsort label-5927
SELECT - 13 + - COALESCE ( + 56, + COUNT ( * ) * 61 * - + COUNT ( * ) ) - 43
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5928
SELECT DISTINCT ( - MIN( - - CAST( + 22 AS SIGNED ) ) )
----
-22

skipif mysql # not compatible
query I rowsort label-5928
SELECT DISTINCT ( - MIN ( - - CAST ( + 22 AS INTEGER ) ) )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT - MIN( ALL - 96 ) + + 24 - + 67 * + - 7 + CASE - 24 WHEN + 13 THEN NULLIF ( - 57, 17 ) + - - 42 WHEN + + 3 THEN + 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5929
SELECT - MIN ( ALL - 96 ) + + 24 - + 67 * + - 7 + CASE - 24 WHEN + 13 THEN NULLIF ( - 57, 17 ) + - - 42 WHEN + + 3 THEN + 49 END
----
NULL

query II rowsort
SELECT DISTINCT 0 * + 33 AS col0, 38
----
0
38

query I rowsort
SELECT DISTINCT ( - + 16 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-5932
SELECT ALL - ( 57 ) - COUNT( * ), 79 AS col1
----
-58
79

skipif mysql # not compatible
query II rowsort label-5932
SELECT ALL - ( 57 ) - COUNT ( * ), 79 AS col1
----
-58
79

query II rowsort
SELECT ALL 35 * + - 58, - 32 AS col0
----
-2030
-32

query I rowsort
SELECT + NULLIF ( + 82, 44 ) + - - 43 AS col0
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-5935
SELECT - - 61 DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-5935
SELECT - - 61 / - 40
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5936
SELECT DISTINCT 88 * - ( + - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-5936
SELECT DISTINCT 88 * - ( + - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5937
SELECT 80 * + AVG ( + 21 ) * + 88 + - - NULLIF ( 86, ( - - CAST( + 63 AS SIGNED ) ) ) + + - NULLIF ( - + 71, - 64 ) * + + COUNT( * ) * + CAST( NULL AS DECIMAL ) * + 37 * + 80 + - 84 * + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5937
SELECT 80 * + AVG ( + 21 ) * + 88 + - - NULLIF ( 86, ( - - CAST ( + 63 AS INTEGER ) ) ) + + - NULLIF ( - + 71, - 64 ) * + + COUNT ( * ) * + CAST ( NULL AS REAL ) * + 37 * + 80 + - 84 * + - 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT ALL - 17 * + COUNT( DISTINCT + 80 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL - 17 * + COUNT ( DISTINCT + 80 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT + 98 * 13 / + 46 * + CASE + - 57 WHEN + 58 THEN - - 66 * COUNT( * ) WHEN + 95 THEN NULL END + - 70 * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5939
SELECT + 98 * 13 / + 46 * + CASE + - 57 WHEN + 58 THEN - - 66 * COUNT ( * ) WHEN + 95 THEN NULL END + - 70 * - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT ALL - COUNT( * ) * + 98
----
-98

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL - COUNT ( * ) * + 98
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-5941
SELECT ALL - 34 DIV - - 7 + 15 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL - 34 / - - 7 + 15 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT + 87 + + 6 * + - COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-5942
SELECT + 87 + + 6 * + - COUNT ( * ) AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5943
SELECT ALL + - COALESCE ( + + 10, CAST( NULL AS SIGNED ) ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL + - COALESCE ( + + 10, CAST ( NULL AS INTEGER ) ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT + 1 * + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5944
SELECT + 1 * + + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT - 71 * + - ( - 14 ) AS col1
----
-994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5946
SELECT DISTINCT - NULLIF ( COUNT( * ), + COUNT( * ) ) * + 21 * 38 + - SUM( + CAST( - 24 AS SIGNED ) ) + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT - NULLIF ( COUNT ( * ), + COUNT ( * ) ) * + 21 * 38 + - SUM ( + CAST ( - 24 AS INTEGER ) ) + 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT ALL + - 55 * MIN( ALL + 1 ) + - - 68 + + COUNT( * ) col0
----
14

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL + - 55 * MIN ( ALL + 1 ) + - - 68 + + COUNT ( * ) col0
----
14

query I rowsort
SELECT ALL ( - 45 ) AS col1
----
-45

query I rowsort
SELECT - 79 + + 45 AS col1
----
-34

query I rowsort
SELECT ALL ( + 20 ) * - 14 - + ( + 58 )
----
-338

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT MIN( + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-5951
SELECT MIN ( + 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT ALL COALESCE ( - MIN( ALL + 27 ), - 41 * + ( + 73 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL COALESCE ( - MIN ( ALL + 27 ), - 41 * + ( + 73 ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT MIN( + 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5953
SELECT MIN ( + 78 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT + COUNT( * ) * CASE + + MIN( + 18 ) WHEN 86 THEN NULL WHEN + 26 * + COUNT( DISTINCT - - 65 ) + + 2 THEN 40 END / - 2 + + 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5954
SELECT + COUNT ( * ) * CASE + + MIN ( + 18 ) WHEN 86 THEN NULL WHEN + 26 * + COUNT ( DISTINCT - - 65 ) + + 2 THEN 40 END / - 2 + + 23 AS col2
----
NULL

query I rowsort
SELECT - 8 * 16
----
-128

query I rowsort
SELECT DISTINCT ( + 54 )
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-5957
SELECT DISTINCT COUNT( * ) AS col2, 80 + + 13 - + 14 AS col0
----
1
79

skipif mysql # not compatible
query II rowsort label-5957
SELECT DISTINCT COUNT ( * ) AS col2, 80 + + 13 - + 14 AS col0
----
1
79

query I rowsort
SELECT ALL + 23 - - NULLIF ( 10, + - ( - 24 ) + - 32 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5959
SELECT 44 * - + 9 * + 36 * COALESCE ( - - 19, + 95 * - 4 * + 7 * + 62 * + 61, + - COALESCE ( + CAST( NULL AS SIGNED ), 22 ) * + COUNT( - CAST( + 88 AS SIGNED ) ) ) AS col1
----
-270864

skipif mysql # not compatible
query I rowsort label-5959
SELECT 44 * - + 9 * + 36 * COALESCE ( - - 19, + 95 * - 4 * + 7 * + 62 * + 61, + - COALESCE ( + CAST ( NULL AS INTEGER ), 22 ) * + COUNT ( - CAST ( + 88 AS INTEGER ) ) ) AS col1
----
-270864

onlyif mysql # DIV for integer division: 
query I rowsort label-5960
SELECT ALL 77 DIV + 41
----
1

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL 77 / + 41
----
1

query I rowsort
SELECT DISTINCT - 50 * - 68
----
3400

query I rowsort
SELECT ALL + 96 * - + 63
----
-6048

onlyif mysql # DIV for integer division: 
query I rowsort label-5963
SELECT ALL + ( - + 22 ) - + 1 DIV - + 42
----
-22

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL + ( - + 22 ) - + 1 / - + 42
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-5964
SELECT DISTINCT - SUM( ALL 29 ) * + 59 AS col0, MIN( ALL + 14 )
----
-1711
14

skipif mysql # not compatible
query II rowsort label-5964
SELECT DISTINCT - SUM ( ALL 29 ) * + 59 AS col0, MIN ( ALL + 14 )
----
-1711
14

query I rowsort
SELECT 69 * - 65 AS col2
----
-4485

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT 40 - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-5966
SELECT 40 - COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5967
SELECT DISTINCT 28, + 48 + 7 + + + SUM( 91 ) col1
----
28
146

skipif mysql # not compatible
query II rowsort label-5967
SELECT DISTINCT 28, + 48 + 7 + + + SUM ( 91 ) col1
----
28
146

query I rowsort
SELECT ALL + 96 * 55 AS col1
----
5280

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5969
SELECT ALL 92, 51 / + CAST( NULL AS DECIMAL ) * 25 / + - 79 + NULLIF ( + 73, + 74 ) AS col0
----
92
NULL

skipif mysql # not compatible
query II rowsort label-5969
SELECT ALL 92, 51 / + CAST ( NULL AS REAL ) * 25 / + - 79 + NULLIF ( + 73, + 74 ) AS col0
----
92
NULL

query II rowsort
SELECT - 3 AS col1, - 43
----
-3
-43

query II rowsort
SELECT ALL - + 13 AS col0, - 80 AS col1
----
-13
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5972
SELECT + + 96 DIV + COUNT( * ) - 44 + + + 39
----
91

skipif mysql # not compatible
query I rowsort label-5972
SELECT + + 96 / + COUNT ( * ) - 44 + + + 39
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5973
SELECT DISTINCT - - 61, CAST( + 56 AS SIGNED ) AS col1
----
61
56

skipif mysql # not compatible
query II rowsort label-5973
SELECT DISTINCT - - 61, CAST ( + 56 AS INTEGER ) AS col1
----
61
56

query I rowsort
SELECT ALL + 5 * - 92
----
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT - 19 * - - COALESCE ( 58, + + COUNT( * ) + - - 33 ) col1
----
-1102

skipif mysql # not compatible
query I rowsort label-5975
SELECT - 19 * - - COALESCE ( 58, + + COUNT ( * ) + - - 33 ) col1
----
-1102

query I rowsort
SELECT ALL 6 + - 70
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5977
SELECT + MAX( - 84 ) DIV + 15 AS col2, COUNT( * )
----
-5
1

skipif mysql # not compatible
query II rowsort label-5977
SELECT + MAX ( - 84 ) / + 15 AS col2, COUNT ( * )
----
-5
1

query I rowsort
SELECT ALL - + ( + 98 ) AS col0
----
-98

query I rowsort
SELECT ALL - 78 + - COALESCE ( - + 50, - 30 * - + 84, + + 54 ) col1
----
-28

query I rowsort
SELECT ALL + 61 + + 84
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-5981
SELECT ALL - SUM( - - 28 ) col0, 9 AS col2
----
-28
9

skipif mysql # not compatible
query II rowsort label-5981
SELECT ALL - SUM ( - - 28 ) col0, 9 AS col2
----
-28
9

query I rowsort
SELECT 29 + - + 99
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5983
SELECT ALL 44 + - 78 DIV MAX( - 85 )
----
44

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL 44 + - 78 / MAX ( - 85 )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5984
SELECT 0 * + 77 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5984
SELECT 0 * + 77 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 19 + - 47
----
-28

query I rowsort
SELECT ALL 90 * 93 * + 55
----
460350

query I rowsort
SELECT 41 - + + 61
----
-20

query I rowsort
SELECT DISTINCT 36 * 41
----
1476

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT ALL - 55 - + COUNT( 86 )
----
-56

skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL - 55 - + COUNT ( 86 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT 76 - + + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-5990
SELECT 76 - + + COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5991
SELECT 79 * + 89 AS col0, - COUNT( * ) * - ( MAX( ALL + ( + NULLIF ( - 20, + 17 * 87 + - 63 + - 90 * - 67 ) ) ) ) * + 42 + - + 83 col0
----
7031
-923

skipif mysql # not compatible
query II rowsort label-5991
SELECT 79 * + 89 AS col0, - COUNT ( * ) * - ( MAX ( ALL + ( + NULLIF ( - 20, + 17 * 87 + - 63 + - 90 * - 67 ) ) ) ) * + 42 + - + 83 col0
----
7031
-923

query I rowsort
SELECT 50 + - 14 AS col2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5993
SELECT ALL CAST( 22 AS SIGNED ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL CAST ( 22 AS INTEGER ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT 6 * + + SUM( + ( - - 91 ) )
----
546

skipif mysql # not compatible
query I rowsort label-5994
SELECT 6 * + + SUM ( + ( - - 91 ) )
----
546

query I rowsort
SELECT - 94 + 12 AS col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5996
SELECT DISTINCT 80 * + 64 + - COUNT( * ) + + + 16 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT 80 * + 64 + - COUNT ( * ) + + + 16 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5997
SELECT 22 DIV 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5997
SELECT 22 / 74 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT + NULLIF ( + COUNT( * ), - 74 * + 42 - - + 30 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5998
SELECT + NULLIF ( + COUNT ( * ), - 74 * + 42 - - + 30 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5999
SELECT ALL - - COUNT( * ) * + - 55, + 33 AS col2
----
-55
33

skipif mysql # not compatible
query II rowsort label-5999
SELECT ALL - - COUNT ( * ) * + - 55, + 33 AS col2
----
-55
33

query I rowsort
SELECT 45 * 18 col1
----
810

query I rowsort
SELECT 16 + - 57 - + - 25
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6002
SELECT DISTINCT + CAST( - 24 AS SIGNED ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT + CAST ( - 24 AS INTEGER ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT + 90 + + COUNT( * ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-6003
SELECT + 90 + + COUNT ( * ) AS col2
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6004
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT + COUNT( 75 ) + - 28
----
-27

skipif mysql # not compatible
query I rowsort label-6005
SELECT + COUNT ( 75 ) + - 28
----
-27

query I rowsort
SELECT - 36 * - 21 * - 55 * + + 97 col2
----
-4033260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6007
SELECT - COUNT( * ) DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-6007
SELECT - COUNT ( * ) / + 77
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6008
SELECT + 12 + + 59 DIV ( 12 ) DIV 59
----
12

skipif mysql # not compatible
query I rowsort label-6008
SELECT + 12 + + 59 / ( 12 ) / 59
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6009
SELECT DISTINCT COALESCE ( - COUNT( * ), - COALESCE ( + 55, - 28 ) DIV - 53 DIV + - COUNT( * ) * - + 67, + 53 * ( - - MIN( - 12 ) ), + 37 * 66 * - 3 + + 16 + + + 9 * + - 87 + - - CASE + 77 WHEN + 0 * 56 + - + AVG ( ALL + - 31 ) THEN + 13 ELSE - 41 END + 27, 59 * - 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-6009
SELECT DISTINCT COALESCE ( - COUNT ( * ), - COALESCE ( + 55, - 28 ) / - 53 / + - COUNT ( * ) * - + 67, + 53 * ( - - MIN ( - 12 ) ), + 37 * 66 * - 3 + + 16 + + + 9 * + - 87 + - - CASE + 77 WHEN + 0 * 56 + - + AVG ( ALL + - 31 ) THEN + 13 ELSE - 41 END + 27, 59 * - 50 )
----
-1

query I rowsort
SELECT ALL 95 + - 23 AS col1
----
72

query I rowsort
SELECT ALL ( + + ( - 63 ) ) * 35 AS col0
----
-2205

query II rowsort
SELECT - - 98 AS col2, + 24 - - 14 AS col0
----
98
38

query I rowsort
SELECT + - 47 - + - COALESCE ( - 84, - 57 * 33 ) * 72 * - - 42 AS col2
----
-254063

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT DISTINCT - COUNT( * ) + 90 + COUNT( * ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-6014
SELECT DISTINCT - COUNT ( * ) + 90 + COUNT ( * ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT + + 72 - - - COUNT( * ) - + + 22 * 70 * + COUNT( * ) * - 7 + - 40
----
10811

skipif mysql # not compatible
query I rowsort label-6015
SELECT + + 72 - - - COUNT ( * ) - + + 22 * 70 * + COUNT ( * ) * - 7 + - 40
----
10811

query I rowsort
SELECT DISTINCT 80 + + 68
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-6017
SELECT ALL ( - SUM( DISTINCT NULLIF ( 22, 12 ) ) ) AS col1, + NULLIF ( + 13, + - 75 )
----
-22
13

skipif mysql # not compatible
query II rowsort label-6017
SELECT ALL ( - SUM ( DISTINCT NULLIF ( 22, 12 ) ) ) AS col1, + NULLIF ( + 13, + - 75 )
----
-22
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6018
SELECT + + 22 DIV - 3
----
-7

skipif mysql # not compatible
query I rowsort label-6018
SELECT + + 22 / - 3
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT - + 17 * + COUNT( * ) * 4 * 72 AS col0
----
-4896

skipif mysql # not compatible
query I rowsort label-6019
SELECT - + 17 * + COUNT ( * ) * 4 * 72 AS col0
----
-4896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6020
SELECT - 94 - - 50 + + 21 DIV + - 30 + + + 11 * 15 DIV ( + 42 ) AS col1, + 56 + + SUM( 51 ) + CAST( - + 25 AS SIGNED ) * 96 * - 52 * - COUNT( * )
----
-41
-124693

skipif mysql # not compatible
query II rowsort label-6020
SELECT - 94 - - 50 + + 21 / + - 30 + + + 11 * 15 / ( + 42 ) AS col1, + 56 + + SUM ( 51 ) + CAST ( - + 25 AS INTEGER ) * 96 * - 52 * - COUNT ( * )
----
-41
-124693

onlyif mysql # DIV for integer division: 
query I rowsort label-6021
SELECT ALL 64 DIV + - 80
----
0

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL 64 / + - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT COUNT( + 45 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6022
SELECT COUNT ( + 45 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6023
SELECT - - 90 * + NULLIF ( + + 33, + 80 + + CAST( NULL AS SIGNED ) ) + + - 83
----
2887

skipif mysql # not compatible
query I rowsort label-6023
SELECT - - 90 * + NULLIF ( + + 33, + 80 + + CAST ( NULL AS INTEGER ) ) + + - 83
----
2887

query I rowsort
SELECT + ( + + 20 ) AS col0
----
20

query I rowsort
SELECT - 8 - - + 73 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT ALL - 99 * - + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL - 99 * - + COUNT ( * )
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-6027
SELECT 27 DIV + 56 * 22 + - 20 col1, - 65
----
-20
-65

skipif mysql # not compatible
query II rowsort label-6027
SELECT 27 / + 56 * 22 + - 20 col1, - 65
----
-20
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT COALESCE ( + - COUNT( * ), COUNT( * ), - - 10 * + 85 + - + MIN( + + 28 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6028
SELECT COALESCE ( + - COUNT ( * ), COUNT ( * ), - - 10 * + 85 + - + MIN ( + + 28 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6029
SELECT ALL + CAST( NULL AS SIGNED ), + 64 AS col1
----
NULL
64

skipif mysql # not compatible
query II rowsort label-6029
SELECT ALL + CAST ( NULL AS INTEGER ), + 64 AS col1
----
NULL
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT DISTINCT - COUNT( * ) * 67 - NULLIF ( - 64, MIN( + ( + + 95 ) ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT - COUNT ( * ) * 67 - NULLIF ( - 64, MIN ( + ( + + 95 ) ) ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6031
SELECT ALL + COUNT( * ) AS col1, COALESCE ( - + 80, - MAX( - 0 ) ) col1
----
1
-80

skipif mysql # not compatible
query II rowsort label-6031
SELECT ALL + COUNT ( * ) AS col1, COALESCE ( - + 80, - MAX ( - 0 ) ) col1
----
1
-80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6032
SELECT - COALESCE ( - CAST( + + 23 AS SIGNED ), - + ( + 66 ) DIV - 84, + 92 ) + - 10 + + 41 AS col2, - 98 AS col1
----
54
-98

skipif mysql # not compatible
query II rowsort label-6032
SELECT - COALESCE ( - CAST ( + + 23 AS INTEGER ), - + ( + 66 ) / - 84, + 92 ) + - 10 + + 41 AS col2, - 98 AS col1
----
54
-98

query I rowsort
SELECT - 37 * - 24 * + 8 AS col0
----
7104

query I rowsort
SELECT ALL + NULLIF ( - 48, + 17 )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6035
SELECT - 97 * - 26 + + - 33 DIV MAX( 75 ) col2
----
2522

skipif mysql # not compatible
query I rowsort label-6035
SELECT - 97 * - 26 + + - 33 / MAX ( 75 ) col2
----
2522

query I rowsort
SELECT NULLIF ( 76, + 45 / - 50 + 2 )
----
76

query I rowsort
SELECT + COALESCE ( + 57, 85 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6038
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, 72 / - + CAST( NULL AS SIGNED ) - - + CASE - 4 WHEN + COALESCE ( + + 8, - SUM( ALL ( + + 88 ) ) * - + CAST( NULL AS SIGNED ) ) THEN + 6 WHEN + 85 THEN NULL ELSE 49 / + 47 - - 25 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6038
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 72 / - + CAST ( NULL AS INTEGER ) - - + CASE - 4 WHEN + COALESCE ( + + 8, - SUM ( ALL ( + + 88 ) ) * - + CAST ( NULL AS INTEGER ) ) THEN + 6 WHEN + 85 THEN NULL ELSE 49 / + 47 - - 25 END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT ALL ( - 5 ) * + 78 * - MIN( DISTINCT + + 0 ) * + - 73 + 31 - + 19 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL ( - 5 ) * + 78 * - MIN ( DISTINCT + + 0 ) * + - 73 + 31 - + 19 AS col2
----
12

query I rowsort
SELECT - 0 - + + NULLIF ( + 40, + 52 ) AS col2
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6041
SELECT DISTINCT ( - - CAST( - 30 AS SIGNED ) )
----
-30

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT ( - - CAST ( - 30 AS INTEGER ) )
----
-30

query I rowsort
SELECT DISTINCT + + 88 + + 84 * 90 col2
----
7648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6043
SELECT - + 76 + - + 16 - 39 + 34 + COALESCE ( 35, + COUNT( * ) DIV 80 + + - 12 + 79, 30 ) * - + 68 * + COUNT( + ( - 41 ) ) AS col0
----
-2477

skipif mysql # not compatible
query I rowsort label-6043
SELECT - + 76 + - + 16 - 39 + 34 + COALESCE ( 35, + COUNT ( * ) / 80 + + - 12 + 79, 30 ) * - + 68 * + COUNT ( + ( - 41 ) ) AS col0
----
-2477

onlyif mysql # DIV for integer division: 
query I rowsort label-6044
SELECT + - 12 DIV 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6044
SELECT + - 12 / 16 AS col2
----
0

query I rowsort
SELECT ALL - 6 + - 26 AS col1
----
-32

query I rowsort
SELECT - ( ( + 67 ) )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT - COUNT( * ) + + 61 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-6047
SELECT - COUNT ( * ) + + 61 AS col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6048
SELECT + CAST( + COUNT( * ) AS SIGNED ) - + 16 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-6048
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) - + 16 AS col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6049
SELECT ALL + 49 AS col1, - CAST( - 41 AS SIGNED ) * + 24 AS col1
----
49
984

skipif mysql # not compatible
query II rowsort label-6049
SELECT ALL + 49 AS col1, - CAST ( - 41 AS INTEGER ) * + 24 AS col1
----
49
984

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT + 42 + + - SUM( DISTINCT 44 )
----
-2

skipif mysql # not compatible
query I rowsort label-6050
SELECT + 42 + + - SUM ( DISTINCT 44 )
----
-2

query I rowsort
SELECT + 12 - 53 + NULLIF ( + - 88, - 0 ) + + - 5 * - 4 col2
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT ALL 95 + - 64 + 82 + + 91 * + SUM( DISTINCT - - 97 )
----
8940

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL 95 + - 64 + 82 + + 91 * + SUM ( DISTINCT - - 97 )
----
8940

query I rowsort
SELECT + - 99 * + 0 * - COALESCE ( - + 89, + 5, 78 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6054
SELECT DISTINCT + + 61 DIV 85 - - + MAX( + - 89 ) + 18
----
-71

skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT + + 61 / 85 - - + MAX ( + - 89 ) + 18
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6055
SELECT + - COUNT( * ) * 67 + - - COUNT( * ) + - - CASE + 32 WHEN + 11 * 3 * 63 / - 34 THEN NULL WHEN - 51 * 7 THEN NULL WHEN + 2 THEN CAST( NULL AS SIGNED ) * - + 3 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6055
SELECT + - COUNT ( * ) * 67 + - - COUNT ( * ) + - - CASE + 32 WHEN + 11 * 3 * 63 / - 34 THEN NULL WHEN - 51 * 7 THEN NULL WHEN + 2 THEN CAST ( NULL AS INTEGER ) * - + 3 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6056
SELECT ALL + - 98, - MIN( + + 7 ) * - 27 AS col2
----
-98
189

skipif mysql # not compatible
query II rowsort label-6056
SELECT ALL + - 98, - MIN ( + + 7 ) * - 27 AS col2
----
-98
189

onlyif mysql # DIV for integer division: 
query II rowsort label-6057
SELECT ALL + 41 DIV - 49, + 1 AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-6057
SELECT ALL + 41 / - 49, + 1 AS col2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT DISTINCT + 23 * COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT + 23 * COUNT ( * )
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6059
SELECT 70 DIV 87 AS col0, COUNT( * ), + 11 AS col1
----
0
1
11

skipif mysql # not compatible
query III rowsort label-6059
SELECT 70 / 87 AS col0, COUNT ( * ), + 11 AS col1
----
0
1
11

query I rowsort
SELECT 53 * + - 38 AS col2
----
-2014

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT DISTINCT + 51 + + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-6061
SELECT DISTINCT + 51 + + COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT ALL ( + + COUNT( * ) ) + - - 20 * 64
----
1281

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL ( + + COUNT ( * ) ) + - - 20 * 64
----
1281

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT + 79 * COUNT( ALL 34 ) * - 89 * + 61 + 48
----
-428843

skipif mysql # not compatible
query I rowsort label-6063
SELECT + 79 * COUNT ( ALL 34 ) * - 89 * + 61 + 48
----
-428843

query I rowsort
SELECT DISTINCT 6 * + - ( + 52 ) * + 54
----
-16848

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6065
SELECT 85 + + - 40, CAST( NULL AS SIGNED ) AS col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-6065
SELECT 85 + + - 40, CAST ( NULL AS INTEGER ) AS col2
----
45
NULL

query I rowsort
SELECT + 54 * - 91 - - 73
----
-4841

onlyif mysql # aggregate syntax: 
query II rowsort label-6067
SELECT ALL + 6 * - 86 AS col1, COUNT( * ) + + 64
----
-516
65

skipif mysql # not compatible
query II rowsort label-6067
SELECT ALL + 6 * - 86 AS col1, COUNT ( * ) + + 64
----
-516
65

query I rowsort
SELECT 95 + 93 * + 38 * - - ( + 73 )
----
258077

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6069
SELECT CAST( - + 1 AS SIGNED ) * - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6069
SELECT CAST ( - + 1 AS INTEGER ) * - COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6070
SELECT - MAX( ALL - 20 ) AS col2, + 53 AS col2
----
20
53

skipif mysql # not compatible
query II rowsort label-6070
SELECT - MAX ( ALL - 20 ) AS col2, + 53 AS col2
----
20
53

query I rowsort
SELECT + 4 * - - 53 * + + 64 AS col2
----
13568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6072
SELECT - 13 DIV - + 24 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6072
SELECT - 13 / - + 24 * COUNT ( * ) AS col1
----
0

query II rowsort
SELECT DISTINCT + 17 + 58 + - - 57 AS col2, + 26
----
132
26

query I rowsort
SELECT + 63 * + 68
----
4284

onlyif mysql # aggregate syntax: 
query II rowsort label-6075
SELECT - 85 * - COUNT( * ), + MAX( + - 9 ) * - 58 AS col1
----
85
522

skipif mysql # not compatible
query II rowsort label-6075
SELECT - 85 * - COUNT ( * ), + MAX ( + - 9 ) * - 58 AS col1
----
85
522

query I rowsort
SELECT - COALESCE ( ( - 14 ), - 0 + 10 ) AS col2
----
14

query II rowsort
SELECT 7 * - + 87 AS col2, 70 AS col0
----
-609
70

query I rowsort
SELECT 9 + + 47 * - + 90 AS col0
----
-4221

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6079
SELECT + 52 DIV - 72 * + ( + COALESCE ( + 80, + + 31 * + NULLIF ( 29, - + COUNT( * ) ) + COUNT( * ), ( - 2 ) - 29 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6079
SELECT + 52 / - 72 * + ( + COALESCE ( + 80, + + 31 * + NULLIF ( 29, - + COUNT ( * ) ) + COUNT ( * ), ( - 2 ) - 29 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6080
SELECT DISTINCT - - 76 - - 21 AS col0, + COUNT( * ) AS col0
----
97
1

skipif mysql # not compatible
query II rowsort label-6080
SELECT DISTINCT - - 76 - - 21 AS col0, + COUNT ( * ) AS col0
----
97
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6081
SELECT SUM( ( - + 72 ) ) DIV SUM( DISTINCT + + 31 ) + + - 4 DIV 92 + 75 - - + COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-6081
SELECT SUM ( ( - + 72 ) ) / SUM ( DISTINCT + + 31 ) + + - 4 / 92 + 75 - - + COUNT ( * ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT ALL - SUM( 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL - SUM ( 90 )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6083
SELECT ( + + COUNT( * ) ) - CAST( NULL AS SIGNED ) * - 33 / + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6083
SELECT ( + + COUNT ( * ) ) - CAST ( NULL AS INTEGER ) * - 33 / + 52 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6084
SELECT ( + COUNT( * ) ) * - + ( - 95 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6084
SELECT ( + COUNT ( * ) ) * - + ( - 95 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( + ( + 94 ) ) * - 93 AS col0
----
-8742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6086
SELECT DISTINCT 19 + - MAX( - - CAST( NULL AS SIGNED ) ) * ( + 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT 19 + - MAX ( - - CAST ( NULL AS INTEGER ) ) * ( + 5 ) AS col2
----
NULL

query I rowsort
SELECT ALL 54 + + + 62
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT + SUM( ALL + 10 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-6088
SELECT + SUM ( ALL + 10 ) AS col1
----
10

query II rowsort
SELECT ALL - 14 col2, + 11 * + 2 AS col1
----
-14
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6090
SELECT DISTINCT 24 + + ( - CAST( NULL AS SIGNED ) ) - - ( + + 55 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6090
SELECT DISTINCT 24 + + ( - CAST ( NULL AS INTEGER ) ) - - ( + + 55 ) col2
----
NULL

query I rowsort
SELECT 88 + - + 94 AS col2
----
-6

query I rowsort
SELECT ALL - 74 * + 77 AS col2
----
-5698

query II rowsort
SELECT 97, - 7 AS col2
----
97
-7

query I rowsort
SELECT ALL 59 + - 96
----
-37

query I rowsort
SELECT ALL 18 + + - 33 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT + 50 * - COUNT( * ) + 85 * - - 9 + 3 AS col0
----
718

skipif mysql # not compatible
query I rowsort label-6096
SELECT + 50 * - COUNT ( * ) + 85 * - - 9 + 3 AS col0
----
718

query I rowsort
SELECT 78 * - COALESCE ( - ( + 70 ), - 72 )
----
5460

onlyif mysql # DIV for integer division: 
query I rowsort label-6098
SELECT 96 * + COALESCE ( - 45, + + 30, - 86 ) - - 40 DIV 80 * - 27 * - - 92 AS col0
----
-4320

skipif mysql # not compatible
query I rowsort label-6098
SELECT 96 * + COALESCE ( - 45, + + 30, - 86 ) - - 40 / 80 * - 27 * - - 92 AS col0
----
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT ALL COUNT( * ) * + 78 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL COUNT ( * ) * + 78 AS col0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-6100
SELECT 27 DIV + - 15
----
-1

skipif mysql # not compatible
query I rowsort label-6100
SELECT 27 / + - 15
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6101
SELECT + NULLIF ( - - 65, + 34 + + - 88 + - - CAST( 89 AS SIGNED ) * - 75 + - 37 )
----
65

skipif mysql # not compatible
query I rowsort label-6101
SELECT + NULLIF ( - - 65, + 34 + + - 88 + - - CAST ( 89 AS INTEGER ) * - 75 + - 37 )
----
65

query I rowsort
SELECT 6 - + 42 - + 42 AS col2
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6103
SELECT COUNT( * ) * 79 DIV + + 57 + - - 24 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-6103
SELECT COUNT ( * ) * 79 / + + 57 + - - 24 AS col1
----
25

query I rowsort
SELECT ALL + 54 * - 67 AS col2
----
-3618

query I rowsort
SELECT 86 + + + 87 AS col2
----
173

query I rowsort
SELECT 1 * 46 AS col0
----
46

onlyif mysql # aggregate syntax: 
query III rowsort label-6107
SELECT 24 AS col2, + 67 * - 15 + - + COUNT( * ) AS col2, + 75 * + ( + 14 )
----
24
-1006
1050

skipif mysql # not compatible
query III rowsort label-6107
SELECT 24 AS col2, + 67 * - 15 + - + COUNT ( * ) AS col2, + 75 * + ( + 14 )
----
24
-1006
1050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6108
SELECT NULLIF ( COALESCE ( - 29, + COUNT( ALL CAST( NULL AS SIGNED ) ), - + 36 - + + 76 * 57 ), + + COUNT( - 55 ) + 15 ) + - 20 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-6108
SELECT NULLIF ( COALESCE ( - 29, + COUNT ( ALL CAST ( NULL AS INTEGER ) ), - + 36 - + + 76 * 57 ), + + COUNT ( - 55 ) + 15 ) + - 20 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT 75 - + COUNT( * ) * - COALESCE ( 57, - 23 * 73 + - 91 ) + + COUNT( * )
----
133

skipif mysql # not compatible
query I rowsort label-6109
SELECT 75 - + COUNT ( * ) * - COALESCE ( 57, - 23 * 73 + - 91 ) + + COUNT ( * )
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6110
SELECT DISTINCT - 72 * - 89 * + COALESCE ( 97, + 50 ) * + CAST( NULL AS SIGNED ), 52 + - + MAX( + + CAST( NULL AS SIGNED ) ) + + 14 / + + 11 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6110
SELECT DISTINCT - 72 * - 89 * + COALESCE ( 97, + 50 ) * + CAST ( NULL AS INTEGER ), 52 + - + MAX ( + + CAST ( NULL AS INTEGER ) ) + + 14 / + + 11 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT COUNT( * ) - + - 37
----
38

skipif mysql # not compatible
query I rowsort label-6111
SELECT COUNT ( * ) - + - 37
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT - + 33 + - ( - 43 ) + + MAX( - - 17 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-6112
SELECT - + 33 + - ( - 43 ) + + MAX ( - - 17 ) AS col2
----
27

query I rowsort
SELECT ALL - 22 * - 63
----
1386

query I rowsort
SELECT DISTINCT - 11 * - 21 AS col2
----
231

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6115
SELECT ALL - 78 * + COUNT( * ) DIV + + 81 + + 18, - COUNT( * ) AS col2
----
18
-1

skipif mysql # not compatible
query II rowsort label-6115
SELECT ALL - 78 * + COUNT ( * ) / + + 81 + + 18, - COUNT ( * ) AS col2
----
18
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT DISTINCT COUNT( DISTINCT - - ( + + 4 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6116
SELECT DISTINCT COUNT ( DISTINCT - - ( + + 4 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6117
SELECT - 67 DIV - 81 * - COUNT( ALL - + 87 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6117
SELECT - 67 / - 81 * - COUNT ( ALL - + 87 ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6118
SELECT - NULLIF ( 67, + ( + CAST( NULL AS SIGNED ) ) * + ( + + 41 ) ) + + NULLIF ( + COUNT( * ), + + MAX( DISTINCT 87 ) / 65 + 6 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-6118
SELECT - NULLIF ( 67, + ( + CAST ( NULL AS INTEGER ) ) * + ( + + 41 ) ) + + NULLIF ( + COUNT ( * ), + + MAX ( DISTINCT 87 ) / 65 + 6 ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-6119
SELECT ALL CASE - 85 WHEN - 53 + + + 33 THEN - 43 WHEN + 25 THEN 30 + + 40 * - COUNT( * ) ELSE NULL END AS col2, + 70 + + + SUM( - 10 ) + - - 20 + - - 94
----
NULL
174

skipif mysql # not compatible
query II rowsort label-6119
SELECT ALL CASE - 85 WHEN - 53 + + + 33 THEN - 43 WHEN + 25 THEN 30 + + 40 * - COUNT ( * ) ELSE NULL END AS col2, + 70 + + + SUM ( - 10 ) + - - 20 + - - 94
----
NULL
174

query I rowsort
SELECT DISTINCT NULLIF ( - + 13, 42 + + NULLIF ( + 64, - 77 ) ) col1
----
-13

query I rowsort
SELECT 50 * 56 + + 90 AS col2
----
2890

query II rowsort
SELECT - 14 * - 91 col0, 88
----
1274
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6123
SELECT + CAST( - CAST( - + 0 AS SIGNED ) AS SIGNED ) * + 40 - + CAST( 73 AS SIGNED ) + 38
----
-35

skipif mysql # not compatible
query I rowsort label-6123
SELECT + CAST ( - CAST ( - + 0 AS INTEGER ) AS INTEGER ) * + 40 - + CAST ( 73 AS INTEGER ) + 38
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6124
SELECT - MIN( DISTINCT + 11 ) DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-6124
SELECT - MIN ( DISTINCT + 11 ) / 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT ALL ( + 92 ) * - 25 + + COUNT( * )
----
-2299

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL ( + 92 ) * - 25 + + COUNT ( * )
----
-2299

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT COALESCE ( - COUNT( * ), + + 28 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6126
SELECT COALESCE ( - COUNT ( * ), + + 28 ) AS col2
----
-1

query I rowsort
SELECT ALL 71 * - 40 AS col1
----
-2840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6128
SELECT + 77 + - - 70 AS col1, 62 + - 36 * - CAST( + SUM( DISTINCT COALESCE ( NULLIF ( 48, - + 39 ), + - ( 95 ), + ( 59 ) + + 42 + - + 95 + - CAST( NULL AS DECIMAL ) * + 72 * - 31 * - 77 ) ) AS SIGNED ) * 79 + + 37 * - 36 * + 99 AS col2
----
147
4706

skipif mysql # not compatible
query II rowsort label-6128
SELECT + 77 + - - 70 AS col1, 62 + - 36 * - CAST ( + SUM ( DISTINCT COALESCE ( NULLIF ( 48, - + 39 ), + - ( 95 ), + ( 59 ) + + 42 + - + 95 + - CAST ( NULL AS REAL ) * + 72 * - 31 * - 77 ) ) AS INTEGER ) * 79 + + 37 * - 36 * + 99 AS col2
----
147
4706

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT DISTINCT 53 * + COUNT( * ) + - ( - + 66 )
----
119

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT 53 * + COUNT ( * ) + - ( - + 66 )
----
119

query I rowsort
SELECT + 12 * - - 92
----
1104

query I rowsort
SELECT ALL 27 * - + 97 + - + 27
----
-2646

query I rowsort
SELECT NULLIF ( + 58, 45 )
----
58

query II rowsort
SELECT - 41 + + 27 * 6 * - 64 AS col0, 55 AS col2
----
-10409
55

query I rowsort
SELECT + 46 * + 3 - - 92 AS col2
----
230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6135
SELECT CASE 93 WHEN - 49 - - - 20 * + CASE + 84 WHEN + NULLIF ( 29, - - 59 ) THEN NULL WHEN + 6 - - 19 THEN NULL WHEN + COALESCE ( + 21, CAST( NULL AS SIGNED ), 20 * 93 + - - 2 * + 16 ) THEN - ( 61 ) END THEN 42 WHEN + 17 THEN NULL WHEN 10 THEN - + 86 + + 52 * 73 ELSE 78 - - + 48 END AS col2
----
126

skipif mysql # not compatible
query I rowsort label-6135
SELECT CASE 93 WHEN - 49 - - - 20 * + CASE + 84 WHEN + NULLIF ( 29, - - 59 ) THEN NULL WHEN + 6 - - 19 THEN NULL WHEN + COALESCE ( + 21, CAST ( NULL AS INTEGER ), 20 * 93 + - - 2 * + 16 ) THEN - ( 61 ) END THEN 42 WHEN + 17 THEN NULL WHEN 10 THEN - + 86 + + 52 * 73 ELSE 78 - - + 48 END AS col2
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-6136
SELECT + 23 + - - 46 DIV + 78
----
23

skipif mysql # not compatible
query I rowsort label-6136
SELECT + 23 + - - 46 / + 78
----
23

query I rowsort
SELECT + 82 * + 22 AS col2
----
1804

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT + ( + ( COUNT( * ) ) ) + + + 92
----
93

skipif mysql # not compatible
query I rowsort label-6138
SELECT + ( + ( COUNT ( * ) ) ) + + + 92
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6139
SELECT ALL 62 * - + 88 AS col0, MIN( 65 ) DIV - - 19 AS col2
----
-5456
3

skipif mysql # not compatible
query II rowsort label-6139
SELECT ALL 62 * - + 88 AS col0, MIN ( 65 ) / - - 19 AS col2
----
-5456
3

query II rowsort
SELECT + 31 + 17 AS col0, 5 * - - 22
----
48
110

query II rowsort
SELECT ALL 19 - 20 col1, - 88 AS col1
----
-1
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6142
SELECT + - 23 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6142
SELECT + - 23 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6143
SELECT - 34 * ( - 92 ) + - + 37 - - 92 DIV + 31 + - MIN( ALL + 25 )
----
3068

skipif mysql # not compatible
query I rowsort label-6143
SELECT - 34 * ( - 92 ) + - + 37 - - 92 / + 31 + - MIN ( ALL + 25 )
----
3068

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT ALL + 43 * + + 8 + - COUNT( * ) * - 55 + - ( COALESCE ( - 92, + 56 ) ) AS col1
----
491

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL + 43 * + + 8 + - COUNT ( * ) * - 55 + - ( COALESCE ( - 92, + 56 ) ) AS col1
----
491

query I rowsort
SELECT + + 62 * + + 3 * + ( - - 89 )
----
16554

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6146
SELECT DISTINCT + CAST( - CASE + 84 WHEN 3 * 43 THEN + 77 WHEN + AVG ( + 12 ) THEN NULL ELSE NULL END AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT + CAST ( - CASE + 84 WHEN 3 * 43 THEN + 77 WHEN + AVG ( + 12 ) THEN NULL ELSE NULL END AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + - 87 * + ( 63 )
----
-5481

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6148
SELECT ALL 8 * + 38 / + 78 * + CASE + ( 28 ) WHEN 66 THEN + - COUNT( * ) * + + CAST( NULL AS SIGNED ) + + MIN( 44 ) WHEN 64 + 8 - - 31 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL 8 * + 38 / + 78 * + CASE + ( 28 ) WHEN 66 THEN + - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + + MIN ( 44 ) WHEN 64 + 8 - - 31 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT ALL + + 75 + - + 75 - - COUNT( * ) * 88 * - 63 AS col0
----
-5544

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL + + 75 + - + 75 - - COUNT ( * ) * 88 * - 63 AS col0
----
-5544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6150
SELECT - 74 * CAST( NULL AS SIGNED ) - - ( + 36 ) + - - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6150
SELECT - 74 * CAST ( NULL AS INTEGER ) - - ( + 36 ) + - - 80 AS col2
----
NULL

query I rowsort
SELECT + 38 - - COALESCE ( - 89, 1 ) AS col2
----
-51

query II rowsort
SELECT - 30 AS col2, 55 AS col2
----
-30
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT DISTINCT NULLIF ( + SUM( - 59 ), + 65 )
----
-59

skipif mysql # not compatible
query I rowsort label-6153
SELECT DISTINCT NULLIF ( + SUM ( - 59 ), + 65 )
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-6154
SELECT - 90 + 99 + + 98 DIV - 93 col1
----
8

skipif mysql # not compatible
query I rowsort label-6154
SELECT - 90 + 99 + + 98 / - 93 col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT - MIN( DISTINCT - ( 2 ) ) * - + 23 * + CASE + 32 WHEN 87 THEN NULL ELSE + 87 END + + 40 * + 25 * + + 62 + 70 AS col2
----
58068

skipif mysql # not compatible
query I rowsort label-6155
SELECT - MIN ( DISTINCT - ( 2 ) ) * - + 23 * + CASE + 32 WHEN 87 THEN NULL ELSE + 87 END + + 40 * + 25 * + + 62 + 70 AS col2
----
58068

query I rowsort
SELECT DISTINCT - 92 * + 92
----
-8464

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6157
SELECT ALL 5 DIV + 46 + - COUNT( * ), 16 * - - 91 * + - 50 * - COUNT( * ) AS col1
----
-1
72800

skipif mysql # not compatible
query II rowsort label-6157
SELECT ALL 5 / + 46 + - COUNT ( * ), 16 * - - 91 * + - 50 * - COUNT ( * ) AS col1
----
-1
72800

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT - MIN( - 28 ) - + 89
----
-61

skipif mysql # not compatible
query I rowsort label-6158
SELECT - MIN ( - 28 ) - + 89
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-6159
SELECT ALL - 35 DIV - ( + 91 ) + + 27 + 91 * - 86 col0
----
-7799

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL - 35 / - ( + 91 ) + + 27 + 91 * - 86 col0
----
-7799

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT MAX( 11 ) * 4 * + 5 + - MAX( ALL + 51 ) - - 27 - + + 81
----
115

skipif mysql # not compatible
query I rowsort label-6160
SELECT MAX ( 11 ) * 4 * + 5 + - MAX ( ALL + 51 ) - - 27 - + + 81
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-6161
SELECT ALL 49 DIV + + 86 + - 29 - - 17
----
-12

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL 49 / + + 86 + - 29 - - 17
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT + NULLIF ( + 96, - - COUNT( * ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-6162
SELECT + NULLIF ( + 96, - - COUNT ( * ) ) AS col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6163
SELECT + 82 - 31 DIV - - 2 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-6163
SELECT + 82 - 31 / - - 2 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT - ( + COUNT( * ) ) * 82 + ( - - 92 )
----
10

skipif mysql # not compatible
query I rowsort label-6164
SELECT - ( + COUNT ( * ) ) * 82 + ( - - 92 )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6165
SELECT ALL + 92 DIV - + 40 - + - ( + SUM( ALL + 33 ) )
----
31

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL + 92 / - + 40 - + - ( + SUM ( ALL + 33 ) )
----
31

query I rowsort
SELECT + + ( + 17 ) AS col1
----
17

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6167
SELECT ALL + CAST( NULL AS DECIMAL ) AS col0, - 16 DIV - + 10 AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6167
SELECT ALL + CAST ( NULL AS REAL ) AS col0, - 16 / - + 10 AS col1
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6168
SELECT ALL - NULLIF ( 10, - CASE - 48 WHEN - 8 + ( + CAST( + 35 AS SIGNED ) ) + - AVG ( + 69 ) - + - 72 THEN NULL WHEN + SUM( - 54 ) THEN NULL ELSE - + 1 END ) * - + 33 AS col0, - 41
----
330
-41

skipif mysql # not compatible
query II rowsort label-6168
SELECT ALL - NULLIF ( 10, - CASE - 48 WHEN - 8 + ( + CAST ( + 35 AS INTEGER ) ) + - AVG ( + 69 ) - + - 72 THEN NULL WHEN + SUM ( - 54 ) THEN NULL ELSE - + 1 END ) * - + 33 AS col0, - 41
----
330
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT - - NULLIF ( - 41, - ( - + COUNT( * ) ) ) * - 97 + - 27
----
3950

skipif mysql # not compatible
query I rowsort label-6169
SELECT - - NULLIF ( - 41, - ( - + COUNT ( * ) ) ) * - 97 + - 27
----
3950

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT - + 16 + 68 * + 40 - - SUM( DISTINCT - + 33 ) * - 29 * + + MIN( ALL + 51 )
----
51511

skipif mysql # not compatible
query I rowsort label-6170
SELECT - + 16 + 68 * + 40 - - SUM ( DISTINCT - + 33 ) * - 29 * + + MIN ( ALL + 51 )
----
51511

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT + COUNT( + 68 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6171
SELECT + COUNT ( + 68 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT - + 51 * COUNT( * ) * - + 39 - - + 13 + COUNT( * ) + - ( - CASE + ( - 48 ) WHEN + + CASE - 50 WHEN - 88 / - 45 THEN + 55 WHEN - 94 + 14 THEN NULL END THEN NULL ELSE + - 16 END )
----
1987

skipif mysql # not compatible
query I rowsort label-6172
SELECT - + 51 * COUNT ( * ) * - + 39 - - + 13 + COUNT ( * ) + - ( - CASE + ( - 48 ) WHEN + + CASE - 50 WHEN - 88 / - 45 THEN + 55 WHEN - 94 + 14 THEN NULL END THEN NULL ELSE + - 16 END )
----
1987

onlyif mysql # DIV for integer division: 
query II rowsort label-6173
SELECT 72, + 79 DIV - NULLIF ( + + 90, 61 + + 21 ) * - 48 AS col0
----
72
0

skipif mysql # not compatible
query II rowsort label-6173
SELECT 72, + 79 / - NULLIF ( + + 90, 61 + + 21 ) * - 48 AS col0
----
72
0

query I rowsort
SELECT + - 77 * 8
----
-616

query II rowsort
SELECT + 71 AS col0, 51
----
71
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT DISTINCT + ( CASE - - 66 WHEN + - 40 * + 79 THEN 60 - - - ( - - 83 ) ELSE ( + + COUNT( * ) ) END ) * 50 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT + ( CASE - - 66 WHEN + - 40 * + 79 THEN 60 - - - ( - - 83 ) ELSE ( + + COUNT ( * ) ) END ) * 50 AS col0
----
50

query I rowsort
SELECT ALL - 86 + + - 42 - 10 AS col2
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6178
SELECT 92 - + COALESCE ( 31, + + 24, + 23 ) + + 39 + 9 + CAST( NULL AS SIGNED ) AS col2, - 57 AS col2
----
NULL
-57

skipif mysql # not compatible
query II rowsort label-6178
SELECT 92 - + COALESCE ( 31, + + 24, + 23 ) + + 39 + 9 + CAST ( NULL AS INTEGER ) AS col2, - 57 AS col2
----
NULL
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6179
SELECT - 23 DIV - COUNT( * ) col0
----
23

skipif mysql # not compatible
query I rowsort label-6179
SELECT - 23 / - COUNT ( * ) col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT COUNT( * ) * - 40 + - - MAX( DISTINCT 54 ) + + MAX( DISTINCT 23 ) + CASE + 66 WHEN - 33 THEN + AVG ( ALL 94 ) / - 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6180
SELECT COUNT ( * ) * - 40 + - - MAX ( DISTINCT 54 ) + + MAX ( DISTINCT 23 ) + CASE + 66 WHEN - 33 THEN + AVG ( ALL 94 ) / - 16 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 37 * 37
----
1369

query I rowsort
SELECT ALL + 70 + 6 + - 89 * + - 60 * 79 * - 63
----
-26577104

query I rowsort
SELECT ( + 82 ) + - 81 AS col2
----
1

query I rowsort
SELECT 89 - 19 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT ALL 2 + - 57 + ( - 9 ) * + + COUNT( * ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL 2 + - 57 + ( - 9 ) * + + COUNT ( * ) AS col1
----
-64

query I rowsort
SELECT DISTINCT 7 + 37
----
44

query II rowsort
SELECT ALL 47 AS col1, 35 + - ( - + 60 ) AS col0
----
47
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6188
SELECT CASE - + 46 WHEN - - 34 / 52 - + + 53 / + + 40 THEN + 96 END + - 17 + + COALESCE ( + 3, - 61 + - + 94 - 66 * + - CAST( NULL AS SIGNED ) ) / + - 62 * - - 82 * 31 * CASE 89 WHEN - + 96 * - + COUNT( * ) - - + NULLIF ( + - AVG ( ALL + 12 ), 1 ) * + 64 + COUNT( * ) THEN NULL ELSE - COUNT( * ) END * + + 59 AS col1, MAX( - 39 )
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-6188
SELECT CASE - + 46 WHEN - - 34 / 52 - + + 53 / + + 40 THEN + 96 END + - 17 + + COALESCE ( + 3, - 61 + - + 94 - 66 * + - CAST ( NULL AS INTEGER ) ) / + - 62 * - - 82 * 31 * CASE 89 WHEN - + 96 * - + COUNT ( * ) - - + NULLIF ( + - AVG ( ALL + 12 ), 1 ) * + 64 + COUNT ( * ) THEN NULL ELSE - COUNT ( * ) END * + + 59 AS col1, MAX ( - 39 )
----
NULL
-39

query I rowsort
SELECT ALL 42 - - 3 AS col2
----
45

query I rowsort
SELECT 98 + + 73 AS col0
----
171

query I rowsort
SELECT 14 * NULLIF ( - 61, + 15 ) AS col1
----
-854

query I rowsort
SELECT + 38 * + - 43 + - + 39 col1
----
-1673

query II rowsort
SELECT 94, + 4 AS col0
----
94
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6194
SELECT ALL - 33 AS col1, COALESCE ( - CAST( NULL AS SIGNED ), 35 * 75 ) AS col0
----
-33
2625

skipif mysql # not compatible
query II rowsort label-6194
SELECT ALL - 33 AS col1, COALESCE ( - CAST ( NULL AS INTEGER ), 35 * 75 ) AS col0
----
-33
2625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6195
SELECT DISTINCT SUM( - 42 ) * CASE - 67 WHEN + COUNT( * ) * 52 + CASE WHEN ( - + 19 NOT BETWEEN + CAST( NULL AS SIGNED ) AND - 26 ) THEN + 94 + - + COUNT( * ) + 24 ELSE + 4 + 45 / - 20 END THEN - + 53 + - - SUM( ALL 40 ) * - 64 * - COUNT( * ) WHEN + - 91 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT SUM ( - 42 ) * CASE - 67 WHEN + COUNT ( * ) * 52 + CASE WHEN ( - + 19 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND - 26 ) THEN + 94 + - + COUNT ( * ) + 24 ELSE + 4 + 45 / - 20 END THEN - + 53 + - - SUM ( ALL 40 ) * - 64 * - COUNT ( * ) WHEN + - 91 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6196
SELECT 31 * - + 91 * + NULLIF ( - 19, + 1 ) * + 13 / 86 + + 34 + - 73 + - CAST( NULL AS SIGNED ) + 32 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6196
SELECT 31 * - + 91 * + NULLIF ( - 19, + 1 ) * + 13 / 86 + + 34 + - 73 + - CAST ( NULL AS INTEGER ) + 32 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6197
SELECT CAST( - - 48 AS SIGNED ) DIV + 13 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6197
SELECT CAST ( - - 48 AS INTEGER ) / + 13 AS col2
----
3

query I rowsort
SELECT - 68 * 80 + - 64
----
-5504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6199
SELECT 31 AS col2, + CAST( NULL AS SIGNED ) + - - ( + + 39 ) / - COUNT( * ) AS col0
----
31
NULL

skipif mysql # not compatible
query II rowsort label-6199
SELECT 31 AS col2, + CAST ( NULL AS INTEGER ) + - - ( + + 39 ) / - COUNT ( * ) AS col0
----
31
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6200
SELECT - + 61 * + 13 - + 28 * - 56 * - 97 * + 83 * COUNT( - 95 ) + - + COUNT( * ) DIV + ( + + 15 ) + + 64 * - - 31 AS col0
----
-12622777

skipif mysql # not compatible
query I rowsort label-6200
SELECT - + 61 * + 13 - + 28 * - 56 * - 97 * + 83 * COUNT ( - 95 ) + - + COUNT ( * ) / + ( + + 15 ) + + 64 * - - 31 AS col0
----
-12622777

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6201
SELECT COALESCE ( - MIN( ALL + 61 ), - - 33 DIV - + COUNT( * ), 4, - 9 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-6201
SELECT COALESCE ( - MIN ( ALL + 61 ), - - 33 / - + COUNT ( * ), 4, - 9 ) AS col0
----
-61

query I rowsort
SELECT 27 + 43 * - ( + 42 ) + - NULLIF ( + CASE + 82 WHEN - 72 THEN NULL ELSE + 16 + + 33 END, + + 23 ) AS col0
----
-1828

query I rowsort
SELECT ALL - - NULLIF ( - 3, + 2 ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT ALL - + 80 + COUNT( * ) - 89
----
-168

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL - + 80 + COUNT ( * ) - 89
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT DISTINCT - + COUNT( * ) + + 47 * 71
----
3336

skipif mysql # not compatible
query I rowsort label-6205
SELECT DISTINCT - + COUNT ( * ) + + 47 * 71
----
3336

query II rowsort
SELECT DISTINCT - 48, CASE WHEN NOT NULL IS NULL THEN 3 END * - 6 AS col2
----
-48
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT ALL - COUNT( * ) + 59 * + + 92 * MAX( + - 19 ) + 15 AS col1
----
-103118

skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL - COUNT ( * ) + 59 * + + 92 * MAX ( + - 19 ) + 15 AS col1
----
-103118

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT NULLIF ( CASE - 10 WHEN ( + - 52 ) THEN - - 81 END, + - 2 ) + - 36 + MAX( DISTINCT + 0 ) - + 2 * + NULLIF ( - - 38, 96 ) - CASE + 48 WHEN 62 THEN - + 85 - - 13 - - 69 * - 81 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6208
SELECT NULLIF ( CASE - 10 WHEN ( + - 52 ) THEN - - 81 END, + - 2 ) + - 36 + MAX ( DISTINCT + 0 ) - + 2 * + NULLIF ( - - 38, 96 ) - CASE + 48 WHEN 62 THEN - + 85 - - 13 - - 69 * - 81 END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6209
SELECT DISTINCT - + 67 + - COUNT( * ) * + 50 DIV - 88
----
-67

skipif mysql # not compatible
query I rowsort label-6209
SELECT DISTINCT - + 67 + - COUNT ( * ) * + 50 / - 88
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT + 29 * + - COUNT( * ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-6210
SELECT + 29 * + - COUNT ( * ) AS col0
----
-29

query II rowsort
SELECT 86, 41 AS col1
----
86
41

query I rowsort
SELECT ALL + 99 + + - 36
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6213
SELECT ALL + CAST( NULL AS SIGNED ) + + + 71 * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 71 * 78
----
NULL

query II rowsort
SELECT DISTINCT + 1 - 3, + 41 AS col0
----
-2
41

query II rowsort
SELECT DISTINCT 90 - - + 83 AS col0, 2 AS col2
----
173
2

query I rowsort
SELECT ( + 36 ) * - 12 AS col1
----
-432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6217
SELECT DISTINCT SUM( - 22 ) DIV 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6217
SELECT DISTINCT SUM ( - 22 ) / 72 AS col1
----
0

query I rowsort
SELECT 78 + 86
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-6219
SELECT 14 DIV 54 * 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6219
SELECT 14 / 54 * 16 AS col1
----
0

query II rowsort
SELECT 85 * 65, 19 * - - ( - - 27 ) AS col0
----
5525
513

onlyif mysql # aggregate syntax: 
query II rowsort label-6221
SELECT SUM( ALL - 99 ) + + 35 + + 64 * 27 AS col0, - 78 * + + 59 col2
----
1664
-4602

skipif mysql # not compatible
query II rowsort label-6221
SELECT SUM ( ALL - 99 ) + + 35 + + 64 * 27 AS col0, - 78 * + + 59 col2
----
1664
-4602

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT ALL COUNT( DISTINCT + 45 ) * - 14 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-6222
SELECT ALL COUNT ( DISTINCT + 45 ) * - 14 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-6223
SELECT - COUNT( ALL + 42 ) AS col0, - 64
----
-1
-64

skipif mysql # not compatible
query II rowsort label-6223
SELECT - COUNT ( ALL + 42 ) AS col0, - 64
----
-1
-64

query I rowsort
SELECT 97 * + + 94 AS col0
----
9118

query I rowsort
SELECT ALL 59 * + 61
----
3599

query I rowsort
SELECT DISTINCT 18 * 59 AS col0
----
1062

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6227
SELECT ( + COUNT( * ) ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6227
SELECT ( + COUNT ( * ) ) - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT ALL COUNT( DISTINCT + - 1 ) * - 23 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL COUNT ( DISTINCT + - 1 ) * - 23 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT 57 * - 40 - + 57 + SUM( - 27 ) * - + COALESCE ( + 28, - + 5 )
----
-1581

skipif mysql # not compatible
query I rowsort label-6229
SELECT 57 * - 40 - + 57 + SUM ( - 27 ) * - + COALESCE ( + 28, - + 5 )
----
-1581

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT 6 * + + ( COUNT( * ) )
----
6

skipif mysql # not compatible
query I rowsort label-6230
SELECT 6 * + + ( COUNT ( * ) )
----
6

query I rowsort
SELECT + 55 + - 70 + - + 31 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT - + CASE - + 67 WHEN + 53 THEN NULL WHEN - MAX( + 58 ) + 29 + - 69 + - - 98 + - - ( - 9 ) / 99 * - 79 THEN 64 END * + + 36 - + 8 + 79 - + COUNT( * ) - AVG ( + 1 ) * - + COUNT( * ) * - CASE + MAX( ( 70 ) ) WHEN ( SUM( - + 70 ) ) * - - 89 * COUNT( * ) + + 90 + 14 * COUNT( * ) THEN + - NULLIF ( - - ( + 36 ), + 20 ) WHEN - + 78 + - 5 THEN + 14 END * - - 3 + - ( - + 10 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6232
SELECT - + CASE - + 67 WHEN + 53 THEN NULL WHEN - MAX ( + 58 ) + 29 + - 69 + - - 98 + - - ( - 9 ) / 99 * - 79 THEN 64 END * + + 36 - + 8 + 79 - + COUNT ( * ) - AVG ( + 1 ) * - + COUNT ( * ) * - CASE + MAX ( ( 70 ) ) WHEN ( SUM ( - + 70 ) ) * - - 89 * COUNT ( * ) + + 90 + 14 * COUNT ( * ) THEN + - NULLIF ( - - ( + 36 ), + 20 ) WHEN - + 78 + - 5 THEN + 14 END * - - 3 + - ( - + 10 ) AS col1
----
NULL

query I rowsort
SELECT ( - 71 ) AS col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6234
SELECT ALL - + 78 * CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL - + 78 * CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT ALL 44 * 45 * + COUNT( * ) + - - 57 AS col2
----
2037

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL 44 * 45 * + COUNT ( * ) + - - 57 AS col2
----
2037

query I rowsort
SELECT - - 0 + + - 56 AS col2
----
-56

query I rowsort
SELECT ALL - 95 * + + 64 * - 3 AS col1
----
18240

onlyif mysql # aggregate syntax: 
query II rowsort label-6238
SELECT DISTINCT + - 80 * + 27 + + + 17 AS col1, + CASE + + NULLIF ( + 18, + COUNT( * ) ) WHEN - - 45 / + + 12 - + 70 + - 77 + + - 49 + - 11 THEN NULL WHEN - 68 * + COUNT( * ) * + 51 * + - ( + + SUM( + - 99 ) ) THEN + 26 END
----
-2143
NULL

skipif mysql # not compatible
query II rowsort label-6238
SELECT DISTINCT + - 80 * + 27 + + + 17 AS col1, + CASE + + NULLIF ( + 18, + COUNT ( * ) ) WHEN - - 45 / + + 12 - + 70 + - 77 + + - 49 + - 11 THEN NULL WHEN - 68 * + COUNT ( * ) * + 51 * + - ( + + SUM ( + - 99 ) ) THEN + 26 END
----
-2143
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6239
SELECT ALL - - COUNT( * ) * 72 + + COUNT( * ) AS col0, 59
----
73
59

skipif mysql # not compatible
query II rowsort label-6239
SELECT ALL - - COUNT ( * ) * 72 + + COUNT ( * ) AS col0, 59
----
73
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT + - MIN( - 56 ) + + 76 AS col2
----
132

skipif mysql # not compatible
query I rowsort label-6240
SELECT + - MIN ( - 56 ) + + 76 AS col2
----
132

query I rowsort
SELECT + + 60 col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6242
SELECT - + 73 + + 92 DIV - 22
----
-77

skipif mysql # not compatible
query I rowsort label-6242
SELECT - + 73 + + 92 / - 22
----
-77

query I rowsort
SELECT DISTINCT + 33 - + - 94
----
127

query I rowsort
SELECT - ( NULLIF ( + 96, + - 65 * - + 83 ) ) + - 94
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT ALL + 15 - 41 - COUNT( * ) + + 8 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL + 15 - 41 - COUNT ( * ) + + 8 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6246
SELECT DISTINCT CASE - + 82 WHEN - 54 * - ( + - 4 ) * 15 * 5 + - COUNT( * ) - - - 66 + COUNT( * ) + - 72 * 11 + 89 * 28 - 31 * CASE 2 WHEN - - 89 + - 42 * + + COUNT( DISTINCT CAST( - 12 AS SIGNED ) ) / - - COUNT( 77 ) THEN - + 34 END THEN + 21 + + + 41 - + ( + 13 ) / + 70 * + - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT CASE - + 82 WHEN - 54 * - ( + - 4 ) * 15 * 5 + - COUNT ( * ) - - - 66 + COUNT ( * ) + - 72 * 11 + 89 * 28 - 31 * CASE 2 WHEN - - 89 + - 42 * + + COUNT ( DISTINCT CAST ( - 12 AS INTEGER ) ) / - - COUNT ( 77 ) THEN - + 34 END THEN + 21 + + + 41 - + ( + 13 ) / + 70 * + - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 88 * - ( + 13 ) col1
----
-1144

query II rowsort
SELECT - ( - 85 ) + + + 97 AS col1, ( - 57 )
----
182
-57

query I rowsort
SELECT + 31 * 44 * + 47
----
64108

onlyif mysql # aggregate syntax: 
query II rowsort label-6250
SELECT - COUNT( * ), + 13 col0
----
-1
13

skipif mysql # not compatible
query II rowsort label-6250
SELECT - COUNT ( * ), + 13 col0
----
-1
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT - COUNT( * ) + SUM( DISTINCT + 42 ) + + 17 * + - 39 * - + 62
----
41147

skipif mysql # not compatible
query I rowsort label-6251
SELECT - COUNT ( * ) + SUM ( DISTINCT + 42 ) + + 17 * + - 39 * - + 62
----
41147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6252
SELECT + 7 - - 69 * - ( + 87 ) + 97 + - 57 * + CASE - - CASE - - 62 WHEN - SUM( ALL 37 ) / - 9 + + + 58 / ( 73 ) THEN 65 * - COALESCE ( - + 20, + 98 * - COUNT( * ) + 13 + - MIN( + 41 ) ) * - - 45 ELSE NULL END WHEN + - 64 * + + ( 38 ) * 7 + + - 6 THEN NULL ELSE - 19 * - - NULLIF ( + SUM( - CAST( NULL AS SIGNED ) ), + 10 + + 31 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6252
SELECT + 7 - - 69 * - ( + 87 ) + 97 + - 57 * + CASE - - CASE - - 62 WHEN - SUM ( ALL 37 ) / - 9 + + + 58 / ( 73 ) THEN 65 * - COALESCE ( - + 20, + 98 * - COUNT ( * ) + 13 + - MIN ( + 41 ) ) * - - 45 ELSE NULL END WHEN + - 64 * + + ( 38 ) * 7 + + - 6 THEN NULL ELSE - 19 * - - NULLIF ( + SUM ( - CAST ( NULL AS INTEGER ) ), + 10 + + 31 ) END col0
----
NULL

query I rowsort
SELECT - 77 + - + ( - + 41 ) AS col1
----
-36

query I rowsort
SELECT - 95 * + 71 AS col2
----
-6745

query I rowsort
SELECT DISTINCT - 71 * ( 98 ) AS col0
----
-6958

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT + 47 + - ( 94 ) + COUNT( * ) * 44 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6256
SELECT + 47 + - ( 94 ) + COUNT ( * ) * 44 AS col1
----
-3

query II rowsort
SELECT 32 AS col1, 90
----
32
90

query I rowsort
SELECT ALL 6 + 46 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT - 13 * + 5 - + COUNT( * ) + 82 - + 30 + - + COALESCE ( + 6, + 33 * 25 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-6259
SELECT - 13 * + 5 - + COUNT ( * ) + 82 - + 30 + - + COALESCE ( + 6, + 33 * 25 ) AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6260
SELECT ALL + 88 / + COUNT( * ) + 74 - 77 * ( - CAST( NULL AS DECIMAL ) ) + 51 + - 52 * - 81 / 85 * + - 38 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL + 88 / + COUNT ( * ) + 74 - 77 * ( - CAST ( NULL AS REAL ) ) + 51 + - 52 * - 81 / 85 * + - 38 + + COUNT ( * )
----
NULL

query I rowsort
SELECT CASE WHEN NOT + 0 IS NULL THEN - 45 * COALESCE ( + 89, + - 41 ) END
----
-4005

query I rowsort
SELECT ALL 45 * - 20 AS col0
----
-900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6263
SELECT ALL 42 / - 87 * - + 35 * + ( CAST( NULL AS SIGNED ) ) + 46 * 40 + - + 50 * + 70 / - - 73 + + + 4 + + + ( + + 58 ) + - + 36 * + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL 42 / - 87 * - + 35 * + ( CAST ( NULL AS INTEGER ) ) + 46 * 40 + - + 50 * + 70 / - - 73 + + + 4 + + + ( + + 58 ) + - + 36 * + - 85
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6264
SELECT + CASE + 44 WHEN + 22 * - + 44 THEN NULL WHEN - COUNT( * ) - - COALESCE ( 77, - COUNT( * ), + ( - + 16 ) * + CAST( - 69 AS SIGNED ) * + + 98 + 66 + - CAST( + 25 AS SIGNED ) + + CAST( NULL AS SIGNED ) ) * 50 + - + 1 THEN + + 5 * - 99 WHEN 51 - - 8 THEN - 98 ELSE NULL END * + + 54 * + 91 - 45 * + 42 * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6264
SELECT + CASE + 44 WHEN + 22 * - + 44 THEN NULL WHEN - COUNT ( * ) - - COALESCE ( 77, - COUNT ( * ), + ( - + 16 ) * + CAST ( - 69 AS INTEGER ) * + + 98 + 66 + - CAST ( + 25 AS INTEGER ) + + CAST ( NULL AS INTEGER ) ) * 50 + - + 1 THEN + + 5 * - 99 WHEN 51 - - 8 THEN - 98 ELSE NULL END * + + 54 * + 91 - 45 * + 42 * - + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 65 * + + 88 col0
----
-5720

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT DISTINCT + - 36 * 82 DIV + + 83 + 57
----
22

skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT + - 36 * 82 / + + 83 + 57
----
22

query I rowsort
SELECT ALL - - 37 * 6 + 64 + 27
----
313

query II rowsort
SELECT + - 39 AS col0, - 39 * + 50 AS col2
----
-39
-1950

query I rowsort
SELECT - COALESCE ( ( + 64 ), - 6, 73 ) AS col0
----
-64

query II rowsort
SELECT 84, + 29 col0
----
84
29

onlyif mysql # aggregate syntax: 
query II rowsort label-6271
SELECT - - 46 + MAX( - - 13 ), - COUNT( * ) AS col1
----
59
-1

skipif mysql # not compatible
query II rowsort label-6271
SELECT - - 46 + MAX ( - - 13 ), - COUNT ( * ) AS col1
----
59
-1

query I rowsort
SELECT ALL + + COALESCE ( - NULLIF ( + ( - + 24 ), + - 1 / - 85 + - + 74 ), - 0 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT DISTINCT - 50 * + MAX( 10 ) * 47 AS col1
----
-23500

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT - 50 * + MAX ( 10 ) * 47 AS col1
----
-23500

query II rowsort
SELECT DISTINCT 70 * + + 75 - 90 AS col2, + 4 AS col2
----
5160
4

onlyif mysql # aggregate syntax: 
query II rowsort label-6275
SELECT DISTINCT + COUNT( * ) AS col0, COUNT( ALL - + 28 ) + + + 81 AS col1
----
1
82

skipif mysql # not compatible
query II rowsort label-6275
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( ALL - + 28 ) + + + 81 AS col1
----
1
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT DISTINCT - COUNT( * ) * - + 60
----
60

skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT - COUNT ( * ) * - + 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT + COUNT( DISTINCT - ( + + 19 ) ) * - - COUNT( * ) - + 34
----
-33

skipif mysql # not compatible
query I rowsort label-6277
SELECT + COUNT ( DISTINCT - ( + + 19 ) ) * - - COUNT ( * ) - + 34
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT - COUNT( * ) * + + 44 col0
----
-44

skipif mysql # not compatible
query I rowsort label-6278
SELECT - COUNT ( * ) * + + 44 col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6279
SELECT ALL - 56 * - + CASE - + 39 WHEN + + COUNT( ALL - + 45 ) THEN + + 85 + - 0 WHEN - - CAST( NULL AS SIGNED ) THEN - 41 WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL - 56 * - + CASE - + 39 WHEN + + COUNT ( ALL - + 45 ) THEN + + 85 + - 0 WHEN - - CAST ( NULL AS INTEGER ) THEN - 41 WHEN COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6280
SELECT MAX( ALL - + 77 ), + 42 col2
----
-77
42

skipif mysql # not compatible
query II rowsort label-6280
SELECT MAX ( ALL - + 77 ), + 42 col2
----
-77
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6281
SELECT - 31 DIV + NULLIF ( - 66, 52 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6281
SELECT - 31 / + NULLIF ( - 66, 52 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT COUNT( ALL - 27 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6282
SELECT COUNT ( ALL - 27 ) col1
----
1

query I rowsort
SELECT - 7 + + 18
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT ALL ( + SUM( + 51 ) ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL ( + SUM ( + 51 ) ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT DISTINCT MAX( 74 ) col2
----
74

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT MAX ( 74 ) col2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6286
SELECT DISTINCT - 11 DIV + 25 AS col0, 41 + + COUNT( * ) AS col1
----
0
42

skipif mysql # not compatible
query II rowsort label-6286
SELECT DISTINCT - 11 / + 25 AS col0, 41 + + COUNT ( * ) AS col1
----
0
42

query I rowsort
SELECT ALL NULLIF ( 44, - 66 )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-6288
SELECT ALL + 30 DIV - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6288
SELECT ALL + 30 / - 75 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT DISTINCT + COUNT( * ) + 79
----
80

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT + COUNT ( * ) + 79
----
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6290
SELECT - MAX( + - CAST( NULL AS DECIMAL ) ), ( 87 ) * + 95 * + - 88 + COUNT( * ) + - + COUNT( * ) + - 26 * + - COUNT( * ) AS col0
----
NULL
-727294

skipif mysql # not compatible
query II rowsort label-6290
SELECT - MAX ( + - CAST ( NULL AS REAL ) ), ( 87 ) * + 95 * + - 88 + COUNT ( * ) + - + COUNT ( * ) + - 26 * + - COUNT ( * ) AS col0
----
NULL
-727294

query I rowsort
SELECT ALL + 94 + + + 76 * + ( - 73 )
----
-5454

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6292
SELECT 13 + - 13 - COUNT( * ) DIV - 26, 0
----
0
0

skipif mysql # not compatible
query II rowsort label-6292
SELECT 13 + - 13 - COUNT ( * ) / - 26, 0
----
0
0

query I rowsort
SELECT ALL + + 2 + - 2 AS col0
----
0

query I rowsort
SELECT 5 + + - ( + 87 ) AS col2
----
-82

query I rowsort
SELECT ALL + 19 + + 39 + + + 99 AS col0
----
157

query I rowsort
SELECT DISTINCT - 61 * - 15 + - 15
----
900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6297
SELECT ALL 90 + 95 + 93 - NULLIF ( - 82, + COUNT( * ) + MAX( + CAST( - 53 AS SIGNED ) ) / 1 ) + 37 * 72 - 50 AS col0
----
2974

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL 90 + 95 + 93 - NULLIF ( - 82, + COUNT ( * ) + MAX ( + CAST ( - 53 AS INTEGER ) ) / 1 ) + 37 * 72 - 50 AS col0
----
2974

onlyif mysql # aggregate syntax: 
query II rowsort label-6298
SELECT ALL - - 73 * + - 79 + - COUNT( * ) + 38 col0, 74 + 38 AS col2
----
-5730
112

skipif mysql # not compatible
query II rowsort label-6298
SELECT ALL - - 73 * + - 79 + - COUNT ( * ) + 38 col0, 74 + 38 AS col2
----
-5730
112

query I rowsort
SELECT DISTINCT + 69 + + 92 AS col2
----
161

query I rowsort
SELECT - 73 - 50 - + 81 * + 74 AS col0
----
-6117

query I rowsort
SELECT DISTINCT + - 60 + + 36 * + 92 * - 90 * + + 90 * + ( + 22 )
----
-590198460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6302
SELECT + 26 * + 64 - + + 53 + + 89 - + AVG ( ALL - CASE + + 3 WHEN - 85 THEN + - 56 - - 13 ELSE NULL END ) + + 61 + - NULLIF ( + CAST( CASE - 77 WHEN + + 21 + + 12 THEN COALESCE ( + 65, + 14 / - - 28 * + 72 ) ELSE NULL END AS SIGNED ), + 90 * + 72 * 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6302
SELECT + 26 * + 64 - + + 53 + + 89 - + AVG ( ALL - CASE + + 3 WHEN - 85 THEN + - 56 - - 13 ELSE NULL END ) + + 61 + - NULLIF ( + CAST ( CASE - 77 WHEN + + 21 + + 12 THEN COALESCE ( + 65, + 14 / - - 28 * + 72 ) ELSE NULL END AS INTEGER ), + 90 * + 72 * 0 )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 70, 83 * - NULLIF ( - - 42, + - 52 * - + 0 ) ) + - - 36
----
106

query I rowsort
SELECT + CASE - 53 WHEN - 68 THEN NULL ELSE + - 3 END
----
-3

query I rowsort
SELECT 53 + + 40 + - - 79 AS col0
----
172

query I rowsort
SELECT + 23 * 90
----
2070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6307
SELECT ALL 93 * CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * + + COUNT( * ) * 5 / 55 * + - 33 + - + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL 93 * CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * + + COUNT ( * ) * 5 / 55 * + - 33 + - + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT DISTINCT - COUNT( ALL - + 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-6308
SELECT DISTINCT - COUNT ( ALL - + 4 )
----
-1

query I rowsort
SELECT ALL - - 18 - 3 AS col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6310
SELECT DISTINCT + + SUM( + 37 ) DIV 26 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT + + SUM ( + 37 ) / 26 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT ALL 15 * COUNT( * ) + COUNT( * ) + - 92 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL 15 * COUNT ( * ) + COUNT ( * ) + - 92 AS col1
----
-76

query I rowsort
SELECT ALL 20 - 33 col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT ALL + - COUNT( * ) * MAX( DISTINCT 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL + - COUNT ( * ) * MAX ( DISTINCT 83 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT DISTINCT 63 * - + COALESCE ( - ( - 36 ), - 33 + 38, + COUNT( * ) ) - + + 85 * - 95
----
5807

skipif mysql # not compatible
query I rowsort label-6314
SELECT DISTINCT 63 * - + COALESCE ( - ( - 36 ), - 33 + 38, + COUNT ( * ) ) - + + 85 * - 95
----
5807

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6315
SELECT ALL - CAST( + 37 AS SIGNED ) * + - COUNT( * ) * - + 55 + + - 20 + - + 34 - + 77 AS col1
----
-2166

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL - CAST ( + 37 AS INTEGER ) * + - COUNT ( * ) * - + 55 + + - 20 + - + 34 - + 77 AS col1
----
-2166

query II rowsort
SELECT 85 AS col1, - 52
----
85
-52

query I rowsort
SELECT 72 * - 35
----
-2520

query I rowsort
SELECT 24 * 22 + + NULLIF ( + 76, 36 + - + 22 ) + + - 78 * - 25 + - + 38
----
2516

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT ALL - SUM( ALL 0 )
----
0

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL - SUM ( ALL 0 )
----
0

query II rowsort
SELECT DISTINCT - 27, - 86 + - 90 AS col1
----
-27
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT MIN( ALL - - 40 ) * - - 52
----
2080

skipif mysql # not compatible
query I rowsort label-6321
SELECT MIN ( ALL - - 40 ) * - - 52
----
2080

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT COUNT( * ) + - 47 * + + ( 85 ) + - 92 + + 29 * - 78 AS col2
----
-6348

skipif mysql # not compatible
query I rowsort label-6322
SELECT COUNT ( * ) + - 47 * + + ( 85 ) + - 92 + + 29 * - 78 AS col2
----
-6348

query I rowsort
SELECT DISTINCT 95 + - 29 AS col0
----
66

query I rowsort
SELECT ALL + 98 + - 24 * 34
----
-718

query I rowsort
SELECT 23 + + + 32 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT ALL COUNT( * ) + + - 57 col2
----
-56

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL COUNT ( * ) + + - 57 col2
----
-56

query II rowsort
SELECT ALL 12 AS col0, 31 AS col1
----
12
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT COALESCE ( 42, + 96 ) * ( + 85 ) * - 43 + + + 90 + + CASE + 75 WHEN 68 * - 77 + + 52 THEN NULL WHEN COUNT( * ) + - 69 + - COUNT( * ) * - - 81 * - 17 THEN + + 61 END / 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6328
SELECT COALESCE ( 42, + 96 ) * ( + 85 ) * - 43 + + + 90 + + CASE + 75 WHEN 68 * - 77 + + 52 THEN NULL WHEN COUNT ( * ) + - 69 + - COUNT ( * ) * - - 81 * - 17 THEN + + 61 END / 68 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT 48 + COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-6329
SELECT 48 + COUNT ( * ) AS col2
----
49

query I rowsort
SELECT DISTINCT + 81 + - NULLIF ( + + 27, - + 76 ) * 23 AS col0
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT 50 + MAX( ALL - 44 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-6331
SELECT 50 + MAX ( ALL - 44 ) AS col2
----
6

query I rowsort
SELECT ALL + + 58 - - 30
----
88

query II rowsort
SELECT - 74 col1, + 26 AS col0
----
-74
26

query I rowsort
SELECT - 24 * 63
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT 20 * - ( 76 ) + - COUNT( * ) + COUNT( * )
----
-1520

skipif mysql # not compatible
query I rowsort label-6335
SELECT 20 * - ( 76 ) + - COUNT ( * ) + COUNT ( * )
----
-1520

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT ALL - COUNT( * ) * ( 47 ) * 77 * + - 12 * COUNT( * )
----
43428

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL - COUNT ( * ) * ( 47 ) * 77 * + - 12 * COUNT ( * )
----
43428

query I rowsort
SELECT - 33 + + 37
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-6338
SELECT + - COUNT( - 0 ) * + 85 - - 9 * 10 + + CASE + - COUNT( * ) WHEN + 71 * + - 92 - 7 THEN - - 68 + + 35 ELSE 74 - - 38 + 53 END AS col1, + 11 + + - 12 * 73
----
170
-865

skipif mysql # not compatible
query II rowsort label-6338
SELECT + - COUNT ( - 0 ) * + 85 - - 9 * 10 + + CASE + - COUNT ( * ) WHEN + 71 * + - 92 - 7 THEN - - 68 + + 35 ELSE 74 - - 38 + 53 END AS col1, + 11 + + - 12 * 73
----
170
-865

query I rowsort
SELECT ALL + - 53 * + + 8
----
-424

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT - MIN( DISTINCT + - 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-6340
SELECT - MIN ( DISTINCT + - 22 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-6341
SELECT ALL - 89, CASE 8 WHEN + 36 + - 43 THEN + - 52 + + ( - + 86 ) - - AVG ( COALESCE ( 8, + + 69 ) ) + + 54 WHEN - + 30 * + COUNT( * ) THEN NULL ELSE NULL END AS col1
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-6341
SELECT ALL - 89, CASE 8 WHEN + 36 + - 43 THEN + - 52 + + ( - + 86 ) - - AVG ( COALESCE ( 8, + + 69 ) ) + + 54 WHEN - + 30 * + COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
-89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT + 83 + + 36 * + 37 + COALESCE ( + COUNT( * ), - 40, + + 81 ) AS col1
----
1416

skipif mysql # not compatible
query I rowsort label-6342
SELECT + 83 + + 36 * + 37 + COALESCE ( + COUNT ( * ), - 40, + + 81 ) AS col1
----
1416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6343
SELECT ALL + 0 DIV - + COUNT( * ) + + 99
----
99

skipif mysql # not compatible
query I rowsort label-6343
SELECT ALL + 0 / - + COUNT ( * ) + + 99
----
99

query I rowsort
SELECT ALL - - ( 92 )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6345
SELECT + 74 AS col0, - 2 - - 60 DIV + COUNT( * )
----
74
58

skipif mysql # not compatible
query II rowsort label-6345
SELECT + 74 AS col0, - 2 - - 60 / + COUNT ( * )
----
74
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6346
SELECT COALESCE ( 69, - 64 + - 89 + 11 * + + 11 - - - SUM( + 20 ) + 11 * + 57 ) / 39 + + 98 * - - COALESCE ( - + ( + + 59 ), + - 26 ) / CASE + 39 WHEN + ( + 60 ) THEN - 29 + + 87 END col1, ( 50 ) * 68 + 25 AS col0
----
NULL
3425

skipif mysql # not compatible
query II rowsort label-6346
SELECT COALESCE ( 69, - 64 + - 89 + 11 * + + 11 - - - SUM ( + 20 ) + 11 * + 57 ) / 39 + + 98 * - - COALESCE ( - + ( + + 59 ), + - 26 ) / CASE + 39 WHEN + ( + 60 ) THEN - 29 + + 87 END col1, ( 50 ) * 68 + 25 AS col0
----
NULL
3425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6347
SELECT ALL + COUNT( * ) DIV 23 * 36 col1
----
0

skipif mysql # not compatible
query I rowsort label-6347
SELECT ALL + COUNT ( * ) / 23 * 36 col1
----
0

query I rowsort
SELECT 79 * - 25
----
-1975

onlyif mysql # aggregate syntax: 
query II rowsort label-6349
SELECT NULLIF ( 43, COUNT( * ) ) + 67 AS col0, + 19 + COUNT( * )
----
110
20

skipif mysql # not compatible
query II rowsort label-6349
SELECT NULLIF ( 43, COUNT ( * ) ) + 67 AS col0, + 19 + COUNT ( * )
----
110
20

onlyif mysql # aggregate syntax: 
query II rowsort label-6350
SELECT + 31 AS col1, + MAX( - 72 ) AS col2
----
31
-72

skipif mysql # not compatible
query II rowsort label-6350
SELECT + 31 AS col1, + MAX ( - 72 ) AS col2
----
31
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-6351
SELECT ALL + 38 DIV ( + - 78 ) * + 26
----
0

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL + 38 / ( + - 78 ) * + 26
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6352
SELECT DISTINCT - COUNT( * ), + CAST( NULL AS SIGNED ) * - 7 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6352
SELECT DISTINCT - COUNT ( * ), + CAST ( NULL AS INTEGER ) * - 7 AS col1
----
-1
NULL

query I rowsort
SELECT ALL + 29 + - CASE + ( + 32 ) WHEN - + 17 THEN + 14 ELSE NULL END + + + ( - NULLIF ( + 91, + - CASE + 69 WHEN 89 THEN - + 68 ELSE 97 / - - 2 END * 78 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6354
SELECT COALESCE ( + 8, - 98 DIV - 96 * + 20, - 43 ) * 90 col2
----
720

skipif mysql # not compatible
query I rowsort label-6354
SELECT COALESCE ( + 8, - 98 / - 96 * + 20, - 43 ) * 90 col2
----
720

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6355
SELECT ALL - COUNT( * ), + 54 * MAX( 1 ) DIV - 97 + + + COUNT( * ) DIV + MAX( + 24 ) col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-6355
SELECT ALL - COUNT ( * ), + 54 * MAX ( 1 ) / - 97 + + + COUNT ( * ) / + MAX ( + 24 ) col0
----
-1
0

query I rowsort
SELECT DISTINCT + NULLIF ( - 18, - 49 + 56 - + + 46 ) + NULLIF ( + 43, + 46 ) - + 55
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6357
SELECT AVG ( DISTINCT - 58 ) / 56 + + 87 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6357
SELECT AVG ( DISTINCT - 58 ) / 56 + + 87 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6358
SELECT ALL ( - 55 ) + - 8 DIV 10 DIV 35 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-6358
SELECT ALL ( - 55 ) + - 8 / 10 / 35 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT + 24 * - + 81 - COUNT( * )
----
-1945

skipif mysql # not compatible
query I rowsort label-6359
SELECT + 24 * - + 81 - COUNT ( * )
----
-1945

query II rowsort
SELECT 43 col0, + ( - 98 )
----
43
-98

query I rowsort
SELECT + 1 * - 22 AS col2
----
-22

query I rowsort
SELECT ALL 83 + + + 69 AS col2
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6363
SELECT DISTINCT NULLIF ( + NULLIF ( 95, - - 79 ), - - 82 + + - 54 + - CAST( NULL AS SIGNED ) * 80 * + - 56 ) + - + ( + MIN( DISTINCT + 60 ) ) col2
----
35

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT NULLIF ( + NULLIF ( 95, - - 79 ), - - 82 + + - 54 + - CAST ( NULL AS INTEGER ) * 80 * + - 56 ) + - + ( + MIN ( DISTINCT + 60 ) ) col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT ALL ( + 8 ) + + COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL ( + 8 ) + + COUNT ( * ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT - MAX( DISTINCT - - 16 ) col1
----
-16

skipif mysql # not compatible
query I rowsort label-6365
SELECT - MAX ( DISTINCT - - 16 ) col1
----
-16

query I rowsort
SELECT ALL 11 - + 66
----
-55

query I rowsort
SELECT + + ( 40 ) + ( + ( 13 ) )
----
53

query I rowsort
SELECT ALL 25 - - 49
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT DISTINCT - 78 * + 74 + + COUNT( * )
----
-5771

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT - 78 * + 74 + + COUNT ( * )
----
-5771

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6370
SELECT - CAST( 60 AS SIGNED ) * ( - + 69 ) + - + 85 col1
----
4055

skipif mysql # not compatible
query I rowsort label-6370
SELECT - CAST ( 60 AS INTEGER ) * ( - + 69 ) + - + 85 col1
----
4055

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT ALL MAX( - - 20 )
----
20

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL MAX ( - - 20 )
----
20

query II rowsort
SELECT + 31, 26 AS col2
----
31
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6373
SELECT ALL + - CAST( NULL AS SIGNED ) - 54 - - CASE - + ( - - 69 ) WHEN 96 THEN NULL ELSE + COUNT( * ) + + AVG ( 61 ) + 51 * - 87 + + - 68 + + 20 * + 45 END - 48 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6373
SELECT ALL + - CAST ( NULL AS INTEGER ) - 54 - - CASE - + ( - - 69 ) WHEN 96 THEN NULL ELSE + COUNT ( * ) + + AVG ( 61 ) + 51 * - 87 + + - 68 + + 20 * + 45 END - 48 col2
----
NULL

query I rowsort
SELECT - + 15 * + 92 - 28 AS col0
----
-1408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6375
SELECT ALL + 1 AS col1, - COALESCE ( + - 82, + + CAST( NULL AS SIGNED ) - 37 * + + CASE - 65 WHEN - + 71 THEN + NULLIF ( - + 57, - 91 ) + - - COUNT( * ) END )
----
1
82

skipif mysql # not compatible
query II rowsort label-6375
SELECT ALL + 1 AS col1, - COALESCE ( + - 82, + + CAST ( NULL AS INTEGER ) - 37 * + + CASE - 65 WHEN - + 71 THEN + NULLIF ( - + 57, - 91 ) + - - COUNT ( * ) END )
----
1
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6376
SELECT ALL 41 DIV - MIN( DISTINCT - COALESCE ( + + 32, 69 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL 41 / - MIN ( DISTINCT - COALESCE ( + + 32, 69 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT ALL + - SUM( ALL 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL + - SUM ( ALL 48 )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6378
SELECT - MIN( - 15 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6378
SELECT - MIN ( - 15 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6379
SELECT + - 83, ( + - COUNT( * ) ) col1
----
-83
-1

skipif mysql # not compatible
query II rowsort label-6379
SELECT + - 83, ( + - COUNT ( * ) ) col1
----
-83
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT - SUM( - + 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6380
SELECT - SUM ( - + 34 ) AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6381
SELECT COALESCE ( - + 10, CAST( NULL AS SIGNED ) * - + CAST( NULL AS SIGNED ) - + - MIN( DISTINCT 15 ), - 67 + - 89 )
----
-10

skipif mysql # not compatible
query I rowsort label-6381
SELECT COALESCE ( - + 10, CAST ( NULL AS INTEGER ) * - + CAST ( NULL AS INTEGER ) - + - MIN ( DISTINCT 15 ), - 67 + - 89 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT - ( + 36 ) * COUNT( + + 72 )
----
-36

skipif mysql # not compatible
query I rowsort label-6382
SELECT - ( + 36 ) * COUNT ( + + 72 )
----
-36

query I rowsort
SELECT ALL + 33 * 80 + 39 * + + 55
----
4785

query I rowsort
SELECT DISTINCT + 52 * 53 AS col1
----
2756

onlyif mysql # aggregate syntax: 
query II rowsort label-6385
SELECT - 49 * - 93, 88 + + COUNT( * ) + - 66 + 6 AS col1
----
4557
29

skipif mysql # not compatible
query II rowsort label-6385
SELECT - 49 * - 93, 88 + + COUNT ( * ) + - 66 + 6 AS col1
----
4557
29

query I rowsort
SELECT NULLIF ( - + 89, + - 17 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT - COUNT( * ) + 45 + - + 4 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-6387
SELECT - COUNT ( * ) + 45 + - + 4 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT DISTINCT + MIN( DISTINCT + NULLIF ( 47, - 63 ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-6388
SELECT DISTINCT + MIN ( DISTINCT + NULLIF ( 47, - 63 ) ) AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6389
SELECT - 57 * - - COUNT( * ) + - - 69 AS col2, + NULLIF ( + 35, NULLIF ( - 42, + 97 * + - 60 ) + - + 20 * + CAST( + - 98 AS SIGNED ) + - 29 * 78 / 18 )
----
12
35

skipif mysql # not compatible
query II rowsort label-6389
SELECT - 57 * - - COUNT ( * ) + - - 69 AS col2, + NULLIF ( + 35, NULLIF ( - 42, + 97 * + - 60 ) + - + 20 * + CAST ( + - 98 AS INTEGER ) + - 29 * 78 / 18 )
----
12
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT + COUNT( * ) - + - ( - 73 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-6390
SELECT + COUNT ( * ) - + - ( - 73 ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT + CASE + COALESCE ( - 94, 32 ) WHEN - + 49 THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6391
SELECT + CASE + COALESCE ( - 94, 32 ) WHEN - + 49 THEN - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 40 * - + 6 + - - 77 AS col0
----
317

query I rowsort
SELECT + 17 * - 50 AS col1
----
-850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6394
SELECT DISTINCT + ( - + COALESCE ( + + SUM( ALL + 50 ), + + NULLIF ( - 99, 51 + - 3 ), - CASE - CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN - 96 * + + 60 * - 63 ELSE + 91 * - 65 * + COUNT( * ) END ) ) * ( - 7 ) DIV 28 + 69 - + - 92 * + - 23 + - 6 + - + 76 AS col2
----
-2117

skipif mysql # not compatible
query I rowsort label-6394
SELECT DISTINCT + ( - + COALESCE ( + + SUM ( ALL + 50 ), + + NULLIF ( - 99, 51 + - 3 ), - CASE - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN - 96 * + + 60 * - 63 ELSE + 91 * - 65 * + COUNT ( * ) END ) ) * ( - 7 ) / 28 + 69 - + - 92 * + - 23 + - 6 + - + 76 AS col2
----
-2117

query II rowsort
SELECT - 47 * 49 AS col0, + 46 AS col1
----
-2303
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6396
SELECT - CAST( ( + - COUNT( * ) ) AS SIGNED ) * + 37 * + + 29 + - 97 col1
----
976

skipif mysql # not compatible
query I rowsort label-6396
SELECT - CAST ( ( + - COUNT ( * ) ) AS INTEGER ) * + 37 * + + 29 + - 97 col1
----
976

onlyif mysql # DIV for integer division: 
query I rowsort label-6397
SELECT + 53 + - 62 DIV + - ( - 57 )
----
52

skipif mysql # not compatible
query I rowsort label-6397
SELECT + 53 + - 62 / + - ( - 57 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT - COALESCE ( - SUM( ALL + 38 ), - - 42, - 93, 25 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-6398
SELECT - COALESCE ( - SUM ( ALL + 38 ), - - 42, - 93, 25 ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT + + 5 + 74 * + 66 + + COUNT( * )
----
4890

skipif mysql # not compatible
query I rowsort label-6399
SELECT + + 5 + 74 * + 66 + + COUNT ( * )
----
4890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6400
SELECT ALL - CASE + NULLIF ( + - NULLIF ( - + AVG ( - 77 ), + 86 + + COUNT( * ) * - ( - 46 ) + 87 ), 6 ) WHEN + 25 THEN + + 77 * + NULLIF ( + MAX( + + CASE CAST( - 94 AS SIGNED ) WHEN 44 * - - 9 THEN NULL ELSE 65 END ), 60 / + + COUNT( * ) ) * - - NULLIF ( + + 6, + - 8 * 36 * - 45 ) * - + 88 * - + 66 + 52 + + + 39 + - SUM( + 55 ) ELSE + - 82 END AS col0
----
82

skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL - CASE + NULLIF ( + - NULLIF ( - + AVG ( - 77 ), + 86 + + COUNT ( * ) * - ( - 46 ) + 87 ), 6 ) WHEN + 25 THEN + + 77 * + NULLIF ( + MAX ( + + CASE CAST ( - 94 AS INTEGER ) WHEN 44 * - - 9 THEN NULL ELSE 65 END ), 60 / + + COUNT ( * ) ) * - - NULLIF ( + + 6, + - 8 * 36 * - 45 ) * - + 88 * - + 66 + 52 + + + 39 + - SUM ( + 55 ) ELSE + - 82 END AS col0
----
82

query I rowsort
SELECT ALL ( + ( 67 ) )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6402
SELECT + - 78 DIV - 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6402
SELECT + - 78 / - 84 AS col1
----
0

query I rowsort
SELECT ALL + 72 * + + 51 * - + 6 - 51 + - 8
----
-22091

query II rowsort
SELECT + - 34 * + 16 AS col2, 88 + - - 10 col2
----
-544
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6405
SELECT + + COUNT( * ) DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6405
SELECT + + COUNT ( * ) / + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6406
SELECT DISTINCT - 84 / - + CAST( NULL AS SIGNED ) * COUNT( * ) AS col0, ( - ( + 66 ) ) - - 91 * + + 59 AS col0
----
NULL
5303

skipif mysql # not compatible
query II rowsort label-6406
SELECT DISTINCT - 84 / - + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0, ( - ( + 66 ) ) - - 91 * + + 59 AS col0
----
NULL
5303

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6407
SELECT DISTINCT 85 DIV COUNT( * ) * + + 86 + - 86 col1
----
7224

skipif mysql # not compatible
query I rowsort label-6407
SELECT DISTINCT 85 / COUNT ( * ) * + + 86 + - 86 col1
----
7224

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT DISTINCT CASE + 60 WHEN - + 45 THEN ( - + 63 ) WHEN - 96 THEN NULL WHEN - 5 + 71 THEN + - 29 + - + 39 + + CASE + - COUNT( - + 88 ) WHEN - 10 THEN NULL WHEN COALESCE ( - + 51, 25, + - COUNT( * ) ) THEN - + 53 * 77 WHEN 71 THEN NULL END END / - COUNT( * ) + - 5 + MAX( + 16 ) * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-6408
SELECT DISTINCT CASE + 60 WHEN - + 45 THEN ( - + 63 ) WHEN - 96 THEN NULL WHEN - 5 + 71 THEN + - 29 + - + 39 + + CASE + - COUNT ( - + 88 ) WHEN - 10 THEN NULL WHEN COALESCE ( - + 51, 25, + - COUNT ( * ) ) THEN - + 53 * 77 WHEN 71 THEN NULL END END / - COUNT ( * ) + - 5 + MAX ( + 16 ) * + 52
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6409
SELECT DISTINCT 72 DIV + + COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-6409
SELECT DISTINCT 72 / + + COUNT ( * ) AS col0
----
72

query II rowsort
SELECT ALL - 68, + 36 - + 72 * 39 AS col1
----
-68
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT DISTINCT + NULLIF ( 35, + + 38 * + COUNT( * ) ) + - ( - 1 )
----
36

skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT + NULLIF ( 35, + + 38 * + COUNT ( * ) ) + - ( - 1 )
----
36

query II rowsort
SELECT + 95, - 47 AS col1
----
95
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT COUNT( * ) + COUNT( * ) + + 70
----
72

skipif mysql # not compatible
query I rowsort label-6413
SELECT COUNT ( * ) + COUNT ( * ) + + 70
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT DISTINCT + 94 + COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT + 94 + COUNT ( * ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-6415
SELECT ALL - 97, MIN( - 25 ) AS col0
----
-97
-25

skipif mysql # not compatible
query II rowsort label-6415
SELECT ALL - 97, MIN ( - 25 ) AS col0
----
-97
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT DISTINCT - COALESCE ( 97, NULLIF ( - 91, + + 62 + - 11 + - COUNT( * ) + + - 3 * + 62 * - 36 ) )
----
-97

skipif mysql # not compatible
query I rowsort label-6416
SELECT DISTINCT - COALESCE ( 97, NULLIF ( - 91, + + 62 + - 11 + - COUNT ( * ) + + - 3 * + 62 * - 36 ) )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT DISTINCT COUNT( * ) - - - 27 + + 54 + 74 * - SUM( + 22 ) + - + ( 70 ) * - 99 * - 67
----
-465910

skipif mysql # not compatible
query I rowsort label-6417
SELECT DISTINCT COUNT ( * ) - - - 27 + + 54 + 74 * - SUM ( + 22 ) + - + ( 70 ) * - 99 * - 67
----
-465910

query II rowsort
SELECT DISTINCT - 16 AS col1, + 44 AS col2
----
-16
44

query I rowsort
SELECT DISTINCT - CASE 12 WHEN + 23 THEN 7 * - 38 * + 22 + + - 4 + - 85 / + 0 * 99 END AS col1
----
NULL

query I rowsort
SELECT 32 * - + 60 - 15 * + + 87 + + - 74
----
-3299

query II rowsort
SELECT - 71 AS col1, 41 + - 63
----
-71
-22

query I rowsort
SELECT ( 40 ) col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT - MAX( 13 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-6423
SELECT - MAX ( 13 ) AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6424
SELECT + 51 * + 75 * + COUNT( * ) * + 77 * - 63 / - COUNT( * ) + + CAST( - 95 AS SIGNED ) * + + 91 + - - 27 + 46 - - 81 * + 80 / + 16 * + - 51 * AVG ( - 9 ) * + + CASE - 68 WHEN 56 THEN - + AVG ( DISTINCT + 26 ) * - 7 * - ( + 60 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6424
SELECT + 51 * + 75 * + COUNT ( * ) * + 77 * - 63 / - COUNT ( * ) + + CAST ( - 95 AS INTEGER ) * + + 91 + - - 27 + 46 - - 81 * + 80 / + 16 * + - 51 * AVG ( - 9 ) * + + CASE - 68 WHEN 56 THEN - + AVG ( DISTINCT + 26 ) * - 7 * - ( + 60 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6425
SELECT + 42 AS col1, 35 + - 51 DIV 99 + ( + 35 ) - + + 88 - 46 * + 22
----
42
-1030

skipif mysql # not compatible
query II rowsort label-6425
SELECT + 42 AS col1, 35 + - 51 / 99 + ( + 35 ) - + + 88 - 46 * + 22
----
42
-1030

query I rowsort
SELECT ALL - - 39 * 37
----
1443

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6427
SELECT - - CAST( + + ( 9 ) AS SIGNED ) col1, 86 * + ( - + 73 ) AS col1
----
9
-6278

skipif mysql # not compatible
query II rowsort label-6427
SELECT - - CAST ( + + ( 9 ) AS INTEGER ) col1, 86 * + ( - + 73 ) AS col1
----
9
-6278

query I rowsort
SELECT 5 * + 30 AS col1
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-6429
SELECT - 17 * + COUNT( * ) * + - 41, 85 AS col1
----
697
85

skipif mysql # not compatible
query II rowsort label-6429
SELECT - 17 * + COUNT ( * ) * + - 41, 85 AS col1
----
697
85

query I rowsort
SELECT ALL + 93 * - + 58
----
-5394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6431
SELECT - 84 + CAST( - + 24 AS SIGNED )
----
-108

skipif mysql # not compatible
query I rowsort label-6431
SELECT - 84 + CAST ( - + 24 AS INTEGER )
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT COUNT( * ) * - - 55 + 16 * - 92 * ( - COUNT( * ) ) - + - 23 AS col0
----
1550

skipif mysql # not compatible
query I rowsort label-6432
SELECT COUNT ( * ) * - - 55 + 16 * - 92 * ( - COUNT ( * ) ) - + - 23 AS col0
----
1550

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT - SUM( ALL + ( + + 64 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-6433
SELECT - SUM ( ALL + ( + + 64 ) )
----
-64

query I rowsort
SELECT ALL + 2 + 95
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-6435
SELECT ALL - 43 + - 55 DIV - 81, + 71 * + 65 * + 1 AS col0
----
-43
4615

skipif mysql # not compatible
query II rowsort label-6435
SELECT ALL - 43 + - 55 / - 81, + 71 * + 65 * + 1 AS col0
----
-43
4615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6436
SELECT - + COALESCE ( - + SUM( ALL - CAST( NULL AS SIGNED ) ), 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-6436
SELECT - + COALESCE ( - + SUM ( ALL - CAST ( NULL AS INTEGER ) ), 12 ) AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6437
SELECT - 15 * + 63 * + - 74 col0, - 20 * COUNT( * ) DIV 41 * - 15 AS col0
----
69930
0

skipif mysql # not compatible
query II rowsort label-6437
SELECT - 15 * + 63 * + - 74 col0, - 20 * COUNT ( * ) / 41 * - 15 AS col0
----
69930
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6438
SELECT CAST( NULL AS SIGNED ) + - 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6438
SELECT CAST ( NULL AS INTEGER ) + - 0 AS col1
----
NULL

query I rowsort
SELECT ALL - - 92 + 63 col0
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-6440
SELECT - + 99, COUNT( * ) AS col0
----
-99
1

skipif mysql # not compatible
query II rowsort label-6440
SELECT - + 99, COUNT ( * ) AS col0
----
-99
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6441
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) + - ( + - 18 ) * + 99 AS col2
----
1783

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) + - ( + - 18 ) * + 99 AS col2
----
1783

query I rowsort
SELECT DISTINCT - 50 + - ( + - 30 ) col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6443
SELECT ALL 2 + - NULLIF ( - 66, CAST( NULL AS SIGNED ) + - NULLIF ( COUNT( * ), - 71 * + COUNT( * ) ) + ( + COUNT( * ) ) + 71 )
----
68

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL 2 + - NULLIF ( - 66, CAST ( NULL AS INTEGER ) + - NULLIF ( COUNT ( * ), - 71 * + COUNT ( * ) ) + ( + COUNT ( * ) ) + 71 )
----
68

query I rowsort
SELECT ALL 14 * ( - - 6 )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-6445
SELECT - 12 DIV + 97 + + - ( + 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-6445
SELECT - 12 / + 97 + + - ( + 35 ) AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6446
SELECT 7 * - - CAST( - - MIN( ALL + 47 ) AS SIGNED ) AS col0, 27 + + 71
----
329
98

skipif mysql # not compatible
query II rowsort label-6446
SELECT 7 * - - CAST ( - - MIN ( ALL + 47 ) AS INTEGER ) AS col0, 27 + + 71
----
329
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT DISTINCT COUNT( * ) - + 51
----
-50

skipif mysql # not compatible
query I rowsort label-6447
SELECT DISTINCT COUNT ( * ) - + 51
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT ALL - SUM( 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL - SUM ( 31 ) AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6449
SELECT ALL COUNT( * ) - COALESCE ( - 47, - - 92 + - MAX( 52 ) DIV - - CAST( + - 0 AS SIGNED ) + + 50 )
----
48

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL COUNT ( * ) - COALESCE ( - 47, - - 92 + - MAX ( 52 ) / - - CAST ( + - 0 AS INTEGER ) + + 50 )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-6450
SELECT COUNT( * ) * + 48, 64 AS col2
----
48
64

skipif mysql # not compatible
query II rowsort label-6450
SELECT COUNT ( * ) * + 48, 64 AS col2
----
48
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6451
SELECT ALL + 35 DIV + 92 DIV COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL + 35 / + 92 / COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6452
SELECT ALL NULLIF ( + 93, - 95 ) DIV - 90
----
-1

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL NULLIF ( + 93, - 95 ) / - 90
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT COUNT( * ) * 46 * 20
----
920

skipif mysql # not compatible
query I rowsort label-6453
SELECT COUNT ( * ) * 46 * 20
----
920

query I rowsort
SELECT 58 * 27
----
1566

query I rowsort
SELECT 32 * - - 50 AS col0
----
1600

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT 36 * 52 + + - COUNT( * ) + - + 20 AS col1
----
1851

skipif mysql # not compatible
query I rowsort label-6456
SELECT 36 * 52 + + - COUNT ( * ) + - + 20 AS col1
----
1851

query I rowsort
SELECT 73 - - 60 + + 9
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6458
SELECT + 7 * + ( + 92 ) * + 72 - ( COUNT( * ) ) - + - ( + 19 ) DIV 91 + + ( + - 71 ) * + 52 AS col1
----
42675

skipif mysql # not compatible
query I rowsort label-6458
SELECT + 7 * + ( + 92 ) * + 72 - ( COUNT ( * ) ) - + - ( + 19 ) / 91 + + ( + - 71 ) * + 52 AS col1
----
42675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6459
SELECT ALL - 99 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL - 99 * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6460
SELECT 43 + + NULLIF ( - 36, - 90 * + - 7 ) DIV 92 col2
----
43

skipif mysql # not compatible
query I rowsort label-6460
SELECT 43 + + NULLIF ( - 36, - 90 * + - 7 ) / 92 col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6461
SELECT DISTINCT - CAST( - - 29 AS SIGNED ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-6461
SELECT DISTINCT - CAST ( - - 29 AS INTEGER ) AS col1
----
-29

query I rowsort
SELECT DISTINCT 76 * + ( 10 ) AS col1
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT DISTINCT + COALESCE ( 74, 51 * + - MAX( - - 15 ) - + - 35 )
----
74

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT + COALESCE ( 74, 51 * + - MAX ( - - 15 ) - + - 35 )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6464
SELECT DISTINCT - 6 + 37 / CAST( - - ( - CASE - 70 WHEN + - 54 THEN - 30 * - ( - - 43 ) + - + COUNT( * ) END ) AS SIGNED ) / ( + + MIN( ALL + - 82 ) ) + - 93 / - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT - 6 + 37 / CAST ( - - ( - CASE - 70 WHEN + - 54 THEN - 30 * - ( - - 43 ) + - + COUNT ( * ) END ) AS INTEGER ) / ( + + MIN ( ALL + - 82 ) ) + - 93 / - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT ( + COALESCE ( - - 66, COUNT( * ) ) ) + + - 74 - - 27 * + - 23 - 93
----
-722

skipif mysql # not compatible
query I rowsort label-6465
SELECT ( + COALESCE ( - - 66, COUNT ( * ) ) ) + + - 74 - - 27 * + - 23 - 93
----
-722

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT ALL - + 56 + + + 75 - - - MIN( - ( - - 38 ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL - + 56 + + + 75 - - - MIN ( - ( - - 38 ) ) AS col0
----
57

query I rowsort
SELECT - CASE + 50 WHEN - + 19 THEN - 9 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT ALL MIN( - ( - 15 ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL MIN ( - ( - 15 ) ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT DISTINCT + 62 * + COUNT( * ) + + 56 AS col0
----
118

skipif mysql # not compatible
query I rowsort label-6469
SELECT DISTINCT + 62 * + COUNT ( * ) + + 56 AS col0
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6470
SELECT 60 DIV + COUNT( * ) + - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-6470
SELECT 60 / + COUNT ( * ) + - COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT ALL - COALESCE ( + 96, + NULLIF ( 69, + SUM( - + 61 ) - 30 ) - - - 8 ) - 57
----
-153

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL - COALESCE ( + 96, + NULLIF ( 69, + SUM ( - + 61 ) - 30 ) - - - 8 ) - 57
----
-153

query II rowsort
SELECT 20, + 18 AS col1
----
20
18

query I rowsort
SELECT - 72 - - 51
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT ALL + SUM( 99 )
----
99

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL + SUM ( 99 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6475
SELECT DISTINCT + COUNT( ALL NULLIF ( + CAST( NULL AS SIGNED ), 70 / - - 45 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT + COUNT ( ALL NULLIF ( + CAST ( NULL AS INTEGER ), 70 / - - 45 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT + SUM( ALL 39 ) + 96
----
135

skipif mysql # not compatible
query I rowsort label-6476
SELECT + SUM ( ALL 39 ) + 96
----
135

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6477
SELECT ALL + CASE + - 52 WHEN - CAST( NULL AS DECIMAL ) THEN - + 16 WHEN + 61 * - 33 + - + COALESCE ( + 63, + 72 ) THEN SUM( DISTINCT - - 81 ) + + 46 ELSE - 40 * + - 16 * 69 END
----
44160

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL + CASE + - 52 WHEN - CAST ( NULL AS REAL ) THEN - + 16 WHEN + 61 * - 33 + - + COALESCE ( + 63, + 72 ) THEN SUM ( DISTINCT - - 81 ) + + 46 ELSE - 40 * + - 16 * 69 END
----
44160

query I rowsort
SELECT NULLIF ( - ( - 81 ), + - 6 ) AS col2
----
81

query I rowsort
SELECT - 82 * + 28 AS col2
----
-2296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6480
SELECT + SUM( - 87 ) * ( - ( 95 ) ) + - 20 * NULLIF ( + ( - + 46 ), - + 89 + - 1 + - + 22 * - + 73 * - 8 ) * + - 29 - + + 73 DIV - 94 AS col0
----
-18415

skipif mysql # not compatible
query I rowsort label-6480
SELECT + SUM ( - 87 ) * ( - ( 95 ) ) + - 20 * NULLIF ( + ( - + 46 ), - + 89 + - 1 + - + 22 * - + 73 * - 8 ) * + - 29 - + + 73 / - 94 AS col0
----
-18415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6481
SELECT + 50 DIV - 77 * + MIN( ALL 14 ) * - 83 + + + 6
----
6

skipif mysql # not compatible
query I rowsort label-6481
SELECT + 50 / - 77 * + MIN ( ALL 14 ) * - 83 + + + 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT + SUM( DISTINCT + 52 ) * COALESCE ( COUNT( * ), + - 4 * + 6 ) * + 46
----
2392

skipif mysql # not compatible
query I rowsort label-6482
SELECT + SUM ( DISTINCT + 52 ) * COALESCE ( COUNT ( * ), + - 4 * + 6 ) * + 46
----
2392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6483
SELECT DISTINCT CAST( 78 AS SIGNED ) * COUNT( * ) col1
----
78

skipif mysql # not compatible
query I rowsort label-6483
SELECT DISTINCT CAST ( 78 AS INTEGER ) * COUNT ( * ) col1
----
78

query I rowsort
SELECT ALL 81 * - 84 + + 81 col2
----
-6723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6485
SELECT MAX( ALL CASE - 45 WHEN 87 + 26 THEN - CAST( NULL AS SIGNED ) / ( 38 * 53 ) - - 63 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT MAX ( ALL CASE - 45 WHEN 87 + 26 THEN - CAST ( NULL AS INTEGER ) / ( 38 * 53 ) - - 63 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT DISTINCT COUNT( * ) * NULLIF ( 26, - 31 + 38 ) + 56 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT COUNT ( * ) * NULLIF ( 26, - 31 + 38 ) + 56 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT + MIN( 69 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-6487
SELECT + MIN ( 69 ) AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6488
SELECT + 92 * ( CASE - 93 WHEN + 3 * CAST( NULL AS SIGNED ) THEN MIN( 32 ) WHEN + NULLIF ( 28, - 34 * 51 + 28 * 17 ) * + NULLIF ( + ( - 56 ) * COUNT( * ) + - ( - 12 + SUM( ALL + ( + 42 ) ) ), - 95 * 24 ) THEN - 32 WHEN + MAX( DISTINCT - 93 ) / + COUNT( * ) + COUNT( * ) THEN NULL ELSE 65 END ) AS col1
----
5980

skipif mysql # not compatible
query I rowsort label-6488
SELECT + 92 * ( CASE - 93 WHEN + 3 * CAST ( NULL AS INTEGER ) THEN MIN ( 32 ) WHEN + NULLIF ( 28, - 34 * 51 + 28 * 17 ) * + NULLIF ( + ( - 56 ) * COUNT ( * ) + - ( - 12 + SUM ( ALL + ( + 42 ) ) ), - 95 * 24 ) THEN - 32 WHEN + MAX ( DISTINCT - 93 ) / + COUNT ( * ) + COUNT ( * ) THEN NULL ELSE 65 END ) AS col1
----
5980

query I rowsort
SELECT ALL 18 * - ( + NULLIF ( - 25, + 81 ) ) + 36 col0
----
486

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT COUNT( DISTINCT 4 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6490
SELECT COUNT ( DISTINCT 4 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6491
SELECT - 75 DIV 26
----
-2

skipif mysql # not compatible
query I rowsort label-6491
SELECT - 75 / 26
----
-2

query I rowsort
SELECT + ( + 71 ) - 88
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT - 92 * MIN( DISTINCT + 63 )
----
-5796

skipif mysql # not compatible
query I rowsort label-6493
SELECT - 92 * MIN ( DISTINCT + 63 )
----
-5796

query I rowsort
SELECT ALL 57 * 16
----
912

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT + SUM( ( + 83 ) ) * - 51
----
-4233

skipif mysql # not compatible
query I rowsort label-6495
SELECT + SUM ( ( + 83 ) ) * - 51
----
-4233

query I rowsort
SELECT ALL 68 + 16
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT ALL - COUNT( * ) + 52 * 85
----
4419

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL - COUNT ( * ) + 52 * 85
----
4419

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT ALL + 79 + COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL + 79 + COUNT ( * ) AS col1
----
80

query I rowsort
SELECT - 32 - 28 * 95
----
-2692

query I rowsort
SELECT ALL 38 * 26 AS col2
----
988

query I rowsort
SELECT ALL CASE 20 WHEN + 71 THEN NULL ELSE ( - 46 ) END
----
-46

query I rowsort
SELECT + ( + 22 ) + CASE 94 - 10 WHEN - 34 THEN NULL ELSE - 18 END
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT - 2 * COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6503
SELECT - 2 * COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT + 73 + 20
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-6505
SELECT ALL COALESCE ( 77, 71 DIV - ( - 95 ) + + 97 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL COALESCE ( 77, 71 / - ( - 95 ) + + 97 ) AS col0
----
77

query I rowsort
SELECT - 49 + + 41 AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6507
SELECT - 66 * CAST( + 48 AS SIGNED )
----
-3168

skipif mysql # not compatible
query I rowsort label-6507
SELECT - 66 * CAST ( + 48 AS INTEGER )
----
-3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6508
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT ALL - SUM( 60 ) - + 74 col0
----
-134

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL - SUM ( 60 ) - + 74 col0
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT ALL COALESCE ( 48, NULLIF ( COUNT( * ), + 29 ) + + 58, MIN( 0 ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL COALESCE ( 48, NULLIF ( COUNT ( * ), + 29 ) + + 58, MIN ( 0 ) ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT ALL + 17 * + MIN( ALL - 61 )
----
-1037

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL + 17 * + MIN ( ALL - 61 )
----
-1037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6512
SELECT - COUNT( * ) + + SUM( - 77 + - ( CAST( - 74 AS SIGNED ) ) ) DIV - 17
----
-1

skipif mysql # not compatible
query I rowsort label-6512
SELECT - COUNT ( * ) + + SUM ( - 77 + - ( CAST ( - 74 AS INTEGER ) ) ) / - 17
----
-1

query I rowsort
SELECT ALL + 45 * 24 AS col2
----
1080

query I rowsort
SELECT - COALESCE ( 67, 85, 4 ) * - 58
----
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT DISTINCT + COUNT( * ) * 33 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-6515
SELECT DISTINCT + COUNT ( * ) * 33 AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6516
SELECT DISTINCT + COUNT( 69 ) * + CASE + CAST( NULL AS DECIMAL ) * - 84 - - 84 * - ( + COUNT( * ) / - 11 + 39 / + 31 ) WHEN 62 THEN + 15 * + 20 WHEN SUM( - COALESCE ( 39, - 55, - 43 * + 74 + - 27, + COALESCE ( 11, 20 * + 62 + + 40 ) * + CASE 56 / - 71 WHEN 29 THEN 97 ELSE - 36 END ) ) THEN 94 WHEN - COUNT( * ) THEN NULL WHEN COUNT( * ) * 30 + + COUNT( ALL - ( 78 ) ) THEN NULL ELSE - 10 END
----
-10

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT + COUNT ( 69 ) * + CASE + CAST ( NULL AS REAL ) * - 84 - - 84 * - ( + COUNT ( * ) / - 11 + 39 / + 31 ) WHEN 62 THEN + 15 * + 20 WHEN SUM ( - COALESCE ( 39, - 55, - 43 * + 74 + - 27, + COALESCE ( 11, 20 * + 62 + + 40 ) * + CASE 56 / - 71 WHEN 29 THEN 97 ELSE - 36 END ) ) THEN 94 WHEN - COUNT ( * ) THEN NULL WHEN COUNT ( * ) * 30 + + COUNT ( ALL - ( 78 ) ) THEN NULL ELSE - 10 END
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-6517
SELECT 73 DIV - 2 + 21
----
-15

skipif mysql # not compatible
query I rowsort label-6517
SELECT 73 / - 2 + 21
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6518
SELECT - 76 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6518
SELECT - 76 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6519
SELECT ALL COALESCE ( COALESCE ( - 75, 47 ), 24 DIV + 45, + CAST( NULL AS SIGNED ) ) DIV COUNT( * ) + 63
----
-12

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL COALESCE ( COALESCE ( - 75, 47 ), 24 / + 45, + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) + 63
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6520
SELECT + COUNT( * ) * CASE - 64 WHEN COUNT( * ) * - 48 THEN 12 * MIN( ALL + 92 ) WHEN + 45 - - COUNT( * ) THEN NULL WHEN - 52 * 20 THEN - 7 * - CAST( NULL AS SIGNED ) END - + 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6520
SELECT + COUNT ( * ) * CASE - 64 WHEN COUNT ( * ) * - 48 THEN 12 * MIN ( ALL + 92 ) WHEN + 45 - - COUNT ( * ) THEN NULL WHEN - 52 * 20 THEN - 7 * - CAST ( NULL AS INTEGER ) END - + 68 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6521
SELECT DISTINCT 18 * - CAST( + SUM( DISTINCT + 42 ) * COUNT( * ) + 46 * + 48 AS SIGNED )
----
-40500

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT 18 * - CAST ( + SUM ( DISTINCT + 42 ) * COUNT ( * ) + 46 * + 48 AS INTEGER )
----
-40500

query I rowsort
SELECT ALL - CASE + 52 WHEN + 76 THEN 18 END / 50 + + 29
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6523
SELECT - CAST( NULL AS SIGNED ) / COUNT( * ) + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6523
SELECT - CAST ( NULL AS INTEGER ) / COUNT ( * ) + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6524
SELECT + 6 * NULLIF ( 81 * - CAST( - 91 * - 83 AS SIGNED ) - - 57, COALESCE ( CAST( - 75 AS SIGNED ), + CAST( - ( + 83 ) AS SIGNED ) + 57 * - 15, - 34, CASE 42 WHEN 93 THEN NULL ELSE + 82 END * + 36 ) * 9 - CAST( COUNT( ( - 38 ) ) AS SIGNED ) ) AS col2
----
-3670416

skipif mysql # not compatible
query I rowsort label-6524
SELECT + 6 * NULLIF ( 81 * - CAST ( - 91 * - 83 AS INTEGER ) - - 57, COALESCE ( CAST ( - 75 AS INTEGER ), + CAST ( - ( + 83 ) AS INTEGER ) + 57 * - 15, - 34, CASE 42 WHEN 93 THEN NULL ELSE + 82 END * + 36 ) * 9 - CAST ( COUNT ( ( - 38 ) ) AS INTEGER ) ) AS col2
----
-3670416

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT ALL + 32 * 86 + COUNT( * ) AS col0
----
2753

skipif mysql # not compatible
query I rowsort label-6525
SELECT ALL + 32 * 86 + COUNT ( * ) AS col0
----
2753

query I rowsort
SELECT + 44 * + 86 + 90 col2
----
3874

query I rowsort
SELECT + - 20 - - 39
----
19

query I rowsort
SELECT ALL - 56 * - 78 AS col2
----
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT ALL - 3 * - COUNT( * ) + NULLIF ( 88, 80 - + 49 )
----
91

skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL - 3 * - COUNT ( * ) + NULLIF ( 88, 80 - + 49 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT ALL + COUNT( * ) * - 49 + 37 col2
----
-12

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL + COUNT ( * ) * - 49 + 37 col2
----
-12

query I rowsort
SELECT + COALESCE ( + 29, 29 ) + 59
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6532
SELECT ALL 48 DIV + 18
----
2

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL 48 / + 18
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT ALL 92 - MIN( 0 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL 92 - MIN ( 0 ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT - COUNT( DISTINCT + 68 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6534
SELECT - COUNT ( DISTINCT + 68 ) AS col2
----
-1

query I rowsort
SELECT 0 * - 78
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6536
SELECT ALL 5 DIV 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL 5 / 56 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6537
SELECT 31 DIV - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-6537
SELECT 31 / - COUNT ( * )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT + 45 * ( COUNT( * ) ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6538
SELECT + 45 * ( COUNT ( * ) ) AS col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6539
SELECT ALL - 13 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL - 13 / - 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT - - COUNT( - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-6540
SELECT - - COUNT ( - 29 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6541
SELECT ( 57 ) + 89 DIV 32
----
59

skipif mysql # not compatible
query I rowsort label-6541
SELECT ( 57 ) + 89 / 32
----
59

query I rowsort
SELECT DISTINCT ( - 95 ) * + 51 AS col2
----
-4845

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT ALL + COUNT( * ) * 63 * 48 AS col0
----
3024

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL + COUNT ( * ) * 63 * 48 AS col0
----
3024

query I rowsort
SELECT ( 63 ) * + 55
----
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT ALL COALESCE ( + COUNT( * ), 3 * 76 - - COUNT( * ), 5 ) * 16
----
16

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL COALESCE ( + COUNT ( * ), 3 * 76 - - COUNT ( * ), 5 ) * 16
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6546
SELECT ALL CAST( NULL AS SIGNED ) * - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL CAST ( NULL AS INTEGER ) * - 69 AS col2
----
NULL

query I rowsort
SELECT 58 * - ( - 87 )
----
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT COUNT( * ) + - ( - 50 )
----
51

skipif mysql # not compatible
query I rowsort label-6548
SELECT COUNT ( * ) + - ( - 50 )
----
51

query I rowsort
SELECT 48 * + + 91
----
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT DISTINCT - 5 + + + ( - 46 ) + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT - 5 + + + ( - 46 ) + COUNT ( * )
----
-50

query I rowsort
SELECT ALL + 41 + - 65 + - 63 * 68
----
-4308

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT ALL - 87 + + 93 * + COALESCE ( ( + 24 ), 77, - 19 * COUNT( * ) ) AS col2
----
2145

skipif mysql # not compatible
query I rowsort label-6552
SELECT ALL - 87 + + 93 * + COALESCE ( ( + 24 ), 77, - 19 * COUNT ( * ) ) AS col2
----
2145

onlyif mysql # DIV for integer division: 
query I rowsort label-6553
SELECT DISTINCT + 60 + 58 DIV - 42
----
59

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT + 60 + 58 / - 42
----
59

query I rowsort
SELECT DISTINCT - 69 * - COALESCE ( 26, 11 * - 58, 56 ) * - 18 col0
----
-32292

query I rowsort
SELECT DISTINCT - 96 + + - 8 * - 66 col2
----
432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6556
SELECT ALL + 42 + 5 * - ( 9 * - CAST( 65 * + 52 AS SIGNED ) + COUNT( * ) * CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6556
SELECT ALL + 42 + 5 * - ( 9 * - CAST ( 65 * + 52 AS INTEGER ) + COUNT ( * ) * CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6557
SELECT ALL - - 38 * + 53 + MAX( + 32 + + 70 * - COALESCE ( + ( - 18 ), 95 + - 22, 13 + - COALESCE ( 82, 35, 76, + 6 - + 94 * + 64 ) DIV - 23, + 81 ) )
----
3306

skipif mysql # not compatible
query I rowsort label-6557
SELECT ALL - - 38 * + 53 + MAX ( + 32 + + 70 * - COALESCE ( + ( - 18 ), 95 + - 22, 13 + - COALESCE ( 82, 35, 76, + 6 - + 94 * + 64 ) / - 23, + 81 ) )
----
3306

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT + - COALESCE ( + - COUNT( * ), + CASE 32 WHEN + 48 - NULLIF ( - 61, + 27 ) THEN 44 END * 75 )
----
1

skipif mysql # not compatible
query I rowsort label-6558
SELECT + - COALESCE ( + - COUNT ( * ), + CASE 32 WHEN + 48 - NULLIF ( - 61, + 27 ) THEN 44 END * 75 )
----
1

query I rowsort
SELECT 5 * 67 AS col1
----
335

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT MIN( ALL - - 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-6560
SELECT MIN ( ALL - - 86 ) AS col0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6561
SELECT - - 56 DIV + 88 + 20 DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-6561
SELECT - - 56 / + 88 + 20 / 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT DISTINCT + ( - - 73 ) + + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-6562
SELECT DISTINCT + ( - - 73 ) + + COUNT ( * )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6563
SELECT ALL + - 25 - + 49 DIV - 53
----
-25

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL + - 25 - + 49 / - 53
----
-25

query I rowsort
SELECT DISTINCT - + 58 col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT DISTINCT - NULLIF ( - 42, MIN( + 53 ) ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-6565
SELECT DISTINCT - NULLIF ( - 42, MIN ( + 53 ) ) AS col1
----
42

query I rowsort
SELECT 53 * - 59 * 6 AS col2
----
-18762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6567
SELECT + ( - COUNT( * ) ) - COALESCE ( - 40 + - 80, CAST( NULL AS SIGNED ) ) * + 59 AS col0
----
7079

skipif mysql # not compatible
query I rowsort label-6567
SELECT + ( - COUNT ( * ) ) - COALESCE ( - 40 + - 80, CAST ( NULL AS INTEGER ) ) * + 59 AS col0
----
7079

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT + MIN( + 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-6568
SELECT + MIN ( + 61 ) AS col2
----
61

query I rowsort
SELECT ALL - 83 * - 91 AS col1
----
7553

query I rowsort
SELECT 46 - - + 12 + + 94 * 95
----
8988

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6571
SELECT - 43 DIV - + COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-6571
SELECT - 43 / - + COUNT ( * ) AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6572
SELECT ALL CAST( - NULLIF ( ( - ( 19 ) ), - 42 * + ( 64 ) + + 88 ) AS SIGNED ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL CAST ( - NULLIF ( ( - ( 19 ) ), - 42 * + ( 64 ) + + 88 ) AS INTEGER ) AS col0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6573
SELECT ALL CAST( NULL AS SIGNED ) - + 40 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL CAST ( NULL AS INTEGER ) - + 40 col2
----
NULL

query I rowsort
SELECT 26 * 68 AS col1
----
1768

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT ALL - COUNT( * ) * + 65 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL - COUNT ( * ) * + 65 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT ALL SUM( - 2 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL SUM ( - 2 ) AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6577
SELECT DISTINCT COUNT( * ) AS col2, - 30 DIV + + 9
----
1
-3

skipif mysql # not compatible
query II rowsort label-6577
SELECT DISTINCT COUNT ( * ) AS col2, - 30 / + + 9
----
1
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6578
SELECT 16 + + 2 + - + 2 + - 48 DIV 16
----
13

skipif mysql # not compatible
query I rowsort label-6578
SELECT 16 + + 2 + - + 2 + - 48 / 16
----
13

query I rowsort
SELECT 51 - - + 29 + - 4 + + 99 * 0 * 43
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6580
SELECT 58 DIV 27 DIV + 39
----
0

skipif mysql # not compatible
query I rowsort label-6580
SELECT 58 / 27 / + 39
----
0

query II rowsort
SELECT ALL 90, - 1 * - + 6 AS col2
----
90
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6582
SELECT ALL 54 + 84 DIV - - 91 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL 54 + 84 / - - 91 AS col1
----
54

query I rowsort
SELECT 41 + + - 77
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-6584
SELECT - COUNT( * ) AS col0, ( 50 ) * - 68 - - 46 AS col2
----
-1
-3354

skipif mysql # not compatible
query II rowsort label-6584
SELECT - COUNT ( * ) AS col0, ( 50 ) * - 68 - - 46 AS col2
----
-1
-3354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6585
SELECT COUNT( * ) DIV - + CAST( - 78 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6585
SELECT COUNT ( * ) / - + CAST ( - 78 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT ALL 47 * 82 * 41 * - 38
----
-6004532

query I rowsort
SELECT ALL 59 + + - 64 AS col0
----
-5

query I rowsort
SELECT ALL 24 + 67 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT - SUM( + 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-6589
SELECT - SUM ( + 42 ) AS col2
----
-42

query I rowsort
SELECT DISTINCT 53 + 21 * 28 * 41
----
24161

query I rowsort
SELECT ALL 29 + 3
----
32

query I rowsort
SELECT DISTINCT 46 * 16 AS col2
----
736

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT + 13 * + COUNT( * ) * - 79 + 9 AS col1
----
-1018

skipif mysql # not compatible
query I rowsort label-6593
SELECT + 13 * + COUNT ( * ) * - 79 + 9 AS col1
----
-1018

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6594
SELECT + CAST( NULL AS SIGNED ) * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-6594
SELECT + CAST ( NULL AS INTEGER ) * 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT 63 * + COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-6595
SELECT 63 * + COUNT ( * ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT COUNT( * ) - + 31
----
-30

skipif mysql # not compatible
query I rowsort label-6596
SELECT COUNT ( * ) - + 31
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT DISTINCT - - 60 * + SUM( - 5 ) AS col1
----
-300

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT - - 60 * + SUM ( - 5 ) AS col1
----
-300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6598
SELECT DISTINCT 42 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT 42 / - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 81 * + 72 - - - 71 AS col2
----
5761

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6600
SELECT + 30 DIV + - 76 + + MAX( 20 ) * - 39
----
-780

skipif mysql # not compatible
query I rowsort label-6600
SELECT + 30 / + - 76 + + MAX ( 20 ) * - 39
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT DISTINCT - - MAX( ALL 4 ) * + 83 + 57
----
389

skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT - - MAX ( ALL 4 ) * + 83 + 57
----
389

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT COUNT( - 13 ) * - COUNT( * ) + + 38 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-6602
SELECT COUNT ( - 13 ) * - COUNT ( * ) + + 38 AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6603
SELECT DISTINCT - CASE - + 52 WHEN 28 - CAST( SUM( DISTINCT 74 ) - + 68 AS SIGNED ) THEN - 69 + 19 WHEN - NULLIF ( - 2, + 55 + 8 * - COUNT( - 72 * + 1 ) ) * CAST( 51 AS SIGNED ) + 25 * 71 THEN NULL ELSE NULL END * - ( CASE + 38 WHEN + ( NULLIF ( + 49, ( 16 ) * - 38 ) ) * + 50 THEN + COUNT( * ) / ( + CAST( NULL AS SIGNED ) ) ELSE NULL END * - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6603
SELECT DISTINCT - CASE - + 52 WHEN 28 - CAST ( SUM ( DISTINCT 74 ) - + 68 AS INTEGER ) THEN - 69 + 19 WHEN - NULLIF ( - 2, + 55 + 8 * - COUNT ( - 72 * + 1 ) ) * CAST ( 51 AS INTEGER ) + 25 * 71 THEN NULL ELSE NULL END * - ( CASE + 38 WHEN + ( NULLIF ( + 49, ( 16 ) * - 38 ) ) * + 50 THEN + COUNT ( * ) / ( + CAST ( NULL AS INTEGER ) ) ELSE NULL END * - 30 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT ALL - 43 * - 81 * COUNT( * ) AS col2
----
3483

skipif mysql # not compatible
query I rowsort label-6604
SELECT ALL - 43 * - 81 * COUNT ( * ) AS col2
----
3483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6605
SELECT - + CAST( NULL AS SIGNED ) * + SUM( - 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6605
SELECT - + CAST ( NULL AS INTEGER ) * + SUM ( - 44 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT DISTINCT - - 88 * - 82 + - 45 + COUNT( * )
----
-7260

skipif mysql # not compatible
query I rowsort label-6606
SELECT DISTINCT - - 88 * - 82 + - 45 + COUNT ( * )
----
-7260

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT ALL + MIN( ALL - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL + MIN ( ALL - 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT - - COUNT( * ) + + + 61 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-6608
SELECT - - COUNT ( * ) + + + 61 AS col2
----
62

query I rowsort
SELECT - 98 * - COALESCE ( + 91, + 69 * 8 )
----
8918

query I rowsort
SELECT - 31 * - 35 AS col2
----
1085

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6611
SELECT - MAX( ALL - - CAST( NULL AS DECIMAL ) ) + 77 + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6611
SELECT - MAX ( ALL - - CAST ( NULL AS REAL ) ) + 77 + - 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT ALL CASE - + 50 WHEN - - 71 - - - ( 57 ) THEN 5 * + ( + 0 ) WHEN + 43 + COUNT( * ) * MIN( + 35 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL CASE - + 50 WHEN - - 71 - - - ( 57 ) THEN 5 * + ( + 0 ) WHEN + 43 + COUNT ( * ) * MIN ( + 35 ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6613
SELECT DISTINCT COALESCE ( - 12, + + 21 DIV + - 71 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-6613
SELECT DISTINCT COALESCE ( - 12, + + 21 / + - 71 ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT - 66 * + + MAX( ALL - 92 ) col1
----
6072

skipif mysql # not compatible
query I rowsort label-6614
SELECT - 66 * + + MAX ( ALL - 92 ) col1
----
6072

query I rowsort
SELECT + 72 + 13 * - - 95
----
1307

query I rowsort
SELECT ALL - 13 * 77
----
-1001

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT ALL + 59 + - + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL + 59 + - + COUNT ( * )
----
58

query I rowsort
SELECT DISTINCT - 4 + - 62 - + - 42
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-6619
SELECT DISTINCT - 32 DIV + 62 * + - 91
----
0

skipif mysql # not compatible
query I rowsort label-6619
SELECT DISTINCT - 32 / + 62 * + - 91
----
0

query I rowsort
SELECT - 36 * - + 12
----
432

query II rowsort
SELECT ALL 48 * - 85 AS col2, 69
----
-4080
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6622
SELECT ALL - COALESCE ( - 48, + - CASE + ( 21 ) WHEN - 57 / - 42 + COUNT( * ) * - 34 THEN + 45 ELSE 21 - + 86 END ) * + CAST( - AVG ( ALL 43 ) * COALESCE ( - 48, 97 * - 74 ) AS SIGNED )
----
99072

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL - COALESCE ( - 48, + - CASE + ( 21 ) WHEN - 57 / - 42 + COUNT ( * ) * - 34 THEN + 45 ELSE 21 - + 86 END ) * + CAST ( - AVG ( ALL 43 ) * COALESCE ( - 48, 97 * - 74 ) AS INTEGER )
----
99072

query I rowsort
SELECT ALL + 59 + 14 + + 30 AS col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT ALL 0 + + + 43 + + - COALESCE ( - 94, - 33 * - 26 ) + 61 * COUNT( * ) AS col2
----
198

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL 0 + + + 43 + + - COALESCE ( - 94, - 33 * - 26 ) + 61 * COUNT ( * ) AS col2
----
198

onlyif mysql # aggregate syntax: 
query II rowsort label-6625
SELECT + COUNT( * ) * + 60 AS col0, + 15 AS col0
----
60
15

skipif mysql # not compatible
query II rowsort label-6625
SELECT + COUNT ( * ) * + 60 AS col0, + 15 AS col0
----
60
15

query II rowsort
SELECT ALL 88 + + 93 AS col2, 75 AS col2
----
181
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT - COALESCE ( + ( + NULLIF ( - 16, 57 ) ), + CASE - ( + 40 ) WHEN + 45 THEN NULL WHEN 16 THEN + 16 WHEN 48 + COUNT( DISTINCT - 15 ) THEN COUNT( * ) * + 53 ELSE NULL END - - 76, ( + 47 ) * + 70 )
----
16

skipif mysql # not compatible
query I rowsort label-6627
SELECT - COALESCE ( + ( + NULLIF ( - 16, 57 ) ), + CASE - ( + 40 ) WHEN + 45 THEN NULL WHEN 16 THEN + 16 WHEN 48 + COUNT ( DISTINCT - 15 ) THEN COUNT ( * ) * + 53 ELSE NULL END - - 76, ( + 47 ) * + 70 )
----
16

query I rowsort
SELECT + 76 * - - ( + 70 )
----
5320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6629
SELECT ALL 82 DIV - COALESCE ( + COALESCE ( - 30, - 10, - 91 ), - 91 * 43 - COUNT( * ) * - 74, COUNT( ALL 11 ) DIV ( + 24 ) + 17 * 74 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6629
SELECT ALL 82 / - COALESCE ( + COALESCE ( - 30, - 10, - 91 ), - 91 * 43 - COUNT ( * ) * - 74, COUNT ( ALL 11 ) / ( + 24 ) + 17 * 74 ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6630
SELECT DISTINCT + ( + 31 ) DIV 64 * 31 * - CAST( + 1 AS SIGNED ) - - 44 * - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-6630
SELECT DISTINCT + ( + 31 ) / 64 * 31 * - CAST ( + 1 AS INTEGER ) - - 44 * - COUNT ( * )
----
-44

query I rowsort
SELECT DISTINCT - 27 - - 20
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6632
SELECT ALL 69 * + + 55 + 11 DIV SUM( + 49 ) * + 43 + 47
----
3842

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL 69 * + + 55 + 11 / SUM ( + 49 ) * + 43 + 47
----
3842

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT + + SUM( DISTINCT - + 15 ) * + + 40
----
-600

skipif mysql # not compatible
query I rowsort label-6633
SELECT + + SUM ( DISTINCT - + 15 ) * + + 40
----
-600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6634
SELECT + SUM( - 14 ) + + CASE + ( + ( - 50 ) ) WHEN + CAST( 43 AS SIGNED ) + - 64 * - 91 THEN NULL WHEN + 96 THEN 40 / + AVG ( + 51 ) END - + COALESCE ( 57, 73 / - 13 + - 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6634
SELECT + SUM ( - 14 ) + + CASE + ( + ( - 50 ) ) WHEN + CAST ( 43 AS INTEGER ) + - 64 * - 91 THEN NULL WHEN + 96 THEN 40 / + AVG ( + 51 ) END - + COALESCE ( 57, 73 / - 13 + - 98 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6635
SELECT DISTINCT 41 DIV - 20 + + + COALESCE ( 36, + SUM( + 49 ) + 78, + 4 ) - 56 - + 63 DIV 8
----
-29

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT 41 / - 20 + + + COALESCE ( 36, + SUM ( + 49 ) + 78, + 4 ) - 56 - + 63 / 8
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT ALL - COUNT( * ) * - 89 + 88 * COUNT( * ) AS col0
----
177

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL - COUNT ( * ) * - 89 + 88 * COUNT ( * ) AS col0
----
177

query I rowsort
SELECT + 19 * - 2 + + + 73 * + 29 AS col0
----
2079

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT + MAX( DISTINCT + 98 ) * 7 * 38
----
26068

skipif mysql # not compatible
query I rowsort label-6638
SELECT + MAX ( DISTINCT + 98 ) * 7 * 38
----
26068

query I rowsort
SELECT - - 31 + - 80 col2
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-6640
SELECT DISTINCT + + MAX( DISTINCT - - 7 ) AS col0, + COUNT( * ) + - - 30 AS col0
----
7
31

skipif mysql # not compatible
query II rowsort label-6640
SELECT DISTINCT + + MAX ( DISTINCT - - 7 ) AS col0, + COUNT ( * ) + - - 30 AS col0
----
7
31

query I rowsort
SELECT + + 61 * + - ( - + 59 ) AS col1
----
3599

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT DISTINCT + 34 * 48 + - COALESCE ( + + 73, COUNT( + ( 54 ) ) + COUNT( * ) )
----
1559

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT + 34 * 48 + - COALESCE ( + + 73, COUNT ( + ( 54 ) ) + COUNT ( * ) )
----
1559

onlyif mysql # DIV for integer division: 
query II rowsort label-6643
SELECT + + 12 DIV 45, 78 col2
----
0
78

skipif mysql # not compatible
query II rowsort label-6643
SELECT + + 12 / 45, 78 col2
----
0
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6644
SELECT ALL 90 * + 58 + - 17 * + - CASE + ( ( MIN( - 51 ) ) ) WHEN + ( CAST( NULL AS SIGNED ) ) THEN + COUNT( * ) * + 51 + - COALESCE ( - ( 33 ), COUNT( * ), - 59 + 6 * - NULLIF ( 57 + + 25, - 57 * + COUNT( * ) ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6644
SELECT ALL 90 * + 58 + - 17 * + - CASE + ( ( MIN ( - 51 ) ) ) WHEN + ( CAST ( NULL AS INTEGER ) ) THEN + COUNT ( * ) * + 51 + - COALESCE ( - ( 33 ), COUNT ( * ), - 59 + 6 * - NULLIF ( 57 + + 25, - 57 * + COUNT ( * ) ) ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6645
SELECT - 91 * + - 13 - COUNT( * ) * + 75 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6645
SELECT - 91 * + - 13 - COUNT ( * ) * + 75 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6646
SELECT ALL 61 DIV + 18 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6646
SELECT ALL 61 / + 18 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6647
SELECT + - CASE - + 78 WHEN NULLIF ( + 23, + 55 - + 28 ) THEN CAST( 58 AS SIGNED ) * 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6647
SELECT + - CASE - + 78 WHEN NULLIF ( + 23, + 55 - + 28 ) THEN CAST ( 58 AS INTEGER ) * 33 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT ALL + 28 * + - 43 + + + ( + - 82 ) + COUNT( * )
----
-1285

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL + 28 * + - 43 + + + ( + - 82 ) + COUNT ( * )
----
-1285

query I rowsort
SELECT + 84 - + 31 AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6650
SELECT ALL 31 * - + CAST( NULL AS SIGNED ) + - + 68 + - 74 / - + 36 + COUNT( * ) * + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6650
SELECT ALL 31 * - + CAST ( NULL AS INTEGER ) + - + 68 + - 74 / - + 36 + COUNT ( * ) * + 0 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT + 60 - + ( - ( 93 ) ) * + COALESCE ( 27, - 30, - 65 * + COUNT( * ) ) + - 37 * 27 col0
----
1572

skipif mysql # not compatible
query I rowsort label-6651
SELECT + 60 - + ( - ( 93 ) ) * + COALESCE ( 27, - 30, - 65 * + COUNT ( * ) ) + - 37 * 27 col0
----
1572

onlyif mysql # aggregate syntax: 
query II rowsort label-6652
SELECT COUNT( * ), + COALESCE ( 67, + 51 * - - COUNT( * ) ) AS col1
----
1
67

skipif mysql # not compatible
query II rowsort label-6652
SELECT COUNT ( * ), + COALESCE ( 67, + 51 * - - COUNT ( * ) ) AS col1
----
1
67

query I rowsort
SELECT ALL ( 77 ) col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT DISTINCT + COALESCE ( - 85, + + COUNT( * ) * - 71 * 23 * COUNT( * ) - 29 ) * MIN( 67 + - 71 ) + SUM( - 71 ) AS col1
----
269

skipif mysql # not compatible
query I rowsort label-6654
SELECT DISTINCT + COALESCE ( - 85, + + COUNT ( * ) * - 71 * 23 * COUNT ( * ) - 29 ) * MIN ( 67 + - 71 ) + SUM ( - 71 ) AS col1
----
269

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT ALL 74 * - COUNT( * ) + + 18
----
-56

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL 74 * - COUNT ( * ) + + 18
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6656
SELECT DISTINCT COUNT( * ) * - - 58 * + - CAST( NULL AS SIGNED ) + + 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6656
SELECT DISTINCT COUNT ( * ) * - - 58 * + - CAST ( NULL AS INTEGER ) + + 75 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6657
SELECT - CAST( NULL AS DECIMAL ) - ( + 22 ) * - + 6 * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT - CAST ( NULL AS REAL ) - ( + 22 ) * - + 6 * - 86
----
NULL

query I rowsort
SELECT DISTINCT ( + 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT - CASE - 46 WHEN AVG ( ALL + 93 ) THEN 51 - + 70 WHEN COUNT( * ) THEN COUNT( * ) + - 65 ELSE NULL END - - ( 30 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6659
SELECT - CASE - 46 WHEN AVG ( ALL + 93 ) THEN 51 - + 70 WHEN COUNT ( * ) THEN COUNT ( * ) + - 65 ELSE NULL END - - ( 30 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT - MIN( + 16 ) * - 70 + 75 AS col1
----
1195

skipif mysql # not compatible
query I rowsort label-6660
SELECT - MIN ( + 16 ) * - 70 + 75 AS col1
----
1195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6661
SELECT ALL CAST( - ( + 64 ) AS SIGNED ), 40 - 14 AS col0
----
-64
26

skipif mysql # not compatible
query II rowsort label-6661
SELECT ALL CAST ( - ( + 64 ) AS INTEGER ), 40 - 14 AS col0
----
-64
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6662
SELECT ALL - 28 - - MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL - 28 - - MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6663
SELECT - 70 + + - 88 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6663
SELECT - 70 + + - 88 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( + 74, - 2 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT - NULLIF ( 70, + + 58 * - COUNT( 27 ) + - COUNT( * ) ) + - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-6665
SELECT - NULLIF ( 70, + + 58 * - COUNT ( 27 ) + - COUNT ( * ) ) + - COUNT ( * )
----
-71

query I rowsort
SELECT ALL + 56 * + 39
----
2184

query II rowsort
SELECT 28 col0, 25 * 88 AS col1
----
28
2200

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT ALL + - 51 * MAX( - + 96 ) col1
----
4896

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL + - 51 * MAX ( - + 96 ) col1
----
4896

onlyif mysql # aggregate syntax: 
query II rowsort label-6669
SELECT DISTINCT - 23, CASE 16 WHEN 92 THEN + + 79 * - 77 WHEN 40 THEN NULL ELSE NULL END + COALESCE ( + COUNT( * ), COUNT( * ) ) AS col0
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-6669
SELECT DISTINCT - 23, CASE 16 WHEN 92 THEN + + 79 * - 77 WHEN 40 THEN NULL ELSE NULL END + COALESCE ( + COUNT ( * ), COUNT ( * ) ) AS col0
----
-23
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - + 25, + - 99 )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6671
SELECT - 3 DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-6671
SELECT - 3 / - 91
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6672
SELECT - 73 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6672
SELECT - 73 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6673
SELECT 35 AS col2, CAST( - 65 AS SIGNED ) + 54 - - CAST( 62 AS SIGNED )
----
35
51

skipif mysql # not compatible
query II rowsort label-6673
SELECT 35 AS col2, CAST ( - 65 AS INTEGER ) + 54 - - CAST ( 62 AS INTEGER )
----
35
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6674
SELECT + 30 DIV - 75 + - 29 - 9 - - + 80 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-6674
SELECT + 30 / - 75 + - 29 - 9 - - + 80 AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6675
SELECT + + CAST( 14 AS SIGNED ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-6675
SELECT + + CAST ( 14 AS INTEGER ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT ALL - MIN( ALL - 96 ) * SUM( + + 55 ) * - 32 + 21 * + 69
----
-167511

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL - MIN ( ALL - 96 ) * SUM ( + + 55 ) * - 32 + 21 * + 69
----
-167511

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT + COUNT( * ) + CASE + + COUNT( * ) WHEN + 36 * + 55 * + COALESCE ( - 43, 80 - + 80 / + 42 ) THEN NULL WHEN 27 * COUNT( 40 ) THEN 37 + + 49 END * + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6677
SELECT + COUNT ( * ) + CASE + + COUNT ( * ) WHEN + 36 * + 55 * + COALESCE ( - 43, 80 - + 80 / + 42 ) THEN NULL WHEN 27 * COUNT ( 40 ) THEN 37 + + 49 END * + 2 AS col1
----
NULL

query I rowsort
SELECT ALL + 85 + - 21
----
64

query I rowsort
SELECT ALL 92 + - 6 + + 26
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-6680
SELECT - + COUNT( * ) * - COUNT( * ) - - COUNT( * ), + 55 AS col2
----
2
55

skipif mysql # not compatible
query II rowsort label-6680
SELECT - + COUNT ( * ) * - COUNT ( * ) - - COUNT ( * ), + 55 AS col2
----
2
55

query I rowsort
SELECT - 42 * + 78 + + 24 + + + 48 col0
----
-3204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6682
SELECT ALL 49 * + - COALESCE ( + + ( - - 19 ), CAST( + 84 AS SIGNED ), 89 + MIN( ALL 76 ) )
----
-931

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL 49 * + - COALESCE ( + + ( - - 19 ), CAST ( + 84 AS INTEGER ), 89 + MIN ( ALL 76 ) )
----
-931

query I rowsort
SELECT - 89 + - 61 col0
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6684
SELECT + 28 + + 4 - + 24 + 56 + + CAST( NULL AS SIGNED ) - + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-6684
SELECT + 28 + + 4 - + 24 + 56 + + CAST ( NULL AS INTEGER ) - + 78
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6685
SELECT + - 69, + COUNT( * ) AS col1
----
-69
1

skipif mysql # not compatible
query II rowsort label-6685
SELECT + - 69, + COUNT ( * ) AS col1
----
-69
1

query I rowsort
SELECT - 2 + + - COALESCE ( + 3, - 77 ) * - 29
----
85

query I rowsort
SELECT 22 * + + 34 + 90
----
838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6688
SELECT - MIN( 80 ) * + + CAST( NULL AS SIGNED ) + 99 + ( - + 7 ) + - 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT - MIN ( 80 ) * + + CAST ( NULL AS INTEGER ) + 99 + ( - + 7 ) + - 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6689
SELECT 51 + + COUNT( * ) * 14 DIV + 48 col1
----
51

skipif mysql # not compatible
query I rowsort label-6689
SELECT 51 + + COUNT ( * ) * 14 / + 48 col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT ALL + 59 + - COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL + 59 + - COUNT ( * ) AS col0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6691
SELECT CAST( - + COALESCE ( + + 21, + 86 ) AS SIGNED ) + NULLIF ( 47, - 47 / + 12 ) * + 1
----
26

skipif mysql # not compatible
query I rowsort label-6691
SELECT CAST ( - + COALESCE ( + + 21, + 86 ) AS INTEGER ) + NULLIF ( 47, - 47 / + 12 ) * + 1
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6692
SELECT ALL - 2, CAST( + ( - - 31 ) AS SIGNED ) AS col1
----
-2
31

skipif mysql # not compatible
query II rowsort label-6692
SELECT ALL - 2, CAST ( + ( - - 31 ) AS INTEGER ) AS col1
----
-2
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT 60 * + 54 + - SUM( ALL - - 86 )
----
3154

skipif mysql # not compatible
query I rowsort label-6693
SELECT 60 * + 54 + - SUM ( ALL - - 86 )
----
3154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6694
SELECT CAST( + + 36 AS SIGNED ) * + 39 + + COALESCE ( + COUNT( * ), - MIN( DISTINCT 67 ), 73 * COUNT( * ) ) AS col2
----
1405

skipif mysql # not compatible
query I rowsort label-6694
SELECT CAST ( + + 36 AS INTEGER ) * + 39 + + COALESCE ( + COUNT ( * ), - MIN ( DISTINCT 67 ), 73 * COUNT ( * ) ) AS col2
----
1405

query II rowsort
SELECT 19 AS col0, + 99 + + 28 AS col1
----
19
127

query I rowsort
SELECT DISTINCT + 78 - + 19
----
59

query I rowsort
SELECT DISTINCT 70 * - - 32 * + - 50 AS col2
----
-112000

query II rowsort
SELECT ALL 29 * + + 85 AS col0, 6 + + + 67 - - 3
----
2465
76

query I rowsort
SELECT 92 * 82
----
7544

onlyif mysql # DIV for integer division: 
query I rowsort label-6700
SELECT ALL - 97 DIV 5
----
-19

skipif mysql # not compatible
query I rowsort label-6700
SELECT ALL - 97 / 5
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6701
SELECT 1 DIV CASE - COUNT( * ) WHEN 60 * 72 * - + 40 THEN 96 WHEN 86 THEN COALESCE ( - 3, AVG ( 25 ), + 54 DIV COUNT( * ) ) * ( 97 ) ELSE 12 END
----
0

skipif mysql # not compatible
query I rowsort label-6701
SELECT 1 / CASE - COUNT ( * ) WHEN 60 * 72 * - + 40 THEN 96 WHEN 86 THEN COALESCE ( - 3, AVG ( 25 ), + 54 / COUNT ( * ) ) * ( 97 ) ELSE 12 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT 97 * + COUNT( * ) * 35 + - + 76
----
3319

skipif mysql # not compatible
query I rowsort label-6702
SELECT 97 * + COUNT ( * ) * 35 + - + 76
----
3319

onlyif mysql # aggregate syntax: 
query II rowsort label-6703
SELECT ALL COUNT( * ) AS col2, + 58
----
1
58

skipif mysql # not compatible
query II rowsort label-6703
SELECT ALL COUNT ( * ) AS col2, + 58
----
1
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT + MIN( DISTINCT - 61 ) col2
----
-61

skipif mysql # not compatible
query I rowsort label-6704
SELECT + MIN ( DISTINCT - 61 ) col2
----
-61

query I rowsort
SELECT + 1 - + 55
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-6706
SELECT + 71 * 27 DIV 52 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-6706
SELECT + 71 * 27 / 52 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT COUNT( * ) - 87 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-6707
SELECT COUNT ( * ) - 87 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT DISTINCT + - COUNT( * ) + + + 8 + 77
----
84

skipif mysql # not compatible
query I rowsort label-6708
SELECT DISTINCT + - COUNT ( * ) + + + 8 + 77
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT DISTINCT - + ( ( + + 67 ) ) + + 62 * COUNT( - 82 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT - + ( ( + + 67 ) ) + + 62 * COUNT ( - 82 ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT - COUNT( * ) + - + 75
----
-76

skipif mysql # not compatible
query I rowsort label-6710
SELECT - COUNT ( * ) + - + 75
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6711
SELECT DISTINCT + + 82 * CAST( - + 52 AS SIGNED ) AS col2
----
-4264

skipif mysql # not compatible
query I rowsort label-6711
SELECT DISTINCT + + 82 * CAST ( - + 52 AS INTEGER ) AS col2
----
-4264

query I rowsort
SELECT + 60 + - 13 AS col1
----
47

query I rowsort
SELECT DISTINCT + + 69 + - 12 * 23 AS col1
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT ALL - + COUNT( * ) + - 31 - 66
----
-98

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL - + COUNT ( * ) + - 31 - 66
----
-98

query I rowsort
SELECT + 12 * + + 53 AS col2
----
636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6716
SELECT CAST( NULLIF ( 11, 76 ) AS SIGNED ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-6716
SELECT CAST ( NULLIF ( 11, 76 ) AS INTEGER ) AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6717
SELECT + CAST( NULL AS SIGNED ) / + 26 + + 43 - - + 80 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6717
SELECT + CAST ( NULL AS INTEGER ) / + 26 + + 43 - - + 80 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6718
SELECT 41 DIV - 12 col0
----
-3

skipif mysql # not compatible
query I rowsort label-6718
SELECT 41 / - 12 col0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-6719
SELECT ALL 72 DIV - 16 AS col2, ( - 16 ) AS col0
----
-4
-16

skipif mysql # not compatible
query II rowsort label-6719
SELECT ALL 72 / - 16 AS col2, ( - 16 ) AS col0
----
-4
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT DISTINCT 90 * + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-6720
SELECT DISTINCT 90 * + COUNT ( * )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6721
SELECT DISTINCT - 73 + + - 17 DIV COUNT( * ), - 83 AS col0
----
-90
-83

skipif mysql # not compatible
query II rowsort label-6721
SELECT DISTINCT - 73 + + - 17 / COUNT ( * ), - 83 AS col0
----
-90
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT MAX( ALL - - 75 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-6722
SELECT MAX ( ALL - - 75 ) AS col1
----
75

query I rowsort
SELECT ALL 25 - 29 AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-6724
SELECT 67 DIV + 82 col0
----
0

skipif mysql # not compatible
query I rowsort label-6724
SELECT 67 / + 82 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT ALL 89 - + 80 + + ( + + 10 ) + 10 * COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-6725
SELECT ALL 89 - + 80 + + ( + + 10 ) + 10 * COUNT ( * )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT + COUNT( ALL - - 99 )
----
1

skipif mysql # not compatible
query I rowsort label-6726
SELECT + COUNT ( ALL - - 99 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT ALL SUM( DISTINCT + 75 ) * - + 65 - - + 46
----
-4829

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL SUM ( DISTINCT + 75 ) * - + 65 - - + 46
----
-4829

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT CASE + SUM( - 54 ) WHEN - 98 + - MIN( 65 ) * - 72 THEN - 57 END - - 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6728
SELECT CASE + SUM ( - 54 ) WHEN - 98 + - MIN ( 65 ) * - 72 THEN - 57 END - - 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT MIN( DISTINCT - 52 ) + + COALESCE ( - 93, - 55, + - 25 ) col2
----
-145

skipif mysql # not compatible
query I rowsort label-6729
SELECT MIN ( DISTINCT - 52 ) + + COALESCE ( - 93, - 55, + - 25 ) col2
----
-145

onlyif mysql # DIV for integer division: 
query I rowsort label-6730
SELECT DISTINCT 52 DIV 11 col0
----
4

skipif mysql # not compatible
query I rowsort label-6730
SELECT DISTINCT 52 / 11 col0
----
4

query I rowsort
SELECT + 87 + - ( + + 66 ) AS col1
----
21

query I rowsort
SELECT + + 84 * + 99 * - 54 AS col2
----
-449064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6733
SELECT CAST( 38 AS SIGNED ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-6733
SELECT CAST ( 38 AS INTEGER ) AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6734
SELECT + + COALESCE ( - 31, - COUNT( * ) + + 65 ) + + - 21 AS col1, 66 / + 93 * - COUNT( * ) + - CAST( NULL AS SIGNED ) * - 18
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-6734
SELECT + + COALESCE ( - 31, - COUNT ( * ) + + 65 ) + + - 21 AS col1, 66 / + 93 * - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - 18
----
-52
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6735
SELECT ALL COUNT( * ) * - MAX( - 58 ) DIV - 82 * NULLIF ( + + 60, - COUNT( * ) DIV 3 ) + COUNT( * ) * - 26
----
-26

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL COUNT ( * ) * - MAX ( - 58 ) / - 82 * NULLIF ( + + 60, - COUNT ( * ) / 3 ) + COUNT ( * ) * - 26
----
-26

query II rowsort
SELECT + 8 * 79 AS col0, 95 AS col2
----
632
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT DISTINCT + - 46 + - NULLIF ( + + COUNT( * ), + 98 * + 73 * - MAX( ALL 28 ) + 65 ) * 8
----
-54

skipif mysql # not compatible
query I rowsort label-6737
SELECT DISTINCT + - 46 + - NULLIF ( + + COUNT ( * ), + 98 * + 73 * - MAX ( ALL 28 ) + 65 ) * 8
----
-54

query I rowsort
SELECT DISTINCT + 27 * 46 AS col2
----
1242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6739
SELECT DISTINCT ( - 0 ) + + + 60 * CAST( NULL AS SIGNED ) * + NULLIF ( + 36, - 19 * 95 + 89 / + 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6739
SELECT DISTINCT ( - 0 ) + + + 60 * CAST ( NULL AS INTEGER ) * + NULLIF ( + 36, - 19 * 95 + 89 / + 21 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT - - COUNT( * ) + - + 67 + 41
----
-25

skipif mysql # not compatible
query I rowsort label-6740
SELECT - - COUNT ( * ) + - + 67 + 41
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT ALL + 2 + + COUNT( * ) * COUNT( + 17 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL + 2 + + COUNT ( * ) * COUNT ( + 17 ) AS col0
----
3

query I rowsort
SELECT ALL - + 4 + + 11
----
7

query I rowsort
SELECT + + ( + 72 )
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-6744
SELECT + MIN( ALL 7 ) AS col0, 51 * + + 42 * - 56 + + + 30
----
7
-119922

skipif mysql # not compatible
query II rowsort label-6744
SELECT + MIN ( ALL 7 ) AS col0, 51 * + + 42 * - 56 + + + 30
----
7
-119922

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6745
SELECT 22 DIV + - 84 + + - 84 + + - NULLIF ( - 8, 48 * CASE - 88 WHEN CAST( - 56 AS SIGNED ) * + 41 THEN CASE - 10 WHEN COUNT( * ) THEN - ( - 24 ) + - 44 END ELSE 40 END * 58 ) col2
----
-76

skipif mysql # not compatible
query I rowsort label-6745
SELECT 22 / + - 84 + + - 84 + + - NULLIF ( - 8, 48 * CASE - 88 WHEN CAST ( - 56 AS INTEGER ) * + 41 THEN CASE - 10 WHEN COUNT ( * ) THEN - ( - 24 ) + - 44 END ELSE 40 END * 58 ) col2
----
-76

query I rowsort
SELECT DISTINCT - 11 * + 83 AS col2
----
-913

query I rowsort
SELECT - NULLIF ( + 42, + 32 - + 63 * + ( + ( - 69 ) ) - 1 ) + 19
----
-23

query I rowsort
SELECT ALL + - 24 * - 39 + + 99 AS col2
----
1035

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6749
SELECT - 37 + + - 18 DIV - SUM( DISTINCT + 51 )
----
-37

skipif mysql # not compatible
query I rowsort label-6749
SELECT - 37 + + - 18 / - SUM ( DISTINCT + 51 )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6750
SELECT ALL MAX( - 34 ) * - 79 - + 60 DIV 17 * 74 - - 57 - + 56 AS col2
----
2465

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL MAX ( - 34 ) * - 79 - + 60 / 17 * 74 - - 57 - + 56 AS col2
----
2465

query I rowsort
SELECT - 90 * 38 AS col2
----
-3420

query I rowsort
SELECT ALL - 68 * - 74 AS col1
----
5032

query I rowsort
SELECT NULLIF ( 51, - 48 ) AS col1
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6754
SELECT + 80 col2, - CAST( NULL AS DECIMAL ) col2
----
80
NULL

skipif mysql # not compatible
query II rowsort label-6754
SELECT + 80 col2, - CAST ( NULL AS REAL ) col2
----
80
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6755
SELECT ALL - COUNT( * ) DIV - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL - COUNT ( * ) / - COUNT ( * ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6756
SELECT - ( + - 63 ) + + + 14 + + + COALESCE ( + + 4, - - 9 * + 82 + + 90 DIV 3 ) * - 71
----
-207

skipif mysql # not compatible
query I rowsort label-6756
SELECT - ( + - 63 ) + + + 14 + + + COALESCE ( + + 4, - - 9 * + 82 + + 90 / 3 ) * - 71
----
-207

onlyif mysql # aggregate syntax: 
query II rowsort label-6757
SELECT - COUNT( * ) * - - 90 * 90 * - 93 AS col0, CASE + ( 18 ) WHEN 38 THEN 85 * - MIN( DISTINCT + 68 ) END + - NULLIF ( 99, - SUM( 97 ) ) AS col2
----
753300
NULL

skipif mysql # not compatible
query II rowsort label-6757
SELECT - COUNT ( * ) * - - 90 * 90 * - 93 AS col0, CASE + ( 18 ) WHEN 38 THEN 85 * - MIN ( DISTINCT + 68 ) END + - NULLIF ( 99, - SUM ( 97 ) ) AS col2
----
753300
NULL

query I rowsort
SELECT ALL 35 * + 59 AS col2
----
2065

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6759
SELECT - COALESCE ( + 1, - + 6, + 79 DIV + + NULLIF ( - 26, + 92 ) + CAST( NULL AS SIGNED ) + - 66 ) DIV - 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6759
SELECT - COALESCE ( + 1, - + 6, + 79 / + + NULLIF ( - 26, + 92 ) + CAST ( NULL AS INTEGER ) + - 66 ) / - 18 AS col0
----
0

query I rowsort
SELECT ALL 11 * 67 AS col2
----
737

query I rowsort
SELECT ALL 29 * + 65 AS col0
----
1885

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT + 70 + 97 * - + COUNT( * ) * - + 18 AS col2
----
1816

skipif mysql # not compatible
query I rowsort label-6762
SELECT + 70 + 97 * - + COUNT ( * ) * - + 18 AS col2
----
1816

query I rowsort
SELECT COALESCE ( - 40, - ( 84 ) ) col2
----
-40

query I rowsort
SELECT DISTINCT 27 + + - 45
----
-18

query I rowsort
SELECT ALL - 9 + + 16 AS col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-6766
SELECT ALL + 34 + - 48 * - - 22, - SUM( - + 10 ) * + + ( - - 90 ) AS col0
----
-1022
900

skipif mysql # not compatible
query II rowsort label-6766
SELECT ALL + 34 + - 48 * - - 22, - SUM ( - + 10 ) * + + ( - - 90 ) AS col0
----
-1022
900

query I rowsort
SELECT ALL - NULLIF ( + 67, - ( AVG ( DISTINCT + 72 ) ) ) * - - 62 + + - ( - 44 ) + 58 AS col1
----
-4052

onlyif mysql # aggregate syntax: 
query II rowsort label-6768
SELECT + 28 + + + COUNT( * ) + 94 AS col0, - ( + - COUNT( * ) ) AS col2
----
123
1

skipif mysql # not compatible
query II rowsort label-6768
SELECT + 28 + + + COUNT ( * ) + 94 AS col0, - ( + - COUNT ( * ) ) AS col2
----
123
1

query I rowsort
SELECT ALL - 73 + - - 21 * 59 * - - 87 AS col2
----
107720

query I rowsort
SELECT + 85 * + 70
----
5950

onlyif mysql # DIV for integer division: 
query I rowsort label-6771
SELECT + 95 DIV - NULLIF ( - + ( - 42 ), NULLIF ( - 97, - - 88 - + 14 * 87 ) * 19 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6771
SELECT + 95 / - NULLIF ( - + ( - 42 ), NULLIF ( - 97, - - 88 - + 14 * 87 ) * 19 ) AS col2
----
-2

query II rowsort
SELECT + 91 col1, 41
----
91
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT ALL 38 * + - 99 * 85 + - + 24 + + + MAX( + 93 ) col2
----
-319701

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL 38 * + - 99 * 85 + - + 24 + + + MAX ( + 93 ) col2
----
-319701

query II rowsort
SELECT - + 52, - 83 AS col1
----
-52
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6775
SELECT ALL - CAST( + NULLIF ( - 6, + 54 * + - 80 ) AS SIGNED ) - + + 23 * + 36
----
-822

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL - CAST ( + NULLIF ( - 6, + 54 * + - 80 ) AS INTEGER ) - + + 23 * + 36
----
-822

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT ALL 82 * MIN( - + 88 )
----
-7216

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL 82 * MIN ( - + 88 )
----
-7216

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT ALL + + NULLIF ( - 20, - - COUNT( * ) * + 9 * - 18 ) - + 90 * + + 65 AS col2
----
-5870

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL + + NULLIF ( - 20, - - COUNT ( * ) * + 9 * - 18 ) - + 90 * + + 65 AS col2
----
-5870

query I rowsort
SELECT DISTINCT 0 * - - 93
----
0

query I rowsort
SELECT ALL - 21 * + 86 AS col0
----
-1806

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT + 31 * 40 * SUM( 59 ) AS col2
----
73160

skipif mysql # not compatible
query I rowsort label-6780
SELECT + 31 * 40 * SUM ( 59 ) AS col2
----
73160

query II rowsort
SELECT - 36 * - - 81, - 10 + - + 37 * + 91 AS col1
----
-2916
-3377

query I rowsort
SELECT ALL - 37 * + 11
----
-407

query I rowsort
SELECT DISTINCT + ( - 10 )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6784
SELECT DISTINCT - COALESCE ( - 3, CAST( + - 27 AS SIGNED ) * 95 * - + 50 * 92, 74 + + + 98 - 52 ) * - COUNT( * ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT - COALESCE ( - 3, CAST ( + - 27 AS INTEGER ) * 95 * - + 50 * 92, 74 + + + 98 - 52 ) * - COUNT ( * ) AS col0
----
-3

query I rowsort
SELECT ALL - 38 * + - 84 * - + 10 AS col0
----
-31920

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT DISTINCT - CASE + COUNT( * ) WHEN + ( - 98 ) THEN - + 66 WHEN - COUNT( * ) * - 8 THEN NULL ELSE + 15 END AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6786
SELECT DISTINCT - CASE + COUNT ( * ) WHEN + ( - 98 ) THEN - + 66 WHEN - COUNT ( * ) * - 8 THEN NULL ELSE + 15 END AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT ( + - NULLIF ( - - 27, + - 29 * - COUNT( * ) / - 8 - SUM( ALL 19 ) + - + 54 ) ) * + ( + 29 ) + + COUNT( ALL + 5 )
----
-782

skipif mysql # not compatible
query I rowsort label-6787
SELECT ( + - NULLIF ( - - 27, + - 29 * - COUNT ( * ) / - 8 - SUM ( ALL 19 ) + - + 54 ) ) * + ( + 29 ) + + COUNT ( ALL + 5 )
----
-782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6788
SELECT 20 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6788
SELECT 20 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( + 51 ) + 20
----
71

query II rowsort
SELECT 1 + + 57 - 79 * - 49 AS col1, 85
----
3929
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT 41 + COUNT( * ) + - MAX( - ( + 13 ) )
----
55

skipif mysql # not compatible
query I rowsort label-6791
SELECT 41 + COUNT ( * ) + - MAX ( - ( + 13 ) )
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-6792
SELECT ALL + COUNT( * ) + - + 91 AS col1, - 90 AS col2
----
-90
-90

skipif mysql # not compatible
query II rowsort label-6792
SELECT ALL + COUNT ( * ) + - + 91 AS col1, - 90 AS col2
----
-90
-90

query I rowsort
SELECT - ( - - 7 ) AS col0
----
-7

query I rowsort
SELECT 64 - 99
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT + 47 + + SUM( ALL + 92 )
----
139

skipif mysql # not compatible
query I rowsort label-6795
SELECT + 47 + + SUM ( ALL + 92 )
----
139

query I rowsort
SELECT 10 + - ( 59 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT DISTINCT - - 62 * + - 83 * + COUNT( * )
----
-5146

skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT - - 62 * + - 83 * + COUNT ( * )
----
-5146

query I rowsort
SELECT 33 * - ( - + 40 ) AS col0
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT - MIN( - 61 ) + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-6799
SELECT - MIN ( - 61 ) + COUNT ( * )
----
62

query I rowsort
SELECT ALL - + 33 - + 54
----
-87

query I rowsort
SELECT DISTINCT + ( - - 64 ) * + - 77 AS col0
----
-4928

query I rowsort
SELECT ( - 31 ) * + - 5 AS col2
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6803
SELECT DISTINCT - 28 * + CASE + - 29 WHEN + 15 * 72 + - 3 * + CAST( 54 AS SIGNED ) + - 50 + 88 THEN NULL WHEN 64 THEN COUNT( * ) - + 72 WHEN - 94 + + 0 * - CAST( NULL AS SIGNED ) THEN - 79 + 18 ELSE 4 END
----
-112

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT - 28 * + CASE + - 29 WHEN + 15 * 72 + - 3 * + CAST ( 54 AS INTEGER ) + - 50 + 88 THEN NULL WHEN 64 THEN COUNT ( * ) - + 72 WHEN - 94 + + 0 * - CAST ( NULL AS INTEGER ) THEN - 79 + 18 ELSE 4 END
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6804
SELECT ALL 72 DIV COUNT( - 59 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL 72 / COUNT ( - 59 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT SUM( 5 ) * - - 98 * - 43 * + - 17 * - 67
----
-23998730

skipif mysql # not compatible
query I rowsort label-6805
SELECT SUM ( 5 ) * - - 98 * - 43 * + - 17 * - 67
----
-23998730

query I rowsort
SELECT ( - 73 ) * + ( + - 7 ) AS col2
----
511

query I rowsort
SELECT DISTINCT 7 * + 4
----
28

query I rowsort
SELECT CASE NULLIF ( 49, 66 - + + 91 ) WHEN - 68 THEN + + 39 END + 81
----
NULL

query I rowsort
SELECT DISTINCT 71 * 89
----
6319

query I rowsort
SELECT ALL 6 + - 21 AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6811
SELECT DISTINCT 65 + - COUNT( * ) * + 91 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6811
SELECT DISTINCT 65 + - COUNT ( * ) * + 91 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6812
SELECT COUNT( - - 75 ) * - 29 AS col0, COALESCE ( - + 31, 13 ) AS col1
----
-29
-31

skipif mysql # not compatible
query II rowsort label-6812
SELECT COUNT ( - - 75 ) * - 29 AS col0, COALESCE ( - + 31, 13 ) AS col1
----
-29
-31

query I rowsort
SELECT ALL 0 + + 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT ALL CASE - + NULLIF ( + + 11, + 58 * 3 ) WHEN - - ( 18 ) THEN + COALESCE ( + 49, - 85 ) END / - ( ( AVG ( + 62 ) ) + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL CASE - + NULLIF ( + + 11, + 58 * 3 ) WHEN - - ( 18 ) THEN + COALESCE ( + 49, - 85 ) END / - ( ( AVG ( + 62 ) ) + COUNT ( * ) )
----
NULL

query I rowsort
SELECT 20 + - 62
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6816
SELECT - 46 * 48 + MIN( + 30 ) DIV + 45 + 86 * - 87
----
-9690

skipif mysql # not compatible
query I rowsort label-6816
SELECT - 46 * 48 + MIN ( + 30 ) / + 45 + 86 * - 87
----
-9690

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT ALL + COUNT( * ) + + ( 42 )
----
43

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL + COUNT ( * ) + + ( 42 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT COALESCE ( 19, + 24, - - COUNT( * ) ) * - - 36 * COUNT( * )
----
684

skipif mysql # not compatible
query I rowsort label-6818
SELECT COALESCE ( 19, + 24, - - COUNT ( * ) ) * - - 36 * COUNT ( * )
----
684

query I rowsort
SELECT 36 + - + 81 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-6820
SELECT DISTINCT + ( + 20 ) + - 51 col0, + 75 * - COUNT( ALL + ( - + 81 ) ) + + MAX( - 82 ) AS col0
----
-31
-157

skipif mysql # not compatible
query II rowsort label-6820
SELECT DISTINCT + ( + 20 ) + - 51 col0, + 75 * - COUNT ( ALL + ( - + 81 ) ) + + MAX ( - 82 ) AS col0
----
-31
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT ALL + - 65 + + - COALESCE ( - 24, 72 + - COUNT( * ) ) * 27 - + + 47 - 0 + 16 AS col2
----
552

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL + - 65 + + - COALESCE ( - 24, 72 + - COUNT ( * ) ) * 27 - + + 47 - 0 + 16 AS col2
----
552

query I rowsort
SELECT DISTINCT + + 40 * + ( - - 50 )
----
2000

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT + NULLIF ( - + 96, COUNT( * ) * NULLIF ( 48, - - 63 * + COALESCE ( 49, - 1, - - 14 * MIN( ( + 85 ) ) ) ) * + NULLIF ( 78, ( + 60 ) - - 62 * + 81 ) ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-6823
SELECT + NULLIF ( - + 96, COUNT ( * ) * NULLIF ( 48, - - 63 * + COALESCE ( 49, - 1, - - 14 * MIN ( ( + 85 ) ) ) ) * + NULLIF ( 78, ( + 60 ) - - 62 * + 81 ) ) AS col2
----
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-6824
SELECT ALL + - 73 - - 36 + - 42, - 34 - 27 + 93 DIV - 77 AS col0
----
-79
-62

skipif mysql # not compatible
query II rowsort label-6824
SELECT ALL + - 73 - - 36 + - 42, - 34 - 27 + 93 / - 77 AS col0
----
-79
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT CASE - - COUNT( * ) WHEN + 49 THEN NULL WHEN - + COUNT( * ) THEN - 46 WHEN + 2 * 91 + - + ( - 7 ) THEN NULL END * - - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-6825
SELECT CASE - - COUNT ( * ) WHEN + 49 THEN NULL WHEN - + COUNT ( * ) THEN - 46 WHEN + 2 * 91 + - + ( - 7 ) THEN NULL END * - - 45
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-6826
SELECT - + 10, - 52 DIV - 45 AS col0, - - 14 AS col1
----
-10
1
14

skipif mysql # not compatible
query III rowsort label-6826
SELECT - + 10, - 52 / - 45 AS col0, - - 14 AS col1
----
-10
1
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT CASE + 99 WHEN + COUNT( * ) THEN - 2 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6827
SELECT CASE + 99 WHEN + COUNT ( * ) THEN - 2 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6828
SELECT ALL + CASE 7 WHEN - 76 - NULLIF ( + 7, - + 81 / - + 95 + COUNT( * ) + - - 55 ) THEN NULL WHEN + 73 - - 30 THEN + 76 + - NULLIF ( - 19, 70 * MAX( ALL - CAST( - 61 AS SIGNED ) / 90 ) - + 56 * 59 ) * 36 ELSE 88 END col2
----
88

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL + CASE 7 WHEN - 76 - NULLIF ( + 7, - + 81 / - + 95 + COUNT ( * ) + - - 55 ) THEN NULL WHEN + 73 - - 30 THEN + 76 + - NULLIF ( - 19, 70 * MAX ( ALL - CAST ( - 61 AS INTEGER ) / 90 ) - + 56 * 59 ) * 36 ELSE 88 END col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6829
SELECT ALL 80, + 77 * - + COALESCE ( 78, 99 - - 89 / 27 ) / - + 92 / CAST( NULL AS SIGNED ) * + ( 36 ) * + ( - 70 ) AS col2
----
80
NULL

skipif mysql # not compatible
query II rowsort label-6829
SELECT ALL 80, + 77 * - + COALESCE ( 78, 99 - - 89 / 27 ) / - + 92 / CAST ( NULL AS INTEGER ) * + ( 36 ) * + ( - 70 ) AS col2
----
80
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6830
SELECT ( 17 ) DIV + + COUNT( ALL 49 ) + + - 55 - - 23 AS col0, + 91 AS col2
----
-15
91

skipif mysql # not compatible
query II rowsort label-6830
SELECT ( 17 ) / + + COUNT ( ALL 49 ) + + - 55 - - 23 AS col0, + 91 AS col2
----
-15
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT + 37 * COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-6831
SELECT + 37 * COUNT ( * )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-6832
SELECT DISTINCT + 24 DIV 6
----
4

skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT + 24 / 6
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6833
SELECT - 4 DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-6833
SELECT - 4 / + 34
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6834
SELECT ALL COUNT( * ) * + ( 7 ) - - + 42 * - - NULLIF ( - 81, 78 + + - 63 * - + CAST( NULL AS SIGNED ) * - 70 * 6 )
----
-3395

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL COUNT ( * ) * + ( 7 ) - - + 42 * - - NULLIF ( - 81, 78 + + - 63 * - + CAST ( NULL AS INTEGER ) * - 70 * 6 )
----
-3395

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6835
SELECT DISTINCT - + CASE + 15 WHEN - + 30 THEN + CAST( NULL AS SIGNED ) * - - 40 ELSE - 25 END DIV + 12
----
2

skipif mysql # not compatible
query I rowsort label-6835
SELECT DISTINCT - + CASE + 15 WHEN - + 30 THEN + CAST ( NULL AS INTEGER ) * - - 40 ELSE - 25 END / + 12
----
2

query I rowsort
SELECT ALL - 30 * 17
----
-510

query I rowsort
SELECT 60 * - - ( - 49 )
----
-2940

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT 70 - - - 82 + COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-6838
SELECT 70 - - - 82 + COUNT ( * ) AS col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6839
SELECT - 23 AS col0, COUNT( * ) - - 67 DIV 80
----
-23
1

skipif mysql # not compatible
query II rowsort label-6839
SELECT - 23 AS col0, COUNT ( * ) - - 67 / 80
----
-23
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6840
SELECT DISTINCT 25, + 4 * + + CAST( - COUNT( - 57 ) AS SIGNED ) DIV - 38 + + - 79 AS col1
----
25
-79

skipif mysql # not compatible
query II rowsort label-6840
SELECT DISTINCT 25, + 4 * + + CAST ( - COUNT ( - 57 ) AS INTEGER ) / - 38 + + - 79 AS col1
----
25
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-6841
SELECT DISTINCT COUNT( * ), 51 + - 84 AS col2
----
1
-33

skipif mysql # not compatible
query II rowsort label-6841
SELECT DISTINCT COUNT ( * ), 51 + - 84 AS col2
----
1
-33

query I rowsort
SELECT ALL + 38 + + 43
----
81

query I rowsort
SELECT ALL - 5 * + + 24 + 49
----
-71

query I rowsort
SELECT + 94 * 26 col0
----
2444

query I rowsort
SELECT NULLIF ( - 27, - 9 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT COALESCE ( 82, + COUNT( 28 ) + COALESCE ( + + 39, - 2 - - 40, - 36 * + + NULLIF ( - + 61, COUNT( ALL + 12 ) + - 37 ) ) + - 52 * 69 ) col1
----
82

skipif mysql # not compatible
query I rowsort label-6846
SELECT COALESCE ( 82, + COUNT ( 28 ) + COALESCE ( + + 39, - 2 - - 40, - 36 * + + NULLIF ( - + 61, COUNT ( ALL + 12 ) + - 37 ) ) + - 52 * 69 ) col1
----
82

query I rowsort
SELECT ALL + ( 26 ) * 70 + - 77 + 83 + - 87
----
1739

query I rowsort
SELECT + 58 * - 12 col2
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT ALL + NULLIF ( - COUNT( * ), - + ( + 69 ) + - - COUNT( * ) * COALESCE ( + 63, COUNT( * ) ) - + 81 * - 82 * + 53 * 33 + - 27 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6849
SELECT ALL + NULLIF ( - COUNT ( * ), - + ( + 69 ) + - - COUNT ( * ) * COALESCE ( + 63, COUNT ( * ) ) - + 81 * - 82 * + 53 * 33 + - 27 ) AS col0
----
-1

query II rowsort
SELECT ALL + 85, 88 AS col2
----
85
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6851
SELECT ALL - 1 * - + 45 DIV + - 34 + - 85
----
-86

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL - 1 * - + 45 / + - 34 + - 85
----
-86

query I rowsort
SELECT + 28 * - ( - + 4 ) col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT CASE - - 6 WHEN - COALESCE ( - NULLIF ( - COUNT( * ), 88 ), - + 23, + + 83 ) THEN + - 92 - - 11 ELSE - + ( 62 ) * 40 END
----
-2480

skipif mysql # not compatible
query I rowsort label-6853
SELECT CASE - - 6 WHEN - COALESCE ( - NULLIF ( - COUNT ( * ), 88 ), - + 23, + + 83 ) THEN + - 92 - - 11 ELSE - + ( 62 ) * 40 END
----
-2480

query I rowsort
SELECT ALL - 31 * + 25 - 65 AS col1
----
-840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6855
SELECT 46 * - 32 + + + ( - 63 ) + + - 34 + + 78 - CAST( NULL AS SIGNED ) * + 65 - 34 + - ( ( + 69 ) ) + - COALESCE ( - 52, 21 * COUNT( * ) ) + + 69 * 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6855
SELECT 46 * - 32 + + + ( - 63 ) + + - 34 + + 78 - CAST ( NULL AS INTEGER ) * + 65 - 34 + - ( ( + 69 ) ) + - COALESCE ( - 52, 21 * COUNT ( * ) ) + + 69 * 46 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6856
SELECT + - COUNT( * ) DIV - 12 * - CAST( - - 76 AS SIGNED ) + ( + 34 ) AS col0, 63 AS col1
----
34
63

skipif mysql # not compatible
query II rowsort label-6856
SELECT + - COUNT ( * ) / - 12 * - CAST ( - - 76 AS INTEGER ) + ( + 34 ) AS col0, 63 AS col1
----
34
63

query I rowsort
SELECT + - 30 * 87 * 89 AS col1
----
-232290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6858
SELECT + + CAST( NULL AS SIGNED ) * + 88 * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-6858
SELECT + + CAST ( NULL AS INTEGER ) * + 88 * + 62
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6859
SELECT DISTINCT 64 DIV 80 * - 78 * + 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6859
SELECT DISTINCT 64 / 80 * - 78 * + 73 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6860
SELECT - 8 * - 54 + - 24 + + 17 + 14 DIV - - 39
----
425

skipif mysql # not compatible
query I rowsort label-6860
SELECT - 8 * - 54 + - 24 + + 17 + 14 / - - 39
----
425

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT ALL + COUNT( DISTINCT - 84 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL + COUNT ( DISTINCT - 84 ) AS col0
----
1

query I rowsort
SELECT + - 80 + + NULLIF ( + 23, - 73 + 75 * ( + - 37 ) )
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-6863
SELECT ALL + 71, - 51 * + 40 + + COUNT( 26 ) * + 34 + + 20 col0
----
71
-1986

skipif mysql # not compatible
query II rowsort label-6863
SELECT ALL + 71, - 51 * + 40 + + COUNT ( 26 ) * + 34 + + 20 col0
----
71
-1986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6864
SELECT + CAST( - 87 AS SIGNED ) + + - MAX( 53 ) AS col2
----
-140

skipif mysql # not compatible
query I rowsort label-6864
SELECT + CAST ( - 87 AS INTEGER ) + + - MAX ( 53 ) AS col2
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT ALL + 94 * - NULLIF ( + 55, - COUNT( * ) ) AS col2
----
-5170

skipif mysql # not compatible
query I rowsort label-6865
SELECT ALL + 94 * - NULLIF ( + 55, - COUNT ( * ) ) AS col2
----
-5170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6866
SELECT + 74 * - + CAST( + - 12 AS SIGNED ) AS col2
----
888

skipif mysql # not compatible
query I rowsort label-6866
SELECT + 74 * - + CAST ( + - 12 AS INTEGER ) AS col2
----
888

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6867
SELECT ALL 59 AS col1, - CAST( NULL AS SIGNED ) AS col1
----
59
NULL

skipif mysql # not compatible
query II rowsort label-6867
SELECT ALL 59 AS col1, - CAST ( NULL AS INTEGER ) AS col1
----
59
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6868
SELECT ALL NULLIF ( COUNT( * ), - MIN( + CAST( - 75 AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL NULLIF ( COUNT ( * ), - MIN ( + CAST ( - 75 AS INTEGER ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT ALL - COUNT( * ) * + 41
----
-41

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL - COUNT ( * ) * + 41
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6870
SELECT + + COUNT( * ) * + CASE - - 72 WHEN - NULLIF ( + NULLIF ( - ( - AVG ( ALL 6 ) ), CASE 31 WHEN 6 THEN + 62 WHEN 87 + ( + 45 ) THEN 47 / 25 ELSE NULL END ), ( - 26 ) * - NULLIF ( 35 + 36, + COALESCE ( ( COUNT( * ) ), - CAST( NULL AS SIGNED ) * 74 ) + + COUNT( * ) ) ) THEN - 7 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6870
SELECT + + COUNT ( * ) * + CASE - - 72 WHEN - NULLIF ( + NULLIF ( - ( - AVG ( ALL 6 ) ), CASE 31 WHEN 6 THEN + 62 WHEN 87 + ( + 45 ) THEN 47 / 25 ELSE NULL END ), ( - 26 ) * - NULLIF ( 35 + 36, + COALESCE ( ( COUNT ( * ) ), - CAST ( NULL AS INTEGER ) * 74 ) + + COUNT ( * ) ) ) THEN - 7 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - + 23 * - 77 - + 90
----
1681

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT - + 65 + - 54 - + + 71 - 78 + 75 * + - COUNT( * ) AS col1
----
-343

skipif mysql # not compatible
query I rowsort label-6872
SELECT - + 65 + - 54 - + + 71 - 78 + 75 * + - COUNT ( * ) AS col1
----
-343

query II rowsort
SELECT ALL + 17 AS col0, 55 + - 67
----
17
-12

query I rowsort
SELECT - - 4 + 73
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-6875
SELECT ALL - 78 DIV + ( - + 98 ) AS col1, - 3 * + 81 + + 76 * 38 AS col1
----
0
2645

skipif mysql # not compatible
query II rowsort label-6875
SELECT ALL - 78 / + ( - + 98 ) AS col1, - 3 * + 81 + + 76 * 38 AS col1
----
0
2645

onlyif mysql # DIV for integer division: 
query II rowsort label-6876
SELECT ALL - 6 + - 6 AS col2, - 99 DIV - 94 AS col2
----
-12
1

skipif mysql # not compatible
query II rowsort label-6876
SELECT ALL - 6 + - 6 AS col2, - 99 / - 94 AS col2
----
-12
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6877
SELECT ALL + 51 + + CAST( NULL AS SIGNED ) + + 37 + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL + 51 + + CAST ( NULL AS INTEGER ) + + 37 + + 93
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6878
SELECT ALL + 6 + 82 * - + NULLIF ( - CAST( NULL AS DECIMAL ), + - 46 ) * + + 21 * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL + 6 + 82 * - + NULLIF ( - CAST ( NULL AS REAL ), + - 46 ) * + + 21 * + 20
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6879
SELECT - 18 - 3 * CAST( NULL AS DECIMAL ) * + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6879
SELECT - 18 - 3 * CAST ( NULL AS REAL ) * + 70
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6880
SELECT DISTINCT + 33 + - 33 + + 44 + 11 DIV 92
----
44

skipif mysql # not compatible
query I rowsort label-6880
SELECT DISTINCT + 33 + - 33 + + 44 + 11 / 92
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6881
SELECT - 95 DIV COUNT( * ), - ( 22 ) AS col1
----
-95
-22

skipif mysql # not compatible
query II rowsort label-6881
SELECT - 95 / COUNT ( * ), - ( 22 ) AS col1
----
-95
-22

query II rowsort
SELECT DISTINCT - 61 * 18 AS col1, 55
----
-1098
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6883
SELECT - CAST( + COALESCE ( 49, - COUNT( * ) * + + 22 * 28 * - 47 ) AS SIGNED ) + - ( + - 67 ) - - 98
----
116

skipif mysql # not compatible
query I rowsort label-6883
SELECT - CAST ( + COALESCE ( 49, - COUNT ( * ) * + + 22 * 28 * - 47 ) AS INTEGER ) + - ( + - 67 ) - - 98
----
116

query I rowsort
SELECT + NULLIF ( + 86, - 68 - + 38 )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6885
SELECT 7 DIV - 88 + 84 * + 33
----
2772

skipif mysql # not compatible
query I rowsort label-6885
SELECT 7 / - 88 + 84 * + 33
----
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT 70 * 87 * MAX( DISTINCT + 5 ) * - 44 - - 94 col2
----
-1339706

skipif mysql # not compatible
query I rowsort label-6886
SELECT 70 * 87 * MAX ( DISTINCT + 5 ) * - 44 - - 94 col2
----
-1339706

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6887
SELECT - 38 * - ( ( - CAST( NULL AS SIGNED ) ) ) + + 54 + + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT - 38 * - ( ( - CAST ( NULL AS INTEGER ) ) ) + + 54 + + 87 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6888
SELECT DISTINCT + 74 DIV - + 66 - 29 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-6888
SELECT DISTINCT + 74 / - + 66 - 29 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT 8 * - 55 * + - CASE 52 WHEN - COUNT( 26 ) THEN NULL WHEN - COALESCE ( 32, - + COUNT( * ) * + 79 ) THEN NULL WHEN 95 THEN 45 END + 31 / + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6889
SELECT 8 * - 55 * + - CASE 52 WHEN - COUNT ( 26 ) THEN NULL WHEN - COALESCE ( 32, - + COUNT ( * ) * + 79 ) THEN NULL WHEN 95 THEN 45 END + 31 / + 11
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6890
SELECT - NULLIF ( NULLIF ( + COALESCE ( + 48, - 70 ), 50 + - + 25 * 52 * + ( - 59 ) + + CAST( NULL AS SIGNED ) ), + 43 ) DIV - 43 + 57
----
58

skipif mysql # not compatible
query I rowsort label-6890
SELECT - NULLIF ( NULLIF ( + COALESCE ( + 48, - 70 ), 50 + - + 25 * 52 * + ( - 59 ) + + CAST ( NULL AS INTEGER ) ), + 43 ) / - 43 + 57
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT - - 1 * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6891
SELECT - - 1 * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6892
SELECT - 23 DIV + + 43 - + COUNT( * ) * - NULLIF ( + 5, - 11 + 25 + + + COUNT( + 94 ) + - ( + - COALESCE ( COUNT( * ), + 39 * 58 + 85 ) ) ) * 37 col0
----
185

skipif mysql # not compatible
query I rowsort label-6892
SELECT - 23 / + + 43 - + COUNT ( * ) * - NULLIF ( + 5, - 11 + 25 + + + COUNT ( + 94 ) + - ( + - COALESCE ( COUNT ( * ), + 39 * 58 + 85 ) ) ) * 37 col0
----
185

query I rowsort
SELECT + 26 * - - 36 + 40 + + 95 - - 75 col0
----
1146

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT DISTINCT - CASE + - 75 WHEN + 44 * 99 + - 78 * - - 34 / 43 THEN + + 46 + ( - - ( - 25 ) ) + - ( + 53 ) + + 50 * 47 * + 16 WHEN MIN( ALL + 5 ) THEN NULL ELSE NULL END * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT - CASE + - 75 WHEN + 44 * 99 + - 78 * - - 34 / 43 THEN + + 46 + ( - - ( - 25 ) ) + - ( + 53 ) + + 50 * 47 * + 16 WHEN MIN ( ALL + 5 ) THEN NULL ELSE NULL END * + 30
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6895
SELECT DISTINCT - 46 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-6895
SELECT DISTINCT - 46 / + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT DISTINCT 37 * + - SUM( DISTINCT + - 67 )
----
2479

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT 37 * + - SUM ( DISTINCT + - 67 )
----
2479

query I rowsort
SELECT DISTINCT + 54 * 13 + - - 73
----
775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6898
SELECT DISTINCT + CASE + + MAX( - 28 ) WHEN CASE + - COUNT( * ) WHEN - 68 * - 24 + - 2 - 87 THEN + + 84 WHEN 84 THEN - ( + 27 ) WHEN + 50 + CASE 76 WHEN 2 THEN NULL WHEN COUNT( ALL 57 ) * + COUNT( * ) + CASE - 54 WHEN + NULLIF ( + 90, 20 / - 72 ) THEN NULL ELSE 74 + COUNT( * ) END THEN NULL WHEN 71 THEN 29 + 28 END THEN NULL END THEN + CAST( CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) * COUNT( * ) WHEN 63 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT + CASE + + MAX ( - 28 ) WHEN CASE + - COUNT ( * ) WHEN - 68 * - 24 + - 2 - 87 THEN + + 84 WHEN 84 THEN - ( + 27 ) WHEN + 50 + CASE 76 WHEN 2 THEN NULL WHEN COUNT ( ALL 57 ) * + COUNT ( * ) + CASE - 54 WHEN + NULLIF ( + 90, 20 / - 72 ) THEN NULL ELSE 74 + COUNT ( * ) END THEN NULL WHEN 71 THEN 29 + 28 END THEN NULL END THEN + CAST ( CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) * COUNT ( * ) WHEN 63 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT DISTINCT - MAX( ALL + 67 ) + - 91 AS col2
----
-158

skipif mysql # not compatible
query I rowsort label-6899
SELECT DISTINCT - MAX ( ALL + 67 ) + - 91 AS col2
----
-158

query I rowsort
SELECT ALL + 38 + 80 * 79
----
6358

query I rowsort
SELECT 2 + ( - 37 ) AS col1
----
-35

query I rowsort
SELECT DISTINCT 42 * + + 83
----
3486

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT COUNT( 38 ) * - 35 * - 51
----
1785

skipif mysql # not compatible
query I rowsort label-6903
SELECT COUNT ( 38 ) * - 35 * - 51
----
1785

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT COUNT( * ) - - ( 73 )
----
74

skipif mysql # not compatible
query I rowsort label-6904
SELECT COUNT ( * ) - - ( 73 )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6905
SELECT ALL 41 - - 47 + - - 53 * + CAST( 18 AS SIGNED )
----
1042

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL 41 - - 47 + - - 53 * + CAST ( 18 AS INTEGER )
----
1042

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT DISTINCT - ( COUNT( ALL - 3 ) ) / - CASE + CASE + 58 WHEN MAX( 0 ) + - - 0 THEN - COUNT( * ) END WHEN - + 83 * + 43 + 91 + + 62 * COUNT( * ) THEN 8 END * COUNT( * ) + COUNT( * ) * + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT - ( COUNT ( ALL - 3 ) ) / - CASE + CASE + 58 WHEN MAX ( 0 ) + - - 0 THEN - COUNT ( * ) END WHEN - + 83 * + 43 + 91 + + 62 * COUNT ( * ) THEN 8 END * COUNT ( * ) + COUNT ( * ) * + 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT DISTINCT MIN( + 79 ) - + 99 + 98
----
78

skipif mysql # not compatible
query I rowsort label-6907
SELECT DISTINCT MIN ( + 79 ) - + 99 + 98
----
78

query I rowsort
SELECT 30 * + + 80
----
2400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6909
SELECT 16 * - 70 DIV + ( COUNT( * ) ) AS col1
----
-1120

skipif mysql # not compatible
query I rowsort label-6909
SELECT 16 * - 70 / + ( COUNT ( * ) ) AS col1
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT 55 * - COUNT( * ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-6910
SELECT 55 * - COUNT ( * ) col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT ALL + + 66 * - - COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL + + 66 * - - COUNT ( * ) AS col2
----
66

query I rowsort
SELECT - 7 - - 40 AS col1
----
33

query I rowsort
SELECT ALL - + 53 * 98 + 1 * 79
----
-5115

query I rowsort
SELECT ALL - - ( + 44 ) AS col1
----
44

query II rowsort
SELECT ALL - 31, - 25 col1
----
-31
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT - 3 * + 70 * 77 + + 32 + + + SUM( - - 62 ) + + COUNT( DISTINCT - 41 ) * + COALESCE ( - - 11, + + 67, + 31 ) * + 25 * + 48 AS col0
----
-2876

skipif mysql # not compatible
query I rowsort label-6916
SELECT - 3 * + 70 * 77 + + 32 + + + SUM ( - - 62 ) + + COUNT ( DISTINCT - 41 ) * + COALESCE ( - - 11, + + 67, + 31 ) * + 25 * + 48 AS col0
----
-2876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6917
SELECT - CAST( - COUNT( * ) AS SIGNED ) * - MAX( ALL - 13 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-6917
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * - MAX ( ALL - 13 ) AS col0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6918
SELECT 10 DIV - 62 + - 91 col1
----
-91

skipif mysql # not compatible
query I rowsort label-6918
SELECT 10 / - 62 + - 91 col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6919
SELECT + 44, + CAST( NULL AS SIGNED ) + - ( + - COUNT( * ) ) * 83 AS col2
----
44
NULL

skipif mysql # not compatible
query II rowsort label-6919
SELECT + 44, + CAST ( NULL AS INTEGER ) + - ( + - COUNT ( * ) ) * 83 AS col2
----
44
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6920
SELECT COUNT( * ) + - 1 + - COUNT( * ) AS col1, + 77 + - 13 * - 80
----
-1
1117

skipif mysql # not compatible
query II rowsort label-6920
SELECT COUNT ( * ) + - 1 + - COUNT ( * ) AS col1, + 77 + - 13 * - 80
----
-1
1117

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT + + CASE - - COALESCE ( + - 24, - 99 ) WHEN 14 + NULLIF ( + 25, - 73 * + COUNT( * ) + - + COUNT( * ) / - - 8 * 24 ) THEN NULL ELSE - - COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6921
SELECT + + CASE - - COALESCE ( + - 24, - 99 ) WHEN 14 + NULLIF ( + 25, - 73 * + COUNT ( * ) + - + COUNT ( * ) / - - 8 * 24 ) THEN NULL ELSE - - COUNT ( * ) END AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6922
SELECT CASE + 58 WHEN + 23 + + 27 * - + 50 * - 33 / 5 + - - NULLIF ( - - 34, - CAST( + CASE 16 WHEN + + 98 THEN NULL WHEN 48 THEN NULL WHEN - 4 THEN + 43 + - 75 / COUNT( * ) END AS SIGNED ) ) * 28 THEN 72 / 15 + 15 ELSE NULL END / 57
----
NULL

skipif mysql # not compatible
query I rowsort label-6922
SELECT CASE + 58 WHEN + 23 + + 27 * - + 50 * - 33 / 5 + - - NULLIF ( - - 34, - CAST ( + CASE 16 WHEN + + 98 THEN NULL WHEN 48 THEN NULL WHEN - 4 THEN + 43 + - 75 / COUNT ( * ) END AS INTEGER ) ) * 28 THEN 72 / 15 + 15 ELSE NULL END / 57
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6923
SELECT ALL - - 7 + - - CAST( 42 AS SIGNED ) + - 94 - - 28 DIV 6 + 64 * - - ( + NULLIF ( - 24, COUNT( ALL - 99 ) * - - 17 ) ) * + COUNT( * )
----
-1577

skipif mysql # not compatible
query I rowsort label-6923
SELECT ALL - - 7 + - - CAST ( 42 AS INTEGER ) + - 94 - - 28 / 6 + 64 * - - ( + NULLIF ( - 24, COUNT ( ALL - 99 ) * - - 17 ) ) * + COUNT ( * )
----
-1577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6924
SELECT - CAST( NULL AS SIGNED ) AS col0, - COUNT( * ) * + COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-6924
SELECT - CAST ( NULL AS INTEGER ) AS col0, - COUNT ( * ) * + COUNT ( * ) AS col1
----
NULL
-1

query I rowsort
SELECT ALL - 2 + 78
----
76

query I rowsort
SELECT 5 + 85 * - 0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6927
SELECT DISTINCT 1 + + CASE + - 19 WHEN 85 * + CAST( - COUNT( * ) AS SIGNED ) - 18 - + - 79 THEN 6 * 49 + - 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT 1 + + CASE + - 19 WHEN 85 * + CAST ( - COUNT ( * ) AS INTEGER ) - 18 - + - 79 THEN 6 * 49 + - 27 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6928
SELECT SUM( 14 ) * + CAST( - 71 AS SIGNED ) AS col2
----
-994

skipif mysql # not compatible
query I rowsort label-6928
SELECT SUM ( 14 ) * + CAST ( - 71 AS INTEGER ) AS col2
----
-994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6929
SELECT ALL 36 - - SUM( 36 ) + - COALESCE ( MAX( - 65 ), - CAST( NULL AS SIGNED ) DIV + ( + COUNT( * ) ) * - 70 + + 74 + + COUNT( * ) - 44 DIV + - 18 * COUNT( * ) - - 8 * ( - 94 * - ( 39 ) ) )
----
137

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL 36 - - SUM ( 36 ) + - COALESCE ( MAX ( - 65 ), - CAST ( NULL AS INTEGER ) / + ( + COUNT ( * ) ) * - 70 + + 74 + + COUNT ( * ) - 44 / + - 18 * COUNT ( * ) - - 8 * ( - 94 * - ( 39 ) ) )
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT 1 + + COUNT( DISTINCT - 89 )
----
2

skipif mysql # not compatible
query I rowsort label-6930
SELECT 1 + + COUNT ( DISTINCT - 89 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT DISTINCT - 7 - CASE - - 7 WHEN - 25 + - 78 THEN NULL WHEN - COUNT( * ) * - ( - 37 ) THEN NULL ELSE - COALESCE ( + - 84, - 69 * SUM( ALL + 69 ) + - - 95 + 58, 47 + 12 ) * - 40 END + - 23 * + 59 * - 90 AS col1
----
125483

skipif mysql # not compatible
query I rowsort label-6931
SELECT DISTINCT - 7 - CASE - - 7 WHEN - 25 + - 78 THEN NULL WHEN - COUNT ( * ) * - ( - 37 ) THEN NULL ELSE - COALESCE ( + - 84, - 69 * SUM ( ALL + 69 ) + - - 95 + 58, 47 + 12 ) * - 40 END + - 23 * + 59 * - 90 AS col1
----
125483

query I rowsort
SELECT ALL 0 - - + 80 * + 95
----
7600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6933
SELECT ALL + CAST( 81 AS SIGNED ) - 78 + - COUNT( * ) * - 30 + - - MIN( + 41 ) * - - CASE - - 97 WHEN - 92 * - 27 THEN 94 / - - 98 WHEN + 80 THEN - 15 ELSE NULL END * - 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL + CAST ( 81 AS INTEGER ) - 78 + - COUNT ( * ) * - 30 + - - MIN ( + 41 ) * - - CASE - - 97 WHEN - 92 * - 27 THEN 94 / - - 98 WHEN + 80 THEN - 15 ELSE NULL END * - 14 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6934
SELECT COALESCE ( 90, - + 92 ) * + ( + + CAST( NULL AS SIGNED ) ), 10 AS col1
----
NULL
10

skipif mysql # not compatible
query II rowsort label-6934
SELECT COALESCE ( 90, - + 92 ) * + ( + + CAST ( NULL AS INTEGER ) ), 10 AS col1
----
NULL
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT COUNT( * ) * - 57 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-6935
SELECT COUNT ( * ) * - 57 AS col2
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-6936
SELECT - 30 DIV - 57 + - 70
----
-70

skipif mysql # not compatible
query I rowsort label-6936
SELECT - 30 / - 57 + - 70
----
-70

query I rowsort
SELECT DISTINCT - ( + + 49 ) AS col2
----
-49

query I rowsort
SELECT + 32 * + 23 + - 16 + 40
----
760

onlyif mysql # DIV for integer division: 
query I rowsort label-6939
SELECT ALL + 7 DIV 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL + 7 / 39 AS col2
----
0

query I rowsort
SELECT + NULLIF ( + 74, + 85 ) * + 65 * - 21 AS col1
----
-101010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6941
SELECT ALL 59 * - 90 + - 32 + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) + 83 * - 25 * + + 14 * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL 59 * - 90 + - 32 + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 83 * - 25 * + + 14 * 7
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6942
SELECT - 98 DIV + 4, + ( 17 ) * + + COUNT( * ) + + COUNT( * ) AS col2
----
-24
18

skipif mysql # not compatible
query II rowsort label-6942
SELECT - 98 / + 4, + ( 17 ) * + + COUNT ( * ) + + COUNT ( * ) AS col2
----
-24
18

onlyif mysql # aggregate syntax: 
query II rowsort label-6943
SELECT + MAX( 80 ), - 95 + + ( - 37 ) AS col1
----
80
-132

skipif mysql # not compatible
query II rowsort label-6943
SELECT + MAX ( 80 ), - 95 + + ( - 37 ) AS col1
----
80
-132

query I rowsort
SELECT - 81 + 26 + - 51 * - CASE + 25 WHEN - 48 - 76 + + ( - 50 ) + - + 81 * 76 THEN NULL WHEN - 72 THEN - ( - + 25 ) + - 95 END + 19 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT DISTINCT + COUNT( * ) * + 69
----
69

skipif mysql # not compatible
query I rowsort label-6945
SELECT DISTINCT + COUNT ( * ) * + 69
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6946
SELECT DISTINCT + 24 * 0 * - - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + - ( 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT + 24 * 0 * - - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + - ( 45 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6947
SELECT ALL - 22 * + - ( + 82 ) * + CASE - + CAST( 15 AS SIGNED ) WHEN 98 THEN NULL WHEN + + 47 * + - 57 + 98 + NULLIF ( COUNT( * ), + + 39 ) * - COUNT( * ) * 43 THEN 34 + 0 * + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL - 22 * + - ( + 82 ) * + CASE - + CAST ( 15 AS INTEGER ) WHEN 98 THEN NULL WHEN + + 47 * + - 57 + 98 + NULLIF ( COUNT ( * ), + + 39 ) * - COUNT ( * ) * 43 THEN 34 + 0 * + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 67 * + - NULLIF ( + 43, 73 ) + - 71
----
-2952

query II rowsort
SELECT ALL - - 71 + 68, 24 AS col2
----
139
24

query I rowsort
SELECT ALL + - 44 col2
----
-44

query I rowsort
SELECT - 14 * + - 85 AS col1
----
1190

query II rowsort
SELECT + 63 AS col1, + 63 AS col1
----
63
63

query I rowsort
SELECT DISTINCT + 74 + + + 64 AS col1
----
138

query I rowsort
SELECT + 48 * + + 99 AS col1
----
4752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6955
SELECT ALL + COUNT( * ) * - - CAST( + 44 AS SIGNED ) * - 11 AS col2
----
-484

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL + COUNT ( * ) * - - CAST ( + 44 AS INTEGER ) * - 11 AS col2
----
-484

query I rowsort
SELECT - 60 + + 95
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT DISTINCT MAX( DISTINCT + 49 ) col0
----
49

skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT MAX ( DISTINCT + 49 ) col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT DISTINCT ( - COALESCE ( + + 62, + COUNT( * ), + 55 ) ) * 14
----
-868

skipif mysql # not compatible
query I rowsort label-6958
SELECT DISTINCT ( - COALESCE ( + + 62, + COUNT ( * ), + 55 ) ) * 14
----
-868

onlyif mysql # aggregate syntax: 
query II rowsort label-6959
SELECT 43 AS col2, COUNT( * ) col2
----
43
1

skipif mysql # not compatible
query II rowsort label-6959
SELECT 43 AS col2, COUNT ( * ) col2
----
43
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT DISTINCT COALESCE ( + + COUNT( * ), - + MIN( DISTINCT - 11 ) * + - 7 + - 52 * - + 91 )
----
1

skipif mysql # not compatible
query I rowsort label-6960
SELECT DISTINCT COALESCE ( + + COUNT ( * ), - + MIN ( DISTINCT - 11 ) * + - 7 + - 52 * - + 91 )
----
1

query I rowsort
SELECT ALL + 48 * + 60
----
2880

query I rowsort
SELECT ALL COALESCE ( - 12, + - 95 )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6963
SELECT DISTINCT + COUNT( * ) * 4 * CAST( - ( 5 ) AS SIGNED ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT + COUNT ( * ) * 4 * CAST ( - ( 5 ) AS INTEGER ) AS col0
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6964
SELECT - 59 + - COALESCE ( + - 14, + 63 * + - 65 + - 51 - 32, + 25 DIV - 47 * - COUNT( * ) + + - 64 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-6964
SELECT - 59 + - COALESCE ( + - 14, + 63 * + - 65 + - 51 - 32, + 25 / - 47 * - COUNT ( * ) + + - 64 ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT + MIN( 42 ) - + 62
----
-20

skipif mysql # not compatible
query I rowsort label-6965
SELECT + MIN ( 42 ) - + 62
----
-20

query I rowsort
SELECT - 76 * + + 59 * - - 6 AS col0
----
-26904

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6967
SELECT + CASE + 57 WHEN COUNT( * ) THEN - - NULLIF ( + + 8, - - COUNT( + NULLIF ( - 41, - 13 ) ) ) WHEN - 40 THEN NULL WHEN 34 THEN + 78 ELSE + 50 DIV ( - 70 ) - 17 END + 66 DIV + ( 79 - 19 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-6967
SELECT + CASE + 57 WHEN COUNT ( * ) THEN - - NULLIF ( + + 8, - - COUNT ( + NULLIF ( - 41, - 13 ) ) ) WHEN - 40 THEN NULL WHEN 34 THEN + 78 ELSE + 50 / ( - 70 ) - 17 END + 66 / + ( 79 - 19 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-6968
SELECT ALL 48 AS col1, NULLIF ( - CASE + 31 WHEN 89 * + - ( 8 ) * - 0 + + + NULLIF ( + + 68, - 19 ) THEN NULL ELSE - 76 END, - NULLIF ( - 78, - MIN( DISTINCT + 90 ) - + COALESCE ( 74, + ( + COALESCE ( + 77, 22 * COUNT( * ) + - CASE AVG ( DISTINCT - 17 ) WHEN 54 - - 33 / 99 THEN NULL WHEN MIN( DISTINCT 18 ) THEN + 75 * 48 END, + 55 ) ) ) ) + + 74 ) AS col2
----
48
76

skipif mysql # not compatible
query II rowsort label-6968
SELECT ALL 48 AS col1, NULLIF ( - CASE + 31 WHEN 89 * + - ( 8 ) * - 0 + + + NULLIF ( + + 68, - 19 ) THEN NULL ELSE - 76 END, - NULLIF ( - 78, - MIN ( DISTINCT + 90 ) - + COALESCE ( 74, + ( + COALESCE ( + 77, 22 * COUNT ( * ) + - CASE AVG ( DISTINCT - 17 ) WHEN 54 - - 33 / 99 THEN NULL WHEN MIN ( DISTINCT 18 ) THEN + 75 * 48 END, + 55 ) ) ) ) + + 74 ) AS col2
----
48
76

query I rowsort
SELECT - 52 * - 79
----
4108

onlyif mysql # DIV for integer division: 
query I rowsort label-6970
SELECT + 34 DIV 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6970
SELECT + 34 / 71 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6971
SELECT ALL 40 DIV + + 91
----
0

skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL 40 / + + 91
----
0

query I rowsort
SELECT + 46 * + 86
----
3956

query I rowsort
SELECT + 22 * - 89
----
-1958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6974
SELECT ALL MIN( 16 ) + + 89 AS col1, CAST( NULL AS SIGNED ) AS col1
----
105
NULL

skipif mysql # not compatible
query II rowsort label-6974
SELECT ALL MIN ( 16 ) + + 89 AS col1, CAST ( NULL AS INTEGER ) AS col1
----
105
NULL

query I rowsort
SELECT DISTINCT 60 * - + 67 * - ( + ( - COALESCE ( + 6, 52 ) ) ) + + 81
----
-24039

query I rowsort
SELECT ALL 99 + + 25
----
124

query I rowsort
SELECT + - 61 * - 48
----
2928

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT + SUM( + - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-6978
SELECT + SUM ( + - 97 )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6979
SELECT DISTINCT - 17 * CAST( + COALESCE ( - 37, - MAX( ALL - 18 ), - + 63 ) AS SIGNED ) * - - COUNT( * ) * - 46
----
-28934

skipif mysql # not compatible
query I rowsort label-6979
SELECT DISTINCT - 17 * CAST ( + COALESCE ( - 37, - MAX ( ALL - 18 ), - + 63 ) AS INTEGER ) * - - COUNT ( * ) * - 46
----
-28934

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT - + COUNT( * ) * - 38 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-6980
SELECT - + COUNT ( * ) * - 38 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT ALL - 48 * 72 + + 99 + - - 19 + + 53 * + COALESCE ( - COUNT( * ), 72, + + 5 + - 90 )
----
-3391

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL - 48 * 72 + + 99 + - - 19 + + 53 * + COALESCE ( - COUNT ( * ), 72, + + 5 + - 90 )
----
-3391

query I rowsort
SELECT 20 * + 76 * - 57 - + 97 col0
----
-86737

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT ALL 15 * ( - 49 ) + - - COALESCE ( 80, 59 + + NULLIF ( + 0, - 35 * COUNT( * ) ) )
----
-655

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL 15 * ( - 49 ) + - - COALESCE ( 80, 59 + + NULLIF ( + 0, - 35 * COUNT ( * ) ) )
----
-655

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6984
SELECT + COUNT( * ) DIV + 37 col2
----
0

skipif mysql # not compatible
query I rowsort label-6984
SELECT + COUNT ( * ) / + 37 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT + 41 * 44 * + MIN( 97 )
----
174988

skipif mysql # not compatible
query I rowsort label-6985
SELECT + 41 * 44 * + MIN ( 97 )
----
174988

query I rowsort
SELECT ALL 40 * - 64 + - 70 col0
----
-2630

query I rowsort
SELECT ALL + - ( 52 ) col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT + - 68 * + ( COUNT( * ) ) * - - 97 + 83 + + 94 * + ( + + 90 ) + - 26 * + 88
----
-341

skipif mysql # not compatible
query I rowsort label-6988
SELECT + - 68 * + ( COUNT ( * ) ) * - - 97 + 83 + + 94 * + ( + + 90 ) + - 26 * + 88
----
-341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6989
SELECT + - 48 * + 47 + - 69 + - CAST( + + ( + COUNT( * ) ) AS SIGNED ) + 79 * - 90 AS col2
----
-9436

skipif mysql # not compatible
query I rowsort label-6989
SELECT + - 48 * + 47 + - 69 + - CAST ( + + ( + COUNT ( * ) ) AS INTEGER ) + 79 * - 90 AS col2
----
-9436

query II rowsort
SELECT ALL + + 62 * - 61 - 8, + 18 AS col2
----
-3790
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6991
SELECT + 42 + ( + COUNT( * ) ) DIV 2 + - + COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-6991
SELECT + 42 + ( + COUNT ( * ) ) / 2 + - + COUNT ( * ) AS col2
----
41

query I rowsort
SELECT - 48 * - 69 col0
----
3312

query I rowsort
SELECT ALL + 61 * + 15
----
915

query I rowsort
SELECT - 19 + + - 95 AS col1
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6995
SELECT ALL 17 * - CASE - 15 WHEN - + 5 THEN NULL WHEN + - 23 THEN - - 43 ELSE 59 - - CASE + - 10 WHEN + 89 * + ( 52 ) / 50 THEN - 60 + - CAST( + 61 AS SIGNED ) + - 1 * 88 * ( + 79 / 11 + 36 ) END * + 89 END - - COALESCE ( 90 + 24, - 9, 19 - + 28 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL 17 * - CASE - 15 WHEN - + 5 THEN NULL WHEN + - 23 THEN - - 43 ELSE 59 - - CASE + - 10 WHEN + 89 * + ( 52 ) / 50 THEN - 60 + - CAST ( + 61 AS INTEGER ) + - 1 * 88 * ( + 79 / 11 + 36 ) END * + 89 END - - COALESCE ( 90 + 24, - 9, 19 - + 28 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT 61 * - 69 * 52 + 6 + - - COUNT( * ) + 13 AS col2
----
-218848

skipif mysql # not compatible
query I rowsort label-6996
SELECT 61 * - 69 * 52 + 6 + - - COUNT ( * ) + 13 AS col2
----
-218848

query I rowsort
SELECT ALL COALESCE ( + 10, + 41, 88 ) AS col1
----
10

query I rowsort
SELECT - 89 * + 56 * - 78 AS col1
----
388752

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT COUNT( + 94 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6999
SELECT COUNT ( + 94 ) AS col2
----
1

query I rowsort
SELECT - 65 + + 8
----
-57

query II rowsort
SELECT - 38, + 54 * + 13 AS col2
----
-38
702

query I rowsort
SELECT - COALESCE ( + + 20, + + 10 ) + - - 25
----
5

query II rowsort
SELECT - 53 * + - 36 AS col1, - 2 + 70
----
1908
68

query I rowsort
SELECT - 70 + - + 81 AS col1
----
-151

query I rowsort
SELECT ALL ( - - 8 ) AS col1
----
8

query I rowsort
SELECT DISTINCT ( - 18 ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT ALL 34 + MIN( + COALESCE ( + 76, - NULLIF ( + 96, 57 ) ) ) * - ( 59 )
----
-4450

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL 34 + MIN ( + COALESCE ( + 76, - NULLIF ( + 96, 57 ) ) ) * - ( 59 )
----
-4450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7008
SELECT ALL + 54 + 91 + + - CASE 40 WHEN 86 THEN CAST( + COALESCE ( COUNT( * ), + 42, - ( - 99 ) + + 88 + 72 * + COALESCE ( - - COALESCE ( + + 59, + 71 + NULLIF ( - 80 - ( + NULLIF ( CAST( NULL AS SIGNED ), - 18 ) ), + CAST( 85 AS SIGNED ) + + COUNT( * ) ), 38 * NULLIF ( CASE + 9 WHEN 76 THEN NULL WHEN + 68 THEN 56 END, 51 + 35 ) ), - 19 ) * COALESCE ( 32, + 55, + 50 ) ) AS DECIMAL ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL + 54 + 91 + + - CASE 40 WHEN 86 THEN CAST ( + COALESCE ( COUNT ( * ), + 42, - ( - 99 ) + + 88 + 72 * + COALESCE ( - - COALESCE ( + + 59, + 71 + NULLIF ( - 80 - ( + NULLIF ( CAST ( NULL AS INTEGER ), - 18 ) ), + CAST ( 85 AS INTEGER ) + + COUNT ( * ) ), 38 * NULLIF ( CASE + 9 WHEN 76 THEN NULL WHEN + 68 THEN 56 END, 51 + 35 ) ), - 19 ) * COALESCE ( 32, + 55, + 50 ) ) AS REAL ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 5 + + + 83 * - 57
----
-4726

query I rowsort
SELECT + - 85 - + 70 * - 43 + - 87 col0
----
2838

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT + + COUNT( * ) + 16 * 0
----
1

skipif mysql # not compatible
query I rowsort label-7011
SELECT + + COUNT ( * ) + 16 * 0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT - ( 98 ) + - COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-7012
SELECT - ( 98 ) + - COUNT ( * )
----
-99

query I rowsort
SELECT - 89 + 87 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7014
SELECT ALL - - 33 col1, + COUNT( * ) AS col1
----
33
1

skipif mysql # not compatible
query II rowsort label-7014
SELECT ALL - - 33 col1, + COUNT ( * ) AS col1
----
33
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT - COALESCE ( 45, - - 95 * 24 ) + - COUNT( * ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-7015
SELECT - COALESCE ( 45, - - 95 * 24 ) + - COUNT ( * ) AS col0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7016
SELECT ALL + - COUNT( CAST( NULL AS SIGNED ) ) + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL + - COUNT ( CAST ( NULL AS INTEGER ) ) + COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7017
SELECT ALL - - 77 AS col1, 48 * - COUNT( * ) AS col1
----
77
-48

skipif mysql # not compatible
query II rowsort label-7017
SELECT ALL - - 77 AS col1, 48 * - COUNT ( * ) AS col1
----
77
-48

onlyif mysql # aggregate syntax: 
query III rowsort label-7018
SELECT DISTINCT - 39 AS col0, 29 * + ( COUNT( * ) ) AS col0, 10
----
-39
29
10

skipif mysql # not compatible
query III rowsort label-7018
SELECT DISTINCT - 39 AS col0, 29 * + ( COUNT ( * ) ) AS col0, 10
----
-39
29
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT DISTINCT - ( + NULLIF ( 62, 77 * + + ( - COUNT( * ) ) + + 94 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-7019
SELECT DISTINCT - ( + NULLIF ( 62, 77 * + + ( - COUNT ( * ) ) + + 94 ) )
----
-62

query I rowsort
SELECT DISTINCT 4 - ( 11 )
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-7021
SELECT - 96 DIV + 92 + - + 72 + - + 49 DIV + + 84
----
-73

skipif mysql # not compatible
query I rowsort label-7021
SELECT - 96 / + 92 + - + 72 + - + 49 / + + 84
----
-73

query I rowsort
SELECT ALL ( 57 ) - + 63
----
-6

query I rowsort
SELECT + 66 + + 79 + 30 + - CASE - 24 WHEN + CASE + 46 WHEN 80 THEN - 33 ELSE NULL END * - + 65 - + 10 THEN - 18 WHEN AVG ( + 10 ) + 73 THEN 18 * 40 WHEN 91 THEN 3 END AS col0
----
NULL

query I rowsort
SELECT 67 * + 90
----
6030

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT - 75 * ( - 1 ) * + NULLIF ( - - 44, + + 45 * COUNT( * ) ) + COUNT( * ) * - + 45 AS col2
----
3255

skipif mysql # not compatible
query I rowsort label-7025
SELECT - 75 * ( - 1 ) * + NULLIF ( - - 44, + + 45 * COUNT ( * ) ) + COUNT ( * ) * - + 45 AS col2
----
3255

onlyif mysql # aggregate syntax: 
query II rowsort label-7026
SELECT DISTINCT COUNT( * ) * 39, 64 + - + COUNT( * ) + 70 AS col2
----
39
133

skipif mysql # not compatible
query II rowsort label-7026
SELECT DISTINCT COUNT ( * ) * 39, 64 + - + COUNT ( * ) + 70 AS col2
----
39
133

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT ALL 25 - - + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL 25 - - + COUNT ( * )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7028
SELECT 11 * - COUNT( * ) DIV - ( + 77 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-7028
SELECT 11 * - COUNT ( * ) / - ( + 77 ) col2
----
0

query I rowsort
SELECT DISTINCT 42 * + 54 AS col0
----
2268

query I rowsort
SELECT 49 * 1 * + - 43
----
-2107

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7031
SELECT 55 DIV - 16, + ( - COUNT( * ) ) AS col2
----
-3
-1

skipif mysql # not compatible
query II rowsort label-7031
SELECT 55 / - 16, + ( - COUNT ( * ) ) AS col2
----
-3
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7032
SELECT ALL - ( + 30 ) + + NULLIF ( NULLIF ( 79, + + COUNT( * ) ), + 23 - - - 31 + - CAST( + NULLIF ( + 28, + + 42 ) AS SIGNED ) * - 84 * 67 ) - + ( 79 ) + + 16
----
-14

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL - ( + 30 ) + + NULLIF ( NULLIF ( 79, + + COUNT ( * ) ), + 23 - - - 31 + - CAST ( + NULLIF ( + 28, + + 42 ) AS INTEGER ) * - 84 * 67 ) - + ( 79 ) + + 16
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7033
SELECT CAST( NULL AS SIGNED ) - 32 + 21 * - COUNT( * ) + + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT CAST ( NULL AS INTEGER ) - 32 + 21 * - COUNT ( * ) + + + 64
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7034
SELECT NULLIF ( - - COALESCE ( + - CASE + + CAST( 79 AS DECIMAL ) WHEN + 34 * + 41 + - - CASE + 62 WHEN + 54 THEN + 10 * 46 * + - 96 - - 15 + + + MIN( 12 ) + - + 30 * 81 END + - 84 * + CAST( NULL AS SIGNED ) THEN NULL ELSE - COUNT( - 61 ) DIV 90 + 30 DIV 43 END, - 13 ), - 44 ) - - COALESCE ( - 31 - 49, + ( + 13 ) * 32 ) * - SUM( 49 DIV - 4 )
----
-960

skipif mysql # not compatible
query I rowsort label-7034
SELECT NULLIF ( - - COALESCE ( + - CASE + + CAST ( 79 AS REAL ) WHEN + 34 * + 41 + - - CASE + 62 WHEN + 54 THEN + 10 * 46 * + - 96 - - 15 + + + MIN ( 12 ) + - + 30 * 81 END + - 84 * + CAST ( NULL AS INTEGER ) THEN NULL ELSE - COUNT ( - 61 ) / 90 + 30 / 43 END, - 13 ), - 44 ) - - COALESCE ( - 31 - 49, + ( + 13 ) * 32 ) * - SUM ( 49 / - 4 )
----
-960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7035
SELECT ALL COUNT( * ) + 54 DIV - + 86 * - + 3 col0
----
1

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL COUNT ( * ) + 54 / - + 86 * - + 3 col0
----
1

query I rowsort
SELECT ALL 5 + + - 29
----
-24

query I rowsort
SELECT DISTINCT CASE 15 WHEN 15 * 4 THEN - 24 WHEN 71 * + + COALESCE ( - ( + + 33 ), - 1 ) THEN 16 ELSE NULL END + - 95
----
NULL

query I rowsort
SELECT DISTINCT - 13 * - 12 * 97 * + - 6
----
-90792

query I rowsort
SELECT 54 + 15
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT ALL + - 40 + COUNT( * ) + - - 82 + COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL + - 40 + COUNT ( * ) + - - 82 + COUNT ( * ) AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7041
SELECT 3 * + - COALESCE ( + - 26, - 77 * ( MAX( - 93 ) ) DIV - COUNT( DISTINCT + CAST( - 38 AS DECIMAL ) ) + - 79 * + - 46 * - CAST( - 37 AS SIGNED ) * + 86 + + 84, + NULLIF ( + 94, + COUNT( + 12 ) ) ) + 57 AS col0
----
135

skipif mysql # not compatible
query I rowsort label-7041
SELECT 3 * + - COALESCE ( + - 26, - 77 * ( MAX ( - 93 ) ) / - COUNT ( DISTINCT + CAST ( - 38 AS REAL ) ) + - 79 * + - 46 * - CAST ( - 37 AS INTEGER ) * + 86 + + 84, + NULLIF ( + 94, + COUNT ( + 12 ) ) ) + 57 AS col0
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-7042
SELECT 33 DIV + + 84 + + 58 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-7042
SELECT 33 / + + 84 + + 58 AS col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7043
SELECT ALL - COUNT( * ) * - + ( - 40 ) AS col1, COUNT( - 4 ) * + - 68
----
-40
-68

skipif mysql # not compatible
query II rowsort label-7043
SELECT ALL - COUNT ( * ) * - + ( - 40 ) AS col1, COUNT ( - 4 ) * + - 68
----
-40
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7044
SELECT + ( - 49 ) AS col2, MIN( - 85 ) DIV - - COUNT( * ), - 49 DIV + 86 * + 65 - + 54 * 16 AS col1
----
-49
-85
-864

skipif mysql # not compatible
query III rowsort label-7044
SELECT + ( - 49 ) AS col2, MIN ( - 85 ) / - - COUNT ( * ), - 49 / + 86 * + 65 - + 54 * 16 AS col1
----
-49
-85
-864

query I rowsort
SELECT ALL - + 60 * - 34
----
2040

query II rowsort
SELECT ALL - - 35 * - 89 AS col0, 55
----
-3115
55

onlyif mysql # DIV for integer division: 
query I rowsort label-7047
SELECT + + 47 DIV - 56 + - + ( - + 34 ) - + 37 - - COALESCE ( - 13, + + COALESCE ( + + 33, - + COALESCE ( + - 28, - ( + NULLIF ( + 41, - + 56 * 93 ) ) * 33 ) + + 82 ) ) * - 29 + 89
----
463

skipif mysql # not compatible
query I rowsort label-7047
SELECT + + 47 / - 56 + - + ( - + 34 ) - + 37 - - COALESCE ( - 13, + + COALESCE ( + + 33, - + COALESCE ( + - 28, - ( + NULLIF ( + 41, - + 56 * 93 ) ) * 33 ) + + 82 ) ) * - 29 + 89
----
463

query II rowsort
SELECT ALL - + 85 * - + 27 AS col2, 57 AS col0
----
2295
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT - 80 * + + COUNT( + - ( + 88 ) ) * - + 12 * + 76 AS col2
----
72960

skipif mysql # not compatible
query I rowsort label-7049
SELECT - 80 * + + COUNT ( + - ( + 88 ) ) * - + 12 * + 76 AS col2
----
72960

query II rowsort
SELECT + 59 * + 56 AS col0, 26
----
3304
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT 82 - + 62 + 88 - ( COUNT( * ) ) + - - COUNT( * ) * - + COUNT( * ) - - - COUNT( * ) + NULLIF ( + + COUNT( * ), 75 ) + - COUNT( * ) / ( + 63 ) * + CASE - 11 WHEN + 37 THEN NULL WHEN 28 THEN + 43 * - COUNT( * ) ELSE NULL END * - 25 - 75 * 59 / + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7051
SELECT 82 - + 62 + 88 - ( COUNT ( * ) ) + - - COUNT ( * ) * - + COUNT ( * ) - - - COUNT ( * ) + NULLIF ( + + COUNT ( * ), 75 ) + - COUNT ( * ) / ( + 63 ) * + CASE - 11 WHEN + 37 THEN NULL WHEN 28 THEN + 43 * - COUNT ( * ) ELSE NULL END * - 25 - 75 * 59 / + 31
----
NULL

query I rowsort
SELECT + 73 * + 39
----
2847

onlyif mysql # DIV for integer division: 
query II rowsort label-7053
SELECT ALL - 49, 52 DIV - 10 AS col1
----
-49
-5

skipif mysql # not compatible
query II rowsort label-7053
SELECT ALL - 49, 52 / - 10 AS col1
----
-49
-5

query I rowsort
SELECT 20 * 74 AS col0
----
1480

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT COALESCE ( + COUNT( * ), - 48 ) - NULLIF ( - 56, 59 ) * - + COUNT( * ) + - 93
----
-148

skipif mysql # not compatible
query I rowsort label-7055
SELECT COALESCE ( + COUNT ( * ), - 48 ) - NULLIF ( - 56, 59 ) * - + COUNT ( * ) + - 93
----
-148

query I rowsort
SELECT ALL - ( - 15 ) AS col0
----
15

query I rowsort
SELECT 98 * - 68 * + + 61 + - ( + 31 )
----
-406535

query II rowsort
SELECT 39 - + 5 + + 36 + 99 * - 36 * + 45 * + 4 * + - 66, 12 AS col0
----
42340390
12

query I rowsort
SELECT ALL 71 * + 44
----
3124

query I rowsort
SELECT 10 * + + 11
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT 46 * + COALESCE ( CASE - 88 WHEN + COUNT( * ) THEN NULL WHEN - - MIN( ALL - 67 ) + + ( 13 ) THEN NULL ELSE - - ( - COALESCE ( + + 46, + - 99 * + + 25, + 83 ) ) * - 69 + + 92 + 20 END, 48 )
----
151156

skipif mysql # not compatible
query I rowsort label-7061
SELECT 46 * + COALESCE ( CASE - 88 WHEN + COUNT ( * ) THEN NULL WHEN - - MIN ( ALL - 67 ) + + ( 13 ) THEN NULL ELSE - - ( - COALESCE ( + + 46, + - 99 * + + 25, + 83 ) ) * - 69 + + 92 + 20 END, 48 )
----
151156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7062
SELECT ALL CAST( + - NULLIF ( 16, + MIN( DISTINCT - - 58 ) ) AS SIGNED ) + - - 95 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL CAST ( + - NULLIF ( 16, + MIN ( DISTINCT - - 58 ) ) AS INTEGER ) + - - 95 AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-7063
SELECT ALL COUNT( * ) + - - 88 * + SUM( DISTINCT + 54 ) AS col0, 17 AS col1
----
4753
17

skipif mysql # not compatible
query II rowsort label-7063
SELECT ALL COUNT ( * ) + - - 88 * + SUM ( DISTINCT + 54 ) AS col0, 17 AS col1
----
4753
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT DISTINCT + ( COUNT( * ) ) + + - 89 + - + 80 + + CASE - NULLIF ( - 80, - ( + ( ( COALESCE ( + ( - 96 ), - - COUNT( * ) ) ) ) ) ) WHEN + + 49 THEN NULL ELSE + 90 END * 63 * 37
----
209622

skipif mysql # not compatible
query I rowsort label-7064
SELECT DISTINCT + ( COUNT ( * ) ) + + - 89 + - + 80 + + CASE - NULLIF ( - 80, - ( + ( ( COALESCE ( + ( - 96 ), - - COUNT ( * ) ) ) ) ) ) WHEN + + 49 THEN NULL ELSE + 90 END * 63 * 37
----
209622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7065
SELECT ALL CAST( NULL AS SIGNED ) + - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL CAST ( NULL AS INTEGER ) + - 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT ALL COUNT( ALL 93 ) + 95 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL COUNT ( ALL 93 ) + 95 AS col0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7067
SELECT - COUNT( * ) AS col0, 83 + + COUNT( * ) * - + 48 AS col0
----
-1
35

skipif mysql # not compatible
query II rowsort label-7067
SELECT - COUNT ( * ) AS col0, 83 + + COUNT ( * ) * - + 48 AS col0
----
-1
35

query I rowsort
SELECT ALL - 54 + - - 31 AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7069
SELECT - COALESCE ( - CAST( NULL AS SIGNED ), + 83 ) AS col2, 17 + - 55
----
-83
-38

skipif mysql # not compatible
query II rowsort label-7069
SELECT - COALESCE ( - CAST ( NULL AS INTEGER ), + 83 ) AS col2, 17 + - 55
----
-83
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7070
SELECT CASE 91 WHEN + 35 THEN - 31 * COUNT( * ) - 81 - - - 21 + + CAST( - 16 AS SIGNED ) END + - COUNT( ALL 37 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7070
SELECT CASE 91 WHEN + 35 THEN - 31 * COUNT ( * ) - 81 - - - 21 + + CAST ( - 16 AS INTEGER ) END + - COUNT ( ALL 37 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT - MIN( ALL 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-7071
SELECT - MIN ( ALL 28 )
----
-28

query II rowsort
SELECT 1 col2, NULLIF ( + + ( + + 79 ), + 57 * + 73 ) + + 48 AS col2
----
1
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7073
SELECT - COUNT( * ), ( - - 93 ) DIV - 38 col2
----
-1
-2

skipif mysql # not compatible
query II rowsort label-7073
SELECT - COUNT ( * ), ( - - 93 ) / - 38 col2
----
-1
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7074
SELECT - 24 AS col0, SUM( ALL 96 )
----
-24
96

skipif mysql # not compatible
query II rowsort label-7074
SELECT - 24 AS col0, SUM ( ALL 96 )
----
-24
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7075
SELECT + - COUNT( + + 2 ) + + - 96 AS col1, COUNT( DISTINCT + 37 ) + CASE - + 57 WHEN + COUNT( * ) - - + 88 + + 49 THEN - CAST( + + 36 AS SIGNED ) / 21 + - 36 * - + ( - 57 ) * - 55 + COUNT( * ) WHEN - 11 * 0 THEN NULL WHEN 3 / 25 THEN 94 + + 72 END
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-7075
SELECT + - COUNT ( + + 2 ) + + - 96 AS col1, COUNT ( DISTINCT + 37 ) + CASE - + 57 WHEN + COUNT ( * ) - - + 88 + + 49 THEN - CAST ( + + 36 AS INTEGER ) / 21 + - 36 * - + ( - 57 ) * - 55 + COUNT ( * ) WHEN - 11 * 0 THEN NULL WHEN 3 / 25 THEN 94 + + 72 END
----
-97
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7076
SELECT + + NULLIF ( + 27, + CASE - COUNT( DISTINCT + + 36 ) WHEN - - 10 THEN + COUNT( * ) WHEN - - 27 THEN - 57 * + 1 + - + COUNT( * ) + COUNT( * ) / + 42 * - + 92 END ) * + + CASE 72 WHEN + CAST( + 16 AS SIGNED ) * CAST( NULL AS SIGNED ) THEN ( 44 ) WHEN 68 * - CAST( NULL AS SIGNED ) THEN NULL ELSE 67 END - + 20 * + 69
----
429

skipif mysql # not compatible
query I rowsort label-7076
SELECT + + NULLIF ( + 27, + CASE - COUNT ( DISTINCT + + 36 ) WHEN - - 10 THEN + COUNT ( * ) WHEN - - 27 THEN - 57 * + 1 + - + COUNT ( * ) + COUNT ( * ) / + 42 * - + 92 END ) * + + CASE 72 WHEN + CAST ( + 16 AS INTEGER ) * CAST ( NULL AS INTEGER ) THEN ( 44 ) WHEN 68 * - CAST ( NULL AS INTEGER ) THEN NULL ELSE 67 END - + 20 * + 69
----
429

onlyif mysql # aggregate syntax: 
query II rowsort label-7077
SELECT DISTINCT - COUNT( * ), + 21 + + COUNT( * ) col0
----
-1
22

skipif mysql # not compatible
query II rowsort label-7077
SELECT DISTINCT - COUNT ( * ), + 21 + + COUNT ( * ) col0
----
-1
22

query I rowsort
SELECT DISTINCT + 97 - + 93 AS col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7079
SELECT ALL - 38 * 38 * + - 58 + - - NULLIF ( 69, + ( + 78 ) * CAST( - 96 AS SIGNED ) )
----
83821

skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL - 38 * 38 * + - 58 + - - NULLIF ( 69, + ( + 78 ) * CAST ( - 96 AS INTEGER ) )
----
83821

onlyif mysql # aggregate syntax: 
query II rowsort label-7080
SELECT ALL 58 AS col0, - 53 * + 67 * COUNT( * ) + + + 47
----
58
-3504

skipif mysql # not compatible
query II rowsort label-7080
SELECT ALL 58 AS col0, - 53 * + 67 * COUNT ( * ) + + + 47
----
58
-3504

query I rowsort
SELECT DISTINCT + 69 - + + 17 AS col1
----
52

query I rowsort
SELECT - 12 * - + 92 AS col0
----
1104

query I rowsort
SELECT + 51 + + - 12
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT - ( - - MIN( ALL 9 ) ) + - 85 + 49
----
-45

skipif mysql # not compatible
query I rowsort label-7084
SELECT - ( - - MIN ( ALL 9 ) ) + - 85 + 49
----
-45

query I rowsort
SELECT + + 81 + 75 AS col1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT - + COUNT( * ) * 15
----
-15

skipif mysql # not compatible
query I rowsort label-7086
SELECT - + COUNT ( * ) * 15
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT ALL COALESCE ( - 44, - COUNT( * ) )
----
-44

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL COALESCE ( - 44, - COUNT ( * ) )
----
-44

query I rowsort
SELECT ALL + - ( + 39 )
----
-39

query I rowsort
SELECT ALL + + 57 * ( - 49 )
----
-2793

query I rowsort
SELECT - 49 * - - 9 + + 52
----
-389

query I rowsort
SELECT DISTINCT + + 89 col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7092
SELECT + - CASE - CAST( - 85 AS SIGNED ) WHEN + CAST( + - 12 AS SIGNED ) * - 36 + + + 33 * - + 22 * + ( + 20 ) - - + 37 THEN + 52 * + 51 + COUNT( - 10 ) * ( - - 62 ) + + MIN( + 30 ) - AVG ( 52 + - 95 ) * 2 WHEN AVG ( + ( 35 ) ) + 11 THEN - 10 / - 28 + - 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7092
SELECT + - CASE - CAST ( - 85 AS INTEGER ) WHEN + CAST ( + - 12 AS INTEGER ) * - 36 + + + 33 * - + 22 * + ( + 20 ) - - + 37 THEN + 52 * + 51 + COUNT ( - 10 ) * ( - - 62 ) + + MIN ( + 30 ) - AVG ( 52 + - 95 ) * 2 WHEN AVG ( + ( 35 ) ) + 11 THEN - 10 / - 28 + - 38 END
----
NULL

query I rowsort
SELECT DISTINCT + 12 * + - 14 AS col1
----
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7094
SELECT - 60 * - COUNT( * ) DIV 88 * + - 1
----
0

skipif mysql # not compatible
query I rowsort label-7094
SELECT - 60 * - COUNT ( * ) / 88 * + - 1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7095
SELECT - 42 / + 79 * 15 + - 90 - + + CAST( NULL AS SIGNED ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7095
SELECT - 42 / + 79 * 15 + - 90 - + + CAST ( NULL AS INTEGER ) / - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT COALESCE ( + - 27, + MAX( 1 ), 96 )
----
-27

skipif mysql # not compatible
query I rowsort label-7096
SELECT COALESCE ( + - 27, + MAX ( 1 ), 96 )
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7097
SELECT ALL - 0 * - - 17 * + 72 + - + MAX( + + 35 ) + 22 DIV 41 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL - 0 * - - 17 * + 72 + - + MAX ( + + 35 ) + 22 / 41 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT NULLIF ( - - ( - 73 ), COUNT( * ) + - - 47 )
----
-73

skipif mysql # not compatible
query I rowsort label-7098
SELECT NULLIF ( - - ( - 73 ), COUNT ( * ) + - - 47 )
----
-73

query I rowsort
SELECT + 54 * + 22 + + 34 * + + 10
----
1528

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT ALL + 94 * + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL + 94 * + COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT DISTINCT + 6 * 25 + COUNT( * )
----
151

skipif mysql # not compatible
query I rowsort label-7101
SELECT DISTINCT + 6 * 25 + COUNT ( * )
----
151

onlyif mysql # aggregate syntax: 
query II rowsort label-7102
SELECT ALL + 73 * - + 91 + - ( 13 ) - + - 39 AS col1, + MAX( DISTINCT 36 ) + 12 * - - 93
----
-6617
1152

skipif mysql # not compatible
query II rowsort label-7102
SELECT ALL + 73 * - + 91 + - ( 13 ) - + - 39 AS col1, + MAX ( DISTINCT 36 ) + 12 * - - 93
----
-6617
1152

query I rowsort
SELECT DISTINCT 53 * - 31 + - - 21 AS col2
----
-1622

query I rowsort
SELECT DISTINCT 17 * - CASE - NULLIF ( + 56, + - 34 ) WHEN - - 72 THEN - 63 + - 54 WHEN 29 THEN 83 * 55 WHEN - + 46 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( + 16, - - 96 ) * + 51 AS col2
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT ALL 59 * + COUNT( + 18 ) - + - 66
----
125

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL 59 * + COUNT ( + 18 ) - + - 66
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT - COUNT( * ) * COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7107
SELECT - COUNT ( * ) * COUNT ( * ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT MIN( ALL + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-7108
SELECT MIN ( ALL + 59 )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7109
SELECT 53 * - 55 - - 8 * COUNT( * ) + + 86 * - CAST( NULL AS SIGNED ) * - - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7109
SELECT 53 * - 55 - - 8 * COUNT ( * ) + + 86 * - CAST ( NULL AS INTEGER ) * - - 61 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 90 * + 77
----
6930

query I rowsort
SELECT ALL 39 * + - ( ( 85 ) ) AS col1
----
-3315

query I rowsort
SELECT ALL 43 - - - 12
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7113
SELECT DISTINCT - NULLIF ( 41, 83 ) * CAST( 53 AS SIGNED ) + + + 23 * + 80 - - NULLIF ( + 86, 74 ) AS col2, 81 * + 2 + - + CAST( NULL AS SIGNED ) + + 95
----
-247
NULL

skipif mysql # not compatible
query II rowsort label-7113
SELECT DISTINCT - NULLIF ( 41, 83 ) * CAST ( 53 AS INTEGER ) + + + 23 * + 80 - - NULLIF ( + 86, 74 ) AS col2, 81 * + 2 + - + CAST ( NULL AS INTEGER ) + + 95
----
-247
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT + - COUNT( * ) * - 42 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7114
SELECT + - COUNT ( * ) * - 42 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT + COUNT( * ) - NULLIF ( + 55, 63 ) - 75
----
-129

skipif mysql # not compatible
query I rowsort label-7115
SELECT + COUNT ( * ) - NULLIF ( + 55, 63 ) - 75
----
-129

onlyif mysql # DIV for integer division: 
query II rowsort label-7116
SELECT DISTINCT 84 DIV - 54 AS col0, 50 * + 77
----
-1
3850

skipif mysql # not compatible
query II rowsort label-7116
SELECT DISTINCT 84 / - 54 AS col0, 50 * + 77
----
-1
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT + - CASE - - 7 WHEN + 24 THEN + - 38 WHEN - 63 / + 67 THEN NULL WHEN 13 + - COALESCE ( - - 58, 50 * + 76 ) * - + 48 THEN 13 * - - COUNT( * ) * + - COALESCE ( 69, + + COUNT( * ) * - + 17, + 48 ) ELSE NULL END / 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7117
SELECT + - CASE - - 7 WHEN + 24 THEN + - 38 WHEN - 63 / + 67 THEN NULL WHEN 13 + - COALESCE ( - - 58, 50 * + 76 ) * - + 48 THEN 13 * - - COUNT ( * ) * + - COALESCE ( 69, + + COUNT ( * ) * - + 17, + 48 ) ELSE NULL END / 93
----
NULL

query I rowsort
SELECT - - 46 * - 16 + + 38
----
-698

query I rowsort
SELECT DISTINCT 11 * - ( - 89 ) AS col2
----
979

onlyif mysql # DIV for integer division: 
query II rowsort label-7120
SELECT + 99 DIV - 47 AS col1, ( + 16 ) AS col2
----
-2
16

skipif mysql # not compatible
query II rowsort label-7120
SELECT + 99 / - 47 AS col1, ( + 16 ) AS col2
----
-2
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7121
SELECT ALL COUNT( + 0 ) + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL COUNT ( + 0 ) + - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT ( - 98 ) AS col1
----
-98

query I rowsort
SELECT ALL + 0 + + 63
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7124
SELECT CASE - 48 WHEN - 38 THEN + - 16 / - ( - CAST( NULL AS SIGNED ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7124
SELECT CASE - 48 WHEN - 38 THEN + - 16 / - ( - CAST ( NULL AS INTEGER ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT ALL + COUNT( + 59 ) * - 42 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL + COUNT ( + 59 ) * - 42 AS col0
----
-42

query I rowsort
SELECT + 60 + + 19 AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7127
SELECT + 36 * + 72 * + - 51 * 52 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7127
SELECT + 36 * + 72 * + - 51 * 52 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7128
SELECT - COUNT( * ) DIV + + CAST( - MAX( DISTINCT - - 38 ) AS SIGNED ) - ( + 84 ) * + - 91 * 97 * CASE - 45 WHEN + - ( + COUNT( DISTINCT - 68 ) ) THEN NULL WHEN - + CAST( NULL AS SIGNED ) THEN + 51 ELSE - 26 + 22 END
----
-2965872

skipif mysql # not compatible
query I rowsort label-7128
SELECT - COUNT ( * ) / + + CAST ( - MAX ( DISTINCT - - 38 ) AS INTEGER ) - ( + 84 ) * + - 91 * 97 * CASE - 45 WHEN + - ( + COUNT ( DISTINCT - 68 ) ) THEN NULL WHEN - + CAST ( NULL AS INTEGER ) THEN + 51 ELSE - 26 + 22 END
----
-2965872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7129
SELECT + 30 - CAST( 13 AS SIGNED ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-7129
SELECT + 30 - CAST ( 13 AS INTEGER ) AS col1
----
17

query II rowsort
SELECT DISTINCT + 68 AS col1, + 40
----
68
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7131
SELECT DISTINCT + COUNT( ALL + 31 ) / + 76 + + CAST( NULL AS SIGNED ) + + - 66 * - 49 / 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7131
SELECT DISTINCT + COUNT ( ALL + 31 ) / + 76 + + CAST ( NULL AS INTEGER ) + + - 66 * - 49 / 73 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7132
SELECT ALL - 78 DIV - CAST( ( + COUNT( * ) ) AS SIGNED ) + 82 + COALESCE ( + - CAST( + 66 AS SIGNED ), - - 39 ) DIV - - COUNT( + 56 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-7132
SELECT ALL - 78 / - CAST ( ( + COUNT ( * ) ) AS INTEGER ) + 82 + COALESCE ( + - CAST ( + 66 AS INTEGER ), - - 39 ) / - - COUNT ( + 56 ) AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7133
SELECT ALL + 29 DIV + 51 * SUM( + 33 ) + + 89, - CAST( NULL AS SIGNED ) AS col1
----
89
NULL

skipif mysql # not compatible
query II rowsort label-7133
SELECT ALL + 29 / + 51 * SUM ( + 33 ) + + 89, - CAST ( NULL AS INTEGER ) AS col1
----
89
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7134
SELECT - 49 * - - CAST( - 71 AS SIGNED ) + + 74 AS col1
----
3553

skipif mysql # not compatible
query I rowsort label-7134
SELECT - 49 * - - CAST ( - 71 AS INTEGER ) + + 74 AS col1
----
3553

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT - ( - SUM( - 35 ) ) - + - MAX( 51 ) * ( - 88 ) AS col2
----
-4523

skipif mysql # not compatible
query I rowsort label-7135
SELECT - ( - SUM ( - 35 ) ) - + - MAX ( 51 ) * ( - 88 ) AS col2
----
-4523

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT ALL + 63 * - + COUNT( DISTINCT 52 )
----
-63

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL + 63 * - + COUNT ( DISTINCT 52 )
----
-63

query I rowsort
SELECT ( - 89 ) AS col0
----
-89

query I rowsort
SELECT ALL + 36 - + 43
----
-7

query I rowsort
SELECT 54 * 0
----
0

query I rowsort
SELECT 90 * + 36 col1
----
3240

query I rowsort
SELECT 64 + + 45
----
109

query I rowsort
SELECT DISTINCT + 91 * - - 46
----
4186

query I rowsort
SELECT ALL - 37 - - ( 83 ) AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7144
SELECT DISTINCT + ( + 37 ) DIV + 2 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT + ( + 37 ) / + 2 AS col2
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7145
SELECT DISTINCT - 69 DIV 12 + - 43
----
-48

skipif mysql # not compatible
query I rowsort label-7145
SELECT DISTINCT - 69 / 12 + - 43
----
-48

query I rowsort
SELECT ALL - COALESCE ( 82, - ( - + 26 ) )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7147
SELECT + 94 + + + 62 + + COUNT( * ) - - + ( - - 70 ) + + CAST( NULL AS SIGNED ) + - 60 + - - 34 * + COALESCE ( 20, CAST( + 49 AS SIGNED ) * + + 60 + 20 ) * - + 12 + - 80 * - SUM( + 91 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7147
SELECT + 94 + + + 62 + + COUNT ( * ) - - + ( - - 70 ) + + CAST ( NULL AS INTEGER ) + - 60 + - - 34 * + COALESCE ( 20, CAST ( + 49 AS INTEGER ) * + + 60 + 20 ) * - + 12 + - 80 * - SUM ( + 91 ) AS col2
----
NULL

query II rowsort
SELECT - 69 + + - NULLIF ( + 52, + + 2 ) * 30 AS col0, + 57
----
-1629
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT 80 + + - SUM( DISTINCT - 81 )
----
161

skipif mysql # not compatible
query I rowsort label-7149
SELECT 80 + + - SUM ( DISTINCT - 81 )
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT ALL - 4 + ( - + 97 ) * + ( + COUNT( * ) ) AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL - 4 + ( - + 97 ) * + ( + COUNT ( * ) ) AS col1
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-7151
SELECT DISTINCT CASE - 62 WHEN + 8 THEN - COUNT( * ) - + 48 - - COUNT( * ) WHEN - + 36 THEN + 42 WHEN + 98 + - COUNT( + 61 ) THEN NULL WHEN - 42 * 32 THEN NULL END AS col1, + 41 * 45 AS col1
----
NULL
1845

skipif mysql # not compatible
query II rowsort label-7151
SELECT DISTINCT CASE - 62 WHEN + 8 THEN - COUNT ( * ) - + 48 - - COUNT ( * ) WHEN - + 36 THEN + 42 WHEN + 98 + - COUNT ( + 61 ) THEN NULL WHEN - 42 * 32 THEN NULL END AS col1, + 41 * 45 AS col1
----
NULL
1845

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7152
SELECT ALL + COALESCE ( COUNT( * ), + - 49, + - 85 ) + 30 DIV 6 * 43
----
216

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL + COALESCE ( COUNT ( * ), + - 49, + - 85 ) + 30 / 6 * 43
----
216

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7153
SELECT + 36 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7153
SELECT + 36 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 57 + - 10
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7155
SELECT DISTINCT 84 + + ( + 45 ) + - COUNT( + + 99 ) AS col2, + 90
----
128
90

skipif mysql # not compatible
query II rowsort label-7155
SELECT DISTINCT 84 + + ( + 45 ) + - COUNT ( + + 99 ) AS col2, + 90
----
128
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7156
SELECT 49 + + 28 col2, + 72 * + + 10 + CAST( NULL AS SIGNED )
----
77
NULL

skipif mysql # not compatible
query II rowsort label-7156
SELECT 49 + + 28 col2, + 72 * + + 10 + CAST ( NULL AS INTEGER )
----
77
NULL

query I rowsort
SELECT ALL 48 + 58 AS col2
----
106

query I rowsort
SELECT 20 + + 88 AS col0
----
108

query II rowsort
SELECT 93, - 18 AS col1
----
93
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-7160
SELECT DISTINCT 66 DIV + ( + 4 )
----
16

skipif mysql # not compatible
query I rowsort label-7160
SELECT DISTINCT 66 / + ( + 4 )
----
16

query II rowsort
SELECT ALL 1 * 30 AS col0, 17
----
30
17

query I rowsort
SELECT 39 + + 59 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT ALL 12 + - + 0 * NULLIF ( + 66, - 59 + - 74 + COUNT( * ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-7163
SELECT ALL 12 + - + 0 * NULLIF ( + 66, - 59 + - 74 + COUNT ( * ) ) AS col2
----
12

query II rowsort
SELECT DISTINCT - 78 AS col1, 27
----
-78
27

query II rowsort
SELECT 82 AS col1, - 82 AS col0
----
82
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-7166
SELECT ALL + 67 + - 84 + - 74 DIV - + 83 + + NULLIF ( + 79, - + 67 ) + - + 9
----
53

skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL + 67 + - 84 + - 74 / - + 83 + + NULLIF ( + 79, - + 67 ) + - + 9
----
53

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7167
SELECT ALL CAST( NULL AS DECIMAL ) * 64, 58 AS col1
----
NULL
58

skipif mysql # not compatible
query II rowsort label-7167
SELECT ALL CAST ( NULL AS REAL ) * 64, 58 AS col1
----
NULL
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7168
SELECT ALL 65 * - 87 * + 40 * + CAST( NULL AS DECIMAL ) * - 42 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7168
SELECT ALL 65 * - 87 * + 40 * + CAST ( NULL AS REAL ) * - 42 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7169
SELECT 69 AS col1, COUNT( * ) col1
----
69
1

skipif mysql # not compatible
query II rowsort label-7169
SELECT 69 AS col1, COUNT ( * ) col1
----
69
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7170
SELECT + 95 / + 41 + + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7170
SELECT + 95 / + 41 + + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( + 94 ) * 48
----
4512

query I rowsort
SELECT ALL 35 - + - 7 AS col0
----
42

query II rowsort
SELECT + 43 AS col0, NULLIF ( - 78, - 57 + - 33 ) * 8 + - 37
----
43
-661

onlyif mysql # aggregate syntax: 
query II rowsort label-7174
SELECT ALL - 9 AS col2, COUNT( * ) + COUNT( * )
----
-9
2

skipif mysql # not compatible
query II rowsort label-7174
SELECT ALL - 9 AS col2, COUNT ( * ) + COUNT ( * )
----
-9
2

query I rowsort
SELECT + 51 * + 5 col0
----
255

onlyif mysql # DIV for integer division: 
query I rowsort label-7176
SELECT ALL + 40 DIV - 15 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL + 40 / - 15 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7177
SELECT DISTINCT - 7 * + CAST( + - 15 AS SIGNED ) + 0
----
105

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT - 7 * + CAST ( + - 15 AS INTEGER ) + 0
----
105

query I rowsort
SELECT + 8 + + 70 col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7179
SELECT + COUNT( DISTINCT - ( + + CAST( 93 AS SIGNED ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7179
SELECT + COUNT ( DISTINCT - ( + + CAST ( 93 AS INTEGER ) ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7180
SELECT ALL - - COALESCE ( + - 17, - 86 ) * + CAST( NULL AS SIGNED ), + CASE COUNT( * ) WHEN + 74 THEN NULL WHEN - 96 / + 58 THEN + 85 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7180
SELECT ALL - - COALESCE ( + - 17, - 86 ) * + CAST ( NULL AS INTEGER ), + CASE COUNT ( * ) WHEN + 74 THEN NULL WHEN - 96 / + 58 THEN + 85 END
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7181
SELECT - ( - 3 ) DIV + - 89 * 64 AS col2, - 28 + - 89
----
0
-117

skipif mysql # not compatible
query II rowsort label-7181
SELECT - ( - 3 ) / + - 89 * 64 AS col2, - 28 + - 89
----
0
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT DISTINCT + SUM( DISTINCT - 38 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT + SUM ( DISTINCT - 38 ) AS col2
----
-38

query I rowsort
SELECT ALL + - ( - 39 ) + + 57 AS col0
----
96

query I rowsort
SELECT DISTINCT + ( - - 23 ) AS col2
----
23

query I rowsort
SELECT ALL - 13 + - 62
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT + MIN( + - ( 89 ) ) * + 0 + + 68
----
68

skipif mysql # not compatible
query I rowsort label-7186
SELECT + MIN ( + - ( 89 ) ) * + 0 + + 68
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7187
SELECT ALL - 75 DIV + + ( - - COALESCE ( + 16, - 67 + + + 94 DIV - 13, + 86 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL - 75 / + + ( - - COALESCE ( + 16, - 67 + + + 94 / - 13, + 86 ) )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7188
SELECT ALL - 64 + + + CAST( NULL AS SIGNED ) + 30 + + 20 - + 20 * + 96 + 1 * + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL - 64 + + + CAST ( NULL AS INTEGER ) + 30 + + 20 - + 20 * + 96 + 1 * + - 20
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7189
SELECT 82 DIV 48 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7189
SELECT 82 / 48 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7190
SELECT - 90 + + ( - - MAX( - 48 ) ) + - 43 + 84, + CASE - + ( - NULLIF ( + 95, - + 84 + - - 45 / + 53 - - - MIN( 84 ) ) ) WHEN - MAX( + 65 ) + COUNT( * ) THEN NULL ELSE + 24 END + + - COALESCE ( + COUNT( DISTINCT + CASE - 63 WHEN + ( 36 ) + - 96 * + 0 THEN - 24 ELSE 34 END ), - 79 * 99 ) AS col1
----
-97
23

skipif mysql # not compatible
query II rowsort label-7190
SELECT - 90 + + ( - - MAX ( - 48 ) ) + - 43 + 84, + CASE - + ( - NULLIF ( + 95, - + 84 + - - 45 / + 53 - - - MIN ( 84 ) ) ) WHEN - MAX ( + 65 ) + COUNT ( * ) THEN NULL ELSE + 24 END + + - COALESCE ( + COUNT ( DISTINCT + CASE - 63 WHEN + ( 36 ) + - 96 * + 0 THEN - 24 ELSE 34 END ), - 79 * 99 ) AS col1
----
-97
23

query I rowsort
SELECT - 34 * - 10 AS col2
----
340

query I rowsort
SELECT 72 * - 52
----
-3744

onlyif mysql # aggregate syntax: 
query II rowsort label-7193
SELECT ALL + 72 + + 52 AS col2, - 85 + - - MAX( DISTINCT 78 ) AS col0
----
124
-7

skipif mysql # not compatible
query II rowsort label-7193
SELECT ALL + 72 + + 52 AS col2, - 85 + - - MAX ( DISTINCT 78 ) AS col0
----
124
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-7194
SELECT 17, 66 DIV + 15 - - + ( + 58 ) DIV - + 27 AS col2
----
17
2

skipif mysql # not compatible
query II rowsort label-7194
SELECT 17, 66 / + 15 - - + ( + 58 ) / - + 27 AS col2
----
17
2

query I rowsort
SELECT 29 * - 41
----
-1189

query I rowsort
SELECT DISTINCT 60 + + + 60
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT DISTINCT COUNT( + ( + 55 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT COUNT ( + ( + 55 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT ALL 95 - + 89 * COUNT( * ) * + - 23 col0
----
2142

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL 95 - + 89 * COUNT ( * ) * + - 23 col0
----
2142

query I rowsort
SELECT 55 * 43 * 76
----
179740

query I rowsort
SELECT 29 + + - 0 + - - 60 * + + 38 AS col1
----
2309

query I rowsort
SELECT 38 + + 65
----
103

onlyif mysql # DIV for integer division: 
query II rowsort label-7202
SELECT - 65 * + COALESCE ( + 99, + 77 * - 71 * ( + 75 ) DIV + ( - 50 ) * + 21 + 73 ) * 44 AS col0, + 75 * 14 AS col0
----
-283140
1050

skipif mysql # not compatible
query II rowsort label-7202
SELECT - 65 * + COALESCE ( + 99, + 77 * - 71 * ( + 75 ) / + ( - 50 ) * + 21 + 73 ) * 44 AS col0, + 75 * 14 AS col0
----
-283140
1050

onlyif mysql # aggregate syntax: 
query II rowsort label-7203
SELECT + COUNT( + 97 ) AS col1, - ( + 73 )
----
1
-73

skipif mysql # not compatible
query II rowsort label-7203
SELECT + COUNT ( + 97 ) AS col1, - ( + 73 )
----
1
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT + NULLIF ( + 48, - COUNT( * ) ) - - 72
----
120

skipif mysql # not compatible
query I rowsort label-7204
SELECT + NULLIF ( + 48, - COUNT ( * ) ) - - 72
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT 73 * + + 50 + + COUNT( * ) AS col2
----
3651

skipif mysql # not compatible
query I rowsort label-7205
SELECT 73 * + + 50 + + COUNT ( * ) AS col2
----
3651

query I rowsort
SELECT ALL NULLIF ( + 67, + 8 ) * 8
----
536

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT + COUNT( + 53 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7207
SELECT + COUNT ( + 53 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT + CASE + - 29 WHEN - - 49 / 16 - - 51 THEN 96 END / COUNT( * ) * + - COUNT( 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7208
SELECT + CASE + - 29 WHEN - - 49 / 16 - - 51 THEN 96 END / COUNT ( * ) * + - COUNT ( 72 )
----
NULL

query II rowsort
SELECT ALL 93 * + 70, - 91 * 52 AS col2
----
6510
-4732

query I rowsort
SELECT ALL 51 * 86 AS col2
----
4386

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT COUNT( * ) * - COUNT( * ) + SUM( ALL + 74 )
----
73

skipif mysql # not compatible
query I rowsort label-7211
SELECT COUNT ( * ) * - COUNT ( * ) + SUM ( ALL + 74 )
----
73

query I rowsort
SELECT + 63 - - - 13 AS col0
----
50

query II rowsort
SELECT + 88 * + 55, 88 AS col1
----
4840
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7214
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-7214
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT - COUNT( * ) * + + 48 + - 82
----
-130

skipif mysql # not compatible
query I rowsort label-7215
SELECT - COUNT ( * ) * + + 48 + - 82
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7216
SELECT - COUNT( - 64 ) AS col0, 77 * + ( - 73 ) / + CAST( NULL AS SIGNED ) - + 29 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7216
SELECT - COUNT ( - 64 ) AS col0, 77 * + ( - 73 ) / + CAST ( NULL AS INTEGER ) - + 29 AS col2
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT ALL - - COUNT( * ) * + - 54 * - + 81 + COUNT( * ) * + + 53 AS col1
----
4427

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL - - COUNT ( * ) * + - 54 * - + 81 + COUNT ( * ) * + + 53 AS col1
----
4427

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7218
SELECT + - 23 * + + CASE - 18 WHEN + - NULLIF ( + - 38, CASE 57 WHEN + + 4 + - 93 + - 27 * - 2 - + - 5 THEN + - 35 ELSE 15 END + + 90 + + 97 ) THEN 59 - - + 13 - - 76 - + - COUNT( * ) + - ( - 97 ) DIV + 65 ELSE - 9 * + 56 END col0
----
11592

skipif mysql # not compatible
query I rowsort label-7218
SELECT + - 23 * + + CASE - 18 WHEN + - NULLIF ( + - 38, CASE 57 WHEN + + 4 + - 93 + - 27 * - 2 - + - 5 THEN + - 35 ELSE 15 END + + 90 + + 97 ) THEN 59 - - + 13 - - 76 - + - COUNT ( * ) + - ( - 97 ) / + 65 ELSE - 9 * + 56 END col0
----
11592

query I rowsort
SELECT DISTINCT + + 57 * - 82 + - - 7
----
-4667

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT + COUNT( * ) * COUNT( * ) + + 56 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-7220
SELECT + COUNT ( * ) * COUNT ( * ) + + 56 AS col1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7221
SELECT ALL - ( + 75 ) * 86, CAST( 9 AS SIGNED ) + - 14 AS col2
----
-6450
-5

skipif mysql # not compatible
query II rowsort label-7221
SELECT ALL - ( + 75 ) * 86, CAST ( 9 AS INTEGER ) + - 14 AS col2
----
-6450
-5

query I rowsort
SELECT DISTINCT - - 48 * + 88
----
4224

onlyif mysql # DIV for integer division: 
query I rowsort label-7223
SELECT + 4 + - - 14 DIV 49 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7223
SELECT + 4 + - - 14 / 49 AS col1
----
4

query I rowsort
SELECT + 9 * 12 AS col0
----
108

query I rowsort
SELECT - 78 * 36
----
-2808

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7226
SELECT - + COUNT( * ) DIV + + 14 + + + 22 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-7226
SELECT - + COUNT ( * ) / + + 14 + + + 22 AS col1
----
22

query I rowsort
SELECT ALL - + 81 + - ( + 84 )
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT DISTINCT - 85 * + - COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-7228
SELECT DISTINCT - 85 * + - COUNT ( * ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT + - COUNT( * ) + + 17 * - + 29 AS col2
----
-494

skipif mysql # not compatible
query I rowsort label-7229
SELECT + - COUNT ( * ) + + 17 * - + 29 AS col2
----
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT - + MAX( - 3 ) * + 12 * COALESCE ( - + 1, - 18 - 11 ) - - 27 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-7230
SELECT - + MAX ( - 3 ) * + 12 * COALESCE ( - + 1, - 18 - 11 ) - - 27 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT - + 46 + - 81 * COUNT( * ) * - + 71 AS col2
----
5705

skipif mysql # not compatible
query I rowsort label-7231
SELECT - + 46 + - 81 * COUNT ( * ) * - + 71 AS col2
----
5705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7232
SELECT ALL ( + 12 ) - + 72 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL ( + 12 ) - + 72 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7233
SELECT - SUM( + 84 ) + - 70 * + - 33 + - 0 * + 34 AS col2, + 18 AS col1
----
2226
18

skipif mysql # not compatible
query II rowsort label-7233
SELECT - SUM ( + 84 ) + - 70 * + - 33 + - 0 * + 34 AS col2, + 18 AS col1
----
2226
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT ALL COUNT( ALL 44 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL COUNT ( ALL 44 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7235
SELECT - COUNT( * ) + 50 + 47 * - + CAST( + NULLIF ( COUNT( * ), - 66 * - COUNT( - 77 ) + - + 70 ) AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-7235
SELECT - COUNT ( * ) + 50 + 47 * - + CAST ( + NULLIF ( COUNT ( * ), - 66 * - COUNT ( - 77 ) + - + 70 ) AS INTEGER )
----
2

query I rowsort
SELECT ALL COALESCE ( - 82, 78, 96 * + 65 )
----
-82

query I rowsort
SELECT ALL ( + 98 ) AS col0
----
98

query I rowsort
SELECT - 41 + + 0 AS col1
----
-41

query I rowsort
SELECT + 47 * + 35 AS col0
----
1645

query I rowsort
SELECT DISTINCT - 32 * 2 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-7241
SELECT - NULLIF ( + 20, + COUNT( DISTINCT - 72 ) / + 44 + - 75 + 86 ) + + 66, + 56 + + COUNT( * ) + - MIN( ALL - 81 ) AS col0
----
46
138

skipif mysql # not compatible
query II rowsort label-7241
SELECT - NULLIF ( + 20, + COUNT ( DISTINCT - 72 ) / + 44 + - 75 + 86 ) + + 66, + 56 + + COUNT ( * ) + - MIN ( ALL - 81 ) AS col0
----
46
138

query I rowsort
SELECT ALL - 50 * + 41
----
-2050

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT DISTINCT - 32 * - 89 * + COALESCE ( - - NULLIF ( SUM( DISTINCT 26 ), + 60 ), COUNT( * ) * + - 27 * 62, - 72 + 66 ) col1
----
74048

skipif mysql # not compatible
query I rowsort label-7243
SELECT DISTINCT - 32 * - 89 * + COALESCE ( - - NULLIF ( SUM ( DISTINCT 26 ), + 60 ), COUNT ( * ) * + - 27 * 62, - 72 + 66 ) col1
----
74048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7244
SELECT CAST( - + COALESCE ( + ( + 44 ), + + 16 * + CAST( + - 86 AS SIGNED ) / - CASE ( + COUNT( ALL 41 ) ) WHEN + 88 THEN ( - 59 ) / + 1 + CAST( NULL AS DECIMAL ) - 51 + - 17 + CAST( + 30 AS SIGNED ) + - 1 / + 71 * - - COUNT( * ) + 82 * - 1 END ) AS SIGNED )
----
-44

skipif mysql # not compatible
query I rowsort label-7244
SELECT CAST ( - + COALESCE ( + ( + 44 ), + + 16 * + CAST ( + - 86 AS INTEGER ) / - CASE ( + COUNT ( ALL 41 ) ) WHEN + 88 THEN ( - 59 ) / + 1 + CAST ( NULL AS REAL ) - 51 + - 17 + CAST ( + 30 AS INTEGER ) + - 1 / + 71 * - - COUNT ( * ) + 82 * - 1 END ) AS INTEGER )
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-7245
SELECT ALL 17 DIV - 11 + + - 28 * + 71 AS col2
----
-1989

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL 17 / - 11 + + - 28 * + 71 AS col2
----
-1989

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7246
SELECT ALL + COALESCE ( - 68, + - CAST( NULL AS SIGNED ) * - + COUNT( * ) * - COUNT( * ) + 40 + + COUNT( 67 ) * 95, - + COUNT( * ) + + 52 + - + 28 )
----
-68

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL + COALESCE ( - 68, + - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * - COUNT ( * ) + 40 + + COUNT ( 67 ) * 95, - + COUNT ( * ) + + 52 + - + 28 )
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7247
SELECT - SUM( ALL - - 69 ) DIV + 55 AS col0, - MIN( ALL - 29 )
----
-1
29

skipif mysql # not compatible
query II rowsort label-7247
SELECT - SUM ( ALL - - 69 ) / + 55 AS col0, - MIN ( ALL - 29 )
----
-1
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT + 40 + - MAX( + 57 ) * - 28 * - 23 col1
----
-36668

skipif mysql # not compatible
query I rowsort label-7248
SELECT + 40 + - MAX ( + 57 ) * - 28 * - 23 col1
----
-36668

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7249
SELECT DISTINCT + - 21 AS col0, 38 + 30 + - CAST( + 29 AS SIGNED ) + 39
----
-21
78

skipif mysql # not compatible
query II rowsort label-7249
SELECT DISTINCT + - 21 AS col0, 38 + 30 + - CAST ( + 29 AS INTEGER ) + 39
----
-21
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT + SUM( - + 85 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-7250
SELECT + SUM ( - + 85 ) AS col2
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-7251
SELECT ALL - 93 DIV 59 + 11 + + 10 - 87
----
-67

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL - 93 / 59 + 11 + + 10 - 87
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7252
SELECT ALL + CAST( 71 AS SIGNED ) * - - 23 * + 16 * + 51 + + + 65 AS col1
----
1332593

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL + CAST ( 71 AS INTEGER ) * - - 23 * + 16 * + 51 + + + 65 AS col1
----
1332593

query I rowsort
SELECT + ( 48 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-7254
SELECT ALL + 52 AS col1, COUNT( * ) + + SUM( + 10 )
----
52
11

skipif mysql # not compatible
query II rowsort label-7254
SELECT ALL + 52 AS col1, COUNT ( * ) + + SUM ( + 10 )
----
52
11

query I rowsort
SELECT + + 19 * + - 43
----
-817

onlyif mysql # aggregate syntax: 
query II rowsort label-7256
SELECT - 93 - + COUNT( * ) * - SUM( - 11 ), - 57 AS col2
----
-104
-57

skipif mysql # not compatible
query II rowsort label-7256
SELECT - 93 - + COUNT ( * ) * - SUM ( - 11 ), - 57 AS col2
----
-104
-57

query I rowsort
SELECT ALL + 47 * - - 49 AS col1
----
2303

query I rowsort
SELECT + 76 * + - 99 + + 28
----
-7496

query II rowsort
SELECT 72 AS col2, 78 + 65
----
72
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7260
SELECT ALL + + CAST( + 61 AS SIGNED ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL + + CAST ( + 61 AS INTEGER ) AS col0
----
61

query II rowsort
SELECT ALL 30, 54 AS col0
----
30
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT DISTINCT SUM( DISTINCT 1 )
----
1

skipif mysql # not compatible
query I rowsort label-7262
SELECT DISTINCT SUM ( DISTINCT 1 )
----
1

query I rowsort
SELECT DISTINCT NULLIF ( + + 48, + 30 )
----
48

query I rowsort
SELECT DISTINCT + 73 * + 9 AS col1
----
657

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT + COUNT( + 2 ) * 68 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-7265
SELECT + COUNT ( + 2 ) * 68 AS col2
----
68

query I rowsort
SELECT DISTINCT 83 - - 97 AS col1
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7267
SELECT ALL + 18 * - ( CASE - - 18 WHEN + NULLIF ( - 40, MAX( ALL - + ( + 29 ) ) + - ( COUNT( * ) ) * 96 * 38 * CAST( NULL AS SIGNED ) / - 39 * + 90 ) THEN 43 WHEN - 49 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL + 18 * - ( CASE - - 18 WHEN + NULLIF ( - 40, MAX ( ALL - + ( + 29 ) ) + - ( COUNT ( * ) ) * 96 * 38 * CAST ( NULL AS INTEGER ) / - 39 * + 90 ) THEN 43 WHEN - 49 THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT ( - 77 ) * - 13
----
1001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7269
SELECT 84 * CAST( - 41 AS SIGNED )
----
-3444

skipif mysql # not compatible
query I rowsort label-7269
SELECT 84 * CAST ( - 41 AS INTEGER )
----
-3444

query I rowsort
SELECT ALL 82 * 62
----
5084

query I rowsort
SELECT DISTINCT 41 * + - 78 * 7
----
-22386

query I rowsort
SELECT DISTINCT + 64 + + 13 AS col2
----
77

query I rowsort
SELECT 99 * - - 63 AS col2
----
6237

query I rowsort
SELECT 83 + + 93
----
176

query I rowsort
SELECT ALL + 28 + - 80
----
-52

query I rowsort
SELECT ALL + + 7 * 98 AS col2
----
686

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT DISTINCT + COUNT( * ) + - ( - 11 ) - ( + + COALESCE ( COUNT( * ), - 13 + 13 * 90 + + NULLIF ( - + COALESCE ( - COUNT( DISTINCT - 33 ), - 52 * 58 ), 24 * - 60 + - 70 ), 43 ) ) + + + 23 * - ( 75 ) AS col1
----
-1714

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT + COUNT ( * ) + - ( - 11 ) - ( + + COALESCE ( COUNT ( * ), - 13 + 13 * 90 + + NULLIF ( - + COALESCE ( - COUNT ( DISTINCT - 33 ), - 52 * 58 ), 24 * - 60 + - 70 ), 43 ) ) + + + 23 * - ( 75 ) AS col1
----
-1714

query I rowsort
SELECT DISTINCT - - 55 col0
----
55

query II rowsort
SELECT 70 + - 1 AS col0, 28 AS col0
----
69
28

onlyif mysql # DIV for integer division: 
query I rowsort label-7280
SELECT ALL + - ( + 53 ) + 38 DIV - - 36 + + - 54 * + 82 AS col1
----
-4480

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL + - ( + 53 ) + 38 / - - 36 + + - 54 * + 82 AS col1
----
-4480

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT DISTINCT - - 77 + + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-7281
SELECT DISTINCT - - 77 + + COUNT ( * )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7282
SELECT - + 45 * - COUNT( * ) + + ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7282
SELECT - + 45 * - COUNT ( * ) + + ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7283
SELECT 80 * + CAST( + 22 AS SIGNED )
----
1760

skipif mysql # not compatible
query I rowsort label-7283
SELECT 80 * + CAST ( + 22 AS INTEGER )
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT ALL + COUNT( * ) - - 85 * + 11
----
936

skipif mysql # not compatible
query I rowsort label-7284
SELECT ALL + COUNT ( * ) - - 85 * + 11
----
936

onlyif mysql # DIV for integer division: 
query I rowsort label-7285
SELECT ALL - 52 DIV + + 32
----
-1

skipif mysql # not compatible
query I rowsort label-7285
SELECT ALL - 52 / + + 32
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7286
SELECT ALL 66 * + 87, + CAST( + 55 AS SIGNED ) + 33 + 64 * - 55 AS col2, - 51 * + - 1 col1
----
5742
-3432
51

skipif mysql # not compatible
query III rowsort label-7286
SELECT ALL 66 * + 87, + CAST ( + 55 AS INTEGER ) + 33 + 64 * - 55 AS col2, - 51 * + - 1 col1
----
5742
-3432
51

query I rowsort
SELECT + - COALESCE ( 31, 19 * - + 34 + 7 * 0 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT ALL - COUNT( * ) * 24 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL - COUNT ( * ) * 24 AS col1
----
-24

query I rowsort
SELECT + ( 58 ) + 68
----
126

query I rowsort
SELECT DISTINCT 83 * - 49
----
-4067

query I rowsort
SELECT ALL 42 * - 51 * 48 AS col0
----
-102816

query I rowsort
SELECT 39 + - 36 col2
----
3

query I rowsort
SELECT 54 + 24
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT CASE + 16 WHEN + 54 THEN 15 END * + MIN( DISTINCT + - 97 ) + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7294
SELECT CASE + 16 WHEN + 54 THEN 15 END * + MIN ( DISTINCT + - 97 ) + - 72
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7295
SELECT ALL + 50 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT ALL + 50 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 74 + - 82
----
-8

query I rowsort
SELECT ALL 0 + - 59 * + 34
----
-2006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7298
SELECT CAST( + + 29 AS SIGNED ) + + 75 + COUNT( * ) + COUNT( * ) * 80 * - COUNT( * ) - + + 44 + 46 DIV + 70 * 53 * + 80 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-7298
SELECT CAST ( + + 29 AS INTEGER ) + + 75 + COUNT ( * ) + COUNT ( * ) * 80 * - COUNT ( * ) - + + 44 + 46 / + 70 * 53 * + 80 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT SUM( DISTINCT 31 ) + COUNT( * ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-7299
SELECT SUM ( DISTINCT 31 ) + COUNT ( * ) AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7300
SELECT ( CAST( + 8 AS SIGNED ) ) * - 65
----
-520

skipif mysql # not compatible
query I rowsort label-7300
SELECT ( CAST ( + 8 AS INTEGER ) ) * - 65
----
-520

query I rowsort
SELECT ALL 22 + + 23
----
45

query I rowsort
SELECT ALL 93 * - 53 AS col0
----
-4929

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7303
SELECT 98 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7303
SELECT 98 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT ALL + 72 + COUNT( DISTINCT + 46 ) + 97
----
170

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL + 72 + COUNT ( DISTINCT + 46 ) + 97
----
170

query II rowsort
SELECT DISTINCT - - 44, + 11 AS col0
----
44
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT + COUNT( * ) * + + 79 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-7306
SELECT + COUNT ( * ) * + + 79 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT + ( - 60 ) * 97 * COUNT( * )
----
-5820

skipif mysql # not compatible
query I rowsort label-7307
SELECT + ( - 60 ) * 97 * COUNT ( * )
----
-5820

onlyif mysql # DIV for integer division: 
query I rowsort label-7308
SELECT DISTINCT - 47 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT - 47 / - 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT - COUNT( * ) + + + 68 col2
----
67

skipif mysql # not compatible
query I rowsort label-7309
SELECT - COUNT ( * ) + + + 68 col2
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-7310
SELECT COUNT( * ) AS col0, + COUNT( * ) + + - 47 AS col0
----
1
-46

skipif mysql # not compatible
query II rowsort label-7310
SELECT COUNT ( * ) AS col0, + COUNT ( * ) + + - 47 AS col0
----
1
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7311
SELECT DISTINCT - NULLIF ( + CAST( NULL AS SIGNED ), + SUM( ALL + - 24 ) + - 38 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7311
SELECT DISTINCT - NULLIF ( + CAST ( NULL AS INTEGER ), + SUM ( ALL + - 24 ) + - 38 ) col0
----
NULL

query I rowsort
SELECT 95 * + 78 col2
----
7410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7313
SELECT DISTINCT 62 * - ( - 72 ) - - 53 * 10 - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT 62 * - ( - 72 ) - - 53 * 10 - + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7314
SELECT ALL - + 51 AS col1, COUNT( * ) AS col0
----
-51
1

skipif mysql # not compatible
query II rowsort label-7314
SELECT ALL - + 51 AS col1, COUNT ( * ) AS col0
----
-51
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7315
SELECT ( CAST( + 57 AS SIGNED ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-7315
SELECT ( CAST ( + 57 AS INTEGER ) ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT ALL + MAX( DISTINCT + + 8 ) * 6 * COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL + MAX ( DISTINCT + + 8 ) * 6 * COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT + 34 * - - 72 * - + ( + + MIN( DISTINCT - 77 ) ) * COUNT( * )
----
188496

skipif mysql # not compatible
query I rowsort label-7317
SELECT + 34 * - - 72 * - + ( + + MIN ( DISTINCT - 77 ) ) * COUNT ( * )
----
188496

query I rowsort
SELECT ALL - + ( - 28 ) AS col0
----
28

query I rowsort
SELECT - 24 * + 36 + + + 47 + + 67 * + 74 * + - 2 - - - 99 AS col2
----
-10832

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT - COUNT( ALL + 72 ) + COUNT( * ) * - 85 + + 60 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-7320
SELECT - COUNT ( ALL + 72 ) + COUNT ( * ) * - 85 + + 60 AS col0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7321
SELECT - CAST( NULL AS SIGNED ) * - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT - CAST ( NULL AS INTEGER ) * - 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT - 3 * - - COUNT( * ) + - + SUM( DISTINCT 41 ) + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-7322
SELECT - 3 * - - COUNT ( * ) + - + SUM ( DISTINCT 41 ) + COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-7323
SELECT + COUNT( 24 ), - COUNT( * ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-7323
SELECT + COUNT ( 24 ), - COUNT ( * ) AS col0
----
1
-1

query II rowsort
SELECT 29 AS col0, ( - 17 ) * + 71 * 2
----
29
-2414

query II rowsort
SELECT + 12 AS col0, + CASE + 19 WHEN - 2 + 28 THEN + 23 * + 0 + + - 40 END
----
12
NULL

query I rowsort
SELECT DISTINCT + ( 71 ) + 84 AS col2
----
155

query I rowsort
SELECT + ( 67 ) * + - 68 - 47 + ( - 15 )
----
-4618

onlyif mysql # aggregate syntax: 
query II rowsort label-7328
SELECT - 70 col2, - COUNT( * ) AS col1
----
-70
-1

skipif mysql # not compatible
query II rowsort label-7328
SELECT - 70 col2, - COUNT ( * ) AS col1
----
-70
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7329
SELECT ALL - 91 DIV + - CAST( - 50 AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL - 91 / + - CAST ( - 50 AS INTEGER ) col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7330
SELECT + 71 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-7330
SELECT + 71 / 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT ALL 82 + COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL 82 + COUNT ( * ) AS col1
----
83

query I rowsort
SELECT + 88 * - NULLIF ( + 53, - 45 * + - 22 ) AS col0
----
-4664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7333
SELECT ALL + 19 + 65 + + - 10 * COUNT( * ) - 28 DIV + 82 - + 51 + - 15
----
8

skipif mysql # not compatible
query I rowsort label-7333
SELECT ALL + 19 + 65 + + - 10 * COUNT ( * ) - 28 / + 82 - + 51 + - 15
----
8

query I rowsort
SELECT + 23 * + - 59 * + - 30 AS col2
----
40710

query I rowsort
SELECT ALL 29 * - + ( 85 ) col1
----
-2465

query II rowsort
SELECT 39, 56 col0
----
39
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7337
SELECT + 40 DIV - - 42 * COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-7337
SELECT + 40 / - - 42 * COUNT ( * ) col2
----
0

query I rowsort
SELECT ALL COALESCE ( 25, NULLIF ( + - 74, - 72 ) ) + 58 AS col2
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7339
SELECT - COUNT( * ) col0, COUNT( * ) * 66 * 69 * - 39 * ( - 98 ) AS col2
----
-1
17405388

skipif mysql # not compatible
query II rowsort label-7339
SELECT - COUNT ( * ) col0, COUNT ( * ) * 66 * 69 * - 39 * ( - 98 ) AS col2
----
-1
17405388

query II rowsort
SELECT ALL NULLIF ( ( + - 79 ), + 13 ) AS col0, - 95 col0
----
-79
-95

query I rowsort
SELECT DISTINCT + 2 + - 83 AS col0
----
-81

query I rowsort
SELECT - NULLIF ( - 74, + 33 ) AS col1
----
74

onlyif mysql # DIV for integer division: 
query II rowsort label-7343
SELECT ALL 87 + 49 DIV - ( + 2 ) AS col1, - 92
----
63
-92

skipif mysql # not compatible
query II rowsort label-7343
SELECT ALL 87 + 49 / - ( + 2 ) AS col1, - 92
----
63
-92

query I rowsort
SELECT - NULLIF ( + 47, + 78 ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT SUM( - - 99 )
----
99

skipif mysql # not compatible
query I rowsort label-7345
SELECT SUM ( - - 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT + 2 - - COUNT( + 49 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7346
SELECT + 2 - - COUNT ( + 49 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7347
SELECT ALL - 81 AS col2, COUNT( * ) * - MAX( DISTINCT - + 21 ) col1
----
-81
21

skipif mysql # not compatible
query II rowsort label-7347
SELECT ALL - 81 AS col2, COUNT ( * ) * - MAX ( DISTINCT - + 21 ) col1
----
-81
21

query I rowsort
SELECT + 46 + - 84
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7349
SELECT + NULLIF ( + COUNT( * ), + COALESCE ( + - CAST( - - 92 AS SIGNED ), 19, + MIN( + 41 ) + 48 ) ) * 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-7349
SELECT + NULLIF ( + COUNT ( * ), + COALESCE ( + - CAST ( - - 92 AS INTEGER ), 19, + MIN ( + 41 ) + 48 ) ) * 57 AS col0
----
57

query II rowsort
SELECT + 36 AS col1, - 32 - - 36 + 66
----
36
70

query I rowsort
SELECT ALL 12 * + 19 - 46 * - 84 AS col1
----
4092

query I rowsort
SELECT DISTINCT 61 * - 45 + 60 + - 6 AS col0
----
-2691

onlyif mysql # DIV for integer division: 
query I rowsort label-7353
SELECT + 18 DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-7353
SELECT + 18 / + 49
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7354
SELECT DISTINCT - COUNT( * ) DIV - ( 88 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT - COUNT ( * ) / - ( 88 ) col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7355
SELECT + 84 DIV + + COALESCE ( - 7, - 19 * - 9, - 14 )
----
-12

skipif mysql # not compatible
query I rowsort label-7355
SELECT + 84 / + + COALESCE ( - 7, - 19 * - 9, - 14 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7356
SELECT DISTINCT - + 55 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7356
SELECT DISTINCT - + 55 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT ALL + MAX( DISTINCT + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL + MAX ( DISTINCT + 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT - + SUM( + 64 ) * - 94 * + - 58
----
-348928

skipif mysql # not compatible
query I rowsort label-7358
SELECT - + SUM ( + 64 ) * - 94 * + - 58
----
-348928

query I rowsort
SELECT COALESCE ( - + 17, - 3 * + 71 )
----
-17

query I rowsort
SELECT - 95 * - - 63
----
-5985

query I rowsort
SELECT DISTINCT 27 * + 18 + - + 70 AS col1
----
416

query I rowsort
SELECT CASE + 46 WHEN + 64 THEN NULL ELSE + 32 END
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT ALL - 87 * SUM( - 80 ) AS col2
----
6960

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL - 87 * SUM ( - 80 ) AS col2
----
6960

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7364
SELECT - 59 + + COUNT( * ) AS col2, + COUNT( * ) DIV - + COUNT( * )
----
-58
-1

skipif mysql # not compatible
query II rowsort label-7364
SELECT - 59 + + COUNT ( * ) AS col2, + COUNT ( * ) / - + COUNT ( * )
----
-58
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7365
SELECT - 65 * CAST( NULL AS SIGNED ) * - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7365
SELECT - 65 * CAST ( NULL AS INTEGER ) * - 7 AS col0
----
NULL

query I rowsort
SELECT - 23 + + 30 + 12
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT ALL 70 * - COALESCE ( + 10, + 16 ) * + COUNT( ALL + 87 ) + + 10 + + - 2 * + 72 col0
----
-834

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL 70 * - COALESCE ( + 10, + 16 ) * + COUNT ( ALL + 87 ) + + 10 + + - 2 * + 72 col0
----
-834

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7368
SELECT ALL CAST( + 16 AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL CAST ( + 16 AS INTEGER ) AS col0
----
16

query I rowsort
SELECT - 98 * - - 15
----
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT + 75 + - 65 + + 21 * + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-7370
SELECT + 75 + - 65 + + 21 * + COUNT ( * )
----
31

query I rowsort
SELECT ALL + 25 * - 61 * - + 6 col0
----
9150

query I rowsort
SELECT - - 58 * + 44 * + 41 * + 23 AS col2
----
2406536

query I rowsort
SELECT DISTINCT 78 * 58 + - 67
----
4457

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT ALL + MAX( 56 ) * - 81 AS col1
----
-4536

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL + MAX ( 56 ) * - 81 AS col1
----
-4536

query I rowsort
SELECT - + 25 * 5 col2
----
-125

onlyif mysql # DIV for integer division: 
query II rowsort label-7376
SELECT ALL - ( 37 ), - ( - + 66 ) DIV + 53 AS col2
----
-37
1

skipif mysql # not compatible
query II rowsort label-7376
SELECT ALL - ( 37 ), - ( - + 66 ) / + 53 AS col2
----
-37
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7377
SELECT CAST( - - 63 AS SIGNED ) AS col2, 86 * - 93 * - 31 AS col1, - 31 * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
63
247938
NULL

skipif mysql # not compatible
query III rowsort label-7377
SELECT CAST ( - - 63 AS INTEGER ) AS col2, 86 * - 93 * - 31 AS col1, - 31 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
63
247938
NULL

query II rowsort
SELECT ALL - - 28 * - + 20, 84 * - 30 AS col2
----
-560
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT + MIN( + 60 ) * - 51 * 29 AS col2
----
-88740

skipif mysql # not compatible
query I rowsort label-7379
SELECT + MIN ( + 60 ) * - 51 * 29 AS col2
----
-88740

query I rowsort
SELECT DISTINCT 74 + + 1
----
75

query I rowsort
SELECT ALL 83 * - - 42 * - - 89
----
310254

onlyif mysql # DIV for integer division: 
query I rowsort label-7382
SELECT DISTINCT - 0 + + + 36 + + 80 DIV + 84
----
36

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT - 0 + + + 36 + + 80 / + 84
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-7383
SELECT 86, - COALESCE ( - + 14, - 46 * + COUNT( * ) ) AS col2
----
86
14

skipif mysql # not compatible
query II rowsort label-7383
SELECT 86, - COALESCE ( - + 14, - 46 * + COUNT ( * ) ) AS col2
----
86
14

query I rowsort
SELECT DISTINCT 18 * + 37 AS col0
----
666

query II rowsort
SELECT + 68 AS col2, - 85 AS col2
----
68
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7386
SELECT 19 * + - CAST( - 90 AS SIGNED ) + + 51, 55 AS col1
----
1761
55

skipif mysql # not compatible
query II rowsort label-7386
SELECT 19 * + - CAST ( - 90 AS INTEGER ) + + 51, 55 AS col1
----
1761
55

onlyif mysql # DIV for integer division: 
query I rowsort label-7387
SELECT ALL 47 + - 15 + - 28 + + - 50 DIV - 19
----
6

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL 47 + - 15 + - 28 + + - 50 / - 19
----
6

query I rowsort
SELECT ALL + 28 + 8 + 38 * - 96 * 46 + + 98 * - + 57 AS col1
----
-173358

query I rowsort
SELECT ( - 83 ) * + + 78 + + - 74 - - + 10 AS col1
----
-6538

query I rowsort
SELECT DISTINCT - CASE 42 WHEN + + 66 + 41 + - 14 THEN - 5 * + + 35 END
----
NULL

query I rowsort
SELECT ALL - ( ( + + 38 ) ) * + - 76
----
2888

onlyif mysql # aggregate syntax: 
query II rowsort label-7392
SELECT - 34 AS col0, COUNT( * ) AS col2
----
-34
1

skipif mysql # not compatible
query II rowsort label-7392
SELECT - 34 AS col0, COUNT ( * ) AS col2
----
-34
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7393
SELECT - 89, 15 + - - 31 * - + 10 - COUNT( * ) + + 6 * - + 20 col1
----
-89
-416

skipif mysql # not compatible
query II rowsort label-7393
SELECT - 89, 15 + - - 31 * - + 10 - COUNT ( * ) + + 6 * - + 20 col1
----
-89
-416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7394
SELECT ALL + CAST( - 43 AS DECIMAL ) - + 98 * - + CAST( NULL AS SIGNED ) + MIN( DISTINCT + 9 ), - 0 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7394
SELECT ALL + CAST ( - 43 AS REAL ) - + 98 * - + CAST ( NULL AS INTEGER ) + MIN ( DISTINCT + 9 ), - 0 AS col0
----
NULL
0

query I rowsort
SELECT 24 * + 91 * + + 12
----
26208

query II rowsort
SELECT - 99 AS col1, + 54 - + ( - + 66 ) AS col0
----
-99
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT ALL - COUNT( DISTINCT 22 ) - + + 53 + - MAX( DISTINCT - 23 ) + 50 col2
----
19

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL - COUNT ( DISTINCT 22 ) - + + 53 + - MAX ( DISTINCT - 23 ) + 50 col2
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-7398
SELECT 8 * SUM( ALL - 20 ) AS col0, - ( 29 ) col1
----
-160
-29

skipif mysql # not compatible
query II rowsort label-7398
SELECT 8 * SUM ( ALL - 20 ) AS col0, - ( 29 ) col1
----
-160
-29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7399
SELECT - COALESCE ( - 34, - ( - 41 ) DIV + CAST( + + NULLIF ( - ( + + 13 ), 70 ) AS SIGNED ) + - + 12 )
----
34

skipif mysql # not compatible
query I rowsort label-7399
SELECT - COALESCE ( - 34, - ( - 41 ) / + CAST ( + + NULLIF ( - ( + + 13 ), 70 ) AS INTEGER ) + - + 12 )
----
34

query I rowsort
SELECT - 37 - 72 AS col1
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7401
SELECT - CAST( - + 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-7401
SELECT - CAST ( - + 21 AS INTEGER )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7402
SELECT ALL + 68 DIV 55
----
1

skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL + 68 / 55
----
1

query I rowsort
SELECT - + 47 col0
----
-47

query II rowsort
SELECT ALL - 80, - 33 * - 15 AS col1
----
-80
495

query I rowsort
SELECT DISTINCT 21 * 7
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-7406
SELECT CASE + 22 WHEN + 0 THEN NULL ELSE + 46 + + + COUNT( * ) END - 43 AS col1, 3 * + - 12
----
4
-36

skipif mysql # not compatible
query II rowsort label-7406
SELECT CASE + 22 WHEN + 0 THEN NULL ELSE + 46 + + + COUNT ( * ) END - 43 AS col1, 3 * + - 12
----
4
-36

query I rowsort
SELECT + 44 + - 75
----
-31

query I rowsort
SELECT DISTINCT - 83 * - 65 col2
----
5395

query I rowsort
SELECT DISTINCT 6 + + 83
----
89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7410
SELECT + CAST( NULL AS DECIMAL ) * - 73 * + - 86 + - ( + SUM( ALL ( + - 99 ) ) ) - 89 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7410
SELECT + CAST ( NULL AS REAL ) * - 73 * + - 86 + - ( + SUM ( ALL ( + - 99 ) ) ) - 89 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7411
SELECT DISTINCT + 23 * + CAST( NULL AS SIGNED ) * 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT + 23 * + CAST ( NULL AS INTEGER ) * 2 AS col1
----
NULL

query I rowsort
SELECT ALL - + NULLIF ( - ( + 50 ), + + 6 )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7413
SELECT ALL - COALESCE ( - + 58, + 69 + - CAST( NULL AS SIGNED ) * + 97, - + CAST( NULL AS SIGNED ) ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL - COALESCE ( - + 58, + 69 + - CAST ( NULL AS INTEGER ) * + 97, - + CAST ( NULL AS INTEGER ) ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT 67 * - ( + 60 ) * - + COUNT( * )
----
4020

skipif mysql # not compatible
query I rowsort label-7414
SELECT 67 * - ( + 60 ) * - + COUNT ( * )
----
4020

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT NULLIF ( COUNT( * ), 29 / - 32 * + + NULLIF ( + + MAX( + 24 ), COUNT( + 3 ) * + 66 + + 75 * 89 ) - - + 28 ) + + - ( - - 22 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-7415
SELECT NULLIF ( COUNT ( * ), 29 / - 32 * + + NULLIF ( + + MAX ( + 24 ), COUNT ( + 3 ) * + 66 + + 75 * 89 ) - - + 28 ) + + - ( - - 22 ) AS col1
----
-21

query I rowsort
SELECT 33 * - + 5 * - 97 + + 50
----
16055

query I rowsort
SELECT DISTINCT - ( + ( - 92 ) ) AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7418
SELECT DISTINCT NULLIF ( - 54, + 22 * + CAST( NULL AS SIGNED ) ) - + - 57 + 50 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-7418
SELECT DISTINCT NULLIF ( - 54, + 22 * + CAST ( NULL AS INTEGER ) ) - + - 57 + 50 AS col1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7419
SELECT CAST( NULL AS SIGNED ) * - - 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7419
SELECT CAST ( NULL AS INTEGER ) * - - 93 AS col1
----
NULL

query I rowsort
SELECT 98 + - 50 + + + 21 AS col2
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7421
SELECT COUNT( * ) * + + 56, + 71 AS col0
----
56
71

skipif mysql # not compatible
query II rowsort label-7421
SELECT COUNT ( * ) * + + 56, + 71 AS col0
----
56
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT ALL + SUM( DISTINCT - 89 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL + SUM ( DISTINCT - 89 ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT + 62 + - COUNT( * ) + - 44
----
17

skipif mysql # not compatible
query I rowsort label-7423
SELECT + 62 + - COUNT ( * ) + - 44
----
17

query I rowsort
SELECT ALL + - 53 * + 45 AS col1
----
-2385

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT - ( ( - + COUNT( * ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7425
SELECT - ( ( - + COUNT ( * ) ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT 50 + - 70
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT - ( - + 88 ) + + COUNT( * ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-7427
SELECT - ( - + 88 ) + + COUNT ( * ) AS col0
----
89

query I rowsort
SELECT - 11 + - 24 * - + 24
----
565

query I rowsort
SELECT - 64 * + - 72
----
4608

query I rowsort
SELECT ALL NULLIF ( + 35, + + 91 ) AS col0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7431
SELECT ALL - 21 + COUNT( * ) DIV - + 32 + + 44 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL - 21 + COUNT ( * ) / - + 32 + + 44 AS col1
----
23

query II rowsort
SELECT DISTINCT + + 36 + - 68 col0, 29 AS col2
----
-32
29

query I rowsort
SELECT + CASE 39 WHEN + 29 THEN NULL ELSE 46 END AS col1
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7434
SELECT ALL + 30 + + + 40 DIV + 52 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL + 30 + + + 40 / + 52 AS col2
----
30

query I rowsort
SELECT - - 24 * - + 51
----
-1224

onlyif mysql # DIV for integer division: 
query I rowsort label-7436
SELECT - 24 DIV - 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7436
SELECT - 24 / - 36 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7437
SELECT - 36 * - + COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT - 36 * - + COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT COALESCE ( + 11, - 4 + - 36 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT ALL + 56 * - COUNT( * ) * - + 24
----
1344

skipif mysql # not compatible
query I rowsort label-7439
SELECT ALL + 56 * - COUNT ( * ) * - + 24
----
1344

query I rowsort
SELECT ALL - 29 * + 51 AS col0
----
-1479

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT COALESCE ( + 60, - COUNT( * ) ) col0
----
60

skipif mysql # not compatible
query I rowsort label-7441
SELECT COALESCE ( + 60, - COUNT ( * ) ) col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT ALL + COUNT( DISTINCT - + 72 ) * + 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL + COUNT ( DISTINCT - + 72 ) * + 57 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT CASE + 65 WHEN 48 + - COUNT( * ) + + 33 THEN - - 77 * + - 36 * + COALESCE ( + + 74, 60 ) * COUNT( * ) WHEN + + 2 THEN - COUNT( * ) ELSE + 12 + - - 15 + 58 + + 67 * 86 END
----
5847

skipif mysql # not compatible
query I rowsort label-7443
SELECT CASE + 65 WHEN 48 + - COUNT ( * ) + + 33 THEN - - 77 * + - 36 * + COALESCE ( + + 74, 60 ) * COUNT ( * ) WHEN + + 2 THEN - COUNT ( * ) ELSE + 12 + - - 15 + 58 + + 67 * 86 END
----
5847

query I rowsort
SELECT + 83 * - 48 + - - 43 AS col0
----
-3941

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT + 34 * + SUM( + - 73 )
----
-2482

skipif mysql # not compatible
query I rowsort label-7445
SELECT + 34 * + SUM ( + - 73 )
----
-2482

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT + MIN( + 10 ) + - + 88 col1
----
-78

skipif mysql # not compatible
query I rowsort label-7446
SELECT + MIN ( + 10 ) + - + 88 col1
----
-78

query I rowsort
SELECT DISTINCT ( + 96 ) * + 57
----
5472

query I rowsort
SELECT - 98 * - 34 AS col2
----
3332

query I rowsort
SELECT ALL + ( + 16 ) AS col1
----
16

query I rowsort
SELECT + + 46 * - COALESCE ( - 41, - 62, 72 ) * + - 53 - - + 53 - 25 * - 24
----
-99305

query I rowsort
SELECT ALL - 41 + - - 12 + - - 30 + + 75
----
76

query I rowsort
SELECT - ( + 93 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT ALL - MAX( 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL - MAX ( 52 )
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-7454
SELECT + 82 * - - 57 + - - NULLIF ( 54, + COUNT( * ) ), 55 AS col1
----
4728
55

skipif mysql # not compatible
query II rowsort label-7454
SELECT + 82 * - - 57 + - - NULLIF ( 54, + COUNT ( * ) ), 55 AS col1
----
4728
55

onlyif mysql # DIV for integer division: 
query I rowsort label-7455
SELECT DISTINCT + 58 + + 76 + - 1 DIV + + 54 AS col2
----
134

skipif mysql # not compatible
query I rowsort label-7455
SELECT DISTINCT + 58 + + 76 + - 1 / + + 54 AS col2
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-7456
SELECT + - MAX( ALL + 58 ) - - 42 AS col2, + 5 AS col2
----
-16
5

skipif mysql # not compatible
query II rowsort label-7456
SELECT + - MAX ( ALL + 58 ) - - 42 AS col2, + 5 AS col2
----
-16
5

query I rowsort
SELECT ALL - ( 45 ) + + - 78 AS col0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT ALL - MAX( DISTINCT + 69 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL - MAX ( DISTINCT + 69 ) AS col2
----
-69

query I rowsort
SELECT ALL + 34 * + 4 * + - 83 AS col0
----
-11288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7460
SELECT ALL + MIN( ALL - 57 ) + - CAST( NULL AS SIGNED ) * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL + MIN ( ALL - 57 ) + - CAST ( NULL AS INTEGER ) * 67
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7461
SELECT + 29 + NULLIF ( 58, + 41 * COUNT( * ) - + 56 ) * ( + 52 ) + + - SUM( DISTINCT 9 ) + + 69 * - ( 72 ) - - + 55 DIV 5
----
-1921

skipif mysql # not compatible
query I rowsort label-7461
SELECT + 29 + NULLIF ( 58, + 41 * COUNT ( * ) - + 56 ) * ( + 52 ) + + - SUM ( DISTINCT 9 ) + + 69 * - ( 72 ) - - + 55 / 5
----
-1921

query I rowsort
SELECT - 98 - ( - 78 ) * - - 44
----
3334

query I rowsort
SELECT ALL 68 * - 60
----
-4080

query I rowsort
SELECT + 42 + 44 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT - NULLIF ( + - COUNT( * ), - + ( + 19 ) + + MIN( 50 ) + + COUNT( * ) + - - 53 ) - 40
----
-39

skipif mysql # not compatible
query I rowsort label-7465
SELECT - NULLIF ( + - COUNT ( * ), - + ( + 19 ) + + MIN ( 50 ) + + COUNT ( * ) + - - 53 ) - 40
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-7466
SELECT DISTINCT - COUNT( * ) * 37 * 83 * 79 AS col1, 81
----
-242609
81

skipif mysql # not compatible
query II rowsort label-7466
SELECT DISTINCT - COUNT ( * ) * 37 * 83 * 79 AS col1, 81
----
-242609
81

query II rowsort
SELECT + 95 + 36, - 81 AS col1
----
131
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7468
SELECT + 12 * + - NULLIF ( - COALESCE ( - COUNT( * ), + 8 ), ( + 11 ) - - 57 * CAST( NULL AS SIGNED ) ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-7468
SELECT + 12 * + - NULLIF ( - COALESCE ( - COUNT ( * ), + 8 ), ( + 11 ) - - 57 * CAST ( NULL AS INTEGER ) ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT ALL + COUNT( DISTINCT + 2 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL + COUNT ( DISTINCT + 2 ) AS col2
----
1

query II rowsort
SELECT ALL + 28 col0, - 64 + 31
----
28
-33

query III rowsort
SELECT DISTINCT + 31 AS col1, 71, + 17 AS col2
----
31
71
17

query I rowsort
SELECT 70 * + + 90 * 47 + 2 + 11 + - 97
----
296016

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT - 82 * - + MIN( - 68 ) AS col2
----
-5576

skipif mysql # not compatible
query I rowsort label-7473
SELECT - 82 * - + MIN ( - 68 ) AS col2
----
-5576

query II rowsort
SELECT ALL + 44 AS col0, ( 44 ) col1
----
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7475
SELECT + 74, + CAST( NULL AS SIGNED ) * 82 AS col2
----
74
NULL

skipif mysql # not compatible
query II rowsort label-7475
SELECT + 74, + CAST ( NULL AS INTEGER ) * 82 AS col2
----
74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT - COUNT( * ) * - 52 * - 77
----
-4004

skipif mysql # not compatible
query I rowsort label-7476
SELECT - COUNT ( * ) * - 52 * - 77
----
-4004

query I rowsort
SELECT - 52 * + 73
----
-3796

onlyif mysql # aggregate syntax: 
query II rowsort label-7478
SELECT - 28 * COUNT( * ) + - NULLIF ( + 11, - 27 - 34 ) AS col1, 23 col1
----
-39
23

skipif mysql # not compatible
query II rowsort label-7478
SELECT - 28 * COUNT ( * ) + - NULLIF ( + 11, - 27 - 34 ) AS col1, 23 col1
----
-39
23

query I rowsort
SELECT - 22 * + - 2
----
44

query I rowsort
SELECT ( + - 5 )
----
-5

query I rowsort
SELECT ALL + 25 * + 62
----
1550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7482
SELECT ALL - COALESCE ( + COUNT( * ), 99 + 34 * 68 * + - ( - + ( - 53 ) ) ) / - AVG ( ALL + 37 ) + 85 * - + 29 * CAST( + 54 AS SIGNED ) * + COUNT( ALL + + 95 ) * + + 1 * + 51 * + + CAST( NULL AS SIGNED ) * - SUM( DISTINCT + 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL - COALESCE ( + COUNT ( * ), 99 + 34 * 68 * + - ( - + ( - 53 ) ) ) / - AVG ( ALL + 37 ) + 85 * - + 29 * CAST ( + 54 AS INTEGER ) * + COUNT ( ALL + + 95 ) * + + 1 * + 51 * + + CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT + 83 )
----
NULL

query I rowsort
SELECT 25 * + 78 + 79 AS col2
----
2029

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT DISTINCT + MAX( ALL 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-7484
SELECT DISTINCT + MAX ( ALL 84 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT DISTINCT 28 * NULLIF ( - COUNT( * ), + 91 * SUM( - - COALESCE ( + 72, 97 ) ) * 17 + + 49 * - - 45 ) + - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT 28 * NULLIF ( - COUNT ( * ), + 91 * SUM ( - - COALESCE ( + 72, 97 ) ) * 17 + + 49 * - - 45 ) + - COUNT ( * )
----
-29

query II rowsort
SELECT ALL + 7 AS col1, + 59 AS col1
----
7
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT ALL + ( + - NULLIF ( - + MIN( - 91 ), + 99 ) ) + 9 * 23 * - - 77
----
15848

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL + ( + - NULLIF ( - + MIN ( - 91 ), + 99 ) ) + 9 * 23 * - - 77
----
15848

query I rowsort
SELECT DISTINCT - + 19 + + 61
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7489
SELECT - 83 + + 94 DIV + 40 + + + 27 + 2 - + 18 - 69 * - - 12
----
-898

skipif mysql # not compatible
query I rowsort label-7489
SELECT - 83 + + 94 / + 40 + + + 27 + 2 - + 18 - 69 * - - 12
----
-898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7490
SELECT SUM( DISTINCT + + 5 ) * - 76 + 31 - + - COALESCE ( + CAST( NULL AS SIGNED ), 55, - 45 ) * + + 7 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-7490
SELECT SUM ( DISTINCT + + 5 ) * - 76 + 31 - + - COALESCE ( + CAST ( NULL AS INTEGER ), 55, - 45 ) * + + 7 AS col1
----
36

query II rowsort
SELECT DISTINCT - + 23 col1, + 13 * 97 AS col0
----
-23
1261

query I rowsort
SELECT - ( + 81 ) + - 20 AS col1
----
-101

query I rowsort
SELECT + 66 + - 66 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7494
SELECT ALL + 29 + 85 DIV - 72 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL + 29 + 85 / - 72 AS col0
----
28

query II rowsort
SELECT DISTINCT 73 AS col2, 1
----
73
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7496
SELECT ALL - AVG ( DISTINCT - + 31 ) + CAST( NULL AS SIGNED ) / - CAST( + 78 AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL - AVG ( DISTINCT - + 31 ) + CAST ( NULL AS INTEGER ) / - CAST ( + 78 AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT + 98 * + 80 + 38 * 40 + + COUNT( * ) + - MAX( + 70 ) + - - 99 * 94 AS col1
----
18597

skipif mysql # not compatible
query I rowsort label-7497
SELECT + 98 * + 80 + 38 * 40 + + COUNT ( * ) + - MAX ( + 70 ) + - - 99 * 94 AS col1
----
18597

onlyif mysql # DIV for integer division: 
query I rowsort label-7498
SELECT ALL - 85 DIV 16 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL - 85 / 16 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT 47 + + - 67 * + 15 * + + COUNT( * )
----
-958

skipif mysql # not compatible
query I rowsort label-7499
SELECT 47 + + - 67 * + 15 * + + COUNT ( * )
----
-958

query I rowsort
SELECT ALL ( + 81 ) AS col2
----
81

query I rowsort
SELECT 93 + + 30 * + - 39 col1
----
-1077

query I rowsort
SELECT DISTINCT - 35 - + - 24 AS col2
----
-11

query I rowsort
SELECT + ( + - 38 ) + 30 AS col1
----
-8

query I rowsort
SELECT 16 + - 64 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT ( - COUNT( * ) ) + + + 91 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-7505
SELECT ( - COUNT ( * ) ) + + + 91 AS col1
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7506
SELECT + 49 DIV 28 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7506
SELECT + 49 / 28 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7507
SELECT ALL 31 AS col0, + 31 + - 73 * + CAST( - - CASE + COUNT( * ) WHEN + - 28 THEN NULL WHEN + COUNT( - 15 ) THEN + 85 ELSE + CAST( + ( + 10 ) AS SIGNED ) END AS SIGNED )
----
31
-6174

skipif mysql # not compatible
query II rowsort label-7507
SELECT ALL 31 AS col0, + 31 + - 73 * + CAST ( - - CASE + COUNT ( * ) WHEN + - 28 THEN NULL WHEN + COUNT ( - 15 ) THEN + 85 ELSE + CAST ( + ( + 10 ) AS INTEGER ) END AS INTEGER )
----
31
-6174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7508
SELECT DISTINCT COUNT( * ) DIV + - MIN( - + 42 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT COUNT ( * ) / + - MIN ( - + 42 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7509
SELECT DISTINCT 53 DIV NULLIF ( 13, + ( + - 40 ) * 19 )
----
4

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT 53 / NULLIF ( 13, + ( + - 40 ) * 19 )
----
4

query I rowsort
SELECT DISTINCT - 11 * + 42 AS col0
----
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT 18 * + MIN( ALL - 20 ) AS col0
----
-360

skipif mysql # not compatible
query I rowsort label-7511
SELECT 18 * + MIN ( ALL - 20 ) AS col0
----
-360

query II rowsort
SELECT 8 * - 55 AS col0, 48 AS col0
----
-440
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7513
SELECT 30 DIV - 23 + + COUNT( * ) + - 29 + - 34 * + 51
----
-1763

skipif mysql # not compatible
query I rowsort label-7513
SELECT 30 / - 23 + + COUNT ( * ) + - 29 + - 34 * + 51
----
-1763

query I rowsort
SELECT ALL 34 + - 9
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT ALL - CASE - COUNT( * ) WHEN AVG ( - COALESCE ( + + 18, 40 + + 76 ) ) THEN 41 + 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL - CASE - COUNT ( * ) WHEN AVG ( - COALESCE ( + + 18, 40 + + 76 ) ) THEN 41 + 70 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7516
SELECT - 24 * - ( - 61 ) + - + MAX( DISTINCT - - 40 ) DIV 15 AS col2
----
-1466

skipif mysql # not compatible
query I rowsort label-7516
SELECT - 24 * - ( - 61 ) + - + MAX ( DISTINCT - - 40 ) / 15 AS col2
----
-1466

onlyif mysql # DIV for integer division: 
query I rowsort label-7517
SELECT 39 DIV - + 69 * + NULLIF ( + + 53, 48 - - 84 ) - + - 64 + + - 67 + - 57 DIV + - ( - 16 )
----
-6

skipif mysql # not compatible
query I rowsort label-7517
SELECT 39 / - + 69 * + NULLIF ( + + 53, 48 - - 84 ) - + - 64 + + - 67 + - 57 / + - ( - 16 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT DISTINCT ( - + 88 ) + + + MIN( ALL - - 52 )
----
-36

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT ( - + 88 ) + + + MIN ( ALL - - 52 )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7519
SELECT ALL COUNT( 27 ) + 25 DIV - 3
----
-7

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL COUNT ( 27 ) + 25 / - 3
----
-7

query II rowsort
SELECT ALL - ( 66 ) AS col1, 77 * + - 10
----
-66
-770

query I rowsort
SELECT DISTINCT - 49 + - 53 AS col0
----
-102

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7522
SELECT ALL + 94 + + ( - + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL + 94 + + ( - + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT + COUNT( * ) + + 18
----
19

skipif mysql # not compatible
query I rowsort label-7523
SELECT + COUNT ( * ) + + 18
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7524
SELECT + CASE - 96 WHEN - ( + + 31 ) * + 10 + - + 40 THEN NULL WHEN - 24 * + COUNT( * ) * - 34 + - 84 * - - 81 + 89 * + + COUNT( * ) THEN - + 68 + - 72 WHEN 83 + 21 THEN NULL ELSE NULL END * - 69 + ( + CAST( NULL AS SIGNED ) ) - + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7524
SELECT + CASE - 96 WHEN - ( + + 31 ) * + 10 + - + 40 THEN NULL WHEN - 24 * + COUNT ( * ) * - 34 + - 84 * - - 81 + 89 * + + COUNT ( * ) THEN - + 68 + - 72 WHEN 83 + 21 THEN NULL ELSE NULL END * - 69 + ( + CAST ( NULL AS INTEGER ) ) - + 37
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7525
SELECT - 4 * - 54 + - CAST( - + NULLIF ( + 71, - 63 ) AS SIGNED )
----
287

skipif mysql # not compatible
query I rowsort label-7525
SELECT - 4 * - 54 + - CAST ( - + NULLIF ( + 71, - 63 ) AS INTEGER )
----
287

onlyif mysql # DIV for integer division: 
query I rowsort label-7526
SELECT DISTINCT 73 DIV - 37 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT 73 / - 37 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7527
SELECT + CAST( NULL AS SIGNED ) * 40 col2, NULLIF ( - 35, 15 / ( ( + 73 ) ) )
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-7527
SELECT + CAST ( NULL AS INTEGER ) * 40 col2, NULLIF ( - 35, 15 / ( ( + 73 ) ) )
----
NULL
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT ALL + 97 - - 63 * COUNT( * )
----
160

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL + 97 - - 63 * COUNT ( * )
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT ALL + COUNT( * ) - + + 98 + 71
----
-26

skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL + COUNT ( * ) - + + 98 + 71
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-7530
SELECT + MIN( ALL + + 73 ) + - + CASE + COUNT( * ) WHEN + - 7 * - 82 + - + 9 + 44 THEN 44 END * 44 AS col0, 32
----
NULL
32

skipif mysql # not compatible
query II rowsort label-7530
SELECT + MIN ( ALL + + 73 ) + - + CASE + COUNT ( * ) WHEN + - 7 * - 82 + - + 9 + 44 THEN 44 END * 44 AS col0, 32
----
NULL
32

query II rowsort
SELECT - ( - + 48 ) AS col2, 94 AS col0
----
48
94

query II rowsort
SELECT - 20 * + - 13 col0, 57 AS col0
----
260
57

query I rowsort
SELECT 18 - - 94 col2
----
112

query I rowsort
SELECT - 47 - - ( + 97 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-7535
SELECT ALL 86 * + + 32, COUNT( * ) + + - 99 * + - 60 AS col1
----
2752
5941

skipif mysql # not compatible
query II rowsort label-7535
SELECT ALL 86 * + + 32, COUNT ( * ) + + - 99 * + - 60 AS col1
----
2752
5941

query I rowsort
SELECT 2 + 17 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT ALL + COUNT( ALL + + 44 ) * 49 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL + COUNT ( ALL + + 44 ) * 49 AS col0
----
49

query I rowsort
SELECT 92 + + - 56
----
36

query I rowsort
SELECT 27 - - 38 col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT COUNT( * ) + - - ( - + SUM( DISTINCT 83 ) )
----
-82

skipif mysql # not compatible
query I rowsort label-7540
SELECT COUNT ( * ) + - - ( - + SUM ( DISTINCT 83 ) )
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-7541
SELECT ( - 40 ) DIV - 65 * - 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7541
SELECT ( - 40 ) / - 65 * - 11 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7542
SELECT - COUNT( * ), 8 AS col1
----
-1
8

skipif mysql # not compatible
query II rowsort label-7542
SELECT - COUNT ( * ), 8 AS col1
----
-1
8

query II rowsort
SELECT ALL 93 + 93 + - 52, 47 + + 83 * - - 57 col1
----
134
4778

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7544
SELECT DISTINCT ( - 29 ) DIV + 69 + - 58 - - 63 * SUM( CAST( 93 AS SIGNED ) ) + + + 46 AS col2
----
5847

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT ( - 29 ) / + 69 + - 58 - - 63 * SUM ( CAST ( 93 AS INTEGER ) ) + + + 46 AS col2
----
5847

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7545
SELECT DISTINCT + CAST( - 85 AS SIGNED ) * - 20 + - 55 + 85
----
1730

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT + CAST ( - 85 AS INTEGER ) * - 20 + - 55 + 85
----
1730

query I rowsort
SELECT - 20 * + + 28 + - 87 - + 0 AS col0
----
-647

onlyif mysql # DIV for integer division: 
query I rowsort label-7547
SELECT ( + - 0 ) DIV 9 * - - 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7547
SELECT ( + - 0 ) / 9 * - - 44 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7548
SELECT DISTINCT + NULLIF ( 26, - 32 ) * - CAST( NULL AS DECIMAL ) + - 91 / + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-7548
SELECT DISTINCT + NULLIF ( 26, - 32 ) * - CAST ( NULL AS REAL ) + - 91 / + 16
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7549
SELECT CASE 99 WHEN 99 THEN + - COUNT( * ) WHEN - - COUNT( * ) THEN 26 END, 29 AS col0
----
-1
29

skipif mysql # not compatible
query II rowsort label-7549
SELECT CASE 99 WHEN 99 THEN + - COUNT ( * ) WHEN - - COUNT ( * ) THEN 26 END, 29 AS col0
----
-1
29

onlyif mysql # DIV for integer division: 
query I rowsort label-7550
SELECT + 57 + - - ( - 45 ) DIV - 28 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-7550
SELECT + 57 + - - ( - 45 ) / - 28 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT CASE - 80 WHEN - COUNT( * ) * + + 49 - + 52 THEN + 93 * - + 71 WHEN + 3 + + 79 - + - 59 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7551
SELECT CASE - 80 WHEN - COUNT ( * ) * + + 49 - + 52 THEN + 93 * - + 71 WHEN + 3 + + 79 - + - 59 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT 35 * 76 * - COUNT( * ) + + 78 + 56
----
-2526

skipif mysql # not compatible
query I rowsort label-7552
SELECT 35 * 76 * - COUNT ( * ) + + 78 + 56
----
-2526

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT DISTINCT COUNT( * ) * - 77 + + 1 * - 56 AS col1
----
-133

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT COUNT ( * ) * - 77 + + 1 * - 56 AS col1
----
-133

query II rowsort
SELECT - 51, - 19 AS col1
----
-51
-19

query I rowsort
SELECT + + 32 + - 93
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7556
SELECT + + CASE - 83 WHEN + 46 + - - COUNT( * ) - + - 77 + + - NULLIF ( 94, - COUNT( * ) * - + CASE 18 WHEN + 33 * + - ( - - 87 ) THEN NULL WHEN - - 56 THEN + 39 / - 48 + 9 ELSE - 90 + - - CAST( + MIN( ALL 14 ) AS DECIMAL ) * 47 END + + COALESCE ( - 35, + - 39 ) - - + 61 + 55 ) * - 34 * 93 * CAST( NULL AS SIGNED ) THEN NULL WHEN 23 + + - ( - NULLIF ( 80, MIN( - 2 ) ) ) THEN 45 + + 60 ELSE NULL END + 66 / 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7556
SELECT + + CASE - 83 WHEN + 46 + - - COUNT ( * ) - + - 77 + + - NULLIF ( 94, - COUNT ( * ) * - + CASE 18 WHEN + 33 * + - ( - - 87 ) THEN NULL WHEN - - 56 THEN + 39 / - 48 + 9 ELSE - 90 + - - CAST ( + MIN ( ALL 14 ) AS REAL ) * 47 END + + COALESCE ( - 35, + - 39 ) - - + 61 + 55 ) * - 34 * 93 * CAST ( NULL AS INTEGER ) THEN NULL WHEN 23 + + - ( - NULLIF ( 80, MIN ( - 2 ) ) ) THEN 45 + + 60 ELSE NULL END + 66 / 89 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7557
SELECT 66 * CAST( NULL AS SIGNED ) - - COALESCE ( + - 82, - 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7557
SELECT 66 * CAST ( NULL AS INTEGER ) - - COALESCE ( + - 82, - 65 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7558
SELECT - - 8 DIV + + 81 * + - 13, 76 AS col2
----
0
76

skipif mysql # not compatible
query II rowsort label-7558
SELECT - - 8 / + + 81 * + - 13, 76 AS col2
----
0
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7559
SELECT + - 97 * + - 97 - 88 DIV + COUNT( * ) AS col1
----
9321

skipif mysql # not compatible
query I rowsort label-7559
SELECT + - 97 * + - 97 - 88 / + COUNT ( * ) AS col1
----
9321

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT - COUNT( - 87 ) + - - 18
----
17

skipif mysql # not compatible
query I rowsort label-7560
SELECT - COUNT ( - 87 ) + - - 18
----
17

query I rowsort
SELECT - 78 + + + 89 AS col1
----
11

query I rowsort
SELECT - 17 + + - 21 - - 17
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT - - SUM( DISTINCT 70 ) + - 58 + + 44 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-7563
SELECT - - SUM ( DISTINCT 70 ) + - 58 + + 44 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT DISTINCT MAX( - - 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT MAX ( - - 35 ) AS col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7565
SELECT - 42 DIV + MIN( + NULLIF ( - 13, + + 44 ) )
----
3

skipif mysql # not compatible
query I rowsort label-7565
SELECT - 42 / + MIN ( + NULLIF ( - 13, + + 44 ) )
----
3

query I rowsort
SELECT ALL COALESCE ( + 20, - 19 )
----
20

query I rowsort
SELECT ALL + 11 + 36 - + 37 * - 5 AS col0
----
232

query I rowsort
SELECT ALL - 39 + + - 40
----
-79

query I rowsort
SELECT ALL + 66 * - ( - + 91 )
----
6006

query I rowsort
SELECT DISTINCT + 94 + - CASE + 92 WHEN - + 51 + COALESCE ( + - 88, - 64 * - + NULLIF ( 59, + + 2 ) ) THEN NULL ELSE - - 26 END
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7571
SELECT ALL + SUM( - 96 ) + + 19 * 73 AS col0, 52 AS col2
----
1291
52

skipif mysql # not compatible
query II rowsort label-7571
SELECT ALL + SUM ( - 96 ) + + 19 * 73 AS col0, 52 AS col2
----
1291
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7572
SELECT DISTINCT 81 + + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT 81 + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 49 * - + 76 col1
----
-3724

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7574
SELECT - 16 - CAST( + 51 AS SIGNED ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-7574
SELECT - 16 - CAST ( + 51 AS INTEGER ) AS col2
----
-67

query I rowsort
SELECT + COALESCE ( + - 16, + - 25, - 67 ) * - 15 * + 64 AS col2
----
15360

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT + 40 * - + 61 * - COUNT( * ) * 52 + - - COUNT( * )
----
126881

skipif mysql # not compatible
query I rowsort label-7576
SELECT + 40 * - + 61 * - COUNT ( * ) * 52 + - - COUNT ( * )
----
126881

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT + CASE 59 WHEN + 34 THEN + CASE 27 WHEN 37 * 84 THEN + + 45 * - 77 END WHEN 60 + + 98 + + - AVG ( + 40 ) + - COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT + CASE 59 WHEN + 34 THEN + CASE 27 WHEN 37 * 84 THEN + + 45 * - 77 END WHEN 60 + + 98 + + - AVG ( + 40 ) + - COUNT ( * ) THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7578
SELECT DISTINCT - - ( + 19 ) DIV + - 75 - + - 48 AS col0, - 82 * + 76
----
48
-6232

skipif mysql # not compatible
query II rowsort label-7578
SELECT DISTINCT - - ( + 19 ) / + - 75 - + - 48 AS col0, - 82 * + 76
----
48
-6232

query II rowsort
SELECT + + 86 * - 90 AS col0, 63
----
-7740
63

query I rowsort
SELECT + 93 * - 90 * - 29 * - - 92 AS col1
----
22331160

query I rowsort
SELECT - CASE + 57 WHEN + 95 THEN - 4 WHEN 99 THEN - 93 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT DISTINCT 80 * MIN( DISTINCT + 49 ) AS col2
----
3920

skipif mysql # not compatible
query I rowsort label-7582
SELECT DISTINCT 80 * MIN ( DISTINCT + 49 ) AS col2
----
3920

query I rowsort
SELECT + + 85 * 10 * - 42 AS col1
----
-35700

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT ALL - 0 * - SUM( 60 ) + - 0
----
0

skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL - 0 * - SUM ( 60 ) + - 0
----
0

query I rowsort
SELECT + 30 + + 62 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT - 36 * COUNT( * ) * - 39 AS col1
----
1404

skipif mysql # not compatible
query I rowsort label-7586
SELECT - 36 * COUNT ( * ) * - 39 AS col1
----
1404

query I rowsort
SELECT - 25 * + - 15 * 75 * 43 + + + 45 - - 51
----
1209471

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT ALL - 83 * - - 98 + 73 * - + CASE - 31 WHEN - - MIN( + - 44 ) / + 13 - + COUNT( 9 ) THEN NULL ELSE - MIN( - 58 ) END
----
-12368

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL - 83 * - - 98 + 73 * - + CASE - 31 WHEN - - MIN ( + - 44 ) / + 13 - + COUNT ( 9 ) THEN NULL ELSE - MIN ( - 58 ) END
----
-12368

onlyif mysql # aggregate syntax: 
query II rowsort label-7589
SELECT DISTINCT - ( + - ( 95 ) ) * + NULLIF ( 71, 25 ) col0, COUNT( + 3 )
----
6745
1

skipif mysql # not compatible
query II rowsort label-7589
SELECT DISTINCT - ( + - ( 95 ) ) * + NULLIF ( 71, 25 ) col0, COUNT ( + 3 )
----
6745
1

query I rowsort
SELECT ALL 88 + + + 16 * - 40 + - 53
----
-605

query I rowsort
SELECT + 0 - 49 col1
----
-49

query I rowsort
SELECT DISTINCT - 34 * + - 70
----
2380

query II rowsort
SELECT - 76 - + 42 + + 46 + + + 84 * 63, 54 + + 45 + + - 81 AS col0
----
5220
18

query I rowsort
SELECT 36 + 74 * + 44
----
3292

onlyif mysql # aggregate syntax: 
query II rowsort label-7595
SELECT DISTINCT ( 83 ) * COUNT( * ) + + 88 + - + 17 - - ( 98 ) + - + NULLIF ( - 45, - 88 * + - 80 / + 60 * - 25 ) * + 28 + - 26 * - 74 AS col2, 28
----
3436
28

skipif mysql # not compatible
query II rowsort label-7595
SELECT DISTINCT ( 83 ) * COUNT ( * ) + + 88 + - + 17 - - ( 98 ) + - + NULLIF ( - 45, - 88 * + - 80 / + 60 * - 25 ) * + 28 + - 26 * - 74 AS col2, 28
----
3436
28

query II rowsort
SELECT 19 AS col0, 5 AS col0
----
19
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7597
SELECT CAST( NULL AS SIGNED ) + - + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-7597
SELECT CAST ( NULL AS INTEGER ) + - + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT COUNT( * ) + + 50 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-7598
SELECT COUNT ( * ) + + 50 AS col0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7599
SELECT 62 - - ( + + 0 ) + - - 14 + COALESCE ( + 19, - 14 ) * + 89 * + + COUNT( CAST( NULL AS SIGNED ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-7599
SELECT 62 - - ( + + 0 ) + - - 14 + COALESCE ( + 19, - 14 ) * + 89 * + + COUNT ( CAST ( NULL AS INTEGER ) ) AS col0
----
76

query I rowsort
SELECT 36 + - 36
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7601
SELECT 42 * + ( - - 93 ) * + - CAST( - ( CASE + 11 WHEN + 43 * - 64 THEN + NULLIF ( - 99, + COUNT( * ) ) END ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7601
SELECT 42 * + ( - - 93 ) * + - CAST ( - ( CASE + 11 WHEN + 43 * - 64 THEN + NULLIF ( - 99, + COUNT ( * ) ) END ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 18 * - 66
----
-1188

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7603
SELECT SUM( DISTINCT + ( + 14 ) ) * + 5 + - 58 + - 13 DIV + - ( + 61 ) AS col0, ( + + 66 ) * 30
----
12
1980

skipif mysql # not compatible
query II rowsort label-7603
SELECT SUM ( DISTINCT + ( + 14 ) ) * + 5 + - 58 + - 13 / + - ( + 61 ) AS col0, ( + + 66 ) * 30
----
12
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT ALL - NULLIF ( 56, - SUM( ALL + 53 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-7604
SELECT ALL - NULLIF ( 56, - SUM ( ALL + 53 ) )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-7605
SELECT - - 69 DIV ( 80 ) DIV - 22 - - 57 + + 41
----
98

skipif mysql # not compatible
query I rowsort label-7605
SELECT - - 69 / ( 80 ) / - 22 - - 57 + + 41
----
98

query I rowsort
SELECT 14 * 41 * + 45 col1
----
25830

query I rowsort
SELECT - 50 + - + 88 AS col0
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 74 + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 74 + + 52
----
NULL

query II rowsort
SELECT ALL - - COALESCE ( - 12, + 82 - - + 53, + + 3 ) AS col2, - 54 + 37 * 12 AS col0
----
-12
390

query I rowsort
SELECT 37 * + 10 + 22
----
392

query I rowsort
SELECT ALL + 94 + + 21
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-7612
SELECT - ( - COALESCE ( - + ( 86 ), 93 ) ) + - 56 DIV 24 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-7612
SELECT - ( - COALESCE ( - + ( 86 ), 93 ) ) + - 56 / 24 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT 16 + + - COUNT( * ) + + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-7613
SELECT 16 + + - COUNT ( * ) + + COUNT ( * )
----
16

query I rowsort
SELECT ALL 52 + + 52 - + 82 AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7615
SELECT DISTINCT - + CAST( + + 64 AS SIGNED ) DIV - - 84 AS col0, + COUNT( * ) * + 47
----
0
47

skipif mysql # not compatible
query II rowsort label-7615
SELECT DISTINCT - + CAST ( + + 64 AS INTEGER ) / - - 84 AS col0, + COUNT ( * ) * + 47
----
0
47

query I rowsort
SELECT ALL 96 + + + 48
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7617
SELECT + 80 * - 56 * - 63 - + 4 + 76 + 60 - - CAST( NULL AS SIGNED ) + + ( - ( - 69 ) ) + + - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7617
SELECT + 80 * - 56 * - 63 - + 4 + 76 + 60 - - CAST ( NULL AS INTEGER ) + + ( - ( - 69 ) ) + + - 98 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7618
SELECT SUM( DISTINCT 13 ) + - - CAST( NULL AS SIGNED ) * + 66 + + 97 AS col1, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7618
SELECT SUM ( DISTINCT 13 ) + - - CAST ( NULL AS INTEGER ) * + 66 + + 97 AS col1, COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT - 84 * + + 24 * + 85 + + 91 + 83 AS col2
----
-171186

query I rowsort
SELECT ALL + 42 + - 25
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7621
SELECT 37 + - + 31 + MIN( - 3 ) - - MAX( - 13 ) * - - 33 AS col2, 74 AS col2
----
-426
74

skipif mysql # not compatible
query II rowsort label-7621
SELECT 37 + - + 31 + MIN ( - 3 ) - - MAX ( - 13 ) * - - 33 AS col2, 74 AS col2
----
-426
74

query II rowsort
SELECT ALL 53 AS col1, 42
----
53
42

query II rowsort
SELECT - 54, 49 AS col0
----
-54
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7624
SELECT DISTINCT - 93 + - 74 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT - 93 + - 74 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 27 + 24 + + 65 AS col0
----
116

query I rowsort
SELECT ALL + 76 + + NULLIF ( + 89, - 17 + - - 94 )
----
165

query I rowsort
SELECT 17 * + 29 AS col2
----
493

onlyif mysql # DIV for integer division: 
query I rowsort label-7628
SELECT 52 * 19 DIV - 1 AS col0
----
-988

skipif mysql # not compatible
query I rowsort label-7628
SELECT 52 * 19 / - 1 AS col0
----
-988

query I rowsort
SELECT DISTINCT 70 - ( ( - NULLIF ( + 28, - 12 ) ) )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-7630
SELECT 72 AS col1, - COUNT( * )
----
72
-1

skipif mysql # not compatible
query II rowsort label-7630
SELECT 72 AS col1, - COUNT ( * )
----
72
-1

query I rowsort
SELECT 71 + + 1 * - 83 + + 6
----
-6

query I rowsort
SELECT 42 * 23 AS col1
----
966

query II rowsort
SELECT 78 * 66 AS col1, ( - ( 57 ) ) AS col0
----
5148
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT DISTINCT - 4 * + COUNT( * ) * COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT - 4 * + COUNT ( * ) * COUNT ( * )
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7635
SELECT DISTINCT COUNT( * ) DIV + NULLIF ( - + SUM( - ( - 54 ) ), - 81 * 37 )
----
0

skipif mysql # not compatible
query I rowsort label-7635
SELECT DISTINCT COUNT ( * ) / + NULLIF ( - + SUM ( - ( - 54 ) ), - 81 * 37 )
----
0

query I rowsort
SELECT ALL - 86 * + - 41
----
3526

query II rowsort
SELECT 97, 69 AS col2
----
97
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT 68 + + MIN( + ( 1 ) ) + + + CASE COUNT( * ) WHEN 8 / 15 * + 84 * + 25 + - + 12 THEN NULL ELSE 36 + - 29 + + - 95 * - ( + 39 ) END * + 24 AS col2
----
89157

skipif mysql # not compatible
query I rowsort label-7638
SELECT 68 + + MIN ( + ( 1 ) ) + + + CASE COUNT ( * ) WHEN 8 / 15 * + 84 * + 25 + - + 12 THEN NULL ELSE 36 + - 29 + + - 95 * - ( + 39 ) END * + 24 AS col2
----
89157

query II rowsort
SELECT ALL 20 AS col1, - ( + + 56 ) * - ( + 54 ) + 26 + - - 3 AS col0
----
20
3053

query I rowsort
SELECT - 25 - - 65 * + ( + + 90 ) AS col2
----
5825

query I rowsort
SELECT - ( 58 ) - - 63 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT + MAX( 60 )
----
60

skipif mysql # not compatible
query I rowsort label-7642
SELECT + MAX ( 60 )
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-7643
SELECT ALL - 72 AS col1, + COUNT( * ) * - - 90
----
-72
90

skipif mysql # not compatible
query II rowsort label-7643
SELECT ALL - 72 AS col1, + COUNT ( * ) * - - 90
----
-72
90

query I rowsort
SELECT + 48 * - 91 AS col2
----
-4368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7645
SELECT 79 * 9 + + 65 + - - 31 * + COUNT( * ) DIV 84 * - - 58 * + 73
----
776

skipif mysql # not compatible
query I rowsort label-7645
SELECT 79 * 9 + + 65 + - - 31 * + COUNT ( * ) / 84 * - - 58 * + 73
----
776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7646
SELECT CAST( + 90 AS SIGNED ) col0
----
90

skipif mysql # not compatible
query I rowsort label-7646
SELECT CAST ( + 90 AS INTEGER ) col0
----
90

query II rowsort
SELECT DISTINCT - - 40 AS col0, + 87 AS col2
----
40
87

query I rowsort
SELECT 39 * - - 11
----
429

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7649
SELECT ALL - - CAST( + 73 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL - - CAST ( + 73 AS INTEGER )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-7650
SELECT DISTINCT ( 61 ) * - ( - - 71 ) + + 85 + 14 DIV + 32 * + + 26 AS col1
----
-4246

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT ( 61 ) * - ( - - 71 ) + + 85 + 14 / + 32 * + + 26 AS col1
----
-4246

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7651
SELECT 43 AS col2, - 17 DIV COUNT( * )
----
43
-17

skipif mysql # not compatible
query II rowsort label-7651
SELECT 43 AS col2, - 17 / COUNT ( * )
----
43
-17

query II rowsort
SELECT ALL - + NULLIF ( - 47, - 88 ) + 60 AS col2, + COALESCE ( + 68, - + ( 91 ) ) + + 58
----
107
126

query I rowsort
SELECT COALESCE ( - 4, + 37 ) * + 30 AS col1
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7654
SELECT + CASE + 97 WHEN - SUM( DISTINCT + 21 ) / + + 85 THEN NULL ELSE - MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) * + - 30 * - - 42 END * 57 * SUM( + 87 ) * COUNT( * ) + + 74 AS col2, 68
----
NULL
68

skipif mysql # not compatible
query II rowsort label-7654
SELECT + CASE + 97 WHEN - SUM ( DISTINCT + 21 ) / + + 85 THEN NULL ELSE - MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) * + - 30 * - - 42 END * 57 * SUM ( + 87 ) * COUNT ( * ) + + 74 AS col2, 68
----
NULL
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7655
SELECT DISTINCT + 71 + - CAST( + ( - 79 ) AS SIGNED )
----
150

skipif mysql # not compatible
query I rowsort label-7655
SELECT DISTINCT + 71 + - CAST ( + ( - 79 ) AS INTEGER )
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7656
SELECT ALL - + 73 * - COALESCE ( + + ( 36 ), + COUNT( * ) * + CAST( - + SUM( + 80 ) AS SIGNED ) + + - COUNT( * ), - + 54 ) AS col1
----
2628

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL - + 73 * - COALESCE ( + + ( 36 ), + COUNT ( * ) * + CAST ( - + SUM ( + 80 ) AS INTEGER ) + + - COUNT ( * ), - + 54 ) AS col1
----
2628

query I rowsort
SELECT 21 * + + 85
----
1785

onlyif mysql # DIV for integer division: 
query I rowsort label-7658
SELECT - 77 DIV - + ( - + 48 )
----
-1

skipif mysql # not compatible
query I rowsort label-7658
SELECT - 77 / - + ( - + 48 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7659
SELECT ALL CASE - 89 WHEN 78 THEN + 88 - - 64 ELSE - - 96 END DIV - MAX( DISTINCT + 17 )
----
-5

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL CASE - 89 WHEN 78 THEN + 88 - - 64 ELSE - - 96 END / - MAX ( DISTINCT + 17 )
----
-5

query II rowsort
SELECT DISTINCT + CASE 70 WHEN + - 63 * - 57 THEN - 79 ELSE NULL END AS col1, 97
----
NULL
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7661
SELECT ALL + COUNT( * ) DIV - - COUNT( * ) DIV + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL + COUNT ( * ) / - - COUNT ( * ) / + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT - 17 + + - 29 col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT - 93 + 3 * COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-7663
SELECT - 93 + 3 * COUNT ( * )
----
-90

query II rowsort
SELECT ALL 81 * 33 col0, - 87
----
2673
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT + 87 - - SUM( ALL - + 19 ) col1
----
68

skipif mysql # not compatible
query I rowsort label-7665
SELECT + 87 - - SUM ( ALL - + 19 ) col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7666
SELECT ALL - CAST( NULL AS SIGNED ) * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL - CAST ( NULL AS INTEGER ) * 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7667
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN ( + 19 ) THEN NULL WHEN + 7 * 90 + - + 17 * - 74 * + + 97 + + 63 * 35 * - + MIN( + + 83 ) THEN NULL ELSE + + 34 END + - + 23 * + - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-7667
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN ( + 19 ) THEN NULL WHEN + 7 * 90 + - + 17 * - 74 * + + 97 + + 63 * 35 * - + MIN ( + + 83 ) THEN NULL ELSE + + 34 END + - + 23 * + - COUNT ( * )
----
57

query I rowsort
SELECT DISTINCT 28 * 46
----
1288

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT + COUNT( * ) + + 99 + - 49 + + 16 * + 31 AS col1
----
547

skipif mysql # not compatible
query I rowsort label-7669
SELECT + COUNT ( * ) + + 99 + - 49 + + 16 * + 31 AS col1
----
547

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT + MIN( ALL + NULLIF ( - 31, 84 * 88 * 95 + + 11 - - + 54 + - + 74 + + 17 * + - 61 ) ) * + + 35 * + COUNT( * ) AS col0
----
-1085

skipif mysql # not compatible
query I rowsort label-7670
SELECT + MIN ( ALL + NULLIF ( - 31, 84 * 88 * 95 + + 11 - - + 54 + - + 74 + + 17 * + - 61 ) ) * + + 35 * + COUNT ( * ) AS col0
----
-1085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7671
SELECT + CAST( NULL AS SIGNED ) + - MIN( ALL 61 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7671
SELECT + CAST ( NULL AS INTEGER ) + - MIN ( ALL 61 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7672
SELECT + NULLIF ( - 15, - ( - 17 ) - + - 72 ) + - + SUM( 15 ) DIV + 70
----
-15

skipif mysql # not compatible
query I rowsort label-7672
SELECT + NULLIF ( - 15, - ( - 17 ) - + - 72 ) + - + SUM ( 15 ) / + 70
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7673
SELECT + - 30 + + CAST( - 20 AS SIGNED ) - - SUM( 33 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-7673
SELECT + - 30 + + CAST ( - 20 AS INTEGER ) - - SUM ( 33 ) AS col1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-7674
SELECT ALL + 19 DIV 3 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-7674
SELECT ALL + 19 / 3 AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7675
SELECT + ( + - 26 ) DIV - 46 * - 81 + 59 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7675
SELECT + ( + - 26 ) / - 46 * - 81 + 59 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT - 2 * 12 - COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-7676
SELECT - 2 * 12 - COUNT ( * )
----
-25

query I rowsort
SELECT ALL 85 + + 65 AS col0
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-7678
SELECT ALL 89 + + 93, 59 - COUNT( * ) col2
----
182
58

skipif mysql # not compatible
query II rowsort label-7678
SELECT ALL 89 + + 93, 59 - COUNT ( * ) col2
----
182
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7679
SELECT DISTINCT 47 * + 83 * 59 * - COUNT( * ) - - - 9 DIV - + 2 + + 77 + - COUNT( 40 ) DIV 57 AS col1
----
-230078

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT 47 * + 83 * 59 * - COUNT ( * ) - - - 9 / - + 2 + + 77 + - COUNT ( 40 ) / 57 AS col1
----
-230078

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7680
SELECT DISTINCT COUNT( * ) * 47 DIV + 21 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT COUNT ( * ) * 47 / + 21 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7681
SELECT ALL + ( CAST( 62 AS SIGNED ) ) * + COUNT( * ) + + ( + + 50 ) + 14 + - + CAST( NULL AS SIGNED ) + 99 + - CAST( ( + 92 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7681
SELECT ALL + ( CAST ( 62 AS INTEGER ) ) * + COUNT ( * ) + + ( + + 50 ) + 14 + - + CAST ( NULL AS INTEGER ) + 99 + - CAST ( ( + 92 ) AS INTEGER )
----
NULL

query I rowsort
SELECT + ( 92 ) AS col1
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7683
SELECT + - 31 DIV + ( - 14 ) + - + 35 + SUM( DISTINCT 92 )
----
59

skipif mysql # not compatible
query I rowsort label-7683
SELECT + - 31 / + ( - 14 ) + - + 35 + SUM ( DISTINCT 92 )
----
59

query II rowsort
SELECT + 48 + 30 col0, - 68
----
78
-68

query I rowsort
SELECT - ( 37 ) * + 20 + + 65 + + ( - 95 )
----
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT - - 48 + + MIN( ALL - + 65 )
----
-17

skipif mysql # not compatible
query I rowsort label-7686
SELECT - - 48 + + MIN ( ALL - + 65 )
----
-17

query I rowsort
SELECT - 77 + - 15 - + 83 + 52 AS col2
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7688
SELECT DISTINCT + 98 col2, CASE + 32 WHEN + - COUNT( * ) + + 54 + - 10 * 32 * 85 * + 26 * + AVG ( + 65 ) * - - 40 - - CAST( NULL AS SIGNED ) * - - 98 THEN + 56 END
----
98
NULL

skipif mysql # not compatible
query II rowsort label-7688
SELECT DISTINCT + 98 col2, CASE + 32 WHEN + - COUNT ( * ) + + 54 + - 10 * 32 * 85 * + 26 * + AVG ( + 65 ) * - - 40 - - CAST ( NULL AS INTEGER ) * - - 98 THEN + 56 END
----
98
NULL

query I rowsort
SELECT ALL + 21 * - - 82 AS col0
----
1722

onlyif mysql # DIV for integer division: 
query I rowsort label-7690
SELECT - 53 + - 40 + - 25 * + - 77 - - 40 - + - 29 DIV + - 81 AS col0
----
1872

skipif mysql # not compatible
query I rowsort label-7690
SELECT - 53 + - 40 + - 25 * + - 77 - - 40 - + - 29 / + - 81 AS col0
----
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT CASE - 11 WHEN + 61 THEN 10 WHEN + - 5 THEN NULL WHEN + 88 + ( - MAX( ALL - 4 ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7691
SELECT CASE - 11 WHEN + 61 THEN 10 WHEN + - 5 THEN NULL WHEN + 88 + ( - MAX ( ALL - 4 ) ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7692
SELECT + CAST( NULL AS SIGNED ), 18 AS col2
----
NULL
18

skipif mysql # not compatible
query II rowsort label-7692
SELECT + CAST ( NULL AS INTEGER ), 18 AS col2
----
NULL
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7693
SELECT - COUNT( * ) * + - CAST( + 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-7693
SELECT - COUNT ( * ) * + - CAST ( + 10 AS INTEGER )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT COALESCE ( - 93, - COUNT( * ) )
----
-93

skipif mysql # not compatible
query I rowsort label-7694
SELECT COALESCE ( - 93, - COUNT ( * ) )
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-7695
SELECT DISTINCT + ( COUNT( ALL 38 ) ), 3 * - 26 * 51 AS col2
----
1
-3978

skipif mysql # not compatible
query II rowsort label-7695
SELECT DISTINCT + ( COUNT ( ALL 38 ) ), 3 * - 26 * 51 AS col2
----
1
-3978

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7696
SELECT DISTINCT COALESCE ( - 1, SUM( - 39 ) DIV - - 93 * 6 * - + NULLIF ( NULLIF ( - - NULLIF ( 14, + + 43 * 2 + 50 * SUM( ALL - - ( - 4 ) ) ), - 33 * + - 36 - - - 53 + - 91 + + 61 + - 63 + + 14 ), - - 2 + + NULLIF ( ( - 41 ), + + 53 * + - 10 ) ) + + - ( + 12 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7696
SELECT DISTINCT COALESCE ( - 1, SUM ( - 39 ) / - - 93 * 6 * - + NULLIF ( NULLIF ( - - NULLIF ( 14, + + 43 * 2 + 50 * SUM ( ALL - - ( - 4 ) ) ), - 33 * + - 36 - - - 53 + - 91 + + 61 + - 63 + + 14 ), - - 2 + + NULLIF ( ( - 41 ), + + 53 * + - 10 ) ) + + - ( + 12 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7697
SELECT ALL + CAST( NULL AS DECIMAL ) * + - CAST( + MIN( - - 3 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL + CAST ( NULL AS REAL ) * + - CAST ( + MIN ( - - 3 ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - 98 ) AS col0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7699
SELECT DISTINCT ( + CAST( COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT ( + CAST ( COUNT ( * ) AS INTEGER ) )
----
1

query I rowsort
SELECT - COALESCE ( - 17, - + 62 )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7701
SELECT - 42 AS col2, 20 * 40 + - 30 + - SUM( + 49 ) + - + 26 DIV 47 AS col2
----
-42
721

skipif mysql # not compatible
query II rowsort label-7701
SELECT - 42 AS col2, 20 * 40 + - 30 + - SUM ( + 49 ) + - + 26 / 47 AS col2
----
-42
721

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT - ( + 25 ) * + - MAX( + 68 ) AS col1
----
1700

skipif mysql # not compatible
query I rowsort label-7702
SELECT - ( + 25 ) * + - MAX ( + 68 ) AS col1
----
1700

query II rowsort
SELECT - 27 AS col1, - 59 * 20
----
-27
-1180

query II rowsort
SELECT + 77 AS col1, - 26 AS col0
----
77
-26

query II rowsort
SELECT ALL 89, 18 * - - 19 + 98 - - 82 * + - ( 86 ) AS col0
----
89
-6612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7706
SELECT ALL + 89, + 82 + + MAX( ALL 42 ) + - ( 14 ) * - + CAST( NULL AS SIGNED ) * - 75 + 49 col1
----
89
NULL

skipif mysql # not compatible
query II rowsort label-7706
SELECT ALL + 89, + 82 + + MAX ( ALL 42 ) + - ( 14 ) * - + CAST ( NULL AS INTEGER ) * - 75 + 49 col1
----
89
NULL

query I rowsort
SELECT DISTINCT + - 7 + + - 69 AS col2
----
-76

query I rowsort
SELECT DISTINCT - - 44 + + + 57 AS col2
----
101

query II rowsort
SELECT - - 22 AS col2, + 32
----
22
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7710
SELECT ALL 35 + - 44 + 75 + COUNT( * ) + + - 17 DIV - COUNT( * ) * + COALESCE ( COUNT( * ), + 5, - - 58 + + - 61 DIV - COUNT( * ) )
----
84

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL 35 + - 44 + 75 + COUNT ( * ) + + - 17 / - COUNT ( * ) * + COALESCE ( COUNT ( * ), + 5, - - 58 + + - 61 / - COUNT ( * ) )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT ALL - COUNT( * ) + + 80 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL - COUNT ( * ) + + 80 AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7712
SELECT - CAST( - 37 AS SIGNED ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-7712
SELECT - CAST ( - 37 AS INTEGER ) AS col1
----
37

query II rowsort
SELECT 98 col0, 94
----
98
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT - - 57 - + MAX( - ( - + 77 ) ) * - 76 AS col1
----
5909

skipif mysql # not compatible
query I rowsort label-7714
SELECT - - 57 - + MAX ( - ( - + 77 ) ) * - 76 AS col1
----
5909

query I rowsort
SELECT + 93 * + - 56 * + 29 + + 41 * - + 36
----
-152508

query II rowsort
SELECT 35 AS col1, - 26 * + ( - 11 ) AS col0
----
35
286

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7717
SELECT + 77 / 31 + 84 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7717
SELECT + 77 / 31 + 84 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7718
SELECT ALL - + COUNT( * ) DIV + - 88 - 13 * 48 col0
----
-624

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL - + COUNT ( * ) / + - 88 - 13 * 48 col0
----
-624

onlyif mysql # DIV for integer division: 
query I rowsort label-7719
SELECT + + 75 DIV + 70
----
1

skipif mysql # not compatible
query I rowsort label-7719
SELECT + + 75 / + 70
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT + MIN( CASE WHEN NULL IS NOT NULL THEN + 89 END ) - - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7720
SELECT + MIN ( CASE WHEN NULL IS NOT NULL THEN + 89 END ) - - 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT ALL COUNT( * ) - + 44 * + - 19
----
837

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL COUNT ( * ) - + 44 * + - 19
----
837

onlyif mysql # DIV for integer division: 
query I rowsort label-7722
SELECT 56 DIV 54
----
1

skipif mysql # not compatible
query I rowsort label-7722
SELECT 56 / 54
----
1

query I rowsort
SELECT 65 * + 21 AS col0
----
1365

query I rowsort
SELECT ( + + 35 ) - + 58
----
-23

query I rowsort
SELECT DISTINCT - NULLIF ( 57, - + 22 + + 51 + - 34 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT ALL - SUM( - COALESCE ( - 7, 75 * 33 ) ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL - SUM ( - COALESCE ( - 7, 75 * 33 ) ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT DISTINCT + MIN( - 13 ) + 4
----
-9

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT + MIN ( - 13 ) + 4
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT 42 + 4 + - + COUNT( ALL 40 ) + - 95 - - + 18 * 19 * + 94
----
32098

skipif mysql # not compatible
query I rowsort label-7728
SELECT 42 + 4 + - + COUNT ( ALL 40 ) + - 95 - - + 18 * 19 * + 94
----
32098

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT 81 * 12 * COUNT( * ) col2
----
972

skipif mysql # not compatible
query I rowsort label-7729
SELECT 81 * 12 * COUNT ( * ) col2
----
972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7730
SELECT CAST( + + 46 AS SIGNED ) + - 95 col0
----
-49

skipif mysql # not compatible
query I rowsort label-7730
SELECT CAST ( + + 46 AS INTEGER ) + - 95 col0
----
-49

query I rowsort
SELECT ALL + 82 * 82
----
6724

query I rowsort
SELECT ALL - 27 + + 47 AS col1
----
20

query I rowsort
SELECT 71 + - 59 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT ALL - 91 * - MIN( DISTINCT + 40 )
----
3640

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL - 91 * - MIN ( DISTINCT + 40 )
----
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT + 27 + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-7735
SELECT + 27 + COUNT ( * )
----
28

query I rowsort
SELECT - 94 + - 84 AS col1
----
-178

query II rowsort
SELECT 85 + + + 49 col2, 7 AS col1
----
134
7

query I rowsort
SELECT - 91 + 41 - + 9
----
-59

query I rowsort
SELECT DISTINCT + - ( + 37 ) * - + 52
----
1924

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT + 57 + + - COUNT( ALL - 3 )
----
56

skipif mysql # not compatible
query I rowsort label-7740
SELECT + 57 + + - COUNT ( ALL - 3 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT DISTINCT - MAX( ALL + 82 ) col2
----
-82

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT - MAX ( ALL + 82 ) col2
----
-82

query I rowsort
SELECT DISTINCT + + 37 * - - 96
----
3552

onlyif mysql # aggregate syntax: 
query II rowsort label-7743
SELECT ALL + - CASE + 77 WHEN - 63 THEN 59 * 50 ELSE NULL END * + ( + + 26 ) AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7743
SELECT ALL + - CASE + 77 WHEN - 63 THEN 59 * 50 ELSE NULL END * + ( + + 26 ) AS col1, COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7744
SELECT - COALESCE ( CAST( + - 85 AS SIGNED ), COUNT( * ) * 24 - 5 ) * + - 93 - + 58
----
-7963

skipif mysql # not compatible
query I rowsort label-7744
SELECT - COALESCE ( CAST ( + - 85 AS INTEGER ), COUNT ( * ) * 24 - 5 ) * + - 93 - + 58
----
-7963

query I rowsort
SELECT 27 + - - 94
----
121

query I rowsort
SELECT 36 * + ( + 44 ) AS col2
----
1584

query I rowsort
SELECT 72 * 21
----
1512

onlyif mysql # DIV for integer division: 
query I rowsort label-7748
SELECT ALL 6 DIV + + 48
----
0

skipif mysql # not compatible
query I rowsort label-7748
SELECT ALL 6 / + + 48
----
0

query I rowsort
SELECT ALL 58 * + - 18 col1
----
-1044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7750
SELECT 62 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7750
SELECT 62 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7751
SELECT ALL 70 DIV - - MIN( ALL + - 42 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL 70 / - - MIN ( ALL + - 42 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT 5 * + 55 AS col2
----
275

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT DISTINCT 63 * - COUNT( * ) * 17 * - 10
----
10710

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT 63 * - COUNT ( * ) * 17 * - 10
----
10710

query I rowsort
SELECT 6 + - NULLIF ( 68, - 71 + - 85 ) * - - 53
----
-3598

query I rowsort
SELECT ALL 92 + + + 68 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT - COUNT( ALL 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-7756
SELECT - COUNT ( ALL 24 )
----
-1

query I rowsort
SELECT DISTINCT 21 + 60 col2
----
81

query I rowsort
SELECT DISTINCT + COALESCE ( 59, + 46 ) + - 86 AS col0
----
-27

query I rowsort
SELECT ALL 95 + 27 AS col0
----
122

query I rowsort
SELECT DISTINCT ( + 79 ) AS col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7761
SELECT DISTINCT + COUNT( * ) + + + CAST( NULL AS SIGNED ) * - - COUNT( * ) * 66 / + ( 32 ) * 55
----
NULL

skipif mysql # not compatible
query I rowsort label-7761
SELECT DISTINCT + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * 66 / + ( 32 ) * 55
----
NULL

query I rowsort
SELECT 62 * + - 81
----
-5022

query I rowsort
SELECT + 48 * + ( + - 12 ) * 49 + 8 AS col0
----
-28216

query I rowsort
SELECT ALL + 79 * - + 89
----
-7031

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT - NULLIF ( - CASE + NULLIF ( + 12, - 39 * + - 69 / 97 ) WHEN - - 10 + + 35 THEN NULL WHEN 41 + + 84 THEN NULL ELSE 23 * + + CASE - - 33 WHEN 63 THEN NULL WHEN - - 66 / - 54 + + - 58 * ( + ( + 81 ) ) * - 57 THEN 9 END * - 8 + + - 95 - + COALESCE ( NULLIF ( + 61, 6 ), + COUNT( * ) * 93 + 83 + - 2 * 49 + - + 28 - - 66 + 54 * COALESCE ( - NULLIF ( 93, + ( 64 ) / + 26 ), - 27 ) ) * + COUNT( * ) END, - AVG ( - 7 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7765
SELECT - NULLIF ( - CASE + NULLIF ( + 12, - 39 * + - 69 / 97 ) WHEN - - 10 + + 35 THEN NULL WHEN 41 + + 84 THEN NULL ELSE 23 * + + CASE - - 33 WHEN 63 THEN NULL WHEN - - 66 / - 54 + + - 58 * ( + ( + 81 ) ) * - 57 THEN 9 END * - 8 + + - 95 - + COALESCE ( NULLIF ( + 61, 6 ), + COUNT ( * ) * 93 + 83 + - 2 * 49 + - + 28 - - 66 + 54 * COALESCE ( - NULLIF ( 93, + ( 64 ) / + 26 ), - 27 ) ) * + COUNT ( * ) END, - AVG ( - 7 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7766
SELECT + CAST( - + 73 AS SIGNED ) * 33 + 34 + + NULLIF ( + 27, 6 * - + 9 * - + 63 - + 3 ), ( + + MIN( DISTINCT - 64 ) ) AS col1
----
-2348
-64

skipif mysql # not compatible
query II rowsort label-7766
SELECT + CAST ( - + 73 AS INTEGER ) * 33 + 34 + + NULLIF ( + 27, 6 * - + 9 * - + 63 - + 3 ), ( + + MIN ( DISTINCT - 64 ) ) AS col1
----
-2348
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7767
SELECT + CAST( NULL AS SIGNED ) * + - MIN( DISTINCT - 85 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7767
SELECT + CAST ( NULL AS INTEGER ) * + - MIN ( DISTINCT - 85 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7768
SELECT ALL + CASE 5 WHEN - 49 THEN NULL ELSE + 35 END - - COUNT( NULLIF ( + 16, + 9 ) ), 44 col0
----
36
44

skipif mysql # not compatible
query II rowsort label-7768
SELECT ALL + CASE 5 WHEN - 49 THEN NULL ELSE + 35 END - - COUNT ( NULLIF ( + 16, + 9 ) ), 44 col0
----
36
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT - - NULLIF ( - COUNT( * ), + 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-7769
SELECT - - NULLIF ( - COUNT ( * ), + 45 )
----
-1

query II rowsort
SELECT ALL + 74 AS col2, 72 + + 66 AS col0
----
74
138

query I rowsort
SELECT ALL + 86 * 29 AS col0
----
2494

query I rowsort
SELECT - 50 + + - 73
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-7773
SELECT - 8 DIV 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7773
SELECT - 8 / 84 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7774
SELECT ALL - 3 DIV 10 + + ( - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL - 3 / 10 + + ( - 24 )
----
-24

query I rowsort
SELECT - + 97 * 22 AS col1
----
-2134

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT - MIN( ALL + - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-7776
SELECT - MIN ( ALL + - 42 )
----
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7777
SELECT DISTINCT - 70 DIV + 85 - + 42 * + 23 * + NULLIF ( + - 85, + - 51 * + CAST( NULL AS SIGNED ) + + + 89 ) AS col0
----
82110

skipif mysql # not compatible
query I rowsort label-7777
SELECT DISTINCT - 70 / + 85 - + 42 * + 23 * + NULLIF ( + - 85, + - 51 * + CAST ( NULL AS INTEGER ) + + + 89 ) AS col0
----
82110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7778
SELECT DISTINCT + CAST( - + 41 AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT + CAST ( - + 41 AS INTEGER )
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-7779
SELECT - 94 DIV 78 * + 99 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-7779
SELECT - 94 / 78 * + 99 AS col2
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7780
SELECT + 1 DIV - 50 + 13 col2
----
13

skipif mysql # not compatible
query I rowsort label-7780
SELECT + 1 / - 50 + 13 col2
----
13

query II rowsort
SELECT + 59 AS col0, 97 AS col0
----
59
97

query I rowsort
SELECT ALL 25 * + 46 * - 6 + + 23
----
-6877

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT DISTINCT 94 * + 32 * COUNT( * ) * - - 7 + - SUM( + 82 ) AS col2
----
20974

skipif mysql # not compatible
query I rowsort label-7783
SELECT DISTINCT 94 * + 32 * COUNT ( * ) * - - 7 + - SUM ( + 82 ) AS col2
----
20974

query I rowsort
SELECT ALL - 99 * - 64
----
6336

query I rowsort
SELECT DISTINCT - 82 * + 44
----
-3608

query I rowsort
SELECT ALL 62 * - 62 + + - 85 AS col0
----
-3929

query I rowsort
SELECT + COALESCE ( + 50, + 0 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT DISTINCT 37 * - 65 + SUM( DISTINCT - 68 ) * 66
----
-6893

skipif mysql # not compatible
query I rowsort label-7788
SELECT DISTINCT 37 * - 65 + SUM ( DISTINCT - 68 ) * 66
----
-6893

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT ALL 6 * - 47 * + 25 + + 5 + - ( 89 ) + + COUNT( * ) AS col1
----
-7133

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL 6 * - 47 * + 25 + + 5 + - ( 89 ) + + COUNT ( * ) AS col1
----
-7133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7790
SELECT + CASE + + CAST( - 34 AS SIGNED ) WHEN + + COALESCE ( 64, + + 28 ) THEN + 95 * + - 54 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7790
SELECT + CASE + + CAST ( - 34 AS INTEGER ) WHEN + + COALESCE ( 64, + + 28 ) THEN + 95 * + - 54 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT ALL + MIN( ALL + COALESCE ( + 74, + 83 ) ) col0
----
74

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL + MIN ( ALL + COALESCE ( + 74, + 83 ) ) col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT + CASE COUNT( ALL - 86 ) WHEN - 57 THEN NULL ELSE - ( + 34 ) END AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-7792
SELECT + CASE COUNT ( ALL - 86 ) WHEN - 57 THEN NULL ELSE - ( + 34 ) END AS col2
----
-34

query I rowsort
SELECT DISTINCT + + ( - 2 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7794
SELECT - - 20 + 72 * CAST( NULL AS SIGNED ) / + 74 * + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT - - 20 + 72 * CAST ( NULL AS INTEGER ) / + 74 * + 96 AS col1
----
NULL

query I rowsort
SELECT + - 14 * - + 39 AS col1
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT DISTINCT - 8 * + - COUNT( * ) col1
----
8

skipif mysql # not compatible
query I rowsort label-7796
SELECT DISTINCT - 8 * + - COUNT ( * ) col1
----
8

query I rowsort
SELECT + + 39 - 22
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT + 99 * + COUNT( * ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-7798
SELECT + 99 * + COUNT ( * ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT + + 95 + COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-7799
SELECT + + 95 + COUNT ( * ) AS col0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7800
SELECT DISTINCT COUNT( * ) col1, 69 DIV - 7 - + + COUNT( - ( + - 33 ) )
----
1
-10

skipif mysql # not compatible
query II rowsort label-7800
SELECT DISTINCT COUNT ( * ) col1, 69 / - 7 - + + COUNT ( - ( + - 33 ) )
----
1
-10

query I rowsort
SELECT + 39 + - 32 + 38
----
45

query II rowsort
SELECT DISTINCT 31 AS col0, 2 AS col2
----
31
2

query II rowsort
SELECT 66 AS col1, + 34 * + 19 AS col2
----
66
646

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7804
SELECT - CAST( + NULLIF ( - COUNT( * ), - - 59 * + + 59 ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7804
SELECT - CAST ( + NULLIF ( - COUNT ( * ), - - 59 * + + 59 ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7805
SELECT ALL - 74 * + 13 * + ( - 69 ) * + - ( COALESCE ( 68, - 6 * - 53 * - - ( + 19 ) DIV + - 20 + - - 38 + + + 27 * 36 + + CASE + - 58 WHEN + 93 THEN + 1 WHEN 3 THEN - - 27 ELSE 65 - - - 66 DIV + - COUNT( * ) END - + 9 * - - 32 * - - ( - - 71 ) * - 59 * - + ( - - 45 ) ) ) * + 2 + COUNT( * )
----
-9027407

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL - 74 * + 13 * + ( - 69 ) * + - ( COALESCE ( 68, - 6 * - 53 * - - ( + 19 ) / + - 20 + - - 38 + + + 27 * 36 + + CASE + - 58 WHEN + 93 THEN + 1 WHEN 3 THEN - - 27 ELSE 65 - - - 66 / + - COUNT ( * ) END - + 9 * - - 32 * - - ( - - 71 ) * - 59 * - + ( - - 45 ) ) ) * + 2 + COUNT ( * )
----
-9027407

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT + 15 * + - 41 + - COUNT( * ) * - 17 * 18 AS col1
----
-309

skipif mysql # not compatible
query I rowsort label-7806
SELECT + 15 * + - 41 + - COUNT ( * ) * - 17 * 18 AS col1
----
-309

query I rowsort
SELECT DISTINCT - + 70 * - ( + ( - 91 ) ) AS col2
----
-6370

query I rowsort
SELECT ALL - 13 + + - 4
----
-17

query I rowsort
SELECT ALL + 58 + + 37 * - 85
----
-3087

onlyif mysql # DIV for integer division: 
query I rowsort label-7810
SELECT + 34 DIV + - 45 + - 49
----
-49

skipif mysql # not compatible
query I rowsort label-7810
SELECT + 34 / + - 45 + - 49
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-7811
SELECT ALL 83 DIV 44 + 38
----
39

skipif mysql # not compatible
query I rowsort label-7811
SELECT ALL 83 / 44 + 38
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7812
SELECT - 96 DIV - ( + 60 ) + - 16 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-7812
SELECT - 96 / - ( + 60 ) + - 16 AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7813
SELECT COUNT( * ) / + 90 - + MAX( - CAST( NULL AS SIGNED ) ) * + 15, + 53 AS col1
----
NULL
53

skipif mysql # not compatible
query II rowsort label-7813
SELECT COUNT ( * ) / + 90 - + MAX ( - CAST ( NULL AS INTEGER ) ) * + 15, + 53 AS col1
----
NULL
53

onlyif mysql # DIV for integer division: 
query I rowsort label-7814
SELECT - ( + 81 ) DIV 23 col2
----
-3

skipif mysql # not compatible
query I rowsort label-7814
SELECT - ( + 81 ) / 23 col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT ALL 33 DIV 5 + 40 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL 33 / 5 + 40 AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7816
SELECT DISTINCT - 50 * - ( - 56 ) * 90 DIV 48
----
-5250

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT - 50 * - ( - 56 ) * 90 / 48
----
-5250

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7817
SELECT ALL + CAST( 70 AS SIGNED ) col0, 22 AS col2
----
70
22

skipif mysql # not compatible
query II rowsort label-7817
SELECT ALL + CAST ( 70 AS INTEGER ) col0, 22 AS col2
----
70
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7818
SELECT ALL + 24 * - COUNT( * ) - - 47 + - - COALESCE ( + 81, - 63 ) * - CASE - 53 WHEN - ( + 62 ) / + CAST( - - 54 AS SIGNED ) * + - CAST( NULL AS SIGNED ) THEN NULL WHEN 74 THEN MAX( + CAST( - 93 AS SIGNED ) ) * - 75 + + COUNT( * ) + + + COUNT( * ) ELSE - 49 END * - - NULLIF ( - + COUNT( * ), + - 70 ) AS col0
----
-3946

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL + 24 * - COUNT ( * ) - - 47 + - - COALESCE ( + 81, - 63 ) * - CASE - 53 WHEN - ( + 62 ) / + CAST ( - - 54 AS INTEGER ) * + - CAST ( NULL AS INTEGER ) THEN NULL WHEN 74 THEN MAX ( + CAST ( - 93 AS INTEGER ) ) * - 75 + + COUNT ( * ) + + + COUNT ( * ) ELSE - 49 END * - - NULLIF ( - + COUNT ( * ), + - 70 ) AS col0
----
-3946

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT 68 * 57 + + + MAX( + 70 ) * CASE + 85 WHEN + - 27 / + + 71 - ( COUNT( * ) ) * + - 98 THEN - + 3 WHEN + + MIN( DISTINCT + 18 ) THEN NULL WHEN - 67 + + + 85 THEN NULL END + - - MIN( 41 ) + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT 68 * 57 + + + MAX ( + 70 ) * CASE + 85 WHEN + - 27 / + + 71 - ( COUNT ( * ) ) * + - 98 THEN - + 3 WHEN + + MIN ( DISTINCT + 18 ) THEN NULL WHEN - 67 + + + 85 THEN NULL END + - - MIN ( 41 ) + + 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT + COUNT( * ) + 44 * + 16
----
705

skipif mysql # not compatible
query I rowsort label-7820
SELECT + COUNT ( * ) + 44 * + 16
----
705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7821
SELECT DISTINCT + ( + + 13 ) DIV + + 28 + COALESCE ( CASE - + 83 WHEN + - 29 THEN NULL ELSE - 99 END, 10 + CASE - + 30 WHEN 18 THEN NULL ELSE - - 0 - COUNT( ALL + + 85 ) END )
----
-99

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT + ( + + 13 ) / + + 28 + COALESCE ( CASE - + 83 WHEN + - 29 THEN NULL ELSE - 99 END, 10 + CASE - + 30 WHEN 18 THEN NULL ELSE - - 0 - COUNT ( ALL + + 85 ) END )
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-7822
SELECT ALL + COUNT( * ) * + 67, 28 AS col0
----
67
28

skipif mysql # not compatible
query II rowsort label-7822
SELECT ALL + COUNT ( * ) * + 67, 28 AS col0
----
67
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7823
SELECT 91 DIV - SUM( ALL 46 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7823
SELECT 91 / - SUM ( ALL 46 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 2 * + 83
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT ALL + 3 + - 58 * + + COUNT( + + 58 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL + 3 + - 58 * + + COUNT ( + + 58 ) AS col2
----
-55

query I rowsort
SELECT ALL 29 * + 48 AS col1
----
1392

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7827
SELECT 71 DIV + - 66, - COUNT( * ) AS col0
----
-1
-1

skipif mysql # not compatible
query II rowsort label-7827
SELECT 71 / + - 66, - COUNT ( * ) AS col0
----
-1
-1

query I rowsort
SELECT NULLIF ( 75, - + 18 )
----
75

query I rowsort
SELECT ( - + COALESCE ( 77, + 70 * + 1, 75 + 30 ) )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7830
SELECT DISTINCT - CAST( - NULLIF ( 68, - - NULLIF ( + 39, 52 * 14 * + + 82 + + - 48 ) ) AS SIGNED ) + + COUNT( * ) + - ( + + 39 )
----
30

skipif mysql # not compatible
query I rowsort label-7830
SELECT DISTINCT - CAST ( - NULLIF ( 68, - - NULLIF ( + 39, 52 * 14 * + + 82 + + - 48 ) ) AS INTEGER ) + + COUNT ( * ) + - ( + + 39 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT ALL - COUNT( * ) + 64 * + 40 * - 96
----
-245761

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL - COUNT ( * ) + 64 * + 40 * - 96
----
-245761

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT ALL SUM( DISTINCT + 91 ) + - ( 57 ) + - 52 + - COUNT( ALL 84 ) * - 78 * COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL SUM ( DISTINCT + 91 ) + - ( 57 ) + - 52 + - COUNT ( ALL 84 ) * - 78 * COUNT ( * )
----
60

query II rowsort
SELECT ALL 47 col2, ( + 49 ) * - 93 + - 71 AS col0
----
47
-4628

query II rowsort
SELECT DISTINCT 98 AS col1, - 59 AS col0
----
98
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-7835
SELECT ALL 2, 32 * - + 76 * 61 * - 28 + + + COUNT( * ) AS col2
----
2
4153857

skipif mysql # not compatible
query II rowsort label-7835
SELECT ALL 2, 32 * - + 76 * 61 * - 28 + + + COUNT ( * ) AS col2
----
2
4153857

query I rowsort
SELECT ALL 47 + - + 53 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT ALL 6 + - COUNT( + 63 ) * + + 34 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL 6 + - COUNT ( + 63 ) * + + 34 AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7838
SELECT 55 + + 80 * - COUNT( * ) + - 22 + + COALESCE ( CAST( - COUNT( * ) AS SIGNED ), 91 ) - + 32
----
-80

skipif mysql # not compatible
query I rowsort label-7838
SELECT 55 + + 80 * - COUNT ( * ) + - 22 + + COALESCE ( CAST ( - COUNT ( * ) AS INTEGER ), 91 ) - + 32
----
-80

query II rowsort
SELECT - 12 AS col0, - 16 col0
----
-12
-16

onlyif mysql # aggregate syntax: 
query III rowsort label-7840
SELECT - 14 AS col1, - 69 - - + 50 * - 67 AS col0, NULLIF ( NULLIF ( + - 6, + MIN( ALL - - 57 ) / + 40 ), - - 81 )
----
-14
-3419
-6

skipif mysql # not compatible
query III rowsort label-7840
SELECT - 14 AS col1, - 69 - - + 50 * - 67 AS col0, NULLIF ( NULLIF ( + - 6, + MIN ( ALL - - 57 ) / + 40 ), - - 81 )
----
-14
-3419
-6

query I rowsort
SELECT 0 * + 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT ALL 75 * 90 * + COUNT( * ) * - COUNT( * )
----
-6750

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL 75 * 90 * + COUNT ( * ) * - COUNT ( * )
----
-6750

query I rowsort
SELECT DISTINCT 46 - + - 90 AS col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT DISTINCT 5 * + + COUNT( * ) col0
----
5

skipif mysql # not compatible
query I rowsort label-7844
SELECT DISTINCT 5 * + + COUNT ( * ) col0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7845
SELECT ALL - 51 AS col2, SUM( 12 ) AS col1
----
-51
12

skipif mysql # not compatible
query II rowsort label-7845
SELECT ALL - 51 AS col2, SUM ( 12 ) AS col1
----
-51
12

query I rowsort
SELECT ALL 40 * - 43
----
-1720

query II rowsort
SELECT + 38, + 0 * - 51 AS col0
----
38
0

query I rowsort
SELECT 15 * 85
----
1275

query II rowsort
SELECT DISTINCT - 54 AS col2, + 93 + - - 16 AS col2
----
-54
109

onlyif mysql # aggregate syntax: 
query II rowsort label-7850
SELECT + ( + COUNT( * ) ) * + - 85, + 95 AS col1
----
-85
95

skipif mysql # not compatible
query II rowsort label-7850
SELECT + ( + COUNT ( * ) ) * + - 85, + 95 AS col1
----
-85
95

query II rowsort
SELECT DISTINCT - 65, + ( + 80 ) AS col2
----
-65
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7852
SELECT ALL - COUNT( * ) DIV - + 19 + 65 + + 74
----
139

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL - COUNT ( * ) / - + 19 + 65 + + 74
----
139

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7853
SELECT ALL + - 20 * COALESCE ( + + 49, COALESCE ( - + 96, - 5 * - + 71 DIV - 2 ) + + CAST( NULL AS SIGNED ) * - 4 * + CAST( NULL AS SIGNED ) * - 79 ) * - 48 + ( 37 ) + - 91 * + 7 * + 19 * - 50 + + 17 AS col0
----
652244

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL + - 20 * COALESCE ( + + 49, COALESCE ( - + 96, - 5 * - + 71 / - 2 ) + + CAST ( NULL AS INTEGER ) * - 4 * + CAST ( NULL AS INTEGER ) * - 79 ) * - 48 + ( 37 ) + - 91 * + 7 * + 19 * - 50 + + 17 AS col0
----
652244

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT DISTINCT + COUNT( * ) * - 33 * 9 * - 68 AS col1
----
20196

skipif mysql # not compatible
query I rowsort label-7854
SELECT DISTINCT + COUNT ( * ) * - 33 * 9 * - 68 AS col1
----
20196

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7855
SELECT + + 60, CAST( NULL AS SIGNED ) AS col2
----
60
NULL

skipif mysql # not compatible
query II rowsort label-7855
SELECT + + 60, CAST ( NULL AS INTEGER ) AS col2
----
60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT ( - ( COUNT( ALL - 53 ) ) ) * + 25 - - + ( - 95 )
----
-120

skipif mysql # not compatible
query I rowsort label-7856
SELECT ( - ( COUNT ( ALL - 53 ) ) ) * + 25 - - + ( - 95 )
----
-120

query I rowsort
SELECT ALL + - 28 + 75 AS col2
----
47

query I rowsort
SELECT 8 + 42
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT - 44 - - COUNT( * ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-7859
SELECT - 44 - - COUNT ( * ) col2
----
-43

query I rowsort
SELECT - ( - + 9 )
----
9

query I rowsort
SELECT 98 * - + 43
----
-4214

onlyif mysql # aggregate syntax: 
query II rowsort label-7862
SELECT DISTINCT 27 AS col1, - COUNT( * ) AS col1
----
27
-1

skipif mysql # not compatible
query II rowsort label-7862
SELECT DISTINCT 27 AS col1, - COUNT ( * ) AS col1
----
27
-1

query I rowsort
SELECT - 1 + - + 13 * + + 40 AS col0
----
-521

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7864
SELECT ALL - - COALESCE ( - ( + 46 ), - COALESCE ( + 59, + 66 ) ) + MAX( DISTINCT 35 ) + + + 10 DIV - 62
----
-11

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL - - COALESCE ( - ( + 46 ), - COALESCE ( + 59, + 66 ) ) + MAX ( DISTINCT 35 ) + + + 10 / - 62
----
-11

query I rowsort
SELECT DISTINCT + + 86 + + 7 + - 95 + - 36
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7866
SELECT ALL - CAST( + - ( 16 ) AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL - CAST ( + - ( 16 ) AS INTEGER )
----
16

query I rowsort
SELECT ALL - 91 + 46 AS col1
----
-45

query I rowsort
SELECT DISTINCT 59 + + 73
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7869
SELECT ( + ( 41 ) ) + CASE + 12 WHEN 69 THEN NULL WHEN - 15 * + CAST( + 68 AS SIGNED ) + + 24 THEN COUNT( * ) END * - SUM( ALL + + ( + 93 ) ) + + 60 * + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT ( + ( 41 ) ) + CASE + 12 WHEN 69 THEN NULL WHEN - 15 * + CAST ( + 68 AS INTEGER ) + + 24 THEN COUNT ( * ) END * - SUM ( ALL + + ( + 93 ) ) + + 60 * + 77
----
NULL

query I rowsort
SELECT ALL - 40 + 69
----
29

query II rowsort
SELECT 45 * - 96, 22 * - - 45 AS col0
----
-4320
990

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT DISTINCT 41 + COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT 41 + COUNT ( * ) AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7873
SELECT ALL 0 * + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL 0 * + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT 0 + - COUNT( - 61 ) + + COALESCE ( + + 73, - 25 * 25 ) + + + 8 * - 30 * - COUNT( * )
----
312

skipif mysql # not compatible
query I rowsort label-7874
SELECT 0 + - COUNT ( - 61 ) + + COALESCE ( + + 73, - 25 * 25 ) + + + 8 * - 30 * - COUNT ( * )
----
312

query I rowsort
SELECT 71 * + + 47
----
3337

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7876
SELECT DISTINCT + 78 * - 54 DIV COUNT( * ) AS col1
----
-4212

skipif mysql # not compatible
query I rowsort label-7876
SELECT DISTINCT + 78 * - 54 / COUNT ( * ) AS col1
----
-4212

query I rowsort
SELECT DISTINCT - 23 - - 45
----
22

query I rowsort
SELECT ALL + 69 * - 37 * 90 col1
----
-229770

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7879
SELECT + COUNT( * ) DIV - 37 + ( - COALESCE ( - 71, - 93 DIV - + 21 ) ), 24 + + 22 col0
----
71
46

skipif mysql # not compatible
query II rowsort label-7879
SELECT + COUNT ( * ) / - 37 + ( - COALESCE ( - 71, - 93 / - + 21 ) ), 24 + + 22 col0
----
71
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7880
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), + 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7880
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), + 61 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7881
SELECT 86 + - 2 AS col2, - COUNT( * ) * - 78 + 46 AS col1
----
84
124

skipif mysql # not compatible
query II rowsort label-7881
SELECT 86 + - 2 AS col2, - COUNT ( * ) * - 78 + 46 AS col1
----
84
124

onlyif mysql # DIV for integer division: 
query I rowsort label-7882
SELECT 97 DIV - - 90 - + 5 col0
----
-4

skipif mysql # not compatible
query I rowsort label-7882
SELECT 97 / - - 90 - + 5 col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7883
SELECT - CASE + NULLIF ( + 7, 79 + - 73 * - - 4 ) WHEN + 23 * + + 21 THEN + + COUNT( * ) / - - 62 WHEN + CASE 2 WHEN + 80 + - 37 + - + COUNT( * ) THEN NULL ELSE 34 END - + 43 THEN NULLIF ( 36, CAST( + 46 AS SIGNED ) ) - + 37 END * - 73 + + 0 * - 61 + - 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7883
SELECT - CASE + NULLIF ( + 7, 79 + - 73 * - - 4 ) WHEN + 23 * + + 21 THEN + + COUNT ( * ) / - - 62 WHEN + CASE 2 WHEN + 80 + - 37 + - + COUNT ( * ) THEN NULL ELSE 34 END - + 43 THEN NULLIF ( 36, CAST ( + 46 AS INTEGER ) ) - + 37 END * - 73 + + 0 * - 61 + - 65 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7884
SELECT + + 8 DIV + 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7884
SELECT + + 8 / + 24 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7885
SELECT ALL + 2 * - + 8 * - - COALESCE ( - - NULLIF ( - CAST( + 0 AS SIGNED ), - - 12 * + COUNT( * ) ), - 6 ) col2, - 23
----
0
-23

skipif mysql # not compatible
query II rowsort label-7885
SELECT ALL + 2 * - + 8 * - - COALESCE ( - - NULLIF ( - CAST ( + 0 AS INTEGER ), - - 12 * + COUNT ( * ) ), - 6 ) col2, - 23
----
0
-23

query I rowsort
SELECT + 78 + - 24 * + 18
----
-354

query I rowsort
SELECT ALL + COALESCE ( - - 85, + 46, 32 + - 74 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT DISTINCT + + COUNT( * ) * + ( + ( + 69 ) ) + + + 35 * 76
----
2729

skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT + + COUNT ( * ) * + ( + ( + 69 ) ) + + + 35 * 76
----
2729

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7889
SELECT + 36 DIV - 25 * + ( NULLIF ( + - COUNT( * ), + 76 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7889
SELECT + 36 / - 25 * + ( NULLIF ( + - COUNT ( * ), + 76 ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7890
SELECT + 45 * - COALESCE ( + 80, + + 40 ) * - - 14 - + ( - 22 ) DIV - + 94
----
-50400

skipif mysql # not compatible
query I rowsort label-7890
SELECT + 45 * - COALESCE ( + 80, + + 40 ) * - - 14 - + ( - 22 ) / - + 94
----
-50400

onlyif mysql # DIV for integer division: 
query I rowsort label-7891
SELECT ALL - 86 DIV + 62 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL - 86 / + 62 AS col2
----
-1

query I rowsort
SELECT + - ( + 85 ) AS col2
----
-85

query I rowsort
SELECT ALL + 95 + 98 AS col2
----
193

query I rowsort
SELECT DISTINCT - 37 * - 23
----
851

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7895
SELECT ALL + COUNT( * ) DIV - COUNT( - 30 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL + COUNT ( * ) / - COUNT ( - 30 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7896
SELECT - COUNT( * ) DIV COUNT( * ) AS col1, - 64 AS col2
----
-1
-64

skipif mysql # not compatible
query II rowsort label-7896
SELECT - COUNT ( * ) / COUNT ( * ) AS col1, - 64 AS col2
----
-1
-64

query I rowsort
SELECT DISTINCT - 93 + - 57 * + 30
----
-1803

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT - CASE - COUNT( * ) WHEN + COUNT( * ) + - NULLIF ( + - COUNT( * ), - - 8 ) + - COUNT( ALL + 3 ) * 39 THEN + 95 WHEN + 31 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7898
SELECT - CASE - COUNT ( * ) WHEN + COUNT ( * ) + - NULLIF ( + - COUNT ( * ), - - 8 ) + - COUNT ( ALL + 3 ) * 39 THEN + 95 WHEN + 31 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - + 21 + - 69
----
-90

query I rowsort
SELECT - 74 - - + 89 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT ALL NULLIF ( - COUNT( * ), - 94 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL NULLIF ( - COUNT ( * ), - 94 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7902
SELECT ALL NULLIF ( + 5, - CAST( - COUNT( * ) AS SIGNED ) * - + 26 + + 31 + - - CASE - 24 WHEN - 18 - + - 91 + - 24 THEN NULL ELSE 85 END * - 59 )
----
5

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL NULLIF ( + 5, - CAST ( - COUNT ( * ) AS INTEGER ) * - + 26 + + 31 + - - CASE - 24 WHEN - 18 - + - 91 + - 24 THEN NULL ELSE 85 END * - 59 )
----
5

query I rowsort
SELECT DISTINCT CASE + 23 WHEN - ( - 54 ) / + + 38 / - AVG ( ALL 12 ) THEN NULL ELSE - + 84 END
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7904
SELECT DISTINCT NULLIF ( + 78, CAST( - 34 AS SIGNED ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT NULLIF ( + 78, CAST ( - 34 AS INTEGER ) ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT DISTINCT - 55 * + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-7905
SELECT DISTINCT - 55 * + COUNT ( * )
----
-55

query I rowsort
SELECT - 58 * - ( + ( - + 85 ) ) col0
----
-4930

query I rowsort
SELECT ALL NULLIF ( - 74, - 77 )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7908
SELECT DISTINCT CASE CAST( + 49 AS SIGNED ) WHEN 19 + + 61 THEN + - 2 ELSE 31 END AS col2
----
31

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT CASE CAST ( + 49 AS INTEGER ) WHEN 19 + + 61 THEN + - 2 ELSE 31 END AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7909
SELECT - ( ( + + CAST( - COUNT( * ) AS SIGNED ) ) ) - 7 + + 73 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-7909
SELECT - ( ( + + CAST ( - COUNT ( * ) AS INTEGER ) ) ) - 7 + + 73 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT ALL - 10 - - COUNT( DISTINCT 75 )
----
-9

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL - 10 - - COUNT ( DISTINCT 75 )
----
-9

query I rowsort
SELECT - 22 * - + 11 * + 77
----
18634

query I rowsort
SELECT + 28 * 58
----
1624

query II rowsort
SELECT + 22 + + 76 * 15, 79 AS col0
----
1162
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT ALL 86 * + - 81 * + + COUNT( ALL 92 )
----
-6966

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL 86 * + - 81 * + + COUNT ( ALL 92 )
----
-6966

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7915
SELECT COUNT( * ) DIV 45 DIV - 60 * - - 9 + - + NULLIF ( + - 68, - 32 )
----
68

skipif mysql # not compatible
query I rowsort label-7915
SELECT COUNT ( * ) / 45 / - 60 * - - 9 + - + NULLIF ( + - 68, - 32 )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7916
SELECT CAST( + + 95 AS SIGNED ) col0
----
95

skipif mysql # not compatible
query I rowsort label-7916
SELECT CAST ( + + 95 AS INTEGER ) col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7917
SELECT DISTINCT - 93 * - CASE - - 67 WHEN + + 25 * + + 94 THEN - CASE 43 WHEN - COALESCE ( + 63, + CAST( NULL AS SIGNED ) * - 15 + - - 97 + - + ( - - 27 ) ) THEN + 89 ELSE NULL END + - + 0 + - ( - - 56 ) - - + 88 + 86 WHEN + 64 THEN + 67 WHEN - 74 + - + AVG ( ALL 5 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT - 93 * - CASE - - 67 WHEN + + 25 * + + 94 THEN - CASE 43 WHEN - COALESCE ( + 63, + CAST ( NULL AS INTEGER ) * - 15 + - - 97 + - + ( - - 27 ) ) THEN + 89 ELSE NULL END + - + 0 + - ( - - 56 ) - - + 88 + 86 WHEN + 64 THEN + 67 WHEN - 74 + - + AVG ( ALL 5 ) THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7918
SELECT DISTINCT + 82 col1, + CASE - NULLIF ( - 82, + ( - - 20 ) + - + 86 ) WHEN - 75 THEN - 11 - + 93 + - COUNT( ALL + 55 ) + + CAST( + 97 AS SIGNED ) END + + NULLIF ( + 77, + - 65 + + ( COUNT( * ) ) * - ( - + 5 ) ) + + 22 AS col0
----
82
NULL

skipif mysql # not compatible
query II rowsort label-7918
SELECT DISTINCT + 82 col1, + CASE - NULLIF ( - 82, + ( - - 20 ) + - + 86 ) WHEN - 75 THEN - 11 - + 93 + - COUNT ( ALL + 55 ) + + CAST ( + 97 AS INTEGER ) END + + NULLIF ( + 77, + - 65 + + ( COUNT ( * ) ) * - ( - + 5 ) ) + + 22 AS col0
----
82
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7919
SELECT DISTINCT - ( + MAX( + 68 ) ) DIV NULLIF ( - + 57, + + 20 ) + - + 90 - + 8 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-7919
SELECT DISTINCT - ( + MAX ( + 68 ) ) / NULLIF ( - + 57, + + 20 ) + - + 90 - + 8 AS col2
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7920
SELECT ALL + + COALESCE ( - COUNT( * ), - - COUNT( * ) ) * 17 * COALESCE ( - 38, - 66, 2 ) + + ( + 7 ) + + CASE - 60 WHEN + 48 THEN 71 + - + ( + - 41 ) WHEN 41 DIV - 45 THEN NULL ELSE - + 39 DIV + 16 END + 77
----
728

skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL + + COALESCE ( - COUNT ( * ), - - COUNT ( * ) ) * 17 * COALESCE ( - 38, - 66, 2 ) + + ( + 7 ) + + CASE - 60 WHEN + 48 THEN 71 + - + ( + - 41 ) WHEN 41 / - 45 THEN NULL ELSE - + 39 / + 16 END + 77
----
728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7921
SELECT - MAX( ALL 20 ) * - 46 * ( - 53 ) * 22 + - 13 * 91 DIV COUNT( DISTINCT 43 )
----
-1073903

skipif mysql # not compatible
query I rowsort label-7921
SELECT - MAX ( ALL 20 ) * - 46 * ( - 53 ) * 22 + - 13 * 91 / COUNT ( DISTINCT 43 )
----
-1073903

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT + + 79 * - 64 + MIN( ALL - - 25 )
----
-5031

skipif mysql # not compatible
query I rowsort label-7922
SELECT + + 79 * - 64 + MIN ( ALL - - 25 )
----
-5031

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7923
SELECT ( - + CAST( 39 AS SIGNED ) ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-7923
SELECT ( - + CAST ( 39 AS INTEGER ) ) col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7924
SELECT ALL + COALESCE ( 63, 22 + + 87 * - 93 * + 22 * - ( - - 74 ) * 28 ) * - 55 DIV + + COUNT( * ) + - NULLIF ( + - 2, - 51 * + - 94 + - COUNT( * ) - + - 40 - + 11 * + + 93 DIV 74 * - ( - 41 ) DIV + 3 * - + AVG ( ALL ( 49 ) ) - - 54 ) col2
----
-3463

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL + COALESCE ( 63, 22 + + 87 * - 93 * + 22 * - ( - - 74 ) * 28 ) * - 55 / + + COUNT ( * ) + - NULLIF ( + - 2, - 51 * + - 94 + - COUNT ( * ) - + - 40 - + 11 * + + 93 / 74 * - ( - 41 ) / + 3 * - + AVG ( ALL ( 49 ) ) - - 54 ) col2
----
-3463

query I rowsort
SELECT ALL 61 * 34 + - - 55 + - 69 AS col2
----
2060

query I rowsort
SELECT DISTINCT - 8 * + 5 * - 79 * + 56 AS col0
----
176960

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT + SUM( - - 97 ) col1
----
97

skipif mysql # not compatible
query I rowsort label-7927
SELECT + SUM ( - - 97 ) col1
----
97

query II rowsort
SELECT + - 58 + + 72 + 70 AS col0, 38
----
84
38

query I rowsort
SELECT + - 53 * + - COALESCE ( 30, 28 ) AS col0
----
1590

query I rowsort
SELECT ALL - ( - - 83 )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7931
SELECT + ( - SUM( - ( + CAST( - + 84 AS SIGNED ) ) ) ) + + 95
----
11

skipif mysql # not compatible
query I rowsort label-7931
SELECT + ( - SUM ( - ( + CAST ( - + 84 AS INTEGER ) ) ) ) + + 95
----
11

query I rowsort
SELECT ALL + 78 * + 47
----
3666

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT ALL + MIN( DISTINCT 28 ) * - COUNT( ALL 73 ) * 6 + + ( 15 ) + + 33 + + 5
----
-115

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL + MIN ( DISTINCT 28 ) * - COUNT ( ALL 73 ) * 6 + + ( 15 ) + + 33 + + 5
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT ALL - COUNT( * ) * - 0 * + 92
----
0

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL - COUNT ( * ) * - 0 * + 92
----
0

query II rowsort
SELECT 14, - 52 AS col1
----
14
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7936
SELECT 95, CAST( + - COUNT( ALL + 92 ) AS SIGNED ) AS col1
----
95
-1

skipif mysql # not compatible
query II rowsort label-7936
SELECT 95, CAST ( + - COUNT ( ALL + 92 ) AS INTEGER ) AS col1
----
95
-1

query I rowsort
SELECT - 5 * 82
----
-410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7938
SELECT ALL - 6 * - + ( + COUNT( * ) ) DIV + 7 + - 19
----
-19

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL - 6 * - + ( + COUNT ( * ) ) / + 7 + - 19
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7939
SELECT - 81 + - COUNT( * ) DIV + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-7939
SELECT - 81 + - COUNT ( * ) / + COUNT ( * )
----
-82

query II rowsort
SELECT - 77 AS col0, 46 * - - 34 AS col1
----
-77
1564

query I rowsort
SELECT 34 + - 93 AS col2
----
-59

query I rowsort
SELECT 5 * - 63 AS col2
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT ALL - COUNT( * ) * - 42 * - - 31 * - 96 * COUNT( * )
----
-124992

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL - COUNT ( * ) * - 42 * - - 31 * - 96 * COUNT ( * )
----
-124992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7944
SELECT ALL + COALESCE ( - 30, + 18 ) + - ( 1 ) + CAST( - 63 AS SIGNED ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL + COALESCE ( - 30, + 18 ) + - ( 1 ) + CAST ( - 63 AS INTEGER ) AS col1
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7945
SELECT ALL COUNT( * ) * - 6 DIV + + 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL COUNT ( * ) * - 6 / + + 87 AS col0
----
0

query I rowsort
SELECT 31 * + 32 AS col0
----
992

query I rowsort
SELECT ALL - + 97 + - ( - ( + 59 ) )
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-7948
SELECT + 1 DIV - 51 + - 22 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-7948
SELECT + 1 / - 51 + - 22 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT - ( + + 13 ) * + 9 * + + 40 - + 38 + + + COUNT( * ) * - 17 - + ( 15 ) AS col0
----
-4750

skipif mysql # not compatible
query I rowsort label-7949
SELECT - ( + + 13 ) * + 9 * + + 40 - + 38 + + + COUNT ( * ) * - 17 - + ( 15 ) AS col0
----
-4750

query I rowsort
SELECT ALL + + 21 * 64
----
1344

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7951
SELECT 14 + CAST( NULL AS SIGNED ), - 48 AS col1
----
NULL
-48

skipif mysql # not compatible
query II rowsort label-7951
SELECT 14 + CAST ( NULL AS INTEGER ), - 48 AS col1
----
NULL
-48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7952
SELECT + + 21 DIV 63 + + + 29 + + - 41 - CAST( + - 86 AS SIGNED ) - - + 51, 50 * COALESCE ( 86, + 65, - ( - 49 ) - - 32 * - 14 ) col2
----
125
4300

skipif mysql # not compatible
query II rowsort label-7952
SELECT + + 21 / 63 + + + 29 + + - 41 - CAST ( + - 86 AS INTEGER ) - - + 51, 50 * COALESCE ( 86, + 65, - ( - 49 ) - - 32 * - 14 ) col2
----
125
4300

query II rowsort
SELECT + 34 AS col1, 25 AS col2
----
34
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT ALL MAX( + - 4 ) + + + COALESCE ( + 13, + 11 + - 25, - + SUM( - COALESCE ( - 94, - 54 ) ) + 68 ) + - - 8 - + + 66 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL MAX ( + - 4 ) + + + COALESCE ( + 13, + 11 + - 25, - + SUM ( - COALESCE ( - 94, - 54 ) ) + 68 ) + - - 8 - + + 66 AS col1
----
-49

query I rowsort
SELECT ALL + 59 * 84 * 39
----
193284

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT - COUNT( * ) * + + 25 + + ( + + 23 ) * - 21 * - + SUM( + + 32 ) / + 50 * - - 75 * + - COUNT( * ) * - CASE COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN + + 15 THEN NULL ELSE - 37 * + CASE - 70 WHEN + 14 THEN 58 END / + 61 + - 97 * + 90 END + 15 * SUM( 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT - COUNT ( * ) * + + 25 + + ( + + 23 ) * - 21 * - + SUM ( + + 32 ) / + 50 * - - 75 * + - COUNT ( * ) * - CASE COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN + + 15 THEN NULL ELSE - 37 * + CASE - 70 WHEN + 14 THEN 58 END / + 61 + - 97 * + 90 END + 15 * SUM ( 10 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT ALL - + COUNT( * ) * - + 77 * 7
----
539

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL - + COUNT ( * ) * - + 77 * 7
----
539

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT ( - 31 ) + - 5 - - CASE - 58 WHEN - - 81 THEN - 79 ELSE + + COUNT( * ) END
----
-35

skipif mysql # not compatible
query I rowsort label-7958
SELECT ( - 31 ) + - 5 - - CASE - 58 WHEN - - 81 THEN - 79 ELSE + + COUNT ( * ) END
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-7959
SELECT ALL - 68 - + + 48 AS col0, 69 * - 45 * - - 92 + - - COUNT( * ) col1
----
-116
-285659

skipif mysql # not compatible
query II rowsort label-7959
SELECT ALL - 68 - + + 48 AS col0, 69 * - 45 * - - 92 + - - COUNT ( * ) col1
----
-116
-285659

onlyif mysql # DIV for integer division: 
query I rowsort label-7960
SELECT ALL - 4 DIV - 81 + + 14
----
14

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL - 4 / - 81 + + 14
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7961
SELECT COUNT( * ) + - 38 DIV + COUNT( * ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-7961
SELECT COUNT ( * ) + - 38 / + COUNT ( * ) AS col1
----
-37

query I rowsort
SELECT 63 * + 41 * + - 74
----
-191142

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT ALL - + MIN( ALL 94 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL - + MIN ( ALL 94 ) AS col0
----
-94

query II rowsort
SELECT + + 55 AS col1, 99 AS col1
----
55
99

query I rowsort
SELECT 99 + + + 22
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT + MIN( - 4 ) * 55
----
-220

skipif mysql # not compatible
query I rowsort label-7966
SELECT + MIN ( - 4 ) * 55
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT ALL - COALESCE ( COALESCE ( - 22, + SUM( ALL + + 19 ) + + 1 ), ( - 44 ) + + COUNT( * ) )
----
22

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL - COALESCE ( COALESCE ( - 22, + SUM ( ALL + + 19 ) + + 1 ), ( - 44 ) + + COUNT ( * ) )
----
22

query I rowsort
SELECT DISTINCT 12 * - + 32 AS col1
----
-384

query I rowsort
SELECT ALL 23 * + CASE 78 WHEN + ( - - 99 ) THEN NULL WHEN - 78 - + 96 THEN NULL ELSE + 31 END * + 50
----
35650

query II rowsort
SELECT ALL 41 * - 57 AS col1, 21 AS col1
----
-2337
21

query I rowsort
SELECT DISTINCT 76 * + + ( + + 62 ) * 77
----
362824

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT 31 + + COALESCE ( 11, - + 54 * - + 14 ) * - 5 + ( - + 27 ) + - COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-7972
SELECT 31 + + COALESCE ( 11, - + 54 * - + 14 ) * - 5 + ( - + 27 ) + - COUNT ( * ) AS col0
----
-52

query I rowsort
SELECT DISTINCT 4 + - + 92 col0
----
-88

query I rowsort
SELECT DISTINCT 33 + 69 col2
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7975
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-7975
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT COUNT( * ) + + + 57
----
58

skipif mysql # not compatible
query I rowsort label-7976
SELECT COUNT ( * ) + + + 57
----
58

query I rowsort
SELECT DISTINCT 68 + 49 AS col0
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7978
SELECT ALL NULLIF ( + - 63, 6 ) DIV COUNT( - ( - 98 ) ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL NULLIF ( + - 63, 6 ) / COUNT ( - ( - 98 ) ) AS col1
----
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-7979
SELECT 31 DIV 53 AS col0, + 41
----
0
41

skipif mysql # not compatible
query II rowsort label-7979
SELECT 31 / 53 AS col0, + 41
----
0
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7980
SELECT ALL 3 + - 88 + + + 86 - + CAST( NULL AS SIGNED ) / + + 18 * - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL 3 + - 88 + + + 86 - + CAST ( NULL AS INTEGER ) / + + 18 * - 33
----
NULL

query I rowsort
SELECT ALL - 75 + - 12 AS col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7982
SELECT 37 * - + ( - CASE + + MIN( - - 75 ) WHEN + CAST( NULL AS DECIMAL ) THEN COUNT( * ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7982
SELECT 37 * - + ( - CASE + + MIN ( - - 75 ) WHEN + CAST ( NULL AS REAL ) THEN COUNT ( * ) ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT DISTINCT - + COUNT( * ) + + - 38 * + - COALESCE ( + 50, + + ( - 54 ) )
----
1899

skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT - + COUNT ( * ) + + - 38 * + - COALESCE ( + 50, + + ( - 54 ) )
----
1899

query I rowsort
SELECT DISTINCT - + 57 + 89 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT ALL - NULLIF ( - MAX( + + 60 ), - MIN( - 67 ) * + COALESCE ( - + 89, - 78 + 97 * - COUNT( * ) + + 1, + + 70 * 33 + - 25, - COUNT( - + 53 ) ) * - COUNT( * ) * 41 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL - NULLIF ( - MAX ( + + 60 ), - MIN ( - 67 ) * + COALESCE ( - + 89, - 78 + 97 * - COUNT ( * ) + + 1, + + 70 * 33 + - 25, - COUNT ( - + 53 ) ) * - COUNT ( * ) * 41 ) AS col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7986
SELECT DISTINCT - 17 * + 38 * + MIN( CAST( - 55 AS SIGNED ) ) - 25
----
35505

skipif mysql # not compatible
query I rowsort label-7986
SELECT DISTINCT - 17 * + 38 * + MIN ( CAST ( - 55 AS INTEGER ) ) - 25
----
35505

query I rowsort
SELECT + 52 * + 13
----
676

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7988
SELECT ALL + 8 / + CAST( NULL AS SIGNED ) * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL + 8 / + CAST ( NULL AS INTEGER ) * - 68
----
NULL

query I rowsort
SELECT + ( - 72 ) col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7990
SELECT DISTINCT + 75 * + 58 AS col1, + 4 / + 16 - - + CAST( NULL AS SIGNED ) AS col0, - 81
----
4350
NULL
-81

skipif mysql # not compatible
query III rowsort label-7990
SELECT DISTINCT + 75 * + 58 AS col1, + 4 / + 16 - - + CAST ( NULL AS INTEGER ) AS col0, - 81
----
4350
NULL
-81

query I rowsort
SELECT + 18 * - - 45 AS col0
----
810

query I rowsort
SELECT 44 * + + 33 AS col1
----
1452

onlyif mysql # DIV for integer division: 
query I rowsort label-7993
SELECT ALL + + 2 DIV + 48 - 0
----
0

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL + + 2 / + 48 - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT - 94 * - 57 + - 30 - + - MAX( 26 ) AS col0
----
5354

skipif mysql # not compatible
query I rowsort label-7994
SELECT - 94 * - 57 + - 30 - + - MAX ( 26 ) AS col0
----
5354

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7995
SELECT COUNT( + 63 ) DIV + + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7995
SELECT COUNT ( + 63 ) / + + 94 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7996
SELECT 54 / + + CAST( NULL AS SIGNED ) * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-7996
SELECT 54 / + + CAST ( NULL AS INTEGER ) * + 52
----
NULL

query I rowsort
SELECT DISTINCT - - 3 AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7998
SELECT ALL COALESCE ( - 13, - + COUNT( * ) * 64 + NULLIF ( + 34, + + 16 ), + 54 ) DIV - 80 * + - 25 + - 53 - - 40 - 67 * + 25 AS col1
----
-1688

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL COALESCE ( - 13, - + COUNT ( * ) * 64 + NULLIF ( + 34, + + 16 ), + 54 ) / - 80 * + - 25 + - 53 - - 40 - 67 * + 25 AS col1
----
-1688

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT + 90 * COUNT( * ) - + 40 + - - 78 + + 44 * 31 * + MIN( DISTINCT - 6 )
----
-8056

skipif mysql # not compatible
query I rowsort label-7999
SELECT + 90 * COUNT ( * ) - + 40 + - - 78 + + 44 * 31 * + MIN ( DISTINCT - 6 )
----
-8056

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT - 96 * + + 80 + 49 - COUNT( * )
----
-7632

skipif mysql # not compatible
query I rowsort label-8000
SELECT - 96 * + + 80 + 49 - COUNT ( * )
----
-7632

query I rowsort
SELECT 70 + 46 + + + 7 AS col1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL - NULLIF ( 40, - - COUNT( * ) ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL - NULLIF ( 40, - - COUNT ( * ) ) AS col1
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8003
SELECT ALL - AVG ( - 59 ) + - CAST( NULL AS SIGNED ) - + - 87 * + - 14 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL - AVG ( - 59 ) + - CAST ( NULL AS INTEGER ) - + - 87 * + - 14 col2
----
NULL

query I rowsort
SELECT 80 + 11 col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT ALL COUNT( + 25 ) + - SUM( - 58 ) * + 76 * + 92 + - + 6 AS col2
----
405531

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL COUNT ( + 25 ) + - SUM ( - 58 ) * + 76 * + 92 + - + 6 AS col2
----
405531

onlyif mysql # aggregate syntax: 
query II rowsort label-8006
SELECT + COUNT( * ) * + 52 + 52 col1, 25
----
104
25

skipif mysql # not compatible
query II rowsort label-8006
SELECT + COUNT ( * ) * + 52 + 52 col1, 25
----
104
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8007
SELECT ALL 63 col1, SUM( DISTINCT 18 )
----
63
18

skipif mysql # not compatible
query II rowsort label-8007
SELECT ALL 63 col1, SUM ( DISTINCT 18 )
----
63
18

query I rowsort
SELECT ALL 63 + - 5
----
58

query I rowsort
SELECT ALL 81 + - + 30 AS col0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8010
SELECT DISTINCT - NULLIF ( + 88, + - CAST( NULL AS SIGNED ) ) + - + COUNT( * ) AS col2, 27 * - 22 * 35
----
-89
-20790

skipif mysql # not compatible
query II rowsort label-8010
SELECT DISTINCT - NULLIF ( + 88, + - CAST ( NULL AS INTEGER ) ) + - + COUNT ( * ) AS col2, 27 * - 22 * 35
----
-89
-20790

query I rowsort
SELECT ALL ( + 53 ) * - - 91
----
4823

query I rowsort
SELECT + 63 * 77
----
4851

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8013
SELECT DISTINCT CAST( + + 34 AS DECIMAL ) + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - - + 19 + + 39 * - 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8013
SELECT DISTINCT CAST ( + + 34 AS REAL ) + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - - + 19 + + 39 * - 65 AS col0
----
NULL

query II rowsort
SELECT - 9 * ( + 45 ) * + CASE + 57 WHEN ( + - 93 ) THEN - 68 END, - 24 AS col0
----
NULL
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-8015
SELECT ALL 86 AS col1, COALESCE ( - COUNT( * ), 44, 67 ) AS col0
----
86
-1

skipif mysql # not compatible
query II rowsort label-8015
SELECT ALL 86 AS col1, COALESCE ( - COUNT ( * ), 44, 67 ) AS col0
----
86
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8016
SELECT + 27 + - 46 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8016
SELECT + 27 + - 46 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8017
SELECT + 3 + - 6 + 77 + + - 98 DIV - - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-8017
SELECT + 3 + - 6 + 77 + + - 98 / - - COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT ALL - MAX( - + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL - MAX ( - + 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT + MIN( DISTINCT - - 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-8019
SELECT + MIN ( DISTINCT - - 47 ) AS col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8020
SELECT DISTINCT 57 DIV - + ( 70 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT 57 / - + ( 70 ) AS col2
----
0

query I rowsort
SELECT DISTINCT 1 - 53
----
-52

query I rowsort
SELECT ALL - + 54 * - ( - + 54 ) AS col1
----
-2916

query I rowsort
SELECT + 45 + - 93 + + + 11 AS col0
----
-37

query I rowsort
SELECT ALL 15 - + 92 AS col0
----
-77

query I rowsort
SELECT DISTINCT - 20 * - 63 AS col0
----
1260

onlyif mysql # DIV for integer division: 
query I rowsort label-8026
SELECT - + 55 DIV - 20 + - 83 DIV - 58
----
3

skipif mysql # not compatible
query I rowsort label-8026
SELECT - + 55 / - 20 + - 83 / - 58
----
3

query II rowsort
SELECT + 3, + 67 * - 84 * + 66 AS col0
----
3
-371448

query I rowsort
SELECT + - 71 + 42
----
-29

query I rowsort
SELECT + + 96 + + 33 AS col1
----
129

onlyif mysql # aggregate syntax: 
query II rowsort label-8030
SELECT + + CASE 58 WHEN + - 15 THEN - 38 WHEN + NULLIF ( + 83, - + 83 ) + + 48 THEN - - 22 + - 81 / - 12 WHEN 43 * - 83 + - 31 + - + 97 - + 42 * - + COUNT( * ) * + + 94 THEN NULL END / - ( + COUNT( * ) ) + - 89 AS col0, 3 col1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8030
SELECT + + CASE 58 WHEN + - 15 THEN - 38 WHEN + NULLIF ( + 83, - + 83 ) + + 48 THEN - - 22 + - 81 / - 12 WHEN 43 * - 83 + - 31 + - + 97 - + 42 * - + COUNT ( * ) * + + 94 THEN NULL END / - ( + COUNT ( * ) ) + - 89 AS col0, 3 col1
----
NULL
3

query I rowsort
SELECT - 54 * + 62 + - 34 - - 53 col1
----
-3329

query I rowsort
SELECT - + 46 * - 65 AS col1
----
2990

query II rowsort
SELECT ALL + 72, 43 AS col2
----
72
43

query II rowsort
SELECT ALL + 59, - 80 AS col0
----
59
-80

query I rowsort
SELECT DISTINCT + + ( 16 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT DISTINCT 67 * 54 + - MAX( + 34 ) AS col2
----
3584

skipif mysql # not compatible
query I rowsort label-8036
SELECT DISTINCT 67 * 54 + - MAX ( + 34 ) AS col2
----
3584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8037
SELECT DISTINCT + 74 / + 88 * - CAST( NULL AS SIGNED ) * + COUNT( - 8 ), + 66 AS col1
----
NULL
66

skipif mysql # not compatible
query II rowsort label-8037
SELECT DISTINCT + 74 / + 88 * - CAST ( NULL AS INTEGER ) * + COUNT ( - 8 ), + 66 AS col1
----
NULL
66

query I rowsort
SELECT COALESCE ( - + 9, + 92 )
----
-9

query II rowsort
SELECT - 76 * 62 AS col0, + 66 * 48
----
-4712
3168

query I rowsort
SELECT ALL - COALESCE ( - 16, - 92 * - COALESCE ( + 93, + ( 78 ), - 74 ) ) * + - 98
----
-1568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8041
SELECT NULLIF ( + - NULLIF ( + CAST( - NULLIF ( - + COUNT( * ), - - CAST( 57 AS SIGNED ) + + + 63 + + + 68 * + 36 / COUNT( * ) * - 94 * + + SUM( 43 ) ) AS SIGNED ), - NULLIF ( - - COUNT( * ), - + SUM( - 1 ) ) * - 13 ), - COUNT( * ) * 95 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8041
SELECT NULLIF ( + - NULLIF ( + CAST ( - NULLIF ( - + COUNT ( * ), - - CAST ( 57 AS INTEGER ) + + + 63 + + + 68 * + 36 / COUNT ( * ) * - 94 * + + SUM ( 43 ) ) AS INTEGER ), - NULLIF ( - - COUNT ( * ), - + SUM ( - 1 ) ) * - 13 ), - COUNT ( * ) * 95 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT ALL 79 * - + 50 + COUNT( * ) * 32 + + COUNT( * ) + + NULLIF ( + ( - 35 ), - 4 * 26 ) * 72
----
-6437

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL 79 * - + 50 + COUNT ( * ) * 32 + + COUNT ( * ) + + NULLIF ( + ( - 35 ), - 4 * 26 ) * 72
----
-6437

query I rowsort
SELECT DISTINCT 54 * + + 16 + 0
----
864

query I rowsort
SELECT ALL - 47 * + 40 AS col0
----
-1880

query II rowsort
SELECT ALL - 6 * - 60 + - 34 * 47 AS col1, 17 + 95
----
-1238
112

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT DISTINCT + 23 * - COUNT( ALL + + 99 ) + - 78 col1
----
-101

skipif mysql # not compatible
query I rowsort label-8046
SELECT DISTINCT + 23 * - COUNT ( ALL + + 99 ) + - 78 col1
----
-101

query I rowsort
SELECT + 16 * + 13 col1
----
208

query I rowsort
SELECT - 86 - 92 + - - ( 13 ) * + 77 + - 79 + - 36
----
708

onlyif mysql # aggregate syntax: 
query II rowsort label-8049
SELECT - ( 41 ) AS col2, - MAX( DISTINCT + + 0 )
----
-41
0

skipif mysql # not compatible
query II rowsort label-8049
SELECT - ( 41 ) AS col2, - MAX ( DISTINCT + + 0 )
----
-41
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT ALL + SUM( ALL + 91 ) - - 43 AS col0
----
134

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL + SUM ( ALL + 91 ) - - 43 AS col0
----
134

query I rowsort
SELECT ALL - 82 - + + 86
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8052
SELECT + 34 - + + ( - 25 ) + - - CASE + 64 WHEN - + ( 52 ) + + - 22 THEN CAST( + 92 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8052
SELECT + 34 - + + ( - 25 ) + - - CASE + 64 WHEN - + ( 52 ) + + - 22 THEN CAST ( + 92 AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL - - 35 * 18 AS col1
----
630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8054
SELECT ALL COUNT( DISTINCT CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL COUNT ( DISTINCT CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL - 80 * 30
----
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT ALL MAX( + - 9 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL MAX ( + - 9 ) AS col2
----
-9

query I rowsort
SELECT + + 94 + 62
----
156

query II rowsort
SELECT + - 25 * 13 AS col2, 90
----
-325
90

query I rowsort
SELECT ALL - ( + 17 ) AS col1
----
-17

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8060
SELECT + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ), + 39 col1
----
NULL
39

skipif mysql # not compatible
query II rowsort label-8060
SELECT + CAST ( CAST ( NULL AS REAL ) AS INTEGER ), + 39 col1
----
NULL
39

query I rowsort
SELECT DISTINCT + + 97 col1
----
97

query I rowsort
SELECT ALL + + ( + + 39 )
----
39

query I rowsort
SELECT ALL + ( - ( - COALESCE ( 86, + 59 * - 71, 49 + - + 82 ) ) ) * + 9 * - 78 * + - ( + 1 ) AS col2
----
60372

query I rowsort
SELECT ALL - + 59 * + 61 * - - 57
----
-205143

onlyif mysql # DIV for integer division: 
query I rowsort label-8065
SELECT + + 9 DIV + ( - 60 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8065
SELECT + + 9 / + ( - 60 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8066
SELECT ALL CAST( COUNT( * ) AS SIGNED ) / - 25 * - SUM( ALL - COALESCE ( 47, 65 ) ) + - - 64 * + + CAST( NULL AS SIGNED ) * - AVG ( ALL + 69 ) * + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) / - 25 * - SUM ( ALL - COALESCE ( 47, 65 ) ) + - - 64 * + + CAST ( NULL AS INTEGER ) * - AVG ( ALL + 69 ) * + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT + 82 * + COUNT( * ) + 28 + 46
----
156

skipif mysql # not compatible
query I rowsort label-8067
SELECT + 82 * + COUNT ( * ) + 28 + 46
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8068
SELECT ( NULLIF ( - 91, - + 32 ) ) / + ( + CASE + NULLIF ( COUNT( * ), + CASE - 64 WHEN + 12 THEN - + 55 * 90 * ( - COUNT( * ) ) WHEN + + CAST( 11 AS SIGNED ) THEN + 45 * - 22 / CASE ( - 43 ) WHEN + - 52 THEN 39 WHEN 92 THEN NULL WHEN + - COUNT( * ) * + AVG ( - 50 ) THEN NULL ELSE 35 + + 55 END + - 23 END * COUNT( * ) * COUNT( + 76 ) + 56 ) WHEN + NULLIF ( + - COUNT( * ), + 93 ) THEN + - CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN NULL WHEN - 99 * 53 THEN NULL END ) + - - ( COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8068
SELECT ( NULLIF ( - 91, - + 32 ) ) / + ( + CASE + NULLIF ( COUNT ( * ), + CASE - 64 WHEN + 12 THEN - + 55 * 90 * ( - COUNT ( * ) ) WHEN + + CAST ( 11 AS INTEGER ) THEN + 45 * - 22 / CASE ( - 43 ) WHEN + - 52 THEN 39 WHEN 92 THEN NULL WHEN + - COUNT ( * ) * + AVG ( - 50 ) THEN NULL ELSE 35 + + 55 END + - 23 END * COUNT ( * ) * COUNT ( + 76 ) + 56 ) WHEN + NULLIF ( + - COUNT ( * ), + 93 ) THEN + - CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN NULL WHEN - 99 * 53 THEN NULL END ) + - - ( COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 58 + + - 14
----
44

query I rowsort
SELECT DISTINCT 17 + - 61
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT ALL + MAX( - 17 ) + SUM( + ( + 35 ) ) + 70 * - ( COUNT( * ) )
----
-52

skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL + MAX ( - 17 ) + SUM ( + ( + 35 ) ) + 70 * - ( COUNT ( * ) )
----
-52

query I rowsort
SELECT 15 - + COALESCE ( + 56, + + 30 ) AS col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8073
SELECT - 50 * + ( + MAX( - + 64 ) ) + - 12 AS col1, NULLIF ( + CAST( NULL AS SIGNED ), - 59 )
----
3188
NULL

skipif mysql # not compatible
query II rowsort label-8073
SELECT - 50 * + ( + MAX ( - + 64 ) ) + - 12 AS col1, NULLIF ( + CAST ( NULL AS INTEGER ), - 59 )
----
3188
NULL

query I rowsort
SELECT ALL + 89 - + - 64
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8075
SELECT ( 70 ) + COUNT( DISTINCT + 92 ) / - CAST( NULL AS SIGNED ) + NULLIF ( - COUNT( * ), + + 54 * - 13 - - + 71 * - 1 ) * + + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8075
SELECT ( 70 ) + COUNT ( DISTINCT + 92 ) / - CAST ( NULL AS INTEGER ) + NULLIF ( - COUNT ( * ), + + 54 * - 13 - - + 71 * - 1 ) * + + 44 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8076
SELECT ALL - ( + 85 ) DIV 33 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL - ( + 85 ) / 33 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8077
SELECT 14 + + 3 + ( - COUNT( * ) ) DIV - 70 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-8077
SELECT 14 + + 3 + ( - COUNT ( * ) ) / - 70 AS col1
----
17

query I rowsort
SELECT 50 * + COALESCE ( 43, + - 27 )
----
2150

onlyif mysql # DIV for integer division: 
query I rowsort label-8079
SELECT - 87 * 30 DIV 95 + - 70
----
-97

skipif mysql # not compatible
query I rowsort label-8079
SELECT - 87 * 30 / 95 + - 70
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT SUM( DISTINCT - 87 ) - + 52 - 97
----
-236

skipif mysql # not compatible
query I rowsort label-8080
SELECT SUM ( DISTINCT - 87 ) - + 52 - 97
----
-236

onlyif mysql # aggregate syntax: 
query II rowsort label-8081
SELECT ALL 82 AS col0, + COUNT( * )
----
82
1

skipif mysql # not compatible
query II rowsort label-8081
SELECT ALL 82 AS col0, + COUNT ( * )
----
82
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT 33 + + 4 + + 19 * COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-8082
SELECT 33 + + 4 + + 19 * COUNT ( * )
----
56

query I rowsort
SELECT 49 + 4
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8084
SELECT ALL + MIN( DISTINCT CAST( NULL AS SIGNED ) ) * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * 29
----
NULL

query I rowsort
SELECT 59 + 18
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8086
SELECT ALL 20 DIV + MAX( ALL 75 )
----
0

skipif mysql # not compatible
query I rowsort label-8086
SELECT ALL 20 / + MAX ( ALL 75 )
----
0

query I rowsort
SELECT 65 * 64
----
4160

query I rowsort
SELECT 39 * + 6 AS col0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT 75 * COALESCE ( + 48 * 33, - COUNT( * ), + 38 - 29 )
----
118800

skipif mysql # not compatible
query I rowsort label-8089
SELECT 75 * COALESCE ( + 48 * 33, - COUNT ( * ), + 38 - 29 )
----
118800

query I rowsort
SELECT 46 + 80
----
126

query I rowsort
SELECT 65 * + 29
----
1885

query I rowsort
SELECT ALL 78 * - 46 AS col1
----
-3588

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT SUM( DISTINCT 29 ) + + 85
----
114

skipif mysql # not compatible
query I rowsort label-8093
SELECT SUM ( DISTINCT 29 ) + + 85
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL - 91 * COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL - 91 * COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT DISTINCT + 37 + - COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT + 37 + - COUNT ( * ) AS col1
----
36

query I rowsort
SELECT DISTINCT - 73 + 66
----
-7

query I rowsort
SELECT ALL + 19 + 3 AS col0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8098
SELECT + 3 / CAST( NULL AS SIGNED ) + + ( + 84 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8098
SELECT + 3 / CAST ( NULL AS INTEGER ) + + ( + 84 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT 80 + COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-8099
SELECT 80 + COUNT ( * ) AS col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8100
SELECT 83 DIV 79 + 29 * COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-8100
SELECT 83 / 79 + 29 * COUNT ( * ) AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8101
SELECT CAST( NULL AS SIGNED ) + ( 1 + - 89 / 11 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8101
SELECT CAST ( NULL AS INTEGER ) + ( 1 + - 89 / 11 ) AS col0
----
NULL

query I rowsort
SELECT 83 * - 86 + + 99
----
-7039

query I rowsort
SELECT DISTINCT - COALESCE ( + NULLIF ( 53, + 20 * + 19 ), + 57 * + 28 - 42 * 84 ) AS col2
----
-53

query I rowsort
SELECT ALL 40 + + 27 col1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8105
SELECT 20 DIV + 12 + + ( 11 + 57 )
----
69

skipif mysql # not compatible
query I rowsort label-8105
SELECT 20 / + 12 + + ( 11 + 57 )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8106
SELECT ALL COUNT( * ) DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL COUNT ( * ) / 60
----
0

query I rowsort
SELECT ALL ( 94 ) * + 70 AS col2
----
6580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8108
SELECT DISTINCT COUNT( * ) DIV 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8108
SELECT DISTINCT COUNT ( * ) / 21 AS col2
----
0

query I rowsort
SELECT ALL 5 - + 69 * ( 90 * - 95 )
----
589955

query I rowsort
SELECT 5 * 2 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT ( 56 ) * + COUNT( * ) col0
----
56

skipif mysql # not compatible
query I rowsort label-8111
SELECT ( 56 ) * + COUNT ( * ) col0
----
56

query I rowsort
SELECT + 20 * + 31 + - 30 AS col2
----
590

query I rowsort
SELECT ALL 57 * 29 AS col0
----
1653

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT 59 + 44 * COUNT( * ) col1
----
103

skipif mysql # not compatible
query I rowsort label-8114
SELECT 59 + 44 * COUNT ( * ) col1
----
103

query I rowsort
SELECT 30 * + 3 AS col0
----
90

query I rowsort
SELECT DISTINCT 4 - + 93 col0
----
-89

query I rowsort
SELECT DISTINCT - COALESCE ( + 54, 24 )
----
-54

query I rowsort
SELECT 49 * 98 + 43 AS col2
----
4845

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT ALL + COALESCE ( + 20, + COUNT( * ) ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-8119
SELECT ALL + COALESCE ( + 20, + COUNT ( * ) ) AS col1
----
20

query I rowsort
SELECT - 69 - 68
----
-137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8121
SELECT DISTINCT + 30 + CAST( NULL AS SIGNED ) / - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT + 30 + CAST ( NULL AS INTEGER ) / - 56 AS col0
----
NULL

query I rowsort
SELECT 67 + - 54 AS col0
----
13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8123
SELECT CASE - 59 WHEN + 14 THEN ( - CAST( 95 AS DECIMAL ) ) END / - 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8123
SELECT CASE - 59 WHEN + 14 THEN ( - CAST ( 95 AS REAL ) ) END / - 24 AS col0
----
NULL

query I rowsort
SELECT ALL + 97 + - 50 AS col2
----
47

query I rowsort
SELECT DISTINCT 70 * - 42 AS col0
----
-2940

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT - CASE + COUNT( * ) WHEN - 78 THEN 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8126
SELECT - CASE + COUNT ( * ) WHEN - 78 THEN 25 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT 67 * CASE 13 * - 15 WHEN + 32 + 71 THEN ( COUNT( * ) ) WHEN 77 * + 61 THEN 18 + + 56 ELSE 32 END AS col0
----
2144

skipif mysql # not compatible
query I rowsort label-8127
SELECT 67 * CASE 13 * - 15 WHEN + 32 + 71 THEN ( COUNT ( * ) ) WHEN 77 * + 61 THEN 18 + + 56 ELSE 32 END AS col0
----
2144

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT ALL - - 63 + - CASE - COUNT( * ) WHEN + 39 + - 45 THEN NULL WHEN 18 * + 35 THEN - 37 + + COUNT( * ) * 94 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL - - 63 + - CASE - COUNT ( * ) WHEN + 39 + - 45 THEN NULL WHEN 18 * + 35 THEN - 37 + + COUNT ( * ) * 94 END AS col0
----
NULL

query I rowsort
SELECT ALL + 4 + + 87 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT DISTINCT NULLIF ( - CASE 84 WHEN - 47 THEN + 37 WHEN COUNT( * ) + 19 THEN NULL END, + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8130
SELECT DISTINCT NULLIF ( - CASE 84 WHEN - 47 THEN + 37 WHEN COUNT ( * ) + 19 THEN NULL END, + 44 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8131
SELECT - 94 DIV + 25
----
-3

skipif mysql # not compatible
query I rowsort label-8131
SELECT - 94 / + 25
----
-3

query I rowsort
SELECT - 63 * + 92 AS col0
----
-5796

onlyif mysql # DIV for integer division: 
query I rowsort label-8133
SELECT DISTINCT + + 51 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-8133
SELECT DISTINCT + + 51 / 95
----
0

query I rowsort
SELECT DISTINCT + 54 + + 36
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8135
SELECT + 82 - + COALESCE ( - 86, - 20 DIV 7 + + CASE 53 WHEN NULLIF ( COUNT( CAST( 64 AS SIGNED ) ), - 18 + 26 ) + 5 THEN - 56 WHEN 86 THEN + 76 + - 43 ELSE NULL END, 50 * + 20 )
----
168

skipif mysql # not compatible
query I rowsort label-8135
SELECT + 82 - + COALESCE ( - 86, - 20 / 7 + + CASE 53 WHEN NULLIF ( COUNT ( CAST ( 64 AS INTEGER ) ), - 18 + 26 ) + 5 THEN - 56 WHEN 86 THEN + 76 + - 43 ELSE NULL END, 50 * + 20 )
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT + COUNT( 2 )
----
1

skipif mysql # not compatible
query I rowsort label-8136
SELECT + COUNT ( 2 )
----
1

query I rowsort
SELECT COALESCE ( - 63, 99 )
----
-63

query I rowsort
SELECT - 47 * + + 81 AS col2
----
-3807

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT DISTINCT + COUNT( * ) * 9
----
9

skipif mysql # not compatible
query I rowsort label-8139
SELECT DISTINCT + COUNT ( * ) * 9
----
9

query I rowsort
SELECT NULLIF ( + 34, 50 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8141
SELECT CASE + + NULLIF ( - 22, 29 * - COUNT( * ) + 44 ) WHEN - 77 + 83 THEN - CAST( NULL AS SIGNED ) + + 42 * - COUNT( DISTINCT + ( 29 ) ) ELSE + 91 + + COUNT( + CAST( NULL AS SIGNED ) ) END
----
91

skipif mysql # not compatible
query I rowsort label-8141
SELECT CASE + + NULLIF ( - 22, 29 * - COUNT ( * ) + 44 ) WHEN - 77 + 83 THEN - CAST ( NULL AS INTEGER ) + + 42 * - COUNT ( DISTINCT + ( 29 ) ) ELSE + 91 + + COUNT ( + CAST ( NULL AS INTEGER ) ) END
----
91

query I rowsort
SELECT - 11 + - + 9
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT + 16 * - - MAX( - 27 ) * 6 AS col2
----
-2592

skipif mysql # not compatible
query I rowsort label-8143
SELECT + 16 * - - MAX ( - 27 ) * 6 AS col2
----
-2592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8144
SELECT DISTINCT + 16 * + COALESCE ( + 63, COALESCE ( - 82, + COUNT( * ) ) DIV 58 ) * + 60
----
60480

skipif mysql # not compatible
query I rowsort label-8144
SELECT DISTINCT + 16 * + COALESCE ( + 63, COALESCE ( - 82, + COUNT ( * ) ) / 58 ) * + 60
----
60480

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT 25 * 85 + + SUM( ALL - 54 )
----
2071

skipif mysql # not compatible
query I rowsort label-8145
SELECT 25 * 85 + + SUM ( ALL - 54 )
----
2071

query I rowsort
SELECT CASE - 88 WHEN - 97 THEN NULL ELSE + 53 END AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8147
SELECT CASE - - 85 WHEN 4 + 44 / 5 THEN NULL WHEN 30 + + COALESCE ( NULLIF ( COUNT( * ), - ( + ( 14 ) ) ), + COALESCE ( 96, 55 / - NULLIF ( - 32 * + 57, 62 + NULLIF ( + CASE 83 WHEN 72 / CASE 46 WHEN - 15 THEN 92 ELSE - 35 END + + 82 THEN - CASE 78 WHEN MAX( ALL 65 ) THEN NULL ELSE COALESCE ( 65, CAST( + 78 AS DECIMAL ) + - COUNT( ALL + 1 + ( + 31 ) * + 4 ) ) + 65 * 97 END - ( - 60 ) END, - 26 ) ), 39 ) ) THEN 23 / COUNT( 36 * 82 ) + ( + CAST( NULL AS SIGNED ) ) WHEN + COUNT( - 98 ) - 62 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8147
SELECT CASE - - 85 WHEN 4 + 44 / 5 THEN NULL WHEN 30 + + COALESCE ( NULLIF ( COUNT ( * ), - ( + ( 14 ) ) ), + COALESCE ( 96, 55 / - NULLIF ( - 32 * + 57, 62 + NULLIF ( + CASE 83 WHEN 72 / CASE 46 WHEN - 15 THEN 92 ELSE - 35 END + + 82 THEN - CASE 78 WHEN MAX ( ALL 65 ) THEN NULL ELSE COALESCE ( 65, CAST ( + 78 AS REAL ) + - COUNT ( ALL + 1 + ( + 31 ) * + 4 ) ) + 65 * 97 END - ( - 60 ) END, - 26 ) ), 39 ) ) THEN 23 / COUNT ( 36 * 82 ) + ( + CAST ( NULL AS INTEGER ) ) WHEN + COUNT ( - 98 ) - 62 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8148
SELECT ALL + CAST( + ( - 90 ) AS SIGNED ) col2
----
-90

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL + CAST ( + ( - 90 ) AS INTEGER ) col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8149
SELECT + COUNT( * ) + + CAST( NULL AS DECIMAL ) + COUNT( * ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8149
SELECT + COUNT ( * ) + + CAST ( NULL AS REAL ) + COUNT ( * ) * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 45 * - - 3 AS col0
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8151
SELECT DISTINCT CAST( + 41 AS SIGNED ) DIV - COUNT( * ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-8151
SELECT DISTINCT CAST ( + 41 AS INTEGER ) / - COUNT ( * ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT + ( 38 ) + NULLIF ( 42, COUNT( * ) + - 23 )
----
80

skipif mysql # not compatible
query I rowsort label-8152
SELECT + ( 38 ) + NULLIF ( 42, COUNT ( * ) + - 23 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT + MAX( + 28 ) + + 36 * ( + 70 * 54 ) AS col0
----
136108

skipif mysql # not compatible
query I rowsort label-8153
SELECT + MAX ( + 28 ) + + 36 * ( + 70 * 54 ) AS col0
----
136108

query I rowsort
SELECT ALL - 93 * + 60 AS col2
----
-5580

onlyif mysql # DIV for integer division: 
query I rowsort label-8155
SELECT + ( + 51 ) + - 23 DIV - 56 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-8155
SELECT + ( + 51 ) + - 23 / - 56 AS col0
----
51

query I rowsort
SELECT + 23 - + 95 AS col0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8157
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + + 12 * 6 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT + COUNT( * ) * - 93 + 5
----
-88

skipif mysql # not compatible
query I rowsort label-8159
SELECT + COUNT ( * ) * - 93 + 5
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT - - COUNT( * ) - CASE 41 WHEN - MIN( ALL 71 ) THEN 71 / COALESCE ( - 98 * - 64, 93 * - COUNT( * ) ) + - 51 * 44 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8160
SELECT - - COUNT ( * ) - CASE 41 WHEN - MIN ( ALL 71 ) THEN 71 / COALESCE ( - 98 * - 64, 93 * - COUNT ( * ) ) + - 51 * 44 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT DISTINCT COUNT( * ) * + ( + 25 ) + 59 * + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT COUNT ( * ) * + ( + 25 ) + 59 * + COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT DISTINCT COUNT( * ) + 91 - COUNT( ALL - 2 )
----
91

skipif mysql # not compatible
query I rowsort label-8162
SELECT DISTINCT COUNT ( * ) + 91 - COUNT ( ALL - 2 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT ALL + 68 + 41 - + ( COUNT( * ) )
----
108

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL + 68 + 41 - + ( COUNT ( * ) )
----
108

query I rowsort
SELECT + + 88 + + 90
----
178

query I rowsort
SELECT DISTINCT + + 65 + + - 15
----
50

query I rowsort
SELECT + - 13 + + + 61 * 41 AS col0
----
2488

query I rowsort
SELECT ALL 86 + + 81 AS col2
----
167

query I rowsort
SELECT ALL + NULLIF ( - 38, + 26 / + 91 ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT - 52 * COUNT( * ) * 10
----
-520

skipif mysql # not compatible
query I rowsort label-8169
SELECT - 52 * COUNT ( * ) * 10
----
-520

query I rowsort
SELECT ALL + 42 * - CASE 74 WHEN - 23 * 52 THEN 56 - + 80 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8171
SELECT - + COUNT( * ) DIV - 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8171
SELECT - + COUNT ( * ) / - 27 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT ALL + - 23 + - CASE MAX( DISTINCT + 72 ) WHEN - 87 / + 92 + - 56 * - 2 THEN NULL ELSE 94 * 34 END + - 16
----
-3235

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL + - 23 + - CASE MAX ( DISTINCT + 72 ) WHEN - 87 / + 92 + - 56 * - 2 THEN NULL ELSE 94 * 34 END + - 16
----
-3235

onlyif mysql # DIV for integer division: 
query I rowsort label-8173
SELECT DISTINCT 70 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT 70 / 97 AS col0
----
0

query I rowsort
SELECT ALL - 50 - 39
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT ALL + SUM( - 81 ) - COUNT( * ) col2
----
-82

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL + SUM ( - 81 ) - COUNT ( * ) col2
----
-82

query I rowsort
SELECT - + 86 * + + 12 * 9 AS col1
----
-9288

query I rowsort
SELECT - 23 + 76 + - 5 * 26 AS col1
----
-77

query I rowsort
SELECT ALL - 56 * 88 AS col2
----
-4928

query I rowsort
SELECT - 99 + - 78 AS col0
----
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-8180
SELECT - 17 DIV 32 * - - 0
----
0

skipif mysql # not compatible
query I rowsort label-8180
SELECT - 17 / 32 * - - 0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8181
SELECT DISTINCT + 76, - 12 DIV 82 * - COALESCE ( + 25, + 98 ) + 86 AS col2
----
76
86

skipif mysql # not compatible
query II rowsort label-8181
SELECT DISTINCT + 76, - 12 / 82 * - COALESCE ( + 25, + 98 ) + 86 AS col2
----
76
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT ALL + COUNT( - + 40 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL + COUNT ( - + 40 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8183
SELECT - 52 DIV + 32
----
-1

skipif mysql # not compatible
query I rowsort label-8183
SELECT - 52 / + 32
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8184
SELECT ALL - CASE + 60 WHEN - CAST( NULL AS SIGNED ) THEN 26 ELSE COALESCE ( COUNT( * ), 84, ( COUNT( ALL 10 ) ) ) DIV 71 END DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL - CASE + 60 WHEN - CAST ( NULL AS INTEGER ) THEN 26 ELSE COALESCE ( COUNT ( * ), 84, ( COUNT ( ALL 10 ) ) ) / 71 END / 97 AS col0
----
0

query I rowsort
SELECT DISTINCT + CASE 88 WHEN + + 74 THEN + 79 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8186
SELECT ALL + 95 col1, + 19 * - 40 + + 74 * + COALESCE ( - COUNT( * ), + 63, + 54 )
----
95
-834

skipif mysql # not compatible
query II rowsort label-8186
SELECT ALL + 95 col1, + 19 * - 40 + + 74 * + COALESCE ( - COUNT ( * ), + 63, + 54 )
----
95
-834

query I rowsort
SELECT - 40 * + + 58
----
-2320

query I rowsort
SELECT ALL + ( - 18 ) col1
----
-18

query I rowsort
SELECT DISTINCT + 85 * - 1 * + + 79 AS col1
----
-6715

query I rowsort
SELECT DISTINCT + CASE 89 WHEN + 28 THEN 1 ELSE - 91 - - 20 END col0
----
-71

query I rowsort
SELECT ( + ( - 24 ) )
----
-24

query I rowsort
SELECT - NULLIF ( + 42, 85 * - 82 ) * - ( 1 ) AS col1
----
42

query I rowsort
SELECT + COALESCE ( - 94, - 79, 66 + - 18 )
----
-94

query II rowsort
SELECT + 34, 64 AS col0
----
34
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8195
SELECT ( + - CAST( + + 37 AS SIGNED ) )
----
-37

skipif mysql # not compatible
query I rowsort label-8195
SELECT ( + - CAST ( + + 37 AS INTEGER ) )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT + ( + - COUNT( * ) ) * + SUM( DISTINCT 28 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-8196
SELECT + ( + - COUNT ( * ) ) * + SUM ( DISTINCT 28 ) AS col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8197
SELECT - + COUNT( * ) DIV + + 1
----
-1

skipif mysql # not compatible
query I rowsort label-8197
SELECT - + COUNT ( * ) / + + 1
----
-1

query I rowsort
SELECT + CASE - 76 WHEN 65 THEN NULL WHEN + ( + 43 ) THEN + 41 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + ( - + 2 ) * 8 * - ( - 94 ) + 61
----
-1443

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8200
SELECT ALL - NULLIF ( ( + 35 ), 15 ) * - CAST( NULL AS SIGNED ) + + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL - NULLIF ( ( + 35 ), 15 ) * - CAST ( NULL AS INTEGER ) + + 41
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8201
SELECT ALL 1 * + CASE + 95 WHEN + COUNT( * ) THEN 47 END * COALESCE ( + 7 - - 11 / 10, CAST( NULL AS DECIMAL ) + - 30 ) + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL 1 * + CASE + 95 WHEN + COUNT ( * ) THEN 47 END * COALESCE ( + 7 - - 11 / 10, CAST ( NULL AS REAL ) + - 30 ) + 97
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8202
SELECT DISTINCT + COUNT( * ) * - 83 DIV - 7 + SUM( ALL 81 ) * 38
----
3089

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT + COUNT ( * ) * - 83 / - 7 + SUM ( ALL 81 ) * 38
----
3089

query I rowsort
SELECT + + 76 * - 95 + - 98 + 95 * + 67 AS col1
----
-953

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8204
SELECT + COUNT( * ) DIV + 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8204
SELECT + COUNT ( * ) / + 67 AS col1
----
0

query I rowsort
SELECT ALL 9 * - 16 + ( + 12 ) * 90 AS col1
----
936

query I rowsort
SELECT - NULLIF ( - 72, + + NULLIF ( 37, - 68 ) ) * 10
----
720

query II rowsort
SELECT 60 AS col0, - 84 + 18 * + 59
----
60
978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8208
SELECT + COUNT( * ) * - 84 - - - CAST( NULL AS SIGNED ) + - COUNT( 23 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8208
SELECT + COUNT ( * ) * - 84 - - - CAST ( NULL AS INTEGER ) + - COUNT ( 23 ) col0
----
NULL

query I rowsort
SELECT DISTINCT 97 + - + ( + 15 ) AS col2
----
82

query I rowsort
SELECT ( + - 48 ) * 55 * - 67 col0
----
176880

query I rowsort
SELECT DISTINCT - 12 * 32 AS col0
----
-384

query I rowsort
SELECT DISTINCT 15 - - 48 + + 5 - - 31 * + 32
----
1060

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT ALL + 96 * + 77 - + - COUNT( * ) - 74
----
7319

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL + 96 * + 77 - + - COUNT ( * ) - 74
----
7319

query I rowsort
SELECT ALL - 21 - - - 31 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT DISTINCT - 52 * - COUNT( 1 )
----
52

skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT - 52 * - COUNT ( 1 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT - MIN( 50 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-8216
SELECT - MIN ( 50 ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT ( - COUNT( * ) ) * 49 + 65 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-8217
SELECT ( - COUNT ( * ) ) * 49 + 65 AS col0
----
16

query I rowsort
SELECT 44 * - - 7
----
308

query I rowsort
SELECT DISTINCT 17 * + - ( + 27 )
----
-459

query I rowsort
SELECT 34 * 2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8221
SELECT ALL 46 DIV - 17 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL 46 / - 17 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT DISTINCT - 53 * + ( COUNT( DISTINCT 8 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-8222
SELECT DISTINCT - 53 * + ( COUNT ( DISTINCT 8 ) )
----
-53

query I rowsort
SELECT ALL - NULLIF ( + 11, - - 88 * + - 6 + 93 ) AS col2
----
-11

query I rowsort
SELECT 59 * - 99 AS col2
----
-5841

query I rowsort
SELECT 30 + + + 41 + 36
----
107

query I rowsort
SELECT ( + + 27 ) * + + 64 + + 86 AS col2
----
1814

query I rowsort
SELECT - ( 31 ) * + - 69 + 74 AS col0
----
2213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8228
SELECT 78 / + 79 * - + AVG ( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8228
SELECT 78 / + 79 * - + AVG ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 59 + - + 5
----
54

query I rowsort
SELECT ALL + 63 + + 59 AS col1
----
122

query I rowsort
SELECT DISTINCT - ( - + 69 ) AS col2
----
69

query I rowsort
SELECT - 49 + + + 81 col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8233
SELECT ALL NULLIF ( + ( + 87 ), - - CAST( NULL AS SIGNED ) / - 73 - + ( - 64 ) ) + + 77
----
164

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL NULLIF ( + ( + 87 ), - - CAST ( NULL AS INTEGER ) / - 73 - + ( - 64 ) ) + + 77
----
164

onlyif mysql # aggregate syntax: 
query II rowsort label-8234
SELECT - 58 + + 1 AS col0, COUNT( * ) AS col0
----
-57
1

skipif mysql # not compatible
query II rowsort label-8234
SELECT - 58 + + 1 AS col0, COUNT ( * ) AS col0
----
-57
1

query I rowsort
SELECT ALL + + 73 + + 81
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT + + MIN( + 7 ) * + 98 + - + 64 + - COALESCE ( 77, ( - 90 ) * 3 ) * - COUNT( * )
----
699

skipif mysql # not compatible
query I rowsort label-8236
SELECT + + MIN ( + 7 ) * + 98 + - + 64 + - COALESCE ( 77, ( - 90 ) * 3 ) * - COUNT ( * )
----
699

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT + ( - + 9 ) * - 47 + + - 62 + - 95 * + COUNT( * )
----
266

skipif mysql # not compatible
query I rowsort label-8237
SELECT + ( - + 9 ) * - 47 + + - 62 + - 95 * + COUNT ( * )
----
266

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT - NULLIF ( - SUM( DISTINCT 51 ), + + 33 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-8238
SELECT - NULLIF ( - SUM ( DISTINCT 51 ), + + 33 ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT ( - 85 ) + - ( - CASE AVG ( 68 ) WHEN + 3 + 43 THEN + 58 * - SUM( DISTINCT + 36 ) WHEN ( + 61 ) * 94 + + 73 THEN NULL WHEN SUM( - 77 ) / - COUNT( * ) + - 90 * 64 THEN NULL ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8239
SELECT ( - 85 ) + - ( - CASE AVG ( 68 ) WHEN + 3 + 43 THEN + 58 * - SUM ( DISTINCT + 36 ) WHEN ( + 61 ) * 94 + + 73 THEN NULL WHEN SUM ( - 77 ) / - COUNT ( * ) + - 90 * 64 THEN NULL ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT + 7 * + 35
----
245

query II rowsort
SELECT 65 - - + 87, COALESCE ( 15, 55 ) - + 16 AS col0
----
152
-1

query I rowsort
SELECT - 74 * + 39 + + 90 + - - 12 * 11
----
-2664

query I rowsort
SELECT ALL - 14 * - 90
----
1260

query II rowsort
SELECT 91 + + 22, 6 AS col0
----
113
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT NULLIF ( MAX( + 45 ), - 80 ) * COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-8245
SELECT NULLIF ( MAX ( + 45 ), - 80 ) * COUNT ( * ) AS col1
----
45

query I rowsort
SELECT - 14 + - + 88
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-8247
SELECT DISTINCT - + 39 DIV - - 80
----
0

skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT - + 39 / - - 80
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8248
SELECT 8 DIV - 78 * 68
----
0

skipif mysql # not compatible
query I rowsort label-8248
SELECT 8 / - 78 * 68
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8249
SELECT DISTINCT MIN( + CAST( - 34 AS SIGNED ) ) * NULLIF ( - ( ( 96 ) ), + 74 ) DIV - 90
----
-36

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT MIN ( + CAST ( - 34 AS INTEGER ) ) * NULLIF ( - ( ( 96 ) ), + 74 ) / - 90
----
-36

query I rowsort
SELECT ALL 76 * - - 14 AS col2
----
1064

query I rowsort
SELECT DISTINCT - 12 * + ( - - 3 ) * 22 * + - 80 AS col1
----
63360

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT ALL 28 + + + 42 * COUNT( DISTINCT - 53 )
----
70

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL 28 + + + 42 * COUNT ( DISTINCT - 53 )
----
70

query I rowsort
SELECT 50 + + - 96 col1
----
-46

query I rowsort
SELECT ALL 92 + 91 * 87
----
8009

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT + SUM( ALL - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-8255
SELECT + SUM ( ALL - 98 )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8256
SELECT 59 DIV - 3 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-8256
SELECT 59 / - 3 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT MAX( DISTINCT 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-8257
SELECT MAX ( DISTINCT 51 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT + SUM( - + 17 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-8258
SELECT + SUM ( - + 17 ) AS col0
----
-17

query I rowsort
SELECT ALL 41 * + 61 + ( - 35 ) AS col0
----
2466

onlyif mysql # DIV for integer division: 
query I rowsort label-8260
SELECT DISTINCT COALESCE ( 94, + - 86 ) * + 56 * + 79 + - 90 * + ( 99 DIV NULLIF ( - ( - 48 ), 28 ) )
----
415676

skipif mysql # not compatible
query I rowsort label-8260
SELECT DISTINCT COALESCE ( 94, + - 86 ) * + 56 * + 79 + - 90 * + ( 99 / NULLIF ( - ( - 48 ), 28 ) )
----
415676

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8261
SELECT ALL ( 60 ) * COUNT( ALL + 88 ) + - NULLIF ( 44, COALESCE ( - CASE + AVG ( 72 ) WHEN - ( 52 ) * - 83 THEN + 23 * + 61 WHEN CAST( 69 AS SIGNED ) * 22 THEN NULL END, COUNT( * ) ) )
----
16

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL ( 60 ) * COUNT ( ALL + 88 ) + - NULLIF ( 44, COALESCE ( - CASE + AVG ( 72 ) WHEN - ( 52 ) * - 83 THEN + 23 * + 61 WHEN CAST ( 69 AS INTEGER ) * 22 THEN NULL END, COUNT ( * ) ) )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8262
SELECT COALESCE ( + 15, + - 1 * - 55 * - 72 ) * + CAST( - 65 AS SIGNED ) AS col0
----
-975

skipif mysql # not compatible
query I rowsort label-8262
SELECT COALESCE ( + 15, + - 1 * - 55 * - 72 ) * + CAST ( - 65 AS INTEGER ) AS col0
----
-975

query II rowsort
SELECT DISTINCT + - 48 AS col0, + 62 * + + 1 * - - 31 AS col2
----
-48
1922

onlyif mysql # DIV for integer division: 
query I rowsort label-8264
SELECT + 22 DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-8264
SELECT + 22 / 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT - CASE + 27 WHEN MAX( ALL - 89 ) THEN 7 END * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-8265
SELECT - CASE + 27 WHEN MAX ( ALL - 89 ) THEN 7 END * 90
----
NULL

query I rowsort
SELECT DISTINCT - + 99 * + 47 - - 31 + 40 col1
----
-4582

query I rowsort
SELECT DISTINCT - 18 * - 1 AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8268
SELECT - + COUNT( * ) DIV 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8268
SELECT - + COUNT ( * ) / 67 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT DISTINCT + + CASE + COUNT( * ) WHEN - COUNT( * ) - - - COALESCE ( - + 94, 45 + 82, 22 ) * + ( + COUNT( * ) + 90 ) THEN NULL ELSE 72 END AS col1
----
72

skipif mysql # not compatible
query I rowsort label-8269
SELECT DISTINCT + + CASE + COUNT ( * ) WHEN - COUNT ( * ) - - - COALESCE ( - + 94, 45 + 82, 22 ) * + ( + COUNT ( * ) + 90 ) THEN NULL ELSE 72 END AS col1
----
72

query I rowsort
SELECT DISTINCT 37 - + 15
----
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8271
SELECT ALL - 63 * - MAX( - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL - 63 * - MAX ( - CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT DISTINCT - - 4 - - + SUM( - + CASE - 6 WHEN - 34 THEN + 36 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT - - 4 - - + SUM ( - + CASE - 6 WHEN - 34 THEN + 36 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT MAX( - - 57 )
----
57

skipif mysql # not compatible
query I rowsort label-8273
SELECT MAX ( - - 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT + NULLIF ( + COUNT( * ), + 93 ) * - 59
----
-59

skipif mysql # not compatible
query I rowsort label-8274
SELECT + NULLIF ( + COUNT ( * ), + 93 ) * - 59
----
-59

query I rowsort
SELECT ALL - + 37 * + 62 AS col2
----
-2294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8276
SELECT ALL - CAST( 86 AS SIGNED ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL - CAST ( 86 AS INTEGER ) AS col0
----
-86

query II rowsort
SELECT - + 70 AS col0, + 49 + + 63
----
-70
112

query I rowsort
SELECT - 47 + COALESCE ( + 58, - 49 ) + + + 64 + + ( + 23 ) AS col1
----
98

query I rowsort
SELECT ALL - CASE - + 72 WHEN 46 THEN 38 END * + 10 * + - 63
----
NULL

query I rowsort
SELECT - 64 * 74
----
-4736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8281
SELECT ALL - SUM( DISTINCT + CAST( - - 65 AS SIGNED ) ) + + 88
----
23

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL - SUM ( DISTINCT + CAST ( - - 65 AS INTEGER ) ) + + 88
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8282
SELECT ALL + 98 + - + 40 + - + 66 + - 3 + + - MAX( - ( + 81 ) ) DIV 77 * 2 DIV + 12 * - 8
----
-11

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL + 98 + - + 40 + - + 66 + - 3 + + - MAX ( - ( + 81 ) ) / 77 * 2 / + 12 * - 8
----
-11

query III rowsort
SELECT 33 AS col1, 70 AS col1, 83 + + + 10 * + + 88 col1
----
33
70
963

query I rowsort
SELECT DISTINCT COALESCE ( + 12, - + 66, + - 63 + - - 81 )
----
12

query I rowsort
SELECT - 34 * - - 4 AS col2
----
-136

query I rowsort
SELECT - 93 - + 50
----
-143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8287
SELECT DISTINCT + CASE MAX( + + 5 ) WHEN + ( + 40 ) + 93 + 96 * 92 THEN MIN( ALL NULLIF ( - 66, 21 + + ( + 19 ) ) ) * CAST( - COUNT( * ) AS SIGNED ) + 56 END + + ( + 48 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT + CASE MAX ( + + 5 ) WHEN + ( + 40 ) + 93 + 96 * 92 THEN MIN ( ALL NULLIF ( - 66, 21 + + ( + 19 ) ) ) * CAST ( - COUNT ( * ) AS INTEGER ) + 56 END + + ( + 48 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8288
SELECT - 22 - + + 10 + - - 38 - + + 16 DIV + ( - - COALESCE ( - 29, MIN( ALL 78 ), - COUNT( * ) + - SUM( DISTINCT 35 + 21 ) ) )
----
6

skipif mysql # not compatible
query I rowsort label-8288
SELECT - 22 - + + 10 + - - 38 - + + 16 / + ( - - COALESCE ( - 29, MIN ( ALL 78 ), - COUNT ( * ) + - SUM ( DISTINCT 35 + 21 ) ) )
----
6

query I rowsort
SELECT ALL + 35 + - - 92 AS col2
----
127

query I rowsort
SELECT - 98 * - + 35
----
3430

query I rowsort
SELECT + COALESCE ( - - 53, - ( 89 ) + 63 * + 7 ) * - NULLIF ( 42, + 90 )
----
-2226

query I rowsort
SELECT - COALESCE ( + + 38, + 38 )
----
-38

query I rowsort
SELECT - 74 * - 58 * + - 44 AS col2
----
-188848

query II rowsort
SELECT 71, - 50 AS col2
----
71
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT ALL 86 + + 25 * 24 * - - COUNT( * ) AS col1
----
686

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL 86 + + 25 * 24 * - - COUNT ( * ) AS col1
----
686

query I rowsort
SELECT ALL 45 * + 95 AS col0
----
4275

query II rowsort
SELECT DISTINCT 79, + 13 AS col2
----
79
13

query II rowsort
SELECT ALL 38 + - 64 AS col2, + 61 + - - 37 * + 88 - 15 AS col1
----
-26
3302

query I rowsort
SELECT ALL - 63 * - 83 / - 68 * + CASE 29 WHEN - - 50 - 19 THEN 42 END
----
NULL

query II rowsort
SELECT ALL + 49, 4 * - 45 col0
----
49
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT + CASE - 77 WHEN + + 67 + - - 99 + + COUNT( * ) THEN - 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8301
SELECT + CASE - 77 WHEN + + 67 + - - 99 + + COUNT ( * ) THEN - 64 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT ALL + MAX( ALL + - 41 ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-8302
SELECT ALL + MAX ( ALL + - 41 ) col2
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-8303
SELECT - - COUNT( * ) + - 76, + 96 AS col1
----
-75
96

skipif mysql # not compatible
query II rowsort label-8303
SELECT - - COUNT ( * ) + - 76, + 96 AS col1
----
-75
96

query II rowsort
SELECT + + 80 AS col2, 91 + - 59 AS col2
----
80
32

query I rowsort
SELECT + 62 * + 92 * 47
----
268088

query I rowsort
SELECT ALL + - ( + 24 )
----
-24

query II rowsort
SELECT + 24 col0, 3 AS col2
----
24
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8308
SELECT + + 64 - 28 DIV + 54 + + 83
----
147

skipif mysql # not compatible
query I rowsort label-8308
SELECT + + 64 - 28 / + 54 + + 83
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ALL + COALESCE ( COUNT( * ), - - 65 + 17, + 40 )
----
1

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL + COALESCE ( COUNT ( * ), - - 65 + 17, + 40 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT + + 53 * + 31 * COALESCE ( + COUNT( ALL - 20 ), - COUNT( * ) ) AS col0
----
1643

skipif mysql # not compatible
query I rowsort label-8310
SELECT + + 53 * + 31 * COALESCE ( + COUNT ( ALL - 20 ), - COUNT ( * ) ) AS col0
----
1643

query II rowsort
SELECT + 33 + 56 AS col0, + 60 AS col2
----
89
60

query I rowsort
SELECT 28 * 63 + - + 24
----
1740

onlyif mysql # DIV for integer division: 
query I rowsort label-8313
SELECT - 92 DIV 44
----
-2

skipif mysql # not compatible
query I rowsort label-8313
SELECT - 92 / 44
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT COALESCE ( + 77, SUM( - ( + 98 ) ) )
----
77

skipif mysql # not compatible
query I rowsort label-8314
SELECT COALESCE ( + 77, SUM ( - ( + 98 ) ) )
----
77

query I rowsort
SELECT + 49 * - 93 * + 93
----
-423801

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT - - 87 + COUNT( DISTINCT - COALESCE ( - NULLIF ( + COALESCE ( + 83, 34, 31 ), 90 ), - 36 / + 78 + + 87 ) ) + COUNT( - 25 )
----
89

skipif mysql # not compatible
query I rowsort label-8316
SELECT - - 87 + COUNT ( DISTINCT - COALESCE ( - NULLIF ( + COALESCE ( + 83, 34, 31 ), 90 ), - 36 / + 78 + + 87 ) ) + COUNT ( - 25 )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8317
SELECT ALL + 90 * - 71 + COUNT( * ) + + COALESCE ( 2, CAST( - 88 AS SIGNED ) ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL + 90 * - 71 + COUNT ( * ) + + COALESCE ( 2, CAST ( - 88 AS INTEGER ) ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT ALL - 66 * COUNT( * ) + - COUNT( * ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL - 66 * COUNT ( * ) + - COUNT ( * ) AS col0
----
-67

query I rowsort
SELECT ALL 78 * - 0 + 40
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-8320
SELECT ALL SUM( 56 ) col0, 33
----
56
33

skipif mysql # not compatible
query II rowsort label-8320
SELECT ALL SUM ( 56 ) col0, 33
----
56
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT - 93 + - + 49 + + - 93 + SUM( ALL - + 73 ) + + CASE + 62 WHEN 76 THEN + 92 * + 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8321
SELECT - 93 + - + 49 + + - 93 + SUM ( ALL - + 73 ) + + CASE + 62 WHEN 76 THEN + 92 * + 66 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8322
SELECT - CAST( - 22 AS SIGNED ) col2, - COALESCE ( - 41, - 70 ) * + + CAST( NULL AS SIGNED ) / - 15 * - 11
----
22
NULL

skipif mysql # not compatible
query II rowsort label-8322
SELECT - CAST ( - 22 AS INTEGER ) col2, - COALESCE ( - 41, - 70 ) * + + CAST ( NULL AS INTEGER ) / - 15 * - 11
----
22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT - COUNT( * ) * 67 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-8323
SELECT - COUNT ( * ) * 67 AS col2
----
-67

query I rowsort
SELECT ALL + 67 + + - 89
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT + 99 + - 74 * + COUNT( ALL 49 ) * + - 74 * + COUNT( * )
----
5575

skipif mysql # not compatible
query I rowsort label-8325
SELECT + 99 + - 74 * + COUNT ( ALL 49 ) * + - 74 * + COUNT ( * )
----
5575

query I rowsort
SELECT ALL 57 + - 14 AS col1
----
43

query I rowsort
SELECT DISTINCT + 49 + - 81
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT - COALESCE ( + 87, - 97 * - 24 + + 70 - 32 ) + MAX( ALL 18 ) + 40 * + 23 col0
----
851

skipif mysql # not compatible
query I rowsort label-8328
SELECT - COALESCE ( + 87, - 97 * - 24 + + 70 - 32 ) + MAX ( ALL 18 ) + 40 * + 23 col0
----
851

query II rowsort
SELECT DISTINCT + 32 * 15, + 14 AS col0
----
480
14

query II rowsort
SELECT - 21 + 57, 39 + - 29 + + 31 + - 86 * + NULLIF ( - 93, 73 ) AS col0
----
36
8039

query I rowsort
SELECT DISTINCT + + 0 - + 78 + + 60 * + 51 col1
----
2982

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT COUNT( * ) * - ( - 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-8332
SELECT COUNT ( * ) * - ( - 98 ) AS col2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8333
SELECT - + COALESCE ( - 16, 86, - 8, - ( 6 ) * 57 ) DIV 62 + - 27 * + 99 AS col0
----
-2673

skipif mysql # not compatible
query I rowsort label-8333
SELECT - + COALESCE ( - 16, 86, - 8, - ( 6 ) * 57 ) / 62 + - 27 * + 99 AS col0
----
-2673

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT + ( - + NULLIF ( - COUNT( * ), 36 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8334
SELECT + ( - + NULLIF ( - COUNT ( * ), 36 ) ) AS col1
----
1

query I rowsort
SELECT ALL - ( + + COALESCE ( 50, - 18 ) ) col0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-8336
SELECT DISTINCT - - COALESCE ( - 75, + - 15, + 65 + - 61 DIV + - 71 + - 37 * - 42 ) * + 82 AS col1
----
-6150

skipif mysql # not compatible
query I rowsort label-8336
SELECT DISTINCT - - COALESCE ( - 75, + - 15, + 65 + - 61 / + - 71 + - 37 * - 42 ) * + 82 AS col1
----
-6150

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT 20 * + 28 + - COUNT( * ) AS col0
----
559

skipif mysql # not compatible
query I rowsort label-8337
SELECT 20 * + 28 + - COUNT ( * ) AS col0
----
559

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8338
SELECT ALL + - 95 * - COUNT( * ) - - 47 + - 47 + 49 DIV + 92 + + COALESCE ( + 15, 53, - 74 ) DIV + COUNT( 62 + - 44 * - 29 ) DIV COUNT( ALL 82 + 0 * 59 )
----
110

skipif mysql # not compatible
query I rowsort label-8338
SELECT ALL + - 95 * - COUNT ( * ) - - 47 + - 47 + 49 / + 92 + + COALESCE ( + 15, 53, - 74 ) / + COUNT ( 62 + - 44 * - 29 ) / COUNT ( ALL 82 + 0 * 59 )
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-8339
SELECT 27 * - COUNT( * ), NULLIF ( - SUM( + 20 ), 80 ) AS col1
----
-27
-20

skipif mysql # not compatible
query II rowsort label-8339
SELECT 27 * - COUNT ( * ), NULLIF ( - SUM ( + 20 ), 80 ) AS col1
----
-27
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT NULLIF ( 46, + 94 ) * + 45 + - 80 * - SUM( ALL 82 ) * + 83
----
546550

skipif mysql # not compatible
query I rowsort label-8340
SELECT NULLIF ( 46, + 94 ) * + 45 + - 80 * - SUM ( ALL 82 ) * + 83
----
546550

query I rowsort
SELECT + - ( 13 ) AS col1
----
-13

query I rowsort
SELECT COALESCE ( - ( + 87 ), 73 ) AS col2
----
-87

query I rowsort
SELECT 68 * - 57 AS col0
----
-3876

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8344
SELECT ALL + 41 + + 81, - CAST( NULL AS SIGNED ) AS col2
----
122
NULL

skipif mysql # not compatible
query II rowsort label-8344
SELECT ALL + 41 + + 81, - CAST ( NULL AS INTEGER ) AS col2
----
122
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT ALL 0 + COALESCE ( - - COUNT( * ), - 2 * + COUNT( DISTINCT 41 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL 0 + COALESCE ( - - COUNT ( * ), - 2 * + COUNT ( DISTINCT 41 ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT 70 * 66
----
4620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8347
SELECT CAST( + + MAX( 93 ) AS SIGNED ) * - 22 AS col1
----
-2046

skipif mysql # not compatible
query I rowsort label-8347
SELECT CAST ( + + MAX ( 93 ) AS INTEGER ) * - 22 AS col1
----
-2046

query II rowsort
SELECT - 49, - 9 col1
----
-49
-9

query I rowsort
SELECT 78 * - 92 AS col2
----
-7176

query I rowsort
SELECT 85 + - COALESCE ( - + 74, + 14 )
----
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8351
SELECT + MAX( ALL - CAST( - 6 AS SIGNED ) ) * 9 + + 98 * - COUNT( * ) + - + 27 - COALESCE ( + 75, + 75 ) DIV 47 - + 8 * NULLIF ( + 64 - - 15, - 80 + + COALESCE ( 43 - + 24, 76, + COUNT( * ) * 2 + ( - ( - 68 ) + - 36 * 87 ) ) * 21 ) col1
----
-704

skipif mysql # not compatible
query I rowsort label-8351
SELECT + MAX ( ALL - CAST ( - 6 AS INTEGER ) ) * 9 + + 98 * - COUNT ( * ) + - + 27 - COALESCE ( + 75, + 75 ) / 47 - + 8 * NULLIF ( + 64 - - 15, - 80 + + COALESCE ( 43 - + 24, 76, + COUNT ( * ) * 2 + ( - ( - 68 ) + - 36 * 87 ) ) * 21 ) col1
----
-704

query I rowsort
SELECT ALL + 36 - + 14
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8353
SELECT 75 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8353
SELECT 75 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 0 * - - 93 * - 23 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8355
SELECT 65 - + - ( - + CASE 13 WHEN + CASE CASE - - 1 WHEN 60 THEN NULL WHEN - CASE + CAST( NULL AS DECIMAL ) WHEN + 69 * + 89 THEN 16 WHEN - MAX( DISTINCT - 1 ) THEN - 32 / - 12 - - 8 ELSE 31 END THEN 82 + + NULLIF ( + 40, + 26 ) ELSE + 6 END WHEN + ( ( + 66 ) ) THEN NULL WHEN MIN( - 83 ) + + 30 / 23 THEN - COALESCE ( - 21, 85 ) ELSE NULL END / - AVG ( DISTINCT ( 33 ) / + 24 + - 21 ) THEN + 56 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8355
SELECT 65 - + - ( - + CASE 13 WHEN + CASE CASE - - 1 WHEN 60 THEN NULL WHEN - CASE + CAST ( NULL AS REAL ) WHEN + 69 * + 89 THEN 16 WHEN - MAX ( DISTINCT - 1 ) THEN - 32 / - 12 - - 8 ELSE 31 END THEN 82 + + NULLIF ( + 40, + 26 ) ELSE + 6 END WHEN + ( ( + 66 ) ) THEN NULL WHEN MIN ( - 83 ) + + 30 / 23 THEN - COALESCE ( - 21, 85 ) ELSE NULL END / - AVG ( DISTINCT ( 33 ) / + 24 + - 21 ) THEN + 56 ELSE NULL END )
----
NULL

query II rowsort
SELECT 20 AS col1, 73 AS col2
----
20
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8357
SELECT CAST( - - 40 AS SIGNED ) - + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8357
SELECT CAST ( - - 40 AS INTEGER ) - + ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT DISTINCT + NULLIF ( NULLIF ( - + COUNT( * ), + ( - COUNT( * ) ) ), + - MIN( DISTINCT + 19 ) * - COUNT( * ) + - 36 ) * CASE WHEN + 85 IS NOT NULL THEN NULL ELSE 45 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8358
SELECT DISTINCT + NULLIF ( NULLIF ( - + COUNT ( * ), + ( - COUNT ( * ) ) ), + - MIN ( DISTINCT + 19 ) * - COUNT ( * ) + - 36 ) * CASE WHEN + 85 IS NOT NULL THEN NULL ELSE 45 END AS col0
----
NULL

query I rowsort
SELECT 42 * - 33
----
-1386

query I rowsort
SELECT DISTINCT NULLIF ( + 30, - 75 ) AS col0
----
30

query I rowsort
SELECT - 24 - + - 12 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT + MIN( DISTINCT 85 )
----
85

skipif mysql # not compatible
query I rowsort label-8362
SELECT + MIN ( DISTINCT 85 )
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8363
SELECT + 65 DIV COUNT( * ) DIV 86, 65 + + 13 col2
----
0
78

skipif mysql # not compatible
query II rowsort label-8363
SELECT + 65 / COUNT ( * ) / 86, 65 + + 13 col2
----
0
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8364
SELECT - 47 * 6 + + 61 - - 45 + 84 * ( + + NULLIF ( 37, 39 ) ) DIV 7 AS col2
----
268

skipif mysql # not compatible
query I rowsort label-8364
SELECT - 47 * 6 + + 61 - - 45 + 84 * ( + + NULLIF ( 37, 39 ) ) / 7 AS col2
----
268

query I rowsort
SELECT ALL + 56 + + + 2 * + + 61 * - - 16 + - 57 * - 99 - + - 90
----
7741

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT + MIN( ALL 85 ) * 6 - + ( + 7 ) + - 32
----
471

skipif mysql # not compatible
query I rowsort label-8366
SELECT + MIN ( ALL 85 ) * 6 - + ( + 7 ) + - 32
----
471

query I rowsort
SELECT - 31 + + 22 * COALESCE ( 10, 13 ) AS col2
----
189

query I rowsort
SELECT ALL - 54 * - 83 AS col0
----
4482

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT 14 + COUNT( * ) + + ( 41 ) + - 90 * 76 + + - 88 * 13 + - 11 * - 2
----
-7906

skipif mysql # not compatible
query I rowsort label-8369
SELECT 14 + COUNT ( * ) + + ( 41 ) + - 90 * 76 + + - 88 * 13 + - 11 * - 2
----
-7906

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT ALL - COALESCE ( + 63, COUNT( * ) ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL - COALESCE ( + 63, COUNT ( * ) ) AS col2
----
-63

query I rowsort
SELECT DISTINCT + + 26 + 64 AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8372
SELECT ALL + CAST( NULL AS SIGNED ) + + 34 + + + COUNT( DISTINCT + 86 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL + CAST ( NULL AS INTEGER ) + + 34 + + + COUNT ( DISTINCT + 86 ) AS col0
----
NULL

query I rowsort
SELECT 52 * + 87 * + 16
----
72384

query I rowsort
SELECT 88 + - 17
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8375
SELECT DISTINCT 63 * CASE - COALESCE ( ( + 41 ), COUNT( * ) ) WHEN + 36 THEN + - 48 ELSE CAST( + COALESCE ( 51, - 29 ) AS SIGNED ) END AS col1
----
3213

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT 63 * CASE - COALESCE ( ( + 41 ), COUNT ( * ) ) WHEN + 36 THEN + - 48 ELSE CAST ( + COALESCE ( 51, - 29 ) AS INTEGER ) END AS col1
----
3213

onlyif mysql # aggregate syntax: 
query II rowsort label-8376
SELECT ALL 22 - - 71 AS col1, + 38 * MAX( ALL 4 ) - + - 87
----
93
239

skipif mysql # not compatible
query II rowsort label-8376
SELECT ALL 22 - - 71 AS col1, + 38 * MAX ( ALL 4 ) - + - 87
----
93
239

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT ALL CASE + + NULLIF ( 12, - 69 - - NULLIF ( + COUNT( * ), + NULLIF ( 60, MAX( 99 ) * + 99 ) * - MIN( - 62 ) ) * + 29 ) WHEN - MIN( + ( + 37 ) ) * 38 THEN - 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL CASE + + NULLIF ( 12, - 69 - - NULLIF ( + COUNT ( * ), + NULLIF ( 60, MAX ( 99 ) * + 99 ) * - MIN ( - 62 ) ) * + 29 ) WHEN - MIN ( + ( + 37 ) ) * 38 THEN - 25 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT ALL 16 * + + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL 16 * + + COUNT ( * )
----
16

query I rowsort
SELECT + 21 + + 2 * + 20
----
61

query I rowsort
SELECT ALL 27 * + NULLIF ( - ( + 5 ), - 32 + - 61 + 36 / - 63 ) * 11 col1
----
-1485

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT - COUNT( DISTINCT - + 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-8381
SELECT - COUNT ( DISTINCT - + 42 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8382
SELECT + NULLIF ( - - CAST( NULL AS SIGNED ), - 89 ) + - 28 * - + 35 / 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8382
SELECT + NULLIF ( - - CAST ( NULL AS INTEGER ), - 89 ) + - 28 * - + 35 / 60
----
NULL

query I rowsort
SELECT + 74 * 66
----
4884

query II rowsort
SELECT + 91 - + 32, + 42 * + - CASE + 25 WHEN 89 THEN - 25 ELSE NULL END AS col2
----
59
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT + ( + + 54 ) + + COUNT( * ) + + 8 * MAX( 4 ) * + 60 + - 40 * - NULLIF ( - 91, 30 )
----
-1665

skipif mysql # not compatible
query I rowsort label-8385
SELECT + ( + + 54 ) + + COUNT ( * ) + + 8 * MAX ( 4 ) * + 60 + - 40 * - NULLIF ( - 91, 30 )
----
-1665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8386
SELECT - 67 - 83 col2, + ( + - COUNT( * ) ) * 16 + - - 55 + CAST( - COALESCE ( + + ( - 20 ), 44 DIV 60, + 98 ) AS SIGNED ) DIV 66
----
-150
39

skipif mysql # not compatible
query II rowsort label-8386
SELECT - 67 - 83 col2, + ( + - COUNT ( * ) ) * 16 + - - 55 + CAST ( - COALESCE ( + + ( - 20 ), 44 / 60, + 98 ) AS INTEGER ) / 66
----
-150
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT ALL 26 * - - MIN( DISTINCT - - 35 ) * + CASE 99 WHEN - 41 * 95 THEN NULL WHEN + 22 THEN - 44 * 7 + + CASE + 83 + + 4 WHEN - 25 * - MAX( ALL ( ( - 56 ) ) ) THEN - ( 79 ) - 65 WHEN 85 THEN + 36 ELSE NULL END WHEN 68 * - 8 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL 26 * - - MIN ( DISTINCT - - 35 ) * + CASE 99 WHEN - 41 * 95 THEN NULL WHEN + 22 THEN - 44 * 7 + + CASE + 83 + + 4 WHEN - 25 * - MAX ( ALL ( ( - 56 ) ) ) THEN - ( 79 ) - 65 WHEN 85 THEN + 36 ELSE NULL END WHEN 68 * - 8 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8388
SELECT DISTINCT 85 * COUNT( * ), 17 AS col2
----
85
17

skipif mysql # not compatible
query II rowsort label-8388
SELECT DISTINCT 85 * COUNT ( * ), 17 AS col2
----
85
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8389
SELECT ALL + 71 DIV + + 2 * COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL + 71 / + + 2 * COUNT ( * )
----
35

query I rowsort
SELECT + - 46 * + 30 AS col0
----
-1380

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT - - COUNT( * ) + + COALESCE ( - 54, + 30 * + 95, - 88 ) + COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-8391
SELECT - - COUNT ( * ) + + COALESCE ( - 54, + 30 * + 95, - 88 ) + COUNT ( * ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT - 58 + + SUM( ALL - - 85 ) + - 94 + - COUNT( * ) * - 61 * + + 68
----
4081

skipif mysql # not compatible
query I rowsort label-8392
SELECT - 58 + + SUM ( ALL - - 85 ) + - 94 + - COUNT ( * ) * - 61 * + + 68
----
4081

query I rowsort
SELECT + COALESCE ( + 1, - + 6 + + 26 + ( - + 44 ) ) * - - ( - 38 ) col1
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8394
SELECT DISTINCT - 58 * - COUNT( * ) + + 88 + - + COUNT( * ) DIV + 41 - CAST( - ( - COUNT( * ) ) AS SIGNED ) col0
----
145

skipif mysql # not compatible
query I rowsort label-8394
SELECT DISTINCT - 58 * - COUNT ( * ) + + 88 + - + COUNT ( * ) / + 41 - CAST ( - ( - COUNT ( * ) ) AS INTEGER ) col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT + MAX( + CASE WHEN ( NULL ) IS NULL THEN + 37 END )
----
37

skipif mysql # not compatible
query I rowsort label-8395
SELECT + MAX ( + CASE WHEN ( NULL ) IS NULL THEN + 37 END )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT ALL - - COUNT( - 14 ) * 74 * + + 67 - + CASE WHEN NOT ( NOT NULL NOT BETWEEN - - 17 AND NULL ) THEN COUNT( * ) * 0 - - COUNT( * ) ELSE - 61 END * + 69 + 76 * + 91 col1
----
16083

skipif mysql # not compatible
query I rowsort label-8396
SELECT ALL - - COUNT ( - 14 ) * 74 * + + 67 - + CASE WHEN NOT ( NOT NULL NOT BETWEEN - - 17 AND NULL ) THEN COUNT ( * ) * 0 - - COUNT ( * ) ELSE - 61 END * + 69 + 76 * + 91 col1
----
16083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8397
SELECT - - COUNT( * ) * 19 + + - CAST( NULL AS SIGNED ) * - + 7 + - + 18 * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-8397
SELECT - - COUNT ( * ) * 19 + + - CAST ( NULL AS INTEGER ) * - + 7 + - + 18 * 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT ALL - 6 * + - COUNT( * ) + - 81 - MIN( ALL + 24 ) + 89 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL - 6 * + - COUNT ( * ) + - 81 - MIN ( ALL + 24 ) + 89 AS col1
----
-10

query I rowsort
SELECT + + ( + ( - 65 ) )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8400
SELECT 80 * 67 - + - ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8400
SELECT 80 * 67 - + - ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - 88 * 36
----
-3168

query I rowsort
SELECT ALL - 90 * + 47
----
-4230

query II rowsort
SELECT ALL - 41 * - 97 - 55, + ( - 44 ) AS col1
----
3922
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-8404
SELECT DISTINCT + MAX( - - ( ( + 27 ) ) ) * + COUNT( * ) AS col1, - NULLIF ( - 49, + CASE + - 68 WHEN + 13 THEN COUNT( 67 ) ELSE 84 + SUM( + 11 ) END * 49 + + 70 ) AS col2
----
27
49

skipif mysql # not compatible
query II rowsort label-8404
SELECT DISTINCT + MAX ( - - ( ( + 27 ) ) ) * + COUNT ( * ) AS col1, - NULLIF ( - 49, + CASE + - 68 WHEN + 13 THEN COUNT ( 67 ) ELSE 84 + SUM ( + 11 ) END * 49 + + 70 ) AS col2
----
27
49

query I rowsort
SELECT DISTINCT + 90 * + 78
----
7020

query I rowsort
SELECT + 8 * - + 51 + - 46 + - 92 col2
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT DISTINCT + NULLIF ( - 19, CASE - 85 WHEN - COUNT( * ) THEN NULL WHEN COUNT( ALL + + 69 ) THEN - NULLIF ( - + 58, 22 + COUNT( * ) ) * COUNT( * ) + - ( 44 ) END )
----
-19

skipif mysql # not compatible
query I rowsort label-8407
SELECT DISTINCT + NULLIF ( - 19, CASE - 85 WHEN - COUNT ( * ) THEN NULL WHEN COUNT ( ALL + + 69 ) THEN - NULLIF ( - + 58, 22 + COUNT ( * ) ) * COUNT ( * ) + - ( 44 ) END )
----
-19

query I rowsort
SELECT - 92 * - 23 col2
----
2116

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT SUM( + 80 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-8409
SELECT SUM ( + 80 ) AS col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8410
SELECT ALL CAST( + 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL CAST ( + 61 AS INTEGER )
----
61

query I rowsort
SELECT - 44 + 54 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT + 50 * + COUNT( DISTINCT + 36 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-8412
SELECT + 50 * + COUNT ( DISTINCT + 36 ) AS col2
----
50

query I rowsort
SELECT - 62 * - 33
----
2046

query I rowsort
SELECT + 68 + + - ( - 58 ) AS col0
----
126

query I rowsort
SELECT ALL + 46 + - 32 AS col2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-8416
SELECT ALL 9 * + + ( + 18 ) col1, 94 + + CASE + - COALESCE ( - ( - 26 ), 82, + 84 ) WHEN CASE + 55 WHEN 50 THEN 68 + - 39 * COUNT( * ) END THEN + 88 * 66 WHEN - 71 THEN NULL ELSE NULL END * - 31 AS col0
----
162
NULL

skipif mysql # not compatible
query II rowsort label-8416
SELECT ALL 9 * + + ( + 18 ) col1, 94 + + CASE + - COALESCE ( - ( - 26 ), 82, + 84 ) WHEN CASE + 55 WHEN 50 THEN 68 + - 39 * COUNT ( * ) END THEN + 88 * 66 WHEN - 71 THEN NULL ELSE NULL END * - 31 AS col0
----
162
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8417
SELECT + 14 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-8417
SELECT + 14 / 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT DISTINCT + + COUNT( * ) + - 69
----
-68

skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT + + COUNT ( * ) + - 69
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT + 20 * + COUNT( ALL + 99 ) * - 39 + 19 AS col1
----
-761

skipif mysql # not compatible
query I rowsort label-8419
SELECT + 20 * + COUNT ( ALL + 99 ) * - 39 + 19 AS col1
----
-761

query I rowsort
SELECT - 59 - 8 AS col0
----
-67

query I rowsort
SELECT DISTINCT + 48 * 42 AS col0
----
2016

query I rowsort
SELECT + ( - + 85 ) - + - ( + 51 )
----
-34

query I rowsort
SELECT DISTINCT 65 * - - ( COALESCE ( 63, + ( 53 ) ) ) + + 26 * + + 99 AS col1
----
6669

query I rowsort
SELECT ALL + 29 + + 84 AS col0
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8425
SELECT COUNT( - 58 ) DIV - + 28 - - 16
----
16

skipif mysql # not compatible
query I rowsort label-8425
SELECT COUNT ( - 58 ) / - + 28 - - 16
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT MIN( 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-8426
SELECT MIN ( 60 ) AS col0
----
60

query I rowsort
SELECT + - CASE + CASE - 84 WHEN - ( + 28 ) - + 49 THEN - 12 * - + 88 WHEN 62 * - 27 THEN NULL ELSE NULL END WHEN + 10 THEN - 59 WHEN - 89 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT - 13 AS col0, - 42
----
-13
-42

query I rowsort
SELECT 8 * + 37 + + 94 + 15 * + 85 AS col0
----
1665

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8430
SELECT CAST( - AVG ( ALL + 2 ) AS SIGNED ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8430
SELECT CAST ( - AVG ( ALL + 2 ) AS INTEGER ) AS col2
----
-2

query I rowsort
SELECT ALL + NULLIF ( 0, - 75 * - + 37 * 96 * 30 )
----
0

query I rowsort
SELECT ALL NULLIF ( - 7, - - 69 ) * - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8433
SELECT + COUNT( * ) * 41 AS col1, 96
----
41
96

skipif mysql # not compatible
query II rowsort label-8433
SELECT + COUNT ( * ) * 41 AS col1, 96
----
41
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT ALL - CASE - SUM( ALL + 98 ) WHEN 61 * - COUNT( * ) * - 68 THEN - + 50 ELSE - NULLIF ( - ( - + 10 ), - - MIN( ALL 25 ) ) * - 14 END AS col2
----
-140

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL - CASE - SUM ( ALL + 98 ) WHEN 61 * - COUNT ( * ) * - 68 THEN - + 50 ELSE - NULLIF ( - ( - + 10 ), - - MIN ( ALL 25 ) ) * - 14 END AS col2
----
-140

query I rowsort
SELECT + 4 * + 82 + - + 51 AS col2
----
277

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT CASE - CASE COUNT( * ) WHEN + 60 / + 70 * - + 60 THEN - + 73 ELSE NULL END WHEN ( + MIN( + 23 ) ) THEN NULL WHEN - 69 THEN + 97 ELSE - 72 * COALESCE ( + 84, - 37 ) END * + SUM( DISTINCT - ( + 67 ) ) AS col1
----
405216

skipif mysql # not compatible
query I rowsort label-8436
SELECT CASE - CASE COUNT ( * ) WHEN + 60 / + 70 * - + 60 THEN - + 73 ELSE NULL END WHEN ( + MIN ( + 23 ) ) THEN NULL WHEN - 69 THEN + 97 ELSE - 72 * COALESCE ( + 84, - 37 ) END * + SUM ( DISTINCT - ( + 67 ) ) AS col1
----
405216

query II rowsort
SELECT 94 * - - 69, 36 AS col0
----
6486
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT 97 + ( + 25 ) * + 92 + - + 12 + - - COUNT( * ) AS col2
----
2386

skipif mysql # not compatible
query I rowsort label-8438
SELECT 97 + ( + 25 ) * + 92 + - + 12 + - - COUNT ( * ) AS col2
----
2386

query II rowsort
SELECT 93, 5 AS col0
----
93
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8440
SELECT 74 + - CAST( NULL AS SIGNED ) - - 74 / CASE - 51 WHEN COUNT( * ) + - SUM( + - 95 ) THEN NULL WHEN - - 69 / + 14 * - COUNT( * ) * - 3 + - 44 THEN 11 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT 74 + - CAST ( NULL AS INTEGER ) - - 74 / CASE - 51 WHEN COUNT ( * ) + - SUM ( + - 95 ) THEN NULL WHEN - - 69 / + 14 * - COUNT ( * ) * - 3 + - 44 THEN 11 END AS col1
----
NULL

query I rowsort
SELECT 84 + - + 90 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT DISTINCT + COUNT( * ) * + COUNT( DISTINCT - 22 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8442
SELECT DISTINCT + COUNT ( * ) * + COUNT ( DISTINCT - 22 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8443
SELECT 93 * ( - COUNT( * ) ) * + + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8443
SELECT 93 * ( - COUNT ( * ) ) * + + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 44 + + + 96
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT ALL + 60 + COUNT( + ( - 74 ) )
----
61

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL + 60 + COUNT ( + ( - 74 ) )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8446
SELECT 22 AS col2, - CASE - 51 WHEN - + 0 THEN - CAST( NULL AS SIGNED ) ELSE NULL END * 5
----
22
NULL

skipif mysql # not compatible
query II rowsort label-8446
SELECT 22 AS col2, - CASE - 51 WHEN - + 0 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END * 5
----
22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT ALL + 15 + - + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL + 15 + - + COUNT ( * )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8448
SELECT DISTINCT + 42 + - + COUNT( * ) + + NULLIF ( + 18, + - 68 + - 95 + + 18 - - CAST( 59 AS SIGNED ) ) * + + ( - COUNT( * ) )
----
23

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT + 42 + - + COUNT ( * ) + + NULLIF ( + 18, + - 68 + - 95 + + 18 - - CAST ( 59 AS INTEGER ) ) * + + ( - COUNT ( * ) )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8449
SELECT - 95 * - COALESCE ( - 7, - CAST( NULL AS SIGNED ), + 22 - - COUNT( * ) * COUNT( * ) + + COUNT( * ), + 72 DIV - 91 )
----
-665

skipif mysql # not compatible
query I rowsort label-8449
SELECT - 95 * - COALESCE ( - 7, - CAST ( NULL AS INTEGER ), + 22 - - COUNT ( * ) * COUNT ( * ) + + COUNT ( * ), + 72 / - 91 )
----
-665

query II rowsort
SELECT ALL - 30 AS col2, 52 * - - 13 AS col2
----
-30
676

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT DISTINCT - - MIN( + 17 ) * - + 79
----
-1343

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT - - MIN ( + 17 ) * - + 79
----
-1343

query I rowsort
SELECT + 43 + - 3
----
40

query I rowsort
SELECT ALL - 19 + - 29 + - 14 AS col1
----
-62

query I rowsort
SELECT 51 + - 80 AS col0
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8455
SELECT 53 AS col1, - 47 DIV + COUNT( * )
----
53
-47

skipif mysql # not compatible
query II rowsort label-8455
SELECT 53 AS col1, - 47 / + COUNT ( * )
----
53
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8456
SELECT + CAST( - + 72 AS SIGNED ) + - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-8456
SELECT + CAST ( - + 72 AS INTEGER ) + - COUNT ( * )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT ALL 10 + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL 10 + COUNT ( * )
----
11

query II rowsort
SELECT ALL 23 AS col1, NULLIF ( + - 79, 31 ) * + 22 col0
----
23
-1738

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8459
SELECT - CAST( NULL AS SIGNED ) AS col1, 63 - AVG ( 57 ) + - + ( - - 67 ) - - + 63 / + CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8459
SELECT - CAST ( NULL AS INTEGER ) AS col1, 63 - AVG ( 57 ) + - + ( - - 67 ) - - + 63 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

query I rowsort
SELECT ALL COALESCE ( 18, 46 - - + 59 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT DISTINCT - - 82 + SUM( - 2 )
----
80

skipif mysql # not compatible
query I rowsort label-8461
SELECT DISTINCT - - 82 + SUM ( - 2 )
----
80

query I rowsort
SELECT - COALESCE ( - 79, + 7 ) + - 1 * - - 1 AS col2
----
78

query I rowsort
SELECT ALL + 42 * + 79
----
3318

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT 89 + + COUNT( * ) - + 58 * + 95 + + - COUNT( * ) AS col2
----
-5421

skipif mysql # not compatible
query I rowsort label-8464
SELECT 89 + + COUNT ( * ) - + 58 * + 95 + + - COUNT ( * ) AS col2
----
-5421

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT DISTINCT - NULLIF ( + 30, 1 ) * + + MIN( + 30 ) AS col2
----
-900

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT - NULLIF ( + 30, 1 ) * + + MIN ( + 30 ) AS col2
----
-900

onlyif mysql # DIV for integer division: 
query I rowsort label-8466
SELECT DISTINCT 76 * 68 DIV + 61 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT 76 * 68 / + 61 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT DISTINCT COUNT( * ) / COUNT( 18 ) * - 34 / + CASE 64 WHEN 77 THEN NULL WHEN + 9 THEN 24 ELSE NULL END + - 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT DISTINCT COUNT ( * ) / COUNT ( 18 ) * - 34 / + CASE 64 WHEN 77 THEN NULL WHEN + 9 THEN 24 ELSE NULL END + - 68 AS col2
----
NULL

query I rowsort
SELECT COALESCE ( - 27, - 30 ) * - 92
----
2484

query I rowsort
SELECT ALL 39 + 80 + 73
----
192

query I rowsort
SELECT DISTINCT 68 + - + 65 + + - 13 * + - 50 AS col2
----
653

query I rowsort
SELECT ALL 45 + - 46 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT DISTINCT 62 * + ( COUNT( * ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT 62 * + ( COUNT ( * ) ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT ALL - 83 + + + COUNT( * ) + + 42 - 23 - + - 22 - + 39
----
-80

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL - 83 + + + COUNT ( * ) + + 42 - 23 - + - 22 - + 39
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT ALL MIN( 94 ) * + 72 AS col0
----
6768

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL MIN ( 94 ) * + 72 AS col0
----
6768

query II rowsort
SELECT 19 * - 84, - 18 * - 77 AS col0
----
-1596
1386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8476
SELECT 22 - 3 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8476
SELECT 22 - 3 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8477
SELECT DISTINCT - MAX( + 68 ), 41 + 92 AS col0
----
-68
133

skipif mysql # not compatible
query II rowsort label-8477
SELECT DISTINCT - MAX ( + 68 ), 41 + 92 AS col0
----
-68
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8478
SELECT ALL 91 + - - AVG ( ALL + 78 ) + + - 48 / + + 67 + - ( - CAST( NULL AS SIGNED ) ) * 27 + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL 91 + - - AVG ( ALL + 78 ) + + - 48 / + + 67 + - ( - CAST ( NULL AS INTEGER ) ) * 27 + + 63
----
NULL

query II rowsort
SELECT + COALESCE ( - 64, - + 10 ) * + 30 - - 73, 33 AS col1
----
-1847
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8480
SELECT SUM( 69 ), + ( - 34 ) DIV 29 DIV COUNT( * ) - - + 60 AS col0
----
69
59

skipif mysql # not compatible
query II rowsort label-8480
SELECT SUM ( 69 ), + ( - 34 ) / 29 / COUNT ( * ) - - + 60 AS col0
----
69
59

onlyif mysql # DIV for integer division: 
query II rowsort label-8481
SELECT + 41 DIV 25 AS col2, 38 AS col2
----
1
38

skipif mysql # not compatible
query II rowsort label-8481
SELECT + 41 / 25 AS col2, 38 AS col2
----
1
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT ALL 24 + + COUNT( * ) * MIN( + - 60 )
----
-36

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL 24 + + COUNT ( * ) * MIN ( + - 60 )
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-8483
SELECT ALL 38 DIV - - 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL 38 / - - 61 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT DISTINCT - COUNT( * ) - - + ( - COUNT( * ) ) * 58
----
-59

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT - COUNT ( * ) - - + ( - COUNT ( * ) ) * 58
----
-59

query II rowsort
SELECT ALL + - 9 * - - 16, 66 + - 81 AS col0
----
-144
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT + ( - 39 ) * - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-8486
SELECT + ( - 39 ) * - COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL + - ( 15 ) - ( + MIN( ALL - - 32 ) ) + - - 28 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL + - ( 15 ) - ( + MIN ( ALL - - 32 ) ) + - - 28 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT COUNT( * ) - + ( + + 77 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-8488
SELECT COUNT ( * ) - + ( + + 77 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT ALL + - COUNT( * ) * 90 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL + - COUNT ( * ) * 90 AS col1
----
-90

query I rowsort
SELECT 11 * - 71 AS col1
----
-781

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT COALESCE ( + 98, - + ( - - MAX( ALL - 69 ) ), + COUNT( * ) + 25 * - 97 ) + + - 1
----
97

skipif mysql # not compatible
query I rowsort label-8491
SELECT COALESCE ( + 98, - + ( - - MAX ( ALL - 69 ) ), + COUNT ( * ) + 25 * - 97 ) + + - 1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8492
SELECT ( 55 ) * + CAST( - 42 AS SIGNED )
----
-2310

skipif mysql # not compatible
query I rowsort label-8492
SELECT ( 55 ) * + CAST ( - 42 AS INTEGER )
----
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT ALL + 86 * - 69 * + MAX( ALL + 92 )
----
-545928

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL + 86 * - 69 * + MAX ( ALL + 92 )
----
-545928

query I rowsort
SELECT 91 * + 40 col2
----
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT - COUNT( * ) - + 62 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-8495
SELECT - COUNT ( * ) - + 62 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT - ( 77 ) * + 96 * + + 7 * - 93 * + - 64 + - COUNT( + 57 ) AS col1
----
-307980289

skipif mysql # not compatible
query I rowsort label-8496
SELECT - ( 77 ) * + 96 * + + 7 * - 93 * + - 64 + - COUNT ( + 57 ) AS col1
----
-307980289

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT ALL MIN( - 60 ) * 44 - 69
----
-2709

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL MIN ( - 60 ) * 44 - 69
----
-2709

query I rowsort
SELECT - ( 60 ) - 28 + + 42
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-8499
SELECT ALL + COUNT( * ) AS col1, - ( - 83 ) AS col2
----
1
83

skipif mysql # not compatible
query II rowsort label-8499
SELECT ALL + COUNT ( * ) AS col1, - ( - 83 ) AS col2
----
1
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT - 76 + + + ( + 5 ) * + - 88 * - ( + + 33 ) * + 46 + + - COUNT( * )
----
667843

skipif mysql # not compatible
query I rowsort label-8500
SELECT - 76 + + + ( + 5 ) * + - 88 * - ( + + 33 ) * + 46 + + - COUNT ( * )
----
667843

query I rowsort
SELECT - ( + 55 ) * + 22 AS col0
----
-1210

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT ALL MIN( - ( + 92 ) ) * - 58 + + + 38
----
5374

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL MIN ( - ( + 92 ) ) * - 58 + + + 38
----
5374

onlyif mysql # aggregate syntax: 
query II rowsort label-8503
SELECT - ( + 28 ) + - + MIN( - 1 ) - + MAX( - 72 ) - + - COUNT( ALL + + 95 ) AS col0, 1
----
46
1

skipif mysql # not compatible
query II rowsort label-8503
SELECT - ( + 28 ) + - + MIN ( - 1 ) - + MAX ( - 72 ) - + - COUNT ( ALL + + 95 ) AS col0, 1
----
46
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8504
SELECT + COUNT( * ), + 42 AS col2
----
1
42

skipif mysql # not compatible
query II rowsort label-8504
SELECT + COUNT ( * ), + 42 AS col2
----
1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT + 51 - CASE NULLIF ( 21, + 42 * - 59 * - + ( - - 82 ) ) WHEN - - MIN( + 34 ) + - MAX( ALL 36 ) THEN - + 86 ELSE - 65 * 78 END + 3 * + 83 AS col1
----
5370

skipif mysql # not compatible
query I rowsort label-8505
SELECT + 51 - CASE NULLIF ( 21, + 42 * - 59 * - + ( - - 82 ) ) WHEN - - MIN ( + 34 ) + - MAX ( ALL 36 ) THEN - + 86 ELSE - 65 * 78 END + 3 * + 83 AS col1
----
5370

query II rowsort
SELECT ALL + 48 AS col0, - 86
----
48
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT DISTINCT 46 * 45 + - COUNT( * ) * + COUNT( * )
----
2069

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT 46 * 45 + - COUNT ( * ) * + COUNT ( * )
----
2069

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8508
SELECT ALL 15 * + 73 * + 98 / - - CAST( NULL AS SIGNED ) + + + 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL 15 * + 73 * + 98 / - - CAST ( NULL AS INTEGER ) + + + 23 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8509
SELECT + COUNT( * ) AS col1, COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-8509
SELECT + COUNT ( * ) AS col1, COUNT ( * ) AS col0
----
1
1

query I rowsort
SELECT + ( + COALESCE ( - 45, ( - - 12 ) * 97, 53 + - 93 + + 37 - 19 + 59 * - 32 * + 84 ) ) + + 92
----
47

query I rowsort
SELECT ALL 21 * + 0 + - 86 AS col1
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-8512
SELECT DISTINCT 89 * COUNT( * ) + 57 col0, 15
----
146
15

skipif mysql # not compatible
query II rowsort label-8512
SELECT DISTINCT 89 * COUNT ( * ) + 57 col0, 15
----
146
15

query I rowsort
SELECT ALL + ( - 98 )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8514
SELECT ALL + MAX( DISTINCT + + 91 ) * + - 42 + + CAST( + MAX( ALL - 6 ) AS SIGNED )
----
-3828

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL + MAX ( DISTINCT + + 91 ) * + - 42 + + CAST ( + MAX ( ALL - 6 ) AS INTEGER )
----
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT MAX( - + 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-8515
SELECT MAX ( - + 79 )
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-8516
SELECT COUNT( * ) col0, 43 + 44 + - 64 + 37
----
1
60

skipif mysql # not compatible
query II rowsort label-8516
SELECT COUNT ( * ) col0, 43 + 44 + - 64 + 37
----
1
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT + CASE + CASE COUNT( * ) WHEN - SUM( ALL + 7 ) THEN - 92 END WHEN 14 THEN NULL WHEN - + COUNT( * ) - - - 23 THEN + 59 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8517
SELECT + CASE + CASE COUNT ( * ) WHEN - SUM ( ALL + 7 ) THEN - 92 END WHEN 14 THEN NULL WHEN - + COUNT ( * ) - - - 23 THEN + 59 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8518
SELECT ALL + CAST( NULL AS SIGNED ) * + - 89 * - COUNT( * ) + - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8518
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 89 * - COUNT ( * ) + - 40 AS col1
----
NULL

query I rowsort
SELECT + 73 + 92 col2
----
165

query I rowsort
SELECT + + 13 * - + 84 AS col0
----
-1092

query II rowsort
SELECT 7 AS col0, ( + - 51 )
----
7
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8522
SELECT ALL CAST( SUM( + + CAST( NULLIF ( + CAST( NULL AS SIGNED ), + 35 * + 85 ) AS SIGNED ) ) AS SIGNED ) * + - AVG ( CAST( + + 90 AS SIGNED ) ) - - 36 * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT ALL CAST ( SUM ( + + CAST ( NULLIF ( + CAST ( NULL AS INTEGER ), + 35 * + 85 ) AS INTEGER ) ) AS INTEGER ) * + - AVG ( CAST ( + + 90 AS INTEGER ) ) - - 36 * 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT + COUNT( * ) + - 67 * - - 35 * - 52 col0
----
121941

skipif mysql # not compatible
query I rowsort label-8523
SELECT + COUNT ( * ) + - 67 * - - 35 * - 52 col0
----
121941

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8524
SELECT ALL - COUNT( * ) * + 36 * - - CAST( + 55 AS SIGNED ) - - - 73 AS col1
----
-2053

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL - COUNT ( * ) * + 36 * - - CAST ( + 55 AS INTEGER ) - - - 73 AS col1
----
-2053

query I rowsort
SELECT + 66 * 63
----
4158

query I rowsort
SELECT ALL - 41 * + + 89 AS col2
----
-3649

query I rowsort
SELECT + - COALESCE ( - + 55, + 40 * + 32 ) + NULLIF ( - + 92, + 78 ) AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8528
SELECT - - CASE + - 14 WHEN 97 THEN + COUNT( * ) * 16 / + - 86 * + 84 + + MIN( ALL + CAST( NULL AS SIGNED ) ) + - 96 / - + 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8528
SELECT - - CASE + - 14 WHEN 97 THEN + COUNT ( * ) * 16 / + - 86 * + 84 + + MIN ( ALL + CAST ( NULL AS INTEGER ) ) + - 96 / - + 95 END
----
NULL

query I rowsort
SELECT - - 81 + - 87 * 26 AS col1
----
-2181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8530
SELECT + 42 + + SUM( - 28 ) * + COUNT( * ) + + 63 + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) + + 36 + - 26 * - 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8530
SELECT + 42 + + SUM ( - 28 ) * + COUNT ( * ) + + 63 + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 36 + - 26 * - 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT SUM( ALL + 58 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-8531
SELECT SUM ( ALL + 58 ) AS col0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8532
SELECT - 29 DIV + 90 * - 76
----
0

skipif mysql # not compatible
query I rowsort label-8532
SELECT - 29 / + 90 * - 76
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8533
SELECT ALL - CAST( NULL AS SIGNED ) / - MAX( + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8533
SELECT ALL - CAST ( NULL AS INTEGER ) / - MAX ( + 97 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8534
SELECT + 69 * - MIN( + 17 ) * COALESCE ( - 17, - + 64 DIV 61 DIV 60 ) AS col0
----
19941

skipif mysql # not compatible
query I rowsort label-8534
SELECT + 69 * - MIN ( + 17 ) * COALESCE ( - 17, - + 64 / 61 / 60 ) AS col0
----
19941

query I rowsort
SELECT DISTINCT - 93 * - - 85
----
-7905

query I rowsort
SELECT ALL COALESCE ( - 33, 97 - - 11 ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT - - 29 + + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-8537
SELECT - - 29 + + COUNT ( * )
----
30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8538
SELECT - 96 DIV - 25 + + ( + CAST( - - 18 AS SIGNED ) ) col1
----
21

skipif mysql # not compatible
query I rowsort label-8538
SELECT - 96 / - 25 + + ( + CAST ( - - 18 AS INTEGER ) ) col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT - + 54 + 29 - + 55 + - 50 + 67 + - MIN( ALL - - 32 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-8539
SELECT - + 54 + 29 - + 55 + - 50 + 67 + - MIN ( ALL - - 32 ) AS col0
----
-95

query I rowsort
SELECT DISTINCT - 45 + + 67
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8541
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col0, 75 * - + 87 AS col1
----
-1
-6525

skipif mysql # not compatible
query II rowsort label-8541
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col0, 75 * - + 87 AS col1
----
-1
-6525

onlyif mysql # DIV for integer division: 
query I rowsort label-8542
SELECT + 52 DIV 23
----
2

skipif mysql # not compatible
query I rowsort label-8542
SELECT + 52 / 23
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8543
SELECT - SUM( DISTINCT 45 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8543
SELECT - SUM ( DISTINCT 45 ) / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 27 + - - 62 AS col0
----
35

query I rowsort
SELECT DISTINCT + 73 * - 95 AS col2
----
-6935

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8546
SELECT - 52 + - SUM( - + 94 ) * + 99 AS col0, - 13 DIV 62 AS col2
----
9254
0

skipif mysql # not compatible
query II rowsort label-8546
SELECT - 52 + - SUM ( - + 94 ) * + 99 AS col0, - 13 / 62 AS col2
----
9254
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8547
SELECT ALL ( + + CAST( + 28 AS SIGNED ) )
----
28

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL ( + + CAST ( + 28 AS INTEGER ) )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-8548
SELECT ALL 42 DIV 30 + 47
----
48

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL 42 / 30 + 47
----
48

query I rowsort
SELECT - 98 * - ( 34 )
----
3332

onlyif mysql # DIV for integer division: 
query I rowsort label-8550
SELECT DISTINCT - 51 DIV 7 + - 78 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-8550
SELECT DISTINCT - 51 / 7 + - 78 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT + CASE 92 WHEN 31 * + 56 + - - 31 + 95 + - + 69 - - AVG ( + + NULLIF ( + 3, - 24 + + 2 ) ) * + - 8 * - 75 * + 60 + COALESCE ( - 91, + COUNT( ALL 14 ), - MIN( 72 ), 92 ) * + 13 THEN - 91 - 32 * - ( - 17 / 9 ) WHEN - 82 - ( 40 ) THEN + 75 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT + CASE 92 WHEN 31 * + 56 + - - 31 + 95 + - + 69 - - AVG ( + + NULLIF ( + 3, - 24 + + 2 ) ) * + - 8 * - 75 * + 60 + COALESCE ( - 91, + COUNT ( ALL 14 ), - MIN ( 72 ), 92 ) * + 13 THEN - 91 - 32 * - ( - 17 / 9 ) WHEN - 82 - ( 40 ) THEN + 75 END AS col1
----
NULL

query I rowsort
SELECT - 32 - - 15
----
-17

query I rowsort
SELECT + 38 * 33 AS col2
----
1254

query I rowsort
SELECT ALL 44 * - 39
----
-1716

query I rowsort
SELECT ( + - 17 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT ALL - COUNT( * ) * + 97
----
-97

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL - COUNT ( * ) * + 97
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8557
SELECT ALL - + COALESCE ( + 70, COUNT( * ) + + 47 * - - 11 * - - 53 + + + 95 + + 50 * - 89 * + COUNT( * ) + + - COUNT( * ), - MIN( - + 73 ) ) * 28 + MAX( ALL + CAST( NULL AS SIGNED ) ) - + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL - + COALESCE ( + 70, COUNT ( * ) + + 47 * - - 11 * - - 53 + + + 95 + + 50 * - 89 * + COUNT ( * ) + + - COUNT ( * ), - MIN ( - + 73 ) ) * 28 + MAX ( ALL + CAST ( NULL AS INTEGER ) ) - + 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT + + CASE - 13 WHEN + - COUNT( * ) THEN - 92 WHEN - 74 * - + 11 THEN NULL ELSE - + ( 5 ) + - - 5 END * - 40
----
0

skipif mysql # not compatible
query I rowsort label-8558
SELECT + + CASE - 13 WHEN + - COUNT ( * ) THEN - 92 WHEN - 74 * - + 11 THEN NULL ELSE - + ( 5 ) + - - 5 END * - 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT + - 1 - - COUNT( - - 66 ) * 49 * 16
----
783

skipif mysql # not compatible
query I rowsort label-8559
SELECT + - 1 - - COUNT ( - - 66 ) * 49 * 16
----
783

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT + + ( - COUNT( * ) ) - + ( + 28 ) - 94
----
-123

skipif mysql # not compatible
query I rowsort label-8560
SELECT + + ( - COUNT ( * ) ) - + ( + 28 ) - 94
----
-123

query I rowsort
SELECT ALL + 0 * + 39 + + 56 + - - 31 * + ( - 79 ) - 17
----
-2410

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8562
SELECT - NULLIF ( + 80, + 30 * - 79 * 53 * NULLIF ( - 33, - 70 * ( COUNT( * ) ) ) * + 16 ) DIV + 96 AS col1, - 56
----
0
-56

skipif mysql # not compatible
query II rowsort label-8562
SELECT - NULLIF ( + 80, + 30 * - 79 * 53 * NULLIF ( - 33, - 70 * ( COUNT ( * ) ) ) * + 16 ) / + 96 AS col1, - 56
----
0
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8563
SELECT + 86 * - MIN( ALL + 38 ) + + CAST( + - 45 AS SIGNED )
----
-3313

skipif mysql # not compatible
query I rowsort label-8563
SELECT + 86 * - MIN ( ALL + 38 ) + + CAST ( + - 45 AS INTEGER )
----
-3313

query I rowsort
SELECT DISTINCT - 36 + - - ( + 17 )
----
-19

query I rowsort
SELECT ALL 72 + 20 AS col2
----
92

query I rowsort
SELECT ( 48 ) + 98
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT 13 * + - COUNT( * ) * - 63 AS col1
----
819

skipif mysql # not compatible
query I rowsort label-8567
SELECT 13 * + - COUNT ( * ) * - 63 AS col1
----
819

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8568
SELECT 94, 5 DIV - COUNT( * ) AS col2
----
94
-5

skipif mysql # not compatible
query II rowsort label-8568
SELECT 94, 5 / - COUNT ( * ) AS col2
----
94
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL + 96 + + 85 * MAX( ALL - 36 ) AS col1
----
-2964

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL + 96 + + 85 * MAX ( ALL - 36 ) AS col1
----
-2964

query I rowsort
SELECT 3 - - 64 + + + 3
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8571
SELECT ALL 22 DIV + ( 87 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL 22 / + ( 87 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8572
SELECT - 12 DIV + - 13 + 5 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8572
SELECT - 12 / + - 13 + 5 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT CASE - 78 WHEN - 38 THEN 19 WHEN - + 75 THEN 87 / + 2 * 79 * 4 * + 97 + - - 81 + - + 21 * - COUNT( DISTINCT 89 ) END * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8573
SELECT CASE - 78 WHEN - 38 THEN 19 WHEN - + 75 THEN 87 / + 2 * 79 * 4 * + 97 + - - 81 + - + 21 * - COUNT ( DISTINCT 89 ) END * - 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT 28 * - + 13 * + + ( + CASE - + 88 WHEN - COUNT( * ) THEN - SUM( - ( - 30 ) ) END ) * - - 34 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT 28 * - + 13 * + + ( + CASE - + 88 WHEN - COUNT ( * ) THEN - SUM ( - ( - 30 ) ) END ) * - - 34 col0
----
NULL

query I rowsort
SELECT 32 + 44
----
76

query I rowsort
SELECT ALL - COALESCE ( - - 29, 87 ) * 12 AS col0
----
-348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8577
SELECT 21 + - + CASE - 21 WHEN CAST( - COUNT( * ) AS SIGNED ) THEN - 84 WHEN 84 * 67 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8577
SELECT 21 + - + CASE - 21 WHEN CAST ( - COUNT ( * ) AS INTEGER ) THEN - 84 WHEN 84 * 67 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 14 * - 54 AS col2
----
-756

query I rowsort
SELECT DISTINCT - - 13 col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8580
SELECT - CAST( + 3 AS SIGNED ) * 8 * + NULLIF ( + 10, - 83 - 7 * COUNT( * ) - + 46 + COUNT( * ) * - 29 + + - NULLIF ( + 88, - - COUNT( * ) * - 31 ) + ( ( - SUM( ALL - 85 ) ) ) * + CASE - ( 95 ) WHEN + 11 + + COUNT( * ) THEN + 22 WHEN 28 THEN NULL ELSE NULL END / - 53 )
----
-240

skipif mysql # not compatible
query I rowsort label-8580
SELECT - CAST ( + 3 AS INTEGER ) * 8 * + NULLIF ( + 10, - 83 - 7 * COUNT ( * ) - + 46 + COUNT ( * ) * - 29 + + - NULLIF ( + 88, - - COUNT ( * ) * - 31 ) + ( ( - SUM ( ALL - 85 ) ) ) * + CASE - ( 95 ) WHEN + 11 + + COUNT ( * ) THEN + 22 WHEN 28 THEN NULL ELSE NULL END / - 53 )
----
-240

query I rowsort
SELECT 20 + - 74
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL - - CASE WHEN ( + - 50 ) = 34 / - 34 + + 1 - + CASE + 49 WHEN + 41 / + COUNT( * ) * + 75 * + 48 * - + 97 + - + 76 + 11 THEN + 38 WHEN 44 THEN - 98 + 45 END + - 38 THEN - 58 * + 59 ELSE + 4 * 17 END
----
68

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL - - CASE WHEN ( + - 50 ) = 34 / - 34 + + 1 - + CASE + 49 WHEN + 41 / + COUNT ( * ) * + 75 * + 48 * - + 97 + - + 76 + 11 THEN + 38 WHEN 44 THEN - 98 + 45 END + - 38 THEN - 58 * + 59 ELSE + 4 * 17 END
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8583
SELECT ALL + 98 + - ( - - CAST( + ( 34 ) AS SIGNED ) )
----
64

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL + 98 + - ( - - CAST ( + ( 34 ) AS INTEGER ) )
----
64

query I rowsort
SELECT + NULLIF ( - 6, - - 33 ) * + 36 + 36 * + - 35 AS col1
----
-1476

query I rowsort
SELECT DISTINCT + - 68 + 21
----
-47

query I rowsort
SELECT ALL - 7 + - 56 col1
----
-63

query I rowsort
SELECT - 87 + 6 + - 41 AS col0
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT ALL + + 18 + NULLIF ( + ( - COUNT( * ) ), - - 2 * CASE - 71 WHEN + + 55 THEN + + 75 WHEN + 72 THEN NULL ELSE NULL END ) - + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL + + 18 + NULLIF ( + ( - COUNT ( * ) ), - - 2 * CASE - 71 WHEN + + 55 THEN + + 75 WHEN + 72 THEN NULL ELSE NULL END ) - + COUNT ( * )
----
16

query I rowsort
SELECT + 26 + - 3
----
23

query I rowsort
SELECT 52 * - 21 + + 93 AS col2
----
-999

query I rowsort
SELECT + 9 + - 71 col0
----
-62

query II rowsort
SELECT 47 AS col1, 96 AS col2
----
47
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT ( - - 86 ) + + - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-8593
SELECT ( - - 86 ) + + - COUNT ( * )
----
85

query I rowsort
SELECT ALL 34 + - 57 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-8595
SELECT ALL MAX( - 98 ) AS col1, 22 * 18 * + 13 col1
----
-98
5148

skipif mysql # not compatible
query II rowsort label-8595
SELECT ALL MAX ( - 98 ) AS col1, 22 * 18 * + 13 col1
----
-98
5148

query I rowsort
SELECT ( 10 ) + - 69 + - + 84
----
-143

query I rowsort
SELECT ALL 81 * 82 * + 44 AS col0
----
292248

query I rowsort
SELECT 83 * ( + - ( - 11 ) ) * - 16 col0
----
-14608

query II rowsort
SELECT - 4 AS col0, - 81 col0
----
-4
-81

query II rowsort
SELECT 22 + + 27, 12 AS col0
----
49
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT ALL 74 - + - COUNT( * ) * + 26 + + COUNT( * )
----
101

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL 74 - + - COUNT ( * ) * + 26 + + COUNT ( * )
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8602
SELECT DISTINCT 57 AS col0, 21 * + COUNT( * ) - 19 + + 85 DIV 17
----
57
7

skipif mysql # not compatible
query II rowsort label-8602
SELECT DISTINCT 57 AS col0, 21 * + COUNT ( * ) - 19 + + 85 / 17
----
57
7

query I rowsort
SELECT ( - 35 ) * 50 AS col2
----
-1750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8604
SELECT ALL 38 - + 59 + 88 + + + COALESCE ( + NULLIF ( + - 34, - 40 ), - CAST( + + 0 AS SIGNED ), - 22 + - COUNT( * ) + - COALESCE ( + 4, - ( + CASE + 61 WHEN + COUNT( * ) * 88 THEN NULL WHEN 1 THEN 28 * 50 ELSE NULL END ) ) * + CAST( NULL AS SIGNED ) ) * CAST( NULL AS DECIMAL ) * + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL 38 - + 59 + 88 + + + COALESCE ( + NULLIF ( + - 34, - 40 ), - CAST ( + + 0 AS INTEGER ), - 22 + - COUNT ( * ) + - COALESCE ( + 4, - ( + CASE + 61 WHEN + COUNT ( * ) * 88 THEN NULL WHEN 1 THEN 28 * 50 ELSE NULL END ) ) * + CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS REAL ) * + 9 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT + MAX( 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8605
SELECT + MAX ( 3 ) AS col1
----
3

query I rowsort
SELECT ALL - 3 * - 44 - - - 8
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT ( - - 76 ) * MAX( - 29 ) col2
----
-2204

skipif mysql # not compatible
query I rowsort label-8607
SELECT ( - - 76 ) * MAX ( - 29 ) col2
----
-2204

query II rowsort
SELECT ALL - 63, 76 AS col0
----
-63
76

query II rowsort
SELECT ALL - 67 AS col1, + 25 + + 91
----
-67
116

query I rowsort
SELECT 37 * 63 AS col0
----
2331

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8611
SELECT 65 DIV - + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-8611
SELECT 65 / - + COUNT ( * )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8612
SELECT + + COALESCE ( - 3, 15, - ( MAX( DISTINCT + 20 ) ) ), 14 * - 35 + - 16 DIV 46 AS col2
----
-3
-490

skipif mysql # not compatible
query II rowsort label-8612
SELECT + + COALESCE ( - 3, 15, - ( MAX ( DISTINCT + 20 ) ) ), 14 * - 35 + - 16 / 46 AS col2
----
-3
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT ALL - 63 * - + COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL - 63 * - + COUNT ( * ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT + NULLIF ( + 6, - + 49 * + + 42 - 57 + + 78 * MAX( ALL - 31 ) )
----
6

skipif mysql # not compatible
query I rowsort label-8614
SELECT + NULLIF ( + 6, - + 49 * + + 42 - 57 + + 78 * MAX ( ALL - 31 ) )
----
6

query I rowsort
SELECT ( COALESCE ( + - 58, - 30 ) ) - + 52
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT ALL + COUNT( * ) * + - 95
----
-95

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL + COUNT ( * ) * + - 95
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-8617
SELECT DISTINCT - 63 AS col0, COUNT( * ) AS col0
----
-63
1

skipif mysql # not compatible
query II rowsort label-8617
SELECT DISTINCT - 63 AS col0, COUNT ( * ) AS col0
----
-63
1

query I rowsort
SELECT DISTINCT ( 90 ) * - 68 + - - 17 AS col1
----
-6103

query I rowsort
SELECT DISTINCT + 86 * 15 AS col1
----
1290

query II rowsort
SELECT + - 27, 31 AS col0
----
-27
31

query I rowsort
SELECT DISTINCT - + 28 + - 54
----
-82

query I rowsort
SELECT DISTINCT + - 66 + - ( + - 62 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT DISTINCT + - MIN( ALL 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT + - MIN ( ALL 77 )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8624
SELECT - + 81 * - ( CAST( NULL AS SIGNED ) ) * 92 + - 83 * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-8624
SELECT - + 81 * - ( CAST ( NULL AS INTEGER ) ) * 92 + - 83 * - 35
----
NULL

query II rowsort
SELECT - 95 AS col0, + 11 * - 46 * - ( - 92 )
----
-95
-46552

query II rowsort
SELECT - 6 AS col0, 69
----
-6
69

query I rowsort
SELECT ALL ( + - 10 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT DISTINCT + MIN( + + 89 ) + - 85
----
4

skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT + MIN ( + + 89 ) + - 85
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8629
SELECT DISTINCT - + CAST( + COALESCE ( + 14, + 32 ) AS SIGNED ) + + + 75 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT - + CAST ( + COALESCE ( + 14, + 32 ) AS INTEGER ) + + + 75 AS col1
----
61

query II rowsort
SELECT ALL + 96 + 59 AS col0, + 9 AS col0
----
155
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT DISTINCT + 14 - - + COUNT( ALL + - 76 ) * - 85
----
-71

skipif mysql # not compatible
query I rowsort label-8631
SELECT DISTINCT + 14 - - + COUNT ( ALL + - 76 ) * - 85
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT ALL COALESCE ( - - 94, 82 * + 37 + - + COUNT( * ) * + 48 )
----
94

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL COALESCE ( - - 94, 82 * + 37 + - + COUNT ( * ) * + 48 )
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-8633
SELECT - 39 * COUNT( * ), - 1 + + 27 AS col0
----
-39
26

skipif mysql # not compatible
query II rowsort label-8633
SELECT - 39 * COUNT ( * ), - 1 + + 27 AS col0
----
-39
26

query I rowsort
SELECT + 45 * 32
----
1440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8635
SELECT ALL - COUNT( 57 ) DIV - 9 + - + 38
----
-38

skipif mysql # not compatible
query I rowsort label-8635
SELECT ALL - COUNT ( 57 ) / - 9 + - + 38
----
-38

query I rowsort
SELECT - 57 + 63 AS col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8637
SELECT + 63 DIV - 3 col1, - COUNT( * ) + + 13 AS col2
----
-21
12

skipif mysql # not compatible
query II rowsort label-8637
SELECT + 63 / - 3 col1, - COUNT ( * ) + + 13 AS col2
----
-21
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT - CASE - CASE - 62 WHEN + - 19 THEN 43 ELSE NULL END WHEN COUNT( * ) THEN NULL ELSE + COUNT( * ) + 78 + 80 END AS col2
----
-159

skipif mysql # not compatible
query I rowsort label-8638
SELECT - CASE - CASE - 62 WHEN + - 19 THEN 43 ELSE NULL END WHEN COUNT ( * ) THEN NULL ELSE + COUNT ( * ) + 78 + 80 END AS col2
----
-159

query I rowsort
SELECT - 33 + + 24
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT ALL CASE - 50 WHEN CASE + 18 WHEN MIN( 22 ) * + COUNT( * ) + + - 21 * 25 THEN - 34 ELSE NULL END THEN - + COUNT( * ) + - - 24 * + - 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL CASE - 50 WHEN CASE + 18 WHEN MIN ( 22 ) * + COUNT ( * ) + + - 21 * 25 THEN - 34 ELSE NULL END THEN - + COUNT ( * ) + - - 24 * + - 69 END
----
NULL

query I rowsort
SELECT DISTINCT ( + 96 ) * + 65
----
6240

onlyif mysql # DIV for integer division: 
query I rowsort label-8642
SELECT + 85 + + 21 - 73 DIV - 80 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-8642
SELECT + 85 + + 21 - 73 / - 80 AS col1
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-8643
SELECT + 3 - COUNT( * ), 56 * 53 + + 68 AS col0
----
2
3036

skipif mysql # not compatible
query II rowsort label-8643
SELECT + 3 - COUNT ( * ), 56 * 53 + + 68 AS col0
----
2
3036

query I rowsort
SELECT ALL 14 * + ( - 96 ) AS col0
----
-1344

query I rowsort
SELECT DISTINCT ( - 65 ) * + - 67 col0
----
4355

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT - 49 * COUNT( 62 ) col1
----
-49

skipif mysql # not compatible
query I rowsort label-8646
SELECT - 49 * COUNT ( 62 ) col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT + 39 * - + 57 * SUM( 51 ) AS col2
----
-113373

skipif mysql # not compatible
query I rowsort label-8647
SELECT + 39 * - + 57 * SUM ( 51 ) AS col2
----
-113373

query I rowsort
SELECT ALL 68 * 56 * 90 + + 20
----
342740

onlyif mysql # DIV for integer division: 
query I rowsort label-8649
SELECT + 6 DIV 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8649
SELECT + 6 / 56 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8650
SELECT ALL - - 20 * - 1 DIV + ( - + 77 ) + 25 AS col1, ( + 68 )
----
25
68

skipif mysql # not compatible
query II rowsort label-8650
SELECT ALL - - 20 * - 1 / + ( - + 77 ) + 25 AS col1, ( + 68 )
----
25
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8651
SELECT ALL MIN( 76 ) * ( 65 ) + - + 32 + COALESCE ( - CASE + - MIN( ALL - - 32 ) WHEN AVG ( - - ( - 22 ) ) DIV - COUNT( * ) THEN 52 WHEN 82 THEN NULL WHEN MIN( ALL - CAST( + 52 AS SIGNED ) ) THEN NULL END, 8, 0 + - 22 DIV 70 ) AS col1
----
4916

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL MIN ( 76 ) * ( 65 ) + - + 32 + COALESCE ( - CASE + - MIN ( ALL - - 32 ) WHEN AVG ( - - ( - 22 ) ) / - COUNT ( * ) THEN 52 WHEN 82 THEN NULL WHEN MIN ( ALL - CAST ( + 52 AS INTEGER ) ) THEN NULL END, 8, 0 + - 22 / 70 ) AS col1
----
4916

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT DISTINCT COUNT( * ) * + 55 * + - 54 + + 65 + - 13 * 61 * + 32 AS col1
----
-28281

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT COUNT ( * ) * + 55 * + - 54 + + 65 + - 13 * 61 * + 32 AS col1
----
-28281

onlyif mysql # DIV for integer division: 
query II rowsort label-8653
SELECT ALL - ( - 53 ) * 27 * 83 * - 7 + ( + 20 ) AS col2, + ( + - 33 ) DIV - 89 - + - 64 AS col1
----
-831391
64

skipif mysql # not compatible
query II rowsort label-8653
SELECT ALL - ( - 53 ) * 27 * 83 * - 7 + ( + 20 ) AS col2, + ( + - 33 ) / - 89 - + - 64 AS col1
----
-831391
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8654
SELECT DISTINCT - 50 * + 37 + + 21 + + ( ( + 24 ) ) + 73 + - 67 + 25 * + COUNT( * ) * + 86 * + 6 + - + MAX( ALL + ( - 62 ) ) DIV 39
----
11102

skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT - 50 * + 37 + + 21 + + ( ( + 24 ) ) + 73 + - 67 + 25 * + COUNT ( * ) * + 86 * + 6 + - + MAX ( ALL + ( - 62 ) ) / 39
----
11102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8655
SELECT + 84 * - - 10 + - - 15 - + 22 * - COUNT( * ) DIV - - COUNT( * )
----
877

skipif mysql # not compatible
query I rowsort label-8655
SELECT + 84 * - - 10 + - - 15 - + 22 * - COUNT ( * ) / - - COUNT ( * )
----
877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8656
SELECT + - CAST( NULL AS SIGNED ) * 0 * - 25 * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8656
SELECT + - CAST ( NULL AS INTEGER ) * 0 * - 25 * 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT + NULLIF ( 20, + - MAX( DISTINCT + 93 ) ) + 57 + - - 56 AS col1
----
133

skipif mysql # not compatible
query I rowsort label-8657
SELECT + NULLIF ( 20, + - MAX ( DISTINCT + 93 ) ) + 57 + - - 56 AS col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT DISTINCT - 13 * CASE + - 14 WHEN + + CASE + 62 WHEN + 15 THEN + 50 WHEN - + 9 THEN NULL ELSE NULL END * COUNT( * ) * + 98 / + 50 THEN 89 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8658
SELECT DISTINCT - 13 * CASE + - 14 WHEN + + CASE + 62 WHEN + 15 THEN + 50 WHEN - + 9 THEN NULL ELSE NULL END * COUNT ( * ) * + 98 / + 50 THEN 89 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT DISTINCT MAX( - 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT MAX ( - 15 ) AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8660
SELECT ALL ( + - ( - CASE 56 WHEN 28 THEN + 42 * - SUM( - + 31 ) * - + 71 * - SUM( - + CAST( NULL AS DECIMAL ) ) END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL ( + - ( - CASE 56 WHEN 28 THEN + 42 * - SUM ( - + 31 ) * - + 71 * - SUM ( - + CAST ( NULL AS REAL ) ) END ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT ALL ( - + COUNT( * ) ) * 70 - + 39
----
-109

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL ( - + COUNT ( * ) ) * 70 - + 39
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8662
SELECT - CAST( - 44 AS SIGNED ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-8662
SELECT - CAST ( - 44 AS INTEGER ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT MIN( ALL - - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-8663
SELECT MIN ( ALL - - 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT - 45 + - + COUNT( * ) + + 68
----
22

skipif mysql # not compatible
query I rowsort label-8664
SELECT - 45 + - + COUNT ( * ) + + 68
----
22

query I rowsort
SELECT DISTINCT + 83 * + + 24
----
1992

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT - 22 * - SUM( - ( + COALESCE ( 78, - - 52 ) ) )
----
-1716

skipif mysql # not compatible
query I rowsort label-8666
SELECT - 22 * - SUM ( - ( + COALESCE ( 78, - - 52 ) ) )
----
-1716

query I rowsort
SELECT - 86 * 37
----
-3182

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT ALL - ( 3 ) * - COUNT( * ) * + COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL - ( 3 ) * - COUNT ( * ) * + COUNT ( * ) AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8669
SELECT ALL - 66 * + - 76 DIV 19 * - ( + ( + 15 ) )
----
-3960

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL - 66 * + - 76 / 19 * - ( + ( + 15 ) )
----
-3960

query II rowsort
SELECT ALL 68, 54 AS col1
----
68
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8671
SELECT - 50 DIV 17 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8671
SELECT - 50 / 17 AS col2
----
-2

query I rowsort
SELECT - 56 * + 36 AS col2
----
-2016

query I rowsort
SELECT - 67 - - + 78
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-8674
SELECT 53, + MIN( + - 71 ) AS col2
----
53
-71

skipif mysql # not compatible
query II rowsort label-8674
SELECT 53, + MIN ( + - 71 ) AS col2
----
53
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8675
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8676
SELECT DISTINCT - 21 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-8676
SELECT DISTINCT - 21 / + 80
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8677
SELECT - COUNT( 36 ) * - - 94 DIV + - 93
----
1

skipif mysql # not compatible
query I rowsort label-8677
SELECT - COUNT ( 36 ) * - - 94 / + - 93
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8678
SELECT DISTINCT - 60 + + ( + - SUM( ALL - - 35 ) ) + 47 DIV 1 * + 39 DIV COUNT( * ) + + 22 * - 77 * - 12 + + 43
----
22109

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT - 60 + + ( + - SUM ( ALL - - 35 ) ) + 47 / 1 * + 39 / COUNT ( * ) + + 22 * - 77 * - 12 + + 43
----
22109

query I rowsort
SELECT DISTINCT - 80 + 88
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT ALL COALESCE ( 88, - 80 + - COUNT( * ), - 3 + + - 46 ) + 0 * - - 48 col0
----
88

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL COALESCE ( 88, - 80 + - COUNT ( * ), - 3 + + - 46 ) + 0 * - - 48 col0
----
88

query I rowsort
SELECT - 97 - - + 64
----
-33

query I rowsort
SELECT 33 * + 86 AS col0
----
2838

query I rowsort
SELECT 36 + + - 2 AS col1
----
34

query I rowsort
SELECT ALL 94 - 79 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT COUNT( * ) * 37 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-8685
SELECT COUNT ( * ) * 37 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT ALL + 4 * 9 - + COUNT( * ) + NULLIF ( + 64, - 70 + MAX( DISTINCT + 75 ) * + NULLIF ( 10, - 51 ) ) + - COUNT( * ) + 11 * + + ( + 13 ) * - ( + NULLIF ( 41, + NULLIF ( 10, COUNT( * ) ) * 73 ) ) - + 15 AS col1
----
-5780

skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL + 4 * 9 - + COUNT ( * ) + NULLIF ( + 64, - 70 + MAX ( DISTINCT + 75 ) * + NULLIF ( 10, - 51 ) ) + - COUNT ( * ) + 11 * + + ( + 13 ) * - ( + NULLIF ( 41, + NULLIF ( 10, COUNT ( * ) ) * 73 ) ) - + 15 AS col1
----
-5780

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT COUNT( * ) - - - 22 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-8687
SELECT COUNT ( * ) - - - 22 AS col2
----
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-8688
SELECT ALL 58 DIV + - 38, - 72 AS col2
----
-1
-72

skipif mysql # not compatible
query II rowsort label-8688
SELECT ALL 58 / + - 38, - 72 AS col2
----
-1
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8689
SELECT COUNT( * ) * - 77 AS col2, ( + - 12 ) DIV 76 col2
----
-77
0

skipif mysql # not compatible
query II rowsort label-8689
SELECT COUNT ( * ) * - 77 AS col2, ( + - 12 ) / 76 col2
----
-77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT ALL 75 * - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL 75 * - COUNT ( * )
----
-75

query I rowsort
SELECT 93 - 89 AS col2
----
4

query I rowsort
SELECT ALL ( + 32 ) * + + 34 col1
----
1088

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT DISTINCT COUNT( * ) * - - 9
----
9

skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT COUNT ( * ) * - - 9
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8694
SELECT DISTINCT ( + ( 32 ) ) * + NULLIF ( - + 8, - + 16 ) * + + COUNT( * ) DIV - COUNT( * ) + + MIN( ALL - COALESCE ( - 3, - ( - + 35 ) + 77 - 60, 32 * - 31 + 93 + CAST( NULL AS SIGNED ) + 15 DIV NULLIF ( 66, 81 ) DIV 4 ) ) AS col0
----
259

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT ( + ( 32 ) ) * + NULLIF ( - + 8, - + 16 ) * + + COUNT ( * ) / - COUNT ( * ) + + MIN ( ALL - COALESCE ( - 3, - ( - + 35 ) + 77 - 60, 32 * - 31 + 93 + CAST ( NULL AS INTEGER ) + 15 / NULLIF ( 66, 81 ) / 4 ) ) AS col0
----
259

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT COUNT( * ) * MIN( ALL + - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-8695
SELECT COUNT ( * ) * MIN ( ALL + - 79 )
----
-79

query I rowsort
SELECT DISTINCT 57 * - 67
----
-3819

query I rowsort
SELECT ALL 16 * 47 AS col2
----
752

query II rowsort
SELECT ALL + 7 + - 10 AS col0, + 47
----
-3
47

query I rowsort
SELECT 12 + + 45 AS col2
----
57

query I rowsort
SELECT ( 42 ) + + 12 * + 70
----
882

query I rowsort
SELECT ALL ( 90 ) col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8702
SELECT ALL - COALESCE ( CASE + - 28 WHEN - 41 THEN - - 13 + + + 34 WHEN ( - 55 ) THEN - 63 END, - + 53 DIV - COUNT( * ) + + + 72 ) + + 70 * + - 37
----
-2715

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL - COALESCE ( CASE + - 28 WHEN - 41 THEN - - 13 + + + 34 WHEN ( - 55 ) THEN - 63 END, - + 53 / - COUNT ( * ) + + + 72 ) + + 70 * + - 37
----
-2715

query I rowsort
SELECT DISTINCT 53 + - - 81
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-8704
SELECT 32 + + SUM( - - 44 ) + + 65 AS col0, + ( + MIN( DISTINCT + + COALESCE ( + 81, - - 66 ) ) ) AS col2
----
141
81

skipif mysql # not compatible
query II rowsort label-8704
SELECT 32 + + SUM ( - - 44 ) + + 65 AS col0, + ( + MIN ( DISTINCT + + COALESCE ( + 81, - - 66 ) ) ) AS col2
----
141
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT - 45 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-8705
SELECT - 45 / - 64
----
0

query I rowsort
SELECT 79 + + + 49 + - + 56 col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT - SUM( ALL + 94 ) * - 44 AS col1
----
4136

skipif mysql # not compatible
query I rowsort label-8707
SELECT - SUM ( ALL + 94 ) * - 44 AS col1
----
4136

query I rowsort
SELECT ALL - ( + - 98 ) - + ( + - 10 )
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8709
SELECT ALL + - 9 DIV + + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL + - 9 / + + COUNT ( * )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8710
SELECT + + 35 * - + NULLIF ( - + 78, - 94 ) + - 63 + + 50 DIV + MIN( DISTINCT NULLIF ( 7, - 98 DIV + CAST( NULL AS SIGNED ) * - 18 + - 30 ) ) * - - COUNT( * ) + - 28 + - 41 AS col2
----
2605

skipif mysql # not compatible
query I rowsort label-8710
SELECT + + 35 * - + NULLIF ( - + 78, - 94 ) + - 63 + + 50 / + MIN ( DISTINCT NULLIF ( 7, - 98 / + CAST ( NULL AS INTEGER ) * - 18 + - 30 ) ) * - - COUNT ( * ) + - 28 + - 41 AS col2
----
2605

query I rowsort
SELECT COALESCE ( - 8, - 1 ) * 40 AS col0
----
-320

onlyif mysql # DIV for integer division: 
query I rowsort label-8712
SELECT ALL + - 84 DIV + 24
----
-3

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL + - 84 / + 24
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8713
SELECT 35 / - CASE + + 20 WHEN + - CAST( NULL AS SIGNED ) THEN - COUNT( * ) + + 70 END + + - 36 + - 9 - + + 83 * + 23 + 81 - 45 + + - 64 + + 63 * + CAST( - NULLIF ( - - 71, + COUNT( * ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8713
SELECT 35 / - CASE + + 20 WHEN + - CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) + + 70 END + + - 36 + - 9 - + + 83 * + 23 + 81 - 45 + + - 64 + + 63 * + CAST ( - NULLIF ( - - 71, + COUNT ( * ) ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - + ( + - 36 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT ALL - CASE CASE WHEN + 5 IN ( + COUNT( * ) / 75 * - 35 - - COUNT( * ) + - NULLIF ( - - 65, + 19 ) / 13 + 7 + - SUM( ALL + 1 ) * + + ( 15 ) ) THEN + MIN( + + 99 ) + - 22 END WHEN + 1 + + 12 THEN + 82 * - 85 WHEN + 16 THEN NULL END * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL - CASE CASE WHEN + 5 IN ( + COUNT ( * ) / 75 * - 35 - - COUNT ( * ) + - NULLIF ( - - 65, + 19 ) / 13 + 7 + - SUM ( ALL + 1 ) * + + ( 15 ) ) THEN + MIN ( + + 99 ) + - 22 END WHEN + 1 + + 12 THEN + 82 * - 85 WHEN + 16 THEN NULL END * 36
----
NULL

query I rowsort
SELECT 27 * 75 AS col1
----
2025

query I rowsort
SELECT + + 14 col0
----
14

query I rowsort
SELECT - - 34 * ( 93 ) + + 65 * 34 + + - 4
----
5368

query I rowsort
SELECT DISTINCT - 30 * - 88 + - 51
----
2589

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8720
SELECT ALL - CAST( 93 AS SIGNED )
----
-93

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL - CAST ( 93 AS INTEGER )
----
-93

query I rowsort
SELECT 96 * - 12 AS col1
----
-1152

query I rowsort
SELECT 32 * 36 * + + 24 AS col1
----
27648

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT DISTINCT - MAX( 88 ) * 50 AS col2
----
-4400

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT - MAX ( 88 ) * 50 AS col2
----
-4400

query I rowsort
SELECT 22 * 26 AS col2
----
572

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT ALL - 74 + - COUNT( * ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL - 74 + - COUNT ( * ) AS col2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8726
SELECT ALL NULLIF ( - COUNT( * ), - 17 DIV 66 ) DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL NULLIF ( - COUNT ( * ), - 17 / 66 ) / + 49
----
0

query I rowsort
SELECT DISTINCT - CASE + 92 WHEN 72 THEN 58 * - - 16 ELSE + + 69 END AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT ALL 98 + + - COUNT( * ) + COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL 98 + + - COUNT ( * ) + COUNT ( * ) AS col1
----
98

query II rowsort
SELECT 38 * 85 + - 9 AS col1, 61 AS col1
----
3221
61

onlyif mysql # DIV for integer division: 
query I rowsort label-8730
SELECT 12 DIV - - ( 57 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8730
SELECT 12 / - - ( 57 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8731
SELECT COALESCE ( - - 24, 94 DIV 17 DIV - - 92, + 4 * - 91 - + 57 + + MAX( - - 74 ) ) + - 58 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-8731
SELECT COALESCE ( - - 24, 94 / 17 / - - 92, + 4 * - 91 - + 57 + + MAX ( - - 74 ) ) + - 58 AS col0
----
-34

query I rowsort
SELECT ALL 62 + + - 27 * - 17 AS col2
----
521

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT DISTINCT ( - + MAX( - + 62 ) ) + - 2 + - + 49 * - - 49 * + + 93 * + 48 col0
----
-10718004

skipif mysql # not compatible
query I rowsort label-8733
SELECT DISTINCT ( - + MAX ( - + 62 ) ) + - 2 + - + 49 * - - 49 * + + 93 * + 48 col0
----
-10718004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8734
SELECT NULLIF ( + CAST( NULL AS SIGNED ), + 58 ) * - + CAST( - 47 AS SIGNED ) * + + 82 / + 28 * - ( - 82 ) - 30 + 30 / + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-8734
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), + 58 ) * - + CAST ( - 47 AS INTEGER ) * + + 82 / + 28 * - ( - 82 ) - 30 + 30 / + 49
----
NULL

query I rowsort
SELECT 73 + + - 98
----
-25

query I rowsort
SELECT DISTINCT 56 * 9 col0
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT ALL 14 * COUNT( * ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL 14 * COUNT ( * ) AS col2
----
14

query I rowsort
SELECT + 20 * 81 * + ( - 23 ) AS col1
----
-37260

query II rowsort
SELECT ALL 76, - 91 - - 84 + - - 21 * + 26 AS col2
----
76
539

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT - MIN( ALL + 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-8740
SELECT - MIN ( ALL + 4 )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8741
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) * - 38 AS col1, COUNT( * ) DIV + + 50 * + 77
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8741
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) * - 38 AS col1, COUNT ( * ) / + + 50 * + 77
----
NULL
0

query I rowsort
SELECT ALL + 76 + 4 AS col1
----
80

query I rowsort
SELECT - CASE - 48 WHEN + 45 THEN - 39 * - 30 - - - NULLIF ( + 7, - 87 + + 66 + + - 60 ) + + 6 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8744
SELECT ALL 6 AS col0, COUNT( * )
----
6
1

skipif mysql # not compatible
query II rowsort label-8744
SELECT ALL 6 AS col0, COUNT ( * )
----
6
1

query I rowsort
SELECT + 86 * - + 72 AS col2
----
-6192

query II rowsort
SELECT DISTINCT 90 AS col0, - 45
----
90
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT ALL + COUNT( * ) - - 70 col0
----
71

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL + COUNT ( * ) - - 70 col0
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8748
SELECT + + COUNT( * ) - + 89 * + + COUNT( * ) + CAST( NULL AS SIGNED ) + + + 87 * - ( + - 88 ) * - + COUNT( DISTINCT 64 ) * + 62 + 35 * 77 - + 88 + 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8748
SELECT + + COUNT ( * ) - + 89 * + + COUNT ( * ) + CAST ( NULL AS INTEGER ) + + + 87 * - ( + - 88 ) * - + COUNT ( DISTINCT 64 ) * + 62 + 35 * 77 - + 88 + 86 AS col2
----
NULL

query I rowsort
SELECT - + 8 * - 20 col2
----
160

query I rowsort
SELECT DISTINCT + 86 - 32
----
54

query I rowsort
SELECT ALL + - 81 * 23 AS col0
----
-1863

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT - SUM( DISTINCT - 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-8752
SELECT - SUM ( DISTINCT - 9 ) AS col0
----
9

query I rowsort
SELECT ALL + 59 - + + 22 + 3 AS col0
----
40

query I rowsort
SELECT - 88 * - 27 * - 35 AS col0
----
-83160

onlyif mysql # aggregate syntax: 
query II rowsort label-8755
SELECT - + 19 col1, NULLIF ( - COUNT( * ), + + 54 + + 0 + - 48 ) - - + 49
----
-19
48

skipif mysql # not compatible
query II rowsort label-8755
SELECT - + 19 col1, NULLIF ( - COUNT ( * ), + + 54 + + 0 + - 48 ) - - + 49
----
-19
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8756
SELECT ALL + CASE - + 88 WHEN 31 + - 83 THEN + - 41 / + - 58 * - 63 - SUM( - - 98 ) * - AVG ( ALL + - 68 ) - + - 48 + - 58 WHEN - + 27 + + 65 THEN - - 68 ELSE + 83 END * 66 - CAST( + 42 AS SIGNED ) + - ( + CASE 5 WHEN + 45 * - 4 THEN 11 + + 83 WHEN + 98 THEN + 46 END - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL + CASE - + 88 WHEN 31 + - 83 THEN + - 41 / + - 58 * - 63 - SUM ( - - 98 ) * - AVG ( ALL + - 68 ) - + - 48 + - 58 WHEN - + 27 + + 65 THEN - - 68 ELSE + 83 END * 66 - CAST ( + 42 AS INTEGER ) + - ( + CASE 5 WHEN + 45 * - 4 THEN 11 + + 83 WHEN + 98 THEN + 46 END - COUNT ( * ) ) AS col1
----
NULL

query II rowsort
SELECT + 53 AS col1, 65 AS col0
----
53
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8758
SELECT - - CAST( - COUNT( * ) AS SIGNED ) / - - CAST( - 4 AS SIGNED ) + + 90 - CASE ( - 84 ) WHEN - 80 THEN 82 - 82 * + 48 WHEN - COUNT( * ) THEN - 43 ELSE NULL END * - + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8758
SELECT - - CAST ( - COUNT ( * ) AS INTEGER ) / - - CAST ( - 4 AS INTEGER ) + + 90 - CASE ( - 84 ) WHEN - 80 THEN 82 - 82 * + 48 WHEN - COUNT ( * ) THEN - 43 ELSE NULL END * - + 69 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT ALL + SUM( - 76 ) * - + 29
----
2204

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL + SUM ( - 76 ) * - + 29
----
2204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8760
SELECT + - CASE + 4 WHEN - 42 THEN + ( - MIN( DISTINCT 11 ) ) + - - 42 + CAST( NULL AS SIGNED ) END * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8760
SELECT + - CASE + 4 WHEN - 42 THEN + ( - MIN ( DISTINCT 11 ) ) + - - 42 + CAST ( NULL AS INTEGER ) END * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT COUNT( ALL - 58 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8761
SELECT COUNT ( ALL - 58 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT - 42 * + 26 * + COUNT( * ) - 93
----
-1185

skipif mysql # not compatible
query I rowsort label-8762
SELECT - 42 * + 26 * + COUNT ( * ) - 93
----
-1185

query II rowsort
SELECT DISTINCT + - 16 AS col2, 69 * + ( 78 )
----
-16
5382

query I rowsort
SELECT - 58 * COALESCE ( 3, 30 )
----
-174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8765
SELECT - 17 + + + 10 + + COUNT( * ) + - CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT - 17 + + + 10 + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT DISTINCT + 15 * ( ( COUNT( * ) ) ) + + - 89 * - - 1 + - 70 + - ( + - 36 )
----
-108

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT + 15 * ( ( COUNT ( * ) ) ) + + - 89 * - - 1 + - 70 + - ( + - 36 )
----
-108

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8767
SELECT - 93 + - COALESCE ( ( + ( + COUNT( * ) ) ), - - AVG ( + ( + 73 ) ) + 91 ) DIV NULLIF ( + 67, - ( 28 ) DIV + + 11 ), 74 AS col2
----
-93
74

skipif mysql # not compatible
query II rowsort label-8767
SELECT - 93 + - COALESCE ( ( + ( + COUNT ( * ) ) ), - - AVG ( + ( + 73 ) ) + 91 ) / NULLIF ( + 67, - ( 28 ) / + + 11 ), 74 AS col2
----
-93
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8768
SELECT - 10 DIV - + 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8768
SELECT - 10 / - + 95 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT ALL - 82 * + + COUNT( * ) * 17 + + 96
----
-1298

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL - 82 * + + COUNT ( * ) * 17 + + 96
----
-1298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8770
SELECT ALL - CAST( 2 AS SIGNED ) * - - 73 * CAST( + + 26 AS SIGNED ) AS col0
----
-3796

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL - CAST ( 2 AS INTEGER ) * - - 73 * CAST ( + + 26 AS INTEGER ) AS col0
----
-3796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8771
SELECT ALL + COUNT( * ) * - 77 + - 44 + + 98 + + + COUNT( ALL CAST( NULL AS SIGNED ) ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL + COUNT ( * ) * - 77 + - 44 + + 98 + + + COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT NULLIF ( - + COUNT( * ), - ( + + 69 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8772
SELECT NULLIF ( - + COUNT ( * ), - ( + + 69 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT + MIN( DISTINCT + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-8773
SELECT + MIN ( DISTINCT + 28 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8774
SELECT COALESCE ( + 12, + + ( + + 7 ) DIV - - AVG ( ALL - 55 ) + + CAST( NULL AS SIGNED ) * + 63, - + 51 * - COUNT( DISTINCT 34 ) DIV + + 97 + + - ( + + 45 ) + - - 87, + ( - + CASE WHEN 17 IN ( + NULLIF ( 39, 47 ) + - 1 ) THEN + 6 END ) )
----
12

skipif mysql # not compatible
query I rowsort label-8774
SELECT COALESCE ( + 12, + + ( + + 7 ) / - - AVG ( ALL - 55 ) + + CAST ( NULL AS INTEGER ) * + 63, - + 51 * - COUNT ( DISTINCT 34 ) / + + 97 + + - ( + + 45 ) + - - 87, + ( - + CASE WHEN 17 IN ( + NULLIF ( 39, 47 ) + - 1 ) THEN + 6 END ) )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT + COUNT( ALL + NULLIF ( ( CASE - 48 WHEN - - 78 + NULLIF ( - + 61, + 99 ) THEN NULL ELSE + ( - 88 ) END ), - 68 ) ) * - - 69 + - + NULLIF ( + 59, 32 ) * - 4 AS col2
----
305

skipif mysql # not compatible
query I rowsort label-8775
SELECT + COUNT ( ALL + NULLIF ( ( CASE - 48 WHEN - - 78 + NULLIF ( - + 61, + 99 ) THEN NULL ELSE + ( - 88 ) END ), - 68 ) ) * - - 69 + - + NULLIF ( + 59, 32 ) * - 4 AS col2
----
305

query I rowsort
SELECT - 68 - + - 70 AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8777
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 49 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 8 AS col1, 96 AS col1
----
8
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8779
SELECT - COUNT( * ) DIV - 14 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8779
SELECT - COUNT ( * ) / - 14 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT ALL - 78 * - + 44 * - + ( + 92 ) + + - CASE + - 3 WHEN + 4 + 27 THEN - - COALESCE ( + - 39, + + ( + 48 ) ) * 99 / + - AVG ( DISTINCT - 61 ) + - COUNT( * ) END * - + COUNT( * ) + 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL - 78 * - + 44 * - + ( + 92 ) + + - CASE + - 3 WHEN + 4 + 27 THEN - - COALESCE ( + - 39, + + ( + 48 ) ) * 99 / + - AVG ( DISTINCT - 61 ) + - COUNT ( * ) END * - + COUNT ( * ) + 95 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT MAX( DISTINCT - ( + 16 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-8781
SELECT MAX ( DISTINCT - ( + 16 ) )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8782
SELECT + 14 - - 46 + - COUNT( * ) + - CASE 63 WHEN - 76 THEN - CASE + CAST( - ( - + 91 ) AS SIGNED ) WHEN + 51 - + 20 THEN - SUM( + - 76 ) DIV + 40 - - 75 WHEN + 61 THEN - - MAX( 14 ) * - ( + + 59 ) + - ( + 59 ) * 22 END ELSE - 13 END + ( - COALESCE ( ( - NULLIF ( + 51, - 95 ) ), 34 DIV - 64, 57 - - CASE - COUNT( * ) WHEN - 71 + 33 DIV + 69 THEN COUNT( * ) WHEN - 2 THEN + 67 WHEN 58 THEN 77 ELSE NULL END, 59 * 32 ) ) * 76 AS col0
----
3948

skipif mysql # not compatible
query I rowsort label-8782
SELECT + 14 - - 46 + - COUNT ( * ) + - CASE 63 WHEN - 76 THEN - CASE + CAST ( - ( - + 91 ) AS INTEGER ) WHEN + 51 - + 20 THEN - SUM ( + - 76 ) / + 40 - - 75 WHEN + 61 THEN - - MAX ( 14 ) * - ( + + 59 ) + - ( + 59 ) * 22 END ELSE - 13 END + ( - COALESCE ( ( - NULLIF ( + 51, - 95 ) ), 34 / - 64, 57 - - CASE - COUNT ( * ) WHEN - 71 + 33 / + 69 THEN COUNT ( * ) WHEN - 2 THEN + 67 WHEN 58 THEN 77 ELSE NULL END, 59 * 32 ) ) * 76 AS col0
----
3948

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT DISTINCT ( + ( + MAX( 78 ) ) )
----
78

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT ( + ( + MAX ( 78 ) ) )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8784
SELECT ALL CAST( - + 57 AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL CAST ( - + 57 AS INTEGER )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT - + 60 * 87 * + COUNT( * )
----
-5220

skipif mysql # not compatible
query I rowsort label-8785
SELECT - + 60 * 87 * + COUNT ( * )
----
-5220

query I rowsort
SELECT ALL - 49 * + 53 AS col1
----
-2597

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8787
SELECT + - 43 + - 25 + + - ( + 69 ) + + 92 - - + 90 * 87 * + COUNT( * ) * MAX( DISTINCT 25 ) DIV - COUNT( * ) + - - 16 * + - 53
----
-196643

skipif mysql # not compatible
query I rowsort label-8787
SELECT + - 43 + - 25 + + - ( + 69 ) + + 92 - - + 90 * 87 * + COUNT ( * ) * MAX ( DISTINCT 25 ) / - COUNT ( * ) + - - 16 * + - 53
----
-196643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8788
SELECT + COUNT( * ) * + CAST( + 9 AS SIGNED ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-8788
SELECT + COUNT ( * ) * + CAST ( + 9 AS INTEGER ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT DISTINCT 76 * COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-8789
SELECT DISTINCT 76 * COUNT ( * ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT + COUNT( * ) - + + 24
----
-23

skipif mysql # not compatible
query I rowsort label-8790
SELECT + COUNT ( * ) - + + 24
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8791
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + 82
----
NULL

query I rowsort
SELECT ALL COALESCE ( 17, - + 10 )
----
17

query I rowsort
SELECT + 63 + + 7 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT DISTINCT - NULLIF ( - COUNT( * ), + 31 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT - NULLIF ( - COUNT ( * ), + 31 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8795
SELECT + ( - CAST( - 76 AS SIGNED ) ) + + + 12
----
88

skipif mysql # not compatible
query I rowsort label-8795
SELECT + ( - CAST ( - 76 AS INTEGER ) ) + + + 12
----
88

query I rowsort
SELECT + - 2 * 65
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT - SUM( 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-8797
SELECT - SUM ( 57 )
----
-57

query I rowsort
SELECT + - 52 + + 64 AS col0
----
12

query II rowsort
SELECT ALL + 54 AS col2, - 14
----
54
-14

query I rowsort
SELECT + - NULLIF ( + - 71, 51 ) * - 61 col0
----
-4331

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT - 22 * - CASE ( + 32 ) WHEN - + 6 THEN - + 17 END * + COUNT( * ) + + + 82 + + COUNT( * ) + + 40 * COUNT( * ) + - 92 * + 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8801
SELECT - 22 * - CASE ( + 32 ) WHEN - + 6 THEN - + 17 END * + COUNT ( * ) + + + 82 + + COUNT ( * ) + + 40 * COUNT ( * ) + - 92 * + 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT ALL + ( + ( + COUNT( * ) ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL + ( + ( + COUNT ( * ) ) ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8803
SELECT - CAST( - 84 AS SIGNED ) col1
----
84

skipif mysql # not compatible
query I rowsort label-8803
SELECT - CAST ( - 84 AS INTEGER ) col1
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-8804
SELECT + 32 col1, - NULLIF ( - - 71, + COALESCE ( + + 5, + ( + + COUNT( * ) ) ) ) col2
----
32
-71

skipif mysql # not compatible
query II rowsort label-8804
SELECT + 32 col1, - NULLIF ( - - 71, + COALESCE ( + + 5, + ( + + COUNT ( * ) ) ) ) col2
----
32
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT ALL + + 37 * - 65 * CASE + COUNT( * ) WHEN ( + - COUNT( * ) ) / 90 * 39 - 14 THEN - 19 * - 34 + 6 + + ( - 76 ) END + + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL + + 37 * - 65 * CASE + COUNT ( * ) WHEN ( + - COUNT ( * ) ) / 90 * 39 - 14 THEN - 19 * - 34 + 6 + + ( - 76 ) END + + - 24
----
NULL

query I rowsort
SELECT + 88 * - 86 AS col2
----
-7568

query I rowsort
SELECT ALL ( - 34 ) * + 9
----
-306

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8808
SELECT DISTINCT + SUM( DISTINCT - - 49 ) DIV 96 + - ( - + 22 ) * + 67 AS col0
----
1474

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT + SUM ( DISTINCT - - 49 ) / 96 + - ( - + 22 ) * + 67 AS col0
----
1474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8809
SELECT DISTINCT - 44 DIV - COUNT( * ) + - - 13 + + + ( + ( - + COUNT( * ) ) ) * + COUNT( * ) + + COALESCE ( - MIN( DISTINCT + + 32 ), - 33 ) col2
----
24

skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT - 44 / - COUNT ( * ) + - - 13 + + + ( + ( - + COUNT ( * ) ) ) * + COUNT ( * ) + + COALESCE ( - MIN ( DISTINCT + + 32 ), - 33 ) col2
----
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8810
SELECT ALL + 61 DIV - CAST( + - COALESCE ( - - NULLIF ( + 10, 13 ), - 81, + 95 ) AS SIGNED ) + + + 47
----
53

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL + 61 / - CAST ( + - COALESCE ( - - NULLIF ( + 10, 13 ), - 81, + 95 ) AS INTEGER ) + + + 47
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT ALL + CASE - + 16 WHEN + SUM( ALL - 87 ) THEN NULL ELSE + 49 END
----
49

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL + CASE - + 16 WHEN + SUM ( ALL - 87 ) THEN NULL ELSE + 49 END
----
49

query I rowsort
SELECT - 45 + + + 8
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT + COUNT( * ) * - + 69 - - - 80 AS col2
----
-149

skipif mysql # not compatible
query I rowsort label-8813
SELECT + COUNT ( * ) * - + 69 - - - 80 AS col2
----
-149

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8814
SELECT ALL - 85 DIV + 32 AS col1, MIN( ( + 89 ) ) + - COUNT( * ) AS col1
----
-2
88

skipif mysql # not compatible
query II rowsort label-8814
SELECT ALL - 85 / + 32 AS col1, MIN ( ( + 89 ) ) + - COUNT ( * ) AS col1
----
-2
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8815
SELECT 47 + + CAST( - 42 AS SIGNED ) AS col0, + COUNT( - - 82 ) * - 22 AS col0
----
5
-22

skipif mysql # not compatible
query II rowsort label-8815
SELECT 47 + + CAST ( - 42 AS INTEGER ) AS col0, + COUNT ( - - 82 ) * - 22 AS col0
----
5
-22

query I rowsort
SELECT 66 * - ( - + 17 ) AS col1
----
1122

query I rowsort
SELECT 75 * + 18 * - 48 col1
----
-64800

query I rowsort
SELECT ALL + 13 - 16 AS col1
----
-3

query I rowsort
SELECT DISTINCT + + 15 - - 86 AS col1
----
101

query I rowsort
SELECT ALL + 3 * - + 75
----
-225

query I rowsort
SELECT 7 + - 83
----
-76

query I rowsort
SELECT 56 * - 12
----
-672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8823
SELECT ALL CAST( - 42 AS SIGNED ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL CAST ( - 42 AS INTEGER ) AS col1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8824
SELECT DISTINCT ( + + COUNT( * ) ) DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT ( + + COUNT ( * ) ) / 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT NULLIF ( 83, + COUNT( * ) ) * - + 15 * - COUNT( * ) col1
----
1245

skipif mysql # not compatible
query I rowsort label-8825
SELECT NULLIF ( 83, + COUNT ( * ) ) * - + 15 * - COUNT ( * ) col1
----
1245

onlyif mysql # DIV for integer division: 
query I rowsort label-8826
SELECT ALL 67 DIV + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL 67 / + 79 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8827
SELECT - COALESCE ( 48, 69 * - - ( - 20 ) * - - CAST( 33 AS SIGNED ) + + 91, 43 * - COUNT( * ) )
----
-48

skipif mysql # not compatible
query I rowsort label-8827
SELECT - COALESCE ( 48, 69 * - - ( - 20 ) * - - CAST ( 33 AS INTEGER ) + + 91, 43 * - COUNT ( * ) )
----
-48

query I rowsort
SELECT - 50 - + 98
----
-148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8829
SELECT - NULLIF ( 82, - AVG ( DISTINCT - 95 ) ) DIV COUNT( * ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-8829
SELECT - NULLIF ( 82, - AVG ( DISTINCT - 95 ) ) / COUNT ( * ) AS col0
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8830
SELECT + 73 DIV 96 * 56 * + - CASE + + 43 WHEN - 29 + + - NULLIF ( - 75, + + 26 ) THEN NULL WHEN 88 THEN + COUNT( * ) * - 67 + + 15 WHEN MAX( ALL - 45 ) THEN NULL ELSE - 47 DIV + 15 END + - 40 - - + 36 * + 61 col2
----
2156

skipif mysql # not compatible
query I rowsort label-8830
SELECT + 73 / 96 * 56 * + - CASE + + 43 WHEN - 29 + + - NULLIF ( - 75, + + 26 ) THEN NULL WHEN 88 THEN + COUNT ( * ) * - 67 + + 15 WHEN MAX ( ALL - 45 ) THEN NULL ELSE - 47 / + 15 END + - 40 - - + 36 * + 61 col2
----
2156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8831
SELECT DISTINCT - 93 + - 26 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8831
SELECT DISTINCT - 93 + - 26 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 99 + 21
----
120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8833
SELECT DISTINCT 10 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8833
SELECT DISTINCT 10 + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8834
SELECT - ( 19 ) DIV - - 73 - - CAST( - 76 AS SIGNED ) * - + 15 + 36
----
1176

skipif mysql # not compatible
query I rowsort label-8834
SELECT - ( 19 ) / - - 73 - - CAST ( - 76 AS INTEGER ) * - + 15 + 36
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT ALL COUNT( * ) + - ( + - ( + + 1 ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL COUNT ( * ) + - ( + - ( + + 1 ) ) AS col0
----
2

query II rowsort
SELECT 81 AS col0, + 29
----
81
29

query I rowsort
SELECT DISTINCT + 44 - - 68 AS col0
----
112

query I rowsort
SELECT ALL - 89 * - - 11 AS col1
----
-979

onlyif mysql # aggregate syntax: 
query II rowsort label-8839
SELECT + 62 col2, ( COUNT( * ) )
----
62
1

skipif mysql # not compatible
query II rowsort label-8839
SELECT + 62 col2, ( COUNT ( * ) )
----
62
1

query I rowsort
SELECT DISTINCT 97 - + 66
----
31

query I rowsort
SELECT 46 * + - 17 AS col1
----
-782

query II rowsort
SELECT + 19 AS col0, + 60 * 14
----
19
840

onlyif mysql # aggregate syntax: 
query II rowsort label-8843
SELECT ( - COUNT( * ) ) - - + 86 col1, MAX( DISTINCT 79 )
----
85
79

skipif mysql # not compatible
query II rowsort label-8843
SELECT ( - COUNT ( * ) ) - - + 86 col1, MAX ( DISTINCT 79 )
----
85
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8844
SELECT 65 DIV COUNT( - - 41 )
----
65

skipif mysql # not compatible
query I rowsort label-8844
SELECT 65 / COUNT ( - - 41 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT - MAX( ALL ( - 39 ) ) * - 33 + - - 72 AS col1
----
-1215

skipif mysql # not compatible
query I rowsort label-8845
SELECT - MAX ( ALL ( - 39 ) ) * - 33 + - - 72 AS col1
----
-1215

query I rowsort
SELECT ALL - - ( + 37 ) col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8847
SELECT ALL - + CAST( - + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL - + CAST ( - + COUNT ( * ) AS INTEGER ) AS col2
----
1

query II rowsort
SELECT ALL - 91 AS col0, 57 + 8 * - + 97 AS col0
----
-91
-719

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8849
SELECT ALL CAST( - MIN( + ( 71 ) ) AS SIGNED ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-8849
SELECT ALL CAST ( - MIN ( + ( 71 ) ) AS INTEGER ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT + 45 * + + 49 * COUNT( * )
----
2205

skipif mysql # not compatible
query I rowsort label-8850
SELECT + 45 * + + 49 * COUNT ( * )
----
2205

query I rowsort
SELECT - 54 - - 15
----
-39

query I rowsort
SELECT ALL + NULLIF ( 14, 21 + - 41 )
----
14

query I rowsort
SELECT - 12 + - 95 AS col1
----
-107

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8854
SELECT DISTINCT - 47 * - CAST( NULL AS DECIMAL ) / - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8854
SELECT DISTINCT - 47 * - CAST ( NULL AS REAL ) / - 21 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8855
SELECT 50 * - COALESCE ( + 99, - 46 ) + - + 53 - - 72 + CAST( NULL AS SIGNED ) + + - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8855
SELECT 50 * - COALESCE ( + 99, - 46 ) + - + 53 - - 72 + CAST ( NULL AS INTEGER ) + + - 47 AS col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 12, + 73 ) * + 8 col1
----
96

query II rowsort
SELECT + 48 + + - 2 * + ( 35 ) col1, - 92
----
-22
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT DISTINCT - + 3 * - COUNT( * ) col1
----
3

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT - + 3 * - COUNT ( * ) col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8859
SELECT + ( + + ( + CAST( NULL AS SIGNED ) ) ) + - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT + ( + + ( + CAST ( NULL AS INTEGER ) ) ) + - 7 AS col2
----
NULL

query II rowsort
SELECT - 28, 37 - 43 AS col1
----
-28
-6

query I rowsort
SELECT ALL - 20 + + - 77 AS col0
----
-97

query I rowsort
SELECT ALL 28 + + + 92 AS col0
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8863
SELECT 41 + + 82 * + + 63 * - + COUNT( * ) AS col2, + 69 DIV + 17 + - 82 AS col0
----
-5125
-78

skipif mysql # not compatible
query II rowsort label-8863
SELECT 41 + + 82 * + + 63 * - + COUNT ( * ) AS col2, + 69 / + 17 + - 82 AS col0
----
-5125
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT CASE + - ( + + COALESCE ( + 81, + - 20 - - AVG ( ALL + + 48 ), + COUNT( * ) ) ) WHEN + COUNT( * ) + + 50 * ( 33 ) THEN 88 ELSE NULL END + + + MAX( ALL - ( - 97 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8864
SELECT CASE + - ( + + COALESCE ( + 81, + - 20 - - AVG ( ALL + + 48 ), + COUNT ( * ) ) ) WHEN + COUNT ( * ) + + 50 * ( 33 ) THEN 88 ELSE NULL END + + + MAX ( ALL - ( - 97 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT ALL + MAX( DISTINCT + 89 ) + - 9 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL + MAX ( DISTINCT + 89 ) + - 9 AS col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-8866
SELECT DISTINCT - 2 DIV + 8 * - 61
----
0

skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT - 2 / + 8 * - 61
----
0

query I rowsort
SELECT 31 * + 67 * + ( 68 )
----
141236

query I rowsort
SELECT + 34 * 44
----
1496

query I rowsort
SELECT ALL 39 * + + 27
----
1053

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT + MAX( - 74 ) * + - 72
----
5328

skipif mysql # not compatible
query I rowsort label-8870
SELECT + MAX ( - 74 ) * + - 72
----
5328

onlyif mysql # aggregate syntax: 
query II rowsort label-8871
SELECT ALL + 85 * 15 * - 37 * - 59 AS col2, + ( + - NULLIF ( COUNT( DISTINCT + 80 ), 40 * + + ( + 11 ) ) ) AS col1
----
2783325
-1

skipif mysql # not compatible
query II rowsort label-8871
SELECT ALL + 85 * 15 * - 37 * - 59 AS col2, + ( + - NULLIF ( COUNT ( DISTINCT + 80 ), 40 * + + ( + 11 ) ) ) AS col1
----
2783325
-1

query I rowsort
SELECT ALL - ( + 62 ) * + 17 AS col0
----
-1054

query II rowsort
SELECT + 74 * - 57, - 5 * - - 58 col2
----
-4218
-290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8874
SELECT + 91 + + + 42 AS col0, 56 / 72 * + CASE + 15 WHEN 31 THEN NULL WHEN - + CAST( + 37 AS SIGNED ) * - 67 * + - 26 THEN + 34 END / - COUNT( * ) + - 47 AS col0
----
133
NULL

skipif mysql # not compatible
query II rowsort label-8874
SELECT + 91 + + + 42 AS col0, 56 / 72 * + CASE + 15 WHEN 31 THEN NULL WHEN - + CAST ( + 37 AS INTEGER ) * - 67 * + - 26 THEN + 34 END / - COUNT ( * ) + - 47 AS col0
----
133
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT + SUM( DISTINCT 81 )
----
81

skipif mysql # not compatible
query I rowsort label-8875
SELECT + SUM ( DISTINCT 81 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT + 38 * - CASE - 6 WHEN - + 96 * + 67 THEN - - 62 * COUNT( + 16 ) + ( - ( - 52 ) ) + 80 END * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT + 38 * - CASE - 6 WHEN - + 96 * + 67 THEN - - 62 * COUNT ( + 16 ) + ( - ( - 52 ) ) + 80 END * + 88
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8877
SELECT COUNT( * ) DIV + + 75 + + 1
----
1

skipif mysql # not compatible
query I rowsort label-8877
SELECT COUNT ( * ) / + + 75 + + 1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT DISTINCT + COUNT( + 46 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT + COUNT ( + 46 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8879
SELECT ALL 55 * + + 75 col1, 85 - - NULLIF ( - COUNT( * ), + - 85 ) AS col0
----
4125
84

skipif mysql # not compatible
query II rowsort label-8879
SELECT ALL 55 * + + 75 col1, 85 - - NULLIF ( - COUNT ( * ), + - 85 ) AS col0
----
4125
84

query I rowsort
SELECT ALL 18 * + - 40 + - 50
----
-770

query I rowsort
SELECT DISTINCT + 42 * + 4 * + 59 * + + 15 - + - 51 AS col0
----
148731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8882
SELECT ( - CAST( - 75 AS SIGNED ) ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-8882
SELECT ( - CAST ( - 75 AS INTEGER ) ) AS col1
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8883
SELECT ALL + - 56 * - 49 + - 59 * 73 DIV 83 * - 68 AS col2
----
6212

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL + - 56 * - 49 + - 59 * 73 / 83 * - 68 AS col2
----
6212

query I rowsort
SELECT + 52 + - - 60 AS col0
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8885
SELECT ALL - 60 + + 83 + - 40 + + + CASE + NULLIF ( - - 8, - 36 - - 8 ) WHEN 1 * + 73 THEN NULL WHEN - 53 - ( 5 ) - 27 / - 82 THEN - - CAST( NULL AS SIGNED ) ELSE NULL END - + 40 AS col0, 6 + 80
----
NULL
86

skipif mysql # not compatible
query II rowsort label-8885
SELECT ALL - 60 + + 83 + - 40 + + + CASE + NULLIF ( - - 8, - 36 - - 8 ) WHEN 1 * + 73 THEN NULL WHEN - 53 - ( 5 ) - 27 / - 82 THEN - - CAST ( NULL AS INTEGER ) ELSE NULL END - + 40 AS col0, 6 + 80
----
NULL
86

query I rowsort
SELECT ALL - + COALESCE ( - 17, + 26 ) + + - 46
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-8887
SELECT DISTINCT + COALESCE ( + - 59, - 24 + + COUNT( * ) ) + - + 2 AS col1, 70 AS col1
----
-61
70

skipif mysql # not compatible
query II rowsort label-8887
SELECT DISTINCT + COALESCE ( + - 59, - 24 + + COUNT ( * ) ) + - + 2 AS col1, 70 AS col1
----
-61
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8888
SELECT DISTINCT COUNT( * ) + + CAST( - 60 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT COUNT ( * ) + + CAST ( - 60 AS INTEGER )
----
-59

query I rowsort
SELECT DISTINCT - 66 + - 99 AS col2
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-8890
SELECT + 12 DIV - 69 + - 32
----
-32

skipif mysql # not compatible
query I rowsort label-8890
SELECT + 12 / - 69 + - 32
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-8891
SELECT ALL + - 38 DIV + - 41
----
0

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL + - 38 / + - 41
----
0

query I rowsort
SELECT - 95 * + - 74
----
7030

query I rowsort
SELECT ALL + 62 - + - 53 + + ( + - 39 ) * 97 col0
----
-3668

query I rowsort
SELECT - 28 - 58
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT - SUM( - 46 )
----
46

skipif mysql # not compatible
query I rowsort label-8895
SELECT - SUM ( - 46 )
----
46

query I rowsort
SELECT ALL - 98 * - + 62
----
6076

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8897
SELECT - 4 - - ( + - NULLIF ( - 10, - COUNT( * ) + AVG ( DISTINCT 87 ) / - 96 ) ) * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8897
SELECT - 4 - - ( + - NULLIF ( - 10, - COUNT ( * ) + AVG ( DISTINCT 87 ) / - 96 ) ) * + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL ( + + 13 )
----
13

query I rowsort
SELECT DISTINCT - 17 * 95 AS col2
----
-1615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8900
SELECT ALL CAST( + 87 AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-8900
SELECT ALL CAST ( + 87 AS INTEGER )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8901
SELECT DISTINCT CAST( - + 53 AS SIGNED ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-8901
SELECT DISTINCT CAST ( - + 53 AS INTEGER ) AS col0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-8902
SELECT ALL 86 DIV + - 64 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL 86 / + - 64 AS col2
----
-1

query I rowsort
SELECT - 50 - 89
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT DISTINCT + NULLIF ( - + 44, - 47 * 57 + + NULLIF ( + 16, - + COUNT( * ) * + 18 + - + COUNT( * ) ) + 69 )
----
-44

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT + NULLIF ( - + 44, - 47 * 57 + + NULLIF ( + 16, - + COUNT ( * ) * + 18 + - + COUNT ( * ) ) + 69 )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8905
SELECT - COUNT( * ) DIV - 76 * - + 82
----
0

skipif mysql # not compatible
query I rowsort label-8905
SELECT - COUNT ( * ) / - 76 * - + 82
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8906
SELECT ALL + 54 / - CAST( NULL AS DECIMAL ) * 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL + 54 / - CAST ( NULL AS REAL ) * 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8907
SELECT ALL + 30, - 96 * - COUNT( ALL - 25 ) * 83 AS col1
----
30
7968

skipif mysql # not compatible
query II rowsort label-8907
SELECT ALL + 30, - 96 * - COUNT ( ALL - 25 ) * 83 AS col1
----
30
7968

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT + NULLIF ( 29, + - 87 / + COUNT( * ) ) col0
----
29

skipif mysql # not compatible
query I rowsort label-8908
SELECT + NULLIF ( 29, + - 87 / + COUNT ( * ) ) col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8909
SELECT + COUNT( * ) AS col0, + 65 DIV + COUNT( * ) AS col0
----
1
65

skipif mysql # not compatible
query II rowsort label-8909
SELECT + COUNT ( * ) AS col0, + 65 / + COUNT ( * ) AS col0
----
1
65

query I rowsort
SELECT - CASE - + 40 WHEN + 69 THEN - 17 END + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT ALL COUNT( * ) * NULLIF ( + NULLIF ( + 14, - 43 ), + - 52 )
----
14

skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL COUNT ( * ) * NULLIF ( + NULLIF ( + 14, - 43 ), + - 52 )
----
14

query II rowsort
SELECT ALL 33 * + + 86 + + - 5 + 70 * - 43, - 92 AS col0
----
-177
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8913
SELECT + 84 * CAST( + COUNT( 61 ) AS SIGNED ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-8913
SELECT + 84 * CAST ( + COUNT ( 61 ) AS INTEGER ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-8914
SELECT ALL + - ( - 0 ) * + - 23 + + 45 - + + CASE 21 WHEN - - 92 / - - 23 + SUM( DISTINCT 40 ) - - + ( + - 35 ) THEN NULL ELSE + 31 END * + 24 + + 80, + 56 * 17 AS col2
----
-619
952

skipif mysql # not compatible
query II rowsort label-8914
SELECT ALL + - ( - 0 ) * + - 23 + + 45 - + + CASE 21 WHEN - - 92 / - - 23 + SUM ( DISTINCT 40 ) - - + ( + - 35 ) THEN NULL ELSE + 31 END * + 24 + + 80, + 56 * 17 AS col2
----
-619
952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8915
SELECT DISTINCT - COUNT( * ) * + - 44 * + 55 + - - CAST( + 62 AS SIGNED )
----
2482

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT - COUNT ( * ) * + - 44 * + 55 + - - CAST ( + 62 AS INTEGER )
----
2482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8916
SELECT + + SUM( - 57 ) / - + 21 + - CASE - CASE - MAX( 53 ) WHEN - + 32 THEN + 25 * - 37 ELSE - COALESCE ( - 59, - 88 + COUNT( * ) + 54 ) END WHEN - 93 THEN - + CAST( NULL AS SIGNED ) * - 84 END * - - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-8916
SELECT + + SUM ( - 57 ) / - + 21 + - CASE - CASE - MAX ( 53 ) WHEN - + 32 THEN + 25 * - 37 ELSE - COALESCE ( - 59, - 88 + COUNT ( * ) + 54 ) END WHEN - 93 THEN - + CAST ( NULL AS INTEGER ) * - 84 END * - - 38
----
NULL

query I rowsort
SELECT + + 44 * - + ( + 10 ) - 97 AS col2
----
-537

query I rowsort
SELECT ALL - 80 * 81 * + 92
----
-596160

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT - - COUNT( DISTINCT - 58 ) * + 63 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-8919
SELECT - - COUNT ( DISTINCT - 58 ) * + 63 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT + - CASE + - ( + 30 ) WHEN + COALESCE ( + COUNT( * ), + - 8 * + 35 + + + 68 * + 93 + 44 ) THEN 11 - + 89 + 24 + - 2 * + 47 - - 25 * + + 79 + + NULLIF ( + 28, + 46 ) END * + - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8920
SELECT + - CASE + - ( + 30 ) WHEN + COALESCE ( + COUNT ( * ), + - 8 * + 35 + + + 68 * + 93 + 44 ) THEN 11 - + 89 + 24 + - 2 * + 47 - - 25 * + + 79 + + NULLIF ( + 28, + 46 ) END * + - 49 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8921
SELECT ALL - CAST( NULL AS SIGNED ) * + - 33 + - COUNT( * ) + + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 33 + - COUNT ( * ) + + - 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8922
SELECT ALL + MIN( DISTINCT COALESCE ( - - 57, - + CAST( NULL AS SIGNED ) ) )
----
57

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL + MIN ( DISTINCT COALESCE ( - - 57, - + CAST ( NULL AS INTEGER ) ) )
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-8923
SELECT DISTINCT COUNT( * ), 56 * - 41 * + + 99 AS col0
----
1
-227304

skipif mysql # not compatible
query II rowsort label-8923
SELECT DISTINCT COUNT ( * ), 56 * - 41 * + + 99 AS col0
----
1
-227304

query I rowsort
SELECT ALL 74 * - + 88 AS col0
----
-6512

query I rowsort
SELECT COALESCE ( + 41, - 89 ) col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL + - 29 * - + 21 + + COUNT( * ) + - - 52 AS col1
----
662

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL + - 29 * - + 21 + + COUNT ( * ) + - - 52 AS col1
----
662

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8927
SELECT + + COALESCE ( NULLIF ( + 91, + 5 ), + 9 * 7 DIV + NULLIF ( COUNT( * ), - 25 - - ( ( - 82 ) ) * + 70 ) + + + 94 * + - CAST( NULL AS SIGNED ) ) - + 41
----
50

skipif mysql # not compatible
query I rowsort label-8927
SELECT + + COALESCE ( NULLIF ( + 91, + 5 ), + 9 * 7 / + NULLIF ( COUNT ( * ), - 25 - - ( ( - 82 ) ) * + 70 ) + + + 94 * + - CAST ( NULL AS INTEGER ) ) - + 41
----
50

query I rowsort
SELECT ALL - 37 * - - ( 77 ) * + 99
----
-282051

query I rowsort
SELECT - - ( + - 63 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT + + ( + 5 ) + + - 1 + + - COALESCE ( 16, - + 88, + + MAX( 49 ) + + 5 * + 21 )
----
-12

skipif mysql # not compatible
query I rowsort label-8930
SELECT + + ( + 5 ) + + - 1 + + - COALESCE ( 16, - + 88, + + MAX ( 49 ) + + 5 * + 21 )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8931
SELECT + - 82 * 42 + + + CASE NULLIF ( + 63, - - CASE - + CAST( NULL AS SIGNED ) WHEN + NULLIF ( - - 55, 73 + 4 ) / - + 94 THEN + 96 * - - 71 + - COUNT( * ) WHEN - + 19 + - COUNT( * ) + - 58 / - + 59 THEN NULL END ) WHEN + COUNT( * ) THEN + + 31 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8931
SELECT + - 82 * 42 + + + CASE NULLIF ( + 63, - - CASE - + CAST ( NULL AS INTEGER ) WHEN + NULLIF ( - - 55, 73 + 4 ) / - + 94 THEN + 96 * - - 71 + - COUNT ( * ) WHEN - + 19 + - COUNT ( * ) + - 58 / - + 59 THEN NULL END ) WHEN + COUNT ( * ) THEN + + 31 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8932
SELECT - NULLIF ( + 20, + CAST( NULL AS DECIMAL ) ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-8932
SELECT - NULLIF ( + 20, + CAST ( NULL AS REAL ) ) AS col0
----
-20

query I rowsort
SELECT - 32 + - + 45
----
-77

query I rowsort
SELECT ( - 54 ) + - + 98
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8935
SELECT CAST( NULL AS SIGNED ) * NULLIF ( - - 0, - 44 ) col0, - 65 AS col1
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-8935
SELECT CAST ( NULL AS INTEGER ) * NULLIF ( - - 0, - 44 ) col0, - 65 AS col1
----
NULL
-65

query II rowsort
SELECT - 38 col1, 62 AS col0
----
-38
62

query I rowsort
SELECT ALL + 30 * 46 AS col2
----
1380

onlyif mysql # DIV for integer division: 
query I rowsort label-8938
SELECT ALL 80 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL 80 / + 81
----
0

query I rowsort
SELECT 75 + + + 25 AS col0
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8940
SELECT DISTINCT - 40 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT DISTINCT - 40 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8941
SELECT ALL + 68 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8941
SELECT ALL + 68 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8942
SELECT DISTINCT - 33 AS col0, + 89 * + 0 + + ( + 92 ) + + - 93 + + COUNT( * ) * - 51 DIV + - 36 - + - 63 - - 68
----
-33
131

skipif mysql # not compatible
query II rowsort label-8942
SELECT DISTINCT - 33 AS col0, + 89 * + 0 + + ( + 92 ) + + - 93 + + COUNT ( * ) * - 51 / + - 36 - + - 63 - - 68
----
-33
131

query I rowsort
SELECT 72 + 62
----
134

query II rowsort
SELECT + 13 col0, 13 * 49 * + + 4 * + 20 AS col2
----
13
50960

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT DISTINCT + COUNT( * ) + - 91 - - 15 col0
----
-75

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT + COUNT ( * ) + - 91 - - 15 col0
----
-75

query I rowsort
SELECT ALL + 68 + 94 + - 74 AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8947
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) + - - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) + - - 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT COUNT( * ) + - 29 + + 51 - 47 * + 12 * + 53 - 76 + - 51 AS col0
----
-29996

skipif mysql # not compatible
query I rowsort label-8948
SELECT COUNT ( * ) + - 29 + + 51 - 47 * + 12 * + 53 - 76 + - 51 AS col0
----
-29996

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT + CASE 72 WHEN - 79 THEN NULL WHEN - ( + 10 ) * - + NULLIF ( - COUNT( * ), + SUM( DISTINCT + + 17 ) ) THEN - 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8949
SELECT + CASE 72 WHEN - 79 THEN NULL WHEN - ( + 10 ) * - + NULLIF ( - COUNT ( * ), + SUM ( DISTINCT + + 17 ) ) THEN - 27 END
----
NULL

query I rowsort
SELECT DISTINCT - + NULLIF ( + 6, - 96 * + 9 + + - 68 ) + - 24 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT ALL + 93 + - MIN( ALL 92 ) + 36 * - 3 col2
----
-107

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL + 93 + - MIN ( ALL 92 ) + 36 * - 3 col2
----
-107

query I rowsort
SELECT 87 + + 67
----
154

query I rowsort
SELECT - 92 * + 31 col1
----
-2852

onlyif mysql # aggregate syntax: 
query II rowsort label-8954
SELECT 15 AS col1, COALESCE ( 38, - + ( + ( - - COUNT( * ) ) ), - - 58 * + + 70 )
----
15
38

skipif mysql # not compatible
query II rowsort label-8954
SELECT 15 AS col1, COALESCE ( 38, - + ( + ( - - COUNT ( * ) ) ), - - 58 * + + 70 )
----
15
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8955
SELECT DISTINCT - + 66 AS col0, COUNT( * ) + - ( + COUNT( DISTINCT - 29 ) ) - - 13 DIV + COUNT( * )
----
-66
13

skipif mysql # not compatible
query II rowsort label-8955
SELECT DISTINCT - + 66 AS col0, COUNT ( * ) + - ( + COUNT ( DISTINCT - 29 ) ) - - 13 / + COUNT ( * )
----
-66
13

onlyif mysql # aggregate syntax: 
query II rowsort label-8956
SELECT ALL - 35, NULLIF ( - 32, - COUNT( * ) * SUM( 12 ) + - + 20 * - 32 ) AS col0
----
-35
-32

skipif mysql # not compatible
query II rowsort label-8956
SELECT ALL - 35, NULLIF ( - 32, - COUNT ( * ) * SUM ( 12 ) + - + 20 * - 32 ) AS col0
----
-35
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT ALL - - CASE + COALESCE ( + ( - 20 ), 43 + + 0, 83 * - 93 ) WHEN - 37 THEN + 32 * + + MIN( 46 ) WHEN + 64 THEN - - 24 END + 60 + + 25 + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL - - CASE + COALESCE ( + ( - 20 ), 43 + + 0, 83 * - 93 ) WHEN - 37 THEN + 32 * + + MIN ( 46 ) WHEN + 64 THEN - - 24 END + 60 + + 25 + + 78
----
NULL

query II rowsort
SELECT + - 25, 86 AS col2
----
-25
86

query I rowsort
SELECT 71 * - + 42 + + CASE 90 WHEN 79 THEN - 74 + 77 ELSE NULL END * + 94 + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT + SUM( ALL - 69 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-8960
SELECT + SUM ( ALL - 69 ) AS col2
----
-69

query I rowsort
SELECT DISTINCT - 83 - - + 17 AS col0
----
-66

query I rowsort
SELECT ALL COALESCE ( 93, 98 )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8963
SELECT DISTINCT - CASE 56 WHEN + CAST( - - 19 AS DECIMAL ) THEN NULL WHEN + COUNT( * ) + 92 + - NULLIF ( + 67, + 36 / - + 49 + + + CAST( + COUNT( ( - NULLIF ( + - 45, - 16 ) ) ) AS SIGNED ) ) THEN + + 24 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT - CASE 56 WHEN + CAST ( - - 19 AS REAL ) THEN NULL WHEN + COUNT ( * ) + 92 + - NULLIF ( + 67, + 36 / - + 49 + + + CAST ( + COUNT ( ( - NULLIF ( + - 45, - 16 ) ) ) AS INTEGER ) ) THEN + + 24 * + COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT 10 * - - 98 * - + 46 * 78 AS col0
----
-3516240

query I rowsort
SELECT ALL 39 * + 61
----
2379

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT COUNT( * ) + - - 27 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8966
SELECT COUNT ( * ) + - - 27 AS col2
----
28

query I rowsort
SELECT DISTINCT 74 * - + 69 * + 95
----
-485070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8968
SELECT 95 * CAST( NULL AS SIGNED ) * + MAX( ALL 0 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8968
SELECT 95 * CAST ( NULL AS INTEGER ) * + MAX ( ALL 0 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8969
SELECT ALL 9 + - - COUNT( ALL 82 ) + - 25 DIV 92 col0
----
10

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL 9 + - - COUNT ( ALL 82 ) + - 25 / 92 col0
----
10

query I rowsort
SELECT 65 - - 95 + COALESCE ( + 68, - ( - 63 ) + + 56 + - 37 )
----
228

query I rowsort
SELECT DISTINCT 80 + + 86
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT 84 * + + COUNT( * ) * - 0 * - 70
----
0

skipif mysql # not compatible
query I rowsort label-8972
SELECT 84 * + + COUNT ( * ) * - 0 * - 70
----
0

query I rowsort
SELECT ALL 73 + - - 5 AS col0
----
78

query I rowsort
SELECT ALL - ( + 32 ) + + 16 AS col2
----
-16

query I rowsort
SELECT ALL + 50 * + 41 + 8 + - 39
----
2019

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8976
SELECT CASE - 10 WHEN + 70 + - 64 - + 83 / - ( COALESCE ( - + 72, - + 93 * 57 ) ) * + 22 THEN - 70 END * + ( - 63 ) + + CASE + + 91 WHEN + 6 THEN NULLIF ( COALESCE ( - - COALESCE ( 53, + CAST( NULL AS SIGNED ) ), + CASE - MIN( ALL 32 ) WHEN + ( + - 47 ) THEN NULL ELSE 43 + + 4 / + 68 END, COUNT( ALL 72 ) * 27 ), 77 * - CASE + 57 * 43 WHEN - 3 THEN 65 WHEN 11 * + 39 THEN NULL END ) WHEN + 6 * + 64 THEN NULL END + + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8976
SELECT CASE - 10 WHEN + 70 + - 64 - + 83 / - ( COALESCE ( - + 72, - + 93 * 57 ) ) * + 22 THEN - 70 END * + ( - 63 ) + + CASE + + 91 WHEN + 6 THEN NULLIF ( COALESCE ( - - COALESCE ( 53, + CAST ( NULL AS INTEGER ) ), + CASE - MIN ( ALL 32 ) WHEN + ( + - 47 ) THEN NULL ELSE 43 + + 4 / + 68 END, COUNT ( ALL 72 ) * 27 ), 77 * - CASE + 57 * 43 WHEN - 3 THEN 65 WHEN 11 * + 39 THEN NULL END ) WHEN + 6 * + 64 THEN NULL END + + 57 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8977
SELECT 10 - - - 46 AS col0, 25 * + CAST( NULL AS SIGNED )
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-8977
SELECT 10 - - - 46 AS col0, 25 * + CAST ( NULL AS INTEGER )
----
-36
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8978
SELECT MAX( ALL - ( + ( + ( - 41 ) ) ) ) AS col0, 94
----
41
94

skipif mysql # not compatible
query II rowsort label-8978
SELECT MAX ( ALL - ( + ( + ( - 41 ) ) ) ) AS col0, 94
----
41
94

query II rowsort
SELECT DISTINCT + 30 * + + 44, 8 * 85 - + + 42 AS col1
----
1320
638

query I rowsort
SELECT ALL + 97 * CASE - - 57 WHEN - 41 THEN 43 END AS col2
----
NULL

query I rowsort
SELECT ALL - 50 * - 17 - - 33 AS col1
----
883

query I rowsort
SELECT DISTINCT 77 * + 79 * - 34 * 29 AS col2
----
-5997838

query I rowsort
SELECT DISTINCT - - 9 * 59 - 94 col2
----
437

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT 40 * 64 * - COUNT( * )
----
-2560

skipif mysql # not compatible
query I rowsort label-8984
SELECT 40 * 64 * - COUNT ( * )
----
-2560

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT ALL - COUNT( + 36 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL - COUNT ( + 36 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8986
SELECT - 65 + COUNT( * ) + 40 AS col2, - 63 * - 70 * + 3 AS col2
----
-24
13230

skipif mysql # not compatible
query II rowsort label-8986
SELECT - 65 + COUNT ( * ) + 40 AS col2, - 63 * - 70 * + 3 AS col2
----
-24
13230

query I rowsort
SELECT - - 40 - 12
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8988
SELECT - + 65 - - CAST( NULL AS SIGNED ) AS col1, - 32 AS col0, + MAX( DISTINCT + + 68 ) col2
----
NULL
-32
68

skipif mysql # not compatible
query III rowsort label-8988
SELECT - + 65 - - CAST ( NULL AS INTEGER ) AS col1, - 32 AS col0, + MAX ( DISTINCT + + 68 ) col2
----
NULL
-32
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8989
SELECT - + ( - + 12 ) DIV + + 78 * - 7 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8989
SELECT - + ( - + 12 ) / + + 78 * - 7 AS col0
----
0

query I rowsort
SELECT DISTINCT - - 19 * 44 AS col0
----
836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8991
SELECT - - NULLIF ( + MIN( + + 57 ), 72 ) * - + ( 57 ) * - 66 / - - COUNT( - ( - 54 ) ) * NULLIF ( + 69, + 94 ) + + - COUNT( * ) + + + CAST( NULL AS SIGNED ) + - - 37 * + + 68 / + COUNT( * ) + + + CASE + 80 WHEN 66 THEN NULL ELSE 65 END / - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-8991
SELECT - - NULLIF ( + MIN ( + + 57 ), 72 ) * - + ( 57 ) * - 66 / - - COUNT ( - ( - 54 ) ) * NULLIF ( + 69, + 94 ) + + - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + - - 37 * + + 68 / + COUNT ( * ) + + + CASE + 80 WHEN 66 THEN NULL ELSE 65 END / - 54
----
NULL

query I rowsort
SELECT ALL + 4 * - 40 * - 12 AS col1
----
1920

query I rowsort
SELECT DISTINCT - 58 * 34
----
-1972

query I rowsort
SELECT ALL - 40 * + 66 * 68 col0
----
-179520

query I rowsort
SELECT - 45 + - 73 + + - 20 * - 56 col2
----
1002

query I rowsort
SELECT + 51 - + 97 + - - 35 + 85 AS col1
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-8997
SELECT - NULLIF ( + 47, - 4 ) * 70 * + + COALESCE ( 57, + COUNT( * ) + 58 ) AS col0, - 91
----
-187530
-91

skipif mysql # not compatible
query II rowsort label-8997
SELECT - NULLIF ( + 47, - 4 ) * 70 * + + COALESCE ( 57, + COUNT ( * ) + 58 ) AS col0, - 91
----
-187530
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT + 28 * - SUM( DISTINCT 53 ) + - NULLIF ( + MAX( ALL 31 ), - 74 * + + ( - 95 ) ) + - 24 + - - 49 AS col2
----
-1490

skipif mysql # not compatible
query I rowsort label-8998
SELECT + 28 * - SUM ( DISTINCT 53 ) + - NULLIF ( + MAX ( ALL 31 ), - 74 * + + ( - 95 ) ) + - 24 + - - 49 AS col2
----
-1490

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT - COUNT( - - 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-8999
SELECT - COUNT ( - - 63 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT - COUNT( * ) + COUNT( * ) + COUNT( * ) + - 66 * + 59 AS col2
----
-3893

skipif mysql # not compatible
query I rowsort label-9000
SELECT - COUNT ( * ) + COUNT ( * ) + COUNT ( * ) + - 66 * + 59 AS col2
----
-3893

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT ALL MIN( DISTINCT COALESCE ( 43, - ( 70 ) ) ) + - - 1
----
44

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL MIN ( DISTINCT COALESCE ( 43, - ( 70 ) ) ) + - - 1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT - 92 + + - ( + COUNT( * ) )
----
-93

skipif mysql # not compatible
query I rowsort label-9002
SELECT - 92 + + - ( + COUNT ( * ) )
----
-93

query I rowsort
SELECT DISTINCT 62 + - 61 * - + 91 - + 25
----
5588

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT + CASE ( 35 ) WHEN - - 46 + + - 95 THEN + ( + - 59 ) ELSE SUM( - 23 ) END + - - 14 - - 36 * CASE + 41 WHEN + + 93 / 42 - - 42 THEN NULL ELSE - 78 + + 64 END - + 25 + 47
----
-491

skipif mysql # not compatible
query I rowsort label-9004
SELECT + CASE ( 35 ) WHEN - - 46 + + - 95 THEN + ( + - 59 ) ELSE SUM ( - 23 ) END + - - 14 - - 36 * CASE + 41 WHEN + + 93 / 42 - - 42 THEN NULL ELSE - 78 + + 64 END - + 25 + 47
----
-491

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT ALL ( - + COUNT( - + 71 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL ( - + COUNT ( - + 71 ) ) AS col0
----
-1

query I rowsort
SELECT ALL 56 + + 96
----
152

query I rowsort
SELECT DISTINCT 85 + + 99
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT - COUNT( + + 82 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9008
SELECT - COUNT ( + + 82 ) AS col2
----
-1

query I rowsort
SELECT - CASE + - 11 WHEN + 52 THEN - ( - 43 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 14 + 7
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9011
SELECT - + CAST( NULL AS SIGNED ) * COUNT( * ) + - 9 + ( - + ( + 56 ) ) / - - 82 + + MIN( DISTINCT 75 ) * + 33 / 19
----
NULL

skipif mysql # not compatible
query I rowsort label-9011
SELECT - + CAST ( NULL AS INTEGER ) * COUNT ( * ) + - 9 + ( - + ( + 56 ) ) / - - 82 + + MIN ( DISTINCT 75 ) * + 33 / 19
----
NULL

query I rowsort
SELECT ALL + 32 * 93 AS col0
----
2976

onlyif mysql # DIV for integer division: 
query I rowsort label-9013
SELECT - 88 DIV + 74 + - 45 + - - 53
----
7

skipif mysql # not compatible
query I rowsort label-9013
SELECT - 88 / + 74 + - 45 + - - 53
----
7

query I rowsort
SELECT NULLIF ( 57, - - 75 )
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9015
SELECT + 10 DIV - ( + NULLIF ( - 81, + 81 * - - 65 - + 69 ) ) DIV 34 * 38 col1
----
0

skipif mysql # not compatible
query I rowsort label-9015
SELECT + 10 / - ( + NULLIF ( - 81, + 81 * - - 65 - + 69 ) ) / 34 * 38 col1
----
0

query I rowsort
SELECT + - 55 + + + 26
----
-29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9017
SELECT ALL - CAST( NULL AS DECIMAL ) / + + 59 * ( CAST( - 21 AS DECIMAL ) ) * + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL - CAST ( NULL AS REAL ) / + + 59 * ( CAST ( - 21 AS REAL ) ) * + 92
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9018
SELECT + COUNT( * ), 10 AS col0
----
1
10

skipif mysql # not compatible
query II rowsort label-9018
SELECT + COUNT ( * ), 10 AS col0
----
1
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT + 0 * COUNT( * ) - + 42 + + + COALESCE ( - + 9, - 1 + - ( + COUNT( * ) ) * + + 38 + + 41, + 92 + + 79 )
----
-51

skipif mysql # not compatible
query I rowsort label-9019
SELECT + 0 * COUNT ( * ) - + 42 + + + COALESCE ( - + 9, - 1 + - ( + COUNT ( * ) ) * + + 38 + + 41, + 92 + + 79 )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9020
SELECT + CASE + NULLIF ( + MIN( ALL - - 62 ), - 38 ) WHEN + 6 THEN NULL ELSE - 84 * + CAST( NULL AS SIGNED ) * + ( - 21 ) END * + ( - - 91 ) * NULLIF ( - CASE - 1 WHEN + 5 + - COUNT( * ) THEN 94 / - 71 + + 96 END, + - 29 + + - 47 * - 48 ) + + + 20 + + 99 * - 87 / ( + 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9020
SELECT + CASE + NULLIF ( + MIN ( ALL - - 62 ), - 38 ) WHEN + 6 THEN NULL ELSE - 84 * + CAST ( NULL AS INTEGER ) * + ( - 21 ) END * + ( - - 91 ) * NULLIF ( - CASE - 1 WHEN + 5 + - COUNT ( * ) THEN 94 / - 71 + + 96 END, + - 29 + + - 47 * - 48 ) + + + 20 + + 99 * - 87 / ( + 75 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9021
SELECT + + ( + ( 31 ) ) DIV - 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9021
SELECT + + ( + ( 31 ) ) / - 71 AS col1
----
0

query I rowsort
SELECT + NULLIF ( 34, 83 + 91 ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT + - 94 + - 60 / + - 10 + COUNT( * ) + 28 + + 94 - + CASE + 38 WHEN + COUNT( * ) THEN NULL WHEN 91 * - 75 / - 52 + + 38 THEN + - 76 + - MIN( + 66 ) ELSE NULL END + - COUNT( * ) * NULLIF ( ( 9 ), + 49 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9023
SELECT + - 94 + - 60 / + - 10 + COUNT ( * ) + 28 + + 94 - + CASE + 38 WHEN + COUNT ( * ) THEN NULL WHEN 91 * - 75 / - 52 + + 38 THEN + - 76 + - MIN ( + 66 ) ELSE NULL END + - COUNT ( * ) * NULLIF ( ( 9 ), + 49 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9024
SELECT + + CAST( NULL AS SIGNED ) * 97 * - 74 - - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT + + CAST ( NULL AS INTEGER ) * 97 * - 74 - - 86
----
NULL

query II rowsort
SELECT + + ( - 24 ) + - 74 AS col1, 64 AS col2
----
-98
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9026
SELECT DISTINCT + + COUNT( * ) AS col0, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-9026
SELECT DISTINCT + + COUNT ( * ) AS col0, COUNT ( * ) AS col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT ALL + - CASE - 91 WHEN + 1 * + COUNT( * ) THEN NULL WHEN - 16 THEN + 79 ELSE - 90 * + ( + + 46 ) END AS col1
----
4140

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL + - CASE - 91 WHEN + 1 * + COUNT ( * ) THEN NULL WHEN - 16 THEN + 79 ELSE - 90 * + ( + + 46 ) END AS col1
----
4140

query I rowsort
SELECT ALL + ( + + 69 ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT - COALESCE ( + + 99, - - 77 * 73 ) * 21 + + 3 + - + COUNT( * ) - 38 * 18
----
-2761

skipif mysql # not compatible
query I rowsort label-9029
SELECT - COALESCE ( + + 99, - - 77 * 73 ) * 21 + + 3 + - + COUNT ( * ) - 38 * 18
----
-2761

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT ALL + + 61 * COUNT( * ) + + - 40 * - + 37 + + 51
----
1592

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL + + 61 * COUNT ( * ) + + - 40 * - + 37 + + 51
----
1592

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT COALESCE ( + 69, - + MAX( ALL - 52 ) + - 98 )
----
69

skipif mysql # not compatible
query I rowsort label-9031
SELECT COALESCE ( + 69, - + MAX ( ALL - 52 ) + - 98 )
----
69

query I rowsort
SELECT DISTINCT - 91 + 32 - 62 * + 30 + + ( + 10 ) * - ( + ( - 72 ) ) AS col0
----
-1199

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT ALL - NULLIF ( + 86, - 75 ) + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL - NULLIF ( + 86, - 75 ) + COUNT ( * )
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9034
SELECT DISTINCT + 82 * - 85 DIV + COUNT( * )
----
-6970

skipif mysql # not compatible
query I rowsort label-9034
SELECT DISTINCT + 82 * - 85 / + COUNT ( * )
----
-6970

query II rowsort
SELECT - 62 * + 99 * + ( - 82 ), - 89 * + 15 AS col2
----
503316
-1335

query II rowsort
SELECT - 32 + 82 AS col0, 6
----
50
6

query I rowsort
SELECT - 38 * - + 12 AS col0
----
456

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT ALL - 37 * - - MIN( + - 4 ) * 55
----
8140

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL - 37 * - - MIN ( + - 4 ) * 55
----
8140

query I rowsort
SELECT - ( + 45 ) * 98 + ( - 19 ) * 80 AS col1
----
-5930

onlyif mysql # aggregate syntax: 
query II rowsort label-9040
SELECT ALL + 61 - - 99 * + COUNT( DISTINCT 66 ) AS col1, + COUNT( * ) + + COUNT( * )
----
160
2

skipif mysql # not compatible
query II rowsort label-9040
SELECT ALL + 61 - - 99 * + COUNT ( DISTINCT 66 ) AS col1, + COUNT ( * ) + + COUNT ( * )
----
160
2

query I rowsort
SELECT ALL ( + - 54 ) - + 5 AS col2
----
-59

query II rowsort
SELECT + 8 - - 57 AS col1, + 68
----
65
68

query I rowsort
SELECT 10 * 78 AS col0
----
780

query I rowsort
SELECT 54 * + 91 AS col1
----
4914

query I rowsort
SELECT DISTINCT 95 * - - 90 * - 45 AS col2
----
-384750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9046
SELECT 3 + - ( - ( + 15 ) ) * CAST( - COUNT( * ) AS SIGNED ) + 25 - - + 9 - - - 88 * + ( - 17 ) * + - 78 AS col2
----
-116666

skipif mysql # not compatible
query I rowsort label-9046
SELECT 3 + - ( - ( + 15 ) ) * CAST ( - COUNT ( * ) AS INTEGER ) + 25 - - + 9 - - - 88 * + ( - 17 ) * + - 78 AS col2
----
-116666

query II rowsort
SELECT DISTINCT + 26 * + 66 AS col0, - 81 + - 40 - - - 54 AS col1
----
1716
-175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9048
SELECT ALL 40 / CAST( - - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL 40 / CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9049
SELECT - 10 DIV + + 11
----
0

skipif mysql # not compatible
query I rowsort label-9049
SELECT - 10 / + + 11
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9050
SELECT DISTINCT CASE + CASE - 43 WHEN - + 65 THEN NULL WHEN - 5 * - - COUNT( * ) + 54 THEN NULL ELSE COUNT( * ) / + + CAST( NULL AS SIGNED ) - - 91 END WHEN 37 / 95 THEN + - 24 WHEN - 78 THEN NULL ELSE NULL END + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT CASE + CASE - 43 WHEN - + 65 THEN NULL WHEN - 5 * - - COUNT ( * ) + 54 THEN NULL ELSE COUNT ( * ) / + + CAST ( NULL AS INTEGER ) - - 91 END WHEN 37 / 95 THEN + - 24 WHEN - 78 THEN NULL ELSE NULL END + 47
----
NULL

query I rowsort
SELECT ALL - 2 + - 19 * - 90
----
1708

query I rowsort
SELECT DISTINCT 51 * - - 46 AS col0
----
2346

query I rowsort
SELECT ALL 10 + + 42
----
52

query I rowsort
SELECT ALL 22 + - 43
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-9055
SELECT ALL - COALESCE ( - + 32, COALESCE ( 41, + - ( + 73 ) * + 87, 24 DIV - + 95 + - 56 + + 50, - - 24 + - - 38 * - 61 ) ) + - - 1
----
33

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL - COALESCE ( - + 32, COALESCE ( 41, + - ( + 73 ) * + 87, 24 / - + 95 + - 56 + + 50, - - 24 + - - 38 * - 61 ) ) + - - 1
----
33

query II rowsort
SELECT 98, - 32 AS col2
----
98
-32

query I rowsort
SELECT ALL 44 - - 55
----
99

query I rowsort
SELECT 20 + - + 54 + - 41 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-9059
SELECT 29 + + + 14 - COUNT( * ), + 99 + + 4 AS col0
----
42
103

skipif mysql # not compatible
query II rowsort label-9059
SELECT 29 + + + 14 - COUNT ( * ), + 99 + + 4 AS col0
----
42
103

onlyif mysql # DIV for integer division: 
query I rowsort label-9060
SELECT ALL + ( - + 96 ) DIV 2 + 72 col0
----
24

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL + ( - + 96 ) / 2 + 72 col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9061
SELECT 0 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9061
SELECT 0 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 10 + 23 + - 78 * 68 * 75 AS col0
----
-397767

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9063
SELECT DISTINCT COUNT( * ) DIV + + 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9063
SELECT DISTINCT COUNT ( * ) / + + 44 AS col2
----
0

query I rowsort
SELECT ( - + 54 ) + - 92 * + 47
----
-4378

query I rowsort
SELECT + 18 + - + 33 AS col1
----
-15

query II rowsort
SELECT 5, - 90 * - - ( + 8 ) AS col0
----
5
-720

query I rowsort
SELECT ALL + 49 * + 64 AS col0
----
3136

query I rowsort
SELECT - 1 * + 94
----
-94

query I rowsort
SELECT ( + 31 ) + - 31
----
0

query I rowsort
SELECT 69 * - 9 AS col0
----
-621

query I rowsort
SELECT 56 + ( ( + - 0 ) )
----
56

query I rowsort
SELECT DISTINCT ( + 84 ) * - COALESCE ( - 31, - 1 * + 67, + 24 )
----
2604

query I rowsort
SELECT ALL - 17 + - + 46
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-9074
SELECT 11 DIV 3 - + - 42 + 37 + + 63 * + ( - 48 ) AS col0
----
-2942

skipif mysql # not compatible
query I rowsort label-9074
SELECT 11 / 3 - + - 42 + 37 + + 63 * + ( - 48 ) AS col0
----
-2942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9075
SELECT - NULLIF ( - 20, - CAST( NULL AS SIGNED ) ) + - CAST( + + ( - 54 ) AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-9075
SELECT - NULLIF ( - 20, - CAST ( NULL AS INTEGER ) ) + - CAST ( + + ( - 54 ) AS INTEGER )
----
74

query I rowsort
SELECT ALL 10 + - + 90
----
-80

query I rowsort
SELECT ALL 4 + + 99
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9078
SELECT ALL - 49 AS col2, 1 - + - COUNT( * ) DIV 52 * + 23 * + 46 * + 30 AS col2
----
-49
1

skipif mysql # not compatible
query II rowsort label-9078
SELECT ALL - 49 AS col2, 1 - + - COUNT ( * ) / 52 * + 23 * + 46 * + 30 AS col2
----
-49
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9079
SELECT ALL 56 - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL 56 - + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 73 * + - 5 + 97 * - + ( 1 ) AS col1
----
-462

query II rowsort
SELECT + 51 AS col2, 87
----
51
87

onlyif mysql # aggregate syntax: 
query II rowsort label-9082
SELECT - MAX( + 66 ) AS col2, - COUNT( * )
----
-66
-1

skipif mysql # not compatible
query II rowsort label-9082
SELECT - MAX ( + 66 ) AS col2, - COUNT ( * )
----
-66
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT MAX( ALL 36 ) * + 14
----
504

skipif mysql # not compatible
query I rowsort label-9083
SELECT MAX ( ALL 36 ) * + 14
----
504

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9084
SELECT ALL 97 * CAST( NULL AS SIGNED ) AS col2, 90
----
NULL
90

skipif mysql # not compatible
query II rowsort label-9084
SELECT ALL 97 * CAST ( NULL AS INTEGER ) AS col2, 90
----
NULL
90

query I rowsort
SELECT - NULLIF ( ( + 35 ), + 57 + + 22 )
----
-35

query II rowsort
SELECT - 42, ( + 23 ) AS col2
----
-42
23

query I rowsort
SELECT 2 * 24 + + + 29 + + - 88
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9088
SELECT + + 89 + NULLIF ( - - 66, + CAST( NULL AS SIGNED ) + - 7 ) AS col0
----
155

skipif mysql # not compatible
query I rowsort label-9088
SELECT + + 89 + NULLIF ( - - 66, + CAST ( NULL AS INTEGER ) + - 7 ) AS col0
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-9089
SELECT - 26 col2, 60 + COUNT( * ) + - 51 AS col0
----
-26
10

skipif mysql # not compatible
query II rowsort label-9089
SELECT - 26 col2, 60 + COUNT ( * ) + - 51 AS col0
----
-26
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT ALL - ( + - COUNT( * ) ) + 81 + ( 59 ) * + + COUNT( * )
----
141

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL - ( + - COUNT ( * ) ) + 81 + ( 59 ) * + + COUNT ( * )
----
141

query II rowsort
SELECT DISTINCT + 99, 75 AS col2
----
99
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT - ( + COUNT( * ) ) + - ( - + NULLIF ( - SUM( ALL 63 ), + 15 ) ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-9092
SELECT - ( + COUNT ( * ) ) + - ( - + NULLIF ( - SUM ( ALL 63 ), + 15 ) ) AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9093
SELECT ALL + + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL + + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9094
SELECT - + 32 DIV 1 * + + 89 * - - 7
----
-19936

skipif mysql # not compatible
query I rowsort label-9094
SELECT - + 32 / 1 * + + 89 * - - 7
----
-19936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9095
SELECT ALL - 26 + - + CASE - CASE WHEN NULL <= + MIN( DISTINCT ( + ( - - 86 ) ) ) THEN + 15 / 82 * + - 86 WHEN 5 NOT BETWEEN + + 76 * - - MAX( DISTINCT ( + 78 ) ) * - 3 + NULLIF ( + 88, - - 24 ) + - COUNT( * ) AND - 64 THEN NULL END WHEN - 34 THEN 22 + - ( + - 42 ) + + 64 WHEN - COUNT( * ) THEN NULL ELSE NULL END + - 11 + 83 / CAST( NULL AS SIGNED ) * + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL - 26 + - + CASE - CASE WHEN NULL <= + MIN ( DISTINCT ( + ( - - 86 ) ) ) THEN + 15 / 82 * + - 86 WHEN 5 NOT BETWEEN + + 76 * - - MAX ( DISTINCT ( + 78 ) ) * - 3 + NULLIF ( + 88, - - 24 ) + - COUNT ( * ) AND - 64 THEN NULL END WHEN - 34 THEN 22 + - ( + - 42 ) + + 64 WHEN - COUNT ( * ) THEN NULL ELSE NULL END + - 11 + 83 / CAST ( NULL AS INTEGER ) * + 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9096
SELECT ALL - MAX( ( - CAST( NULL AS SIGNED ) ) ) + + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL - MAX ( ( - CAST ( NULL AS INTEGER ) ) ) + + 13 AS col1
----
NULL

query I rowsort
SELECT ALL + + 97 + 84 AS col1
----
181

query I rowsort
SELECT + + 88 + - - 35
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9099
SELECT + NULLIF ( - + COUNT( * ), + + ( COUNT( DISTINCT + 47 ) ) * + + 51 * CAST( + 97 AS SIGNED ) / 61 + + + CAST( NULL AS SIGNED ) + - + SUM( + 44 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9099
SELECT + NULLIF ( - + COUNT ( * ), + + ( COUNT ( DISTINCT + 47 ) ) * + + 51 * CAST ( + 97 AS INTEGER ) / 61 + + + CAST ( NULL AS INTEGER ) + - + SUM ( + 44 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9100
SELECT - 1 DIV - 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9100
SELECT - 1 / - 29 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT - 6 - - COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9101
SELECT - 6 - - COUNT ( * ) AS col0
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-9102
SELECT + 72, - 47 DIV - - 82 AS col2
----
72
0

skipif mysql # not compatible
query II rowsort label-9102
SELECT + 72, - 47 / - - 82 AS col2
----
72
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT - COUNT( 55 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9103
SELECT - COUNT ( 55 ) AS col0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9104
SELECT ALL CAST( NULL AS DECIMAL ) * - + 34 * + 63 - + 15 + - 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL CAST ( NULL AS REAL ) * - + 34 * + 63 - + 15 + - 62 AS col1
----
NULL

query I rowsort
SELECT - 59 * - 75 AS col1
----
4425

onlyif mysql # DIV for integer division: 
query I rowsort label-9106
SELECT - + 5 DIV 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9106
SELECT - + 5 / 30 AS col1
----
0

query I rowsort
SELECT - 72 + - + ( 24 )
----
-96

query I rowsort
SELECT ALL + + 38 * - 69 AS col2
----
-2622

query I rowsort
SELECT COALESCE ( + 89, + 13 * - + 47 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT NULLIF ( - 63, + - 58 + COUNT( * ) + - 79 * - NULLIF ( + COUNT( * ), + 14 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-9110
SELECT NULLIF ( - 63, + - 58 + COUNT ( * ) + - 79 * - NULLIF ( + COUNT ( * ), + 14 ) )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9111
SELECT DISTINCT 61 * + 28 * ( + CAST( 3 AS SIGNED ) ) - - COUNT( DISTINCT - - 85 ) AS col0
----
5125

skipif mysql # not compatible
query I rowsort label-9111
SELECT DISTINCT 61 * + 28 * ( + CAST ( 3 AS INTEGER ) ) - - COUNT ( DISTINCT - - 85 ) AS col0
----
5125

query I rowsort
SELECT - 63 * - 45 AS col1
----
2835

query I rowsort
SELECT ALL + ( 8 ) AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9114
SELECT - COUNT( * ) + + + SUM( ALL - COALESCE ( ( NULLIF ( + - 9, + 31 ) ), + + CAST( - - 27 AS SIGNED ) ) ) + + 71 + - ( - 39 )
----
118

skipif mysql # not compatible
query I rowsort label-9114
SELECT - COUNT ( * ) + + + SUM ( ALL - COALESCE ( ( NULLIF ( + - 9, + 31 ) ), + + CAST ( - - 27 AS INTEGER ) ) ) + + 71 + - ( - 39 )
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9115
SELECT - CAST( NULL AS SIGNED ) + - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9115
SELECT - CAST ( NULL AS INTEGER ) + - 45 AS col0
----
NULL

query I rowsort
SELECT ALL + 78 * 20 AS col2
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT MIN( - + 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-9117
SELECT MIN ( - + 80 ) AS col0
----
-80

query I rowsort
SELECT + 97 * 9 AS col0
----
873

onlyif mysql # DIV for integer division: 
query I rowsort label-9119
SELECT 15 * 25 DIV 40 + + - 3 + 78 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-9119
SELECT 15 * 25 / 40 + + - 3 + 78 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT + 49 + + - 18 + - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-9120
SELECT + 49 + + - 18 + - COUNT ( * )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT + COUNT( * ) + - 78
----
-77

skipif mysql # not compatible
query I rowsort label-9121
SELECT + COUNT ( * ) + - 78
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT + + MIN( + - ( 7 ) ) * - 28 * 18 AS col1
----
3528

skipif mysql # not compatible
query I rowsort label-9122
SELECT + + MIN ( + - ( 7 ) ) * - 28 * 18 AS col1
----
3528

query I rowsort
SELECT DISTINCT + 91 + + 49 + 14 * + - 28 AS col0
----
-252

query I rowsort
SELECT ALL 44 + + 30 AS col2
----
74

query I rowsort
SELECT + - 27 + - 14 AS col2
----
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9126
SELECT + + 52 + + - CAST( NULL AS DECIMAL ) + - 3 * + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9126
SELECT + + 52 + + - CAST ( NULL AS REAL ) + - 3 * + 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT ALL + ( + 76 ) * - - 50 * 12 * + COUNT( * )
----
45600

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL + ( + 76 ) * - - 50 * 12 * + COUNT ( * )
----
45600

query I rowsort
SELECT + - 78 + + - 71 AS col0
----
-149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9129
SELECT DISTINCT CASE - 55 WHEN - ( - - CAST( NULL AS SIGNED ) ) THEN NULL WHEN - 8 * + ( - - 90 ) THEN - 97 + + NULLIF ( 52, 28 + - 78 + - + 61 ) WHEN 24 THEN - - COALESCE ( - 87, + CAST( NULLIF ( + 38, + - ( 42 ) ) AS SIGNED ) / + 19 * + 62 + AVG ( DISTINCT - 4 ), + 57 + + + 61 * ( 59 ) + - - COUNT( * ) ) ELSE NULL END + - - MIN( + 55 ) * + SUM( - CASE - ( + 41 ) WHEN - 50 * 27 THEN + 53 END + - 18 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT CASE - 55 WHEN - ( - - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - 8 * + ( - - 90 ) THEN - 97 + + NULLIF ( 52, 28 + - 78 + - + 61 ) WHEN 24 THEN - - COALESCE ( - 87, + CAST ( NULLIF ( + 38, + - ( 42 ) ) AS INTEGER ) / + 19 * + 62 + AVG ( DISTINCT - 4 ), + 57 + + + 61 * ( 59 ) + - - COUNT ( * ) ) ELSE NULL END + - - MIN ( + 55 ) * + SUM ( - CASE - ( + 41 ) WHEN - 50 * 27 THEN + 53 END + - 18 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9130
SELECT + 2 + + CAST( NULL AS SIGNED ) - + COUNT( * ) + COALESCE ( + 93, - 22 * - COUNT( * ) + + MAX( DISTINCT + 93 ), + 86 * - AVG ( + 96 ) ) * + 10 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9130
SELECT + 2 + + CAST ( NULL AS INTEGER ) - + COUNT ( * ) + COALESCE ( + 93, - 22 * - COUNT ( * ) + + MAX ( DISTINCT + 93 ), + 86 * - AVG ( + 96 ) ) * + 10 col0
----
NULL

query I rowsort
SELECT - 90 + - 10 - + 47 * 38
----
-1886

onlyif mysql # aggregate syntax: 
query II rowsort label-9132
SELECT ALL + ( - SUM( - + 95 ) ) + NULLIF ( - 79, 67 + + MIN( + + 40 ) ) AS col1, 41 AS col0
----
16
41

skipif mysql # not compatible
query II rowsort label-9132
SELECT ALL + ( - SUM ( - + 95 ) ) + NULLIF ( - 79, 67 + + MIN ( + + 40 ) ) AS col1, 41 AS col0
----
16
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT + - 76 * SUM( - 45 )
----
3420

skipif mysql # not compatible
query I rowsort label-9133
SELECT + - 76 * SUM ( - 45 )
----
3420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9134
SELECT ALL - + ( + 73 ) DIV COUNT( * ) col0
----
-73

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL - + ( + 73 ) / COUNT ( * ) col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT DISTINCT - 63 * - + COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT - 63 * - + COUNT ( * ) AS col2
----
63

query I rowsort
SELECT - 45 * 15
----
-675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9137
SELECT CAST( - + 23 AS SIGNED ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-9137
SELECT CAST ( - + 23 AS INTEGER ) AS col1
----
-23

query I rowsort
SELECT - 63 + + - 84
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9139
SELECT ALL + NULLIF ( 18, + 27 * + CAST( NULL AS SIGNED ) ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL + NULLIF ( 18, + 27 * + CAST ( NULL AS INTEGER ) ) AS col2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9140
SELECT + CAST( - - ( 57 ) AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-9140
SELECT + CAST ( - - ( 57 ) AS INTEGER )
----
57

query I rowsort
SELECT - 39 + 74 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT + COUNT( * ) * 95 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-9142
SELECT + COUNT ( * ) * 95 AS col2
----
95

query II rowsort
SELECT 82 * + 59 + 38 AS col1, - 60 * - 73
----
4876
4380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9144
SELECT DISTINCT + COUNT( * ) DIV CAST( CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) - - 67 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT + COUNT ( * ) / CAST ( CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) - - 67 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT + MAX( ALL - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-9145
SELECT + MAX ( ALL - 41 )
----
-41

query I rowsort
SELECT DISTINCT 50 * - + 39
----
-1950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9147
SELECT ALL - COALESCE ( + - 81, + - 17 ) DIV - SUM( + 19 )
----
-4

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL - COALESCE ( + - 81, + - 17 ) / - SUM ( + 19 )
----
-4

query II rowsort
SELECT ALL + 45 AS col0, 48
----
45
48

query I rowsort
SELECT - 56 * 66 col2
----
-3696

query II rowsort
SELECT ALL + 61 AS col0, + 72 * + + 21 AS col0
----
61
1512

query II rowsort
SELECT 8 AS col2, 58
----
8
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9152
SELECT 9 * COUNT( * ) * - 26 AS col0, 40 AS col1
----
-234
40

skipif mysql # not compatible
query II rowsort label-9152
SELECT 9 * COUNT ( * ) * - 26 AS col0, 40 AS col1
----
-234
40

query I rowsort
SELECT 51 * - 3 AS col2
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT - MAX( DISTINCT - 76 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-9154
SELECT - MAX ( DISTINCT - 76 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT ALL - ( + COUNT( * ) ) + + - 70 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL - ( + COUNT ( * ) ) + + - 70 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT ALL SUM( - 20 ) * + COUNT( * ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL SUM ( - 20 ) * + COUNT ( * ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT ALL + + 39 + 84 + + 13 + + NULLIF ( COUNT( * ), + 10 ) AS col0
----
137

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL + + 39 + 84 + + 13 + + NULLIF ( COUNT ( * ), + 10 ) AS col0
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9158
SELECT - 38 DIV + ( + + 95 ) * - 60 + - 30 DIV - + 68 + - 80 + COUNT( * ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-9158
SELECT - 38 / + ( + + 95 ) * - 60 + - 30 / - + 68 + - 80 + COUNT ( * ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT ALL MAX( + 71 ) + 59 + + MAX( - 20 )
----
110

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL MAX ( + 71 ) + 59 + + MAX ( - 20 )
----
110

query I rowsort
SELECT 0 * 13
----
0

query I rowsort
SELECT 3 + + + 27 + - 78 * + 96 + - 90
----
-7548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9162
SELECT ( + + ( - 24 ) ) * + 3 DIV + 3 + MIN( ALL - 61 ) * + 80 AS col2
----
-4904

skipif mysql # not compatible
query I rowsort label-9162
SELECT ( + + ( - 24 ) ) * + 3 / + 3 + MIN ( ALL - 61 ) * + 80 AS col2
----
-4904

query II rowsort
SELECT - 95, 24 AS col1
----
-95
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9164
SELECT - CAST( NULL AS SIGNED ) AS col2, COUNT( DISTINCT + + 19 ) * + + 81 AS col0
----
NULL
81

skipif mysql # not compatible
query II rowsort label-9164
SELECT - CAST ( NULL AS INTEGER ) AS col2, COUNT ( DISTINCT + + 19 ) * + + 81 AS col0
----
NULL
81

query I rowsort
SELECT DISTINCT - - 21 - + - 74
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT ALL 7 - ( COUNT( * ) ) * - COUNT( * ) + - + 60 + 17 + + - 89 AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL 7 - ( COUNT ( * ) ) * - COUNT ( * ) + - + 60 + 17 + + - 89 AS col2
----
-124

onlyif mysql # DIV for integer division: 
query I rowsort label-9167
SELECT ALL - CASE WHEN NOT + 66 IS NULL THEN - - 75 ELSE - 6 DIV 63 END col0
----
-75

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL - CASE WHEN NOT + 66 IS NULL THEN - - 75 ELSE - 6 / 63 END col0
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-9168
SELECT DISTINCT - 33 * + - COUNT( + + ( 13 ) ) AS col0, - 25 * - + 65 AS col1
----
33
1625

skipif mysql # not compatible
query II rowsort label-9168
SELECT DISTINCT - 33 * + - COUNT ( + + ( 13 ) ) AS col0, - 25 * - + 65 AS col1
----
33
1625

query I rowsort
SELECT COALESCE ( + 43, - 7 ) * - 59 + 20
----
-2517

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT COALESCE ( + 98, NULLIF ( + - 91, 97 * + AVG ( ALL + 1 ) ) * + 29, 75 ) - - COALESCE ( 87, COUNT( * ) ) * ( + 60 ) AS col1
----
5318

skipif mysql # not compatible
query I rowsort label-9170
SELECT COALESCE ( + 98, NULLIF ( + - 91, 97 * + AVG ( ALL + 1 ) ) * + 29, 75 ) - - COALESCE ( 87, COUNT ( * ) ) * ( + 60 ) AS col1
----
5318

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9171
SELECT DISTINCT MIN( DISTINCT 53 ) DIV 1 * - 33 AS col2
----
-1749

skipif mysql # not compatible
query I rowsort label-9171
SELECT DISTINCT MIN ( DISTINCT 53 ) / 1 * - 33 AS col2
----
-1749

query I rowsort
SELECT ALL 38 + + + 80 - 70 - - ( 96 ) + - 66 * + - 63 * + 54 AS col1
----
224676

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT NULLIF ( + - MIN( - 33 ), - - COALESCE ( + + 60, AVG ( ALL - 51 ) ) ) + 95 * - 7 * - 35 AS col0
----
23308

skipif mysql # not compatible
query I rowsort label-9173
SELECT NULLIF ( + - MIN ( - 33 ), - - COALESCE ( + + 60, AVG ( ALL - 51 ) ) ) + 95 * - 7 * - 35 AS col0
----
23308

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9174
SELECT ALL + 15 + + - 29 DIV COUNT( - - 69 ) * - 69 AS col2
----
2016

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL + 15 + + - 29 / COUNT ( - - 69 ) * - 69 AS col2
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT DISTINCT + ( 77 ) + COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT + ( 77 ) + COUNT ( * ) AS col0
----
78

query I rowsort
SELECT DISTINCT 37 + + - 55 * - 24
----
1357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9177
SELECT ALL CASE - MIN( - ( - 15 ) ) WHEN 64 THEN - 79 END + + 95 * - + COALESCE ( CAST( 15 AS SIGNED ), + ( 50 ) + - 72 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL CASE - MIN ( - ( - 15 ) ) WHEN 64 THEN - 79 END + + 95 * - + COALESCE ( CAST ( 15 AS INTEGER ), + ( 50 ) + - 72 ) col0
----
NULL

query I rowsort
SELECT DISTINCT + 83 + - + ( + - 62 )
----
145

query I rowsort
SELECT 38 + + 80
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT + SUM( - 38 ) * + 8 * - - COUNT( * ) col0
----
-304

skipif mysql # not compatible
query I rowsort label-9180
SELECT + SUM ( - 38 ) * + 8 * - - COUNT ( * ) col0
----
-304

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT + 45 + - SUM( - 46 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-9181
SELECT + 45 + - SUM ( - 46 ) AS col0
----
91

query I rowsort
SELECT + + 34 * - 86 + + - 97
----
-3021

query I rowsort
SELECT ALL + 89 - + + 17 col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT ALL + COUNT( DISTINCT 91 ) * - 69
----
-69

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL + COUNT ( DISTINCT 91 ) * - 69
----
-69

query II rowsort
SELECT DISTINCT + ( + 10 ) * 84 + 62, 50 AS col2
----
902
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT - + MAX( 82 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-9186
SELECT - + MAX ( 82 ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-9187
SELECT 87 + 72 - + 74 - COUNT( * ) col0, - 55 col1
----
84
-55

skipif mysql # not compatible
query II rowsort label-9187
SELECT 87 + 72 - + 74 - COUNT ( * ) col0, - 55 col1
----
84
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT 17 * + COUNT( 32 )
----
17

skipif mysql # not compatible
query I rowsort label-9188
SELECT 17 * + COUNT ( 32 )
----
17

query I rowsort
SELECT ALL + 74 - - + 90
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9190
SELECT + COALESCE ( - 95, 58 + - 61 ) + CAST( - ( + 56 ) AS SIGNED ) AS col0, COUNT( * ) + + - 90 + + COUNT( * ) * - - 46 AS col2
----
-151
-43

skipif mysql # not compatible
query II rowsort label-9190
SELECT + COALESCE ( - 95, 58 + - 61 ) + CAST ( - ( + 56 ) AS INTEGER ) AS col0, COUNT ( * ) + + - 90 + + COUNT ( * ) * - - 46 AS col2
----
-151
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT + 74 + + + 73 * COUNT( DISTINCT + 16 ) * - - 56 AS col2
----
4162

skipif mysql # not compatible
query I rowsort label-9191
SELECT + 74 + + + 73 * COUNT ( DISTINCT + 16 ) * - - 56 AS col2
----
4162

query I rowsort
SELECT NULLIF ( - + 63, + ( ( ( 44 ) ) ) ) * + + 47 AS col0
----
-2961

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT ALL MIN( - - 92 )
----
92

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL MIN ( - - 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL NULLIF ( - - COUNT( DISTINCT - 61 ), 74 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL NULLIF ( - - COUNT ( DISTINCT - 61 ), 74 ) col0
----
1

query I rowsort
SELECT 91 + 23
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT COUNT( * ) + 26 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-9196
SELECT COUNT ( * ) + 26 AS col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-9197
SELECT ALL + 46 DIV + + 76
----
0

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL + 46 / + + 76
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9198
SELECT ALL MIN( DISTINCT + 20 ) * + 86, - 49 AS col0
----
1720
-49

skipif mysql # not compatible
query II rowsort label-9198
SELECT ALL MIN ( DISTINCT + 20 ) * + 86, - 49 AS col0
----
1720
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT CASE + 31 WHEN - + 43 * 38 * - COUNT( DISTINCT 9 ) + - 16 THEN + COUNT( * ) * - + 34 + - 77 + + + SUM( DISTINCT - 42 ) * - 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9199
SELECT CASE + 31 WHEN - + 43 * 38 * - COUNT ( DISTINCT 9 ) + - 16 THEN + COUNT ( * ) * - + 34 + - 77 + + + SUM ( DISTINCT - 42 ) * - 19 END
----
NULL

query I rowsort
SELECT + 50 + + - 64
----
-14

query I rowsort
SELECT 20 * 44 + + 77 + + 77 + + COALESCE ( ( 23 ), + + 18, + + ( + 83 ) ) AS col2
----
1057

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT ALL - 27 * + + 20 * + COUNT( * ) + - SUM( DISTINCT 73 ) * - + SUM( ALL + 95 )
----
6395

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL - 27 * + + 20 * + COUNT ( * ) + - SUM ( DISTINCT 73 ) * - + SUM ( ALL + 95 )
----
6395

query II rowsort
SELECT ALL + 83 AS col1, ( + - COALESCE ( 27, - 95 ) ) AS col1
----
83
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT MIN( - - 58 )
----
58

skipif mysql # not compatible
query I rowsort label-9204
SELECT MIN ( - - 58 )
----
58

query I rowsort
SELECT + 17 * + - 13 + + - 81
----
-302

query I rowsort
SELECT ALL + 28 * - 48 + - 47 + + - COALESCE ( + 86, + + 14 + + - 0 )
----
-1477

query I rowsort
SELECT ALL + CASE + + ( + + 70 ) WHEN 76 * - 26 THEN + - 8 END * - 28 + + ( + 32 ) * - ( - 36 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9208
SELECT ALL ( + 49 ) * - 17 / + - CAST( NULL AS DECIMAL ) / - 94 + - COUNT( - 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL ( + 49 ) * - 17 / + - CAST ( NULL AS REAL ) / - 94 + - COUNT ( - 59 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT + NULLIF ( - + 28, 84 + - COUNT( 37 ) + - 19 + + + 97 * - + SUM( 76 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-9209
SELECT + NULLIF ( - + 28, 84 + - COUNT ( 37 ) + - 19 + + + 97 * - + SUM ( 76 ) )
----
-28

query I rowsort
SELECT DISTINCT COALESCE ( + 55, - - 2, + CASE - 18 WHEN - 53 THEN 24 END ) * - + 31 - - 29
----
-1676

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT + 87 * - - COUNT( ALL 63 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-9211
SELECT + 87 * - - COUNT ( ALL 63 ) AS col0
----
87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9212
SELECT + + AVG ( - CAST( NULL AS DECIMAL ) ) * 86 - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT + + AVG ( - CAST ( NULL AS REAL ) ) * 86 - 7 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 83 * 25
----
2075

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT ALL - - CASE + COUNT( * ) WHEN - 20 + + ( - 52 ) THEN + + ( - COUNT( * ) ) WHEN - 99 THEN NULL ELSE NULL END / - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL - - CASE + COUNT ( * ) WHEN - 20 + + ( - 52 ) THEN + + ( - COUNT ( * ) ) WHEN - 99 THEN NULL ELSE NULL END / - 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT - - 97 * + COUNT( * ) + - + 97
----
0

skipif mysql # not compatible
query I rowsort label-9215
SELECT - - 97 * + COUNT ( * ) + - + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT + + COUNT( * ) + + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9216
SELECT + + COUNT ( * ) + + - COUNT ( * )
----
0

query I rowsort
SELECT - 68 + + 83
----
15

query II rowsort
SELECT ALL 42 AS col0, 81 * - 76
----
42
-6156

onlyif mysql # aggregate syntax: 
query II rowsort label-9219
SELECT - MAX( DISTINCT 11 ) * + - 38, 3 AS col2
----
418
3

skipif mysql # not compatible
query II rowsort label-9219
SELECT - MAX ( DISTINCT 11 ) * + - 38, 3 AS col2
----
418
3

query I rowsort
SELECT ALL ( 46 ) col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT DISTINCT + COUNT( * ) + + 52 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-9221
SELECT DISTINCT + COUNT ( * ) + + 52 AS col1
----
53

query I rowsort
SELECT ALL + 60 * + + 29 AS col2
----
1740

query I rowsort
SELECT - 80 * + 31 * + 30 AS col2
----
-74400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9224
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9225
SELECT DISTINCT + 42 * - ( - + CAST( - SUM( + - 29 ) AS SIGNED ) )
----
1218

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT + 42 * - ( - + CAST ( - SUM ( + - 29 ) AS INTEGER ) )
----
1218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9226
SELECT - MAX( 89 ) AS col1, CAST( NULL AS SIGNED ) AS col1
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-9226
SELECT - MAX ( 89 ) AS col1, CAST ( NULL AS INTEGER ) AS col1
----
-89
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9227
SELECT - 44 DIV - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9227
SELECT - 44 / - 51 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9228
SELECT - MIN( - - 25 ) * 31 + COUNT( * ), 42 AS col1
----
-774
42

skipif mysql # not compatible
query II rowsort label-9228
SELECT - MIN ( - - 25 ) * 31 + COUNT ( * ), 42 AS col1
----
-774
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9229
SELECT DISTINCT + COUNT( * ) + - CAST( 46 AS SIGNED ) + - 34 * + - 1 - 43 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT + COUNT ( * ) + - CAST ( 46 AS INTEGER ) + - 34 * + - 1 - 43 AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9230
SELECT CAST( 92 AS SIGNED ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-9230
SELECT CAST ( 92 AS INTEGER ) AS col2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9231
SELECT ALL - MIN( 51 ) DIV + COUNT( * ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL - MIN ( 51 ) / + COUNT ( * ) AS col1
----
-51

query I rowsort
SELECT ALL 37 * + ( - + 24 )
----
-888

query I rowsort
SELECT ( + ( - - 49 ) )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-9234
SELECT DISTINCT - NULLIF ( 63, AVG ( 99 ) * 75 ) * + 43 - 33 - + + 38 DIV - 78 * - - 16
----
-2742

skipif mysql # not compatible
query I rowsort label-9234
SELECT DISTINCT - NULLIF ( 63, AVG ( 99 ) * 75 ) * + 43 - 33 - + + 38 / - 78 * - - 16
----
-2742

query I rowsort
SELECT - 44 + + 57 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT + 28 * COUNT( * ) * - + 95 + + + 76 * - 27 - + 68
----
-4780

skipif mysql # not compatible
query I rowsort label-9236
SELECT + 28 * COUNT ( * ) * - + 95 + + + 76 * - 27 - + 68
----
-4780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9237
SELECT ALL + 76 * - 5 - 4 + - 21 DIV - COUNT( * ) AS col0
----
-363

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL + 76 * - 5 - 4 + - 21 / - COUNT ( * ) AS col0
----
-363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9238
SELECT + + 37 * + CAST( NULL AS SIGNED ) * - + 25 * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-9238
SELECT + + 37 * + CAST ( NULL AS INTEGER ) * - + 25 * 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT DISTINCT + + NULLIF ( + COUNT( * ), + CASE + + 40 WHEN + 10 * + 5 THEN NULL ELSE 45 END ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9239
SELECT DISTINCT + + NULLIF ( + COUNT ( * ), + CASE + + 40 WHEN + 10 * + 5 THEN NULL ELSE 45 END ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9240
SELECT 67 * + 49 + + CAST( NULL AS SIGNED ) * + + NULLIF ( - SUM( + - 29 ), 88 ) + - - CASE + + 66 WHEN + + CAST( + 8 AS SIGNED ) THEN + MAX( 1 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9240
SELECT 67 * + 49 + + CAST ( NULL AS INTEGER ) * + + NULLIF ( - SUM ( + - 29 ), 88 ) + - - CASE + + 66 WHEN + + CAST ( + 8 AS INTEGER ) THEN + MAX ( 1 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9241
SELECT ALL + + 24 AS col1, + 98 + + COUNT( * ) + - - COALESCE ( 71, - COUNT( * ) )
----
24
170

skipif mysql # not compatible
query II rowsort label-9241
SELECT ALL + + 24 AS col1, + 98 + + COUNT ( * ) + - - COALESCE ( 71, - COUNT ( * ) )
----
24
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9242
SELECT + + CASE + 3 WHEN - - MAX( - 65 ) - - ( + 13 ) THEN NULL WHEN + 39 THEN + 24 * + ( - + 80 ) ELSE CAST( NULL AS SIGNED ) END * + 26 * - + 29 + + COUNT( * ) + - 99 * ( COUNT( * ) ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9242
SELECT + + CASE + 3 WHEN - - MAX ( - 65 ) - - ( + 13 ) THEN NULL WHEN + 39 THEN + 24 * + ( - + 80 ) ELSE CAST ( NULL AS INTEGER ) END * + 26 * - + 29 + + COUNT ( * ) + - 99 * ( COUNT ( * ) ) + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL + + 63 AS col0, COALESCE ( + 35, + 36, + 27 )
----
63
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT DISTINCT + - CASE + - 55 WHEN - 88 THEN - 87 WHEN + COUNT( * ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT + - CASE + - 55 WHEN - 88 THEN - 87 WHEN + COUNT ( * ) THEN NULL ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL + - 46, 1 AS col1
----
-46
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT DISTINCT - 48 * - MIN( + 44 )
----
2112

skipif mysql # not compatible
query I rowsort label-9246
SELECT DISTINCT - 48 * - MIN ( + 44 )
----
2112

query I rowsort
SELECT + + 43 + - 50 - + 25 * - 49 + - 0 * + 99 + - 65
----
1153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9248
SELECT DISTINCT - COALESCE ( + CAST( - 18 AS SIGNED ), - 0 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT - COALESCE ( + CAST ( - 18 AS INTEGER ), - 0 ) AS col2
----
18

query I rowsort
SELECT + 69 * - 50 * + 24 AS col0
----
-82800

onlyif mysql # aggregate syntax: 
query II rowsort label-9250
SELECT + 43 + 58 AS col1, - 65 * - 67 * + - 73 * - NULLIF ( 64, - MAX( DISTINCT + - 60 ) )
----
101
20346560

skipif mysql # not compatible
query II rowsort label-9250
SELECT + 43 + 58 AS col1, - 65 * - 67 * + - 73 * - NULLIF ( 64, - MAX ( DISTINCT + - 60 ) )
----
101
20346560

onlyif mysql # aggregate syntax: 
query II rowsort label-9251
SELECT ALL COUNT( * ) AS col1, 32 * + 74 * 40 * 15 - 53 + + 77 * - 89 * 8 AS col0
----
1
1365923

skipif mysql # not compatible
query II rowsort label-9251
SELECT ALL COUNT ( * ) AS col1, 32 * + 74 * 40 * 15 - 53 + + 77 * - 89 * 8 AS col0
----
1
1365923

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT - MAX( ALL + + 43 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-9252
SELECT - MAX ( ALL + + 43 ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-9253
SELECT DISTINCT MIN( - + 98 ) * - 13 * 96 * - + ( + 70 ), 35 + + 47 AS col0
----
-8561280
82

skipif mysql # not compatible
query II rowsort label-9253
SELECT DISTINCT MIN ( - + 98 ) * - 13 * 96 * - + ( + 70 ), 35 + + 47 AS col0
----
-8561280
82

query I rowsort
SELECT ALL - - 89 + - NULLIF ( 88, + 89 / 70 + - 67 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9255
SELECT + 63 * + + CAST( - 33 AS SIGNED ) AS col2
----
-2079

skipif mysql # not compatible
query I rowsort label-9255
SELECT + 63 * + + CAST ( - 33 AS INTEGER ) AS col2
----
-2079

query I rowsort
SELECT ALL 69 * 77 AS col1
----
5313

query I rowsort
SELECT ALL ( - - 73 ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT ALL 21 + + COUNT( * ) col1
----
22

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL 21 + + COUNT ( * ) col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT COUNT( * ) + 40 + + - 70 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-9259
SELECT COUNT ( * ) + 40 + + - 70 AS col2
----
-29

query I rowsort
SELECT 35 + + 12
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9261
SELECT DISTINCT - SUM( DISTINCT - 47 ) + + 10 + - + COUNT( * ) DIV + COUNT( * ) col1
----
56

skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT - SUM ( DISTINCT - 47 ) + + 10 + - + COUNT ( * ) / + COUNT ( * ) col1
----
56

query II rowsort
SELECT 25 + - - 46 col0, 40 AS col2
----
71
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT DISTINCT COUNT( * ) + 73
----
74

skipif mysql # not compatible
query I rowsort label-9263
SELECT DISTINCT COUNT ( * ) + 73
----
74

query I rowsort
SELECT DISTINCT - 84 + - ( - + 28 ) - - - 74 col2
----
-130

query II rowsort
SELECT DISTINCT - 11 * + 48, 17 AS col2
----
-528
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9266
SELECT ALL - SUM( ALL - 42 ) AS col1, + 85 col0
----
42
85

skipif mysql # not compatible
query II rowsort label-9266
SELECT ALL - SUM ( ALL - 42 ) AS col1, + 85 col0
----
42
85

query I rowsort
SELECT DISTINCT - ( 66 ) * + 13
----
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT + 0 * + CASE 92 WHEN CASE 16 WHEN + + 46 * + 36 THEN NULL ELSE + 59 + + 35 * - 71 * 69 - - + COUNT( * ) END * + 38 - - 92 * - 9 THEN COUNT( * ) WHEN + + AVG ( ALL - + 26 ) THEN 40 * + 72 - 11 + + CASE 69 WHEN - - 87 / + + 60 THEN + 3 END + + 17 - + 60 END + - - COALESCE ( 37, COUNT( + - 34 ) ) + - 60 + - 72 + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9268
SELECT + 0 * + CASE 92 WHEN CASE 16 WHEN + + 46 * + 36 THEN NULL ELSE + 59 + + 35 * - 71 * 69 - - + COUNT ( * ) END * + 38 - - 92 * - 9 THEN COUNT ( * ) WHEN + + AVG ( ALL - + 26 ) THEN 40 * + 72 - 11 + + CASE 69 WHEN - - 87 / + + 60 THEN + 3 END + + 17 - + 60 END + - - COALESCE ( 37, COUNT ( + - 34 ) ) + - 60 + - 72 + + 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9269
SELECT 54 DIV + 60 + + 88 + - CAST( + SUM( ALL - COALESCE ( 25, + 83, + - 91 ) ) AS SIGNED ) AS col2
----
113

skipif mysql # not compatible
query I rowsort label-9269
SELECT 54 / + 60 + + 88 + - CAST ( + SUM ( ALL - COALESCE ( 25, + 83, + - 91 ) ) AS INTEGER ) AS col2
----
113

query I rowsort
SELECT ALL - + NULLIF ( 31, - 76 )
----
-31

query I rowsort
SELECT ALL 17 * - 80 AS col2
----
-1360

onlyif mysql # DIV for integer division: 
query I rowsort label-9272
SELECT DISTINCT - - 75 DIV 37
----
2

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT - - 75 / 37
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT COUNT( * ) * COALESCE ( + + 84, COUNT( * ), + 25 )
----
84

skipif mysql # not compatible
query I rowsort label-9273
SELECT COUNT ( * ) * COALESCE ( + + 84, COUNT ( * ), + 25 )
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-9274
SELECT - 5 DIV - 8 AS col1, + ( + + 59 ) DIV - + 18 + - - 9 + 89 + 10 - - 59 * - 47 + + 46 + + + 13 + 75 * + + 32 AS col0
----
0
-209

skipif mysql # not compatible
query II rowsort label-9274
SELECT - 5 / - 8 AS col1, + ( + + 59 ) / - + 18 + - - 9 + 89 + 10 - - 59 * - 47 + + 46 + + + 13 + 75 * + + 32 AS col0
----
0
-209

query I rowsort
SELECT - 44 - + 30
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT MIN( ALL 51 )
----
51

skipif mysql # not compatible
query I rowsort label-9276
SELECT MIN ( ALL 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT + CASE - - 65 WHEN + COUNT( * ) * + 78 THEN 46 ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-9277
SELECT + CASE - - 65 WHEN + COUNT ( * ) * + 78 THEN 46 ELSE + COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT ALL - 26 + COUNT( * ) + 38
----
13

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL - 26 + COUNT ( * ) + 38
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-9279
SELECT + 94 - + COUNT( * ), 34 + + 12 AS col1
----
93
46

skipif mysql # not compatible
query II rowsort label-9279
SELECT + 94 - + COUNT ( * ), 34 + + 12 AS col1
----
93
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9280
SELECT DISTINCT + MIN( + + 12 ) + - 78 - + 75 DIV - 96, + 21 * - 89 AS col2
----
-66
-1869

skipif mysql # not compatible
query II rowsort label-9280
SELECT DISTINCT + MIN ( + + 12 ) + - 78 - + 75 / - 96, + 21 * - 89 AS col2
----
-66
-1869

onlyif mysql # aggregate syntax: 
query II rowsort label-9281
SELECT DISTINCT + 93 + + 17 AS col0, - COUNT( * ) + + ( + 42 )
----
110
41

skipif mysql # not compatible
query II rowsort label-9281
SELECT DISTINCT + 93 + + 17 AS col0, - COUNT ( * ) + + ( + 42 )
----
110
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT DISTINCT + 23 + - SUM( 95 )
----
-72

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT + 23 + - SUM ( 95 )
----
-72

query I rowsort
SELECT ALL 45 + 67 col0
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-9284
SELECT DISTINCT 69 + - + 3 * - 32 DIV - - 14 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT 69 + - + 3 * - 32 / - - 14 AS col1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9285
SELECT ( + - 78 ) + + - COALESCE ( - 16, + 82 * + COUNT( * ) * - 14 * + 70 + + - 4, + 47 + - COUNT( * ) + - 58 * 56 * - + COALESCE ( - + 71, - + ( - NULLIF ( - 6, + 88 ) ) + + ( - - 35 ) * - + 97 ) * 15 ), + MAX( DISTINCT 74 ) col2
----
-62
74

skipif mysql # not compatible
query II rowsort label-9285
SELECT ( + - 78 ) + + - COALESCE ( - 16, + 82 * + COUNT ( * ) * - 14 * + 70 + + - 4, + 47 + - COUNT ( * ) + - 58 * 56 * - + COALESCE ( - + 71, - + ( - NULLIF ( - 6, + 88 ) ) + + ( - - 35 ) * - + 97 ) * 15 ), + MAX ( DISTINCT 74 ) col2
----
-62
74

query II rowsort
SELECT DISTINCT 84 AS col1, CASE 58 WHEN + 51 + - 88 THEN - 10 * - 24 / - 29 - - + 92 ELSE NULL END AS col2
----
84
NULL

query II rowsort
SELECT 1 AS col1, + 97 AS col0
----
1
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9288
SELECT ALL CAST( NULL AS SIGNED ) * - 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL CAST ( NULL AS INTEGER ) * - 49 AS col2
----
NULL

query I rowsort
SELECT ( - 26 ) * - 5 AS col1
----
130

query I rowsort
SELECT DISTINCT COALESCE ( + 33, + 4, - 46 ) - + + 95
----
-62

query I rowsort
SELECT ALL 79 * - + 78 * + 75 AS col2
----
-462150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9292
SELECT CAST( NULL AS SIGNED ) + - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9292
SELECT CAST ( NULL AS INTEGER ) + - 92 AS col1
----
NULL

query II rowsort
SELECT ALL 98, + 42 * - 96 AS col0
----
98
-4032

query I rowsort
SELECT ALL 73 * 20 AS col1
----
1460

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT COUNT( * ) + - - COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-9295
SELECT COUNT ( * ) + - - COUNT ( * ) col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9296
SELECT 60 DIV + - COUNT( * ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-9296
SELECT 60 / + - COUNT ( * ) AS col2
----
-60

query II rowsort
SELECT - 11 AS col2, + 90
----
-11
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9298
SELECT 73 + 12 DIV - + 34 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-9298
SELECT 73 + 12 / - + 34 AS col2
----
73

query II rowsort
SELECT DISTINCT - 11 AS col1, + 44 + - 48
----
-11
-4

query I rowsort
SELECT ( + 3 ) - + CASE - 48 WHEN - - 82 THEN + 36 - - - 98 END
----
NULL

query I rowsort
SELECT ALL - 31 * + - COALESCE ( - + 51, + ( - - 56 ) ) * 30 + 95 + 10
----
-47325

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT COUNT( * ) * + - 18 + + 72 - 18
----
36

skipif mysql # not compatible
query I rowsort label-9302
SELECT COUNT ( * ) * + - 18 + + 72 - 18
----
36

query I rowsort
SELECT + ( - 75 ) col0
----
-75

query I rowsort
SELECT ALL - 82 * - - 28 AS col0
----
-2296

query I rowsort
SELECT ALL 45 * + + 13 * - 10 AS col2
----
-5850

query I rowsort
SELECT + ( 80 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT + - ( + 99 ) * - ( ( + - 13 ) ) + + 93 - - SUM( DISTINCT + - ( + - 4 ) ) + 90
----
-1100

skipif mysql # not compatible
query I rowsort label-9307
SELECT + - ( + 99 ) * - ( ( + - 13 ) ) + + 93 - - SUM ( DISTINCT + - ( + - 4 ) ) + 90
----
-1100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9308
SELECT CAST( NULL AS DECIMAL ) - + + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT CAST ( NULL AS REAL ) - + + 4 AS col1
----
NULL

query II rowsort
SELECT ALL - + 68 AS col1, - 66 col0
----
-68
-66

query I rowsort
SELECT ALL - ( + - 44 ) * - 13 + - 82
----
-654

query I rowsort
SELECT 40 + + - 48 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL - + MIN( ( + ( + 1 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL - + MIN ( ( + ( + 1 ) ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT ( - SUM( ALL 17 ) ) + + + 52 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-9313
SELECT ( - SUM ( ALL 17 ) ) + + + 52 AS col0
----
35

query II rowsort
SELECT 90 AS col1, - 78 AS col0
----
90
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-9315
SELECT ALL + - 97 + - 95 + - - 7 * + 81 + + 65 + 23 AS col2, MIN( ALL - 53 ) * - - 64 + - 46
----
463
-3438

skipif mysql # not compatible
query II rowsort label-9315
SELECT ALL + - 97 + - 95 + - - 7 * + 81 + + 65 + 23 AS col2, MIN ( ALL - 53 ) * - - 64 + - 46
----
463
-3438

onlyif mysql # DIV for integer division: 
query II rowsort label-9316
SELECT ALL - 7, + 20 DIV COALESCE ( + 45, 75 ) AS col2
----
-7
0

skipif mysql # not compatible
query II rowsort label-9316
SELECT ALL - 7, + 20 / COALESCE ( + 45, 75 ) AS col2
----
-7
0

query I rowsort
SELECT DISTINCT + 27 + - 96 - + 66 col1
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT ALL + + ( - COUNT( * ) ) + 9
----
8

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL + + ( - COUNT ( * ) ) + 9
----
8

query I rowsort
SELECT - - 83 * + - 89 AS col1
----
-7387

query II rowsort
SELECT - 28 * 73 * - 27 * + 9 AS col2, 72
----
496692
72

query I rowsort
SELECT - 34 + - 62 * + + 67 + - 24 AS col2
----
-4212

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9322
SELECT DISTINCT + ( CAST( - - 12 AS SIGNED ) ) * + + 73, CAST( 65 AS SIGNED ) AS col2
----
876
65

skipif mysql # not compatible
query II rowsort label-9322
SELECT DISTINCT + ( CAST ( - - 12 AS INTEGER ) ) * + + 73, CAST ( 65 AS INTEGER ) AS col2
----
876
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT + COUNT( * ) + - CASE + + 18 WHEN 81 * + NULLIF ( - 99, + 82 ) THEN 22 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT + COUNT ( * ) + - CASE + + 18 WHEN 81 * + NULLIF ( - 99, + 82 ) THEN 22 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT DISTINCT - ( - 8 ) * + MAX( 89 ) col2
----
712

skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT - ( - 8 ) * + MAX ( 89 ) col2
----
712

onlyif mysql # aggregate syntax: 
query II rowsort label-9325
SELECT - 98 * - + 7 * - COUNT( ALL - 1 ) AS col1, 83 * + SUM( - + 1 ) AS col2
----
-686
-83

skipif mysql # not compatible
query II rowsort label-9325
SELECT - 98 * - + 7 * - COUNT ( ALL - 1 ) AS col1, 83 * + SUM ( - + 1 ) AS col2
----
-686
-83

query I rowsort
SELECT DISTINCT - 11 * - 44 AS col0
----
484

query I rowsort
SELECT ALL COALESCE ( - 48, - + 53 ) col0
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-9328
SELECT DISTINCT ( - 59 ) AS col2, + ( COUNT( * ) )
----
-59
1

skipif mysql # not compatible
query II rowsort label-9328
SELECT DISTINCT ( - 59 ) AS col2, + ( COUNT ( * ) )
----
-59
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9329
SELECT - 55 + + 32 / COUNT( * ) * + COALESCE ( COALESCE ( 64, - - 96, - 31 ), + - COUNT( * ) - COUNT( * ) - - + 3, - COUNT( * ) ) * + - CAST( NULL AS SIGNED ) - - + 38 + 67 * 12 * - + 22 - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9329
SELECT - 55 + + 32 / COUNT ( * ) * + COALESCE ( COALESCE ( 64, - - 96, - 31 ), + - COUNT ( * ) - COUNT ( * ) - - + 3, - COUNT ( * ) ) * + - CAST ( NULL AS INTEGER ) - - + 38 + 67 * 12 * - + 22 - 34 AS col2
----
NULL

query I rowsort
SELECT - 14 - 27 - - 66
----
25

query I rowsort
SELECT - 32 * 34
----
-1088

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT DISTINCT 61 * + SUM( ALL + 97 ) AS col0
----
5917

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT 61 * + SUM ( ALL + 97 ) AS col0
----
5917

query I rowsort
SELECT + ( + 37 ) * + - 1 AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9334
SELECT + COUNT( * ) + + MAX( - CAST( + ( - + 77 ) AS SIGNED ) ) * + 85 + + - CASE + ( - + 90 ) WHEN + + ( + 38 ) THEN CAST( + 11 AS SIGNED ) * - COUNT( * ) - CAST( - NULLIF ( NULLIF ( + 17, + 58 - 3 ), - - AVG ( DISTINCT - 35 ) + - - 20 ) AS DECIMAL ) END + + + CASE + - 8 WHEN + ( - + 1 ) + + + CASE - 69 WHEN + + 46 THEN + 33 - + + 77 + + 16 ELSE NULL END THEN NULL WHEN 41 * 68 * - CASE WHEN NOT 61 NOT BETWEEN + COUNT( * ) + + 25 AND ( 6 ) THEN 60 / - 94 WHEN NOT NULL <> + 51 * - 46 + 55 THEN NULL ELSE + 3 END + - CAST( NULL AS SIGNED ) * 9 THEN COUNT( - 70 ) * + 56 ELSE NULL END + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9334
SELECT + COUNT ( * ) + + MAX ( - CAST ( + ( - + 77 ) AS INTEGER ) ) * + 85 + + - CASE + ( - + 90 ) WHEN + + ( + 38 ) THEN CAST ( + 11 AS INTEGER ) * - COUNT ( * ) - CAST ( - NULLIF ( NULLIF ( + 17, + 58 - 3 ), - - AVG ( DISTINCT - 35 ) + - - 20 ) AS REAL ) END + + + CASE + - 8 WHEN + ( - + 1 ) + + + CASE - 69 WHEN + + 46 THEN + 33 - + + 77 + + 16 ELSE NULL END THEN NULL WHEN 41 * 68 * - CASE WHEN NOT 61 NOT BETWEEN + COUNT ( * ) + + 25 AND ( 6 ) THEN 60 / - 94 WHEN NOT NULL <> + 51 * - 46 + 55 THEN NULL ELSE + 3 END + - CAST ( NULL AS INTEGER ) * 9 THEN COUNT ( - 70 ) * + 56 ELSE NULL END + 28 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9335
SELECT - COALESCE ( + 72, - 88, - - 47 ) AS col1, COUNT( * ) col0
----
-72
1

skipif mysql # not compatible
query II rowsort label-9335
SELECT - COALESCE ( + 72, - 88, - - 47 ) AS col1, COUNT ( * ) col0
----
-72
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9336
SELECT DISTINCT - 33 * - + COUNT( * ), COUNT( * ) * + 61 AS col1
----
33
61

skipif mysql # not compatible
query II rowsort label-9336
SELECT DISTINCT - 33 * - + COUNT ( * ), COUNT ( * ) * + 61 AS col1
----
33
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9337
SELECT + + 5 / CAST( NULL AS SIGNED ) * - - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-9337
SELECT + + 5 / CAST ( NULL AS INTEGER ) * - - 11
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9338
SELECT + - COALESCE ( + 23, - 34 + + - 57 ) * 1 + - - 86 + 63 + COUNT( * ) * + + NULLIF ( - CASE 19 WHEN ( + CAST( NULL AS SIGNED ) ) THEN 51 END, 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9338
SELECT + - COALESCE ( + 23, - 34 + + - 57 ) * 1 + - - 86 + 63 + COUNT ( * ) * + + NULLIF ( - CASE 19 WHEN ( + CAST ( NULL AS INTEGER ) ) THEN 51 END, 59 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9339
SELECT ALL + CAST( + ( + 38 ) AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL + CAST ( + ( + 38 ) AS INTEGER )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9340
SELECT + + 44 DIV 9 * - 85 - + + ( + SUM( ALL 82 ) ) AS col2
----
-422

skipif mysql # not compatible
query I rowsort label-9340
SELECT + + 44 / 9 * - 85 - + + ( + SUM ( ALL 82 ) ) AS col2
----
-422

query I rowsort
SELECT - 96 + 74 + - 45
----
-67

query I rowsort
SELECT + 40 * + ( 5 ) - + 82
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT + 53 * + 12 * 68 * + 98 + - 13 + - 34 + MAX( ALL - 74 ) AS col0
----
4238183

skipif mysql # not compatible
query I rowsort label-9343
SELECT + 53 * + 12 * 68 * + 98 + - 13 + - 34 + MAX ( ALL - 74 ) AS col0
----
4238183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9344
SELECT ALL COALESCE ( - 81, 98 ) * CAST( - ( 44 ) AS SIGNED ) + + 52 AS col0
----
3616

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL COALESCE ( - 81, 98 ) * CAST ( - ( 44 ) AS INTEGER ) + + 52 AS col0
----
3616

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT + COUNT( - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-9345
SELECT + COUNT ( - 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT DISTINCT - - COUNT( * ) * - SUM( ALL - 64 ) + - 5 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT - - COUNT ( * ) * - SUM ( ALL - 64 ) + - 5 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT DISTINCT - + 80 * - COUNT( * ) + COUNT( * ) + + ( + 67 ) + + 44
----
192

skipif mysql # not compatible
query I rowsort label-9347
SELECT DISTINCT - + 80 * - COUNT ( * ) + COUNT ( * ) + + ( + 67 ) + + 44
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9348
SELECT ALL + - CAST( 14 AS SIGNED ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL + - CAST ( 14 AS INTEGER ) AS col1
----
-14

query I rowsort
SELECT - 12 * - 11 AS col2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT ALL + COUNT( DISTINCT - - 66 )
----
1

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL + COUNT ( DISTINCT - - 66 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9351
SELECT DISTINCT + - 82 * + 26 - 12 * + - 27 * + + CASE WHEN NOT NULL IN ( - 69, ( + SUM( DISTINCT CAST( NULL AS SIGNED ) ) ) + + MAX( - 6 ) + + - COUNT( * ) / - - ( + 77 ) + 37, + 44, - - 0 * + + 23, - - 86, 3, 12 ) THEN + 41 WHEN NOT - 21 / - 95 IS NOT NULL THEN 63 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT + - 82 * + 26 - 12 * + - 27 * + + CASE WHEN NOT NULL IN ( - 69, ( + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) ) + + MAX ( - 6 ) + + - COUNT ( * ) / - - ( + 77 ) + 37, + 44, - - 0 * + + 23, - - 86, 3, 12 ) THEN + 41 WHEN NOT - 21 / - 95 IS NOT NULL THEN 63 END AS col0
----
NULL

query I rowsort
SELECT - 28 + + - 57 AS col1
----
-85

query I rowsort
SELECT ALL + 24 * + 94 * + + NULLIF ( - 14, - 83 + 70 - + 5 ) - + 83 AS col2
----
-31667

query I rowsort
SELECT - 98 * - 53 * + - 4
----
-20776

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT - COUNT( * ) * + - COUNT( * ) * - 32 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-9355
SELECT - COUNT ( * ) * + - COUNT ( * ) * - 32 AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9356
SELECT ALL + NULLIF ( + CAST( 10 AS SIGNED ), + + 73 + - 93 + + NULLIF ( - 47, + 48 ) / + 16 / + COUNT( * ) / COUNT( ALL 43 ) + CASE + COUNT( * ) WHEN - ( + NULLIF ( MIN( + - 36 ), - 48 + + 0 ) ) THEN + 31 - + 56 ELSE COALESCE ( - 14, - - MAX( DISTINCT - - 51 ), - - COUNT( 3 ) ) END + - 82 * + + 8 ) * + 27 * - MAX( + + 42 ) - - 80 col0
----
-11260

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL + NULLIF ( + CAST ( 10 AS INTEGER ), + + 73 + - 93 + + NULLIF ( - 47, + 48 ) / + 16 / + COUNT ( * ) / COUNT ( ALL 43 ) + CASE + COUNT ( * ) WHEN - ( + NULLIF ( MIN ( + - 36 ), - 48 + + 0 ) ) THEN + 31 - + 56 ELSE COALESCE ( - 14, - - MAX ( DISTINCT - - 51 ), - - COUNT ( 3 ) ) END + - 82 * + + 8 ) * + 27 * - MAX ( + + 42 ) - - 80 col0
----
-11260

query I rowsort
SELECT DISTINCT + 25 * + 44 AS col2
----
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT - 14 + + ( ( + + 43 ) ) + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-9358
SELECT - 14 + + ( ( + + 43 ) ) + COUNT ( * )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9359
SELECT ALL + 34 * - SUM( + + 58 ) AS col0, 16 DIV + 75 * + COUNT( ALL + 5 ) * - + ( 72 ) + + - ( + + 10 ) + + 34 AS col2
----
-1972
24

skipif mysql # not compatible
query II rowsort label-9359
SELECT ALL + 34 * - SUM ( + + 58 ) AS col0, 16 / + 75 * + COUNT ( ALL + 5 ) * - + ( 72 ) + + - ( + + 10 ) + + 34 AS col2
----
-1972
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT - COUNT( * ) * - - 73 * - - SUM( DISTINCT - 90 ) AS col0
----
6570

skipif mysql # not compatible
query I rowsort label-9360
SELECT - COUNT ( * ) * - - 73 * - - SUM ( DISTINCT - 90 ) AS col0
----
6570

query I rowsort
SELECT ALL + 62 * + + 59 * - 28
----
-102424

query II rowsort
SELECT - 7 col1, + 98
----
-7
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9363
SELECT DISTINCT ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9363
SELECT DISTINCT ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9364
SELECT ALL + 63 + - 54 DIV MAX( 64 ) + - 35 AS col2, - 16
----
28
-16

skipif mysql # not compatible
query II rowsort label-9364
SELECT ALL + 63 + - 54 / MAX ( 64 ) + - 35 AS col2, - 16
----
28
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT ALL MAX( DISTINCT + 89 ) + - COALESCE ( + COUNT( * ), - + 52 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL MAX ( DISTINCT + 89 ) + - COALESCE ( + COUNT ( * ), - + 52 ) AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9366
SELECT ALL + + 6 + CASE COUNT( DISTINCT - 56 ) WHEN - NULLIF ( 32, CAST( COUNT( * ) AS SIGNED ) - - 92 ) * + 14 * - - AVG ( + - 64 ) THEN NULL WHEN + - 55 + 63 - - + 51 * + 38 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL + + 6 + CASE COUNT ( DISTINCT - 56 ) WHEN - NULLIF ( 32, CAST ( COUNT ( * ) AS INTEGER ) - - 92 ) * + 14 * - - AVG ( + - 64 ) THEN NULL WHEN + - 55 + 63 - - + 51 * + 38 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT - MIN( DISTINCT - ( - 6 ) ) + - 51 - - 25 + 43 + - 8 * - + 15 * + - 64 col2
----
-7669

skipif mysql # not compatible
query I rowsort label-9367
SELECT - MIN ( DISTINCT - ( - 6 ) ) + - 51 - - 25 + 43 + - 8 * - + 15 * + - 64 col2
----
-7669

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT ALL + COUNT( + + 44 ) + 15 - + 52
----
-36

skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL + COUNT ( + + 44 ) + 15 - + 52
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9369
SELECT + 94 DIV - 86 - + - COUNT( * ), ( + 3 ) AS col1
----
0
3

skipif mysql # not compatible
query II rowsort label-9369
SELECT + 94 / - 86 - + - COUNT ( * ), ( + 3 ) AS col1
----
0
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9370
SELECT ALL NULLIF ( 0, 34 - + - ( + + 52 ) ) DIV 84 * + 9 * - COUNT( * ) * + COUNT( * ) * - 28 + - 53 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL NULLIF ( 0, 34 - + - ( + + 52 ) ) / 84 * + 9 * - COUNT ( * ) * + COUNT ( * ) * - 28 + - 53 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT DISTINCT + COUNT( DISTINCT - 57 ) * + - COUNT( * ) + - 74 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT + COUNT ( DISTINCT - 57 ) * + - COUNT ( * ) + - 74 AS col0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9372
SELECT ALL - 93 DIV + 99 + 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL - 93 / + 99 + 67 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT ALL 13 + SUM( ALL + ( - 89 ) )
----
-76

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL 13 + SUM ( ALL + ( - 89 ) )
----
-76

query I rowsort
SELECT DISTINCT 52 * COALESCE ( + 30, 70, - 75 )
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT ALL - - SUM( 61 ) col2
----
61

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL - - SUM ( 61 ) col2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9376
SELECT - 30 DIV 42 + + 88 * 31 AS col0
----
2728

skipif mysql # not compatible
query I rowsort label-9376
SELECT - 30 / 42 + + 88 * 31 AS col0
----
2728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9377
SELECT - 40 + 75 * - 50 * + 92 * + CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-9377
SELECT - 40 + 75 * - 50 * + 92 * + CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) AS col2
----
NULL
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9378
SELECT ALL - CASE - CASE ( - 62 ) WHEN - 27 / - 8 THEN - COALESCE ( - COUNT( * ), + - COALESCE ( 66, 29, - ( - 94 ) * 78 - 20 * + 25 + - + 21, + 61 ) / 27 * - 39 ) * + 41 + - 87 WHEN + 54 * - 1 THEN NULL END WHEN 84 THEN + COUNT( * ) ELSE NULL END - + 70 - + 75 * - 85 + - 58 + + 63 * + COUNT( * ) * + MAX( - NULLIF ( + 75, + 29 ) ) + - 75 / + + 89 col0, ( + 96 ) AS col1
----
NULL
96

skipif mysql # not compatible
query II rowsort label-9378
SELECT ALL - CASE - CASE ( - 62 ) WHEN - 27 / - 8 THEN - COALESCE ( - COUNT ( * ), + - COALESCE ( 66, 29, - ( - 94 ) * 78 - 20 * + 25 + - + 21, + 61 ) / 27 * - 39 ) * + 41 + - 87 WHEN + 54 * - 1 THEN NULL END WHEN 84 THEN + COUNT ( * ) ELSE NULL END - + 70 - + 75 * - 85 + - 58 + + 63 * + COUNT ( * ) * + MAX ( - NULLIF ( + 75, + 29 ) ) + - 75 / + + 89 col0, ( + 96 ) AS col1
----
NULL
96

query II rowsort
SELECT 19 + + 14 AS col1, 51
----
33
51

query II rowsort
SELECT DISTINCT - 90, ( 1 ) col0
----
-90
1

query II rowsort
SELECT ALL - 74 AS col0, - 81
----
-74
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9382
SELECT CAST( NULL AS SIGNED ) + + 90 * 72 * + 26 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9382
SELECT CAST ( NULL AS INTEGER ) + + 90 * 72 * + 26 col1
----
NULL

query I rowsort
SELECT 54 * 41
----
2214

query I rowsort
SELECT 63 + - 45 AS col0
----
18

query II rowsort
SELECT DISTINCT 43, 65 AS col0
----
43
65

query I rowsort
SELECT 83 + - 16 col2
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-9387
SELECT ALL 51 AS col2, 48 * - - MAX( ALL 97 ) AS col0
----
51
4656

skipif mysql # not compatible
query II rowsort label-9387
SELECT ALL 51 AS col2, 48 * - - MAX ( ALL 97 ) AS col0
----
51
4656

query I rowsort
SELECT 60 + 76 + - + 34 AS col0
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-9389
SELECT - 5 AS col2, + 80 - 75 * - 81 - - - COUNT( * ) AS col0
----
-5
6154

skipif mysql # not compatible
query II rowsort label-9389
SELECT - 5 AS col2, + 80 - 75 * - 81 - - - COUNT ( * ) AS col0
----
-5
6154

onlyif mysql # DIV for integer division: 
query I rowsort label-9390
SELECT ALL - 3 DIV - + 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL - 3 / - + 28 AS col1
----
0

query I rowsort
SELECT 69 + - 43 * + - 59 * - - 94 AS col2
----
238547

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT ALL 84 + + 85 + COUNT( * ) AS col1
----
170

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL 84 + + 85 + COUNT ( * ) AS col1
----
170

query I rowsort
SELECT 79 * - + 21
----
-1659

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT ALL + COUNT( * ) + + + COUNT( - NULLIF ( 70, - 22 + - 34 * + 34 ) )
----
2

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL + COUNT ( * ) + + + COUNT ( - NULLIF ( 70, - 22 + - 34 * + 34 ) )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9395
SELECT ALL - 4 + - 50 + - + CAST( NULL AS SIGNED ) * 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL - 4 + - 50 + - + CAST ( NULL AS INTEGER ) * 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT COUNT( * ) + + 36 * + 60 * + 10 * + CASE + 31 WHEN + 54 THEN + + COUNT( * ) - - 3 / - 23 + - 73 + + 35 END * - 40 + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-9396
SELECT COUNT ( * ) + + 36 * + 60 * + 10 * + CASE + 31 WHEN + 54 THEN + + COUNT ( * ) - - 3 / - 23 + - 73 + + 35 END * - 40 + 35
----
NULL

query I rowsort
SELECT DISTINCT - 50 + + + ( - 76 )
----
-126

query I rowsort
SELECT ALL + 92 + 78 * 59 AS col2
----
4694

query I rowsort
SELECT ALL - 33 * - 37 AS col0
----
1221

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT + NULLIF ( - 36, + + COUNT( * ) ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-9400
SELECT + NULLIF ( - 36, + + COUNT ( * ) ) AS col0
----
-36

query I rowsort
SELECT ALL + - 61 + + 77 * 14
----
1017

query I rowsort
SELECT 15 + + - 56 AS col0
----
-41

query I rowsort
SELECT ALL - 56 - - - 56 AS col2
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT ALL SUM( DISTINCT + 25 ) - 11
----
14

skipif mysql # not compatible
query I rowsort label-9404
SELECT ALL SUM ( DISTINCT + 25 ) - 11
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9405
SELECT - + COALESCE ( + 62, 40 ) DIV - - 10 + 79 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-9405
SELECT - + COALESCE ( + 62, 40 ) / - - 10 + 79 AS col1
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-9406
SELECT - 13 AS col2, 59 + + MAX( - 96 ) AS col1
----
-13
-37

skipif mysql # not compatible
query II rowsort label-9406
SELECT - 13 AS col2, 59 + + MAX ( - 96 ) AS col1
----
-13
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-9407
SELECT + 80 + + + 3 DIV - 8
----
80

skipif mysql # not compatible
query I rowsort label-9407
SELECT + 80 + + + 3 / - 8
----
80

query II rowsort
SELECT 54 * - - 0 AS col0, + 58 * + 28 - - - 20 AS col1
----
0
1604

query I rowsort
SELECT ALL - - 86 - + - 59
----
145

query II rowsort
SELECT ( - 95 ) AS col1, - 22 * + 84 col0
----
-95
-1848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9411
SELECT + + NULLIF ( - COUNT( * ), + 37 + + - ( + - 93 ) - - 62 + 80 * - ( - 96 ) + - 28 * + CAST( NULL AS SIGNED ) * + ( - 7 ) + 46 / - - 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-9411
SELECT + + NULLIF ( - COUNT ( * ), + 37 + + - ( + - 93 ) - - 62 + 80 * - ( - 96 ) + - 28 * + CAST ( NULL AS INTEGER ) * + ( - 7 ) + 46 / - - 66 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9412
SELECT COUNT( * ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT COUNT ( * ) * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9413
SELECT ALL - + 19 DIV + 25 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL - + 19 / + 25 AS col1
----
0

query I rowsort
SELECT ALL + 66 * 10 * - 5 col2
----
-3300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9415
SELECT DISTINCT - CAST( + + 12 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-9415
SELECT DISTINCT - CAST ( + + 12 AS INTEGER )
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-9416
SELECT 54 DIV + 22
----
2

skipif mysql # not compatible
query I rowsort label-9416
SELECT 54 / + 22
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT COUNT( * ) - 70 + + 18
----
-51

skipif mysql # not compatible
query I rowsort label-9417
SELECT COUNT ( * ) - 70 + + 18
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9418
SELECT NULLIF ( + 95, 0 * + COUNT( * ) + 12 ) * CAST( 90 AS SIGNED ), CAST( NULL AS SIGNED ) AS col2
----
8550
NULL

skipif mysql # not compatible
query II rowsort label-9418
SELECT NULLIF ( + 95, 0 * + COUNT ( * ) + 12 ) * CAST ( 90 AS INTEGER ), CAST ( NULL AS INTEGER ) AS col2
----
8550
NULL

query I rowsort
SELECT 38 * + - 83 AS col1
----
-3154

onlyif mysql # DIV for integer division: 
query I rowsort label-9420
SELECT ALL 3 DIV 14
----
0

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL 3 / 14
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9421
SELECT + COUNT( DISTINCT - 52 ) col2, COUNT( * ) + - + 22
----
1
-21

skipif mysql # not compatible
query II rowsort label-9421
SELECT + COUNT ( DISTINCT - 52 ) col2, COUNT ( * ) + - + 22
----
1
-21

query I rowsort
SELECT ALL 97 + 26 AS col2
----
123

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9423
SELECT ALL 55 + 24 + + + 5 DIV + COALESCE ( + + 21, + COALESCE ( + 85, + 3 + - + NULLIF ( 76, 65 ) - - 89 + - + 55 ) ) + + + 32 * - CAST( - - 66 AS SIGNED ) AS col1
----
-2033

skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL 55 + 24 + + + 5 / + COALESCE ( + + 21, + COALESCE ( + 85, + 3 + - + NULLIF ( 76, 65 ) - - 89 + - + 55 ) ) + + + 32 * - CAST ( - - 66 AS INTEGER ) AS col1
----
-2033

onlyif mysql # aggregate syntax: 
query II rowsort label-9424
SELECT SUM( 42 ) - 15, + 24 col1
----
27
24

skipif mysql # not compatible
query II rowsort label-9424
SELECT SUM ( 42 ) - 15, + 24 col1
----
27
24

query I rowsort
SELECT DISTINCT 31 + + 81
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT ALL 61 + + + 98 - + + 67 * 72 - - MAX( 99 )
----
-4566

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL 61 + + + 98 - + + 67 * 72 - - MAX ( 99 )
----
-4566

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT - COUNT( 38 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9427
SELECT - COUNT ( 38 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT 62 + - COUNT( DISTINCT + 47 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-9428
SELECT 62 + - COUNT ( DISTINCT + 47 ) AS col1
----
61

query I rowsort
SELECT DISTINCT 18 + + 59
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT DISTINCT SUM( ALL - 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT SUM ( ALL - 44 ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT DISTINCT + 13 - - + COUNT( ALL - 10 ) * + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT + 13 - - + COUNT ( ALL - 10 ) * + COUNT ( * )
----
14

query I rowsort
SELECT DISTINCT + + NULLIF ( - 40, ( - 10 ) ) - + + 26 col0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9433
SELECT DISTINCT - CAST( - 7 AS SIGNED ) col1, - 87 AS col2
----
7
-87

skipif mysql # not compatible
query II rowsort label-9433
SELECT DISTINCT - CAST ( - 7 AS INTEGER ) col1, - 87 AS col2
----
7
-87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9434
SELECT ALL - 11 DIV CAST( + + 81 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL - 11 / CAST ( + + 81 AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT + + ( 64 ) + - COUNT( * ) + + ( 28 ) * + 61 AS col0
----
1771

skipif mysql # not compatible
query I rowsort label-9435
SELECT + + ( 64 ) + - COUNT ( * ) + + ( 28 ) * + 61 AS col0
----
1771

onlyif mysql # DIV for integer division: 
query I rowsort label-9436
SELECT DISTINCT + + 34 - + + 2 DIV 15 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT + + 34 - + + 2 / 15 AS col2
----
34

query I rowsort
SELECT + - 56 + 10
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT 64 * - COUNT( * ) * + - 35 - + 53 + - 3 * - + 32 * + 93 * - COUNT( * )
----
-6741

skipif mysql # not compatible
query I rowsort label-9438
SELECT 64 * - COUNT ( * ) * + - 35 - + 53 + - 3 * - + 32 * + 93 * - COUNT ( * )
----
-6741

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT ALL - + 92 * COUNT( * ) - - - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL - + 92 * COUNT ( * ) - - - COUNT ( * )
----
-93

query I rowsort
SELECT - 58 + ( ( - 99 ) ) AS col2
----
-157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9441
SELECT 11 / - + ( COUNT( * ) ) * - ( COALESCE ( 65, CAST( NULL AS SIGNED ) ) ) * + ( + - CASE - 34 WHEN - ( - + 48 ) + - 13 - - - 89 THEN + 7 + - - CAST( - + ( + COALESCE ( 56, + 37 / COALESCE ( + 75, - - CASE + COUNT( * ) WHEN + 31 / - + 26 THEN 35 ELSE NULL END, 72 ) ) ) AS DECIMAL ) END ) + ( 15 ) + - 59 + - CASE + ( - 43 ) WHEN + 37 + + 4 - + 43 * - MAX( ALL - + 40 ) * + 22 * + + ( - 21 ) THEN - 80 WHEN COUNT( ALL - 29 ) THEN NULL END + ( 94 + - CAST( - 62 AS DECIMAL ) ) * - 9 * 21 * - 23 + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT 11 / - + ( COUNT ( * ) ) * - ( COALESCE ( 65, CAST ( NULL AS INTEGER ) ) ) * + ( + - CASE - 34 WHEN - ( - + 48 ) + - 13 - - - 89 THEN + 7 + - - CAST ( - + ( + COALESCE ( 56, + 37 / COALESCE ( + 75, - - CASE + COUNT ( * ) WHEN + 31 / - + 26 THEN 35 ELSE NULL END, 72 ) ) ) AS REAL ) END ) + ( 15 ) + - 59 + - CASE + ( - 43 ) WHEN + 37 + + 4 - + 43 * - MAX ( ALL - + 40 ) * + 22 * + + ( - 21 ) THEN - 80 WHEN COUNT ( ALL - 29 ) THEN NULL END + ( 94 + - CAST ( - 62 AS REAL ) ) * - 9 * 21 * - 23 + 87 AS col0
----
NULL

query I rowsort
SELECT 75 * - 43 * + + 80 - - - 35 * + 79 AS col1
----
-260765

query II rowsort
SELECT ALL + 99, + 8 * + 43 AS col1
----
99
344

query I rowsort
SELECT - 33 * 25 col1
----
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT - MIN( DISTINCT + - 14 ) + - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-9445
SELECT - MIN ( DISTINCT + - 14 ) + - COUNT ( * )
----
13

query I rowsort
SELECT + 91 * - 26 + + 28
----
-2338

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9447
SELECT ALL + CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) + + ( + + 86 ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9447
SELECT ALL + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) + + ( + + 86 ) AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT + SUM( + 27 ) col1
----
27

skipif mysql # not compatible
query I rowsort label-9448
SELECT + SUM ( + 27 ) col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT DISTINCT 40 * - COUNT( * ) + 5 + - COALESCE ( - 70, + 60 + - 60 + + + 68 + + 6 + + COUNT( * ) * - MIN( + 14 ), - COUNT( * ) ) * 96 * - + 32 * 30 AS col1
----
-6451235

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT 40 * - COUNT ( * ) + 5 + - COALESCE ( - 70, + 60 + - 60 + + + 68 + + 6 + + COUNT ( * ) * - MIN ( + 14 ), - COUNT ( * ) ) * 96 * - + 32 * 30 AS col1
----
-6451235

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT ALL 46 * + MAX( ALL + 66 ) * 35 + - 37 + + 36 + - 14 AS col2
----
106245

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL 46 * + MAX ( ALL + 66 ) * 35 + - 37 + + 36 + - 14 AS col2
----
106245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9451
SELECT ALL 15 * + 32 + + ( - NULLIF ( 59, - CAST( + 42 AS SIGNED ) + + + COUNT( * ) ) ) + 51 AS col2, 11 AS col1
----
472
11

skipif mysql # not compatible
query II rowsort label-9451
SELECT ALL 15 * + 32 + + ( - NULLIF ( 59, - CAST ( + 42 AS INTEGER ) + + + COUNT ( * ) ) ) + 51 AS col2, 11 AS col1
----
472
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT + 28 * - COUNT( * ) + + + 70 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-9452
SELECT + 28 * - COUNT ( * ) + + + 70 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT DISTINCT - 21 * COALESCE ( - COUNT( * ), 39 * COUNT( * ) + 39 )
----
21

skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT - 21 * COALESCE ( - COUNT ( * ), 39 * COUNT ( * ) + 39 )
----
21

query I rowsort
SELECT ALL + 4 * - + 87
----
-348

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9455
SELECT ALL 52 * 42 + - 19 * CAST( NULL AS SIGNED ) AS col2, + 64 AS col1
----
NULL
64

skipif mysql # not compatible
query II rowsort label-9455
SELECT ALL 52 * 42 + - 19 * CAST ( NULL AS INTEGER ) AS col2, + 64 AS col1
----
NULL
64

query I rowsort
SELECT - 43 + - - 42
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9457
SELECT - COUNT( * ) DIV - 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9457
SELECT - COUNT ( * ) / - 18 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT - SUM( + - 69 )
----
69

skipif mysql # not compatible
query I rowsort label-9458
SELECT - SUM ( + - 69 )
----
69

query I rowsort
SELECT - 78 * + 22
----
-1716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9460
SELECT - ( + + COUNT( + + CAST( 34 AS SIGNED ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9460
SELECT - ( + + COUNT ( + + CAST ( 34 AS INTEGER ) ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9461
SELECT + + NULLIF ( + COUNT( * ), + NULLIF ( 85, + - 19 * 10 ) ) + + 80 * - CAST( + 45 AS SIGNED ), COUNT( * ) AS col2
----
-3599
1

skipif mysql # not compatible
query II rowsort label-9461
SELECT + + NULLIF ( + COUNT ( * ), + NULLIF ( 85, + - 19 * 10 ) ) + + 80 * - CAST ( + 45 AS INTEGER ), COUNT ( * ) AS col2
----
-3599
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT DISTINCT - 64 - - COUNT( * ) + - 49 * + 79 + - 38
----
-3972

skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT - 64 - - COUNT ( * ) + - 49 * + 79 + - 38
----
-3972

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT DISTINCT + COUNT( 16 ) - 3 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9463
SELECT DISTINCT + COUNT ( 16 ) - 3 AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9464
SELECT ALL - SUM( - CAST( + ( + 9 ) AS SIGNED ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL - SUM ( - CAST ( + ( + 9 ) AS INTEGER ) ) AS col0
----
9

query I rowsort
SELECT + - 20 + - 44
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT - CASE - NULLIF ( + ( COUNT( * ) ), + 78 + + 41 ) WHEN + 87 THEN - 94 + + 93 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9466
SELECT - CASE - NULLIF ( + ( COUNT ( * ) ), + 78 + + 41 ) WHEN + 87 THEN - 94 + + 93 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ALL MIN( ALL - 61 ) col1
----
-61

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL MIN ( ALL - 61 ) col1
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-9468
SELECT ALL + 81 * 22 + COUNT( * ) - 56 AS col1, + 25 AS col2
----
1727
25

skipif mysql # not compatible
query II rowsort label-9468
SELECT ALL + 81 * 22 + COUNT ( * ) - 56 AS col1, + 25 AS col2
----
1727
25

query I rowsort
SELECT + + 76 - + - 66
----
142

query II rowsort
SELECT - 25, - 62 col0
----
-25
-62

query I rowsort
SELECT + 49 + + 47
----
96

query I rowsort
SELECT ALL 37 * + 62
----
2294

query I rowsort
SELECT + 6 * + 81 AS col1
----
486

query I rowsort
SELECT - 76 + - + 41 AS col1
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9475
SELECT + + 93 + + + CAST( 20 AS SIGNED ) + - - COUNT( * )
----
114

skipif mysql # not compatible
query I rowsort label-9475
SELECT + + 93 + + + CAST ( 20 AS INTEGER ) + - - COUNT ( * )
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9476
SELECT DISTINCT + CAST( + CAST( + 15 AS SIGNED ) AS SIGNED ) * + - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT + CAST ( + CAST ( + 15 AS INTEGER ) AS INTEGER ) * + - COUNT ( * )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9477
SELECT ALL + CASE - COUNT( * ) WHEN 86 THEN NULL WHEN - MAX( ALL - 23 ) * + - CAST( 90 AS SIGNED ) * - - 8 + - - 3 * + 65 THEN + 88 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL + CASE - COUNT ( * ) WHEN 86 THEN NULL WHEN - MAX ( ALL - 23 ) * + - CAST ( 90 AS INTEGER ) * - - 8 + - - 3 * + 65 THEN + 88 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9478
SELECT ALL - 45 AS col0, - COUNT( - 70 )
----
-45
-1

skipif mysql # not compatible
query II rowsort label-9478
SELECT ALL - 45 AS col0, - COUNT ( - 70 )
----
-45
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9479
SELECT DISTINCT + 75, - 38 DIV 19 * - 56 + + + 34 DIV 34 * COALESCE ( + ( - - 11 ), + 20 - 20 + + + 5 + - 10 * CAST( + 59 AS SIGNED ) * + 68 ) AS col0
----
75
123

skipif mysql # not compatible
query II rowsort label-9479
SELECT DISTINCT + 75, - 38 / 19 * - 56 + + + 34 / 34 * COALESCE ( + ( - - 11 ), + 20 - 20 + + + 5 + - 10 * CAST ( + 59 AS INTEGER ) * + 68 ) AS col0
----
75
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9480
SELECT ALL + - 18 DIV + COUNT( * ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL + - 18 / + COUNT ( * ) col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT ALL MIN( DISTINCT 85 )
----
85

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL MIN ( DISTINCT 85 )
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9482
SELECT DISTINCT + 72 DIV + 73 * + - 34 + + 64 + MAX( DISTINCT - ( + + 89 ) ) + - - 48 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9482
SELECT DISTINCT + 72 / + 73 * + - 34 + + 64 + MAX ( DISTINCT - ( + + 89 ) ) + - - 48 AS col0
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-9483
SELECT DISTINCT - 5 DIV + 67 * 18 AS col2, + 28
----
0
28

skipif mysql # not compatible
query II rowsort label-9483
SELECT DISTINCT - 5 / + 67 * 18 AS col2, + 28
----
0
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9484
SELECT - COUNT( * ) DIV + 75 * - 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9484
SELECT - COUNT ( * ) / + 75 * - 31 AS col1
----
0

query I rowsort
SELECT + 16 * + 37 AS col0
----
592

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT - NULLIF ( - 74, + - 26 ) + SUM( - + 84 )
----
-10

skipif mysql # not compatible
query I rowsort label-9486
SELECT - NULLIF ( - 74, + - 26 ) + SUM ( - + 84 )
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-9487
SELECT ALL + 7 * + MIN( + 36 ) * + - 19 AS col2, + 12 AS col1
----
-4788
12

skipif mysql # not compatible
query II rowsort label-9487
SELECT ALL + 7 * + MIN ( + 36 ) * + - 19 AS col2, + 12 AS col1
----
-4788
12

query I rowsort
SELECT + 92 * 81
----
7452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9489
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - COUNT( * ) + - MIN( DISTINCT + 34 ) * - 74 + + + 87 * - 75 - COALESCE ( 58, + 54 + - ( - - 48 ) - - + 63 * - - 81 ) + - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9489
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - COUNT ( * ) + - MIN ( DISTINCT + 34 ) * - 74 + + + 87 * - 75 - COALESCE ( 58, + 54 + - ( - - 48 ) - - + 63 * - - 81 ) + - 41
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9490
SELECT - MIN( - 48 ) DIV - 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9490
SELECT - MIN ( - 48 ) / - 64 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9491
SELECT ALL + COUNT( - 22 ) AS col0, NULLIF ( 70, + - 48 - - COUNT( * ) ) AS col1
----
1
70

skipif mysql # not compatible
query II rowsort label-9491
SELECT ALL + COUNT ( - 22 ) AS col0, NULLIF ( 70, + - 48 - - COUNT ( * ) ) AS col1
----
1
70

query I rowsort
SELECT - 62 * + - 32
----
1984

onlyif mysql # aggregate syntax: 
query II rowsort label-9493
SELECT DISTINCT + NULLIF ( + - COUNT( ALL - + ( - 10 ) ), 65 ) AS col1, + 33 + + + MIN( ALL + 74 )
----
-1
107

skipif mysql # not compatible
query II rowsort label-9493
SELECT DISTINCT + NULLIF ( + - COUNT ( ALL - + ( - 10 ) ), 65 ) AS col1, + 33 + + + MIN ( ALL + 74 )
----
-1
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9494
SELECT DISTINCT COUNT( * ) DIV 53 + - 71 * + ( - 14 ) AS col1
----
994

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT COUNT ( * ) / 53 + - 71 * + ( - 14 ) AS col1
----
994

query I rowsort
SELECT DISTINCT + ( 90 ) AS col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9496
SELECT - 26 - 6 + - COUNT( * ) DIV + - 5
----
-32

skipif mysql # not compatible
query I rowsort label-9496
SELECT - 26 - 6 + - COUNT ( * ) / + - 5
----
-32

query I rowsort
SELECT ( - 78 ) AS col0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9498
SELECT + COALESCE ( MAX( - + 99 ), 81 + SUM( - 79 ) ) * + CAST( + - 25 AS SIGNED ) - 79 + - 90 + + - 22 DIV - - ( - 11 ) + 5
----
2313

skipif mysql # not compatible
query I rowsort label-9498
SELECT + COALESCE ( MAX ( - + 99 ), 81 + SUM ( - 79 ) ) * + CAST ( + - 25 AS INTEGER ) - 79 + - 90 + + - 22 / - - ( - 11 ) + 5
----
2313

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9499
SELECT + 84 * 22 AS col0, CAST( 57 AS SIGNED ) AS col1
----
1848
57

skipif mysql # not compatible
query II rowsort label-9499
SELECT + 84 * 22 AS col0, CAST ( 57 AS INTEGER ) AS col1
----
1848
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT ALL + 63 * - COUNT( + 28 ) * + 36 - - 43 AS col0
----
-2225

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL + 63 * - COUNT ( + 28 ) * + 36 - - 43 AS col0
----
-2225

query I rowsort
SELECT 90 - 7 * - 11 AS col0
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT ALL + + SUM( DISTINCT + 9 ) * + + 47 AS col2
----
423

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL + + SUM ( DISTINCT + 9 ) * + + 47 AS col2
----
423

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9503
SELECT ALL + 11 * + CASE - 5 WHEN ( - ( - + 32 ) ) * + - ( - - ( - + 77 ) ) THEN - 91 * + 89 DIV + 72 + 0 + 68 + - 12 ELSE - NULLIF ( - COUNT( * ), - - 15 ) END DIV + 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL + 11 * + CASE - 5 WHEN ( - ( - + 32 ) ) * + - ( - - ( - + 77 ) ) THEN - 91 * + 89 / + 72 + 0 + 68 + - 12 ELSE - NULLIF ( - COUNT ( * ), - - 15 ) END / + 90 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9504
SELECT - 24 DIV + 10 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9504
SELECT - 24 / + 10 AS col0
----
-2

query I rowsort
SELECT 60 - 93
----
-33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9506
SELECT - CAST( + - COALESCE ( - 34, + 62 - - - 78 * + - 36 ) AS SIGNED ) DIV - - CAST( - 6 AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-9506
SELECT - CAST ( + - COALESCE ( - 34, + 62 - - - 78 * + - 36 ) AS INTEGER ) / - - CAST ( - 6 AS INTEGER )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9507
SELECT COALESCE ( - CAST( NULL AS SIGNED ), + 68 * + + CASE - 91 WHEN - CASE 95 WHEN - MIN( ALL + 65 ) + + - 54 - 27 + + CAST( NULL AS SIGNED ) - - - 54 - - CAST( NULL AS SIGNED ) THEN - CASE + 60 WHEN - COUNT( * ) THEN - 93 ELSE - - COUNT( ALL + - 64 ) END * + - 89 * - - 53 - 96 END + MAX( + 5 ) * ( + 56 ) THEN 43 WHEN - - 44 * - - NULLIF ( - 72, + - 1 ) THEN NULL WHEN 98 THEN NULL END - + COUNT( * ) + 41 ) * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9507
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), + 68 * + + CASE - 91 WHEN - CASE 95 WHEN - MIN ( ALL + 65 ) + + - 54 - 27 + + CAST ( NULL AS INTEGER ) - - - 54 - - CAST ( NULL AS INTEGER ) THEN - CASE + 60 WHEN - COUNT ( * ) THEN - 93 ELSE - - COUNT ( ALL + - 64 ) END * + - 89 * - - 53 - 96 END + MAX ( + 5 ) * ( + 56 ) THEN 43 WHEN - - 44 * - - NULLIF ( - 72, + - 1 ) THEN NULL WHEN 98 THEN NULL END - + COUNT ( * ) + 41 ) * - 67
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9508
SELECT ALL - 28 DIV + 27
----
-1

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL - 28 / + 27
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT ALL 96 + + MIN( DISTINCT 2 ) + - 63 * + + NULLIF ( 60, + 94 ) col1
----
-3682

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL 96 + + MIN ( DISTINCT 2 ) + - 63 * + + NULLIF ( 60, + 94 ) col1
----
-3682

query I rowsort
SELECT ALL + 4 * 96 AS col2
----
384

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT + COUNT( * ) * - 14 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-9511
SELECT + COUNT ( * ) * - 14 AS col2
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9512
SELECT ALL 10 + 65 DIV - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL 10 + 65 / - COUNT ( * )
----
-55

query I rowsort
SELECT 95 + - 36
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT ALL + 1 + + COUNT( * ) * 67 * - COUNT( + + 29 ) * 66 * 53 AS col0
----
-234365

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL + 1 + + COUNT ( * ) * 67 * - COUNT ( + + 29 ) * 66 * 53 AS col0
----
-234365

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9515
SELECT ( + + 50 ) * 69 + COUNT( * ) DIV - 85
----
3450

skipif mysql # not compatible
query I rowsort label-9515
SELECT ( + + 50 ) * 69 + COUNT ( * ) / - 85
----
3450

query I rowsort
SELECT ALL 80 + + + 80
----
160

query II rowsort
SELECT ALL - 89 col2, + 70 * + 52 col0
----
-89
3640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9518
SELECT ALL CAST( - ( 66 ) AS SIGNED ) * - + 65 col2
----
4290

skipif mysql # not compatible
query I rowsort label-9518
SELECT ALL CAST ( - ( 66 ) AS INTEGER ) * - + 65 col2
----
4290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9519
SELECT + MAX( ALL - 28 ) DIV 71 + 1 + ( - MIN( - 80 ) ) * + - 90, 13 + + CASE + + MIN( - - CAST( NULL AS SIGNED ) ) WHEN + - 8 + + COUNT( * ) * - 24 * - COUNT( * ) * + 56 THEN - - 31 * - - 34 * + - COALESCE ( + - 11, + COUNT( * ) * - 70 * MAX( ALL + 73 ) ) + + CASE - AVG ( 15 ) WHEN - + MAX( DISTINCT + 20 ) THEN NULL WHEN + COUNT( * ) DIV + - 34 THEN NULL ELSE - 32 END ELSE NULL END AS col2
----
-7199
NULL

skipif mysql # not compatible
query II rowsort label-9519
SELECT + MAX ( ALL - 28 ) / 71 + 1 + ( - MIN ( - 80 ) ) * + - 90, 13 + + CASE + + MIN ( - - CAST ( NULL AS INTEGER ) ) WHEN + - 8 + + COUNT ( * ) * - 24 * - COUNT ( * ) * + 56 THEN - - 31 * - - 34 * + - COALESCE ( + - 11, + COUNT ( * ) * - 70 * MAX ( ALL + 73 ) ) + + CASE - AVG ( 15 ) WHEN - + MAX ( DISTINCT + 20 ) THEN NULL WHEN + COUNT ( * ) / + - 34 THEN NULL ELSE - 32 END ELSE NULL END AS col2
----
-7199
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT ALL - COALESCE ( + 72, + COUNT( * ) ) col1
----
-72

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL - COALESCE ( + 72, + COUNT ( * ) ) col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT + 94 * + COUNT( * ) + - 43 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-9521
SELECT + 94 * + COUNT ( * ) + - 43 AS col0
----
51

query I rowsort
SELECT ALL 20 + 23
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT 89 * COUNT( * ) * - 31 AS col0
----
-2759

skipif mysql # not compatible
query I rowsort label-9523
SELECT 89 * COUNT ( * ) * - 31 AS col0
----
-2759

onlyif mysql # DIV for integer division: 
query I rowsort label-9524
SELECT ALL 38 DIV - 6
----
-6

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL 38 / - 6
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9525
SELECT 49 * COUNT( * ) - - MAX( + + 59 ) DIV + 48 - - ( + 33 ) DIV + 1 col2, 46 + - - 16 AS col1
----
83
62

skipif mysql # not compatible
query II rowsort label-9525
SELECT 49 * COUNT ( * ) - - MAX ( + + 59 ) / + 48 - - ( + 33 ) / + 1 col2, 46 + - - 16 AS col1
----
83
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9526
SELECT DISTINCT + 59 * - CASE WHEN ( ( NOT 17 <= NULL ) ) THEN NULL ELSE MIN( DISTINCT - 72 ) * - ( - + 6 ) END * + - CAST( NULL AS SIGNED ) * COUNT( + 8 ) + 28 AS col0, 4
----
NULL
4

skipif mysql # not compatible
query II rowsort label-9526
SELECT DISTINCT + 59 * - CASE WHEN ( ( NOT 17 <= NULL ) ) THEN NULL ELSE MIN ( DISTINCT - 72 ) * - ( - + 6 ) END * + - CAST ( NULL AS INTEGER ) * COUNT ( + 8 ) + 28 AS col0, 4
----
NULL
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9527
SELECT 86 DIV COUNT( * ) + - NULLIF ( - ( COUNT( * ) ), COUNT( * ) + + 10 - - ( 22 ) ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-9527
SELECT 86 / COUNT ( * ) + - NULLIF ( - ( COUNT ( * ) ), COUNT ( * ) + + 10 - - ( 22 ) ) AS col0
----
87

query I rowsort
SELECT 78 * - 23 AS col0
----
-1794

query I rowsort
SELECT 14 * 9
----
126

query I rowsort
SELECT DISTINCT - 41 * - - 52
----
-2132

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT ALL + SUM( 74 ) * - + 70 * 1
----
-5180

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL + SUM ( 74 ) * - + 70 * 1
----
-5180

onlyif mysql # aggregate syntax: 
query II rowsort label-9532
SELECT + MAX( + 41 ) * 88 * 16 + 36 + + + NULLIF ( NULLIF ( 54, 41 ), + 1 ) AS col0, + 58
----
57818
58

skipif mysql # not compatible
query II rowsort label-9532
SELECT + MAX ( + 41 ) * 88 * 16 + 36 + + + NULLIF ( NULLIF ( 54, 41 ), + 1 ) AS col0, + 58
----
57818
58

query I rowsort
SELECT DISTINCT 37 * + + 24 AS col2
----
888

query I rowsort
SELECT DISTINCT 13 * + + 10
----
130

query I rowsort
SELECT 5 + - 73
----
-68

query I rowsort
SELECT ALL + 15 * + 2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9537
SELECT + 48 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9537
SELECT + 48 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 22 + + - 32
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT 79 * + 2 + + SUM( ( 90 ) ) - + 68 + ( ( + 98 ) ) - 74 * + COUNT( * ) * - 66
----
5162

skipif mysql # not compatible
query I rowsort label-9539
SELECT 79 * + 2 + + SUM ( ( 90 ) ) - + 68 + ( ( + 98 ) ) - 74 * + COUNT ( * ) * - 66
----
5162

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT MAX( DISTINCT + + 15 ) col1
----
15

skipif mysql # not compatible
query I rowsort label-9540
SELECT MAX ( DISTINCT + + 15 ) col1
----
15

query I rowsort
SELECT ALL + + 77 * + - 2 AS col1
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT DISTINCT - COUNT( * ) + + + 3 * 61 + + 57 AS col0
----
239

skipif mysql # not compatible
query I rowsort label-9542
SELECT DISTINCT - COUNT ( * ) + + + 3 * 61 + + 57 AS col0
----
239

query I rowsort
SELECT DISTINCT + 66 * 16 AS col1
----
1056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9544
SELECT DISTINCT + - COUNT( * ) DIV + 76 col1
----
0

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT + - COUNT ( * ) / + 76 col1
----
0

query I rowsort
SELECT DISTINCT + 49 + + + 70 AS col0
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-9546
SELECT - 24 DIV 15
----
-1

skipif mysql # not compatible
query I rowsort label-9546
SELECT - 24 / 15
----
-1

query I rowsort
SELECT - 64 * - ( 2 )
----
128

query I rowsort
SELECT 33 - + + 66 + - + 98 * + 90 AS col2
----
-8853

query I rowsort
SELECT ALL + - 72 * - - ( + 19 ) col2
----
-1368

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT + 47 + - - 89 + COUNT( * )
----
137

skipif mysql # not compatible
query I rowsort label-9550
SELECT + 47 + - - 89 + COUNT ( * )
----
137

query I rowsort
SELECT 23 * + - 10 AS col2
----
-230

onlyif mysql # aggregate syntax: 
query II rowsort label-9552
SELECT ALL + 66, - COUNT( * ) AS col2
----
66
-1

skipif mysql # not compatible
query II rowsort label-9552
SELECT ALL + 66, - COUNT ( * ) AS col2
----
66
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT DISTINCT + + 22 + + COUNT( * ) col1
----
23

skipif mysql # not compatible
query I rowsort label-9553
SELECT DISTINCT + + 22 + + COUNT ( * ) col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9554
SELECT ALL + MIN( ALL + - 85 ) + - 61 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL + MIN ( ALL + - 85 ) + - 61 * CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT 38 AS col2, - 88 - - - 78 col1
----
38
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT DISTINCT 39 + COUNT( * ) * + + 34 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-9556
SELECT DISTINCT 39 + COUNT ( * ) * + + 34 AS col2
----
73

query I rowsort
SELECT 57 * 98
----
5586

onlyif mysql # aggregate syntax: 
query II rowsort label-9558
SELECT ALL COUNT( * ) AS col2, - MAX( DISTINCT - 63 ) + - 61 AS col1
----
1
2

skipif mysql # not compatible
query II rowsort label-9558
SELECT ALL COUNT ( * ) AS col2, - MAX ( DISTINCT - 63 ) + - 61 AS col1
----
1
2

query I rowsort
SELECT DISTINCT + 35 + - - 91 * 37
----
3402

onlyif mysql # aggregate syntax: 
query II rowsort label-9560
SELECT ALL 25, COUNT( * ) * 25
----
25
25

skipif mysql # not compatible
query II rowsort label-9560
SELECT ALL 25, COUNT ( * ) * 25
----
25
25

query I rowsort
SELECT DISTINCT 91 + 84 + 98 * + 50
----
5075

query I rowsort
SELECT DISTINCT NULLIF ( - 47, - 46 ) AS col2
----
-47

query I rowsort
SELECT NULLIF ( + 50, + 48 * + + 56 - AVG ( ALL - 60 ) * 52 + + 31 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-9564
SELECT + 88 AS col1, 55 - + 57 * - COUNT( * )
----
88
112

skipif mysql # not compatible
query II rowsort label-9564
SELECT + 88 AS col1, 55 - + 57 * - COUNT ( * )
----
88
112

query I rowsort
SELECT 54 * - 44 + + + 11
----
-2365

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT ALL - SUM( DISTINCT + + 13 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-9566
SELECT ALL - SUM ( DISTINCT + + 13 ) AS col2
----
-13

query II rowsort
SELECT ALL + 59 AS col0, 65 * + + 38
----
59
2470

query I rowsort
SELECT DISTINCT 96 * + + 10
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT MIN( - + 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-9569
SELECT MIN ( - + 7 ) AS col2
----
-7

query I rowsort
SELECT + NULLIF ( - - 35, + 6 + - 71 )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9571
SELECT + 42 DIV + - 50, NULLIF ( - COUNT( * ), - 57 ) AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-9571
SELECT + 42 / + - 50, NULLIF ( - COUNT ( * ), - 57 ) AS col2
----
0
-1

query I rowsort
SELECT + 23 + - 13
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9573
SELECT ALL + + CAST( + - 75 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL + + CAST ( + - 75 AS INTEGER )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT - MAX( + + ( 21 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-9574
SELECT - MAX ( + + ( 21 ) )
----
-21

query I rowsort
SELECT 89 * ( - + 47 ) + - - 73 - + 94
----
-4204

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT DISTINCT - + ( - COUNT( * ) ) * - 23 * - 74 + 27 * 53 AS col1
----
3133

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT - + ( - COUNT ( * ) ) * - 23 * - 74 + 27 * 53 AS col1
----
3133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9577
SELECT ALL + + CAST( 35 AS SIGNED ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL + + CAST ( 35 AS INTEGER ) AS col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9578
SELECT - 29 * - CAST( NULL AS SIGNED ) / + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT - 29 * - CAST ( NULL AS INTEGER ) / + 81
----
NULL

query I rowsort
SELECT ALL - 28 + - 36
----
-64

query I rowsort
SELECT DISTINCT + 59 + + NULLIF ( - - 49, 90 + + 64 ) + - + 76 * - 88 * + - 49
----
-327604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9581
SELECT DISTINCT + 0 + - + 45 + + 26 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT DISTINCT + 0 + - + 45 + + 26 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9582
SELECT - COUNT( * ) + CAST( NULL AS SIGNED ) * + 36 * + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9582
SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER ) * + 36 * + 53 AS col1
----
NULL

query I rowsort
SELECT ALL 69 + 63 - + + 59 AS col2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-9584
SELECT - COUNT( * ) AS col0, 46 AS col0
----
-1
46

skipif mysql # not compatible
query II rowsort label-9584
SELECT - COUNT ( * ) AS col0, 46 AS col0
----
-1
46

query I rowsort
SELECT + 53 + + 52 + + + 16 * + + 29
----
569

query I rowsort
SELECT + + 70 * + 97 * 12 * - - 92
----
7496160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9587
SELECT - + 65 * 74 * - CAST( NULL AS SIGNED ) * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9587
SELECT - + 65 * 74 * - CAST ( NULL AS INTEGER ) * 99
----
NULL

query II rowsort
SELECT 87, 77 AS col0
----
87
77

query II rowsort
SELECT + 11, + 56 AS col1
----
11
56

onlyif mysql # aggregate syntax: 
query II rowsort label-9590
SELECT ALL + 85 + - 18, COUNT( * ) AS col0
----
67
1

skipif mysql # not compatible
query II rowsort label-9590
SELECT ALL + 85 + - 18, COUNT ( * ) AS col0
----
67
1

query I rowsort
SELECT - + COALESCE ( + 60, + 85 + + 50 )
----
-60

query I rowsort
SELECT ALL + ( 58 ) - - 51 AS col2
----
109

query I rowsort
SELECT ALL - 58 * 96 * + 53 * 68 col2
----
-20067072

query II rowsort
SELECT DISTINCT ( - - 48 ) col0, + 91 * - - 63 + - 51 AS col0
----
48
5682

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT ALL 50 - - COUNT( * ) * 92 * + ( + - 27 ) * + 32 * + 12 + - 47 + + + 86 * - - 48 * - 88 + + + COUNT( * ) AS col2
----
-1317116

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL 50 - - COUNT ( * ) * 92 * + ( + - 27 ) * + 32 * + 12 + - 47 + + + 86 * - - 48 * - 88 + + + COUNT ( * ) AS col2
----
-1317116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9596
SELECT DISTINCT - 76 * - COALESCE ( 26, - + ( - CAST( + - COUNT( * ) AS SIGNED ) ) ) AS col0
----
1976

skipif mysql # not compatible
query I rowsort label-9596
SELECT DISTINCT - 76 * - COALESCE ( 26, - + ( - CAST ( + - COUNT ( * ) AS INTEGER ) ) ) AS col0
----
1976

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT ALL - 58 * + - ( - NULLIF ( - 87, NULLIF ( + 67, + ( - - COUNT( * ) ) * + 27 * + 26 ) * - 87 - + 55 + 0 / - + 33 ) ) col2
----
5046

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL - 58 * + - ( - NULLIF ( - 87, NULLIF ( + 67, + ( - - COUNT ( * ) ) * + 27 * + 26 ) * - 87 - + 55 + 0 / - + 33 ) ) col2
----
5046

query I rowsort
SELECT - ( 63 ) + 62 AS col2
----
-1

query I rowsort
SELECT - ( COALESCE ( 24, - 87 ) ) * + 82 AS col2
----
-1968

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT - COUNT( ALL - 34 ) * - 38
----
38

skipif mysql # not compatible
query I rowsort label-9600
SELECT - COUNT ( ALL - 34 ) * - 38
----
38

query I rowsort
SELECT ALL NULLIF ( - 7, - 62 / - 1 ) AS col1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9602
SELECT ( - 1 ) * - ( CAST( + 54 AS SIGNED ) ) + + - 76
----
-22

skipif mysql # not compatible
query I rowsort label-9602
SELECT ( - 1 ) * - ( CAST ( + 54 AS INTEGER ) ) + + - 76
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-9603
SELECT DISTINCT 84 DIV 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9603
SELECT DISTINCT 84 / 48 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9604
SELECT ( + - 16 ) AS col1, COUNT( * ) + - 79
----
-16
-78

skipif mysql # not compatible
query II rowsort label-9604
SELECT ( + - 16 ) AS col1, COUNT ( * ) + - 79
----
-16
-78

query I rowsort
SELECT DISTINCT + NULLIF ( - 39, 68 )
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-9606
SELECT + 19 + + 23 + - 19 DIV - 39 + 30 * - 82
----
-2418

skipif mysql # not compatible
query I rowsort label-9606
SELECT + 19 + + 23 + - 19 / - 39 + 30 * - 82
----
-2418

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT - ( + 44 ) + - SUM( DISTINCT - + 97 ) * 78 - + 6
----
7516

skipif mysql # not compatible
query I rowsort label-9607
SELECT - ( + 44 ) + - SUM ( DISTINCT - + 97 ) * 78 - + 6
----
7516

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT + - 37 + + - SUM( DISTINCT 52 ) * - 28 - - 25 + - 62
----
1382

skipif mysql # not compatible
query I rowsort label-9608
SELECT + - 37 + + - SUM ( DISTINCT 52 ) * - 28 - - 25 + - 62
----
1382

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT DISTINCT + + SUM( 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-9609
SELECT DISTINCT + + SUM ( 93 ) AS col2
----
93

query I rowsort
SELECT ALL - 35 * 18 * - - 23 * - 0 * + 51 + + + 36 + - 22 * 94 AS col0
----
-2032

query I rowsort
SELECT ( 44 ) * + + 61 + + 6 * + 82 col2
----
3176

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT ALL - ( + 77 ) * + 56 * + ( + - COUNT( * ) ) * + 52 + 9 + + 75
----
224308

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL - ( + 77 ) * + 56 * + ( + - COUNT ( * ) ) * + 52 + 9 + + 75
----
224308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9613
SELECT + + ( - CAST( NULL AS SIGNED ) ), - NULLIF ( - COUNT( ALL - 21 ), + 53 ) col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9613
SELECT + + ( - CAST ( NULL AS INTEGER ) ), - NULLIF ( - COUNT ( ALL - 21 ), + 53 ) col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT + COUNT( * ) + 25 * - - MAX( 67 )
----
1676

skipif mysql # not compatible
query I rowsort label-9614
SELECT + COUNT ( * ) + 25 * - - MAX ( 67 )
----
1676

query I rowsort
SELECT + + 16 * - COALESCE ( - COALESCE ( + - 89, + 47 * 62 - - 88 * + 77 ), + 11 )
----
-1424

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9616
SELECT + + 11 * + CAST( - + ( + 46 ) AS SIGNED ) AS col0
----
-506

skipif mysql # not compatible
query I rowsort label-9616
SELECT + + 11 * + CAST ( - + ( + 46 ) AS INTEGER ) AS col0
----
-506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9617
SELECT ALL + COALESCE ( + CASE + - SUM( ALL 76 ) WHEN - 0 THEN NULL WHEN CASE COALESCE ( - 32, + 26 DIV + 34 ) WHEN + 26 THEN 93 ELSE NULL END * - 55 - + - 87 THEN NULL WHEN - 75 THEN + - 82 END, + 47 + - - 51 DIV - 82, + 21 * 0 + 48, + NULLIF ( 50, - 38 * + - 71 * 26 ) ) DIV + - 12 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL + COALESCE ( + CASE + - SUM ( ALL 76 ) WHEN - 0 THEN NULL WHEN CASE COALESCE ( - 32, + 26 / + 34 ) WHEN + 26 THEN 93 ELSE NULL END * - 55 - + - 87 THEN NULL WHEN - 75 THEN + - 82 END, + 47 + - - 51 / - 82, + 21 * 0 + 48, + NULLIF ( 50, - 38 * + - 71 * 26 ) ) / + - 12 AS col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9618
SELECT + 46 + 32 + + - 69 * COALESCE ( + 5, + + 2, - CAST( NULL AS DECIMAL ) ) * CASE - - 58 WHEN - + 5 + AVG ( - 74 ) THEN + 96 ELSE NULL END * + - ( + - COUNT( * ) ) * - - 41 - + 23 * SUM( DISTINCT 88 ) * MIN( ALL - ( + 93 ) ) + - 92 + - SUM( - 70 ) * + 54 DIV 83 * - 36 + CAST( - - 16 AS DECIMAL ) AS col2, 47 DIV + 78 + ( + ( + 74 ) )
----
NULL
74

skipif mysql # not compatible
query II rowsort label-9618
SELECT + 46 + 32 + + - 69 * COALESCE ( + 5, + + 2, - CAST ( NULL AS REAL ) ) * CASE - - 58 WHEN - + 5 + AVG ( - 74 ) THEN + 96 ELSE NULL END * + - ( + - COUNT ( * ) ) * - - 41 - + 23 * SUM ( DISTINCT 88 ) * MIN ( ALL - ( + 93 ) ) + - 92 + - SUM ( - 70 ) * + 54 / 83 * - 36 + CAST ( - - 16 AS REAL ) AS col2, 47 / + 78 + ( + ( + 74 ) )
----
NULL
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT ALL - 55 * + 5 - 43 + COUNT( * ) AS col2
----
-317

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL - 55 * + 5 - 43 + COUNT ( * ) AS col2
----
-317

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9620
SELECT + 73 * - + 96 * - 27 - 59 + - - COUNT( DISTINCT CASE - - 15 WHEN - 18 + - 14 - + 48 THEN - 21 WHEN 32 + 57 * 0 THEN NULL END ) * 51 * + 25 DIV - 49 - - 45
----
189202

skipif mysql # not compatible
query I rowsort label-9620
SELECT + 73 * - + 96 * - 27 - 59 + - - COUNT ( DISTINCT CASE - - 15 WHEN - 18 + - 14 - + 48 THEN - 21 WHEN 32 + 57 * 0 THEN NULL END ) * 51 * + 25 / - 49 - - 45
----
189202

onlyif mysql # DIV for integer division: 
query I rowsort label-9621
SELECT ALL 43 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL 43 / 83
----
0

query II rowsort
SELECT + - 33 + 44, - 15 AS col1
----
11
-15

query I rowsort
SELECT DISTINCT + - 67 * - 74 * + - ( - 46 ) AS col0
----
228068

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT + + ( - 36 ) + - - 51 * - ( COUNT( * ) )
----
-87

skipif mysql # not compatible
query I rowsort label-9624
SELECT + + ( - 36 ) + - - 51 * - ( COUNT ( * ) )
----
-87

query I rowsort
SELECT ALL + + NULLIF ( - 73, - 19 ) * + 57 - + 6 AS col2
----
-4167

query I rowsort
SELECT ALL 70 * - + 61
----
-4270

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT + COALESCE ( + 19, - - 25 + - - 18 + + 8 + 70 * + 86 + 2 ) + + MIN( ALL + - 52 ) + + COUNT( + - 86 )
----
-32

skipif mysql # not compatible
query I rowsort label-9627
SELECT + COALESCE ( + 19, - - 25 + - - 18 + + 8 + 70 * + 86 + 2 ) + + MIN ( ALL + - 52 ) + + COUNT ( + - 86 )
----
-32

query I rowsort
SELECT ALL ( - - 95 ) col0
----
95

query I rowsort
SELECT ALL 21 * + 39 AS col1
----
819

query I rowsort
SELECT - 33 + 55 AS col1
----
22

query II rowsort
SELECT 15 col1, 75 * + - 9
----
15
-675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9632
SELECT - CAST( + 52 AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-9632
SELECT - CAST ( + 52 AS INTEGER )
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9633
SELECT - CAST( NULL AS SIGNED ) + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9633
SELECT - CAST ( NULL AS INTEGER ) + - 45
----
NULL

query I rowsort
SELECT ALL + 17 - - 74 AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9635
SELECT + 79 * - 58 * - 11, - MIN( DISTINCT 41 ) * + ( 83 ) + CAST( + - NULLIF ( + + 27, + + 12 ) AS SIGNED ) AS col1
----
50402
-3430

skipif mysql # not compatible
query II rowsort label-9635
SELECT + 79 * - 58 * - 11, - MIN ( DISTINCT 41 ) * + ( 83 ) + CAST ( + - NULLIF ( + + 27, + + 12 ) AS INTEGER ) AS col1
----
50402
-3430

query I rowsort
SELECT DISTINCT ( + + 32 )
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-9637
SELECT 6 col1, 31 DIV + 39 AS col1
----
6
0

skipif mysql # not compatible
query II rowsort label-9637
SELECT 6 col1, 31 / + 39 AS col1
----
6
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9638
SELECT 91 * CASE + + 11 WHEN 94 THEN COUNT( * ) * + 3 * CAST( NULL AS SIGNED ) + - 28 + AVG ( - - 34 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9638
SELECT 91 * CASE + + 11 WHEN 94 THEN COUNT ( * ) * + 3 * CAST ( NULL AS INTEGER ) + - 28 + AVG ( - - 34 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 27 * - - ( + 11 ) * + 26 * + 4 + - COALESCE ( + 91, 53 - + 27 * + 15, - 9 ) AS col1
----
-30979

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT CASE - MAX( + 98 ) WHEN + COUNT( * ) THEN 66 + + + 8 END / - - MAX( ALL + 17 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT CASE - MAX ( + 98 ) WHEN + COUNT ( * ) THEN 66 + + + 8 END / - - MAX ( ALL + 17 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 28 + + 97 * + 65 AS col0
----
6333

query I rowsort
SELECT 88 * - 74 col0
----
-6512

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9643
SELECT ALL + ( - - 5 ) + + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL + ( - - 5 ) + + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 33 + 43 AS col0
----
76

query I rowsort
SELECT ALL 85 + 66 AS col0
----
151

query I rowsort
SELECT ALL + 0 + - 25 AS col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9647
SELECT + 68 * - ( + + 42 ) + 56 + - 52 + 85 + + 40 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9647
SELECT + 68 * - ( + + 42 ) + 56 + - 52 + 85 + + 40 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 20 + - 89 AS col0
----
-69

query I rowsort
SELECT 39 + - - 4 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT 29 * 71 * + 80 + - COUNT( * )
----
164719

skipif mysql # not compatible
query I rowsort label-9650
SELECT 29 * 71 * + 80 + - COUNT ( * )
----
164719

onlyif mysql # aggregate syntax: 
query II rowsort label-9651
SELECT ALL 74 * + 56 * COUNT( * ) AS col2, - 36 + - 39 * - NULLIF ( + 29, - ( - 48 ) ) AS col0
----
4144
1095

skipif mysql # not compatible
query II rowsort label-9651
SELECT ALL 74 * + 56 * COUNT ( * ) AS col2, - 36 + - 39 * - NULLIF ( + 29, - ( - 48 ) ) AS col0
----
4144
1095

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9652
SELECT + + 75, COUNT( * ) DIV ( - 71 ) AS col1, - + 34 + + - 89 AS col0
----
75
0
-123

skipif mysql # not compatible
query III rowsort label-9652
SELECT + + 75, COUNT ( * ) / ( - 71 ) AS col1, - + 34 + + - 89 AS col0
----
75
0
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9653
SELECT ALL 88 - + 61 + - 3 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL 88 - + 61 + - 3 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT + + MIN( DISTINCT + 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9654
SELECT + + MIN ( DISTINCT + 5 ) AS col0
----
5

query I rowsort
SELECT DISTINCT - 57 - - + 92
----
35

query I rowsort
SELECT DISTINCT 58 * - - 46
----
2668

onlyif mysql # aggregate syntax: 
query II rowsort label-9657
SELECT MAX( + 68 ) * - 28 AS col1, + COUNT( + 81 )
----
-1904
1

skipif mysql # not compatible
query II rowsort label-9657
SELECT MAX ( + 68 ) * - 28 AS col1, + COUNT ( + 81 )
----
-1904
1

query I rowsort
SELECT - 7 * 91 + 83 - + 5 AS col0
----
-559

query I rowsort
SELECT 56 + 5 + - ( + 16 ) * + 99 * + - ( + 54 ) * - 22 * + + 8 * - + 93 + - 70
----
1400053239

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9660
SELECT DISTINCT 56 DIV + 59 * - MIN( ALL - - 51 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9660
SELECT DISTINCT 56 / + 59 * - MIN ( ALL - - 51 ) col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9661
SELECT 82 * - CASE 9 WHEN + - MAX( DISTINCT 89 ) THEN - + CAST( NULL AS SIGNED ) * - + CAST( + 4 AS SIGNED ) + + + 23 * + 37 - - MAX( ALL 3 ) - - - 69 + + - 29 + - COUNT( DISTINCT 57 ) * COALESCE ( + - 38, - + 99 ) WHEN - + 47 THEN 62 ELSE NULL END * COUNT( * ) * - + 93 * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT 82 * - CASE 9 WHEN + - MAX ( DISTINCT 89 ) THEN - + CAST ( NULL AS INTEGER ) * - + CAST ( + 4 AS INTEGER ) + + + 23 * + 37 - - MAX ( ALL 3 ) - - - 69 + + - 29 + - COUNT ( DISTINCT 57 ) * COALESCE ( + - 38, - + 99 ) WHEN - + 47 THEN 62 ELSE NULL END * COUNT ( * ) * - + 93 * 7
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9662
SELECT DISTINCT 20 DIV 71 col0
----
0

skipif mysql # not compatible
query I rowsort label-9662
SELECT DISTINCT 20 / 71 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9663
SELECT CAST( COUNT( * ) AS SIGNED ) * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9663
SELECT CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT ALL COALESCE ( - 48, + 75 ) + + - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL COALESCE ( - 48, + 75 ) + + - COUNT ( * )
----
-49

query I rowsort
SELECT 23 - - 7 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT COUNT( ALL + - 13 ) + + 0
----
1

skipif mysql # not compatible
query I rowsort label-9666
SELECT COUNT ( ALL + - 13 ) + + 0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9667
SELECT 33 * + - COUNT( * ) AS col2, + 26 * - 78 AS col2
----
-33
-2028

skipif mysql # not compatible
query II rowsort label-9667
SELECT 33 * + - COUNT ( * ) AS col2, + 26 * - 78 AS col2
----
-33
-2028

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT ALL COUNT( * ) + - + 90
----
-89

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL COUNT ( * ) + - + 90
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT 13 + + COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9669
SELECT 13 + + COUNT ( * ) AS col1
----
14

query I rowsort
SELECT DISTINCT - ( - - 67 )
----
-67

onlyif mysql # DIV for integer division: 
query II rowsort label-9671
SELECT 5 * - - 68 AS col0, + 88 DIV 27
----
340
3

skipif mysql # not compatible
query II rowsort label-9671
SELECT 5 * - - 68 AS col0, + 88 / 27
----
340
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9672
SELECT DISTINCT + + 76 + - 15 DIV + 35
----
76

skipif mysql # not compatible
query I rowsort label-9672
SELECT DISTINCT + + 76 + - 15 / + 35
----
76

query I rowsort
SELECT + + ( 62 ) AS col0
----
62

query I rowsort
SELECT DISTINCT - - 96 - - 9 * 32 * + + 26
----
7584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9675
SELECT 59 * + 14 + + - CAST( NULL AS SIGNED ) + + 28 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9675
SELECT 59 * + 14 + + - CAST ( NULL AS INTEGER ) + + 28 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT DISTINCT - MIN( DISTINCT - 57 )
----
57

skipif mysql # not compatible
query I rowsort label-9676
SELECT DISTINCT - MIN ( DISTINCT - 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT ALL - - ( + SUM( 22 ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL - - ( + SUM ( 22 ) ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9678
SELECT + 30 + + + 17 AS col1, + 0 * 18 * - COUNT( * )
----
47
0

skipif mysql # not compatible
query II rowsort label-9678
SELECT + 30 + + + 17 AS col1, + 0 * 18 * - COUNT ( * )
----
47
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT + COUNT( * ) * + 75 + 18 * + - CASE + 33 WHEN - 8 THEN NULL WHEN + 65 THEN - - 89 * - COALESCE ( + 95, 33 ) - COUNT( * ) WHEN - - COUNT( * ) * 59 * + 5 + 26 + + 30 THEN + - 27 END * - - 60 + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9679
SELECT + COUNT ( * ) * + 75 + 18 * + - CASE + 33 WHEN - 8 THEN NULL WHEN + 65 THEN - - 89 * - COALESCE ( + 95, 33 ) - COUNT ( * ) WHEN - - COUNT ( * ) * 59 * + 5 + 26 + + 30 THEN + - 27 END * - - 60 + + 67
----
NULL

query II rowsort
SELECT 59 AS col2, 41 AS col0
----
59
41

query I rowsort
SELECT DISTINCT + 54 * + - 12
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT - ( - - 38 ) * + - COUNT( ALL + 75 )
----
38

skipif mysql # not compatible
query I rowsort label-9682
SELECT - ( - - 38 ) * + - COUNT ( ALL + 75 )
----
38

query I rowsort
SELECT DISTINCT + 54 * 45 AS col1
----
2430

query I rowsort
SELECT ALL NULLIF ( + + 39, 67 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT + MAX( - + 14 ) + + NULLIF ( 93, + + CASE - + COUNT( * ) WHEN 42 THEN 23 * SUM( DISTINCT + + 63 ) END )
----
79

skipif mysql # not compatible
query I rowsort label-9685
SELECT + MAX ( - + 14 ) + + NULLIF ( 93, + + CASE - + COUNT ( * ) WHEN 42 THEN 23 * SUM ( DISTINCT + + 63 ) END )
----
79

query II rowsort
SELECT DISTINCT 31 AS col1, + 12
----
31
12

query II rowsort
SELECT DISTINCT NULLIF ( - + 49, - 35 ), - 77 AS col0
----
-49
-77

query I rowsort
SELECT ALL + 27 + + + 73 col2
----
100

query I rowsort
SELECT DISTINCT CASE + AVG ( 89 ) WHEN + 21 THEN NULL ELSE + 55 + - - 77 * + 57 END + - + 61 - 22
----
4361

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT + MAX( ALL ( + + 5 ) ) + + 67
----
72

skipif mysql # not compatible
query I rowsort label-9690
SELECT + MAX ( ALL ( + + 5 ) ) + + 67
----
72

query I rowsort
SELECT DISTINCT - 10 + - CASE + - 77 WHEN + 79 THEN - 48 * 63 * - 8 + + 39 WHEN - + 13 THEN NULL END + + 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT + 60 * MAX( - + 59 )
----
-3540

skipif mysql # not compatible
query I rowsort label-9692
SELECT + 60 * MAX ( - + 59 )
----
-3540

query I rowsort
SELECT ALL 66 + + - 24
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT + 36 * - + COUNT( ( + + 2 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-9694
SELECT + 36 * - + COUNT ( ( + + 2 ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT ALL 48 * - MIN( ALL 40 * + 17 ) col0
----
-32640

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL 48 * - MIN ( ALL 40 * + 17 ) col0
----
-32640

query I rowsort
SELECT ALL 18 + + 86 AS col0
----
104

query I rowsort
SELECT + 24 - - ( 81 )
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT - ( SUM( DISTINCT - 35 ) )
----
35

skipif mysql # not compatible
query I rowsort label-9698
SELECT - ( SUM ( DISTINCT - 35 ) )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT + COUNT( * ) * COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9699
SELECT + COUNT ( * ) * COUNT ( * ) col1
----
1

query I rowsort
SELECT ALL ( ( 55 ) ) * 86
----
4730

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT + NULLIF ( 14, + 65 * + COUNT( * ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9701
SELECT + NULLIF ( 14, + 65 * + COUNT ( * ) ) AS col1
----
14

query I rowsort
SELECT ( - COALESCE ( 6, + 11 + - 47 ) )
----
-6

query I rowsort
SELECT + NULLIF ( 43, - 41 )
----
43

query I rowsort
SELECT + CASE - 91 WHEN + 37 THEN + 0 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9705
SELECT DISTINCT - 69 * CAST( NULL AS SIGNED ) - - CASE CAST( ( MAX( - 53 ) ) AS SIGNED ) WHEN + 65 * - COUNT( * ) + AVG ( 21 ) / + 44 THEN 34 * 67 WHEN - 31 - 82 * - AVG ( ALL + ( + 43 ) ) THEN NULL WHEN 44 * 37 THEN + 26 ELSE + 77 + 94 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT - 69 * CAST ( NULL AS INTEGER ) - - CASE CAST ( ( MAX ( - 53 ) ) AS INTEGER ) WHEN + 65 * - COUNT ( * ) + AVG ( 21 ) / + 44 THEN 34 * 67 WHEN - 31 - 82 * - AVG ( ALL + ( + 43 ) ) THEN NULL WHEN 44 * 37 THEN + 26 ELSE + 77 + 94 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT COALESCE ( + 21, MAX( ALL 91 ) ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-9706
SELECT COALESCE ( + 21, MAX ( ALL 91 ) ) AS col2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9707
SELECT DISTINCT 46 DIV + 31 col0
----
1

skipif mysql # not compatible
query I rowsort label-9707
SELECT DISTINCT 46 / + 31 col0
----
1

query I rowsort
SELECT + 10 + 2
----
12

query I rowsort
SELECT + ( + 85 )
----
85

query I rowsort
SELECT + 87 + + 23 AS col2
----
110

query I rowsort
SELECT + 4 * + 28
----
112

query I rowsort
SELECT 58 * 98 + + 15
----
5699

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9713
SELECT COALESCE ( - 55, CAST( NULL AS SIGNED ) + - 10 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-9713
SELECT COALESCE ( - 55, CAST ( NULL AS INTEGER ) + - 10 ) AS col0
----
-55

query I rowsort
SELECT ALL NULLIF ( + 40, 51 ) * + 37 + NULLIF ( + 94, - 26 )
----
1574

query I rowsort
SELECT ALL + 54 * + 91 + 31 * + 72
----
7146

query I rowsort
SELECT - 74 * - 64
----
4736

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT - ( + MIN( + 3 ) ) + + 96
----
93

skipif mysql # not compatible
query I rowsort label-9717
SELECT - ( + MIN ( + 3 ) ) + + 96
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9718
SELECT DISTINCT 89 * COALESCE ( CAST( 83 AS SIGNED ), 41 ) + + 72 * 17
----
8611

skipif mysql # not compatible
query I rowsort label-9718
SELECT DISTINCT 89 * COALESCE ( CAST ( 83 AS INTEGER ), 41 ) + + 72 * 17
----
8611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9719
SELECT - 9 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9719
SELECT - 9 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9720
SELECT ALL - 68 DIV COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL - 68 / COUNT ( * )
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9721
SELECT - 26 DIV COUNT( * ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-9721
SELECT - 26 / COUNT ( * ) AS col0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT - 38 - 5 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT - 38 - 5 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9723
SELECT - CAST( NULL AS DECIMAL ) * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9723
SELECT - CAST ( NULL AS REAL ) * 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT - MAX( 31 ) col2
----
-31

skipif mysql # not compatible
query I rowsort label-9724
SELECT - MAX ( 31 ) col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9725
SELECT DISTINCT - 61 * CAST( NULL AS SIGNED ) + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT DISTINCT - 61 * CAST ( NULL AS INTEGER ) + - COUNT ( * ) col2
----
NULL

query I rowsort
SELECT - NULLIF ( 33, + 52 + ( 55 ) ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT + MIN( ALL + ( - 89 ) ) + + ( - 75 + - ( + 3 ) ) AS col1
----
-167

skipif mysql # not compatible
query I rowsort label-9727
SELECT + MIN ( ALL + ( - 89 ) ) + + ( - 75 + - ( + 3 ) ) AS col1
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT + MAX( 58 ) * - CASE ( - COUNT( ALL + 68 ) ) WHEN 35 * 61 THEN 61 * 80 WHEN CASE + 37 WHEN + 3 THEN 6 * + COALESCE ( + 65, 6 + + 88 / - 81 ) WHEN - COUNT( * ) THEN NULL ELSE NULL END * - 26 THEN NULL ELSE - NULLIF ( + MIN( ( + 16 ) ), 10 + 17 * 47 ) * 99 END col1
----
91872

skipif mysql # not compatible
query I rowsort label-9728
SELECT + MAX ( 58 ) * - CASE ( - COUNT ( ALL + 68 ) ) WHEN 35 * 61 THEN 61 * 80 WHEN CASE + 37 WHEN + 3 THEN 6 * + COALESCE ( + 65, 6 + + 88 / - 81 ) WHEN - COUNT ( * ) THEN NULL ELSE NULL END * - 26 THEN NULL ELSE - NULLIF ( + MIN ( ( + 16 ) ), 10 + 17 * 47 ) * 99 END col1
----
91872

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT - 84 - + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-9729
SELECT - 84 - + COUNT ( * )
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9730
SELECT DISTINCT CASE 1 WHEN - CAST( NULL AS SIGNED ) THEN 91 WHEN 58 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT CASE 1 WHEN - CAST ( NULL AS INTEGER ) THEN 91 WHEN 58 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 60 - + 13 * 27 AS col2
----
-411

query I rowsort
SELECT - 19 * 35 AS col2
----
-665

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9733
SELECT ALL CAST( + 32 AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL CAST ( + 32 AS INTEGER )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9734
SELECT - 24 + - MIN( + 46 + 25 * - ( + 39 ) ) DIV 86
----
-14

skipif mysql # not compatible
query I rowsort label-9734
SELECT - 24 + - MIN ( + 46 + 25 * - ( + 39 ) ) / 86
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT - - MAX( + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-9735
SELECT - - MAX ( + 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT - + COUNT( * ) + ( + 63 - - 24 ) * - 19 AS col2
----
-1654

skipif mysql # not compatible
query I rowsort label-9736
SELECT - + COUNT ( * ) + ( + 63 - - 24 ) * - 19 AS col2
----
-1654

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT + - COUNT( * ) - - NULLIF ( COALESCE ( - 44, 41 * COUNT( - 77 ) ), 97 * - COALESCE ( - 98 * CASE 38 * ( - 64 ) WHEN - AVG ( ALL + 44 ) THEN NULL WHEN COALESCE ( - 32, 75 / 82, + ( - 68 ) ) THEN 40 ELSE ( - 20 ) END, + 42 ) )
----
-45

skipif mysql # not compatible
query I rowsort label-9737
SELECT + - COUNT ( * ) - - NULLIF ( COALESCE ( - 44, 41 * COUNT ( - 77 ) ), 97 * - COALESCE ( - 98 * CASE 38 * ( - 64 ) WHEN - AVG ( ALL + 44 ) THEN NULL WHEN COALESCE ( - 32, 75 / 82, + ( - 68 ) ) THEN 40 ELSE ( - 20 ) END, + 42 ) )
----
-45

query I rowsort
SELECT - - ( - 8 ) col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT ( CASE + ( + 40 ) WHEN - 86 THEN AVG ( + 70 ) + - 35 / 84 WHEN 2 + COUNT( * ) * COUNT( * ) THEN + 40 WHEN AVG ( + COALESCE ( + ( 43 ), 93 + + 90 ) ) THEN NULL ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9739
SELECT ( CASE + ( + 40 ) WHEN - 86 THEN AVG ( + 70 ) + - 35 / 84 WHEN 2 + COUNT ( * ) * COUNT ( * ) THEN + 40 WHEN AVG ( + COALESCE ( + ( 43 ), 93 + + 90 ) ) THEN NULL ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT - + 83 + - 59 * 14 AS col0
----
-909

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT ALL 40 * + COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL 40 * + COUNT ( * ) AS col1
----
40

query I rowsort
SELECT + 10 + + 90 * 82
----
7390

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9743
SELECT - COALESCE ( + CASE SUM( ALL - CAST( NULL AS DECIMAL ) ) WHEN COALESCE ( 43, - 6 + 48 ) * - 32 + + 99 THEN 11 ELSE NULL END, 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-9743
SELECT - COALESCE ( + CASE SUM ( ALL - CAST ( NULL AS REAL ) ) WHEN COALESCE ( 43, - 6 + 48 ) * - 32 + + 99 THEN 11 ELSE NULL END, 23 )
----
-23

query I rowsort
SELECT ALL - 81 * 11
----
-891

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT + 37 + + COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-9745
SELECT + 37 + + COUNT ( * ) AS col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9746
SELECT + + COUNT( * ) DIV + 41
----
0

skipif mysql # not compatible
query I rowsort label-9746
SELECT + + COUNT ( * ) / + 41
----
0

query I rowsort
SELECT + 51 + - 69 * + 99
----
-6780

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT ALL + 37 * - SUM( DISTINCT 13 ) AS col1
----
-481

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL + 37 * - SUM ( DISTINCT 13 ) AS col1
----
-481

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT DISTINCT 25 * - ( + 31 * COUNT( * ) ) AS col0
----
-775

skipif mysql # not compatible
query I rowsort label-9749
SELECT DISTINCT 25 * - ( + 31 * COUNT ( * ) ) AS col0
----
-775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9750
SELECT 76 DIV + SUM( DISTINCT 73 DIV 25 ) + - COALESCE ( 61, 28 + + 0 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-9750
SELECT 76 / + SUM ( DISTINCT 73 / 25 ) + - COALESCE ( 61, 28 + + 0 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT - MIN( ALL 53 ) * - 58
----
3074

skipif mysql # not compatible
query I rowsort label-9751
SELECT - MIN ( ALL 53 ) * - 58
----
3074

query I rowsort
SELECT DISTINCT 65 + ( 31 )
----
96

query I rowsort
SELECT DISTINCT + 43 * 98 AS col0
----
4214

query I rowsort
SELECT ALL - - 9 col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL - 9 + + + COALESCE ( - 23, COUNT( * ) * MAX( DISTINCT 89 ) + + 6 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL - 9 + + + COALESCE ( - 23, COUNT ( * ) * MAX ( DISTINCT 89 ) + + 6 ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT DISTINCT - COUNT( DISTINCT + + 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT - COUNT ( DISTINCT + + 90 )
----
-1

query I rowsort
SELECT ALL - 0 * + ( 5 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT DISTINCT 56 + + - MAX( DISTINCT - 90 )
----
146

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT 56 + + - MAX ( DISTINCT - 90 )
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9759
SELECT DISTINCT - ( - - 77 ) + + CAST( 54 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-9759
SELECT DISTINCT - ( - - 77 ) + + CAST ( 54 AS INTEGER )
----
-23

query I rowsort
SELECT ALL 91 + - 80
----
11

query I rowsort
SELECT 88 + - COALESCE ( 64, 97 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT ALL - COUNT( + - 21 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL - COUNT ( + - 21 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9763
SELECT DISTINCT - SUM( ALL CASE 76 WHEN + 14 * - 38 THEN CAST( NULL AS SIGNED ) * + 61 WHEN + 9 / 50 + 36 THEN NULL END ) * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT - SUM ( ALL CASE 76 WHEN + 14 * - 38 THEN CAST ( NULL AS INTEGER ) * + 61 WHEN + 9 / 50 + 36 THEN NULL END ) * 71
----
NULL

query I rowsort
SELECT 36 * - 89 col0
----
-3204

query I rowsort
SELECT ALL - ( + + 70 ) + - 26 col0
----
-96

query I rowsort
SELECT DISTINCT 90 * + - 39 col2
----
-3510

query I rowsort
SELECT 26 - 96 col0
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9768
SELECT ALL - COUNT( * ) DIV - 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL - COUNT ( * ) / - 49 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT 32 + - COUNT( DISTINCT - 20 )
----
31

skipif mysql # not compatible
query I rowsort label-9769
SELECT 32 + - COUNT ( DISTINCT - 20 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT 13 * COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-9770
SELECT 13 * COUNT ( * )
----
13

query I rowsort
SELECT 51 * + - 6 AS col0
----
-306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9772
SELECT 58 + 1 + ( CASE - ( MIN( ALL - 94 ) ) WHEN + COALESCE ( + 74, + 26 / AVG ( - CAST( - 46 AS SIGNED ) ) ) + 21 * - AVG ( 55 ) THEN 23 END + - 99 * + ( 21 * - COALESCE ( 24, - NULLIF ( + ( 44 ), - 63 ) ) ) ) / CASE 99 / - 95 + - 98 WHEN 7 THEN NULL WHEN CAST( + 44 AS SIGNED ) THEN 33 + - 48 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9772
SELECT 58 + 1 + ( CASE - ( MIN ( ALL - 94 ) ) WHEN + COALESCE ( + 74, + 26 / AVG ( - CAST ( - 46 AS INTEGER ) ) ) + 21 * - AVG ( 55 ) THEN 23 END + - 99 * + ( 21 * - COALESCE ( 24, - NULLIF ( + ( 44 ), - 63 ) ) ) ) / CASE 99 / - 95 + - 98 WHEN 7 THEN NULL WHEN CAST ( + 44 AS INTEGER ) THEN 33 + - 48 END AS col1
----
NULL

query I rowsort
SELECT 3 + 12 * + 27 AS col2
----
327

onlyif mysql # DIV for integer division: 
query I rowsort label-9774
SELECT - + COALESCE ( - - COALESCE ( + 13, 0 + 29 DIV - 9, NULLIF ( - 9, - 48 ) DIV - 90 + - 47 ), 92, 17 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-9774
SELECT - + COALESCE ( - - COALESCE ( + 13, 0 + 29 / - 9, NULLIF ( - 9, - 48 ) / - 90 + - 47 ), 92, 17 ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT ALL - ( - + SUM( + 28 ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL - ( - + SUM ( + 28 ) ) AS col0
----
28

query I rowsort
SELECT ALL - CASE + 98 WHEN AVG ( 11 ) + COALESCE ( 16 + + 30, - 77 * - 85 + - 27 * + 75, - 27 ) THEN 61 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT ALL CASE - 12 WHEN + 71 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE 18 - SUM( ALL 2 ) END
----
16

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL CASE - 12 WHEN + 71 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE 18 - SUM ( ALL 2 ) END
----
16

query I rowsort
SELECT + 35 * - + 69
----
-2415

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT - COUNT( * ) * + COUNT( * ) * - 37 + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-9779
SELECT - COUNT ( * ) * + COUNT ( * ) * - 37 + COUNT ( * )
----
38

query I rowsort
SELECT 98 * - 17 * 71
----
-118286

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9781
SELECT + + CASE - 61 WHEN CAST( 42 AS DECIMAL ) * COUNT( * ) THEN + SUM( ALL - 60 ) ELSE 96 END
----
96

skipif mysql # not compatible
query I rowsort label-9781
SELECT + + CASE - 61 WHEN CAST ( 42 AS REAL ) * COUNT ( * ) THEN + SUM ( ALL - 60 ) ELSE 96 END
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9782
SELECT 29 DIV + + 67
----
0

skipif mysql # not compatible
query I rowsort label-9782
SELECT 29 / + + 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT ALL MAX( DISTINCT 58 ) + + 27
----
85

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL MAX ( DISTINCT 58 ) + + 27
----
85

query I rowsort
SELECT DISTINCT 59 * + - 18 * - 57 AS col2
----
60534

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9785
SELECT ALL + + CASE + 88 WHEN + 8 THEN CASE 83 WHEN - 26 + 95 THEN 17 ELSE - 81 END * + CAST( NULL AS SIGNED ) WHEN 85 + - 27 * + 65 THEN NULL END + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL + + CASE + 88 WHEN + 8 THEN CASE 83 WHEN - 26 + 95 THEN 17 ELSE - 81 END * + CAST ( NULL AS INTEGER ) WHEN 85 + - 27 * + 65 THEN NULL END + 39
----
NULL

query I rowsort
SELECT ( - 46 ) - - ( + 5 ) AS col1
----
-41

query I rowsort
SELECT ALL - NULLIF ( - ( - ( + 30 ) ), + 58 * AVG ( ALL 14 ) ) * 94 col0
----
-2820

onlyif mysql # DIV for integer division: 
query I rowsort label-9788
SELECT 8 DIV 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9788
SELECT 8 / 77 AS col0
----
0

query I rowsort
SELECT DISTINCT + 22 + + + 48 AS col2
----
70

query I rowsort
SELECT ALL - 41 + + 14 * 1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT COUNT( + + 4 ) + - + 99 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-9791
SELECT COUNT ( + + 4 ) + - + 99 AS col0
----
-98

query I rowsort
SELECT NULLIF ( + - 84, + 77 ) * - 57
----
4788

query II rowsort
SELECT + 71 AS col1, 42 + - 7 + 36 AS col0
----
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT 91 + 36 * + COUNT( * )
----
127

skipif mysql # not compatible
query I rowsort label-9794
SELECT 91 + 36 * + COUNT ( * )
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9795
SELECT 26 - 37 * CAST( NULL AS SIGNED ) * 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT 26 - 37 * CAST ( NULL AS INTEGER ) * 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT COUNT( * ) * - 84 * 46 + 36
----
-3828

skipif mysql # not compatible
query I rowsort label-9796
SELECT COUNT ( * ) * - 84 * 46 + 36
----
-3828

query I rowsort
SELECT DISTINCT 3 + + - 89 * - 36 AS col0
----
3207

onlyif mysql # aggregate syntax: 
query II rowsort label-9798
SELECT 99 AS col2, SUM( ALL 36 ) AS col0
----
99
36

skipif mysql # not compatible
query II rowsort label-9798
SELECT 99 AS col2, SUM ( ALL 36 ) AS col0
----
99
36

query I rowsort
SELECT ALL 38 - - - 99 * - 5 AS col0
----
533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9800
SELECT CAST( NULL AS SIGNED ) + + - 64 + + 30 + - 8 * - CASE - 32 WHEN + 64 THEN NULL WHEN COUNT( * ) THEN - 28 / ( - 3 ) + + 91 * - 14 WHEN - 79 THEN - COALESCE ( 68, 50 * + 90 ) + 52 / + 16 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9800
SELECT CAST ( NULL AS INTEGER ) + + - 64 + + 30 + - 8 * - CASE - 32 WHEN + 64 THEN NULL WHEN COUNT ( * ) THEN - 28 / ( - 3 ) + + 91 * - 14 WHEN - 79 THEN - COALESCE ( 68, 50 * + 90 ) + 52 / + 16 END col0
----
NULL

query I rowsort
SELECT ALL - CASE - - 59 WHEN + - 16 THEN NULL WHEN 31 * - AVG ( + 20 * 13 ) + 27 * 51 THEN 10 + - 99 END AS col1
----
NULL

query II rowsort
SELECT 85 AS col2, - 51 * 62 AS col2
----
85
-3162

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT ALL COUNT( * ) - + + 57 - - 73 * 65 col2
----
4689

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL COUNT ( * ) - + + 57 - - 73 * 65 col2
----
4689

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT COUNT( * ) - + 15 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-9804
SELECT COUNT ( * ) - + 15 AS col2
----
-14

query II rowsort
SELECT 66 AS col2, 17
----
66
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9806
SELECT - 0 AS col0, + 10 + + - COALESCE ( - ( - CAST( NULL AS SIGNED ) ), + 43 ) * + 89 AS col1
----
0
-3817

skipif mysql # not compatible
query II rowsort label-9806
SELECT - 0 AS col0, + 10 + + - COALESCE ( - ( - CAST ( NULL AS INTEGER ) ), + 43 ) * + 89 AS col1
----
0
-3817

onlyif mysql # aggregate syntax: 
query II rowsort label-9807
SELECT ALL 1 AS col0, - COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-9807
SELECT ALL 1 AS col0, - COUNT ( * )
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT 70 * 3 * MAX( - 28 ) * - 55 + ( 88 )
----
323488

skipif mysql # not compatible
query I rowsort label-9808
SELECT 70 * 3 * MAX ( - 28 ) * - 55 + ( 88 )
----
323488

query I rowsort
SELECT 61 * + 63 AS col1
----
3843

onlyif mysql # aggregate syntax: 
query II rowsort label-9810
SELECT - 58 col1, CASE + COUNT( * ) WHEN 23 / 75 THEN - 88 / - NULLIF ( 29, ( 15 ) ) WHEN 63 THEN ( NULLIF ( + COUNT( * ), 75 - 58 ) ) * COUNT( ALL - 16 ) + 17 END - + 79
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-9810
SELECT - 58 col1, CASE + COUNT ( * ) WHEN 23 / 75 THEN - 88 / - NULLIF ( 29, ( 15 ) ) WHEN 63 THEN ( NULLIF ( + COUNT ( * ), 75 - 58 ) ) * COUNT ( ALL - 16 ) + 17 END - + 79
----
-58
NULL

query I rowsort
SELECT ALL + 34 * + 45 AS col2
----
1530

query II rowsort
SELECT DISTINCT 47 AS col0, 4 * 64 * + 4 + 18
----
47
1042

onlyif mysql # DIV for integer division: 
query I rowsort label-9813
SELECT + 83 DIV - - 12
----
6

skipif mysql # not compatible
query I rowsort label-9813
SELECT + 83 / - - 12
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT DISTINCT ( + COUNT( * ) ) * + - ( - 11 ) col1
----
11

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT ( + COUNT ( * ) ) * + - ( - 11 ) col1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-9815
SELECT DISTINCT + 22 DIV + 42 + 23
----
23

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT + 22 / + 42 + 23
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9816
SELECT 43 DIV 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9816
SELECT 43 / 55 AS col1
----
0

query II rowsort
SELECT - 26 AS col2, ( + 45 ) * + 66
----
-26
2970

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9818
SELECT DISTINCT + 78 DIV - + CAST( + 17 AS SIGNED ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9818
SELECT DISTINCT + 78 / - + CAST ( + 17 AS INTEGER ) AS col0
----
-4

query I rowsort
SELECT ALL - - 12 + 33
----
45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9820
SELECT 77 + COALESCE ( 88, CAST( NULL AS SIGNED ), + 12 DIV 87 )
----
165

skipif mysql # not compatible
query I rowsort label-9820
SELECT 77 + COALESCE ( 88, CAST ( NULL AS INTEGER ), + 12 / 87 )
----
165

query I rowsort
SELECT - 86 + ( - 17 ) - 49 AS col2
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT - - COUNT( * ) - + + 22 + - + NULLIF ( 58, - 61 * - 99 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-9822
SELECT - - COUNT ( * ) - + + 22 + - + NULLIF ( 58, - 61 * - 99 ) AS col2
----
-79

query I rowsort
SELECT ALL + 29 + - - 59 AS col0
----
88

query I rowsort
SELECT - + 48 + + - 54 AS col2
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) col1
----
1

query I rowsort
SELECT ALL + + CASE + 1 WHEN 71 THEN + 74 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT - - MAX( 84 ) + 26
----
110

skipif mysql # not compatible
query I rowsort label-9827
SELECT - - MAX ( 84 ) + 26
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT ALL 20 * + 71 + - + 18 + - 46 * - COUNT( * )
----
1448

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL 20 * + 71 + - + 18 + - 46 * - COUNT ( * )
----
1448

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT NULLIF ( + ( - - COUNT( * ) ), 63 * CASE 20 + 86 WHEN 75 * 48 THEN 9 ELSE NULL END ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9829
SELECT NULLIF ( + ( - - COUNT ( * ) ), 63 * CASE 20 + 86 WHEN 75 * 48 THEN 9 ELSE NULL END ) col0
----
1

query I rowsort
SELECT - ( 4 ) * - + 59 AS col0
----
236

query I rowsort
SELECT - 45 * 54 + - + ( - 98 )
----
-2332

query I rowsort
SELECT ALL + 96 * CASE + 59 WHEN 49 THEN NULL ELSE 12 * 35 + + 55 END - 38 AS col2
----
45562

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT - 44 * 84 * 5 * - - COUNT( * )
----
-18480

skipif mysql # not compatible
query I rowsort label-9833
SELECT - 44 * 84 * 5 * - - COUNT ( * )
----
-18480

query I rowsort
SELECT ALL ( + 17 ) * - 30
----
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT - 61 + - + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-9835
SELECT - 61 + - + COUNT ( * )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9836
SELECT DISTINCT + MAX( - CAST( NULL AS SIGNED ) ) / - - 33 + - + 43 + + 95 * 79 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9836
SELECT DISTINCT + MAX ( - CAST ( NULL AS INTEGER ) ) / - - 33 + - + 43 + + 95 * 79 col1
----
NULL

query I rowsort
SELECT DISTINCT 90 * - 50 * + 73
----
-328500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9838
SELECT COUNT( - + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9838
SELECT COUNT ( - + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT ALL - 69 * 51 - COUNT( + + 27 ) + - COUNT( * ) AS col2
----
-3521

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL - 69 * 51 - COUNT ( + + 27 ) + - COUNT ( * ) AS col2
----
-3521

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT DISTINCT + SUM( DISTINCT ( ( + 57 ) ) )
----
57

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT + SUM ( DISTINCT ( ( + 57 ) ) )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT + 90 * NULLIF ( - 66, SUM( + 26 ) ) * + 55 AS col1
----
-326700

skipif mysql # not compatible
query I rowsort label-9841
SELECT + 90 * NULLIF ( - 66, SUM ( + 26 ) ) * + 55 AS col1
----
-326700

query I rowsort
SELECT - 1 + + + 64 col0
----
63

query I rowsort
SELECT + 7 + + + 25 AS col0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-9844
SELECT + 84 + COUNT( * ) col2, 8
----
85
8

skipif mysql # not compatible
query II rowsort label-9844
SELECT + 84 + COUNT ( * ) col2, 8
----
85
8

query I rowsort
SELECT + ( ( - 93 ) ) AS col0
----
-93

query I rowsort
SELECT + 54 * + ( - - 83 ) AS col1
----
4482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9847
SELECT + 71 + + - ( - 0 ) + + ( + CAST( NULL AS SIGNED ) ) + + COUNT( * ) * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9847
SELECT + 71 + + - ( - 0 ) + + ( + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) * - 53
----
NULL

query I rowsort
SELECT + 76 + + 5 * 82
----
486

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT + ( + 92 ) + COUNT( * ) - + - SUM( ALL + 55 ) AS col1
----
148

skipif mysql # not compatible
query I rowsort label-9849
SELECT + ( + 92 ) + COUNT ( * ) - + - SUM ( ALL + 55 ) AS col1
----
148

query I rowsort
SELECT ALL 29 * - 70 * 41
----
-83230

query I rowsort
SELECT + + 13 + 38 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT + - 44 * + MAX( 63 )
----
-2772

skipif mysql # not compatible
query I rowsort label-9852
SELECT + - 44 * + MAX ( 63 )
----
-2772

query I rowsort
SELECT - - 38 + + 81 AS col0
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9854
SELECT - + 63 + 3 AS col0, - CAST( NULL AS SIGNED ) AS col0
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-9854
SELECT - + 63 + 3 AS col0, - CAST ( NULL AS INTEGER ) AS col0
----
-60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT ALL + 58 + + - COUNT( * ) - - 74 * + + 85 AS col1
----
6347

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL + 58 + + - COUNT ( * ) - - 74 * + + 85 AS col1
----
6347

query II rowsort
SELECT ALL - 0 * - 22, + 29 AS col2
----
0
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT ALL - CASE + MIN( 11 ) WHEN - + COALESCE ( 20, 90 ) - COUNT( * ) THEN - 12 END + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL - CASE + MIN ( 11 ) WHEN - + COALESCE ( 20, 90 ) - COUNT ( * ) THEN - 12 END + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9858
SELECT ALL 76 + - 76 DIV 64 * - 69 + - 78
----
67

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL 76 + - 76 / 64 * - 69 + - 78
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9859
SELECT - COUNT( * ) DIV + ( + - 64 ) + - - 39 - - 76 AS col0
----
115

skipif mysql # not compatible
query I rowsort label-9859
SELECT - COUNT ( * ) / + ( + - 64 ) + - - 39 - - 76 AS col0
----
115

query I rowsort
SELECT ALL - - 72 + - 27 * 71 AS col1
----
-1845

query I rowsort
SELECT - + 11 * - ( - + 29 ) + 99 * + 59
----
5522

query I rowsort
SELECT DISTINCT NULLIF ( 49, + + 65 + 0 * ( + 78 ) ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT + - ( SUM( ALL + 92 ) ) - - + ( + 16 )
----
-76

skipif mysql # not compatible
query I rowsort label-9863
SELECT + - ( SUM ( ALL + 92 ) ) - - + ( + 16 )
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-9864
SELECT ALL - + 5 DIV ( - + 12 ) + + 46
----
46

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL - + 5 / ( - + 12 ) + + 46
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9865
SELECT - 80 DIV + + 28 * + COUNT( * ), + 1 - - COUNT( * ) AS col1
----
-2
2

skipif mysql # not compatible
query II rowsort label-9865
SELECT - 80 / + + 28 * + COUNT ( * ), + 1 - - COUNT ( * ) AS col1
----
-2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT - 56 * - CASE NULLIF ( COALESCE ( + 41, 42 + 28, + 39 ), 38 * - 59 ) WHEN CASE - 4 WHEN - 79 * + 57 THEN + 18 WHEN + 12 THEN NULL WHEN 89 THEN + 85 WHEN - 49 + 40 THEN NULL END THEN 33 + 94 WHEN COALESCE ( + CASE + 92 WHEN + 6 THEN - 83 WHEN 44 * 67 THEN NULL WHEN - 88 / - 24 THEN + 69 + + CASE COUNT( * ) WHEN + 19 + 90 THEN NULL WHEN - 61 * + 91 THEN MIN( ALL 99 ) + - 42 * + 45 END ELSE - 36 * COUNT( * ) END, 72 + 8 ) THEN NULL WHEN - COUNT( * ) THEN NULL ELSE MIN( - 74 ) - + 74 * COUNT( * ) END AS col1
----
-8288

skipif mysql # not compatible
query I rowsort label-9866
SELECT - 56 * - CASE NULLIF ( COALESCE ( + 41, 42 + 28, + 39 ), 38 * - 59 ) WHEN CASE - 4 WHEN - 79 * + 57 THEN + 18 WHEN + 12 THEN NULL WHEN 89 THEN + 85 WHEN - 49 + 40 THEN NULL END THEN 33 + 94 WHEN COALESCE ( + CASE + 92 WHEN + 6 THEN - 83 WHEN 44 * 67 THEN NULL WHEN - 88 / - 24 THEN + 69 + + CASE COUNT ( * ) WHEN + 19 + 90 THEN NULL WHEN - 61 * + 91 THEN MIN ( ALL 99 ) + - 42 * + 45 END ELSE - 36 * COUNT ( * ) END, 72 + 8 ) THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE MIN ( - 74 ) - + 74 * COUNT ( * ) END AS col1
----
-8288

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9867
SELECT ALL + CAST( COALESCE ( 65, - 40 ) AS SIGNED ) DIV 85 - + 41 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL + CAST ( COALESCE ( 65, - 40 ) AS INTEGER ) / 85 - + 41 AS col0
----
-41

query I rowsort
SELECT - 68 * + 24 AS col1
----
-1632

query I rowsort
SELECT - 44 - - 49 AS col2
----
5

query I rowsort
SELECT ALL + 51 * 64
----
3264

query I rowsort
SELECT - 20 - - 1 col1
----
-19

query I rowsort
SELECT ALL + 78 * 99 AS col0
----
7722

query II rowsort
SELECT + 30, 45 AS col1
----
30
45

query I rowsort
SELECT DISTINCT + CASE - + 88 WHEN + 37 THEN + 69 WHEN + 62 THEN 93 END * 5 AS col2
----
NULL

query I rowsort
SELECT - 84 + + ( + + 35 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT - 2 * CASE WHEN NOT - ( + - 81 ) NOT BETWEEN ( + 5 + 83 * COUNT( * ) ) AND - 82 THEN 27 WHEN NOT ( 45 * 26 ) IS NULL THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9876
SELECT - 2 * CASE WHEN NOT - ( + - 81 ) NOT BETWEEN ( + 5 + 83 * COUNT ( * ) ) AND - 82 THEN 27 WHEN NOT ( 45 * 26 ) IS NULL THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT 52 * - 76 + SUM( + 77 ) AS col2
----
-3875

skipif mysql # not compatible
query I rowsort label-9877
SELECT 52 * - 76 + SUM ( + 77 ) AS col2
----
-3875

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT - 66 - 80 - + - MAX( DISTINCT - 82 )
----
-228

skipif mysql # not compatible
query I rowsort label-9878
SELECT - 66 - 80 - + - MAX ( DISTINCT - 82 )
----
-228

query I rowsort
SELECT ( + ( - ( - 98 ) ) ) AS col1
----
98

query I rowsort
SELECT + COALESCE ( + + 18, - ( - 17 ), + - 95 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT ALL 33 * - - ( - 85 ) + + 34 * - COUNT( * ) AS col0
----
-2839

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL 33 * - - ( - 85 ) + + 34 * - COUNT ( * ) AS col0
----
-2839

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT + MIN( 80 )
----
80

skipif mysql # not compatible
query I rowsort label-9882
SELECT + MIN ( 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT DISTINCT + COUNT( * ) * COUNT( - 1 ) + + CASE - 21 WHEN - 29 THEN 55 - - 87 ELSE NULL END - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9883
SELECT DISTINCT + COUNT ( * ) * COUNT ( - 1 ) + + CASE - 21 WHEN - 29 THEN 55 - - 87 ELSE NULL END - 26
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT - + 33 DIV 2 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-9884
SELECT - + 33 / 2 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-9885
SELECT DISTINCT 0 * COUNT( * ) + 27 AS col2, 5 AS col2
----
27
5

skipif mysql # not compatible
query II rowsort label-9885
SELECT DISTINCT 0 * COUNT ( * ) + 27 AS col2, 5 AS col2
----
27
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9886
SELECT + - NULLIF ( + CAST( + COUNT( ALL + 19 ) AS SIGNED ), + 55 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9886
SELECT + - NULLIF ( + CAST ( + COUNT ( ALL + 19 ) AS INTEGER ), + 55 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT ALL COUNT( * ) * - 3 + + 38 + + COUNT( DISTINCT - - 42 ) - + 12
----
24

skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL COUNT ( * ) * - 3 + + 38 + + COUNT ( DISTINCT - - 42 ) - + 12
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9888
SELECT + 44 AS col1, - CAST( NULL AS DECIMAL )
----
44
NULL

skipif mysql # not compatible
query II rowsort label-9888
SELECT + 44 AS col1, - CAST ( NULL AS REAL )
----
44
NULL

query I rowsort
SELECT - + 73 + 71 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT + COALESCE ( - 37, - - COUNT( * ) + + - 88 * + COUNT( ALL 11 ) * - 60 - 50 * 22, + COUNT( * ) ) * 70 AS col0
----
-2590

skipif mysql # not compatible
query I rowsort label-9890
SELECT + COALESCE ( - 37, - - COUNT ( * ) + + - 88 * + COUNT ( ALL 11 ) * - 60 - 50 * 22, + COUNT ( * ) ) * 70 AS col0
----
-2590

query I rowsort
SELECT DISTINCT 80 + 39
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT ALL CASE WHEN NOT COUNT( * ) IS NOT NULL THEN NULL WHEN NULL <= - COUNT( * ) THEN + 11 / + 69 WHEN NOT ( + 31 / - 78 ) IS NULL THEN - 18 + 83 ELSE NULL END
----
65

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN NULL WHEN NULL <= - COUNT ( * ) THEN + 11 / + 69 WHEN NOT ( + 31 / - 78 ) IS NULL THEN - 18 + 83 ELSE NULL END
----
65

query I rowsort
SELECT DISTINCT + CASE + - 6 WHEN 58 * - + ( + COALESCE ( + 84, + 75 * 96 ) ) + 89 THEN - 35 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9894
SELECT DISTINCT + 59 + - MIN( 70 ) col2, - 3
----
-11
-3

skipif mysql # not compatible
query II rowsort label-9894
SELECT DISTINCT + 59 + - MIN ( 70 ) col2, - 3
----
-11
-3

query I rowsort
SELECT 83 + + 10 AS col2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9896
SELECT + 4 + - CAST( ( - 92 ) AS SIGNED ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-9896
SELECT + 4 + - CAST ( ( - 92 ) AS INTEGER ) AS col0
----
96

query I rowsort
SELECT ALL - 46 - + 69 AS col1
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT 52 - + COUNT( * ) * + 45 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-9898
SELECT 52 - + COUNT ( * ) * + 45 AS col1
----
7

query II rowsort
SELECT - + 39 AS col0, - 9 * + 25 * 4 AS col1
----
-39
-900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9900
SELECT CAST( + ( + NULLIF ( + MIN( DISTINCT 43 ), + 42 - - 95 * - 46 ) ) AS SIGNED ) + - 52 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-9900
SELECT CAST ( + ( + NULLIF ( + MIN ( DISTINCT 43 ), + 42 - - 95 * - 46 ) ) AS INTEGER ) + - 52 AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9901
SELECT DISTINCT 91 * + 1 * + 6 * - CASE + 73 WHEN - - COUNT( - 76 ) THEN 1 WHEN 82 / CAST( - 76 AS SIGNED ) + + 20 * 40 THEN NULL END / 80
----
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT 91 * + 1 * + 6 * - CASE + 73 WHEN - - COUNT ( - 76 ) THEN 1 WHEN 82 / CAST ( - 76 AS INTEGER ) + + 20 * 40 THEN NULL END / 80
----
NULL

query II rowsort
SELECT DISTINCT - 65 AS col1, - 65 * 35 * - + 64
----
-65
145600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9903
SELECT CAST( NULL AS SIGNED ) + + 77 + COUNT( ALL + - 27 ) * + 89 * + CASE 30 WHEN 82 * 74 THEN NULL ELSE 99 * - COALESCE ( + 99 * 49, COUNT( * ) + CASE 21 + 33 WHEN 96 + - 57 THEN - COUNT( DISTINCT - 67 ) ELSE NULL END ) END * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9903
SELECT CAST ( NULL AS INTEGER ) + + 77 + COUNT ( ALL + - 27 ) * + 89 * + CASE 30 WHEN 82 * 74 THEN NULL ELSE 99 * - COALESCE ( + 99 * 49, COUNT ( * ) + CASE 21 + 33 WHEN 96 + - 57 THEN - COUNT ( DISTINCT - 67 ) ELSE NULL END ) END * 18
----
NULL

query I rowsort
SELECT NULLIF ( + - 77, + 65 + 95 + - 84 ) * 18 col0
----
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT ALL - MAX( DISTINCT - 18 )
----
18

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL - MAX ( DISTINCT - 18 )
----
18

query II rowsort
SELECT + 30, + 12 + + 58 * - 20 AS col0
----
30
-1148

onlyif mysql # aggregate syntax: 
query II rowsort label-9907
SELECT 9, 11 * - - NULLIF ( COUNT( * ), 82 ) AS col1
----
9
11

skipif mysql # not compatible
query II rowsort label-9907
SELECT 9, 11 * - - NULLIF ( COUNT ( * ), 82 ) AS col1
----
9
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9908
SELECT CAST( NULL AS SIGNED ) * + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT CAST ( NULL AS INTEGER ) * + 57 AS col0
----
NULL

query II rowsort
SELECT + 89 col1, + 49 AS col2
----
89
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT ALL - 75 + + COUNT( * ) + + 51 * - - 26 * + + 75 AS col2
----
99376

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL - 75 + + COUNT ( * ) + + 51 * - - 26 * + + 75 AS col2
----
99376

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT 57 + - - ( + - MIN( - 69 ) ) * MAX( + 25 ) AS col2
----
1782

skipif mysql # not compatible
query I rowsort label-9911
SELECT 57 + - - ( + - MIN ( - 69 ) ) * MAX ( + 25 ) AS col2
----
1782

query II rowsort
SELECT + 51 AS col1, 25 AS col2
----
51
25

query II rowsort
SELECT ALL - 96, 22 AS col2
----
-96
22

query I rowsort
SELECT DISTINCT 71 + - 73
----
-2

query II rowsort
SELECT 70 * + 13 col1, + 96 * + 16
----
910
1536

query II rowsort
SELECT 90, - 58 AS col2
----
90
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL - + MAX( ALL - 37 ) + - 0 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL - + MAX ( ALL - 37 ) + - 0 AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9918
SELECT - COUNT( * ) + MIN( - - 4 ) + ( - 38 ) + + ( - 46 ) + - CAST( NULL AS SIGNED ) * SUM( 42 * 58 ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9918
SELECT - COUNT ( * ) + MIN ( - - 4 ) + ( - 38 ) + + ( - 46 ) + - CAST ( NULL AS INTEGER ) * SUM ( 42 * 58 ) * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + - 39 * - - 73 * + + 98 - 76 * - 99 + 89
----
-271393

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9920
SELECT - 94 + + COALESCE ( 42, - + 85 * 20 - - COUNT( * ) + 89 ) DIV 45
----
-94

skipif mysql # not compatible
query I rowsort label-9920
SELECT - 94 + + COALESCE ( 42, - + 85 * 20 - - COUNT ( * ) + 89 ) / 45
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT DISTINCT + + ( - 35 ) + - COALESCE ( + 54, 25 - MAX( - 84 ) * 54 )
----
-89

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT + + ( - 35 ) + - COALESCE ( + 54, 25 - MAX ( - 84 ) * 54 )
----
-89

query II rowsort
SELECT - 34 AS col0, 9 AS col0
----
-34
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT ALL + + MAX( - 22 ) + + 85 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL + + MAX ( - 22 ) + + 85 AS col2
----
63

query I rowsort
SELECT + 61 + - + 77
----
-16

query I rowsort
SELECT DISTINCT + - 76 + - - 55 AS col0
----
-21

query I rowsort
SELECT 52 + 9 * - 97 AS col0
----
-821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9927
SELECT DISTINCT - 50 * + + CAST( NULL AS SIGNED ) * 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT DISTINCT - 50 * + + CAST ( NULL AS INTEGER ) * 43 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9928
SELECT 0 * - COUNT( * ) AS col1, + COUNT( * ) * - 31 + + ( - + COUNT( * ) ) * + 76
----
0
-107

skipif mysql # not compatible
query II rowsort label-9928
SELECT 0 * - COUNT ( * ) AS col1, + COUNT ( * ) * - 31 + + ( - + COUNT ( * ) ) * + 76
----
0
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT + 1 * + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9929
SELECT + 1 * + COUNT ( * ) col2
----
1

query I rowsort
SELECT ALL - ( + + 43 ) * - ( ( - 66 ) ) AS col0
----
-2838

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT 21 + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-9931
SELECT 21 + COUNT ( * )
----
22

query I rowsort
SELECT ALL + ( - - 37 ) - - 40 AS col0
----
77

query I rowsort
SELECT - 68 * - 10 * ( - + 36 ) * - 24 * - 60
----
-35251200

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT - COUNT( * ) + - 95 col2
----
-96

skipif mysql # not compatible
query I rowsort label-9934
SELECT - COUNT ( * ) + - 95 col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT DISTINCT - + MAX( 62 ) - 77 AS col0
----
-139

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT - + MAX ( 62 ) - 77 AS col0
----
-139

query I rowsort
SELECT 42 * 65 AS col1
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT COUNT( * ) - - 72 * - + 94
----
-6767

skipif mysql # not compatible
query I rowsort label-9937
SELECT COUNT ( * ) - - 72 * - + 94
----
-6767

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT 26 + + COUNT( * ) * - 60
----
-34

skipif mysql # not compatible
query I rowsort label-9938
SELECT 26 + + COUNT ( * ) * - 60
----
-34

onlyif mysql # DIV for integer division: 
query II rowsort label-9939
SELECT 32 DIV + 32, - NULLIF ( + 79, + - 9 ) AS col0
----
1
-79

skipif mysql # not compatible
query II rowsort label-9939
SELECT 32 / + 32, - NULLIF ( + 79, + - 9 ) AS col0
----
1
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-9940
SELECT DISTINCT - 34 DIV - 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT - 34 / - 67 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT ALL MIN( + + 66 ) * 92 + 5 * 92 AS col1
----
6532

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL MIN ( + + 66 ) * 92 + 5 * 92 AS col1
----
6532

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT ALL 51 * + + 8 * + COUNT( * ) + 45 + 36 col2
----
489

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL 51 * + + 8 * + COUNT ( * ) + 45 + 36 col2
----
489

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT MAX( DISTINCT - 68 ) - 91 AS col0
----
-159

skipif mysql # not compatible
query I rowsort label-9943
SELECT MAX ( DISTINCT - 68 ) - 91 AS col0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT ALL COUNT( * ) * - 73 * + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL COUNT ( * ) * - 73 * + COUNT ( * )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9945
SELECT MIN( + CAST( - 39 AS SIGNED ) ) * + + ( + 70 ) AS col0
----
-2730

skipif mysql # not compatible
query I rowsort label-9945
SELECT MIN ( + CAST ( - 39 AS INTEGER ) ) * + + ( + 70 ) AS col0
----
-2730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9946
SELECT CAST( 53 AS SIGNED ) - 24
----
29

skipif mysql # not compatible
query I rowsort label-9946
SELECT CAST ( 53 AS INTEGER ) - 24
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT ALL - NULLIF ( - 46, + 87 * + + COUNT( * ) ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL - NULLIF ( - 46, + 87 * + + COUNT ( * ) ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT COUNT( ALL - 64 )
----
1

skipif mysql # not compatible
query I rowsort label-9948
SELECT COUNT ( ALL - 64 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT COUNT( * ) * + - MIN( ALL - 87 ) * - 28 AS col2
----
-2436

skipif mysql # not compatible
query I rowsort label-9949
SELECT COUNT ( * ) * + - MIN ( ALL - 87 ) * - 28 AS col2
----
-2436

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9950
SELECT COUNT( * ) DIV - 82 AS col0, ( - 68 ) AS col1
----
0
-68

skipif mysql # not compatible
query II rowsort label-9950
SELECT COUNT ( * ) / - 82 AS col0, ( - 68 ) AS col1
----
0
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9951
SELECT 50 + COUNT( * ) * 29 DIV - 39 * + ( - 85 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-9951
SELECT 50 + COUNT ( * ) * 29 / - 39 * + ( - 85 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT + MIN( - 96 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-9952
SELECT + MIN ( - 96 ) AS col0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9953
SELECT CAST( NULL AS SIGNED ) * + ( - 60 ) * + - 62 * - 7 + - + 51 * + 87 + - 79 * + NULLIF ( - 80, AVG ( DISTINCT 90 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT CAST ( NULL AS INTEGER ) * + ( - 60 ) * + - 62 * - 7 + - + 51 * + 87 + - 79 * + NULLIF ( - 80, AVG ( DISTINCT 90 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT - 83 - - 27 + - 90 * - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-9954
SELECT - 83 - - 27 + - 90 * - COUNT ( * )
----
34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9955
SELECT ALL 53 DIV + - 77 + 10, CAST( NULL AS SIGNED ) * 35 AS col1
----
10
NULL

skipif mysql # not compatible
query II rowsort label-9955
SELECT ALL 53 / + - 77 + 10, CAST ( NULL AS INTEGER ) * 35 AS col1
----
10
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9956
SELECT ALL + CAST( NULL AS SIGNED ) * 84 / - 41 + - 26 * + 47 * 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL + CAST ( NULL AS INTEGER ) * 84 / - 41 + - 26 * + 47 * 64 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9957
SELECT DISTINCT + 34 DIV - 61 col0
----
0

skipif mysql # not compatible
query I rowsort label-9957
SELECT DISTINCT + 34 / - 61 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT + - MIN( + COALESCE ( - - 72, - 89 ) ) * 16 AS col2
----
-1152

skipif mysql # not compatible
query I rowsort label-9958
SELECT + - MIN ( + COALESCE ( - - 72, - 89 ) ) * 16 AS col2
----
-1152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9959
SELECT + CAST( - + 47 AS SIGNED ) AS col1, + 75
----
-47
75

skipif mysql # not compatible
query II rowsort label-9959
SELECT + CAST ( - + 47 AS INTEGER ) AS col1, + 75
----
-47
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9960
SELECT - + 32 + - + 22 DIV - + 2
----
-21

skipif mysql # not compatible
query I rowsort label-9960
SELECT - + 32 + - + 22 / - + 2
----
-21

query I rowsort
SELECT ALL - 21 * + 44
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT ALL 42 * - 42 * MAX( + - 25 ) + + ( + CASE WHEN NOT ( NULL ) < AVG ( + 56 ) THEN 3 * 87 + 16 END ) + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL 42 * - 42 * MAX ( + - 25 ) + + ( + CASE WHEN NOT ( NULL ) < AVG ( + 56 ) THEN 3 * 87 + 16 END ) + + 23
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9963
SELECT + 12 + - + COUNT( * ) AS col0, ( MIN( ALL + 22 ) ) col0
----
11
22

skipif mysql # not compatible
query II rowsort label-9963
SELECT + 12 + - + COUNT ( * ) AS col0, ( MIN ( ALL + 22 ) ) col0
----
11
22

query I rowsort
SELECT + + ( - 73 )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9965
SELECT + 30 * - 99 * + - 41 + CAST( 12 AS SIGNED ) col1
----
121782

skipif mysql # not compatible
query I rowsort label-9965
SELECT + 30 * - 99 * + - 41 + CAST ( 12 AS INTEGER ) col1
----
121782

query I rowsort
SELECT + 39 + + + 37 * + - 12 * - 78
----
34671

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ALL MIN( DISTINCT - 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL MIN ( DISTINCT - 41 ) AS col1
----
-41

query I rowsort
SELECT DISTINCT 26 * + ( + 93 ) AS col2
----
2418

query I rowsort
SELECT - - 5 * 27 * + - 11
----
-1485

onlyif mysql # DIV for integer division: 
query I rowsort label-9970
SELECT ALL + - 86 DIV - + 77
----
1

skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL + - 86 / - + 77
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9971
SELECT ALL ( 63 ) AS col0, 28 - + 48 * NULLIF ( - 22, - 5 * ( COUNT( * ) ) ) DIV + 73 AS col2
----
63
42

skipif mysql # not compatible
query II rowsort label-9971
SELECT ALL ( 63 ) AS col0, 28 - + 48 * NULLIF ( - 22, - 5 * ( COUNT ( * ) ) ) / + 73 AS col2
----
63
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9972
SELECT - - 14 + 10 DIV + MIN( ALL 57 ) * + ( 19 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-9972
SELECT - - 14 + 10 / + MIN ( ALL 57 ) * + ( 19 ) AS col2
----
14

query I rowsort
SELECT ALL + 92 * + 86 col0
----
7912

query I rowsort
SELECT - 97 + + 62
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9975
SELECT ALL + 19 DIV - COUNT( * ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL + 19 / - COUNT ( * ) AS col1
----
-19

query I rowsort
SELECT - 9 + + 63 col1
----
54

query I rowsort
SELECT - 68 * - 7 AS col1
----
476

query I rowsort
SELECT - 85 + + - 36
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9979
SELECT ALL COALESCE ( - 76, + 35 DIV + ( COALESCE ( + - NULLIF ( - - MIN( DISTINCT + + 96 ), 54 + + 93 * 91 ), 94 ) ), 63 * - COUNT( * ), 74 * 60 + - 83 * 4 )
----
-76

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL COALESCE ( - 76, + 35 / + ( COALESCE ( + - NULLIF ( - - MIN ( DISTINCT + + 96 ), 54 + + 93 * 91 ), 94 ) ), 63 * - COUNT ( * ), 74 * 60 + - 83 * 4 )
----
-76

query I rowsort
SELECT - 61 + + 68
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9981
SELECT + CASE + 68 WHEN ( - + 31 ) THEN NULL WHEN 79 THEN NULL ELSE + NULLIF ( + - 95, 33 ) DIV 33 + 99 END - - 12 DIV COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-9981
SELECT + CASE + 68 WHEN ( - + 31 ) THEN NULL WHEN 79 THEN NULL ELSE + NULLIF ( + - 95, 33 ) / 33 + 99 END - - 12 / COUNT ( * )
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT - 38 + - 47 * 84 * + - SUM( ALL 23 ) AS col1
----
90766

skipif mysql # not compatible
query I rowsort label-9982
SELECT - 38 + - 47 * 84 * + - SUM ( ALL 23 ) AS col1
----
90766

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9983
SELECT ALL - MIN( ALL + 82 ) + + 44 + CAST( NULL AS SIGNED ) * - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL - MIN ( ALL + 82 ) + + 44 + CAST ( NULL AS INTEGER ) * - 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT ALL - COALESCE ( COUNT( * ), 18 ) * - 4 + + 24 * - 10 + - 31 - - COUNT( * )
----
-266

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL - COALESCE ( COUNT ( * ), 18 ) * - 4 + + 24 * - 10 + - 31 - - COUNT ( * )
----
-266

onlyif mysql # DIV for integer division: 
query I rowsort label-9985
SELECT DISTINCT 46 DIV 13 + 51 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9985
SELECT DISTINCT 46 / 13 + 51 AS col0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9986
SELECT ALL COALESCE ( 54, - + 64 * COALESCE ( - 93, + 19 ) + + + COALESCE ( + - COUNT( * ), 91 + 0 ) ) DIV COUNT( * ) + + 48 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL COALESCE ( 54, - + 64 * COALESCE ( - 93, + 19 ) + + + COALESCE ( + - COUNT ( * ), 91 + 0 ) ) / COUNT ( * ) + + 48 AS col2
----
102

query I rowsort
SELECT - 72 * - 34 * - + 70 AS col0
----
-171360

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT + CASE - ( 71 ) WHEN + COUNT( * ) + - + 19 + + 66 + 21 THEN + + 65 * - 71 END * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9988
SELECT + CASE - ( 71 ) WHEN + COUNT ( * ) + - + 19 + + 66 + 21 THEN + + 65 * - 71 END * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9989
SELECT + CASE - + COALESCE ( + - 97, COALESCE ( 50, CASE + + 43 WHEN - 60 * 24 - + 64 THEN NULL WHEN - CASE 40 WHEN ( + 98 ) * - 57 THEN - 38 + 14 WHEN + CAST( NULL AS SIGNED ) - + 94 THEN NULL WHEN MAX( NULLIF ( - 99, 29 ) ) THEN NULL ELSE COUNT( * ) END + + 42 THEN ( COUNT( * ) ) + 83 END + 36, - CAST( COALESCE ( 67, 29 + + 30 ) AS SIGNED ) * 69 ) * 41 ) WHEN + 64 THEN - 5 * - 37 END * + COUNT( * ) + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9989
SELECT + CASE - + COALESCE ( + - 97, COALESCE ( 50, CASE + + 43 WHEN - 60 * 24 - + 64 THEN NULL WHEN - CASE 40 WHEN ( + 98 ) * - 57 THEN - 38 + 14 WHEN + CAST ( NULL AS INTEGER ) - + 94 THEN NULL WHEN MAX ( NULLIF ( - 99, 29 ) ) THEN NULL ELSE COUNT ( * ) END + + 42 THEN ( COUNT ( * ) ) + 83 END + 36, - CAST ( COALESCE ( 67, 29 + + 30 ) AS INTEGER ) * 69 ) * 41 ) WHEN + 64 THEN - 5 * - 37 END * + COUNT ( * ) + - 32
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9990
SELECT + COUNT( * ) col2, + 79
----
1
79

skipif mysql # not compatible
query II rowsort label-9990
SELECT + COUNT ( * ) col2, + 79
----
1
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9991
SELECT + - 9 AS col2, + 8 * CAST( - CASE 11 WHEN + 29 / - 55 + + 49 THEN ( 81 ) - 1 WHEN + 0 THEN 95 WHEN 30 THEN - 37 * + 60 + - COUNT( * ) ELSE - 96 * CASE COUNT( * ) WHEN 50 THEN NULL ELSE MAX( + 65 ) END END AS SIGNED ) * - 63
----
-9
-3144960

skipif mysql # not compatible
query II rowsort label-9991
SELECT + - 9 AS col2, + 8 * CAST ( - CASE 11 WHEN + 29 / - 55 + + 49 THEN ( 81 ) - 1 WHEN + 0 THEN 95 WHEN 30 THEN - 37 * + 60 + - COUNT ( * ) ELSE - 96 * CASE COUNT ( * ) WHEN 50 THEN NULL ELSE MAX ( + 65 ) END END AS INTEGER ) * - 63
----
-9
-3144960

onlyif mysql # DIV for integer division: 
query II rowsort label-9992
SELECT + - 11 * 42 DIV + 31 AS col2, 74 AS col1
----
-14
74

skipif mysql # not compatible
query II rowsort label-9992
SELECT + - 11 * 42 / + 31 AS col2, 74 AS col1
----
-14
74

query I rowsort
SELECT ALL - - NULLIF ( - 90, 7 ) * + + 27 - + + 37 * - 88 * - 48 + - + 48
----
-158766

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9994
SELECT DISTINCT - 72 * - - 19 * + ( CAST( 85 AS SIGNED ) ) AS col2
----
-116280

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT - 72 * - - 19 * + ( CAST ( 85 AS INTEGER ) ) AS col2
----
-116280

onlyif mysql # DIV for integer division: 
query I rowsort label-9995
SELECT + - 61 DIV - - 7 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-9995
SELECT + - 61 / - - 7 AS col0
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9996
SELECT - 30 * + + COUNT( * ) DIV + MIN( 59 ) + ( + 7 ) + ( 88 )
----
95

skipif mysql # not compatible
query I rowsort label-9996
SELECT - 30 * + + COUNT ( * ) / + MIN ( 59 ) + ( + 7 ) + ( 88 )
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9997
SELECT ALL CAST( NULL AS SIGNED ) * + 68 + - 99, CASE - 87 WHEN - 26 * 59 THEN + 43 - - 19 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9997
SELECT ALL CAST ( NULL AS INTEGER ) * + 68 + - 99, CASE - 87 WHEN - 26 * 59 THEN + 43 - - 19 END
----
NULL
NULL

query I rowsort
SELECT ALL - CASE + 34 WHEN - 21 * 64 - 80 THEN + NULLIF ( 45, - + 12 * 96 ) END * - 22 - + 86 AS col1
----
NULL

query II rowsort
SELECT 38, + 65 + - 98 AS col1
----
38
-33

