sqllogictest
Artifact Content
Not logged in

Artifact 9346cc3b30386a2af5c1c8b352b5632bad7df95c:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-504
SELECT ( + 21 ), 21 * - 7 * COUNT ( * ) col0
----
21
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT DISTINCT - 60 * + MIN( ALL + - ( + 5 ) )
----
300

skipif mysql # not compatible
query I rowsort label-505
SELECT DISTINCT - 60 * + MIN ( ALL + - ( + 5 ) )
----
300

query I rowsort
SELECT DISTINCT + ( + 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT COUNT( * ) * + + COUNT( * ) * + - ( + 55 ) - - 40 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-507
SELECT COUNT ( * ) * + + COUNT ( * ) * + - ( + 55 ) - - 40 AS col0
----
-15

query I rowsort
SELECT ALL - 92 * - 77 + + ( - 62 ) AS col0
----
7022

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT 79 * - + COUNT( * ) - - 22
----
-57

skipif mysql # not compatible
query I rowsort label-509
SELECT 79 * - + COUNT ( * ) - - 22
----
-57

query II rowsort
SELECT - 95 + - + 12 AS col0, 89 AS col1
----
-107
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-511
SELECT ALL + ( - 9 ) * ( - + 45 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL + ( - 9 ) * ( - + 45 ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT NULLIF ( - - 28, + ( - 48 ) )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-513
SELECT CASE + 52 WHEN 33 THEN NULL WHEN - 88 THEN NULL WHEN 90 + 91 + - 77 THEN NULL ELSE + 66 * + 87 * + CAST( 40 AS SIGNED ) END AS col2
----
229680

skipif mysql # not compatible
query I rowsort label-513
SELECT CASE + 52 WHEN 33 THEN NULL WHEN - 88 THEN NULL WHEN 90 + 91 + - 77 THEN NULL ELSE + 66 * + 87 * + CAST ( 40 AS INTEGER ) END AS col2
----
229680

query I rowsort
SELECT NULLIF ( + 70, + - 51 )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-515
SELECT - 47 DIV + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-515
SELECT - 47 / + 99 AS col2
----
0

query I rowsort
SELECT ALL + CASE - NULLIF ( 43, + - 71 * + 28 ) WHEN + 89 - - 82 THEN - 97 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT ALL 29 * 43 + - MAX( - 8 ) AS col1
----
1255

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL 29 * 43 + - MAX ( - 8 ) AS col1
----
1255

query I rowsort
SELECT 16 * - 19 * 33 - - 85 AS col0
----
-9947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-519
SELECT DISTINCT CAST( - + COALESCE ( + ( 78 ), - - 32 * + + 31 ) AS SIGNED ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT CAST ( - + COALESCE ( + ( 78 ), - - 32 * + + 31 ) AS INTEGER ) AS col2
----
-78

query I rowsort
SELECT - 29 * + - 19 AS col1
----
551

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT COUNT( ALL ( + 60 ) )
----
1

skipif mysql # not compatible
query I rowsort label-521
SELECT COUNT ( ALL ( + 60 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT ALL + COUNT( * ) * + 28 + + + 71
----
99

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL + COUNT ( * ) * + 28 + + + 71
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT MAX( ALL 14 )
----
14

skipif mysql # not compatible
query I rowsort label-523
SELECT MAX ( ALL 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT - - 58 + - 83 + + CASE COUNT( * ) WHEN - + 13 THEN + 87 / 21 + 47 + + + COUNT( * ) + 51 WHEN - 56 * - 62 + COUNT( * ) THEN + + 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-524
SELECT - - 58 + - 83 + + CASE COUNT ( * ) WHEN - + 13 THEN + 87 / 21 + 47 + + + COUNT ( * ) + 51 WHEN - 56 * - 62 + COUNT ( * ) THEN + + 72 END
----
NULL

query I rowsort
SELECT + - ( 19 ) - - - 58 * - + 68 AS col1
----
3925

query I rowsort
SELECT DISTINCT + 89 * + 46 + 45 * - + 35
----
2519

query I rowsort
SELECT + + 83 + - 47 + + - 48
----
-12

query II rowsort
SELECT + 3 - - 0 AS col1, ( - + 32 ) AS col0
----
3
-32

query I rowsort
SELECT ALL 87 - - 68
----
155

query I rowsort
SELECT - 70 + - 35 AS col2
----
-105

query I rowsort
SELECT ALL - 12 * 32
----
-384

query II rowsort
SELECT ALL COALESCE ( + 12, + ( 81 ) ), + 59 + - 59 AS col1
----
12
0

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT ALL - MIN( DISTINCT 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL - MIN ( DISTINCT 23 )
----
-23

query I rowsort
SELECT - ( 76 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-535
SELECT 67 + - + COUNT( * ) AS col2, 61
----
66
61

skipif mysql # not compatible
query II rowsort label-535
SELECT 67 + - + COUNT ( * ) AS col2, 61
----
66
61

query I rowsort
SELECT + 36 * - - 13 - - ( 83 ) * + - ( 7 ) AS col0
----
-113

query I rowsort
SELECT 26 * + 96
----
2496

query I rowsort
SELECT 13 + 70
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-539
SELECT + CAST( - - 73 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-539
SELECT + CAST ( - - 73 AS INTEGER )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT DISTINCT - COUNT( * ) * - MIN( DISTINCT - ( - 68 ) ) col1
----
68

skipif mysql # not compatible
query I rowsort label-540
SELECT DISTINCT - COUNT ( * ) * - MIN ( DISTINCT - ( - 68 ) ) col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT 6 * + MAX( DISTINCT - 28 ) col0
----
-168

skipif mysql # not compatible
query I rowsort label-541
SELECT 6 * + MAX ( DISTINCT - 28 ) col0
----
-168

query I rowsort
SELECT ALL + + 17 * - 1 + 42 * 60 * 95 * 35 * - 93 AS col2
----
-779247017

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT 46 * - 2 + + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-543
SELECT 46 * - 2 + + COUNT ( * )
----
-91

query I rowsort
SELECT ALL - ( - + 33 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-545
SELECT - 76 DIV - 61 + - 70 col2, - CAST( + 41 AS SIGNED ) DIV 18 + - 58 + + COALESCE ( 74, COUNT( * ) ) AS col1
----
-69
14

skipif mysql # not compatible
query II rowsort label-545
SELECT - 76 / - 61 + - 70 col2, - CAST ( + 41 AS INTEGER ) / 18 + - 58 + + COALESCE ( 74, COUNT ( * ) ) AS col1
----
-69
14

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT ( MAX( - - 59 ) ) + 41
----
100

skipif mysql # not compatible
query I rowsort label-546
SELECT ( MAX ( - - 59 ) ) + 41
----
100

query I rowsort
SELECT 29 * 11
----
319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-548
SELECT ALL COUNT( * ) + - 42 / - - CAST( NULL AS SIGNED ) / - 64 + - COALESCE ( - COUNT( * ), + COUNT( * ) + + + 65, - 43 * 28 ), + 57 col1
----
NULL
57

skipif mysql # not compatible
query II rowsort label-548
SELECT ALL COUNT ( * ) + - 42 / - - CAST ( NULL AS INTEGER ) / - 64 + - COALESCE ( - COUNT ( * ), + COUNT ( * ) + + + 65, - 43 * 28 ), + 57 col1
----
NULL
57

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT COUNT( * ) + 14 + + + 53
----
68

skipif mysql # not compatible
query I rowsort label-549
SELECT COUNT ( * ) + 14 + + + 53
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT 36 - COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-550
SELECT 36 - COUNT ( * ) AS col2
----
35

query I rowsort
SELECT 83 * 67 * - + 81 + + 1 col0
----
-450440

query I rowsort
SELECT 45 - 37
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-553
SELECT ALL - 11 DIV ( - - COUNT( * ) )
----
-11

skipif mysql # not compatible
query I rowsort label-553
SELECT ALL - 11 / ( - - COUNT ( * ) )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT ALL - SUM( ALL + 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL - SUM ( ALL + 44 ) AS col2
----
-44

query I rowsort
SELECT DISTINCT 36 + - 71
----
-35

query I rowsort
SELECT DISTINCT + 38 + - 55
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT ALL - 84 + - COUNT( * ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL - 84 + - COUNT ( * ) AS col2
----
-85

query I rowsort
SELECT 35 + - ( + 69 )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-559
SELECT ALL - 71 AS col1, + COUNT( * ) AS col2
----
-71
1

skipif mysql # not compatible
query II rowsort label-559
SELECT ALL - 71 AS col1, + COUNT ( * ) AS col2
----
-71
1

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT ALL - MAX( ALL - 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL - MAX ( ALL - 79 ) AS col0
----
79

query I rowsort
SELECT ALL + 12 * - + 27
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT DISTINCT - SUM( 32 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT - SUM ( 32 ) AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-563
SELECT 35 * + MAX( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-563
SELECT 35 * + MAX ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 12 * 61 AS col2
----
732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-565
SELECT 80 + CAST( NULL AS SIGNED ) + - 78 * - + 17 / + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-565
SELECT 80 + CAST ( NULL AS INTEGER ) + - 78 * - + 17 / + 96
----
NULL

query II rowsort
SELECT DISTINCT ( + + COALESCE ( + ( + + 58 ), + 80 ) ) AS col0, 22 AS col1
----
58
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-567
SELECT DISTINCT 6 col0, + 63 + + CAST( 91 AS SIGNED )
----
6
154

skipif mysql # not compatible
query II rowsort label-567
SELECT DISTINCT 6 col0, + 63 + + CAST ( 91 AS INTEGER )
----
6
154

query I rowsort
SELECT 2 + + 87
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-569
SELECT - NULLIF ( NULLIF ( + COUNT( * ), + 33 ), - 20 ) AS col0, + 11 + + 25 + + CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-569
SELECT - NULLIF ( NULLIF ( + COUNT ( * ), + 33 ), - 20 ) AS col0, + 11 + + 25 + + CAST ( NULL AS INTEGER )
----
-1
NULL

query I rowsort
SELECT 51 - - 19
----
70

query I rowsort
SELECT 82 * 61 * 59 + 47 * + + 7 * - 82 * 21 AS col0
----
-271420

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT - 34 - + MIN( - 46 )
----
12

skipif mysql # not compatible
query I rowsort label-572
SELECT - 34 - + MIN ( - 46 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-573
SELECT - 43 * + + COUNT( * ) + - + CAST( NULL AS SIGNED ) + - - 27 + + - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-573
SELECT - 43 * + + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + - - 27 + + - 38 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 83 * - - 13
----
1079

query II rowsort
SELECT - + 74 AS col1, 17 * - - 90 AS col2
----
-74
1530

query II rowsort
SELECT DISTINCT - 48, + 68 * + 49 col0
----
-48
3332

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT ALL + + 98 * + CASE MAX( 3 ) WHEN + - 17 THEN ( - 42 ) * + 80 + + 61 + 64 - + 18 + + 34 WHEN - 9 THEN + + MIN( - - 95 ) / - - COALESCE ( + SUM( + 64 ), + 83, + 2 ) WHEN + 18 THEN + SUM( + ( - 55 ) ) * - 99 * - - 93 + + - ( + 73 ) + - 82 / - - 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-577
SELECT ALL + + 98 * + CASE MAX ( 3 ) WHEN + - 17 THEN ( - 42 ) * + 80 + + 61 + 64 - + 18 + + 34 WHEN - 9 THEN + + MIN ( - - 95 ) / - - COALESCE ( + SUM ( + 64 ), + 83, + 2 ) WHEN + 18 THEN + SUM ( + ( - 55 ) ) * - 99 * - - 93 + + - ( + 73 ) + - 82 / - - 90 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT DISTINCT - + COUNT( * ) + - COUNT( * ) + + 73
----
71

skipif mysql # not compatible
query I rowsort label-578
SELECT DISTINCT - + COUNT ( * ) + - COUNT ( * ) + + 73
----
71

query I rowsort
SELECT + 84 - - 91
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT DISTINCT - 1 + + ( 67 ) * + 66 + + COUNT( * ) AS col1
----
4422

skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT - 1 + + ( 67 ) * + 66 + + COUNT ( * ) AS col1
----
4422

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-581
SELECT - 36 AS col0, + 16 + - CAST( NULL AS SIGNED ) + - - 32 col2
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-581
SELECT - 36 AS col0, + 16 + - CAST ( NULL AS INTEGER ) + - - 32 col2
----
-36
NULL

query II rowsort
SELECT 44 AS col0, 82 AS col1
----
44
82

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT ( - 43 ) * + + COUNT( * ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-583
SELECT ( - 43 ) * + + COUNT ( * ) col0
----
-43

query II rowsort
SELECT DISTINCT - 71, - ( - 39 ) + ( + - 37 ) col2
----
-71
2

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT MIN( + 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-585
SELECT MIN ( + 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT COUNT( 92 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-586
SELECT COUNT ( 92 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-587
SELECT 55 + - 75 * + - CAST( + - 30 AS SIGNED ) AS col1
----
-2195

skipif mysql # not compatible
query I rowsort label-587
SELECT 55 + - 75 * + - CAST ( + - 30 AS INTEGER ) AS col1
----
-2195

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT ALL + 38 * NULLIF ( 99, 23 + - COUNT( * ) + - - ( + 27 ) ) + - ( - 54 ) + + SUM( + - 0 ) * - 72 * - - 37 + 24
----
3840

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL + 38 * NULLIF ( 99, 23 + - COUNT ( * ) + - - ( + 27 ) ) + - ( - 54 ) + + SUM ( + - 0 ) * - 72 * - - 37 + 24
----
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT 26 * + - COALESCE ( - 65, + 7 * - COALESCE ( 36, - + 10, 19 * + 0 * 47 * - MAX( DISTINCT - - 31 ) * - ( + COUNT( ALL 43 ) ) + + 87 ) + + 42 ) * 7 + + COUNT( * ) * 47 AS col1
----
11877

skipif mysql # not compatible
query I rowsort label-589
SELECT 26 * + - COALESCE ( - 65, + 7 * - COALESCE ( 36, - + 10, 19 * + 0 * 47 * - MAX ( DISTINCT - - 31 ) * - ( + COUNT ( ALL 43 ) ) + + 87 ) + + 42 ) * 7 + + COUNT ( * ) * 47 AS col1
----
11877

query II rowsort
SELECT DISTINCT - 61 AS col1, 4 - 41
----
-61
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT ALL COUNT( ALL - ( - + NULLIF ( ( - 88 ), + 97 / - 28 ) ) ) * + COUNT( * ) - - - 51 + - 93
----
-143

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL COUNT ( ALL - ( - + NULLIF ( ( - 88 ), + 97 / - 28 ) ) ) * + COUNT ( * ) - - - 51 + - 93
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT + MAX( ALL + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-592
SELECT + MAX ( ALL + 82 )
----
82

query II rowsort
SELECT ALL - 71 AS col0, 87 - - 22
----
-71
109

onlyif mysql # aggregate syntax: 
query II rowsort label-594
SELECT DISTINCT - COUNT( * ) AS col0, + 40 AS col0
----
-1
40

skipif mysql # not compatible
query II rowsort label-594
SELECT DISTINCT - COUNT ( * ) AS col0, + 40 AS col0
----
-1
40

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT DISTINCT + COUNT( * ) * + ( - + 10 ) + + NULLIF ( + + 54, + 2 )
----
44

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT + COUNT ( * ) * + ( - + 10 ) + + NULLIF ( + + 54, + 2 )
----
44

query I rowsort
SELECT DISTINCT 65 * 60
----
3900

onlyif mysql # aggregate syntax: 
query II rowsort label-597
SELECT ALL - 11 * - ( + - MIN( DISTINCT + 31 ) ) - + MAX( + 81 ) AS col0, 13 AS col1
----
-422
13

skipif mysql # not compatible
query II rowsort label-597
SELECT ALL - 11 * - ( + - MIN ( DISTINCT + 31 ) ) - + MAX ( + 81 ) AS col0, 13 AS col1
----
-422
13

onlyif mysql # aggregate syntax: 
query II rowsort label-598
SELECT 28 * + - 34 * COUNT( * ) * 47 AS col2, + 27
----
-44744
27

skipif mysql # not compatible
query II rowsort label-598
SELECT 28 * + - 34 * COUNT ( * ) * 47 AS col2, + 27
----
-44744
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-599
SELECT 53 * - COUNT( * ) DIV + 90 - - 50 - + 86 + 90
----
54

skipif mysql # not compatible
query I rowsort label-599
SELECT 53 * - COUNT ( * ) / + 90 - - 50 - + 86 + 90
----
54

query III rowsort
SELECT ALL - 6, - 39 AS col2, 11 AS col1
----
-6
-39
11

query II rowsort
SELECT 80 * + 74 AS col1, - 76
----
5920
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT MAX( DISTINCT 98 )
----
98

skipif mysql # not compatible
query I rowsort label-602
SELECT MAX ( DISTINCT 98 )
----
98

query I rowsort
SELECT ALL + + 55 AS col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-604
SELECT ALL + 38 AS col1, + 79 - - SUM( 52 )
----
38
131

skipif mysql # not compatible
query II rowsort label-604
SELECT ALL + 38 AS col1, + 79 - - SUM ( 52 )
----
38
131

query I rowsort
SELECT - - 75 - - + 49
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT ALL + COUNT( * ) * + 5 + + 20 + - 98 - - 21 + + + 24 + + 23 - - - 74 * - MIN( - + 87 ) AS col0
----
-6443

skipif mysql # not compatible
query I rowsort label-606
SELECT ALL + COUNT ( * ) * + 5 + + 20 + - 98 - - 21 + + + 24 + + 23 - - - 74 * - MIN ( - + 87 ) AS col0
----
-6443

query I rowsort
SELECT ALL + - 50 * - 44 + + 55
----
2255

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT - 61 * - COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-608
SELECT - 61 * - COUNT ( * ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT - ( + MIN( ALL 57 ) ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-609
SELECT - ( + MIN ( ALL 57 ) ) AS col1
----
-57

query I rowsort
SELECT - + 34 - + 45
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-611
SELECT ALL + SUM( DISTINCT 20 ), + COALESCE ( - 72, - 94 - COUNT( * ), - - 21 * - + MAX( ALL + + 82 ) + - CASE 65 WHEN + 34 THEN + 59 ELSE + COUNT( * ) END ) col2
----
20
-72

skipif mysql # not compatible
query II rowsort label-611
SELECT ALL + SUM ( DISTINCT 20 ), + COALESCE ( - 72, - 94 - COUNT ( * ), - - 21 * - + MAX ( ALL + + 82 ) + - CASE 65 WHEN + 34 THEN + 59 ELSE + COUNT ( * ) END ) col2
----
20
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT ALL - SUM( 0 ) + - + 60 - - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL - SUM ( 0 ) + - + 60 - - COUNT ( * )
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-613
SELECT - CAST( NULL AS SIGNED ) col0, - 84
----
NULL
-84

skipif mysql # not compatible
query II rowsort label-613
SELECT - CAST ( NULL AS INTEGER ) col0, - 84
----
NULL
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-614
SELECT ALL - CAST( AVG ( ALL - - 26 ) AS SIGNED ) + + 55 col2, + 44
----
29
44

skipif mysql # not compatible
query II rowsort label-614
SELECT ALL - CAST ( AVG ( ALL - - 26 ) AS INTEGER ) + + 55 col2, + 44
----
29
44

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT DISTINCT - + 33 + - COUNT( * ) * 68 * + COUNT( * ) * + COUNT( * ) * - - 84 + + + 83 col2
----
-5662

skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT - + 33 + - COUNT ( * ) * 68 * + COUNT ( * ) * + COUNT ( * ) * - - 84 + + + 83 col2
----
-5662

onlyif mysql # DIV for integer division: 
query I rowsort label-616
SELECT ALL + 77 + + - 96 + + + ( + 62 ) DIV + 4
----
-4

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL + 77 + + - 96 + + + ( + 62 ) / + 4
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT ALL - 19 + + - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL - 19 + + - COUNT ( * )
----
-20

query II rowsort
SELECT - 37 AS col2, + 11
----
-37
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-619
SELECT DISTINCT - 11 * + - COALESCE ( + + 8, + NULLIF ( - COUNT( * ), - - CAST( NULL AS SIGNED ) ) DIV COUNT( + 95 ) * COUNT( * ) ) col0
----
88

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT - 11 * + - COALESCE ( + + 8, + NULLIF ( - COUNT ( * ), - - CAST ( NULL AS INTEGER ) ) / COUNT ( + 95 ) * COUNT ( * ) ) col0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-620
SELECT ALL ( SUM( 45 ) ) AS col1, - 37
----
45
-37

skipif mysql # not compatible
query II rowsort label-620
SELECT ALL ( SUM ( 45 ) ) AS col1, - 37
----
45
-37

query I rowsort
SELECT - 96 + + 73
----
-23

query I rowsort
SELECT + 60 * + ( - - 61 ) AS col2
----
3660

query I rowsort
SELECT - 72 + - - 99 + + 14 * + 85 * - - 85
----
101177

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT ALL CASE + - 15 WHEN COUNT( * ) THEN + 88 ELSE - 50 END AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL CASE + - 15 WHEN COUNT ( * ) THEN + 88 ELSE - 50 END AS col2
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-625
SELECT + MAX( + 65 ) col2, 21
----
65
21

skipif mysql # not compatible
query II rowsort label-625
SELECT + MAX ( + 65 ) col2, 21
----
65
21

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT ALL - COUNT( * ) * + 71 - - + COALESCE ( 99, COUNT( * ) )
----
28

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL - COUNT ( * ) * + 71 - - + COALESCE ( 99, COUNT ( * ) )
----
28

query I rowsort
SELECT ALL - 67 * 85 - - - 80 * + 23 AS col0
----
-7535

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-628
SELECT - 30 + - 92 - 41 * + - CAST( - COUNT( * ) AS SIGNED ) * - - 70
----
-2992

skipif mysql # not compatible
query I rowsort label-628
SELECT - 30 + - 92 - 41 * + - CAST ( - COUNT ( * ) AS INTEGER ) * - - 70
----
-2992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-629
SELECT + COALESCE ( - COUNT( * ), - + 92, + 8 * 99 * SUM( + + 45 ) + + 83 + + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + + 46 ) - - 89 + ( + CAST( NULL AS SIGNED ) ) * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-629
SELECT + COALESCE ( - COUNT ( * ), - + 92, + 8 * 99 * SUM ( + + 45 ) + + 83 + + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 46 ) - - 89 + ( + CAST ( NULL AS INTEGER ) ) * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + 70 * - 52, 22 + - + 18 AS col2
----
-3640
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-631
SELECT + 88 + + + CAST( NULL AS SIGNED ) AS col2, 81 * - 13 * - + 65 AS col1
----
NULL
68445

skipif mysql # not compatible
query II rowsort label-631
SELECT + 88 + + + CAST ( NULL AS INTEGER ) AS col2, 81 * - 13 * - + 65 AS col1
----
NULL
68445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-632
SELECT DISTINCT + CAST( - - ( - 54 ) AS SIGNED ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-632
SELECT DISTINCT + CAST ( - - ( - 54 ) AS INTEGER ) AS col0
----
-54

query II rowsort
SELECT + 52 + + 97 AS col0, + 57
----
149
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-634
SELECT DISTINCT 64 * + COUNT( * ) AS col1, COUNT( ALL 35 ) DIV ( + 72 )
----
64
0

skipif mysql # not compatible
query II rowsort label-634
SELECT DISTINCT 64 * + COUNT ( * ) AS col1, COUNT ( ALL 35 ) / ( + 72 )
----
64
0

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT - MIN( + + 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-635
SELECT - MIN ( + + 67 )
----
-67

query I rowsort
SELECT ALL 6 * + 8 * + - 76
----
-3648

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT + COUNT( ALL - CASE + 84 WHEN + 87 THEN + 89 * + - 58 + 58 + + 17 WHEN - 85 THEN - ( - + 14 ) END )
----
0

skipif mysql # not compatible
query I rowsort label-637
SELECT + COUNT ( ALL - CASE + 84 WHEN + 87 THEN + 89 * + - 58 + 58 + + 17 WHEN - 85 THEN - ( - + 14 ) END )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-638
SELECT + - 27 + - CAST( NULL AS SIGNED ) * 3 * - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-638
SELECT + - 27 + - CAST ( NULL AS INTEGER ) * 3 * - 69 AS col2
----
NULL

query I rowsort
SELECT + - 69 * 90 AS col1
----
-6210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-640
SELECT + COALESCE ( CAST( NULL AS SIGNED ), - 8 ) / + + 4 + - 17 * - CASE + 41 WHEN - + CAST( 84 AS SIGNED ) THEN + CASE - NULLIF ( + COUNT( * ), - + 15 ) WHEN + NULLIF ( + - ( - 4 ), - 30 ) * + 59 * + 63 + + 31 * COALESCE ( - COALESCE ( - COALESCE ( + - 86, COUNT( * ) ), + - ( - - 25 ), - 83 ), NULLIF ( - 82, + 39 ) + 34 + - 57 * - 38 * + 20 ) THEN 74 * 73 + AVG ( + 81 ) WHEN + 41 THEN + 72 * + 19 + + 42 WHEN - COUNT( * ) THEN NULL ELSE NULL END * 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-640
SELECT + COALESCE ( CAST ( NULL AS INTEGER ), - 8 ) / + + 4 + - 17 * - CASE + 41 WHEN - + CAST ( 84 AS INTEGER ) THEN + CASE - NULLIF ( + COUNT ( * ), - + 15 ) WHEN + NULLIF ( + - ( - 4 ), - 30 ) * + 59 * + 63 + + 31 * COALESCE ( - COALESCE ( - COALESCE ( + - 86, COUNT ( * ) ), + - ( - - 25 ), - 83 ), NULLIF ( - 82, + 39 ) + 34 + - 57 * - 38 * + 20 ) THEN 74 * 73 + AVG ( + 81 ) WHEN + 41 THEN + 72 * + 19 + + 42 WHEN - COUNT ( * ) THEN NULL ELSE NULL END * 72 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-641
SELECT DISTINCT + COALESCE ( - 41, - + 46 * - 92 ) DIV - 13 + + 64 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-641
SELECT DISTINCT + COALESCE ( - 41, - + 46 * - 92 ) / - 13 + + 64 AS col1
----
67

query I rowsort
SELECT ALL + 50 * - + 35 + + 3 AS col1
----
-1747

query I rowsort
SELECT DISTINCT - COALESCE ( - 32, + 3, ( 73 ) ) col0
----
32

query I rowsort
SELECT ALL + + 8 * - - 20 + 59 - - 35 + + 7 AS col2
----
261

query I rowsort
SELECT DISTINCT - 81 + - - 84
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT - + 12 + + CASE + 74 WHEN + ( - MIN( - 3 ) ) THEN + 98 ELSE NULL END + 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-646
SELECT - + 12 + + CASE + 74 WHEN + ( - MIN ( - 3 ) ) THEN + 98 ELSE NULL END + 1 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-647
SELECT ALL CAST( NULL AS SIGNED ) + - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL CAST ( NULL AS INTEGER ) + - 33 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT - MAX( 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-648
SELECT - MAX ( 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT ALL - + COUNT( * ) * + - ( - - NULLIF ( - + 72, + - 43 * + - 36 + 55 ) ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL - + COUNT ( * ) * + - ( - - NULLIF ( - + 72, + - 43 * + - 36 + 55 ) ) AS col2
----
-72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-650
SELECT CAST( + 52 AS SIGNED ) AS col0, - 97 + + - 13 DIV 62
----
52
-97

skipif mysql # not compatible
query II rowsort label-650
SELECT CAST ( + 52 AS INTEGER ) AS col0, - 97 + + - 13 / 62
----
52
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-651
SELECT ALL + CAST( 68 AS SIGNED ) + - 85 + - 91
----
-108

skipif mysql # not compatible
query I rowsort label-651
SELECT ALL + CAST ( 68 AS INTEGER ) + - 85 + - 91
----
-108

query I rowsort
SELECT ALL ( + - 55 ) AS col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-653
SELECT DISTINCT CAST( + 47 AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-653
SELECT DISTINCT CAST ( + 47 AS INTEGER )
----
47

query I rowsort
SELECT DISTINCT + 70 - - + 30 AS col0
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-655
SELECT DISTINCT - 70 DIV + COALESCE ( + 73, - 44 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-655
SELECT DISTINCT - 70 / + COALESCE ( + 73, - 44 ) AS col1
----
0

query I rowsort
SELECT - 1 - + COALESCE ( + 89, + 29 + 61 ) + + 85
----
-5

query I rowsort
SELECT ALL ( - + COALESCE ( + 50, - 28 ) ) AS col0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-658
SELECT - 30 DIV + 58 col1
----
0

skipif mysql # not compatible
query I rowsort label-658
SELECT - 30 / + 58 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-659
SELECT ALL CAST( NULL AS SIGNED ), - MAX( + 43 ) AS col0
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-659
SELECT ALL CAST ( NULL AS INTEGER ), - MAX ( + 43 ) AS col0
----
NULL
-43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-660
SELECT ALL + 62 * - - CASE 25 WHEN - 34 + 67 + - + 41 * - - 84 THEN + CAST( + 28 AS DECIMAL ) * + - 25 WHEN - - 90 * - 81 * - 95 THEN + 31 END * + 87 * - 12 * NULLIF ( + MIN( ALL ( - - 4 ) ), + - 10 * + NULLIF ( + SUM( - + 11 ), + - 37 / + 65 ) + + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL + 62 * - - CASE 25 WHEN - 34 + 67 + - + 41 * - - 84 THEN + CAST ( + 28 AS REAL ) * + - 25 WHEN - - 90 * - 81 * - 95 THEN + 31 END * + 87 * - 12 * NULLIF ( + MIN ( ALL ( - - 4 ) ), + - 10 * + NULLIF ( + SUM ( - + 11 ), + - 37 / + 65 ) + + 72 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-661
SELECT + CAST( NULL AS SIGNED ) / CAST( 76 AS SIGNED ) + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-661
SELECT + CAST ( NULL AS INTEGER ) / CAST ( 76 AS INTEGER ) + 29 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-662
SELECT ALL COALESCE ( 43, - 61 * + 12 ) DIV 16 * COUNT( * ) DIV + + NULLIF ( - + 29, CASE + 79 WHEN + 21 THEN 33 - + 78 ELSE NULL END - - - 78 - - + COUNT( * ) ) - SUM( DISTINCT + - 46 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL COALESCE ( 43, - 61 * + 12 ) / 16 * COUNT ( * ) / + + NULLIF ( - + 29, CASE + 79 WHEN + 21 THEN 33 - + 78 ELSE NULL END - - - 78 - - + COUNT ( * ) ) - SUM ( DISTINCT + - 46 ) AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-663
SELECT DISTINCT + 80 DIV ( + 79 )
----
1

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT + 80 / ( + 79 )
----
1

query I rowsort
SELECT ALL - 90 * + 96
----
-8640

onlyif mysql # DIV for integer division: 
query II rowsort label-665
SELECT 63 DIV - ( + 50 ) AS col0, - 88
----
-1
-88

skipif mysql # not compatible
query II rowsort label-665
SELECT 63 / - ( + 50 ) AS col0, - 88
----
-1
-88

query I rowsort
SELECT DISTINCT - 8 * + + 50
----
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT ALL - 90 * - COALESCE ( - 88, - ( + + COUNT( ALL 53 ) ) + + 69 + + 76 )
----
-7920

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL - 90 * - COALESCE ( - 88, - ( + + COUNT ( ALL 53 ) ) + + 69 + + 76 )
----
-7920

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT 70 * - 37 * - 21 - - - COUNT( * ) * + 10
----
54380

skipif mysql # not compatible
query I rowsort label-668
SELECT 70 * - 37 * - 21 - - - COUNT ( * ) * + 10
----
54380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-669
SELECT ALL - 78 + + CAST( NULL AS SIGNED ) + - 98 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL - 78 + + CAST ( NULL AS INTEGER ) + - 98 + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 4 + + 0 col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-671
SELECT + 87 + ( - 12 ) / CASE AVG ( DISTINCT 70 ) WHEN 20 * 31 THEN + CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-671
SELECT + 87 + ( - 12 ) / CASE AVG ( DISTINCT 70 ) WHEN 20 * 31 THEN + CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-672
SELECT + - 47 col0, - NULLIF ( - 29, COUNT( * ) + 47 )
----
-47
29

skipif mysql # not compatible
query II rowsort label-672
SELECT + - 47 col0, - NULLIF ( - 29, COUNT ( * ) + 47 )
----
-47
29

query II rowsort
SELECT ALL - - 26 AS col1, + 31
----
26
31

query I rowsort
SELECT ALL 40 + 77 + - + 37 + - 18
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-675
SELECT DISTINCT - + COUNT( * ) AS col2, 16 + + 80 AS col1
----
-1
96

skipif mysql # not compatible
query II rowsort label-675
SELECT DISTINCT - + COUNT ( * ) AS col2, 16 + + 80 AS col1
----
-1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT ALL 67 + 90 + NULLIF ( - 80, - COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-676
SELECT ALL 67 + 90 + NULLIF ( - 80, - COUNT ( * ) )
----
77

query I rowsort
SELECT ALL + 52 + 82
----
134

query I rowsort
SELECT - NULLIF ( + 89, ( 47 ) + + - 38 * 49 ) col1
----
-89

query II rowsort
SELECT - 49, - 49 col2
----
-49
-49

query II rowsort
SELECT 92 AS col1, + 76 AS col1
----
92
76

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT ALL + 2 + - NULLIF ( 61, + SUM( DISTINCT - ( - + 89 ) ) )
----
-59

skipif mysql # not compatible
query I rowsort label-681
SELECT ALL + 2 + - NULLIF ( 61, + SUM ( DISTINCT - ( - + 89 ) ) )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-682
SELECT - - 45 * 55 - + COUNT( * ) + - 62 DIV - MIN( 12 ) AS col0
----
2479

skipif mysql # not compatible
query I rowsort label-682
SELECT - - 45 * 55 - + COUNT ( * ) + - 62 / - MIN ( 12 ) AS col0
----
2479

query I rowsort
SELECT 95 * + 50 - - 80
----
4830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-684
SELECT CASE COUNT( * ) WHEN - 86 THEN 3 - + + 52 + + 9 WHEN - + 77 THEN + 7 * 29 WHEN 40 THEN NULL ELSE NULL END + COUNT( * ) + + NULLIF ( CAST( NULL AS SIGNED ), - CAST( - + ( MAX( DISTINCT + + 16 ) ) AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-684
SELECT CASE COUNT ( * ) WHEN - 86 THEN 3 - + + 52 + + 9 WHEN - + 77 THEN + 7 * 29 WHEN 40 THEN NULL ELSE NULL END + COUNT ( * ) + + NULLIF ( CAST ( NULL AS INTEGER ), - CAST ( - + ( MAX ( DISTINCT + + 16 ) ) AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 12 * - - 37 - 22
----
-466

query I rowsort
SELECT ( + 88 ) AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-687
SELECT ALL CAST( NULL AS SIGNED ) - - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL CAST ( NULL AS INTEGER ) - - 52
----
NULL

query II rowsort
SELECT ( - + ( + + 69 ) ) * - 29 AS col0, 72
----
2001
72

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT ALL + 57 DIV + 10 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-689
SELECT ALL + 57 / + 10 AS col2
----
5

query I rowsort
SELECT DISTINCT ( + 74 ) - + 9 AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-691
SELECT CAST( NULL AS SIGNED ) + - - 75 + - COUNT( + 7 ) AS col1, + 34
----
NULL
34

skipif mysql # not compatible
query II rowsort label-691
SELECT CAST ( NULL AS INTEGER ) + - - 75 + - COUNT ( + 7 ) AS col1, + 34
----
NULL
34

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT COUNT( * ) * + - 38 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-692
SELECT COUNT ( * ) * + - 38 AS col0
----
-38

query I rowsort
SELECT 64 * - + 43 * - 40 AS col0
----
110080

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-694
SELECT ALL COALESCE ( 65, + + 10 ) * 17 * - CAST( CAST( + + 99 AS DECIMAL ) AS SIGNED ) AS col2
----
-109395

skipif mysql # not compatible
query I rowsort label-694
SELECT ALL COALESCE ( 65, + + 10 ) * 17 * - CAST ( CAST ( + + 99 AS REAL ) AS INTEGER ) AS col2
----
-109395

query I rowsort
SELECT NULLIF ( - 84, 97 ) + - - 96 * - 66 AS col2
----
-6420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-696
SELECT 44 + - MAX( ALL - - 86 ) DIV 46 * + + 18 * 11
----
-154

skipif mysql # not compatible
query I rowsort label-696
SELECT 44 + - MAX ( ALL - - 86 ) / 46 * + + 18 * 11
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT 83 + COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-697
SELECT 83 + COUNT ( * ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT ALL + 67 * ( COUNT( * ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL + 67 * ( COUNT ( * ) ) AS col0
----
67

query I rowsort
SELECT ( - 57 ) + - 30 * - 40 col0
----
1143

query I rowsort
SELECT ALL ( 18 ) * 42 AS col1
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT 60 + + - 71 + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-701
SELECT 60 + + - 71 + COUNT ( * )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-702
SELECT DISTINCT 0 * - - 84 * + ( - 13 ) * + 24 * + 49 + - - CAST( NULL AS SIGNED ) AS col2, + 33
----
NULL
33

skipif mysql # not compatible
query II rowsort label-702
SELECT DISTINCT 0 * - - 84 * + ( - 13 ) * + 24 * + 49 + - - CAST ( NULL AS INTEGER ) AS col2, + 33
----
NULL
33

query II rowsort
SELECT ALL - ( CASE + 98 WHEN 42 THEN 13 WHEN + + 85 + + + 11 THEN NULL END ) AS col2, 52
----
NULL
52

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT ALL + 22 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL + 22 / 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT COUNT( DISTINCT 26 ) + 48 * + + 8 col0
----
385

skipif mysql # not compatible
query I rowsort label-705
SELECT COUNT ( DISTINCT 26 ) + 48 * + + 8 col0
----
385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-706
SELECT + 35 * + ( - + 58 ) + - 65 - - COUNT( ALL 2 ) DIV + 6 + - 45 + + ( - 74 )
----
-2214

skipif mysql # not compatible
query I rowsort label-706
SELECT + 35 * + ( - + 58 ) + - 65 - - COUNT ( ALL 2 ) / + 6 + - 45 + + ( - 74 )
----
-2214

query I rowsort
SELECT - 27 + + + 42
----
15

query I rowsort
SELECT DISTINCT + - 93 + + 2 + 87 * - 42 * + + 64
----
-233947

onlyif mysql # DIV for integer division: 
query I rowsort label-709
SELECT ALL - + 31 + 22 + - + 10 * - 48 + - 76 DIV - 23
----
474

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL - + 31 + 22 + - + 10 * - 48 + - 76 / - 23
----
474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-710
SELECT ALL + COUNT( * ) + + + COALESCE ( 76, - ( 94 ) DIV + 77 + + COUNT( DISTINCT 20 ) )
----
77

skipif mysql # not compatible
query I rowsort label-710
SELECT ALL + COUNT ( * ) + + + COALESCE ( 76, - ( 94 ) / + 77 + + COUNT ( DISTINCT 20 ) )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-711
SELECT ALL + + 56 + - 33 DIV - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL + + 56 + - 33 / - COUNT ( * )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-712
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-712
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT 86 * - + 91 * - + COALESCE ( 68, + - 86 + + 5, COUNT( * ) + - 48 * 46 ) + - + 64
----
532104

skipif mysql # not compatible
query I rowsort label-713
SELECT 86 * - + 91 * - + COALESCE ( 68, + - 86 + + 5, COUNT ( * ) + - 48 * 46 ) + - + 64
----
532104

query I rowsort
SELECT - - 12 * - 88 + - 96 AS col0
----
-1152

query I rowsort
SELECT - 74 * ( + - 14 ) + + 5 AS col0
----
1041

query I rowsort
SELECT ALL - 31 + + + ( - ( - - 9 ) ) * 12 AS col1
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT DISTINCT + + 14 + - - MIN( ALL - 11 )
----
3

skipif mysql # not compatible
query I rowsort label-717
SELECT DISTINCT + + 14 + - - MIN ( ALL - 11 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT ALL - COUNT( ALL - 98 ) * - 74 * - 95 * - NULLIF ( - 20, + SUM( + 87 ) ) * - - 80 + + + MAX( 58 ) + - 51 * COUNT( * ) * + CASE - 38 WHEN - 51 / + 91 * + 61 - - 85 + - 90 THEN NULL ELSE COUNT( - 69 ) + 3 + - - 27 * + + 97 END + - 2 + + COUNT( * )
----
-11381716

skipif mysql # not compatible
query I rowsort label-718
SELECT ALL - COUNT ( ALL - 98 ) * - 74 * - 95 * - NULLIF ( - 20, + SUM ( + 87 ) ) * - - 80 + + + MAX ( 58 ) + - 51 * COUNT ( * ) * + CASE - 38 WHEN - 51 / + 91 * + 61 - - 85 + - 90 THEN NULL ELSE COUNT ( - 69 ) + 3 + - - 27 * + + 97 END + - 2 + + COUNT ( * )
----
-11381716

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT NULLIF ( + 58, + + SUM( DISTINCT - + 18 ) - - ( + + 19 ) ) * + - 65 AS col2
----
-3770

skipif mysql # not compatible
query I rowsort label-719
SELECT NULLIF ( + 58, + + SUM ( DISTINCT - + 18 ) - - ( + + 19 ) ) * + - 65 AS col2
----
-3770

query I rowsort
SELECT NULLIF ( + 13, + 69 ) + + 16 AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-721
SELECT DISTINCT CAST( 65 AS SIGNED ) * + - 15 col0
----
-975

skipif mysql # not compatible
query I rowsort label-721
SELECT DISTINCT CAST ( 65 AS INTEGER ) * + - 15 col0
----
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT ALL 1 * - + NULLIF ( 70, - CASE - + 8 WHEN + 48 THEN NULL WHEN + + 86 THEN NULL ELSE 78 * COUNT( * ) END ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-722
SELECT ALL 1 * - + NULLIF ( 70, - CASE - + 8 WHEN + 48 THEN NULL WHEN + + 86 THEN NULL ELSE 78 * COUNT ( * ) END ) AS col1
----
-70

query I rowsort
SELECT 38 - 98 * - 24 AS col0
----
2390

onlyif mysql # DIV for integer division: 
query I rowsort label-724
SELECT + 59 DIV + + 17 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-724
SELECT + 59 / + + 17 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT - SUM( ALL - + 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-725
SELECT - SUM ( ALL - + 64 ) AS col0
----
64

query II rowsort
SELECT DISTINCT 64, 39 * + 44 AS col2
----
64
1716

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT DISTINCT + COUNT( * ) + - - 11
----
12

skipif mysql # not compatible
query I rowsort label-727
SELECT DISTINCT + COUNT ( * ) + - - 11
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT + MAX( DISTINCT + - 33 ) * - 84
----
2772

skipif mysql # not compatible
query I rowsort label-728
SELECT + MAX ( DISTINCT + - 33 ) * - 84
----
2772

query I rowsort
SELECT + ( - - 82 ) * 29 AS col1
----
2378

query I rowsort
SELECT ALL 11 + - 12 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT - SUM( 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-731
SELECT - SUM ( 58 )
----
-58

query I rowsort
SELECT - - 51 * 1 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT ALL + - COUNT( * ) * 39 + + 60
----
21

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL + - COUNT ( * ) * 39 + + 60
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT DISTINCT + 73 * - - 73 + - - COALESCE ( - COUNT( * ), - 84, - 4 + 72 * + - 26 ) AS col2
----
5328

skipif mysql # not compatible
query I rowsort label-734
SELECT DISTINCT + 73 * - - 73 + - - COALESCE ( - COUNT ( * ), - 84, - 4 + 72 * + - 26 ) AS col2
----
5328

query I rowsort
SELECT DISTINCT 49 * + 59 + + + 74
----
2965

query I rowsort
SELECT ALL - 30 * ( + 90 ) + + ( + 5 ) - - + 68 - - 76
----
-2551

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT - - ( - - 32 ) * 5 * + COUNT( * )
----
160

skipif mysql # not compatible
query I rowsort label-737
SELECT - - ( - - 32 ) * 5 * + COUNT ( * )
----
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-738
SELECT ALL 61 * + - 66 * - CAST( 64 AS SIGNED )
----
257664

skipif mysql # not compatible
query I rowsort label-738
SELECT ALL 61 * + - 66 * - CAST ( 64 AS INTEGER )
----
257664

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-739
SELECT 46 DIV 49 + + 17 AS col1, CAST( + + ( + - 45 ) AS SIGNED ) AS col1
----
17
-45

skipif mysql # not compatible
query II rowsort label-739
SELECT 46 / 49 + + 17 AS col1, CAST ( + + ( + - 45 ) AS INTEGER ) AS col1
----
17
-45

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-740
SELECT ALL + - 89 * + - 63 - ( - CAST( NULL AS SIGNED ) ) * + 43 * + ( + CAST( + - CAST( ( + 73 ) AS DECIMAL ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL + - 89 * + - 63 - ( - CAST ( NULL AS INTEGER ) ) * + 43 * + ( + CAST ( + - CAST ( ( + 73 ) AS REAL ) AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - 16 * 23 + 10 + - 31
----
-389

query I rowsort
SELECT - ( 93 ) * - 91 * - 36 + - 57
----
-304725

query I rowsort
SELECT + 71 + + 2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-744
SELECT - + 22 * - - MIN( 90 ) * 77 + + 45 + - 54 + 8 + 6 + + 4 * - + 31 * 72 * SUM( ALL + - 65 ) + 14 * CAST( + 55 AS SIGNED ), - 95 AS col0
----
428635
-95

skipif mysql # not compatible
query II rowsort label-744
SELECT - + 22 * - - MIN ( 90 ) * 77 + + 45 + - 54 + 8 + 6 + + 4 * - + 31 * 72 * SUM ( ALL + - 65 ) + 14 * CAST ( + 55 AS INTEGER ), - 95 AS col0
----
428635
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-745
SELECT ALL + + COUNT( * ) * 40 DIV 23
----
1

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL + + COUNT ( * ) * 40 / 23
----
1

query I rowsort
SELECT ALL + ( + - 85 ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT + 40 * + COUNT( * ) - - + 78 AS col2
----
118

skipif mysql # not compatible
query I rowsort label-747
SELECT + 40 * + COUNT ( * ) - - + 78 AS col2
----
118

query I rowsort
SELECT - 35 + - 88
----
-123

query I rowsort
SELECT - 13 * - 91 col1
----
1183

query I rowsort
SELECT ALL + 93 * + 21 AS col1
----
1953

query I rowsort
SELECT ALL ( - 47 ) col0
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-752
SELECT COUNT( * ), 62 AS col1
----
1
62

skipif mysql # not compatible
query II rowsort label-752
SELECT COUNT ( * ), 62 AS col1
----
1
62

query I rowsort
SELECT ALL 71 + - + 47 + + - 49 + - 41
----
-66

query I rowsort
SELECT DISTINCT ( - + 29 )
----
-29

query I rowsort
SELECT ALL 47 + 81 - 85
----
43

query I rowsort
SELECT - 53 * - - 42 * - 57
----
126882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-757
SELECT + NULLIF ( - 60, + 52 ) + + + 24 * - 83 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-757
SELECT + NULLIF ( - 60, + 52 ) + + + 24 * - 83 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( + + 95 ) col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT DISTINCT - 49 + - COUNT( * ) * - COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT - 49 + - COUNT ( * ) * - COUNT ( * ) AS col2
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-760
SELECT + 6 DIV - - 91 * - - 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-760
SELECT + 6 / - - 91 * - - 36 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-761
SELECT ALL 11 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL 11 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT - SUM( ALL + 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-762
SELECT - SUM ( ALL + 79 ) AS col1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-763
SELECT 73 col0, + 8 + - COALESCE ( + COUNT( * ), - 81 + COUNT( * ) ) - + CAST( NULL AS DECIMAL ) AS col0
----
73
NULL

skipif mysql # not compatible
query II rowsort label-763
SELECT 73 col0, + 8 + - COALESCE ( + COUNT ( * ), - 81 + COUNT ( * ) ) - + CAST ( NULL AS REAL ) AS col0
----
73
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-764
SELECT + 99 - + COUNT( * ) DIV + 49 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-764
SELECT + 99 - + COUNT ( * ) / + 49 AS col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-765
SELECT + 75 DIV + 28
----
2

skipif mysql # not compatible
query I rowsort label-765
SELECT + 75 / + 28
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT ALL 92 + - COUNT( ALL - - 24 ) col0
----
91

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL 92 + - COUNT ( ALL - - 24 ) col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-767
SELECT ALL CAST( NULL AS SIGNED ) + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL CAST ( NULL AS INTEGER ) + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT - 68 * - COUNT( * ) + - + 5 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-768
SELECT - 68 * - COUNT ( * ) + - + 5 AS col0
----
63

query I rowsort
SELECT DISTINCT 15 * 77 AS col1
----
1155

query I rowsort
SELECT + 3 + - + 8 * - 31 AS col1
----
251

query II rowsort
SELECT - 17, + 55 AS col1
----
-17
55

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT + COUNT( * ) + - SUM( - 67 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-772
SELECT + COUNT ( * ) + - SUM ( - 67 ) AS col0
----
68

query I rowsort
SELECT - + 78 + + 47 - 92 col0
----
-123

query I rowsort
SELECT ALL + CASE - 40 WHEN + 2 - + + 76 + + 80 * 53 THEN - 67 END * COALESCE ( + 15, + 94 ) AS col1
----
NULL

query I rowsort
SELECT - 92 * 40 - + + 73 + + 10
----
-3743

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT + 92 * + 58 - + + COUNT( * ) col2
----
5335

skipif mysql # not compatible
query I rowsort label-776
SELECT + 92 * + 58 - + + COUNT ( * ) col2
----
5335

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT DISTINCT + + COALESCE ( + 25, - - 68, - + 23 * 44 - 80 * + MAX( DISTINCT - - 89 ), + COUNT( * ) * + COUNT( * ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-777
SELECT DISTINCT + + COALESCE ( + 25, - - 68, - + 23 * 44 - 80 * + MAX ( DISTINCT - - 89 ), + COUNT ( * ) * + COUNT ( * ) ) AS col2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-778
SELECT + - COUNT( DISTINCT - 24 ) DIV - - 57 - 67 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-778
SELECT + - COUNT ( DISTINCT - 24 ) / - - 57 - 67 AS col1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-779
SELECT - - 52 * - + COUNT( * ) / - + 67 * - 42 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-779
SELECT - - 52 * - + COUNT ( * ) / - + 67 * - 42 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - ( 72 ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT NULLIF ( + 52, - COALESCE ( - COUNT( * ), - - COALESCE ( 45, + + 83 ), - - 5 + - COUNT( * ) ) )
----
52

skipif mysql # not compatible
query I rowsort label-781
SELECT NULLIF ( + 52, - COALESCE ( - COUNT ( * ), - - COALESCE ( 45, + + 83 ), - - 5 + - COUNT ( * ) ) )
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-782
SELECT ALL - 35 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL - 35 / - 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-783
SELECT 54 * - 23 col1, MAX( ALL - CAST( NULL AS SIGNED ) )
----
-1242
NULL

skipif mysql # not compatible
query II rowsort label-783
SELECT 54 * - 23 col1, MAX ( ALL - CAST ( NULL AS INTEGER ) )
----
-1242
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-784
SELECT DISTINCT + 62 + 59 AS col1, - SUM( - 95 )
----
121
95

skipif mysql # not compatible
query II rowsort label-784
SELECT DISTINCT + 62 + 59 AS col1, - SUM ( - 95 )
----
121
95

query I rowsort
SELECT ALL - 8 * 19 AS col0
----
-152

onlyif mysql # DIV for integer division: 
query I rowsort label-786
SELECT ALL NULLIF ( NULLIF ( - + 67, + 12 ), 93 ) DIV 52
----
-1

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL NULLIF ( NULLIF ( - + 67, + 12 ), 93 ) / 52
----
-1

query II rowsort
SELECT ALL - 44 + + 36 AS col2, + 10 * + - 70 col1
----
-8
-700

query I rowsort
SELECT DISTINCT + 17 + - + 2 col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT DISTINCT - 63 + + SUM( + 96 ) * + MAX( + 97 ) AS col1
----
9249

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT - 63 + + SUM ( + 96 ) * + MAX ( + 97 ) AS col1
----
9249

query II rowsort
SELECT ALL - 45 + - + 35 AS col1, + 20
----
-80
20

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT 69 * - - COALESCE ( + 14, + COUNT( DISTINCT - + 11 ), + CASE - 27 WHEN + + NULLIF ( + + ( - 5 ), - 12 ) + 10 + + - 11 * - + 0 THEN + 46 WHEN 99 THEN NULL ELSE 59 END )
----
966

skipif mysql # not compatible
query I rowsort label-791
SELECT 69 * - - COALESCE ( + 14, + COUNT ( DISTINCT - + 11 ), + CASE - 27 WHEN + + NULLIF ( + + ( - 5 ), - 12 ) + 10 + + - 11 * - + 0 THEN + 46 WHEN 99 THEN NULL ELSE 59 END )
----
966

query I rowsort
SELECT 5 + - 12 + + 48 * - + 22
----
-1063

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT DISTINCT COUNT( DISTINCT 72 ) - + + 86 + - 12
----
-97

skipif mysql # not compatible
query I rowsort label-793
SELECT DISTINCT COUNT ( DISTINCT 72 ) - + + 86 + - 12
----
-97

query II rowsort
SELECT + 13 - + 8 col2, + 80 + 30 + + 23
----
5
133

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT - + COUNT( DISTINCT + 82 )
----
-1

skipif mysql # not compatible
query I rowsort label-795
SELECT - + COUNT ( DISTINCT + 82 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT ( + 5 ) - - COUNT( 9 )
----
6

skipif mysql # not compatible
query I rowsort label-796
SELECT ( + 5 ) - - COUNT ( 9 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-797
SELECT CASE - 60 WHEN 89 / 76 THEN NULL WHEN - CAST( NULL AS SIGNED ) * - 92 THEN NULL WHEN - + ( + - 67 ) * - 94 - - 16 THEN MAX( 26 ) / + COUNT( * ) + - 33 + - + ( + 29 ) ELSE NULL END * + + 85 + + + 27 - - ( 45 ) + + - 89 / 66 + - 73 * - - 7 - - 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-797
SELECT CASE - 60 WHEN 89 / 76 THEN NULL WHEN - CAST ( NULL AS INTEGER ) * - 92 THEN NULL WHEN - + ( + - 67 ) * - 94 - - 16 THEN MAX ( 26 ) / + COUNT ( * ) + - 33 + - + ( + 29 ) ELSE NULL END * + + 85 + + + 27 - - ( 45 ) + + - 89 / 66 + - 73 * - - 7 - - 32 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-798
SELECT 39 * + CAST( 69 AS SIGNED )
----
2691

skipif mysql # not compatible
query I rowsort label-798
SELECT 39 * + CAST ( 69 AS INTEGER )
----
2691

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT MAX( + + 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-799
SELECT MAX ( + + 91 ) AS col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-800
SELECT 70 DIV + ( + 97 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-800
SELECT 70 / + ( + 97 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT ALL - COALESCE ( COALESCE ( - - 45, - 42 * - SUM( ALL + ( - 30 ) ) - + - 2 ), - 37, + ( 37 ) ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL - COALESCE ( COALESCE ( - - 45, - 42 * - SUM ( ALL + ( - 30 ) ) - + - 2 ), - 37, + ( 37 ) ) col1
----
-45

query I rowsort
SELECT DISTINCT + 75 * - + 18 + + 89 AS col0
----
-1261

query I rowsort
SELECT 18 * + NULLIF ( - 42, + + 94 )
----
-756

onlyif mysql # DIV for integer division: 
query I rowsort label-804
SELECT DISTINCT 24 DIV + 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-804
SELECT DISTINCT 24 / + 60 AS col0
----
0

query I rowsort
SELECT + 3 * + 33 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT COUNT( * ) * - - 36 + 70 - + 41 - - ( + COUNT( * ) ) + 6
----
72

skipif mysql # not compatible
query I rowsort label-806
SELECT COUNT ( * ) * - - 36 + 70 - + 41 - - ( + COUNT ( * ) ) + 6
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT ALL 37 + + COUNT( * ) * + 18 * - 36 - - ( 40 ) + + + 54 col0
----
-517

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL 37 + + COUNT ( * ) * + 18 * - 36 - - ( 40 ) + + + 54 col0
----
-517

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT ALL COUNT( * ) + 28 col1
----
29

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL COUNT ( * ) + 28 col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-809
SELECT + 5 * - + 4 + + 10 + + 71 + - MAX( + + CAST( NULL AS SIGNED ) ) AS col0, - 68 AS col1
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-809
SELECT + 5 * - + 4 + + 10 + + 71 + - MAX ( + + CAST ( NULL AS INTEGER ) ) AS col0, - 68 AS col1
----
NULL
-68

query I rowsort
SELECT ALL 30 + + NULLIF ( 48, NULLIF ( - ( 73 ), + 89 + - - 99 + 30 * 46 ) ) AS col2
----
78

query I rowsort
SELECT DISTINCT 1 + 98 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT 76 * - SUM( ALL - 44 ) + - - 10 AS col0
----
3354

skipif mysql # not compatible
query I rowsort label-812
SELECT 76 * - SUM ( ALL - 44 ) + - - 10 AS col0
----
3354

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-813
SELECT DISTINCT 36 + NULLIF ( + 4, - CASE - 25 WHEN - 59 + + NULLIF ( + - COALESCE ( NULLIF ( 42, + 77 ), - + 31, 6 / - - 33 ), + 15 * 92 + - - CAST( NULL AS DECIMAL ) ) / - - 79 THEN - 45 ELSE - 50 END ) + + 90 AS col2
----
130

skipif mysql # not compatible
query I rowsort label-813
SELECT DISTINCT 36 + NULLIF ( + 4, - CASE - 25 WHEN - 59 + + NULLIF ( + - COALESCE ( NULLIF ( 42, + 77 ), - + 31, 6 / - - 33 ), + 15 * 92 + - - CAST ( NULL AS REAL ) ) / - - 79 THEN - 45 ELSE - 50 END ) + + 90 AS col2
----
130

query II rowsort
SELECT 12 col1, - ( - ( - 98 ) )
----
12
-98

query I rowsort
SELECT 73 + - - 24
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-816
SELECT - 12, - 2 + - COUNT( * ) AS col0
----
-12
-3

skipif mysql # not compatible
query II rowsort label-816
SELECT - 12, - 2 + - COUNT ( * ) AS col0
----
-12
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT DISTINCT - COUNT( * ) + 88 + + 63 * 77 * + 59
----
286296

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT - COUNT ( * ) + 88 + + 63 * 77 * + 59
----
286296

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT ALL + SUM( + + 14 ) * - 78 + + 59 - 43
----
-1076

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL + SUM ( + + 14 ) * - 78 + + 59 - 43
----
-1076

query I rowsort
SELECT ALL - 14 - + - 46
----
32

query I rowsort
SELECT DISTINCT 87 * - 94 col2
----
-8178

query I rowsort
SELECT 8 + 29
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT ALL SUM( + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL SUM ( + 60 )
----
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-823
SELECT ALL + + 93 * + NULLIF ( - 94, + CAST( NULL AS SIGNED ) + 48 * AVG ( DISTINCT - 42 ) ) + + 68 DIV 31 - 74 AS col0
----
-8814

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL + + 93 * + NULLIF ( - 94, + CAST ( NULL AS INTEGER ) + 48 * AVG ( DISTINCT - 42 ) ) + + 68 / 31 - 74 AS col0
----
-8814

query I rowsort
SELECT ALL - + 30 * 81 AS col2
----
-2430

query I rowsort
SELECT + ( + 70 ) col2
----
70

query I rowsort
SELECT - 11 + - - 64 + - NULLIF ( 78, + 85 )
----
-25

query I rowsort
SELECT 95 + + 45 + - 1 + + - 3
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-828
SELECT - MAX( 96 ) - - COALESCE ( 71, - + COALESCE ( + + 63, - - COUNT( * ) ) ) + COUNT( * ) DIV 48 DIV COUNT( * ) + - 29 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-828
SELECT - MAX ( 96 ) - - COALESCE ( 71, - + COALESCE ( + + 63, - - COUNT ( * ) ) ) + COUNT ( * ) / 48 / COUNT ( * ) + - 29 AS col2
----
-54

query I rowsort
SELECT 54 * + - 25
----
-1350

query I rowsort
SELECT 41 + 62 AS col2
----
103

query I rowsort
SELECT DISTINCT + ( 31 ) AS col2
----
31

query I rowsort
SELECT + 60 + - + 29 AS col0
----
31

query II rowsort
SELECT 33 * - + 56 * - ( - - NULLIF ( + + NULLIF ( - 70, 19 ), 0 ) ) AS col1, + 60
----
-129360
60

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT + COUNT( * ) + - + 21 + + + 28 col2
----
8

skipif mysql # not compatible
query I rowsort label-834
SELECT + COUNT ( * ) + - + 21 + + + 28 col2
----
8

query I rowsort
SELECT + 23 + + + 26 col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT ALL 58 * + + 90 + - 36 + - COUNT( * ) * 7
----
5177

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL 58 * + + 90 + - 36 + - COUNT ( * ) * 7
----
5177

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT MAX( ALL - 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-837
SELECT MAX ( ALL - 85 ) AS col1
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-838
SELECT ALL 51 * + + 31 * + 2 * + COUNT( DISTINCT 7 ) * 77 + + - COUNT( * ) DIV + + 71 * + COUNT( * ) + - 10 + - 99 + + - 75
----
243290

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL 51 * + + 31 * + 2 * + COUNT ( DISTINCT 7 ) * 77 + + - COUNT ( * ) / + + 71 * + COUNT ( * ) + - 10 + - 99 + + - 75
----
243290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-839
SELECT DISTINCT COUNT( * ) * 84 + - 97 + NULLIF ( + 14, + CASE + 76 WHEN - 2 - + COALESCE ( 40, - 6 + - + 80 * + COUNT( * ) + - 50 + 27 * + MAX( DISTINCT 37 ) + - + COUNT( * ) ) THEN + CAST( NULL AS SIGNED ) WHEN - CAST( + 85 AS SIGNED ) * - 23 - 78 THEN NULL END ) + + - 11 + + SUM( ALL - + 83 ) * - + MIN( + 81 )
----
6713

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT COUNT ( * ) * 84 + - 97 + NULLIF ( + 14, + CASE + 76 WHEN - 2 - + COALESCE ( 40, - 6 + - + 80 * + COUNT ( * ) + - 50 + 27 * + MAX ( DISTINCT 37 ) + - + COUNT ( * ) ) THEN + CAST ( NULL AS INTEGER ) WHEN - CAST ( + 85 AS INTEGER ) * - 23 - 78 THEN NULL END ) + + - 11 + + SUM ( ALL - + 83 ) * - + MIN ( + 81 )
----
6713

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-840
SELECT ALL COUNT( * ) DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL COUNT ( * ) / - 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT COUNT( ALL 80 )
----
1

skipif mysql # not compatible
query I rowsort label-841
SELECT COUNT ( ALL 80 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-842
SELECT + COUNT( DISTINCT + - 22 ) * - 1 * - 83 DIV 68 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-842
SELECT + COUNT ( DISTINCT + - 22 ) * - 1 * - 83 / 68 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-843
SELECT ALL CASE - 30 WHEN CAST( NULL AS SIGNED ) + - + 52 THEN 61 / + CASE + - CAST( NULL AS SIGNED ) WHEN 78 THEN + 93 WHEN 42 * + SUM( 74 ) / + 26 * + + 69 + 52 + 30 THEN NULL ELSE - 59 * - 38 * - 21 + - MAX( - + 7 ) END * + COUNT( * ) + + 35 * - COUNT( * ) + 83 - - COUNT( * ) * - 36 * 50 ELSE NULL END * + + 45 + + 56 + - - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL CASE - 30 WHEN CAST ( NULL AS INTEGER ) + - + 52 THEN 61 / + CASE + - CAST ( NULL AS INTEGER ) WHEN 78 THEN + 93 WHEN 42 * + SUM ( 74 ) / + 26 * + + 69 + 52 + 30 THEN NULL ELSE - 59 * - 38 * - 21 + - MAX ( - + 7 ) END * + COUNT ( * ) + + 35 * - COUNT ( * ) + 83 - - COUNT ( * ) * - 36 * 50 ELSE NULL END * + + 45 + + 56 + - - 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT COUNT( DISTINCT + + 95 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-844
SELECT COUNT ( DISTINCT + + 95 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT + 94 + + + COUNT( * ) + + 5
----
100

skipif mysql # not compatible
query I rowsort label-845
SELECT + 94 + + + COUNT ( * ) + + 5
----
100

query II rowsort
SELECT + 59 * + 61 AS col1, 38 * ( - 82 ) col2
----
3599
-3116

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT + SUM( DISTINCT 7 )
----
7

skipif mysql # not compatible
query I rowsort label-847
SELECT + SUM ( DISTINCT 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT ALL COUNT( * ) - - 53 - 41 * + - 5 + + - 14 AS col2
----
245

skipif mysql # not compatible
query I rowsort label-848
SELECT ALL COUNT ( * ) - - 53 - 41 * + - 5 + + - 14 AS col2
----
245

query I rowsort
SELECT + 40 + - - 85
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-850
SELECT DISTINCT COUNT( * ) - + + 46, 78 + + + COUNT( * ) AS col0
----
-45
79

skipif mysql # not compatible
query II rowsort label-850
SELECT DISTINCT COUNT ( * ) - + + 46, 78 + + + COUNT ( * ) AS col0
----
-45
79

query I rowsort
SELECT + 17 + 60 + - - 17
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT ALL COUNT( ALL + 45 ) - + 78 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL COUNT ( ALL + 45 ) - + 78 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT + 93 * + COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-853
SELECT + 93 * + COUNT ( * ) AS col0
----
93

query I rowsort
SELECT - - 76 col1
----
76

query I rowsort
SELECT + + 97 * - - 0 + - 24 AS col0
----
-24

query I rowsort
SELECT ALL + ( - - 51 ) * + + 76 AS col2
----
3876

onlyif mysql # aggregate syntax: 
query III rowsort label-857
SELECT ALL + + COUNT( * ) * + COUNT( * ) * + 67 + - 88 AS col1, NULLIF ( - 21, + 93 ), - 55 AS col2
----
-21
-21
-55

skipif mysql # not compatible
query III rowsort label-857
SELECT ALL + + COUNT ( * ) * + COUNT ( * ) * + 67 + - 88 AS col1, NULLIF ( - 21, + 93 ), - 55 AS col2
----
-21
-21
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-858
SELECT - + 47 DIV 91 - - 85 DIV - 42 + - 90 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-858
SELECT - + 47 / 91 - - 85 / - 42 + - 90 AS col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-859
SELECT ALL - CAST( NULL AS DECIMAL ) * + - AVG ( - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) * - - 18 - + ( - COALESCE ( + CAST( 12 AS SIGNED ), 35 * - - 41 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-859
SELECT ALL - CAST ( NULL AS REAL ) * + - AVG ( - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - - 18 - + ( - COALESCE ( + CAST ( 12 AS INTEGER ), 35 * - - 41 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT - 58 * + COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-860
SELECT - 58 * + COUNT ( * ) AS col2
----
-58

query I rowsort
SELECT ALL 28 * - 31 + 52 + 29 col0
----
-787

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-862
SELECT ( - NULLIF ( - ( - CAST( NULL AS SIGNED ) ), - + 96 * - 66 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-862
SELECT ( - NULLIF ( - ( - CAST ( NULL AS INTEGER ) ), - + 96 * - 66 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT - - COUNT( DISTINCT + - 4 )
----
1

skipif mysql # not compatible
query I rowsort label-863
SELECT - - COUNT ( DISTINCT + - 4 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-864
SELECT ALL + 68 DIV 80 * + 32 DIV + 67 + 12 + + + 53
----
65

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL + 68 / 80 * + 32 / + 67 + 12 + + + 53
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-865
SELECT + + 4 * - SUM( 58 ) - - 17, - MAX( + 14 ) AS col1
----
-215
-14

skipif mysql # not compatible
query II rowsort label-865
SELECT + + 4 * - SUM ( 58 ) - - 17, - MAX ( + 14 ) AS col1
----
-215
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT DISTINCT + 3 * + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT + 3 * + COUNT ( * )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-867
SELECT ALL 91 DIV + 71 + + + COUNT( * ) AS col2, - 54 AS col2
----
2
-54

skipif mysql # not compatible
query II rowsort label-867
SELECT ALL 91 / + 71 + + + COUNT ( * ) AS col2, - 54 AS col2
----
2
-54

query I rowsort
SELECT - 13 - - ( + 64 ) + - 70 + - ( ( - 91 ) ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-869
SELECT ALL 16 / + + CASE - COUNT( * ) WHEN + + MIN( ALL + 41 ) THEN + 96 * - ( - - ( - + ( 47 ) ) ) END + - 86 * + + ( + - 28 ) * - + 86 + - + 80 AS col0, - 19 AS col0
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-869
SELECT ALL 16 / + + CASE - COUNT ( * ) WHEN + + MIN ( ALL + 41 ) THEN + 96 * - ( - - ( - + ( 47 ) ) ) END + - 86 * + + ( + - 28 ) * - + 86 + - + 80 AS col0, - 19 AS col0
----
NULL
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-870
SELECT - CAST( 77 AS SIGNED ) * 94 + + - 24 - + 71 * + CASE + - SUM( + 98 ) WHEN + COUNT( * ) * + AVG ( ALL - - 63 ) + - + 76 * COUNT( * ) + + - 11 THEN NULL ELSE - - 13 * + 71 END
----
-72795

skipif mysql # not compatible
query I rowsort label-870
SELECT - CAST ( 77 AS INTEGER ) * 94 + + - 24 - + 71 * + CASE + - SUM ( + 98 ) WHEN + COUNT ( * ) * + AVG ( ALL - - 63 ) + - + 76 * COUNT ( * ) + + - 11 THEN NULL ELSE - - 13 * + 71 END
----
-72795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-871
SELECT - CAST( - 81 AS SIGNED ) * - + 6
----
-486

skipif mysql # not compatible
query I rowsort label-871
SELECT - CAST ( - 81 AS INTEGER ) * - + 6
----
-486

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT - COALESCE ( ( - COUNT( * ) ), + 91 + - + 54 ) * 90 * - NULLIF ( - COUNT( * ), + CASE - 27 WHEN + 37 * + 5 THEN + 64 + - - 63 WHEN - - 83 THEN + - 62 - - 25 + - 83 * - - 26 + 55 - - 49 * + 42 WHEN - ( 88 ) THEN NULL ELSE NULLIF ( - - COALESCE ( + + 49, + 79 ), - + 65 ) + 36 - - - 79 END )
----
90

skipif mysql # not compatible
query I rowsort label-872
SELECT - COALESCE ( ( - COUNT ( * ) ), + 91 + - + 54 ) * 90 * - NULLIF ( - COUNT ( * ), + CASE - 27 WHEN + 37 * + 5 THEN + 64 + - - 63 WHEN - - 83 THEN + - 62 - - 25 + - 83 * - - 26 + 55 - - 49 * + 42 WHEN - ( 88 ) THEN NULL ELSE NULLIF ( - - COALESCE ( + + 49, + 79 ), - + 65 ) + 36 - - - 79 END )
----
90

query I rowsort
SELECT ( 32 )
----
32

query I rowsort
SELECT ALL + 86 * 5
----
430

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT - 59 * + - 95 - + - COUNT( * ) + + 29 AS col0
----
5635

skipif mysql # not compatible
query I rowsort label-875
SELECT - 59 * + - 95 - + - COUNT ( * ) + + 29 AS col0
----
5635

onlyif mysql # aggregate syntax: 
query II rowsort label-876
SELECT - 71 * - COUNT( * ) * + 2 AS col2, - 11
----
142
-11

skipif mysql # not compatible
query II rowsort label-876
SELECT - 71 * - COUNT ( * ) * + 2 AS col2, - 11
----
142
-11

query I rowsort
SELECT ALL - 23 * - 31 - - + 40
----
753

query II rowsort
SELECT COALESCE ( 84, + 27 ) AS col1, + 66 col0
----
84
66

query I rowsort
SELECT ALL - 86 * + + 36
----
-3096

onlyif mysql # DIV for integer division: 
query I rowsort label-880
SELECT ALL 35 DIV 23
----
1

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL 35 / 23
----
1

query I rowsort
SELECT + 99 + - 89
----
10

query I rowsort
SELECT ALL + ( + - 70 )
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-883
SELECT + 76 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-883
SELECT + 76 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-884
SELECT - 87 DIV 47 * 60 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-884
SELECT - 87 / 47 * 60 AS col2
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-885
SELECT + 93 * - CAST( NULL AS DECIMAL ) * + 49 * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-885
SELECT + 93 * - CAST ( NULL AS REAL ) * + 49 * + 7
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-886
SELECT ALL 99 DIV - 60
----
-1

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL 99 / - 60
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT - COUNT( DISTINCT - 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-887
SELECT - COUNT ( DISTINCT - 73 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT + 69 * COUNT( * ) col2
----
69

skipif mysql # not compatible
query I rowsort label-888
SELECT + 69 * COUNT ( * ) col2
----
69

query II rowsort
SELECT + + 51 * + 27 + + - 94, 84 AS col0
----
1283
84

query II rowsort
SELECT ALL 3 AS col1, - 19 AS col1
----
3
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT - COALESCE ( - 1, + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-891
SELECT - COALESCE ( - 1, + + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT ALL 16 * + + 97 - - + 35 - - 11 - - 31 * + CASE - 21 WHEN + + 97 THEN - 61 * + - CASE - 6 WHEN + - ( + 54 ) THEN + 92 * - 17 * CASE + + 45 WHEN - 35 + + 30 THEN NULL WHEN - 90 THEN + COUNT( * ) END WHEN + 8 * - + 40 THEN + 34 WHEN - 10 - + 79 / - + 69 THEN NULL END WHEN 87 * + - 11 + + - 82 + 55 + + 7 * - - 28 / 68 THEN - 44 WHEN SUM( + 4 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL 16 * + + 97 - - + 35 - - 11 - - 31 * + CASE - 21 WHEN + + 97 THEN - 61 * + - CASE - 6 WHEN + - ( + 54 ) THEN + 92 * - 17 * CASE + + 45 WHEN - 35 + + 30 THEN NULL WHEN - 90 THEN + COUNT ( * ) END WHEN + 8 * - + 40 THEN + 34 WHEN - 10 - + 79 / - + 69 THEN NULL END WHEN 87 * + - 11 + + - 82 + 55 + + 7 * - - 28 / 68 THEN - 44 WHEN SUM ( + 4 ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - 86 * + 7
----
-602

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-894
SELECT + - MAX( ALL - 51 ) + + CAST( + 41 AS DECIMAL ) * 72 + AVG ( + 94 ) + 16 + + NULLIF ( - CASE - COUNT( * ) WHEN - 24 THEN 70 + - COUNT( * ) + + 19 END, MIN( + 63 ) ) / + 91 + - ( - 48 ) / - MAX( ALL - 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-894
SELECT + - MAX ( ALL - 51 ) + + CAST ( + 41 AS REAL ) * 72 + AVG ( + 94 ) + 16 + + NULLIF ( - CASE - COUNT ( * ) WHEN - 24 THEN 70 + - COUNT ( * ) + + 19 END, MIN ( + 63 ) ) / + 91 + - ( - 48 ) / - MAX ( ALL - 23 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT DISTINCT MAX( - 97 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-895
SELECT DISTINCT MAX ( - 97 ) AS col1
----
-97

query I rowsort
SELECT + + 99 + 16 - - - 3 + 54
----
166

query I rowsort
SELECT + - 93 - 24 * - 43 + 36 col1
----
975

onlyif mysql # aggregate syntax: 
query II rowsort label-898
SELECT ALL 62 + - MIN( - 98 ) AS col2, - 58 * + COUNT( * )
----
160
-58

skipif mysql # not compatible
query II rowsort label-898
SELECT ALL 62 + - MIN ( - 98 ) AS col2, - 58 * + COUNT ( * )
----
160
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-899
SELECT CAST( + + COUNT( * ) AS SIGNED ) + - - 64 * - - 34
----
2177

skipif mysql # not compatible
query I rowsort label-899
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) + - - 64 * - - 34
----
2177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-900
SELECT ALL - ( CAST( + 25 AS SIGNED ) ) * + + 26 AS col2
----
-650

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL - ( CAST ( + 25 AS INTEGER ) ) * + + 26 AS col2
----
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT - NULLIF ( + SUM( ALL + - 94 ), - + 54 )
----
94

skipif mysql # not compatible
query I rowsort label-901
SELECT - NULLIF ( + SUM ( ALL + - 94 ), - + 54 )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-902
SELECT ALL COUNT( * ) DIV + 49 * ( - 57 )
----
0

skipif mysql # not compatible
query I rowsort label-902
SELECT ALL COUNT ( * ) / + 49 * ( - 57 )
----
0

query I rowsort
SELECT DISTINCT + 11 + + - 1 + + 49
----
59

query I rowsort
SELECT ALL + 89 * - + 17 AS col1
----
-1513

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-905
SELECT ALL 42 + + CAST( - 33 AS SIGNED ) * + 41 AS col0
----
-1311

skipif mysql # not compatible
query I rowsort label-905
SELECT ALL 42 + + CAST ( - 33 AS INTEGER ) * + 41 AS col0
----
-1311

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT ALL COUNT( * ) * - 75
----
-75

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL COUNT ( * ) * - 75
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-907
SELECT CAST( NULL AS SIGNED ) / 27 + 15 - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-907
SELECT CAST ( NULL AS INTEGER ) / 27 + 15 - + COUNT ( * )
----
NULL

query I rowsort
SELECT 54 * ( COALESCE ( ( + 31 ), 12 + - + COALESCE ( 52, - 97 ) ) )
----
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT DISTINCT 13 * + + 71 * + COUNT( * )
----
923

skipif mysql # not compatible
query I rowsort label-909
SELECT DISTINCT 13 * + + 71 * + COUNT ( * )
----
923

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-910
SELECT DISTINCT + 0 - + - 81 + - COALESCE ( 42, - SUM( DISTINCT - - 29 ) - + 40 - - - MIN( 77 ) * + + 0 * ( 15 ), + 51 ) + CAST( NULL AS SIGNED ) col2, + 28 + COUNT( ALL - 16 ) * + COALESCE ( + 0, 95 + + COUNT( * ), + SUM( + 25 ) ) AS col1
----
NULL
28

skipif mysql # not compatible
query II rowsort label-910
SELECT DISTINCT + 0 - + - 81 + - COALESCE ( 42, - SUM ( DISTINCT - - 29 ) - + 40 - - - MIN ( 77 ) * + + 0 * ( 15 ), + 51 ) + CAST ( NULL AS INTEGER ) col2, + 28 + COUNT ( ALL - 16 ) * + COALESCE ( + 0, 95 + + COUNT ( * ), + SUM ( + 25 ) ) AS col1
----
NULL
28

query I rowsort
SELECT DISTINCT 18 * - 20 AS col1
----
-360

query II rowsort
SELECT ALL - 27, 95 + - 68 col2
----
-27
27

query II rowsort
SELECT DISTINCT - 30 AS col1, + 0 AS col2
----
-30
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-914
SELECT 14 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-914
SELECT 14 * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-915
SELECT 1 col2, 35 * + - 68 * - ( - - CASE + ( CAST( - 28 AS SIGNED ) ) WHEN - ( 41 ) THEN + 2 + CAST( NULL AS SIGNED ) - + 47 ELSE NULL END ) * 90 + + 75 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-915
SELECT 1 col2, 35 * + - 68 * - ( - - CASE + ( CAST ( - 28 AS INTEGER ) ) WHEN - ( 41 ) THEN + 2 + CAST ( NULL AS INTEGER ) - + 47 ELSE NULL END ) * 90 + + 75 AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT ALL - MIN( - - 33 ) * + ( + 87 ) + + COALESCE ( - ( + 21 ), COUNT( * ) ) * + - 43 AS col0
----
-1968

skipif mysql # not compatible
query I rowsort label-916
SELECT ALL - MIN ( - - 33 ) * + ( + 87 ) + + COALESCE ( - ( + 21 ), COUNT ( * ) ) * + - 43 AS col0
----
-1968

query I rowsort
SELECT 98 - - 75 + + 20 AS col2
----
193

onlyif mysql # DIV for integer division: 
query I rowsort label-918
SELECT 33 DIV + 38 col1
----
0

skipif mysql # not compatible
query I rowsort label-918
SELECT 33 / + 38 col1
----
0

query I rowsort
SELECT 4 * - 16
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT ALL - ( SUM( ALL + - 85 ) )
----
85

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL - ( SUM ( ALL + - 85 ) )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-921
SELECT 70 + + CAST( + - 54 AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-921
SELECT 70 + + CAST ( + - 54 AS INTEGER ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT - + SUM( 74 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-922
SELECT - + SUM ( 74 ) AS col2
----
-74

query II rowsort
SELECT - + 62 AS col0, + 60
----
-62
60

query I rowsort
SELECT ALL + 34 + + - 73 + + 28 AS col2
----
-11

query I rowsort
SELECT COALESCE ( + + 86, 1 ) * 20 AS col2
----
1720

query II rowsort
SELECT + 82, + 64 AS col0
----
82
64

query I rowsort
SELECT 39 + - - 37 * + - 80
----
-2921

query I rowsort
SELECT DISTINCT 46 + - + 86
----
-40

query II rowsort
SELECT - 5 AS col1, 3
----
-5
3

query I rowsort
SELECT ALL 73 + - + ( + - ( ( + 9 ) ) ) AS col0
----
82

query II rowsort
SELECT - 38, 28 AS col2
----
-38
28

query II rowsort
SELECT ALL + 23, - 54 AS col1
----
23
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT DISTINCT 35 * - ( - + 65 ) * - 35 * + COALESCE ( 83, + 14 * 61, + COUNT( * ) * + 53 ) + - MIN( DISTINCT 11 ) col2
----
-6608886

skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT 35 * - ( - + 65 ) * - 35 * + COALESCE ( 83, + 14 * 61, + COUNT ( * ) * + 53 ) + - MIN ( DISTINCT 11 ) col2
----
-6608886

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT CASE + 31 WHEN - 43 THEN NULL WHEN - + 11 * + + 74 + + - 5 THEN NULL ELSE + - COUNT( * ) END - + 94 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-934
SELECT CASE + 31 WHEN - 43 THEN NULL WHEN - + 11 * + + 74 + + - 5 THEN NULL ELSE + - COUNT ( * ) END - + 94 AS col2
----
-95

query I rowsort
SELECT + 14 * + - 40
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT 63 - 83 * - + COUNT( * ) * - 0 col2
----
63

skipif mysql # not compatible
query I rowsort label-936
SELECT 63 - 83 * - + COUNT ( * ) * - 0 col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT COUNT( - ( 0 ) ) * 89 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-937
SELECT COUNT ( - ( 0 ) ) * 89 AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-938
SELECT ALL 24 DIV + - 91 AS col0, + 28 - MAX( - + 6 )
----
0
34

skipif mysql # not compatible
query II rowsort label-938
SELECT ALL 24 / + - 91 AS col0, + 28 - MAX ( - + 6 )
----
0
34

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT + COUNT( 28 )
----
1

skipif mysql # not compatible
query I rowsort label-939
SELECT + COUNT ( 28 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT ALL - CASE - COUNT( * ) WHEN + AVG ( + + 61 ) * - + 31 / - 14 - + 56 * 38 + ( + + 45 ) + - COUNT( * ) THEN + + 81 WHEN 44 THEN - 88 + + 7 WHEN + 47 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL - CASE - COUNT ( * ) WHEN + AVG ( + + 61 ) * - + 31 / - 14 - + 56 * 38 + ( + + 45 ) + - COUNT ( * ) THEN + + 81 WHEN 44 THEN - 88 + + 7 WHEN + 47 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-941
SELECT + 51 DIV - - 64 * + 20 - - 35
----
35

skipif mysql # not compatible
query I rowsort label-941
SELECT + 51 / - - 64 * + 20 - - 35
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-942
SELECT NULLIF ( + COUNT( * ), - COUNT( * ) + + 37 + - - 3 + - 91 * + CAST( + 89 AS SIGNED ) ) - - 75
----
76

skipif mysql # not compatible
query I rowsort label-942
SELECT NULLIF ( + COUNT ( * ), - COUNT ( * ) + + 37 + - - 3 + - 91 * + CAST ( + 89 AS INTEGER ) ) - - 75
----
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-943
SELECT AVG ( - - CAST( NULL AS DECIMAL ) ) / + 98 - - - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-943
SELECT AVG ( - - CAST ( NULL AS REAL ) ) / + 98 - - - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT NULLIF ( + 1, + + COUNT( * ) ) * - + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-944
SELECT NULLIF ( + 1, + + COUNT ( * ) ) * - + 77 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 23 * 47
----
1081

query I rowsort
SELECT 24 * - CASE + 82 WHEN - 84 + + 78 THEN 31 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT 27 * + + MIN( + 79 )
----
2133

skipif mysql # not compatible
query I rowsort label-947
SELECT 27 * + + MIN ( + 79 )
----
2133

query I rowsort
SELECT 7 + - ( 80 )
----
-73

query I rowsort
SELECT 87 * + 74 * + 14 * 81 * + NULLIF ( - 40, + - 98 + + 99 ) - - 72
----
-292027608

query I rowsort
SELECT 14 * - + 92 col1
----
-1288

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-951
SELECT ALL COUNT( * ) + + + 49 AS col1, 38 DIV 94
----
50
0

skipif mysql # not compatible
query II rowsort label-951
SELECT ALL COUNT ( * ) + + + 49 AS col1, 38 / 94
----
50
0

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT ALL - + MAX( DISTINCT + 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL - + MAX ( DISTINCT + 36 ) AS col1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-953
SELECT + COUNT( * ) * 71 + - 58 + - 13 * 33 DIV + 22
----
-6

skipif mysql # not compatible
query I rowsort label-953
SELECT + COUNT ( * ) * 71 + - 58 + - 13 * 33 / + 22
----
-6

query I rowsort
SELECT 54 + 33 AS col1
----
87

query I rowsort
SELECT CASE - 57 WHEN 24 - - 36 THEN NULL WHEN 24 THEN - 11 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 38 + + 36 AS col0
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-957
SELECT + 77 + - SUM( ALL 15 ) + + - ( - 52 ) - + 4 * - + COALESCE ( 2, - - 98, + 19 * + + COALESCE ( + 42, + 92 ) ) AS col2, 7 col1
----
122
7

skipif mysql # not compatible
query II rowsort label-957
SELECT + 77 + - SUM ( ALL 15 ) + + - ( - 52 ) - + 4 * - + COALESCE ( 2, - - 98, + 19 * + + COALESCE ( + 42, + 92 ) ) AS col2, 7 col1
----
122
7

query I rowsort
SELECT DISTINCT - 46 * - 13 + - 38
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT ALL + + 3 * - COUNT( * ) * + 94 AS col2
----
-282

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL + + 3 * - COUNT ( * ) * + 94 AS col2
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT - MIN( 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-960
SELECT - MIN ( 29 )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-961
SELECT DISTINCT - COUNT( * ) - - - 91 * - 87 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-961
SELECT DISTINCT - COUNT ( * ) - - - 91 * - 87 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT + MIN( - 68 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-962
SELECT + MIN ( - 68 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT - 93 + 16 * 37 * + COUNT( * )
----
499

skipif mysql # not compatible
query I rowsort label-963
SELECT - 93 + 16 * 37 * + COUNT ( * )
----
499

query I rowsort
SELECT + - 92 * + 9 * - ( + 50 )
----
41400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-965
SELECT DISTINCT + + COUNT( + 85 ) DIV 53 DIV 35
----
0

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT + + COUNT ( + 85 ) / 53 / 35
----
0

query I rowsort
SELECT - 54 + - 39
----
-93

query I rowsort
SELECT + 60 - 56
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT - ( 0 ) + + MAX( ALL - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-968
SELECT - ( 0 ) + + MAX ( ALL - 2 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-969
SELECT DISTINCT NULLIF ( - 37, - - 6 ) col0, - CAST( NULL AS SIGNED ) * + 5 * - - 75 * + + 50 + + - 80 + 39
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-969
SELECT DISTINCT NULLIF ( - 37, - - 6 ) col0, - CAST ( NULL AS INTEGER ) * + 5 * - - 75 * + + 50 + + - 80 + 39
----
-37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT ALL 18 * + COUNT( * ) * - NULLIF ( - 97, - COALESCE ( + 38, + - 23 * 13, - ( 47 ) ) ) AS col1
----
1746

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL 18 * + COUNT ( * ) * - NULLIF ( - 97, - COALESCE ( + 38, + - 23 * 13, - ( 47 ) ) ) AS col1
----
1746

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT + COUNT( * ) + + 45 col1
----
46

skipif mysql # not compatible
query I rowsort label-971
SELECT + COUNT ( * ) + + 45 col1
----
46

query I rowsort
SELECT ALL - 82 * + - 46
----
3772

query II rowsort
SELECT + 0 + + + 77 * 32, 24 + 56 + 75 AS col0
----
2464
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-974
SELECT - MAX( ALL - CAST( - 8 AS SIGNED ) ) * + ( + + 93 ) + + 55 + - 47 * - - 30 * + 84 * COUNT( * ) AS col0
----
-119129

skipif mysql # not compatible
query I rowsort label-974
SELECT - MAX ( ALL - CAST ( - 8 AS INTEGER ) ) * + ( + + 93 ) + + 55 + - 47 * - - 30 * + 84 * COUNT ( * ) AS col0
----
-119129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-975
SELECT - ( - COALESCE ( + 74, - 61 ) ) DIV COUNT( * ) + + + 22 + 95 * + 39
----
3801

skipif mysql # not compatible
query I rowsort label-975
SELECT - ( - COALESCE ( + 74, - 61 ) ) / COUNT ( * ) + + + 22 + 95 * + 39
----
3801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-976
SELECT ALL 82 * - CAST( + COUNT( * ) AS SIGNED ) * ( + 21 ) * + - 76
----
130872

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL 82 * - CAST ( + COUNT ( * ) AS INTEGER ) * ( + 21 ) * + - 76
----
130872

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-977
SELECT ( CAST( - ( + + 85 ) AS SIGNED ) ), 77 col1
----
-85
77

skipif mysql # not compatible
query II rowsort label-977
SELECT ( CAST ( - ( + + 85 ) AS INTEGER ) ), 77 col1
----
-85
77

query I rowsort
SELECT + 53 + - 3 AS col2
----
50

query I rowsort
SELECT ALL 40 * + - 38 + 86 - + 69 * - - 78 * + - 9 AS col0
----
47004

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT ALL - NULLIF ( - 76, - 17 * - 81 + - + COUNT( * ) ) * - 77 + + - 95 AS col0
----
-5947

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL - NULLIF ( - 76, - 17 * - 81 + - + COUNT ( * ) ) * - 77 + + - 95 AS col0
----
-5947

onlyif mysql # DIV for integer division: 
query II rowsort label-981
SELECT + NULLIF ( - - 99, - 48 ) AS col0, 90 DIV - 64 AS col1
----
99
-1

skipif mysql # not compatible
query II rowsort label-981
SELECT + NULLIF ( - - 99, - 48 ) AS col0, 90 / - 64 AS col1
----
99
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-982
SELECT ALL - ( 46 ) * + 45 + - 33 + CASE - + 55 WHEN - 3 - + 49 THEN + + CAST( + 27 AS SIGNED ) + - 77 WHEN 21 THEN + ( - 44 ) ELSE + - COUNT( * ) + - 1 END
----
-2105

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL - ( 46 ) * + 45 + - 33 + CASE - + 55 WHEN - 3 - + 49 THEN + + CAST ( + 27 AS INTEGER ) + - 77 WHEN 21 THEN + ( - 44 ) ELSE + - COUNT ( * ) + - 1 END
----
-2105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-983
SELECT + 10 * + + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-983
SELECT + 10 * + + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-984
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) DIV - 68 + + ( 93 ) * 55 * - COUNT( * )
----
-5115

skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) / - 68 + + ( 93 ) * 55 * - COUNT ( * )
----
-5115

query I rowsort
SELECT + ( - + 84 )
----
-84

query II rowsort
SELECT + - 9, 84 AS col1
----
-9
84

query I rowsort
SELECT DISTINCT - + 22 * + - 8 * - + 68 * - + 95 + - + ( - + 24 )
----
1136984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-988
SELECT ALL + - 56 * - 7 * ( CAST( NULL AS SIGNED ) ) + + 94 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL + - 56 * - 7 * ( CAST ( NULL AS INTEGER ) ) + + 94 col2
----
NULL

query I rowsort
SELECT + 52 * + 83 AS col2
----
4316

query I rowsort
SELECT ALL 5 * 18
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-991
SELECT DISTINCT - 52 * + 61 - 91 DIV 32 - + 35 + 50, MAX( - 31 ) DIV - 43 * + 80 AS col2
----
-3159
0

skipif mysql # not compatible
query II rowsort label-991
SELECT DISTINCT - 52 * + 61 - 91 / 32 - + 35 + 50, MAX ( - 31 ) / - 43 * + 80 AS col2
----
-3159
0

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT ALL - CASE - - COUNT( * ) WHEN 51 THEN - COUNT( - 94 ) + - - 88 END * + 39 + + 0 - + MAX( + - 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL - CASE - - COUNT ( * ) WHEN 51 THEN - COUNT ( - 94 ) + - - 88 END * + 39 + + 0 - + MAX ( + - 41 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT + - 87 * - 24 + 89 * + NULLIF ( COUNT( 50 ), NULLIF ( - 84, - 96 ) * + COUNT( * ) + 12 )
----
2177

skipif mysql # not compatible
query I rowsort label-993
SELECT + - 87 * - 24 + 89 * + NULLIF ( COUNT ( 50 ), NULLIF ( - 84, - 96 ) * + COUNT ( * ) + 12 )
----
2177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-994
SELECT + CAST( 53 AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-994
SELECT + CAST ( 53 AS INTEGER )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-995
SELECT - - 12 - - 4 * - ( ( + 43 ) ) * CAST( + 91 AS SIGNED ) + - 63 AS col2
----
-15703

skipif mysql # not compatible
query I rowsort label-995
SELECT - - 12 - - 4 * - ( ( + 43 ) ) * CAST ( + 91 AS INTEGER ) + - 63 AS col2
----
-15703

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-996
SELECT + 69 * - COUNT( * ) DIV - + COALESCE ( 98, NULLIF ( COUNT( * ), COUNT( * ) * + 73 ) - + 55 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-996
SELECT + 69 * - COUNT ( * ) / - + COALESCE ( 98, NULLIF ( COUNT ( * ), COUNT ( * ) * + 73 ) - + 55 ) AS col0
----
0

query II rowsort
SELECT ALL + 91, - 94 col2
----
91
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-998
SELECT - 73, 51 + - ( + 59 ) * + 82 * ( + COUNT( 51 ) ) + 89 DIV + 78 AS col2
----
-73
-4786

skipif mysql # not compatible
query II rowsort label-998
SELECT - 73, 51 + - ( + 59 ) * + 82 * ( + COUNT ( 51 ) ) + 89 / + 78 AS col2
----
-73
-4786

query II rowsort
SELECT - + 94 AS col1, 73 * + - 89 AS col1
----
-94
-6497

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT DISTINCT - MAX( ALL + 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT - MAX ( ALL + 7 ) AS col2
----
-7

query I rowsort
SELECT ALL + + 84 * + 36 * - NULLIF ( 3, 76 ) AS col1
----
-9072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1002
SELECT ALL + COALESCE ( - + 89, - - 66, - COUNT( * ) + + SUM( + - 86 ) ) DIV - 52 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL + COALESCE ( - + 89, - - 66, - COUNT ( * ) + + SUM ( + - 86 ) ) / - 52 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1003
SELECT ALL 2 col0, - COUNT( * ) + + 29
----
2
28

skipif mysql # not compatible
query II rowsort label-1003
SELECT ALL 2 col0, - COUNT ( * ) + + 29
----
2
28

query I rowsort
SELECT ALL ( 62 ) AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1005
SELECT DISTINCT CAST( 49 AS SIGNED ) AS col1, - CAST( - - 51 AS SIGNED ) * ( - 57 ) - ( - - CAST( NULL AS SIGNED ) )
----
49
NULL

skipif mysql # not compatible
query II rowsort label-1005
SELECT DISTINCT CAST ( 49 AS INTEGER ) AS col1, - CAST ( - - 51 AS INTEGER ) * ( - 57 ) - ( - - CAST ( NULL AS INTEGER ) )
----
49
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT ALL + NULLIF ( - - 17, COUNT( * ) * + 59 - COALESCE ( 63, 61, - + 62 - + ( 26 ) ) * 14 ) + - - 11
----
28

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL + NULLIF ( - - 17, COUNT ( * ) * + 59 - COALESCE ( 63, 61, - + 62 - + ( 26 ) ) * 14 ) + - - 11
----
28

query I rowsort
SELECT ALL - 24 + - 2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT - 17 * + COUNT( * ) * + ( - 13 ) col2
----
221

skipif mysql # not compatible
query I rowsort label-1008
SELECT - 17 * + COUNT ( * ) * + ( - 13 ) col2
----
221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1009
SELECT ALL + CAST( NULL AS SIGNED ) / + 75 + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL + CAST ( NULL AS INTEGER ) / + 75 + + 67
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1010
SELECT 24 DIV + 73 * - ( - 29 ) - - 53 DIV + ( + 48 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1010
SELECT 24 / + 73 * - ( - 29 ) - - 53 / + ( + 48 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT ALL + COALESCE ( 89, - ( + + 35 ) * + MAX( + + 85 ) * - CASE 10 WHEN + NULLIF ( - COUNT( * ), - - NULLIF ( - 8, + - COUNT( * ) ) ) THEN NULL WHEN + AVG ( DISTINCT 97 ) THEN + 35 + - - COUNT( * ) ELSE NULL END - - COUNT( ALL + 43 ) ) * 91
----
8099

skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL + COALESCE ( 89, - ( + + 35 ) * + MAX ( + + 85 ) * - CASE 10 WHEN + NULLIF ( - COUNT ( * ), - - NULLIF ( - 8, + - COUNT ( * ) ) ) THEN NULL WHEN + AVG ( DISTINCT 97 ) THEN + 35 + - - COUNT ( * ) ELSE NULL END - - COUNT ( ALL + 43 ) ) * 91
----
8099

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1012
SELECT 34 DIV 96 + + + 61 * + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-1012
SELECT 34 / 96 + + + 61 * + COUNT ( * )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1013
SELECT CAST( - + 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-1013
SELECT CAST ( - + 22 AS INTEGER )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT ALL - ( ( + - ( 77 ) ) ) + + 74 * - - COUNT( * )
----
151

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL - ( ( + - ( 77 ) ) ) + + 74 * - - COUNT ( * )
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT DISTINCT + ( - COUNT( * ) ) * - 50 * 66
----
3300

skipif mysql # not compatible
query I rowsort label-1015
SELECT DISTINCT + ( - COUNT ( * ) ) * - 50 * 66
----
3300

query I rowsort
SELECT - 50 + + ( - + 79 )
----
-129

onlyif mysql # aggregate syntax: 
query II rowsort label-1017
SELECT COUNT( * ) * + 51, - 25 * + 60 AS col1
----
51
-1500

skipif mysql # not compatible
query II rowsort label-1017
SELECT COUNT ( * ) * + 51, - 25 * + 60 AS col1
----
51
-1500

onlyif mysql # aggregate syntax: 
query II rowsort label-1018
SELECT ALL - + MIN( 87 ) AS col0, 19 * - + 21
----
-87
-399

skipif mysql # not compatible
query II rowsort label-1018
SELECT ALL - + MIN ( 87 ) AS col0, 19 * - + 21
----
-87
-399

query I rowsort
SELECT + + ( 40 ) AS col2
----
40

query I rowsort
SELECT + 64 + - 70 * - 2 AS col2
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT ALL - 77 - + + NULLIF ( - 42, 92 ) + + COUNT( 51 ) - + 54 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL - 77 - + + NULLIF ( - 42, 92 ) + + COUNT ( 51 ) - + 54 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT MAX( 81 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-1022
SELECT MAX ( 81 ) AS col0
----
81

query I rowsort
SELECT ALL + 97 - - 21 + 7
----
125

query I rowsort
SELECT ( 5 ) * + 65 * - 54
----
-17550

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT ALL - - COUNT( 25 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL - - COUNT ( 25 ) AS col1
----
1

query I rowsort
SELECT - ( + 56 ) + + 86 col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT MIN( 24 ) * - 94 + - - 82 AS col0
----
-2174

skipif mysql # not compatible
query I rowsort label-1027
SELECT MIN ( 24 ) * - 94 + - - 82 AS col0
----
-2174

query I rowsort
SELECT - 22 * - 35 AS col2
----
770

query I rowsort
SELECT - 66 * - + 14
----
924

query I rowsort
SELECT ALL - 59 * 55
----
-3245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1031
SELECT CAST( NULL AS SIGNED ) * 43 - + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-1031
SELECT CAST ( NULL AS INTEGER ) * 43 - + - 84
----
NULL

query II rowsort
SELECT DISTINCT 78, 54 + - - ( - 96 ) AS col0
----
78
-42

query I rowsort
SELECT ALL + ( 10 ) + - ( 32 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT ALL COUNT( * ) + 83
----
84

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL COUNT ( * ) + 83
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1035
SELECT 17 + + COALESCE ( - - COUNT( * ), + - 60 - - 13 + ( - - 46 ) DIV - COUNT( * ) * 70 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-1035
SELECT 17 + + COALESCE ( - - COUNT ( * ), + - 60 - - 13 + ( - - 46 ) / - COUNT ( * ) * 70 ) AS col0
----
18

query I rowsort
SELECT 27 * + + 9 * 21
----
5103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1037
SELECT ALL 47 + + + ( - COUNT( * ) ) / ( - - 90 ) * - 84 * 8 * - CAST( NULL AS SIGNED ) * 86 + + 20 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL 47 + + + ( - COUNT ( * ) ) / ( - - 90 ) * - 84 * 8 * - CAST ( NULL AS INTEGER ) * 86 + + 20 col2
----
NULL

query I rowsort
SELECT ALL - 92 + 16
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT 23 * + 44 * 5 * NULLIF ( + - COUNT( * ), 60 / - ( - 62 ) - - 67 )
----
-5060

skipif mysql # not compatible
query I rowsort label-1039
SELECT 23 * + 44 * 5 * NULLIF ( + - COUNT ( * ), 60 / - ( - 62 ) - - 67 )
----
-5060

query I rowsort
SELECT DISTINCT 41 * - 99 AS col0
----
-4059

query I rowsort
SELECT DISTINCT 58 + + 19
----
77

query I rowsort
SELECT 42 + 21 + 57
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1043
SELECT ALL - CAST( - - SUM( - 22 ) AS SIGNED ) + 69 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL - CAST ( - - SUM ( - 22 ) AS INTEGER ) + 69 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT 13 * + SUM( ALL 20 )
----
260

skipif mysql # not compatible
query I rowsort label-1044
SELECT 13 * + SUM ( ALL 20 )
----
260

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1045
SELECT 32 DIV - + MIN( - 86 ) AS col0, + 14
----
0
14

skipif mysql # not compatible
query II rowsort label-1045
SELECT 32 / - + MIN ( - 86 ) AS col0, + 14
----
0
14

query I rowsort
SELECT 68 + - 45 + - - 33 * - 21
----
-670

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1047
SELECT + COALESCE ( - 97, - - COUNT( * ) DIV 70 + + 98 * + 99 * - 23 * - + ( - 7 ), 19 ) AS col0, 48
----
-97
48

skipif mysql # not compatible
query II rowsort label-1047
SELECT + COALESCE ( - 97, - - COUNT ( * ) / 70 + + 98 * + 99 * - 23 * - + ( - 7 ), 19 ) AS col0, 48
----
-97
48

onlyif mysql # aggregate syntax: 
query II rowsort label-1048
SELECT ALL - 59, COALESCE ( - COUNT( * ), 87 ) AS col1
----
-59
-1

skipif mysql # not compatible
query II rowsort label-1048
SELECT ALL - 59, COALESCE ( - COUNT ( * ), 87 ) AS col1
----
-59
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1049
SELECT ALL - 26 - - CASE + 7 WHEN + 4 THEN - 53 * CAST( + + NULLIF ( - 1, 84 ) AS SIGNED ) WHEN COALESCE ( + - 35, + COUNT( * ) ) * + ( + 23 ) THEN + - COUNT( * ) + + - NULLIF ( + 70, + + 9 ) + + MIN( 97 ) * - - 82 WHEN + 21 THEN + 98 WHEN + - COUNT( * ) THEN NULL ELSE - 67 * + - CASE - 64 WHEN 10 * + + 60 + + 0 THEN NULL WHEN + 74 THEN + AVG ( - ( 61 ) ) * + 78 / - 57 * ( - + 11 ) - + ( - + 3 ) + - - 67 + - 9 - - 98 + + 4 END * - 24 + 96 + - 25 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL - 26 - - CASE + 7 WHEN + 4 THEN - 53 * CAST ( + + NULLIF ( - 1, 84 ) AS INTEGER ) WHEN COALESCE ( + - 35, + COUNT ( * ) ) * + ( + 23 ) THEN + - COUNT ( * ) + + - NULLIF ( + 70, + + 9 ) + + MIN ( 97 ) * - - 82 WHEN + 21 THEN + 98 WHEN + - COUNT ( * ) THEN NULL ELSE - 67 * + - CASE - 64 WHEN 10 * + + 60 + + 0 THEN NULL WHEN + 74 THEN + AVG ( - ( 61 ) ) * + 78 / - 57 * ( - + 11 ) - + ( - + 3 ) + - - 67 + - 9 - - 98 + + 4 END * - 24 + 96 + - 25 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 67 * - 70 AS col1
----
-4690

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT DISTINCT - NULLIF ( COUNT( * ), - + 53 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT - NULLIF ( COUNT ( * ), - + 53 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT ALL - 34 * - - COUNT( * ) * + - NULLIF ( 99, - - 17 )
----
3366

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL - 34 * - - COUNT ( * ) * + - NULLIF ( 99, - - 17 )
----
3366

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT 39 + + - ( - COALESCE ( - COUNT( * ), COUNT( * ) ) ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-1053
SELECT 39 + + - ( - COALESCE ( - COUNT ( * ), COUNT ( * ) ) ) AS col2
----
38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1054
SELECT ALL - ( + CAST( - 10 AS SIGNED ) ) - - 29 DIV 89 - - + 56 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL - ( + CAST ( - 10 AS INTEGER ) ) - - 29 / 89 - - + 56 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT + 88 * - + COUNT( * ) + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-1055
SELECT + 88 * - + COUNT ( * ) + COUNT ( * )
----
-87

query I rowsort
SELECT 87 * + NULLIF ( + 67, - + 52 ) AS col0
----
5829

query I rowsort
SELECT + 20 * - - 34
----
680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1058
SELECT + 21 * 86 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1058
SELECT + 21 * 86 - + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - ( + - 51 ) AS col1
----
51

query I rowsort
SELECT ALL - 30 * + 95
----
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT ALL - COUNT( * ) + ( + 24 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-1061
SELECT ALL - COUNT ( * ) + ( + 24 ) AS col1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1062
SELECT DISTINCT + 91 DIV - 23 + 72
----
69

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT + 91 / - 23 + 72
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT DISTINCT - 80 + + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT - 80 + + COUNT ( * )
----
-79

query I rowsort
SELECT ( 15 )
----
15

query I rowsort
SELECT ( - - ( + - 95 ) ) * - ( + + 58 )
----
5510

query II rowsort
SELECT - 83 AS col2, 40 * - - 84 AS col1
----
-83
3360

onlyif mysql # DIV for integer division: 
query I rowsort label-1067
SELECT ALL 59 + 33 DIV 3 + - 90 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1067
SELECT ALL 59 + 33 / 3 + - 90 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT ( - MAX( ALL - 98 ) ) * + COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-1068
SELECT ( - MAX ( ALL - 98 ) ) * + COUNT ( * ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query III rowsort label-1069
SELECT DISTINCT CASE - 57 WHEN + - 69 THEN CASE 98 WHEN + + SUM( ALL + + 95 ) * - 0 + + 20 THEN NULL ELSE + - NULLIF ( 51, + - 59 ) END + + + ( + 20 ) END * + - 38 + + - 49 AS col1, + COUNT( * ) AS col0, - + 41 AS col1
----
NULL
1
-41

skipif mysql # not compatible
query III rowsort label-1069
SELECT DISTINCT CASE - 57 WHEN + - 69 THEN CASE 98 WHEN + + SUM ( ALL + + 95 ) * - 0 + + 20 THEN NULL ELSE + - NULLIF ( 51, + - 59 ) END + + + ( + 20 ) END * + - 38 + + - 49 AS col1, + COUNT ( * ) AS col0, - + 41 AS col1
----
NULL
1
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT ALL 24 + + 5 + - - COUNT( ALL - 83 ) + - 16
----
14

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL 24 + + 5 + - - COUNT ( ALL - 83 ) + - 16
----
14

query II rowsort
SELECT 80, + 30 AS col0
----
80
30

query I rowsort
SELECT ALL 0 * - 78 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT COUNT( * ) + - + 49 - - COUNT( * ) + + + COUNT( * ) + + 71 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-1073
SELECT COUNT ( * ) + - + 49 - - COUNT ( * ) + + + COUNT ( * ) + + 71 AS col2
----
25

query II rowsort
SELECT 63 AS col0, + 23 col1
----
63
23

onlyif mysql # aggregate syntax: 
query II rowsort label-1075
SELECT - COUNT( * ), - COUNT( 66 ) AS col1
----
-1
-1

skipif mysql # not compatible
query II rowsort label-1075
SELECT - COUNT ( * ), - COUNT ( 66 ) AS col1
----
-1
-1

query II rowsort
SELECT - 13 AS col2, + 39
----
-13
39

query II rowsort
SELECT - 81 * - 23 AS col0, + 20 * - - COALESCE ( - 21, - + 3 ) col1
----
1863
-420

query II rowsort
SELECT ALL 68 AS col2, 18
----
68
18

query I rowsort
SELECT + 52 + - 31
----
21

query II rowsort
SELECT - 70 AS col0, - 76 AS col1
----
-70
-76

query I rowsort
SELECT + 28 + - 83
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1082
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1082
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) * 16
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1083
SELECT DISTINCT - 19 DIV 56 * 31 * 32 * + + 84 + 21 + - 85 DIV - - 3 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT - 19 / 56 * 31 * 32 * + + 84 + 21 + - 85 / - - 3 AS col1
----
-7

query I rowsort
SELECT ALL - 69 * - 7
----
483

query I rowsort
SELECT - - 39 * - 12 + - + 47
----
-515

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT - + 0 - - 12 * - 86 - COUNT( DISTINCT - 75 )
----
-1033

skipif mysql # not compatible
query I rowsort label-1086
SELECT - + 0 - - 12 * - 86 - COUNT ( DISTINCT - 75 )
----
-1033

query I rowsort
SELECT ALL + + ( + 17 )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1088
SELECT - 5 DIV + 78 * 1 * 17 col2
----
0

skipif mysql # not compatible
query I rowsort label-1088
SELECT - 5 / + 78 * 1 * 17 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT ALL + + ( + MAX( + + 28 ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL + + ( + MAX ( + + 28 ) ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT - 48 + + COUNT( ALL - 38 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-1090
SELECT - 48 + + COUNT ( ALL - 38 ) AS col0
----
-47

query I rowsort
SELECT - 57 * + 24 * + - 87 * - 71 + - - 0
----
-8450136

query I rowsort
SELECT ALL + - 77 * - 29
----
2233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1093
SELECT ALL COUNT( DISTINCT - + 57 ) * - CAST( NULL AS SIGNED ) + - 15 / + 52 + - 98 AS col1, + COALESCE ( - - 79, + 36 )
----
NULL
79

skipif mysql # not compatible
query II rowsort label-1093
SELECT ALL COUNT ( DISTINCT - + 57 ) * - CAST ( NULL AS INTEGER ) + - 15 / + 52 + - 98 AS col1, + COALESCE ( - - 79, + 36 )
----
NULL
79

query II rowsort
SELECT + 42, 25 col0
----
42
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1095
SELECT DISTINCT + 38 * + 94 + - NULLIF ( - + NULLIF ( - 34, + 82 / + 93 ), - 48 + COUNT( * ) ) + - - SUM( DISTINCT 90 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1095
SELECT DISTINCT + 38 * + 94 + - NULLIF ( - + NULLIF ( - 34, + 82 / + 93 ), - 48 + COUNT ( * ) ) + - - SUM ( DISTINCT 90 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 87 + - 74 * + 50 AS col2
----
-3613

query I rowsort
SELECT ALL - + 98 * - - 49 AS col2
----
-4802

query I rowsort
SELECT DISTINCT + - CASE - 1 WHEN + 80 THEN - 59 - + 32 END
----
NULL

query I rowsort
SELECT - 89 + - + NULLIF ( - 27, - - ( + + 57 ) ) + + 99 AS col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1100
SELECT - CAST( - 2 AS SIGNED ) + - - 59 + + 0
----
61

skipif mysql # not compatible
query I rowsort label-1100
SELECT - CAST ( - 2 AS INTEGER ) + - - 59 + + 0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT COUNT( 19 )
----
1

skipif mysql # not compatible
query I rowsort label-1101
SELECT COUNT ( 19 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT - NULLIF ( ( + 4 ), - - 67 * + - 17 * - 90 + - SUM( + 29 ) + - 82 + + 74 * - + 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1102
SELECT - NULLIF ( ( + 4 ), - - 67 * + - 17 * - 90 + - SUM ( + 29 ) + - 82 + + 74 * - + 4 ) AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1103
SELECT DISTINCT CASE - 76 WHEN + + ( - 24 ) THEN + MIN( - CAST( NULL AS SIGNED ) ) / + 1 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT CASE - 76 WHEN + + ( - 24 ) THEN + MIN ( - CAST ( NULL AS INTEGER ) ) / + 1 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT ALL COUNT( ALL - 4 ) + - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL COUNT ( ALL - 4 ) + - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT DISTINCT - COUNT( * ) * - 70 col1
----
70

skipif mysql # not compatible
query I rowsort label-1105
SELECT DISTINCT - COUNT ( * ) * - 70 col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT - 94 * - MAX( DISTINCT + + 64 ) AS col1
----
6016

skipif mysql # not compatible
query I rowsort label-1106
SELECT - 94 * - MAX ( DISTINCT + + 64 ) AS col1
----
6016

query II rowsort
SELECT + 12 + + 75 AS col1, + 9 AS col1
----
87
9

onlyif mysql # aggregate syntax: 
query II rowsort label-1108
SELECT ALL ( - + 17 ) AS col2, COUNT( * ) + + 96 col2
----
-17
97

skipif mysql # not compatible
query II rowsort label-1108
SELECT ALL ( - + 17 ) AS col2, COUNT ( * ) + + 96 col2
----
-17
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT + 88 + + 32 * - 46 + + - 82 * SUM( + 12 ) col0
----
-2368

skipif mysql # not compatible
query I rowsort label-1109
SELECT + 88 + + 32 * - 46 + + - 82 * SUM ( + 12 ) col0
----
-2368

query I rowsort
SELECT - 76 + - 81
----
-157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1111
SELECT + COUNT( - - CAST( - 50 AS SIGNED ) ) DIV + NULLIF ( - 13, - 2 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1111
SELECT + COUNT ( - - CAST ( - 50 AS INTEGER ) ) / + NULLIF ( - 13, - 2 ) AS col0
----
0

query I rowsort
SELECT - 52 + 26
----
-26

query II rowsort
SELECT + 58 - - 34 AS col2, + 97 * - 18
----
92
-1746

query II rowsort
SELECT DISTINCT ( + - 53 ) AS col0, + 86 * + 38 + - + 0 AS col2
----
-53
3268

query II rowsort
SELECT ALL 40 - - + 8 + - + 43 * + + 95 * - - 50 col1, + 67 + 36 * - 21
----
-204202
-689

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1116
SELECT + COUNT( * ) DIV + + 2 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1116
SELECT + COUNT ( * ) / + + 2 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT DISTINCT + CASE - 41 WHEN + 85 + - 43 THEN NULL WHEN 50 THEN - 47 * + 14 END * + AVG ( - 78 ) + - MAX( - - 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT + CASE - 41 WHEN + 85 + - 43 THEN NULL WHEN 50 THEN - 47 * + 14 END * + AVG ( - 78 ) + - MAX ( - - 88 )
----
NULL

query I rowsort
SELECT ALL 10 * - 13
----
-130

query I rowsort
SELECT DISTINCT 63 col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1120
SELECT ALL - ( COUNT( * ) ), + MIN( ALL CASE - + 93 WHEN - + 16 + 43 * - 56 THEN NULL WHEN - 2 THEN - 79 END ) * - + 79 + 4 + - COUNT( * ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1120
SELECT ALL - ( COUNT ( * ) ), + MIN ( ALL CASE - + 93 WHEN - + 16 + 43 * - 56 THEN NULL WHEN - 2 THEN - 79 END ) * - + 79 + 4 + - COUNT ( * ) AS col2
----
-1
NULL

query I rowsort
SELECT + 75 * + 31 * + + 39 AS col1
----
90675

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT DISTINCT + - NULLIF ( 16, - COUNT( * ) ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-1122
SELECT DISTINCT + - NULLIF ( 16, - COUNT ( * ) ) AS col2
----
-16

query II rowsort
SELECT + + 52 * - 56 AS col1, 90
----
-2912
90

query I rowsort
SELECT DISTINCT + - 75 * 1 col2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1125
SELECT ALL - 98 DIV 2 + 5 - + 23 col2
----
-67

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL - 98 / 2 + 5 - + 23 col2
----
-67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1126
SELECT ALL + 62 / - + 3 + + 85 + + - 0 - - 67 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL + 62 / - + 3 + + 85 + + - 0 - - 67 * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT + - MAX( - 94 ) * + + 49 * - 74
----
-340844

skipif mysql # not compatible
query I rowsort label-1127
SELECT + - MAX ( - 94 ) * + + 49 * - 74
----
-340844

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT - COUNT( * ) * + 25 col2
----
-25

skipif mysql # not compatible
query I rowsort label-1128
SELECT - COUNT ( * ) * + 25 col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT DISTINCT + ( + 7 ) * MAX( + 55 )
----
385

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT + ( + 7 ) * MAX ( + 55 )
----
385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1130
SELECT DISTINCT + COUNT( * ) * + 44 DIV + 14 - 26
----
-23

skipif mysql # not compatible
query I rowsort label-1130
SELECT DISTINCT + COUNT ( * ) * + 44 / + 14 - 26
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1131
SELECT ALL + CAST( CASE + 95 WHEN + - 39 THEN 37 WHEN - 95 + + + 18 THEN NULL ELSE + 4 + 10 END AS SIGNED ) AS col1, 99 - 75 * - + 23 AS col1
----
14
1824

skipif mysql # not compatible
query II rowsort label-1131
SELECT ALL + CAST ( CASE + 95 WHEN + - 39 THEN 37 WHEN - 95 + + + 18 THEN NULL ELSE + 4 + 10 END AS INTEGER ) AS col1, 99 - 75 * - + 23 AS col1
----
14
1824

query I rowsort
SELECT DISTINCT - 88 * + - 32
----
2816

query I rowsort
SELECT 26 * + CASE + 39 WHEN 36 THEN 85 WHEN 26 THEN - 22 WHEN - 80 * 90 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 51 * 60 AS col1
----
3060

onlyif mysql # DIV for integer division: 
query II rowsort label-1135
SELECT ALL 66 AS col2, - 76 * + COALESCE ( - 67, - + 58 DIV + 28 + 46 + - - 39 + - - 74 )
----
66
5092

skipif mysql # not compatible
query II rowsort label-1135
SELECT ALL 66 AS col2, - 76 * + COALESCE ( - 67, - + 58 / + 28 + 46 + - - 39 + - - 74 )
----
66
5092

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1136
SELECT DISTINCT 18 AS col1, + 3 DIV COUNT( * ) col2
----
18
3

skipif mysql # not compatible
query II rowsort label-1136
SELECT DISTINCT 18 AS col1, + 3 / COUNT ( * ) col2
----
18
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1137
SELECT 42, COUNT( * ) col1
----
42
1

skipif mysql # not compatible
query II rowsort label-1137
SELECT 42, COUNT ( * ) col1
----
42
1

query I rowsort
SELECT 16 + 26 * + 61 + + 20 AS col1
----
1622

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT + 60 DIV 28 * - + 4
----
-8

skipif mysql # not compatible
query I rowsort label-1139
SELECT + 60 / 28 * - + 4
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT ALL - + 98 + COUNT( * ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-1140
SELECT ALL - + 98 + COUNT ( * ) AS col1
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1141
SELECT SUM( - - 53 ) DIV - 86 + COUNT( * ) DIV 5
----
0

skipif mysql # not compatible
query I rowsort label-1141
SELECT SUM ( - - 53 ) / - 86 + COUNT ( * ) / 5
----
0

query I rowsort
SELECT + 17 + 60
----
77

query I rowsort
SELECT ALL - - 6 + 28
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-1144
SELECT + 27 DIV + 12 + 9 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1144
SELECT + 27 / + 12 + 9 AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1145
SELECT ALL + 42 + + 14 + - 39 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL + 42 + + 14 + - 39 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - + 41 AS col0
----
-41

query I rowsort
SELECT 87 * - 40 + 34
----
-3446

query I rowsort
SELECT 55 + + + 24 * - 17 + - 80
----
-433

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT ALL - + SUM( ALL + - 75 )
----
75

skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL - + SUM ( ALL + - 75 )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1150
SELECT ALL 63 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL 63 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 81 - - - NULLIF ( + - 9, - - ( 96 ) * + 28 + + 78 ) * 54 AS col2
----
567

query II rowsort
SELECT DISTINCT - 93, 80 AS col1
----
-93
80

onlyif mysql # aggregate syntax: 
query II rowsort label-1153
SELECT - + 7 * - + 64 * - - COUNT( * ) + + CASE - ( - 1 ) WHEN 90 * - - 70 - + 19 THEN + 40 * - 84 ELSE NULL END * + MAX( 85 ) AS col1, 28 AS col2
----
NULL
28

skipif mysql # not compatible
query II rowsort label-1153
SELECT - + 7 * - + 64 * - - COUNT ( * ) + + CASE - ( - 1 ) WHEN 90 * - - 70 - + 19 THEN + 40 * - 84 ELSE NULL END * + MAX ( 85 ) AS col1, 28 AS col2
----
NULL
28

query I rowsort
SELECT ( 26 ) * - 19 AS col1
----
-494

query I rowsort
SELECT ALL + 65 * 78 AS col0
----
5070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1156
SELECT DISTINCT COALESCE ( - + 45, - SUM( ALL 98 ) DIV 86 * + - CAST( - 0 AS SIGNED ) + 1, + 10 + + COUNT( * ) + + - 86 * + - 98 * 8 ) * + + 0 * + 15
----
0

skipif mysql # not compatible
query I rowsort label-1156
SELECT DISTINCT COALESCE ( - + 45, - SUM ( ALL 98 ) / 86 * + - CAST ( - 0 AS INTEGER ) + 1, + 10 + + COUNT ( * ) + + - 86 * + - 98 * 8 ) * + + 0 * + 15
----
0

query I rowsort
SELECT ALL - COALESCE ( + 76, 91 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT - 9 * - COALESCE ( - NULLIF ( COUNT( * ), + + 69 * + 66 ), 58 ) + 45
----
36

skipif mysql # not compatible
query I rowsort label-1158
SELECT - 9 * - COALESCE ( - NULLIF ( COUNT ( * ), + + 69 * + 66 ), 58 ) + 45
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT ALL ( + 98 ) * - COUNT( * ) col2
----
-98

skipif mysql # not compatible
query I rowsort label-1159
SELECT ALL ( + 98 ) * - COUNT ( * ) col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT ( - - 23 ) * - COUNT( ALL 45 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-1160
SELECT ( - - 23 ) * - COUNT ( ALL 45 ) AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1161
SELECT ALL ( + 71 ) * - - CASE + + 24 WHEN MIN( ALL - 16 ) + SUM( - 18 ) * - 48 THEN - - 3 WHEN + + CAST( + 95 AS SIGNED ) THEN - 10 / - - 8 WHEN - ( + CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL ( + 71 ) * - - CASE + + 24 WHEN MIN ( ALL - 16 ) + SUM ( - 18 ) * - 48 THEN - - 3 WHEN + + CAST ( + 95 AS INTEGER ) THEN - 10 / - - 8 WHEN - ( + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1162
SELECT CAST( NULL AS SIGNED ) / + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-1162
SELECT CAST ( NULL AS INTEGER ) / + 17
----
NULL

query I rowsort
SELECT 62 * 35
----
2170

onlyif mysql # DIV for integer division: 
query II rowsort label-1164
SELECT DISTINCT - 29 DIV 30 AS col1, + 76
----
0
76

skipif mysql # not compatible
query II rowsort label-1164
SELECT DISTINCT - 29 / 30 AS col1, + 76
----
0
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT NULLIF ( + 33, + AVG ( ALL - 39 ) + - - CASE - 23 WHEN + + 86 * - 15 THEN - - COUNT( * ) * - + 60 END ) + - 12 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1165
SELECT NULLIF ( + 33, + AVG ( ALL - 39 ) + - - CASE - 23 WHEN + + 86 * - 15 THEN - - COUNT ( * ) * - + 60 END ) + - 12 AS col0
----
21

query I rowsort
SELECT ALL - 3 * ( - 47 ) AS col0
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-1167
SELECT 58 + 5 AS col0, - COUNT( + 10 ) AS col2
----
63
-1

skipif mysql # not compatible
query II rowsort label-1167
SELECT 58 + 5 AS col0, - COUNT ( + 10 ) AS col2
----
63
-1

query I rowsort
SELECT 67 + 9 AS col2
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-1169
SELECT DISTINCT + 58 + - ( 31 ) * - + 80 AS col0, 57 * - COUNT( * )
----
2538
-57

skipif mysql # not compatible
query II rowsort label-1169
SELECT DISTINCT + 58 + - ( 31 ) * - + 80 AS col0, 57 * - COUNT ( * )
----
2538
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1170
SELECT CAST( - - 99 AS SIGNED ) * 35 + + + 42
----
3507

skipif mysql # not compatible
query I rowsort label-1170
SELECT CAST ( - - 99 AS INTEGER ) * 35 + + + 42
----
3507

query I rowsort
SELECT + 48 + + 29 col0
----
77

query I rowsort
SELECT ALL + 7 + 83 + + + 10 AS col0
----
100

query I rowsort
SELECT 62 + + 71 col2
----
133

query II rowsort
SELECT DISTINCT + 90 * + 6 * + ( - 24 ) AS col0, + 45
----
-12960
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1175
SELECT CAST( + MAX( + 36 ) AS SIGNED ) + - 28 * 86
----
-2372

skipif mysql # not compatible
query I rowsort label-1175
SELECT CAST ( + MAX ( + 36 ) AS INTEGER ) + - 28 * 86
----
-2372

query I rowsort
SELECT DISTINCT - ( + 99 ) + 3 AS col2
----
-96

query I rowsort
SELECT DISTINCT - 63 + - 17 AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1178
SELECT ALL + 5 + - CASE + + 10 WHEN + - COUNT( * ) * + 76 + - 12 THEN NULL ELSE CAST( NULL AS SIGNED ) * 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL + 5 + - CASE + + 10 WHEN + - COUNT ( * ) * + 76 + - 12 THEN NULL ELSE CAST ( NULL AS INTEGER ) * 52 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT - + SUM( DISTINCT + - 94 )
----
94

skipif mysql # not compatible
query I rowsort label-1179
SELECT - + SUM ( DISTINCT + - 94 )
----
94

query I rowsort
SELECT ALL - 25 * - 58 - - 25
----
1475

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT ( - 15 ) * - SUM( - - 71 )
----
1065

skipif mysql # not compatible
query I rowsort label-1181
SELECT ( - 15 ) * - SUM ( - - 71 )
----
1065

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1182
SELECT CAST( NULL AS SIGNED ) * - - 62 + - + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1182
SELECT CAST ( NULL AS INTEGER ) * - - 62 + - + 54 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 81 * 0 * - + 2 AS col1
----
0

query II rowsort
SELECT ALL + + 67 * + - 84 - 4 + + 13, + COALESCE ( 36, + 69 ) - 52 AS col2
----
-5619
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1185
SELECT COALESCE ( + + COUNT( * ), + 55 + + AVG ( DISTINCT 77 ) DIV + - 3 DIV 60 + - 60 ) * 15 * - 97 AS col2
----
-1455

skipif mysql # not compatible
query I rowsort label-1185
SELECT COALESCE ( + + COUNT ( * ), + 55 + + AVG ( DISTINCT 77 ) / + - 3 / 60 + - 60 ) * 15 * - 97 AS col2
----
-1455

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT + MIN( + 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1186
SELECT + MIN ( + 7 ) AS col0
----
7

query I rowsort
SELECT - 59 * 37 AS col1
----
-2183

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT MIN( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-1188
SELECT MIN ( - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT MIN( - - 81 )
----
81

skipif mysql # not compatible
query I rowsort label-1189
SELECT MIN ( - - 81 )
----
81

query I rowsort
SELECT ALL 23 * - 10 AS col0
----
-230

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT + COUNT( * ) * - 77 col1
----
-77

skipif mysql # not compatible
query I rowsort label-1191
SELECT + COUNT ( * ) * - 77 col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT DISTINCT 46 + + SUM( DISTINCT + 72 )
----
118

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT 46 + + SUM ( DISTINCT + 72 )
----
118

query I rowsort
SELECT ALL 81 + - + 84 * + + 56
----
-4623

onlyif mysql # DIV for integer division: 
query I rowsort label-1194
SELECT - 51 DIV 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1194
SELECT - 51 / 78 AS col1
----
0

query I rowsort
SELECT + 63 * - 30 AS col2
----
-1890

query II rowsort
SELECT - 22 AS col0, 91 * 9
----
-22
819

query I rowsort
SELECT ALL 33 + 94 * + 92
----
8681

query I rowsort
SELECT ALL 45 + 50
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1199
SELECT ALL - 81 DIV COALESCE ( ( 62 ), CASE - CAST( NULL AS SIGNED ) WHEN - 74 + 72 THEN 66 + - SUM( DISTINCT + 13 ) * - 65 WHEN - 66 THEN NULL END + - ( - MAX( ALL 24 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL - 81 / COALESCE ( ( 62 ), CASE - CAST ( NULL AS INTEGER ) WHEN - 74 + 72 THEN 66 + - SUM ( DISTINCT + 13 ) * - 65 WHEN - 66 THEN NULL END + - ( - MAX ( ALL 24 ) ) ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1200
SELECT + 15 DIV 23 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1200
SELECT + 15 / 23 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT ALL 21 + + COALESCE ( COUNT( + 12 ), 30 + COUNT( * ) * + ( + ( - 64 ) * - 20 ) )
----
22

skipif mysql # not compatible
query I rowsort label-1201
SELECT ALL 21 + + COALESCE ( COUNT ( + 12 ), 30 + COUNT ( * ) * + ( + ( - 64 ) * - 20 ) )
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1202
SELECT DISTINCT 80 + - 81 * CASE + ( 86 ) WHEN NULLIF ( 53, 55 ) THEN 31 * + 89 WHEN - 7 THEN - COUNT( * ) + - 17 WHEN - 58 THEN 74 * + 5 + + 49 ELSE - 53 * ( ( 76 ) DIV 45 ) END AS col1
----
4373

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT 80 + - 81 * CASE + ( 86 ) WHEN NULLIF ( 53, 55 ) THEN 31 * + 89 WHEN - 7 THEN - COUNT ( * ) + - 17 WHEN - 58 THEN 74 * + 5 + + 49 ELSE - 53 * ( ( 76 ) / 45 ) END AS col1
----
4373

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT ALL + 9 + + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL + 9 + + COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT DISTINCT COUNT( * ) + 67 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-1204
SELECT DISTINCT COUNT ( * ) + 67 AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1205
SELECT + CAST( COALESCE ( 69, + COALESCE ( MAX( 84 ), 51 / + COUNT( * ), + COUNT( * ) * + CASE + 4 * 93 WHEN 17 * 44 + ( + 18 ) THEN + 55 WHEN - 92 THEN - COUNT( * ) * MIN( ALL 6 ) ELSE NULL END + - 20 ) * - 97 ) AS SIGNED ) + 77 AS col0
----
146

skipif mysql # not compatible
query I rowsort label-1205
SELECT + CAST ( COALESCE ( 69, + COALESCE ( MAX ( 84 ), 51 / + COUNT ( * ), + COUNT ( * ) * + CASE + 4 * 93 WHEN 17 * 44 + ( + 18 ) THEN + 55 WHEN - 92 THEN - COUNT ( * ) * MIN ( ALL 6 ) ELSE NULL END + - 20 ) * - 97 ) AS INTEGER ) + 77 AS col0
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT ALL + COUNT( * ) - COUNT( * ) * 94 col2
----
-93

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL + COUNT ( * ) - COUNT ( * ) * 94 col2
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1207
SELECT + CAST( 7 AS SIGNED ) * + 10 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-1207
SELECT + CAST ( 7 AS INTEGER ) * + 10 AS col2
----
70

query I rowsort
SELECT + NULLIF ( 90, + 99 * 32 ) + 86 * - 35 col1
----
-2920

query I rowsort
SELECT ALL - 82 * + 85 AS col0
----
-6970

query I rowsort
SELECT - 26 + + 55
----
29

query I rowsort
SELECT ALL 31 - 74
----
-43

query I rowsort
SELECT - 2 + 4 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT ALL MIN( + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL MIN ( + 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT DISTINCT - COUNT( DISTINCT - 7 ) * + 25 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT - COUNT ( DISTINCT - 7 ) * + 25 AS col1
----
-25

query I rowsort
SELECT - 95 * 94 AS col0
----
-8930

query I rowsort
SELECT - 72 + - 67
----
-139

query I rowsort
SELECT ( + 27 ) col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT + MIN( ALL 10 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-1218
SELECT + MIN ( ALL 10 ) AS col1
----
10

query I rowsort
SELECT DISTINCT + ( 34 ) AS col2
----
34

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1220
SELECT - 59 DIV CASE - CAST( NULL AS DECIMAL ) WHEN + 73 THEN NULL WHEN - ( - 31 ) + + ( + 78 ) THEN NULL ELSE - 42 END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1220
SELECT - 59 / CASE - CAST ( NULL AS REAL ) WHEN + 73 THEN NULL WHEN - ( - 31 ) + + ( + 78 ) THEN NULL ELSE - 42 END AS col2
----
1

query I rowsort
SELECT - 65 * - 87
----
5655

query I rowsort
SELECT DISTINCT - 20 * - 8 AS col2
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT - 12 + COUNT( * ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-1223
SELECT - 12 + COUNT ( * ) AS col1
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1224
SELECT ALL - 48 DIV 14 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL - 48 / 14 AS col1
----
-3

query I rowsort
SELECT ALL + ( - 12 ) AS col1
----
-12

query I rowsort
SELECT ALL 0 * 99 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1227
SELECT - NULLIF ( + 58, ( - 99 ) * 98 ) * + NULLIF ( + 99 * ( + COUNT( * ) ), 59 * - COUNT( * ) + CAST( NULL AS SIGNED ) / COUNT( * ) ) AS col1
----
-5742

skipif mysql # not compatible
query I rowsort label-1227
SELECT - NULLIF ( + 58, ( - 99 ) * 98 ) * + NULLIF ( + 99 * ( + COUNT ( * ) ), 59 * - COUNT ( * ) + CAST ( NULL AS INTEGER ) / COUNT ( * ) ) AS col1
----
-5742

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT + SUM( ALL + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-1228
SELECT + SUM ( ALL + 44 )
----
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1229
SELECT ALL + CAST( NULL AS DECIMAL ) * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1229
SELECT ALL + CAST ( NULL AS REAL ) * 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT DISTINCT 38 * 73 + - COUNT( * )
----
2773

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT 38 * 73 + - COUNT ( * )
----
2773

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1231
SELECT DISTINCT 7 * COUNT( * ) + - 33 * - ( - 98 * 32 - - COUNT( * ) * + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT 7 * COUNT ( * ) + - 33 * - ( - 98 * 32 - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT NULLIF ( 83, + 33 * 70 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT ALL COUNT( * ) * - MIN( ALL 49 ) + - NULLIF ( - 92, NULLIF ( - 87, 81 ) ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL COUNT ( * ) * - MIN ( ALL 49 ) + - NULLIF ( - 92, NULLIF ( - 87, 81 ) ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT + MIN( + 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-1234
SELECT + MIN ( + 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT CASE WHEN CASE + 20 WHEN SUM( - 27 ) THEN - COUNT( * ) + - COUNT( * ) / 71 WHEN 78 THEN 51 ELSE NULL END < 93 + 87 / 81 THEN - COUNT( * ) ELSE + 40 END
----
40

skipif mysql # not compatible
query I rowsort label-1235
SELECT CASE WHEN CASE + 20 WHEN SUM ( - 27 ) THEN - COUNT ( * ) + - COUNT ( * ) / 71 WHEN 78 THEN 51 ELSE NULL END < 93 + 87 / 81 THEN - COUNT ( * ) ELSE + 40 END
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT - MIN( + 10 ) + MIN( - 73 )
----
-83

skipif mysql # not compatible
query I rowsort label-1236
SELECT - MIN ( + 10 ) + MIN ( - 73 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT ALL 50 * + MAX( DISTINCT - 95 ) + 39 * - 54 AS col1
----
-6856

skipif mysql # not compatible
query I rowsort label-1237
SELECT ALL 50 * + MAX ( DISTINCT - 95 ) + 39 * - 54 AS col1
----
-6856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1238
SELECT ALL CAST( 12 AS SIGNED ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL CAST ( 12 AS INTEGER ) AS col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-1239
SELECT + NULLIF ( + 35, 69 + - 66 ) + 96 DIV 19 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-1239
SELECT + NULLIF ( + 35, 69 + - 66 ) + 96 / 19 AS col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1240
SELECT + - 19 + COUNT( * ) DIV ( MIN( ALL 97 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-1240
SELECT + - 19 + COUNT ( * ) / ( MIN ( ALL 97 ) )
----
-19

query I rowsort
SELECT + NULLIF ( + 1, 65 )
----
1

query I rowsort
SELECT + - 69 + - ( - 47 ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT ALL 3 - - CASE 2 WHEN ( COUNT( * ) ) - 85 THEN - 67 + + COUNT( * ) WHEN + 39 THEN COUNT( * ) ELSE NULL END * + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL 3 - - CASE 2 WHEN ( COUNT ( * ) ) - 85 THEN - 67 + + COUNT ( * ) WHEN + 39 THEN COUNT ( * ) ELSE NULL END * + 77 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1244
SELECT - CAST( + 11 AS SIGNED ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-1244
SELECT - CAST ( + 11 AS INTEGER ) AS col2
----
-11

query I rowsort
SELECT + 46 + + 27 col0
----
73

query I rowsort
SELECT - 60 * 54
----
-3240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1247
SELECT DISTINCT - CASE CAST( NULL AS SIGNED ) WHEN + 3 + + 7 THEN NULL ELSE 98 + 26 END * 80 AS col2
----
-9920

skipif mysql # not compatible
query I rowsort label-1247
SELECT DISTINCT - CASE CAST ( NULL AS INTEGER ) WHEN + 3 + + 7 THEN NULL ELSE 98 + 26 END * 80 AS col2
----
-9920

query I rowsort
SELECT + + 92 * + 2 AS col1
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-1249
SELECT DISTINCT + 81 DIV + 62 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1249
SELECT DISTINCT + 81 / + 62 AS col2
----
1

query I rowsort
SELECT + - 17 * 78 AS col0
----
-1326

query I rowsort
SELECT + 26 * - 79 AS col0
----
-2054

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1252
SELECT CAST( - ( + COALESCE ( 97, + 18, - COUNT( * ) ) ) AS SIGNED ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-1252
SELECT CAST ( - ( + COALESCE ( 97, + 18, - COUNT ( * ) ) ) AS INTEGER ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT ALL + COUNT( * ) * + 32 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1253
SELECT ALL + COUNT ( * ) * + 32 AS col1
----
32

query I rowsort
SELECT - + 65 AS col0
----
-65

query I rowsort
SELECT 96 * + 81
----
7776

query I rowsort
SELECT 40 * + 70 AS col1
----
2800

query I rowsort
SELECT - CASE COALESCE ( 38, 30 + + 48 ) WHEN ( 26 ) THEN NULL ELSE ( 86 ) * + 37 END
----
-3182

query I rowsort
SELECT DISTINCT 13 * + + 68
----
884

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT ALL - SUM( + 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL - SUM ( + 87 ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT ALL - COALESCE ( + 81, 35 ) * MAX( DISTINCT COALESCE ( - 14, 96, - 28 ) * 36 ) AS col2
----
40824

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL - COALESCE ( + 81, 35 ) * MAX ( DISTINCT COALESCE ( - 14, 96, - 28 ) * 36 ) AS col2
----
40824

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT COUNT( * ) + + + 48
----
49

skipif mysql # not compatible
query I rowsort label-1261
SELECT COUNT ( * ) + + + 48
----
49

query I rowsort
SELECT DISTINCT 59 + + COALESCE ( + 92, - 69 + 83 ) * 29 AS col0
----
2727

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1263
SELECT DISTINCT - 34 * - - 38 DIV + COUNT( * ) col0
----
-1292

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT - 34 * - - 38 / + COUNT ( * ) col0
----
-1292

query I rowsort
SELECT DISTINCT 77 * - - 99 col0
----
7623

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT 45 * + MIN( ALL - 92 ) * - 28 AS col2
----
115920

skipif mysql # not compatible
query I rowsort label-1265
SELECT 45 * + MIN ( ALL - 92 ) * - 28 AS col2
----
115920

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT ALL COUNT( * ) + COUNT( * ) * 16
----
17

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL COUNT ( * ) + COUNT ( * ) * 16
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT DISTINCT - 25 + MAX( ALL 27 ) + 29 * + 71 AS col0
----
2061

skipif mysql # not compatible
query I rowsort label-1267
SELECT DISTINCT - 25 + MAX ( ALL 27 ) + 29 * + 71 AS col0
----
2061

query I rowsort
SELECT 71 * + + 46
----
3266

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT + COUNT( * ) * - 60 + 75 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1269
SELECT + COUNT ( * ) * - 60 + 75 AS col1
----
15

query I rowsort
SELECT ALL - 53 + + 62
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1271
SELECT DISTINCT + 99 DIV + 30 col0
----
3

skipif mysql # not compatible
query I rowsort label-1271
SELECT DISTINCT + 99 / + 30 col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT ALL - 44 + - COUNT( * ) * 62 AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL - 44 + - COUNT ( * ) * 62 AS col2
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT 61 - - SUM( DISTINCT - 59 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1273
SELECT 61 - - SUM ( DISTINCT - 59 ) AS col0
----
2

query I rowsort
SELECT ALL + 81 * - - 65
----
5265

onlyif mysql # DIV for integer division: 
query I rowsort label-1275
SELECT 67 DIV - 3 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-1275
SELECT 67 / - 3 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT ALL + 8 + + COUNT( * ) * + COUNT( * ) col2
----
9

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL + 8 + + COUNT ( * ) * + COUNT ( * ) col2
----
9

query I rowsort
SELECT DISTINCT + 72 + 19 * + 74
----
1478

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT DISTINCT + 99 DIV 60 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT + 99 / 60 AS col2
----
1

query I rowsort
SELECT ALL - 8 + - 77 AS col1
----
-85

query I rowsort
SELECT 86 * - + 98
----
-8428

query I rowsort
SELECT ALL + 81 * + - ( NULLIF ( + 14, 48 * 59 + NULLIF ( 0, 48 / + 8 - 6 * - 43 ) ) ) * + 98
----
-111132

query I rowsort
SELECT DISTINCT - + 97 - - 2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT ALL - 67 - + 98 * - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL - 67 - + 98 * - COUNT ( * )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1284
SELECT 85 * - COALESCE ( 89, + 20 * - 33, + 61 + 36 ) / - ( 16 + - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1284
SELECT 85 * - COALESCE ( 89, + 20 * - 33, + 61 + 36 ) / - ( 16 + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT COALESCE ( - 98, - 12, + 32 ) AS col1
----
-98

query I rowsort
SELECT 16 - - + 46 * - 91
----
-4170

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT NULLIF ( 42, 84 * SUM( ALL + 0 ) ) * + 25 AS col0
----
1050

skipif mysql # not compatible
query I rowsort label-1287
SELECT NULLIF ( 42, 84 * SUM ( ALL + 0 ) ) * + 25 AS col0
----
1050

query I rowsort
SELECT ALL + 52 * + 92 AS col0
----
4784

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT 85 * + MIN( + 5 ) AS col0
----
425

skipif mysql # not compatible
query I rowsort label-1289
SELECT 85 * + MIN ( + 5 ) AS col0
----
425

query I rowsort
SELECT DISTINCT 45 * 34 AS col0
----
1530

query I rowsort
SELECT 31 - - - 28
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT 34 + + + 98 + + COUNT( * )
----
133

skipif mysql # not compatible
query I rowsort label-1292
SELECT 34 + + + 98 + + COUNT ( * )
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT ALL 3 * + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL 3 * + COUNT ( * )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1294
SELECT 65 DIV + + 81 + 58
----
58

skipif mysql # not compatible
query I rowsort label-1294
SELECT 65 / + + 81 + 58
----
58

query I rowsort
SELECT - 77 + - 9 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT DISTINCT COALESCE ( 91, + 79 + - ( - 85 ) ) * CASE 27 - - 92 WHEN 28 THEN COUNT( * ) WHEN + 82 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1296
SELECT DISTINCT COALESCE ( 91, + 79 + - ( - 85 ) ) * CASE 27 - - 92 WHEN 28 THEN COUNT ( * ) WHEN + 82 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( - + 26 ) AS col1
----
-26

query I rowsort
SELECT ALL 30 + 72 col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT + 0 + COUNT( ALL + 60 ) + + NULLIF ( 15, 58 ) * + 57
----
856

skipif mysql # not compatible
query I rowsort label-1299
SELECT + 0 + COUNT ( ALL + 60 ) + + NULLIF ( 15, 58 ) * + 57
----
856

query I rowsort
SELECT ALL 7 + 34
----
41

query I rowsort
SELECT 36 + + - 2 AS col2
----
34

query I rowsort
SELECT ALL 18 + + - 20 * - 6
----
138

query II rowsort
SELECT DISTINCT 78 AS col1, + 47
----
78
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1304
SELECT DISTINCT 36 + + 31 - + NULLIF ( + COALESCE ( COUNT( * ), 5 * 53, + 36 ), 10 * - 99 + + 76 ) DIV COUNT( 95 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-1304
SELECT DISTINCT 36 + + 31 - + NULLIF ( + COALESCE ( COUNT ( * ), 5 * 53, + 36 ), 10 * - 99 + + 76 ) / COUNT ( 95 ) AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1305
SELECT ALL 0 + + NULLIF ( COUNT( * ), + ( CAST( - 69 AS SIGNED ) ) + + 32 * 14 ) DIV 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL 0 + + NULLIF ( COUNT ( * ), + ( CAST ( - 69 AS INTEGER ) ) + + 32 * 14 ) / 32 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1306
SELECT - 83 AS col0, 49 - + - NULLIF ( CAST( NULL AS SIGNED ), + COUNT( ( + 78 ) ) * + 12 - - COALESCE ( 91 + - 46, - COALESCE ( 42, 44 ) * - 87 - - 6, 18 * 80 - 89 ) )
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-1306
SELECT - 83 AS col0, 49 - + - NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( ( + 78 ) ) * + 12 - - COALESCE ( 91 + - 46, - COALESCE ( 42, 44 ) * - 87 - - 6, 18 * 80 - 89 ) )
----
-83
NULL

query I rowsort
SELECT DISTINCT + 75 + + + 7 + + 26 AS col1
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1308
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + 7 * - 2 * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + 7 * - 2 * 79
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1309
SELECT COALESCE ( + 85, 84 + 89 * 74 ) DIV 12
----
7

skipif mysql # not compatible
query I rowsort label-1309
SELECT COALESCE ( + 85, 84 + 89 * 74 ) / 12
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1310
SELECT ALL 64 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL 64 / - 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT COUNT( + 35 )
----
1

skipif mysql # not compatible
query I rowsort label-1311
SELECT COUNT ( + 35 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1312
SELECT COUNT( * ) col0, 73 col2
----
1
73

skipif mysql # not compatible
query II rowsort label-1312
SELECT COUNT ( * ) col0, 73 col2
----
1
73

query I rowsort
SELECT 58 * - 64 * + 22 + 94 AS col2
----
-81570

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT ALL 58 * COUNT( * ) * + 66
----
3828

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL 58 * COUNT ( * ) * + 66
----
3828

query I rowsort
SELECT ALL 17 + - 30 + - - ( 45 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT 61 + + COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-1316
SELECT 61 + + COUNT ( * ) AS col0
----
62

query II rowsort
SELECT + 4 AS col2, + 23 AS col2
----
4
23

onlyif mysql # aggregate syntax: 
query II rowsort label-1318
SELECT + COUNT( * ) AS col2, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-1318
SELECT + COUNT ( * ) AS col2, COUNT ( * ) AS col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT CASE WHEN NOT - 49 BETWEEN - ( - COALESCE ( - ( ( 22 ) ), - MAX( 11 ) ) ) AND 78 + - 94 THEN NULL WHEN ( NULL ) NOT IN ( ( 60 ) ) THEN 50 / 26 ELSE 53 * - 71 + 40 END + 61 * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1319
SELECT CASE WHEN NOT - 49 BETWEEN - ( - COALESCE ( - ( ( 22 ) ), - MAX ( 11 ) ) ) AND 78 + - 94 THEN NULL WHEN ( NULL ) NOT IN ( ( 60 ) ) THEN 50 / 26 ELSE 53 * - 71 + 40 END + 61 * + 19
----
NULL

query I rowsort
SELECT ALL 5 + - 20 AS col1
----
-15

query I rowsort
SELECT ALL + 85 * - 86
----
-7310

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT SUM( ALL - 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-1322
SELECT SUM ( ALL - 42 ) AS col2
----
-42

query I rowsort
SELECT ALL 22 * - 40
----
-880

query I rowsort
SELECT DISTINCT 57 * + + 26
----
1482

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT DISTINCT 16 - COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-1325
SELECT DISTINCT 16 - COUNT ( * ) AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1326
SELECT ( 27 ) + + CAST( + 16 AS SIGNED ) + 72 * 4 AS col2
----
331

skipif mysql # not compatible
query I rowsort label-1326
SELECT ( 27 ) + + CAST ( + 16 AS INTEGER ) + 72 * 4 AS col2
----
331

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT + - COUNT( 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-1327
SELECT + - COUNT ( 42 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT ALL + + NULLIF ( - 77, - SUM( ALL + ( ( + 71 ) ) ) - - 20 * - 18 ) - + 71 AS col1
----
-148

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL + + NULLIF ( - 77, - SUM ( ALL + ( ( + 71 ) ) ) - - 20 * - 18 ) - + 71 AS col1
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1329
SELECT DISTINCT - + 67 AS col1, CAST( - 4 AS SIGNED ) * 90 AS col2
----
-67
-360

skipif mysql # not compatible
query II rowsort label-1329
SELECT DISTINCT - + 67 AS col1, CAST ( - 4 AS INTEGER ) * 90 AS col2
----
-67
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT COUNT( * ) * 38 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-1330
SELECT COUNT ( * ) * 38 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT + COUNT( * ) * - 90 + + COALESCE ( 59, 63 * 28 )
----
-31

skipif mysql # not compatible
query I rowsort label-1331
SELECT + COUNT ( * ) * - 90 + + COALESCE ( 59, 63 * 28 )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1332
SELECT 31 + + SUM( DISTINCT 90 ) + + 0 * ( + CAST( NULL AS SIGNED ) + ( 71 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1332
SELECT 31 + + SUM ( DISTINCT 90 ) + + 0 * ( + CAST ( NULL AS INTEGER ) + ( 71 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1333
SELECT + 24 - + - 45 + 73 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1333
SELECT + 24 - + - 45 + 73 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1334
SELECT + 35 AS col1, 26 * - - SUM( DISTINCT 90 ) + 43 col0
----
35
2383

skipif mysql # not compatible
query II rowsort label-1334
SELECT + 35 AS col1, 26 * - - SUM ( DISTINCT 90 ) + 43 col0
----
35
2383

onlyif mysql # DIV for integer division: 
query I rowsort label-1335
SELECT ALL + - 65 DIV - ( + 7 )
----
9

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL + - 65 / - ( + 7 )
----
9

query I rowsort
SELECT ALL + + 57 * + 41
----
2337

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1337
SELECT + 81 + 65 * + CAST( NULL AS SIGNED ) - + 56 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1337
SELECT + 81 + 65 * + CAST ( NULL AS INTEGER ) - + 56 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1338
SELECT ALL + MIN( DISTINCT - 97 ) DIV + + 84 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL + MIN ( DISTINCT - 97 ) / + + 84 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT DISTINCT + - MAX( - - 36 ) * - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-1339
SELECT DISTINCT + - MAX ( - - 36 ) * - COUNT ( * )
----
36

query I rowsort
SELECT - 48 * 44 * + 98 AS col1
----
-206976

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT - 17 + - - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-1341
SELECT - 17 + - - COUNT ( * )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT ALL - COUNT( 76 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL - COUNT ( 76 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1343
SELECT - + COALESCE ( - SUM( DISTINCT + 29 ), 97 + COALESCE ( COUNT( * ), 15 + 79, 60 DIV - 95 + + 65 DIV + 82 ) DIV COALESCE ( 20, 8 + 79 ), COUNT( * ) - - CAST( NULL AS SIGNED ) ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-1343
SELECT - + COALESCE ( - SUM ( DISTINCT + 29 ), 97 + COALESCE ( COUNT ( * ), 15 + 79, 60 / - 95 + + 65 / + 82 ) / COALESCE ( 20, 8 + 79 ), COUNT ( * ) - - CAST ( NULL AS INTEGER ) ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT - MIN( ALL - + 96 ) * + 28 + + 16
----
2704

skipif mysql # not compatible
query I rowsort label-1344
SELECT - MIN ( ALL - + 96 ) * + 28 + + 16
----
2704

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT + + SUM( 1 ) + - + 43 * 92
----
-3955

skipif mysql # not compatible
query I rowsort label-1345
SELECT + + SUM ( 1 ) + - + 43 * 92
----
-3955

query II rowsort
SELECT - 31 col2, 43 + 35 * + 36 AS col0
----
-31
1303

query I rowsort
SELECT + - 76 + + 62
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1348
SELECT ALL - + 65 + ( - MIN( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1348
SELECT ALL - + 65 + ( - MIN ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT ALL + + 85 * COUNT( * ) col2
----
85

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL + + 85 * COUNT ( * ) col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1350
SELECT - - ( - + 38 ) * 97 + 43 * + COALESCE ( 77 - - 85 * + COUNT( * ), 71 * CAST( - 19 AS SIGNED ), 48 )
----
3280

skipif mysql # not compatible
query I rowsort label-1350
SELECT - - ( - + 38 ) * 97 + 43 * + COALESCE ( 77 - - 85 * + COUNT ( * ), 71 * CAST ( - 19 AS INTEGER ), 48 )
----
3280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1351
SELECT DISTINCT + COUNT( * ) + - CAST( NULL AS SIGNED ) + + 6 + COALESCE ( + COUNT( DISTINCT - 16 ), + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1351
SELECT DISTINCT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + 6 + COALESCE ( + COUNT ( DISTINCT - 16 ), + 91 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1352
SELECT ALL - CAST( + + 32 AS SIGNED ) + - 33
----
-65

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL - CAST ( + + 32 AS INTEGER ) + - 33
----
-65

query I rowsort
SELECT DISTINCT 59 * + 29 AS col2
----
1711

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1354
SELECT DISTINCT 18 + 90 AS col0, 4 DIV - 41 + MAX( DISTINCT 91 ) col2
----
108
91

skipif mysql # not compatible
query II rowsort label-1354
SELECT DISTINCT 18 + 90 AS col0, 4 / - 41 + MAX ( DISTINCT 91 ) col2
----
108
91

query I rowsort
SELECT ALL 77 + - 11
----
66

query I rowsort
SELECT DISTINCT 23 * - 71
----
-1633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1357
SELECT + CAST( NULL AS SIGNED ) / 28 / NULLIF ( - ( + 61 ), 41 * + 40 - ( + 66 ) ) * 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1357
SELECT + CAST ( NULL AS INTEGER ) / 28 / NULLIF ( - ( + 61 ), 41 * + 40 - ( + 66 ) ) * 3 AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( + + 20, 55, ( 50 ) ) * 20 AS col2
----
-400

query I rowsort
SELECT - CASE + 72 WHEN 63 THEN 89 * - NULLIF ( 93, - 27 * - 74 + - 72 ) END
----
NULL

query I rowsort
SELECT ALL 58 * - + NULLIF ( - 79, + 77 )
----
4582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1361
SELECT DISTINCT NULLIF ( - MIN( - + 98 ), 38 ) * CASE NULLIF ( - 24, - 10 ) WHEN 8 + 49 THEN COUNT( * ) * - CASE COUNT( * ) WHEN 24 THEN 47 * NULLIF ( + 86, + COALESCE ( - 2, 91 ) ) END + - CAST( NULL AS SIGNED ) END + - 20 * 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT NULLIF ( - MIN ( - + 98 ), 38 ) * CASE NULLIF ( - 24, - 10 ) WHEN 8 + 49 THEN COUNT ( * ) * - CASE COUNT ( * ) WHEN 24 THEN 47 * NULLIF ( + 86, + COALESCE ( - 2, 91 ) ) END + - CAST ( NULL AS INTEGER ) END + - 20 * 14 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1362
SELECT + 99 DIV 82
----
1

skipif mysql # not compatible
query I rowsort label-1362
SELECT + 99 / 82
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT DISTINCT + COALESCE ( - + COALESCE ( 51, + 36 ), 57 * + 55 - NULLIF ( + COUNT( * ), 47 / CASE 15 WHEN CASE ( 57 ) WHEN SUM( ALL - 38 ) THEN NULL WHEN MAX( - 77 ) THEN - 69 WHEN 81 + MIN( DISTINCT - 64 + - 46 ) THEN 23 ELSE 3 END + + 93 THEN + 7 * - 62 END ) * + COUNT( * ) ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-1363
SELECT DISTINCT + COALESCE ( - + COALESCE ( 51, + 36 ), 57 * + 55 - NULLIF ( + COUNT ( * ), 47 / CASE 15 WHEN CASE ( 57 ) WHEN SUM ( ALL - 38 ) THEN NULL WHEN MAX ( - 77 ) THEN - 69 WHEN 81 + MIN ( DISTINCT - 64 + - 46 ) THEN 23 ELSE 3 END + + 93 THEN + 7 * - 62 END ) * + COUNT ( * ) ) AS col2
----
-51

query I rowsort
SELECT ALL 6 * 31 - - - 23
----
163

query I rowsort
SELECT ( - 91 ) AS col1
----
-91

query I rowsort
SELECT ALL + 95 * + 70 - - 15
----
6665

query I rowsort
SELECT + 81 * ( + 62 ) AS col2
----
5022

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1368
SELECT + 87 + - - 93 * - ( + CAST( NULL AS SIGNED ) ) + CAST( - COUNT( * ) + + 56 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1368
SELECT + 87 + - - 93 * - ( + CAST ( NULL AS INTEGER ) ) + CAST ( - COUNT ( * ) + + 56 AS INTEGER )
----
NULL

query I rowsort
SELECT + ( - + NULLIF ( - 26, 48 * 75 ) ) AS col1
----
26

query I rowsort
SELECT + NULLIF ( - - NULLIF ( - 97, - + 37 * COALESCE ( + ( 28 ), 87 ) + ( + 28 ) ), - 76 )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1371
SELECT DISTINCT COALESCE ( + - 23, + + CAST( - - 10 AS SIGNED ) ) * - CASE COUNT( * ) WHEN - 85 * - ( + 23 ) THEN COUNT( * ) / - 24 WHEN - COALESCE ( - 77, + 25, 18 ) * + 55 THEN 96 / - CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1371
SELECT DISTINCT COALESCE ( + - 23, + + CAST ( - - 10 AS INTEGER ) ) * - CASE COUNT ( * ) WHEN - 85 * - ( + 23 ) THEN COUNT ( * ) / - 24 WHEN - COALESCE ( - 77, + 25, 18 ) * + 55 THEN 96 / - CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 79 * + 42 AS col1
----
3318

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT ALL + 61 * + + 64 + 93 + + - 15 - + 97 * - COUNT( * ) * 70 col2
----
10772

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL + 61 * + + 64 + 93 + + - 15 - + 97 * - COUNT ( * ) * 70 col2
----
10772

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT DISTINCT + 24 * - - MAX( ALL 87 ) * + 29 * - 17 + 85 * + 39
----
-1026069

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT + 24 * - - MAX ( ALL 87 ) * + 29 * - 17 + 85 * + 39
----
-1026069

query I rowsort
SELECT + + CASE - 16 WHEN 15 THEN + + 27 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1376
SELECT + - 85 DIV - 33 + - 14 * - 77 AS col2
----
1080

skipif mysql # not compatible
query I rowsort label-1376
SELECT + - 85 / - 33 + - 14 * - 77 AS col2
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT - - 80 * + MIN( DISTINCT - + 0 ) + - 11 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-1377
SELECT - - 80 * + MIN ( DISTINCT - + 0 ) + - 11 AS col2
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1378
SELECT ALL + + 61 * - - 75 + 16 DIV + 57
----
4575

skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL + + 61 * - - 75 + 16 / + 57
----
4575

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT - COUNT( * ) * + 62 + + + 86 - 36 + + 30 * 67
----
1998

skipif mysql # not compatible
query I rowsort label-1379
SELECT - COUNT ( * ) * + 62 + + + 86 - 36 + + 30 * 67
----
1998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1380
SELECT ALL - - 62 * - - 52 + - - 84 * + + CAST( NULL AS SIGNED ) * 71 + 69 * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL - - 62 * - - 52 + - - 84 * + + CAST ( NULL AS INTEGER ) * 71 + 69 * 46
----
NULL

query I rowsort
SELECT + 68 - + - 31 + - 43
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT DISTINCT + COUNT( + - 36 ) + - 89
----
-88

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT + COUNT ( + - 36 ) + - 89
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1383
SELECT ALL - - 12 + 31 AS col2, 62 * - CAST( NULL AS SIGNED )
----
43
NULL

skipif mysql # not compatible
query II rowsort label-1383
SELECT ALL - - 12 + 31 AS col2, 62 * - CAST ( NULL AS INTEGER )
----
43
NULL

query I rowsort
SELECT ALL - 57 + - 65 * - 98
----
6313

query I rowsort
SELECT - 83 - - 14
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT - CASE - ( + 19 ) WHEN + 82 THEN NULL WHEN - 1 THEN - 97 ELSE NULL END * ( 40 / - 89 + CASE WHEN COUNT( * ) > + 0 THEN - 16 ELSE - 8 / 99 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1386
SELECT - CASE - ( + 19 ) WHEN + 82 THEN NULL WHEN - 1 THEN - 97 ELSE NULL END * ( 40 / - 89 + CASE WHEN COUNT ( * ) > + 0 THEN - 16 ELSE - 8 / 99 END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1387
SELECT 6 AS col2, COUNT( * ) AS col2
----
6
1

skipif mysql # not compatible
query II rowsort label-1387
SELECT 6 AS col2, COUNT ( * ) AS col2
----
6
1

query I rowsort
SELECT - 30 + - 18
----
-48

query I rowsort
SELECT - 47 + 14 + 31
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT - COUNT( + 40 ) * - - 86 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-1390
SELECT - COUNT ( + 40 ) * - - 86 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT - COALESCE ( + NULLIF ( + + 48, + MIN( 37 ) * 43 ), + ( 56 ) - + 37 ) + 57 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-1391
SELECT - COALESCE ( + NULLIF ( + + 48, + MIN ( 37 ) * 43 ), + ( 56 ) - + 37 ) + 57 AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1392
SELECT ALL CAST( - + 19 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL CAST ( - + 19 AS INTEGER )
----
-19

query I rowsort
SELECT ALL ( - + 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT - 93 * - COUNT( * ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1394
SELECT - 93 * - COUNT ( * ) AS col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1395
SELECT ALL 5 * COUNT( * ) DIV - 44 AS col1, 31 AS col1
----
0
31

skipif mysql # not compatible
query II rowsort label-1395
SELECT ALL 5 * COUNT ( * ) / - 44 AS col1, 31 AS col1
----
0
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1396
SELECT + SUM( ALL - 39 ) DIV + + 30 + + 35 + - + 14 + - COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1396
SELECT + SUM ( ALL - 39 ) / + + 30 + + 35 + - + 14 + - COUNT ( * ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT ALL + COALESCE ( + 87, - MAX( - 12 ) * 11 )
----
87

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL + COALESCE ( + 87, - MAX ( - 12 ) * 11 )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1398
SELECT + 46 + - + ( 47 ) DIV + 99 - - - COUNT( * ) - + 5 * MAX( + COALESCE ( - 48, 99 ) ) AS col0
----
285

skipif mysql # not compatible
query I rowsort label-1398
SELECT + 46 + - + ( 47 ) / + 99 - - - COUNT ( * ) - + 5 * MAX ( + COALESCE ( - 48, 99 ) ) AS col0
----
285

query I rowsort
SELECT - 57 * + 76
----
-4332

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT + 63 * - 86 * + COALESCE ( - 71, - + 55, 68 * - 27, COUNT( * ) * 90 - 38 )
----
384678

skipif mysql # not compatible
query I rowsort label-1400
SELECT + 63 * - 86 * + COALESCE ( - 71, - + 55, 68 * - 27, COUNT ( * ) * 90 - 38 )
----
384678

query I rowsort
SELECT ALL 69 * - 11 AS col2
----
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT + COUNT( - ( - - 25 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1402
SELECT + COUNT ( - ( - - 25 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1403
SELECT CAST( + 39 AS SIGNED ) col0
----
39

skipif mysql # not compatible
query I rowsort label-1403
SELECT CAST ( + 39 AS INTEGER ) col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1404
SELECT + 39 * 88 + - 39 AS col2, ( - 91 ) * - COUNT( - 61 + + CAST( 82 AS SIGNED ) ) AS col2
----
3393
91

skipif mysql # not compatible
query II rowsort label-1404
SELECT + 39 * 88 + - 39 AS col2, ( - 91 ) * - COUNT ( - 61 + + CAST ( 82 AS INTEGER ) ) AS col2
----
3393
91

query I rowsort
SELECT DISTINCT + + 62 AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1406
SELECT DISTINCT + NULLIF ( + 93, - 81 * - - CAST( - 58 AS SIGNED ) + COALESCE ( 82 + + 92, - 81 ) * - 54 )
----
93

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT + NULLIF ( + 93, - 81 * - - CAST ( - 58 AS INTEGER ) + COALESCE ( 82 + + 92, - 81 ) * - 54 )
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1407
SELECT ALL - + 48 * - + 81 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL - + 48 * - + 81 / CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 64 + - 54 AS col1
----
10

query II rowsort
SELECT 94 AS col0, - 64
----
94
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1410
SELECT 30 DIV 93 * + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1410
SELECT 30 / 93 * + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ALL 69 + + - CASE 26 WHEN + + 89 / 68 * + 80 + - 70 * + 9 THEN NULL WHEN + 77 THEN 74 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT - 39 + ( + SUM( DISTINCT - 71 ) ) * + 64 AS col1
----
-4583

skipif mysql # not compatible
query I rowsort label-1412
SELECT - 39 + ( + SUM ( DISTINCT - 71 ) ) * + 64 AS col1
----
-4583

query I rowsort
SELECT + 77 * 75 + + + 69
----
5844

query I rowsort
SELECT + 22 - + - 2 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT DISTINCT + COALESCE ( + COUNT( + 84 ), - + 34 * 56 * + ( + 95 ) ) * COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT + COALESCE ( + COUNT ( + 84 ), - + 34 * 56 * + ( + 95 ) ) * COUNT ( * ) AS col0
----
1

query I rowsort
SELECT ALL 10 * - 41 * 47 * - - 14 + - ( + 40 ) AS col0
----
-269820

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1417
SELECT ALL - - 85 + + + CAST( NULL AS SIGNED ) * - 99 AS col2, + 84
----
NULL
84

skipif mysql # not compatible
query II rowsort label-1417
SELECT ALL - - 85 + + + CAST ( NULL AS INTEGER ) * - 99 AS col2, + 84
----
NULL
84

query I rowsort
SELECT + 88 + - 74 * - 49 AS col1
----
3714

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT DISTINCT 58 * + + MIN( DISTINCT + ( - 72 ) )
----
-4176

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT 58 * + + MIN ( DISTINCT + ( - 72 ) )
----
-4176

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT ALL + COUNT( DISTINCT + 76 ) + + - 93
----
-92

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL + COUNT ( DISTINCT + 76 ) + + - 93
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-1421
SELECT + 2 + + 61 DIV 53 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1421
SELECT + 2 + + 61 / 53 AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1422
SELECT ALL 21, 59 - - NULLIF ( 46, - + ( + 33 ) * MAX( 34 ) + COALESCE ( SUM( + 88 ), + 47 ) ) AS col2
----
21
105

skipif mysql # not compatible
query II rowsort label-1422
SELECT ALL 21, 59 - - NULLIF ( 46, - + ( + 33 ) * MAX ( 34 ) + COALESCE ( SUM ( + 88 ), + 47 ) ) AS col2
----
21
105

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT ALL 42 - + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL 42 - + COUNT ( * )
----
41

query II rowsort
SELECT 83 AS col2, - 68
----
83
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-1425
SELECT - 81 AS col1, - COUNT( * ) AS col1
----
-81
-1

skipif mysql # not compatible
query II rowsort label-1425
SELECT - 81 AS col1, - COUNT ( * ) AS col1
----
-81
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1426
SELECT 90 + CASE - - CASE + COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN - - MAX( ALL 26 ) THEN 33 END WHEN 22 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN - MIN( 50 ) WHEN + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1426
SELECT 90 + CASE - - CASE + COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN - - MAX ( ALL 26 ) THEN 33 END WHEN 22 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN - MIN ( 50 ) WHEN + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1427
SELECT MAX( + 3 ) DIV + 31 * - COALESCE ( + - 86, + - 39 - ( 98 ) * + 32, COUNT( * ) - - 47, + 67 ) * 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1427
SELECT MAX ( + 3 ) / + 31 * - COALESCE ( + - 86, + - 39 - ( 98 ) * + 32, COUNT ( * ) - - 47, + 67 ) * 24 AS col0
----
0

query I rowsort
SELECT ALL - 53 / + CASE + ( + 28 ) WHEN - - 32 THEN + + 50 ELSE NULL END * 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT DISTINCT - COUNT( * ) * 42 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT - COUNT ( * ) * 42 AS col0
----
-42

query II rowsort
SELECT 7, 10 AS col1
----
7
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1431
SELECT ALL - COALESCE ( - + 95, - COUNT( * ) DIV - AVG ( - 49 ) ) * - + 27 + + 98 AS col1
----
-2467

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL - COALESCE ( - + 95, - COUNT ( * ) / - AVG ( - 49 ) ) * - + 27 + + 98 AS col1
----
-2467

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1432
SELECT ALL 1, CAST( - 87 AS SIGNED ) AS col2
----
1
-87

skipif mysql # not compatible
query II rowsort label-1432
SELECT ALL 1, CAST ( - 87 AS INTEGER ) AS col2
----
1
-87

query I rowsort
SELECT DISTINCT + 36 * - - ( + - 62 ) AS col1
----
-2232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1434
SELECT - 55, - COUNT( * ) DIV + 49 + + - COUNT( * ) + - 16 - 28 + ( CAST( + 0 AS SIGNED ) + COUNT( * ) * 31 ) col2
----
-55
-14

skipif mysql # not compatible
query II rowsort label-1434
SELECT - 55, - COUNT ( * ) / + 49 + + - COUNT ( * ) + - 16 - 28 + ( CAST ( + 0 AS INTEGER ) + COUNT ( * ) * 31 ) col2
----
-55
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1435
SELECT 12 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-1435
SELECT 12 / + 66
----
0

query I rowsort
SELECT 21 * - 67
----
-1407

query I rowsort
SELECT + 35 * + + ( - ( 78 ) ) - - 17 * COALESCE ( 27, - 39 ) + + 70
----
-2201

query I rowsort
SELECT DISTINCT - NULLIF ( 83, - 40 ) + - 78 + ( - 16 )
----
-177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1439
SELECT ALL - + 95 AS col2, COUNT( * ) * - + 61 * - + 79 - - CAST( + + 8 AS SIGNED ) col0
----
-95
4827

skipif mysql # not compatible
query II rowsort label-1439
SELECT ALL - + 95 AS col2, COUNT ( * ) * - + 61 * - + 79 - - CAST ( + + 8 AS INTEGER ) col0
----
-95
4827

query II rowsort
SELECT DISTINCT - 3, 71 AS col0
----
-3
71

query II rowsort
SELECT ALL - + 17 AS col1, 19 col0
----
-17
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT SUM( - + ( + - ( 77 ) ) )
----
77

skipif mysql # not compatible
query I rowsort label-1442
SELECT SUM ( - + ( + - ( 77 ) ) )
----
77

query II rowsort
SELECT - 70 + - 52 AS col0, 71 AS col1
----
-122
71

onlyif mysql # aggregate syntax: 
query II rowsort label-1444
SELECT + 26 AS col2, ( COUNT( * ) ) col0
----
26
1

skipif mysql # not compatible
query II rowsort label-1444
SELECT + 26 AS col2, ( COUNT ( * ) ) col0
----
26
1

query I rowsort
SELECT ALL + - 33 + 16
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1446
SELECT DISTINCT - 73 AS col1, 9 * + ( CAST( NULL AS SIGNED ) )
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-1446
SELECT DISTINCT - 73 AS col1, 9 * + ( CAST ( NULL AS INTEGER ) )
----
-73
NULL

query I rowsort
SELECT + 37 * - + 3 * ( 54 ) + + - 97 col2
----
-6091

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT - MAX( + - 13 ) * - COALESCE ( COUNT( * ), + COUNT( * ) * 8, + 57 ) * - 88 + 8
----
1152

skipif mysql # not compatible
query I rowsort label-1448
SELECT - MAX ( + - 13 ) * - COALESCE ( COUNT ( * ), + COUNT ( * ) * 8, + 57 ) * - 88 + 8
----
1152

onlyif mysql # aggregate syntax: 
query II rowsort label-1449
SELECT 71 AS col2, COUNT( DISTINCT - 53 ) AS col1
----
71
1

skipif mysql # not compatible
query II rowsort label-1449
SELECT 71 AS col2, COUNT ( DISTINCT - 53 ) AS col1
----
71
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT ALL - - 41 + - ( COUNT( 13 ) ) / + CASE 17 WHEN + 55 + + 77 THEN + 52 WHEN - CASE 43 WHEN 61 THEN 80 ELSE NULL END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL - - 41 + - ( COUNT ( 13 ) ) / + CASE 17 WHEN + 55 + + 77 THEN + 52 WHEN - CASE 43 WHEN 61 THEN 80 ELSE NULL END THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT ALL + 14 + + - 70 - - - COUNT( * ) * - 72 * 40 col2
----
2824

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL + 14 + + - 70 - - - COUNT ( * ) * - 72 * 40 col2
----
2824

query II rowsort
SELECT + - 24 AS col1, + 51 AS col2
----
-24
51

query I rowsort
SELECT 54 * + ( + 91 )
----
4914

query II rowsort
SELECT ALL - - 60, - 58 AS col0
----
60
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT ALL ( 32 ) - + 8 + + 91 + + + COUNT( * )
----
116

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL ( 32 ) - + 8 + + 91 + + + COUNT ( * )
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-1456
SELECT - 6, - 53 + + + 77 - + - COUNT( * ) + - - 65 AS col0
----
-6
90

skipif mysql # not compatible
query II rowsort label-1456
SELECT - 6, - 53 + + + 77 - + - COUNT ( * ) + - - 65 AS col0
----
-6
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT 87 * - COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-1457
SELECT 87 * - COUNT ( * )
----
-87

query I rowsort
SELECT ALL 94 * + + 57
----
5358

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT 77 * + COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-1459
SELECT 77 * + COUNT ( * ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT MIN( 76 ) * 36 AS col1
----
2736

skipif mysql # not compatible
query I rowsort label-1460
SELECT MIN ( 76 ) * 36 AS col1
----
2736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1461
SELECT ALL 58 * + NULLIF ( + 11, - CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col1
----
638

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL 58 * + NULLIF ( + 11, - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col1
----
638

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT SUM( ALL 23 ) - - + 16
----
39

skipif mysql # not compatible
query I rowsort label-1462
SELECT SUM ( ALL 23 ) - - + 16
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT 67 * - COUNT( * ) * + 85 * 37
----
-210715

skipif mysql # not compatible
query I rowsort label-1463
SELECT 67 * - COUNT ( * ) * + 85 * 37
----
-210715

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT ( + 36 ) + COALESCE ( SUM( ALL - 69 ), - 52, + - 78 ) / CASE - 47 WHEN MIN( 45 ) * - 85 THEN NULL WHEN COUNT( * ) * - 50 THEN - 15 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1464
SELECT ( + 36 ) + COALESCE ( SUM ( ALL - 69 ), - 52, + - 78 ) / CASE - 47 WHEN MIN ( 45 ) * - 85 THEN NULL WHEN COUNT ( * ) * - 50 THEN - 15 ELSE NULL END
----
NULL

query I rowsort
SELECT 15 * 2 * 60 * - 51
----
-91800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1466
SELECT MAX( DISTINCT - 46 ) + CAST( - - 50 AS SIGNED ) - + + 97 * - + 94 AS col2
----
9122

skipif mysql # not compatible
query I rowsort label-1466
SELECT MAX ( DISTINCT - 46 ) + CAST ( - - 50 AS INTEGER ) - + + 97 * - + 94 AS col2
----
9122

query I rowsort
SELECT 95 + - - 96 AS col0
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT DISTINCT + COALESCE ( - ( + 30 ), 17 + + 9, + ( 34 ), - 70 ) + + COUNT( * ) * + 95 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-1468
SELECT DISTINCT + COALESCE ( - ( + 30 ), 17 + + 9, + ( 34 ), - 70 ) + + COUNT ( * ) * + 95 AS col0
----
65

query I rowsort
SELECT ALL 92 + 79
----
171

query II rowsort
SELECT DISTINCT + 87 + + - NULLIF ( + 52, - 47 ) - - 64, - 49 + - - 32 col2
----
99
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT ALL - - 10 + + 79 * + + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL - - 10 + + 79 * + + COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT DISTINCT + - NULLIF ( + 12, COALESCE ( + MAX( - + 99 ), + - 6 ) ) * - MAX( DISTINCT + 17 ) * 89 AS col1
----
18156

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT + - NULLIF ( + 12, COALESCE ( + MAX ( - + 99 ), + - 6 ) ) * - MAX ( DISTINCT + 17 ) * 89 AS col1
----
18156

onlyif mysql # aggregate syntax: 
query II rowsort label-1473
SELECT DISTINCT + ( - + 84 ), COUNT( * ) * - + 99 AS col2
----
-84
-99

skipif mysql # not compatible
query II rowsort label-1473
SELECT DISTINCT + ( - + 84 ), COUNT ( * ) * - + 99 AS col2
----
-84
-99

query I rowsort
SELECT ALL - + 18 * 61 AS col0
----
-1098

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT + NULLIF ( + + 0, - COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1475
SELECT + NULLIF ( + + 0, - COUNT ( * ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT - + 98 * - NULLIF ( + + 2, + 47 / COALESCE ( 15, - - ( 93 ) + 55 * - COUNT( * ) ) ) + 54
----
250

skipif mysql # not compatible
query I rowsort label-1476
SELECT - + 98 * - NULLIF ( + + 2, + 47 / COALESCE ( 15, - - ( 93 ) + 55 * - COUNT ( * ) ) ) + 54
----
250

onlyif mysql # aggregate syntax: 
query II rowsort label-1477
SELECT - ( 0 ) AS col1, 8 * - 58 * - MAX( DISTINCT - 82 ) + - + 98 AS col1
----
0
-38146

skipif mysql # not compatible
query II rowsort label-1477
SELECT - ( 0 ) AS col1, 8 * - 58 * - MAX ( DISTINCT - 82 ) + - + 98 AS col1
----
0
-38146

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT ALL + + CASE - 25 WHEN + - COALESCE ( 57, - - 33 * - 41 * - COUNT( * ) * 36, COUNT( * ) ) / + 7 THEN 19 / + 70 WHEN 39 THEN + COUNT( * ) ELSE - 94 END AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL + + CASE - 25 WHEN + - COALESCE ( 57, - - 33 * - 41 * - COUNT ( * ) * 36, COUNT ( * ) ) / + 7 THEN 19 / + 70 WHEN 39 THEN + COUNT ( * ) ELSE - 94 END AS col1
----
-94

query I rowsort
SELECT - 97 * CASE 53 WHEN ( + 67 ) - + - 7 * - 85 THEN + 6 * ( + 65 ) END + 79 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1480
SELECT DISTINCT - + COALESCE ( - - COUNT( * ), - 58 ) * + CASE + 53 WHEN + COUNT( * ) THEN - + 3 WHEN + 15 * 92 THEN - COUNT( DISTINCT CAST( 3 AS SIGNED ) ) END + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-1480
SELECT DISTINCT - + COALESCE ( - - COUNT ( * ), - 58 ) * + CASE + 53 WHEN + COUNT ( * ) THEN - + 3 WHEN + 15 * 92 THEN - COUNT ( DISTINCT CAST ( 3 AS INTEGER ) ) END + + 24
----
NULL

query I rowsort
SELECT DISTINCT + ( + 25 ) AS col1
----
25

query I rowsort
SELECT - 28 * - 22
----
616

query I rowsort
SELECT - + 80 + + - 4
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1484
SELECT DISTINCT + 69 * 30 + 93 - CAST( NULL AS SIGNED ) + COUNT( * ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1484
SELECT DISTINCT + 69 * 30 + 93 - CAST ( NULL AS INTEGER ) + COUNT ( * ) / + COUNT ( * )
----
NULL

query I rowsort
SELECT 62 * - + CASE - ( - 26 ) WHEN - 49 THEN NULL WHEN + + COALESCE ( + 97, - 85 - ( 91 + 19 * + 14 ) ) THEN + 53 END + 83 * + 78
----
NULL

query II rowsort
SELECT ALL + 35 AS col2, - 86 * + + 90
----
35
-7740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1487
SELECT - COALESCE ( 42, + - COALESCE ( - 57, - CASE - 42 WHEN - 8 / + 0 + 94 THEN NULL WHEN 83 * COUNT( * ) THEN 31 END, COUNT( DISTINCT 20 ) * - 62 ) + + CAST( 67 AS SIGNED ) ) + MIN( ALL + 43 ) * 80
----
3398

skipif mysql # not compatible
query I rowsort label-1487
SELECT - COALESCE ( 42, + - COALESCE ( - 57, - CASE - 42 WHEN - 8 / + 0 + 94 THEN NULL WHEN 83 * COUNT ( * ) THEN 31 END, COUNT ( DISTINCT 20 ) * - 62 ) + + CAST ( 67 AS INTEGER ) ) + MIN ( ALL + 43 ) * 80
----
3398

query I rowsort
SELECT DISTINCT + 53 * 33 AS col0
----
1749

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT + MAX( - 63 ) + + ( - CASE WHEN NOT ( 48 ) NOT IN ( 57 - 49 + 52 / COUNT( * ) ) THEN - 22 * 59 WHEN NOT ( NULL ) IS NOT NULL THEN + 68 * - NULLIF ( - 21, 41 ) ELSE NULL END ) + - 93
----
-1584

skipif mysql # not compatible
query I rowsort label-1489
SELECT + MAX ( - 63 ) + + ( - CASE WHEN NOT ( 48 ) NOT IN ( 57 - 49 + 52 / COUNT ( * ) ) THEN - 22 * 59 WHEN NOT ( NULL ) IS NOT NULL THEN + 68 * - NULLIF ( - 21, 41 ) ELSE NULL END ) + - 93
----
-1584

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1490
SELECT + CAST( + 7 AS SIGNED ) DIV + 40 - - 30
----
30

skipif mysql # not compatible
query I rowsort label-1490
SELECT + CAST ( + 7 AS INTEGER ) / + 40 - - 30
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1491
SELECT - ( COUNT( * ) ) DIV - 86 - - + 36 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-1491
SELECT - ( COUNT ( * ) ) / - 86 - - + 36 AS col0
----
36

query II rowsort
SELECT 38, 94 * - 66 * + + 45 AS col1
----
38
-279180

query I rowsort
SELECT + 64 * + 79
----
5056

query I rowsort
SELECT + 23 + - 46
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-1495
SELECT 46 AS col1, SUM( ALL + + ( + - 19 ) )
----
46
-19

skipif mysql # not compatible
query II rowsort label-1495
SELECT 46 AS col1, SUM ( ALL + + ( + - 19 ) )
----
46
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1496
SELECT 81 AS col0, + COUNT( * ) DIV + 54 + 0 * - 21 DIV - 87
----
81
0

skipif mysql # not compatible
query II rowsort label-1496
SELECT 81 AS col0, + COUNT ( * ) / + 54 + 0 * - 21 / - 87
----
81
0

query I rowsort
SELECT ALL 46 * - 50
----
-2300

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT ALL COUNT( * ) + - 99 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL COUNT ( * ) + - 99 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT - COUNT( + 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-1499
SELECT - COUNT ( + 46 )
----
-1

query I rowsort
SELECT + 28 + + 1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT DISTINCT COUNT( * ) + - + 36
----
-35

skipif mysql # not compatible
query I rowsort label-1501
SELECT DISTINCT COUNT ( * ) + - + 36
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT - NULLIF ( 89, - 41 * COUNT( * ) + 84 + + 32 - + 15 )
----
-89

skipif mysql # not compatible
query I rowsort label-1502
SELECT - NULLIF ( 89, - 41 * COUNT ( * ) + 84 + + 32 - + 15 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT ALL 10 + - + COUNT( * ) * 97 - 98
----
-185

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL 10 + - + COUNT ( * ) * 97 - 98
----
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1504
SELECT DISTINCT COUNT( * ) AS col2, + CAST( + 26 AS SIGNED )
----
1
26

skipif mysql # not compatible
query II rowsort label-1504
SELECT DISTINCT COUNT ( * ) AS col2, + CAST ( + 26 AS INTEGER )
----
1
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT - 51 - - + COUNT( * ) + - 77 AS col1
----
-127

skipif mysql # not compatible
query I rowsort label-1505
SELECT - 51 - - + COUNT ( * ) + - 77 AS col1
----
-127

query I rowsort
SELECT + - 13 * - 56 + - - 33
----
761

query I rowsort
SELECT - - ( - - 51 )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-1508
SELECT 58 AS col1, 16 + + - 13 + + COUNT( * ) * - COUNT( * )
----
58
2

skipif mysql # not compatible
query II rowsort label-1508
SELECT 58 AS col1, 16 + + - 13 + + COUNT ( * ) * - COUNT ( * )
----
58
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT + - COUNT( * ) - + 77
----
-78

skipif mysql # not compatible
query I rowsort label-1509
SELECT + - COUNT ( * ) - + 77
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1510
SELECT - ( + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1510
SELECT - ( + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1511
SELECT ALL + 73 DIV - 26 + NULLIF ( + 29, + 17 - + 22 * + + 8 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL + 73 / - 26 + NULLIF ( + 29, + 17 - + 22 * + + 8 ) AS col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1512
SELECT - - COALESCE ( - 25, ( + 52 ) ) DIV + 25 - + 77
----
-78

skipif mysql # not compatible
query I rowsort label-1512
SELECT - - COALESCE ( - 25, ( + 52 ) ) / + 25 - + 77
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-1513
SELECT DISTINCT 53 DIV - 10 - - 19 * 47
----
888

skipif mysql # not compatible
query I rowsort label-1513
SELECT DISTINCT 53 / - 10 - - 19 * 47
----
888

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT ALL + 86 / - 74 * - + 26 - + 45 - + - 78 * - CASE + - COUNT( * ) WHEN + + ( - 95 ) - + 46 THEN + MAX( 58 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL + 86 / - 74 * - + 26 - + 45 - + - 78 * - CASE + - COUNT ( * ) WHEN + + ( - 95 ) - + 46 THEN + MAX ( 58 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - - 70 + - 77 - + - ( + - 87 ) - - 73 * + 28 AS col1
----
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT - + ( + 6 ) + - + 61 * CASE + ( + 94 ) WHEN - 11 * + - 69 + 83 THEN NULL WHEN - 47 * 57 + + 66 THEN NULL ELSE 74 * CASE 27 WHEN + COUNT( * ) + + 30 THEN 90 WHEN 23 + ( - COUNT( * ) ) THEN NULL END END * ( - 18 ) + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1516
SELECT - + ( + 6 ) + - + 61 * CASE + ( + 94 ) WHEN - 11 * + - 69 + 83 THEN NULL WHEN - 47 * 57 + + 66 THEN NULL ELSE 74 * CASE 27 WHEN + COUNT ( * ) + + 30 THEN 90 WHEN 23 + ( - COUNT ( * ) ) THEN NULL END END * ( - 18 ) + 80
----
NULL

query I rowsort
SELECT ALL - 31 * 55 * 99
----
-168795

query I rowsort
SELECT + - 26 * ( - 94 ) AS col0
----
2444

query I rowsort
SELECT + + 51 * + 90
----
4590

query I rowsort
SELECT ALL 4 * 6 + + ( + 31 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT DISTINCT + COALESCE ( COUNT( * ), + + NULLIF ( - COUNT( * ), - COUNT( * ) ) * + + 82 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT + COALESCE ( COUNT ( * ), + + NULLIF ( - COUNT ( * ), - COUNT ( * ) ) * + + 82 ) col1
----
1

query I rowsort
SELECT - ( + + 55 ) * 8 + + 24
----
-416

query I rowsort
SELECT NULLIF ( - 67, - 94 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT NULLIF ( + 50, + 64 * - CASE 28 WHEN COUNT( * ) THEN + MIN( 21 ) WHEN + + 5 THEN NULL WHEN 46 * - COUNT( * ) THEN 11 * + 32 ELSE NULL END * - 2 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-1524
SELECT NULLIF ( + 50, + 64 * - CASE 28 WHEN COUNT ( * ) THEN + MIN ( 21 ) WHEN + + 5 THEN NULL WHEN 46 * - COUNT ( * ) THEN 11 * + 32 ELSE NULL END * - 2 ) AS col0
----
50

query I rowsort
SELECT - ( + ( + 88 ) ) * - - 28 AS col1
----
-2464

query I rowsort
SELECT - 47 * + 55
----
-2585

query I rowsort
SELECT NULLIF ( - + 50, - 74 ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT - NULLIF ( + COUNT( * ), + 35 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1528
SELECT - NULLIF ( + COUNT ( * ), + 35 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1529
SELECT + 99 DIV - 62 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1529
SELECT + 99 / - 62 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1530
SELECT DISTINCT ( - + COUNT( * ) ) AS col0, 25
----
-1
25

skipif mysql # not compatible
query II rowsort label-1530
SELECT DISTINCT ( - + COUNT ( * ) ) AS col0, 25
----
-1
25

onlyif mysql # aggregate syntax: 
query II rowsort label-1531
SELECT 5 + COUNT( * ), 17 - + 57 AS col1
----
6
-40

skipif mysql # not compatible
query II rowsort label-1531
SELECT 5 + COUNT ( * ), 17 - + 57 AS col1
----
6
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT ALL MAX( - + 14 ) + + + 63 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL MAX ( - + 14 ) + + + 63 AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1533
SELECT ALL - COUNT( * ) + + - 27 AS col1, + CAST( NULL AS SIGNED )
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-1533
SELECT ALL - COUNT ( * ) + + - 27 AS col1, + CAST ( NULL AS INTEGER )
----
-28
NULL

query I rowsort
SELECT 21 * - - 7
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT 95 + - COUNT( * ) + COUNT( * ) col2
----
95

skipif mysql # not compatible
query I rowsort label-1535
SELECT 95 + - COUNT ( * ) + COUNT ( * ) col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT COUNT( * ) - 61 * + 22
----
-1341

skipif mysql # not compatible
query I rowsort label-1536
SELECT COUNT ( * ) - 61 * + 22
----
-1341

query I rowsort
SELECT 4 + + 46
----
50

query II rowsort
SELECT 40 - + - 14 col0, + 22 - - 75 + + - 6
----
54
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1539
SELECT 60 * - - CAST( - - 86 AS SIGNED ) * COUNT( ALL + ( + 46 ) ) * - 75, 70 * - 39 * 26 AS col2
----
-387000
-70980

skipif mysql # not compatible
query II rowsort label-1539
SELECT 60 * - - CAST ( - - 86 AS INTEGER ) * COUNT ( ALL + ( + 46 ) ) * - 75, 70 * - 39 * 26 AS col2
----
-387000
-70980

query II rowsort
SELECT NULLIF ( - 61, - ( - 62 ) ) col0, 53 AS col2
----
-61
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1541
SELECT DISTINCT 6 DIV COUNT( * ) * 13 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT 6 / COUNT ( * ) * 13 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT ALL COUNT( + 20 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL COUNT ( + 20 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1543
SELECT ALL 24 * + 35 / - + CASE + 77 WHEN - + 62 THEN NULL WHEN - + ( - + CAST( + + 5 AS SIGNED ) ) - + 95 - + 68 * 88 THEN + 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1543
SELECT ALL 24 * + 35 / - + CASE + 77 WHEN - + 62 THEN NULL WHEN - + ( - + CAST ( + + 5 AS INTEGER ) ) - + 95 - + 68 * 88 THEN + 47 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1544
SELECT 53 + + - 43 DIV - + 48
----
53

skipif mysql # not compatible
query I rowsort label-1544
SELECT 53 + + - 43 / - + 48
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT ALL - ( - MAX( DISTINCT 3 ) ) - - 26 col1
----
29

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL - ( - MAX ( DISTINCT 3 ) ) - - 26 col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1546
SELECT DISTINCT - COALESCE ( - 79, 80 + + COUNT( * ) + 76 + + 15 DIV + - 20 * 81 DIV 0 - 18, - 27 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1546
SELECT DISTINCT - COALESCE ( - 79, 80 + + COUNT ( * ) + 76 + + 15 / + - 20 * 81 / 0 - 18, - 27 ) AS col1
----
79

query I rowsort
SELECT 99 + + 14
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1548
SELECT ALL CAST( NULL AS SIGNED ) * + 47 - - 42 * + 43 * - NULLIF ( - - COUNT( * ), + 80 + + 46 / 84 ) + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL CAST ( NULL AS INTEGER ) * + 47 - - 42 * + 43 * - NULLIF ( - - COUNT ( * ), + 80 + + 46 / 84 ) + + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT - + MAX( 2 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1549
SELECT - + MAX ( 2 ) AS col2
----
-2

query I rowsort
SELECT 22 + + + 29 + - 4 + - - 53 AS col0
----
100

query I rowsort
SELECT 9 * - ( + 36 )
----
-324

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1552
SELECT MIN( DISTINCT 78 ) + + AVG ( DISTINCT + 16 ) + - 61 + - 65 / CAST( NULL AS DECIMAL ) / ( - 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1552
SELECT MIN ( DISTINCT 78 ) + + AVG ( DISTINCT + 16 ) + - 61 + - 65 / CAST ( NULL AS REAL ) / ( - 98 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1553
SELECT 1 DIV - ( - - ( 42 ) ) + + 62 + - 97 * + - NULLIF ( - 13, - 1 * AVG ( DISTINCT + 38 ) ) * 97
----
-122255

skipif mysql # not compatible
query I rowsort label-1553
SELECT 1 / - ( - - ( 42 ) ) + + 62 + - 97 * + - NULLIF ( - 13, - 1 * AVG ( DISTINCT + 38 ) ) * 97
----
-122255

query I rowsort
SELECT - 80 * + + 10
----
-800

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT - 51 DIV - - 5 + + - 64 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-1555
SELECT - 51 / - - 5 + + - 64 AS col2
----
-74

query I rowsort
SELECT DISTINCT - ( + - 60 )
----
60

query I rowsort
SELECT DISTINCT - + 98
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1558
SELECT ALL + 8 + + + 22 * + 33 + CAST( NULL AS SIGNED ) * - NULLIF ( - 91, + 67 + - MAX( + + 1 ) ) + - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL + 8 + + + 22 * + 33 + CAST ( NULL AS INTEGER ) * - NULLIF ( - 91, + 67 + - MAX ( + + 1 ) ) + - 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT 86 - + - 16 + + ( - 83 ) * - 76 + - - MAX( - + 54 ) col1
----
6356

skipif mysql # not compatible
query I rowsort label-1559
SELECT 86 - + - 16 + + ( - 83 ) * - 76 + - - MAX ( - + 54 ) col1
----
6356

query I rowsort
SELECT + ( + 97 ) * 40 + - 26
----
3854

query I rowsort
SELECT ALL 35 * + 99
----
3465

onlyif mysql # DIV for integer division: 
query I rowsort label-1562
SELECT 70 DIV NULLIF ( - 14, + 18 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-1562
SELECT 70 / NULLIF ( - 14, + 18 ) AS col2
----
-5

query I rowsort
SELECT 76 + + 10 * ( + - 35 ) AS col1
----
-274

query I rowsort
SELECT DISTINCT 70 + - 70 * + CASE - 18 WHEN 52 THEN - + 89 END
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 87, - + 5 ) + - - 82 + + + ( - 35 ) AS col1
----
-40

query II rowsort
SELECT + 37 AS col0, 67 AS col1
----
37
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT ALL MIN( 19 ) * 48
----
912

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL MIN ( 19 ) * 48
----
912

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1568
SELECT ALL + CAST( NULL AS DECIMAL ) + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL + CAST ( NULL AS REAL ) + + 26
----
NULL

query I rowsort
SELECT ALL 69 + - 85 * + - 48 - + 34
----
4115

query I rowsort
SELECT 95 * + - 22 AS col2
----
-2090

query I rowsort
SELECT - 6 * - ( + 22 ) + ( + ( + - 44 ) ) * + 80 + - COALESCE ( - + ( - ( 27 ) ), - 53 )
----
-3415

query I rowsort
SELECT 20 * + 21
----
420

query I rowsort
SELECT DISTINCT - + 62 - + + 31
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT DISTINCT - COUNT( * ) * + 47 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-1574
SELECT DISTINCT - COUNT ( * ) * + 47 AS col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1575
SELECT DISTINCT 17 col2, CAST( NULL AS SIGNED )
----
17
NULL

skipif mysql # not compatible
query II rowsort label-1575
SELECT DISTINCT 17 col2, CAST ( NULL AS INTEGER )
----
17
NULL

query I rowsort
SELECT ALL - 25 - 8 col2
----
-33

query I rowsort
SELECT ALL - ( + 21 ) AS col1
----
-21

query I rowsort
SELECT DISTINCT - ( + 42 ) - - 6 AS col0
----
-36

query II rowsort
SELECT - + 31 AS col0, - ( + 77 ) + 17
----
-31
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT COUNT( * ) - + 85 * - SUM( DISTINCT - 18 )
----
-1529

skipif mysql # not compatible
query I rowsort label-1580
SELECT COUNT ( * ) - + 85 * - SUM ( DISTINCT - 18 )
----
-1529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1581
SELECT - CAST( + + 55 AS SIGNED ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-1581
SELECT - CAST ( + + 55 AS INTEGER ) AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1582
SELECT ALL 68, SUM( ALL - + 13 ) * CAST( NULL AS SIGNED ) * 54 AS col2
----
68
NULL

skipif mysql # not compatible
query II rowsort label-1582
SELECT ALL 68, SUM ( ALL - + 13 ) * CAST ( NULL AS INTEGER ) * 54 AS col2
----
68
NULL

query I rowsort
SELECT 78 * + 12 * + 70
----
65520

query I rowsort
SELECT - 37 + 41
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT 24 * + 92 * COUNT( * ) * - 97 AS col1
----
-214176

skipif mysql # not compatible
query I rowsort label-1585
SELECT 24 * + 92 * COUNT ( * ) * - 97 AS col1
----
-214176

onlyif mysql # DIV for integer division: 
query I rowsort label-1586
SELECT DISTINCT + + ( - - 88 ) DIV 26
----
3

skipif mysql # not compatible
query I rowsort label-1586
SELECT DISTINCT + + ( - - 88 ) / 26
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1587
SELECT ALL + 48 * - 44 + - COUNT( * ) + + 29 * - - CAST( - - 56 AS SIGNED ) * - 2
----
-5361

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL + 48 * - 44 + - COUNT ( * ) + + 29 * - - CAST ( - - 56 AS INTEGER ) * - 2
----
-5361

query I rowsort
SELECT + ( - + 59 )
----
-59

query I rowsort
SELECT 26 * + - 36 AS col1
----
-936

query I rowsort
SELECT 96 + + 77 * + 54 * + - 13 + - 78 col2
----
-54036

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1591
SELECT + 98 * 69 * + 36 - + - 89 + - 73 + 90 * + 89 * + 44 DIV 22 + - COUNT( * )
----
259467

skipif mysql # not compatible
query I rowsort label-1591
SELECT + 98 * 69 * + 36 - + - 89 + - 73 + 90 * + 89 * + 44 / 22 + - COUNT ( * )
----
259467

query II rowsort
SELECT + 72 AS col0, - 19
----
72
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT SUM( + - 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-1593
SELECT SUM ( + - 37 ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT 86 * COUNT( ALL + 53 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-1594
SELECT 86 * COUNT ( ALL + 53 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT COUNT( DISTINCT 25 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1595
SELECT COUNT ( DISTINCT 25 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1596
SELECT COUNT( ALL 98 ), + 58 AS col0
----
1
58

skipif mysql # not compatible
query II rowsort label-1596
SELECT COUNT ( ALL 98 ), + 58 AS col0
----
1
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1597
SELECT + COUNT( * ), + 60 AS col2
----
1
60

skipif mysql # not compatible
query II rowsort label-1597
SELECT + COUNT ( * ), + 60 AS col2
----
1
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1598
SELECT ALL 91 * 41 + - + CASE 62 WHEN - COALESCE ( 16, COUNT( * ) ) * - 69 - - + COUNT( * ) THEN NULL WHEN 62 THEN NULL ELSE + CAST( + ( - 67 ) AS SIGNED ) / 59 + 47 END * - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL 91 * 41 + - + CASE 62 WHEN - COALESCE ( 16, COUNT ( * ) ) * - 69 - - + COUNT ( * ) THEN NULL WHEN 62 THEN NULL ELSE + CAST ( + ( - 67 ) AS INTEGER ) / 59 + 47 END * - 85 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1599
SELECT ALL + MIN( - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL + MIN ( - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT + CASE - CASE - - 48 WHEN + 0 * - 31 THEN NULL WHEN 61 * - 5 + 21 THEN - 28 * - 44 * 29 + - 43 END WHEN 3 THEN - 35 / COUNT( * ) + 89 WHEN 95 * + COUNT( + 31 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1600
SELECT + CASE - CASE - - 48 WHEN + 0 * - 31 THEN NULL WHEN 61 * - 5 + 21 THEN - 28 * - 44 * 29 + - 43 END WHEN 3 THEN - 35 / COUNT ( * ) + 89 WHEN 95 * + COUNT ( + 31 ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + 40 * + ( - + 14 )
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT + 69 * - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-1602
SELECT + 69 * - COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT DISTINCT SUM( ALL 13 ) * + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT SUM ( ALL 13 ) * + COUNT ( * )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1604
SELECT - 65 * - 20 * 96 - MAX( DISTINCT + - 50 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1604
SELECT - 65 * - 20 * 96 - MAX ( DISTINCT + - 50 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1605
SELECT - COUNT( * ) DIV + - 32 AS col1, - COALESCE ( - - 23, 64 * + - 62, 33 + - 82 - 72 + - 67 DIV - 9 - - 87 DIV 34 )
----
0
-23

skipif mysql # not compatible
query II rowsort label-1605
SELECT - COUNT ( * ) / + - 32 AS col1, - COALESCE ( - - 23, 64 * + - 62, 33 + - 82 - 72 + - 67 / - 9 - - 87 / 34 )
----
0
-23

query I rowsort
SELECT + 98 + 74 + 25 - + 77 - - 95 + - 58 * - - 49 AS col2
----
-2627

query II rowsort
SELECT 8 AS col0, - 21
----
8
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT DISTINCT NULLIF ( 39, + SUM( DISTINCT + 63 ) ) * COALESCE ( - 44, + 42, + 7, - - 38 ) * + 52
----
-89232

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT NULLIF ( 39, + SUM ( DISTINCT + 63 ) ) * COALESCE ( - 44, + 42, + 7, - - 38 ) * + 52
----
-89232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1609
SELECT ALL - CAST( - MAX( DISTINCT + 76 ) AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL - CAST ( - MAX ( DISTINCT + 76 ) AS INTEGER )
----
76

query I rowsort
SELECT - 99 - 70 * + + 36
----
-2619

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT + 38 * + 81 + + - COUNT( * )
----
3077

skipif mysql # not compatible
query I rowsort label-1611
SELECT + 38 * + 81 + + - COUNT ( * )
----
3077

query I rowsort
SELECT + 42 + 16
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT MAX( + ( - - 47 ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-1613
SELECT MAX ( + ( - - 47 ) ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT - - MAX( DISTINCT - 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-1614
SELECT - - MAX ( DISTINCT - 26 ) AS col1
----
-26

query I rowsort
SELECT DISTINCT + COALESCE ( + 6, - ( - - 24 ) ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1616
SELECT - 85 AS col2, - CAST( CASE 17 WHEN 59 - 28 * + ( + - COALESCE ( 74, 53 / + 74 + - 39 * - CASE - ( - 51 ) * - COUNT( * ) WHEN - CASE + 20 WHEN 82 THEN NULL ELSE 42 * 22 + 25 END THEN 54 + 23 ELSE NULL END, 74 - 55 ) ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN 64 ELSE + CAST( 82 AS SIGNED ) + + ( 50 + + NULLIF ( 69, 66 ) ) END AS SIGNED ) AS col1
----
-85
-201

skipif mysql # not compatible
query II rowsort label-1616
SELECT - 85 AS col2, - CAST ( CASE 17 WHEN 59 - 28 * + ( + - COALESCE ( 74, 53 / + 74 + - 39 * - CASE - ( - 51 ) * - COUNT ( * ) WHEN - CASE + 20 WHEN 82 THEN NULL ELSE 42 * 22 + 25 END THEN 54 + 23 ELSE NULL END, 74 - 55 ) ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN 64 ELSE + CAST ( 82 AS INTEGER ) + + ( 50 + + NULLIF ( 69, 66 ) ) END AS INTEGER ) AS col1
----
-85
-201

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1617
SELECT - + 8 * + COUNT( * ), 27 DIV - 52 AS col2
----
-8
0

skipif mysql # not compatible
query II rowsort label-1617
SELECT - + 8 * + COUNT ( * ), 27 / - 52 AS col2
----
-8
0

query I rowsort
SELECT - 39 + COALESCE ( 54, 86 * - 53 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT - - COUNT( * ) + + 49 + + - COUNT( * ) + - 70
----
-21

skipif mysql # not compatible
query I rowsort label-1619
SELECT - - COUNT ( * ) + + 49 + + - COUNT ( * ) + - 70
----
-21

query II rowsort
SELECT ALL 47 AS col2, - NULLIF ( + - 38, - - 6 )
----
47
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT DISTINCT + MIN( ALL - 3 ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-1621
SELECT DISTINCT + MIN ( ALL - 3 ) col0
----
-3

query I rowsort
SELECT ALL - 52 * - 3 AS col2
----
156

query I rowsort
SELECT - 1 * 32 + 81 * - 10 + - - 58 + + + 8 + + 3
----
-773

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT ALL + COUNT( * ) + - 24 + - 11 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL + COUNT ( * ) + - 24 + - 11 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query III rowsort label-1625
SELECT ALL - 51 AS col2, COUNT( * ) AS col0, + COUNT( - NULLIF ( 91, - 40 ) )
----
-51
1
1

skipif mysql # not compatible
query III rowsort label-1625
SELECT ALL - 51 AS col2, COUNT ( * ) AS col0, + COUNT ( - NULLIF ( 91, - 40 ) )
----
-51
1
1

query I rowsort
SELECT - + 81 * + 80 col2
----
-6480

query I rowsort
SELECT DISTINCT + - 16 AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1628
SELECT ALL 75 / 15 + CAST( NULL AS SIGNED ) - - 99 + 94 * + - COUNT( * ) * - 42 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL 75 / 15 + CAST ( NULL AS INTEGER ) - - 99 + 94 * + - COUNT ( * ) * - 42 col2
----
NULL

query I rowsort
SELECT ( + - ( + - 12 ) )
----
12

query I rowsort
SELECT + 93 * - 96 * + 40 + + + ( + 18 ) AS col1
----
-357102

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT DISTINCT + COALESCE ( + + COALESCE ( + + 95, - COUNT( * ) * + 97 * - ( 86 ) * NULLIF ( - 61, - 38 * - - 47 + + 86 + 63 / - ( + 26 + + 85 ) ) + 67 * + 8, 90, + MIN( ALL + 46 ) ), - COALESCE ( - ( + COUNT( * ) ), + 49 ), - CASE WHEN 91 NOT BETWEEN NULL AND NULL THEN NULL ELSE 3 END )
----
95

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT + COALESCE ( + + COALESCE ( + + 95, - COUNT ( * ) * + 97 * - ( 86 ) * NULLIF ( - 61, - 38 * - - 47 + + 86 + 63 / - ( + 26 + + 85 ) ) + 67 * + 8, 90, + MIN ( ALL + 46 ) ), - COALESCE ( - ( + COUNT ( * ) ), + 49 ), - CASE WHEN 91 NOT BETWEEN NULL AND NULL THEN NULL ELSE 3 END )
----
95

query I rowsort
SELECT - 88 + - 63 AS col1
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT ALL ( - SUM( DISTINCT + 66 ) ) * + ( - 32 ) * - 87 * - + MIN( + 84 ) + 2 + + 88 + - NULLIF ( 16, 14 )
----
15434570

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL ( - SUM ( DISTINCT + 66 ) ) * + ( - 32 ) * - 87 * - + MIN ( + 84 ) + 2 + + 88 + - NULLIF ( 16, 14 )
----
15434570

query I rowsort
SELECT ( 40 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT ALL SUM( - ( 42 ) ) * 88
----
-3696

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL SUM ( - ( 42 ) ) * 88
----
-3696

query I rowsort
SELECT + 82 + + - 89 + + 62
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1637
SELECT ALL + CAST( 71 AS SIGNED ) AS col0, 75 AS col1
----
71
75

skipif mysql # not compatible
query II rowsort label-1637
SELECT ALL + CAST ( 71 AS INTEGER ) AS col0, 75 AS col1
----
71
75

query I rowsort
SELECT NULLIF ( + 6, - 56 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1639
SELECT - 22 + + CASE - 8 WHEN + COUNT( * ) * - COUNT( * ) + 96 THEN - + 69 + 93 * + 51 + - CASE + 37 WHEN - CAST( NULL AS SIGNED ) * - 81 THEN 34 WHEN - 33 * + 33 THEN NULL END WHEN 64 THEN 83 + + COUNT( * ) ELSE NULL END / NULLIF ( 7 + + SUM( DISTINCT 25 ), 50 * + 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1639
SELECT - 22 + + CASE - 8 WHEN + COUNT ( * ) * - COUNT ( * ) + 96 THEN - + 69 + 93 * + 51 + - CASE + 37 WHEN - CAST ( NULL AS INTEGER ) * - 81 THEN 34 WHEN - 33 * + 33 THEN NULL END WHEN 64 THEN 83 + + COUNT ( * ) ELSE NULL END / NULLIF ( 7 + + SUM ( DISTINCT 25 ), 50 * + 65 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT + 28 - COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1640
SELECT + 28 - COUNT ( * ) AS col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1641
SELECT - 98 * + - 55 * + COUNT( * ) + COUNT( * ) + - 51 + 11 - ( ( - - ( - + 80 ) ) ) * + COUNT( * ) DIV + NULLIF ( 93, 46 ) DIV 11
----
5351

skipif mysql # not compatible
query I rowsort label-1641
SELECT - 98 * + - 55 * + COUNT ( * ) + COUNT ( * ) + - 51 + 11 - ( ( - - ( - + 80 ) ) ) * + COUNT ( * ) / + NULLIF ( 93, 46 ) / 11
----
5351

query I rowsort
SELECT ALL 13 * 6 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT + 83 + - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-1643
SELECT + 83 + - COUNT ( * )
----
82

query I rowsort
SELECT + 40 * + 26 * + - 87
----
-90480

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT + - MAX( 8 ) * + 10 + + 69 + + + 12 * - ( 99 ) - - COALESCE ( 82, + 98 ) + + 85 * + + 24
----
923

skipif mysql # not compatible
query I rowsort label-1645
SELECT + - MAX ( 8 ) * + 10 + + 69 + + + 12 * - ( 99 ) - - COALESCE ( 82, + 98 ) + + 85 * + + 24
----
923

query I rowsort
SELECT ALL - 48 * - + 96 AS col1
----
4608

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT DISTINCT - 4 * + ( ( + 68 ) ) * COUNT( * ) * ( ( - + 79 ) ) AS col0
----
21488

skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT - 4 * + ( ( + 68 ) ) * COUNT ( * ) * ( ( - + 79 ) ) AS col0
----
21488

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT DISTINCT COUNT( * ) + + 4 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT COUNT ( * ) + + 4 AS col2
----
5

query I rowsort
SELECT DISTINCT - + 90 + + - ( + ( + 67 ) ) col2
----
-157

query I rowsort
SELECT ALL 60 + 45
----
105

query I rowsort
SELECT - - ( + - 1 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1652
SELECT - ( + 19 ), - MIN( DISTINCT + 4 ) col0
----
-19
-4

skipif mysql # not compatible
query II rowsort label-1652
SELECT - ( + 19 ), - MIN ( DISTINCT + 4 ) col0
----
-19
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-1653
SELECT - + 35 + + + 96 AS col0, 56 + + - COUNT( * )
----
61
55

skipif mysql # not compatible
query II rowsort label-1653
SELECT - + 35 + + + 96 AS col0, 56 + + - COUNT ( * )
----
61
55

query I rowsort
SELECT ALL - - 85 + 97 AS col2
----
182

query I rowsort
SELECT ALL + 77 * - 76
----
-5852

query I rowsort
SELECT ALL - 5 - + - 9 + ( - 35 ) + + 68 * - + NULLIF ( - 29, + + 95 + - + 43 )
----
1941

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1657
SELECT ALL - CAST( - 82 AS SIGNED ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL - CAST ( - 82 AS INTEGER ) AS col0
----
82

onlyif mysql # DIV for integer division: 
query II rowsort label-1658
SELECT 21 DIV - ( - 45 ) col1, - 52 AS col1
----
0
-52

skipif mysql # not compatible
query II rowsort label-1658
SELECT 21 / - ( - 45 ) col1, - 52 AS col1
----
0
-52

query I rowsort
SELECT - 51 * - 24 - 35 + + 64 col0
----
1253

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT 5 * + COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-1660
SELECT 5 * + COUNT ( * ) AS col2
----
5

query I rowsort
SELECT ALL - ( - + 51 )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1662
SELECT 11 DIV COUNT( DISTINCT - + 58 ) col0, + 69 + ( 58 ) * + - 25 * + + 67
----
11
-97081

skipif mysql # not compatible
query II rowsort label-1662
SELECT 11 / COUNT ( DISTINCT - + 58 ) col0, + 69 + ( 58 ) * + - 25 * + + 67
----
11
-97081

query II rowsort
SELECT + 46 AS col2, 86 AS col1
----
46
86

onlyif mysql # DIV for integer division: 
query I rowsort label-1664
SELECT 24 DIV + 22 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1664
SELECT 24 / + 22 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT 30 * + + SUM( - + 47 ) AS col1
----
-1410

skipif mysql # not compatible
query I rowsort label-1665
SELECT 30 * + + SUM ( - + 47 ) AS col1
----
-1410

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT DISTINCT 27 * + 34 * 43 * - MAX( ALL + 21 ) AS col0
----
-828954

skipif mysql # not compatible
query I rowsort label-1666
SELECT DISTINCT 27 * + 34 * 43 * - MAX ( ALL + 21 ) AS col0
----
-828954

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT ALL 86 * 13 * + + COUNT( * ) AS col0
----
1118

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL 86 * 13 * + + COUNT ( * ) AS col0
----
1118

query II rowsort
SELECT + 15 AS col2, 47 + 55 AS col2
----
15
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT MAX( ALL 40 ) * 96 col1
----
3840

skipif mysql # not compatible
query I rowsort label-1669
SELECT MAX ( ALL 40 ) * 96 col1
----
3840

query I rowsort
SELECT 53 + - 98 AS col0
----
-45

query I rowsort
SELECT - ( + 64 )
----
-64

query II rowsort
SELECT - 75, - 22 + 78 AS col0
----
-75
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT ALL - + COALESCE ( 17, + COUNT( * ) ) + 41 + - 86 + 7 + 78 + - ( + COUNT( * ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL - + COALESCE ( 17, + COUNT ( * ) ) + 41 + - 86 + 7 + 78 + - ( + COUNT ( * ) ) AS col0
----
22

query I rowsort
SELECT - 4 * 66 - 64 AS col2
----
-328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1675
SELECT + 8 * + COALESCE ( - 38, - 29 - + COALESCE ( - + COUNT( * ), - + ( + 25 ), + 10, + 67 ) + + CAST( NULL AS SIGNED ), ( - 94 ), - 94 * + 61 + + CAST( - 70 AS SIGNED ) ) * 99
----
-30096

skipif mysql # not compatible
query I rowsort label-1675
SELECT + 8 * + COALESCE ( - 38, - 29 - + COALESCE ( - + COUNT ( * ), - + ( + 25 ), + 10, + 67 ) + + CAST ( NULL AS INTEGER ), ( - 94 ), - 94 * + 61 + + CAST ( - 70 AS INTEGER ) ) * 99
----
-30096

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT - COUNT( * ) + - SUM( 91 )
----
-92

skipif mysql # not compatible
query I rowsort label-1676
SELECT - COUNT ( * ) + - SUM ( 91 )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-1677
SELECT ALL - 61 + 2 + 17 DIV + 10 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL - 61 + 2 + 17 / + 10 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query III rowsort label-1678
SELECT + 97 - + ( - + 74 ) AS col0, + 29, + ( + COUNT( * ) ) AS col2
----
171
29
1

skipif mysql # not compatible
query III rowsort label-1678
SELECT + 97 - + ( - + 74 ) AS col0, + 29, + ( + COUNT ( * ) ) AS col2
----
171
29
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT + COUNT( * ) + - 89 * + - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-1679
SELECT + COUNT ( * ) + - 89 * + - COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT ( SUM( DISTINCT - 7 ) ) - - 97 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-1680
SELECT ( SUM ( DISTINCT - 7 ) ) - - 97 AS col1
----
90

query I rowsort
SELECT + 24 + COALESCE ( + + 8, + + 39 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1682
SELECT ALL - CAST( NULL AS SIGNED ) + + - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL - CAST ( NULL AS INTEGER ) + + - 35 AS col2
----
NULL

query I rowsort
SELECT 70 + + 95 - - 61 * - 68 AS col0
----
-3983

query II rowsort
SELECT ALL 28 AS col0, 4
----
28
4

query I rowsort
SELECT - 90 + + - 26 - + - 96 AS col2
----
-20

query II rowsort
SELECT ALL 77 - + + 66 col2, + ( + 60 )
----
11
60

query I rowsort
SELECT 15 * + - 98 AS col2
----
-1470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1688
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) * + 79 * 4, 1 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1688
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + 79 * 4, 1 AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1689
SELECT - MAX( ALL - 91 ) col0, - ( - + 91 ) AS col1
----
91
91

skipif mysql # not compatible
query II rowsort label-1689
SELECT - MAX ( ALL - 91 ) col0, - ( - + 91 ) AS col1
----
91
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1690
SELECT 34 + - 12 + - + MIN( ALL - 5 ) + + 20 DIV - 80 DIV 61 * 48
----
27

skipif mysql # not compatible
query I rowsort label-1690
SELECT 34 + - 12 + - + MIN ( ALL - 5 ) + + 20 / - 80 / 61 * 48
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT MAX( + - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-1691
SELECT MAX ( + - 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT ALL - COUNT( DISTINCT ( CASE + ( - + 1 ) WHEN 66 THEN NULL WHEN 27 THEN 96 END ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL - COUNT ( DISTINCT ( CASE + ( - + 1 ) WHEN 66 THEN NULL WHEN 27 THEN 96 END ) ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1693
SELECT CAST( NULL AS SIGNED ) * + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1693
SELECT CAST ( NULL AS INTEGER ) * + 83 AS col2
----
NULL

query I rowsort
SELECT 50 * - 33
----
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT MIN( 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-1695
SELECT MIN ( 83 ) AS col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1696
SELECT COUNT( * ) DIV + - COUNT( * ) + + - 63 + - 42 * + 65 AS col0
----
-2794

skipif mysql # not compatible
query I rowsort label-1696
SELECT COUNT ( * ) / + - COUNT ( * ) + + - 63 + - 42 * + 65 AS col0
----
-2794

query I rowsort
SELECT ALL ( + + 63 ) * + 73 AS col1
----
4599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1698
SELECT 40 + 87 * CASE 92 WHEN - - CAST( - SUM( 15 ) AS SIGNED ) * + 13 * 19 / - 86 + - 47 THEN + - 36 WHEN + - 89 * - 53 THEN NULL ELSE 36 * - 47 END * - 6
----
883264

skipif mysql # not compatible
query I rowsort label-1698
SELECT 40 + 87 * CASE 92 WHEN - - CAST ( - SUM ( 15 ) AS INTEGER ) * + 13 * 19 / - 86 + - 47 THEN + - 36 WHEN + - 89 * - 53 THEN NULL ELSE 36 * - 47 END * - 6
----
883264

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT 55 + - NULLIF ( + 43, - - 41 * ( - + MAX( 95 ) ) )
----
12

skipif mysql # not compatible
query I rowsort label-1699
SELECT 55 + - NULLIF ( + 43, - - 41 * ( - + MAX ( 95 ) ) )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT 29 * + COUNT( DISTINCT - 10 )
----
29

skipif mysql # not compatible
query I rowsort label-1700
SELECT 29 * + COUNT ( DISTINCT - 10 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1701
SELECT - 78 + + + COUNT( * ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1701
SELECT - 78 + + + COUNT ( * ) + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1702
SELECT DISTINCT + ( + - ( - SUM( - NULLIF ( - COALESCE ( - 59, CAST( NULL AS SIGNED ), + + 55 ), + 99 + 92 * - - 65 + CAST( 93 AS SIGNED ) ) ) ) ) + 0
----
-59

skipif mysql # not compatible
query I rowsort label-1702
SELECT DISTINCT + ( + - ( - SUM ( - NULLIF ( - COALESCE ( - 59, CAST ( NULL AS INTEGER ), + + 55 ), + 99 + 92 * - - 65 + CAST ( 93 AS INTEGER ) ) ) ) ) + 0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT ALL + COUNT( 60 ) + 57
----
58

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL + COUNT ( 60 ) + 57
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1704
SELECT DISTINCT - - 19 DIV + 9 + - 84
----
-82

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT - - 19 / + 9 + - 84
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-1705
SELECT 37 DIV + 94 col0
----
0

skipif mysql # not compatible
query I rowsort label-1705
SELECT 37 / + 94 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT ALL - 65 + - - COUNT( * ) * - - 51 * - + 53 - - 41
----
-2727

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL - 65 + - - COUNT ( * ) * - - 51 * - + 53 - - 41
----
-2727

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1707
SELECT SUM( DISTINCT + + 49 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1707
SELECT SUM ( DISTINCT + + 49 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1708
SELECT ALL - 54 DIV - NULLIF ( + 77, - - 43 ) col2, + 66
----
0
66

skipif mysql # not compatible
query II rowsort label-1708
SELECT ALL - 54 / - NULLIF ( + 77, - - 43 ) col2, + 66
----
0
66

query I rowsort
SELECT ALL - 4 + - 80 - + 92 AS col1
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT 6 + + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-1710
SELECT 6 + + COUNT ( * )
----
7

query I rowsort
SELECT ALL COALESCE ( + 44, + 53 ) AS col0
----
44

query II rowsort
SELECT DISTINCT - + 64 - - 60, 35 col0
----
-4
35

query I rowsort
SELECT DISTINCT 9 - + + 14 AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1714
SELECT - - 58 * + - 84 * - ( - + 63 ) * COUNT( + 74 ) + NULLIF ( + CASE - 57 WHEN - 60 + + - 98 THEN NULL WHEN - 33 THEN + - CAST( 82 AS SIGNED ) + 58 ELSE + 16 * + COUNT( * ) END, - 86 )
----
-306920

skipif mysql # not compatible
query I rowsort label-1714
SELECT - - 58 * + - 84 * - ( - + 63 ) * COUNT ( + 74 ) + NULLIF ( + CASE - 57 WHEN - 60 + + - 98 THEN NULL WHEN - 33 THEN + - CAST ( 82 AS INTEGER ) + 58 ELSE + 16 * + COUNT ( * ) END, - 86 )
----
-306920

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT SUM( + 88 )
----
88

skipif mysql # not compatible
query I rowsort label-1715
SELECT SUM ( + 88 )
----
88

query II rowsort
SELECT 55 AS col1, 27 * 4
----
55
108

query I rowsort
SELECT - 35 + 13 AS col2
----
-22

query I rowsort
SELECT + 59 + - + 84 col0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-1719
SELECT DISTINCT 65 DIV 63 DIV - 47 col2
----
0

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT 65 / 63 / - 47 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT + COUNT( * ) + + 31 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1720
SELECT + COUNT ( * ) + + 31 AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1721
SELECT - 5 DIV - - ( + 62 ) * - 1 + + - 20
----
-20

skipif mysql # not compatible
query I rowsort label-1721
SELECT - 5 / - - ( + 62 ) * - 1 + + - 20
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT ALL COUNT( * ) * 45 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL COUNT ( * ) * 45 AS col2
----
45

query I rowsort
SELECT + 23 * + 25 AS col1
----
575

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT + 58 - + - COUNT( * ) col1
----
59

skipif mysql # not compatible
query I rowsort label-1724
SELECT + 58 - + - COUNT ( * ) col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT ALL MAX( DISTINCT + - 72 ) * + - 8 + 89 AS col1
----
665

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL MAX ( DISTINCT + - 72 ) * + - 8 + 89 AS col1
----
665

query I rowsort
SELECT DISTINCT ( - - 21 ) * + + 9 * + 80 AS col1
----
15120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1727
SELECT DISTINCT 4 / - + CAST( NULL AS SIGNED ) * MIN( DISTINCT + + 66 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT 4 / - + CAST ( NULL AS INTEGER ) * MIN ( DISTINCT + + 66 ) AS col1
----
NULL

query I rowsort
SELECT ( 71 ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT + COALESCE ( 61, + 88, - MIN( ALL 73 ) )
----
61

skipif mysql # not compatible
query I rowsort label-1729
SELECT + COALESCE ( 61, + 88, - MIN ( ALL 73 ) )
----
61

query I rowsort
SELECT - 21 * - 46 AS col0
----
966

query I rowsort
SELECT ALL - 71 * - 83 + + 79
----
5972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1732
SELECT ALL - - 76 * + + CAST( NULL AS SIGNED ) * - + ( 16 ) + + + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL - - 76 * + + CAST ( NULL AS INTEGER ) * - + ( 16 ) + + + 41
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1733
SELECT + - 80 * - - COUNT( * ) DIV 95 * + 97 - + + 21
----
-21

skipif mysql # not compatible
query I rowsort label-1733
SELECT + - 80 * - - COUNT ( * ) / 95 * + 97 - + + 21
----
-21

query I rowsort
SELECT DISTINCT 8 * - - 74 + + + 12 + + - 14 AS col0
----
590

query II rowsort
SELECT + + 36 AS col0, + 90 * - 54
----
36
-4860

query II rowsort
SELECT - 10 AS col2, - 84
----
-10
-84

query I rowsort
SELECT + 96 + + - 73 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT ALL - 56 * + 96 * + 95 + - + 46 - 5 + COUNT( DISTINCT - 68 ) col1
----
-510770

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL - 56 * + 96 * + 95 + - + 46 - 5 + COUNT ( DISTINCT - 68 ) col1
----
-510770

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1739
SELECT + NULLIF ( + 67, - 7 + + - 27 + - 58 ) AS col0, + ( + 69 ) DIV + COUNT( * ) AS col0
----
67
69

skipif mysql # not compatible
query II rowsort label-1739
SELECT + NULLIF ( + 67, - 7 + + - 27 + - 58 ) AS col0, + ( + 69 ) / + COUNT ( * ) AS col0
----
67
69

query II rowsort
SELECT 70 * + 90 + - + 87 * 10 * 87 AS col1, 21 * - + 27 + - 22 + + 36 col1
----
-69390
-553

query II rowsort
SELECT - - 78 + - + 75 * 72, 55 AS col0
----
-5322
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT - + COUNT( * ) + + + 32 * - 46 - COUNT( * ) * + 22 * - 72 * + ( - 31 ) AS col2
----
-50577

skipif mysql # not compatible
query I rowsort label-1742
SELECT - + COUNT ( * ) + + + 32 * - 46 - COUNT ( * ) * + 22 * - 72 * + ( - 31 ) AS col2
----
-50577

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT - 68 * + - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-1743
SELECT - 68 * + - COUNT ( * )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-1744
SELECT - 81 * - 11 - COALESCE ( + - 30, - COUNT( * ) ), 33 AS col1
----
921
33

skipif mysql # not compatible
query II rowsort label-1744
SELECT - 81 * - 11 - COALESCE ( + - 30, - COUNT ( * ) ), 33 AS col1
----
921
33

query I rowsort
SELECT ALL + + 99 * 40 * 4
----
15840

onlyif mysql # aggregate syntax: 
query II rowsort label-1746
SELECT + COUNT( * ) + - - 10 * - 66 AS col0, 71 AS col2
----
-659
71

skipif mysql # not compatible
query II rowsort label-1746
SELECT + COUNT ( * ) + - - 10 * - 66 AS col0, 71 AS col2
----
-659
71

query II rowsort
SELECT - 19 AS col0, - 4
----
-19
-4

query I rowsort
SELECT - 18 + - 32
----
-50

query I rowsort
SELECT - 29 * + ( - + 90 )
----
2610

query I rowsort
SELECT - 35 * + - NULLIF ( ( - 12 ), - 17 )
----
-420

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1751
SELECT - MAX( - - 66 ) + + CAST( NULL AS DECIMAL ) + + + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT - MAX ( - - 66 ) + + CAST ( NULL AS REAL ) + + + 75 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1752
SELECT ALL CAST( NULL AS DECIMAL ), 49 AS col0
----
NULL
49

skipif mysql # not compatible
query II rowsort label-1752
SELECT ALL CAST ( NULL AS REAL ), 49 AS col0
----
NULL
49

query I rowsort
SELECT - 82 + - 95 * + 13
----
-1317

query I rowsort
SELECT ALL + ( + 80 ) + + 96
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1755
SELECT + 69 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1755
SELECT + 69 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1756
SELECT - COALESCE ( CAST( NULL AS SIGNED ), + + 76 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-1756
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), + + 76 ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-1757
SELECT + COUNT( * ) + + 50 AS col2, 52 AS col2
----
51
52

skipif mysql # not compatible
query II rowsort label-1757
SELECT + COUNT ( * ) + + 50 AS col2, 52 AS col2
----
51
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT ALL 10 * - CASE - 52 WHEN + 63 + - 18 + 33 THEN - + ( COUNT( * ) ) WHEN - 55 THEN + 27 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL 10 * - CASE - 52 WHEN + 63 + - 18 + 33 THEN - + ( COUNT ( * ) ) WHEN - 55 THEN + 27 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1759
SELECT + COUNT( * ) DIV - 24 AS col2, 28 AS col0
----
0
28

skipif mysql # not compatible
query II rowsort label-1759
SELECT + COUNT ( * ) / - 24 AS col2, 28 AS col0
----
0
28

onlyif mysql # aggregate syntax: 
query II rowsort label-1760
SELECT + COUNT( * ), - 17 + - 89 AS col2
----
1
-106

skipif mysql # not compatible
query II rowsort label-1760
SELECT + COUNT ( * ), - 17 + - 89 AS col2
----
1
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-1761
SELECT ALL - 27 DIV - 32 + - 85
----
-85

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL - 27 / - 32 + - 85
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1762
SELECT ALL CASE - CAST( + - 45 AS SIGNED ) WHEN 64 * - 93 * - NULLIF ( - - ( + 49 ), - 8 * + ( COUNT( * ) ) + - 52 ) THEN - COUNT( DISTINCT - + 44 ) WHEN 13 THEN - + MAX( 16 ) WHEN 75 * + 55 THEN 14 * COUNT( * ) ELSE NULL END / + 98 + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL CASE - CAST ( + - 45 AS INTEGER ) WHEN 64 * - 93 * - NULLIF ( - - ( + 49 ), - 8 * + ( COUNT ( * ) ) + - 52 ) THEN - COUNT ( DISTINCT - + 44 ) WHEN 13 THEN - + MAX ( 16 ) WHEN 75 * + 55 THEN 14 * COUNT ( * ) ELSE NULL END / + 98 + 68 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 87 * - - 27
----
2349

query I rowsort
SELECT ALL - 29 * 66
----
-1914

query I rowsort
SELECT + 36 + + - 33 + - 27 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT + + 57 * COUNT( * ) col2
----
57

skipif mysql # not compatible
query I rowsort label-1766
SELECT + + 57 * COUNT ( * ) col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1767
SELECT - CASE + 32 WHEN + CAST( NULL AS SIGNED ) THEN - ( + 44 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1767
SELECT - CASE + 32 WHEN + CAST ( NULL AS INTEGER ) THEN - ( + 44 ) END
----
NULL

query II rowsort
SELECT ALL - + 60, - 59 AS col1
----
-60
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1769
SELECT + - CAST( - 67 AS SIGNED ), 95 * - + 80 AS col1
----
67
-7600

skipif mysql # not compatible
query II rowsort label-1769
SELECT + - CAST ( - 67 AS INTEGER ), 95 * - + 80 AS col1
----
67
-7600

query I rowsort
SELECT ALL 99 - + + 55 AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1771
SELECT DISTINCT - - 8 AS col0, 2 * - CAST( NULL AS SIGNED ) col0
----
8
NULL

skipif mysql # not compatible
query II rowsort label-1771
SELECT DISTINCT - - 8 AS col0, 2 * - CAST ( NULL AS INTEGER ) col0
----
8
NULL

query I rowsort
SELECT COALESCE ( - 10, + 98 * + 68 * + 5 * + 86 )
----
-10

query I rowsort
SELECT - 66 * 64 AS col2
----
-4224

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT DISTINCT + COUNT( * ) * - + 86
----
-86

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT + COUNT ( * ) * - + 86
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT - + ( - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1775
SELECT - + ( - COUNT ( * ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1776
SELECT NULLIF ( - 90, + 85 * 68 ) DIV - - 21
----
-4

skipif mysql # not compatible
query I rowsort label-1776
SELECT NULLIF ( - 90, + 85 * 68 ) / - - 21
----
-4

query II rowsort
SELECT 14 - + 54 AS col2, + 94
----
-40
94

query I rowsort
SELECT ALL + ( 28 ) + + + 4 AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1779
SELECT 30 DIV - 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1779
SELECT 30 / - 81 AS col1
----
0

query I rowsort
SELECT DISTINCT NULLIF ( 28, - + 45 + + 43 ) + 14
----
42

query I rowsort
SELECT DISTINCT + 70 + 46 AS col0
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1782
SELECT CAST( NULL AS SIGNED ) / + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-1782
SELECT CAST ( NULL AS INTEGER ) / + + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT COUNT( * ) + + 55
----
56

skipif mysql # not compatible
query I rowsort label-1783
SELECT COUNT ( * ) + + 55
----
56

query I rowsort
SELECT DISTINCT - 7 * ( - 42 ) * - 99 AS col1
----
-29106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1785
SELECT ALL CASE CAST( + 93 AS SIGNED ) WHEN 52 THEN + 92 + 60 + - 74 / + 63 * 8 WHEN - 72 THEN + 64 + - 76 ELSE NULL END * - SUM( ALL - + 54 ) - 15 * 92 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL CASE CAST ( + 93 AS INTEGER ) WHEN 52 THEN + 92 + 60 + - 74 / + 63 * 8 WHEN - 72 THEN + 64 + - 76 ELSE NULL END * - SUM ( ALL - + 54 ) - 15 * 92 + + COUNT ( * )
----
NULL

query I rowsort
SELECT 55 * - 6 * 66
----
-21780

query I rowsort
SELECT ALL - 53 + 62 AS col0
----
9

query I rowsort
SELECT ALL - ( - - 43 ) AS col1
----
-43

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1789
SELECT ALL - + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL - + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT - 0 - - 14 col0
----
14

query I rowsort
SELECT + ( - + 42 )
----
-42

query I rowsort
SELECT DISTINCT - + 62 - - - 2 * - 45 AS col1
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1793
SELECT ALL + NULLIF ( + - 75, + + 38 + + - 80 ) DIV + + 88
----
0

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL + NULLIF ( + - 75, + + 38 + + - 80 ) / + + 88
----
0

query I rowsort
SELECT DISTINCT + - 57 * 56
----
-3192

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT ALL - - MIN( ALL + 85 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL - - MIN ( ALL + 85 ) AS col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1796
SELECT - 41 * - 26 + + 61 + + 87 + + 74 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1796
SELECT - 41 * - 26 + + 61 + + 87 + + 74 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT ALL + 82 * + 2 * - - MAX( ALL - 58 ) AS col0
----
-9512

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL + 82 * + 2 * - - MAX ( ALL - 58 ) AS col0
----
-9512

query I rowsort
SELECT DISTINCT - + 44 * - 38 + + - 87 - + - 15 AS col2
----
1600

query I rowsort
SELECT + 63 - + - COALESCE ( + - 55, + - 66 * + - ( - ( + + 45 ) ) + + - 7 * - 38 ) col0
----
8

query I rowsort
SELECT ALL - + 33 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT 1 * 34 * + NULLIF ( - + 62, 63 ) * + + COUNT( * ) * - + 35 - + - 42 * + 29 AS col0
----
74998

skipif mysql # not compatible
query I rowsort label-1801
SELECT 1 * 34 * + NULLIF ( - + 62, 63 ) * + + COUNT ( * ) * - + 35 - + - 42 * + 29 AS col0
----
74998

query I rowsort
SELECT + 90 * + 67
----
6030

onlyif mysql # DIV for integer division: 
query I rowsort label-1803
SELECT ALL 60 + + 61 + - ( - 81 ) DIV 77 + - 30 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL 60 + + 61 + - ( - 81 ) / 77 + - 30 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT + MIN( + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-1804
SELECT + MIN ( + 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT ALL - COUNT( * ) + - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL - COUNT ( * ) + - COUNT ( * ) AS col0
----
-2

query I rowsort
SELECT 24 + 44 + + 80 + + - 53 col1
----
95

query I rowsort
SELECT 43 + 69
----
112

query I rowsort
SELECT ALL 41 + + 50
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT DISTINCT ( 39 ) + - - 80 + - 22 * 4 + COUNT( * ) - + 44 * + CASE + COUNT( * ) WHEN - SUM( + - 56 ) + CASE 57 WHEN - 37 * + 83 + + COUNT( DISTINCT 61 ) THEN - ( 23 ) ELSE NULL END + CASE MIN( ( - 22 ) ) WHEN - COUNT( * ) THEN NULL WHEN - SUM( - 32 ) THEN + 73 END * - 76 THEN 38 - 72 WHEN + 77 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT DISTINCT ( 39 ) + - - 80 + - 22 * 4 + COUNT ( * ) - + 44 * + CASE + COUNT ( * ) WHEN - SUM ( + - 56 ) + CASE 57 WHEN - 37 * + 83 + + COUNT ( DISTINCT 61 ) THEN - ( 23 ) ELSE NULL END + CASE MIN ( ( - 22 ) ) WHEN - COUNT ( * ) THEN NULL WHEN - SUM ( - 32 ) THEN + 73 END * - 76 THEN 38 - 72 WHEN + 77 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1810
SELECT ALL CAST( NULL AS DECIMAL ) * + - 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL CAST ( NULL AS REAL ) * + - 5 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 37 AS col1, + 97 + + + 90 + ( 93 )
----
37
280

query I rowsort
SELECT 68 + - 61 AS col2
----
7

query I rowsort
SELECT 78 + + 46
----
124

query I rowsort
SELECT ALL 87 + - - 71 + + 13
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1815
SELECT CAST( NULL AS SIGNED ) * - 15 * 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1815
SELECT CAST ( NULL AS INTEGER ) * - 15 * 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT - MIN( - 44 )
----
44

skipif mysql # not compatible
query I rowsort label-1816
SELECT - MIN ( - 44 )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-1817
SELECT 95 col1, CASE - + 98 WHEN - 30 + + + 15 THEN + COUNT( * ) END AS col1
----
95
NULL

skipif mysql # not compatible
query II rowsort label-1817
SELECT 95 col1, CASE - + 98 WHEN - 30 + + + 15 THEN + COUNT ( * ) END AS col1
----
95
NULL

query I rowsort
SELECT 68 + - 64 - + 3 AS col2
----
1

query I rowsort
SELECT ALL 51 - + 15
----
36

query I rowsort
SELECT 74 * + - 28 AS col0
----
-2072

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT ALL - COUNT( * ) * + 27
----
-27

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL - COUNT ( * ) * + 27
----
-27

query I rowsort
SELECT 88 - - 32 AS col2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-1823
SELECT + 22 DIV 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1823
SELECT + 22 / 45 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT - CASE - COUNT( * ) WHEN + ( + + 68 ) / - 94 - + 41 * 29 THEN + - 3 + + + 36 + - 56 * + ( - AVG ( DISTINCT + 5 ) ) END * 14 + - + 96 * 63 / - - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT - CASE - COUNT ( * ) WHEN + ( + + 68 ) / - 94 - + 41 * 29 THEN + - 3 + + + 36 + - 56 * + ( - AVG ( DISTINCT + 5 ) ) END * 14 + - + 96 * 63 / - - 45
----
NULL

query I rowsort
SELECT ALL + 46 * - 22
----
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT + + 29 * - 80 + COUNT( * ) + 97 AS col0
----
-2222

skipif mysql # not compatible
query I rowsort label-1826
SELECT + + 29 * - 80 + COUNT ( * ) + 97 AS col0
----
-2222

query I rowsort
SELECT + + 83 col2
----
83

query I rowsort
SELECT DISTINCT + 19 * 53 * + + 73 * - 25
----
-1837775

onlyif mysql # aggregate syntax: 
query II rowsort label-1829
SELECT - - 91 + ( ( - 8 ) ) + - CASE 14 WHEN + COUNT( * ) THEN 49 * 57 + + 85 END * - - COUNT( * ) AS col2, + 84
----
NULL
84

skipif mysql # not compatible
query II rowsort label-1829
SELECT - - 91 + ( ( - 8 ) ) + - CASE 14 WHEN + COUNT ( * ) THEN 49 * 57 + + 85 END * - - COUNT ( * ) AS col2, + 84
----
NULL
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1830
SELECT ALL + 85 * + - 1 * - - CAST( - 55 AS SIGNED ) + - 84
----
4591

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL + 85 * + - 1 * - - CAST ( - 55 AS INTEGER ) + - 84
----
4591

query I rowsort
SELECT DISTINCT + - 4 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT - - 28 * + ( 85 ) + + 5 + + - 29 * COUNT( * ) col0
----
2356

skipif mysql # not compatible
query I rowsort label-1832
SELECT - - 28 * + ( 85 ) + + 5 + + - 29 * COUNT ( * ) col0
----
2356

onlyif mysql # DIV for integer division: 
query II rowsort label-1833
SELECT - 8 col2, ( 76 ) DIV + + 89 * + 41 + 41
----
-8
41

skipif mysql # not compatible
query II rowsort label-1833
SELECT - 8 col2, ( 76 ) / + + 89 * + 41 + 41
----
-8
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT - MAX( DISTINCT + 65 ) * - 35 * + MAX( - 79 ) * 54 + - MIN( + 5 ) + 54 + 88
----
-9705013

skipif mysql # not compatible
query I rowsort label-1834
SELECT - MAX ( DISTINCT + 65 ) * - 35 * + MAX ( - 79 ) * 54 + - MIN ( + 5 ) + 54 + 88
----
-9705013

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1835
SELECT - 5 DIV + + 45 * + 44 + COUNT( * ) + - 56 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-1835
SELECT - 5 / + + 45 * + 44 + COUNT ( * ) + - 56 AS col2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1836
SELECT ALL - CASE - 37 WHEN + 78 * - CAST( + ( + COUNT( * ) ) AS SIGNED ) THEN ( 53 ) ELSE NULL END * 70 + - 53 + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL - CASE - 37 WHEN + 78 * - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) THEN ( 53 ) ELSE NULL END * 70 + - 53 + 92
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1837
SELECT 46 AS col1, CAST( NULL AS SIGNED ) + 93 * - + COUNT( * )
----
46
NULL

skipif mysql # not compatible
query II rowsort label-1837
SELECT 46 AS col1, CAST ( NULL AS INTEGER ) + 93 * - + COUNT ( * )
----
46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT DISTINCT - - 14 * - 28 + MAX( ALL - ( - 89 ) ) + + ( + 30 ) AS col2
----
-273

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT - - 14 * - 28 + MAX ( ALL - ( - 89 ) ) + + ( + 30 ) AS col2
----
-273

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1839
SELECT - 59 DIV CAST( - + CAST( - 99 AS SIGNED ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1839
SELECT - 59 / CAST ( - + CAST ( - 99 AS INTEGER ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT SUM( - + 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-1840
SELECT SUM ( - + 36 )
----
-36

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1841
SELECT ALL + NULLIF ( + 22, + 20 - - 39 + CAST( NULL AS SIGNED ) ) * - 92 * + 91 * + 81 + + 99 DIV - + 67
----
-14918905

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL + NULLIF ( + 22, + 20 - - 39 + CAST ( NULL AS INTEGER ) ) * - 92 * + 91 * + 81 + + 99 / - + 67
----
-14918905

onlyif mysql # DIV for integer division: 
query I rowsort label-1842
SELECT - 23 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-1842
SELECT - 23 / - 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT + 29 * - COUNT( * ) * + 54
----
-1566

skipif mysql # not compatible
query I rowsort label-1843
SELECT + 29 * - COUNT ( * ) * + 54
----
-1566

query I rowsort
SELECT DISTINCT 52 + + - 52
----
0

query I rowsort
SELECT ALL 87 - 67
----
20

query I rowsort
SELECT + 93 - + 90 * + 48 AS col2
----
-4227

query I rowsort
SELECT ALL ( - + 40 )
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1848
SELECT DISTINCT - 53 - + 94 DIV 68 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT - 53 - + 94 / 68 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL 81 * + - COUNT( * ) col1
----
-81

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL 81 * + - COUNT ( * ) col1
----
-81

query I rowsort
SELECT ALL ( COALESCE ( - 80, 15 ) )
----
-80

query I rowsort
SELECT ALL 51 - + ( 19 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT ALL MIN( DISTINCT + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL MIN ( DISTINCT + 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT ALL 33 - COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL 33 - COUNT ( * ) AS col0
----
32

query I rowsort
SELECT ALL 45 * - 77 AS col2
----
-3465

query I rowsort
SELECT + 56 + 68 * - 80
----
-5384

query I rowsort
SELECT ALL NULLIF ( - 64, + 58 + AVG ( DISTINCT + 53 ) ) AS col0
----
-64

query I rowsort
SELECT + 60 * - 93 * 31
----
-172980

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT - + 81 * COUNT( + 44 ) + COUNT( * ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-1858
SELECT - + 81 * COUNT ( + 44 ) + COUNT ( * ) AS col0
----
-80

query I rowsort
SELECT - ( - + 94 ) AS col0
----
94

query I rowsort
SELECT DISTINCT 47 * + ( - + 91 ) AS col2
----
-4277

onlyif mysql # DIV for integer division: 
query I rowsort label-1861
SELECT ALL - + 32 DIV 50 + + 2
----
2

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL - + 32 / 50 + + 2
----
2

query I rowsort
SELECT + + 20 * + 3
----
60

query I rowsort
SELECT ALL COALESCE ( - 4, + 75 ) col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1864
SELECT ALL + 39 DIV 66 + + ( - 82 ) col1
----
-82

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL + 39 / 66 + + ( - 82 ) col1
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-1865
SELECT ALL 92 DIV - + 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL 92 / - + 93 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT + 62 * - + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-1866
SELECT + 62 * - + COUNT ( * )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1867
SELECT + COUNT( 69 ) * + - 94 - 3 + ( - + 70 ) * COUNT( * ) / + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1867
SELECT + COUNT ( 69 ) * + - 94 - 3 + ( - + 70 ) * COUNT ( * ) / + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1868
SELECT - 59 DIV + 28
----
-2

skipif mysql # not compatible
query I rowsort label-1868
SELECT - 59 / + 28
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1869
SELECT ALL + - COUNT( - 17 ) * - 96 + NULLIF ( - 56, - + 38 + 2 + - COUNT( * ) / + 65 * 77 ) + - 68 + - + COALESCE ( - 6, - CAST( NULL AS SIGNED ) ) * - 27 * + 23 * + 29 + + CASE + + COUNT( * ) WHEN + 49 / - 37 + + ( 37 ) * + 27 THEN 44 WHEN + 74 / + 9 THEN NULL ELSE + ( - COALESCE ( NULLIF ( 23, - 87 ), 76 ) ) END + 60 * 25
----
-106605

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL + - COUNT ( - 17 ) * - 96 + NULLIF ( - 56, - + 38 + 2 + - COUNT ( * ) / + 65 * 77 ) + - 68 + - + COALESCE ( - 6, - CAST ( NULL AS INTEGER ) ) * - 27 * + 23 * + 29 + + CASE + + COUNT ( * ) WHEN + 49 / - 37 + + ( 37 ) * + 27 THEN 44 WHEN + 74 / + 9 THEN NULL ELSE + ( - COALESCE ( NULLIF ( 23, - 87 ), 76 ) ) END + 60 * 25
----
-106605

onlyif mysql # aggregate syntax: 
query II rowsort label-1870
SELECT DISTINCT - + 85 * + COUNT( * ), COUNT( * ) * - 58 AS col2
----
-85
-58

skipif mysql # not compatible
query II rowsort label-1870
SELECT DISTINCT - + 85 * + COUNT ( * ), COUNT ( * ) * - 58 AS col2
----
-85
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT DISTINCT + COUNT( ALL + 75 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1871
SELECT DISTINCT + COUNT ( ALL + 75 ) AS col0
----
1

query I rowsort
SELECT 29 * 28 - + + 70 * - 22 * - 9 AS col2
----
-13048

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT + 23 + - 55 - + - COUNT( * ) - + - ( - 85 )
----
-116

skipif mysql # not compatible
query I rowsort label-1873
SELECT + 23 + - 55 - + - COUNT ( * ) - + - ( - 85 )
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1874
SELECT - COUNT( * ) - - - ( - 30 ) + + CAST( + + 83 AS SIGNED ) AS col1
----
112

skipif mysql # not compatible
query I rowsort label-1874
SELECT - COUNT ( * ) - - - ( - 30 ) + + CAST ( + + 83 AS INTEGER ) AS col1
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-1875
SELECT COALESCE ( 10, + MAX( DISTINCT - 21 ), + 74 ) AS col2, - MIN( ALL + 70 )
----
10
-70

skipif mysql # not compatible
query II rowsort label-1875
SELECT COALESCE ( 10, + MAX ( DISTINCT - 21 ), + 74 ) AS col2, - MIN ( ALL + 70 )
----
10
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT COUNT( * ) * + COALESCE ( + 66, CASE - 59 WHEN + + 78 * - 42 THEN + - COUNT( * ) END ) + 7 + - COUNT( * ) + + 42
----
114

skipif mysql # not compatible
query I rowsort label-1876
SELECT COUNT ( * ) * + COALESCE ( + 66, CASE - 59 WHEN + + 78 * - 42 THEN + - COUNT ( * ) END ) + 7 + - COUNT ( * ) + + 42
----
114

query I rowsort
SELECT - 17 * + 71
----
-1207

query I rowsort
SELECT DISTINCT ( - - 87 )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1879
SELECT ALL + ( - 58 ) * - 28 + + + 65 - + 27 + MIN( DISTINCT + + 19 ) * + 70 / + CAST( NULL AS SIGNED ) * - - ( + 93 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL + ( - 58 ) * - 28 + + + 65 - + 27 + MIN ( DISTINCT + + 19 ) * + 70 / + CAST ( NULL AS INTEGER ) * - - ( + 93 ) AS col1
----
NULL

query I rowsort
SELECT - 87 * - - 62 AS col2
----
-5394

query I rowsort
SELECT - ( + - ( ( + 20 ) ) ) + - 16
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT DISTINCT - 48 * - SUM( - 36 )
----
-1728

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT - 48 * - SUM ( - 36 )
----
-1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1883
SELECT + COUNT( * ) DIV - MIN( + - 58 ) * 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1883
SELECT + COUNT ( * ) / - MIN ( + - 58 ) * 65 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1884
SELECT ALL + 30 * + NULLIF ( + - 60, - AVG ( - ( 3 ) ) - - + 30 * + 90 ) * - + CAST( + - 59 AS SIGNED ) AS col0
----
-106200

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL + 30 * + NULLIF ( + - 60, - AVG ( - ( 3 ) ) - - + 30 * + 90 ) * - + CAST ( + - 59 AS INTEGER ) AS col0
----
-106200

query I rowsort
SELECT - 51 * + - 93 AS col2
----
4743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1886
SELECT COUNT( * ) + - - CAST( NULL AS SIGNED ) * - + 0 * 55 + + - 84 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1886
SELECT COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * - + 0 * 55 + + - 84 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1887
SELECT 74 DIV 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1887
SELECT 74 / 92 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1888
SELECT - CASE - - 54 WHEN + 25 THEN 58 END + 57 - - 3 + 44 - 1 - NULLIF ( - + 99, ( - 80 ) + - 17 ) - + 74 * 76 / AVG ( DISTINCT 45 ) + - COALESCE ( - + 19, + + CAST( NULL AS DECIMAL ) * 67 + - CAST( 76 AS SIGNED ) ) / 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1888
SELECT - CASE - - 54 WHEN + 25 THEN 58 END + 57 - - 3 + 44 - 1 - NULLIF ( - + 99, ( - 80 ) + - 17 ) - + 74 * 76 / AVG ( DISTINCT 45 ) + - COALESCE ( - + 19, + + CAST ( NULL AS REAL ) * 67 + - CAST ( 76 AS INTEGER ) ) / 72
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1889
SELECT + COUNT( * ) AS col0, - 11 + - + 92 * - + 96 AS col2
----
1
8821

skipif mysql # not compatible
query II rowsort label-1889
SELECT + COUNT ( * ) AS col0, - 11 + - + 92 * - + 96 AS col2
----
1
8821

query I rowsort
SELECT DISTINCT + 96 + + - 66 + + - 81 + + 12
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT ALL MIN( DISTINCT - 92 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL MIN ( DISTINCT - 92 ) AS col2
----
-92

query I rowsort
SELECT DISTINCT + ( - 69 ) AS col2
----
-69

query I rowsort
SELECT 45 - - 27
----
72

query II rowsort
SELECT - 47 AS col0, - 6 AS col0
----
-47
-6

query II rowsort
SELECT ALL 59, - CASE - 55 WHEN + + 65 THEN NULL WHEN - 14 THEN NULL WHEN - + 71 THEN NULL ELSE - 19 + + ( 88 ) END AS col2
----
59
-69

query I rowsort
SELECT 66 * + 15 AS col0
----
990

query I rowsort
SELECT ( - NULLIF ( + + 19, - + 27 ) ) col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1898
SELECT - + 91 * ( - CAST( + 43 AS SIGNED ) ) + + 4 * 20 AS col1
----
3993

skipif mysql # not compatible
query I rowsort label-1898
SELECT - + 91 * ( - CAST ( + 43 AS INTEGER ) ) + + 4 * 20 AS col1
----
3993

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT DISTINCT - COALESCE ( - + 34, + COUNT( * ) * + 3, - COUNT( + + 41 ) * 60 + 48 - 53 ) + - 2 + 21 col0
----
53

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT - COALESCE ( - + 34, + COUNT ( * ) * + 3, - COUNT ( + + 41 ) * 60 + 48 - 53 ) + - 2 + 21 col0
----
53

query I rowsort
SELECT ALL ( - + 49 ) + - + 64 + + 94
----
-19

query I rowsort
SELECT - 10 + - 70 AS col1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1902
SELECT ALL - AVG ( DISTINCT + - 20 ) + - 9 + + - CAST( NULL AS DECIMAL ) + 65 * + 37 * - 38 + - COUNT( * ) * ( + + 48 ) AS col1, 49 AS col0
----
NULL
49

skipif mysql # not compatible
query II rowsort label-1902
SELECT ALL - AVG ( DISTINCT + - 20 ) + - 9 + + - CAST ( NULL AS REAL ) + 65 * + 37 * - 38 + - COUNT ( * ) * ( + + 48 ) AS col1, 49 AS col0
----
NULL
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT DISTINCT - COUNT( DISTINCT + 68 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1903
SELECT DISTINCT - COUNT ( DISTINCT + 68 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT ALL - - CASE 31 WHEN + 56 THEN + + 80 ELSE + 85 * - COUNT( * ) + - - 98 * + - 6 - - 63 END AS col1
----
-610

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL - - CASE 31 WHEN + 56 THEN + + 80 ELSE + 85 * - COUNT ( * ) + - - 98 * + - 6 - - 63 END AS col1
----
-610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1905
SELECT COUNT( * ) DIV + MAX( ALL - 81 ) * + 93 + 71
----
71

skipif mysql # not compatible
query I rowsort label-1905
SELECT COUNT ( * ) / + MAX ( ALL - 81 ) * + 93 + 71
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-1906
SELECT ALL 35 - + 61 DIV - 10 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL 35 - + 61 / - 10 AS col2
----
41

onlyif mysql # DIV for integer division: 
query II rowsort label-1907
SELECT + 17, 57 DIV - 66 col0
----
17
0

skipif mysql # not compatible
query II rowsort label-1907
SELECT + 17, 57 / - 66 col0
----
17
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1908
SELECT 76 AS col0, - COUNT( * ) * + 47 AS col0
----
76
-47

skipif mysql # not compatible
query II rowsort label-1908
SELECT 76 AS col0, - COUNT ( * ) * + 47 AS col0
----
76
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-1909
SELECT + 68 DIV + - 10 + - + 10 + + + NULLIF ( - 80, + 65 DIV + 51 ) + + 65 * 57
----
3609

skipif mysql # not compatible
query I rowsort label-1909
SELECT + 68 / + - 10 + - + 10 + + + NULLIF ( - 80, + 65 / + 51 ) + + 65 * 57
----
3609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1910
SELECT ( - ( - 10 ) ) DIV - COUNT( * ) AS col1, - CAST( 57 AS SIGNED ) * - COUNT( - + 99 ) + - COUNT( * ) AS col2
----
-10
56

skipif mysql # not compatible
query II rowsort label-1910
SELECT ( - ( - 10 ) ) / - COUNT ( * ) AS col1, - CAST ( 57 AS INTEGER ) * - COUNT ( - + 99 ) + - COUNT ( * ) AS col2
----
-10
56

query I rowsort
SELECT 75 * - 43
----
-3225

query I rowsort
SELECT 78 + - + 17 AS col0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1913
SELECT DISTINCT ( + COALESCE ( + 27, - + 56 ) ) DIV - - 29
----
0

skipif mysql # not compatible
query I rowsort label-1913
SELECT DISTINCT ( + COALESCE ( + 27, - + 56 ) ) / - - 29
----
0

query I rowsort
SELECT ALL - 61 * 88
----
-5368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1915
SELECT ALL - COALESCE ( - - 41, + CAST( 27 AS SIGNED ), + 80 * - COUNT( * ) + 70 + + COUNT( * ) + + + 59 + + 39 )
----
-41

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL - COALESCE ( - - 41, + CAST ( 27 AS INTEGER ), + 80 * - COUNT ( * ) + 70 + + COUNT ( * ) + + + 59 + + 39 )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1916
SELECT ALL CAST( - - CAST( + NULLIF ( - 69, - + COALESCE ( - 77, 49 ) ) AS SIGNED ) AS SIGNED ) - + - 54
----
-15

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL CAST ( - - CAST ( + NULLIF ( - 69, - + COALESCE ( - 77, 49 ) ) AS INTEGER ) AS INTEGER ) - + - 54
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT DISTINCT COUNT( * ) * + + 88
----
88

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT COUNT ( * ) * + + 88
----
88

query I rowsort
SELECT ALL - 35 - + - 74 AS col0
----
39

query I rowsort
SELECT 74 * + - 63
----
-4662

query I rowsort
SELECT ALL 69 * + 31 AS col0
----
2139

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT ALL - NULLIF ( + 48, COUNT( * ) ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL - NULLIF ( + 48, COUNT ( * ) ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-1922
SELECT - 42 * SUM( ALL 19 ) - + + 59 * - ( - + COUNT( * ) ) AS col0, NULLIF ( - 30, - + 48 / + 47 + + 27 - 24 )
----
-857
-30

skipif mysql # not compatible
query II rowsort label-1922
SELECT - 42 * SUM ( ALL 19 ) - + + 59 * - ( - + COUNT ( * ) ) AS col0, NULLIF ( - 30, - + 48 / + 47 + + 27 - 24 )
----
-857
-30

query II rowsort
SELECT 19 AS col1, - 58 AS col1
----
19
-58

query III rowsort
SELECT + 94 AS col2, + 21 col0, 97
----
94
21
97

query II rowsort
SELECT - 46 AS col1, - 48 AS col2
----
-46
-48

query I rowsort
SELECT 0 + - + 92 + - + 49 AS col1
----
-141

query II rowsort
SELECT ALL 2, 23 + + 79 col0
----
2
102

query I rowsort
SELECT 12 * - + 78 AS col1
----
-936

query I rowsort
SELECT DISTINCT + 27 + - + 85
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-1930
SELECT ALL + 78, + 86 * - - 41 + + MAX( 72 ) AS col2
----
78
3598

skipif mysql # not compatible
query II rowsort label-1930
SELECT ALL + 78, + 86 * - - 41 + + MAX ( 72 ) AS col2
----
78
3598

onlyif mysql # DIV for integer division: 
query I rowsort label-1931
SELECT DISTINCT + + 98 DIV + 41 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT + + 98 / + 41 AS col1
----
2

query I rowsort
SELECT 81 * - 7
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT DISTINCT + NULLIF ( 19, + 29 - COUNT( * ) - + 21 )
----
19

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT + NULLIF ( 19, + 29 - COUNT ( * ) - + 21 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT ALL + + COALESCE ( + 75, 99, ( - - 43 ) + + COUNT( * ) ) + + 1
----
76

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL + + COALESCE ( + 75, 99, ( - - 43 ) + + COUNT ( * ) ) + + 1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT + COUNT( * ) + - 4 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1935
SELECT + COUNT ( * ) + - 4 AS col2
----
-3

query I rowsort
SELECT DISTINCT - 7 + 89
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT - COUNT( - 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-1937
SELECT - COUNT ( - 90 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT CAST( NULL AS SIGNED ) + + + ( ( ( 88 ) ) ) * - 32 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT CAST ( NULL AS INTEGER ) + + + ( ( ( 88 ) ) ) * - 32 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1939
SELECT ALL - CAST( + 84 AS SIGNED ) + - COUNT( 76 ) - + 93 * - 21 AS col2, - 42 AS col2
----
1868
-42

skipif mysql # not compatible
query II rowsort label-1939
SELECT ALL - CAST ( + 84 AS INTEGER ) + - COUNT ( 76 ) - + 93 * - 21 AS col2, - 42 AS col2
----
1868
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1940
SELECT DISTINCT + 15 DIV + ( MIN( + 10 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT + 15 / + ( MIN ( + 10 ) ) AS col1
----
1

query II rowsort
SELECT DISTINCT - - 43 + 43 AS col1, 14 + - ( + + 36 )
----
86
-22

query I rowsort
SELECT DISTINCT - 24 + - ( - 45 )
----
21

query I rowsort
SELECT 93 + - - 57
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-1944
SELECT MAX( ALL 60 ) * + - SUM( + 97 ) AS col0, + 11
----
-5820
11

skipif mysql # not compatible
query II rowsort label-1944
SELECT MAX ( ALL 60 ) * + - SUM ( + 97 ) AS col0, + 11
----
-5820
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT + MAX( ALL 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-1945
SELECT + MAX ( ALL 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT 66 * - ( 23 ) * + + 4 - COUNT( * ) + COUNT( * ) AS col1
----
-6072

skipif mysql # not compatible
query I rowsort label-1946
SELECT 66 * - ( 23 ) * + + 4 - COUNT ( * ) + COUNT ( * ) AS col1
----
-6072

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1947
SELECT COUNT( * ) * - - 29 AS col2, + 89 DIV + + 92 * 29 * 13 AS col1
----
29
0

skipif mysql # not compatible
query II rowsort label-1947
SELECT COUNT ( * ) * - - 29 AS col2, + 89 / + + 92 * 29 * 13 AS col1
----
29
0

query I rowsort
SELECT ALL + 66 * + 31 * - - 23
----
47058

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT 58 - + SUM( 68 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-1949
SELECT 58 - + SUM ( 68 ) AS col0
----
-10

query I rowsort
SELECT ( - 19 ) * + - 63 AS col0
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT ALL AVG ( ALL + 36 ) / + 18 * COUNT( * ) + CASE 63 WHEN - 78 / + 86 + - SUM( DISTINCT + CASE - + COALESCE ( - 39, ( + - 23 ), - 54 / - 18 * - 27 ) WHEN + 54 THEN + 79 + - 48 ELSE NULL END ) + - - CASE - - 41 WHEN 6 / + 23 THEN 36 - 19 END + - ( + 12 ) * + 9 THEN + COALESCE ( ( 66 ), 3 + 23 * - COUNT( * ), MAX( - 33 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL AVG ( ALL + 36 ) / + 18 * COUNT ( * ) + CASE 63 WHEN - 78 / + 86 + - SUM ( DISTINCT + CASE - + COALESCE ( - 39, ( + - 23 ), - 54 / - 18 * - 27 ) WHEN + 54 THEN + 79 + - 48 ELSE NULL END ) + - - CASE - - 41 WHEN 6 / + 23 THEN 36 - 19 END + - ( + 12 ) * + 9 THEN + COALESCE ( ( 66 ), 3 + 23 * - COUNT ( * ), MAX ( - 33 ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1952
SELECT ( - 2 ) DIV - 74 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1952
SELECT ( - 2 ) / - 74 * COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1953
SELECT 48 + + + 92 - CASE - CAST( NULL AS SIGNED ) WHEN - 97 * - 26 * - + COUNT( * ) THEN - AVG ( - 7 ) END / + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1953
SELECT 48 + + + 92 - CASE - CAST ( NULL AS INTEGER ) WHEN - 97 * - 26 * - + COUNT ( * ) THEN - AVG ( - 7 ) END / + 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1954
SELECT COUNT( * ) * - 77 * 24 - + 4 - COALESCE ( + + 48, 43 + - 57 DIV + 88 * + + 73 + 73, 69 * + COALESCE ( 18, - 30 DIV + - CASE - ( - + 5 ) WHEN 58 DIV + 44 THEN MAX( DISTINCT - 57 ) * + 60 END + + 22 + + 55 ), - 48 ) AS col1
----
-1900

skipif mysql # not compatible
query I rowsort label-1954
SELECT COUNT ( * ) * - 77 * 24 - + 4 - COALESCE ( + + 48, 43 + - 57 / + 88 * + + 73 + 73, 69 * + COALESCE ( 18, - 30 / + - CASE - ( - + 5 ) WHEN 58 / + 44 THEN MAX ( DISTINCT - 57 ) * + 60 END + + 22 + + 55 ), - 48 ) AS col1
----
-1900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1955
SELECT + CAST( NULL AS SIGNED ) - COUNT( 99 ) * + 38 + 36 - + - AVG ( DISTINCT + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1955
SELECT + CAST ( NULL AS INTEGER ) - COUNT ( 99 ) * + 38 + 36 - + - AVG ( DISTINCT + 80 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1956
SELECT ALL 22 DIV - 17
----
-1

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL 22 / - 17
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1957
SELECT + ( - - 34 ) DIV 35
----
0

skipif mysql # not compatible
query I rowsort label-1957
SELECT + ( - - 34 ) / 35
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1958
SELECT DISTINCT 16 + 69 + + CAST( + 80 AS SIGNED )
----
165

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT 16 + 69 + + CAST ( + 80 AS INTEGER )
----
165

query I rowsort
SELECT ALL 86 * - 59 AS col2
----
-5074

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1960
SELECT ALL + COUNT( * ) + + CAST( NULL AS DECIMAL ) col2, 58
----
NULL
58

skipif mysql # not compatible
query II rowsort label-1960
SELECT ALL + COUNT ( * ) + + CAST ( NULL AS REAL ) col2, 58
----
NULL
58

query I rowsort
SELECT ALL 62 * 21 AS col1
----
1302

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT DISTINCT 80 + + + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT 80 + + + COUNT ( * )
----
81

query I rowsort
SELECT + 1 + + + 30
----
31

query I rowsort
SELECT - COALESCE ( - ( + + 15 ), - + ( + 66 ), - + 1 ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT + 15 + + MAX( - 28 )
----
-13

skipif mysql # not compatible
query I rowsort label-1965
SELECT + 15 + + MAX ( - 28 )
----
-13

query I rowsort
SELECT - + 8 + + 6 * - + 51 col2
----
-314

query I rowsort
SELECT - - 81 + 1 + - - 62
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT DISTINCT - 75 + + CASE + 42 WHEN - - 76 THEN + 92 WHEN COUNT( * ) THEN + 62 + + - 56 - 62 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - 75 + + CASE + 42 WHEN - - 76 THEN + 92 WHEN COUNT ( * ) THEN + 62 + + - 56 - 62 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1969
SELECT - + NULLIF ( + - COUNT( * ), 0 ) + + COALESCE ( - COALESCE ( 64, + COALESCE ( + + 15, - + 23 * - 41 ), - 56, + 42 DIV - ( - + 14 ) ), - NULLIF ( + 6, COUNT( * ) ) DIV 54 * - 10 + + 15 )
----
-63

skipif mysql # not compatible
query I rowsort label-1969
SELECT - + NULLIF ( + - COUNT ( * ), 0 ) + + COALESCE ( - COALESCE ( 64, + COALESCE ( + + 15, - + 23 * - 41 ), - 56, + 42 / - ( - + 14 ) ), - NULLIF ( + 6, COUNT ( * ) ) / 54 * - 10 + + 15 )
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1970
SELECT - CAST( - + 95 AS SIGNED ) * 8 + + - 39 * + - 39 + + - 63 AS col0
----
2218

skipif mysql # not compatible
query I rowsort label-1970
SELECT - CAST ( - + 95 AS INTEGER ) * 8 + + - 39 * + - 39 + + - 63 AS col0
----
2218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1971
SELECT ALL + COUNT( * ) * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL + COUNT ( * ) * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - 1 - - + ( - 6 )
----
-7

query II rowsort
SELECT - 45 + 24 AS col0, - 20 * - - 57 * 7
----
-21
-7980

query I rowsort
SELECT ALL - + NULLIF ( + + 23, - + 86 ) - + 7
----
-30

query I rowsort
SELECT + 28 + - 61 * - - 45 AS col2
----
-2717

query I rowsort
SELECT - 67 + - + 37 AS col1
----
-104

query II rowsort
SELECT - 72 * - 89 AS col1, + 21 AS col2
----
6408
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT + 82 * COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-1978
SELECT + 82 * COUNT ( * ) AS col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1979
SELECT ALL - 7 DIV - 28
----
0

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL - 7 / - 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT ALL - 85 / + CASE - 49 WHEN + 18 THEN + 37 * - COALESCE ( - - NULLIF ( + 16, 38 ), 94 * + 33 ) END / - 25 + - + AVG ( - ( - 48 ) ) * + CASE + 43 WHEN + - 9 / + NULLIF ( + CASE 32 WHEN - 41 - + - COALESCE ( 34, MIN( - 51 ) ) THEN NULL ELSE + 34 * - 22 - 80 END, 63 / - 38 ) THEN COUNT( * ) ELSE - 75 * 64 END - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL - 85 / + CASE - 49 WHEN + 18 THEN + 37 * - COALESCE ( - - NULLIF ( + 16, 38 ), 94 * + 33 ) END / - 25 + - + AVG ( - ( - 48 ) ) * + CASE + 43 WHEN + - 9 / + NULLIF ( + CASE 32 WHEN - 41 - + - COALESCE ( 34, MIN ( - 51 ) ) THEN NULL ELSE + 34 * - 22 - 80 END, 63 / - 38 ) THEN COUNT ( * ) ELSE - 75 * 64 END - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT DISTINCT + COALESCE ( + COUNT( * ), ( + - 93 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1981
SELECT DISTINCT + COALESCE ( + COUNT ( * ), ( + - 93 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1982
SELECT ALL + 3 AS col2, - COUNT( * ) - + MAX( ALL + + 38 ) + + 3 DIV - + 81
----
3
-39

skipif mysql # not compatible
query II rowsort label-1982
SELECT ALL + 3 AS col2, - COUNT ( * ) - + MAX ( ALL + + 38 ) + + 3 / - + 81
----
3
-39

query I rowsort
SELECT ( NULLIF ( 96, - - 88 * - + 63 * 39 ) ) col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT + COALESCE ( COUNT( * ), 73 )
----
1

skipif mysql # not compatible
query I rowsort label-1984
SELECT + COALESCE ( COUNT ( * ), 73 )
----
1

query I rowsort
SELECT ALL 81 * ( 99 ) AS col2
----
8019

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT - ( - 69 ) * - - COUNT( * ) - + 49 + + 5
----
25

skipif mysql # not compatible
query I rowsort label-1986
SELECT - ( - 69 ) * - - COUNT ( * ) - + 49 + + 5
----
25

query II rowsort
SELECT + 93 + + - ( 90 ) AS col1, - 64
----
3
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT COALESCE ( + - 42, - 28 * - + COUNT( * ) ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-1988
SELECT COALESCE ( + - 42, - 28 * - + COUNT ( * ) ) AS col2
----
-42

query I rowsort
SELECT + ( - 90 ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT DISTINCT - 36 * - - 65 * - ( + - 72 ) + 36 + + ( - SUM( + 41 ) ) * - 47
----
-166517

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT - 36 * - - 65 * - ( + - 72 ) + 36 + + ( - SUM ( + 41 ) ) * - 47
----
-166517

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT DISTINCT 34 * + - NULLIF ( - 71, 48 ) + 18 + + COUNT( * ) col1
----
2433

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT 34 * + - NULLIF ( - 71, 48 ) + 18 + + COUNT ( * ) col1
----
2433

query II rowsort
SELECT ALL + 64 col0, + 39 AS col2
----
64
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT + COALESCE ( + COUNT( * ), 75 )
----
1

skipif mysql # not compatible
query I rowsort label-1993
SELECT + COALESCE ( + COUNT ( * ), 75 )
----
1

query II rowsort
SELECT DISTINCT 9 * - 97 + + 6 AS col2, + 4 * 6 * - COALESCE ( 42, 15 ) + 11 + + 43
----
-867
-954

onlyif mysql # aggregate syntax: 
query II rowsort label-1995
SELECT ALL 83 * - 0 + + 36, - COUNT( * ) + + + 40 col0
----
36
39

skipif mysql # not compatible
query II rowsort label-1995
SELECT ALL 83 * - 0 + + 36, - COUNT ( * ) + + + 40 col0
----
36
39

query I rowsort
SELECT + 60 * + - 57 * + ( 1 ) * 53
----
-181260

query I rowsort
SELECT DISTINCT + 48 * 15 * + - 21 * - 70 col1
----
1058400

query I rowsort
SELECT DISTINCT - + ( 97 ) * - + 51 + - 17
----
4930

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT ALL + COUNT( * ) * + 10 * + NULLIF ( - COUNT( * ), + + 28 ) + 26
----
16

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL + COUNT ( * ) * + 10 * + NULLIF ( - COUNT ( * ), + + 28 ) + 26
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2000
SELECT ALL + + 16 * + CAST( NULL AS DECIMAL ) + + - NULLIF ( - + 38, - ( + + 11 ) * - + 70 ) + 8 / + CASE - 79 WHEN + 23 - - 96 * 66 THEN NULL ELSE + 74 * - COUNT( * ) END - + 67 + CASE + 38 WHEN + 73 + + 58 * - 84 THEN - 94 + + 19 WHEN 19 * 51 THEN NULL WHEN ( - 63 ) * - 49 + 96 THEN NULL ELSE - 37 END * 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL + + 16 * + CAST ( NULL AS REAL ) + + - NULLIF ( - + 38, - ( + + 11 ) * - + 70 ) + 8 / + CASE - 79 WHEN + 23 - - 96 * 66 THEN NULL ELSE + 74 * - COUNT ( * ) END - + 67 + CASE + 38 WHEN + 73 + + 58 * - 84 THEN - 94 + + 19 WHEN 19 * 51 THEN NULL WHEN ( - 63 ) * - 49 + 96 THEN NULL ELSE - 37 END * 85 AS col1
----
NULL

query I rowsort
SELECT + + 52 - - 90 AS col2
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2002
SELECT + - MAX( ALL - + 10 ) - 69 + + CAST( NULL AS DECIMAL ) * - 43 * + - 74 AS col2, + CAST( 92 AS SIGNED )
----
NULL
92

skipif mysql # not compatible
query II rowsort label-2002
SELECT + - MAX ( ALL - + 10 ) - 69 + + CAST ( NULL AS REAL ) * - 43 * + - 74 AS col2, + CAST ( 92 AS INTEGER )
----
NULL
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT - + ( - + NULLIF ( + COUNT( 96 ), + 16 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2003
SELECT - + ( - + NULLIF ( + COUNT ( 96 ), + 16 ) )
----
1

query I rowsort
SELECT ALL - 96 - - + 50 + + 96 AS col0
----
50

query II rowsort
SELECT 1, + 77 col2
----
1
77

query I rowsort
SELECT + + 16 + + 23 AS col2
----
39

query II rowsort
SELECT - 73 AS col0, - ( + 79 )
----
-73
-79

query I rowsort
SELECT - 3 - + - 87 AS col1
----
84

query I rowsort
SELECT + 42 * 96 * - 46
----
-185472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2010
SELECT MAX( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT MAX ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2011
SELECT - + 15 AS col1, - 82 + - 64 * ( + CASE - CAST( NULL AS SIGNED ) WHEN + 74 THEN NULL ELSE 77 END ) AS col2
----
-15
-5010

skipif mysql # not compatible
query II rowsort label-2011
SELECT - + 15 AS col1, - 82 + - 64 * ( + CASE - CAST ( NULL AS INTEGER ) WHEN + 74 THEN NULL ELSE 77 END ) AS col2
----
-15
-5010

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT ALL - MAX( ALL + - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL - MAX ( ALL + - 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT - 71 * + SUM( + 90 ) * + 46 AS col2
----
-293940

skipif mysql # not compatible
query I rowsort label-2013
SELECT - 71 * + SUM ( + 90 ) * + 46 AS col2
----
-293940

query I rowsort
SELECT DISTINCT - 2 * 27 col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT ALL CASE - 58 WHEN + SUM( - - 89 ) + 50 THEN NULL ELSE + - 83 * + + 39 END
----
-3237

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL CASE - 58 WHEN + SUM ( - - 89 ) + 50 THEN NULL ELSE + - 83 * + + 39 END
----
-3237

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2016
SELECT - 23 DIV COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-2016
SELECT - 23 / COUNT ( * )
----
-23

query I rowsort
SELECT + 35 + - 86
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT ALL - 3 * + 65 DIV + 29
----
-6

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL - 3 * + 65 / + 29
----
-6

query I rowsort
SELECT ALL + 48 * 71
----
3408

onlyif mysql # DIV for integer division: 
query I rowsort label-2020
SELECT 68 DIV - 7
----
-9

skipif mysql # not compatible
query I rowsort label-2020
SELECT 68 / - 7
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2021
SELECT 40 DIV - + 92 - - SUM( ALL + 38 ) + - SUM( ALL 54 )
----
-16

skipif mysql # not compatible
query I rowsort label-2021
SELECT 40 / - + 92 - - SUM ( ALL + 38 ) + - SUM ( ALL 54 )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2022
SELECT ALL + COUNT( * ) + - COUNT( * ) * + - 34 / 42 * - - ( + ( - CASE 35 WHEN + 12 THEN NULL WHEN CAST( - + NULLIF ( - 24, + 17 * COUNT( * ) ) AS SIGNED ) * + + 86 * + 39 / + ( + COALESCE ( 15, + - 56, + 53 - - NULLIF ( - - 9, ( - 25 ) ) + - ( 59 ) * 80 ) ) + + 74 + 18 THEN - 32 * 46 ELSE NULL END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL + COUNT ( * ) + - COUNT ( * ) * + - 34 / 42 * - - ( + ( - CASE 35 WHEN + 12 THEN NULL WHEN CAST ( - + NULLIF ( - 24, + 17 * COUNT ( * ) ) AS INTEGER ) * + + 86 * + 39 / + ( + COALESCE ( 15, + - 56, + 53 - - NULLIF ( - - 9, ( - 25 ) ) + - ( 59 ) * 80 ) ) + + 74 + 18 THEN - 32 * 46 ELSE NULL END ) ) AS col2
----
NULL

query I rowsort
SELECT 83 - + 49 * + 16 + 7 AS col2
----
-694

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT ALL - COALESCE ( - 79, + COUNT( 33 ) * - 29 + 20 )
----
79

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL - COALESCE ( - 79, + COUNT ( 33 ) * - 29 + 20 )
----
79

query I rowsort
SELECT DISTINCT + 31 + + 93 AS col2
----
124

query II rowsort
SELECT 83 + - NULLIF ( + 58, + 42 ) AS col1, + 53 AS col0
----
25
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2027
SELECT - 36 * + - 63 * CAST( - 77 AS SIGNED ) - + - COUNT( * ) AS col2
----
-174635

skipif mysql # not compatible
query I rowsort label-2027
SELECT - 36 * + - 63 * CAST ( - 77 AS INTEGER ) - + - COUNT ( * ) AS col2
----
-174635

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT 28 - + COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-2028
SELECT 28 - + COUNT ( * ) AS col1
----
27

query I rowsort
SELECT - 83 * 53 + + 71 AS col0
----
-4328

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT - SUM( DISTINCT 29 ) + + COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-2030
SELECT - SUM ( DISTINCT 29 ) + + COUNT ( * ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-2031
SELECT ALL + SUM( - - 4 ) - + 98 * 38, + 25 * + - 22 * 1 col0
----
-3720
-550

skipif mysql # not compatible
query II rowsort label-2031
SELECT ALL + SUM ( - - 4 ) - + 98 * 38, + 25 * + - 22 * 1 col0
----
-3720
-550

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT MAX( DISTINCT 10 ) + 55 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-2032
SELECT MAX ( DISTINCT 10 ) + 55 AS col1
----
65

query I rowsort
SELECT ALL - - ( + - 56 ) * + 12 AS col1
----
-672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2034
SELECT DISTINCT - COALESCE ( - - 42, + - NULLIF ( + 40, + 42 * + 93 / + + 65 * + + COUNT( * ) ) + + + CAST( NULL AS SIGNED ) - 66, - MAX( 79 ) ) col1, 63 - - 6 AS col2
----
-42
69

skipif mysql # not compatible
query II rowsort label-2034
SELECT DISTINCT - COALESCE ( - - 42, + - NULLIF ( + 40, + 42 * + 93 / + + 65 * + + COUNT ( * ) ) + + + CAST ( NULL AS INTEGER ) - 66, - MAX ( 79 ) ) col1, 63 - - 6 AS col2
----
-42
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2035
SELECT DISTINCT - + 37 * 52 - 18 * + COUNT( * ) AS col0, - COUNT( * ) AS col0
----
-1942
-1

skipif mysql # not compatible
query II rowsort label-2035
SELECT DISTINCT - + 37 * 52 - 18 * + COUNT ( * ) AS col0, - COUNT ( * ) AS col0
----
-1942
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2036
SELECT + MAX( ALL - - 3 ) + + SUM( 16 ), 44 AS col0
----
19
44

skipif mysql # not compatible
query II rowsort label-2036
SELECT + MAX ( ALL - - 3 ) + + SUM ( 16 ), 44 AS col0
----
19
44

query I rowsort
SELECT DISTINCT + NULLIF ( - - 55, - 40 ) col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT 4 * - - 86 * CASE ( - 52 ) WHEN - 25 + - + 24 THEN 87 * + + 36 END / - + 51 + + + 52 * + - 43 + - 8 * + NULLIF ( + COALESCE ( + 6, 35, - 69, - + 42 * 50 ), - - SUM( - 18 ) + 73 ) + + 36 + - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT 4 * - - 86 * CASE ( - 52 ) WHEN - 25 + - + 24 THEN 87 * + + 36 END / - + 51 + + + 52 * + - 43 + - 8 * + NULLIF ( + COALESCE ( + 6, 35, - 69, - + 42 * 50 ), - - SUM ( - 18 ) + 73 ) + + 36 + - 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT COUNT( * ) + - - 18 + COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-2039
SELECT COUNT ( * ) + - - 18 + COUNT ( * ) AS col2
----
20

query I rowsort
SELECT - 87 + 21 * + 36
----
669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2041
SELECT ALL - COALESCE ( 24, - CASE CASE + 58 WHEN + 91 + + ( + + 3 ) THEN - - NULLIF ( - AVG ( - 81 ), - COALESCE ( 55, + CASE 87 WHEN - - 92 DIV + 24 + 1 - - 89 DIV + 11 + 50 THEN NULL WHEN - ( 6 ) * - 19 * 57 + COUNT( * ) THEN COUNT( + 68 ) * 72 + - COUNT( ALL 38 ) END + + 31 ) ) ELSE - 56 END WHEN COALESCE ( - COALESCE ( + 52, 95 * + 23 + CAST( NULL AS SIGNED ) ), 29 ) * COUNT( * ) THEN - 87 + AVG ( 7 + 20 ) DIV 84 WHEN NULLIF ( + CAST( COUNT( * ) AS SIGNED ), 0 ) THEN NULL END, - 67, 81 * - ( + 55 * 23 ) ) * + 95
----
-2280

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL - COALESCE ( 24, - CASE CASE + 58 WHEN + 91 + + ( + + 3 ) THEN - - NULLIF ( - AVG ( - 81 ), - COALESCE ( 55, + CASE 87 WHEN - - 92 / + 24 + 1 - - 89 / + 11 + 50 THEN NULL WHEN - ( 6 ) * - 19 * 57 + COUNT ( * ) THEN COUNT ( + 68 ) * 72 + - COUNT ( ALL 38 ) END + + 31 ) ) ELSE - 56 END WHEN COALESCE ( - COALESCE ( + 52, 95 * + 23 + CAST ( NULL AS INTEGER ) ), 29 ) * COUNT ( * ) THEN - 87 + AVG ( 7 + 20 ) / 84 WHEN NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), 0 ) THEN NULL END, - 67, 81 * - ( + 55 * 23 ) ) * + 95
----
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT COUNT( * ) * CASE - - 29 WHEN + 80 + + COALESCE ( + 14, + COALESCE ( - 92, - + COALESCE ( 18, + 49, 93 + + + 42 * - 22 ) ) ) * 34 THEN - 59 WHEN + + 93 - - AVG ( DISTINCT - 13 ) THEN - + 92 * 5 * AVG ( DISTINCT - NULLIF ( - - 78, + 96 ) ) END - - ( + 36 ) / + 66 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2042
SELECT COUNT ( * ) * CASE - - 29 WHEN + 80 + + COALESCE ( + 14, + COALESCE ( - 92, - + COALESCE ( 18, + 49, 93 + + + 42 * - 22 ) ) ) * 34 THEN - 59 WHEN + + 93 - - AVG ( DISTINCT - 13 ) THEN - + 92 * 5 * AVG ( DISTINCT - NULLIF ( - - 78, + 96 ) ) END - - ( + 36 ) / + 66 col1
----
NULL

query I rowsort
SELECT 68 + - - 66
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2044
SELECT DISTINCT 88 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT 88 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT 14 + + 19 * COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-2045
SELECT 14 + + 19 * COUNT ( * )
----
33

query I rowsort
SELECT ALL 32 * + + 65
----
2080

query I rowsort
SELECT ALL 53 + - 35 col1
----
18

query I rowsort
SELECT DISTINCT 70 * + 45
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT COUNT( * ) + + 55 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-2049
SELECT COUNT ( * ) + + 55 AS col2
----
56

query I rowsort
SELECT ( ( - 93 ) ) + + 78 + 85
----
70

query I rowsort
SELECT 93 + - 70
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT DISTINCT 40 + + + MIN( DISTINCT 19 )
----
59

skipif mysql # not compatible
query I rowsort label-2052
SELECT DISTINCT 40 + + + MIN ( DISTINCT 19 )
----
59

query I rowsort
SELECT ( - 39 ) + 3 AS col1
----
-36

query II rowsort
SELECT ( + 92 ) * + + 95 + - 92 * + 97, + 58 + + - 99 AS col0
----
-184
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT ALL - CASE 56 WHEN - 16 + + COUNT( * ) * + - COUNT( * ) * - 78 * - 24 THEN 49 / + 70 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL - CASE 56 WHEN - 16 + + COUNT ( * ) * + - COUNT ( * ) * - 78 * - 24 THEN 49 / + 70 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2056
SELECT + COALESCE ( + COALESCE ( COUNT( * ), - 93 ), + - 30 DIV - 73 + + CAST( + - 13 AS SIGNED ), ( CASE 4 WHEN + ( + 16 ) THEN NULL WHEN 20 - - + 12 THEN 48 WHEN - + 27 THEN NULL END ) DIV + 90 * + 6 + 93 * AVG ( DISTINCT + - 50 ) * - 51 ) DIV - 87 + - ( 85 ) + - 5
----
-90

skipif mysql # not compatible
query I rowsort label-2056
SELECT + COALESCE ( + COALESCE ( COUNT ( * ), - 93 ), + - 30 / - 73 + + CAST ( + - 13 AS INTEGER ), ( CASE 4 WHEN + ( + 16 ) THEN NULL WHEN 20 - - + 12 THEN 48 WHEN - + 27 THEN NULL END ) / + 90 * + 6 + 93 * AVG ( DISTINCT + - 50 ) * - 51 ) / - 87 + - ( 85 ) + - 5
----
-90

query I rowsort
SELECT ALL 63 + + 1
----
64

query I rowsort
SELECT ALL - 54 * 67
----
-3618

query I rowsort
SELECT DISTINCT + ( + 66 ) + ( + 62 )
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT DISTINCT MAX( 67 ) + + ( - CASE 49 WHEN 13 THEN - COUNT( * ) * + + 4 * - 43 WHEN + 91 * + 37 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT MAX ( 67 ) + + ( - CASE 49 WHEN 13 THEN - COUNT ( * ) * + + 4 * - 43 WHEN + 91 * + 37 THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT 57 * + + 92 AS col0
----
5244

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT + COUNT( - 76 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2062
SELECT + COUNT ( - 76 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT - 63 * COUNT( * ) + + - 60 AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-2063
SELECT - 63 * COUNT ( * ) + + - 60 AS col1
----
-123

onlyif mysql # aggregate syntax: 
query II rowsort label-2064
SELECT - 69 * + - 94 + + 32 AS col1, - COUNT( * ) col2
----
6518
-1

skipif mysql # not compatible
query II rowsort label-2064
SELECT - 69 * + - 94 + + 32 AS col1, - COUNT ( * ) col2
----
6518
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT DISTINCT - MAX( + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT - MAX ( + 9 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT DISTINCT - MAX( - 46 )
----
46

skipif mysql # not compatible
query I rowsort label-2066
SELECT DISTINCT - MAX ( - 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT ALL + NULLIF ( 71, - + 9 / 71 * 15 ) * + COUNT( * ) * 51 * + COUNT( * ) + 34 AS col2
----
3655

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL + NULLIF ( 71, - + 9 / 71 * 15 ) * + COUNT ( * ) * 51 * + COUNT ( * ) + 34 AS col2
----
3655

onlyif mysql # DIV for integer division: 
query I rowsort label-2068
SELECT ALL + 99 DIV + 70 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL + 99 / + 70 AS col1
----
1

query I rowsort
SELECT ALL - - 34 - + 38
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT - 35 * + SUM( + 82 ) + 86 * + + 53
----
1688

skipif mysql # not compatible
query I rowsort label-2070
SELECT - 35 * + SUM ( + 82 ) + 86 * + + 53
----
1688

query I rowsort
SELECT DISTINCT - + 10 col2
----
-10

query I rowsort
SELECT + ( 36 ) * + + 14 - + 36
----
468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2073
SELECT ALL - CAST( - + 20 AS SIGNED ) col0
----
20

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL - CAST ( - + 20 AS INTEGER ) col0
----
20

query I rowsort
SELECT 14 * + - 17 col1
----
-238

query I rowsort
SELECT + 67 + - 66
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT 4 + - 68 - + - 26 * + - COUNT( * ) * + + ( + 92 )
----
-2456

skipif mysql # not compatible
query I rowsort label-2076
SELECT 4 + - 68 - + - 26 * + - COUNT ( * ) * + + ( + 92 )
----
-2456

query I rowsort
SELECT ALL - + 59 * + 61
----
-3599

query I rowsort
SELECT ( + 59 )
----
59

query I rowsort
SELECT 52 - + NULLIF ( + - 21, COALESCE ( - - 20, 4 * COALESCE ( - 17, 40 * - + 27 + 43 ) * + 95 ) ) col2
----
73

query II rowsort
SELECT ALL - 39 AS col1, + 23
----
-39
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT - - MIN( - - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-2081
SELECT - - MIN ( - - 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT ALL + 53 * + + MIN( + 8 )
----
424

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL + 53 * + + MIN ( + 8 )
----
424

query I rowsort
SELECT 29 * - - 66 + 92 + + 99
----
2105

query I rowsort
SELECT ALL + 31 + + 73
----
104

query I rowsort
SELECT ALL - 62 + - 23
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-2086
SELECT 68 AS col0, COALESCE ( - 3, - 47 * ( COUNT( * ) ) + + + 26 ) * - - 74 - COUNT( * ) * + - 22 + - 81 col1
----
68
-281

skipif mysql # not compatible
query II rowsort label-2086
SELECT 68 AS col0, COALESCE ( - 3, - 47 * ( COUNT ( * ) ) + + + 26 ) * - - 74 - COUNT ( * ) * + - 22 + - 81 col1
----
68
-281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2087
SELECT - COUNT( * ) DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-2087
SELECT - COUNT ( * ) / + 96
----
0

query I rowsort
SELECT + ( + - 21 ) * + - 24
----
504

query I rowsort
SELECT ALL 23 + + - 40 + 8 * - 17 AS col0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2090
SELECT ALL 99 + CAST( NULL AS SIGNED ) + + 58 * + 66 * - - 39 * - 3 / - + 60 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL 99 + CAST ( NULL AS INTEGER ) + + 58 * + 66 * - - 39 * - 3 / - + 60 col0
----
NULL

query II rowsort
SELECT - 21 AS col0, 16
----
-21
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2092
SELECT ALL + 85 DIV + COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL + 85 / + COUNT ( * ) AS col2
----
85

query I rowsort
SELECT ALL 52 * - - 46
----
2392

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT + MIN( - 5 ) * + 25
----
-125

skipif mysql # not compatible
query I rowsort label-2094
SELECT + MIN ( - 5 ) * + 25
----
-125

query I rowsort
SELECT ALL 63 + - 4
----
59

query I rowsort
SELECT ALL 22 * - 55 * + 67
----
-81070

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2097
SELECT - CASE + - CAST( NULL AS DECIMAL ) WHEN - 21 THEN + 75 WHEN MAX( ALL - 63 ) THEN NULL END AS col2, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2097
SELECT - CASE + - CAST ( NULL AS REAL ) WHEN - 21 THEN + 75 WHEN MAX ( ALL - 63 ) THEN NULL END AS col2, COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT 50 * + - 4 * ( 10 ) + - COUNT( * ) AS col1
----
-2001

skipif mysql # not compatible
query I rowsort label-2098
SELECT 50 * + - 4 * ( 10 ) + - COUNT ( * ) AS col1
----
-2001

query II rowsort
SELECT ( - 32 ) AS col1, 81
----
-32
81

query II rowsort
SELECT ALL + 57 AS col0, 38 * + 76 * 31 * 31
----
57
2775368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2101
SELECT + CAST( + NULLIF ( + 94, - - 1 ) AS SIGNED ) * + 11 + + COUNT( * ) + - + 69 AS col0
----
966

skipif mysql # not compatible
query I rowsort label-2101
SELECT + CAST ( + NULLIF ( + 94, - - 1 ) AS INTEGER ) * + 11 + + COUNT ( * ) + - + 69 AS col0
----
966

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2102
SELECT ALL - 45 * + + 13 - - 39 - - COUNT( * ) + COALESCE ( + - 13, 43 + COUNT( DISTINCT + 36 ) * - 45 * + 90 + - 69 + + ( - - 89 ) * + - 8 + - + COUNT( * ), - - 0 DIV 82 * + - 57 - COUNT( * ) + - 80 + + 68 )
----
-558

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL - 45 * + + 13 - - 39 - - COUNT ( * ) + COALESCE ( + - 13, 43 + COUNT ( DISTINCT + 36 ) * - 45 * + 90 + - 69 + + ( - - 89 ) * + - 8 + - + COUNT ( * ), - - 0 / 82 * + - 57 - COUNT ( * ) + - 80 + + 68 )
----
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT + COUNT( + + 42 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2103
SELECT + COUNT ( + + 42 ) col2
----
1

query III rowsort
SELECT + 51, 90 * + 31 + + 45 AS col2, - 23 * + - 90 + - 34 AS col0
----
51
2835
2036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2105
SELECT CASE + + AVG ( ALL - ( 27 ) ) WHEN + + 97 / + 36 * + COUNT( * ) THEN + - 22 WHEN - CAST( NULL AS SIGNED ) + - 92 + + + ( + 74 ) - - 3 THEN + 67 * + CAST( NULL AS SIGNED ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2105
SELECT CASE + + AVG ( ALL - ( 27 ) ) WHEN + + 97 / + 36 * + COUNT ( * ) THEN + - 22 WHEN - CAST ( NULL AS INTEGER ) + - 92 + + + ( + 74 ) - - 3 THEN + 67 * + CAST ( NULL AS INTEGER ) END col0
----
NULL

query I rowsort
SELECT ALL + - 11 * + + 43
----
-473

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT - - 23 * + + 56 + COUNT( * )
----
1289

skipif mysql # not compatible
query I rowsort label-2107
SELECT - - 23 * + + 56 + COUNT ( * )
----
1289

query II rowsort
SELECT ALL + + 76 col1, + 14 AS col1
----
76
14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2109
SELECT + - 48 * + + SUM( ALL + CASE 27 WHEN - 62 THEN NULL ELSE + - CAST( NULL AS DECIMAL ) END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2109
SELECT + - 48 * + + SUM ( ALL + CASE 27 WHEN - 62 THEN NULL ELSE + - CAST ( NULL AS REAL ) END ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2110
SELECT ALL - 9 * + CASE - - 77 WHEN + + COUNT( DISTINCT 14 ) THEN 54 WHEN 73 / - - 47 + - - 48 THEN - - 51 WHEN + 34 + + 41 * + AVG ( ALL + 24 ) + + CAST( NULL AS SIGNED ) THEN NULL END + + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL - 9 * + CASE - - 77 WHEN + + COUNT ( DISTINCT 14 ) THEN 54 WHEN 73 / - - 47 + - - 48 THEN - - 51 WHEN + 34 + + 41 * + AVG ( ALL + 24 ) + + CAST ( NULL AS INTEGER ) THEN NULL END + + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT + - COUNT( * ) + - - 47 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-2111
SELECT + - COUNT ( * ) + - - 47 AS col1
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2112
SELECT + - 37 DIV SUM( ALL + 6 ) - - 85 - + 58 * + - ( + 17 ), + 86 + - 85 DIV - COALESCE ( + - 41, + 40 - - + 33, - 7 + + - 11 ) col0
----
1065
84

skipif mysql # not compatible
query II rowsort label-2112
SELECT + - 37 / SUM ( ALL + 6 ) - - 85 - + 58 * + - ( + 17 ), + 86 + - 85 / - COALESCE ( + - 41, + 40 - - + 33, - 7 + + - 11 ) col0
----
1065
84

query II rowsort
SELECT + 24 * + - 36 * 72 + 74, 15 AS col1
----
-62134
15

query I rowsort
SELECT - + 23 - 42 - - 58 - + 87
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT + + 22 * - 92 + 82 + - NULLIF ( - SUM( + - 70 ), 39 ) AS col2
----
-2012

skipif mysql # not compatible
query I rowsort label-2115
SELECT + + 22 * - 92 + 82 + - NULLIF ( - SUM ( + - 70 ), 39 ) AS col2
----
-2012

query II rowsort
SELECT DISTINCT + ( + 89 ) AS col2, 17 AS col1
----
89
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2117
SELECT - - 46 * - - 19 AS col0, - CASE + ( - 96 ) WHEN + 16 + MAX( DISTINCT - ( 72 ) ) THEN NULL WHEN - 4 / - + MAX( + 70 ) * - + NULLIF ( + 21, + 9 - ( + + 1 ) ) * - + 97 * + - 8 + + + 51 * + COUNT( * ) + + 26 + 30 * + ( CASE + MIN( - 65 ) WHEN COUNT( * ) * - 16 + 19 THEN 54 WHEN + 23 / 32 THEN NULL ELSE NULL END ) + CASE 57 WHEN + ( COUNT( * ) ) + - 82 THEN NULL WHEN - 5 THEN NULL WHEN 20 THEN ( 91 ) END * 77 - 66 THEN NULL ELSE 7 / - SUM( ALL + CAST( NULL AS SIGNED ) * + 57 ) END * NULLIF ( - 36, - 48 )
----
874
NULL

skipif mysql # not compatible
query II rowsort label-2117
SELECT - - 46 * - - 19 AS col0, - CASE + ( - 96 ) WHEN + 16 + MAX ( DISTINCT - ( 72 ) ) THEN NULL WHEN - 4 / - + MAX ( + 70 ) * - + NULLIF ( + 21, + 9 - ( + + 1 ) ) * - + 97 * + - 8 + + + 51 * + COUNT ( * ) + + 26 + 30 * + ( CASE + MIN ( - 65 ) WHEN COUNT ( * ) * - 16 + 19 THEN 54 WHEN + 23 / 32 THEN NULL ELSE NULL END ) + CASE 57 WHEN + ( COUNT ( * ) ) + - 82 THEN NULL WHEN - 5 THEN NULL WHEN 20 THEN ( 91 ) END * 77 - 66 THEN NULL ELSE 7 / - SUM ( ALL + CAST ( NULL AS INTEGER ) * + 57 ) END * NULLIF ( - 36, - 48 )
----
874
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2118
SELECT DISTINCT + COUNT( ALL - 89 ) * COUNT( * ) * + CAST( + - 25 AS SIGNED ) + + - 71 * - - 21 AS col1
----
-1516

skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT + COUNT ( ALL - 89 ) * COUNT ( * ) * + CAST ( + - 25 AS INTEGER ) + + - 71 * - - 21 AS col1
----
-1516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2119
SELECT DISTINCT 81 * - CAST( NULL AS SIGNED ) * - + ( - 47 ) + + COUNT( * ) + - COUNT( * ) * - - ( - 65 ) * - 93 * + 86 / - MAX( ALL COALESCE ( 26, + 42 ) ) + + 4 + 74 * - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT 81 * - CAST ( NULL AS INTEGER ) * - + ( - 47 ) + + COUNT ( * ) + - COUNT ( * ) * - - ( - 65 ) * - 93 * + 86 / - MAX ( ALL COALESCE ( 26, + 42 ) ) + + 4 + 74 * - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2120
SELECT DISTINCT + ( - + 71 ) * - COUNT( - 46 ) + - ( - - 34 ) + COALESCE ( + CAST( NULL AS SIGNED ), + 2 ) + + COUNT( ALL - - 7 ) * - 60 + - 11
----
-32

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT + ( - + 71 ) * - COUNT ( - 46 ) + - ( - - 34 ) + COALESCE ( + CAST ( NULL AS INTEGER ), + 2 ) + + COUNT ( ALL - - 7 ) * - 60 + - 11
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2121
SELECT - CAST( NULL AS SIGNED ) * - 59 * + + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2121
SELECT - CAST ( NULL AS INTEGER ) * - 59 * + + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + + + COUNT ( * )
----
NULL

query I rowsort
SELECT - 11 + + 37
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT DISTINCT - 44 + + COUNT( * ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-2123
SELECT DISTINCT - 44 + + COUNT ( * ) col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT ALL - 26 + + MIN( 72 ) + + COUNT( + + 86 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL - 26 + + MIN ( 72 ) + + COUNT ( + + 86 ) AS col1
----
47

query I rowsort
SELECT DISTINCT + 72 * - - 2 AS col1
----
144

query I rowsort
SELECT DISTINCT + 99 + + 10 AS col0
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-2127
SELECT - ( + - 36 ) + - COALESCE ( + 91, - 55 + + 52 DIV - 3 )
----
-55

skipif mysql # not compatible
query I rowsort label-2127
SELECT - ( + - 36 ) + - COALESCE ( + 91, - 55 + + 52 / - 3 )
----
-55

query I rowsort
SELECT ALL + 81 + - + 18 AS col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-2129
SELECT DISTINCT CASE - 10 WHEN 15 THEN COUNT( ALL 41 ) + + 3 END - - - 22 / + + 46 AS col0, 12 + + 10 * + 76 - + 22 - 14 * - - 80 - COUNT( * )
----
NULL
-371

skipif mysql # not compatible
query II rowsort label-2129
SELECT DISTINCT CASE - 10 WHEN 15 THEN COUNT ( ALL 41 ) + + 3 END - - - 22 / + + 46 AS col0, 12 + + 10 * + 76 - + 22 - 14 * - - 80 - COUNT ( * )
----
NULL
-371

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2130
SELECT ALL CAST( + + 37 AS SIGNED ) AS col2, 64
----
37
64

skipif mysql # not compatible
query II rowsort label-2130
SELECT ALL CAST ( + + 37 AS INTEGER ) AS col2, 64
----
37
64

query I rowsort
SELECT + 28 + - 86 - 58 + + 2 * - 52
----
-220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2132
SELECT DISTINCT CAST( + 91 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT CAST ( + 91 AS INTEGER )
----
91

query II rowsort
SELECT ALL 10 - - CASE 37 WHEN - + ( + - 0 ) THEN 2 ELSE NULL END + - - 24 AS col1, - 94 + 11
----
NULL
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2134
SELECT ALL ( + 57 ) DIV + SUM( + 13 ) + - 24
----
-20

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL ( + 57 ) / + SUM ( + 13 ) + - 24
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2135
SELECT + MIN( - 25 ) + + - CAST( - 80 AS SIGNED ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-2135
SELECT + MIN ( - 25 ) + + - CAST ( - 80 AS INTEGER ) AS col0
----
55

query I rowsort
SELECT - 92 + - - 57 * 79
----
4411

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2137
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 40, + 86 AS col2
----
NULL
86

skipif mysql # not compatible
query II rowsort label-2137
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 40, + 86 AS col2
----
NULL
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2138
SELECT DISTINCT - 37 DIV COUNT( * ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT - 37 / COUNT ( * ) AS col1
----
-37

query I rowsort
SELECT ALL 38 * + - 99
----
-3762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2140
SELECT DISTINCT 69 * - 95 AS col0, COUNT( * ) - ( COUNT( * ) ) + + - CAST( NULL AS SIGNED )
----
-6555
NULL

skipif mysql # not compatible
query II rowsort label-2140
SELECT DISTINCT 69 * - 95 AS col0, COUNT ( * ) - ( COUNT ( * ) ) + + - CAST ( NULL AS INTEGER )
----
-6555
NULL

query I rowsort
SELECT ALL + + ( 4 ) AS col1
----
4

query I rowsort
SELECT + 70 * + 79 * + 12 AS col2
----
66360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2143
SELECT DISTINCT + - COALESCE ( - 62, - 98 * COUNT( * ) DIV + 38 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2143
SELECT DISTINCT + - COALESCE ( - 62, - 98 * COUNT ( * ) / + 38 ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT - + COUNT( * ) * - 78 - + + 59 * 7 * - 77 * + 45 + 55 AS col1
----
1431178

skipif mysql # not compatible
query I rowsort label-2144
SELECT - + COUNT ( * ) * - 78 - + + 59 * 7 * - 77 * + 45 + 55 AS col1
----
1431178

query I rowsort
SELECT ALL 12 * + 64
----
768

onlyif mysql # DIV for integer division: 
query I rowsort label-2146
SELECT 0 DIV - - 89 * + 31 * - 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2146
SELECT 0 / - - 89 * + 31 * - 15 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT 56 * 10 - - COUNT( * ) AS col1
----
561

skipif mysql # not compatible
query I rowsort label-2147
SELECT 56 * 10 - - COUNT ( * ) AS col1
----
561

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT + MIN( ALL + + 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-2148
SELECT + MIN ( ALL + + 62 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT DISTINCT + 29 + + NULLIF ( + 54, + 3 ) + ( - - 69 ) + - SUM( - 46 ) + - - 51
----
249

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT + 29 + + NULLIF ( + 54, + 3 ) + ( - - 69 ) + - SUM ( - 46 ) + - - 51
----
249

query I rowsort
SELECT ALL - 70 * 70 * - 55 AS col2
----
269500

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT + 79 + - 56 * + MAX( - 26 ) AS col2
----
1535

skipif mysql # not compatible
query I rowsort label-2151
SELECT + 79 + - 56 * + MAX ( - 26 ) AS col2
----
1535

query II rowsort
SELECT 93 col1, + 18
----
93
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT ALL - 31 - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL - 31 - COUNT ( * )
----
-32

query II rowsort
SELECT 87 - - + 78 * ( ( - ( + 21 ) ) ) AS col2, + 64 AS col1
----
-1551
64

query II rowsort
SELECT DISTINCT 68 AS col1, 13 AS col0
----
68
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT DISTINCT - NULLIF ( 96, + 40 + + 65 ) - + COALESCE ( - + 81, 22 ) + 10 * - 56 + + + 56 * + COUNT( * ) AS col2
----
-519

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT - NULLIF ( 96, + 40 + + 65 ) - + COALESCE ( - + 81, 22 ) + 10 * - 56 + + + 56 * + COUNT ( * ) AS col2
----
-519

onlyif mysql # DIV for integer division: 
query I rowsort label-2157
SELECT 77 DIV 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2157
SELECT 77 / 87 AS col0
----
0

query I rowsort
SELECT 12 * - 70 AS col0
----
-840

query II rowsort
SELECT DISTINCT 79 col2, + 53 * + - 42 AS col1
----
79
-2226

query I rowsort
SELECT DISTINCT - 13 - + 72 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT DISTINCT + 41 * - COALESCE ( + ( + 36 ), COUNT( * ) + - - 67 + + + COUNT( * ) )
----
-1476

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT + 41 * - COALESCE ( + ( + 36 ), COUNT ( * ) + - - 67 + + + COUNT ( * ) )
----
-1476

onlyif mysql # DIV for integer division: 
query II rowsort label-2162
SELECT - 40, 82 DIV 61 col1
----
-40
1

skipif mysql # not compatible
query II rowsort label-2162
SELECT - 40, 82 / 61 col1
----
-40
1

query II rowsort
SELECT 22 AS col2, 56 col0
----
22
56

query I rowsort
SELECT ALL - 24 * 98
----
-2352

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT 43 - COUNT( * ) col1
----
42

skipif mysql # not compatible
query I rowsort label-2165
SELECT 43 - COUNT ( * ) col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT - MAX( - 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-2166
SELECT - MAX ( - 36 ) AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2167
SELECT ALL - + CASE 73 WHEN 63 * + 48 + - NULLIF ( - 3, 25 * 55 ) / + - 77 THEN + 97 WHEN - - ( CASE + - 45 WHEN 65 THEN NULL WHEN 7 * - 97 * 99 THEN + 82 / + AVG ( ALL + 38 ) - 99 ELSE NULL END ) + COALESCE ( - 24, - + CASE + CAST( NULL AS SIGNED ) WHEN - + 49 THEN 21 + - AVG ( + 61 ) + 45 WHEN + 93 + 71 THEN NULL END * COUNT( * ) + 37 ) * 12 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL - + CASE 73 WHEN 63 * + 48 + - NULLIF ( - 3, 25 * 55 ) / + - 77 THEN + 97 WHEN - - ( CASE + - 45 WHEN 65 THEN NULL WHEN 7 * - 97 * 99 THEN + 82 / + AVG ( ALL + 38 ) - 99 ELSE NULL END ) + COALESCE ( - 24, - + CASE + CAST ( NULL AS INTEGER ) WHEN - + 49 THEN 21 + - AVG ( + 61 ) + 45 WHEN + 93 + 71 THEN NULL END * COUNT ( * ) + 37 ) * 12 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2168
SELECT - COALESCE ( - 52, - - ( + COUNT( * ) ), + + CAST( NULL AS SIGNED ) * ( - - 35 ), + 28 * - COUNT( * ) + 29 ) DIV - COUNT( * ) + + + 63 - - 8 + 61 + + 33 + 3 * 90 * + 30
----
8213

skipif mysql # not compatible
query I rowsort label-2168
SELECT - COALESCE ( - 52, - - ( + COUNT ( * ) ), + + CAST ( NULL AS INTEGER ) * ( - - 35 ), + 28 * - COUNT ( * ) + 29 ) / - COUNT ( * ) + + + 63 - - 8 + 61 + + 33 + 3 * 90 * + 30
----
8213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2169
SELECT 79 * COALESCE ( 53, + 83, - 77 + + CAST( - SUM( ALL - - 13 ) AS SIGNED ), + 86 + + 98 )
----
4187

skipif mysql # not compatible
query I rowsort label-2169
SELECT 79 * COALESCE ( 53, + 83, - 77 + + CAST ( - SUM ( ALL - - 13 ) AS INTEGER ), + 86 + + 98 )
----
4187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2170
SELECT ALL - 76 DIV 3 DIV - - 45 + SUM( 30 )
----
30

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL - 76 / 3 / - - 45 + SUM ( 30 )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT DISTINCT - - 86 + 52 + + 16 DIV - - 25 AS col2
----
138

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT - - 86 + 52 + + 16 / - - 25 AS col2
----
138

query I rowsort
SELECT ALL - 26 + - 19 + - + 69 col0
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2173
SELECT 58 + + 85 + - + CAST( + 78 AS SIGNED ) - + + 69
----
-4

skipif mysql # not compatible
query I rowsort label-2173
SELECT 58 + + 85 + - + CAST ( + 78 AS INTEGER ) - + + 69
----
-4

query I rowsort
SELECT ALL - 15 + + - 93
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-2175
SELECT DISTINCT - COUNT( * ) AS col2, - 66 * + 79 + + ( - 32 )
----
-1
-5246

skipif mysql # not compatible
query II rowsort label-2175
SELECT DISTINCT - COUNT ( * ) AS col2, - 66 * + 79 + + ( - 32 )
----
-1
-5246

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT 71 * + + 68 * - - 44 * + + 87 + COUNT( * ) + - ( - 8 )
----
18481593

skipif mysql # not compatible
query I rowsort label-2176
SELECT 71 * + + 68 * - - 44 * + + 87 + COUNT ( * ) + - ( - 8 )
----
18481593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2177
SELECT ALL - CAST( - + 44 AS SIGNED ) + + CAST( - 60 AS SIGNED ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL - CAST ( - + 44 AS INTEGER ) + + CAST ( - 60 AS INTEGER ) AS col2
----
-16

query I rowsort
SELECT 37 + - - 75 * 24 AS col0
----
1837

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT - COALESCE ( - + 11, 30, - 1 ) * - COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-2179
SELECT - COALESCE ( - + 11, 30, - 1 ) * - COUNT ( * ) AS col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2180
SELECT ALL COUNT( * ) + + + COUNT( * ) + 52 + + - 47 DIV 30 + - - 12 * + 67 * + + COUNT( * ) DIV + - COUNT( * ) AS col0
----
-751

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL COUNT ( * ) + + + COUNT ( * ) + 52 + + - 47 / 30 + - - 12 * + 67 * + + COUNT ( * ) / + - COUNT ( * ) AS col0
----
-751

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2181
SELECT - CAST( 62 AS SIGNED ) + - + NULLIF ( + CASE - 80 WHEN + 93 THEN NULL WHEN 57 THEN - + COALESCE ( + 19, - - 40 + 57 ) ELSE NULL END, 12 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2181
SELECT - CAST ( 62 AS INTEGER ) + - + NULLIF ( + CASE - 80 WHEN + 93 THEN NULL WHEN 57 THEN - + COALESCE ( + 19, - - 40 + 57 ) ELSE NULL END, 12 ) AS col0
----
NULL

query I rowsort
SELECT 11 * - 94 + + 8 AS col1
----
-1026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2183
SELECT - CASE + - 75 WHEN + + 16 THEN - COUNT( * ) * 17 DIV + - 91 + 5 DIV + - 10 * - - ( 19 ) + + + CAST( NULL AS SIGNED ) + + 86 + + - NULLIF ( + 12, - 74 * 58 ) DIV - 35 DIV + - COUNT( * ) + + 92 WHEN - - ( 58 ) * - + 99 * - NULLIF ( + COALESCE ( - + 61, + + 39 + + - 76 + + COUNT( * ) ), + COUNT( * ) ) * - 29 - - 63 THEN NULL ELSE - 29 + 17 END + + 27 col2
----
39

skipif mysql # not compatible
query I rowsort label-2183
SELECT - CASE + - 75 WHEN + + 16 THEN - COUNT ( * ) * 17 / + - 91 + 5 / + - 10 * - - ( 19 ) + + + CAST ( NULL AS INTEGER ) + + 86 + + - NULLIF ( + 12, - 74 * 58 ) / - 35 / + - COUNT ( * ) + + 92 WHEN - - ( 58 ) * - + 99 * - NULLIF ( + COALESCE ( - + 61, + + 39 + + - 76 + + COUNT ( * ) ), + COUNT ( * ) ) * - 29 - - 63 THEN NULL ELSE - 29 + 17 END + + 27 col2
----
39

query I rowsort
SELECT ALL + 0 + - 33 + - 55 AS col0
----
-88

query II rowsort
SELECT + + ( ( - 89 ) ), + 50 AS col0
----
-89
50

query I rowsort
SELECT ALL - 30 * + - 2 AS col2
----
60

query I rowsort
SELECT DISTINCT + 72 - - + 7 col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2188
SELECT ALL - - NULLIF ( - COALESCE ( 42, - 42 ), - CAST( + 88 AS SIGNED ) )
----
-42

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL - - NULLIF ( - COALESCE ( 42, - 42 ), - CAST ( + 88 AS INTEGER ) )
----
-42

query I rowsort
SELECT 96 + - 34 + 8 AS col1
----
70

query I rowsort
SELECT ALL 29 * 3 * + 38
----
3306

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT 3 * COUNT( - ( 62 ) )
----
3

skipif mysql # not compatible
query I rowsort label-2191
SELECT 3 * COUNT ( - ( 62 ) )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2192
SELECT 74 + + + CAST( ( 75 ) AS SIGNED ) AS col1
----
149

skipif mysql # not compatible
query I rowsort label-2192
SELECT 74 + + + CAST ( ( 75 ) AS INTEGER ) AS col1
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2193
SELECT + 60 * + 77 * - COUNT( * ) + + 65 AS col2, - 71 DIV - 9
----
-4555
7

skipif mysql # not compatible
query II rowsort label-2193
SELECT + 60 * + 77 * - COUNT ( * ) + + 65 AS col2, - 71 / - 9
----
-4555
7

query I rowsort
SELECT ALL 93 * + 24
----
2232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2195
SELECT 93 + + CASE - - ( - 5 ) WHEN - 51 DIV + COUNT( * ) * - + 8 THEN + 82 WHEN - + 41 THEN NULL ELSE - + 73 END DIV - 95 + - 5 + - 68 + - 8 DIV + 50 * + 19 + - 61 * - 23
----
1423

skipif mysql # not compatible
query I rowsort label-2195
SELECT 93 + + CASE - - ( - 5 ) WHEN - 51 / + COUNT ( * ) * - + 8 THEN + 82 WHEN - + 41 THEN NULL ELSE - + 73 END / - 95 + - 5 + - 68 + - 8 / + 50 * + 19 + - 61 * - 23
----
1423

query I rowsort
SELECT 31 + ( - 17 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT COUNT( * ) + 77 * 34 * - ( - 15 ) AS col1
----
39271

skipif mysql # not compatible
query I rowsort label-2197
SELECT COUNT ( * ) + 77 * 34 * - ( - 15 ) AS col1
----
39271

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT ALL COALESCE ( COUNT( * ), COUNT( * ) ) * - 72
----
-72

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL COALESCE ( COUNT ( * ), COUNT ( * ) ) * - 72
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT ALL - 64 DIV 41 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL - 64 / 41 AS col0
----
-1

query I rowsort
SELECT 37 + + 95 AS col2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT COUNT( * ) * NULLIF ( COUNT( * ), MIN( - 34 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2201
SELECT COUNT ( * ) * NULLIF ( COUNT ( * ), MIN ( - 34 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT DISTINCT + CASE + - 80 WHEN - 16 THEN NULL WHEN COUNT( * ) THEN - + 73 WHEN - 60 THEN NULL ELSE NULL END + + + COUNT( * ) * + COUNT( * ) * + COUNT( * ) / - ( + + 23 ) + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT + CASE + - 80 WHEN - 16 THEN NULL WHEN COUNT ( * ) THEN - + 73 WHEN - 60 THEN NULL ELSE NULL END + + + COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) / - ( + + 23 ) + + 26
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2203
SELECT + 9 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2203
SELECT + 9 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 89 + + - 53 - + 37 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT ALL - COUNT( * ) + - 92 + - 86
----
-179

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL - COUNT ( * ) + - 92 + - 86
----
-179

query I rowsort
SELECT NULLIF ( + 13, - 48 - 84 * - + 75 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT ALL - MAX( - 99 ) * 67 * - COUNT( * )
----
-6633

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL - MAX ( - 99 ) * 67 * - COUNT ( * )
----
-6633

query I rowsort
SELECT DISTINCT + - 50 * - 44 + + 39
----
2239

query I rowsort
SELECT ALL - 16 * - 40 + 7 col1
----
647

query I rowsort
SELECT + NULLIF ( - 2, 8 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2211
SELECT DISTINCT + CASE - ( 40 ) WHEN - + 16 + - 76 * - + 71 THEN 16 WHEN - - ( - 99 ) / + + 63 THEN NULL WHEN 98 + - 77 THEN NULL ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2211
SELECT DISTINCT + CASE - ( 40 ) WHEN - + 16 + - 76 * - + 71 THEN 16 WHEN - - ( - 99 ) / + + 63 THEN NULL WHEN 98 + - 77 THEN NULL ELSE CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2212
SELECT + 29 DIV - 84 + - - 15 + 18 + + - 62 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-2212
SELECT + 29 / - 84 + - - 15 + 18 + + - 62 AS col2
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2213
SELECT DISTINCT - 70 DIV - 8 + + 44 + COUNT( * ) + + + 27 * - + 53 * - - 45 + + 82 AS col1
----
-64260

skipif mysql # not compatible
query I rowsort label-2213
SELECT DISTINCT - 70 / - 8 + + 44 + COUNT ( * ) + + + 27 * - + 53 * - - 45 + + 82 AS col1
----
-64260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2214
SELECT - ( + 87 ) * 18 - + 93 * 63 - + CAST( 12 AS SIGNED )
----
-7437

skipif mysql # not compatible
query I rowsort label-2214
SELECT - ( + 87 ) * 18 - + 93 * 63 - + CAST ( 12 AS INTEGER )
----
-7437

query I rowsort
SELECT ALL + - 44 AS col0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2216
SELECT DISTINCT + + CAST( - 56 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-2216
SELECT DISTINCT + + CAST ( - 56 AS INTEGER )
----
-56

query I rowsort
SELECT + 35 * + 27
----
945

query I rowsort
SELECT + 11 * + 31
----
341

query I rowsort
SELECT DISTINCT 52 * + 3
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT + NULLIF ( + - 58, - NULLIF ( + - 57, COUNT( * ) * + 87 / - + 56 + - COUNT( * ) - + - 26 ) ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-2220
SELECT + NULLIF ( + - 58, - NULLIF ( + - 57, COUNT ( * ) * + 87 / - + 56 + - COUNT ( * ) - + - 26 ) ) AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2221
SELECT DISTINCT - CASE - - ( - - CASE + 62 WHEN - 9 THEN - - ( 88 ) * + NULLIF ( 93, + - 45 ) + - 40 + + - COUNT( + - 89 ) + + 59 / - 2 END ) WHEN - CASE 64 WHEN 70 + + 73 * - + COALESCE ( + 13, - + 36, + ( + ( + 99 ) ) ) THEN + 97 ELSE + 59 * + - COUNT( * ) + 80 - - - COUNT( * ) - - 35 END THEN + 68 * ( 42 ) WHEN + 77 * 13 THEN + 61 ELSE ( + COUNT( * ) ) * ( 80 + MIN( NULLIF ( + NULLIF ( 99, 9 ), + CAST( NULL AS SIGNED ) / 4 ) ) * - 82 ) END * + 78 AS col1
----
626964

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT - CASE - - ( - - CASE + 62 WHEN - 9 THEN - - ( 88 ) * + NULLIF ( 93, + - 45 ) + - 40 + + - COUNT ( + - 89 ) + + 59 / - 2 END ) WHEN - CASE 64 WHEN 70 + + 73 * - + COALESCE ( + 13, - + 36, + ( + ( + 99 ) ) ) THEN + 97 ELSE + 59 * + - COUNT ( * ) + 80 - - - COUNT ( * ) - - 35 END THEN + 68 * ( 42 ) WHEN + 77 * 13 THEN + 61 ELSE ( + COUNT ( * ) ) * ( 80 + MIN ( NULLIF ( + NULLIF ( 99, 9 ), + CAST ( NULL AS INTEGER ) / 4 ) ) * - 82 ) END * + 78 AS col1
----
626964

query II rowsort
SELECT DISTINCT 33 AS col2, - 42
----
33
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-2223
SELECT + 28 - - 75 + ( + 90 ) * - 37 * + - 9 + - - MIN( DISTINCT - 90 ) AS col2, + 11 AS col1
----
29983
11

skipif mysql # not compatible
query II rowsort label-2223
SELECT + 28 - - 75 + ( + 90 ) * - 37 * + - 9 + - - MIN ( DISTINCT - 90 ) AS col2, + 11 AS col1
----
29983
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-2224
SELECT + 45 * - + 58 * - CAST( NULL AS DECIMAL ) AS col1, - 7 DIV - + ( SUM( 58 ) ) + 27 * - - 23 * - CAST( 12 AS SIGNED ) + - COUNT( * ) * - - 42 * + 3
----
NULL
-7578

skipif mysql # not compatible
query II rowsort label-2224
SELECT + 45 * - + 58 * - CAST ( NULL AS REAL ) AS col1, - 7 / - + ( SUM ( 58 ) ) + 27 * - - 23 * - CAST ( 12 AS INTEGER ) + - COUNT ( * ) * - - 42 * + 3
----
NULL
-7578

query I rowsort
SELECT ALL 51 + + 33
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT - CASE + 97 WHEN COUNT( * ) + - 73 + - - COUNT( * ) * - 53 + - - ( + + 80 ) THEN 13 * COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2226
SELECT - CASE + 97 WHEN COUNT ( * ) + - 73 + - - COUNT ( * ) * - 53 + - - ( + + 80 ) THEN 13 * COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2227
SELECT ALL ( - CAST( NULL AS SIGNED ) ) + + ( - 36 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) + + ( - 36 ) AS col1
----
NULL

query I rowsort
SELECT + 92 + 46 * + 21 + + - 37 AS col2
----
1021

query I rowsort
SELECT + 9 * + + 30
----
270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2230
SELECT + 15 * MAX( ALL 69 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2230
SELECT + 15 * MAX ( ALL 69 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2231
SELECT DISTINCT COALESCE ( MAX( DISTINCT - CAST( NULL AS SIGNED ) ), + 79 ) + + 34 AS col1
----
113

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT COALESCE ( MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ), + 79 ) + + 34 AS col1
----
113

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2232
SELECT - NULLIF ( 4, + - COUNT( * ) + + + AVG ( ALL CAST( NULL AS DECIMAL ) ) + + 14 + 66 / - - 37 * 52 - + 69 )
----
-4

skipif mysql # not compatible
query I rowsort label-2232
SELECT - NULLIF ( 4, + - COUNT ( * ) + + + AVG ( ALL CAST ( NULL AS REAL ) ) + + 14 + 66 / - - 37 * 52 - + 69 )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2233
SELECT 99, CASE + 63 WHEN + + ( - 4 ) * + 38 * 74 THEN + - CASE - ( + ( - 93 ) ) WHEN 48 THEN + - 69 * - 58 WHEN COALESCE ( - + 88, + + 99 ) THEN NULL WHEN - - 55 THEN NULL ELSE NULL END WHEN + + 37 + + 49 + - - COUNT( + - NULLIF ( + - 77, - 36 ) ) * - 26 THEN - 55 + + - 88 END * - CAST( - 24 AS DECIMAL ) + + 26 AS col2
----
99
NULL

skipif mysql # not compatible
query II rowsort label-2233
SELECT 99, CASE + 63 WHEN + + ( - 4 ) * + 38 * 74 THEN + - CASE - ( + ( - 93 ) ) WHEN 48 THEN + - 69 * - 58 WHEN COALESCE ( - + 88, + + 99 ) THEN NULL WHEN - - 55 THEN NULL ELSE NULL END WHEN + + 37 + + 49 + - - COUNT ( + - NULLIF ( + - 77, - 36 ) ) * - 26 THEN - 55 + + - 88 END * - CAST ( - 24 AS REAL ) + + 26 AS col2
----
99
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2234
SELECT 72 AS col1, MAX( DISTINCT + 98 ) + + CAST( - 97 AS SIGNED )
----
72
1

skipif mysql # not compatible
query II rowsort label-2234
SELECT 72 AS col1, MAX ( DISTINCT + 98 ) + + CAST ( - 97 AS INTEGER )
----
72
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2235
SELECT + COALESCE ( 20, - ( - MAX( DISTINCT + 96 ) ) ) * 71 + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2235
SELECT + COALESCE ( 20, - ( - MAX ( DISTINCT + 96 ) ) ) * 71 + - CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT + - ( + 23 ) * 91 AS col2, + ( 97 )
----
-2093
97

query I rowsort
SELECT ALL ( 87 ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT - + 13 - 36 * + - MIN( DISTINCT + 51 ) * COUNT( * )
----
1823

skipif mysql # not compatible
query I rowsort label-2238
SELECT - + 13 - 36 * + - MIN ( DISTINCT + 51 ) * COUNT ( * )
----
1823

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT - + 55 * + COUNT( * ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-2239
SELECT - + 55 * + COUNT ( * ) col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-2240
SELECT + 85 * 58 DIV 11 - - + 85 + - + 42 DIV 59 * ( - + 1 ) + 22
----
555

skipif mysql # not compatible
query I rowsort label-2240
SELECT + 85 * 58 / 11 - - + 85 + - + 42 / 59 * ( - + 1 ) + 22
----
555

onlyif mysql # DIV for integer division: 
query I rowsort label-2241
SELECT - - 38 DIV + 44 + 26
----
26

skipif mysql # not compatible
query I rowsort label-2241
SELECT - - 38 / + 44 + 26
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2242
SELECT ALL + 33 DIV - 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL + 33 / - 54 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2243
SELECT + MIN( DISTINCT - - 9 ) DIV + + 50 + - 81 - + + 66 AS col0, + 62 + - CAST( 55 AS SIGNED )
----
-147
7

skipif mysql # not compatible
query II rowsort label-2243
SELECT + MIN ( DISTINCT - - 9 ) / + + 50 + - 81 - + + 66 AS col0, + 62 + - CAST ( 55 AS INTEGER )
----
-147
7

query I rowsort
SELECT - ( 57 ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT - 75 + + COUNT( * ) * + COUNT( * ) + 11 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-2245
SELECT - 75 + + COUNT ( * ) * + COUNT ( * ) + 11 AS col2
----
-63

query I rowsort
SELECT ALL - 92 * - 83 AS col0
----
7636

query I rowsort
SELECT - - 86 * + - 81
----
-6966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2248
SELECT ALL + + CASE CAST( 77 AS SIGNED ) WHEN - + ( - COUNT( * ) ) + + NULLIF ( + CASE + + COUNT( * ) WHEN 8 THEN - 82 ELSE - 93 END, - ( + MIN( DISTINCT + - 92 ) ) ) * + 23 THEN NULL WHEN CAST( + 48 AS SIGNED ) THEN NULL ELSE 35 END
----
35

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL + + CASE CAST ( 77 AS INTEGER ) WHEN - + ( - COUNT ( * ) ) + + NULLIF ( + CASE + + COUNT ( * ) WHEN 8 THEN - 82 ELSE - 93 END, - ( + MIN ( DISTINCT + - 92 ) ) ) * + 23 THEN NULL WHEN CAST ( + 48 AS INTEGER ) THEN NULL ELSE 35 END
----
35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2249
SELECT - - 39 DIV - + CAST( COALESCE ( - + 92, + 38 ) AS SIGNED ) + + - ( 84 ) col0
----
-84

skipif mysql # not compatible
query I rowsort label-2249
SELECT - - 39 / - + CAST ( COALESCE ( - + 92, + 38 ) AS INTEGER ) + + - ( 84 ) col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2250
SELECT + COALESCE ( 6, 70 * + + MIN( + 4 ) ) + + - CASE + 39 WHEN - COALESCE ( MIN( 95 ), + + ( 89 ) * - COUNT( * ) + + + 2, ( 58 ) * 24 + + ( 41 ) + 54 * - 71 + + CAST( NULL AS SIGNED ) * + + 77 * + ( 23 ) + - 3 ) THEN - + 60 * ( + 97 ) * + - 12 + + ( 1 ) * 69 ELSE 33 DIV - 86 END AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2250
SELECT + COALESCE ( 6, 70 * + + MIN ( + 4 ) ) + + - CASE + 39 WHEN - COALESCE ( MIN ( 95 ), + + ( 89 ) * - COUNT ( * ) + + + 2, ( 58 ) * 24 + + ( 41 ) + 54 * - 71 + + CAST ( NULL AS INTEGER ) * + + 77 * + ( 23 ) + - 3 ) THEN - + 60 * ( + 97 ) * + - 12 + + ( 1 ) * 69 ELSE 33 / - 86 END AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2251
SELECT - 11 DIV + + 99
----
0

skipif mysql # not compatible
query I rowsort label-2251
SELECT - 11 / + + 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT - COALESCE ( + ( + 38 ), COUNT( * ) ) * + + 29 + - - 79 col0
----
-1023

skipif mysql # not compatible
query I rowsort label-2252
SELECT - COALESCE ( + ( + 38 ), COUNT ( * ) ) * + + 29 + - - 79 col0
----
-1023

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2253
SELECT CAST( NULL AS DECIMAL ) * - COUNT( * ) + + 91 - - 74 / 21 * - 40 + - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2253
SELECT CAST ( NULL AS REAL ) * - COUNT ( * ) + + 91 - - 74 / 21 * - 40 + - 79 AS col1
----
NULL

query I rowsort
SELECT - 88 + + 75 AS col1
----
-13

query I rowsort
SELECT ( - 44 ) AS col1
----
-44

query I rowsort
SELECT - 64 + - 28 col1
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT ALL + ( + 63 ) DIV + + 32 col2
----
1

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL + ( + 63 ) / + + 32 col2
----
1

query I rowsort
SELECT 0 * 56 + + - COALESCE ( + 78, 70 ) AS col1
----
-78

query II rowsort
SELECT ALL + 47 AS col0, - 1
----
47
-1

query I rowsort
SELECT DISTINCT - 30 * + 17 + - 76 * + 54 * + ( + - 56 ) + 24
----
229338

query I rowsort
SELECT - 28 + + 34
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2262
SELECT ALL CAST( NULL AS SIGNED ) * + + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL CAST ( NULL AS INTEGER ) * + + 61 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2263
SELECT - 45 DIV 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2263
SELECT - 45 / 88 AS col0
----
0

query I rowsort
SELECT ALL - 14 * - 74 + - 18 + - - 68 AS col2
----
1086

query I rowsort
SELECT 92 * 1 + + NULLIF ( + 65, + 77 ) AS col2
----
157

query I rowsort
SELECT ALL + 65 * ( + 52 )
----
3380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2267
SELECT - 9 + 93 - + 79 * + + CAST( NULL AS SIGNED ) * - ( - - CAST( NULL AS SIGNED ) ) AS col1, - NULLIF ( ( + 65 ), - + COUNT( * ) ) AS col1
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-2267
SELECT - 9 + 93 - + 79 * + + CAST ( NULL AS INTEGER ) * - ( - - CAST ( NULL AS INTEGER ) ) AS col1, - NULLIF ( ( + 65 ), - + COUNT ( * ) ) AS col1
----
NULL
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2268
SELECT ALL - CAST( NULL AS SIGNED ) * - - 11 * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 11 * - 64
----
NULL

query I rowsort
SELECT ALL 73 + 64 + + 72
----
209

onlyif mysql # aggregate syntax: 
query II rowsort label-2270
SELECT - CASE + 94 WHEN + 36 THEN 43 + - 3 + - + 45 WHEN + CASE COUNT( * ) WHEN 85 * + 9 + 77 * - 80 * + - 8 - + 71 THEN - 70 WHEN 28 THEN - COUNT( DISTINCT 16 ) END THEN NULL WHEN - - 92 THEN + - 48 - - - 89 END AS col0, 60 AS col2
----
NULL
60

skipif mysql # not compatible
query II rowsort label-2270
SELECT - CASE + 94 WHEN + 36 THEN 43 + - 3 + - + 45 WHEN + CASE COUNT ( * ) WHEN 85 * + 9 + 77 * - 80 * + - 8 - + 71 THEN - 70 WHEN 28 THEN - COUNT ( DISTINCT 16 ) END THEN NULL WHEN - - 92 THEN + - 48 - - - 89 END AS col0, 60 AS col2
----
NULL
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT ALL + COUNT( * ) * 83
----
83

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL + COUNT ( * ) * 83
----
83

query I rowsort
SELECT + + 8 + COALESCE ( - 69, 52 ) AS col0
----
-61

query II rowsort
SELECT ALL 33 AS col1, 43 AS col0
----
33
43

query I rowsort
SELECT + 57 + + 22 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL - + 29 + + - COUNT( - 2 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL - + 29 + + - COUNT ( - 2 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT DISTINCT + 70 + + + COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT + 70 + + + COUNT ( * ) AS col0
----
71

query I rowsort
SELECT 43 * + 96 AS col0
----
4128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2278
SELECT DISTINCT 49 DIV - ( + ( - + 59 ) ) DIV - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2278
SELECT DISTINCT 49 / - ( + ( - + 59 ) ) / - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ALL - COALESCE ( + + 94, - + 64 ) AS col0
----
-94

query I rowsort
SELECT 33 + + 78 * + - 95
----
-7377

query I rowsort
SELECT ALL 67 * 91 AS col2
----
6097

query I rowsort
SELECT - 7 + 85 * + 85 + 77 AS col0
----
7295

query I rowsort
SELECT ALL 76 * - 52
----
-3952

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2284
SELECT DISTINCT + - 24 DIV + + COUNT( * ) + - + ( - - 66 ), + 50 AS col0
----
-90
50

skipif mysql # not compatible
query II rowsort label-2284
SELECT DISTINCT + - 24 / + + COUNT ( * ) + - + ( - - 66 ), + 50 AS col0
----
-90
50

onlyif mysql # aggregate syntax: 
query II rowsort label-2285
SELECT - - 12 AS col0, CASE - 18 WHEN 62 THEN NULL WHEN + 84 THEN + ( 99 ) END + + 9 * - COUNT( * ) * - 85
----
12
NULL

skipif mysql # not compatible
query II rowsort label-2285
SELECT - - 12 AS col0, CASE - 18 WHEN 62 THEN NULL WHEN + 84 THEN + ( 99 ) END + + 9 * - COUNT ( * ) * - 85
----
12
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2286
SELECT ALL - + COUNT( * ), 45 * 55 * + 91 AS col1
----
-1
225225

skipif mysql # not compatible
query II rowsort label-2286
SELECT ALL - + COUNT ( * ), 45 * 55 * + 91 AS col1
----
-1
225225

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2287
SELECT - 1, COUNT( * ) - - + CAST( NULL AS DECIMAL ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2287
SELECT - 1, COUNT ( * ) - - + CAST ( NULL AS REAL ) AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2288
SELECT + 74, COUNT( * ) AS col2
----
74
1

skipif mysql # not compatible
query II rowsort label-2288
SELECT + 74, COUNT ( * ) AS col2
----
74
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2289
SELECT ALL 79 DIV - 74 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL 79 / - 74 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2290
SELECT ALL - 41 AS col0, + SUM( + 96 )
----
-41
96

skipif mysql # not compatible
query II rowsort label-2290
SELECT ALL - 41 AS col0, + SUM ( + 96 )
----
-41
96

query II rowsort
SELECT + 24 col2, 8 - - 63
----
24
71

query I rowsort
SELECT CASE + - 34 WHEN - 71 + + 86 THEN 41 ELSE NULL END * + 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT ALL + COUNT( * ) + - + NULLIF ( + 41, + + CASE + 22 WHEN + 81 / + + 85 THEN - + COUNT( * ) WHEN + + 24 * + COALESCE ( - AVG ( DISTINCT 90 ), - - 52 ) THEN NULL END )
----
-40

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL + COUNT ( * ) + - + NULLIF ( + 41, + + CASE + 22 WHEN + 81 / + + 85 THEN - + COUNT ( * ) WHEN + + 24 * + COALESCE ( - AVG ( DISTINCT 90 ), - - 52 ) THEN NULL END )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT DISTINCT MAX( - 39 ) + ( - - 42 )
----
3

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT MAX ( - 39 ) + ( - - 42 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT 31 * 42 * + - CASE + MAX( ALL - 94 ) WHEN + - 65 - 40 THEN + + 99 WHEN - COALESCE ( - ( + - CASE - 26 WHEN 42 THEN 50 ELSE + COALESCE ( - - COUNT( * ), - MAX( DISTINCT - ( - - 67 ) ), 94 ) / COUNT( * ) + NULLIF ( COUNT( 30 ), + 41 ) END ), + MIN( ALL + 12 ) ) THEN NULL ELSE + ( - 63 ) + - 84 END AS col2
----
191394

skipif mysql # not compatible
query I rowsort label-2295
SELECT 31 * 42 * + - CASE + MAX ( ALL - 94 ) WHEN + - 65 - 40 THEN + + 99 WHEN - COALESCE ( - ( + - CASE - 26 WHEN 42 THEN 50 ELSE + COALESCE ( - - COUNT ( * ), - MAX ( DISTINCT - ( - - 67 ) ), 94 ) / COUNT ( * ) + NULLIF ( COUNT ( 30 ), + 41 ) END ), + MIN ( ALL + 12 ) ) THEN NULL ELSE + ( - 63 ) + - 84 END AS col2
----
191394

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT ( + 82 ) * + CASE + 11 WHEN 63 + COUNT( * ) + - COUNT( * ) * - 90 THEN - + ( - + COUNT( * ) ) + - 32 + + 89 * + 79 * - 15 ELSE NULL END + + - 58 * - 47 / + 12 * - 68 * + 5 + ( - 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2296
SELECT ( + 82 ) * + CASE + 11 WHEN 63 + COUNT ( * ) + - COUNT ( * ) * - 90 THEN - + ( - + COUNT ( * ) ) + - 32 + + 89 * + 79 * - 15 ELSE NULL END + + - 58 * - 47 / + 12 * - 68 * + 5 + ( - 69 )
----
NULL

query I rowsort
SELECT 5 * 43 * + - 7 + - - 8
----
-1497

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2298
SELECT CAST( NULL AS SIGNED ) + + - NULLIF ( ( COUNT( * ) ), + 44 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2298
SELECT CAST ( NULL AS INTEGER ) + + - NULLIF ( ( COUNT ( * ) ), + 44 ) AS col0
----
NULL

query I rowsort
SELECT 56 * - 14 AS col0
----
-784

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT COUNT( DISTINCT - COALESCE ( 82, - - 39 ) ) + 39
----
40

skipif mysql # not compatible
query I rowsort label-2300
SELECT COUNT ( DISTINCT - COALESCE ( 82, - - 39 ) ) + 39
----
40

query I rowsort
SELECT ALL - 6 + 49
----
43

query II rowsort
SELECT ALL + 43 + - 19 AS col1, - 32 col0
----
24
-32

query I rowsort
SELECT 46 * 47 col0
----
2162

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT ALL - 34 * - 2 * + - CASE - 56 WHEN MAX( ALL + 88 ) * - + 29 * + 69 THEN - + NULLIF ( + COUNT( * ), 54 ) ELSE - + 59 END * + COALESCE ( + 69, + 5 + - 73 + 67, - 97 + 38 + + - 1 * - + COUNT( * ) + + COUNT( * ) ) col0
----
276828

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL - 34 * - 2 * + - CASE - 56 WHEN MAX ( ALL + 88 ) * - + 29 * + 69 THEN - + NULLIF ( + COUNT ( * ), 54 ) ELSE - + 59 END * + COALESCE ( + 69, + 5 + - 73 + 67, - 97 + 38 + + - 1 * - + COUNT ( * ) + + COUNT ( * ) ) col0
----
276828

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT DISTINCT - COUNT( * ) * 72
----
-72

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT - COUNT ( * ) * 72
----
-72

query I rowsort
SELECT ALL 81 - - 94 * 99
----
9387

query I rowsort
SELECT ALL + 7 * - 99 + + - 96
----
-789

query I rowsort
SELECT DISTINCT - 49 * + - 22 - - 23
----
1101

onlyif mysql # DIV for integer division: 
query I rowsort label-2309
SELECT 17 DIV - - 10
----
1

skipif mysql # not compatible
query I rowsort label-2309
SELECT 17 / - - 10
----
1

query I rowsort
SELECT ALL + ( 46 ) col2
----
46

query II rowsort
SELECT + 30 - - 31, 26 - 43 * - 95 AS col2
----
61
4111

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT 50 * - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-2312
SELECT 50 * - COUNT ( * )
----
-50

query I rowsort
SELECT ALL + 47 * - 69
----
-3243

query I rowsort
SELECT + NULLIF ( - 43, + + 96 ) - + + 39
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT 7 + MAX( + 69 )
----
76

skipif mysql # not compatible
query I rowsort label-2315
SELECT 7 + MAX ( + 69 )
----
76

query I rowsort
SELECT - 93 - + - 0 + - 26
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2317
SELECT ALL 68 * CAST( + + 25 AS SIGNED ) AS col2
----
1700

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL 68 * CAST ( + + 25 AS INTEGER ) AS col2
----
1700

query I rowsort
SELECT + - 10 * - 72 * - - 86 + 49 + + 90 + - - 56 AS col0
----
62115

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT COUNT( ALL + - 6 )
----
1

skipif mysql # not compatible
query I rowsort label-2319
SELECT COUNT ( ALL + - 6 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT - COALESCE ( ( - - MAX( DISTINCT 85 ) ), + 97, - 23 - + 84 ) col0
----
-85

skipif mysql # not compatible
query I rowsort label-2320
SELECT - COALESCE ( ( - - MAX ( DISTINCT 85 ) ), + 97, - 23 - + 84 ) col0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2321
SELECT ALL + - MIN( ALL - + 7 ) * + - CAST( NULL AS SIGNED ) + + 20 - + + COUNT( * ) + 91 * AVG ( DISTINCT - 82 ) * - - 74 + + MIN( DISTINCT + 29 ) - + 78 + + 79 * + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL + - MIN ( ALL - + 7 ) * + - CAST ( NULL AS INTEGER ) + + 20 - + + COUNT ( * ) + 91 * AVG ( DISTINCT - 82 ) * - - 74 + + MIN ( DISTINCT + 29 ) - + 78 + + 79 * + 9 AS col2
----
NULL

query I rowsort
SELECT ALL - 53 * - 34 * - 47 + 39 * - + NULLIF ( 96, - 80 / + - 40 * - 26 )
----
-88438

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT ALL - 76 * + - 72 + COUNT( * ) * - 61 AS col0
----
5411

skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL - 76 * + - 72 + COUNT ( * ) * - 61 AS col0
----
5411

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT SUM( + - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-2324
SELECT SUM ( + - 7 )
----
-7

query I rowsort
SELECT 10 * - 66 + + 75 - + + 56 * - + 25 + - 35 AS col0
----
780

query I rowsort
SELECT 2 * CASE + - 61 WHEN + 52 * + 93 - + 32 THEN + 43 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT SUM( - 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-2327
SELECT SUM ( - 17 ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-2328
SELECT + MIN( ALL - - ( 58 ) ) AS col1, - ( + 15 ) AS col2
----
58
-15

skipif mysql # not compatible
query II rowsort label-2328
SELECT + MIN ( ALL - - ( 58 ) ) AS col1, - ( + 15 ) AS col2
----
58
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT SUM( - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-2329
SELECT SUM ( - 90 )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-2330
SELECT 21 DIV - COALESCE ( - 63, - 85 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2330
SELECT 21 / - COALESCE ( - 63, - 85 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT ALL 57 + - CASE - + 23 WHEN ( - + COUNT( DISTINCT + 14 ) ) * + 46 + - 0 * COUNT( DISTINCT - 87 ) THEN NULL WHEN - 45 + + 15 + + 56 + + + MIN( ALL - - 50 ) * - ( - - COALESCE ( 85, - 17 / - 31 ) ) / 41 THEN - ( 85 ) / 96 + - - 30 END + + 20 * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL 57 + - CASE - + 23 WHEN ( - + COUNT ( DISTINCT + 14 ) ) * + 46 + - 0 * COUNT ( DISTINCT - 87 ) THEN NULL WHEN - 45 + + 15 + + 56 + + + MIN ( ALL - - 50 ) * - ( - - COALESCE ( 85, - 17 / - 31 ) ) / 41 THEN - ( 85 ) / 96 + - - 30 END + + 20 * - 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT + MAX( ALL - - 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-2332
SELECT + MAX ( ALL - - 72 ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-2333
SELECT ALL - 72 AS col0, - COUNT( * ) AS col1
----
-72
-1

skipif mysql # not compatible
query II rowsort label-2333
SELECT ALL - 72 AS col0, - COUNT ( * ) AS col1
----
-72
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT MIN( + 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2334
SELECT MIN ( + 69 ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT + MAX( - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-2335
SELECT + MAX ( - 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT - + COALESCE ( 90, + 79, + MAX( DISTINCT - 25 ) + 95 ) - + 69 AS col0
----
-159

skipif mysql # not compatible
query I rowsort label-2336
SELECT - + COALESCE ( 90, + 79, + MAX ( DISTINCT - 25 ) + 95 ) - + 69 AS col0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT - 66 + + - NULLIF ( ( + COUNT( ALL - 39 ) ), 61 ) * + + 28 * - 90 + + 37
----
2491

skipif mysql # not compatible
query I rowsort label-2337
SELECT - 66 + + - NULLIF ( ( + COUNT ( ALL - 39 ) ), 61 ) * + + 28 * - 90 + + 37
----
2491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2338
SELECT + COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2338
SELECT + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL + CASE - 59 WHEN 45 * 27 + + COUNT( * ) THEN - 34 WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL + CASE - 59 WHEN 45 * 27 + + COUNT ( * ) THEN - 34 WHEN COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT - + 81 * + COALESCE ( + + 10, + 59, + COUNT( * ) )
----
-810

skipif mysql # not compatible
query I rowsort label-2340
SELECT - + 81 * + COALESCE ( + + 10, + 59, + COUNT ( * ) )
----
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2341
SELECT ALL - CAST( + + CASE 10 WHEN - + 31 THEN + 49 + + 21 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL - CAST ( + + CASE 10 WHEN - + 31 THEN + 49 + + 21 END AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT DISTINCT COALESCE ( + - MAX( 94 ), + 20 + - 12 )
----
-94

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT COALESCE ( + - MAX ( 94 ), + 20 + - 12 )
----
-94

query II rowsort
SELECT - 29 AS col0, 55 AS col0
----
-29
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2344
SELECT ALL - + 7 DIV + 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL - + 7 / + 44 AS col0
----
0

query I rowsort
SELECT - 55 + - - ( 24 ) + + + 61
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2346
SELECT DISTINCT - - MIN( ALL + 82 ) * - 10, CAST( NULL AS SIGNED ) * 35 * 82 + - + 91 AS col1
----
-820
NULL

skipif mysql # not compatible
query II rowsort label-2346
SELECT DISTINCT - - MIN ( ALL + 82 ) * - 10, CAST ( NULL AS INTEGER ) * 35 * 82 + - + 91 AS col1
----
-820
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT ALL + - 94 + + MIN( + ( + 77 ) ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL + - 94 + + MIN ( + ( + 77 ) ) AS col0
----
-17

query I rowsort
SELECT - + 24 + 51 AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2349
SELECT - - ( + COALESCE ( + ( 83 ), + MAX( - 25 ), + NULLIF ( + - 59, + CAST( NULL AS SIGNED ) * + + 28 + 33 + + 54 ) - + - 47, - CASE - COUNT( * ) WHEN 55 THEN - + 94 * COUNT( * ) WHEN ( + + 41 ) * - COUNT( * ) * 29 THEN NULL END * - 41 + + 9 + + + 50 + + - 2 ) ) + + 58 * - CASE - CAST( 21 AS SIGNED ) WHEN - - 78 * + - 98 - 92 THEN COUNT( * ) WHEN 4 * + COUNT( + 6 ) THEN 15 + 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2349
SELECT - - ( + COALESCE ( + ( 83 ), + MAX ( - 25 ), + NULLIF ( + - 59, + CAST ( NULL AS INTEGER ) * + + 28 + 33 + + 54 ) - + - 47, - CASE - COUNT ( * ) WHEN 55 THEN - + 94 * COUNT ( * ) WHEN ( + + 41 ) * - COUNT ( * ) * 29 THEN NULL END * - 41 + + 9 + + + 50 + + - 2 ) ) + + 58 * - CASE - CAST ( 21 AS INTEGER ) WHEN - - 78 * + - 98 - 92 THEN COUNT ( * ) WHEN 4 * + COUNT ( + 6 ) THEN 15 + 7 ELSE NULL END
----
NULL

query II rowsort
SELECT - 70 AS col2, - ( - 51 )
----
-70
51

query I rowsort
SELECT - + 80 * 64 AS col1
----
-5120

query I rowsort
SELECT + + 74 + 17 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT NULLIF ( + ( + 59 ), + COUNT( * ) - 52 * + ( - 24 ) + - + 28 ) col1
----
59

skipif mysql # not compatible
query I rowsort label-2353
SELECT NULLIF ( + ( + 59 ), + COUNT ( * ) - 52 * + ( - 24 ) + - + 28 ) col1
----
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2354
SELECT DISTINCT - CAST( - 99 AS SIGNED ) + 71 DIV 57 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT - CAST ( - 99 AS INTEGER ) + 71 / 57 AS col2
----
100

query I rowsort
SELECT DISTINCT - + 52 + - - 15
----
-37

query II rowsort
SELECT ALL 23 + 41, - 68 AS col2
----
64
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT - 29 * + ( - + MIN( ALL + 39 ) ) * - - 21
----
23751

skipif mysql # not compatible
query I rowsort label-2357
SELECT - 29 * + ( - + MIN ( ALL + 39 ) ) * - - 21
----
23751

query I rowsort
SELECT ALL - 32 * + 91 + - - 59 AS col1
----
-2853

query I rowsort
SELECT DISTINCT + CASE + 49 WHEN + - 55 THEN 36 END
----
NULL

query I rowsort
SELECT - 52 * - - 27 - - + 27
----
-1377

query II rowsort
SELECT ( - + 97 ) AS col2, 13 * 31 AS col1
----
-97
403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2362
SELECT ALL + ( CASE 92 WHEN - - 39 + + 84 THEN NULL WHEN CAST( - 53 AS SIGNED ) THEN 50 ELSE + + ( - CAST( + - 11 AS SIGNED ) ) * - 0 END )
----
0

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL + ( CASE 92 WHEN - - 39 + + 84 THEN NULL WHEN CAST ( - 53 AS INTEGER ) THEN 50 ELSE + + ( - CAST ( + - 11 AS INTEGER ) ) * - 0 END )
----
0

query I rowsort
SELECT - 93 * - 37
----
3441

query I rowsort
SELECT + 99 * 59
----
5841

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT + MAX( DISTINCT 22 )
----
22

skipif mysql # not compatible
query I rowsort label-2365
SELECT + MAX ( DISTINCT 22 )
----
22

query I rowsort
SELECT ALL 95 * - + 72 - - 27 + 84 * + - 50 AS col0
----
-11013

query I rowsort
SELECT ALL 74 * - 82
----
-6068

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT + 51 * + 9 + COUNT( * )
----
460

skipif mysql # not compatible
query I rowsort label-2368
SELECT + 51 * + 9 + COUNT ( * )
----
460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2369
SELECT ALL - 89 * 61 - + CAST( + COUNT( * ) AS SIGNED ) + + + 55 AS col2
----
-5375

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL - 89 * 61 - + CAST ( + COUNT ( * ) AS INTEGER ) + + + 55 AS col2
----
-5375

query II rowsort
SELECT + 33 * + 57, - 84 AS col0
----
1881
-84

query I rowsort
SELECT COALESCE ( + 61, ( 72 ), + 93 * - 69 )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2372
SELECT - ( - + COALESCE ( 32, + ( - - 76 ) ) ) * - 4 DIV COUNT( * ) * + - 33 + + ( + COUNT( * ) ) * + - 77
----
4147

skipif mysql # not compatible
query I rowsort label-2372
SELECT - ( - + COALESCE ( 32, + ( - - 76 ) ) ) * - 4 / COUNT ( * ) * + - 33 + + ( + COUNT ( * ) ) * + - 77
----
4147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2373
SELECT + MIN( ALL + 10 ) DIV - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2373
SELECT + MIN ( ALL + 10 ) / - 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT + 97 * + - COUNT( * ) * 49 AS col0
----
-4753

skipif mysql # not compatible
query I rowsort label-2374
SELECT + 97 * + - COUNT ( * ) * 49 AS col0
----
-4753

query I rowsort
SELECT + 46 + + - 94 + - 61
----
-109

query II rowsort
SELECT ALL + ( + 74 ) AS col1, - 93 AS col0
----
74
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2377
SELECT - CAST( - 58 AS SIGNED ) + 12 + 8
----
78

skipif mysql # not compatible
query I rowsort label-2377
SELECT - CAST ( - 58 AS INTEGER ) + 12 + 8
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2378
SELECT + COUNT( * ) DIV ( - - 22 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2378
SELECT + COUNT ( * ) / ( - - 22 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT DISTINCT - COUNT( * ) * 65
----
-65

skipif mysql # not compatible
query I rowsort label-2379
SELECT DISTINCT - COUNT ( * ) * 65
----
-65

query I rowsort
SELECT DISTINCT + 97 * ( 98 )
----
9506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2381
SELECT + + CAST( NULL AS SIGNED ) - 10, 16 DIV COUNT( * ) DIV - COUNT( ( - - 19 ) ) AS col2
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-2381
SELECT + + CAST ( NULL AS INTEGER ) - 10, 16 / COUNT ( * ) / - COUNT ( ( - - 19 ) ) AS col2
----
NULL
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2382
SELECT ALL - 64 + - CAST( - COUNT( * ) AS SIGNED ) * - - 94 + + 6
----
36

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL - 64 + - CAST ( - COUNT ( * ) AS INTEGER ) * - - 94 + + 6
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2383
SELECT + - MIN( - - 6 ) + - CAST( 79 AS SIGNED ) + - - 84 * + 62 * 56
----
291563

skipif mysql # not compatible
query I rowsort label-2383
SELECT + - MIN ( - - 6 ) + - CAST ( 79 AS INTEGER ) + - - 84 * + 62 * 56
----
291563

onlyif mysql # aggregate syntax: 
query II rowsort label-2384
SELECT - COUNT( DISTINCT + 21 ), MAX( DISTINCT 48 ) AS col0
----
-1
48

skipif mysql # not compatible
query II rowsort label-2384
SELECT - COUNT ( DISTINCT + 21 ), MAX ( DISTINCT 48 ) AS col0
----
-1
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2385
SELECT ALL + MIN( ALL CAST( NULL AS SIGNED ) ) + 60 - - AVG ( DISTINCT + + 77 ) - - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL + MIN ( ALL CAST ( NULL AS INTEGER ) ) + 60 - - AVG ( DISTINCT + + 77 ) - - 20
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT + - 9 DIV + + ( + 46 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2386
SELECT + - 9 / + + ( + 46 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2387
SELECT + COALESCE ( 83, 7 DIV + 16 + - - 69 ) - - 12
----
95

skipif mysql # not compatible
query I rowsort label-2387
SELECT + COALESCE ( 83, 7 / + 16 + - - 69 ) - - 12
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT DISTINCT + ( - - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT + ( - - COUNT ( * ) ) AS col0
----
1

query II rowsort
SELECT ALL + COALESCE ( + + 69, + - NULLIF ( + ( + - 71 ), - 19 ) ) + - 63, - 81 AS col1
----
6
-81

query I rowsort
SELECT - 42 - 38
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT ALL - 12 + COUNT( ALL + + 19 )
----
-11

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL - 12 + COUNT ( ALL + + 19 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT ALL + - SUM( + - 90 ) * 91
----
8190

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL + - SUM ( + - 90 ) * 91
----
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT ALL + - COUNT( ALL + + NULLIF ( - - 28, + + 69 * - + 81 + - + ( 15 ) ) ) * - 5
----
5

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL + - COUNT ( ALL + + NULLIF ( - - 28, + + 69 * - + 81 + - + ( 15 ) ) ) * - 5
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2394
SELECT DISTINCT + COUNT( - - 2 ) DIV - 32 * 48
----
0

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT + COUNT ( - - 2 ) / - 32 * 48
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2395
SELECT + 17 + + 57 + + + 13 * - COUNT( * ) + - 63 + - + COALESCE ( - + 40, + + 23, - + CAST( - - 67 AS SIGNED ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2395
SELECT + 17 + + 57 + + + 13 * - COUNT ( * ) + - 63 + - + COALESCE ( - + 40, + + 23, - + CAST ( - - 67 AS INTEGER ) ) AS col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2396
SELECT ALL + ( + - 8 ) * 34 AS col0, + COUNT( * ) DIV - 77
----
-272
0

skipif mysql # not compatible
query II rowsort label-2396
SELECT ALL + ( + - 8 ) * 34 AS col0, + COUNT ( * ) / - 77
----
-272
0

query I rowsort
SELECT + 93 + - - CASE + 91 WHEN - 56 THEN + 62 + - 18 * 71 + + - 14 WHEN + 83 THEN NULL ELSE - 39 - - 79 + + - 5 END
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT - SUM( ALL + 21 ) - + 93 AS col2
----
-114

skipif mysql # not compatible
query I rowsort label-2398
SELECT - SUM ( ALL + 21 ) - + 93 AS col2
----
-114

query I rowsort
SELECT - 69 + 39 * + + 24 * - + 79 AS col1
----
-74013

query I rowsort
SELECT - 75 - - + 0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT ALL CASE + 73 WHEN + NULLIF ( + 90, + 29 + - + 53 - MIN( + 82 ) ) THEN NULL WHEN 98 THEN NULL WHEN - 51 * 99 THEN - 90 END * 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL CASE + 73 WHEN + NULLIF ( + 90, + 29 + - + 53 - MIN ( + 82 ) ) THEN NULL WHEN 98 THEN NULL WHEN - 51 * 99 THEN - 90 END * 40 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2402
SELECT - 63 DIV - + 53 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2402
SELECT - 63 / - + 53 AS col1
----
1

query I rowsort
SELECT DISTINCT + ( 59 )
----
59

query I rowsort
SELECT + 47 * + 63 + + 26
----
2987

query II rowsort
SELECT 40 AS col1, - 33 + - 84 col2
----
40
-117

query I rowsort
SELECT ALL - ( 65 ) AS col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2407
SELECT 36 * CAST( - + 84 AS SIGNED ) AS col0, 18 * + - 71
----
-3024
-1278

skipif mysql # not compatible
query II rowsort label-2407
SELECT 36 * CAST ( - + 84 AS INTEGER ) AS col0, 18 * + - 71
----
-3024
-1278

onlyif mysql # aggregate syntax: 
query II rowsort label-2408
SELECT + 95 AS col2, + COUNT( * ) AS col0
----
95
1

skipif mysql # not compatible
query II rowsort label-2408
SELECT + 95 AS col2, + COUNT ( * ) AS col0
----
95
1

query I rowsort
SELECT ALL + 12 * 15 AS col0
----
180

query I rowsort
SELECT 62 * + ( 16 )
----
992

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT ALL - - COALESCE ( - - COUNT( * ), 10 - + 62 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL - - COALESCE ( - - COUNT ( * ), 10 - + 62 ) AS col1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2412
SELECT CAST( NULL AS DECIMAL ) * + - 46 + - 98 AS col1, 97 col1
----
NULL
97

skipif mysql # not compatible
query II rowsort label-2412
SELECT CAST ( NULL AS REAL ) * + - 46 + - 98 AS col1, 97 col1
----
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT ALL + - COUNT( * ) * - - 35
----
-35

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL + - COUNT ( * ) * - - 35
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT ( + + 33 ) * + COUNT( DISTINCT 60 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2414
SELECT ( + + 33 ) * + COUNT ( DISTINCT 60 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT DISTINCT + 26 * + - COUNT( * ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT + 26 * + - COUNT ( * ) AS col0
----
-26

query I rowsort
SELECT ALL - 68 + + + 28 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT 66 + - - COUNT( * ) * - + 55 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-2417
SELECT 66 + - - COUNT ( * ) * - + 55 AS col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2418
SELECT + ( 16 ) * - - 75 + + - ( - 8 ) DIV + - MIN( + - 54 ) * 78
----
1200

skipif mysql # not compatible
query I rowsort label-2418
SELECT + ( 16 ) * - - 75 + + - ( - 8 ) / + - MIN ( + - 54 ) * 78
----
1200

query I rowsort
SELECT 56 - - - 31 * 85
----
-2579

query I rowsort
SELECT - 64 * 79 AS col2
----
-5056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2421
SELECT ALL NULLIF ( 52, 6 * - 95 DIV + COALESCE ( - 31, + - MIN( + - 32 ) * 80 ) ) DIV + 79 + + - 92 - 40 AS col0
----
-132

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL NULLIF ( 52, 6 * - 95 / + COALESCE ( - 31, + - MIN ( + - 32 ) * 80 ) ) / + 79 + + - 92 - 40 AS col0
----
-132

query I rowsort
SELECT ALL + 52 + 55
----
107

query I rowsort
SELECT ALL + 41 + + 23
----
64

query I rowsort
SELECT + 40 + - 22 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2425
SELECT ALL + - NULLIF ( + COALESCE ( + 58, - - 79 * + ( + + 77 ) + - 64 * 47 ), - 21 + 64 ) + + CAST( ( - 2 ) AS SIGNED ) + + - CASE - ( + + 62 ) WHEN + + 29 THEN - - 67 * + 9 * + 41 / - COUNT( * ) END * - - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL + - NULLIF ( + COALESCE ( + 58, - - 79 * + ( + + 77 ) + - 64 * 47 ), - 21 + 64 ) + + CAST ( ( - 2 ) AS INTEGER ) + + - CASE - ( + + 62 ) WHEN + + 29 THEN - - 67 * + 9 * + 41 / - COUNT ( * ) END * - - 90
----
NULL

query I rowsort
SELECT ( - 78 ) + 31 + - - 92 AS col2
----
45

query I rowsort
SELECT ALL + 92 + 90
----
182

query I rowsort
SELECT 61 * + - 64
----
-3904

query I rowsort
SELECT 5 * + 54 AS col1
----
270

query II rowsort
SELECT - 4, 23 AS col0
----
-4
23

query II rowsort
SELECT - 6, 83 AS col1
----
-6
83

query I rowsort
SELECT 47 + + - COALESCE ( 15, + 79 ) * - 96 AS col0
----
1487

onlyif mysql # aggregate syntax: 
query II rowsort label-2433
SELECT ALL 8 AS col1, COUNT( * ) AS col0
----
8
1

skipif mysql # not compatible
query II rowsort label-2433
SELECT ALL 8 AS col1, COUNT ( * ) AS col0
----
8
1

query I rowsort
SELECT 56 + + + 74 * - 94 * + 89 AS col1
----
-619028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2435
SELECT COALESCE ( - 84, CAST( 5 AS SIGNED ) DIV 65 - 60 ) * 93 + 66 * - 42 + 29 * + COUNT( * ) - 97 * + - COUNT( * )
----
-10458

skipif mysql # not compatible
query I rowsort label-2435
SELECT COALESCE ( - 84, CAST ( 5 AS INTEGER ) / 65 - 60 ) * 93 + 66 * - 42 + 29 * + COUNT ( * ) - 97 * + - COUNT ( * )
----
-10458

query II rowsort
SELECT DISTINCT 66 AS col2, 72
----
66
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2437
SELECT - 73, 35 + + + 94 + - CAST( NULL AS SIGNED ) col0
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-2437
SELECT - 73, 35 + + + 94 + - CAST ( NULL AS INTEGER ) col0
----
-73
NULL

query I rowsort
SELECT DISTINCT + 97 * 46 AS col1
----
4462

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2439
SELECT ALL - 27, - COALESCE ( + CAST( NULL AS SIGNED ), - COALESCE ( 11, 0 + + ( 83 ) * - 74 ) ) AS col1
----
-27
11

skipif mysql # not compatible
query II rowsort label-2439
SELECT ALL - 27, - COALESCE ( + CAST ( NULL AS INTEGER ), - COALESCE ( 11, 0 + + ( 83 ) * - 74 ) ) AS col1
----
-27
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT DISTINCT + 88 * - + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT + 88 * - + COUNT ( * )
----
-88

query I rowsort
SELECT 65 * + 99 * 52
----
334620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2442
SELECT ALL 98 DIV COUNT( 17 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL 98 / COUNT ( 17 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT - 5 * + + 6 - + COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-2443
SELECT - 5 * + + 6 - + COUNT ( * ) AS col1
----
-31

query II rowsort
SELECT 25, - 75 AS col1
----
25
-75

query II rowsort
SELECT ALL - 17 AS col1, 48 + - 10
----
-17
38

query II rowsort
SELECT + 93 AS col0, - 34 AS col1
----
93
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2447
SELECT SUM( + - COALESCE ( + 42, + 26 * - - 98 * + 15 ) ) DIV + 70 + + - 89 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-2447
SELECT SUM ( + - COALESCE ( + 42, + 26 * - - 98 * + 15 ) ) / + 70 + + - 89 AS col2
----
-89

query II rowsort
SELECT DISTINCT + 71 + + + 53, - 93 col2
----
124
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2449
SELECT DISTINCT 97 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT 97 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2450
SELECT + CAST( - 59 AS SIGNED ) * - COALESCE ( - 7, 25 ) - 48 + - 57 * + 16
----
-1373

skipif mysql # not compatible
query I rowsort label-2450
SELECT + CAST ( - 59 AS INTEGER ) * - COALESCE ( - 7, 25 ) - 48 + - 57 * + 16
----
-1373

query I rowsort
SELECT DISTINCT + 30 + - - 5
----
35

query I rowsort
SELECT DISTINCT - + 42 + 97 AS col2
----
55

query II rowsort
SELECT ALL - + 38, - 38
----
-38
-38

query I rowsort
SELECT ALL - 39 + - 85 + NULLIF ( + 55, + 3 + - 73 ) + - + 60 AS col1
----
-129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2455
SELECT + + 65 * - CAST( NULL AS SIGNED ) + + 79 * + + COUNT( * ), ( + 42 ) AS col0
----
NULL
42

skipif mysql # not compatible
query II rowsort label-2455
SELECT + + 65 * - CAST ( NULL AS INTEGER ) + + 79 * + + COUNT ( * ), ( + 42 ) AS col0
----
NULL
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2456
SELECT ALL - - CAST( NULL AS SIGNED ) AS col2, 16
----
NULL
16

skipif mysql # not compatible
query II rowsort label-2456
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col2, 16
----
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT 71 + - - COUNT( * ) + + 63 AS col2
----
135

skipif mysql # not compatible
query I rowsort label-2457
SELECT 71 + - - COUNT ( * ) + + 63 AS col2
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2458
SELECT + CASE WHEN NOT - 24 IS NOT NULL THEN + - MIN( ALL + 61 ) + + - CAST( NULL AS SIGNED ) ELSE NULL END, 29 * ( + 52 ) AS col2
----
NULL
1508

skipif mysql # not compatible
query II rowsort label-2458
SELECT + CASE WHEN NOT - 24 IS NOT NULL THEN + - MIN ( ALL + 61 ) + + - CAST ( NULL AS INTEGER ) ELSE NULL END, 29 * ( + 52 ) AS col2
----
NULL
1508

query I rowsort
SELECT ALL - + 75 + 64 * 54 AS col0
----
3381

query II rowsort
SELECT DISTINCT - 48 AS col1, + 43
----
-48
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT + COUNT( * ) + + 2
----
3

skipif mysql # not compatible
query I rowsort label-2461
SELECT + COUNT ( * ) + + 2
----
3

query I rowsort
SELECT DISTINCT + - COALESCE ( + 91, - 11 ) * + ( - - 68 ) col1
----
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2463
SELECT DISTINCT 63 - - - 67 / - 97 + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT 63 - - - 67 / - 97 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 27 AS col0, + 54 AS col2
----
27
54

query I rowsort
SELECT ALL + + 95 * + 25 AS col0
----
2375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2466
SELECT 30 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2466
SELECT 30 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2467
SELECT - NULLIF ( + 38, + 70 ) * + CAST( NULL AS SIGNED ) * 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2467
SELECT - NULLIF ( + 38, + 70 ) * + CAST ( NULL AS INTEGER ) * 86 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT 19 * - COUNT( - + 69 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-2468
SELECT 19 * - COUNT ( - + 69 ) AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2469
SELECT 27 / + CAST( NULL AS SIGNED ), - 35 col0, - CASE - - 90 WHEN + + 21 THEN COUNT( * ) END * + MAX( DISTINCT + ( 60 ) )
----
NULL
-35
NULL

skipif mysql # not compatible
query III rowsort label-2469
SELECT 27 / + CAST ( NULL AS INTEGER ), - 35 col0, - CASE - - 90 WHEN + + 21 THEN COUNT ( * ) END * + MAX ( DISTINCT + ( 60 ) )
----
NULL
-35
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2470
SELECT + COUNT( * ) + - CASE + CAST( NULL AS SIGNED ) WHEN 22 THEN - 51 ELSE NULL END + - - 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2470
SELECT + COUNT ( * ) + - CASE + CAST ( NULL AS INTEGER ) WHEN 22 THEN - 51 ELSE NULL END + - - 70 AS col0
----
NULL

query I rowsort
SELECT - COALESCE ( + - 45, ( - 53 ) + - 98 )
----
45

query I rowsort
SELECT + ( + + 27 ) * - 21 AS col0
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT + 56 + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-2473
SELECT + 56 + COUNT ( * )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT ( - 64 ) * + CASE WHEN NOT ( NOT ( MAX( + 83 ) BETWEEN - 80 AND NULL ) ) THEN + 5 ELSE - 38 + COUNT( * ) + - 10 END * + ( 73 ) - - + 14 AS col2
----
219598

skipif mysql # not compatible
query I rowsort label-2474
SELECT ( - 64 ) * + CASE WHEN NOT ( NOT ( MAX ( + 83 ) BETWEEN - 80 AND NULL ) ) THEN + 5 ELSE - 38 + COUNT ( * ) + - 10 END * + ( 73 ) - - + 14 AS col2
----
219598

onlyif mysql # DIV for integer division: 
query I rowsort label-2475
SELECT + ( 93 ) + - 25 + 99 + + + 69 DIV + 12 AS col2
----
172

skipif mysql # not compatible
query I rowsort label-2475
SELECT + ( 93 ) + - 25 + 99 + + + 69 / + 12 AS col2
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT ALL COUNT( DISTINCT + NULLIF ( + - ( 96 ), 92 ) ) * + ( + COUNT( * ) ) + - + 27 + - ( - 69 ) + 6 * 2 * + NULLIF ( - + SUM( DISTINCT - ( COALESCE ( - 51, - 87 ) ) ), - - 19 ) - - 95
----
-474

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL COUNT ( DISTINCT + NULLIF ( + - ( 96 ), 92 ) ) * + ( + COUNT ( * ) ) + - + 27 + - ( - 69 ) + 6 * 2 * + NULLIF ( - + SUM ( DISTINCT - ( COALESCE ( - 51, - 87 ) ) ), - - 19 ) - - 95
----
-474

query I rowsort
SELECT ALL 56 * - NULLIF ( + 42, - - 39 )
----
-2352

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2478
SELECT + COUNT( * ) + - - SUM( + 85 ) / + COUNT( * ) * CAST( NULL AS DECIMAL ) AS col2, - 12 * - 62 col1
----
NULL
744

skipif mysql # not compatible
query II rowsort label-2478
SELECT + COUNT ( * ) + - - SUM ( + 85 ) / + COUNT ( * ) * CAST ( NULL AS REAL ) AS col2, - 12 * - 62 col1
----
NULL
744

onlyif mysql # aggregate syntax: 
query II rowsort label-2479
SELECT ALL + MAX( 3 ), 56 AS col2
----
3
56

skipif mysql # not compatible
query II rowsort label-2479
SELECT ALL + MAX ( 3 ), 56 AS col2
----
3
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2480
SELECT DISTINCT 44 * - 37 + + 8 + - - 36 DIV + - 33 + 19
----
-1602

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT 44 * - 37 + + 8 + - - 36 / + - 33 + 19
----
-1602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2481
SELECT ALL - 37 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL - 37 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2482
SELECT - CAST( - 1 AS SIGNED ) DIV - - 76 + 47
----
47

skipif mysql # not compatible
query I rowsort label-2482
SELECT - CAST ( - 1 AS INTEGER ) / - - 76 + 47
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT ALL + MIN( + - 37 ) * + - 56 + + - 39 + - - 8 * + 95 * 7 + - 89 * 52 + + - ( - 8 ) AS col2
----
2733

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL + MIN ( + - 37 ) * + - 56 + + - 39 + - - 8 * + 95 * 7 + - 89 * 52 + + - ( - 8 ) AS col2
----
2733

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2484
SELECT DISTINCT + ( + + 34 ) DIV 45 * NULLIF ( 51, + 98 ) - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT + ( + + 34 ) / 45 * NULLIF ( 51, + 98 ) - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2485
SELECT + - 46 DIV 7 + MIN( ALL 83 ) * 99 * - 49 * 73 * + 27
----
-793589649

skipif mysql # not compatible
query I rowsort label-2485
SELECT + - 46 / 7 + MIN ( ALL 83 ) * 99 * - 49 * 73 * + 27
----
-793589649

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2486
SELECT + 50 * + COUNT( * ) DIV - 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2486
SELECT + 50 * + COUNT ( * ) / - 60 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT + 63 * + 17 * - - COUNT( * )
----
1071

skipif mysql # not compatible
query I rowsort label-2487
SELECT + 63 * + 17 * - - COUNT ( * )
----
1071

query I rowsort
SELECT - + 7 + + 43
----
36

query I rowsort
SELECT + + 42 col0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2490
SELECT ALL + COUNT( * ) * - NULLIF ( 26, + + 46 ) DIV - ( + NULLIF ( + + 44, 80 * - + ( 92 ) ) ) + 1 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL + COUNT ( * ) * - NULLIF ( 26, + + 46 ) / - ( + NULLIF ( + + 44, 80 * - + ( 92 ) ) ) + 1 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2491
SELECT - + CAST( NULL AS SIGNED ) * 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2491
SELECT - + CAST ( NULL AS INTEGER ) * 55 AS col1
----
NULL

query I rowsort
SELECT ALL + 16 * + - NULLIF ( 15, 26 ) AS col2
----
-240

query I rowsort
SELECT - 39 * + - 34 + 49 * - 53 AS col0
----
-1271

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT - - COUNT( * ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2494
SELECT - - COUNT ( * ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT DISTINCT + SUM( ALL + - 32 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT + SUM ( ALL + - 32 ) AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2496
SELECT ALL + - 43 * + CAST( 19 AS SIGNED ) + + + 11
----
-806

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL + - 43 * + CAST ( 19 AS INTEGER ) + + + 11
----
-806

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT + 66 * + ( - COUNT( * ) ) * + + MIN( 20 ) - - 88 AS col0
----
-1232

skipif mysql # not compatible
query I rowsort label-2497
SELECT + 66 * + ( - COUNT ( * ) ) * + + MIN ( 20 ) - - 88 AS col0
----
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT - 35 * + - MIN( ALL 28 )
----
980

skipif mysql # not compatible
query I rowsort label-2498
SELECT - 35 * + - MIN ( ALL 28 )
----
980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2499
SELECT - + MIN( ALL ( + 14 ) ) - 50 * + - AVG ( DISTINCT - + 27 ) / CAST( NULL AS SIGNED ) + - COUNT( * ) - + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT - + MIN ( ALL ( + 14 ) ) - 50 * + - AVG ( DISTINCT - + 27 ) / CAST ( NULL AS INTEGER ) + - COUNT ( * ) - + 17 AS col0
----
NULL

query I rowsort
SELECT 89 * + + 96 + - 71
----
8473

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT - 46 * + - COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-2501
SELECT - 46 * + - COUNT ( * ) AS col2
----
46

query I rowsort
SELECT - 64 + 24 col0
----
-40

query I rowsort
SELECT ALL CASE 9 WHEN 34 THEN + 58 END
----
NULL

query II rowsort
SELECT ALL 11 * - 71 * + 61, - 3 AS col1
----
-47641
-3

query I rowsort
SELECT - 16 + 95 AS col2
----
79

query I rowsort
SELECT ALL - 15 * + 25 AS col0
----
-375

query I rowsort
SELECT DISTINCT - 97 * 41
----
-3977

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2508
SELECT DISTINCT CAST( - 56 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT CAST ( - 56 AS INTEGER )
----
-56

query I rowsort
SELECT - 80 * + + 25 AS col2
----
-2000

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT + 86 + + NULLIF ( - - 16, - - 3 ) + - COUNT( DISTINCT + 89 )
----
101

skipif mysql # not compatible
query I rowsort label-2510
SELECT + 86 + + NULLIF ( - - 16, - - 3 ) + - COUNT ( DISTINCT + 89 )
----
101

query II rowsort
SELECT 37 AS col2, 82
----
37
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2512
SELECT + CAST( 71 AS SIGNED ) + - 47 col1
----
24

skipif mysql # not compatible
query I rowsort label-2512
SELECT + CAST ( 71 AS INTEGER ) + - 47 col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2513
SELECT - 33 DIV 15
----
-2

skipif mysql # not compatible
query I rowsort label-2513
SELECT - 33 / 15
----
-2

query I rowsort
SELECT + 50 * 82
----
4100

query I rowsort
SELECT ALL 97 + ( 54 )
----
151

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2516
SELECT ALL 40 DIV + + CAST( + 1 AS SIGNED ) + - + 18
----
22

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL 40 / + + CAST ( + 1 AS INTEGER ) + - + 18
----
22

query I rowsort
SELECT + 79 * 85
----
6715

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2518
SELECT + + CAST( + AVG ( ALL + 76 ) AS SIGNED ) AS col0, - 71 AS col2
----
76
-71

skipif mysql # not compatible
query II rowsort label-2518
SELECT + + CAST ( + AVG ( ALL + 76 ) AS INTEGER ) AS col0, - 71 AS col2
----
76
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT DISTINCT - COUNT( * ) * 45
----
-45

skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT - COUNT ( * ) * 45
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-2520
SELECT + - COUNT( * ) * MAX( DISTINCT - 14 ) * - - 99 AS col2, 60
----
1386
60

skipif mysql # not compatible
query II rowsort label-2520
SELECT + - COUNT ( * ) * MAX ( DISTINCT - 14 ) * - - 99 AS col2, 60
----
1386
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT + - 37 * - CASE - - 35 WHEN + ( + - ( 0 ) ) THEN + 19 END * + ( + 42 ) - + + 99 - CASE + 13 WHEN - - 98 * - COUNT( * ) * + - 57 + + 51 + - NULLIF ( - + 64, + 12 * - + 62 * - + NULLIF ( - + MAX( DISTINCT - - 0 ), + - 16 ) + - 59 + + 88 ) + 64 / - - AVG ( 60 ) THEN NULL WHEN - COUNT( * ) + - 57 * - 60 THEN + MIN( DISTINCT + - 74 ) * + COUNT( ALL - + 38 ) + - - ( + - 91 ) + 23 END + ( ( + 34 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT + - 37 * - CASE - - 35 WHEN + ( + - ( 0 ) ) THEN + 19 END * + ( + 42 ) - + + 99 - CASE + 13 WHEN - - 98 * - COUNT ( * ) * + - 57 + + 51 + - NULLIF ( - + 64, + 12 * - + 62 * - + NULLIF ( - + MAX ( DISTINCT - - 0 ), + - 16 ) + - 59 + + 88 ) + 64 / - - AVG ( 60 ) THEN NULL WHEN - COUNT ( * ) + - 57 * - 60 THEN + MIN ( DISTINCT + - 74 ) * + COUNT ( ALL - + 38 ) + - - ( + - 91 ) + 23 END + ( ( + 34 ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT ALL COUNT( * ) * + 36 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL COUNT ( * ) * + 36 AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2523
SELECT ALL - 27 / CAST( NULL AS SIGNED ) - + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL - 27 / CAST ( NULL AS INTEGER ) - + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2524
SELECT 14, - 98 * - + CASE + NULLIF ( 97, COALESCE ( - 13, + + 51 + COUNT( * ) * + - COALESCE ( - 18, ( + 59 ) ), + 29 ) ) WHEN - + 58 THEN - 20 / + 87 END * + 74 * - + COUNT( * ) * + 55 AS col1
----
14
NULL

skipif mysql # not compatible
query II rowsort label-2524
SELECT 14, - 98 * - + CASE + NULLIF ( 97, COALESCE ( - 13, + + 51 + COUNT ( * ) * + - COALESCE ( - 18, ( + 59 ) ), + 29 ) ) WHEN - + 58 THEN - 20 / + 87 END * + 74 * - + COUNT ( * ) * + 55 AS col1
----
14
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2525
SELECT ALL - + 20 DIV 18 * + + ( - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL - + 20 / 18 * + + ( - 1 )
----
1

query II rowsort
SELECT ALL + 77 AS col1, 47
----
77
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2527
SELECT ALL + + COUNT( * ) DIV - 45 - + 64
----
-64

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL + + COUNT ( * ) / - 45 - + 64
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-2528
SELECT - - 10 * 93 DIV - - 26 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2528
SELECT - - 10 * 93 / - - 26 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT ALL - ( + 74 ) / CASE + 79 WHEN - + 54 - + - COUNT( * ) THEN - - COUNT( * ) END - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL - ( + 74 ) / CASE + 79 WHEN - + 54 - + - COUNT ( * ) THEN - - COUNT ( * ) END - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2530
SELECT CAST( + - 2 AS SIGNED ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-2530
SELECT CAST ( + - 2 AS INTEGER ) col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT + + MAX( + 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2531
SELECT + + MAX ( + 84 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT + 86 * CASE + MAX( + - 42 ) WHEN - 38 * 24 * 58 THEN + + NULLIF ( - 86, - 2 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2532
SELECT + 86 * CASE + MAX ( + - 42 ) WHEN - 38 * 24 * 58 THEN + + NULLIF ( - 86, - 2 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2533
SELECT ALL 56 DIV 71 * COUNT( * ) + + 12 + - COUNT( * ) * 88 + - + 99 AS col0
----
-175

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL 56 / 71 * COUNT ( * ) + + 12 + - COUNT ( * ) * 88 + - + 99 AS col0
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT ALL - - 65 * + 18 + 33 + + ( + COUNT( * ) ) AS col1
----
1204

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL - - 65 * + 18 + 33 + + ( + COUNT ( * ) ) AS col1
----
1204

query II rowsort
SELECT ALL 85 AS col1, + 49
----
85
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2536
SELECT + COUNT( * ) * SUM( - COALESCE ( 15, + 3 ) ) + - CAST( + 55 AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-2536
SELECT + COUNT ( * ) * SUM ( - COALESCE ( 15, + 3 ) ) + - CAST ( + 55 AS INTEGER )
----
-70

query I rowsort
SELECT 30 * + 67 AS col0
----
2010

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT 66 * + MIN( ALL 60 )
----
3960

skipif mysql # not compatible
query I rowsort label-2538
SELECT 66 * + MIN ( ALL 60 )
----
3960

query I rowsort
SELECT 36 + - - 85 + + 67
----
188

query I rowsort
SELECT 56 * + 36 AS col1
----
2016

query I rowsort
SELECT ALL - 84 + 35 AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2542
SELECT ALL 39 + - CAST( 68 AS SIGNED ) + 8 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL 39 + - CAST ( 68 AS INTEGER ) + 8 AS col0
----
-21

query I rowsort
SELECT 71 - 88 * 5 AS col2
----
-369

query I rowsort
SELECT DISTINCT + 39 + + 19 * - ( + 76 ) * + 65 * - ( 54 ) * - 91 col2
----
-461228001

query II rowsort
SELECT DISTINCT - 67 * 76 AS col2, 60 col2
----
-5092
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2546
SELECT 80 + + CAST( NULL AS SIGNED ) * - COUNT( * ) + CAST( + COUNT( * ) AS SIGNED ) + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2546
SELECT 80 + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + CAST ( + COUNT ( * ) AS INTEGER ) + 46 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2547
SELECT 46 - - CAST( NULL AS SIGNED ) * - - 8 * + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-2547
SELECT 46 - - CAST ( NULL AS INTEGER ) * - - 8 * + - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT - 1 - - 25 + 92 * + COUNT( * ) * - + SUM( + - 13 ) col2
----
1220

skipif mysql # not compatible
query I rowsort label-2548
SELECT - 1 - - 25 + 92 * + COUNT ( * ) * - + SUM ( + - 13 ) col2
----
1220

query II rowsort
SELECT ALL 71 - - + ( - + 67 ) * + 5 AS col0, 65 + 20 + 26 * 58
----
-264
1593

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT - 41 * + + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-2550
SELECT - 41 * + + COUNT ( * )
----
-41

query I rowsort
SELECT ALL - + 94 AS col1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2552
SELECT - 68 + 38 + - ( - + 7 ) AS col0, + CAST( NULL AS SIGNED ) / - 28
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-2552
SELECT - 68 + 38 + - ( - + 7 ) AS col0, + CAST ( NULL AS INTEGER ) / - 28
----
-23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT + 77 * + - SUM( + 42 )
----
-3234

skipif mysql # not compatible
query I rowsort label-2553
SELECT + 77 * + - SUM ( + 42 )
----
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT - 10 * + SUM( - 89 ) + - CASE + + 23 WHEN - ( + + COUNT( * ) ) THEN NULL WHEN 14 + - 99 THEN + + CASE - 62 WHEN - + 39 * COALESCE ( + - 13, + + 60 / + 44 ) + COUNT( * ) THEN NULL WHEN + 41 THEN + 55 END WHEN - 52 / + - 63 THEN - - 39 ELSE NULL END + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT - 10 * + SUM ( - 89 ) + - CASE + + 23 WHEN - ( + + COUNT ( * ) ) THEN NULL WHEN 14 + - 99 THEN + + CASE - 62 WHEN - + 39 * COALESCE ( + - 13, + + 60 / + 44 ) + COUNT ( * ) THEN NULL WHEN + 41 THEN + 55 END WHEN - 52 / + - 63 THEN - - 39 ELSE NULL END + 90
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2555
SELECT ALL - + 1 - CAST( NULL AS DECIMAL ), 57 AS col1
----
NULL
57

skipif mysql # not compatible
query II rowsort label-2555
SELECT ALL - + 1 - CAST ( NULL AS REAL ), 57 AS col1
----
NULL
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2556
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2556
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - 17 + 16
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT - 57 + + SUM( ALL + + 5 ) * - 30
----
-207

skipif mysql # not compatible
query I rowsort label-2558
SELECT - 57 + + SUM ( ALL + + 5 ) * - 30
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT DISTINCT + 42 * + - MIN( + 18 ) + + 39
----
-717

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT + 42 * + - MIN ( + 18 ) + + 39
----
-717

query I rowsort
SELECT ALL - + 23 AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2561
SELECT + CAST( + + 97 AS SIGNED ) * - - 10 + 15 AS col2
----
985

skipif mysql # not compatible
query I rowsort label-2561
SELECT + CAST ( + + 97 AS INTEGER ) * - - 10 + 15 AS col2
----
985

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2562
SELECT DISTINCT - ( + + CAST( - 45 AS SIGNED ) ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT - ( + + CAST ( - 45 AS INTEGER ) ) AS col0
----
45

query I rowsort
SELECT 56 + - 75 AS col1
----
-19

query I rowsort
SELECT - 14 * - + 61 + + 98
----
952

query I rowsort
SELECT ALL 75 + 76 col1
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2566
SELECT 46 + + - COUNT( * ) DIV - 65 AS col2, 75 * + 24 * 35
----
46
63000

skipif mysql # not compatible
query II rowsort label-2566
SELECT 46 + + - COUNT ( * ) / - 65 AS col2, 75 * + 24 * 35
----
46
63000

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2567
SELECT 81 + 84 * - - 71 + + 4 - + AVG ( - 15 ) - + + 57 DIV - - ( - CASE - 60 WHEN + + 91 * - 90 * + - 36 * 27 + - 72 THEN + 93 WHEN - ( - + COUNT( * ) ) THEN NULL ELSE NULL END ) AS col1, + COUNT( * ) DIV 82 + - 73 + - 35 * 27 + - NULLIF ( - 43, - - 55 * - - CASE + COALESCE ( - COUNT( ALL - 87 ), + 55 + + + 8 + - 18, + + 28 ) WHEN + + 87 THEN - + 92 * + 64 * - SUM( + - ( 63 ) ) * 72 - COALESCE ( + 93 + - 38, - 72 ) DIV - 40 ELSE NULL END ) + + 38
----
NULL
-937

skipif mysql # not compatible
query II rowsort label-2567
SELECT 81 + 84 * - - 71 + + 4 - + AVG ( - 15 ) - + + 57 / - - ( - CASE - 60 WHEN + + 91 * - 90 * + - 36 * 27 + - 72 THEN + 93 WHEN - ( - + COUNT ( * ) ) THEN NULL ELSE NULL END ) AS col1, + COUNT ( * ) / 82 + - 73 + - 35 * 27 + - NULLIF ( - 43, - - 55 * - - CASE + COALESCE ( - COUNT ( ALL - 87 ), + 55 + + + 8 + - 18, + + 28 ) WHEN + + 87 THEN - + 92 * + 64 * - SUM ( + - ( 63 ) ) * 72 - COALESCE ( + 93 + - 38, - 72 ) / - 40 ELSE NULL END ) + + 38
----
NULL
-937

query I rowsort
SELECT ALL 69 + - 37
----
32

query I rowsort
SELECT ALL 39 + 7 AS col1
----
46

query I rowsort
SELECT DISTINCT 98 + - - 37
----
135

query I rowsort
SELECT ALL + 26 + 42 AS col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2572
SELECT CAST( + 55 AS SIGNED ) + + 41 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-2572
SELECT CAST ( + 55 AS INTEGER ) + + 41 AS col2
----
96

query I rowsort
SELECT ALL 33 + - - 77 * - 87
----
-6666

query II rowsort
SELECT 91 + + - 15 + - 69, 73 AS col0
----
7
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT - SUM( DISTINCT - 83 )
----
83

skipif mysql # not compatible
query I rowsort label-2575
SELECT - SUM ( DISTINCT - 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT - SUM( DISTINCT 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-2576
SELECT - SUM ( DISTINCT 60 ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT 6 + + - COUNT( * ) * + - 31
----
37

skipif mysql # not compatible
query I rowsort label-2577
SELECT 6 + + - COUNT ( * ) * + - 31
----
37

query II rowsort
SELECT - 42, - 35 + + - 86 AS col0
----
-42
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT ALL - MIN( ALL - + 32 ) - COUNT( * ) - MIN( + 82 ) + - ( CASE 5 WHEN - 77 * + + 60 - - 51 + 88 THEN - - 80 WHEN - 18 * + - 58 * + + 55 * - 91 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL - MIN ( ALL - + 32 ) - COUNT ( * ) - MIN ( + 82 ) + - ( CASE 5 WHEN - 77 * + + 60 - - 51 + 88 THEN - - 80 WHEN - 18 * + - 58 * + + 55 * - 91 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2580
SELECT ALL + + CAST( NULL AS SIGNED ) * + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL + + CAST ( NULL AS INTEGER ) * + - 72
----
NULL

query I rowsort
SELECT ( - + 26 ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT - 75 * + MIN( + + 16 ) + 72
----
-1128

skipif mysql # not compatible
query I rowsort label-2582
SELECT - 75 * + MIN ( + + 16 ) + 72
----
-1128

query I rowsort
SELECT ALL + + 36 * 75 AS col2
----
2700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2584
SELECT + CAST( NULL AS SIGNED ) * AVG ( ALL + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2584
SELECT + CAST ( NULL AS INTEGER ) * AVG ( ALL + 72 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2585
SELECT - - 7 * - + COUNT( DISTINCT + CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-2585
SELECT - - 7 * - + COUNT ( DISTINCT + CAST ( NULL AS REAL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT ALL - COUNT( * ) * + 76 + - + 6 + 48
----
-34

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL - COUNT ( * ) * + 76 + - + 6 + 48
----
-34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2587
SELECT ALL - 22 DIV - - CAST( 73 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL - 22 / - - CAST ( 73 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT - 77 * - 3
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT MIN( DISTINCT + + 55 ) col2
----
55

skipif mysql # not compatible
query I rowsort label-2589
SELECT MIN ( DISTINCT + + 55 ) col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT DISTINCT CAST( 71 AS SIGNED ) * + + 56 + - + 86
----
3890

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT CAST ( 71 AS INTEGER ) * + + 56 + - + 86
----
3890

onlyif mysql # aggregate syntax: 
query II rowsort label-2591
SELECT + 11 col1, - ( - 48 ) * COUNT( * ) + 70
----
11
118

skipif mysql # not compatible
query II rowsort label-2591
SELECT + 11 col1, - ( - 48 ) * COUNT ( * ) + 70
----
11
118

query I rowsort
SELECT ALL 28 * - ( 95 )
----
-2660

query I rowsort
SELECT ALL + 93 * - + 92
----
-8556

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT DISTINCT - 39 + + COUNT( * ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT - 39 + + COUNT ( * ) col0
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-2595
SELECT DISTINCT + 84 * + 87 col0, COUNT( * ) - - + 58
----
7308
59

skipif mysql # not compatible
query II rowsort label-2595
SELECT DISTINCT + 84 * + 87 col0, COUNT ( * ) - - + 58
----
7308
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT MAX( ALL 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2596
SELECT MAX ( ALL 13 ) AS col2
----
13

query I rowsort
SELECT ALL 33 + + 46 AS col2
----
79

query II rowsort
SELECT + 34 * + 22 * - 39 + + 94 + - + 14 * + 23 AS col1, + 41 * + 35 AS col2
----
-29400
1435

query I rowsort
SELECT - NULLIF ( - 33, + 24 * 12 )
----
33

query I rowsort
SELECT + 56 * - 72 AS col2
----
-4032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2601
SELECT + CAST( - 73 AS SIGNED ) + 98
----
25

skipif mysql # not compatible
query I rowsort label-2601
SELECT + CAST ( - 73 AS INTEGER ) + 98
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2602
SELECT + 74 / + ( + + 31 ) * - - 68 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2602
SELECT + 74 / + ( + + 31 ) * - - 68 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2603
SELECT ALL CASE - - 31 WHEN + + 63 THEN + - 31 ELSE NULL END - - 68 * COALESCE ( - 67, - + 88 * 40 * - 97 + AVG ( DISTINCT - - CAST( + + 57 AS SIGNED ) ) + - - 45 * - MIN( - + 23 ), - + COUNT( * ) ) + - 6 + 60 - - 75 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL CASE - - 31 WHEN + + 63 THEN + - 31 ELSE NULL END - - 68 * COALESCE ( - 67, - + 88 * 40 * - 97 + AVG ( DISTINCT - - CAST ( + + 57 AS INTEGER ) ) + - - 45 * - MIN ( - + 23 ), - + COUNT ( * ) ) + - 6 + 60 - - 75 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT + COUNT( * ) + - 57
----
-56

skipif mysql # not compatible
query I rowsort label-2604
SELECT + COUNT ( * ) + - 57
----
-56

query I rowsort
SELECT + 20 * + 14
----
280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2606
SELECT ALL COUNT( * ) DIV 59 * 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL COUNT ( * ) / 59 * 40 AS col2
----
0

query II rowsort
SELECT DISTINCT 49, + ( + 60 ) * + 36 + + 35 - - - 93 + - 90 * + - 75 * 6 * + 97 col0
----
49
3930602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2608
SELECT ALL 92 * 19 + + + 72 * CASE - + 6 WHEN + CASE + - 44 WHEN - 0 * CAST( ( + COUNT( * ) ) AS SIGNED ) THEN NULL WHEN - 29 - + + CAST( NULL AS DECIMAL ) + - - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) THEN NULL ELSE 0 - + 51 END * + 51 * - 93 + + 30 + COALESCE ( - + 20, - 22, 20 ) * 23 + - 44 + - 7 + + + 86 - - 68 * - CAST( NULL AS SIGNED ) THEN - 77 WHEN + 5 THEN 7 + - + 86 WHEN + ( - 82 ) THEN NULL ELSE NULL END + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL 92 * 19 + + + 72 * CASE - + 6 WHEN + CASE + - 44 WHEN - 0 * CAST ( ( + COUNT ( * ) ) AS INTEGER ) THEN NULL WHEN - 29 - + + CAST ( NULL AS REAL ) + - - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE 0 - + 51 END * + 51 * - 93 + + 30 + COALESCE ( - + 20, - 22, 20 ) * 23 + - 44 + - 7 + + + 86 - - 68 * - CAST ( NULL AS INTEGER ) THEN - 77 WHEN + 5 THEN 7 + - + 86 WHEN + ( - 82 ) THEN NULL ELSE NULL END + - 19
----
NULL

query I rowsort
SELECT DISTINCT + 0 * 21 col0
----
0

query I rowsort
SELECT + 89 + + 31
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-2611
SELECT - 59 DIV - 13
----
4

skipif mysql # not compatible
query I rowsort label-2611
SELECT - 59 / - 13
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT + NULLIF ( - 73, - 89 ) + 40 + + 26 DIV - - 55
----
-33

skipif mysql # not compatible
query I rowsort label-2612
SELECT + NULLIF ( - 73, - 89 ) + 40 + + 26 / - - 55
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT + 16 + + MIN( + 77 )
----
93

skipif mysql # not compatible
query I rowsort label-2613
SELECT + 16 + + MIN ( + 77 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT + + 53 + + COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-2614
SELECT + + 53 + + COUNT ( * ) AS col1
----
54

query II rowsort
SELECT ALL 69, 79 AS col0
----
69
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2616
SELECT ALL + 71 DIV - 85 * + COUNT( * ) + - 83 + 29 * + COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL + 71 / - 85 * + COUNT ( * ) + - 83 + 29 * + COUNT ( * ) AS col2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2617
SELECT - - MAX( DISTINCT - + NULLIF ( + 97, - 78 ) ) + - CAST( NULL AS SIGNED ) - + 44 + + 83 * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-2617
SELECT - - MAX ( DISTINCT - + NULLIF ( + 97, - 78 ) ) + - CAST ( NULL AS INTEGER ) - + 44 + + 83 * - 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT + COUNT( ALL + 17 )
----
1

skipif mysql # not compatible
query I rowsort label-2618
SELECT + COUNT ( ALL + 17 )
----
1

query I rowsort
SELECT - 66 + + + 29 * - ( 16 ) AS col0
----
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT COUNT( * ) * + ( 87 ) + - + 44 + + + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-2620
SELECT COUNT ( * ) * + ( 87 ) + - + 44 + + + COUNT ( * ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT + + COUNT( ALL - 85 )
----
1

skipif mysql # not compatible
query I rowsort label-2621
SELECT + + COUNT ( ALL - 85 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2622
SELECT + 21 * - 20 * + - 41 + + CASE - + 24 WHEN + COUNT( * ) + - 1 THEN NULL ELSE - 14 - 56 * + 82 END + + 80 DIV - ( 45 )
----
12613

skipif mysql # not compatible
query I rowsort label-2622
SELECT + 21 * - 20 * + - 41 + + CASE - + 24 WHEN + COUNT ( * ) + - 1 THEN NULL ELSE - 14 - 56 * + 82 END + + 80 / - ( 45 )
----
12613

query I rowsort
SELECT - - 10 + 89
----
99

query I rowsort
SELECT - 87 * + 93
----
-8091

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT ALL - NULLIF ( + 65, + + 27 ) * 86 + - 85 + COUNT( * ) * COUNT( * ) * 77 + + COUNT( * ) AS col2
----
-5597

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL - NULLIF ( + 65, + + 27 ) * 86 + - 85 + COUNT ( * ) * COUNT ( * ) * 77 + + COUNT ( * ) AS col2
----
-5597

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2626
SELECT DISTINCT + COALESCE ( 0, + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT + COALESCE ( 0, + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2627
SELECT MAX( ALL 12 ) * COUNT( * ) + + 26 * + 86 AS col0, COUNT( * ) + + COUNT( * )
----
2248
2

skipif mysql # not compatible
query II rowsort label-2627
SELECT MAX ( ALL 12 ) * COUNT ( * ) + + 26 * + 86 AS col0, COUNT ( * ) + + COUNT ( * )
----
2248
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT + 31 * + 49 + - 99 - - - 7 + - MIN( DISTINCT ( - + 24 ) ) * NULLIF ( 22, + 95 )
----
1941

skipif mysql # not compatible
query I rowsort label-2628
SELECT + 31 * + 49 + - 99 - - - 7 + - MIN ( DISTINCT ( - + 24 ) ) * NULLIF ( 22, + 95 )
----
1941

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2629
SELECT - 86 DIV - - 28, 91 * - 59 * COUNT( - 85 ) AS col0
----
-3
-5369

skipif mysql # not compatible
query II rowsort label-2629
SELECT - 86 / - - 28, 91 * - 59 * COUNT ( - 85 ) AS col0
----
-3
-5369

onlyif mysql # DIV for integer division: 
query I rowsort label-2630
SELECT ALL - 35 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL - 35 / + 58
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( + 94, - - 4 ) AS col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2632
SELECT - 16 DIV + + 66 * - 3 * + 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2632
SELECT - 16 / + + 66 * - 3 * + 77 AS col0
----
0

query I rowsort
SELECT ALL + ( - 79 )
----
-79

query I rowsort
SELECT - 51 - + + 32
----
-83

query I rowsort
SELECT + NULLIF ( + 50, + 45 ) col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT 26 * - - COUNT( * ) + - NULLIF ( - MIN( - 69 ), + + COALESCE ( 92, MIN( ALL 5 ) ) * + 71 / + NULLIF ( - 35, + 4 ) + + 58 ) + - 40
----
-83

skipif mysql # not compatible
query I rowsort label-2636
SELECT 26 * - - COUNT ( * ) + - NULLIF ( - MIN ( - 69 ), + + COALESCE ( 92, MIN ( ALL 5 ) ) * + 71 / + NULLIF ( - 35, + 4 ) + + 58 ) + - 40
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT ALL ( + MIN( ALL + 60 ) )
----
60

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL ( + MIN ( ALL + 60 ) )
----
60

query I rowsort
SELECT DISTINCT ( - + 42 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT - NULLIF ( + 19, + - 2 - + 82 - ( - 20 ) + + - COUNT( - 1 ) + + + ( - 67 ) * - 29 * + + CASE - - 90 WHEN + 48 * - - 40 * + + 43 THEN + + NULLIF ( + + 45, 57 ) + - ( + 14 ) WHEN + 18 THEN NULL WHEN + 63 + + + ( AVG ( - 33 ) ) - + COUNT( 6 ) THEN NULL END ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-2639
SELECT - NULLIF ( + 19, + - 2 - + 82 - ( - 20 ) + + - COUNT ( - 1 ) + + + ( - 67 ) * - 29 * + + CASE - - 90 WHEN + 48 * - - 40 * + + 43 THEN + + NULLIF ( + + 45, 57 ) + - ( + 14 ) WHEN + 18 THEN NULL WHEN + 63 + + + ( AVG ( - 33 ) ) - + COUNT ( 6 ) THEN NULL END ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT DISTINCT + COUNT( * ) * - COALESCE ( - + 51, 64 )
----
51

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT + COUNT ( * ) * - COALESCE ( - + 51, 64 )
----
51

query II rowsort
SELECT + 97 * + 96, + 3 * COALESCE ( + ( + - 24 ), + 14, 30 ) * - - 17 + 6 AS col2
----
9312
-1218

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL + 36 * + COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL + 36 * + COUNT ( * ) AS col2
----
36

query I rowsort
SELECT DISTINCT 35 col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2644
SELECT + ( - COALESCE ( + CAST( - NULLIF ( + + 0, 28 + 22 / + + 24 + - + 62 ) AS SIGNED ), + SUM( 51 ) - + + 17, + ( 59 ) + + 28 - 16 ) ) * 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2644
SELECT + ( - COALESCE ( + CAST ( - NULLIF ( + + 0, 28 + 22 / + + 24 + - + 62 ) AS INTEGER ), + SUM ( 51 ) - + + 17, + ( 59 ) + + 28 - 16 ) ) * 97 AS col0
----
0

query I rowsort
SELECT + - 26 + + 27 * + 25
----
649

onlyif mysql # aggregate syntax: 
query II rowsort label-2646
SELECT + + COUNT( DISTINCT - 59 ) + + - ( 49 ) * - COUNT( * ) AS col0, + 64 AS col0
----
50
64

skipif mysql # not compatible
query II rowsort label-2646
SELECT + + COUNT ( DISTINCT - 59 ) + + - ( 49 ) * - COUNT ( * ) AS col0, + 64 AS col0
----
50
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2647
SELECT ALL - CAST( + 49 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL - CAST ( + 49 AS INTEGER )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2648
SELECT 49 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT 49 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2649
SELECT ALL - CAST( - 84 AS SIGNED ) + 52 AS col0
----
136

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL - CAST ( - 84 AS INTEGER ) + 52 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT DISTINCT CASE + 65 WHEN + SUM( DISTINCT 25 ) THEN 84 / 31 WHEN SUM( 74 ) THEN - 68 - - 81 END + - + SUM( 59 ) * - + 83 + + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT CASE + 65 WHEN + SUM ( DISTINCT 25 ) THEN 84 / 31 WHEN SUM ( 74 ) THEN - 68 - - 81 END + - + SUM ( 59 ) * - + 83 + + 51 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 11 + + 64 AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2652
SELECT 72 * - - CAST( NULL AS SIGNED ) * - - COUNT( DISTINCT - 71 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2652
SELECT 72 * - - CAST ( NULL AS INTEGER ) * - - COUNT ( DISTINCT - 71 ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2653
SELECT DISTINCT + 94 + + + 72 / + + CAST( NULL AS SIGNED ) * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT + 94 + + + 72 / + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2654
SELECT ( COUNT( * ) ), - 1 AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-2654
SELECT ( COUNT ( * ) ), - 1 AS col2
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT ALL + 61 + - - 47 + - 59 * 16 * - 81 + 61 - + SUM( 13 ) + 80 + - 11 AS col0
----
76689

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL + 61 + - - 47 + - 59 * 16 * - 81 + 61 - + SUM ( 13 ) + 80 + - 11 AS col0
----
76689

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT + CASE WHEN + COUNT( * ) = 25 THEN - 20 * + 53 + + + 32 - + 11 / + COUNT( + ( + + 57 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2656
SELECT + CASE WHEN + COUNT ( * ) = 25 THEN - 20 * + 53 + + + 32 - + 11 / + COUNT ( + ( + + 57 ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2657
SELECT 41 * - COUNT( 79 ) AS col1, - CASE - 14 WHEN 87 * - CAST( - NULLIF ( + NULLIF ( - COUNT( * ), - + 83 ), - COUNT( * ) ) AS SIGNED ) + - 69 THEN NULL WHEN - 20 * COUNT( ALL + 45 ) * + MAX( + 34 ) THEN + + COUNT( ALL + - 85 ) WHEN 50 THEN NULL ELSE + - COUNT( * ) * + + 20 + - + 39 + 49 DIV + 88 * + - SUM( 7 ) END AS col2
----
-41
59

skipif mysql # not compatible
query II rowsort label-2657
SELECT 41 * - COUNT ( 79 ) AS col1, - CASE - 14 WHEN 87 * - CAST ( - NULLIF ( + NULLIF ( - COUNT ( * ), - + 83 ), - COUNT ( * ) ) AS INTEGER ) + - 69 THEN NULL WHEN - 20 * COUNT ( ALL + 45 ) * + MAX ( + 34 ) THEN + + COUNT ( ALL + - 85 ) WHEN 50 THEN NULL ELSE + - COUNT ( * ) * + + 20 + - + 39 + 49 / + 88 * + - SUM ( 7 ) END AS col2
----
-41
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT ALL - - COALESCE ( - 66, SUM( ALL - + 3 ) * + - 78, 71 )
----
-66

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL - - COALESCE ( - 66, SUM ( ALL - + 3 ) * + - 78, 71 )
----
-66

query I rowsort
SELECT ALL - 39 - + 89
----
-128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2660
SELECT + COUNT( * ) DIV - 2 - - + COUNT( * ) + + ( - 61 )
----
-60

skipif mysql # not compatible
query I rowsort label-2660
SELECT + COUNT ( * ) / - 2 - - + COUNT ( * ) + + ( - 61 )
----
-60

query II rowsort
SELECT + 64 AS col1, 88
----
64
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT ALL - 39 - + - SUM( - 67 )
----
-106

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL - 39 - + - SUM ( - 67 )
----
-106

query I rowsort
SELECT 65 * - - 58 AS col0
----
3770

query I rowsort
SELECT 0 * + 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT + 64 * - 84 * - - CASE - 68 WHEN + - 34 * + ( + + ( SUM( 82 ) ) ) THEN - 21 WHEN 1 + 41 THEN NULL END + + 57 + - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT + 64 * - 84 * - - CASE - 68 WHEN + - 34 * + ( + + ( SUM ( 82 ) ) ) THEN - 21 WHEN 1 + 41 THEN NULL END + + 57 + - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT 40 * + COUNT( * ) * + - ( - 75 ) * + + 62 - 59
----
185941

skipif mysql # not compatible
query I rowsort label-2666
SELECT 40 * + COUNT ( * ) * + - ( - 75 ) * + + 62 - 59
----
185941

query I rowsort
SELECT ALL 50 * - 35 AS col1
----
-1750

query I rowsort
SELECT DISTINCT 68 * - 65 * - 0 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2669
SELECT ALL - CAST( 50 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL - CAST ( 50 AS INTEGER )
----
-50

query II rowsort
SELECT 21 AS col2, - 50 AS col2
----
21
-50

query I rowsort
SELECT 16 * 92
----
1472

query I rowsort
SELECT ALL - 59 * + - 71
----
4189

query II rowsort
SELECT ALL 95 AS col1, 45
----
95
45

query II rowsort
SELECT - 96, + ( 72 ) AS col1
----
-96
72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2675
SELECT 96 + - 81 + - NULLIF ( - 62, CAST( NULL AS DECIMAL ) * COUNT( * ) * 22 - - COUNT( * ) ) - - 4
----
81

skipif mysql # not compatible
query I rowsort label-2675
SELECT 96 + - 81 + - NULLIF ( - 62, CAST ( NULL AS REAL ) * COUNT ( * ) * 22 - - COUNT ( * ) ) - - 4
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2676
SELECT COUNT( * ) DIV 14 * + + SUM( - 61 ) + + 62
----
62

skipif mysql # not compatible
query I rowsort label-2676
SELECT COUNT ( * ) / 14 * + + SUM ( - 61 ) + + 62
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-2677
SELECT ( - ( 11 ) ) + - NULLIF ( - ( - - 54 ), + + COUNT( * ) ) + - + 2, + 47 AS col0
----
41
47

skipif mysql # not compatible
query II rowsort label-2677
SELECT ( - ( 11 ) ) + - NULLIF ( - ( - - 54 ), + + COUNT ( * ) ) + - + 2, + 47 AS col0
----
41
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT ALL + - 30 * - 89 * + - COUNT( * )
----
-2670

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL + - 30 * - 89 * + - COUNT ( * )
----
-2670

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT - 85 + COUNT( * ) * - 87
----
-172

skipif mysql # not compatible
query I rowsort label-2679
SELECT - 85 + COUNT ( * ) * - 87
----
-172

query I rowsort
SELECT COALESCE ( - - 84, - - 89 )
----
84

query I rowsort
SELECT 17 + - 33
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT DISTINCT - + COUNT( * ) + - + 78 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-2682
SELECT DISTINCT - + COUNT ( * ) + - + 78 AS col2
----
-79

query I rowsort
SELECT ALL 51 + 72
----
123

query I rowsort
SELECT 94 + + - 87 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT ALL - - 50 * COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL - - 50 * COUNT ( * ) AS col0
----
50

query I rowsort
SELECT DISTINCT - + 25 + 20 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT ( + 19 ) + + + 20 - + + COUNT( * ) + - - 53 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-2687
SELECT ( + 19 ) + + + 20 - + + COUNT ( * ) + - - 53 AS col1
----
91

query I rowsort
SELECT COALESCE ( ( - 37 ), - 61 ) AS col0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2689
SELECT - 84 + + ( CAST( NULL AS SIGNED ) ) + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2689
SELECT - 84 + + ( CAST ( NULL AS INTEGER ) ) + 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2690
SELECT DISTINCT - + 33 DIV ( - 51 ) * COUNT( * ) * + 75 * - 80 + - 50 + - + COUNT( * ) + - - COUNT( * ) * 49
----
-2

skipif mysql # not compatible
query I rowsort label-2690
SELECT DISTINCT - + 33 / ( - 51 ) * COUNT ( * ) * + 75 * - 80 + - 50 + - + COUNT ( * ) + - - COUNT ( * ) * 49
----
-2

query I rowsort
SELECT ALL - + ( + - 7 )
----
7

query I rowsort
SELECT ALL 17 * ( NULLIF ( 15, - 60 ) ) AS col0
----
255

query I rowsort
SELECT DISTINCT 34 * 9 AS col1
----
306

query I rowsort
SELECT ALL 10 * - - 29
----
290

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT ALL 69 * - MAX( ALL - 90 )
----
6210

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL 69 * - MAX ( ALL - 90 )
----
6210

query I rowsort
SELECT COALESCE ( + - 77, - + 27 ) * - 76 * 62 * - 18
----
-6530832

query I rowsort
SELECT 10 * + 23
----
230

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2698
SELECT 81 + 15 + - + 76 DIV 40 AS col1, + COUNT( * )
----
95
1

skipif mysql # not compatible
query II rowsort label-2698
SELECT 81 + 15 + - + 76 / 40 AS col1, + COUNT ( * )
----
95
1

query I rowsort
SELECT 19 + 11 col0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-2700
SELECT SUM( ALL 74 ), COALESCE ( + + 81, + - SUM( - 70 ) + - MIN( - + 35 ) + + 97 - COUNT( DISTINCT - 0 ) * + 71 * + 64 ) + + 40 AS col1
----
74
121

skipif mysql # not compatible
query II rowsort label-2700
SELECT SUM ( ALL 74 ), COALESCE ( + + 81, + - SUM ( - 70 ) + - MIN ( - + 35 ) + + 97 - COUNT ( DISTINCT - 0 ) * + 71 * + 64 ) + + 40 AS col1
----
74
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT ALL - MIN( DISTINCT 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL - MIN ( DISTINCT 54 )
----
-54

query I rowsort
SELECT 0 * - 3 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2703
SELECT 63 * + MAX( ALL 47 ) + COALESCE ( + 91, - ( + CAST( NULL AS SIGNED ) ), - - 81 ) + - 3 * + 57 * + - 3 * CAST( 6 AS SIGNED ) DIV + - 3 - 41 * NULLIF ( + - CAST( - 78 AS SIGNED ), - 81 - 93 )
----
-1172

skipif mysql # not compatible
query I rowsort label-2703
SELECT 63 * + MAX ( ALL 47 ) + COALESCE ( + 91, - ( + CAST ( NULL AS INTEGER ) ), - - 81 ) + - 3 * + 57 * + - 3 * CAST ( 6 AS INTEGER ) / + - 3 - 41 * NULLIF ( + - CAST ( - 78 AS INTEGER ), - 81 - 93 )
----
-1172

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT COUNT( + + ( 61 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2704
SELECT COUNT ( + + ( 61 ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT 90 * + - CAST( + - COALESCE ( - 8, - 5 * 58 ) AS SIGNED ) AS col2
----
-720

skipif mysql # not compatible
query I rowsort label-2705
SELECT 90 * + - CAST ( + - COALESCE ( - 8, - 5 * 58 ) AS INTEGER ) AS col2
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT 25 + - + 27 * - - MAX( 88 ) * + - 36 AS col1
----
85561

skipif mysql # not compatible
query I rowsort label-2706
SELECT 25 + - + 27 * - - MAX ( 88 ) * + - 36 AS col1
----
85561

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT + COUNT( ALL - 76 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2707
SELECT + COUNT ( ALL - 76 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2708
SELECT DISTINCT - CASE + 21 WHEN - + 79 * + 34 * - - 23 + + + AVG ( DISTINCT + 74 ) / 8 + - 28 THEN NULL WHEN 99 + - 7 THEN + + 38 * 96 - CAST( - 60 AS SIGNED ) + + COUNT( * ) + + - 13 * 81 + - 22 + - 70 * - 87 * - + 75 / - AVG ( + - 47 ) - + 48 - - - 81 + + + 52 - ( + 35 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT - CASE + 21 WHEN - + 79 * + 34 * - - 23 + + + AVG ( DISTINCT + 74 ) / 8 + - 28 THEN NULL WHEN 99 + - 7 THEN + + 38 * 96 - CAST ( - 60 AS INTEGER ) + + COUNT ( * ) + + - 13 * 81 + - 22 + - 70 * - 87 * - + 75 / - AVG ( + - 47 ) - + 48 - - - 81 + + + 52 - ( + 35 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT ALL - + 27 + ( COUNT( * ) ) * - - 39 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL - + 27 + ( COUNT ( * ) ) * - - 39 AS col1
----
12

query I rowsort
SELECT DISTINCT + 88 + - 28
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-2711
SELECT MIN( - 97 ), + 89 AS col0
----
-97
89

skipif mysql # not compatible
query II rowsort label-2711
SELECT MIN ( - 97 ), + 89 AS col0
----
-97
89

query I rowsort
SELECT DISTINCT - ( - 77 )
----
77

query I rowsort
SELECT - - 49 * 72 AS col2
----
3528

onlyif mysql # DIV for integer division: 
query II rowsort label-2714
SELECT DISTINCT + 38 DIV 9 AS col0, - 59 + 83 AS col1
----
4
24

skipif mysql # not compatible
query II rowsort label-2714
SELECT DISTINCT + 38 / 9 AS col0, - 59 + 83 AS col1
----
4
24

query I rowsort
SELECT ALL + 94 + + ( + 61 ) + 5
----
160

query I rowsort
SELECT - 71 * - + 53 * + 14
----
52682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2717
SELECT DISTINCT + - 10 / + - ( - CASE - - 60 WHEN ( - - CAST( - 5 AS SIGNED ) ) + - SUM( DISTINCT - 42 ) / - - COUNT( * ) THEN + 6 - 55 * ( + COUNT( * ) ) WHEN - 27 + + + ( + 70 ) + 71 + + 18 THEN - - ( - 22 ) END ) + + + 62 col2, - 72
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-2717
SELECT DISTINCT + - 10 / + - ( - CASE - - 60 WHEN ( - - CAST ( - 5 AS INTEGER ) ) + - SUM ( DISTINCT - 42 ) / - - COUNT ( * ) THEN + 6 - 55 * ( + COUNT ( * ) ) WHEN - 27 + + + ( + 70 ) + 71 + + 18 THEN - - ( - 22 ) END ) + + + 62 col2, - 72
----
NULL
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2718
SELECT - CAST( + COUNT( * ) AS SIGNED ) * - - ( 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-2718
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * - - ( 54 ) AS col2
----
-54

query I rowsort
SELECT ALL + 44 * - + 37
----
-1628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2720
SELECT + MAX( 0 ) + - 40 + - - CAST( NULL AS SIGNED ) + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-2720
SELECT + MAX ( 0 ) + - 40 + - - CAST ( NULL AS INTEGER ) + + 38
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2721
SELECT ALL - MIN( DISTINCT - + 43 ) - - + ( 92 ) + 98 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL - MIN ( DISTINCT - + 43 ) - - + ( 92 ) + 98 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT ALL - NULLIF ( - - COUNT( * ), + + 17 ) * - 4 * + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL - NULLIF ( - - COUNT ( * ), + + 17 ) * - 4 * + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT - MIN( 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-2723
SELECT - MIN ( 47 )
----
-47

query II rowsort
SELECT DISTINCT - - 81 * + - 42, 10 * - 31 AS col1
----
-3402
-310

query I rowsort
SELECT ALL - 39 - - 13 AS col0
----
-26

query I rowsort
SELECT + COALESCE ( 95, - 69 ) * - - 41
----
3895

query I rowsort
SELECT ALL ( + - 88 )
----
-88

query I rowsort
SELECT DISTINCT + NULLIF ( - 69, + ( 15 ) ) AS col2
----
-69

query I rowsort
SELECT ( - - 64 )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2730
SELECT + COUNT( * ) DIV 30 + - - 96
----
96

skipif mysql # not compatible
query I rowsort label-2730
SELECT + COUNT ( * ) / 30 + - - 96
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2731
SELECT + 57 DIV ( COUNT( * ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-2731
SELECT + 57 / ( COUNT ( * ) ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT + NULLIF ( + MIN( - 43 ), + 43 + 18 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-2732
SELECT + NULLIF ( + MIN ( - 43 ), + 43 + 18 ) AS col2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2733
SELECT DISTINCT + COALESCE ( - MAX( DISTINCT - + 92 ), MAX( + 84 ) * + 88 - + 52 + 93 * - COALESCE ( + 31, - + CASE - 28 WHEN + + 74 THEN NULL WHEN - 34 THEN + COALESCE ( + 57, + + 68 + - ( - 97 ) ) + + 57 ELSE NULL END, 88 + - + 99 * COUNT( * ) + - CAST( NULL AS SIGNED ) ) ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT + COALESCE ( - MAX ( DISTINCT - + 92 ), MAX ( + 84 ) * + 88 - + 52 + 93 * - COALESCE ( + 31, - + CASE - 28 WHEN + + 74 THEN NULL WHEN - 34 THEN + COALESCE ( + 57, + + 68 + - ( - 97 ) ) + + 57 ELSE NULL END, 88 + - + 99 * COUNT ( * ) + - CAST ( NULL AS INTEGER ) ) ) AS col0
----
92

query I rowsort
SELECT ALL COALESCE ( - + 96, + 43 ) * 4
----
-384

query I rowsort
SELECT ( + - 21 ) col2
----
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-2736
SELECT ALL + 4 DIV + - 17 * + - 71 AS col1, + 31
----
0
31

skipif mysql # not compatible
query II rowsort label-2736
SELECT ALL + 4 / + - 17 * + - 71 AS col1, + 31
----
0
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2737
SELECT DISTINCT NULLIF ( 94, + - 79 * - - COUNT( * ) / - 62 + + - COUNT( * ) - + 95 ) * CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + + 89 * - CAST( + - 99 AS SIGNED ) + + + 21 / + COUNT( * ) + + MAX( ALL 31 ), + 99 + - 52 AS col2
----
NULL
47

skipif mysql # not compatible
query II rowsort label-2737
SELECT DISTINCT NULLIF ( 94, + - 79 * - - COUNT ( * ) / - 62 + + - COUNT ( * ) - + 95 ) * CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + 89 * - CAST ( + - 99 AS INTEGER ) + + + 21 / + COUNT ( * ) + + MAX ( ALL 31 ), + 99 + - 52 AS col2
----
NULL
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT COALESCE ( - - 61, COUNT( * ) ) col0
----
61

skipif mysql # not compatible
query I rowsort label-2738
SELECT COALESCE ( - - 61, COUNT ( * ) ) col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2739
SELECT - CAST( NULL AS SIGNED ) - 18 + + - 13 - + 79 * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-2739
SELECT - CAST ( NULL AS INTEGER ) - 18 + + - 13 - + 79 * - 85
----
NULL

query I rowsort
SELECT ALL + 70 * - COALESCE ( - + 72, + 81 + - + 97 + + - 57 ) + + - 69
----
4971

query I rowsort
SELECT CASE + ( + ( - 6 ) ) WHEN + 8 THEN + 65 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2742
SELECT + 55 DIV COUNT( ALL - 69 )
----
55

skipif mysql # not compatible
query I rowsort label-2742
SELECT + 55 / COUNT ( ALL - 69 )
----
55

query I rowsort
SELECT DISTINCT + - ( - + 74 )
----
74

query I rowsort
SELECT + - ( + ( - 99 ) ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT + 3 * - COALESCE ( - NULLIF ( + COUNT( * ), - 56 ), COALESCE ( - + 93, + 72, - - MAX( ALL 67 ) - 0 ) ) + - + 0 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2745
SELECT + 3 * - COALESCE ( - NULLIF ( + COUNT ( * ), - 56 ), COALESCE ( - + 93, + 72, - - MAX ( ALL 67 ) - 0 ) ) + - + 0 AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2746
SELECT ALL - + CAST( NULL AS SIGNED ) * - 92 + + 75 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 92 + + 75 col0
----
NULL

query I rowsort
SELECT + 56 + - 92 AS col1
----
-36

query I rowsort
SELECT DISTINCT ( + 63 )
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2749
SELECT + 69 + ( + 66 ) AS col1, COUNT( * ) + - + 20 DIV - + 54 * + 45 AS col1
----
135
1

skipif mysql # not compatible
query II rowsort label-2749
SELECT + 69 + ( + 66 ) AS col1, COUNT ( * ) + - + 20 / - + 54 * + 45 AS col1
----
135
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2750
SELECT - + 37 - - + CAST( NULL AS SIGNED ) * - + COUNT( DISTINCT - 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2750
SELECT - + 37 - - + CAST ( NULL AS INTEGER ) * - + COUNT ( DISTINCT - 46 )
----
NULL

query I rowsort
SELECT ALL - 57 - - 15 AS col2
----
-42

query I rowsort
SELECT ALL 75 * + - COALESCE ( - - 95, + 61 ) - 75 AS col0
----
-7200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2753
SELECT - 19 + - ( COUNT( * ) ) + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2753
SELECT - 19 + - ( COUNT ( * ) ) + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2754
SELECT ALL + - 32 DIV - 68 * + 20 + + 19
----
19

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL + - 32 / - 68 * + 20 + + 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT - NULLIF ( + 80, SUM( ALL 40 ) - + 15 / + 2 - - 13 ) + - + 49 * - + 98 + - NULLIF ( - 59, - 63 ) + + + CASE + 31 WHEN - 16 + + 33 + + 74 - - - 71 THEN - - 6 * COUNT( * ) / - + 25 WHEN + 68 THEN NULL END * - + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-2755
SELECT - NULLIF ( + 80, SUM ( ALL 40 ) - + 15 / + 2 - - 13 ) + - + 49 * - + 98 + - NULLIF ( - 59, - 63 ) + + + CASE + 31 WHEN - 16 + + 33 + + 74 - - - 71 THEN - - 6 * COUNT ( * ) / - + 25 WHEN + 68 THEN NULL END * - + 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT + ( + - 98 ) / - ( - CASE + ( + + COUNT( * ) ) WHEN + COUNT( - 38 ) * + - 96 THEN NULL WHEN + - 88 THEN + 3 * - - 79 + 14 * - - 15 + - COUNT( * ) + ( - COUNT( * ) ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2756
SELECT + ( + - 98 ) / - ( - CASE + ( + + COUNT ( * ) ) WHEN + COUNT ( - 38 ) * + - 96 THEN NULL WHEN + - 88 THEN + 3 * - - 79 + 14 * - - 15 + - COUNT ( * ) + ( - COUNT ( * ) ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2757
SELECT - 41 * + 16 + - ( COALESCE ( - 99, - COUNT( * ) * ( + - ( ( - 44 ) ) ), 17, + COALESCE ( + 80, + COUNT( * ) + + 16 + 83, - - 99 + + 64 DIV - 17, - 67 ) * - 6 + 85 ) ) + + 92 * - 78 * - SUM( - 13 ) AS col1
----
-93845

skipif mysql # not compatible
query I rowsort label-2757
SELECT - 41 * + 16 + - ( COALESCE ( - 99, - COUNT ( * ) * ( + - ( ( - 44 ) ) ), 17, + COALESCE ( + 80, + COUNT ( * ) + + 16 + 83, - - 99 + + 64 / - 17, - 67 ) * - 6 + 85 ) ) + + 92 * - 78 * - SUM ( - 13 ) AS col1
----
-93845

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT - 46 + - COUNT( * ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-2758
SELECT - 46 + - COUNT ( * ) AS col1
----
-47

query II rowsort
SELECT 94, + 12 * + + 55 AS col0
----
94
660

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT - 81 * + SUM( DISTINCT + - 4 ) AS col1
----
324

skipif mysql # not compatible
query I rowsort label-2760
SELECT - 81 * + SUM ( DISTINCT + - 4 ) AS col1
----
324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2761
SELECT ALL - 80 DIV COALESCE ( COUNT( DISTINCT 92 ), 74 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL - 80 / COALESCE ( COUNT ( DISTINCT 92 ), 74 ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT - 52 + + 57 + - - CASE - 50 WHEN - COUNT( * ) THEN - 86 * 63 + + - 37 WHEN - 66 / - + 89 * + 75 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2762
SELECT - 52 + + 57 + - - CASE - 50 WHEN - COUNT ( * ) THEN - 86 * 63 + + - 37 WHEN - 66 / - + 89 * + 75 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2763
SELECT - 69 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-2763
SELECT - 69 / - 99
----
0

query II rowsort
SELECT - 34 + - 41 - + ( - + 10 ) + - 81 + + 53 - + 56 + - 41 * + 74 * + - 16 * - 9 * - - ( - ( + - 26 ) ), 11 AS col2
----
-11359445
11

query I rowsort
SELECT ALL + 8 * + + 71 col1
----
568

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL CASE - - 8 WHEN - 48 THEN NULL ELSE COUNT( - - 63 ) + 40 * 74 * 48 * + 85 END AS col0
----
12076801

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL CASE - - 8 WHEN - 48 THEN NULL ELSE COUNT ( - - 63 ) + 40 * 74 * 48 * + 85 END AS col0
----
12076801

onlyif mysql # DIV for integer division: 
query I rowsort label-2767
SELECT DISTINCT 77 DIV - + 71 + - 85 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-2767
SELECT DISTINCT 77 / - + 71 + - 85 AS col2
----
-86

query I rowsort
SELECT - 15 * 17
----
-255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2769
SELECT DISTINCT - 25 DIV - + COUNT( * ) + 55
----
80

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT - 25 / - + COUNT ( * ) + 55
----
80

query II rowsort
SELECT + 26 AS col0, 18 AS col0
----
26
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2771
SELECT DISTINCT + 67, - MAX( ALL 30 ) DIV + 46 AS col2
----
67
0

skipif mysql # not compatible
query II rowsort label-2771
SELECT DISTINCT + 67, - MAX ( ALL 30 ) / + 46 AS col2
----
67
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2772
SELECT CAST( NULL AS SIGNED ), - 59 * ( - + 53 ) AS col2
----
NULL
3127

skipif mysql # not compatible
query II rowsort label-2772
SELECT CAST ( NULL AS INTEGER ), - 59 * ( - + 53 ) AS col2
----
NULL
3127

query I rowsort
SELECT 15 + - + 12 * 65
----
-765

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2774
SELECT ALL CAST( NULL AS SIGNED ) / 27 AS col2, COALESCE ( - 85, - 18 ) AS col0
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-2774
SELECT ALL CAST ( NULL AS INTEGER ) / 27 AS col2, COALESCE ( - 85, - 18 ) AS col0
----
NULL
-85

query I rowsort
SELECT DISTINCT 61 * 8 * - + 54 * 90 AS col2
----
-2371680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2776
SELECT DISTINCT + 60 + + - COUNT( * ) DIV + + 88
----
60

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT + 60 + + - COUNT ( * ) / + + 88
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT ALL + 2 + - - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL + 2 + - - COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT - MAX( ALL - 27 ) + - 39 * - COUNT( * ) col2
----
66

skipif mysql # not compatible
query I rowsort label-2778
SELECT - MAX ( ALL - 27 ) + - 39 * - COUNT ( * ) col2
----
66

query I rowsort
SELECT ( 45 ) * 58 * + + 56 + + + 43 * + - CASE - 20 WHEN - 54 THEN NULL ELSE - 10 END
----
146590

query II rowsort
SELECT + - 49, 73 AS col0
----
-49
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT - ( + MIN( DISTINCT + 34 ) ) * - 10
----
340

skipif mysql # not compatible
query I rowsort label-2781
SELECT - ( + MIN ( DISTINCT + 34 ) ) * - 10
----
340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2782
SELECT COUNT( * ) * + 15 DIV - - 65 + - - COUNT( * ) - 43 DIV - 92 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2782
SELECT COUNT ( * ) * + 15 / - - 65 + - - COUNT ( * ) - 43 / - 92 AS col1
----
1

query I rowsort
SELECT + + ( - 29 )
----
-29

query I rowsort
SELECT 69 + - + 95 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT + COALESCE ( + - 0, + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-2785
SELECT + COALESCE ( + - 0, + COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2786
SELECT - 45 col2, + 94 * 30 + + ( - AVG ( - CAST( NULL AS SIGNED ) ) )
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-2786
SELECT - 45 col2, + 94 * 30 + + ( - AVG ( - CAST ( NULL AS INTEGER ) ) )
----
-45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT ALL COUNT( * ) - + 84 + COUNT( ALL 8 ) * + 4
----
-79

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL COUNT ( * ) - + 84 + COUNT ( ALL 8 ) * + 4
----
-79

query I rowsort
SELECT 3 * + + 48 + + 58 AS col0
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT DISTINCT + - COUNT( * ) * ( 73 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-2789
SELECT DISTINCT + - COUNT ( * ) * ( 73 ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT DISTINCT + COALESCE ( COUNT( * ), - + ( - 78 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT + COALESCE ( COUNT ( * ), - + ( - 78 ) ) col2
----
1

query I rowsort
SELECT DISTINCT + 3 * 38 + ( - - 83 ) col0
----
197

query II rowsort
SELECT - 63 AS col1, + 26
----
-63
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT DISTINCT ( MAX( ALL + 99 ) )
----
99

skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT ( MAX ( ALL + 99 ) )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT DISTINCT COUNT( * ) * - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2794
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) col2
----
-1

query II rowsort
SELECT ALL 40 * - - 56 AS col0, - 39
----
2240
-39

query I rowsort
SELECT ALL 10 + - 59 * + 94 * - - 33
----
-183008

query II rowsort
SELECT ALL + 4 + - 5 AS col0, 86
----
-1
86

query I rowsort
SELECT DISTINCT 45 + 91
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2799
SELECT ALL AVG ( + - 5 ) + 18 * + - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL AVG ( + - 5 ) + 18 * + - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT ALL CASE - 57 WHEN - + 42 THEN - - COUNT( + 78 ) ELSE NULL END + 2 * + - 47 * - COUNT( * ) * - 21 * - ( 43 ) + + 28 / 76 * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL CASE - 57 WHEN - + 42 THEN - - COUNT ( + 78 ) ELSE NULL END + 2 * + - 47 * - COUNT ( * ) * - 21 * - ( 43 ) + + 28 / 76 * 14
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT 99 + + CAST( NULL AS SIGNED ) - 34 * - 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2801
SELECT 99 + + CAST ( NULL AS INTEGER ) - 34 * - 3 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2802
SELECT ALL - COALESCE ( + 39, 34 + CASE + 57 WHEN 17 * - 51 + + 71 THEN 51 + - - 16 WHEN + 59 + - + COUNT( * ) THEN NULL END ) DIV + 26 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL - COALESCE ( + 39, 34 + CASE + 57 WHEN 17 * - 51 + + 71 THEN 51 + - - 16 WHEN + 59 + - + COUNT ( * ) THEN NULL END ) / + 26 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2803
SELECT 6 DIV - + 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2803
SELECT 6 / - + 34 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2804
SELECT - 72 DIV 72 + + 23 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-2804
SELECT - 72 / 72 + + 23 AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2805
SELECT ALL + 42 * CAST( NULL AS SIGNED ) * 48 * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL + 42 * CAST ( NULL AS INTEGER ) * 48 * 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2806
SELECT 41 * NULLIF ( COUNT( * ), - CASE + - 99 WHEN 51 - 20 THEN + 32 WHEN + 22 + ( - 15 ) THEN 89 WHEN + 14 * CAST( + 57 AS SIGNED ) - + COUNT( * ) + + CASE 84 WHEN CAST( - + 19 AS SIGNED ) + - NULLIF ( 67, + 1 * - CAST( NULL AS SIGNED ) * + SUM( 3 ) ) THEN - CASE - NULLIF ( - 50, + - MIN( ALL + CAST( NULL AS DECIMAL ) ) ) WHEN - COUNT( * ) * - - 16 * + 58 * 9 THEN CASE + 2 WHEN 26 / SUM( ALL - - 7 ) + - 85 THEN - 25 + + - 44 - - 96 WHEN - 89 THEN NULL END * - - NULLIF ( - 25, + NULLIF ( 12, - 19 ) * 95 ) ELSE NULL END END + 39 THEN NULL WHEN - 68 THEN - 89 * + 42 END ) * 40 AS col2
----
1640

skipif mysql # not compatible
query I rowsort label-2806
SELECT 41 * NULLIF ( COUNT ( * ), - CASE + - 99 WHEN 51 - 20 THEN + 32 WHEN + 22 + ( - 15 ) THEN 89 WHEN + 14 * CAST ( + 57 AS INTEGER ) - + COUNT ( * ) + + CASE 84 WHEN CAST ( - + 19 AS INTEGER ) + - NULLIF ( 67, + 1 * - CAST ( NULL AS INTEGER ) * + SUM ( 3 ) ) THEN - CASE - NULLIF ( - 50, + - MIN ( ALL + CAST ( NULL AS REAL ) ) ) WHEN - COUNT ( * ) * - - 16 * + 58 * 9 THEN CASE + 2 WHEN 26 / SUM ( ALL - - 7 ) + - 85 THEN - 25 + + - 44 - - 96 WHEN - 89 THEN NULL END * - - NULLIF ( - 25, + NULLIF ( 12, - 19 ) * 95 ) ELSE NULL END END + 39 THEN NULL WHEN - 68 THEN - 89 * + 42 END ) * 40 AS col2
----
1640

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2807
SELECT DISTINCT + 69 - + CAST( NULL AS DECIMAL ) - - ( + 10 ) + COALESCE ( - 38, + 55, - 78 * - 37 ) * 21 + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT + 69 - + CAST ( NULL AS REAL ) - - ( + 10 ) + COALESCE ( - 38, + 55, - 78 * - 37 ) * 21 + - - COUNT ( * )
----
NULL

query I rowsort
SELECT 48 - + 85 AS col2
----
-37

query I rowsort
SELECT DISTINCT - - ( - 57 )
----
-57

query I rowsort
SELECT + 20 * + 66 - - + 35 AS col0
----
1355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2811
SELECT - 78 * + CAST( NULL AS SIGNED ) * + 83 - + 13 / + AVG ( ALL ( 23 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2811
SELECT - 78 * + CAST ( NULL AS INTEGER ) * + 83 - + 13 / + AVG ( ALL ( 23 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT ALL 18 * - 63 + - COUNT( * ) AS col1
----
-1135

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL 18 * - 63 + - COUNT ( * ) AS col1
----
-1135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2813
SELECT 63 - COALESCE ( + - COUNT( * ), - 98 + 5 + - - NULLIF ( - 1, 27 * + + COUNT( DISTINCT + + 34 ) ), + 84, + 79 + + 13 + + 8 DIV + ( - CAST( NULL AS SIGNED ) ) ) * - 66 + - MIN( ALL + + 32 ) + SUM( + 1 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-2813
SELECT 63 - COALESCE ( + - COUNT ( * ), - 98 + 5 + - - NULLIF ( - 1, 27 * + + COUNT ( DISTINCT + + 34 ) ), + 84, + 79 + + 13 + + 8 / + ( - CAST ( NULL AS INTEGER ) ) ) * - 66 + - MIN ( ALL + + 32 ) + SUM ( + 1 ) AS col0
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2814
SELECT ALL - 55 DIV - NULLIF ( - - 95, - - 15 + - SUM( DISTINCT 80 ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL - 55 / - NULLIF ( - - 95, - - 15 + - SUM ( DISTINCT 80 ) ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2815
SELECT + + NULLIF ( - 87, - ( + 73 ) * + COALESCE ( - SUM( ALL - 66 ), - 84, - 9 ) - + 75 + CAST( NULL AS SIGNED ) ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-2815
SELECT + + NULLIF ( - 87, - ( + 73 ) * + COALESCE ( - SUM ( ALL - 66 ), - 84, - 9 ) - + 75 + CAST ( NULL AS INTEGER ) ) AS col1
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2816
SELECT + 45 DIV - 29 + + + 7 + + ( - - 85 ) - - 36 - + + COUNT( * ) * 22 * + - 84
----
1975

skipif mysql # not compatible
query I rowsort label-2816
SELECT + 45 / - 29 + + + 7 + + ( - - 85 ) - - 36 - + + COUNT ( * ) * 22 * + - 84
----
1975

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT 56 * COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-2817
SELECT 56 * COUNT ( * ) AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2818
SELECT ALL - CAST( NULL AS SIGNED ) * + 42 - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-2818
SELECT ALL - CAST ( NULL AS INTEGER ) * + 42 - 16
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT COALESCE ( ( - 57 ), + + 25 DIV 84 + + - 63 ) + - + 18 + + 45 DIV - + COALESCE ( 56, + 36, + - 83, + 79 + + 36 )
----
-75

skipif mysql # not compatible
query I rowsort label-2819
SELECT COALESCE ( ( - 57 ), + + 25 / 84 + + - 63 ) + - + 18 + + 45 / - + COALESCE ( 56, + 36, + - 83, + 79 + + 36 )
----
-75

query I rowsort
SELECT + 28 * 23 AS col2
----
644

query I rowsort
SELECT ALL + COALESCE ( - - 42, + 16, 68 * 20 - 5 ) + + - 27 + 27 + - 72 * + 22 * + 53
----
-83910

query I rowsort
SELECT - 67 + - - ( - 36 )
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2823
SELECT 33 - CAST( 60 AS SIGNED ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-2823
SELECT 33 - CAST ( 60 AS INTEGER ) AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2824
SELECT 35 + - CAST( + + 63 AS SIGNED ) + NULLIF ( + 49, - COUNT( * ) ) * + 32 * + ( - 34 )
----
-53340

skipif mysql # not compatible
query I rowsort label-2824
SELECT 35 + - CAST ( + + 63 AS INTEGER ) + NULLIF ( + 49, - COUNT ( * ) ) * + 32 * + ( - 34 )
----
-53340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2825
SELECT - 48 AS col1, - COALESCE ( SUM( - - 64 ), - 81 * - + 98 ) * + - ( NULLIF ( 63, + 34 - + 66 * - 82 ) ) + + NULLIF ( - CAST( NULL AS SIGNED ), 65 ) - - MIN( ALL 84 ) + - + 74 - + 17 - CAST( - COUNT( * ) AS DECIMAL ) / + + 31 * - + 91
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-2825
SELECT - 48 AS col1, - COALESCE ( SUM ( - - 64 ), - 81 * - + 98 ) * + - ( NULLIF ( 63, + 34 - + 66 * - 82 ) ) + + NULLIF ( - CAST ( NULL AS INTEGER ), 65 ) - - MIN ( ALL 84 ) + - + 74 - + 17 - CAST ( - COUNT ( * ) AS REAL ) / + + 31 * - + 91
----
-48
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2826
SELECT DISTINCT MAX( ALL + 77 ) + 38 col0, - COUNT( * ) * 5 * + 7 AS col0
----
115
-35

skipif mysql # not compatible
query II rowsort label-2826
SELECT DISTINCT MAX ( ALL + 77 ) + 38 col0, - COUNT ( * ) * 5 * + 7 AS col0
----
115
-35

query I rowsort
SELECT DISTINCT 34 + - 14 * - 87 * - + 12 + + - 33 AS col0
----
-14615

query I rowsort
SELECT 19 + - + 35 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT + 45 + - + COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-2829
SELECT + 45 + - + COUNT ( * ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL 50 * MIN( - 41 )
----
-2050

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL 50 * MIN ( - 41 )
----
-2050

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT CASE + 65 WHEN - - 0 THEN NULL WHEN - 19 THEN + COUNT( * ) * + + 75 / NULLIF ( + 76, + 16 ) END - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT CASE + 65 WHEN - - 0 THEN NULL WHEN - 19 THEN + COUNT ( * ) * + + 75 / NULLIF ( + 76, + 16 ) END - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT DISTINCT - COUNT( * ) * - - 44 - 59 col1
----
-103

skipif mysql # not compatible
query I rowsort label-2832
SELECT DISTINCT - COUNT ( * ) * - - 44 - 59 col1
----
-103

query I rowsort
SELECT + 73 * + - 54 AS col1
----
-3942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2834
SELECT - 78 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2834
SELECT - 78 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT + + 47 * COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-2835
SELECT + + 47 * COUNT ( * ) AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2836
SELECT 25 * - + ( + - 29 ) * - ( - 84 ) * + + ( - ( - 20 ) ) + + COUNT( ( + CAST( + - 76 AS SIGNED ) ) ) + CASE - - 12 WHEN 35 + + ( - MIN( - 58 ) ) - + AVG ( ALL + COALESCE ( + 75, 31 + - - 33 ) ) + 1 * - + 54 * 10 + 47 * - - 84 THEN + - COUNT( * ) WHEN + 50 + - - 73 + - CAST( NULL AS SIGNED ) THEN - 76 + - - COUNT( * ) END - + 26 + - ( + CAST( NULL AS DECIMAL ) ) - - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-2836
SELECT 25 * - + ( + - 29 ) * - ( - 84 ) * + + ( - ( - 20 ) ) + + COUNT ( ( + CAST ( + - 76 AS INTEGER ) ) ) + CASE - - 12 WHEN 35 + + ( - MIN ( - 58 ) ) - + AVG ( ALL + COALESCE ( + 75, 31 + - - 33 ) ) + 1 * - + 54 * 10 + 47 * - - 84 THEN + - COUNT ( * ) WHEN + 50 + - - 73 + - CAST ( NULL AS INTEGER ) THEN - 76 + - - COUNT ( * ) END - + 26 + - ( + CAST ( NULL AS REAL ) ) - - 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT + 36 + - 54 * - COUNT( * ) + + 99 * 78 AS col0
----
7812

skipif mysql # not compatible
query I rowsort label-2837
SELECT + 36 + - 54 * - COUNT ( * ) + + 99 * 78 AS col0
----
7812

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT ALL - - ( + 75 ) * - + MAX( DISTINCT 68 )
----
-5100

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL - - ( + 75 ) * - + MAX ( DISTINCT 68 )
----
-5100

query I rowsort
SELECT - 49 * - - 10 + + - 47 + 57
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT ALL - COUNT( - 24 ) * - - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL - COUNT ( - 24 ) * - - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT ALL + ( - + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL + ( - + COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT ALL - COUNT( * ) * 96 - + 19 col0
----
-115

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL - COUNT ( * ) * 96 - + 19 col0
----
-115

onlyif mysql # DIV for integer division: 
query II rowsort label-2843
SELECT DISTINCT + - 50 AS col0, 89 + - 71 DIV + 65 AS col0
----
-50
88

skipif mysql # not compatible
query II rowsort label-2843
SELECT DISTINCT + - 50 AS col0, 89 + - 71 / + 65 AS col0
----
-50
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2844
SELECT - NULLIF ( CASE - + NULLIF ( 18, - - ( + + CAST( - - 28 AS SIGNED ) ) ) WHEN 60 THEN - + COUNT( * ) ELSE - 79 * COUNT( * ) * + 80 END, - ( 50 ) )
----
6320

skipif mysql # not compatible
query I rowsort label-2844
SELECT - NULLIF ( CASE - + NULLIF ( 18, - - ( + + CAST ( - - 28 AS INTEGER ) ) ) WHEN 60 THEN - + COUNT ( * ) ELSE - 79 * COUNT ( * ) * + 80 END, - ( 50 ) )
----
6320

query I rowsort
SELECT - 5 * - + 77 + + + 22 AS col2
----
407

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ALL + + MIN( ALL - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL + + MIN ( ALL - 66 )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-2847
SELECT - COUNT( * ), NULLIF ( + 19, + - 84 ) * + 30 * + 82 AS col0
----
-1
46740

skipif mysql # not compatible
query II rowsort label-2847
SELECT - COUNT ( * ), NULLIF ( + 19, + - 84 ) * + 30 * + 82 AS col0
----
-1
46740

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT ALL 17 * - ( - COUNT( * ) ) + + + 41
----
58

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL 17 * - ( - COUNT ( * ) ) + + + 41
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT - NULLIF ( 98, - + COUNT( * ) + + 59 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-2849
SELECT - NULLIF ( 98, - + COUNT ( * ) + + 59 ) AS col2
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2850
SELECT DISTINCT + - 84 + + COUNT( ALL + + 92 ) * + + 51, 13 + - MAX( DISTINCT - ( - CAST( NULL AS SIGNED ) ) ) AS col0
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-2850
SELECT DISTINCT + - 84 + + COUNT ( ALL + + 92 ) * + + 51, 13 + - MAX ( DISTINCT - ( - CAST ( NULL AS INTEGER ) ) ) AS col0
----
-33
NULL

query I rowsort
SELECT ALL - - 21 + - 21
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2852
SELECT - 23 * 52 DIV 37
----
-32

skipif mysql # not compatible
query I rowsort label-2852
SELECT - 23 * 52 / 37
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT ALL NULLIF ( + - COUNT( * ), 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL NULLIF ( + - COUNT ( * ), 9 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2854
SELECT ALL CAST( 59 AS SIGNED ) + - CASE + 28 WHEN - + ( + + NULLIF ( - 54, - ( + - 97 ) ) ) * - - 84 + COALESCE ( + 85, CASE 99 WHEN - COUNT( * ) + - 85 THEN - - MIN( ALL + - 53 ) * + 3 * + - 29 * + 28 + + + 22 WHEN - + ( - + 3 ) THEN - 5 + + ( MIN( DISTINCT - 50 ) ) END * - 95 + - 54 + - + CAST( + 71 AS SIGNED ) / + 75 ) THEN NULL WHEN + + 77 + ( 26 ) * - + 16 THEN - + 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL CAST ( 59 AS INTEGER ) + - CASE + 28 WHEN - + ( + + NULLIF ( - 54, - ( + - 97 ) ) ) * - - 84 + COALESCE ( + 85, CASE 99 WHEN - COUNT ( * ) + - 85 THEN - - MIN ( ALL + - 53 ) * + 3 * + - 29 * + 28 + + + 22 WHEN - + ( - + 3 ) THEN - 5 + + ( MIN ( DISTINCT - 50 ) ) END * - 95 + - 54 + - + CAST ( + 71 AS INTEGER ) / + 75 ) THEN NULL WHEN + + 77 + ( 26 ) * - + 16 THEN - + 57 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2855
SELECT DISTINCT + SUM( DISTINCT 3 ) DIV + 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2855
SELECT DISTINCT + SUM ( DISTINCT 3 ) / + 46 AS col0
----
0

query II rowsort
SELECT DISTINCT - 4 + + 41 - 60 + - + 44 AS col0, 72 * + 30
----
-67
2160

query I rowsort
SELECT DISTINCT + ( 41 ) * ( 28 )
----
1148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2858
SELECT - 63 - - + MAX( - - 19 ) + + 37 DIV ( 43 ) * + ( + 98 ) col1
----
-44

skipif mysql # not compatible
query I rowsort label-2858
SELECT - 63 - - + MAX ( - - 19 ) + + 37 / ( 43 ) * + ( + 98 ) col1
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2859
SELECT - 39 DIV - + 30 * + COALESCE ( + COUNT( * ), - + 11 + - 3, + + 4 + 51, ( + - 43 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2859
SELECT - 39 / - + 30 * + COALESCE ( + COUNT ( * ), - + 11 + - 3, + + 4 + 51, ( + - 43 ) )
----
1

query I rowsort
SELECT ALL - 87 - + + 7 + + 65 * + - 12 * 36 + + - 93
----
-28267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2861
SELECT ALL ( ( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL ( ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2862
SELECT ALL CAST( + 23 AS SIGNED ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL CAST ( + 23 AS INTEGER ) AS col0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2863
SELECT + 85 - 36 DIV + COUNT( ALL ( + 93 ) )
----
49

skipif mysql # not compatible
query I rowsort label-2863
SELECT + 85 - 36 / + COUNT ( ALL ( + 93 ) )
----
49

query I rowsort
SELECT - COALESCE ( 19, 37 ) AS col0
----
-19

query I rowsort
SELECT - ( + 57 ) col0
----
-57

query I rowsort
SELECT + 49 + + 9
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2867
SELECT + MIN( + ( CAST( NULL AS DECIMAL ) ) ) * - - 83 * - 35 + 84 / - - 49 * - 38 - + CASE + COALESCE ( - - 93, - - 61 ) WHEN + NULLIF ( - COUNT( ALL + - 83 ), 85 ) THEN - + 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT + MIN ( + ( CAST ( NULL AS REAL ) ) ) * - - 83 * - 35 + 84 / - - 49 * - 38 - + CASE + COALESCE ( - - 93, - - 61 ) WHEN + NULLIF ( - COUNT ( ALL + - 83 ), 85 ) THEN - + 94 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT + COUNT( DISTINCT - 91 )
----
1

skipif mysql # not compatible
query I rowsort label-2868
SELECT + COUNT ( DISTINCT - 91 )
----
1

query I rowsort
SELECT DISTINCT 55 * - 41 * - ( + 10 )
----
22550

query I rowsort
SELECT ALL 94 * 77
----
7238

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2871
SELECT DISTINCT 12 * - 21 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2871
SELECT DISTINCT 12 * - 21 + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT + SUM( + 58 ) * - 89 + COUNT( * )
----
-5161

skipif mysql # not compatible
query I rowsort label-2872
SELECT + SUM ( + 58 ) * - 89 + COUNT ( * )
----
-5161

query I rowsort
SELECT ALL + + COALESCE ( 75, + 42 )
----
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2874
SELECT ALL - 51 DIV - CAST( + - 40 AS SIGNED ) + 89
----
88

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL - 51 / - CAST ( + - 40 AS INTEGER ) + 89
----
88

onlyif mysql # DIV for integer division: 
query II rowsort label-2875
SELECT + 49 DIV + - 42 - - 28 * 14 AS col1, 45
----
391
45

skipif mysql # not compatible
query II rowsort label-2875
SELECT + 49 / + - 42 - - 28 * 14 AS col1, 45
----
391
45

query I rowsort
SELECT + + 93 col0
----
93

query I rowsort
SELECT + COALESCE ( + 5, + 57 * 36 + 66 + + + CASE WHEN NOT - 11 IS NULL THEN + - 52 END * 25 ) - 64 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT + - COALESCE ( 78, + 72 * + 42 - - - NULLIF ( + 51, - 17 * 20 * - + 59 * COUNT( * ) / 70 - + 79 ) ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-2878
SELECT + - COALESCE ( 78, + 72 * + 42 - - - NULLIF ( + 51, - 17 * 20 * - + 59 * COUNT ( * ) / 70 - + 79 ) ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-2879
SELECT DISTINCT + ( + 62 ) AS col2, 90 * + COUNT( * ) - + 0
----
62
90

skipif mysql # not compatible
query II rowsort label-2879
SELECT DISTINCT + ( + 62 ) AS col2, 90 * + COUNT ( * ) - + 0
----
62
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2880
SELECT + - 83 * + CAST( + + 42 AS SIGNED )
----
-3486

skipif mysql # not compatible
query I rowsort label-2880
SELECT + - 83 * + CAST ( + + 42 AS INTEGER )
----
-3486

query I rowsort
SELECT - - 77 * - 12 + + - 0 * - NULLIF ( 87, - + COALESCE ( 22, + 75 ) - - + 99 / 34 ) + - 79
----
-1003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2882
SELECT ALL CASE + 39 WHEN - 72 THEN + CAST( + COUNT( * ) AS SIGNED ) * + 52 + 49 ELSE - + CAST( NULL AS SIGNED ) END * + - 37 + + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL CASE + 39 WHEN - 72 THEN + CAST ( + COUNT ( * ) AS INTEGER ) * + 52 + 49 ELSE - + CAST ( NULL AS INTEGER ) END * + - 37 + + + 75
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2883
SELECT + + COUNT( * ) * + + 44 * 89 * - 53, 57 + - 97 AS col2
----
-207548
-40

skipif mysql # not compatible
query II rowsort label-2883
SELECT + + COUNT ( * ) * + + 44 * 89 * - 53, 57 + - 97 AS col2
----
-207548
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT DISTINCT 15 * + - 13 - COUNT( * ) + + + 9 col2
----
-187

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT 15 * + - 13 - COUNT ( * ) + + + 9 col2
----
-187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2885
SELECT ALL - 50 * + + ( CASE 2 WHEN 62 + + 58 + + 34 * 22 / + 41 THEN NULL WHEN 36 + + - 64 THEN - 57 / NULLIF ( + 86, - + 24 * - + COUNT( * ) * + 99 + COALESCE ( CAST( NULL AS SIGNED ), + - 22 ) ) WHEN AVG ( DISTINCT + 61 ) * - 89 + 77 * 2 * + 45 + + 62 THEN NULL END ) + + COALESCE ( - 40, - 49 / + + 70, + + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL - 50 * + + ( CASE 2 WHEN 62 + + 58 + + 34 * 22 / + 41 THEN NULL WHEN 36 + + - 64 THEN - 57 / NULLIF ( + 86, - + 24 * - + COUNT ( * ) * + 99 + COALESCE ( CAST ( NULL AS INTEGER ), + - 22 ) ) WHEN AVG ( DISTINCT + 61 ) * - 89 + 77 * 2 * + 45 + + 62 THEN NULL END ) + + COALESCE ( - 40, - 49 / + + 70, + + 97 )
----
NULL

query I rowsort
SELECT ALL ( + - ( - 8 ) ) * 98
----
784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2887
SELECT ALL + CAST( + 76 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL + CAST ( + 76 AS INTEGER )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2888
SELECT CAST( + 43 AS DECIMAL ) * 29 + + + 87 + + CASE + NULLIF ( + 73, COUNT( * ) * + + CASE - + AVG ( - 44 ) WHEN + ( - 4 ) + - + CAST( + + 55 AS SIGNED ) THEN NULL WHEN - 80 THEN - + 10 + + 30 + + 9 + 23 END + + 48 ) WHEN 28 * - 1 THEN 30 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2888
SELECT CAST ( + 43 AS REAL ) * 29 + + + 87 + + CASE + NULLIF ( + 73, COUNT ( * ) * + + CASE - + AVG ( - 44 ) WHEN + ( - 4 ) + - + CAST ( + + 55 AS INTEGER ) THEN NULL WHEN - 80 THEN - + 10 + + 30 + + 9 + 23 END + + 48 ) WHEN 28 * - 1 THEN 30 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT ALL + 16 * 94 + - + 48 * - + ( MIN( ALL + 77 ) ) + - 73 AS col0
----
5127

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL + 16 * 94 + - + 48 * - + ( MIN ( ALL + 77 ) ) + - 73 AS col0
----
5127

query I rowsort
SELECT 35 * + + 35 col1
----
1225

query I rowsort
SELECT 9 + + 43
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT 44 - + - COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-2892
SELECT 44 - + - COUNT ( * ) AS col1
----
45

query I rowsort
SELECT 25 * + ( + + 42 ) * + + 73
----
76650

query I rowsort
SELECT 28 + + 14 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT + COUNT( * ) - + 93 + + 69 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT + COUNT ( * ) - + 93 + + 69 AS col2
----
-23

query I rowsort
SELECT DISTINCT + 1 * - 56 * - 95 AS col2
----
5320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2897
SELECT 44 + - + 22 * - 72 + - + MAX( - - 38 ) - + 18 DIV + - 62 + - - 86 + - 30 * 94 AS col0
----
-1144

skipif mysql # not compatible
query I rowsort label-2897
SELECT 44 + - + 22 * - 72 + - + MAX ( - - 38 ) - + 18 / + - 62 + - - 86 + - 30 * 94 AS col0
----
-1144

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT ALL 97 * - COUNT( * ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL 97 * - COUNT ( * ) AS col2
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2899
SELECT DISTINCT + 10 DIV - - 20 * - 22 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT + 10 / - - 20 * - 22 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT MAX( 50 ) + + + 50 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-2900
SELECT MAX ( 50 ) + + + 50 AS col0
----
100

query I rowsort
SELECT 40 + - - 14 AS col1
----
54

query I rowsort
SELECT 79 + - - 75 + - ( + 45 ) * + 27 AS col0
----
-1061

query I rowsort
SELECT ALL + 93 * + 50
----
4650

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT DISTINCT - ( + 3 ) * COALESCE ( COUNT( ALL - 79 ) * 18, + 17 + 74 )
----
-54

skipif mysql # not compatible
query I rowsort label-2904
SELECT DISTINCT - ( + 3 ) * COALESCE ( COUNT ( ALL - 79 ) * 18, + 17 + 74 )
----
-54

query I rowsort
SELECT ALL 31 + NULLIF ( 58, + 66 * 45 )
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2906
SELECT DISTINCT 48 DIV COALESCE ( 45 * 52, + 56 * + COALESCE ( + COUNT( * ), 24 * - COUNT( * ) ), 45 )
----
0

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT 48 / COALESCE ( 45 * 52, + 56 * + COALESCE ( + COUNT ( * ), 24 * - COUNT ( * ) ), 45 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2907
SELECT DISTINCT - 66 + 67 DIV 30 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT - 66 + 67 / 30 AS col0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-2908
SELECT DISTINCT + 2 + 68 * ( - 2 DIV 88 )
----
2

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT + 2 + 68 * ( - 2 / 88 )
----
2

query I rowsort
SELECT ALL - 48 + - 14 * - 44 AS col0
----
568

query I rowsort
SELECT ALL 54 + + 55 AS col2
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2911
SELECT + MAX( + 86 ) DIV CAST( COUNT( * ) DIV - 14 + + 41 AS SIGNED ) + 63 DIV 17
----
5

skipif mysql # not compatible
query I rowsort label-2911
SELECT + MAX ( + 86 ) / CAST ( COUNT ( * ) / - 14 + + 41 AS INTEGER ) + 63 / 17
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2912
SELECT 68 - - 96 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2912
SELECT 68 - - 96 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 75 + - 25 * + 6
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT 49 * + COUNT( * ) - + 67 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-2914
SELECT 49 * + COUNT ( * ) - + 67 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT ALL COUNT( * ) * + 64
----
64

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL COUNT ( * ) * + 64
----
64

query I rowsort
SELECT DISTINCT 82 + 85 AS col0
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT ALL 17 + + COALESCE ( 7, 75 - - ( 59 - SUM( ALL 16 ) * 75 ) * + 78, - 62 * 40 )
----
24

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL 17 + + COALESCE ( 7, 75 - - ( 59 - SUM ( ALL 16 ) * 75 ) * + 78, - 62 * 40 )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2918
SELECT ALL MIN( ( 52 ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL MIN ( ( 52 ) ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 46 + + 0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT DISTINCT - CASE 38 WHEN + NULLIF ( - 33, - 32 * + CASE + 40 WHEN + 14 THEN 33 * - COUNT( - NULLIF ( 4, - 23 ) ) ELSE 45 END + - 72 * - 42 ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE - COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT - CASE 38 WHEN + NULLIF ( - 33, - 32 * + CASE + 40 WHEN + 14 THEN 33 * - COUNT ( - NULLIF ( 4, - 23 ) ) ELSE 45 END + - 72 * - 42 ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - COUNT ( * ) END AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT ALL 81 - + SUM( - 8 + 83 ) * 74 AS col1
----
-5469

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL 81 - + SUM ( - 8 + 83 ) * 74 AS col1
----
-5469

onlyif mysql # DIV for integer division: 
query I rowsort label-2922
SELECT ( 54 ) DIV 49 col0
----
1

skipif mysql # not compatible
query I rowsort label-2922
SELECT ( 54 ) / 49 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2923
SELECT ALL 10 DIV + ( + 62 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL 10 / + ( + 62 ) AS col1
----
0

query I rowsort
SELECT ALL - 87 - 62 AS col2
----
-149

onlyif mysql # DIV for integer division: 
query I rowsort label-2925
SELECT 25 DIV 17 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2925
SELECT 25 / 17 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2926
SELECT DISTINCT 39 DIV 10
----
3

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT 39 / 10
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT ALL + 23 * COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL + 23 * COUNT ( * ) AS col0
----
23

query I rowsort
SELECT DISTINCT + 14 * + 59
----
826

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT ALL ( - COUNT( * ) ) * ( - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL ( - COUNT ( * ) ) * ( - 78 )
----
78

query I rowsort
SELECT 60 * + 35
----
2100

query I rowsort
SELECT 34 - - 34 col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2932
SELECT CAST( NULL AS SIGNED ) - + ( 89 + + 45 ) / 28
----
NULL

skipif mysql # not compatible
query I rowsort label-2932
SELECT CAST ( NULL AS INTEGER ) - + ( 89 + + 45 ) / 28
----
NULL

query I rowsort
SELECT 50 * 24
----
1200

query I rowsort
SELECT DISTINCT + 79 + 57 AS col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT COUNT( * ) + - 47 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-2935
SELECT COUNT ( * ) + - 47 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT + MIN( - 52 ) + COUNT( * ) * + 53
----
1

skipif mysql # not compatible
query I rowsort label-2936
SELECT + MIN ( - 52 ) + COUNT ( * ) * + 53
----
1

query I rowsort
SELECT ALL + 47 * 0
----
0

query I rowsort
SELECT 7 + - 92
----
-85

query I rowsort
SELECT - ( - 81 ) * 22 - + 9 * 38 AS col2
----
1440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2940
SELECT DISTINCT - + CAST( 25 AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT - + CAST ( 25 AS INTEGER )
----
-25

query I rowsort
SELECT ALL - - 62 AS col0
----
62

query I rowsort
SELECT ALL + 86 * 43 AS col1
----
3698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2943
SELECT MIN( DISTINCT CAST( NULL AS SIGNED ) ) * SUM( + 6 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2943
SELECT MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * SUM ( + 6 ) AS col0
----
NULL

query I rowsort
SELECT - 45 * 19 AS col2
----
-855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2945
SELECT ALL - CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL - CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT + + CASE 43 WHEN + 37 + + COUNT( * ) THEN 0 + ( - 75 ) WHEN - 80 THEN 56 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2946
SELECT + + CASE 43 WHEN + 37 + + COUNT ( * ) THEN 0 + ( - 75 ) WHEN - 80 THEN 56 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2947
SELECT + - 55 DIV - 72 - COALESCE ( + 64, 24 * 72 ) * - COUNT( * ) col0
----
64

skipif mysql # not compatible
query I rowsort label-2947
SELECT + - 55 / - 72 - COALESCE ( + 64, 24 * 72 ) * - COUNT ( * ) col0
----
64

query I rowsort
SELECT - 20 - 39
----
-59

query I rowsort
SELECT - + 81 * - 34 AS col2
----
2754

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT ALL ( + + COUNT( * ) ) * - ( 96 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL ( + + COUNT ( * ) ) * - ( 96 ) AS col0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2951
SELECT COUNT( + COALESCE ( 61, + CAST( - 54 AS SIGNED ) * - 78, 59, 90 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2951
SELECT COUNT ( + COALESCE ( 61, + CAST ( - 54 AS INTEGER ) * - 78, 59, 90 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT + MAX( - 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-2952
SELECT + MAX ( - 82 ) AS col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2953
SELECT DISTINCT + CASE 0 WHEN + ( - 16 ) THEN NULL WHEN - CASE - COUNT( NULLIF ( - 23, + CAST( - 72 AS SIGNED ) ) ) WHEN + COUNT( ALL 87 ) * 66 + CASE 22 WHEN 93 THEN NULL WHEN - 33 THEN NULL ELSE - 36 * + COUNT( * ) END THEN NULL ELSE COALESCE ( - 31, - NULLIF ( 96, + 81 ) + + 20 ) - 61 * + 24 END THEN 60 / - SUM( DISTINCT 93 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT + CASE 0 WHEN + ( - 16 ) THEN NULL WHEN - CASE - COUNT ( NULLIF ( - 23, + CAST ( - 72 AS INTEGER ) ) ) WHEN + COUNT ( ALL 87 ) * 66 + CASE 22 WHEN 93 THEN NULL WHEN - 33 THEN NULL ELSE - 36 * + COUNT ( * ) END THEN NULL ELSE COALESCE ( - 31, - NULLIF ( 96, + 81 ) + + 20 ) - 61 * + 24 END THEN 60 / - SUM ( DISTINCT 93 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - ( 29 ) * ( - 52 * - 39 ) AS col0
----
-58812

query I rowsort
SELECT DISTINCT 33 * + 8
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT - 56 * + + COUNT( * ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-2956
SELECT - 56 * + + COUNT ( * ) AS col0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-2957
SELECT + 80 DIV 7
----
11

skipif mysql # not compatible
query I rowsort label-2957
SELECT + 80 / 7
----
11

query I rowsort
SELECT + 50 + - 18 AS col1
----
32

query I rowsort
SELECT ALL 20 + + 86 + 21 * - 14
----
-188

query I rowsort
SELECT - 32 - + 71
----
-103

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2961
SELECT + 44 DIV CAST( 1 AS SIGNED ) * 17 AS col1
----
748

skipif mysql # not compatible
query I rowsort label-2961
SELECT + 44 / CAST ( 1 AS INTEGER ) * 17 AS col1
----
748

onlyif mysql # DIV for integer division: 
query I rowsort label-2962
SELECT + 13 * + ( 88 ) + 44 DIV 66 col0
----
1144

skipif mysql # not compatible
query I rowsort label-2962
SELECT + 13 * + ( 88 ) + 44 / 66 col0
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT - CASE - COUNT( ALL - ( 83 ) ) WHEN 48 + + 61 THEN NULLIF ( + 6, - NULLIF ( COUNT( 39 ), 27 + 61 ) ) + + MAX( DISTINCT 59 ) ELSE + 23 END col0
----
-23

skipif mysql # not compatible
query I rowsort label-2963
SELECT - CASE - COUNT ( ALL - ( 83 ) ) WHEN 48 + + 61 THEN NULLIF ( + 6, - NULLIF ( COUNT ( 39 ), 27 + 61 ) ) + + MAX ( DISTINCT 59 ) ELSE + 23 END col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT ALL SUM( - 99 ) + 2
----
-97

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL SUM ( - 99 ) + 2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT + 96 + - 59 * + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-2965
SELECT + 96 + - 59 * + COUNT ( * )
----
37

query I rowsort
SELECT DISTINCT 61 + 72
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT ALL + MIN( - 3 ) + COALESCE ( + 77, - COUNT( * ) ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL + MIN ( - 3 ) + COALESCE ( + 77, - COUNT ( * ) ) AS col1
----
74

query I rowsort
SELECT + - 47 + - 60
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT ALL + COUNT( 83 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL + COUNT ( 83 ) AS col0
----
1

query I rowsort
SELECT - + 73 + - 66
----
-139

query I rowsort
SELECT ALL + 67 + - 47 * 81 AS col2
----
-3740

query I rowsort
SELECT DISTINCT - 9 * 61
----
-549

query I rowsort
SELECT DISTINCT - 59 + 12 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT DISTINCT - 48 * + CASE + 91 WHEN - COUNT( * ) THEN NULL ELSE 6 END - + 57
----
-345

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT - 48 * + CASE + 91 WHEN - COUNT ( * ) THEN NULL ELSE 6 END - + 57
----
-345

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT DISTINCT + + COUNT( 57 ) + 38
----
39

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT + + COUNT ( 57 ) + 38
----
39

query I rowsort
SELECT ALL - + 87 + + - 14
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT - CASE 10 WHEN 67 * - 49 THEN - CASE + COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE - 15 * - 71 END + + ( + COALESCE ( CASE 55 WHEN - ( 57 ) THEN + ( 52 ) ELSE NULL END, + 27 ) ) WHEN 92 THEN NULL ELSE 17 END
----
-17

skipif mysql # not compatible
query I rowsort label-2977
SELECT - CASE 10 WHEN 67 * - 49 THEN - CASE + COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE - 15 * - 71 END + + ( + COALESCE ( CASE 55 WHEN - ( 57 ) THEN + ( 52 ) ELSE NULL END, + 27 ) ) WHEN 92 THEN NULL ELSE 17 END
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT ALL SUM( ALL - 44 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL SUM ( ALL - 44 ) AS col1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-2979
SELECT DISTINCT - 93 * 33 DIV + ( + 13 ) AS col1
----
-236

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT - 93 * 33 / + ( + 13 ) AS col1
----
-236

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT ALL + + MAX( DISTINCT + - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL + + MAX ( DISTINCT + - 3 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2981
SELECT DISTINCT 58 DIV + 30 - 64
----
-63

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT 58 / + 30 - 64
----
-63

query I rowsort
SELECT + - 60 * + - 43 AS col2
----
2580

query I rowsort
SELECT - - 55 + - 9 + - 7
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT + MIN( DISTINCT 80 )
----
80

skipif mysql # not compatible
query I rowsort label-2984
SELECT + MIN ( DISTINCT 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT - - CASE + 71 WHEN 40 THEN 56 / - 97 END / CASE 57 + + 74 WHEN 15 THEN NULL ELSE 2 + + ( COUNT( * ) ) END + 43 * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT - - CASE + 71 WHEN 40 THEN 56 / - 97 END / CASE 57 + + 74 WHEN 15 THEN NULL ELSE 2 + + ( COUNT ( * ) ) END + 43 * 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT - CASE 71 WHEN 44 * - 83 + - COUNT( * ) * + 2 THEN NULL WHEN 45 + 17 THEN 35 END * 20 - - 14 * + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2986
SELECT - CASE 71 WHEN 44 * - 83 + - COUNT ( * ) * + 2 THEN NULL WHEN 45 + 17 THEN 35 END * 20 - - 14 * + 70
----
NULL

query I rowsort
SELECT - 79 * + ( NULLIF ( + 4, 14 ) )
----
-316

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT ALL - COUNT( - 41 ) * + ( 38 + + 93 ) AS col0
----
-131

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL - COUNT ( - 41 ) * + ( 38 + + 93 ) AS col0
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT DISTINCT - COUNT( * ) * + - 40 * + NULLIF ( 30, + 50 ) AS col2
----
1200

skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT - COUNT ( * ) * + - 40 * + NULLIF ( 30, + 50 ) AS col2
----
1200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2990
SELECT - 34 + 42 DIV - - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-2990
SELECT - 34 + 42 / - - COUNT ( * )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2991
SELECT - 93 DIV 93
----
-1

skipif mysql # not compatible
query I rowsort label-2991
SELECT - 93 / 93
----
-1

query I rowsort
SELECT ALL + ( ( - - 21 ) ) * - 57
----
-1197

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT DISTINCT - COUNT( * ) * 82
----
-82

skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT - COUNT ( * ) * 82
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-2994
SELECT ALL + 9 col0, + ( COUNT( * ) ) + 39 AS col0
----
9
40

skipif mysql # not compatible
query II rowsort label-2994
SELECT ALL + 9 col0, + ( COUNT ( * ) ) + 39 AS col0
----
9
40

query I rowsort
SELECT DISTINCT + ( ( - + 89 ) ) AS col2
----
-89

query I rowsort
SELECT ALL - 41 * + 1 + - 14
----
-55

query I rowsort
SELECT + 56 + - 21
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2998
SELECT + CASE 75 WHEN + + ( + 35 ) + - 70 THEN + MAX( ALL ( ( CAST( NULL AS SIGNED ) ) ) ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2998
SELECT + CASE 75 WHEN + + ( + 35 ) + - 70 THEN + MAX ( ALL ( ( CAST ( NULL AS INTEGER ) ) ) ) END col2
----
NULL

query I rowsort
SELECT + 47 * - 74 + + + 67 + + 38 * 93
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT COALESCE ( + + 97, + NULLIF ( 4, COUNT( ALL 85 ) ) + 15 * + 40 )
----
97

skipif mysql # not compatible
query I rowsort label-3000
SELECT COALESCE ( + + 97, + NULLIF ( 4, COUNT ( ALL 85 ) ) + 15 * + 40 )
----
97

query I rowsort
SELECT DISTINCT + COALESCE ( 32, - 89 * - 31 ) * + 82 + 4 * 9 AS col2
----
2660

query I rowsort
SELECT ALL 66 * + 27 + - 33 AS col2
----
1749

query I rowsort
SELECT NULLIF ( + + 57, + 41 * 37 ) AS col1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3004
SELECT ALL + 14 * - ( - 10 ) + + CAST( - 62 AS SIGNED ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL + 14 * - ( - 10 ) + + CAST ( - 62 AS INTEGER ) AS col1
----
78

query I rowsort
SELECT ALL 78 * - 32 + + 76 * 54 col0
----
1608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3006
SELECT ALL COALESCE ( CASE + 98 WHEN COUNT( * ) + - 65 THEN NULL ELSE 76 END, + 92 DIV - COUNT( * ), + COUNT( * ) * + CAST( 27 AS SIGNED ) ) * - 37 + MIN( - 21 )
----
-2833

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL COALESCE ( CASE + 98 WHEN COUNT ( * ) + - 65 THEN NULL ELSE 76 END, + 92 / - COUNT ( * ), + COUNT ( * ) * + CAST ( 27 AS INTEGER ) ) * - 37 + MIN ( - 21 )
----
-2833

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT - MIN( + 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-3007
SELECT - MIN ( + 28 ) AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3008
SELECT - 50 - CAST( - 18 AS SIGNED ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-3008
SELECT - 50 - CAST ( - 18 AS INTEGER ) AS col1
----
-32

query II rowsort
SELECT + 71 AS col0, 59 AS col1
----
71
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3010
SELECT ALL + COUNT( * ) AS col0, 59
----
1
59

skipif mysql # not compatible
query II rowsort label-3010
SELECT ALL + COUNT ( * ) AS col0, 59
----
1
59

query I rowsort
SELECT ALL 94 + - 37 AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3012
SELECT + 64 - MAX( - + CAST( + CAST( - 35 AS SIGNED ) AS SIGNED ) )
----
29

skipif mysql # not compatible
query I rowsort label-3012
SELECT + 64 - MAX ( - + CAST ( + CAST ( - 35 AS INTEGER ) AS INTEGER ) )
----
29

query I rowsort
SELECT + 77 - - 5
----
82

query I rowsort
SELECT ALL - 55 - + - 5 + + 82 AS col2
----
32

query I rowsort
SELECT + - 50 * 85
----
-4250

query I rowsort
SELECT ALL NULLIF ( 25, - 54 * - NULLIF ( - 3, 88 + + 62 ) ) * 58
----
1450

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3017
SELECT DISTINCT ( - 69 ) - - CAST( NULL AS DECIMAL ) + 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT ( - 69 ) - - CAST ( NULL AS REAL ) + 12 AS col0
----
NULL

query I rowsort
SELECT ALL - 64 * 95 * - ( 14 ) * 57 AS col2
----
4851840

query II rowsort
SELECT DISTINCT + 42 AS col2, 77
----
42
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT + - 0 - - 69 + - MIN( ALL 18 )
----
51

skipif mysql # not compatible
query I rowsort label-3020
SELECT + - 0 - - 69 + - MIN ( ALL 18 )
----
51

query I rowsort
SELECT 18 * - + 61 * 58 AS col0
----
-63684

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT - 50 * - CASE 8 WHEN 72 * - 1 THEN 0 * + 51 WHEN COUNT( * ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3022
SELECT - 50 * - CASE 8 WHEN 72 * - 1 THEN 0 * + 51 WHEN COUNT ( * ) THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 19 * 60 + ( - 36 ) AS col0
----
1104

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT 65 + NULLIF ( + + 84, 94 ) * + MIN( 19 )
----
1661

skipif mysql # not compatible
query I rowsort label-3024
SELECT 65 + NULLIF ( + + 84, 94 ) * + MIN ( 19 )
----
1661

query II rowsort
SELECT DISTINCT - 67, - 94 AS col1
----
-67
-94

query II rowsort
SELECT ALL - 98, 96 AS col1
----
-98
96

query I rowsort
SELECT + 16 * - 89 AS col0
----
-1424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3028
SELECT ALL + CAST( NULL AS SIGNED ) * - CASE 55 WHEN 84 * 23 THEN + 50 / MIN( ALL - 4 ) WHEN 4 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL + CAST ( NULL AS INTEGER ) * - CASE 55 WHEN 84 * 23 THEN + 50 / MIN ( ALL - 4 ) WHEN 4 THEN NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3029
SELECT 44 * - CAST( + 38 AS SIGNED ) * + 98
----
-163856

skipif mysql # not compatible
query I rowsort label-3029
SELECT 44 * - CAST ( + 38 AS INTEGER ) * + 98
----
-163856

query I rowsort
SELECT ( - 26 ) + - 31 AS col0
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3031
SELECT 65 * + COALESCE ( - 21, 68 ) * NULLIF ( + 12 DIV COUNT( * ), - COUNT( * ) * 81 ) + 1
----
-16379

skipif mysql # not compatible
query I rowsort label-3031
SELECT 65 * + COALESCE ( - 21, 68 ) * NULLIF ( + 12 / COUNT ( * ), - COUNT ( * ) * 81 ) + 1
----
-16379

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT ALL - 92 + 56 + 51 * - + CASE CASE ( - 11 ) WHEN + 42 THEN 17 + 61 END WHEN + ( 67 ) + - COUNT( * ) * + 94 THEN NULL ELSE + CASE 75 WHEN + 26 / + COUNT( * ) THEN 91 * - MIN( ALL 59 ) WHEN 86 * 27 + CASE 65 WHEN + 15 THEN 52 WHEN - 12 THEN + COUNT( * ) ELSE NULL END / COUNT( * ) THEN + 24 WHEN + COUNT( ALL NULLIF ( - 18, - 62 * 71 ) ) THEN 79 END + + 36 * 94 END * - 6 / - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL - 92 + 56 + 51 * - + CASE CASE ( - 11 ) WHEN + 42 THEN 17 + 61 END WHEN + ( 67 ) + - COUNT ( * ) * + 94 THEN NULL ELSE + CASE 75 WHEN + 26 / + COUNT ( * ) THEN 91 * - MIN ( ALL 59 ) WHEN 86 * 27 + CASE 65 WHEN + 15 THEN 52 WHEN - 12 THEN + COUNT ( * ) ELSE NULL END / COUNT ( * ) THEN + 24 WHEN + COUNT ( ALL NULLIF ( - 18, - 62 * 71 ) ) THEN 79 END + + 36 * 94 END * - 6 / - 83 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3033
SELECT 53 DIV ( - + COUNT( * ) )
----
-53

skipif mysql # not compatible
query I rowsort label-3033
SELECT 53 / ( - + COUNT ( * ) )
----
-53

query I rowsort
SELECT 59 * + 34 AS col1
----
2006

query I rowsort
SELECT DISTINCT - ( + - 64 ) AS col0
----
64

query I rowsort
SELECT 69 - - 28 AS col0
----
97

query I rowsort
SELECT ALL - 93 * + 58 col0
----
-5394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3038
SELECT ALL + COUNT( * ) + CAST( NULL AS SIGNED ) AS col2, 72 AS col1
----
NULL
72

skipif mysql # not compatible
query II rowsort label-3038
SELECT ALL + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2, 72 AS col1
----
NULL
72

query I rowsort
SELECT 78 + + - 35 * - + 21 * + 89 * 14 AS col1
----
915888

query I rowsort
SELECT 49 * + + 93 AS col2
----
4557

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3041
SELECT DISTINCT + 21 DIV + 51 * + 4 * + 98 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT + 21 / + 51 * + 4 * + 98 * COUNT ( * ) AS col1
----
0

query II rowsort
SELECT 59 + + 58 AS col0, 44
----
117
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3043
SELECT - - COUNT( * ) * - 67 + + 32 * - + CAST( 58 AS SIGNED ) * MAX( + 18 + CAST( NULL AS SIGNED ) ) + - 26 / 38 - - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3043
SELECT - - COUNT ( * ) * - 67 + + 32 * - + CAST ( 58 AS INTEGER ) * MAX ( + 18 + CAST ( NULL AS INTEGER ) ) + - 26 / 38 - - COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3044
SELECT 85 + + 62 * - 69 * - - CASE - COALESCE ( + CAST( NULL AS SIGNED ), - 12, 85 ) WHEN 12 - 16 THEN + 19 + COUNT( * ) * + 50 END * + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3044
SELECT 85 + + 62 * - 69 * - - CASE - COALESCE ( + CAST ( NULL AS INTEGER ), - 12, 85 ) WHEN 12 - 16 THEN + 19 + COUNT ( * ) * + 50 END * + 11 AS col2
----
NULL

query I rowsort
SELECT ALL - 59 * + 76 + + 74
----
-4410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3046
SELECT - CAST( NULL AS SIGNED ) * - 38 + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT - CAST ( NULL AS INTEGER ) * - 38 + 31
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3047
SELECT ALL - ( COUNT( * ) ), 34 AS col2
----
-1
34

skipif mysql # not compatible
query II rowsort label-3047
SELECT ALL - ( COUNT ( * ) ), 34 AS col2
----
-1
34

query I rowsort
SELECT DISTINCT - 26 * - 58
----
1508

query I rowsort
SELECT - 98 + + + NULLIF ( + - 64, 44 ) AS col2
----
-162

query I rowsort
SELECT ALL + + ( 33 ) * - 5 * + + CASE + 73 WHEN 33 THEN NULL ELSE 82 END + - 22 col0
----
-13552

query I rowsort
SELECT 54 + COALESCE ( + + ( + 67 ), 62 ) - ( - 64 ) AS col2
----
185

query I rowsort
SELECT DISTINCT + 66 * + 77 AS col2
----
5082

query I rowsort
SELECT 0 + + 58 + - 28
----
30

query I rowsort
SELECT NULLIF ( - - 10, - - 40 + + 95 * 25 ) * + ( ( + ( + 84 ) ) ) AS col0
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT + 73 + - + COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-3055
SELECT + 73 + - + COUNT ( * ) AS col0
----
72

query I rowsort
SELECT - COALESCE ( 36, + + 31 * + - ( 29 ) + ( 72 + - 10 ), ( 49 ) - 10 )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3057
SELECT + MIN( + CAST( NULL AS SIGNED ) ) + - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3057
SELECT + MIN ( + CAST ( NULL AS INTEGER ) ) + - 62
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3058
SELECT ALL + 83 DIV 1
----
83

skipif mysql # not compatible
query I rowsort label-3058
SELECT ALL + 83 / 1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3059
SELECT 10 DIV + 18
----
0

skipif mysql # not compatible
query I rowsort label-3059
SELECT 10 / + 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT - COUNT( * ) * + NULLIF ( - - 3, + MAX( DISTINCT 31 ) + 26 * - 59 )
----
-3

skipif mysql # not compatible
query I rowsort label-3060
SELECT - COUNT ( * ) * + NULLIF ( - - 3, + MAX ( DISTINCT 31 ) + 26 * - 59 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT ALL COUNT( - 24 ) + 23
----
24

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL COUNT ( - 24 ) + 23
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3062
SELECT - CAST( NULL AS SIGNED ) + + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3062
SELECT - CAST ( NULL AS INTEGER ) + + 50 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3063
SELECT ALL 97 DIV + 66 + + + 96 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL 97 / + 66 + + + 96 AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3064
SELECT CAST( NULL AS DECIMAL ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3064
SELECT CAST ( NULL AS REAL ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT MIN( - 98 ) col2
----
-98

skipif mysql # not compatible
query I rowsort label-3065
SELECT MIN ( - 98 ) col2
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 13 * 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 13 * 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3067
SELECT - CASE - NULLIF ( - COUNT( * ), 66 + + + ( 23 ) ) WHEN + COUNT( * ) THEN - 22 * + 80 ELSE 31 DIV 89 END * 52 + - 97 * - 1
----
91617

skipif mysql # not compatible
query I rowsort label-3067
SELECT - CASE - NULLIF ( - COUNT ( * ), 66 + + + ( 23 ) ) WHEN + COUNT ( * ) THEN - 22 * + 80 ELSE 31 / 89 END * 52 + - 97 * - 1
----
91617

query I rowsort
SELECT ALL 45 + + + 29 AS col2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3069
SELECT 97 DIV + + 27 + + 42 DIV ( - - COUNT( * ) ) - 14 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-3069
SELECT 97 / + + 27 + + 42 / ( - - COUNT ( * ) ) - 14 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT COUNT( DISTINCT - 36 ) * - + 18 + + 57 + - 65 * + MAX( ALL 1 + - 5 ) + 15
----
314

skipif mysql # not compatible
query I rowsort label-3070
SELECT COUNT ( DISTINCT - 36 ) * - + 18 + + 57 + - 65 * + MAX ( ALL 1 + - 5 ) + 15
----
314

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT ALL 39 + COUNT( * ) col1
----
40

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL 39 + COUNT ( * ) col1
----
40

query I rowsort
SELECT DISTINCT 56 + + 82 AS col1
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3073
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) + + ( - - ( + - 27 ) ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) + + ( - - ( + - 27 ) ) * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3074
SELECT ALL + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3074
SELECT ALL + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 79 + + 3
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT + MIN( + + 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-3076
SELECT + MIN ( + + 69 ) AS col2
----
69

query I rowsort
SELECT ALL 55 - - 91
----
146

query I rowsort
SELECT ( - - ( - 87 ) ) * + 52 + + 42
----
-4482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3079
SELECT ALL + - CAST( NULLIF ( - 35, - + 72 * 23 * - COUNT( * ) + + 75 ) AS SIGNED ) - - 38 * - 87 col1
----
-3271

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL + - CAST ( NULLIF ( - 35, - + 72 * 23 * - COUNT ( * ) + + 75 ) AS INTEGER ) - - 38 * - 87 col1
----
-3271

query I rowsort
SELECT DISTINCT - + 94 AS col2
----
-94

query I rowsort
SELECT DISTINCT + 61 - + 95
----
-34

query I rowsort
SELECT DISTINCT + 81 - - 58
----
139

query I rowsort
SELECT DISTINCT + 70 * - 88
----
-6160

query I rowsort
SELECT + + 47 * - 4
----
-188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3085
SELECT - + CAST( + 87 AS SIGNED ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-3085
SELECT - + CAST ( + 87 AS INTEGER ) AS col2
----
-87

query I rowsort
SELECT - - 84 * - - 61 AS col1
----
5124

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT ALL - 78 DIV + + 46 col2
----
-1

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL - 78 / + + 46 col2
----
-1

query I rowsort
SELECT - - 73 - - 7 col2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3089
SELECT - + 98 - + + 9 + - 94 DIV - + SUM( - 26 )
----
-110

skipif mysql # not compatible
query I rowsort label-3089
SELECT - + 98 - + + 9 + - 94 / - + SUM ( - 26 )
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT - MIN( + COALESCE ( - 68, + 52 ) )
----
68

skipif mysql # not compatible
query I rowsort label-3090
SELECT - MIN ( + COALESCE ( - 68, + 52 ) )
----
68

query II rowsort
SELECT ALL 2 AS col2, 65 * - 86
----
2
-5590

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT - 71 * + COUNT( ALL + + 47 ) * + 85 AS col1
----
-6035

skipif mysql # not compatible
query I rowsort label-3092
SELECT - 71 * + COUNT ( ALL + + 47 ) * + 85 AS col1
----
-6035

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT - - COUNT( * ) + - - 40
----
41

skipif mysql # not compatible
query I rowsort label-3093
SELECT - - COUNT ( * ) + - - 40
----
41

query I rowsort
SELECT DISTINCT + + 26 * - ( + 93 ) AS col2
----
-2418

query I rowsort
SELECT DISTINCT - + 63 + - - 75 AS col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3096
SELECT ALL - 21 + 15 + 21 DIV + 79
----
-6

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL - 21 + 15 + 21 / + 79
----
-6

query I rowsort
SELECT ALL 42 + + + 46
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT - COALESCE ( 19, - MIN( - COALESCE ( + 38, 76, - 75 ) ) + 4 ) - 94
----
-113

skipif mysql # not compatible
query I rowsort label-3098
SELECT - COALESCE ( 19, - MIN ( - COALESCE ( + 38, 76, - 75 ) ) + 4 ) - 94
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3099
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3099
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3100
SELECT + 25 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3100
SELECT + 25 - + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 4 + 27 col2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3102
SELECT - 10 + + COUNT( * ) - - 5 + + CASE + 8 WHEN + - 16 THEN - 67 * - 5 WHEN - 59 DIV 26 THEN NULL ELSE + 27 END DIV 61 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-3102
SELECT - 10 + + COUNT ( * ) - - 5 + + CASE + 8 WHEN + - 16 THEN - 67 * - 5 WHEN - 59 / 26 THEN NULL ELSE + 27 END / 61 AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3103
SELECT - 27 DIV 11
----
-2

skipif mysql # not compatible
query I rowsort label-3103
SELECT - 27 / 11
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3104
SELECT ALL - 82 * + + CAST( NULL AS SIGNED ) + + ( - 90 ) * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL - 82 * + + CAST ( NULL AS INTEGER ) + + ( - 90 ) * 72
----
NULL

query I rowsort
SELECT ( 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL 48 * + COUNT( * ) + - - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL 48 * + COUNT ( * ) + - - COUNT ( * )
----
49

query I rowsort
SELECT DISTINCT + CASE + 77 WHEN - - 13 THEN - 6 * - ( + 66 ) * - 72 + + 44 * - 83 END AS col0
----
NULL

query II rowsort
SELECT ALL 92 * 91, 87 AS col0
----
8372
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3109
SELECT DISTINCT 21 DIV COALESCE ( - 70, - + 7 + + 17 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT 21 / COALESCE ( - 70, - + 7 + + 17 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT + MIN( ALL + + ( 15 ) )
----
15

skipif mysql # not compatible
query I rowsort label-3110
SELECT + MIN ( ALL + + ( 15 ) )
----
15

query I rowsort
SELECT + COALESCE ( + + 39, + + 47 ) col1
----
39

query I rowsort
SELECT + 61 + + 95
----
156

onlyif mysql # DIV for integer division: 
query II rowsort label-3113
SELECT + 67 DIV 69 * + - ( - 45 ), + 66 AS col0
----
0
66

skipif mysql # not compatible
query II rowsort label-3113
SELECT + 67 / 69 * + - ( - 45 ), + 66 AS col0
----
0
66

query I rowsort
SELECT + NULLIF ( 58, 22 ) + + + 39 AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3115
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT DISTINCT + 57 * - 49 / + 92 * + CASE + + 68 WHEN - + CASE + 8 WHEN - NULLIF ( 17, + 70 ) * 97 THEN + 66 WHEN 59 THEN 27 ELSE NULL END * + CASE MIN( DISTINCT + 25 ) * ( + NULLIF ( + 6, - 22 * + COUNT( * ) ) / - COUNT( * ) + - COUNT( * ) * - 54 ) WHEN - 91 THEN NULL WHEN 41 THEN NULL ELSE - COUNT( * ) - - 33 END THEN COUNT( * ) WHEN 78 THEN 10 + + 45 * + 2 END * 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3116
SELECT DISTINCT + 57 * - 49 / + 92 * + CASE + + 68 WHEN - + CASE + 8 WHEN - NULLIF ( 17, + 70 ) * 97 THEN + 66 WHEN 59 THEN 27 ELSE NULL END * + CASE MIN ( DISTINCT + 25 ) * ( + NULLIF ( + 6, - 22 * + COUNT ( * ) ) / - COUNT ( * ) + - COUNT ( * ) * - 54 ) WHEN - 91 THEN NULL WHEN 41 THEN NULL ELSE - COUNT ( * ) - - 33 END THEN COUNT ( * ) WHEN 78 THEN 10 + + 45 * + 2 END * 34 AS col0
----
NULL

query I rowsort
SELECT + COALESCE ( - 52, + + 23 )
----
-52

query I rowsort
SELECT + + 85 * - 50 + + + ( + 86 ) * 82 - + + 90 * + NULLIF ( 25, - 43 )
----
552

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT ALL - 32 * + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL - 32 * + COUNT ( * )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT + + MAX( ALL + 19 ) + 34
----
53

skipif mysql # not compatible
query I rowsort label-3120
SELECT + + MAX ( ALL + 19 ) + 34
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-3121
SELECT ALL + COUNT( * ), - 93 + + 80 AS col0
----
1
-13

skipif mysql # not compatible
query II rowsort label-3121
SELECT ALL + COUNT ( * ), - 93 + + 80 AS col0
----
1
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3122
SELECT + - CAST( + ( - - 82 ) AS SIGNED ) + + - 75 AS col1
----
-157

skipif mysql # not compatible
query I rowsort label-3122
SELECT + - CAST ( + ( - - 82 ) AS INTEGER ) + + - 75 AS col1
----
-157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3123
SELECT + - 77 DIV - ( - COUNT( * ) ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-3123
SELECT + - 77 / - ( - COUNT ( * ) ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT - 57 * - - 27 + COUNT( * ) + - 94 * + 19
----
-3324

skipif mysql # not compatible
query I rowsort label-3124
SELECT - 57 * - - 27 + COUNT ( * ) + - 94 * + 19
----
-3324

query II rowsort
SELECT ALL + ( 81 ) AS col1, - 81
----
81
-81

query I rowsort
SELECT - - 38 * + 99 AS col0
----
3762

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3127
SELECT + 46 + - 49, 23 + CAST( NULL AS SIGNED ) + + CAST( - 48 AS SIGNED ) * 93 AS col1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3127
SELECT + 46 + - 49, 23 + CAST ( NULL AS INTEGER ) + + CAST ( - 48 AS INTEGER ) * 93 AS col1
----
-3
NULL

query I rowsort
SELECT - 16 - - NULLIF ( 81, 74 * 61 )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3129
SELECT ALL - + 36 * ( AVG ( + + 61 ) ) * - CAST( NULL AS SIGNED ) + - 5 + 18 / - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL - + 36 * ( AVG ( + + 61 ) ) * - CAST ( NULL AS INTEGER ) + - 5 + 18 / - 48 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3130
SELECT - COUNT( * ), 24 AS col0
----
-1
24

skipif mysql # not compatible
query II rowsort label-3130
SELECT - COUNT ( * ), 24 AS col0
----
-1
24

query I rowsort
SELECT + 73 * + - 18
----
-1314

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT - - SUM( - - 82 ) + + 87
----
169

skipif mysql # not compatible
query I rowsort label-3132
SELECT - - SUM ( - - 82 ) + + 87
----
169

onlyif mysql # aggregate syntax: 
query II rowsort label-3133
SELECT ALL + COUNT( * ), 82 + + ( - MIN( ALL + - 11 ) ) + + 80 - 85 AS col1
----
1
88

skipif mysql # not compatible
query II rowsort label-3133
SELECT ALL + COUNT ( * ), 82 + + ( - MIN ( ALL + - 11 ) ) + + 80 - 85 AS col1
----
1
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3134
SELECT - COUNT( * ) * - 7 + - 89 + - CAST( NULL AS SIGNED ) + - + 22 + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3134
SELECT - COUNT ( * ) * - 7 + - 89 + - CAST ( NULL AS INTEGER ) + - + 22 + 20
----
NULL

query I rowsort
SELECT ALL + ( - 74 ) + - + 49 AS col1
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3136
SELECT - 28 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - 28 - + ( + - 38 ) + ( - 51 ) * - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3136
SELECT - 28 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - 28 - + ( + - 38 ) + ( - 51 ) * - 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT ALL COUNT( * ) + - MIN( ALL - + 84 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL COUNT ( * ) + - MIN ( ALL - + 84 ) AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3138
SELECT ALL + CAST( - 94 AS SIGNED ) + + 68 + + 58 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL + CAST ( - 94 AS INTEGER ) + + 68 + + 58 AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3139
SELECT ALL - 33 + - NULLIF ( + CAST( + 73 AS SIGNED ), - 44 + + 80 ) DIV + 20 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL - 33 + - NULLIF ( + CAST ( + 73 AS INTEGER ), - 44 + + 80 ) / + 20 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT ALL + 79 + + COUNT( * ) + - 24
----
56

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL + 79 + + COUNT ( * ) + - 24
----
56

query II rowsort
SELECT ALL ( - 90 ), - 73 AS col1
----
-90
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3142
SELECT - MAX( DISTINCT 45 ) + 10, CASE CAST( NULL AS SIGNED ) WHEN - + 68 THEN NULL WHEN - 9 THEN + 61 * 83 ELSE NULL END AS col1
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-3142
SELECT - MAX ( DISTINCT 45 ) + 10, CASE CAST ( NULL AS INTEGER ) WHEN - + 68 THEN NULL WHEN - 9 THEN + 61 * 83 ELSE NULL END AS col1
----
-35
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT - 56 * + - MIN( 28 )
----
1568

skipif mysql # not compatible
query I rowsort label-3143
SELECT - 56 * + - MIN ( 28 )
----
1568

onlyif mysql # DIV for integer division: 
query I rowsort label-3144
SELECT ALL 12 DIV - 32 * 84 * - 70 - - + 7
----
7

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL 12 / - 32 * 84 * - 70 - - + 7
----
7

query I rowsort
SELECT - 20 * + 49 * - 5
----
4900

query I rowsort
SELECT + 26 * 54 * - 84 AS col1
----
-117936

query I rowsort
SELECT 34 * + 45 + + 25 AS col0
----
1555

query I rowsort
SELECT DISTINCT + 46 col2
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3149
SELECT ALL 2 DIV + + 40 * 23 DIV - + COALESCE ( - COUNT( + - 11 ), + 55 * 49 ) * COUNT( 36 )
----
0

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL 2 / + + 40 * 23 / - + COALESCE ( - COUNT ( + - 11 ), + 55 * 49 ) * COUNT ( 36 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT COALESCE ( ( - 16 ), - 96, - 53 + 40 ) * - COUNT( * ) * 14 AS col0
----
224

skipif mysql # not compatible
query I rowsort label-3150
SELECT COALESCE ( ( - 16 ), - 96, - 53 + 40 ) * - COUNT ( * ) * 14 AS col0
----
224

query I rowsort
SELECT ( + - 16 ) + 98 + + - 12
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT + 8 * - COUNT( * ) * + 57
----
-456

skipif mysql # not compatible
query I rowsort label-3152
SELECT + 8 * - COUNT ( * ) * + 57
----
-456

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT DISTINCT + COALESCE ( - COUNT( * ), + - 99, + COALESCE ( - - MAX( + + 5 ), - - 35 ) * - 18 ) * - ( + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-3153
SELECT DISTINCT + COALESCE ( - COUNT ( * ), + - 99, + COALESCE ( - - MAX ( + + 5 ), - - 35 ) * - 18 ) * - ( + 55 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3154
SELECT - - 30 * + 16 * - CAST( COUNT( * ) AS SIGNED ) + 25 AS col0
----
-455

skipif mysql # not compatible
query I rowsort label-3154
SELECT - - 30 * + 16 * - CAST ( COUNT ( * ) AS INTEGER ) + 25 AS col0
----
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT ALL 74 + COUNT( + 72 )
----
75

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL 74 + COUNT ( + 72 )
----
75

query I rowsort
SELECT 85 * 95
----
8075

query II rowsort
SELECT ALL - - 17 + + + 80 AS col2, 90
----
97
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT ALL - 96 + NULLIF ( - - 72, - COUNT( * ) )
----
-24

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL - 96 + NULLIF ( - - 72, - COUNT ( * ) )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3159
SELECT ( ( NULLIF ( + + COALESCE ( + 9, 94 ), COUNT( * ) ) ) ) * CASE - COALESCE ( + 78, COUNT( * ) * - 34 ) * 21 + 21 WHEN CAST( NULL AS SIGNED ) THEN 26 WHEN 87 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3159
SELECT ( ( NULLIF ( + + COALESCE ( + 9, 94 ), COUNT ( * ) ) ) ) * CASE - COALESCE ( + 78, COUNT ( * ) * - 34 ) * 21 + 21 WHEN CAST ( NULL AS INTEGER ) THEN 26 WHEN 87 THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT 39 + - 43 DIV 78 * 25 * - 58 + - 32 * + 33 AS col2
----
-1017

skipif mysql # not compatible
query I rowsort label-3160
SELECT 39 + - 43 / 78 * 25 * - 58 + - 32 * + 33 AS col2
----
-1017

onlyif mysql # DIV for integer division: 
query I rowsort label-3161
SELECT DISTINCT 59 + - - 59 DIV - + 96 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT 59 + - - 59 / - + 96 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT ALL MAX( + - ( - + 8 ) ) + + + 71 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL MAX ( + - ( - + 8 ) ) + + + 71 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT NULLIF ( - - MAX( 79 ), 57 )
----
79

skipif mysql # not compatible
query I rowsort label-3163
SELECT NULLIF ( - - MAX ( 79 ), 57 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT 88 - + 99 + - 99 + + COUNT( * )
----
-109

skipif mysql # not compatible
query I rowsort label-3164
SELECT 88 - + 99 + - 99 + + COUNT ( * )
----
-109

query I rowsort
SELECT 34 - + 66 + - - 68 * + 40 * 5 AS col1
----
13568

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT DISTINCT COUNT( * ) * - ( + 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT COUNT ( * ) * - ( + 55 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3167
SELECT COUNT( * ) + + - 99 DIV - CAST( - COALESCE ( + 53, + CAST( + 94 AS SIGNED ) + 74 ) AS SIGNED ) + 68
----
68

skipif mysql # not compatible
query I rowsort label-3167
SELECT COUNT ( * ) + + - 99 / - CAST ( - COALESCE ( + 53, + CAST ( + 94 AS INTEGER ) + 74 ) AS INTEGER ) + 68
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT ALL + 47 - + 62 * - 12 * - + ( + 62 ) * - + ( + + 11 ) - - CASE - MAX( DISTINCT 98 ) WHEN + 48 THEN - 29 * - 37 WHEN 97 * COALESCE ( + 61, - 90 * + COUNT( * ) ) THEN 1 * CASE - 13 WHEN 96 THEN 6 WHEN + ( COUNT( * ) ) / + MIN( COALESCE ( 2, - 53, 0 ) ) THEN + 25 ELSE NULL END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL + 47 - + 62 * - 12 * - + ( + 62 ) * - + ( + + 11 ) - - CASE - MAX ( DISTINCT 98 ) WHEN + 48 THEN - 29 * - 37 WHEN 97 * COALESCE ( + 61, - 90 * + COUNT ( * ) ) THEN 1 * CASE - 13 WHEN 96 THEN 6 WHEN + ( COUNT ( * ) ) / + MIN ( COALESCE ( 2, - 53, 0 ) ) THEN + 25 ELSE NULL END END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3169
SELECT 98 col0, - 24 * 31 * - + COALESCE ( 33, 19 * + COUNT( * ) * + 98 + + NULLIF ( + 96 + + COALESCE ( 22, + 6 - + 67 ), - CAST( NULL AS SIGNED ) * + 90 - 87 * 97 ) * NULLIF ( 92, + 8 ) - + 1 * + 4 ) * - 18
----
98
-441936

skipif mysql # not compatible
query II rowsort label-3169
SELECT 98 col0, - 24 * 31 * - + COALESCE ( 33, 19 * + COUNT ( * ) * + 98 + + NULLIF ( + 96 + + COALESCE ( 22, + 6 - + 67 ), - CAST ( NULL AS INTEGER ) * + 90 - 87 * 97 ) * NULLIF ( 92, + 8 ) - + 1 * + 4 ) * - 18
----
98
-441936

query I rowsort
SELECT 72 - - + ( - 1 )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3171
SELECT COUNT( * ) * + - 46 * 2 * - 87 * - 38 DIV COUNT( * )
----
-304152

skipif mysql # not compatible
query I rowsort label-3171
SELECT COUNT ( * ) * + - 46 * 2 * - 87 * - 38 / COUNT ( * )
----
-304152

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT ALL 39 - + 77 + + + 82 + - COUNT( * ) + + 48 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL 39 - + 77 + + + 82 + - COUNT ( * ) + + 48 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT 98 * MAX( ALL + 42 )
----
4116

skipif mysql # not compatible
query I rowsort label-3173
SELECT 98 * MAX ( ALL + 42 )
----
4116

onlyif mysql # DIV for integer division: 
query I rowsort label-3174
SELECT 72 + 4 DIV 14 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-3174
SELECT 72 + 4 / 14 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT 7 * + COALESCE ( 61, CASE + - 55 WHEN + - COUNT( * ) THEN - 45 * - - 12 END )
----
427

skipif mysql # not compatible
query I rowsort label-3175
SELECT 7 * + COALESCE ( 61, CASE + - 55 WHEN + - COUNT ( * ) THEN - 45 * - - 12 END )
----
427

query II rowsort
SELECT DISTINCT 72, + 56 * + CASE - - 77 WHEN 3 THEN - 70 + - 15 END AS col1
----
72
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT 97 * - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-3177
SELECT 97 * - COUNT ( * )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3178
SELECT ALL - 33 AS col1, ( - - 29 ) / 49 * + 22 + + CASE - 94 WHEN AVG ( 17 ) THEN NULL WHEN 86 THEN SUM( DISTINCT CAST( - 55 AS SIGNED ) ) ELSE NULL END
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-3178
SELECT ALL - 33 AS col1, ( - - 29 ) / 49 * + 22 + + CASE - 94 WHEN AVG ( 17 ) THEN NULL WHEN 86 THEN SUM ( DISTINCT CAST ( - 55 AS INTEGER ) ) ELSE NULL END
----
-33
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - - 75, 15 / - 69 + 4 - ( - - 38 ) * + 33 )
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3180
SELECT + 51 DIV SUM( - 14 ) + - + 60 col1
----
-63

skipif mysql # not compatible
query I rowsort label-3180
SELECT + 51 / SUM ( - 14 ) + - + 60 col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT 31 * + CASE - + 41 WHEN - - 66 THEN - COUNT( * ) + 75 END * - COUNT( * ) * 49 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT 31 * + CASE - + 41 WHEN - - 66 THEN - COUNT ( * ) + 75 END * - COUNT ( * ) * 49 + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT ALL + COUNT( DISTINCT - - 99 ) + - 35 * - CASE + 49 WHEN + AVG ( + COALESCE ( 79, 10 ) ) THEN NULL WHEN + 43 THEN NULL WHEN 35 - 77 THEN MAX( 51 ) ELSE NULL END - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL + COUNT ( DISTINCT - - 99 ) + - 35 * - CASE + 49 WHEN + AVG ( + COALESCE ( 79, 10 ) ) THEN NULL WHEN + 43 THEN NULL WHEN 35 - 77 THEN MAX ( 51 ) ELSE NULL END - 32
----
NULL

query I rowsort
SELECT - 74 * 16 + - + 19 + + 62 AS col1
----
-1141

query I rowsort
SELECT ALL - 99 + 72
----
-27

query II rowsort
SELECT DISTINCT - - 7 col0, - 55 + 28
----
7
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT - 73 * 87 + COUNT( * )
----
-6350

skipif mysql # not compatible
query I rowsort label-3186
SELECT - 73 * 87 + COUNT ( * )
----
-6350

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT ALL + 55 + + - NULLIF ( + + ( - COUNT( * ) ), 31 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL + 55 + + - NULLIF ( + + ( - COUNT ( * ) ), 31 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT DISTINCT - 97 + + - 97 + MIN( DISTINCT - 53 ) * + + 40 col2
----
-2314

skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT - 97 + + - 97 + MIN ( DISTINCT - 53 ) * + + 40 col2
----
-2314

query II rowsort
SELECT + 71 AS col0, 97 AS col2
----
71
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT ALL - + SUM( + 99 ) + 14 + + - 17
----
-102

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL - + SUM ( + 99 ) + 14 + + - 17
----
-102

query II rowsort
SELECT + 15 AS col2, - ( ( - + 82 ) ) + - 22
----
15
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT NULLIF ( - 30, COUNT( * ) ) * 97 * 25 AS col0
----
-72750

skipif mysql # not compatible
query I rowsort label-3192
SELECT NULLIF ( - 30, COUNT ( * ) ) * 97 * 25 AS col0
----
-72750

query I rowsort
SELECT + 14 - - 25 AS col0
----
39

query I rowsort
SELECT - 19 * - + 46 + + 17 * - - 10 * + 23 * - 17 * - 36 + + 72 AS col0
----
2393866

onlyif mysql # aggregate syntax: 
query II rowsort label-3195
SELECT COUNT( ALL + 60 ) * - 1 * - + COUNT( * ) AS col2, - 30 AS col0
----
1
-30

skipif mysql # not compatible
query II rowsort label-3195
SELECT COUNT ( ALL + 60 ) * - 1 * - + COUNT ( * ) AS col2, - 30 AS col0
----
1
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3196
SELECT CAST( + - 94 AS SIGNED ) + - - COALESCE ( - ( + - MAX( DISTINCT - 71 ) ), - 59 DIV 59 + - ( + CAST( + 17 AS SIGNED ) ) ) + COUNT( * ) * 11 col0
----
-154

skipif mysql # not compatible
query I rowsort label-3196
SELECT CAST ( + - 94 AS INTEGER ) + - - COALESCE ( - ( + - MAX ( DISTINCT - 71 ) ), - 59 / 59 + - ( + CAST ( + 17 AS INTEGER ) ) ) + COUNT ( * ) * 11 col0
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT CASE 76 WHEN 67 THEN MAX( + 62 ) - + COUNT( * ) END + 59 - + ( + 32 ) * ( 96 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3197
SELECT CASE 76 WHEN 67 THEN MAX ( + 62 ) - + COUNT ( * ) END + 59 - + ( + 32 ) * ( 96 ) AS col2
----
NULL

query I rowsort
SELECT ALL 39 - + - 95 - + - 0 AS col0
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3199
SELECT 69 + - + CASE - 37 WHEN + - ( + ( + 61 ) ) * + 97 THEN - 41 ELSE - 8 END + 27 DIV + COUNT( * ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-3199
SELECT 69 + - + CASE - 37 WHEN + - ( + ( + 61 ) ) * + 97 THEN - 41 ELSE - 8 END + 27 / + COUNT ( * ) AS col1
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-3200
SELECT 7 DIV 16 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3200
SELECT 7 / 16 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT DISTINCT COUNT( * ) * - + 41
----
-41

skipif mysql # not compatible
query I rowsort label-3201
SELECT DISTINCT COUNT ( * ) * - + 41
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT ALL SUM( ALL 34 )
----
34

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL SUM ( ALL 34 )
----
34

query I rowsort
SELECT + 85 + 41
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3204
SELECT ALL SUM( ALL + + 90 ) * MIN( - 52 ) * - CAST( NULL AS SIGNED ) * + + 39 / + 50 * - CAST( 18 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL SUM ( ALL + + 90 ) * MIN ( - 52 ) * - CAST ( NULL AS INTEGER ) * + + 39 / + 50 * - CAST ( 18 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 61 + + 68 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT - MAX( 30 ) * - 83 + + + 96 + - COUNT( * ) AS col2
----
2585

skipif mysql # not compatible
query I rowsort label-3206
SELECT - MAX ( 30 ) * - 83 + + + 96 + - COUNT ( * ) AS col2
----
2585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3207
SELECT + CAST( NULL AS SIGNED ) * - + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-3207
SELECT + CAST ( NULL AS INTEGER ) * - + 74
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3208
SELECT + - CAST( NULL AS SIGNED ) * + + ( 92 ) + + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3208
SELECT + - CAST ( NULL AS INTEGER ) * + + ( 92 ) + + 76
----
NULL

query I rowsort
SELECT DISTINCT + CASE + 89 WHEN + - 73 THEN - 39 WHEN - ( 96 ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT ALL + + 73 * 16 + - - COUNT( * ) + MIN( ALL - 90 ) + 17 + + 60 + 5
----
1161

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL + + 73 * 16 + - - COUNT ( * ) + MIN ( ALL - 90 ) + 17 + + 60 + 5
----
1161

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT DISTINCT + + 17 * - 74 - - 46 * + 13 + + 27 + COUNT( * ) AS col0
----
-632

skipif mysql # not compatible
query I rowsort label-3211
SELECT DISTINCT + + 17 * - 74 - - 46 * + 13 + + 27 + COUNT ( * ) AS col0
----
-632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3212
SELECT ALL ( + 77 ) * + CAST( + + 85 AS SIGNED ) + 77 + - - 2
----
6624

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL ( + 77 ) * + CAST ( + + 85 AS INTEGER ) + 77 + - - 2
----
6624

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT ALL + 29 * + MIN( ALL 47 ) + - - 38 + - 23
----
1378

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL + 29 * + MIN ( ALL 47 ) + - - 38 + - 23
----
1378

query I rowsort
SELECT ( ( 82 ) )
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3215
SELECT - - ( + 27 ) * COUNT( * ) DIV - 94 * - + NULLIF ( 60, 5 * + 30 + 42 ) + COALESCE ( + MIN( ALL + 82 ) + + COUNT( * ), + 16 + - 51 DIV - 48, - ( 61 ) * - 54 + - 10, ( 67 ) ) * - COUNT( * ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-3215
SELECT - - ( + 27 ) * COUNT ( * ) / - 94 * - + NULLIF ( 60, 5 * + 30 + 42 ) + COALESCE ( + MIN ( ALL + 82 ) + + COUNT ( * ), + 16 + - 51 / - 48, - ( 61 ) * - 54 + - 10, ( 67 ) ) * - COUNT ( * ) AS col2
----
-83

query I rowsort
SELECT + + 88 * + 98
----
8624

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT + ( COALESCE ( COUNT( * ), + + 1 * - - 18 * + + 52 + 93 + + 59 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3217
SELECT + ( COALESCE ( COUNT ( * ), + + 1 * - - 18 * + + 52 + 93 + + 59 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT DISTINCT + + COUNT( * ) * - + CASE WHEN NULL IS NULL THEN - COUNT( * ) ELSE NULL END * - + 95 * 92 * - - ( COUNT( + 6 ) ) - CASE 15 WHEN + 38 THEN - MIN( 95 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT + + COUNT ( * ) * - + CASE WHEN NULL IS NULL THEN - COUNT ( * ) ELSE NULL END * - + 95 * 92 * - - ( COUNT ( + 6 ) ) - CASE 15 WHEN + 38 THEN - MIN ( 95 ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 3 col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3220
SELECT ALL CASE + 14 WHEN - - 57 * COUNT( * ) THEN - 91 * - 47 * + 5 * + - 87 / + 4 ELSE 8 END * - CAST( NULL AS DECIMAL ) - + MIN( 45 + 15 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL CASE + 14 WHEN - - 57 * COUNT ( * ) THEN - 91 * - 47 * + 5 * + - 87 / + 4 ELSE 8 END * - CAST ( NULL AS REAL ) - + MIN ( 45 + 15 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 86 AS col1
----
86

query I rowsort
SELECT + + 63 col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT DISTINCT CASE - COUNT( * ) WHEN 67 THEN - + 66 WHEN + AVG ( ALL + 78 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT CASE - COUNT ( * ) WHEN 67 THEN - + 66 WHEN + AVG ( ALL + 78 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT ALL NULLIF ( + COUNT( * ), - 3 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL NULLIF ( + COUNT ( * ), - 3 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT COUNT( ALL - COALESCE ( - 57, - + 0 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3225
SELECT COUNT ( ALL - COALESCE ( - 57, - + 0 ) ) AS col1
----
1

query I rowsort
SELECT ALL + 75 * - 70
----
-5250

query I rowsort
SELECT + NULLIF ( + 35, + + 92 ) * + 75 * 45 col0
----
118125

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT ALL - 84 * + COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL - 84 * + COUNT ( * )
----
-84

query I rowsort
SELECT ALL + 12 * + 86 col1
----
1032

query I rowsort
SELECT DISTINCT - 58 + - 62 col1
----
-120

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3231
SELECT - COALESCE ( + 29, - + 2 * + 93 + - + CAST( - + ( + + ( + 57 ) ) AS SIGNED ) - - NULLIF ( + - 96, + CAST( NULL AS SIGNED ) * 5 ) - + 51 DIV 3 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-3231
SELECT - COALESCE ( + 29, - + 2 * + 93 + - + CAST ( - + ( + + ( + 57 ) ) AS INTEGER ) - - NULLIF ( + - 96, + CAST ( NULL AS INTEGER ) * 5 ) - + 51 / 3 ) AS col2
----
-29

query I rowsort
SELECT ALL 79 + + 18
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT DISTINCT COALESCE ( + ( - - COUNT( * ) ), - + 45, 45 ) + - 47
----
-46

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT COALESCE ( + ( - - COUNT ( * ) ), - + 45, 45 ) + - 47
----
-46

query I rowsort
SELECT + 44 - COALESCE ( + 97, 77 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT + 61 * COALESCE ( 94, COUNT( * ), + + 70 + - ( - - 54 ) ) AS col1
----
5734

skipif mysql # not compatible
query I rowsort label-3235
SELECT + 61 * COALESCE ( 94, COUNT ( * ), + + 70 + - ( - - 54 ) ) AS col1
----
5734

query I rowsort
SELECT ALL 43 + + 24 AS col0
----
67

query I rowsort
SELECT + 25 * 48 * - + 1
----
-1200

query I rowsort
SELECT DISTINCT ( - 80 ) + + - 0
----
-80

query I rowsort
SELECT DISTINCT NULLIF ( 13, 65 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3240
SELECT ALL COALESCE ( - SUM( - 75 ), COUNT( * ) + + MAX( ALL + 49 ) * CAST( 72 AS SIGNED ) * - 22, + 13 * 5 ) * + 27
----
2025

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL COALESCE ( - SUM ( - 75 ), COUNT ( * ) + + MAX ( ALL + 49 ) * CAST ( 72 AS INTEGER ) * - 22, + 13 * 5 ) * + 27
----
2025

query I rowsort
SELECT ( + 83 ) col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT DISTINCT - - 30 / - ( 94 ) + 68 - + 43 * - - 18 + + COUNT( * ) * CASE - + ( - COUNT( * ) ) WHEN + 64 THEN + 78 * ( 98 ) WHEN 54 + + 17 THEN NULL ELSE NULL END + - COUNT( 11 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT - - 30 / - ( 94 ) + 68 - + 43 * - - 18 + + COUNT ( * ) * CASE - + ( - COUNT ( * ) ) WHEN + 64 THEN + 78 * ( 98 ) WHEN 54 + + 17 THEN NULL ELSE NULL END + - COUNT ( 11 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT ALL + 39 * - 79 * - ( + SUM( DISTINCT + + 93 ) ) + - COUNT( * ) - + 7 * + - 92 * + - 87 AS col0
----
230504

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL + 39 * - 79 * - ( + SUM ( DISTINCT + + 93 ) ) + - COUNT ( * ) - + 7 * + - 92 * + - 87 AS col0
----
230504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3244
SELECT COUNT( * ) / + SUM( + - ( - CAST( - + 23 AS SIGNED ) ) ) * CASE + 73 WHEN + + CAST( NULL AS SIGNED ) THEN 95 ELSE NULL END + + COALESCE ( - AVG ( - 18 ), COUNT( * ) ) / 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3244
SELECT COUNT ( * ) / + SUM ( + - ( - CAST ( - + 23 AS INTEGER ) ) ) * CASE + 73 WHEN + + CAST ( NULL AS INTEGER ) THEN 95 ELSE NULL END + + COALESCE ( - AVG ( - 18 ), COUNT ( * ) ) / 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3245
SELECT 73, - ( + - 95 ) + 87 + + COUNT( * ) DIV 18 + - + 33 * + + 46 AS col1
----
73
-1336

skipif mysql # not compatible
query II rowsort label-3245
SELECT 73, - ( + - 95 ) + 87 + + COUNT ( * ) / 18 + - + 33 * + + 46 AS col1
----
73
-1336

query I rowsort
SELECT + ( - - 10 ) + - 9 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT - - MIN( DISTINCT - 61 ) * - - 20 + 72 + + 14 * - 93 + - 96
----
-2546

skipif mysql # not compatible
query I rowsort label-3247
SELECT - - MIN ( DISTINCT - 61 ) * - - 20 + 72 + + 14 * - 93 + - 96
----
-2546

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT + - 76 * 48 DIV + - 57
----
64

skipif mysql # not compatible
query I rowsort label-3248
SELECT + - 76 * 48 / + - 57
----
64

query I rowsort
SELECT - 40 + + 22 - - 77 + + 46 AS col1
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3250
SELECT - + COUNT( * ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3250
SELECT - + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT ALL + + COUNT( * ) * - 28
----
-28

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL + + COUNT ( * ) * - 28
----
-28

query I rowsort
SELECT - - 26 + + 98
----
124

query I rowsort
SELECT + - 15 * + 37 AS col0
----
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT - 72 * COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-3254
SELECT - 72 * COUNT ( * )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3255
SELECT + COUNT( 95 ) * - 84 * + + 58 / 23 * + - 57 + + CASE CAST( NULL AS SIGNED ) WHEN - 6 * 19 + + 14 - + 27 THEN 11 WHEN 99 * - 60 THEN NULL END + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3255
SELECT + COUNT ( 95 ) * - 84 * + + 58 / 23 * + - 57 + + CASE CAST ( NULL AS INTEGER ) WHEN - 6 * 19 + + 14 - + 27 THEN 11 WHEN 99 * - 60 THEN NULL END + - 6
----
NULL

query II rowsort
SELECT + 42 AS col0, 99 AS col2
----
42
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3257
SELECT COALESCE ( - NULLIF ( - ( CASE - 12 WHEN + - 50 - CASE + + 85 WHEN + 86 THEN NULL WHEN + - 30 THEN + + CAST( + 72 AS DECIMAL ) + - MAX( 66 + + 32 * 12 ) * + 66 END * 79 THEN + 18 * - 2 ELSE NULL END ), + 25 * - COUNT( * ) ), CASE 27 WHEN 78 THEN NULL WHEN 89 THEN COALESCE ( COALESCE ( - 23, - 42 + + 72 ), - 95 * - COUNT( * ), 58 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3257
SELECT COALESCE ( - NULLIF ( - ( CASE - 12 WHEN + - 50 - CASE + + 85 WHEN + 86 THEN NULL WHEN + - 30 THEN + + CAST ( + 72 AS REAL ) + - MAX ( 66 + + 32 * 12 ) * + 66 END * 79 THEN + 18 * - 2 ELSE NULL END ), + 25 * - COUNT ( * ) ), CASE 27 WHEN 78 THEN NULL WHEN 89 THEN COALESCE ( COALESCE ( - 23, - 42 + + 72 ), - 95 * - COUNT ( * ), 58 ) END )
----
NULL

query I rowsort
SELECT - ( + 7 ) * 20 * 20
----
-2800

query I rowsort
SELECT DISTINCT 62 * + + 96 AS col2
----
5952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3260
SELECT ALL 65 * 91 + - - NULLIF ( + - 88, + 13 ) - - 83 DIV 23 DIV 66 - COUNT( * ) AS col2
----
5826

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL 65 * 91 + - - NULLIF ( + - 88, + 13 ) - - 83 / 23 / 66 - COUNT ( * ) AS col2
----
5826

query II rowsort
SELECT - 64, - 60 - - 53 AS col0
----
-64
-7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3262
SELECT 7 + 47 + 29 * - COUNT( * ) + - 40 * + 12 * - 8 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3262
SELECT 7 + 47 + 29 * - COUNT ( * ) + - 40 * + 12 * - 8 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3263
SELECT ALL - 53 DIV + 47 col1
----
-1

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL - 53 / + 47 col1
----
-1

query II rowsort
SELECT - 18 AS col2, + CASE ( + 64 ) WHEN + - 57 THEN + ( 69 ) WHEN + + 90 / - 57 THEN NULL WHEN - - 34 THEN NULL ELSE NULL END col0
----
-18
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3265
SELECT 13 DIV + 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3265
SELECT 13 / + 47 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT COUNT( * ) + - + 24 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-3266
SELECT COUNT ( * ) + - + 24 AS col2
----
-23

query I rowsort
SELECT ALL + 81 + 5 + + 86
----
172

query I rowsort
SELECT 94 + 27 + 30 col1
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3269
SELECT 97 * - 48 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3269
SELECT 97 * - 48 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 3 + + 38 col2
----
41

query II rowsort
SELECT 37 AS col0, 81 + + 35 col2
----
37
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT ALL + 82 + + 99 * 23 - + COUNT( * ) + COUNT( * )
----
2359

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL + 82 + + 99 * 23 - + COUNT ( * ) + COUNT ( * )
----
2359

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT NULLIF ( + 72, - - SUM( - - 69 ) / 21 - - 85 ) + - 53 - 67 + 11 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3273
SELECT NULLIF ( + 72, - - SUM ( - - 69 ) / 21 - - 85 ) + - 53 - 67 + 11 AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3274
SELECT - COALESCE ( - - NULLIF ( + CAST( - + 64 AS SIGNED ), + + 63 - + - 35 ), + + MAX( + NULLIF ( + - 90, 63 ) ), 81 * + 86 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3274
SELECT - COALESCE ( - - NULLIF ( + CAST ( - + 64 AS INTEGER ), + + 63 - + - 35 ), + + MAX ( + NULLIF ( + - 90, 63 ) ), 81 * + 86 ) AS col0
----
64

query II rowsort
SELECT 29 + + - 10, 79 AS col0
----
19
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3276
SELECT 31 AS col1, - 42 * + CAST( NULL AS SIGNED ) AS col0
----
31
NULL

skipif mysql # not compatible
query II rowsort label-3276
SELECT 31 AS col1, - 42 * + CAST ( NULL AS INTEGER ) AS col0
----
31
NULL

query I rowsort
SELECT - 75 * - 47 AS col1
----
3525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3278
SELECT COUNT( ALL - - 29 ) * - 3 * + 41 + + 32 - + 59 * + SUM( ALL + 63 ) + - CAST( NULL AS SIGNED ) * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT COUNT ( ALL - - 29 ) * - 3 * + 41 + + 32 - + 59 * + SUM ( ALL + 63 ) + - CAST ( NULL AS INTEGER ) * - 12
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3279
SELECT + COUNT( * ) col2, + COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-3279
SELECT + COUNT ( * ) col2, + COUNT ( * ) AS col0
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3280
SELECT 66 * + 90 + 98 + - - 39 - - + SUM( DISTINCT - 26 ) + - 49 - - COUNT( * ) + - 62 DIV CASE + - MAX( DISTINCT - 65 ) WHEN - 97 + + 44 THEN NULL ELSE 96 END + - 84 * MAX( NULLIF ( + 16, - 24 ) ) AS col1
----
4659

skipif mysql # not compatible
query I rowsort label-3280
SELECT 66 * + 90 + 98 + - - 39 - - + SUM ( DISTINCT - 26 ) + - 49 - - COUNT ( * ) + - 62 / CASE + - MAX ( DISTINCT - 65 ) WHEN - 97 + + 44 THEN NULL ELSE 96 END + - 84 * MAX ( NULLIF ( + 16, - 24 ) ) AS col1
----
4659

query II rowsort
SELECT 43 AS col2, - 74
----
43
-74

query I rowsort
SELECT ALL - ( - 56 ) col0
----
56

query II rowsort
SELECT ALL 41 * + 49 AS col1, - 19 + - 65
----
2009
-84

query I rowsort
SELECT NULLIF ( + - 61, - 56 ) col0
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-3285
SELECT ALL - 98 AS col2, + 3 + + - COUNT( + 78 ) + - 67 * + - 83 + - 15 AS col1
----
-98
5548

skipif mysql # not compatible
query II rowsort label-3285
SELECT ALL - 98 AS col2, + 3 + + - COUNT ( + 78 ) + - 67 * + - 83 + - 15 AS col1
----
-98
5548

query II rowsort
SELECT DISTINCT ( + 3 ) * 87 + - - 46 AS col2, + NULLIF ( 92, + 83 ) col0
----
307
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3287
SELECT ALL - CAST( + CASE - + 97 WHEN + 62 THEN NULL WHEN - - 41 THEN + - 38 WHEN - 18 * 73 THEN 76 * - - 35 + + - AVG ( 29 ) ELSE 83 + 94 END AS SIGNED ) AS col1
----
-177

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL - CAST ( + CASE - + 97 WHEN + 62 THEN NULL WHEN - - 41 THEN + - 38 WHEN - 18 * 73 THEN 76 * - - 35 + + - AVG ( 29 ) ELSE 83 + 94 END AS INTEGER ) AS col1
----
-177

onlyif mysql # aggregate syntax: 
query II rowsort label-3288
SELECT + + 31, + 13 + - COUNT( ALL - - 25 ) AS col0
----
31
12

skipif mysql # not compatible
query II rowsort label-3288
SELECT + + 31, + 13 + - COUNT ( ALL - - 25 ) AS col0
----
31
12

query I rowsort
SELECT DISTINCT 26 * + 60 col2
----
1560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3290
SELECT 54 * + + 86 + CAST( - CASE + 96 WHEN + ( - COUNT( * ) ) * 54 THEN 41 - 29 END AS SIGNED ) + 52 - + 86 * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT 54 * + + 86 + CAST ( - CASE + 96 WHEN + ( - COUNT ( * ) ) * 54 THEN 41 - 29 END AS INTEGER ) + 52 - + 86 * 88
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 1, - 69 * + 72 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3292
SELECT CAST( 62 AS SIGNED ) * - - 79
----
4898

skipif mysql # not compatible
query I rowsort label-3292
SELECT CAST ( 62 AS INTEGER ) * - - 79
----
4898

query II rowsort
SELECT DISTINCT 21 + + - 23 AS col0, 4 + - 21
----
-2
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT ALL 80 + NULLIF ( 15, 28 ) * - COUNT( * ) + + CASE + + 86 WHEN COUNT( + 97 ) + - 13 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE - 61 + 92 END AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL 80 + NULLIF ( 15, 28 ) * - COUNT ( * ) + + CASE + + 86 WHEN COUNT ( + 97 ) + - 13 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE - 61 + 92 END AS col2
----
96

query I rowsort
SELECT 97 - + 22
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3296
SELECT MAX( DISTINCT - + ( + + 60 ) ) + + + 86 - + - 56 DIV + 59 + - - COALESCE ( + + ( ( - 10 ) ), COUNT( * ), - 65 ) * + COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3296
SELECT MAX ( DISTINCT - + ( + + 60 ) ) + + + 86 - + - 56 / + 59 + - - COALESCE ( + + ( ( - 10 ) ), COUNT ( * ), - 65 ) * + COUNT ( * ) AS col2
----
16

query I rowsort
SELECT DISTINCT 9 * + - 33
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3298
SELECT ( - - CASE + 25 WHEN + + 35 THEN - 71 WHEN CAST( + - 57 AS SIGNED ) / 69 + 95 + ( CAST( NULL AS SIGNED ) ) THEN NULL END ) + + + 78 * + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT ( - - CASE + 25 WHEN + + 35 THEN - 71 WHEN CAST ( + - 57 AS INTEGER ) / 69 + 95 + ( CAST ( NULL AS INTEGER ) ) THEN NULL END ) + + + 78 * + 22
----
NULL

query II rowsort
SELECT ALL 8 * + 60, - 16 AS col0
----
480
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT ALL COUNT( DISTINCT - 23 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL COUNT ( DISTINCT - 23 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3301
SELECT 32 * + + COALESCE ( COUNT( * ), - 30, 98 DIV 3 + + 51 * - 92 * 7 - - 19 + - COUNT( * ), + + 34 )
----
32

skipif mysql # not compatible
query I rowsort label-3301
SELECT 32 * + + COALESCE ( COUNT ( * ), - 30, 98 / 3 + + 51 * - 92 * 7 - - 19 + - COUNT ( * ), + + 34 )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3302
SELECT 85 - COUNT( * ) * - + CAST( + COUNT( * ) AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-3302
SELECT 85 - COUNT ( * ) * - + CAST ( + COUNT ( * ) AS INTEGER )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3303
SELECT - 59 * CAST( 56 AS SIGNED ) + - 49
----
-3353

skipif mysql # not compatible
query I rowsort label-3303
SELECT - 59 * CAST ( 56 AS INTEGER ) + - 49
----
-3353

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3304
SELECT 43 * 95, + 50 - + 19 + + 21 + - - CAST( NULL AS SIGNED ) col2
----
4085
NULL

skipif mysql # not compatible
query II rowsort label-3304
SELECT 43 * 95, + 50 - + 19 + + 21 + - - CAST ( NULL AS INTEGER ) col2
----
4085
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3305
SELECT ( - + 22 ) DIV + + MIN( DISTINCT + 74 ) * NULLIF ( + 81, 14 ) + - COALESCE ( - 39, - 67 ) AS col0, 46 * 61 + - 53
----
39
2753

skipif mysql # not compatible
query II rowsort label-3305
SELECT ( - + 22 ) / + + MIN ( DISTINCT + 74 ) * NULLIF ( + 81, 14 ) + - COALESCE ( - 39, - 67 ) AS col0, 46 * 61 + - 53
----
39
2753

query I rowsort
SELECT DISTINCT + 89 * 68 + - + 70
----
5982

query II rowsort
SELECT - ( - 81 ) AS col1, + 30 * - 99
----
81
-2970

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT ALL NULLIF ( COUNT( * ), 30 )
----
1

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL NULLIF ( COUNT ( * ), 30 )
----
1

query I rowsort
SELECT ALL + CASE - 85 WHEN 21 THEN NULL ELSE - 5 END AS col1
----
-5

query I rowsort
SELECT ( + 83 ) * - + 15 AS col1
----
-1245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3311
SELECT ALL + + MAX( ALL 79 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL + + MAX ( ALL 79 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3312
SELECT 54 DIV + 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3312
SELECT 54 / + 61 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3313
SELECT + 9 * + CAST( NULL AS DECIMAL ) * + 11 * - + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3313
SELECT + 9 * + CAST ( NULL AS REAL ) * + 11 * - + 61
----
NULL

query I rowsort
SELECT ALL - - NULLIF ( 41, + - 39 + 9 ) * + 66 AS col1
----
2706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3315
SELECT - CASE - 30 WHEN - 99 THEN 84 ELSE 76 * - - 57 END DIV COALESCE ( + 50, 93 + - ( - 76 ) * COALESCE ( ( - 71 ), - 75 ), 44 DIV - ( 97 * + COALESCE ( - 84, + NULLIF ( + CAST( NULL AS SIGNED ), - 33 ) * - CASE MAX( + 72 ) WHEN 8 DIV + ( 81 ) THEN + 73 * + AVG ( DISTINCT 75 ) END + 50, CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) ) ) ) - ( - COUNT( * ) - CAST( + AVG ( ALL + ( - 67 ) ) AS SIGNED ) ) DIV 3 + + 72 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-3315
SELECT - CASE - 30 WHEN - 99 THEN 84 ELSE 76 * - - 57 END / COALESCE ( + 50, 93 + - ( - 76 ) * COALESCE ( ( - 71 ), - 75 ), 44 / - ( 97 * + COALESCE ( - 84, + NULLIF ( + CAST ( NULL AS INTEGER ), - 33 ) * - CASE MAX ( + 72 ) WHEN 8 / + ( 81 ) THEN + 73 * + AVG ( DISTINCT 75 ) END + 50, CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) ) ) ) - ( - COUNT ( * ) - CAST ( + AVG ( ALL + ( - 67 ) ) AS INTEGER ) ) / 3 + + 72 AS col0
----
-36

query I rowsort
SELECT - 75 * 13 + + 65 AS col0
----
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT 92 * COUNT( * ) * - 41 * 4 AS col2
----
-15088

skipif mysql # not compatible
query I rowsort label-3317
SELECT 92 * COUNT ( * ) * - 41 * 4 AS col2
----
-15088

query I rowsort
SELECT + ( 87 ) + - ( + 40 ) * - 99 + 51 * - 33 AS col1
----
2364

query II rowsort
SELECT + 98 + + - 93 AS col1, - 7 * 35
----
5
-245

onlyif mysql # DIV for integer division: 
query I rowsort label-3320
SELECT + + 7 DIV 85 - + 87 + + + ( - - 93 ) * 98 - - - 45 DIV - ( - 17 )
----
9025

skipif mysql # not compatible
query I rowsort label-3320
SELECT + + 7 / 85 - + 87 + + + ( - - 93 ) * 98 - - - 45 / - ( - 17 )
----
9025

query I rowsort
SELECT ALL - NULLIF ( 93, + + 64 )
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-3322
SELECT ALL - 46 col0, + COUNT( * ) AS col1
----
-46
1

skipif mysql # not compatible
query II rowsort label-3322
SELECT ALL - 46 col0, + COUNT ( * ) AS col1
----
-46
1

query I rowsort
SELECT DISTINCT 57 * + + 70 + + 21 AS col2
----
4011

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT ALL + 9 * + + 78 + COUNT( * ) AS col1
----
703

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL + 9 * + + 78 + COUNT ( * ) AS col1
----
703

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT + CASE - 22 WHEN + COUNT( * ) THEN - 90 + + 53 ELSE 38 END + ( - + NULLIF ( + 48, - 3 - + 23 ) ) * - 32
----
1574

skipif mysql # not compatible
query I rowsort label-3325
SELECT + CASE - 22 WHEN + COUNT ( * ) THEN - 90 + + 53 ELSE 38 END + ( - + NULLIF ( + 48, - 3 - + 23 ) ) * - 32
----
1574

query I rowsort
SELECT ALL 74 * - - 43
----
3182

onlyif mysql # aggregate syntax: 
query II rowsort label-3327
SELECT + 2 AS col0, + SUM( + 89 ) AS col0
----
2
89

skipif mysql # not compatible
query II rowsort label-3327
SELECT + 2 AS col0, + SUM ( + 89 ) AS col0
----
2
89

query I rowsort
SELECT + 45 + - 78 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT DISTINCT 68 + + NULLIF ( + 75, COUNT( * ) - + 42 ) + COUNT( * ) * 79 * 51
----
4172

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT 68 + + NULLIF ( + 75, COUNT ( * ) - + 42 ) + COUNT ( * ) * 79 * 51
----
4172

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT ALL COUNT( * ) + - 31 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL COUNT ( * ) + - 31 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT + COALESCE ( - 28, COUNT( * ) ) * - ( - 50 ) AS col1
----
-1400

skipif mysql # not compatible
query I rowsort label-3331
SELECT + COALESCE ( - 28, COUNT ( * ) ) * - ( - 50 ) AS col1
----
-1400

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT + NULLIF ( - + NULLIF ( - 32, + ( + - 18 ) * + COUNT( * ) ), 48 )
----
32

skipif mysql # not compatible
query I rowsort label-3332
SELECT + NULLIF ( - + NULLIF ( - 32, + ( + - 18 ) * + COUNT ( * ) ), 48 )
----
32

query I rowsort
SELECT DISTINCT 32 + 49 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT ALL MAX( DISTINCT - 80 ) - + + 13 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL MAX ( DISTINCT - 80 ) - + + 13 AS col1
----
-93

query I rowsort
SELECT + 2 * - + NULLIF ( + + 35, + NULLIF ( + 19, 61 ) )
----
-70

query I rowsort
SELECT DISTINCT - 9 * + - 93 AS col0
----
837

query I rowsort
SELECT - 31 * - 82 AS col1
----
2542

query I rowsort
SELECT + 43 * - 17
----
-731

query II rowsort
SELECT 61 col0, + 89 + + 28 AS col2
----
61
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3340
SELECT ALL 73 - + CAST( NULL AS SIGNED ) + 6 + - COUNT( * ) + - 48 * - - 46 * + 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL 73 - + CAST ( NULL AS INTEGER ) + 6 + - COUNT ( * ) + - 48 * - - 46 * + 19 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT + - COALESCE ( - 71, + 60 * COUNT( * ) ) + - 95
----
-24

skipif mysql # not compatible
query I rowsort label-3341
SELECT + - COALESCE ( - 71, + 60 * COUNT ( * ) ) + - 95
----
-24

query I rowsort
SELECT + + 71 - - - 3
----
68

query I rowsort
SELECT - + 66 * 10 AS col0
----
-660

query I rowsort
SELECT ALL - - ( 90 ) * - 42
----
-3780

query II rowsort
SELECT ALL + 4, + 3 AS col1
----
4
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3346
SELECT DISTINCT 79 AS col2, 33 + + + 23 * NULLIF ( - 1, + SUM( + 90 ) ) AS col1
----
79
10

skipif mysql # not compatible
query II rowsort label-3346
SELECT DISTINCT 79 AS col2, 33 + + + 23 * NULLIF ( - 1, + SUM ( + 90 ) ) AS col1
----
79
10

query I rowsort
SELECT - + 14 + - 1
----
-15

query I rowsort
SELECT - - 39 + - 7
----
32

query II rowsort
SELECT DISTINCT + 20, - 92 * 69 AS col2
----
20
-6348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3350
SELECT - + 64 * - 14 * + ( - CAST( SUM( DISTINCT - - 68 ) AS SIGNED ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3350
SELECT - + 64 * - 14 * + ( - CAST ( SUM ( DISTINCT - - 68 ) AS INTEGER ) ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3351
SELECT + + 53 col0, - 70 DIV 91
----
53
0

skipif mysql # not compatible
query II rowsort label-3351
SELECT + + 53 col0, - 70 / 91
----
53
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3352
SELECT - - MIN( - 26 ) DIV 6 col2
----
-4

skipif mysql # not compatible
query I rowsort label-3352
SELECT - - MIN ( - 26 ) / 6 col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT ALL + MIN( + - 74 ) * - + 32 + CASE + 2 WHEN + + 35 THEN + + 75 * + + 97 * COUNT( * ) + - + 8 ELSE 48 END
----
2416

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL + MIN ( + - 74 ) * - + 32 + CASE + 2 WHEN + + 35 THEN + + 75 * + + 97 * COUNT ( * ) + - + 8 ELSE 48 END
----
2416

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT DISTINCT - 85 * - - MAX( - + 10 ) AS col1
----
850

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT - 85 * - - MAX ( - + 10 ) AS col1
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT + COUNT( DISTINCT 52 )
----
1

skipif mysql # not compatible
query I rowsort label-3355
SELECT + COUNT ( DISTINCT 52 )
----
1

query I rowsort
SELECT ALL + 68 col2
----
68

query I rowsort
SELECT - 45 * + - 88 AS col1
----
3960

query II rowsort
SELECT ( - - 82 ), + 61 + 49 + - 10 AS col2
----
82
100

query I rowsort
SELECT + 15 * - 87 * ( 7 ) AS col0
----
-9135

query II rowsort
SELECT DISTINCT + NULLIF ( - - 16, - + 20 - - 93 ), + ( - 14 ) col0
----
16
-14

query I rowsort
SELECT DISTINCT + COALESCE ( 60, + - 78 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT COALESCE ( - + COUNT( * ), - COUNT( ALL NULLIF ( 17, + 64 + + + 24 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3362
SELECT COALESCE ( - + COUNT ( * ), - COUNT ( ALL NULLIF ( 17, + 64 + + + 24 ) ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3363
SELECT ALL + 72 * + + CASE + CAST( NULL AS SIGNED ) WHEN 56 THEN + + 68 * - 57 DIV + + 29 DIV COALESCE ( ( + - 50 ), 12, 0 + + + COUNT( * ), + 0 ) * - CAST( ( - COUNT( * ) ) + 94 AS SIGNED ) WHEN AVG ( + 98 ) - - COUNT( * ) THEN NULL ELSE - 81 END - + ( + COALESCE ( 81, 19 ) ) * 49 AS col2
----
-9801

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL + 72 * + + CASE + CAST ( NULL AS INTEGER ) WHEN 56 THEN + + 68 * - 57 / + + 29 / COALESCE ( ( + - 50 ), 12, 0 + + + COUNT ( * ), + 0 ) * - CAST ( ( - COUNT ( * ) ) + 94 AS INTEGER ) WHEN AVG ( + 98 ) - - COUNT ( * ) THEN NULL ELSE - 81 END - + ( + COALESCE ( 81, 19 ) ) * 49 AS col2
----
-9801

query II rowsort
SELECT DISTINCT + 5 * 26 AS col1, 8
----
130
8

query I rowsort
SELECT - 25 + + 98
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT - ( - SUM( 40 ) )
----
40

skipif mysql # not compatible
query I rowsort label-3366
SELECT - ( - SUM ( 40 ) )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3367
SELECT - 43 * + + CAST( NULL AS DECIMAL ) AS col0, CAST( - COUNT( * ) AS SIGNED ) col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3367
SELECT - 43 * + + CAST ( NULL AS REAL ) AS col0, CAST ( - COUNT ( * ) AS INTEGER ) col1
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT MAX( ALL + - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-3368
SELECT MAX ( ALL + - 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT MAX( ALL + - 77 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-3369
SELECT MAX ( ALL + - 77 ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT + - COUNT( * ) + - + 75 * + + COUNT( * ) col0
----
-76

skipif mysql # not compatible
query I rowsort label-3370
SELECT + - COUNT ( * ) + - + 75 * + + COUNT ( * ) col0
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3371
SELECT + 11 DIV + - NULLIF ( + + 89, - + COALESCE ( + + CASE + 2 WHEN 22 * ( 88 ) THEN - 19 + 85 WHEN - 35 + + - 26 THEN - 96 END, - 31 * COUNT( * ) ) + - 86 ) + 96
----
96

skipif mysql # not compatible
query I rowsort label-3371
SELECT + 11 / + - NULLIF ( + + 89, - + COALESCE ( + + CASE + 2 WHEN 22 * ( 88 ) THEN - 19 + 85 WHEN - 35 + + - 26 THEN - 96 END, - 31 * COUNT ( * ) ) + - 86 ) + 96
----
96

query I rowsort
SELECT + 50 * + 51 + + 36 AS col1
----
2586

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT ALL MIN( 62 )
----
62

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL MIN ( 62 )
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-3374
SELECT DISTINCT ( - 91 ) col1, 45 - + 5 * - 35 * + - MIN( - 68 ) AS col2
----
-91
11945

skipif mysql # not compatible
query II rowsort label-3374
SELECT DISTINCT ( - 91 ) col1, 45 - + 5 * - 35 * + - MIN ( - 68 ) AS col2
----
-91
11945

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT ALL NULLIF ( + 57, + 30 - + COALESCE ( 30, - COUNT( * ) ) + 34 + - 66 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL NULLIF ( + 57, + 30 - + COALESCE ( 30, - COUNT ( * ) ) + 34 + - 66 ) AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3376
SELECT ALL 7 DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL 7 / 39
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3377
SELECT + 77 DIV + COUNT( * ) + CAST( - 70 AS SIGNED ) col1
----
7

skipif mysql # not compatible
query I rowsort label-3377
SELECT + 77 / + COUNT ( * ) + CAST ( - 70 AS INTEGER ) col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3378
SELECT ALL + 29 DIV - NULLIF ( - + 2, - + 43 * - 93 * + - 48 + - - NULLIF ( - 95, 94 ) ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL + 29 / - NULLIF ( - + 2, - + 43 * - 93 * + - 48 + - - NULLIF ( - 95, 94 ) ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT + - 48 * - - COALESCE ( - + 33, SUM( + - 70 ) ) * ( NULLIF ( - 21, COALESCE ( 57, 97 * - + 3 ) * - COUNT( * ) ) )
----
-33264

skipif mysql # not compatible
query I rowsort label-3379
SELECT + - 48 * - - COALESCE ( - + 33, SUM ( + - 70 ) ) * ( NULLIF ( - 21, COALESCE ( 57, 97 * - + 3 ) * - COUNT ( * ) ) )
----
-33264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3380
SELECT + - 43 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3380
SELECT + - 43 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT ALL - 37 + - CASE 12 WHEN 2 + - 69 + 86 * + 23 * 80 + + - MAX( ALL - 18 ) / + + AVG ( ALL 63 ) THEN NULL ELSE - 98 * - + 52 END + - 63 * - 53
----
-1794

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL - 37 + - CASE 12 WHEN 2 + - 69 + 86 * + 23 * 80 + + - MAX ( ALL - 18 ) / + + AVG ( ALL 63 ) THEN NULL ELSE - 98 * - + 52 END + - 63 * - 53
----
-1794

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT SUM( ALL - + 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-3382
SELECT SUM ( ALL - + 64 )
----
-64

query I rowsort
SELECT - CASE 26 WHEN + 74 THEN NULL WHEN 32 THEN - 59 END AS col2
----
NULL

query I rowsort
SELECT + 53 - + - 33 * 81
----
2726

query I rowsort
SELECT - + 9 AS col1
----
-9

query I rowsort
SELECT ALL 49 + + ( + 20 ) AS col0
----
69

query I rowsort
SELECT DISTINCT 54 * + 9 col2
----
486

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3388
SELECT ALL + - 96 + 7 + - CAST( + 6 AS SIGNED ) * 73 DIV + 11
----
-128

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL + - 96 + 7 + - CAST ( + 6 AS INTEGER ) * 73 / + 11
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-3389
SELECT + - 70 DIV + 46 - 79
----
-80

skipif mysql # not compatible
query I rowsort label-3389
SELECT + - 70 / + 46 - 79
----
-80

query II rowsort
SELECT DISTINCT + 10 * - + 95, + 54 AS col1
----
-950
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT DISTINCT 81 + - SUM( DISTINCT NULLIF ( + - 8, 97 ) ) * + 78
----
705

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT 81 + - SUM ( DISTINCT NULLIF ( + - 8, 97 ) ) * + 78
----
705

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT - COUNT( ALL + + 21 ) * - - CASE - 2 WHEN ( 97 ) THEN 84 * - + 33 ELSE NULL END - - + 47 + + + 49 * + - 53 * - AVG ( - 13 ) * - + COUNT( * ) + AVG ( ( NULLIF ( - 5, 70 * ( 21 ) ) ) ) + + 90 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT - COUNT ( ALL + + 21 ) * - - CASE - 2 WHEN ( 97 ) THEN 84 * - + 33 ELSE NULL END - - + 47 + + + 49 * + - 53 * - AVG ( - 13 ) * - + COUNT ( * ) + AVG ( ( NULLIF ( - 5, 70 * ( 21 ) ) ) ) + + 90 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3393
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + 56 * + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3393
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + 56 * + 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT CASE ( - CASE SUM( DISTINCT + 3 ) WHEN - + 33 THEN - 47 * + 37 * 78 END ) WHEN - + COALESCE ( + + 37, 5 ) THEN 35 WHEN 94 THEN NULL END + - - 52 * ( 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3394
SELECT CASE ( - CASE SUM ( DISTINCT + 3 ) WHEN - + 33 THEN - 47 * + 37 * 78 END ) WHEN - + COALESCE ( + + 37, 5 ) THEN 35 WHEN 94 THEN NULL END + - - 52 * ( 71 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT DISTINCT - MIN( ALL - 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT - MIN ( ALL - 98 ) AS col0
----
98

query I rowsort
SELECT 97 + 22
----
119

query I rowsort
SELECT 32 - 89
----
-57

query I rowsort
SELECT ALL 91 - - 43 AS col0
----
134

query I rowsort
SELECT 16 + 29 col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT ALL - ( 15 ) - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL - ( 15 ) - COUNT ( * )
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3401
SELECT 22 DIV - 21
----
-1

skipif mysql # not compatible
query I rowsort label-3401
SELECT 22 / - 21
----
-1

query I rowsort
SELECT ALL + 36 * 1 AS col1
----
36

query II rowsort
SELECT ALL - 77, 2 col0
----
-77
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT + 84 * - 54 + COUNT( * ) + - 74 AS col0
----
-4609

skipif mysql # not compatible
query I rowsort label-3404
SELECT + 84 * - 54 + COUNT ( * ) + - 74 AS col0
----
-4609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3405
SELECT MAX( + CAST( - + 11 AS SIGNED ) ) * - 48
----
528

skipif mysql # not compatible
query I rowsort label-3405
SELECT MAX ( + CAST ( - + 11 AS INTEGER ) ) * - 48
----
528

query I rowsort
SELECT ALL - ( + 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT 29 * - COUNT( DISTINCT 0 )
----
-29

skipif mysql # not compatible
query I rowsort label-3407
SELECT 29 * - COUNT ( DISTINCT 0 )
----
-29

query I rowsort
SELECT ALL - COALESCE ( 46, + - 51, 30 )
----
-46

query I rowsort
SELECT DISTINCT + 99 + + + 43 + 40
----
182

onlyif mysql # DIV for integer division: 
query I rowsort label-3410
SELECT ( - - 57 ) DIV 60 col2
----
0

skipif mysql # not compatible
query I rowsort label-3410
SELECT ( - - 57 ) / 60 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT - SUM( + - 75 ) + 81
----
156

skipif mysql # not compatible
query I rowsort label-3411
SELECT - SUM ( + - 75 ) + 81
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT ALL - + COUNT( * ) + - 18 + + - ( 5 )
----
-24

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL - + COUNT ( * ) + - 18 + + - ( 5 )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3413
SELECT - COALESCE ( ( - ( - - 5 ) ), + MAX( - 21 ) ) + 75 DIV + 16 + - 62 + + 86 DIV + MAX( 16 )
----
-48

skipif mysql # not compatible
query I rowsort label-3413
SELECT - COALESCE ( ( - ( - - 5 ) ), + MAX ( - 21 ) ) + 75 / + 16 + - 62 + + 86 / + MAX ( 16 )
----
-48

query I rowsort
SELECT - 50 + - 24 AS col1
----
-74

query I rowsort
SELECT + 20 - 83
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT 77 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3416
SELECT 77 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT ALL + 25 + - - COALESCE ( - + 9, + 83 + + 38 * - 1 * - - 25 + COALESCE ( - COUNT( * ), - 32 ) ) * + 65
----
-560

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL + 25 + - - COALESCE ( - + 9, + 83 + + 38 * - 1 * - - 25 + COALESCE ( - COUNT ( * ), - 32 ) ) * + 65
----
-560

onlyif mysql # aggregate syntax: 
query II rowsort label-3418
SELECT DISTINCT 98 AS col0, CASE + COUNT( * ) WHEN - COUNT( * ) * - 34 + 59 + + 46 THEN + 0 * - + 27 * 59 END * - ( - 12 ) AS col2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-3418
SELECT DISTINCT 98 AS col0, CASE + COUNT ( * ) WHEN - COUNT ( * ) * - 34 + 59 + + 46 THEN + 0 * - + 27 * 59 END * - ( - 12 ) AS col2
----
98
NULL

query I rowsort
SELECT + 86 + 80 + - + 26
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT - - COUNT( DISTINCT - 52 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3420
SELECT - - COUNT ( DISTINCT - 52 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT ALL + COALESCE ( COUNT( * ), - 49 * - - 33 * + + 1 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL + COALESCE ( COUNT ( * ), - 49 * - - 33 * + + 1 ) col2
----
1

query I rowsort
SELECT DISTINCT 65 + - 85
----
-20

query I rowsort
SELECT 46 + - + 29 + + + ( - - 8 ) col0
----
25

query II rowsort
SELECT 54, + 63 * - 25 AS col1
----
54
-1575

onlyif mysql # aggregate syntax: 
query II rowsort label-3425
SELECT - 87 AS col0, + 8 + - 49 + - NULLIF ( + - COUNT( * ), - - 50 ) AS col1
----
-87
-40

skipif mysql # not compatible
query II rowsort label-3425
SELECT - 87 AS col0, + 8 + - 49 + - NULLIF ( + - COUNT ( * ), - - 50 ) AS col1
----
-87
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3426
SELECT CAST( NULL AS SIGNED ) + - + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT CAST ( NULL AS INTEGER ) + - + 96 AS col2
----
NULL

query I rowsort
SELECT ( + - 44 ) * 51
----
-2244

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT DISTINCT NULLIF ( + + COUNT( * ), - 61 + + 11 * - + COUNT( * ) ) * + 41 * COALESCE ( + 5, 93 ) * - 60 * - + 69
----
848700

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT NULLIF ( + + COUNT ( * ), - 61 + + 11 * - + COUNT ( * ) ) * + 41 * COALESCE ( + 5, 93 ) * - 60 * - + 69
----
848700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3429
SELECT ALL - 36 AS col2, 58 - + CAST( NULL AS SIGNED )
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-3429
SELECT ALL - 36 AS col2, 58 - + CAST ( NULL AS INTEGER )
----
-36
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3430
SELECT 13 * MIN( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT 13 * MIN ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT DISTINCT 9 * 5 * 7 * - COUNT( ALL - 92 ) * 94 AS col1
----
-29610

skipif mysql # not compatible
query I rowsort label-3431
SELECT DISTINCT 9 * 5 * 7 * - COUNT ( ALL - 92 ) * 94 AS col1
----
-29610

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT MIN( ( 17 ) ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-3432
SELECT MIN ( ( 17 ) ) AS col0
----
17

query I rowsort
SELECT 26 * 50 AS col1
----
1300

query I rowsort
SELECT ALL 44 * 66 AS col2
----
2904

query I rowsort
SELECT 3 * + - 53 * 77
----
-12243

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT SUM( - 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3436
SELECT SUM ( - 93 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT ALL - MAX( - - 16 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-3437
SELECT ALL - MAX ( - - 16 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT 51 * COUNT( * ) * CASE - 2 WHEN - 72 - - + 57 * - 69 THEN + - ( 47 ) WHEN - 61 THEN NULL ELSE NULL END * 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3438
SELECT 51 * COUNT ( * ) * CASE - 2 WHEN - 72 - - + 57 * - 69 THEN + - ( 47 ) WHEN - 61 THEN NULL ELSE NULL END * 82 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT 32 * 57 - + CASE - ( + - COUNT( * ) ) WHEN - MAX( - + 29 ) THEN + 42 ELSE NULL END * - 77 / - + 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3439
SELECT 32 * 57 - + CASE - ( + - COUNT ( * ) ) WHEN - MAX ( - + 29 ) THEN + 42 ELSE NULL END * - 77 / - + 51 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3440
SELECT ALL - SUM( DISTINCT - + 35 ) DIV COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL - SUM ( DISTINCT - + 35 ) / COUNT ( * )
----
35

query I rowsort
SELECT 41 * - - 64
----
2624

query I rowsort
SELECT ALL - 33 * + 7 col0
----
-231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3443
SELECT 47 DIV + - ( - CAST( + SUM( 16 ) AS SIGNED ) )
----
2

skipif mysql # not compatible
query I rowsort label-3443
SELECT 47 / + - ( - CAST ( + SUM ( 16 ) AS INTEGER ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT ALL SUM( ALL - 77 ) + + + 8
----
-69

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL SUM ( ALL - 77 ) + + + 8
----
-69

query I rowsort
SELECT ALL - 3 + 17
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT + MIN( + 18 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-3446
SELECT + MIN ( + 18 ) AS col2
----
18

query I rowsort
SELECT ALL + - ( - 22 ) + 15 AS col1
----
37

query I rowsort
SELECT DISTINCT + - 80 + + 13 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-3449
SELECT ALL - 12 * - SUM( DISTINCT + 14 ) - - 46 AS col1, - 84 AS col2
----
214
-84

skipif mysql # not compatible
query II rowsort label-3449
SELECT ALL - 12 * - SUM ( DISTINCT + 14 ) - - 46 AS col1, - 84 AS col2
----
214
-84

query II rowsort
SELECT - + 20 AS col2, 57 AS col0
----
-20
57

query I rowsort
SELECT 36 - + 39 + - 49
----
-52

query I rowsort
SELECT DISTINCT - ( 64 )
----
-64

query I rowsort
SELECT ALL ( + 75 ) col0
----
75

query II rowsort
SELECT ALL + ( 10 ), 54 AS col2
----
10
54

query I rowsort
SELECT DISTINCT - + 62 + - 27 col1
----
-89

query I rowsort
SELECT ALL 15 * 9
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3457
SELECT - COUNT( 36 ) DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-3457
SELECT - COUNT ( 36 ) / + 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT DISTINCT - - COALESCE ( + COUNT( * ), - + 74 + - - 47 * 58 ) - + 61
----
-60

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT - - COALESCE ( + COUNT ( * ), - + 74 + - - 47 * 58 ) - + 61
----
-60

query I rowsort
SELECT - 42 * + 91
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT + COUNT( * ) * + NULLIF ( - COUNT( * ), 82 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3460
SELECT + COUNT ( * ) * + NULLIF ( - COUNT ( * ), 82 ) col0
----
-1

query I rowsort
SELECT ALL - 8 * - 15
----
120

query I rowsort
SELECT DISTINCT + 54 * NULLIF ( 83, + 34 - + 56 )
----
4482

query I rowsort
SELECT DISTINCT NULLIF ( + + 84, 95 ) AS col2
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3464
SELECT + 38 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT + 38 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3465
SELECT ALL CASE + - CAST( 74 AS SIGNED ) WHEN + 1 * + COUNT( * ) / + 61 + + 72 * + COUNT( * ) THEN + + 37 WHEN + 87 + - 92 THEN + 1 WHEN COUNT( - 88 ) / - COUNT( * ) + - ( 59 ) * + 95 THEN + 62 END * + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL CASE + - CAST ( 74 AS INTEGER ) WHEN + 1 * + COUNT ( * ) / + 61 + + 72 * + COUNT ( * ) THEN + + 37 WHEN + 87 + - 92 THEN + 1 WHEN COUNT ( - 88 ) / - COUNT ( * ) + - ( 59 ) * + 95 THEN + 62 END * + 16 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT 73 DIV + 91 + + + 11 + + 60 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-3466
SELECT 73 / + 91 + + + 11 + + 60 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT 36 * - ( + 97 ) + - 44 + - COUNT( * )
----
-3537

skipif mysql # not compatible
query I rowsort label-3467
SELECT 36 * - ( + 97 ) + - 44 + - COUNT ( * )
----
-3537

query II rowsort
SELECT + 50 * 36 AS col1, + 24 AS col2
----
1800
24

onlyif mysql # aggregate syntax: 
query III rowsort label-3469
SELECT + 20 + COUNT( + ( - 36 ) ) + - MIN( DISTINCT + 81 ) * - 56 AS col1, - 47 * + 90 + + 22 AS col0, + COUNT( * )
----
4557
-4208
1

skipif mysql # not compatible
query III rowsort label-3469
SELECT + 20 + COUNT ( + ( - 36 ) ) + - MIN ( DISTINCT + 81 ) * - 56 AS col1, - 47 * + 90 + + 22 AS col0, + COUNT ( * )
----
4557
-4208
1

query I rowsort
SELECT + ( 97 ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3471
SELECT ALL + MIN( - 59 ) * 27 + + + 55 - + COUNT( * ) * + 97 + - CAST( - 90 AS SIGNED ) DIV ( + - 40 ) + 70 * + 12 AS col1
----
-797

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL + MIN ( - 59 ) * 27 + + + 55 - + COUNT ( * ) * + 97 + - CAST ( - 90 AS INTEGER ) / ( + - 40 ) + 70 * + 12 AS col1
----
-797

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT COUNT( * ) * + 27 * 60 + 36
----
1656

skipif mysql # not compatible
query I rowsort label-3472
SELECT COUNT ( * ) * + 27 * 60 + 36
----
1656

query I rowsort
SELECT + 14 * - 41
----
-574

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT DISTINCT - 19 * + 71 + 64 * COUNT( * )
----
-1285

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT - 19 * + 71 + 64 * COUNT ( * )
----
-1285

onlyif mysql # aggregate syntax: 
query II rowsort label-3475
SELECT ALL + 69 * 68 + + COUNT( * ) AS col1, + 22
----
4693
22

skipif mysql # not compatible
query II rowsort label-3475
SELECT ALL + 69 * 68 + + COUNT ( * ) AS col1, + 22
----
4693
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT DISTINCT - 3 * - COUNT( * ) + + + 87 + + 95 col0
----
185

skipif mysql # not compatible
query I rowsort label-3476
SELECT DISTINCT - 3 * - COUNT ( * ) + + + 87 + + 95 col0
----
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3477
SELECT ALL 44 * + ( + 98 ) + - 14 DIV - CASE + ( + ( - + 63 ) ) WHEN 32 THEN NULL WHEN + - COUNT( * ) DIV - 91 + COUNT( * ) * - + 49 * + 77 THEN + + 41 * + 52 * 68 ELSE - COUNT( * ) END - + 69 * + COUNT( * )
----
4229

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL 44 * + ( + 98 ) + - 14 / - CASE + ( + ( - + 63 ) ) WHEN 32 THEN NULL WHEN + - COUNT ( * ) / - 91 + COUNT ( * ) * - + 49 * + 77 THEN + + 41 * + 52 * 68 ELSE - COUNT ( * ) END - + 69 * + COUNT ( * )
----
4229

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT ALL MIN( - 98 ) * + 66 + + MAX( ALL 53 ) + + 42
----
-6373

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL MIN ( - 98 ) * + 66 + + MAX ( ALL 53 ) + + 42
----
-6373

query I rowsort
SELECT + ( + - 89 ) * - + 59 + 32 * + 26
----
6083

onlyif mysql # aggregate syntax: 
query II rowsort label-3480
SELECT 72 * + 11 + - 66 * - MIN( - 17 ), - 55 + 86 AS col0
----
-330
31

skipif mysql # not compatible
query II rowsort label-3480
SELECT 72 * + 11 + - 66 * - MIN ( - 17 ), - 55 + 86 AS col0
----
-330
31

query I rowsort
SELECT - NULLIF ( + - 57, - 82 + + - 80 )
----
57

query I rowsort
SELECT + - 11 * 1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3483
SELECT ALL COALESCE ( - 84, + - CAST( NULL AS SIGNED ) + - 43 + MIN( - 16 ) ) DIV + - 98 + - + 49 + + 10 * + 79 * - 90 AS col0
----
-71149

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL COALESCE ( - 84, + - CAST ( NULL AS INTEGER ) + - 43 + MIN ( - 16 ) ) / + - 98 + - + 49 + + 10 * + 79 * - 90 AS col0
----
-71149

query I rowsort
SELECT DISTINCT + 67 * 48 AS col1
----
3216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3485
SELECT - 59 * - 21 AS col2, 88 * + + COALESCE ( COUNT( * ), - 74 + - SUM( DISTINCT + 24 ) ) * + + 60 + - 3 + - CAST( NULL AS SIGNED ) - - CASE + + NULLIF ( + 88, + COUNT( * ) ) WHEN + 21 + - 17 * + 73 THEN - COUNT( * ) WHEN ( ( CAST( + 26 AS SIGNED ) ) ) THEN NULL WHEN - 45 THEN NULL ELSE + 94 END / - 87
----
1239
NULL

skipif mysql # not compatible
query II rowsort label-3485
SELECT - 59 * - 21 AS col2, 88 * + + COALESCE ( COUNT ( * ), - 74 + - SUM ( DISTINCT + 24 ) ) * + + 60 + - 3 + - CAST ( NULL AS INTEGER ) - - CASE + + NULLIF ( + 88, + COUNT ( * ) ) WHEN + 21 + - 17 * + 73 THEN - COUNT ( * ) WHEN ( ( CAST ( + 26 AS INTEGER ) ) ) THEN NULL WHEN - 45 THEN NULL ELSE + 94 END / - 87
----
1239
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3486
SELECT ALL + COUNT( CAST( - 15 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL + COUNT ( CAST ( - 15 AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT - - 29 + + ( - COUNT( * ) ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-3487
SELECT - - 29 + + ( - COUNT ( * ) ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT DISTINCT + COUNT( * ) - + 63 - + 62 AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT + COUNT ( * ) - + 63 - + 62 AS col2
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3489
SELECT - + ( + + SUM( DISTINCT 21 ) ) + 80 DIV COALESCE ( + - 33, - ( 55 ) * 86 * 95 )
----
-23

skipif mysql # not compatible
query I rowsort label-3489
SELECT - + ( + + SUM ( DISTINCT 21 ) ) + 80 / COALESCE ( + - 33, - ( 55 ) * 86 * 95 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT DISTINCT - + 60 * + - 2 + - MIN( ALL + 63 ) + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT - + 60 * + - 2 + - MIN ( ALL + 63 ) + COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3491
SELECT ALL COALESCE ( + - 90, + + 31 + - 18 + + 65 - - ( - 57 ) * - 67 * + + 56 * - - 92 + + 0 * 41 ) AS col2, + 11 * + + 33 * - + COUNT( * )
----
-90
-363

skipif mysql # not compatible
query II rowsort label-3491
SELECT ALL COALESCE ( + - 90, + + 31 + - 18 + + 65 - - ( - 57 ) * - 67 * + + 56 * - - 92 + + 0 * 41 ) AS col2, + 11 * + + 33 * - + COUNT ( * )
----
-90
-363

query I rowsort
SELECT - - 68 + - + 33 + - 28 * - - 57 AS col2
----
-1561

query I rowsort
SELECT - - 10 * 61 * - 52
----
-31720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3494
SELECT - + COUNT( * ) - + 34 + + CAST( + COUNT( 91 ) AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-3494
SELECT - + COUNT ( * ) - + 34 + + CAST ( + COUNT ( 91 ) AS INTEGER )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT ALL CASE + 60 WHEN + - 21 * + COALESCE ( ( 84 ), + + 13 + COUNT( * ) + + 55 + - COUNT( * ) / - 68 * - 38 + 51 + - 72 + - 83 + + 58 - + - 65 + 74 * 10, + COUNT( * ) * ( 97 ) ) THEN NULL ELSE 51 END AS col2
----
51

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL CASE + 60 WHEN + - 21 * + COALESCE ( ( 84 ), + + 13 + COUNT ( * ) + + 55 + - COUNT ( * ) / - 68 * - 38 + 51 + - 72 + - 83 + + 58 - + - 65 + 74 * 10, + COUNT ( * ) * ( 97 ) ) THEN NULL ELSE 51 END AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT - 63 * 51 * - COUNT( * )
----
3213

skipif mysql # not compatible
query I rowsort label-3496
SELECT - 63 * 51 * - COUNT ( * )
----
3213

query I rowsort
SELECT ALL COALESCE ( 49, 42 + 48 * + 53 )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3498
SELECT DISTINCT CASE + - COUNT( * ) WHEN 49 THEN 79 * 68 - CAST( NULL AS SIGNED ) - + 24 * + 91 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT CASE + - COUNT ( * ) WHEN 49 THEN 79 * 68 - CAST ( NULL AS INTEGER ) - + 24 * + 91 END col2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - - 98, + - 42 * + - 71 )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-3500
SELECT ALL 98 AS col1, + COUNT( * ) AS col1
----
98
1

skipif mysql # not compatible
query II rowsort label-3500
SELECT ALL 98 AS col1, + COUNT ( * ) AS col1
----
98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT - SUM( DISTINCT + + 57 ) + - 4 + - 76
----
-137

skipif mysql # not compatible
query I rowsort label-3501
SELECT - SUM ( DISTINCT + + 57 ) + - 4 + - 76
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT ALL ( + - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL ( + - COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT ALL + 77 * 9 * + CASE - 88 WHEN + - 55 THEN + 83 ELSE NULL END
----
NULL

query I rowsort
SELECT - 27 * - 7 AS col0
----
189

query I rowsort
SELECT - 32 + + 10
----
-22

query I rowsort
SELECT DISTINCT + ( 4 ) * + 4 - + 89 + + 19 * + - 7
----
-206

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3507
SELECT + SUM( ALL + 98 ) DIV COUNT( * ) DIV 39 col0
----
2

skipif mysql # not compatible
query I rowsort label-3507
SELECT + SUM ( ALL + 98 ) / COUNT ( * ) / 39 col0
----
2

query I rowsort
SELECT - 96 * 42 * 51 * + - 60
----
12337920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3509
SELECT ALL + 92 DIV + COUNT( * ) + - - 90 + - - 5 * 26
----
312

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL + 92 / + COUNT ( * ) + - - 90 + - - 5 * 26
----
312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3510
SELECT - COUNT( * ) DIV - - 13
----
0

skipif mysql # not compatible
query I rowsort label-3510
SELECT - COUNT ( * ) / - - 13
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3511
SELECT ALL 40 DIV + 30 * - COUNT( * ) + - 95 + + + 18 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL 40 / + 30 * - COUNT ( * ) + - 95 + + + 18 AS col2
----
-78

query I rowsort
SELECT + ( 88 ) col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3513
SELECT - COUNT( * ) DIV - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3513
SELECT - COUNT ( * ) / - + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3514
SELECT + + COUNT( * ) DIV - - 22
----
0

skipif mysql # not compatible
query I rowsort label-3514
SELECT + + COUNT ( * ) / - - 22
----
0

query I rowsort
SELECT + NULLIF ( 14, + + 97 * + 96 * - - 61 / 74 + 3 * 7 )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3516
SELECT ALL - 69 DIV - 71 + + 49
----
49

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL - 69 / - 71 + + 49
----
49

query II rowsort
SELECT 15 * - - 75 - + - 52, + 21 + 85 + - ( + 0 ) + - 36 * - - 90 + + - 46 AS col0
----
1177
-3180

query I rowsort
SELECT + + 40 - - 35 AS col0
----
75

query I rowsort
SELECT DISTINCT - 27 - 35
----
-62

query II rowsort
SELECT ALL - + 13 AS col2, 11 * 94
----
-13
1034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3521
SELECT - ( - CAST( NULL AS SIGNED ) ) * 94 - 48 + + 53 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT - ( - CAST ( NULL AS INTEGER ) ) * 94 - 48 + + 53 / + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3522
SELECT + 97 * + 0 DIV + 75 - 81
----
-81

skipif mysql # not compatible
query I rowsort label-3522
SELECT + 97 * + 0 / + 75 - 81
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-3523
SELECT - 45 AS col2, - COUNT( * )
----
-45
-1

skipif mysql # not compatible
query II rowsort label-3523
SELECT - 45 AS col2, - COUNT ( * )
----
-45
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3524
SELECT - ( COALESCE ( 36, - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-3524
SELECT - ( COALESCE ( 36, - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) AS col2
----
-36

query I rowsort
SELECT ALL + ( + 95 ) AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3526
SELECT CAST( NULL AS SIGNED ) / + ( 99 ) / + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3526
SELECT CAST ( NULL AS INTEGER ) / + ( 99 ) / + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 44 * - 29 col0
----
-1276

onlyif mysql # DIV for integer division: 
query I rowsort label-3528
SELECT ALL 20 DIV - 19 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL 20 / - 19 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3529
SELECT CAST( NULL AS SIGNED ) / 6 * + - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT CAST ( NULL AS INTEGER ) / 6 * + - 52 AS col2
----
NULL

query I rowsort
SELECT ALL ( - 42 ) * 31
----
-1302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3531
SELECT CAST( NULL AS SIGNED ) / + - ( + + 75 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3531
SELECT CAST ( NULL AS INTEGER ) / + - ( + + 75 ) AS col0
----
NULL

query II rowsort
SELECT 42 * - 14 AS col2, NULLIF ( + - 60, - - 80 ) AS col0
----
-588
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-3533
SELECT 51 * COUNT( * ), NULLIF ( + - 14, 27 + - + 11 + - - 44 * 20 ) AS col0
----
51
-14

skipif mysql # not compatible
query II rowsort label-3533
SELECT 51 * COUNT ( * ), NULLIF ( + - 14, 27 + - + 11 + - - 44 * 20 ) AS col0
----
51
-14

query II rowsort
SELECT ALL + 73 + 66, COALESCE ( - 26, + - 84 * + 67 - 81 ) * + 68 + - CASE - 4 WHEN + NULLIF ( 77, + + 41 ) THEN 72 + + 2 WHEN 11 + 35 * - - 73 * 98 * 73 THEN NULL ELSE NULL END AS col0
----
139
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3535
SELECT NULLIF ( CASE + 44 WHEN + + 93 THEN NULL WHEN + 50 THEN ( - 95 ) + COUNT( * ) * + + ( + 64 ) END, - 25 - 74 * 70 ) + 18 + - SUM( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT NULLIF ( CASE + 44 WHEN + + 93 THEN NULL WHEN + 50 THEN ( - 95 ) + COUNT ( * ) * + + ( + 64 ) END, - 25 - 74 * 70 ) + 18 + - SUM ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT DISTINCT 20 + + COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3536
SELECT DISTINCT 20 + + COUNT ( * ) AS col0
----
21

query I rowsort
SELECT ALL - 74 + - 26
----
-100

query I rowsort
SELECT 57 - - 87 + 24 * 67
----
1752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3539
SELECT - 68 DIV + - COUNT( * ) + - + 36 - - 75 * + + ( + + 38 ) AS col1
----
2882

skipif mysql # not compatible
query I rowsort label-3539
SELECT - 68 / + - COUNT ( * ) + - + 36 - - 75 * + + ( + + 38 ) AS col1
----
2882

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT ALL - 74 + + + COUNT( - 18 ) col1
----
-73

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL - 74 + + + COUNT ( - 18 ) col1
----
-73

query I rowsort
SELECT ALL + 11 - + ( 23 )
----
-12

query I rowsort
SELECT - ( - 37 ) + + 55 + 18 * + 36 * 46 AS col0
----
29900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3543
SELECT ALL + 33 * - CAST( - + 31 AS SIGNED ) * - 82, - 45 AS col0
----
-83886
-45

skipif mysql # not compatible
query II rowsort label-3543
SELECT ALL + 33 * - CAST ( - + 31 AS INTEGER ) * - 82, - 45 AS col0
----
-83886
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3544
SELECT DISTINCT + 22 * - + 50 AS col2, 28 DIV + 55 + + 22 DIV - - COUNT( * )
----
-1100
22

skipif mysql # not compatible
query II rowsort label-3544
SELECT DISTINCT + 22 * - + 50 AS col2, 28 / + 55 + + 22 / - - COUNT ( * )
----
-1100
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3545
SELECT DISTINCT - + CAST( MAX( ALL 70 ) AS SIGNED ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT - + CAST ( MAX ( ALL 70 ) AS INTEGER ) AS col2
----
-70

query I rowsort
SELECT ALL + 89 - 60
----
29

query II rowsort
SELECT DISTINCT - 31 * + 16 col0, 54
----
-496
54

query I rowsort
SELECT ALL + 9 - 28 AS col1
----
-19

query I rowsort
SELECT 90 + - ( - 29 ) AS col1
----
119

query I rowsort
SELECT 21 * - + 51 * 6 col1
----
-6426

onlyif mysql # DIV for integer division: 
query I rowsort label-3551
SELECT DISTINCT - + 6 DIV 87 * - 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT - + 6 / 87 * - 60 AS col0
----
0

query II rowsort
SELECT - 94 * + 84 AS col0, + 69
----
-7896
69

query I rowsort
SELECT 67 * - - 33 * - 62
----
-137082

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL - MIN( ALL 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL - MIN ( ALL 75 ) AS col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3555
SELECT NULLIF ( - + 88, - + CAST( 7 AS SIGNED ) ) + + + 47 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-3555
SELECT NULLIF ( - + 88, - + CAST ( 7 AS INTEGER ) ) + + + 47 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-3556
SELECT DISTINCT - + MIN( 0 ), + 99 AS col1
----
0
99

skipif mysql # not compatible
query II rowsort label-3556
SELECT DISTINCT - + MIN ( 0 ), + 99 AS col1
----
0
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3557
SELECT ALL 61 * - + ( NULLIF ( + 50, - CAST( NULL AS SIGNED ) ) ) AS col1
----
-3050

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL 61 * - + ( NULLIF ( + 50, - CAST ( NULL AS INTEGER ) ) ) AS col1
----
-3050

onlyif mysql # aggregate syntax: 
query II rowsort label-3558
SELECT DISTINCT + - 1 * - 44 * 43 * + 31 AS col2, - COUNT( DISTINCT + 47 )
----
58652
-1

skipif mysql # not compatible
query II rowsort label-3558
SELECT DISTINCT + - 1 * - 44 * 43 * + 31 AS col2, - COUNT ( DISTINCT + 47 )
----
58652
-1

query I rowsort
SELECT ALL - ( - 29 ) + + 27 col2
----
56

query I rowsort
SELECT - 9 * + 63 + - 48 * + + 38 AS col0
----
-2391

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3561
SELECT DISTINCT ( - 86 ) + SUM( DISTINCT - 33 ) DIV + + COALESCE ( - 72, - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT ( - 86 ) + SUM ( DISTINCT - 33 ) / + + COALESCE ( - 72, - 86 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT ALL COUNT( * ) + - 16
----
-15

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL COUNT ( * ) + - 16
----
-15

query I rowsort
SELECT ( 69 ) + - 16
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL COUNT( * ) + - 22 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL COUNT ( * ) + - 22 AS col0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-3565
SELECT 41 DIV + 18 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3565
SELECT 41 / + 18 AS col2
----
2

query I rowsort
SELECT ALL 79 + - 75 AS col2
----
4

query I rowsort
SELECT ( + 50 ) + 25
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3568
SELECT DISTINCT 64 col0, 53 + + COUNT( * )
----
64
54

skipif mysql # not compatible
query II rowsort label-3568
SELECT DISTINCT 64 col0, 53 + + COUNT ( * )
----
64
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT ALL 31 * 9 * - + COUNT( * )
----
-279

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL 31 * 9 * - + COUNT ( * )
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT DISTINCT ( + COUNT( * ) ) + + - 93 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT ( + COUNT ( * ) ) + + - 93 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT - MIN( + 74 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-3571
SELECT - MIN ( + 74 ) AS col1
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3572
SELECT 76 + - CAST( + 21 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-3572
SELECT 76 + - CAST ( + 21 AS INTEGER )
----
55

query I rowsort
SELECT 50 * + - 28
----
-1400

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3574
SELECT ALL + + CASE - COUNT( - 28 ) WHEN 58 THEN + 11 * ( + ( COALESCE ( 14, - - 3 ) ) ) + 68 + - + SUM( ALL + 46 ) + - 64 + + 66 WHEN + 25 THEN NULL WHEN - 38 / - CAST( NULL AS DECIMAL ) + + MIN( DISTINCT - - ( 51 ) ) THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL + + CASE - COUNT ( - 28 ) WHEN 58 THEN + 11 * ( + ( COALESCE ( 14, - - 3 ) ) ) + 68 + - + SUM ( ALL + 46 ) + - 64 + + 66 WHEN + 25 THEN NULL WHEN - 38 / - CAST ( NULL AS REAL ) + + MIN ( DISTINCT - - ( 51 ) ) THEN NULL ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3575
SELECT + COUNT( * ) AS col0, + 28
----
1
28

skipif mysql # not compatible
query II rowsort label-3575
SELECT + COUNT ( * ) AS col0, + 28
----
1
28

onlyif mysql # aggregate syntax: 
query II rowsort label-3576
SELECT ALL + COUNT( * ) * + - 41 + 81 AS col0, ( 57 ) AS col0
----
40
57

skipif mysql # not compatible
query II rowsort label-3576
SELECT ALL + COUNT ( * ) * + - 41 + 81 AS col0, ( 57 ) AS col0
----
40
57

query I rowsort
SELECT - 12 * 91
----
-1092

query I rowsort
SELECT + + 63 + + - 28 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT ALL - 77 * - COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL - 77 * - COUNT ( * ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT - + 66 * - COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-3580
SELECT - + 66 * - COUNT ( * ) AS col0
----
66

query I rowsort
SELECT + ( NULLIF ( - + 96, + 56 ) )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT DISTINCT + COALESCE ( - COUNT( * ), + + 73 + + - 76 + + - 62 - - ( + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT + COALESCE ( - COUNT ( * ), + + 73 + + - 76 + + - 62 - - ( + COUNT ( * ) ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3583
SELECT ALL - - 11 * + COUNT( * ) * + 81, 74 DIV + CAST( 32 AS SIGNED ) + - 31 * - CAST( + 13 AS SIGNED ) + + - 36 + + + 59 * - - 34 + + ( - 66 ) AS col0
----
891
2309

skipif mysql # not compatible
query II rowsort label-3583
SELECT ALL - - 11 * + COUNT ( * ) * + 81, 74 / + CAST ( 32 AS INTEGER ) + - 31 * - CAST ( + 13 AS INTEGER ) + + - 36 + + + 59 * - - 34 + + ( - 66 ) AS col0
----
891
2309

query I rowsort
SELECT - - 47 + 31
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3585
SELECT DISTINCT - CAST( - ( - + COUNT( NULLIF ( 77, - - 64 ) ) ) AS SIGNED ) * - 76 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT - CAST ( - ( - + COUNT ( NULLIF ( 77, - - 64 ) ) ) AS INTEGER ) * - 76 AS col0
----
76

query II rowsort
SELECT ALL - + 2 * 96 * 55 + 86 + - - 2 * - - 1, + 94 AS col2
----
-10472
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3587
SELECT + CAST( - NULLIF ( + 55, + 74 ) AS SIGNED ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-3587
SELECT + CAST ( - NULLIF ( + 55, + 74 ) AS INTEGER ) AS col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-3588
SELECT - 81 DIV + 36
----
-2

skipif mysql # not compatible
query I rowsort label-3588
SELECT - 81 / + 36
----
-2

query I rowsort
SELECT - 51 * + 55 AS col1
----
-2805

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT + COUNT( * ) * 83 * 84
----
6972

skipif mysql # not compatible
query I rowsort label-3590
SELECT + COUNT ( * ) * 83 * 84
----
6972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3591
SELECT ALL - CAST( NULL AS SIGNED ) + COALESCE ( - CAST( NULL AS SIGNED ), + + COUNT( * ) * - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL - CAST ( NULL AS INTEGER ) + COALESCE ( - CAST ( NULL AS INTEGER ), + + COUNT ( * ) * - 78 )
----
NULL

query I rowsort
SELECT DISTINCT ( - 21 ) AS col1
----
-21

query II rowsort
SELECT 71 col2, 2 * + 38
----
71
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3594
SELECT DISTINCT COALESCE ( + COUNT( * ), 2 DIV - 84, - 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3594
SELECT DISTINCT COALESCE ( + COUNT ( * ), 2 / - 84, - 93 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT - 56 + COUNT( * ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-3595
SELECT - 56 + COUNT ( * ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query III rowsort label-3596
SELECT DISTINCT ( + - 1 ), MAX( DISTINCT - 19 ) col1, + 51 col0
----
-1
-19
51

skipif mysql # not compatible
query III rowsort label-3596
SELECT DISTINCT ( + - 1 ), MAX ( DISTINCT - 19 ) col1, + 51 col0
----
-1
-19
51

query I rowsort
SELECT + 67 * - 63 AS col2
----
-4221

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3598
SELECT ALL 59 AS col0, COUNT( DISTINCT - - 27 ) DIV - 81 + - 92 * 15 * - ( + + MAX( ( + - 61 ) ) ) col0
----
59
-84180

skipif mysql # not compatible
query II rowsort label-3598
SELECT ALL 59 AS col0, COUNT ( DISTINCT - - 27 ) / - 81 + - 92 * 15 * - ( + + MAX ( ( + - 61 ) ) ) col0
----
59
-84180

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT - 38 + + MAX( + 57 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3599
SELECT - 38 + + MAX ( + 57 ) AS col2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3600
SELECT 71 AS col0, + CAST( NULL AS SIGNED )
----
71
NULL

skipif mysql # not compatible
query II rowsort label-3600
SELECT 71 AS col0, + CAST ( NULL AS INTEGER )
----
71
NULL

query I rowsort
SELECT ALL 49 - + + 59 * + 40
----
-2311

query I rowsort
SELECT - 14 + 15
----
1

query I rowsort
SELECT ALL 25 - 75
----
-50

query I rowsort
SELECT - 31 + 85 * 45
----
3794

query II rowsort
SELECT 52 AS col0, 77
----
52
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3606
SELECT 87 col2, - COUNT( * )
----
87
-1

skipif mysql # not compatible
query II rowsort label-3606
SELECT 87 col2, - COUNT ( * )
----
87
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT + COUNT( * ) + 90 col1
----
91

skipif mysql # not compatible
query I rowsort label-3607
SELECT + COUNT ( * ) + 90 col1
----
91

query I rowsort
SELECT - ( + 91 )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT ALL 78 DIV + + 45
----
1

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL 78 / + + 45
----
1

query I rowsort
SELECT + 84 + - - 25 * + + 24 AS col2
----
684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3611
SELECT DISTINCT 79, - CAST( + 42 AS SIGNED ) * + 66 + + COUNT( * ) AS col1
----
79
-2771

skipif mysql # not compatible
query II rowsort label-3611
SELECT DISTINCT 79, - CAST ( + 42 AS INTEGER ) * + 66 + + COUNT ( * ) AS col1
----
79
-2771

query I rowsort
SELECT + ( + + 7 ) + ( - ( 76 ) ) * 39 AS col2
----
-2957

onlyif mysql # DIV for integer division: 
query II rowsort label-3613
SELECT DISTINCT - 79 AS col0, + 9 DIV 46
----
-79
0

skipif mysql # not compatible
query II rowsort label-3613
SELECT DISTINCT - 79 AS col0, + 9 / 46
----
-79
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3614
SELECT ALL ( + - 56 ) DIV + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL ( + - 56 ) / + 96 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3615
SELECT + - ( + - ( 16 ) ) DIV COUNT( * ) + + ( + COALESCE ( + - 88, + + 33 DIV - + 62, + - 18 + - COALESCE ( + + 10, - 60 + - + COUNT( DISTINCT - 71 ), - - ( + CASE - - 38 WHEN + - 91 THEN - - 94 * - 44 + + 34 * 2 + 83 END ) * + 50 ) + + 68 ) ) + + 56 + + COALESCE ( + 38 + - NULLIF ( + 60, - 41 * + 36 - - COUNT( * ) ) * - ( - CAST( NULL AS SIGNED ) ), 91 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-3615
SELECT + - ( + - ( 16 ) ) / COUNT ( * ) + + ( + COALESCE ( + - 88, + + 33 / - + 62, + - 18 + - COALESCE ( + + 10, - 60 + - + COUNT ( DISTINCT - 71 ), - - ( + CASE - - 38 WHEN + - 91 THEN - - 94 * - 44 + + 34 * 2 + 83 END ) * + 50 ) + + 68 ) ) + + 56 + + COALESCE ( + 38 + - NULLIF ( + 60, - 41 * + 36 - - COUNT ( * ) ) * - ( - CAST ( NULL AS INTEGER ) ), 91 ) AS col0
----
75

query II rowsort
SELECT ALL + 71 AS col2, + ( + 38 ) AS col2
----
71
38

query II rowsort
SELECT + + 26 + 53 + - - ( 35 ), - 29 AS col2
----
114
-29

query II rowsort
SELECT ALL + 86, 37 AS col1
----
86
37

query II rowsort
SELECT + - 30, - 38 AS col2
----
-30
-38

query I rowsort
SELECT ALL + + NULLIF ( + 61, 89 ) * + 8 + + + 20
----
508

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT DISTINCT - - 26 * COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT - - 26 * COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT + + SUM( + + 68 ) + + + 43 + - 57 + + + 54 + - - 59 + + - 2 * + + SUM( 10 ) * 84 - - 39 - - 18 * + 9 * + + 8
----
-178

skipif mysql # not compatible
query I rowsort label-3622
SELECT + + SUM ( + + 68 ) + + + 43 + - 57 + + + 54 + - - 59 + + - 2 * + + SUM ( 10 ) * 84 - - 39 - - 18 * + 9 * + + 8
----
-178

query I rowsort
SELECT + ( - 17 ) * + - 76 + 39 * - + 65 + + 62 * 24 AS col2
----
245

query I rowsort
SELECT - 40 + + 87 AS col2
----
47

query II rowsort
SELECT + 20, 10 AS col0
----
20
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT + MIN( ALL + - ( 39 ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3626
SELECT + MIN ( ALL + - ( 39 ) ) AS col0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3627
SELECT + 82 AS col2, SUM( - ( - - ( CAST( NULL AS SIGNED ) ) ) ) + - 89
----
82
NULL

skipif mysql # not compatible
query II rowsort label-3627
SELECT + 82 AS col2, SUM ( - ( - - ( CAST ( NULL AS INTEGER ) ) ) ) + - 89
----
82
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3628
SELECT - 80 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT - 80 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3629
SELECT - 98 + - - 46, SUM( 71 ) AS col2
----
-52
71

skipif mysql # not compatible
query II rowsort label-3629
SELECT - 98 + - - 46, SUM ( 71 ) AS col2
----
-52
71

query I rowsort
SELECT DISTINCT - 32 * + - 30 AS col2
----
960

onlyif mysql # aggregate syntax: 
query II rowsort label-3631
SELECT ALL COUNT( * ) * - COUNT( * ) * + - 89 * - MIN( - + 31 ) + + 66 + - 39 - 74 * + + 60 + 8 * + 52 * - 6 - - COUNT( - 13 ) + COUNT( * ) AS col0, COUNT( * ) + - 22 AS col1
----
-4148
-21

skipif mysql # not compatible
query II rowsort label-3631
SELECT ALL COUNT ( * ) * - COUNT ( * ) * + - 89 * - MIN ( - + 31 ) + + 66 + - 39 - 74 * + + 60 + 8 * + 52 * - 6 - - COUNT ( - 13 ) + COUNT ( * ) AS col0, COUNT ( * ) + - 22 AS col1
----
-4148
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3632
SELECT - 50 * - - 95 * - + CASE - NULLIF ( + - 3, - 95 + - 17 ) WHEN - COALESCE ( - 47, + MAX( 39 ) / 4 ) + 43 + + - 97 / + 72 THEN - + CAST( NULL AS SIGNED ) * - + COUNT( * ) / 33 + - - 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3632
SELECT - 50 * - - 95 * - + CASE - NULLIF ( + - 3, - 95 + - 17 ) WHEN - COALESCE ( - 47, + MAX ( 39 ) / 4 ) + 43 + + - 97 / + 72 THEN - + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) / 33 + - - 76 END
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 28, - - 53 * - 44 ) * + - 24 AS col2
----
672

query I rowsort
SELECT - NULLIF ( 54, + 54 ) + - 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3635
SELECT - COUNT( * ) DIV 12 AS col1, 34 AS col2
----
0
34

skipif mysql # not compatible
query II rowsort label-3635
SELECT - COUNT ( * ) / 12 AS col1, 34 AS col2
----
0
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3636
SELECT DISTINCT + 70 DIV - 71 * 3
----
0

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT + 70 / - 71 * 3
----
0

query I rowsort
SELECT 92 + - 11 col2
----
81

query I rowsort
SELECT DISTINCT 37 * + - 31 AS col1
----
-1147

query II rowsort
SELECT ALL 96 - + 47, + 92 * + - 2 AS col0
----
49
-184

query I rowsort
SELECT 82 * - + 98
----
-8036

onlyif mysql # aggregate syntax: 
query II rowsort label-3641
SELECT DISTINCT - 98 * - - COUNT( * ) AS col2, ( 54 ) AS col1
----
-98
54

skipif mysql # not compatible
query II rowsort label-3641
SELECT DISTINCT - 98 * - - COUNT ( * ) AS col2, ( 54 ) AS col1
----
-98
54

query I rowsort
SELECT 65 * - 93
----
-6045

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3643
SELECT - NULLIF ( 48, - ( - - 51 ) * - 30 + - - 15 * - + 59 * - 69 + - 74 ) * - 43 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3643
SELECT - NULLIF ( 48, - ( - - 51 ) * - 30 + - - 15 * - + 59 * - 69 + - 74 ) * - 43 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT ( - - 89 ) + + - COALESCE ( MIN( - 42 ), - 48 + + 57, COUNT( 36 ) + NULLIF ( - 15, - - 27 + COALESCE ( - - 2, - 95 * - 39 * + 23 ) - 60 ) ) AS col2
----
131

skipif mysql # not compatible
query I rowsort label-3644
SELECT ( - - 89 ) + + - COALESCE ( MIN ( - 42 ), - 48 + + 57, COUNT ( 36 ) + NULLIF ( - 15, - - 27 + COALESCE ( - - 2, - 95 * - 39 * + 23 ) - 60 ) ) AS col2
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT - COALESCE ( ( - 7 ), + SUM( + 29 ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3645
SELECT - COALESCE ( ( - 7 ), + SUM ( + 29 ) ) AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3646
SELECT - CAST( - + CASE + CAST( NULL AS SIGNED ) WHEN ( + 39 ) THEN NULL ELSE - 59 + - 36 END AS SIGNED ) AS col2, + 71 * + + MAX( - - 59 ) * 84 * - CAST( NULL AS SIGNED ) + - 41 * - - 9
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-3646
SELECT - CAST ( - + CASE + CAST ( NULL AS INTEGER ) WHEN ( + 39 ) THEN NULL ELSE - 59 + - 36 END AS INTEGER ) AS col2, + 71 * + + MAX ( - - 59 ) * 84 * - CAST ( NULL AS INTEGER ) + - 41 * - - 9
----
-95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT ALL - MAX( + 53 ) + CASE 71 WHEN - ( - + COUNT( * ) ) THEN NULL WHEN - MIN( ALL + 31 ) THEN - 5 ELSE NULL END + 13 * 24 * + ( + 81 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL - MAX ( + 53 ) + CASE 71 WHEN - ( - + COUNT ( * ) ) THEN NULL WHEN - MIN ( ALL + 31 ) THEN - 5 ELSE NULL END + 13 * 24 * + ( + 81 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 86 + + 22 + 49 + - 46 * 16 * - 66
----
48733

onlyif mysql # DIV for integer division: 
query I rowsort label-3649
SELECT DISTINCT + 28 + - 2 + 13 + + 29 - + ( - 79 ) DIV - + ( - - ( + 68 ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT + 28 + - 2 + 13 + + 29 - + ( - 79 ) / - + ( - - ( + 68 ) ) AS col0
----
67

query I rowsort
SELECT - 54 + 29 + ( + 87 ) * + 38 + 8 AS col0
----
3289

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT + NULLIF ( CASE 46 WHEN - 60 + + COUNT( * ) THEN + - 95 + - 31 WHEN - 94 / - COUNT( * ) THEN NULL ELSE NULL END, - 98 * - - 95 ) * + NULLIF ( - 21, - 60 * COUNT( * ) - 59 + - 81 + NULLIF ( - 16, ( - 98 ) ) * 69 * 75 + + 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT + NULLIF ( CASE 46 WHEN - 60 + + COUNT ( * ) THEN + - 95 + - 31 WHEN - 94 / - COUNT ( * ) THEN NULL ELSE NULL END, - 98 * - - 95 ) * + NULLIF ( - 21, - 60 * COUNT ( * ) - 59 + - 81 + NULLIF ( - 16, ( - 98 ) ) * 69 * 75 + + 56 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3652
SELECT ALL + COUNT( * ) * 62 AS col1, 51 AS col2
----
62
51

skipif mysql # not compatible
query II rowsort label-3652
SELECT ALL + COUNT ( * ) * 62 AS col1, 51 AS col2
----
62
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT DISTINCT - - SUM( DISTINCT + - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT - - SUM ( DISTINCT + - 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL 16 * - COUNT( * ) * + MIN( ALL + 94 ) * 31 AS col0
----
-46624

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL 16 * - COUNT ( * ) * + MIN ( ALL + 94 ) * 31 AS col0
----
-46624

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT ALL 60 * + COUNT( 48 )
----
60

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL 60 * + COUNT ( 48 )
----
60

query I rowsort
SELECT 35 + 81 * 65
----
5300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3657
SELECT ALL 63 - - NULLIF ( - 69, - - ( - + 75 ) - - 67 ) + - + 37 + - 44 * 0 DIV + 3 * + MIN( DISTINCT + 25 )
----
-43

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL 63 - - NULLIF ( - 69, - - ( - + 75 ) - - 67 ) + - + 37 + - 44 * 0 / + 3 * + MIN ( DISTINCT + 25 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT ALL - NULLIF ( MIN( DISTINCT - 95 ), + 3 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL - NULLIF ( MIN ( DISTINCT - 95 ), + 3 ) AS col0
----
95

query II rowsort
SELECT + 48 AS col2, 73 * - + 10 + + 69
----
48
-661

query I rowsort
SELECT ALL + 83 * + COALESCE ( 88, + - 63 ) AS col0
----
7304

query I rowsort
SELECT ALL 49 * - - 81
----
3969

query I rowsort
SELECT 76 * - 38 AS col1
----
-2888

query I rowsort
SELECT ALL 66 * + + 71
----
4686

query II rowsort
SELECT DISTINCT 73 AS col0, - 60
----
73
-60

query II rowsort
SELECT ALL 25 AS col2, + 88 AS col0
----
25
88

query II rowsort
SELECT 25, - 17 col0
----
25
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3667
SELECT CAST( 7 AS SIGNED ) + - + SUM( DISTINCT + + 16 ) + 92 + ( + - 71 ) * + MAX( ALL - - ( - 56 ) )
----
4059

skipif mysql # not compatible
query I rowsort label-3667
SELECT CAST ( 7 AS INTEGER ) + - + SUM ( DISTINCT + + 16 ) + 92 + ( + - 71 ) * + MAX ( ALL - - ( - 56 ) )
----
4059

query I rowsort
SELECT 1 * - 2 * 76 AS col1
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3669
SELECT + ( + 94 ) + + 45 * CAST( - - 33 AS SIGNED )
----
1579

skipif mysql # not compatible
query I rowsort label-3669
SELECT + ( + 94 ) + + 45 * CAST ( - - 33 AS INTEGER )
----
1579

query I rowsort
SELECT 98 + - - 89
----
187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3671
SELECT - COUNT( * ) / - COUNT( * ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT - COUNT ( * ) / - COUNT ( * ) / + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 86 AS col2, + 79
----
86
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT 90 + - COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-3673
SELECT 90 + - COUNT ( * ) AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3674
SELECT ALL - CAST( - 75 AS SIGNED ) * ( + 97 )
----
7275

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL - CAST ( - 75 AS INTEGER ) * ( + 97 )
----
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT DISTINCT - + SUM( 59 ) + - 31 col2
----
-90

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT - + SUM ( 59 ) + - 31 col2
----
-90

query I rowsort
SELECT ALL - + 5 + - 88
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT - 86 + + - SUM( + 18 ) + + + 87 * + - 49
----
-4367

skipif mysql # not compatible
query I rowsort label-3677
SELECT - 86 + + - SUM ( + 18 ) + + + 87 * + - 49
----
-4367

query I rowsort
SELECT ALL + 54 + - + 75 col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT ALL + + 92 * - - CASE - 15 WHEN SUM( 44 ) * + 61 + + 4 THEN + + 26 WHEN 29 THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL + + 92 * - - CASE - 15 WHEN SUM ( 44 ) * + 61 + + 4 THEN + + 26 WHEN 29 THEN NULL ELSE NULL END col2
----
NULL

query I rowsort
SELECT 69 * 75 + 69 AS col2
----
5244

query I rowsort
SELECT DISTINCT + 5 * + 58 AS col2
----
290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3682
SELECT - 25 DIV - 65 * - MIN( - 9 ) + 78
----
78

skipif mysql # not compatible
query I rowsort label-3682
SELECT - 25 / - 65 * - MIN ( - 9 ) + 78
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3683
SELECT - CAST( - MAX( DISTINCT 60 ) AS SIGNED ) * + 72
----
4320

skipif mysql # not compatible
query I rowsort label-3683
SELECT - CAST ( - MAX ( DISTINCT 60 ) AS INTEGER ) * + 72
----
4320

query II rowsort
SELECT ALL - 80, - 54 AS col1
----
-80
-54

query I rowsort
SELECT ALL + 38 * - - 60 + + - 12
----
2268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3686
SELECT 39 + + COALESCE ( 29, + 52 * 95 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT 39 + + COALESCE ( 29, + 52 * 95 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3687
SELECT ALL - 22 / + CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL - 22 / + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT + 97 * + 14
----
1358

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3689
SELECT ALL - 59 AS col1, CAST( - - 22 AS SIGNED )
----
-59
22

skipif mysql # not compatible
query II rowsort label-3689
SELECT ALL - 59 AS col1, CAST ( - - 22 AS INTEGER )
----
-59
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT ALL - MAX( ALL 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL - MAX ( ALL 44 )
----
-44

query I rowsort
SELECT DISTINCT 4 * - - 53 * 91 AS col2
----
19292

query I rowsort
SELECT ALL 21 * + 90 * - 42
----
-79380

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT COUNT( * ) * ( - COUNT( * ) ) * 64 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-3693
SELECT COUNT ( * ) * ( - COUNT ( * ) ) * 64 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT COUNT( ALL - + 70 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3694
SELECT COUNT ( ALL - + 70 ) AS col2
----
1

query I rowsort
SELECT 60 * + 71 * + + 82 + - + 7 + + 47
----
349360

query II rowsort
SELECT DISTINCT 68 * + + 51 AS col0, 39 + 52 - 64 AS col0
----
3468
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3697
SELECT + 97 DIV - 10
----
-9

skipif mysql # not compatible
query I rowsort label-3697
SELECT + 97 / - 10
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT 15 * + + 99 + - + COUNT( * ) + + COUNT( ALL 45 ) * - 40 * 26
----
444

skipif mysql # not compatible
query I rowsort label-3698
SELECT 15 * + + 99 + - + COUNT ( * ) + + COUNT ( ALL 45 ) * - 40 * 26
----
444

query I rowsort
SELECT DISTINCT 32 * - 1 * + 28 AS col2
----
-896

query I rowsort
SELECT DISTINCT + 37 col1
----
37

query I rowsort
SELECT DISTINCT 8 * - 53 * - - 6 AS col0
----
-2544

onlyif mysql # aggregate syntax: 
query II rowsort label-3702
SELECT ALL 25 * - + 57 AS col1, 67 * + COUNT( ALL - 96 ) AS col1
----
-1425
67

skipif mysql # not compatible
query II rowsort label-3702
SELECT ALL 25 * - + 57 AS col1, 67 * + COUNT ( ALL - 96 ) AS col1
----
-1425
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT + ( - COUNT( * ) ) * - 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3703
SELECT + ( - COUNT ( * ) ) * - 49 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT + ( - COUNT( * ) ) + - 64 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-3704
SELECT + ( - COUNT ( * ) ) + - 64 AS col1
----
-65

query I rowsort
SELECT - 31 + - ( - + 59 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT + ( - COUNT( * ) ) * + 17 * + 7 + 14
----
-105

skipif mysql # not compatible
query I rowsort label-3706
SELECT + ( - COUNT ( * ) ) * + 17 * + 7 + 14
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3707
SELECT ALL - COUNT( * ) + - 31 + + CAST( NULL AS SIGNED ) * + + 10, COUNT( * ) * + + 91 AS col1
----
NULL
91

skipif mysql # not compatible
query II rowsort label-3707
SELECT ALL - COUNT ( * ) + - 31 + + CAST ( NULL AS INTEGER ) * + + 10, COUNT ( * ) * + + 91 AS col1
----
NULL
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3708
SELECT ALL COUNT( * ) DIV + + 50 * 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL COUNT ( * ) / + + 50 * 15 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT DISTINCT ( - COUNT( - 99 ) ) + - + 99 * + NULLIF ( + 33, 85 ) - MIN( ALL 95 ) AS col1
----
-3363

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT ( - COUNT ( - 99 ) ) + - + 99 * + NULLIF ( + 33, 85 ) - MIN ( ALL 95 ) AS col1
----
-3363

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT ALL + COUNT( * ) + - + 60 + - 36
----
-95

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL + COUNT ( * ) + - + 60 + - 36
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT DISTINCT 21 * 14 * 28 * - COUNT( DISTINCT - - 92 ) AS col2
----
-8232

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT 21 * 14 * 28 * - COUNT ( DISTINCT - - 92 ) AS col2
----
-8232

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT DISTINCT + ( + COUNT( * ) ) + 15 * + 73
----
1096

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT + ( + COUNT ( * ) ) + 15 * + 73
----
1096

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT DISTINCT COUNT( * ) + 1 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3713
SELECT DISTINCT COUNT ( * ) + 1 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3714
SELECT - CASE + + 48 WHEN - CAST( + - MIN( + + 10 ) AS DECIMAL ) THEN 85 ELSE - 55 END AS col0
----
55

skipif mysql # not compatible
query I rowsort label-3714
SELECT - CASE + + 48 WHEN - CAST ( + - MIN ( + + 10 ) AS REAL ) THEN 85 ELSE - 55 END AS col0
----
55

query II rowsort
SELECT ALL - 78 + + 91, 72 * - - 28 AS col0
----
13
2016

query I rowsort
SELECT - 79 * + 10 + + + 45
----
-745

query I rowsort
SELECT ALL ( - NULLIF ( 29, 47 ) )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3718
SELECT ALL - 17 - + - 11 DIV - COALESCE ( + COUNT( * ), - COUNT( * ) - + 8 DIV 47 )
----
-28

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL - 17 - + - 11 / - COALESCE ( + COUNT ( * ), - COUNT ( * ) - + 8 / 47 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT ALL - COUNT( 72 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL - COUNT ( 72 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3720
SELECT DISTINCT - 73 DIV - 68, 93 AS col2
----
1
93

skipif mysql # not compatible
query II rowsort label-3720
SELECT DISTINCT - 73 / - 68, 93 AS col2
----
1
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3721
SELECT DISTINCT + + 14 * + COUNT( * ), COUNT( * ) + + + 25 * - 34 AS col1
----
14
-849

skipif mysql # not compatible
query II rowsort label-3721
SELECT DISTINCT + + 14 * + COUNT ( * ), COUNT ( * ) + + + 25 * - 34 AS col1
----
14
-849

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + COUNT( DISTINCT + ( + 20 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3722
SELECT + COUNT ( DISTINCT + ( + 20 ) )
----
1

query II rowsort
SELECT - 95 * + 48 * + 86 * - + 60 AS col0, 44 * 7 AS col1
----
23529600
308

query I rowsort
SELECT DISTINCT 34 * + 63 AS col0
----
2142

query I rowsort
SELECT - 21 + - 93
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3726
SELECT + COUNT( * ) AS col0, ( - ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3726
SELECT + COUNT ( * ) AS col0, ( - ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
1
NULL

query I rowsort
SELECT - ( 73 ) * 34 + - - 65 AS col2
----
-2417

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT - COUNT( * ) * - - 76
----
-76

skipif mysql # not compatible
query I rowsort label-3728
SELECT - COUNT ( * ) * - - 76
----
-76

query I rowsort
SELECT + ( - 18 ) * 9 * - CASE 44 WHEN + 33 THEN - ( 77 ) WHEN + 31 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT + 44 col1, - 11 col2
----
44
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT DISTINCT + MAX( 39 ) col0
----
39

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT + MAX ( 39 ) col0
----
39

query II rowsort
SELECT DISTINCT + 2 AS col2, ( + 53 ) + - 70
----
2
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3733
SELECT ALL 6 * + 71 * 89 + - COUNT( * ) + - + 67 + - - CASE - - ( - CAST( NULL AS SIGNED ) ) WHEN - COUNT( * ) * 42 + - COALESCE ( + NULLIF ( 46, + 69 ), - CAST( NULL AS DECIMAL ) + - 91 + + + 36 ) * 56 / - + 55 * 37 THEN - CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL 6 * + 71 * 89 + - COUNT ( * ) + - + 67 + - - CASE - - ( - CAST ( NULL AS INTEGER ) ) WHEN - COUNT ( * ) * 42 + - COALESCE ( + NULLIF ( 46, + 69 ), - CAST ( NULL AS REAL ) + - 91 + + + 36 ) * 56 / - + 55 * 37 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3734
SELECT ALL ( - + ( + 51 ) ) * + 16 - + - 49 DIV + 53 + - + COUNT( * ) * - 91, + 67 + - 34 * - - 73 * - - 90 AS col0
----
-725
-223313

skipif mysql # not compatible
query II rowsort label-3734
SELECT ALL ( - + ( + 51 ) ) * + 16 - + - 49 / + 53 + - + COUNT ( * ) * - 91, + 67 + - 34 * - - 73 * - - 90 AS col0
----
-725
-223313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3735
SELECT DISTINCT + COALESCE ( 45, + 87, - + 24 * - COALESCE ( - CAST( 9 AS SIGNED ), MAX( 57 ) ) ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT + COALESCE ( 45, + 87, - + 24 * - COALESCE ( - CAST ( 9 AS INTEGER ), MAX ( 57 ) ) ) AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3736
SELECT ALL - 2 * + COUNT( ( 76 ) ) DIV COUNT( * ) + - 89 AS col2, - CAST( NULL AS SIGNED ) * - + 13
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-3736
SELECT ALL - 2 * + COUNT ( ( 76 ) ) / COUNT ( * ) + - 89 AS col2, - CAST ( NULL AS INTEGER ) * - + 13
----
-91
NULL

query I rowsort
SELECT + 55 * - - 98 AS col2
----
5390

onlyif mysql # DIV for integer division: 
query I rowsort label-3738
SELECT DISTINCT - 48 DIV + 28 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT - 48 / + 28 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT + SUM( - 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-3739
SELECT + SUM ( - 32 ) AS col1
----
-32

query I rowsort
SELECT + ( - - 95 )
----
95

query I rowsort
SELECT + 90 - - - CASE + 89 WHEN - + 33 THEN - 96 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3742
SELECT NULLIF ( + 9, + 97 ), CAST( NULL AS SIGNED ) AS col1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-3742
SELECT NULLIF ( + 9, + 97 ), CAST ( NULL AS INTEGER ) AS col1
----
9
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT + 7 DIV - 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3743
SELECT + 7 / - 44 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT ALL 62 * - 66 + + + COUNT( * ) AS col1
----
-4091

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL 62 * - 66 + + + COUNT ( * ) AS col1
----
-4091

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3745
SELECT + 19 - - ( + COALESCE ( + + 97, + 55 * 76 + - + 46 ) ) * + CAST( NULL AS SIGNED ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3745
SELECT + 19 - - ( + COALESCE ( + + 97, + 55 * 76 + - + 46 ) ) * + CAST ( NULL AS INTEGER ) - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT SUM( + - 15 ) col1
----
-15

skipif mysql # not compatible
query I rowsort label-3746
SELECT SUM ( + - 15 ) col1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3747
SELECT DISTINCT + COALESCE ( 15, + COALESCE ( + - 71, + 84 * 60 DIV - 79 ) * - 38 * COUNT( * ) + + COUNT( * ) ) * 68 col1
----
1020

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT + COALESCE ( 15, + COALESCE ( + - 71, + 84 * 60 / - 79 ) * - 38 * COUNT ( * ) + + COUNT ( * ) ) * 68 col1
----
1020

query I rowsort
SELECT ALL 80 + - + 19
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT + 50 - - SUM( DISTINCT + 84 ) AS col2
----
134

skipif mysql # not compatible
query I rowsort label-3749
SELECT + 50 - - SUM ( DISTINCT + 84 ) AS col2
----
134

query I rowsort
SELECT + 93 + - 60
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT ALL COUNT( + 17 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL COUNT ( + 17 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT + 7 + - - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-3752
SELECT + 7 + - - COUNT ( * )
----
8

query I rowsort
SELECT + 77 * 21
----
1617

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3754
SELECT + - 16 * + CAST( NULL AS SIGNED ) - - 40 * + - 52 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT + - 16 * + CAST ( NULL AS INTEGER ) - - 40 * + - 52 col0
----
NULL

query I rowsort
SELECT + + 41 + - - 9 - + 79 * + 83 AS col0
----
-6507

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3756
SELECT + 34 * + COUNT( * ) * NULLIF ( 25, 46 * + 90 * - 23 + CAST( + COUNT( * ) AS SIGNED ) )
----
850

skipif mysql # not compatible
query I rowsort label-3756
SELECT + 34 * + COUNT ( * ) * NULLIF ( 25, 46 * + 90 * - 23 + CAST ( + COUNT ( * ) AS INTEGER ) )
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT + - MIN( DISTINCT 98 ) + + ( 59 ) + - 47 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-3757
SELECT + - MIN ( DISTINCT 98 ) + + ( 59 ) + - 47 AS col0
----
-86

query I rowsort
SELECT - + 53 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT ALL COUNT( * ) * - 76
----
-76

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL COUNT ( * ) * - 76
----
-76

query I rowsort
SELECT - 93 + + 66
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3761
SELECT + COUNT( * ) * + - 55 DIV - - 75
----
0

skipif mysql # not compatible
query I rowsort label-3761
SELECT + COUNT ( * ) * + - 55 / - - 75
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3762
SELECT 97 * + COUNT( * ) + CAST( + 88 AS SIGNED ) * + 1
----
185

skipif mysql # not compatible
query I rowsort label-3762
SELECT 97 * + COUNT ( * ) + CAST ( + 88 AS INTEGER ) * + 1
----
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3763
SELECT + 15 DIV - ( - 16 ) * - - MIN( 87 )
----
0

skipif mysql # not compatible
query I rowsort label-3763
SELECT + 15 / - ( - 16 ) * - - MIN ( 87 )
----
0

query II rowsort
SELECT 76 * 0, 69 + 86 AS col2
----
0
155

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT ALL - COALESCE ( + COUNT( * ), - 98 * 57 * 9 * - 31 - - 6 - + 94 * - 95, 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL - COALESCE ( + COUNT ( * ), - 98 * 57 * 9 * - 31 - - 6 - + 94 * - 95, 38 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3766
SELECT 98 AS col1, COUNT( * ) * + 81 + + + 73 col0
----
98
154

skipif mysql # not compatible
query II rowsort label-3766
SELECT 98 AS col1, COUNT ( * ) * + 81 + + + 73 col0
----
98
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT COUNT( + - 86 ) * - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3767
SELECT COUNT ( + - 86 ) * - 0 AS col0
----
0

query I rowsort
SELECT ALL - 24 * - 97 AS col1
----
2328

onlyif mysql # DIV for integer division: 
query I rowsort label-3769
SELECT 66 DIV + - 5
----
-13

skipif mysql # not compatible
query I rowsort label-3769
SELECT 66 / + - 5
----
-13

query I rowsort
SELECT DISTINCT 91 + ( - 70 ) AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3771
SELECT 76 * - - 10 * CAST( 91 AS SIGNED ) col2
----
69160

skipif mysql # not compatible
query I rowsort label-3771
SELECT 76 * - - 10 * CAST ( 91 AS INTEGER ) col2
----
69160

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT DISTINCT - MIN( - + 12 ) + 48 * - NULLIF ( - + 42, - COUNT( * ) ) * 33 + 81 AS col0
----
66621

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - MIN ( - + 12 ) + 48 * - NULLIF ( - + 42, - COUNT ( * ) ) * 33 + 81 AS col0
----
66621

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT ALL - CASE - 84 WHEN NULLIF ( - COUNT( * ), - 40 * - - 75 * - + 42 / - 44 ) THEN 22 / 67 + - - SUM( 11 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL - CASE - 84 WHEN NULLIF ( - COUNT ( * ), - 40 * - - 75 * - + 42 / - 44 ) THEN 22 / 67 + - - SUM ( 11 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3774
SELECT + 53 AS col0, 22 * - CAST( NULL AS SIGNED ) + - - 82 / + 61 * + 76 AS col0
----
53
NULL

skipif mysql # not compatible
query II rowsort label-3774
SELECT + 53 AS col0, 22 * - CAST ( NULL AS INTEGER ) + - - 82 / + 61 * + 76 AS col0
----
53
NULL

query II rowsort
SELECT + 7 AS col0, - 8 AS col1
----
7
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT ALL - 62 * + 37 * + COALESCE ( + 70, 81 * - MAX( ALL 8 ) * + COUNT( + - 22 ) ) * - + 0
----
0

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL - 62 * + 37 * + COALESCE ( + 70, 81 * - MAX ( ALL 8 ) * + COUNT ( + - 22 ) ) * - + 0
----
0

query I rowsort
SELECT DISTINCT + 7 + + - 35 AS col0
----
-28

query I rowsort
SELECT DISTINCT - 53 + + 20
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-3779
SELECT ALL + 89 + + + ( + 18 ) DIV - 91
----
89

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL + 89 + + + ( + 18 ) / - 91
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT ALL - COUNT( * ) + - ( + COUNT( * ) ) * - - 2 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL - COUNT ( * ) + - ( + COUNT ( * ) ) * - - 2 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT DISTINCT + 8 + + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT + 8 + + COUNT ( * )
----
9

query II rowsort
SELECT 30 col1, + 53
----
30
53

query I rowsort
SELECT ALL - 35 + + 57
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3784
SELECT ALL 82, - 40 AS col0, - + 18 - - 69 + CAST( NULL AS SIGNED ) * + AVG ( - 0 ) / + 68 AS col1
----
82
-40
NULL

skipif mysql # not compatible
query III rowsort label-3784
SELECT ALL 82, - 40 AS col0, - + 18 - - 69 + CAST ( NULL AS INTEGER ) * + AVG ( - 0 ) / + 68 AS col1
----
82
-40
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3785
SELECT ALL - + 10 DIV + + 41 + - 35 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL - + 10 / + + 41 + - 35 AS col0
----
-35

query I rowsort
SELECT + 74 + - NULLIF ( - 83, 66 + - - 49 ) AS col2
----
157

onlyif mysql # aggregate syntax: 
query II rowsort label-3787
SELECT DISTINCT 95 AS col1, COUNT( * ) * - COUNT( * ) + - + 45 + + + 70 AS col1
----
95
24

skipif mysql # not compatible
query II rowsort label-3787
SELECT DISTINCT 95 AS col1, COUNT ( * ) * - COUNT ( * ) + - + 45 + + + 70 AS col1
----
95
24

query II rowsort
SELECT DISTINCT + 32 col0, + 77 col1
----
32
77

query II rowsort
SELECT - 1, 89 AS col1
----
-1
89

onlyif mysql # aggregate syntax: 
query III rowsort label-3790
SELECT ALL 23, - 38 + - 91 * 96 AS col0, - COALESCE ( ( - 96 ), - 18 + - - 16, COUNT( * ) + - COUNT( * ) ) AS col0
----
23
-8774
96

skipif mysql # not compatible
query III rowsort label-3790
SELECT ALL 23, - 38 + - 91 * 96 AS col0, - COALESCE ( ( - 96 ), - 18 + - - 16, COUNT ( * ) + - COUNT ( * ) ) AS col0
----
23
-8774
96

query I rowsort
SELECT + COALESCE ( + 46, + 39, - - 25 )
----
46

query I rowsort
SELECT 83 * + 70 + - 2 AS col1
----
5808

onlyif mysql # aggregate syntax: 
query II rowsort label-3793
SELECT ALL 62, COUNT( * ) * 23 AS col1
----
62
23

skipif mysql # not compatible
query II rowsort label-3793
SELECT ALL 62, COUNT ( * ) * 23 AS col1
----
62
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3794
SELECT + 16 * 15 * + - CAST( 46 AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT + 16 * 15 * + - CAST ( 46 AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT - COALESCE ( - COUNT( * ), - 24 * - COUNT( * ), + - 77 )
----
1

skipif mysql # not compatible
query I rowsort label-3795
SELECT - COALESCE ( - COUNT ( * ), - 24 * - COUNT ( * ), + - 77 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3796
SELECT ALL 46, ( + COUNT( * ) ) AS col0
----
46
1

skipif mysql # not compatible
query II rowsort label-3796
SELECT ALL 46, ( + COUNT ( * ) ) AS col0
----
46
1

query I rowsort
SELECT ( - 52 ) * - 14 AS col1
----
728

onlyif mysql # DIV for integer division: 
query I rowsort label-3798
SELECT ALL 3 * - 7 DIV - 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL 3 * - 7 / - 84 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3799
SELECT DISTINCT COUNT( * ) + 46 + - - COALESCE ( MAX( DISTINCT - 34 ), + - 22, - - NULLIF ( + + 43, + 81 + + NULLIF ( + - ( - - 22 ), 47 ) + - 25 DIV + COUNT( * ) ) + 18 * - + 53 * - COUNT( * ) ) DIV + 40 * 80 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT COUNT ( * ) + 46 + - - COALESCE ( MAX ( DISTINCT - 34 ), + - 22, - - NULLIF ( + + 43, + 81 + + NULLIF ( + - ( - - 22 ), 47 ) + - 25 / + COUNT ( * ) ) + 18 * - + 53 * - COUNT ( * ) ) / + 40 * 80 AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3800
SELECT ALL 38 + 47 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL 38 + 47 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT MIN( 37 ) * + ( - 77 ) * - 31
----
88319

skipif mysql # not compatible
query I rowsort label-3801
SELECT MIN ( 37 ) * + ( - 77 ) * - 31
----
88319

query I rowsort
SELECT ALL 50 + 43
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT DISTINCT - COUNT( * ) + - 29 * - + 95
----
2754

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT - COUNT ( * ) + - 29 * - + 95
----
2754

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL 2 + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL 2 + COUNT ( * )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3805
SELECT + 60 DIV + 82 * + - 66 * - - 56 - + 25 + + 67 * - - 58
----
3861

skipif mysql # not compatible
query I rowsort label-3805
SELECT + 60 / + 82 * + - 66 * - - 56 - + 25 + + 67 * - - 58
----
3861

query I rowsort
SELECT - 98 * - + 23 + + ( - 69 )
----
2185

query I rowsort
SELECT DISTINCT 37 + + - ( 65 ) + 25 * + 38 AS col0
----
922

onlyif mysql # DIV for integer division: 
query I rowsort label-3808
SELECT 14 DIV - ( + 46 )
----
0

skipif mysql # not compatible
query I rowsort label-3808
SELECT 14 / - ( + 46 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3809
SELECT ALL + COUNT( * ) + - 40 * + + COUNT( * ) * + - 93 * - NULLIF ( 90, + CASE - + 54 WHEN 66 THEN + - ( + 99 ) ELSE - + 48 * + COUNT( * ) / - + ( - COUNT( * ) ) + - ( - + 1 ) * + + 71 END + - 99 + - CAST( + + COUNT( * ) AS SIGNED ) * + + 16 ) * + ( + 78 ) + 18
----
-26114381

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL + COUNT ( * ) + - 40 * + + COUNT ( * ) * + - 93 * - NULLIF ( 90, + CASE - + 54 WHEN 66 THEN + - ( + 99 ) ELSE - + 48 * + COUNT ( * ) / - + ( - COUNT ( * ) ) + - ( - + 1 ) * + + 71 END + - 99 + - CAST ( + + COUNT ( * ) AS INTEGER ) * + + 16 ) * + ( + 78 ) + 18
----
-26114381

onlyif mysql # DIV for integer division: 
query I rowsort label-3810
SELECT ALL + CASE + + 3 WHEN - 83 * - 23 * - 9 THEN NULL ELSE - 47 END DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL + CASE + + 3 WHEN - 83 * - 23 * - 9 THEN NULL ELSE - 47 END / + 64
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3811
SELECT ( - 94 ) DIV 39 col1
----
-2

skipif mysql # not compatible
query I rowsort label-3811
SELECT ( - 94 ) / 39 col1
----
-2

query II rowsort
SELECT DISTINCT 1 + 24, 44 AS col0
----
25
44

query I rowsort
SELECT DISTINCT + 76 * + - 46 * + 64
----
-223744

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT 4 + COUNT( * ) + 27 * - - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-3814
SELECT 4 + COUNT ( * ) + 27 * - - COUNT ( * )
----
32

query I rowsort
SELECT 10 * 80 AS col0
----
800

query I rowsort
SELECT ALL - ( - - 93 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT ALL - 4 - CASE - + 67 WHEN + 39 THEN NULL WHEN - + 64 * - + ( - COUNT( * ) ) THEN + ( ( + 16 ) ) END + + COUNT( * ) * ( + 78 ) / COUNT( * ) * - 68 + - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL - 4 - CASE - + 67 WHEN + 39 THEN NULL WHEN - + 64 * - + ( - COUNT ( * ) ) THEN + ( ( + 16 ) ) END + + COUNT ( * ) * ( + 78 ) / COUNT ( * ) * - 68 + - 98 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3818
SELECT + CAST( + + AVG ( 36 ) AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-3818
SELECT + CAST ( + + AVG ( 36 ) AS INTEGER )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT SUM( - COALESCE ( 14, - 82 ) ) + 35 * + CASE - - ( ( - 32 ) ) WHEN - ( COUNT( - + 34 ) ) + + + 30 THEN CASE 34 WHEN 66 * ( - 41 ) + + - MIN( DISTINCT - 46 ) / + + COUNT( DISTINCT - 95 ) THEN NULL WHEN - 26 / 37 + 23 + - 82 THEN - 13 * COUNT( * ) ELSE 18 END * 85 WHEN + 35 + 13 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3819
SELECT SUM ( - COALESCE ( 14, - 82 ) ) + 35 * + CASE - - ( ( - 32 ) ) WHEN - ( COUNT ( - + 34 ) ) + + + 30 THEN CASE 34 WHEN 66 * ( - 41 ) + + - MIN ( DISTINCT - 46 ) / + + COUNT ( DISTINCT - 95 ) THEN NULL WHEN - 26 / 37 + 23 + - 82 THEN - 13 * COUNT ( * ) ELSE 18 END * 85 WHEN + 35 + 13 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3820
SELECT DISTINCT - 38 * - ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT - 38 * - ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT COUNT( * ) + + 93 + + 14
----
108

skipif mysql # not compatible
query I rowsort label-3821
SELECT COUNT ( * ) + + 93 + + 14
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-3822
SELECT ALL - + 83 * 50 * - - 26 * + ( COUNT( + 96 ) ) * ( - + 62 ) AS col1, - 27 AS col1
----
6689800
-27

skipif mysql # not compatible
query II rowsort label-3822
SELECT ALL - + 83 * 50 * - - 26 * + ( COUNT ( + 96 ) ) * ( - + 62 ) AS col1, - 27 AS col1
----
6689800
-27

query I rowsort
SELECT - 98 - + + 36 + 60 * - 43 AS col2
----
-2714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3824
SELECT DISTINCT COALESCE ( + 3, + CASE + + 87 WHEN - + CAST( - 60 AS SIGNED ) / - 44 + - - 4 - - 68 + - + 40 THEN 31 - 75 END ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT COALESCE ( + 3, + CASE + + 87 WHEN - + CAST ( - 60 AS INTEGER ) / - 44 + - - 4 - - 68 + - + 40 THEN 31 - 75 END ) AS col1
----
3

query I rowsort
SELECT DISTINCT - - ( - 31 ) * + 69 AS col2
----
-2139

query I rowsort
SELECT DISTINCT + NULLIF ( + - 44, - ( - 20 ) )
----
-44

query I rowsort
SELECT ALL ( 38 ) AS col2
----
38

query I rowsort
SELECT ALL COALESCE ( - + 55, + 50, 43 ) AS col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3829
SELECT 39 + 51 + MIN( DISTINCT 9 ) DIV 72 + + COUNT( * ) - - 94 * - COALESCE ( + 12, 31, - - 46 )
----
-1037

skipif mysql # not compatible
query I rowsort label-3829
SELECT 39 + 51 + MIN ( DISTINCT 9 ) / 72 + + COUNT ( * ) - - 94 * - COALESCE ( + 12, 31, - - 46 )
----
-1037

query I rowsort
SELECT + ( + 38 ) + - 51 + - 14
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT - MAX( ALL - - 65 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-3831
SELECT - MAX ( ALL - - 65 ) AS col1
----
-65

onlyif mysql # DIV for integer division: 
query III rowsort label-3832
SELECT - - 40 DIV 48 AS col0, 17 AS col0, 87 AS col0
----
0
17
87

skipif mysql # not compatible
query III rowsort label-3832
SELECT - - 40 / 48 AS col0, 17 AS col0, 87 AS col0
----
0
17
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL 72 + + COUNT( * ) - 79
----
-6

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL 72 + + COUNT ( * ) - 79
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3834
SELECT ALL - CAST( + - 39 AS SIGNED ) + - - ( - 21 )
----
18

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL - CAST ( + - 39 AS INTEGER ) + - - ( - 21 )
----
18

query I rowsort
SELECT + ( + 47 ) + - 44
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3836
SELECT ALL COUNT( DISTINCT + 27 ) + + SUM( DISTINCT 44 ), ( + 85 ) col2
----
45
85

skipif mysql # not compatible
query II rowsort label-3836
SELECT ALL COUNT ( DISTINCT + 27 ) + + SUM ( DISTINCT 44 ), ( + 85 ) col2
----
45
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT - SUM( DISTINCT + - 92 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-3837
SELECT - SUM ( DISTINCT + - 92 ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT DISTINCT CASE + 42 WHEN + SUM( + 35 ) * NULLIF ( - + COALESCE ( + MAX( DISTINCT - 87 ), 40, + - 5 + 16 ), + COUNT( + - 53 ) ) THEN 36 + - 3 / - ( + 88 ) / - - 8 * AVG ( ALL 83 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT CASE + 42 WHEN + SUM ( + 35 ) * NULLIF ( - + COALESCE ( + MAX ( DISTINCT - 87 ), 40, + - 5 + 16 ), + COUNT ( + - 53 ) ) THEN 36 + - 3 / - ( + 88 ) / - - 8 * AVG ( ALL 83 ) END AS col2
----
NULL

query I rowsort
SELECT ALL 32 + 49 AS col2
----
81

query I rowsort
SELECT ALL 3 + + - 82 AS col2
----
-79

query I rowsort
SELECT DISTINCT 62 + - + ( - 34 ) + 20
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT + SUM( 49 )
----
49

skipif mysql # not compatible
query I rowsort label-3842
SELECT + SUM ( 49 )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3843
SELECT 7 DIV 81 + + - 88
----
-88

skipif mysql # not compatible
query I rowsort label-3843
SELECT 7 / 81 + + - 88
----
-88

query I rowsort
SELECT + ( - 27 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3845
SELECT ALL + 56 AS col1, COALESCE ( 15, + + COUNT( * ) DIV + - 84 * - + 10 + - + CAST( NULL AS SIGNED ) ) AS col1
----
56
15

skipif mysql # not compatible
query II rowsort label-3845
SELECT ALL + 56 AS col1, COALESCE ( 15, + + COUNT ( * ) / + - 84 * - + 10 + - + CAST ( NULL AS INTEGER ) ) AS col1
----
56
15

onlyif mysql # aggregate syntax: 
query II rowsort label-3846
SELECT ALL COUNT( * ) * - MIN( DISTINCT + + 59 ) AS col2, - COUNT( + 11 ) + + 84 col1
----
-59
83

skipif mysql # not compatible
query II rowsort label-3846
SELECT ALL COUNT ( * ) * - MIN ( DISTINCT + + 59 ) AS col2, - COUNT ( + 11 ) + + 84 col1
----
-59
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT + ( + + SUM( ALL + - 32 ) ) * 78 AS col0
----
-2496

skipif mysql # not compatible
query I rowsort label-3847
SELECT + ( + + SUM ( ALL + - 32 ) ) * 78 AS col0
----
-2496

query II rowsort
SELECT + NULLIF ( + - 54, - NULLIF ( - - 76, 40 + + - 82 ) ) AS col1, 77
----
-54
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3849
SELECT DISTINCT AVG ( - 70 ) * - CAST( NULL AS SIGNED ) * - - 67 + 36 + + + 53 + - 37 + + 76 + MAX( ALL + COALESCE ( + + 77, + - ( - ( - CAST( NULL AS SIGNED ) ) ) / 25 * + 87 * - 64 ) ) * 32 - COALESCE ( - 15, - 63 * 11 ) * + 80 / - 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT AVG ( - 70 ) * - CAST ( NULL AS INTEGER ) * - - 67 + 36 + + + 53 + - 37 + + 76 + MAX ( ALL + COALESCE ( + + 77, + - ( - ( - CAST ( NULL AS INTEGER ) ) ) / 25 * + 87 * - 64 ) ) * 32 - COALESCE ( - 15, - 63 * 11 ) * + 80 / - 79 AS col2
----
NULL

query I rowsort
SELECT + 25 * 5
----
125

query II rowsort
SELECT + ( - 10 ) + - - 12 AS col2, 31 AS col0
----
2
31

query II rowsort
SELECT + 78 AS col0, - 6 AS col2
----
78
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT + 73 * - COUNT( * ) * 63 AS col1
----
-4599

skipif mysql # not compatible
query I rowsort label-3853
SELECT + 73 * - COUNT ( * ) * 63 AS col1
----
-4599

query I rowsort
SELECT - 43 * 54
----
-2322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3855
SELECT - 10 * 12 + - ( + 23 ) + + CAST( + + 25 AS SIGNED ) AS col0
----
-118

skipif mysql # not compatible
query I rowsort label-3855
SELECT - 10 * 12 + - ( + 23 ) + + CAST ( + + 25 AS INTEGER ) AS col0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT + SUM( 85 ) * - 14
----
-1190

skipif mysql # not compatible
query I rowsort label-3856
SELECT + SUM ( 85 ) * - 14
----
-1190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT + - CAST( - 23 AS SIGNED ) + + 76
----
99

skipif mysql # not compatible
query I rowsort label-3857
SELECT + - CAST ( - 23 AS INTEGER ) + + 76
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3858
SELECT + 29 AS col1, CASE - 21 WHEN + 75 + + - 29 THEN - 70 + - 94 + - CAST( NULL AS SIGNED ) * + 39 * - - NULLIF ( + - SUM( DISTINCT + 49 ), - 43 ) ELSE - NULLIF ( + 12, + 10 ) + 89 END
----
29
77

skipif mysql # not compatible
query II rowsort label-3858
SELECT + 29 AS col1, CASE - 21 WHEN + 75 + + - 29 THEN - 70 + - 94 + - CAST ( NULL AS INTEGER ) * + 39 * - - NULLIF ( + - SUM ( DISTINCT + 49 ), - 43 ) ELSE - NULLIF ( + 12, + 10 ) + 89 END
----
29
77

query II rowsort
SELECT ALL + - 70 AS col2, + 96 + - 58 + - 17 * 61 + 88
----
-70
-911

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT ALL + - COUNT( * ) * - + 39
----
39

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL + - COUNT ( * ) * - + 39
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3861
SELECT DISTINCT 88 DIV - 86
----
-1

skipif mysql # not compatible
query I rowsort label-3861
SELECT DISTINCT 88 / - 86
----
-1

query II rowsort
SELECT + 13 AS col2, COALESCE ( + 44, - 97 + + 72 - - 53 + + + 96 ) AS col2
----
13
44

query I rowsort
SELECT ALL + - 38 + - 81
----
-119

query II rowsort
SELECT - + 99, ( + 6 ) AS col1
----
-99
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT - SUM( ALL - 34 ) + - SUM( - 99 ) * - 63 - + COUNT( 50 )
----
-6204

skipif mysql # not compatible
query I rowsort label-3865
SELECT - SUM ( ALL - 34 ) + - SUM ( - 99 ) * - 63 - + COUNT ( 50 )
----
-6204

query I rowsort
SELECT - + 77 * + - 89
----
6853

query I rowsort
SELECT ALL + 72 + - CASE + 85 WHEN ( - 75 ) THEN + + 97 WHEN + 13 THEN + - ( - 87 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3868
SELECT DISTINCT + ( + 9 ) + 21 DIV 63 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT + ( + 9 ) + 21 / 63 AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT DISTINCT + 20 + - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT + 20 + - ( + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL ( + - 29 ), ( - + 32 ) AS col2
----
-29
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3871
SELECT - CAST( NULL AS SIGNED ) * + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3871
SELECT - CAST ( NULL AS INTEGER ) * + 77 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 94 * - - 78 AS col1
----
7332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3873
SELECT - CASE + - 58 WHEN + 37 * 69 + - 33 THEN NULL ELSE COUNT( * ) + + + COUNT( * ) DIV 19 * + 77 END - - 95
----
94

skipif mysql # not compatible
query I rowsort label-3873
SELECT - CASE + - 58 WHEN + 37 * 69 + - 33 THEN NULL ELSE COUNT ( * ) + + + COUNT ( * ) / 19 * + 77 END - - 95
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT ALL MAX( DISTINCT 98 ) * + 88
----
8624

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL MAX ( DISTINCT 98 ) * + 88
----
8624

query I rowsort
SELECT ALL 49 * - - 40 AS col2
----
1960

query I rowsort
SELECT - 55 - + 26 + 93 AS col1
----
12

query I rowsort
SELECT ALL - 3 - 82 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT DISTINCT ( - + MAX( + + 57 ) ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT ( - + MAX ( + + 57 ) ) AS col1
----
-57

query I rowsort
SELECT ALL + 31 * - 76
----
-2356

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT - ( MIN( DISTINCT 84 ) ) + + - COALESCE ( - 97, - 84 ) + 36
----
49

skipif mysql # not compatible
query I rowsort label-3880
SELECT - ( MIN ( DISTINCT 84 ) ) + + - COALESCE ( - 97, - 84 ) + 36
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3881
SELECT - 14 DIV - 41 - - 94
----
94

skipif mysql # not compatible
query I rowsort label-3881
SELECT - 14 / - 41 - - 94
----
94

query I rowsort
SELECT - 13 * - - 76
----
-988

query I rowsort
SELECT + ( + 43 )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3884
SELECT CAST( + 94 AS SIGNED ) col1
----
94

skipif mysql # not compatible
query I rowsort label-3884
SELECT CAST ( + 94 AS INTEGER ) col1
----
94

query I rowsort
SELECT ALL + 88 * - 95 - - - 40
----
-8400

query I rowsort
SELECT + - ( + - 27 )
----
27

query I rowsort
SELECT DISTINCT + - 59 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL + COUNT( * ) * 84 - - COUNT( * ) + + 28 * - 54 + - SUM( + 8 ) AS col2
----
-1435

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL + COUNT ( * ) * 84 - - COUNT ( * ) + + 28 * - 54 + - SUM ( + 8 ) AS col2
----
-1435

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT + COUNT( * ) * 63 * + ( 69 )
----
4347

skipif mysql # not compatible
query I rowsort label-3889
SELECT + COUNT ( * ) * 63 * + ( 69 )
----
4347

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3890
SELECT ALL - - CAST( - 16 AS SIGNED ) * - 15 + 3 AS col1
----
243

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL - - CAST ( - 16 AS INTEGER ) * - 15 + 3 AS col1
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT DISTINCT + + MAX( ALL + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT + + MAX ( ALL + 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT ALL ( 35 ) * + + SUM( DISTINCT + 74 ) + - COUNT( * ) * ( COALESCE ( 11, + 4 * 57 + + 73 ) ) AS col0
----
2579

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL ( 35 ) * + + SUM ( DISTINCT + 74 ) + - COUNT ( * ) * ( COALESCE ( 11, + 4 * 57 + + 73 ) ) AS col0
----
2579

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3893
SELECT COUNT( * ) DIV + NULLIF ( + - NULLIF ( + 13, - 18 + + - MAX( ALL - - 20 ) ), + - 49 + - + 84 + 66 DIV ( - ( ( 91 ) ) ) * - COALESCE ( - 78, - 33 * - - AVG ( - + 70 ) + 5 + - 27 DIV - - 18 ) + - 32 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3893
SELECT COUNT ( * ) / + NULLIF ( + - NULLIF ( + 13, - 18 + + - MAX ( ALL - - 20 ) ), + - 49 + - + 84 + 66 / ( - ( ( 91 ) ) ) * - COALESCE ( - 78, - 33 * - - AVG ( - + 70 ) + 5 + - 27 / - - 18 ) + - 32 ) col1
----
0

query I rowsort
SELECT + 43 * - 89 * 9 * + ( 10 ) AS col1
----
-344430

query I rowsort
SELECT ALL + 87 + 94 + 51
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT - + NULLIF ( 65, - COUNT( * ) * + + ( - 90 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-3896
SELECT - + NULLIF ( 65, - COUNT ( * ) * + + ( - 90 ) )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3897
SELECT ALL - 12 + 81 + + 89 DIV + MIN( DISTINCT 95 )
----
69

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL - 12 + 81 + + 89 / + MIN ( DISTINCT 95 )
----
69

query II rowsort
SELECT + 10 + 30, 30 + - - 42 col2
----
40
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3899
SELECT DISTINCT - 95 / - + CAST( NULL AS SIGNED ) * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT - 95 / - + CAST ( NULL AS INTEGER ) * + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT ALL - ( - 21 ) * MIN( DISTINCT - 35 )
----
-735

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL - ( - 21 ) * MIN ( DISTINCT - 35 )
----
-735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3901
SELECT - NULLIF ( CAST( - AVG ( DISTINCT 60 ) AS SIGNED ), + 19 - - 34 + + COALESCE ( - - 32, 38 + 37 + 13 * + COALESCE ( ( COUNT( * ) ), - - COUNT( * ) * 70 + 96 ) - - + 2 ) ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-3901
SELECT - NULLIF ( CAST ( - AVG ( DISTINCT 60 ) AS INTEGER ), + 19 - - 34 + + COALESCE ( - - 32, 38 + 37 + 13 * + COALESCE ( ( COUNT ( * ) ), - - COUNT ( * ) * 70 + 96 ) - - + 2 ) ) AS col2
----
60

query I rowsort
SELECT DISTINCT + 93 + + - 34 AS col2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3903
SELECT - 79 col0, - SUM( DISTINCT - ( 68 ) ) AS col1
----
-79
68

skipif mysql # not compatible
query II rowsort label-3903
SELECT - 79 col0, - SUM ( DISTINCT - ( 68 ) ) AS col1
----
-79
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3904
SELECT ( + - 31 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT ( + - 31 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 95 - 31
----
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3906
SELECT ALL 21 + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL 21 + + CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT ALL 35, 70 col2
----
35
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ALL + COUNT( * ) * - + 32
----
-32

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL + COUNT ( * ) * - + 32
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT ALL 85 * COUNT( * ) * SUM( 73 ) AS col0
----
6205

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL 85 * COUNT ( * ) * SUM ( 73 ) AS col0
----
6205

query II rowsort
SELECT ALL 47 AS col2, 59
----
47
59

query I rowsort
SELECT DISTINCT 20 * + 46 AS col2
----
920

onlyif mysql # aggregate syntax: 
query II rowsort label-3912
SELECT 4 + - - 44 + COUNT( ( + 33 ) ) AS col1, 23 AS col2
----
49
23

skipif mysql # not compatible
query II rowsort label-3912
SELECT 4 + - - 44 + COUNT ( ( + 33 ) ) AS col1, 23 AS col2
----
49
23

query I rowsort
SELECT 10 * - 50 AS col1
----
-500

query I rowsort
SELECT 14 + + + 90
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3915
SELECT ( - CAST( NULL AS SIGNED ) ) + + - ( 25 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT ( - CAST ( NULL AS INTEGER ) ) + + - ( 25 ) col1
----
NULL

query I rowsort
SELECT 29 + - NULLIF ( - 36, + 70 / + 60 + - 70 ) col0
----
65

query I rowsort
SELECT 36 * + 19 AS col1
----
684

query II rowsort
SELECT + 71, - 98 AS col0
----
71
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT 48 + + COUNT( * ) * - 64 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-3919
SELECT 48 + + COUNT ( * ) * - 64 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT ALL - COALESCE ( + 99, + 50 * - COUNT( * ), + 73 ) * + + 7 AS col2
----
-693

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL - COALESCE ( + 99, + 50 * - COUNT ( * ), + 73 ) * + + 7 AS col2
----
-693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3921
SELECT 19 + - CAST( - - 92 AS SIGNED )
----
-73

skipif mysql # not compatible
query I rowsort label-3921
SELECT 19 + - CAST ( - - 92 AS INTEGER )
----
-73

query II rowsort
SELECT DISTINCT - 1 * 9 - - - 50 AS col1, 63 + + 58
----
-59
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT ALL 8 * - 36 + - COUNT( * )
----
-289

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL 8 * - 36 + - COUNT ( * )
----
-289

query II rowsort
SELECT 21 col1, + 40
----
21
40

query I rowsort
SELECT ALL + - 47 + 44 + 47 * 70 * - 8 AS col0
----
-26323

onlyif mysql # aggregate syntax: 
query II rowsort label-3926
SELECT + 25, + 27 * + COUNT( * ) * 26 AS col2
----
25
702

skipif mysql # not compatible
query II rowsort label-3926
SELECT + 25, + 27 * + COUNT ( * ) * 26 AS col2
----
25
702

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3927
SELECT ALL - MIN( DISTINCT - 78 ) + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL - MIN ( DISTINCT - 78 ) + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3928
SELECT - MAX( + 60 ) * + - CAST( NULL AS DECIMAL ) - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3928
SELECT - MAX ( + 60 ) * + - CAST ( NULL AS REAL ) - + 99
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3929
SELECT + - COUNT( * ) DIV - - COUNT( * ) + + 84 + - 68
----
15

skipif mysql # not compatible
query I rowsort label-3929
SELECT + - COUNT ( * ) / - - COUNT ( * ) + + 84 + - 68
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT + + MIN( + 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-3930
SELECT + + MIN ( + 45 ) AS col1
----
45

query I rowsort
SELECT + - ( + 33 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3932
SELECT COALESCE ( 40, + - 68, - + 48 * NULLIF ( 50, - ( + COUNT( * ) ) + - CAST( NULL AS SIGNED ) ) + 74 ) * + + 13 + + ( COUNT( * ) ) + + 2 - - 96 - - 31 * + 2 AS col0
----
681

skipif mysql # not compatible
query I rowsort label-3932
SELECT COALESCE ( 40, + - 68, - + 48 * NULLIF ( 50, - ( + COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) ) + 74 ) * + + 13 + + ( COUNT ( * ) ) + + 2 - - 96 - - 31 * + 2 AS col0
----
681

query I rowsort
SELECT DISTINCT - 5 + 62 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT 14 + + - 96 + - COUNT( * ) * + - 98 * + - 82 * + - ( - 33 )
----
-265270

skipif mysql # not compatible
query I rowsort label-3934
SELECT 14 + + - 96 + - COUNT ( * ) * + - 98 * + - 82 * + - ( - 33 )
----
-265270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3935
SELECT - CAST( NULL AS SIGNED ) * + AVG ( 9 ) - + 61 * - MIN( + - 2 ) * + 50 * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT - CAST ( NULL AS INTEGER ) * + AVG ( 9 ) - + 61 * - MIN ( + - 2 ) * + 50 * - 98
----
NULL

query I rowsort
SELECT ALL 38 * + 43 AS col2
----
1634

query I rowsort
SELECT ALL - 55 + 27 AS col1
----
-28

query I rowsort
SELECT DISTINCT COALESCE ( + + 17, + 15 ) AS col1
----
17

query I rowsort
SELECT DISTINCT 39 * - + ( - + ( + 47 ) )
----
1833

query I rowsort
SELECT 79 * - - 49 AS col0
----
3871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3941
SELECT 85 DIV - COALESCE ( + + COUNT( * ), + + ( - - 12 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-3941
SELECT 85 / - COALESCE ( + + COUNT ( * ), + + ( - - 12 ) )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3942
SELECT ALL 85 * CAST( + COUNT( * ) AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL 85 * CAST ( + COUNT ( * ) AS INTEGER )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3943
SELECT DISTINCT 9 DIV + + NULLIF ( 37, + 56 + + 6 )
----
0

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT 9 / + + NULLIF ( 37, + 56 + + 6 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3944
SELECT ALL 93 AS col1, + 51 DIV 93
----
93
0

skipif mysql # not compatible
query II rowsort label-3944
SELECT ALL 93 AS col1, + 51 / 93
----
93
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3945
SELECT ALL - 49 DIV 40 * + 91 * + 68
----
-6188

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL - 49 / 40 * + 91 * + 68
----
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT COUNT( * ) * 59 * 66
----
3894

skipif mysql # not compatible
query I rowsort label-3946
SELECT COUNT ( * ) * 59 * 66
----
3894

query II rowsort
SELECT ALL 47, + 41 AS col1
----
47
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3948
SELECT NULLIF ( + CAST( NULL AS SIGNED ), + 20 * - 3 / + SUM( 53 ) ) / - - 19 * + - CAST( NULL AS SIGNED ) + + 82 - + - 19 * + AVG ( - 3 ) * + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3948
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), + 20 * - 3 / + SUM ( 53 ) ) / - - 19 * + - CAST ( NULL AS INTEGER ) + + 82 - + - 19 * + AVG ( - 3 ) * + + 51
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3949
SELECT ALL - 76 * + CAST( 80 AS SIGNED ) AS col2
----
-6080

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL - 76 * + CAST ( 80 AS INTEGER ) AS col2
----
-6080

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT COUNT( ( + 64 ) ) * 14 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3950
SELECT COUNT ( ( + 64 ) ) * 14 AS col2
----
14

query II rowsort
SELECT 77 AS col0, 69
----
77
69

onlyif mysql # aggregate syntax: 
query II rowsort label-3952
SELECT - COUNT( * ), + 99 AS col0
----
-1
99

skipif mysql # not compatible
query II rowsort label-3952
SELECT - COUNT ( * ), + 99 AS col0
----
-1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT ( - 18 ) - + 32 * COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-3953
SELECT ( - 18 ) - + 32 * COUNT ( * )
----
-50

query I rowsort
SELECT DISTINCT 30 * + - ( - 84 ) AS col0
----
2520

query I rowsort
SELECT 29 - 15
----
14

query I rowsort
SELECT 35 * - - 18
----
630

query I rowsort
SELECT DISTINCT + 84 * 42 + 10 - - - 74 * + 99
----
-3788

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3958
SELECT DISTINCT - 19 * 70 * - NULLIF ( + - 30, + CAST( - 54 AS SIGNED ) ) * - - NULLIF ( SUM( DISTINCT - CASE + ( 53 ) WHEN - 23 * - + CASE + 71 WHEN - + 83 THEN NULL ELSE - - 87 - - + 23 + - - 33 END THEN NULL ELSE + NULLIF ( - 12, 16 ) END ), + CASE + 40 WHEN + MIN( ALL - 18 ) THEN NULL WHEN + NULLIF ( CASE COUNT( * ) WHEN - 69 * + 11 + + 15 + 15 THEN NULL WHEN - 42 THEN + 30 ELSE 12 END, NULLIF ( - 43, 70 * - COUNT( * ) ) ) THEN - 10 * + 72 + - 70 END ) + + 35 AS col2
----
-478765

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT - 19 * 70 * - NULLIF ( + - 30, + CAST ( - 54 AS INTEGER ) ) * - - NULLIF ( SUM ( DISTINCT - CASE + ( 53 ) WHEN - 23 * - + CASE + 71 WHEN - + 83 THEN NULL ELSE - - 87 - - + 23 + - - 33 END THEN NULL ELSE + NULLIF ( - 12, 16 ) END ), + CASE + 40 WHEN + MIN ( ALL - 18 ) THEN NULL WHEN + NULLIF ( CASE COUNT ( * ) WHEN - 69 * + 11 + + 15 + 15 THEN NULL WHEN - 42 THEN + 30 ELSE 12 END, NULLIF ( - 43, 70 * - COUNT ( * ) ) ) THEN - 10 * + 72 + - 70 END ) + + 35 AS col2
----
-478765

onlyif mysql # DIV for integer division: 
query I rowsort label-3959
SELECT 22 DIV ( 22 ) + - 50
----
-49

skipif mysql # not compatible
query I rowsort label-3959
SELECT 22 / ( 22 ) + - 50
----
-49

query I rowsort
SELECT + NULLIF ( - 40, + 48 ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT ALL - MIN( COALESCE ( + + 77, + 67 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL - MIN ( COALESCE ( + + 77, + 67 ) )
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3962
SELECT + + 6 DIV COUNT( * ) col1, + 81 AS col0
----
6
81

skipif mysql # not compatible
query II rowsort label-3962
SELECT + + 6 / COUNT ( * ) col1, + 81 AS col0
----
6
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3963
SELECT + + 47 + - 79 * + 67 / - CAST( NULL AS DECIMAL ) * 36 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT + + 47 + - 79 * + 67 / - CAST ( NULL AS REAL ) * 36 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3964
SELECT + - 19 / 27 * - 59 * CAST( NULL AS SIGNED ) * 17 * - 75 * 62 - CASE - NULLIF ( - 46, - 66 + + 20 * + ( - 34 ) / 74 ) WHEN + 5 THEN - - 50 ELSE NULL END * - 64 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT + - 19 / 27 * - 59 * CAST ( NULL AS INTEGER ) * 17 * - 75 * 62 - CASE - NULLIF ( - 46, - 66 + + 20 * + ( - 34 ) / 74 ) WHEN + 5 THEN - - 50 ELSE NULL END * - 64 col0
----
NULL

query II rowsort
SELECT 92, - 65 AS col1
----
92
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT ALL 19 * + MAX( ALL 56 ) - CASE 80 WHEN COUNT( * ) THEN - 55 END + + - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL 19 * + MAX ( ALL 56 ) - CASE 80 WHEN COUNT ( * ) THEN - 55 END + + - 80 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3967
SELECT ( CAST( - - 75 AS SIGNED ) ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-3967
SELECT ( CAST ( - - 75 AS INTEGER ) ) AS col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3968
SELECT - MAX( + + 13 ) DIV - - ( + + 21 )
----
0

skipif mysql # not compatible
query I rowsort label-3968
SELECT - MAX ( + + 13 ) / - - ( + + 21 )
----
0

query I rowsort
SELECT ALL + - 39 AS col2
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-3970
SELECT DISTINCT + 17 DIV + 48 col1
----
0

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT + 17 / + 48 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3971
SELECT - CASE - 73 WHEN 13 THEN + - 80 ELSE NULL END + COALESCE ( 43, CASE AVG ( - - NULLIF ( + 18, 46 + CAST( NULL AS SIGNED ) ) ) WHEN 49 - 17 + 37 + 98 THEN NULL ELSE 73 END - MIN( ALL + - 58 ) / - - 50 + - 83 / - 70 ) + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3971
SELECT - CASE - 73 WHEN 13 THEN + - 80 ELSE NULL END + COALESCE ( 43, CASE AVG ( - - NULLIF ( + 18, 46 + CAST ( NULL AS INTEGER ) ) ) WHEN 49 - 17 + 37 + 98 THEN NULL ELSE 73 END - MIN ( ALL + - 58 ) / - - 50 + - 83 / - 70 ) + + 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL + + COALESCE ( 7, + MAX( ALL - - 21 ), 76 + + 21 + - 46 + + 29 + + 68 - 63 * + 23 * - + 89 ) * - NULLIF ( 53, - MIN( ALL - + 35 ) * + - 48 )
----
-371

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL + + COALESCE ( 7, + MAX ( ALL - - 21 ), 76 + + 21 + - 46 + + 29 + + 68 - 63 * + 23 * - + 89 ) * - NULLIF ( 53, - MIN ( ALL - + 35 ) * + - 48 )
----
-371

onlyif mysql # aggregate syntax: 
query II rowsort label-3973
SELECT ALL + 18 * - - 70 - 60 + - - NULLIF ( - 98, 16 + + ( + - COALESCE ( - 84, - - ( 92 ), + + 90 ) ) + - COUNT( * ) * - 35 ) * + + 63 - 19 AS col0, + ( + + 41 ) AS col1
----
-4993
41

skipif mysql # not compatible
query II rowsort label-3973
SELECT ALL + 18 * - - 70 - 60 + - - NULLIF ( - 98, 16 + + ( + - COALESCE ( - 84, - - ( 92 ), + + 90 ) ) + - COUNT ( * ) * - 35 ) * + + 63 - 19 AS col0, + ( + + 41 ) AS col1
----
-4993
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT ALL + CASE - - 67 WHEN - 47 THEN - + MIN( DISTINCT + 47 ) - 48 + 67 * 11 ELSE - 96 END AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL + CASE - - 67 WHEN - 47 THEN - + MIN ( DISTINCT + 47 ) - 48 + 67 * 11 ELSE - 96 END AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT - + 99 * 15 * - NULLIF ( 12, - 54 * 90 + - - CASE - - 42 WHEN + - COUNT( * ) - 51 * - - 38 THEN NULL ELSE - - MAX( 57 ) END * + - 90 ) AS col0
----
17820

skipif mysql # not compatible
query I rowsort label-3975
SELECT - + 99 * 15 * - NULLIF ( 12, - 54 * 90 + - - CASE - - 42 WHEN + - COUNT ( * ) - 51 * - - 38 THEN NULL ELSE - - MAX ( 57 ) END * + - 90 ) AS col0
----
17820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3976
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + - 34 + + 9 + - 83 + - COUNT( * ) * 68 - MAX( DISTINCT + - 56 ) / 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + - 34 + + 9 + - 83 + - COUNT ( * ) * 68 - MAX ( DISTINCT + - 56 ) / 57 AS col1
----
NULL

query I rowsort
SELECT ALL + + ( + - 41 ) AS col1
----
-41

query I rowsort
SELECT 65 * + 70 - 40 + - 59 + + 24
----
4475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3979
SELECT + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3980
SELECT SUM( + - 76 ), + COUNT( * ) col2
----
-76
1

skipif mysql # not compatible
query II rowsort label-3980
SELECT SUM ( + - 76 ), + COUNT ( * ) col2
----
-76
1

query I rowsort
SELECT - ( + - 13 ) - - + 92
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-3982
SELECT - COUNT( * ) * - + 51 AS col1, 5 * - 68
----
51
-340

skipif mysql # not compatible
query II rowsort label-3982
SELECT - COUNT ( * ) * - + 51 AS col1, 5 * - 68
----
51
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL NULLIF ( + + COUNT( + 40 ), - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL NULLIF ( + + COUNT ( + 40 ), - COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3984
SELECT ALL 68 * + 92 * - CAST( NULL AS SIGNED ) / + CAST( - - 59 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL 68 * + 92 * - CAST ( NULL AS INTEGER ) / + CAST ( - - 59 AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT + 8 * ( - ( COUNT( * ) ) ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-3985
SELECT + 8 * ( - ( COUNT ( * ) ) ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT - COUNT( * ) + - + ( 74 ) + + 65 * 61 + NULLIF ( - 98, + COUNT( * ) + - + COUNT( + 96 ) ) * - - 45 * - 92 + 34 AS col2
----
409644

skipif mysql # not compatible
query I rowsort label-3986
SELECT - COUNT ( * ) + - + ( 74 ) + + 65 * 61 + NULLIF ( - 98, + COUNT ( * ) + - + COUNT ( + 96 ) ) * - - 45 * - 92 + 34 AS col2
----
409644

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT + 26 - COALESCE ( - + 46, + NULLIF ( - COUNT( * ), - 69 + + - 51 ) * + 48 )
----
72

skipif mysql # not compatible
query I rowsort label-3987
SELECT + 26 - COALESCE ( - + 46, + NULLIF ( - COUNT ( * ), - 69 + + - 51 ) * + 48 )
----
72

query I rowsort
SELECT ALL 32 * - - 32 AS col1
----
1024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3989
SELECT - 96 + + - COUNT( * ) + + + 37 DIV - - COUNT( * ) col1
----
-60

skipif mysql # not compatible
query I rowsort label-3989
SELECT - 96 + + - COUNT ( * ) + + + 37 / - - COUNT ( * ) col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT + 2 - - CASE COUNT( DISTINCT + 26 ) WHEN - 54 THEN + NULLIF ( - 25, - 88 ) - - 93 END - - 9 + + COUNT( * ) / + + 79 * 18 * + + 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3990
SELECT + 2 - - CASE COUNT ( DISTINCT + 26 ) WHEN - 54 THEN + NULLIF ( - 25, - 88 ) - - 93 END - - 9 + + COUNT ( * ) / + + 79 * 18 * + + 44 AS col1
----
NULL

query I rowsort
SELECT - 72 * - 84
----
6048

query I rowsort
SELECT - ( - + 68 ) AS col1
----
68

query II rowsort
SELECT + 66 + + 56 AS col2, 23
----
122
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT ALL COUNT( * ) * - 59
----
-59

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL COUNT ( * ) * - 59
----
-59

query I rowsort
SELECT DISTINCT 89 + 38 AS col2
----
127

query I rowsort
SELECT + + 51 * 83 AS col1
----
4233

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3997
SELECT ALL COUNT( * ) DIV - NULLIF ( + - ( 83 ), 2 * + + 97 - + - COUNT( * ) + 12 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL COUNT ( * ) / - NULLIF ( + - ( 83 ), 2 * + + 97 - + - COUNT ( * ) + 12 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT + 13 + - COUNT( * ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3998
SELECT + 13 + - COUNT ( * ) AS col1
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3999
SELECT ALL ( 63 ) DIV - + 16 + 50 * - 3 + + COALESCE ( - 61, - 67 ) - - + SUM( DISTINCT - 93 ) - + COUNT( * ) AS col2
----
-308

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL ( 63 ) / - + 16 + 50 * - 3 + + COALESCE ( - 61, - 67 ) - - + SUM ( DISTINCT - 93 ) - + COUNT ( * ) AS col2
----
-308

query I rowsort
SELECT + 53 * + 85
----
4505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4001
SELECT CAST( NULL AS SIGNED ) * + 85 + + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4001
SELECT CAST ( NULL AS INTEGER ) * + 85 + + 32 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4002
SELECT DISTINCT - 42 DIV + - CAST( 9 AS SIGNED ) - 33 col2
----
-29

skipif mysql # not compatible
query I rowsort label-4002
SELECT DISTINCT - 42 / + - CAST ( 9 AS INTEGER ) - 33 col2
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4003
SELECT 75 * 93 DIV COUNT( * ) - + + 97 AS col1
----
6878

skipif mysql # not compatible
query I rowsort label-4003
SELECT 75 * 93 / COUNT ( * ) - + + 97 AS col1
----
6878

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4004
SELECT - + 95 DIV - 26 AS col1, COUNT( + 34 ) + - 32 AS col1, 14 * + 41 AS col0
----
3
-31
574

skipif mysql # not compatible
query III rowsort label-4004
SELECT - + 95 / - 26 AS col1, COUNT ( + 34 ) + - 32 AS col1, 14 * + 41 AS col0
----
3
-31
574

query I rowsort
SELECT + 56 * - - 84
----
4704

query I rowsort
SELECT - 26 + + - 75
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-4007
SELECT ALL + 73 DIV + 42
----
1

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL + 73 / + 42
----
1

query I rowsort
SELECT ALL 50 * + 28 - 68
----
1332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4009
SELECT CAST( + COUNT( * ) AS SIGNED ) * - + 2 + + 76 - 22 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-4009
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * - + 2 + + 76 - 22 AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4010
SELECT - 83 DIV CAST( - 74 AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4010
SELECT - 83 / CAST ( - 74 AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL + COUNT( * ) * - + 93
----
-93

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL + COUNT ( * ) * - + 93
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4012
SELECT - CAST( ( 87 ) AS SIGNED ) + - 46 * ( + - CAST( - COUNT( * ) AS SIGNED ) ) * + COALESCE ( + 69, + 11 ) * + + NULLIF ( SUM( - ( ( - + 26 ) ) ), + 62 )
----
-82611

skipif mysql # not compatible
query I rowsort label-4012
SELECT - CAST ( ( 87 ) AS INTEGER ) + - 46 * ( + - CAST ( - COUNT ( * ) AS INTEGER ) ) * + COALESCE ( + 69, + 11 ) * + + NULLIF ( SUM ( - ( ( - + 26 ) ) ), + 62 )
----
-82611

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4013
SELECT DISTINCT + CAST( + ( + - CAST( - + 24 AS DECIMAL ) ) AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT + CAST ( + ( + - CAST ( - + 24 AS REAL ) ) AS INTEGER )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT DISTINCT + MIN( + - 89 ) * + 96 - + - 54
----
-8490

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT + MIN ( + - 89 ) * + 96 - + - 54
----
-8490

query II rowsort
SELECT DISTINCT + 46 AS col1, 82
----
46
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4016
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT - 17 * + 0 + 19 + 61 AS col0
----
80

query I rowsort
SELECT - 85 * + 24 AS col1
----
-2040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4019
SELECT ALL - CASE + 78 WHEN NULLIF ( - SUM( + 79 ), - - COUNT( * ) * + 31 + - + 88 + - 43 + NULLIF ( - - 28, ( 34 ) + + COUNT( * ) ) + - 67 * 63 ) THEN - COALESCE ( ( - - CAST( 45 AS SIGNED ) ), + ( - - 19 ) ) ELSE NULL END * - ( - + CAST( - 53 AS SIGNED ) ) - + COUNT( * ) * + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL - CASE + 78 WHEN NULLIF ( - SUM ( + 79 ), - - COUNT ( * ) * + 31 + - + 88 + - 43 + NULLIF ( - - 28, ( 34 ) + + COUNT ( * ) ) + - 67 * 63 ) THEN - COALESCE ( ( - - CAST ( 45 AS INTEGER ) ), + ( - - 19 ) ) ELSE NULL END * - ( - + CAST ( - 53 AS INTEGER ) ) - + COUNT ( * ) * + 82 AS col1
----
NULL

query I rowsort
SELECT - 2 + 78 AS col0
----
76

query II rowsort
SELECT - 99, - 5 AS col0
----
-99
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT + MIN( 42 ) + 47 + - ( + 40 ) * + + 20 * - 14 * - 13 + - 75
----
-145586

skipif mysql # not compatible
query I rowsort label-4022
SELECT + MIN ( 42 ) + 47 + - ( + 40 ) * + + 20 * - 14 * - 13 + - 75
----
-145586

query I rowsort
SELECT ALL + 97 * - 29 * - 68 + + - 86 AS col1
----
191198

query II rowsort
SELECT - 1, - 19 + 63 AS col1
----
-1
44

query I rowsort
SELECT + 55 * - - 48 AS col2
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT - MAX( ALL - 80 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4026
SELECT - MAX ( ALL - 80 ) AS col0
----
80

query II rowsort
SELECT ALL 58 AS col2, + 67
----
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL 37 + - - SUM( DISTINCT 93 ) + - COUNT( * ) * + 68 + COALESCE ( - 6, + - 65 * + - COUNT( * ) ) * + 9
----
8

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL 37 + - - SUM ( DISTINCT 93 ) + - COUNT ( * ) * + 68 + COALESCE ( - 6, + - 65 * + - COUNT ( * ) ) * + 9
----
8

query I rowsort
SELECT - 19 * + + 79 col2
----
-1501

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4030
SELECT ALL 30 + + 47 + CAST( NULL AS SIGNED ) + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL 30 + + 47 + CAST ( NULL AS INTEGER ) + + 48
----
NULL

query II rowsort
SELECT - NULLIF ( + 58, + 35 ) AS col0, 71
----
-58
71

query I rowsort
SELECT 19 - + 24
----
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4033
SELECT ALL + CAST( NULL AS DECIMAL ) * + NULLIF ( + MIN( + + 98 ), + + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL + CAST ( NULL AS REAL ) * + NULLIF ( + MIN ( + + 98 ), + + 78 )
----
NULL

query I rowsort
SELECT - 71 * 89 * - 98 * - 99 AS col1
----
-61306938

onlyif mysql # DIV for integer division: 
query I rowsort label-4035
SELECT 40 + + 86 DIV 61
----
41

skipif mysql # not compatible
query I rowsort label-4035
SELECT 40 + + 86 / 61
----
41

query I rowsort
SELECT + 38 - + - 42 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT ALL + SUM( - + 47 ) col2
----
-47

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL + SUM ( - + 47 ) col2
----
-47

query I rowsort
SELECT ALL - + 85 - 5 AS col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4039
SELECT - 16 col0, - 85 * CAST( - COUNT( * ) AS SIGNED ) + - - 77 col0
----
-16
162

skipif mysql # not compatible
query II rowsort label-4039
SELECT - 16 col0, - 85 * CAST ( - COUNT ( * ) AS INTEGER ) + - - 77 col0
----
-16
162

query I rowsort
SELECT 12 * + 56 - + 13 + NULLIF ( ( + 80 ), - - 66 )
----
739

query I rowsort
SELECT - 18 + 8
----
-10

query I rowsort
SELECT - 87 * + 18
----
-1566

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4043
SELECT MIN( - + 0 ) * + 87 * - COUNT( * ) DIV + - NULLIF ( + 72, COUNT( * ) - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4043
SELECT MIN ( - + 0 ) * + 87 * - COUNT ( * ) / + - NULLIF ( + 72, COUNT ( * ) - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT + COUNT( * ) * - 51 * 48 AS col1
----
-2448

skipif mysql # not compatible
query I rowsort label-4044
SELECT + COUNT ( * ) * - 51 * 48 AS col1
----
-2448

query I rowsort
SELECT 50 - 83 AS col0
----
-33

query I rowsort
SELECT ALL 84 * 57
----
4788

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT + 54 * MAX( ALL 27 )
----
1458

skipif mysql # not compatible
query I rowsort label-4047
SELECT + 54 * MAX ( ALL 27 )
----
1458

query I rowsort
SELECT 81 * + 6
----
486

query I rowsort
SELECT DISTINCT - - COALESCE ( - - 85, - - 45 * - - 56 + 13, + 78 * + 86 ) AS col2
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4050
SELECT + COALESCE ( 52, - COUNT( * ) ) DIV - 84 + - 49
----
-49

skipif mysql # not compatible
query I rowsort label-4050
SELECT + COALESCE ( 52, - COUNT ( * ) ) / - 84 + - 49
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4051
SELECT ALL - 58, + ( + - ( COUNT( * ) ) ) DIV - 41 AS col0
----
-58
0

skipif mysql # not compatible
query II rowsort label-4051
SELECT ALL - 58, + ( + - ( COUNT ( * ) ) ) / - 41 AS col0
----
-58
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4052
SELECT CAST( NULL AS SIGNED ) * + 6 * - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4052
SELECT CAST ( NULL AS INTEGER ) * + 6 * - 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT DISTINCT SUM( ALL - 71 ) * - 52 * - 89
----
-328588

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT SUM ( ALL - 71 ) * - 52 * - 89
----
-328588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4054
SELECT + 38 * - - 77 + CASE - 74 WHEN + CASE MAX( DISTINCT - 2 ) WHEN - CASE - - MAX( ALL - + ( 12 ) ) WHEN + 20 + 8 THEN + - 11 * - 94 WHEN - CAST( NULL AS SIGNED ) + 79 * 35 / 17 THEN - - 0 + - 55 + - - 30 ELSE - 5 + - + CAST( - 10 AS DECIMAL ) * - COUNT( * ) + - + 89 END THEN + - 95 * 43 / - 24 ELSE NULL END * - ( 45 ) + 53 THEN - 58 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4054
SELECT + 38 * - - 77 + CASE - 74 WHEN + CASE MAX ( DISTINCT - 2 ) WHEN - CASE - - MAX ( ALL - + ( 12 ) ) WHEN + 20 + 8 THEN + - 11 * - 94 WHEN - CAST ( NULL AS INTEGER ) + 79 * 35 / 17 THEN - - 0 + - 55 + - - 30 ELSE - 5 + - + CAST ( - 10 AS REAL ) * - COUNT ( * ) + - + 89 END THEN + - 95 * 43 / - 24 ELSE NULL END * - ( 45 ) + 53 THEN - 58 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4055
SELECT 30 * COUNT( * ) DIV + - 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4055
SELECT 30 * COUNT ( * ) / + - 62 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT ALL + COUNT( DISTINCT + 13 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL + COUNT ( DISTINCT + 13 ) + + COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4057
SELECT DISTINCT 7 DIV - 66 * + CAST( 4 AS SIGNED ) AS col0, + 75 AS col1
----
0
75

skipif mysql # not compatible
query II rowsort label-4057
SELECT DISTINCT 7 / - 66 * + CAST ( 4 AS INTEGER ) AS col0, + 75 AS col1
----
0
75

query I rowsort
SELECT 39 + 54 AS col1
----
93

query I rowsort
SELECT ALL - 82 + COALESCE ( - 37, 94, - + 87 ) + + 35 + + - 83
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT 45 * ( - - 1 ) * - MIN( ALL - 61 ) col1
----
2745

skipif mysql # not compatible
query I rowsort label-4060
SELECT 45 * ( - - 1 ) * - MIN ( ALL - 61 ) col1
----
2745

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4061
SELECT DISTINCT - COUNT( * ) * - ( - ( + + 19 ) ) DIV 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT - COUNT ( * ) * - ( - ( + + 19 ) ) / 22 AS col1
----
0

query I rowsort
SELECT ALL + 55 * 26 AS col1
----
1430

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4063
SELECT ( + - 65 ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT ( + - 65 ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT 55 - ( - COUNT( * ) ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4064
SELECT 55 - ( - COUNT ( * ) ) AS col1
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4065
SELECT 35 * COUNT( ALL 30 ) * - 29 - - + COUNT( * ) + 48 DIV 10 AS col2
----
-1010

skipif mysql # not compatible
query I rowsort label-4065
SELECT 35 * COUNT ( ALL 30 ) * - 29 - - + COUNT ( * ) + 48 / 10 AS col2
----
-1010

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT SUM( DISTINCT - 93 ) + - 39 + 1 * + CASE - - 59 WHEN 78 THEN NULL ELSE + 25 + - - 63 * 18 END AS col2
----
1027

skipif mysql # not compatible
query I rowsort label-4066
SELECT SUM ( DISTINCT - 93 ) + - 39 + 1 * + CASE - - 59 WHEN 78 THEN NULL ELSE + 25 + - - 63 * 18 END AS col2
----
1027

query II rowsort
SELECT + 8 + + 63 AS col1, 92
----
71
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT - - SUM( 19 ) col0
----
19

skipif mysql # not compatible
query I rowsort label-4068
SELECT - - SUM ( 19 ) col0
----
19

query I rowsort
SELECT ALL COALESCE ( - CASE + 57 WHEN - - 29 THEN NULL WHEN - 67 THEN - - 46 + - 65 END, + + 88 * - ( 26 ) + ( + 99 ), + + 89 ) AS col1
----
-2189

query I rowsort
SELECT DISTINCT + + 96 - + 43 AS col1
----
53

query I rowsort
SELECT ALL + 88 - + 40 AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4072
SELECT + COUNT( * ) + 61, + 78 * + 52 * + + 26 * - ( NULLIF ( - + NULLIF ( 79, + 53 ), - + 10 - + 19 * 38 * COUNT( * ) + 64 / + 16 * - - 66 ) ) AS col2
----
62
8331024

skipif mysql # not compatible
query II rowsort label-4072
SELECT + COUNT ( * ) + 61, + 78 * + 52 * + + 26 * - ( NULLIF ( - + NULLIF ( 79, + 53 ), - + 10 - + 19 * 38 * COUNT ( * ) + 64 / + 16 * - - 66 ) ) AS col2
----
62
8331024

query I rowsort
SELECT 26 + - + 48 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT CASE + COUNT( - - ( - 8 ) ) WHEN - - 75 THEN + - 99 / - CASE + + 79 WHEN 72 THEN + ( - 52 ) ELSE NULL END + + 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4074
SELECT CASE + COUNT ( - - ( - 8 ) ) WHEN - - 75 THEN + - 99 / - CASE + + 79 WHEN 72 THEN + ( - 52 ) ELSE NULL END + + 13 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4075
SELECT ( 84 ) DIV + NULLIF ( + 60, - + 65 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4075
SELECT ( 84 ) / + NULLIF ( + 60, - + 65 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4076
SELECT 51 DIV 6 + + + 33 + - 26 + + 48 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4076
SELECT 51 / 6 + + + 33 + - 26 + + 48 AS col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4077
SELECT 1 * - + 71 - - - 78 DIV - 11 + 32 + COALESCE ( - 68, - 17 * + 30 * + - 4 * + 89 + - + 96, 4 * - 92 * COUNT( * ) * - - 75 * 73, - - ( - COUNT( * ) ) ) * + 26 + + 75 * 73
----
3675

skipif mysql # not compatible
query I rowsort label-4077
SELECT 1 * - + 71 - - - 78 / - 11 + 32 + COALESCE ( - 68, - 17 * + 30 * + - 4 * + 89 + - + 96, 4 * - 92 * COUNT ( * ) * - - 75 * 73, - - ( - COUNT ( * ) ) ) * + 26 + + 75 * 73
----
3675

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT ALL 47 * - 17 * - - 72 + + COUNT( + - ( - - 82 ) ) * ( - MAX( + 41 ) ) col0
----
-57569

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL 47 * - 17 * - - 72 + + COUNT ( + - ( - - 82 ) ) * ( - MAX ( + 41 ) ) col0
----
-57569

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4079
SELECT COUNT( * ) AS col1, 90 DIV - 67 AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-4079
SELECT COUNT ( * ) AS col1, 90 / - 67 AS col0
----
1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4080
SELECT - 72 * - + 27 + - + CAST( 52 AS SIGNED ) + - COUNT( * )
----
1891

skipif mysql # not compatible
query I rowsort label-4080
SELECT - 72 * - + 27 + - + CAST ( 52 AS INTEGER ) + - COUNT ( * )
----
1891

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT MAX( + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-4081
SELECT MAX ( + 52 )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4082
SELECT 94 DIV + ( + SUM( - 38 ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4082
SELECT 94 / + ( + SUM ( - 38 ) ) AS col2
----
-2

query II rowsort
SELECT ALL 9 + + + CASE + - ( + 73 ) WHEN + 41 THEN NULL ELSE + 15 - - 21 + - + 62 END AS col0, + 52
----
-17
52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4084
SELECT CAST( NULL AS DECIMAL ) + + ( 67 ) / + - 2 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4084
SELECT CAST ( NULL AS REAL ) + + ( 67 ) / + - 2 col1
----
NULL

query I rowsort
SELECT - 9 * 4 + - 0 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT MIN( + + 37 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-4086
SELECT MIN ( + + 37 ) AS col1
----
37

query I rowsort
SELECT 50 * 65 * + + 84 * + 92 + 36 AS col1
----
25116036

query I rowsort
SELECT ALL 73 + + 65
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4089
SELECT CAST( NULL AS SIGNED ) * 17 / - 65 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4089
SELECT CAST ( NULL AS INTEGER ) * 17 / - 65 col1
----
NULL

query I rowsort
SELECT ALL 55 + - 18 AS col0
----
37

query I rowsort
SELECT + 37 + 50 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT + NULLIF ( 96, - SUM( 93 ) ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4092
SELECT + NULLIF ( 96, - SUM ( 93 ) ) AS col1
----
96

query I rowsort
SELECT ALL 1 * 38
----
38

query I rowsort
SELECT + 7 * + + 5
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4095
SELECT 50 * + 35 + + COUNT( * ) - + ( + ( - + 35 ) ) DIV - + 51 * + + 11 DIV 9
----
1751

skipif mysql # not compatible
query I rowsort label-4095
SELECT 50 * + 35 + + COUNT ( * ) - + ( + ( - + 35 ) ) / - + 51 * + + 11 / 9
----
1751

onlyif mysql # aggregate syntax: 
query II rowsort label-4096
SELECT 72 AS col0, + ( CASE - - 78 WHEN - 55 * 0 * + + MAX( 73 ) THEN + - ( - + 25 ) END )
----
72
NULL

skipif mysql # not compatible
query II rowsort label-4096
SELECT 72 AS col0, + ( CASE - - 78 WHEN - 55 * 0 * + + MAX ( 73 ) THEN + - ( - + 25 ) END )
----
72
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT ALL 95 - - COUNT( * ) + + ( COUNT( * ) ) * MIN( NULLIF ( + 5, - + 4 + 1 ) )
----
101

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL 95 - - COUNT ( * ) + + ( COUNT ( * ) ) * MIN ( NULLIF ( + 5, - + 4 + 1 ) )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT - NULLIF ( + - COUNT( * ), - 43 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4098
SELECT - NULLIF ( + - COUNT ( * ), - 43 ) AS col0
----
1

query I rowsort
SELECT - 83 * + 49 AS col1
----
-4067

onlyif mysql # DIV for integer division: 
query I rowsort label-4100
SELECT DISTINCT - 78 DIV + 26
----
-3

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT - 78 / + 26
----
-3

query I rowsort
SELECT ALL AVG ( CASE + 97 WHEN 66 / 87 THEN NULL WHEN + 48 - 44 THEN + + 48 * 13 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4102
SELECT ALL 76 - + - 45 - 10 DIV - - 92
----
121

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL 76 - + - 45 - 10 / - - 92
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-4103
SELECT - 78 AS col0, - 50 * + - SUM( ALL + - ( - 2 ) ) + - 84
----
-78
16

skipif mysql # not compatible
query II rowsort label-4103
SELECT - 78 AS col0, - 50 * + - SUM ( ALL + - ( - 2 ) ) + - 84
----
-78
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT ALL - COUNT( * ) * + - 27 * + - 38 * - 98 col0
----
100548

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL - COUNT ( * ) * + - 27 * + - 38 * - 98 col0
----
100548

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT - - 6 * + 88 + + MIN( ALL - 52 ) AS col0
----
476

skipif mysql # not compatible
query I rowsort label-4105
SELECT - - 6 * + 88 + + MIN ( ALL - 52 ) AS col0
----
476

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT - MIN( 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-4106
SELECT - MIN ( 22 )
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4107
SELECT - COALESCE ( 18, + CAST( NULL AS SIGNED ) * - 11 * + 81 + 26 + + + ( 93 ) ) * - 73 * 53 * - - 30 AS col0
----
2089260

skipif mysql # not compatible
query I rowsort label-4107
SELECT - COALESCE ( 18, + CAST ( NULL AS INTEGER ) * - 11 * + 81 + 26 + + + ( 93 ) ) * - 73 * 53 * - - 30 AS col0
----
2089260

query I rowsort
SELECT ALL - - 31 * + - 87 AS col2
----
-2697

query II rowsort
SELECT - + 95 AS col2, - 94
----
-95
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4110
SELECT + - CAST( NULL AS DECIMAL ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT + - CAST ( NULL AS REAL ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT + + 88 + - + ( + 79 ) + - 78
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT - 9 * - - MAX( - - ( - - 37 ) )
----
-333

skipif mysql # not compatible
query I rowsort label-4112
SELECT - 9 * - - MAX ( - - ( - - 37 ) )
----
-333

query I rowsort
SELECT - ( 78 ) * - 82 * + 40 AS col2
----
255840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4114
SELECT - - CAST( NULL AS SIGNED ) * - 21 * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT - - CAST ( NULL AS INTEGER ) * - 21 * 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT DISTINCT - NULLIF ( + 72, + + MAX( + COALESCE ( 17, - 98, + 99 ) ) )
----
-72

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT - NULLIF ( + 72, + + MAX ( + COALESCE ( 17, - 98, + 99 ) ) )
----
-72

query I rowsort
SELECT - 45 * 30
----
-1350

query I rowsort
SELECT - 49 + - 84
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT ALL MIN( ALL + + 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL MIN ( ALL + + 77 ) AS col2
----
77

query I rowsort
SELECT ALL + - 13 + 68
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT - - 44 * - 32 + - + COUNT( * ) col0
----
-1409

skipif mysql # not compatible
query I rowsort label-4120
SELECT - - 44 * - 32 + - + COUNT ( * ) col0
----
-1409

query I rowsort
SELECT - + 86 + - 67 AS col0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT + MAX( - + 35 ) col0
----
-35

skipif mysql # not compatible
query I rowsort label-4122
SELECT + MAX ( - + 35 ) col0
----
-35

query I rowsort
SELECT + 62 - - 70 * + 23 col0
----
1672

query II rowsort
SELECT ALL + 84 AS col0, + 25
----
84
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4125
SELECT + MAX( ALL - 54 ) AS col0, - 71 AS col2
----
-54
-71

skipif mysql # not compatible
query II rowsort label-4125
SELECT + MAX ( ALL - 54 ) AS col0, - 71 AS col2
----
-54
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4126
SELECT DISTINCT + NULLIF ( - + CAST( NULL AS DECIMAL ), 61 * - + 56 ) * + - 40 * 51 * - - 79 * - - AVG ( ALL + 26 ) * + + COUNT( * ) + - 49 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT + NULLIF ( - + CAST ( NULL AS REAL ), 61 * - + 56 ) * + - 40 * 51 * - - 79 * - - AVG ( ALL + 26 ) * + + COUNT ( * ) + - 49 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4127
SELECT ALL - 27 * + ( - - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL - 27 * + ( - - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT DISTINCT + SUM( 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT + SUM ( 78 ) AS col0
----
78

query I rowsort
SELECT + 96 * + 15
----
1440

query I rowsort
SELECT - 85 * - + 82 + - 64 + 65
----
6971

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4131
SELECT + COUNT( * ) DIV - 18
----
0

skipif mysql # not compatible
query I rowsort label-4131
SELECT + COUNT ( * ) / - 18
----
0

query I rowsort
SELECT + ( - 79 )
----
-79

query I rowsort
SELECT ALL 54 * + + ( + 86 ) AS col2
----
4644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) / + 68 * - + 21 * - - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) / + 68 * - + 21 * - - 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT ALL 48 * - + COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL 48 * - + COUNT ( * ) AS col2
----
-48

query I rowsort
SELECT + 54 + + 85 AS col2
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT ALL 58 * - CASE 37 WHEN - + COUNT( * ) THEN + 57 ELSE NULL END * - 54 - 54 * + - 36 + + 32 * - COALESCE ( + + COUNT( * ), + - 87 ) - + + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL 58 * - CASE 37 WHEN - + COUNT ( * ) THEN + 57 ELSE NULL END * - 54 - 54 * + - 36 + + 32 * - COALESCE ( + + COUNT ( * ), + - 87 ) - + + 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT - ( MIN( 98 ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-4138
SELECT - ( MIN ( 98 ) ) AS col0
----
-98

query I rowsort
SELECT ALL + 72 * - + 32 * + 83 * 35
----
-6693120

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4140
SELECT + - 61 * - 29 - + 56 + - CAST( + 83 AS SIGNED ) + + 4 - - 28 + 74 + 35 DIV + 73
----
1736

skipif mysql # not compatible
query I rowsort label-4140
SELECT + - 61 * - 29 - + 56 + - CAST ( + 83 AS INTEGER ) + + 4 - - 28 + 74 + 35 / + 73
----
1736

query I rowsort
SELECT + + 86 + + 30 + 99
----
215

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4142
SELECT + - COALESCE ( - 23, + 7 * + 35, + - CAST( COALESCE ( CAST( COALESCE ( - CAST( + 99 AS SIGNED ), - - 73 ) AS SIGNED ), 57 - - - 95 ) AS SIGNED ) + - 98 - + ( - AVG ( DISTINCT - - 69 ) ) * + 88 DIV + 90 ) * 53 AS col1
----
1219

skipif mysql # not compatible
query I rowsort label-4142
SELECT + - COALESCE ( - 23, + 7 * + 35, + - CAST ( COALESCE ( CAST ( COALESCE ( - CAST ( + 99 AS INTEGER ), - - 73 ) AS INTEGER ), 57 - - - 95 ) AS INTEGER ) + - 98 - + ( - AVG ( DISTINCT - - 69 ) ) * + 88 / + 90 ) * 53 AS col1
----
1219

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT DISTINCT - MAX( DISTINCT + COALESCE ( 75, + 11 + + 10 ) ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT - MAX ( DISTINCT + COALESCE ( 75, + 11 + + 10 ) ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT + COUNT( * ) + + - 62
----
-61

skipif mysql # not compatible
query I rowsort label-4144
SELECT + COUNT ( * ) + + - 62
----
-61

query II rowsort
SELECT ALL - 87 AS col1, 33
----
-87
33

query I rowsort
SELECT ALL - 56 + + + 4
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT + COUNT( * ) + - 13 * - 76 * - - MAX( 25 )
----
24701

skipif mysql # not compatible
query I rowsort label-4147
SELECT + COUNT ( * ) + - 13 * - 76 * - - MAX ( 25 )
----
24701

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT DISTINCT + COUNT( * ) + + 24 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT + COUNT ( * ) + + 24 AS col2
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4149
SELECT - - COUNT( * ) + - + 87, 21 * - 16 AS col0
----
-86
-336

skipif mysql # not compatible
query II rowsort label-4149
SELECT - - COUNT ( * ) + - + 87, 21 * - 16 AS col0
----
-86
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT ALL + 95 + + - MAX( + 54 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL + 95 + + - MAX ( + 54 ) AS col2
----
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4151
SELECT DISTINCT 35 + + CAST( NULL AS DECIMAL ) * - ( - 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT 35 + + CAST ( NULL AS REAL ) * - ( - 38 )
----
NULL

query I rowsort
SELECT ALL - 4 * - 15 * - 21 * - 27 AS col1
----
34020

onlyif mysql # DIV for integer division: 
query II rowsort label-4153
SELECT - - 45, - 55 * 7 DIV + 36 AS col2
----
45
-10

skipif mysql # not compatible
query II rowsort label-4153
SELECT - - 45, - 55 * 7 / + 36 AS col2
----
45
-10

query I rowsort
SELECT - 83 + - 22 AS col1
----
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-4155
SELECT DISTINCT COUNT( * ) AS col1, + 87 + - - 96
----
1
183

skipif mysql # not compatible
query II rowsort label-4155
SELECT DISTINCT COUNT ( * ) AS col1, + 87 + - - 96
----
1
183

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT ALL + ( - 53 ) + - + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL + ( - 53 ) + - + COUNT ( * )
----
-54

query I rowsort
SELECT - 68 + + 10 * - + 27
----
-338

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL + MAX( DISTINCT - ( + 67 ) ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + MAX ( DISTINCT - ( + 67 ) ) AS col1
----
-67

query I rowsort
SELECT - 44 + + COALESCE ( 44, + - 2 )
----
0

query I rowsort
SELECT ALL + ( - 64 ) - + + 93 AS col0
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT DISTINCT + 50 - + ( COUNT( * ) ) - + 16 - 28 * - + 92 AS col0
----
2609

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT + 50 - + ( COUNT ( * ) ) - + 16 - 28 * - + 92 AS col0
----
2609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4162
SELECT ALL - CAST( + 96 AS SIGNED ) * - 12 + - MAX( + - 17 ) AS col2
----
1169

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL - CAST ( + 96 AS INTEGER ) * - 12 + - MAX ( + - 17 ) AS col2
----
1169

query II rowsort
SELECT 64 + ( - 10 ), + 15 AS col2
----
54
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT ALL + MIN( - 65 ) * - - 9
----
-585

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL + MIN ( - 65 ) * - - 9
----
-585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4165
SELECT DISTINCT + CAST( - + 91 AS SIGNED ) * - 99 AS col1
----
9009

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT + CAST ( - + 91 AS INTEGER ) * - 99 AS col1
----
9009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4166
SELECT - 68 * CAST( - COUNT( * ) AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-4166
SELECT - 68 * CAST ( - COUNT ( * ) AS INTEGER )
----
68

query I rowsort
SELECT 81 * + 39 AS col0
----
3159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4168
SELECT NULLIF ( - 82, - 50 - 86 + + ( + COUNT( * ) ) - - COALESCE ( - 76, + - CASE - CAST( 96 AS SIGNED ) WHEN - 39 THEN NULL ELSE 61 - + 0 END ) * - MAX( ALL 46 ) / 24 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-4168
SELECT NULLIF ( - 82, - 50 - 86 + + ( + COUNT ( * ) ) - - COALESCE ( - 76, + - CASE - CAST ( 96 AS INTEGER ) WHEN - 39 THEN NULL ELSE 61 - + 0 END ) * - MAX ( ALL 46 ) / 24 ) AS col2
----
-82

query II rowsort
SELECT ALL 21 + + 4, + ( + 72 ) AS col1
----
25
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT ALL + CASE + + 24 WHEN - + 69 THEN NULL ELSE + + COUNT( * ) * - 72 + + 55 END AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL + CASE + + 24 WHEN - + 69 THEN NULL ELSE + + COUNT ( * ) * - 72 + + 55 END AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT ALL + + ( 57 ) + COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL + + ( 57 ) + COUNT ( * ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4172
SELECT - MIN( - - 60 ), + COUNT( * ) + + + 48 AS col0
----
-60
49

skipif mysql # not compatible
query II rowsort label-4172
SELECT - MIN ( - - 60 ), + COUNT ( * ) + + + 48 AS col0
----
-60
49

query I rowsort
SELECT DISTINCT + 58 + + - 72
----
-14

query II rowsort
SELECT DISTINCT + ( + 58 ), - 60 AS col1
----
58
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4175
SELECT - - CAST( + 13 AS SIGNED ) AS col1, 22
----
13
22

skipif mysql # not compatible
query II rowsort label-4175
SELECT - - CAST ( + 13 AS INTEGER ) AS col1, 22
----
13
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT ALL - 25 + - 59 * + + COUNT( * ) * + - 41
----
2394

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL - 25 + - 59 * + + COUNT ( * ) * + - 41
----
2394

query I rowsort
SELECT - 71 + 29 + - - ( 28 ) AS col1
----
-14

query I rowsort
SELECT - ( 36 ) + - + 43 AS col1
----
-79

query I rowsort
SELECT - 54 * 26
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT + NULLIF ( - - 91, - - COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-4180
SELECT + NULLIF ( - - 91, - - COUNT ( * ) )
----
91

query II rowsort
SELECT ( - + 57 ) AS col0, - 92 AS col1
----
-57
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT CAST( - + 70 AS SIGNED ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-4182
SELECT CAST ( - + 70 AS INTEGER ) AS col0
----
-70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4183
SELECT DISTINCT + ( + 27 ), 95 DIV - NULLIF ( - + 90, 69 - - 76 ) + 74 + COALESCE ( - - 72, CAST( + + 42 AS SIGNED ), + + 5 ) AS col0
----
27
147

skipif mysql # not compatible
query II rowsort label-4183
SELECT DISTINCT + ( + 27 ), 95 / - NULLIF ( - + 90, 69 - - 76 ) + 74 + COALESCE ( - - 72, CAST ( + + 42 AS INTEGER ), + + 5 ) AS col0
----
27
147

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4184
SELECT + 20 * + - 20 * + CAST( + + CAST( - + 55 AS SIGNED ) AS SIGNED ), + 44 DIV + 1 + 4 DIV - 12 AS col1
----
22000
44

skipif mysql # not compatible
query II rowsort label-4184
SELECT + 20 * + - 20 * + CAST ( + + CAST ( - + 55 AS INTEGER ) AS INTEGER ), + 44 / + 1 + 4 / - 12 AS col1
----
22000
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT 23 - + MAX( DISTINCT + 0 )
----
23

skipif mysql # not compatible
query I rowsort label-4185
SELECT 23 - + MAX ( DISTINCT + 0 )
----
23

query II rowsort
SELECT - 29, - 27 + 26 AS col1
----
-29
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4187
SELECT CAST( NULL AS SIGNED ) + - - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT CAST ( NULL AS INTEGER ) + - - 14 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4188
SELECT CAST( NULL AS SIGNED ) * - 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT CAST ( NULL AS INTEGER ) * - 31 AS col1
----
NULL

query I rowsort
SELECT ALL + 54 * - 91 AS col2
----
-4914

onlyif mysql # DIV for integer division: 
query II rowsort label-4190
SELECT 0 DIV + 86 + + 98, + 69 + 43 AS col1
----
98
112

skipif mysql # not compatible
query II rowsort label-4190
SELECT 0 / + 86 + + 98, + 69 + 43 AS col1
----
98
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4191
SELECT ( - ( + + COUNT( 10 ) ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT ( - ( + + COUNT ( 10 ) ) ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4192
SELECT + 21 DIV 1 - + + COUNT( DISTINCT - - 43 ) * + 9 DIV - 71 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-4192
SELECT + 21 / 1 - + + COUNT ( DISTINCT - - 43 ) * + 9 / - 71 AS col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4193
SELECT CAST( NULL AS SIGNED ) * + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4193
SELECT CAST ( NULL AS INTEGER ) * + 61 AS col1
----
NULL

query I rowsort
SELECT 67 - ( - + 73 ) + - + 87 AS col2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4195
SELECT 24, - CAST( + 29 AS SIGNED ) col0
----
24
-29

skipif mysql # not compatible
query II rowsort label-4195
SELECT 24, - CAST ( + 29 AS INTEGER ) col0
----
24
-29

query I rowsort
SELECT 57 + - - 42
----
99

query I rowsort
SELECT ALL - NULLIF ( - 35, - 76 + - 22 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-4198
SELECT + 60 AS col0, COUNT( * ) AS col0
----
60
1

skipif mysql # not compatible
query II rowsort label-4198
SELECT + 60 AS col0, COUNT ( * ) AS col0
----
60
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT 44 + + COUNT( ALL 65 ) col0
----
45

skipif mysql # not compatible
query I rowsort label-4199
SELECT 44 + + COUNT ( ALL 65 ) col0
----
45

query I rowsort
SELECT 80 - - 83 AS col2
----
163

query II rowsort
SELECT 83 * - - ( 20 ) AS col0, + NULLIF ( 90, - 85 ) * - 69
----
1660
-6210

query II rowsort
SELECT 31 AS col2, - 94 + - 83
----
31
-177

query I rowsort
SELECT - 53 + - 86 AS col2
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT COUNT( * ) * - 26 * + - 26 * - - 19 * + 85 * 40
----
43669600

skipif mysql # not compatible
query I rowsort label-4204
SELECT COUNT ( * ) * - 26 * + - 26 * - - 19 * + 85 * 40
----
43669600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT + CAST( NULL AS SIGNED ) * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT + CAST ( NULL AS INTEGER ) * - 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4206
SELECT + 75 + - 78 - - ( - + 96 ) AS col2, + COUNT( * ) + + - ( 89 ) * + NULLIF ( + 18, - COUNT( * ) * 47 - - CASE - - AVG ( DISTINCT CAST( 99 AS SIGNED ) ) WHEN + 84 THEN + 40 END ) AS col2
----
-99
-1601

skipif mysql # not compatible
query II rowsort label-4206
SELECT + 75 + - 78 - - ( - + 96 ) AS col2, + COUNT ( * ) + + - ( 89 ) * + NULLIF ( + 18, - COUNT ( * ) * 47 - - CASE - - AVG ( DISTINCT CAST ( 99 AS INTEGER ) ) WHEN + 84 THEN + 40 END ) AS col2
----
-99
-1601

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT ALL + 78 * - + COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL + 78 * - + COUNT ( * ) AS col0
----
-78

query I rowsort
SELECT ALL - 20 + - 23
----
-43

query I rowsort
SELECT ALL - - 28 col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT DISTINCT - - ( ( - 68 ) ) + - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT - - ( ( - 68 ) ) + - COUNT ( * )
----
-69

query I rowsort
SELECT 19 + 22 AS col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4212
SELECT - 69 DIV - - 93
----
0

skipif mysql # not compatible
query I rowsort label-4212
SELECT - 69 / - - 93
----
0

query I rowsort
SELECT 95 + + 27 - + + 78 - - - 73 AS col1
----
-29

query I rowsort
SELECT - + CASE + 78 WHEN - 45 THEN NULL WHEN - - 21 THEN + 59 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 94 + + 84
----
-10

query I rowsort
SELECT 88 + + 83 AS col2
----
171

query I rowsort
SELECT ALL - 13 - + 97
----
-110

query I rowsort
SELECT DISTINCT CASE - 16 WHEN - 76 + 38 THEN 83 ELSE - 59 * - 38 END AS col0
----
2242

onlyif mysql # DIV for integer division: 
query I rowsort label-4219
SELECT DISTINCT + COALESCE ( + + 59, - 61 ) * + 11 * 72 DIV - 11 AS col0
----
-4248

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT + COALESCE ( + + 59, - 61 ) * + 11 * 72 / - 11 AS col0
----
-4248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4220
SELECT - 91 * - + 90 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4220
SELECT - 91 * - + 90 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT + MAX( - NULLIF ( + 48, 60 ) ) * 41 + COUNT( * ) * + - 68
----
-2036

skipif mysql # not compatible
query I rowsort label-4221
SELECT + MAX ( - NULLIF ( + 48, 60 ) ) * 41 + COUNT ( * ) * + - 68
----
-2036

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4222
SELECT ALL ( 12 ) * ( + 59 ) - - 26 col0, COUNT( ALL 74 ) DIV 20
----
734
0

skipif mysql # not compatible
query II rowsort label-4222
SELECT ALL ( 12 ) * ( + 59 ) - - 26 col0, COUNT ( ALL 74 ) / 20
----
734
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4223
SELECT + MAX( DISTINCT + CAST( 51 AS SIGNED ) ) * + NULLIF ( 93, + 81 )
----
4743

skipif mysql # not compatible
query I rowsort label-4223
SELECT + MAX ( DISTINCT + CAST ( 51 AS INTEGER ) ) * + NULLIF ( 93, + 81 )
----
4743

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4224
SELECT + ( - - CAST( - 16 AS SIGNED ) ) * - 14, + 10 - - 5 AS col2
----
224
15

skipif mysql # not compatible
query II rowsort label-4224
SELECT + ( - - CAST ( - 16 AS INTEGER ) ) * - 14, + 10 - - 5 AS col2
----
224
15

query I rowsort
SELECT + 55 + - + 80
----
-25

query I rowsort
SELECT ALL 25 * 1
----
25

query I rowsort
SELECT 97 * - 98 + + 10 AS col0
----
-9496

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT COUNT( * ) * + 38 - - - 59 + + + 33 * + 67
----
2190

skipif mysql # not compatible
query I rowsort label-4228
SELECT COUNT ( * ) * + 38 - - - 59 + + + 33 * + 67
----
2190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4229
SELECT CASE + + 49 WHEN - + 15 * 86 + + + 8 + - 60 * + 95 * - 10 THEN NULL WHEN + - 39 THEN - - 62 / CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4229
SELECT CASE + + 49 WHEN - + 15 * 86 + + + 8 + - 60 * + 95 * - 10 THEN NULL WHEN + - 39 THEN - - 62 / CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4230
SELECT ALL 89 * + CAST( - 15 AS SIGNED ) * - 57 AS col0
----
76095

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL 89 * + CAST ( - 15 AS INTEGER ) * - 57 AS col0
----
76095

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT + 95 * + - COUNT( * ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4231
SELECT + 95 * + - COUNT ( * ) AS col2
----
-95

query I rowsort
SELECT - ( 60 ) + - + 37
----
-97

query II rowsort
SELECT + NULLIF ( + 80, + 97 * + + 52 / - 72 ) AS col1, 53 * 85 * + + 9 AS col1
----
80
40545

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4234
SELECT ALL 67 * - 27 + - ( - 80 ) + - + NULLIF ( + CAST( NULL AS SIGNED ), - - 0 / - - NULLIF ( - - 63, - ( + ( - 49 ) ) * + COUNT( * ) / + 82 * 97 * + + NULLIF ( + + 59, + 99 + CAST( NULL AS DECIMAL ) ) + + 25 / + 67 * + COUNT( ALL + + 42 ) + + CAST( + + 85 AS SIGNED ) * + 91 / - 42 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL 67 * - 27 + - ( - 80 ) + - + NULLIF ( + CAST ( NULL AS INTEGER ), - - 0 / - - NULLIF ( - - 63, - ( + ( - 49 ) ) * + COUNT ( * ) / + 82 * 97 * + + NULLIF ( + + 59, + 99 + CAST ( NULL AS REAL ) ) + + 25 / + 67 * + COUNT ( ALL + + 42 ) + + CAST ( + + 85 AS INTEGER ) * + 91 / - 42 ) ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4235
SELECT ALL + - COALESCE ( - ( 17 ), + - 16 * + - 74 + + - 32 + - COUNT( * ) + CAST( 89 AS SIGNED ) + ( 5 ) * + 25 - - 31 + - 22 + - 85 + - 17 + 26 + + ( + + 43 ) * - 92 * 61 DIV - 98 - - 89 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL + - COALESCE ( - ( 17 ), + - 16 * + - 74 + + - 32 + - COUNT ( * ) + CAST ( 89 AS INTEGER ) + ( 5 ) * + 25 - - 31 + - 22 + - 85 + - 17 + 26 + + ( + + 43 ) * - 92 * 61 / - 98 - - 89 ) AS col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4236
SELECT DISTINCT + 41 * + - COUNT( * ) + - + 62 + - + 79 - - + 80 DIV + 66 + + 81 + + 27 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT + 41 * + - COUNT ( * ) + - + 62 + - + 79 - - + 80 / + 66 + + 81 + + 27 AS col1
----
-73

query I rowsort
SELECT - - 72 * - + 62 AS col2
----
-4464

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4238
SELECT + + CAST( - 77 AS SIGNED ) AS col1, 69
----
-77
69

skipif mysql # not compatible
query II rowsort label-4238
SELECT + + CAST ( - 77 AS INTEGER ) AS col1, 69
----
-77
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT ALL + 69 * 13 - COUNT( * ) AS col2
----
896

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL + 69 * 13 - COUNT ( * ) AS col2
----
896

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT - ( CASE + 46 WHEN - - 90 + - 78 / - 51 * - 62 + - + 81 + CASE + + 28 WHEN COALESCE ( + COALESCE ( + 85, - 83 + - 1 ), - - COUNT( * ) ) + - 92 + 47 / - + ( - 72 ) * + + ( SUM( DISTINCT - + 63 ) ) THEN - 40 - - - COALESCE ( - 94, - 81 ) + - 42 * 90 WHEN + 65 * + 50 + + - 51 + 11 * + 78 * - 64 THEN AVG ( - 87 ) * + 4 + 96 / 27 ELSE NULL END + 6 THEN MIN( ALL 33 ) WHEN + 11 + COUNT( * ) THEN COUNT( * ) ELSE NULL END ) * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4240
SELECT - ( CASE + 46 WHEN - - 90 + - 78 / - 51 * - 62 + - + 81 + CASE + + 28 WHEN COALESCE ( + COALESCE ( + 85, - 83 + - 1 ), - - COUNT ( * ) ) + - 92 + 47 / - + ( - 72 ) * + + ( SUM ( DISTINCT - + 63 ) ) THEN - 40 - - - COALESCE ( - 94, - 81 ) + - 42 * 90 WHEN + 65 * + 50 + + - 51 + 11 * + 78 * - 64 THEN AVG ( - 87 ) * + 4 + 96 / 27 ELSE NULL END + 6 THEN MIN ( ALL 33 ) WHEN + 11 + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END ) * + 52
----
NULL

query II rowsort
SELECT ALL - 73 * 93 * - ( 13 ), - 74 AS col1
----
88257
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT ALL - - COUNT( * ) - - 1 + + + MAX( ALL + + 4 ) * 0 * 80 + - 43 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL - - COUNT ( * ) - - 1 + + + MAX ( ALL + + 4 ) * 0 * 80 + - 43 AS col2
----
-41

query I rowsort
SELECT - - 45 * - - 18 AS col2
----
810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT - NULLIF ( 81, + CAST( NULL AS SIGNED ) ) * - 14 AS col0
----
1134

skipif mysql # not compatible
query I rowsort label-4244
SELECT - NULLIF ( 81, + CAST ( NULL AS INTEGER ) ) * - 14 AS col0
----
1134

query I rowsort
SELECT - 91 + + + 54
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4246
SELECT - 97 DIV - 29 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4246
SELECT - 97 / - 29 AS col1
----
3

query I rowsort
SELECT ALL ( + 37 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT - 9 * + MIN( + 16 )
----
-144

skipif mysql # not compatible
query I rowsort label-4248
SELECT - 9 * + MIN ( + 16 )
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT - MIN( ALL + 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-4249
SELECT - MIN ( ALL + 41 ) AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4250
SELECT DISTINCT CAST( 91 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT CAST ( 91 AS INTEGER )
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4251
SELECT ALL - 37 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL - 37 / - 97
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4252
SELECT - 61 DIV 43 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4252
SELECT - 61 / 43 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4253
SELECT + 67 DIV - 39 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4253
SELECT + 67 / - 39 AS col1
----
-1

query I rowsort
SELECT DISTINCT ( 33 ) AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4255
SELECT ALL - 37 DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL - 37 / 47
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4256
SELECT - COUNT( * ) DIV + 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4256
SELECT - COUNT ( * ) / + 82 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4257
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT ALL - 65 + 2 AS col1
----
-63

query I rowsort
SELECT - 19 * + 3 * 33 * 12 AS col0
----
-22572

onlyif mysql # DIV for integer division: 
query I rowsort label-4260
SELECT - ( - 60 ) DIV + 25 + + 45 - - 90 * 2
----
227

skipif mysql # not compatible
query I rowsort label-4260
SELECT - ( - 60 ) / + 25 + + 45 - - 90 * 2
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT + MIN( DISTINCT + 47 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-4261
SELECT + MIN ( DISTINCT + 47 ) AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4262
SELECT CAST( - + 50 AS SIGNED ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-4262
SELECT CAST ( - + 50 AS INTEGER ) AS col1
----
-50

query I rowsort
SELECT + 77 * - 95
----
-7315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4264
SELECT CAST( + - NULLIF ( ( - - CAST( NULL AS SIGNED ) ), - 97 + - 95 * SUM( ALL + 97 ) * - 3 + + SUM( ALL 29 ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT CAST ( + - NULLIF ( ( - - CAST ( NULL AS INTEGER ) ), - 97 + - 95 * SUM ( ALL + 97 ) * - 3 + + SUM ( ALL 29 ) ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4265
SELECT DISTINCT 87 DIV 90 DIV + MAX( ALL + 35 ) + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT 87 / 90 / + MAX ( ALL + 35 ) + COUNT ( * ) AS col2
----
1

query II rowsort
SELECT ALL + 20 AS col0, - 5
----
20
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4267
SELECT + SUM( - 89 ) * - 53 - + + ( 68 ) - + COUNT( * ) * - CAST( 37 AS SIGNED )
----
4686

skipif mysql # not compatible
query I rowsort label-4267
SELECT + SUM ( - 89 ) * - 53 - + + ( 68 ) - + COUNT ( * ) * - CAST ( 37 AS INTEGER )
----
4686

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4268
SELECT ALL 28 DIV + 62 + - COALESCE ( + 28, - 91, + + 54 ) AS col0, + COALESCE ( 49, ( + + 22 ) + ( 84 ), + + COUNT( ALL 92 ) ) * - 81 - + 17 + + 19 * - 82 AS col1
----
-28
-5544

skipif mysql # not compatible
query II rowsort label-4268
SELECT ALL 28 / + 62 + - COALESCE ( + 28, - 91, + + 54 ) AS col0, + COALESCE ( 49, ( + + 22 ) + ( 84 ), + + COUNT ( ALL 92 ) ) * - 81 - + 17 + + 19 * - 82 AS col1
----
-28
-5544

onlyif mysql # aggregate syntax: 
query II rowsort label-4269
SELECT + 15, COUNT( * ) * 19 AS col0
----
15
19

skipif mysql # not compatible
query II rowsort label-4269
SELECT + 15, COUNT ( * ) * 19 AS col0
----
15
19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4270
SELECT ALL - 51 DIV 22 * + 75 + + CAST( - 18 AS SIGNED ) + - - 43 AS col1
----
-125

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL - 51 / 22 * + 75 + + CAST ( - 18 AS INTEGER ) + - - 43 AS col1
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT + - 36 * + COUNT( * ) - + 88 + 61 + - COUNT( * ) + 43
----
-21

skipif mysql # not compatible
query I rowsort label-4271
SELECT + - 36 * + COUNT ( * ) - + 88 + 61 + - COUNT ( * ) + 43
----
-21

query I rowsort
SELECT ( - 4 ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4273
SELECT ALL + - 24 * 53 - COUNT( * ) AS col1, - 99 col0
----
-1273
-99

skipif mysql # not compatible
query II rowsort label-4273
SELECT ALL + - 24 * 53 - COUNT ( * ) AS col1, - 99 col0
----
-1273
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT + + 57 + + SUM( DISTINCT CASE - - COALESCE ( - 8, 94, - 78 ) WHEN - 6 THEN NULL ELSE 11 END ) + + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-4274
SELECT + + 57 + + SUM ( DISTINCT CASE - - COALESCE ( - 8, 94, - 78 ) WHEN - 6 THEN NULL ELSE 11 END ) + + COUNT ( * )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4275
SELECT ALL + - 25 * 59 - + 70 / COUNT( + 68 ) * - 84 + - CAST( NULL AS SIGNED ) / - + CASE 23 WHEN - 57 * + ( + - ( 92 ) ) THEN NULL ELSE CASE 36 WHEN - COUNT( * ) THEN + + 41 WHEN CASE - - MIN( CAST( NULL AS SIGNED ) ) WHEN - MAX( - + ( - CAST( NULL AS DECIMAL ) ) ) THEN - - 92 / - SUM( DISTINCT + 98 ) + COUNT( * ) * + 34 + - - 13 ELSE NULL END + + - MAX( + - 42 ) THEN NULL WHEN COUNT( * ) + - 56 + + + 56 THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL + - 25 * 59 - + 70 / COUNT ( + 68 ) * - 84 + - CAST ( NULL AS INTEGER ) / - + CASE 23 WHEN - 57 * + ( + - ( 92 ) ) THEN NULL ELSE CASE 36 WHEN - COUNT ( * ) THEN + + 41 WHEN CASE - - MIN ( CAST ( NULL AS INTEGER ) ) WHEN - MAX ( - + ( - CAST ( NULL AS REAL ) ) ) THEN - - 92 / - SUM ( DISTINCT + 98 ) + COUNT ( * ) * + 34 + - - 13 ELSE NULL END + + - MAX ( + - 42 ) THEN NULL WHEN COUNT ( * ) + - 56 + + + 56 THEN NULL END END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4276
SELECT + 60 DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-4276
SELECT + 60 / - 40
----
-1

query II rowsort
SELECT 4, + 52 * + ( - ( - 83 ) ) AS col1
----
4
4316

query II rowsort
SELECT ALL + 25, - 43 + + 70 AS col0
----
25
27

query I rowsort
SELECT DISTINCT + 18 * 73 * + 45 AS col0
----
59130

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT DISTINCT 61 * - 52 * + MIN( DISTINCT + 69 ) + - 45 + - 28 + 70
----
-218871

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT 61 * - 52 * + MIN ( DISTINCT + 69 ) + - 45 + - 28 + 70
----
-218871

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL - + 64 - - COUNT( * ) + + 3 col1
----
-60

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL - + 64 - - COUNT ( * ) + + 3 col1
----
-60

query I rowsort
SELECT DISTINCT 17 col1
----
17

query I rowsort
SELECT + NULLIF ( 93, + 78 ) + - 94 AS col0
----
-1

query I rowsort
SELECT ALL + ( NULLIF ( - + 59, 6 ) ) AS col2
----
-59

query I rowsort
SELECT 58 + - 72 AS col0
----
-14

query I rowsort
SELECT 29 * - 65
----
-1885

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4287
SELECT 91 AS col2, 71 DIV + NULLIF ( - - ( - MIN( + 72 ) ), + 38 * + 33 * - + 95 * - 13 ) col0
----
91
0

skipif mysql # not compatible
query II rowsort label-4287
SELECT 91 AS col2, 71 / + NULLIF ( - - ( - MIN ( + 72 ) ), + 38 * + 33 * - + 95 * - 13 ) col0
----
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT 68 + - 28 + 18 * + 7 * + COUNT( * )
----
166

skipif mysql # not compatible
query I rowsort label-4288
SELECT 68 + - 28 + 18 * + 7 * + COUNT ( * )
----
166

onlyif mysql # aggregate syntax: 
query II rowsort label-4289
SELECT 96 AS col2, COALESCE ( + + 57, - + COUNT( - 80 ), - ( - 54 ) ) + - 88
----
96
-31

skipif mysql # not compatible
query II rowsort label-4289
SELECT 96 AS col2, COALESCE ( + + 57, - + COUNT ( - 80 ), - ( - 54 ) ) + - 88
----
96
-31

query II rowsort
SELECT ALL 26 + 43 AS col2, + 87
----
69
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL + 78 + + COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL + 78 + + COUNT ( * ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4292
SELECT - 88 AS col1, - COUNT( * ) * - 45 col2
----
-88
45

skipif mysql # not compatible
query II rowsort label-4292
SELECT - 88 AS col1, - COUNT ( * ) * - 45 col2
----
-88
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4293
SELECT DISTINCT - CAST( 37 AS SIGNED ) * + 92 AS col0
----
-3404

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT - CAST ( 37 AS INTEGER ) * + 92 AS col0
----
-3404

onlyif mysql # DIV for integer division: 
query II rowsort label-4294
SELECT 67 * + 69 AS col2, - 23 DIV + ( + 46 )
----
4623
0

skipif mysql # not compatible
query II rowsort label-4294
SELECT 67 * + 69 AS col2, - 23 / + ( + 46 )
----
4623
0

query II rowsort
SELECT DISTINCT 95, 99 AS col0
----
95
99

query II rowsort
SELECT ALL - 33 + - 17 AS col1, 66
----
-50
66

query I rowsort
SELECT NULLIF ( 91, - 81 ) + 32
----
123

query I rowsort
SELECT 54 + - 9 AS col1
----
45

query II rowsort
SELECT 89 + + 39 AS col1, + 20
----
128
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT DISTINCT - 61 + - COUNT( DISTINCT + - 87 )
----
-62

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT - 61 + - COUNT ( DISTINCT + - 87 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT ALL - 43 + + 94 + + COUNT( * ) * + ( - + 23 )
----
28

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL - 43 + + 94 + + COUNT ( * ) * + ( - + 23 )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4302
SELECT DISTINCT + 88 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT + 88 / - 45
----
-1

query I rowsort
SELECT DISTINCT + 16 + 15 AS col0
----
31

query I rowsort
SELECT ALL + 70 * - + 17 AS col1
----
-1190

query I rowsort
SELECT DISTINCT 94 + 20 col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL ( - COUNT( * ) ) - MIN( DISTINCT - 52 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL ( - COUNT ( * ) ) - MIN ( DISTINCT - 52 ) col2
----
51

query I rowsort
SELECT DISTINCT - 99 * + NULLIF ( - 95, - 84 + - CASE + + 9 WHEN 5 THEN NULL WHEN + 44 THEN - 60 + + 58 + - - 82 END ) * - 7 + + + 80 col1
----
-65755

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT DISTINCT - MIN( + 82 ) - - - SUM( 17 )
----
-99

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT - MIN ( + 82 ) - - - SUM ( 17 )
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4309
SELECT - 42 * - CAST( - ( + + CAST( NULL AS SIGNED ) ) AS SIGNED ) * SUM( - - 17 ) * - 33 + - + 98 + 95 + + - ( - + 76 ) - + NULLIF ( COUNT( * ), COUNT( + 56 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT - 42 * - CAST ( - ( + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * SUM ( - - 17 ) * - 33 + - + 98 + 95 + + - ( - + 76 ) - + NULLIF ( COUNT ( * ), COUNT ( + 56 ) )
----
NULL

query II rowsort
SELECT + 94 AS col0, - 59 col1
----
94
-59

query I rowsort
SELECT ALL - 50 - + 87
----
-137

query II rowsort
SELECT ALL - 60 AS col0, 31
----
-60
31

query II rowsort
SELECT + - 4, 9 + - ( - + 27 ) AS col2
----
-4
36

query I rowsort
SELECT - 5 + 76 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT + + NULLIF ( COUNT( * ), + 39 )
----
1

skipif mysql # not compatible
query I rowsort label-4315
SELECT + + NULLIF ( COUNT ( * ), + 39 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT MIN( + + 26 ) * 61 + - + 33 * - 69 AS col2
----
3863

skipif mysql # not compatible
query I rowsort label-4316
SELECT MIN ( + + 26 ) * 61 + - + 33 * - 69 AS col2
----
3863

query I rowsort
SELECT ALL - 6 * - 57 AS col2
----
342

query II rowsort
SELECT DISTINCT - - 23, 78 AS col1
----
23
78

onlyif mysql # aggregate syntax: 
query II rowsort label-4319
SELECT ALL - + 27 AS col0, + MIN( DISTINCT + 23 ) + - COUNT( * )
----
-27
22

skipif mysql # not compatible
query II rowsort label-4319
SELECT ALL - + 27 AS col0, + MIN ( DISTINCT + 23 ) + - COUNT ( * )
----
-27
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT ALL - CAST( - 16 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL - CAST ( - 16 AS INTEGER )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4321
SELECT DISTINCT - 1 col1, + ( 14 ) DIV + MAX( ALL 94 ) + + 66 AS col2
----
-1
66

skipif mysql # not compatible
query II rowsort label-4321
SELECT DISTINCT - 1 col1, + ( 14 ) / + MAX ( ALL 94 ) + + 66 AS col2
----
-1
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4322
SELECT 4 DIV - + 73 AS col0, + 62 * + 1 * - COUNT( 9 ) - + 35 col0, - 4 * + 68 * CASE + + ( 76 ) WHEN 70 THEN + COUNT( * ) WHEN - 37 * - 49 + - 48 DIV - 5 + - 41 THEN NULL END + + COUNT( * ) AS col0
----
0
-97
NULL

skipif mysql # not compatible
query III rowsort label-4322
SELECT 4 / - + 73 AS col0, + 62 * + 1 * - COUNT ( 9 ) - + 35 col0, - 4 * + 68 * CASE + + ( 76 ) WHEN 70 THEN + COUNT ( * ) WHEN - 37 * - 49 + - 48 / - 5 + - 41 THEN NULL END + + COUNT ( * ) AS col0
----
0
-97
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4323
SELECT DISTINCT MAX( - 62 ) DIV - + 68 * 37 - - 95 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT MAX ( - 62 ) / - + 68 * 37 - - 95 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT ( NULLIF ( + - COUNT( ALL + - 86 ), + + COUNT( DISTINCT - 48 ) * - 0 + + 63 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4324
SELECT ( NULLIF ( + - COUNT ( ALL + - 86 ), + + COUNT ( DISTINCT - 48 ) * - 0 + + 63 ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4325
SELECT + 12 DIV + + SUM( 39 ) * + CAST( MAX( - - 39 ) AS SIGNED ) col0, CAST( NULL AS SIGNED ) col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4325
SELECT + 12 / + + SUM ( 39 ) * + CAST ( MAX ( - - 39 ) AS INTEGER ) col0, CAST ( NULL AS INTEGER ) col2
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4326
SELECT 52 * + NULLIF ( - 94, - CASE - 97 WHEN + - COUNT( * ) - COUNT( ALL ( + + 5 ) ) + - 76 THEN + SUM( DISTINCT 42 ) * + 42 ELSE - CASE 28 WHEN + ( 87 ) * + 39 * - 62 + - - 77 * + 67 * + 84 + 74 + - - ( + - 56 ) THEN + - 90 / + ( + - AVG ( ALL - - 84 ) ) + + CAST( NULL AS SIGNED ) END END ) AS col0
----
-4888

skipif mysql # not compatible
query I rowsort label-4326
SELECT 52 * + NULLIF ( - 94, - CASE - 97 WHEN + - COUNT ( * ) - COUNT ( ALL ( + + 5 ) ) + - 76 THEN + SUM ( DISTINCT 42 ) * + 42 ELSE - CASE 28 WHEN + ( 87 ) * + 39 * - 62 + - - 77 * + 67 * + 84 + 74 + - - ( + - 56 ) THEN + - 90 / + ( + - AVG ( ALL - - 84 ) ) + + CAST ( NULL AS INTEGER ) END END ) AS col0
----
-4888

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT ALL SUM( + 14 ) * + 46
----
644

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL SUM ( + 14 ) * + 46
----
644

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4328
SELECT NULLIF ( 33, COUNT( + + 53 ) ) DIV - 21 + - 66 + + + 32 * - COUNT( * ) * 23 - 89 + + 93
----
-799

skipif mysql # not compatible
query I rowsort label-4328
SELECT NULLIF ( 33, COUNT ( + + 53 ) ) / - 21 + - 66 + + + 32 * - COUNT ( * ) * 23 - 89 + + 93
----
-799

query I rowsort
SELECT ALL ( - 58 ) + + 66 + - - 80 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT DISTINCT 85 + - COUNT( * ) + 91
----
175

skipif mysql # not compatible
query I rowsort label-4330
SELECT DISTINCT 85 + - COUNT ( * ) + 91
----
175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4331
SELECT DISTINCT 67 + - 29 + + + COALESCE ( + - 41, + + 54 * + 20 + 78 + + 16, + - 78 - CAST( + + COUNT( * ) AS SIGNED ) DIV + 46 ) AS col1, - 82
----
-3
-82

skipif mysql # not compatible
query II rowsort label-4331
SELECT DISTINCT 67 + - 29 + + + COALESCE ( + - 41, + + 54 * + 20 + 78 + + 16, + - 78 - CAST ( + + COUNT ( * ) AS INTEGER ) / + 46 ) AS col1, - 82
----
-3
-82

query I rowsort
SELECT ALL 72 + + - 4 - - - 19 * - 35 * + - 43 * - 80
----
2287668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4333
SELECT COUNT( * ) + - COALESCE ( - 41, COALESCE ( + + ( + + ( - 32 ) ), + 38 DIV - CAST( - 4 AS SIGNED ) * - MAX( ALL + 16 ), + 31 DIV MAX( DISTINCT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4333
SELECT COUNT ( * ) + - COALESCE ( - 41, COALESCE ( + + ( + + ( - 32 ) ), + 38 / - CAST ( - 4 AS INTEGER ) * - MAX ( ALL + 16 ), + 31 / MAX ( DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) ) AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4334
SELECT CAST( - - 6 AS SIGNED ) + - 40 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4334
SELECT CAST ( - - 6 AS INTEGER ) + - 40 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT 92 - + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-4335
SELECT 92 - + COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4336
SELECT - SUM( + 43 ) AS col1, + CASE 41 WHEN - - COUNT( * ) THEN 63 + 19 WHEN - 91 * - - 15 + + - 89 / 22 THEN NULL END + + + 9
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-4336
SELECT - SUM ( + 43 ) AS col1, + CASE 41 WHEN - - COUNT ( * ) THEN 63 + 19 WHEN - 91 * - - 15 + + - 89 / 22 THEN NULL END + + + 9
----
-43
NULL

query II rowsort
SELECT ALL + 2 * - 30 col2, 5 AS col0
----
-60
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4338
SELECT DISTINCT 71 + + 26 - - 11 + - + 84 * + - 33, CAST( NULL AS SIGNED ) col1
----
2880
NULL

skipif mysql # not compatible
query II rowsort label-4338
SELECT DISTINCT 71 + + 26 - - 11 + - + 84 * + - 33, CAST ( NULL AS INTEGER ) col1
----
2880
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4339
SELECT 92 + + COUNT( * ) AS col0, COUNT( * ) * - + 96
----
93
-96

skipif mysql # not compatible
query II rowsort label-4339
SELECT 92 + + COUNT ( * ) AS col0, COUNT ( * ) * - + 96
----
93
-96

query I rowsort
SELECT ALL 6 * + 64 col2
----
384

onlyif mysql # aggregate syntax: 
query II rowsort label-4341
SELECT ALL 24 * 0 AS col1, COUNT( * ) * + 71
----
0
71

skipif mysql # not compatible
query II rowsort label-4341
SELECT ALL 24 * 0 AS col1, COUNT ( * ) * + 71
----
0
71

query I rowsort
SELECT 80 + - + 61 * - 30 AS col2
----
1910

onlyif mysql # DIV for integer division: 
query I rowsort label-4343
SELECT 96 DIV - + 9 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-4343
SELECT 96 / - + 9 AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4344
SELECT + - SUM( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4344
SELECT + - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT COUNT( * ) * 17
----
17

skipif mysql # not compatible
query I rowsort label-4345
SELECT COUNT ( * ) * 17
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT DISTINCT - + MAX( 52 ) * - + COUNT( * ) + - + 73
----
-21

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT - + MAX ( 52 ) * - + COUNT ( * ) + - + 73
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT DISTINCT + + NULLIF ( 30, + - SUM( - 60 ) )
----
30

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT + + NULLIF ( 30, + - SUM ( - 60 ) )
----
30

query I rowsort
SELECT ALL + + 93 * + ( 83 ) AS col1
----
7719

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT - COUNT( 3 ) * - + 63 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-4349
SELECT - COUNT ( 3 ) * - + 63 AS col0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4350
SELECT ALL + 94 * - 81 * 96 + COUNT( * ) - - - 84 + + 93 * + + 25 * - NULLIF ( - 23, + 97 ) AS col1, + 80
----
-677552
80

skipif mysql # not compatible
query II rowsort label-4350
SELECT ALL + 94 * - 81 * 96 + COUNT ( * ) - - - 84 + + 93 * + + 25 * - NULLIF ( - 23, + 97 ) AS col1, + 80
----
-677552
80

query I rowsort
SELECT - + 83 - - + 41 * 52
----
2049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4352
SELECT 13 * + CAST( NULL AS SIGNED ) + - 35 + 43 + - + COALESCE ( + COUNT( * ), + 52 * CASE - + 54 WHEN + + ( - + CASE + 84 WHEN + 53 THEN + - 27 + COUNT( + 48 ) * + 86 WHEN 36 + - 77 * + - 61 THEN + + ( - + 77 ) WHEN + - 49 THEN NULL END ) + - - 71 THEN 81 - + 97 END, + + 70 * + - 13 + - 74 * + + 61 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT 13 * + CAST ( NULL AS INTEGER ) + - 35 + 43 + - + COALESCE ( + COUNT ( * ), + 52 * CASE - + 54 WHEN + + ( - + CASE + 84 WHEN + 53 THEN + - 27 + COUNT ( + 48 ) * + 86 WHEN 36 + - 77 * + - 61 THEN + + ( - + 77 ) WHEN + - 49 THEN NULL END ) + - - 71 THEN 81 - + 97 END, + + 70 * + - 13 + - 74 * + + 61 ) AS col0
----
NULL

query II rowsort
SELECT 8 * + 88 * + 61 - + ( + 59 ) AS col1, 14 AS col2
----
42885
14

onlyif mysql # aggregate syntax: 
query II rowsort label-4354
SELECT + + MIN( DISTINCT 22 ) AS col1, 69
----
22
69

skipif mysql # not compatible
query II rowsort label-4354
SELECT + + MIN ( DISTINCT 22 ) AS col1, 69
----
22
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT - + COUNT( * ) + 69
----
68

skipif mysql # not compatible
query I rowsort label-4355
SELECT - + COUNT ( * ) + 69
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT - + ( + 76 ) + + 66 * + - MIN( - 16 )
----
980

skipif mysql # not compatible
query I rowsort label-4356
SELECT - + ( + 76 ) + + 66 * + - MIN ( - 16 )
----
980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4357
SELECT DISTINCT + 5 * - - 4 * - 34 + + 53 + + 24 / - 88 / CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + + 64 + + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4357
SELECT DISTINCT + 5 * - - 4 * - 34 + + 53 + + 24 / - 88 / CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 64 + + 69 AS col2
----
NULL

query I rowsort
SELECT ALL 18 * - 22 + 21 AS col1
----
-375

query I rowsort
SELECT ALL + ( 55 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4360
SELECT ALL 26 * - CAST( + - MIN( DISTINCT + ( CAST( NULL AS SIGNED ) ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL 26 * - CAST ( + - MIN ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT + SUM( + - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-4361
SELECT + SUM ( + - 2 )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4362
SELECT DISTINCT + COUNT( * ) + + + 31 + + 43 AS col0, + 35 + - NULLIF ( 0, 73 * 87 ) AS col0
----
75
35

skipif mysql # not compatible
query II rowsort label-4362
SELECT DISTINCT + COUNT ( * ) + + + 31 + + 43 AS col0, + 35 + - NULLIF ( 0, 73 * 87 ) AS col0
----
75
35

query I rowsort
SELECT ALL - 78 + + + 9 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-4364
SELECT - COUNT( * ) AS col1, 57 AS col2
----
-1
57

skipif mysql # not compatible
query II rowsort label-4364
SELECT - COUNT ( * ) AS col1, 57 AS col2
----
-1
57

query I rowsort
SELECT + ( 75 ) + + - 18 AS col1
----
57

query I rowsort
SELECT ALL 73 + 70 AS col1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT - SUM( + + 48 ) * - ( 57 ) * + + 15
----
41040

skipif mysql # not compatible
query I rowsort label-4367
SELECT - SUM ( + + 48 ) * - ( 57 ) * + + 15
----
41040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4368
SELECT + SUM( DISTINCT - - 82 ) + 22 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4368
SELECT + SUM ( DISTINCT - - 82 ) + 22 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4369
SELECT - COUNT( * ) AS col2, - 62 * COALESCE ( + NULLIF ( 55, - 51 ), 75 * - 30 )
----
-1
-3410

skipif mysql # not compatible
query II rowsort label-4369
SELECT - COUNT ( * ) AS col2, - 62 * COALESCE ( + NULLIF ( 55, - 51 ), 75 * - 30 )
----
-1
-3410

query I rowsort
SELECT + 37 + 0 AS col1
----
37

query II rowsort
SELECT ALL 0, - 70 AS col1
----
0
-70

query I rowsort
SELECT ALL 19 - + - 42
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4373
SELECT 67 AS col2, 56 * - COUNT( * )
----
67
-56

skipif mysql # not compatible
query II rowsort label-4373
SELECT 67 AS col2, 56 * - COUNT ( * )
----
67
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT DISTINCT 89 * + + SUM( DISTINCT + + 93 ) col1
----
8277

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT 89 * + + SUM ( DISTINCT + + 93 ) col1
----
8277

onlyif mysql # DIV for integer division: 
query I rowsort label-4375
SELECT ALL 12 DIV - 75 * + 55
----
0

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL 12 / - 75 * + 55
----
0

query I rowsort
SELECT + 18 * - 77
----
-1386

query I rowsort
SELECT ALL 83 - 13 - 63 * - 14 + 72 AS col0
----
1024

query I rowsort
SELECT + 65 - + 80
----
-15

query I rowsort
SELECT ALL - ( 16 ) AS col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4380
SELECT - - 13 + + CAST( NULL AS SIGNED ) - ( - 91 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT - - 13 + + CAST ( NULL AS INTEGER ) - ( - 91 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL + MAX( DISTINCT + 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL + MAX ( DISTINCT + 49 ) AS col0
----
49

query I rowsort
SELECT + + 44 * + 30 AS col2
----
1320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4383
SELECT DISTINCT + 15 AS col1, CAST( COALESCE ( - + 14, + - 2 + - 17, 83, + 57 + - 67 ) AS SIGNED ) AS col0
----
15
-14

skipif mysql # not compatible
query II rowsort label-4383
SELECT DISTINCT + 15 AS col1, CAST ( COALESCE ( - + 14, + - 2 + - 17, 83, + 57 + - 67 ) AS INTEGER ) AS col0
----
15
-14

query I rowsort
SELECT + 26 + + 21
----
47

query II rowsort
SELECT DISTINCT - 62 AS col0, ( + 33 ) AS col1
----
-62
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4386
SELECT ALL + - COALESCE ( 14, - 57 + 26, - - ( 47 ) + + 16 DIV - + COUNT( DISTINCT - + 7 ) ) col0
----
-14

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL + - COALESCE ( 14, - 57 + 26, - - ( 47 ) + + 16 / - + COUNT ( DISTINCT - + 7 ) ) col0
----
-14

query I rowsort
SELECT DISTINCT + ( 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT DISTINCT + MAX( DISTINCT - 92 ) * + 91 col2
----
-8372

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT + MAX ( DISTINCT - 92 ) * + 91 col2
----
-8372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4389
SELECT DISTINCT - 56 * CAST( + ( 92 ) AS SIGNED )
----
-5152

skipif mysql # not compatible
query I rowsort label-4389
SELECT DISTINCT - 56 * CAST ( + ( 92 ) AS INTEGER )
----
-5152

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT DISTINCT NULLIF ( - 64, - COUNT( * ) ) * + + 40 AS col0
----
-2560

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT NULLIF ( - 64, - COUNT ( * ) ) * + + 40 AS col0
----
-2560

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT SUM( ALL - 73 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-4391
SELECT SUM ( ALL - 73 ) AS col1
----
-73

query I rowsort
SELECT - - 62 + + 29 * 30 AS col0
----
932

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4393
SELECT ALL + ( + 48 ) * - + COUNT( * ) + - - 40 * - + ( + ( 6 ) ) - COALESCE ( + COUNT( * ), ( + ( + + 17 ) ), - CASE - 44 WHEN SUM( - 2 ) THEN 22 WHEN - CAST( NULL AS DECIMAL ) + + MIN( DISTINCT + + 43 ) THEN NULL END ) DIV - ( + 96 ) AS col1
----
-288

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL + ( + 48 ) * - + COUNT ( * ) + - - 40 * - + ( + ( 6 ) ) - COALESCE ( + COUNT ( * ), ( + ( + + 17 ) ), - CASE - 44 WHEN SUM ( - 2 ) THEN 22 WHEN - CAST ( NULL AS REAL ) + + MIN ( DISTINCT + + 43 ) THEN NULL END ) / - ( + 96 ) AS col1
----
-288

onlyif mysql # DIV for integer division: 
query II rowsort label-4394
SELECT ALL - 13 DIV + 41 + - + 13 AS col1, - CASE 99 WHEN - 2 THEN + 79 ELSE NULL END AS col0
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-4394
SELECT ALL - 13 / + 41 + - + 13 AS col1, - CASE 99 WHEN - 2 THEN + 79 ELSE NULL END AS col0
----
-13
NULL

query I rowsort
SELECT ALL - 74 * + 12 * ( + 47 ) * 60 col2
----
-2504160

query I rowsort
SELECT ALL + 19 * 29
----
551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4397
SELECT - CASE - ( + - 39 ) WHEN + CAST( + COUNT( * ) AS SIGNED ) THEN NULL ELSE + SUM( ALL + - 84 ) END * - 39 + 33
----
-3243

skipif mysql # not compatible
query I rowsort label-4397
SELECT - CASE - ( + - 39 ) WHEN + CAST ( + COUNT ( * ) AS INTEGER ) THEN NULL ELSE + SUM ( ALL + - 84 ) END * - 39 + 33
----
-3243

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT ALL + 20 * - - COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL + 20 * - - COUNT ( * ) AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4399
SELECT COALESCE ( - 35, + - 51 + - ( 18 ) * ( + 45 ) * - 74 - - + 58 * + 86 * + + CAST( NULL AS SIGNED ) + - + COUNT( * ) ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-4399
SELECT COALESCE ( - 35, + - 51 + - ( 18 ) * ( + 45 ) * - 74 - - + 58 * + 86 * + + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) ) AS col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4400
SELECT DISTINCT CAST( + 40 AS SIGNED ) col1
----
40

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT CAST ( + 40 AS INTEGER ) col1
----
40

query I rowsort
SELECT ALL ( + 73 ) AS col0
----
73

query I rowsort
SELECT ALL + 11 * - 28 * 87
----
-26796

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT MIN( ALL 37 )
----
37

skipif mysql # not compatible
query I rowsort label-4403
SELECT MIN ( ALL 37 )
----
37

query II rowsort
SELECT - 89 + + + 38 col2, 24 AS col1
----
-51
24

query I rowsort
SELECT + 95 * 57 AS col2
----
5415

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT - ( COUNT( DISTINCT - 56 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4406
SELECT - ( COUNT ( DISTINCT - 56 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT - COUNT( DISTINCT - - 36 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4407
SELECT - COUNT ( DISTINCT - - 36 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4408
SELECT + 47 - + 16 DIV + + 74 * - 66 + + - 39
----
8

skipif mysql # not compatible
query I rowsort label-4408
SELECT + 47 - + 16 / + + 74 * - 66 + + - 39
----
8

query I rowsort
SELECT - 59 * - 2
----
118

query I rowsort
SELECT + 57 * - - 39 * - - 70 * NULLIF ( + 93, 59 )
----
14471730

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT ALL COUNT( * ) * + 45 col0
----
45

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL COUNT ( * ) * + 45 col0
----
45

query I rowsort
SELECT - 15 + - + ( - 84 )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-4413
SELECT ALL - COUNT( * ) * 92, 14 AS col1
----
-92
14

skipif mysql # not compatible
query II rowsort label-4413
SELECT ALL - COUNT ( * ) * 92, 14 AS col1
----
-92
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4414
SELECT ALL + CAST( NULL AS SIGNED ) * + 26 * - COUNT( + 81 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL + CAST ( NULL AS INTEGER ) * + 26 * - COUNT ( + 81 ) AS col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( 65, - + 1 + - - 19, 7 )
----
-65

query I rowsort
SELECT ALL - 27 + + 30 AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4417
SELECT MIN( - 61 ) col0, - ( + 0 )
----
-61
0

skipif mysql # not compatible
query II rowsort label-4417
SELECT MIN ( - 61 ) col0, - ( + 0 )
----
-61
0

query I rowsort
SELECT 56 * - 51
----
-2856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4419
SELECT + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4420
SELECT 58 * COUNT( * ) DIV + 14
----
4

skipif mysql # not compatible
query I rowsort label-4420
SELECT 58 * COUNT ( * ) / + 14
----
4

query I rowsort
SELECT - 73 * - 31 AS col2
----
2263

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT COUNT( * ) + + ( - 4 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4422
SELECT COUNT ( * ) + + ( - 4 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4423
SELECT DISTINCT + COUNT( * ) + ( 27 ) + 40 * 57 AS col0, - 26
----
2308
-26

skipif mysql # not compatible
query II rowsort label-4423
SELECT DISTINCT + COUNT ( * ) + ( 27 ) + 40 * 57 AS col0, - 26
----
2308
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4424
SELECT ALL CAST( 67 AS SIGNED ) + - COUNT( * ) * - + 14 AS col0, + CAST( - 10 AS SIGNED ) AS col2
----
81
-10

skipif mysql # not compatible
query II rowsort label-4424
SELECT ALL CAST ( 67 AS INTEGER ) + - COUNT ( * ) * - + 14 AS col0, + CAST ( - 10 AS INTEGER ) AS col2
----
81
-10

query I rowsort
SELECT 35 - - 36 col1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4426
SELECT + 30 * + 7 * 81 + - - NULLIF ( + - ( - 97 ), - 40 - - 56 + + + 44 ) - - - CASE + CASE 14 WHEN - - NULLIF ( + + COALESCE ( - + 73, 72 + 4 + - 14 * + COUNT( * ) ), + 58 * - 85 + + + ( + - 95 ) ) + + 21 + + + 57 THEN - NULLIF ( - 38, - + 25 ) DIV 85 + - 15 DIV + 88 * + - 44 END WHEN - 44 * SUM( - 37 ) + + - 3 + - + 6 THEN NULL ELSE 66 END + - ( COUNT( * ) ) DIV + + 97 AS col0
----
17041

skipif mysql # not compatible
query I rowsort label-4426
SELECT + 30 * + 7 * 81 + - - NULLIF ( + - ( - 97 ), - 40 - - 56 + + + 44 ) - - - CASE + CASE 14 WHEN - - NULLIF ( + + COALESCE ( - + 73, 72 + 4 + - 14 * + COUNT ( * ) ), + 58 * - 85 + + + ( + - 95 ) ) + + 21 + + + 57 THEN - NULLIF ( - 38, - + 25 ) / 85 + - 15 / + 88 * + - 44 END WHEN - 44 * SUM ( - 37 ) + + - 3 + - + 6 THEN NULL ELSE 66 END + - ( COUNT ( * ) ) / + + 97 AS col0
----
17041

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4427
SELECT ALL - - CAST( + 84 AS SIGNED ), 96 AS col2
----
84
96

skipif mysql # not compatible
query II rowsort label-4427
SELECT ALL - - CAST ( + 84 AS INTEGER ), 96 AS col2
----
84
96

query I rowsort
SELECT ALL - 25 + - 46 col2
----
-71

query I rowsort
SELECT ALL + 50 + 27 AS col0
----
77

query I rowsort
SELECT 38 + + - 16 AS col1
----
22

query I rowsort
SELECT 74 * - 28 AS col0
----
-2072

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT - 93 * NULLIF ( - - 75, + 95 ) * + + 93 * + + COALESCE ( - - ( - 29 ), + CASE - 68 WHEN 34 * - + 52 + - 30 * + 31 THEN + 17 ELSE NULL END ) + 9 + + COUNT( * ) * - 89 col0
----
18811495

skipif mysql # not compatible
query I rowsort label-4432
SELECT - 93 * NULLIF ( - - 75, + 95 ) * + + 93 * + + COALESCE ( - - ( - 29 ), + CASE - 68 WHEN 34 * - + 52 + - 30 * + 31 THEN + 17 ELSE NULL END ) + 9 + + COUNT ( * ) * - 89 col0
----
18811495

onlyif mysql # DIV for integer division: 
query I rowsort label-4433
SELECT 83 - + - ( NULLIF ( - 78, - 75 ) ) DIV + 29 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4433
SELECT 83 - + - ( NULLIF ( - 78, - 75 ) ) / + 29 AS col1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4434
SELECT ALL - COUNT( * ) AS col1, - SUM( + + 32 )
----
-1
-32

skipif mysql # not compatible
query II rowsort label-4434
SELECT ALL - COUNT ( * ) AS col1, - SUM ( + + 32 )
----
-1
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4435
SELECT COUNT( DISTINCT + 27 ) * + ( - + 61 ) + ( + + CAST( + + 51 AS SIGNED ) ) + - 32 + 33 + + + 23 * - 46 AS col1
----
-1067

skipif mysql # not compatible
query I rowsort label-4435
SELECT COUNT ( DISTINCT + 27 ) * + ( - + 61 ) + ( + + CAST ( + + 51 AS INTEGER ) ) + - 32 + 33 + + + 23 * - 46 AS col1
----
-1067

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ( + NULLIF ( - + 28, - 7 ) ) * + + 1 - + - MIN( + 88 )
----
60

skipif mysql # not compatible
query I rowsort label-4436
SELECT ( + NULLIF ( - + 28, - 7 ) ) * + + 1 - + - MIN ( + 88 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4437
SELECT ALL + 15 - + - CAST( - - ( 16 ) AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL + 15 - + - CAST ( - - ( 16 ) AS INTEGER )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4438
SELECT CAST( - NULLIF ( - 9, + 77 ) AS SIGNED ) + - 56 + - + CAST( 18 AS SIGNED ) + + - 40
----
-105

skipif mysql # not compatible
query I rowsort label-4438
SELECT CAST ( - NULLIF ( - 9, + 77 ) AS INTEGER ) + - 56 + - + CAST ( 18 AS INTEGER ) + + - 40
----
-105

query I rowsort
SELECT 83 + + 26
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT ALL - 43 * - + COALESCE ( + COUNT( * ), CASE 26 WHEN + COUNT( * ) + + 79 + - 90 * + 37 THEN + COUNT( * ) WHEN - - 19 THEN NULL END, + - 38 * + - 34 )
----
43

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL - 43 * - + COALESCE ( + COUNT ( * ), CASE 26 WHEN + COUNT ( * ) + + 79 + - 90 * + 37 THEN + COUNT ( * ) WHEN - - 19 THEN NULL END, + - 38 * + - 34 )
----
43

query I rowsort
SELECT ALL - NULLIF ( NULLIF ( + 37, + 14 / 96 + - 72 + - 52 ), - + 85 * + 38 * - 24 )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4442
SELECT ALL + SUM( 48 ) DIV - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL + SUM ( 48 ) / - COUNT ( * )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4443
SELECT 8 / + + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT 8 / + + ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 44 * - 24 * + ( - 1 ) AS col0
----
1056

query I rowsort
SELECT 17 + - ( - - 40 ) + - ( - 37 )
----
14

query II rowsort
SELECT - 63 AS col1, 12 + 73 + + 87
----
-63
172

query I rowsort
SELECT ALL - 81 * - + 93 AS col0
----
7533

query I rowsort
SELECT ALL + 81 + - ( - 29 ) + - - 88
----
198

query I rowsort
SELECT 81 + + 27 * ( - + 17 ) - - + 45
----
-333

onlyif mysql # DIV for integer division: 
query I rowsort label-4450
SELECT ALL - + 99 DIV - 82 + - 15 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL - + 99 / - 82 + - 15 AS col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-4451
SELECT - 88 DIV - 43 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4451
SELECT - 88 / - 43 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT DISTINCT + 90 + + - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT + 90 + + - COUNT ( * )
----
89

query I rowsort
SELECT ALL - 15 + + + 94 AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4454
SELECT DISTINCT - CAST( - - 68 AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT - CAST ( - - 68 AS INTEGER )
----
-68

query I rowsort
SELECT - 29 - 2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL - SUM( ALL + - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL - SUM ( ALL + - 86 )
----
86

query I rowsort
SELECT ALL + + 32 * - 7
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT + + ( + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4458
SELECT + + ( + COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT ( + 41 ) * + 91
----
3731

query II rowsort
SELECT ALL - 22 AS col0, 28 + - + 52 AS col1
----
-22
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT SUM( DISTINCT 99 ) col0
----
99

skipif mysql # not compatible
query I rowsort label-4461
SELECT SUM ( DISTINCT 99 ) col0
----
99

query II rowsort
SELECT + 26 AS col0, 69 + - 32 + + 91 * 56 + - 51 * 43 + + + 69 AS col1
----
26
3009

query II rowsort
SELECT ALL - 38, 77 AS col0
----
-38
77

query I rowsort
SELECT 73 * 27
----
1971

onlyif mysql # aggregate syntax: 
query II rowsort label-4465
SELECT COUNT( ALL - 94 ), 38 col2
----
1
38

skipif mysql # not compatible
query II rowsort label-4465
SELECT COUNT ( ALL - 94 ), 38 col2
----
1
38

query II rowsort
SELECT ALL - 12, + 73 AS col1
----
-12
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT ALL - MAX( 86 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL - MAX ( 86 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT MAX( ALL - + 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-4468
SELECT MAX ( ALL - + 17 )
----
-17

query I rowsort
SELECT ALL 8 * + 78
----
624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4470
SELECT + CAST( NULL AS SIGNED ) * 66 - - + 1 * - - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4470
SELECT + CAST ( NULL AS INTEGER ) * 66 - - + 1 * - - 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT SUM( - 36 ) - + - ( + + 20 ) * - 62
----
-1276

skipif mysql # not compatible
query I rowsort label-4471
SELECT SUM ( - 36 ) - + - ( + + 20 ) * - 62
----
-1276

query II rowsort
SELECT + 50, 63 AS col1
----
50
63

onlyif mysql # DIV for integer division: 
query II rowsort label-4473
SELECT ALL 60 AS col1, 55 DIV - 68
----
60
0

skipif mysql # not compatible
query II rowsort label-4473
SELECT ALL 60 AS col1, 55 / - 68
----
60
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4474
SELECT DISTINCT MIN( - 12 ) + 28 * + + 40 - - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT MIN ( - 12 ) + 28 * + + 40 - - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4475
SELECT - + CAST( NULL AS DECIMAL ) - - NULLIF ( - COUNT( * ), 31 ) * + - 74 * - - CASE - COUNT( - 54 ) WHEN - ( + 33 ) + - 92 THEN - 84 + + + 46 WHEN CASE + 10 WHEN - 41 THEN - - 45 WHEN - 73 THEN 62 * + + 73 / + 88 ELSE - - 44 - - COUNT( * ) / - - 49 + - - 66 END * - - 12 THEN NULL END * + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT - + CAST ( NULL AS REAL ) - - NULLIF ( - COUNT ( * ), 31 ) * + - 74 * - - CASE - COUNT ( - 54 ) WHEN - ( + 33 ) + - 92 THEN - 84 + + + 46 WHEN CASE + 10 WHEN - 41 THEN - - 45 WHEN - 73 THEN 62 * + + 73 / + 88 ELSE - - 44 - - COUNT ( * ) / - - 49 + - - 66 END * - - 12 THEN NULL END * + - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4476
SELECT + 50 + + - CAST( 19 AS SIGNED ) col0
----
31

skipif mysql # not compatible
query I rowsort label-4476
SELECT + 50 + + - CAST ( 19 AS INTEGER ) col0
----
31

query I rowsort
SELECT ( - + 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT - 33 - + - CASE - 52 WHEN + AVG ( DISTINCT + 78 ) * + - COALESCE ( + 27, 23 + + 95 / - 81 * - + COUNT( * ) ) + - ( + 43 ) THEN NULL WHEN + COUNT( * ) * 89 THEN - 65 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT - 33 - + - CASE - 52 WHEN + AVG ( DISTINCT + 78 ) * + - COALESCE ( + 27, 23 + + 95 / - 81 * - + COUNT ( * ) ) + - ( + 43 ) THEN NULL WHEN + COUNT ( * ) * 89 THEN - 65 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT MAX( DISTINCT - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-4479
SELECT MAX ( DISTINCT - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4480
SELECT COUNT( - 4 ), 5 AS col1
----
1
5

skipif mysql # not compatible
query II rowsort label-4480
SELECT COUNT ( - 4 ), 5 AS col1
----
1
5

query I rowsort
SELECT - + ( + ( 21 ) ) col2
----
-21

query I rowsort
SELECT ALL + 86 + - 24 AS col2
----
62

query II rowsort
SELECT DISTINCT - 36 AS col0, - 69 * + 30 * ( + 69 ) AS col0
----
-36
-142830

query I rowsort
SELECT - - 31 + 58 AS col1
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4485
SELECT ALL - 25 - - COUNT( * ) DIV + COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL - 25 - - COUNT ( * ) / + COUNT ( * ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT - 79 * + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-4486
SELECT - 79 * + COUNT ( * )
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-4487
SELECT ALL + 0, + 67 DIV - - 97 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-4487
SELECT ALL + 0, + 67 / - - 97 AS col2
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4488
SELECT - 88 + + + CAST( + CASE - COUNT( * ) WHEN 55 THEN NULL ELSE 72 END AS SIGNED ) + - 58 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-4488
SELECT - 88 + + + CAST ( + CASE - COUNT ( * ) WHEN 55 THEN NULL ELSE 72 END AS INTEGER ) + - 58 AS col0
----
-74

query II rowsort
SELECT - 66, 22 AS col1
----
-66
22

onlyif mysql # aggregate syntax: 
query II rowsort label-4490
SELECT + + 34 AS col2, NULLIF ( - + COUNT( * ), - - 70 + - 90 - + + ( NULLIF ( - - 69, - + 56 ) ) * - NULLIF ( 69, - 69 ) / - 57 - + 61 )
----
34
-1

skipif mysql # not compatible
query II rowsort label-4490
SELECT + + 34 AS col2, NULLIF ( - + COUNT ( * ), - - 70 + - 90 - + + ( NULLIF ( - - 69, - + 56 ) ) * - NULLIF ( 69, - 69 ) / - 57 - + 61 )
----
34
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT ALL + 61 * - 40 * + CASE + 90 WHEN 19 THEN NULL WHEN 44 + - + 81 - + COUNT( * ) * + 96 - - - 9 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL + 61 * - 40 * + CASE + 90 WHEN 19 THEN NULL WHEN 44 + - + 81 - + COUNT ( * ) * + 96 - - - 9 THEN COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 70 * 51
----
3570

onlyif mysql # DIV for integer division: 
query I rowsort label-4493
SELECT + 9 DIV + + 62 * 61 * + ( + 20 ) + - 44
----
-44

skipif mysql # not compatible
query I rowsort label-4493
SELECT + 9 / + + 62 * 61 * + ( + 20 ) + - 44
----
-44

query I rowsort
SELECT ALL + 52 * - 23 col2
----
-1196

query I rowsort
SELECT - 90 + 38
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4496
SELECT + ( - 27 ) * - + 48 * + 83 + + NULLIF ( + 30, - 58 + - 94 + 72 + - - CAST( - 59 AS SIGNED ) - 54 ) * + - 52 * - 58 AS col2
----
198048

skipif mysql # not compatible
query I rowsort label-4496
SELECT + ( - 27 ) * - + 48 * + 83 + + NULLIF ( + 30, - 58 + - 94 + 72 + - - CAST ( - 59 AS INTEGER ) - 54 ) * + - 52 * - 58 AS col2
----
198048

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT + 72 - + ( + - 63 ) - + SUM( ALL 21 ) col0
----
114

skipif mysql # not compatible
query I rowsort label-4497
SELECT + 72 - + ( + - 63 ) - + SUM ( ALL 21 ) col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT 89 * + - 45 + + 66 * - 7 * - COUNT( * ) + - 20 AS col1
----
-3563

skipif mysql # not compatible
query I rowsort label-4498
SELECT 89 * + - 45 + + 66 * - 7 * - COUNT ( * ) + - 20 AS col1
----
-3563

onlyif mysql # aggregate syntax: 
query II rowsort label-4499
SELECT + COUNT( ALL + - 24 ) AS col2, - COUNT( * ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-4499
SELECT + COUNT ( ALL + - 24 ) AS col2, - COUNT ( * ) AS col1
----
1
-1

query I rowsort
SELECT 26 * 49 + - 24
----
1250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4501
SELECT ALL + 42 * + 67 DIV + COUNT( * ) + + MAX( 21 ) + + 30 + 57 * COUNT( * ) DIV + 11 AS col0
----
2870

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL + 42 * + 67 / + COUNT ( * ) + + MAX ( 21 ) + + 30 + 57 * COUNT ( * ) / + 11 AS col0
----
2870

query I rowsort
SELECT + 34 * - + 75
----
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT ALL - + 0 * 50 * + + 41 + + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL - + 0 * 50 * + + 41 + + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT - - CAST( + 43 AS SIGNED ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-4504
SELECT - - CAST ( + 43 AS INTEGER ) AS col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4505
SELECT - - 95 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4505
SELECT - - 95 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4506
SELECT ALL - 90 + - + COUNT( * ) AS col0, COUNT( * ) + - 45 AS col0
----
-91
-44

skipif mysql # not compatible
query II rowsort label-4506
SELECT ALL - 90 + - + COUNT ( * ) AS col0, COUNT ( * ) + - 45 AS col0
----
-91
-44

query I rowsort
SELECT ALL 40 * - 30 * - + 65 * 8 AS col1
----
624000

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL + COUNT( * ) + + 1
----
2

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL + COUNT ( * ) + + 1
----
2

query I rowsort
SELECT + 6 + 71 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT + - COUNT( * ) + 18
----
17

skipif mysql # not compatible
query I rowsort label-4510
SELECT + - COUNT ( * ) + 18
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT + CASE 21 WHEN - - 3 THEN NULL WHEN - COUNT( * ) * - + 55 * 95 THEN - 96 END - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4511
SELECT + CASE 21 WHEN - - 3 THEN NULL WHEN - COUNT ( * ) * - + 55 * 95 THEN - 96 END - 7
----
NULL

query I rowsort
SELECT - + 69 * + 32
----
-2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4513
SELECT ALL + 63 * + CASE 66 WHEN + 46 THEN NULL WHEN + - 80 * + - CAST( 81 AS SIGNED ) + COUNT( * ) * - - CAST( NULL AS SIGNED ) THEN NULL ELSE - 76 - + - 63 END AS col2
----
-819

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL + 63 * + CASE 66 WHEN + 46 THEN NULL WHEN + - 80 * + - CAST ( 81 AS INTEGER ) + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 76 - + - 63 END AS col2
----
-819

query I rowsort
SELECT - - 52 + - + 71 + - 8
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT - + COUNT( ALL - 65 )
----
-1

skipif mysql # not compatible
query I rowsort label-4515
SELECT - + COUNT ( ALL - 65 )
----
-1

query I rowsort
SELECT - + 77 + - 83
----
-160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT ALL + - 27 * + 23 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL + - 27 * + 23 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4518
SELECT - CAST( MAX( ALL - 97 ) AS SIGNED ) col0
----
97

skipif mysql # not compatible
query I rowsort label-4518
SELECT - CAST ( MAX ( ALL - 97 ) AS INTEGER ) col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT ALL NULLIF ( + NULLIF ( + - 82, CASE 94 WHEN - 99 THEN COUNT( * ) + + ( + 61 ) + + 58 END * - COUNT( * ) + - 47 ), + - 78 * - + ( 81 ) * + 38 ) col0
----
-82

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL NULLIF ( + NULLIF ( + - 82, CASE 94 WHEN - 99 THEN COUNT ( * ) + + ( + 61 ) + + 58 END * - COUNT ( * ) + - 47 ), + - 78 * - + ( 81 ) * + 38 ) col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT DISTINCT - COALESCE ( 2, - 13 + + ( - COUNT( * ) ), + 41 ) * + - 1 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT - COALESCE ( 2, - 13 + + ( - COUNT ( * ) ), + 41 ) * + - 1 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4521
SELECT ALL CAST( + 61 AS SIGNED ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL CAST ( + 61 AS INTEGER ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL 32 * - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL 32 * - COUNT ( * )
----
-32

query II rowsort
SELECT ALL + 21 AS col0, + 42
----
21
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4524
SELECT ALL + CAST( + 30 AS SIGNED ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL + CAST ( + 30 AS INTEGER ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ALL + SUM( DISTINCT - 91 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL + SUM ( DISTINCT - 91 ) AS col2
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4526
SELECT - CAST( NULL AS DECIMAL ) * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT - CAST ( NULL AS REAL ) * + 47
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4527
SELECT + 48 + - 47 * - - 78 DIV ( + 2 ) * - - COALESCE ( + + NULLIF ( - COUNT( * ), + 47 - - 7 ), + 1 ) AS col1
----
1881

skipif mysql # not compatible
query I rowsort label-4527
SELECT + 48 + - 47 * - - 78 / ( + 2 ) * - - COALESCE ( + + NULLIF ( - COUNT ( * ), + 47 - - 7 ), + 1 ) AS col1
----
1881

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4528
SELECT ALL + 25 DIV COUNT( * ) + + SUM( DISTINCT - 73 ) - + 91 + - 50 + 71 * + 34 * + 79 * 21 * + 90, 87 AS col0
----
360434151
87

skipif mysql # not compatible
query II rowsort label-4528
SELECT ALL + 25 / COUNT ( * ) + + SUM ( DISTINCT - 73 ) - + 91 + - 50 + 71 * + 34 * + 79 * 21 * + 90, 87 AS col0
----
360434151
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT DISTINCT + COUNT( * ) + - - 48 + + COUNT( * ) * - 50 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT + COUNT ( * ) + - - 48 + + COUNT ( * ) * - 50 AS col2
----
-1

query I rowsort
SELECT ALL 7 + 29 AS col2
----
36

query I rowsort
SELECT 17 * - ( - 59 ) col2
----
1003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4532
SELECT ALL - 22 + CAST( + ( - 29 ) AS SIGNED ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL - 22 + CAST ( + ( - 29 ) AS INTEGER ) AS col1
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4533
SELECT ALL - CASE + 2 WHEN + COALESCE ( + 99, COUNT( * ) - - - 0 + + COALESCE ( + CAST( NULL AS SIGNED ), - 93 + + 17 + + + 92 ) + - COUNT( * ) ) THEN NULL WHEN + + 84 THEN + 65 END + + - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL - CASE + 2 WHEN + COALESCE ( + 99, COUNT ( * ) - - - 0 + + COALESCE ( + CAST ( NULL AS INTEGER ), - 93 + + 17 + + + 92 ) + - COUNT ( * ) ) THEN NULL WHEN + + 84 THEN + 65 END + + - 37 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT 42 * - - 61 / 94 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4534
SELECT 42 * - - 61 / 94 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( + 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT + 32 + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-4536
SELECT + 32 + COUNT ( * )
----
33

query II rowsort
SELECT + + 45, + 23 col0
----
45
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL - SUM( DISTINCT + NULLIF ( 12, - - 99 * + - 78 + 97 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL - SUM ( DISTINCT + NULLIF ( 12, - - 99 * + - 78 + 97 ) )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT NULLIF ( + 41, - 23 * - - COUNT( * ) ) + - 21 col1
----
20

skipif mysql # not compatible
query I rowsort label-4539
SELECT NULLIF ( + 41, - 23 * - - COUNT ( * ) ) + - 21 col1
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4540
SELECT + ( + 40 ) DIV - COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4540
SELECT + ( + 40 ) / - COUNT ( * ) AS col1
----
-40

query II rowsort
SELECT 15 AS col0, - 55 + - 32 + 37
----
15
-50

query I rowsort
SELECT DISTINCT - 91 - + 71 AS col2
----
-162

query I rowsort
SELECT - ( - - 44 ) - - - 39
----
-83

query I rowsort
SELECT - ( + - 27 ) AS col1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4545
SELECT 17 + + + 17 DIV - 24 * - - ( - 2 ) * SUM( + NULLIF ( - 64, - 54 ) ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4545
SELECT 17 + + + 17 / - 24 * - - ( - 2 ) * SUM ( + NULLIF ( - 64, - 54 ) ) AS col2
----
17

query I rowsort
SELECT ALL + 78 * 2
----
156

query II rowsort
SELECT ALL - 7 AS col2, ( - 18 ) * + 50 AS col1
----
-7
-900

query I rowsort
SELECT - + 81 col1
----
-81

query I rowsort
SELECT CASE + 63 WHEN - - 89 / 17 / - 93 - 42 + 85 * 93 THEN - COALESCE ( - + 26, 32 ) WHEN + + COALESCE ( + + 83, - 53, - - 15 ) + 23 THEN NULL END + - 65 + - 24
----
NULL

query I rowsort
SELECT ALL + 17 * - 3 * - 15
----
765

query I rowsort
SELECT 27 * - 99
----
-2673

query I rowsort
SELECT 86 - - 85
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT ALL SUM( + + 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL SUM ( + + 82 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT DISTINCT - ( - + MAX( - 35 ) ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT - ( - + MAX ( - 35 ) ) AS col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4555
SELECT + 6 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT + 6 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4556
SELECT 2 DIV + - 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4556
SELECT 2 / + - 49 AS col0
----
0

query I rowsort
SELECT ALL 85 + + 45 AS col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT 73 + 61 + + 66 / - + CASE 61 WHEN 65 / 38 + 59 THEN - COALESCE ( - 45, + COUNT( * ) * 99 - - + 87, + NULLIF ( ( + + NULLIF ( - 10, - - 88 ) ), 52 ) + COUNT( * ) ) ELSE NULL END + + 65 + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT 73 + 61 + + 66 / - + CASE 61 WHEN 65 / 38 + 59 THEN - COALESCE ( - 45, + COUNT ( * ) * 99 - - + 87, + NULLIF ( ( + + NULLIF ( - 10, - - 88 ) ), 52 ) + COUNT ( * ) ) ELSE NULL END + + 65 + + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT ( + - COUNT( * ) ) + + 31 col1
----
30

skipif mysql # not compatible
query I rowsort label-4559
SELECT ( + - COUNT ( * ) ) + + 31 col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT MIN( ALL 91 ) + - + 4 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4560
SELECT MIN ( ALL 91 ) + - + 4 AS col0
----
87

query I rowsort
SELECT ALL + 35 * + 44
----
1540

query I rowsort
SELECT ALL + 26 + + 2 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT ALL COUNT( * ) * + ( - 74 ) * ( 34 ) + + + 28 AS col1
----
-2488

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL COUNT ( * ) * + ( - 74 ) * ( 34 ) + + + 28 AS col1
----
-2488

query I rowsort
SELECT 26 * + 50 + - 0 AS col2
----
1300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4565
SELECT ALL - 90 + - COUNT( * ) * - 32 * + 53 - - - 73 AS col2, CAST( + 32 AS SIGNED ) AS col0
----
1533
32

skipif mysql # not compatible
query II rowsort label-4565
SELECT ALL - 90 + - COUNT ( * ) * - 32 * + 53 - - - 73 AS col2, CAST ( + 32 AS INTEGER ) AS col0
----
1533
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4566
SELECT 43 - + 70 DIV - 55 - - 7 + + + 80 + - 3
----
128

skipif mysql # not compatible
query I rowsort label-4566
SELECT 43 - + 70 / - 55 - - 7 + + + 80 + - 3
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT 63 * + - COUNT( * ) + 33
----
-30

skipif mysql # not compatible
query I rowsort label-4567
SELECT 63 * + - COUNT ( * ) + 33
----
-30

query I rowsort
SELECT 52 - 16 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT + + COUNT( * ) * - 63 + - COUNT( * ) * - - 48 AS col0
----
-111

skipif mysql # not compatible
query I rowsort label-4569
SELECT + + COUNT ( * ) * - 63 + - COUNT ( * ) * - - 48 AS col0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT DISTINCT - - ( + 47 ) * + MIN( - + 16 ) + 10 + - 79
----
-821

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT - - ( + 47 ) * + MIN ( - + 16 ) + 10 + - 79
----
-821

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT ALL - + ( 25 ) - + + MAX( 63 ) + + - COUNT( * ) * - 81
----
-7

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL - + ( 25 ) - + + MAX ( 63 ) + + - COUNT ( * ) * - 81
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4572
SELECT ALL - 62 DIV 83 + + 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL - 62 / 83 + + 62 AS col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-4573
SELECT DISTINCT - + 98 * COUNT( ALL + ( - 22 ) ) col1, + COUNT( * )
----
-98
1

skipif mysql # not compatible
query II rowsort label-4573
SELECT DISTINCT - + 98 * COUNT ( ALL + ( - 22 ) ) col1, + COUNT ( * )
----
-98
1

query I rowsort
SELECT ( - + 10 ) * - ( - 4 ) + + 40
----
0

query I rowsort
SELECT + 88 * NULLIF ( 67, + 16 ) * - 9
----
-53064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4576
SELECT ALL - MIN( DISTINCT + - 11 ) * CAST( NULL AS SIGNED ) * + + NULLIF ( 51, 54 ) * + 71 + - - COUNT( * ) - - - 9 - + + 30 * + + 81 * 70 * - - 15 + + 4, CASE - ( 59 ) WHEN + CAST( NULL AS SIGNED ) + 29 THEN NULL WHEN + 93 * + - CASE 46 WHEN + + 48 THEN + COUNT( * ) WHEN - + 95 THEN NULL END + - CAST( NULL AS SIGNED ) THEN + 54 ELSE NULL END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4576
SELECT ALL - MIN ( DISTINCT + - 11 ) * CAST ( NULL AS INTEGER ) * + + NULLIF ( 51, 54 ) * + 71 + - - COUNT ( * ) - - - 9 - + + 30 * + + 81 * 70 * - - 15 + + 4, CASE - ( 59 ) WHEN + CAST ( NULL AS INTEGER ) + 29 THEN NULL WHEN + 93 * + - CASE 46 WHEN + + 48 THEN + COUNT ( * ) WHEN - + 95 THEN NULL END + - CAST ( NULL AS INTEGER ) THEN + 54 ELSE NULL END AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4577
SELECT ALL - CASE + - 38 WHEN 95 + - + CASE + 16 WHEN ( + CAST( - - 36 AS SIGNED ) ) THEN - + 27 * - 23 WHEN + 58 * + CAST( NULL AS DECIMAL ) * - COUNT( * ) / + ( - + 44 ) + + + 34 * + 89 THEN + 65 ELSE + 83 / NULLIF ( 30, + COUNT( * ) * + + COUNT( * ) ) + - + 80 + 1 END + - MAX( 85 ) + 89 * + - 50 * + - 3 THEN + CASE + CAST( NULL AS SIGNED ) WHEN - 19 THEN + - ( - - 80 ) WHEN - + CASE - + 2 WHEN - + CASE WHEN NOT ( 97 ) NOT BETWEEN - 4 AND ( + - 8 ) THEN - 90 * - CASE - + NULLIF ( - + 40, CAST( 92 AS SIGNED ) * + COUNT( * ) ) WHEN 86 THEN 74 ELSE NULL END * COUNT( * ) + - 52 END * 71 THEN - 94 ELSE + 30 END * 62 THEN NULL ELSE + 67 * 25 END * 43 WHEN + 99 THEN + COUNT( * ) / + 78 WHEN - 42 THEN - 23 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL - CASE + - 38 WHEN 95 + - + CASE + 16 WHEN ( + CAST ( - - 36 AS INTEGER ) ) THEN - + 27 * - 23 WHEN + 58 * + CAST ( NULL AS REAL ) * - COUNT ( * ) / + ( - + 44 ) + + + 34 * + 89 THEN + 65 ELSE + 83 / NULLIF ( 30, + COUNT ( * ) * + + COUNT ( * ) ) + - + 80 + 1 END + - MAX ( 85 ) + 89 * + - 50 * + - 3 THEN + CASE + CAST ( NULL AS INTEGER ) WHEN - 19 THEN + - ( - - 80 ) WHEN - + CASE - + 2 WHEN - + CASE WHEN NOT ( 97 ) NOT BETWEEN - 4 AND ( + - 8 ) THEN - 90 * - CASE - + NULLIF ( - + 40, CAST ( 92 AS INTEGER ) * + COUNT ( * ) ) WHEN 86 THEN 74 ELSE NULL END * COUNT ( * ) + - 52 END * 71 THEN - 94 ELSE + 30 END * 62 THEN NULL ELSE + 67 * 25 END * 43 WHEN + 99 THEN + COUNT ( * ) / + 78 WHEN - 42 THEN - 23 END AS col0
----
NULL

query I rowsort
SELECT 63 * + 48
----
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT - 41 + + + CASE - 83 WHEN - 39 * - 25 THEN NULL WHEN 14 * + 96 THEN + 39 + - COUNT( * ) - 0 - - 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT - 41 + + + CASE - 83 WHEN - 39 * - 25 THEN NULL WHEN 14 * + 96 THEN + 39 + - COUNT ( * ) - 0 - - 99 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4580
SELECT - 15 + + + COUNT( * ) * + - 46 * + 77 AS col0, + 77 AS col0
----
-3557
77

skipif mysql # not compatible
query II rowsort label-4580
SELECT - 15 + + + COUNT ( * ) * + - 46 * + 77 AS col0, + 77 AS col0
----
-3557
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT - 24 * + ( 28 ) * - + COUNT( * ) AS col0
----
672

skipif mysql # not compatible
query I rowsort label-4581
SELECT - 24 * + ( 28 ) * - + COUNT ( * ) AS col0
----
672

query I rowsort
SELECT 42 * + - 36 + - 10 AS col2
----
-1522

query I rowsort
SELECT DISTINCT + NULLIF ( + 62, NULLIF ( + 12, - + 31 * - 10 / - 64 ) )
----
62

query I rowsort
SELECT + 91 + + 37 + + ( + - 49 ) * - 26 + 24 * - - 29
----
2098

query I rowsort
SELECT ALL - 6 * + + 71
----
-426

query I rowsort
SELECT 76 - - 4 AS col0
----
80

query I rowsort
SELECT 18 + - 56 * 9 * + 93 AS col0
----
-46854

query I rowsort
SELECT DISTINCT 79 + - - 17
----
96

query I rowsort
SELECT DISTINCT 96 + + 3
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4590
SELECT + 37 + 76 + - 76 * - + COUNT( * ) + 60 DIV - COUNT( * ) - - - 85 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-4590
SELECT + 37 + 76 + - 76 * - + COUNT ( * ) + 60 / - COUNT ( * ) - - - 85 AS col2
----
44

query I rowsort
SELECT DISTINCT 43 * + 44 AS col2
----
1892

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4592
SELECT ALL SUM( DISTINCT - CAST( - 92 AS SIGNED ) ) DIV 89
----
1

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL SUM ( DISTINCT - CAST ( - 92 AS INTEGER ) ) / 89
----
1

query I rowsort
SELECT ALL + 10 * + 37 + + 66 + + 70
----
506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4594
SELECT CASE + + 5 WHEN - + 62 * - + COALESCE ( COUNT( * ), ( + MIN( + - 47 ) ) / - - 75 ) THEN 99 WHEN + + CASE - 87 WHEN + + COUNT( * ) * - 38 THEN NULL WHEN 43 THEN 49 / + - 44 + + + COUNT( * ) + - AVG ( 62 ) + - SUM( - - 48 ) + + 64 WHEN + - 73 + 44 THEN 25 + 65 WHEN + 30 + - 87 THEN + 46 END + + ( - 47 ) + + CAST( NULL AS SIGNED ) THEN + - 13 WHEN + ( + - CAST( NULL AS SIGNED ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4594
SELECT CASE + + 5 WHEN - + 62 * - + COALESCE ( COUNT ( * ), ( + MIN ( + - 47 ) ) / - - 75 ) THEN 99 WHEN + + CASE - 87 WHEN + + COUNT ( * ) * - 38 THEN NULL WHEN 43 THEN 49 / + - 44 + + + COUNT ( * ) + - AVG ( 62 ) + - SUM ( - - 48 ) + + 64 WHEN + - 73 + 44 THEN 25 + 65 WHEN + 30 + - 87 THEN + 46 END + + ( - 47 ) + + CAST ( NULL AS INTEGER ) THEN + - 13 WHEN + ( + - CAST ( NULL AS INTEGER ) ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT - 42 * - COUNT( 98 )
----
42

skipif mysql # not compatible
query I rowsort label-4595
SELECT - 42 * - COUNT ( 98 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT CASE 47 WHEN - 90 * + COUNT( * ) + + 66 THEN + ( + 6 ) + + 78 * + + 95 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4596
SELECT CASE 47 WHEN - 90 * + COUNT ( * ) + + 66 THEN + ( + 6 ) + + 78 * + + 95 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4597
SELECT + NULLIF ( + ( + 47 ), + COUNT( * ) ) DIV + - 14 + + 36 - + - 96
----
129

skipif mysql # not compatible
query I rowsort label-4597
SELECT + NULLIF ( + ( + 47 ), + COUNT ( * ) ) / + - 14 + + 36 - + - 96
----
129

onlyif mysql # aggregate syntax: 
query II rowsort label-4598
SELECT + NULLIF ( COUNT( * ), + 6 * + 62 + - 51 ), + 28 AS col2
----
1
28

skipif mysql # not compatible
query II rowsort label-4598
SELECT + NULLIF ( COUNT ( * ), + 6 * + 62 + - 51 ), + 28 AS col2
----
1
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT - 35 + - + COUNT( * ) - + 59
----
-95

skipif mysql # not compatible
query I rowsort label-4599
SELECT - 35 + - + COUNT ( * ) - + 59
----
-95

query I rowsort
SELECT DISTINCT + 0 * + 74 - 3
----
-3

query I rowsort
SELECT + 6 * 60
----
360

query I rowsort
SELECT ALL 88 * NULLIF ( 64, 79 )
----
5632

query I rowsort
SELECT NULLIF ( 29, - 16 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT COALESCE ( + 36, COUNT( DISTINCT + 90 ), + 58 * - 80 + 36, - 84 * - 22 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4604
SELECT COALESCE ( + 36, COUNT ( DISTINCT + 90 ), + 58 * - 80 + 36, - 84 * - 22 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT ALL + COUNT( 12 )
----
1

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL + COUNT ( 12 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4606
SELECT - CAST( NULL AS SIGNED ) * 22 - 22 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT - CAST ( NULL AS INTEGER ) * 22 - 22 col1
----
NULL

query I rowsort
SELECT + 63 - 61
----
2

query I rowsort
SELECT - 69 * - 86 AS col2
----
5934

onlyif mysql # DIV for integer division: 
query I rowsort label-4609
SELECT ALL + ( COALESCE ( + 72, - 34 DIV - 6 ) )
----
72

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL + ( COALESCE ( + 72, - 34 / - 6 ) )
----
72

query I rowsort
SELECT 6 * 43 + 3 AS col0
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT DISTINCT + COUNT( - 28 )
----
1

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT + COUNT ( - 28 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT + 75 * COUNT( * ) - + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-4612
SELECT + 75 * COUNT ( * ) - + COUNT ( * )
----
74

query I rowsort
SELECT DISTINCT + 43 + 78
----
121

query I rowsort
SELECT ALL ( + 45 ) AS col0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4615
SELECT - COALESCE ( 3, 14 + 49 * 14 ) DIV - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4615
SELECT - COALESCE ( 3, 14 + 49 * 14 ) / - 98 AS col1
----
0

query I rowsort
SELECT ALL + 25 + + 85
----
110

query I rowsort
SELECT ALL + 7 + ( 14 ) AS col0
----
21

query I rowsort
SELECT ALL ( ( - 69 ) ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT - CASE 85 WHEN 60 - 71 THEN NULL WHEN + AVG ( 7 ) * COUNT( * ) THEN MAX( + 64 ) END / 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4619
SELECT - CASE 85 WHEN 60 - 71 THEN NULL WHEN + AVG ( 7 ) * COUNT ( * ) THEN MAX ( + 64 ) END / 92
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4620
SELECT + 73 DIV 57
----
1

skipif mysql # not compatible
query I rowsort label-4620
SELECT + 73 / 57
----
1

query I rowsort
SELECT + 32 - 5 AS col0
----
27

query I rowsort
SELECT + 49 * + 38 AS col0
----
1862

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4623
SELECT ALL - COUNT( * ) + - 84 DIV COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL - COUNT ( * ) + - 84 / COUNT ( * )
----
-85

query I rowsort
SELECT DISTINCT NULLIF ( 77, + ( AVG ( 19 ) ) * 55 )
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4625
SELECT - 37 DIV 36 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4625
SELECT - 37 / 36 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT DISTINCT ( - COALESCE ( CASE WHEN NOT 21 IS NULL THEN NULL ELSE - CASE 12 WHEN + COUNT( DISTINCT + 28 ) * COUNT( * ) THEN NULL WHEN COUNT( * ) THEN + 39 WHEN 20 * COALESCE ( - ( SUM( ALL - 73 ) ) / 27, 31 ) THEN NULL ELSE + 78 END + 62 * + 11 END, + MAX( DISTINCT + 94 ) * 73 ) )
----
-6862

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT ( - COALESCE ( CASE WHEN NOT 21 IS NULL THEN NULL ELSE - CASE 12 WHEN + COUNT ( DISTINCT + 28 ) * COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN + 39 WHEN 20 * COALESCE ( - ( SUM ( ALL - 73 ) ) / 27, 31 ) THEN NULL ELSE + 78 END + 62 * + 11 END, + MAX ( DISTINCT + 94 ) * 73 ) )
----
-6862

query I rowsort
SELECT - 72 + 69 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT DISTINCT COUNT( * ) * + 53
----
53

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT COUNT ( * ) * + 53
----
53

query I rowsort
SELECT + 83 * 5
----
415

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT DISTINCT COUNT( ALL - 58 ) * 35 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT COUNT ( ALL - 58 ) * 35 AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4631
SELECT - 54 + - CAST( 21 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-4631
SELECT - 54 + - CAST ( 21 AS INTEGER )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT + COUNT( * ) * 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4632
SELECT + COUNT ( * ) * 67 AS col2
----
67

query I rowsort
SELECT + ( ( + 74 ) )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4634
SELECT DISTINCT + 55 DIV COUNT( * ) - + 89
----
-34

skipif mysql # not compatible
query I rowsort label-4634
SELECT DISTINCT + 55 / COUNT ( * ) - + 89
----
-34

query I rowsort
SELECT 64 * 21 + + 28
----
1372

query I rowsort
SELECT ALL + ( + 4 ) AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4637
SELECT + 10 * + 89 + - CASE CAST( 80 AS DECIMAL ) WHEN 52 THEN 7 * + CAST( + 94 AS SIGNED ) END * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-4637
SELECT + 10 * + 89 + - CASE CAST ( 80 AS REAL ) WHEN 52 THEN 7 * + CAST ( + 94 AS INTEGER ) END * + 2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4638
SELECT 76 DIV COALESCE ( ( - 21 ), 0 + 85, COUNT( * ) + 40 DIV 76, 21 + 59 * + 23 ) + ( + 9 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4638
SELECT 76 / COALESCE ( ( - 21 ), 0 + 85, COUNT ( * ) + 40 / 76, 21 + 59 * + 23 ) + ( + 9 ) AS col0
----
6

query I rowsort
SELECT - 87 + - 79 * + 13
----
-1114

onlyif mysql # DIV for integer division: 
query I rowsort label-4640
SELECT + 92 DIV 64 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4640
SELECT + 92 / 64 AS col0
----
1

query I rowsort
SELECT + CASE + 16 WHEN - 38 THEN - 83 ELSE - 54 END + + 80 AS col1
----
26

query I rowsort
SELECT + + 85 - 87
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT ALL - 80 DIV - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL - 80 / - 83 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT 16 * 65 + + COUNT( ALL - 52 ) AS col2
----
1041

skipif mysql # not compatible
query I rowsort label-4644
SELECT 16 * 65 + + COUNT ( ALL - 52 ) AS col2
----
1041

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT COUNT( * ) * 33 + 78 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-4645
SELECT COUNT ( * ) * 33 + 78 AS col0
----
111

query I rowsort
SELECT + + 99 * + 99
----
9801

query I rowsort
SELECT + + 41 * 69 AS col1
----
2829

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT + + 88 * 92 + CASE MIN( 41 ) - 52 WHEN + 31 - 97 / + 23 THEN + 94 * 31 + 18 END / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT + + 88 * 92 + CASE MIN ( 41 ) - 52 WHEN + 31 - 97 / + 23 THEN + 94 * 31 + 18 END / COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 30 * 4 col0
----
-120

query I rowsort
SELECT - ( - ( ( + ( 47 ) ) ) ) AS col0
----
47

query I rowsort
SELECT ALL 6 * 90
----
540

query I rowsort
SELECT ALL + 24 * 45 + + 77
----
1157

query I rowsort
SELECT + 50 + - COALESCE ( + 58 - ( - 20 ), + 36 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT DISTINCT - MAX( 56 ) * 15 + 49 * + 58
----
2002

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT - MAX ( 56 ) * 15 + 49 * + 58
----
2002

query I rowsort
SELECT DISTINCT 76 * 89 + + 4
----
6768

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL - 95 * + COUNT( * ) + - COUNT( - 80 )
----
-96

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL - 95 * + COUNT ( * ) + - COUNT ( - 80 )
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4657
SELECT ALL + COALESCE ( 70, 6 DIV ( + NULLIF ( ( 77 ), - 35 - - 84 ) ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL + COALESCE ( 70, 6 / ( + NULLIF ( ( 77 ), - 35 - - 84 ) ) ) AS col2
----
70

query I rowsort
SELECT - - 34 + + 75
----
109

query I rowsort
SELECT ALL - 39 + - 65 * 53
----
-3484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4660
SELECT ALL + ( + + 97 ) + CASE + CAST( NULL AS SIGNED ) WHEN MAX( 56 ) THEN + 43 WHEN 10 * 43 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL + ( + + 97 ) + CASE + CAST ( NULL AS INTEGER ) WHEN MAX ( 56 ) THEN + 43 WHEN 10 * 43 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 11 * - - 35
----
385

query I rowsort
SELECT ALL + 67 * 70 AS col0
----
4690

query I rowsort
SELECT 17 + 37
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT DISTINCT + 94 - - + 42 * - COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT + 94 - - + 42 * - COUNT ( * ) AS col2
----
52

query I rowsort
SELECT 27 + - 4 * 48 AS col1
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT ALL + MAX( 60 ) - + 62
----
-2

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL + MAX ( 60 ) - + 62
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4667
SELECT CAST( NULL AS SIGNED ) * - 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4667
SELECT CAST ( NULL AS INTEGER ) * - 62 AS col2
----
NULL

query I rowsort
SELECT 36 * - 24
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT 10 - - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-4669
SELECT 10 - - COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT 52 + - + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4670
SELECT 52 + - + COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT CASE - COALESCE ( ( - COUNT( * ) ), + 55 * 2 ) WHEN + 72 THEN - 61 END / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4671
SELECT CASE - COALESCE ( ( - COUNT ( * ) ), + 55 * 2 ) WHEN + 72 THEN - 61 END / COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 26 * - 4 AS col1
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4673
SELECT ALL + COUNT( * ) DIV 22 col2
----
0

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL + COUNT ( * ) / 22 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4674
SELECT DISTINCT - 14 DIV + - 81
----
0

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT - 14 / + - 81
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4675
SELECT 45 DIV + + 95 col1
----
0

skipif mysql # not compatible
query I rowsort label-4675
SELECT 45 / + + 95 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4676
SELECT ALL 70 * ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL 70 * ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT + - ( - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4677
SELECT + - ( - COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT - + 11 AS col0
----
-11

query I rowsort
SELECT + - CASE - - ( - 17 ) WHEN 98 THEN + 70 WHEN + 19 * 74 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT + ( + 97 ) * + 83 AS col0
----
8051

onlyif mysql # DIV for integer division: 
query I rowsort label-4681
SELECT ALL + - 78 * + 5 + 17 DIV 62 AS col1
----
-390

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL + - 78 * + 5 + 17 / 62 AS col1
----
-390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4682
SELECT CAST( - 13 AS SIGNED ) * + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-4682
SELECT CAST ( - 13 AS INTEGER ) * + COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT DISTINCT COUNT( * ) + ( + ( + 96 ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4683
SELECT DISTINCT COUNT ( * ) + ( + ( + 96 ) ) AS col0
----
97

query I rowsort
SELECT ALL 51 + - + 11 * - 8
----
139

query I rowsort
SELECT DISTINCT - ( + ( - 87 ) ) col0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4686
SELECT + ( + 87 ) DIV - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4686
SELECT + ( + 87 ) / - 89 AS col1
----
0

query I rowsort
SELECT ALL + 90 + 54 col0
----
144

query I rowsort
SELECT DISTINCT - NULLIF ( - + 0, + 71 ) + - 21
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT ALL - + SUM( DISTINCT - + 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL - + SUM ( DISTINCT - + 65 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT ALL ( - 91 ) + + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL ( - 91 ) + + COUNT ( * )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4691
SELECT ALL 92 DIV 21 * COALESCE ( NULLIF ( + 48, + 39 ), + 39 )
----
192

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL 92 / 21 * COALESCE ( NULLIF ( + 48, + 39 ), + 39 )
----
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4692
SELECT + - 83 * 2 - - 27 DIV COUNT( * ) + 99 DIV - 15
----
-145

skipif mysql # not compatible
query I rowsort label-4692
SELECT + - 83 * 2 - - 27 / COUNT ( * ) + 99 / - 15
----
-145

query I rowsort
SELECT ALL - + NULLIF ( + - 58, - 55 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4694
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) / + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) / + 1 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4695
SELECT ALL - 74 DIV - 40
----
1

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL - 74 / - 40
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT MAX( ALL - - 45 ) + 52 * - 54 col1
----
-2763

skipif mysql # not compatible
query I rowsort label-4696
SELECT MAX ( ALL - - 45 ) + 52 * - 54 col1
----
-2763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4697
SELECT COALESCE ( + 97, + 53 * - CAST( 10 AS SIGNED ) ) * 86
----
8342

skipif mysql # not compatible
query I rowsort label-4697
SELECT COALESCE ( + 97, + 53 * - CAST ( 10 AS INTEGER ) ) * 86
----
8342

query I rowsort
SELECT DISTINCT 76 + + + 34
----
110

query I rowsort
SELECT DISTINCT - 24 * + 1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4700
SELECT ( - 84 ) + + COUNT( * ) + - CASE CAST( 88 AS SIGNED ) WHEN - 3 + COUNT( * ) THEN NULL WHEN - 43 THEN NULL WHEN + 12 THEN 81 * - CASE 62 WHEN + COUNT( * ) THEN 29 * 97 + 61 ELSE - 74 * + 56 END ELSE NULL END / 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT ( - 84 ) + + COUNT ( * ) + - CASE CAST ( 88 AS INTEGER ) WHEN - 3 + COUNT ( * ) THEN NULL WHEN - 43 THEN NULL WHEN + 12 THEN 81 * - CASE 62 WHEN + COUNT ( * ) THEN 29 * 97 + 61 ELSE - 74 * + 56 END ELSE NULL END / 43
----
NULL

query II rowsort
SELECT 92 AS col1, 67 AS col2
----
92
67

query I rowsort
SELECT 30 + + ( 22 ) * 19
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT ( + 55 ) + + + 88 + 59 * - COUNT( DISTINCT 25 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4703
SELECT ( + 55 ) + + + 88 + 59 * - COUNT ( DISTINCT 25 ) AS col1
----
84

query I rowsort
SELECT 46 * COALESCE ( 34, - 29 * + 72, 69 ) * 64 AS col2
----
100096

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT COUNT( * ) + - - 20 + 47 * 24 AS col1
----
1149

skipif mysql # not compatible
query I rowsort label-4705
SELECT COUNT ( * ) + - - 20 + 47 * 24 AS col1
----
1149

query I rowsort
SELECT 55 - - - 79 AS col0
----
-24

query I rowsort
SELECT ALL + 45 - - 26
----
71

query II rowsort
SELECT ALL 51, 43 col0
----
51
43

query I rowsort
SELECT DISTINCT - 18 * - 38
----
684

query I rowsort
SELECT 61 * + 98 AS col0
----
5978

query I rowsort
SELECT 32 + - + 40
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT - MAX( - - ( - + 35 ) )
----
35

skipif mysql # not compatible
query I rowsort label-4712
SELECT - MAX ( - - ( - + 35 ) )
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-4713
SELECT 24 AS col0, + 93 * - COUNT( * )
----
24
-93

skipif mysql # not compatible
query II rowsort label-4713
SELECT 24 AS col0, + 93 * - COUNT ( * )
----
24
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT 37 - + COUNT( * ) + - 29 + - 85 * - 99
----
8422

skipif mysql # not compatible
query I rowsort label-4714
SELECT 37 - + COUNT ( * ) + - 29 + - 85 * - 99
----
8422

query I rowsort
SELECT - 83 + - 39 AS col2
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT 83 * + - 24 * COUNT( * )
----
-1992

skipif mysql # not compatible
query I rowsort label-4716
SELECT 83 * + - 24 * COUNT ( * )
----
-1992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4717
SELECT 86 + - 63 - 50 DIV + COUNT( * ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-4717
SELECT 86 + - 63 - 50 / + COUNT ( * ) AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT 17 + - SUM( + 65 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-4718
SELECT 17 + - SUM ( + 65 ) AS col1
----
-48

query I rowsort
SELECT ALL + - 59 * - COALESCE ( 61, - 12, 8 ) + + 53 * - 22 AS col2
----
2433

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT + 42 DIV - - 51 + - 84 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-4720
SELECT + 42 / - - 51 + - 84 AS col2
----
-84

query I rowsort
SELECT 1 + - - 99 * - 57
----
-5642

query I rowsort
SELECT ALL 59 * - 92 + - - NULLIF ( 23, + 69 )
----
-5405

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT - CASE - SUM( + 96 ) WHEN 28 / NULLIF ( + 51 * - 51, 86 ) THEN - 20 ELSE NULL END * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT - CASE - SUM ( + 96 ) WHEN 28 / NULLIF ( + 51 * - 51, 86 ) THEN - 20 ELSE NULL END * + 57
----
NULL

query I rowsort
SELECT 32 + 24 + - - 77 + + 34 * 70 * 22 * + 32 AS col2
----
1675653

onlyif mysql # aggregate syntax: 
query II rowsort label-4725
SELECT + 38 AS col1, - 84 * - + COUNT( * )
----
38
84

skipif mysql # not compatible
query II rowsort label-4725
SELECT + 38 AS col1, - 84 * - + COUNT ( * )
----
38
84

query I rowsort
SELECT DISTINCT + + 74 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT DISTINCT - 7 * + 89 - COUNT( * ) AS col0
----
-624

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT - 7 * + 89 - COUNT ( * ) AS col0
----
-624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4728
SELECT ALL + COALESCE ( + + 68, + - 96 * - COUNT( * ), ( - ( + CAST( + COUNT( * ) AS SIGNED ) ) ) + + 47 * - 88 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL + COALESCE ( + + 68, + - 96 * - COUNT ( * ), ( - ( + CAST ( + COUNT ( * ) AS INTEGER ) ) ) + + 47 * - 88 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4729
SELECT DISTINCT + ( - - 60 ) AS col2, - MIN( DISTINCT - 36 )
----
60
36

skipif mysql # not compatible
query II rowsort label-4729
SELECT DISTINCT + ( - - 60 ) AS col2, - MIN ( DISTINCT - 36 )
----
60
36

onlyif mysql # aggregate syntax: 
query II rowsort label-4730
SELECT SUM( + + 92 ) AS col2, - 59
----
92
-59

skipif mysql # not compatible
query II rowsort label-4730
SELECT SUM ( + + 92 ) AS col2, - 59
----
92
-59

query I rowsort
SELECT - 78 + + 78
----
0

query I rowsort
SELECT - 55 + 18
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4733
SELECT - MAX( CAST( + 85 AS SIGNED ) ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-4733
SELECT - MAX ( CAST ( + 85 AS INTEGER ) ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT + NULLIF ( - - 66, - 80 + COUNT( * ) / - 99 ) + - 71 * 58 AS col2
----
-4052

skipif mysql # not compatible
query I rowsort label-4734
SELECT + NULLIF ( - - 66, - 80 + COUNT ( * ) / - 99 ) + - 71 * 58 AS col2
----
-4052

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT ALL 1 * + COALESCE ( - NULLIF ( - - 22, 20 / + 83 ), + COUNT( * ) + + 26, - 94 + + 8 ) * 84 AS col0
----
-1848

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL 1 * + COALESCE ( - NULLIF ( - - 22, 20 / + 83 ), + COUNT ( * ) + + 26, - 94 + + 8 ) * 84 AS col0
----
-1848

onlyif mysql # DIV for integer division: 
query I rowsort label-4736
SELECT + 7 DIV - - 88
----
0

skipif mysql # not compatible
query I rowsort label-4736
SELECT + 7 / - - 88
----
0

query I rowsort
SELECT ALL 19 * ( + 46 )
----
874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4738
SELECT 68 * + 78 + + - ( - CAST( 73 AS SIGNED ) )
----
5377

skipif mysql # not compatible
query I rowsort label-4738
SELECT 68 * + 78 + + - ( - CAST ( 73 AS INTEGER ) )
----
5377

query I rowsort
SELECT - COALESCE ( + - 96, + 32 ) AS col2
----
96

query I rowsort
SELECT + 53 * - - 34 AS col1
----
1802

onlyif mysql # DIV for integer division: 
query II rowsort label-4741
SELECT + 70 + - + 40, 72 + 6 * + ( - 73 DIV - 11 - - 69 ) AS col0
----
30
522

skipif mysql # not compatible
query II rowsort label-4741
SELECT + 70 + - + 40, 72 + 6 * + ( - 73 / - 11 - - 69 ) AS col0
----
30
522

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT - NULLIF ( - ( - 7 ), 91 + 78 ) + MAX( DISTINCT 48 )
----
41

skipif mysql # not compatible
query I rowsort label-4742
SELECT - NULLIF ( - ( - 7 ), 91 + 78 ) + MAX ( DISTINCT 48 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT - MIN( ALL - NULLIF ( - - 52, + - 62 / 57 ) )
----
52

skipif mysql # not compatible
query I rowsort label-4743
SELECT - MIN ( ALL - NULLIF ( - - 52, + - 62 / 57 ) )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4744
SELECT ALL + COALESCE ( + + 87, - + COALESCE ( - 88, + 44, 83 ) ) + + CAST( NULL AS SIGNED ) / - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL + COALESCE ( + + 87, - + COALESCE ( - 88, + 44, 83 ) ) + + CAST ( NULL AS INTEGER ) / - 57
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4745
SELECT DISTINCT - 1 * + 49 col1, SUM( DISTINCT - 97 ) * 85 AS col1
----
-49
-8245

skipif mysql # not compatible
query II rowsort label-4745
SELECT DISTINCT - 1 * + 49 col1, SUM ( DISTINCT - 97 ) * 85 AS col1
----
-49
-8245

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT ALL + COUNT( * ) + 57 * 74 AS col1
----
4219

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL + COUNT ( * ) + 57 * 74 AS col1
----
4219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4747
SELECT ALL - COALESCE ( 40, - 51 ) + - + NULLIF ( CASE - 38 WHEN CAST( + 62 AS SIGNED ) THEN - 95 * + 39 ELSE NULL END, - 58 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL - COALESCE ( 40, - 51 ) + - + NULLIF ( CASE - 38 WHEN CAST ( + 62 AS INTEGER ) THEN - 95 * + 39 ELSE NULL END, - 58 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT ALL - - COUNT( * ) * + 44 + + 99 + + 59
----
202

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL - - COUNT ( * ) * + 44 + + 99 + + 59
----
202

query I rowsort
SELECT DISTINCT 95 * 68 + + + 51
----
6511

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4750
SELECT + CASE + + CASE 23 WHEN - NULLIF ( NULLIF ( 90, 13 + 97 ), - 27 * COUNT( * ) ) THEN - 32 ELSE - ( ( - 2 ) ) + - COUNT( * ) END WHEN ( 32 ) THEN COUNT( * ) * + MIN( 30 ) + 37 * 7 WHEN + 41 THEN NULL ELSE + 73 + + SUM( 32 ) END DIV COALESCE ( + 72, 42 * 46 ) - + 51 DIV + NULLIF ( + COUNT( * ) + + 70, + 81 + - 52 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4750
SELECT + CASE + + CASE 23 WHEN - NULLIF ( NULLIF ( 90, 13 + 97 ), - 27 * COUNT ( * ) ) THEN - 32 ELSE - ( ( - 2 ) ) + - COUNT ( * ) END WHEN ( 32 ) THEN COUNT ( * ) * + MIN ( 30 ) + 37 * 7 WHEN + 41 THEN NULL ELSE + 73 + + SUM ( 32 ) END / COALESCE ( + 72, 42 * 46 ) - + 51 / + NULLIF ( + COUNT ( * ) + + 70, + 81 + - 52 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4751
SELECT ( - NULLIF ( + ( - + 1 ), CAST( NULL AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4751
SELECT ( - NULLIF ( + ( - + 1 ), CAST ( NULL AS INTEGER ) ) )
----
1

query I rowsort
SELECT ALL - - 19 * 21 * - 47 * + 27 + 86 * - 98 AS col1
----
-514759

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4753
SELECT + 83 DIV - SUM( 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-4753
SELECT + 83 / - SUM ( 51 )
----
-1

query II rowsort
SELECT - 53 * - 74, 3 AS col1
----
3922
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT - MAX( + ( 30 ) ) * 50
----
-1500

skipif mysql # not compatible
query I rowsort label-4755
SELECT - MAX ( + ( 30 ) ) * 50
----
-1500

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT ALL - 46 DIV 65 - - 67 - ( 79 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - 46 / 65 - - 67 - ( 79 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT DISTINCT - ( + COUNT( * ) ) * + 6
----
-6

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT - ( + COUNT ( * ) ) * + 6
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4758
SELECT ALL - CAST( NULL AS SIGNED ) * 63 AS col1, - ( 10 ) AS col1
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-4758
SELECT ALL - CAST ( NULL AS INTEGER ) * 63 AS col1, - ( 10 ) AS col1
----
NULL
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4759
SELECT DISTINCT + + 94 DIV - 3
----
-31

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT + + 94 / - 3
----
-31

query I rowsort
SELECT ALL + + ( 45 )
----
45

query I rowsort
SELECT - + 61 * - 99
----
6039

onlyif mysql # aggregate syntax: 
query II rowsort label-4762
SELECT ALL + 91 * COUNT( * ) AS col0, NULLIF ( - 21, - 33 / - 15 + - 44 )
----
91
-21

skipif mysql # not compatible
query II rowsort label-4762
SELECT ALL + 91 * COUNT ( * ) AS col0, NULLIF ( - 21, - 33 / - 15 + - 44 )
----
91
-21

query II rowsort
SELECT ( 41 ) AS col0, ( + 86 ) AS col1
----
41
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4764
SELECT ( CAST( NULLIF ( - 6, 0 * 87 ) AS SIGNED ) )
----
-6

skipif mysql # not compatible
query I rowsort label-4764
SELECT ( CAST ( NULLIF ( - 6, 0 * 87 ) AS INTEGER ) )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT DISTINCT + COUNT( 14 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT + COUNT ( 14 ) AS col1
----
1

query I rowsort
SELECT 44 * 13 + 67
----
639

query I rowsort
SELECT - 37 + + 31 AS col2
----
-6

query I rowsort
SELECT - 38 * + + 44 - 40 AS col1
----
-1712

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4769
SELECT COALESCE ( - 66, + + 77 ) col1, CAST( NULL AS SIGNED ) AS col0
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-4769
SELECT COALESCE ( - 66, + + 77 ) col1, CAST ( NULL AS INTEGER ) AS col0
----
-66
NULL

query I rowsort
SELECT - 14 + 3 AS col0
----
-11

query I rowsort
SELECT - 31 * 72
----
-2232

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT ALL - 72 * + COALESCE ( - - 4, COUNT( * ) )
----
-288

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL - 72 * + COALESCE ( - - 4, COUNT ( * ) )
----
-288

query I rowsort
SELECT ALL + CASE + - 84 WHEN - 18 THEN NULL ELSE + 93 END
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT + MAX( - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-4774
SELECT + MAX ( - 62 )
----
-62

query II rowsort
SELECT ALL + 10 AS col1, - 99 col0
----
10
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4776
SELECT ALL - CAST( NULL AS DECIMAL ) * - + MAX( DISTINCT - 51 ) * MIN( DISTINCT - - 9 ) * - ( - COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL - CAST ( NULL AS REAL ) * - + MAX ( DISTINCT - 51 ) * MIN ( DISTINCT - - 9 ) * - ( - COUNT ( * ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT - CASE + 19 WHEN + 83 / - + 45 + + - 0 + + 78 THEN NULL ELSE 68 * CASE MIN( - 95 ) WHEN 40 THEN - CASE 85 WHEN - 61 * COUNT( 87 ) THEN NULL WHEN - 40 THEN NULL ELSE 18 END * 9 END END + + 92 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4777
SELECT - CASE + 19 WHEN + 83 / - + 45 + + - 0 + + 78 THEN NULL ELSE 68 * CASE MIN ( - 95 ) WHEN 40 THEN - CASE 85 WHEN - 61 * COUNT ( 87 ) THEN NULL WHEN - 40 THEN NULL ELSE 18 END * 9 END END + + 92 * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + 47 * 45 + - 62 AS col1
----
2053

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT MIN( DISTINCT 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4779
SELECT MIN ( DISTINCT 21 ) AS col0
----
21

query I rowsort
SELECT - 65 * + 75 AS col2
----
-4875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4781
SELECT - 24 + CASE + 90 WHEN COUNT( * ) * CAST( 59 AS SIGNED ) + - 33 * + 13 THEN 55 / - 24 + + 76 / 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4781
SELECT - 24 + CASE + 90 WHEN COUNT ( * ) * CAST ( 59 AS INTEGER ) + - 33 * + 13 THEN 55 / - 24 + + 76 / 75 END
----
NULL

query I rowsort
SELECT - ( - 50 ) AS col1
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4783
SELECT + NULLIF ( - - 22, - + 30 * - 85 ) - 9 DIV - MIN( + 92 * 42 + 94 DIV 88 )
----
22

skipif mysql # not compatible
query I rowsort label-4783
SELECT + NULLIF ( - - 22, - + 30 * - 85 ) - 9 / - MIN ( + 92 * 42 + 94 / 88 )
----
22

query II rowsort
SELECT ALL 12 * + 3 * + 36 AS col0, 39
----
1296
39

query I rowsort
SELECT ALL + 10 + - + 14 AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4786
SELECT DISTINCT - CAST( - 17 AS SIGNED ) + - - 51 - - 16 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT - CAST ( - 17 AS INTEGER ) + - - 51 - - 16 AS col0
----
84

query I rowsort
SELECT ALL + 72 + + 56 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT + 87 - - - 75 * 63 * COUNT( * ) col1
----
-4638

skipif mysql # not compatible
query I rowsort label-4788
SELECT + 87 - - - 75 * 63 * COUNT ( * ) col1
----
-4638

query I rowsort
SELECT DISTINCT - 61 + + ( + 52 ) * - + 57 AS col1
----
-3025

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ALL - COUNT( * ) * + 85
----
-85

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL - COUNT ( * ) * + 85
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4791
SELECT + 1 DIV + + 19 + - NULLIF ( + - 85, 92 * - 87 - - MIN( 57 ) )
----
85

skipif mysql # not compatible
query I rowsort label-4791
SELECT + 1 / + + 19 + - NULLIF ( + - 85, 92 * - 87 - - MIN ( 57 ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT DISTINCT 40 + 33 * - - 80 - ( COUNT( * ) ) + - 32
----
2647

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT 40 + 33 * - - 80 - ( COUNT ( * ) ) + - 32
----
2647

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT DISTINCT CASE + 6 WHEN - SUM( ALL 5 ) * - 74 * AVG ( - ( 89 ) ) + - 74 * - 30 THEN - COALESCE ( - 24, + 56 * COUNT( * ) ) WHEN - 33 - 58 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT CASE + 6 WHEN - SUM ( ALL 5 ) * - 74 * AVG ( - ( 89 ) ) + - 74 * - 30 THEN - COALESCE ( - 24, + 56 * COUNT ( * ) ) WHEN - 33 - 58 THEN NULL END
----
NULL

query I rowsort
SELECT - 54 + 82 AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4795
SELECT + - 0 * + 97 + 78 / - 16 + NULLIF ( - 0, - 51 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT + - 0 * + 97 + 78 / - 16 + NULLIF ( - 0, - 51 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT + NULLIF ( 41, - + MIN( + 60 ) * + COUNT( * ) ) - - 28 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-4796
SELECT + NULLIF ( 41, - + MIN ( + 60 ) * + COUNT ( * ) ) - - 28 AS col1
----
69

query I rowsort
SELECT ALL - ( + 60 ) AS col0
----
-60

query I rowsort
SELECT 72 + - - 56 * 13 * + 93 * + 90 AS col1
----
6093432

onlyif mysql # DIV for integer division: 
query I rowsort label-4799
SELECT COALESCE ( 80, + + ( + 70 ) ) * - ( - 8 ) + 58 DIV 77
----
640

skipif mysql # not compatible
query I rowsort label-4799
SELECT COALESCE ( 80, + + ( + 70 ) ) * - ( - 8 ) + 58 / 77
----
640

onlyif mysql # DIV for integer division: 
query I rowsort label-4800
SELECT + 94 + - 43 DIV - + 23 - - + 82 + + 81 DIV - 42
----
176

skipif mysql # not compatible
query I rowsort label-4800
SELECT + 94 + - 43 / - + 23 - - + 82 + + 81 / - 42
----
176

query I rowsort
SELECT ALL - ( - + 51 ) AS col0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4802
SELECT DISTINCT CAST( 13 AS SIGNED ) - - MAX( - 59 ) col1
----
-46

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT CAST ( 13 AS INTEGER ) - - MAX ( - 59 ) col1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4803
SELECT 15 DIV - + NULLIF ( + 88, 59 ) + - 20 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-4803
SELECT 15 / - + NULLIF ( + 88, 59 ) + - 20 AS col0
----
-20

query II rowsort
SELECT ALL - - 70, 57 col1
----
70
57

query II rowsort
SELECT + - 71, + 55 + 70 AS col2
----
-71
125

query I rowsort
SELECT ALL 14 * + 72 AS col1
----
1008

onlyif mysql # aggregate syntax: 
query II rowsort label-4807
SELECT ALL - 81, - NULLIF ( + - 52, + + 39 / + - 51 ) * SUM( DISTINCT 52 ) AS col0
----
-81
2704

skipif mysql # not compatible
query II rowsort label-4807
SELECT ALL - 81, - NULLIF ( + - 52, + + 39 / + - 51 ) * SUM ( DISTINCT 52 ) AS col0
----
-81
2704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4808
SELECT ( - CAST( NULL AS SIGNED ) ) / - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4808
SELECT ( - CAST ( NULL AS INTEGER ) ) / - 66 AS col2
----
NULL

query II rowsort
SELECT 97, 3 AS col1
----
97
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4810
SELECT ALL 96 + + 77 DIV + 42 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL 96 + + 77 / + 42 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL - COUNT( - 48 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL - COUNT ( - 48 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4812
SELECT DISTINCT 48 + + 97 * + 57 + - 21 + + + 46 * + 80 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT 48 + + 97 * + 57 + - 21 + + + 46 * + 80 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4813
SELECT DISTINCT + 68 + + + 64 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT + 68 + + + 64 * - CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT + 38 col1, 19
----
38
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4815
SELECT ALL - CAST( NULL AS SIGNED ) + - 94 + - 60 * - + COUNT( * ), - 17 * 29 AS col2
----
NULL
-493

skipif mysql # not compatible
query II rowsort label-4815
SELECT ALL - CAST ( NULL AS INTEGER ) + - 94 + - 60 * - + COUNT ( * ), - 17 * 29 AS col2
----
NULL
-493

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT 42 + + - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-4816
SELECT 42 + + - COUNT ( * )
----
41

query I rowsort
SELECT DISTINCT + 69 + + - 77 AS col2
----
-8

query I rowsort
SELECT ALL - 14 * - COALESCE ( + 69, - + 43 ) AS col0
----
966

query II rowsort
SELECT - 3 AS col2, 48 AS col2
----
-3
48

query I rowsort
SELECT ALL - 42 + + - 97
----
-139

onlyif mysql # aggregate syntax: 
query II rowsort label-4821
SELECT DISTINCT 7, 0 * - CASE + + 66 WHEN 50 THEN - ( + 13 ) * - CASE + 86 + + COUNT( * ) WHEN 6 * 15 THEN NULL ELSE + 25 * - 86 END ELSE NULL END / 52 AS col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-4821
SELECT DISTINCT 7, 0 * - CASE + + 66 WHEN 50 THEN - ( + 13 ) * - CASE + 86 + + COUNT ( * ) WHEN 6 * 15 THEN NULL ELSE + 25 * - 86 END ELSE NULL END / 52 AS col1
----
7
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT 77 + 60 + MIN( 6 ) + + + 65 + + SUM( DISTINCT 83 ) * - 97 AS col0
----
-7843

skipif mysql # not compatible
query I rowsort label-4822
SELECT 77 + 60 + MIN ( 6 ) + + + 65 + + SUM ( DISTINCT 83 ) * - 97 AS col0
----
-7843

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT DISTINCT + - SUM( ALL - + 64 ) * - ( 21 ) + - 18
----
-1362

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT + - SUM ( ALL - + 64 ) * - ( 21 ) + - 18
----
-1362

query I rowsort
SELECT DISTINCT - 9 - - + 21 col0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4825
SELECT NULLIF ( + 22, - + 91 ) DIV - + 67 * 7 - 13
----
-13

skipif mysql # not compatible
query I rowsort label-4825
SELECT NULLIF ( + 22, - + 91 ) / - + 67 * 7 - 13
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT - SUM( - 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4826
SELECT - SUM ( - 10 ) AS col2
----
10

query I rowsort
SELECT + ( + 83 ) col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT COUNT( * ) + 36 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4828
SELECT COUNT ( * ) + 36 AS col0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-4829
SELECT DISTINCT - 81 AS col1, COUNT( * ) * + - 17 + - 76
----
-81
-93

skipif mysql # not compatible
query II rowsort label-4829
SELECT DISTINCT - 81 AS col1, COUNT ( * ) * + - 17 + - 76
----
-81
-93

query II rowsort
SELECT - 72, 34 col1
----
-72
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT - ( + + COUNT( * ) ) + - 25 * - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4831
SELECT - ( + + COUNT ( * ) ) + - 25 * - COUNT ( * )
----
24

query I rowsort
SELECT DISTINCT - 66 * + - 28
----
1848

query II rowsort
SELECT ALL + 22 AS col2, + 32
----
22
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4834
SELECT CASE CAST( NULL AS SIGNED ) WHEN CAST( + 4 AS SIGNED ) THEN + CAST( 69 AS SIGNED ) WHEN + 80 * 43 THEN NULL WHEN - 47 THEN NULL ELSE 87 * ( NULLIF ( + 2, + 12 + + 59 ) ) END - - 23 DIV - 40 AS col1
----
174

skipif mysql # not compatible
query I rowsort label-4834
SELECT CASE CAST ( NULL AS INTEGER ) WHEN CAST ( + 4 AS INTEGER ) THEN + CAST ( 69 AS INTEGER ) WHEN + 80 * 43 THEN NULL WHEN - 47 THEN NULL ELSE 87 * ( NULLIF ( + 2, + 12 + + 59 ) ) END - - 23 / - 40 AS col1
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4835
SELECT - 58 DIV + + COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4835
SELECT - 58 / + + COUNT ( * ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT + - MAX( ALL + + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-4836
SELECT + - MAX ( ALL + + 80 )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT + CAST( 89 AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-4837
SELECT + CAST ( 89 AS INTEGER )
----
89

query I rowsort
SELECT COALESCE ( - 69, 63 ) * - 94
----
6486

query II rowsort
SELECT ALL 2 + 29, 4 AS col1
----
31
4

query I rowsort
SELECT - 30 * 59 - - 13 AS col1
----
-1757

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL 42 + 89 - - + 30 * COUNT( * ) + 47 * - + 4
----
-27

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL 42 + 89 - - + 30 * COUNT ( * ) + 47 * - + 4
----
-27

query I rowsort
SELECT + 92 * 91 - - - 16 AS col0
----
8356

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT + 29 * + + 63 * 82 + 79 * + + CASE + - 15 WHEN - 58 + 56 THEN NULL WHEN + 62 THEN NULL ELSE + ( COUNT( ALL - 79 ) ) * 88 END
----
156766

skipif mysql # not compatible
query I rowsort label-4843
SELECT + 29 * + + 63 * 82 + 79 * + + CASE + - 15 WHEN - 58 + 56 THEN NULL WHEN + 62 THEN NULL ELSE + ( COUNT ( ALL - 79 ) ) * 88 END
----
156766

query I rowsort
SELECT 70 * - 71
----
-4970

query I rowsort
SELECT 80 + + 68 * 70 + - 22 * 36 * 33 AS col1
----
-21296

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL MIN( DISTINCT + + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL MIN ( DISTINCT + + 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT ( + ( - 86 ) ) * + SUM( - + 76 ) AS col0
----
6536

skipif mysql # not compatible
query I rowsort label-4847
SELECT ( + ( - 86 ) ) * + SUM ( - + 76 ) AS col0
----
6536

query I rowsort
SELECT 16 - - 64
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT + - 6 * + COUNT( * ) + 66 * 0 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4849
SELECT + - 6 * + COUNT ( * ) + 66 * 0 AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4850
SELECT - CAST( + - 84 AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-4850
SELECT - CAST ( + - 84 AS INTEGER )
----
84

query I rowsort
SELECT - NULLIF ( + - 2, + 87 / + 29 )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4852
SELECT DISTINCT + ( - 81 ) * COUNT( * ) AS col0, MIN( ALL - + 36 ) * + 57
----
-81
-2052

skipif mysql # not compatible
query II rowsort label-4852
SELECT DISTINCT + ( - 81 ) * COUNT ( * ) AS col0, MIN ( ALL - + 36 ) * + 57
----
-81
-2052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4853
SELECT - CASE + - ( 31 ) WHEN - - 58 - - + 87 THEN 39 WHEN + NULLIF ( ( - CAST( ( 10 ) AS SIGNED ) ), CASE 76 WHEN 99 - ( + MIN( ALL 25 ) ) * 81 THEN + 68 + 2 WHEN COUNT( * ) THEN COALESCE ( + COUNT( * ), 79 ) + 54 ELSE - 18 * + 17 + + 4 * 77 END ) THEN - 14 END * 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4853
SELECT - CASE + - ( 31 ) WHEN - - 58 - - + 87 THEN 39 WHEN + NULLIF ( ( - CAST ( ( 10 ) AS INTEGER ) ), CASE 76 WHEN 99 - ( + MIN ( ALL 25 ) ) * 81 THEN + 68 + 2 WHEN COUNT ( * ) THEN COALESCE ( + COUNT ( * ), 79 ) + 54 ELSE - 18 * + 17 + + 4 * 77 END ) THEN - 14 END * 4 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT ALL + 28 * SUM( ALL 43 ) AS col0
----
1204

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL + 28 * SUM ( ALL 43 ) AS col0
----
1204

query I rowsort
SELECT - - ( - 25 ) - - 1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4856
SELECT DISTINCT + 17 * + - 28 + - COUNT( * ) + - 25 * - ( MIN( ALL - 77 ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4856
SELECT DISTINCT + 17 * + - 28 + - COUNT ( * ) + - 25 * - ( MIN ( ALL - 77 ) ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 48 - - 88 + + + 69 AS col0
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4858
SELECT COALESCE ( NULLIF ( 44, + - COALESCE ( + 74, - CAST( + 47 AS SIGNED ) * - 73 ) ), - COUNT( * ), 31, - 9 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4858
SELECT COALESCE ( NULLIF ( 44, + - COALESCE ( + 74, - CAST ( + 47 AS INTEGER ) * - 73 ) ), - COUNT ( * ), 31, - 9 ) AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4859
SELECT - - CAST( 52 AS SIGNED ) * 37 DIV - - 13
----
148

skipif mysql # not compatible
query I rowsort label-4859
SELECT - - CAST ( 52 AS INTEGER ) * 37 / - - 13
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT ALL + 68 * CASE + NULLIF ( + 85, 19 * - 15 + + - 34 ) WHEN - 23 THEN 58 + 5 ELSE ( 90 ) DIV 49 + 31 END + 15 AS col1
----
2191

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL + 68 * CASE + NULLIF ( + 85, 19 * - 15 + + - 34 ) WHEN - 23 THEN 58 + 5 ELSE ( 90 ) / 49 + 31 END + 15 AS col1
----
2191

onlyif mysql # DIV for integer division: 
query I rowsort label-4861
SELECT - - 62 + 10 DIV + 9 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4861
SELECT - - 62 + 10 / + 9 AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4862
SELECT - COUNT( 73 ), - COALESCE ( + 37, - 75 + 87 + + CAST( - 1 AS SIGNED ) * - CAST( 83 AS SIGNED ) ) + 80 DIV 6 AS col2
----
-1
-24

skipif mysql # not compatible
query II rowsort label-4862
SELECT - COUNT ( 73 ), - COALESCE ( + 37, - 75 + 87 + + CAST ( - 1 AS INTEGER ) * - CAST ( 83 AS INTEGER ) ) + 80 / 6 AS col2
----
-1
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4863
SELECT - COALESCE ( + - COUNT( * ), - 1 ) - + COUNT( * ) + 95, 85 DIV + + ( + 24 ) AS col2
----
95
3

skipif mysql # not compatible
query II rowsort label-4863
SELECT - COALESCE ( + - COUNT ( * ), - 1 ) - + COUNT ( * ) + 95, 85 / + + ( + 24 ) AS col2
----
95
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4864
SELECT + - 24 DIV 69 - + 14 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4864
SELECT + - 24 / 69 - + 14 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-4865
SELECT + 35 - COUNT( * ), + 1 + + 51 + 43 AS col0
----
34
95

skipif mysql # not compatible
query II rowsort label-4865
SELECT + 35 - COUNT ( * ), + 1 + + 51 + 43 AS col0
----
34
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT - 79 + + - COUNT( * ) + 73
----
-7

skipif mysql # not compatible
query I rowsort label-4866
SELECT - 79 + + - COUNT ( * ) + 73
----
-7

query I rowsort
SELECT + NULLIF ( - 50, - 25 ) - + 38 + + 17 AS col0
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4868
SELECT - 92 DIV - - 51 + - - MAX( - 1 ) * + + 17 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4868
SELECT - 92 / - - 51 + - - MAX ( - 1 ) * + + 17 AS col1
----
-18

query I rowsort
SELECT ALL 45 * - + 45 + + ( - 39 ) + 27 AS col1
----
-2037

onlyif mysql # DIV for integer division: 
query I rowsort label-4870
SELECT ALL - 13 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL - 13 / + 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL + 97 * + COUNT( * ) * - 74 + - 23 + 23 * - 60 + + - COALESCE ( - 9, 59 )
----
-8572

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL + 97 * + COUNT ( * ) * - 74 + - 23 + 23 * - 60 + + - COALESCE ( - 9, 59 )
----
-8572

query I rowsort
SELECT ALL 96 * - 1 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ALL MIN( 77 ) * + 32 * + ( + + 14 ) + + 3 AS col0
----
34499

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL MIN ( 77 ) * + 32 * + ( + + 14 ) + + 3 AS col0
----
34499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4874
SELECT COUNT( * ) / + - AVG ( ALL + 45 ) * + 3 * + ( + 53 ) + - CASE + + 40 WHEN + COUNT( * ) + 28 THEN 38 * + 81 + ( CASE WHEN NULL IN ( 35 ) THEN 70 * + 39 ELSE NULL END ) * 81 WHEN 47 + - CAST( NULL AS SIGNED ) * - 46 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT COUNT ( * ) / + - AVG ( ALL + 45 ) * + 3 * + ( + 53 ) + - CASE + + 40 WHEN + COUNT ( * ) + 28 THEN 38 * + 81 + ( CASE WHEN NULL IN ( 35 ) THEN 70 * + 39 ELSE NULL END ) * 81 WHEN 47 + - CAST ( NULL AS INTEGER ) * - 46 THEN NULL END
----
NULL

query I rowsort
SELECT - 72 * + 53 * - - NULLIF ( - 75, 47 + + 86 ) * 64
----
18316800

query I rowsort
SELECT COALESCE ( 5, + - 17 * + + 80 * + - 59 + + 11 )
----
5

query I rowsort
SELECT ALL 60 * 1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4878
SELECT ALL - 54 * - 22 * - CASE + 71 WHEN + - NULLIF ( + 42, - 61 ) - ( 11 ) + MAX( DISTINCT 66 ) * 98 * 29 THEN - 96 * CAST( + 12 * COALESCE ( 93, ( + 35 ) + 84 ) AS SIGNED ) + - 23 * + 61 ELSE 68 END + - 45 * 21 col0
----
-81729

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL - 54 * - 22 * - CASE + 71 WHEN + - NULLIF ( + 42, - 61 ) - ( 11 ) + MAX ( DISTINCT 66 ) * 98 * 29 THEN - 96 * CAST ( + 12 * COALESCE ( 93, ( + 35 ) + 84 ) AS INTEGER ) + - 23 * + 61 ELSE 68 END + - 45 * 21 col0
----
-81729

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT DISTINCT + SUM( DISTINCT - 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT + SUM ( DISTINCT - 55 ) AS col2
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4880
SELECT ALL 44 * + ( - 63 ) * + 80 - - 33 * + COALESCE ( - 80, - 82 ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL 44 * + ( - 63 ) * + 80 - - 33 * + COALESCE ( - 80, - 82 ) - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4881
SELECT + CAST( + 23 AS SIGNED ) * - 22 + - 72 + - COUNT( - + 46 ) * 58
----
-636

skipif mysql # not compatible
query I rowsort label-4881
SELECT + CAST ( + 23 AS INTEGER ) * - 22 + - 72 + - COUNT ( - + 46 ) * 58
----
-636

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT + ( SUM( 4 ) )
----
4

skipif mysql # not compatible
query I rowsort label-4882
SELECT + ( SUM ( 4 ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT + 35 - NULLIF ( - - 16, + 55 * COUNT( * ) - - - 27 + + + 35 * + - 91 * - 55 ) col0
----
19

skipif mysql # not compatible
query I rowsort label-4883
SELECT + 35 - NULLIF ( - - 16, + 55 * COUNT ( * ) - - - 27 + + + 35 * + - 91 * - 55 ) col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT + 81 * + MAX( + 28 ) + - 19
----
2249

skipif mysql # not compatible
query I rowsort label-4884
SELECT + 81 * + MAX ( + 28 ) + - 19
----
2249

query I rowsort
SELECT ALL 50 * - 61
----
-3050

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT + 20 + - MIN( 12 )
----
8

skipif mysql # not compatible
query I rowsort label-4886
SELECT + 20 + - MIN ( 12 )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4887
SELECT 18 col1, COUNT( * )
----
18
1

skipif mysql # not compatible
query II rowsort label-4887
SELECT 18 col1, COUNT ( * )
----
18
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT DISTINCT COALESCE ( + 51, + - 76 * + MIN( + 49 ) * + + ( + ( 30 ) ) + + 87 * + COUNT( * ), - COALESCE ( COUNT( * ), - 49, 71 * 67 + - COUNT( DISTINCT 92 ) ) + - SUM( 89 ) ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT COALESCE ( + 51, + - 76 * + MIN ( + 49 ) * + + ( + ( 30 ) ) + + 87 * + COUNT ( * ), - COALESCE ( COUNT ( * ), - 49, 71 * 67 + - COUNT ( DISTINCT 92 ) ) + - SUM ( 89 ) ) AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4889
SELECT + 47 * + COALESCE ( - 47, - 80, + SUM( DISTINCT + - 13 ) * 41 + - 51 ) DIV + COUNT( 11 )
----
-2209

skipif mysql # not compatible
query I rowsort label-4889
SELECT + 47 * + COALESCE ( - 47, - 80, + SUM ( DISTINCT + - 13 ) * 41 + - 51 ) / + COUNT ( 11 )
----
-2209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4890
SELECT + - 19 - + CAST( NULL AS SIGNED ) + - MAX( 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4890
SELECT + - 19 - + CAST ( NULL AS INTEGER ) + - MAX ( 72 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4891
SELECT ALL - - 85 DIV 16 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL - - 85 / 16 AS col2
----
5

query I rowsort
SELECT - 97 * NULLIF ( + - NULLIF ( 60, 93 ), - COALESCE ( - 39, 62 ) + - ( 62 ) ) + 89 AS col1
----
5909

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT DISTINCT - SUM( + - 76 ) col1
----
76

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT - SUM ( + - 76 ) col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT ALL - + SUM( 32 ) + + + 49 + - 4 * - 89 * - 81 * + 52
----
-1499455

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL - + SUM ( 32 ) + + + 49 + - 4 * - 89 * - 81 * + 52
----
-1499455

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4895
SELECT - 19 + + CAST( + 5 AS SIGNED ) AS col1, CAST( + 1 AS SIGNED )
----
-14
1

skipif mysql # not compatible
query II rowsort label-4895
SELECT - 19 + + CAST ( + 5 AS INTEGER ) AS col1, CAST ( + 1 AS INTEGER )
----
-14
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT - + 61 + + 44 - - COALESCE ( COALESCE ( 78, - 54 + + 8 ), - - 44 + - COALESCE ( 35, 81 * 67, - 65 ) ) + COUNT( * ) * - 22
----
39

skipif mysql # not compatible
query I rowsort label-4896
SELECT - + 61 + + 44 - - COALESCE ( COALESCE ( 78, - 54 + + 8 ), - - 44 + - COALESCE ( 35, 81 * 67, - 65 ) ) + COUNT ( * ) * - 22
----
39

query I rowsort
SELECT ALL - + 80 + - - 28 + + 7 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT DISTINCT MIN( + - 73 ) col0
----
-73

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT MIN ( + - 73 ) col0
----
-73

query II rowsort
SELECT - 25, + 94 AS col0
----
-25
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT ALL + 12 * 7 + + + SUM( + 25 ) * + COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL + 12 * 7 + + + SUM ( + 25 ) * + COUNT ( * )
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4901
SELECT ALL CAST( - + MAX( - - 91 ) AS SIGNED ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL CAST ( - + MAX ( - - 91 ) AS INTEGER ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4902
SELECT ALL + ( COALESCE ( - 55, - 7, + - MAX( + + 75 ) ) ) + + - 73, CASE - CASE WHEN NOT 37 NOT BETWEEN + 37 + 91 AND ( NULL ) THEN NULL ELSE - COUNT( ALL 72 ) / 7 END WHEN - 51 + - 49 THEN + CASE ( + ( COUNT( * ) ) ) WHEN 27 * COUNT( * ) THEN - 70 * - 5 ELSE NULL END * + 30 ELSE + 99 * + COALESCE ( 77, 59 ) END AS col0
----
-128
7623

skipif mysql # not compatible
query II rowsort label-4902
SELECT ALL + ( COALESCE ( - 55, - 7, + - MAX ( + + 75 ) ) ) + + - 73, CASE - CASE WHEN NOT 37 NOT BETWEEN + 37 + 91 AND ( NULL ) THEN NULL ELSE - COUNT ( ALL 72 ) / 7 END WHEN - 51 + - 49 THEN + CASE ( + ( COUNT ( * ) ) ) WHEN 27 * COUNT ( * ) THEN - 70 * - 5 ELSE NULL END * + 30 ELSE + 99 * + COALESCE ( 77, 59 ) END AS col0
----
-128
7623

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT + 73 - MIN( + 22 ) col1
----
51

skipif mysql # not compatible
query I rowsort label-4903
SELECT + 73 - MIN ( + 22 ) col1
----
51

query I rowsort
SELECT ALL + ( - 29 ) AS col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4905
SELECT - COUNT( * ) - - COUNT( DISTINCT + - CAST( + + 17 AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4905
SELECT - COUNT ( * ) - - COUNT ( DISTINCT + - CAST ( + + 17 AS INTEGER ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT + CASE - + 22 WHEN - 77 * + COALESCE ( + - ( - 73 ), - COUNT( * ) + - 52 ) THEN NULLIF ( + 16, - 19 ) ELSE ( + 14 ) + + 74 * 8 END AS col2
----
606

skipif mysql # not compatible
query I rowsort label-4906
SELECT + CASE - + 22 WHEN - 77 * + COALESCE ( + - ( - 73 ), - COUNT ( * ) + - 52 ) THEN NULLIF ( + 16, - 19 ) ELSE ( + 14 ) + + 74 * 8 END AS col2
----
606

query I rowsort
SELECT - 19 * - 97
----
1843

query I rowsort
SELECT DISTINCT + ( + 65 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT - COUNT( - 53 ) * + 64 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-4909
SELECT - COUNT ( - 53 ) * + 64 AS col0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4910
SELECT - ( - ( + + 39 ) ) * ( - 9 ) * + COUNT( * ) + + 5 DIV - + 77 AS col2
----
-351

skipif mysql # not compatible
query I rowsort label-4910
SELECT - ( - ( + + 39 ) ) * ( - 9 ) * + COUNT ( * ) + + 5 / - + 77 AS col2
----
-351

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4911
SELECT + COUNT( * ) DIV + - 67 + 90 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-4911
SELECT + COUNT ( * ) / + - 67 + 90 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT 80 + + COALESCE ( 7, - ( + + 84 ), + COALESCE ( - 47, COUNT( * ) ) )
----
87

skipif mysql # not compatible
query I rowsort label-4912
SELECT 80 + + COALESCE ( 7, - ( + + 84 ), + COALESCE ( - 47, COUNT ( * ) ) )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4913
SELECT 93 * - 2 * + CAST( NULL AS SIGNED ) * + COALESCE ( - COUNT( * ), - 77, + - 48 ) - - AVG ( 76 ) + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT 93 * - 2 * + CAST ( NULL AS INTEGER ) * + COALESCE ( - COUNT ( * ), - 77, + - 48 ) - - AVG ( 76 ) + 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT 46 * - COUNT( * ) * + 17 AS col2
----
-782

skipif mysql # not compatible
query I rowsort label-4914
SELECT 46 * - COUNT ( * ) * + 17 AS col2
----
-782

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4915
SELECT + ( + 56 ), CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) + + - 91 * + 50 / 41 col2
----
56
NULL

skipif mysql # not compatible
query II rowsort label-4915
SELECT + ( + 56 ), CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) + + - 91 * + 50 / 41 col2
----
56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT - CASE - + 64 WHEN + 32 THEN NULL WHEN - + 29 THEN NULL ELSE - + AVG ( - + 24 ) - - + CASE COUNT( * ) WHEN + + MAX( 95 ) THEN 46 END * COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT - CASE - + 64 WHEN + 32 THEN NULL WHEN - + 29 THEN NULL ELSE - + AVG ( - + 24 ) - - + CASE COUNT ( * ) WHEN + + MAX ( 95 ) THEN 46 END * COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 80 col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT DISTINCT - CASE 65 WHEN - 80 THEN + 80 * - 0 WHEN 76 THEN NULL WHEN + - COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT - CASE 65 WHEN - 80 THEN + 80 * - 0 WHEN 76 THEN NULL WHEN + - COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4919
SELECT CAST( - 22 AS SIGNED ) + + 8
----
-14

skipif mysql # not compatible
query I rowsort label-4919
SELECT CAST ( - 22 AS INTEGER ) + + 8
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4920
SELECT MAX( ALL 52 ) + + 3 + - 93 * + CAST( 72 AS SIGNED ) * + 22 - + 77
----
-147334

skipif mysql # not compatible
query I rowsort label-4920
SELECT MAX ( ALL 52 ) + + 3 + - 93 * + CAST ( 72 AS INTEGER ) * + 22 - + 77
----
-147334

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4921
SELECT + COUNT( * ) DIV + + 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4921
SELECT + COUNT ( * ) / + + 36 AS col2
----
0

query I rowsort
SELECT ALL - 85 + - ( + ( + 72 ) )
----
-157

query I rowsort
SELECT DISTINCT 26 * - 32 * 0 * + 34 AS col2
----
0

query II rowsort
SELECT ALL + 16 + + + 78 * 22 + - 19 AS col1, - 33
----
1713
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4925
SELECT DISTINCT + 57 + - - MAX( 1 ) * + + 68 AS col1, COUNT( * ) AS col1
----
125
1

skipif mysql # not compatible
query II rowsort label-4925
SELECT DISTINCT + 57 + - - MAX ( 1 ) * + + 68 AS col1, COUNT ( * ) AS col1
----
125
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4926
SELECT DISTINCT - CASE + 49 WHEN + + COUNT( * ) * CAST( - + 1 AS SIGNED ) + 64 + + 78 THEN 42 + + - 12 - COUNT( - 55 + + 10 * 65 ) WHEN + 72 THEN NULL WHEN 28 + 52 THEN - CASE 58 WHEN - 38 * + 91 THEN NULL WHEN - 66 * 1 THEN 47 WHEN + 15 - - 6 THEN NULL ELSE NULL END ELSE + 6 * + 11 END + 96
----
30

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT - CASE + 49 WHEN + + COUNT ( * ) * CAST ( - + 1 AS INTEGER ) + 64 + + 78 THEN 42 + + - 12 - COUNT ( - 55 + + 10 * 65 ) WHEN + 72 THEN NULL WHEN 28 + 52 THEN - CASE 58 WHEN - 38 * + 91 THEN NULL WHEN - 66 * 1 THEN 47 WHEN + 15 - - 6 THEN NULL ELSE NULL END ELSE + 6 * + 11 END + 96
----
30

query I rowsort
SELECT - + 10 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT 26 + - + 26 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4928
SELECT 26 + - + 26 * COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4929
SELECT NULLIF ( + 45, + 52 + + - ( - 13 ) ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4929
SELECT NULLIF ( + 45, + 52 + + - ( - 13 ) ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT NULLIF ( + ( - NULLIF ( + - 49, + COUNT( * ) ) ), - 73 ) + - - 99 - + MIN( DISTINCT - NULLIF ( 74, + 73 ) ) col2
----
222

skipif mysql # not compatible
query I rowsort label-4930
SELECT NULLIF ( + ( - NULLIF ( + - 49, + COUNT ( * ) ) ), - 73 ) + - - 99 - + MIN ( DISTINCT - NULLIF ( 74, + 73 ) ) col2
----
222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4931
SELECT 71 - - 19 + - - 19 * - 64 + + - 52 + + ( + 89 ) * - 60 * 53 DIV 60 * + ( ( 43 ) ) + COUNT( * ) AS col1
----
-204008

skipif mysql # not compatible
query I rowsort label-4931
SELECT 71 - - 19 + - - 19 * - 64 + + - 52 + + ( + 89 ) * - 60 * 53 / 60 * + ( ( 43 ) ) + COUNT ( * ) AS col1
----
-204008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4932
SELECT 45 + - - COUNT( * ) + + NULLIF ( + 44, + - 17 ) + + + 67 DIV + 76
----
90

skipif mysql # not compatible
query I rowsort label-4932
SELECT 45 + - - COUNT ( * ) + + NULLIF ( + 44, + - 17 ) + + + 67 / + 76
----
90

query I rowsort
SELECT 81 - - + 64
----
145

query I rowsort
SELECT ( + 28 ) + - 6
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4935
SELECT ALL + 24 - - 2 DIV - COUNT( * ) + + MAX( ALL + - 83 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL + 24 - - 2 / - COUNT ( * ) + + MAX ( ALL + - 83 ) AS col1
----
-61

query I rowsort
SELECT DISTINCT - 69 * + + 68
----
-4692

query II rowsort
SELECT ALL 30, 63 * + + ( 96 ) AS col2
----
30
6048

query I rowsort
SELECT DISTINCT - 51 * - 53 AS col1
----
2703

query I rowsort
SELECT ALL - ( - 99 ) col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT + COALESCE ( + 20, - 4 * + 7, + 62 * - 35 + 63 * COUNT( * ) ) * 39 + 84 AS col2
----
864

skipif mysql # not compatible
query I rowsort label-4940
SELECT + COALESCE ( + 20, - 4 * + 7, + 62 * - 35 + 63 * COUNT ( * ) ) * 39 + 84 AS col2
----
864

query I rowsort
SELECT ALL 77 - - 23
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT MIN( - - 86 ) * 33 - + 60
----
2778

skipif mysql # not compatible
query I rowsort label-4942
SELECT MIN ( - - 86 ) * 33 - + 60
----
2778

query I rowsort
SELECT 96 * + + 89 AS col0
----
8544

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT 99 + NULLIF ( + 22, + + 59 ) + + COUNT( * ) - + + 96
----
26

skipif mysql # not compatible
query I rowsort label-4944
SELECT 99 + NULLIF ( + 22, + + 59 ) + + COUNT ( * ) - + + 96
----
26

query II rowsort
SELECT + 52 AS col1, + 69
----
52
69

query I rowsort
SELECT 86 * 36 AS col2
----
3096

query II rowsort
SELECT 14, 33 AS col2
----
14
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4948
SELECT DISTINCT + COUNT( * ) DIV + - 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT + COUNT ( * ) / + - 86 AS col1
----
0

query I rowsort
SELECT ALL + - ( - 81 ) + 59 + - ( - + 58 ) * 68
----
4084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4950
SELECT DISTINCT - + AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT - + AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - 38 + + - 8 AS col2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4952
SELECT DISTINCT + 30 + + ( - 51 ) DIV + + 84 col1
----
30

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT + 30 + + ( - 51 ) / + + 84 col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4953
SELECT ALL - - COALESCE ( 76, + 10 ) AS col1, 77 + + 26 + - - 28 DIV 12 DIV + 11 * 63 + COALESCE ( + 52, NULLIF ( 70, COUNT( * ) ) + CAST( NULL AS SIGNED ) ) + 25
----
76
180

skipif mysql # not compatible
query II rowsort label-4953
SELECT ALL - - COALESCE ( 76, + 10 ) AS col1, 77 + + 26 + - - 28 / 12 / + 11 * 63 + COALESCE ( + 52, NULLIF ( 70, COUNT ( * ) ) + CAST ( NULL AS INTEGER ) ) + 25
----
76
180

query I rowsort
SELECT 99 * - - 37 * - 59 * + 52 * + 55 col0
----
-618094620

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4955
SELECT - COUNT( * ) col0, + 41 DIV + 25 AS col0, - - COUNT( ALL + CASE - 33 WHEN + 76 - - - 41 * + 15 THEN + 18 WHEN 4 THEN NULL WHEN 42 THEN NULL END ) AS col2
----
-1
1
0

skipif mysql # not compatible
query III rowsort label-4955
SELECT - COUNT ( * ) col0, + 41 / + 25 AS col0, - - COUNT ( ALL + CASE - 33 WHEN + 76 - - - 41 * + 15 THEN + 18 WHEN 4 THEN NULL WHEN 42 THEN NULL END ) AS col2
----
-1
1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4956
SELECT ALL + 80 + - + 69 + COUNT( * ), 46 AS col2
----
12
46

skipif mysql # not compatible
query II rowsort label-4956
SELECT ALL + 80 + - + 69 + COUNT ( * ), 46 AS col2
----
12
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4957
SELECT + 5 + + 81 - - - 87 + - - 58 DIV + + 25
----
1

skipif mysql # not compatible
query I rowsort label-4957
SELECT + 5 + + 81 - - - 87 + - - 58 / + + 25
----
1

query I rowsort
SELECT + 9 - + + 96 + + 82
----
-5

query II rowsort
SELECT + 18 * - 44 * 25 AS col0, + 45 AS col2
----
-19800
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4960
SELECT - 88 + + - ( 25 ) DIV - - MIN( + 31 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-4960
SELECT - 88 + + - ( 25 ) / - - MIN ( + 31 ) AS col0
----
-88

query I rowsort
SELECT ALL + + 9 + + - 27
----
-18

query II rowsort
SELECT DISTINCT 9, 72 AS col2
----
9
72

query I rowsort
SELECT DISTINCT + 87 + + 46
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4964
SELECT DISTINCT - 28 + + + COALESCE ( 99, + AVG ( 96 ), ( - - CASE + MIN( - 54 ) WHEN - 95 * - COALESCE ( + 35, 78 * + 11 ) THEN + 54 ELSE NULL END ) ) DIV ( + 11 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT - 28 + + + COALESCE ( 99, + AVG ( 96 ), ( - - CASE + MIN ( - 54 ) WHEN - 95 * - COALESCE ( + 35, 78 * + 11 ) THEN + 54 ELSE NULL END ) ) / ( + 11 ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT - MIN( + 45 ) + CASE + 47 WHEN + 91 * 65 * - 19 THEN 55 + 2 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT - MIN ( + 45 ) + CASE + 47 WHEN + 91 * 65 * - 19 THEN 55 + 2 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4966
SELECT ALL + + 9 + - MAX( ALL + + 95 ), ( - 9 ) AS col0
----
-86
-9

skipif mysql # not compatible
query II rowsort label-4966
SELECT ALL + + 9 + - MAX ( ALL + + 95 ), ( - 9 ) AS col0
----
-86
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4967
SELECT DISTINCT + 53 col2, + COUNT( * ) * 83 col2
----
53
83

skipif mysql # not compatible
query II rowsort label-4967
SELECT DISTINCT + 53 col2, + COUNT ( * ) * 83 col2
----
53
83

query I rowsort
SELECT 71 + - 67
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4969
SELECT CASE + + 95 WHEN + 16 * + 79 + - - 78 - - CAST( NULL AS SIGNED ) THEN NULL WHEN - ( - COUNT( * ) ) * + 76 THEN NULL ELSE + - 81 END * - 27 AS col0
----
2187

skipif mysql # not compatible
query I rowsort label-4969
SELECT CASE + + 95 WHEN + 16 * + 79 + - - 78 - - CAST ( NULL AS INTEGER ) THEN NULL WHEN - ( - COUNT ( * ) ) * + 76 THEN NULL ELSE + - 81 END * - 27 AS col0
----
2187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4970
SELECT ALL COALESCE ( 53, ( - 12 ), - CAST( - 76 AS SIGNED ) )
----
53

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL COALESCE ( 53, ( - 12 ), - CAST ( - 76 AS INTEGER ) )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT CASE + - COUNT( * ) WHEN + 98 + + - 25 THEN NULLIF ( + 98, NULLIF ( - 33, - - 70 * - 70 ) - + 68 + - 77 * + 25 ) WHEN 53 THEN 77 WHEN - 20 THEN ( 98 ) * SUM( 73 + - 65 * 53 ) + - COUNT( * ) ELSE NULL END * ( + 11 * 81 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT CASE + - COUNT ( * ) WHEN + 98 + + - 25 THEN NULLIF ( + 98, NULLIF ( - 33, - - 70 * - 70 ) - + 68 + - 77 * + 25 ) WHEN 53 THEN 77 WHEN - 20 THEN ( 98 ) * SUM ( 73 + - 65 * 53 ) + - COUNT ( * ) ELSE NULL END * ( + 11 * 81 ) AS col1
----
NULL

query I rowsort
SELECT ALL 84 * - - 23 AS col2
----
1932

query II rowsort
SELECT ALL 29, - 32 * + 42 AS col1
----
29
-1344

onlyif mysql # DIV for integer division: 
query II rowsort label-4974
SELECT 81, + 23 DIV - - 97 AS col0
----
81
0

skipif mysql # not compatible
query II rowsort label-4974
SELECT 81, + 23 / - - 97 AS col0
----
81
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4975
SELECT CASE - CAST( 75 AS SIGNED ) WHEN - 22 * - 77 - - 58 THEN + COALESCE ( + 80, 78 ) ELSE NULL END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT CASE - CAST ( 75 AS INTEGER ) WHEN - 22 * - 77 - - 58 THEN + COALESCE ( + 80, 78 ) ELSE NULL END * COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4976
SELECT CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) * - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-4976
SELECT CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) * - 60
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4977
SELECT + CAST( - + CASE + SUM( ALL + NULLIF ( - - 52, 40 ) ) WHEN - 45 - - 13 * + COUNT( * ) THEN - + 80 * - + 71 ELSE NULL END AS SIGNED ) / + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4977
SELECT + CAST ( - + CASE + SUM ( ALL + NULLIF ( - - 52, 40 ) ) WHEN - 45 - - 13 * + COUNT ( * ) THEN - + 80 * - + 71 ELSE NULL END AS INTEGER ) / + 81 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4978
SELECT - COALESCE ( - 76, + COUNT( * ) * + 14 - + + 1 + 43 ) AS col1, + 66 AS col1
----
76
66

skipif mysql # not compatible
query II rowsort label-4978
SELECT - COALESCE ( - 76, + COUNT ( * ) * + 14 - + + 1 + 43 ) AS col1, + 66 AS col1
----
76
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT + COUNT( * ) - - 32 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4979
SELECT + COUNT ( * ) - - 32 AS col0
----
33

query I rowsort
SELECT ALL ( + 13 ) * + + 80 + - + 65
----
975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4981
SELECT + CASE + 37 WHEN + COUNT( * ) THEN NULL WHEN - COUNT( * ) * - COUNT( * ) * - COUNT( * ) THEN NULL ELSE 64 * + - 93 + + 50 - - 4 DIV 91 END
----
-5902

skipif mysql # not compatible
query I rowsort label-4981
SELECT + CASE + 37 WHEN + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ) THEN NULL ELSE 64 * + - 93 + + 50 - - 4 / 91 END
----
-5902

query I rowsort
SELECT DISTINCT - 24 * - 48 + - 5 + + - 29 + 93 * 4 * + 8 * - - ( + 7 ) * + 21 + 8 * + 58
----
439054

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4983
SELECT DISTINCT 81 * ( + + 28 ) + 74 * + 19 * + - 55, COUNT( * ) / CAST( NULL AS SIGNED ) AS col0
----
-75062
NULL

skipif mysql # not compatible
query II rowsort label-4983
SELECT DISTINCT 81 * ( + + 28 ) + 74 * + 19 * + - 55, COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0
----
-75062
NULL

query I rowsort
SELECT ALL + - 26 * - 67 + + 83
----
1825

query II rowsort
SELECT - 27 - - 89 AS col1, + 74 + + 24 * + + 79 AS col1
----
62
1970

query I rowsort
SELECT ALL - ( - - 60 ) * - 18
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT + 95 * - ( NULLIF ( - 27, + + 99 * - - 1 ) ) * - 84 * + CASE WHEN NOT ( 23 ) NOT IN ( + 81 * COUNT( * ) ) THEN SUM( ALL + 93 ) / - 37 END + + 25 * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT + 95 * - ( NULLIF ( - 27, + + 99 * - - 1 ) ) * - 84 * + CASE WHEN NOT ( 23 ) NOT IN ( + 81 * COUNT ( * ) ) THEN SUM ( ALL + 93 ) / - 37 END + + 25 * 63
----
NULL

query II rowsort
SELECT + 75 AS col2, + 32 - - 33 AS col1
----
75
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4989
SELECT ALL + 24 * + 52 + - 82 + CAST( NULL AS SIGNED ) * + COUNT( - 90 ) + + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL + 24 * + 52 + - 82 + CAST ( NULL AS INTEGER ) * + COUNT ( - 90 ) + + 77 AS col2
----
NULL

query I rowsort
SELECT + - 46 + + 4 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-4991
SELECT + COUNT( * ), 61 * - 61 AS col1
----
1
-3721

skipif mysql # not compatible
query II rowsort label-4991
SELECT + COUNT ( * ), 61 * - 61 AS col1
----
1
-3721

query I rowsort
SELECT - + 71 + + - 52 AS col0
----
-123

onlyif mysql # aggregate syntax: 
query II rowsort label-4993
SELECT ALL + + 87 * 43 * - + 39 * 32 + + COUNT( * ) + - 66 AS col0, + 4 * - ( - 52 )
----
-4668833
208

skipif mysql # not compatible
query II rowsort label-4993
SELECT ALL + + 87 * 43 * - + 39 * 32 + + COUNT ( * ) + - 66 AS col0, + 4 * - ( - 52 )
----
-4668833
208

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT DISTINCT - COUNT( * ) * + 16 + - - 83
----
67

skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT - COUNT ( * ) * + 16 + - - 83
----
67

query II rowsort
SELECT ALL + 14, - 51 AS col2
----
14
-51

onlyif mysql # aggregate syntax: 
query III rowsort label-4996
SELECT + + COUNT( * ) col1, + 45 * 39 * - 60 col1, - - 38 AS col1
----
1
-105300
38

skipif mysql # not compatible
query III rowsort label-4996
SELECT + + COUNT ( * ) col1, + 45 * 39 * - 60 col1, - - 38 AS col1
----
1
-105300
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4997
SELECT - 57 + + 38 + + + ( - CAST( + 73 AS SIGNED ) ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4997
SELECT - 57 + + 38 + + + ( - CAST ( + 73 AS INTEGER ) ) AS col1
----
-92

query I rowsort
SELECT + + 19 * - 18 AS col1
----
-342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4999
SELECT - COALESCE ( ( + ( - 46 ) ), NULLIF ( - - CAST( + CASE + ( - 66 ) WHEN + 14 * + - 59 + COALESCE ( - 32, 90 ) * + 61 THEN 79 END AS SIGNED ), MIN( + 70 ) * 43 ), - 59 - 84 )
----
46

skipif mysql # not compatible
query I rowsort label-4999
SELECT - COALESCE ( ( + ( - 46 ) ), NULLIF ( - - CAST ( + CASE + ( - 66 ) WHEN + 14 * + - 59 + COALESCE ( - 32, 90 ) * + 61 THEN 79 END AS INTEGER ), MIN ( + 70 ) * 43 ), - 59 - 84 )
----
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5000
SELECT - + 69 DIV + CAST( + 69 AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5000
SELECT - + 69 / + CAST ( + 69 AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT ALL ( - COALESCE ( + 9, + 42 ) )
----
-9

query I rowsort
SELECT ALL + 96 * 97
----
9312

query I rowsort
SELECT DISTINCT COALESCE ( - 32, + 48, 17 )
----
-32

query II rowsort
SELECT DISTINCT + 78 * - 8, - 76 * 56 AS col2
----
-624
-4256

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5005
SELECT ALL ( - 27 ) AS col1, COUNT( * ) DIV - - COUNT( * )
----
-27
1

skipif mysql # not compatible
query II rowsort label-5005
SELECT ALL ( - 27 ) AS col1, COUNT ( * ) / - - COUNT ( * )
----
-27
1

query I rowsort
SELECT + ( - - 47 ) + - 71 AS col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5007
SELECT + 48 + - CASE + 99 WHEN - 99 + + ( + - COUNT( * ) ) * + 92 * COUNT( * ) + + 63 + + CASE + 14 WHEN + 28 + - 1 THEN 51 END * CAST( NULL AS SIGNED ) * 45 THEN CAST( COUNT( * ) AS SIGNED ) + COUNT( * ) END + + 44 * + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5007
SELECT + 48 + - CASE + 99 WHEN - 99 + + ( + - COUNT ( * ) ) * + 92 * COUNT ( * ) + + 63 + + CASE + 14 WHEN + 28 + - 1 THEN 51 END * CAST ( NULL AS INTEGER ) * 45 THEN CAST ( COUNT ( * ) AS INTEGER ) + COUNT ( * ) END + + 44 * + 53 AS col2
----
NULL

query I rowsort
SELECT - 60 + - + 84
----
-144

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5009
SELECT + CAST( NULL AS DECIMAL ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5009
SELECT + CAST ( NULL AS REAL ) * COUNT ( * )
----
NULL

query I rowsort
SELECT - ( + 83 ) + 33
----
-50

query I rowsort
SELECT + 42 - 19
----
23

query I rowsort
SELECT - ( - + 11 ) AS col1
----
11

query I rowsort
SELECT + 18 - + + 94 AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5014
SELECT + CAST( - 13 AS SIGNED ) * + 99 * + - CASE - + 51 WHEN 51 THEN NULL WHEN - - ( 42 ) * + 7 * - SUM( - 89 ) THEN - - 70 ELSE 27 + + 40 DIV 61 END
----
34749

skipif mysql # not compatible
query I rowsort label-5014
SELECT + CAST ( - 13 AS INTEGER ) * + 99 * + - CASE - + 51 WHEN 51 THEN NULL WHEN - - ( 42 ) * + 7 * - SUM ( - 89 ) THEN - - 70 ELSE 27 + + 40 / 61 END
----
34749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5015
SELECT - COALESCE ( - CAST( - 17 AS SIGNED ), + 99 )
----
-17

skipif mysql # not compatible
query I rowsort label-5015
SELECT - COALESCE ( - CAST ( - 17 AS INTEGER ), + 99 )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-5016
SELECT ALL + 97 DIV 93 + 80 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL + 97 / 93 + 80 AS col2
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5017
SELECT ALL 45 DIV MIN( + 76 ) + - + 36
----
-36

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL 45 / MIN ( + 76 ) + - + 36
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-5018
SELECT 35 DIV + 20 + - - 66
----
67

skipif mysql # not compatible
query I rowsort label-5018
SELECT 35 / + 20 + - - 66
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-5019
SELECT ALL 70 DIV + 35 AS col1, + 14 AS col0
----
2
14

skipif mysql # not compatible
query II rowsort label-5019
SELECT ALL 70 / + 35 AS col1, + 14 AS col0
----
2
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT + + SUM( ALL + 62 ) + + 59 * - 74 AS col0
----
-4304

skipif mysql # not compatible
query I rowsort label-5020
SELECT + + SUM ( ALL + 62 ) + + 59 * - 74 AS col0
----
-4304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5021
SELECT + 47 * - + CASE + 96 WHEN ( 91 ) THEN + + COUNT( * ) + + 31 WHEN - 23 THEN 21 DIV - 78 * - + COUNT( * ) + - ( 24 ) * 1 ELSE 32 END
----
-1504

skipif mysql # not compatible
query I rowsort label-5021
SELECT + 47 * - + CASE + 96 WHEN ( 91 ) THEN + + COUNT ( * ) + + 31 WHEN - 23 THEN 21 / - 78 * - + COUNT ( * ) + - ( 24 ) * 1 ELSE 32 END
----
-1504

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT 58 * + COUNT( * ) + COUNT( * ) col1
----
59

skipif mysql # not compatible
query I rowsort label-5022
SELECT 58 * + COUNT ( * ) + COUNT ( * ) col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT + 91 * - 42 + + 67 * COUNT( * ) + - - 97 * + + 71 * - COUNT( * )
----
-10642

skipif mysql # not compatible
query I rowsort label-5023
SELECT + 91 * - 42 + + 67 * COUNT ( * ) + - - 97 * + + 71 * - COUNT ( * )
----
-10642

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT + + NULLIF ( 94, - - ( + CASE - - 40 WHEN COUNT( * ) - + 60 THEN + 77 WHEN + COUNT( * ) * + + ( + MIN( + 26 ) ) * 78 THEN NULL END ) / COUNT( * ) ) * - COALESCE ( - 80 * COALESCE ( - 90, + 68 ), - COUNT( * ) ) + - 88 AS col0
----
-676888

skipif mysql # not compatible
query I rowsort label-5024
SELECT + + NULLIF ( 94, - - ( + CASE - - 40 WHEN COUNT ( * ) - + 60 THEN + 77 WHEN + COUNT ( * ) * + + ( + MIN ( + 26 ) ) * 78 THEN NULL END ) / COUNT ( * ) ) * - COALESCE ( - 80 * COALESCE ( - 90, + 68 ), - COUNT ( * ) ) + - 88 AS col0
----
-676888

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT + MIN( 3 )
----
3

skipif mysql # not compatible
query I rowsort label-5025
SELECT + MIN ( 3 )
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5026
SELECT ALL + - 10 DIV 8 + CAST( + ( - - 21 ) AS SIGNED ) * - COALESCE ( + 84, - 53 * + - 19 + - ( + 62 ), 38 * 74 ) AS col1
----
-1765

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL + - 10 / 8 + CAST ( + ( - - 21 ) AS INTEGER