sqllogictest
Artifact Content
Not logged in

Artifact 504f364f00b6014f08ee5d0b15872c5781772a06:


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 col