sqllogictest
Artifact Content
Not logged in

Artifact d805c1b69920b9cc957004c588c4b1c070380c97:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-0
SELECT ( 67 ) * + 14 + COUNT ( * ) AS col2
----
939

query II rowsort
SELECT 63 AS col1, - 53
----
63
-53

query I rowsort
SELECT DISTINCT 97 + 62
----
159

query I rowsort
SELECT DISTINCT - 35 * - - 95 AS col0
----
-3325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4
SELECT - - 34 * + 25 * + MIN( + 24 ) + - 42 DIV + 33 + + 39 * 52 DIV 44 + + + MIN( + 2 ) + 29 * 4
----
20563

skipif mysql # not compatible
query I rowsort label-4
SELECT - - 34 * + 25 * + MIN ( + 24 ) + - 42 / + 33 + + 39 * 52 / 44 + + + MIN ( + 2 ) + 29 * 4
----
20563

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5
SELECT 97 * + CASE WHEN NOT + 48 NOT IN ( 82 * CAST( NULL AS SIGNED ) ) THEN - ( + 84 ) + + 46 * + + 28 WHEN 30 * - 10 IS NOT NULL THEN NULL END * 71 + ( - 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5
SELECT 97 * + CASE WHEN NOT + 48 NOT IN ( 82 * CAST ( NULL AS INTEGER ) ) THEN - ( + 84 ) + + 46 * + + 28 WHEN 30 * - 10 IS NOT NULL THEN NULL END * 71 + ( - 92 )
----
NULL

query I rowsort
SELECT DISTINCT 41 * + - 9 * - 25
----
9225

query I rowsort
SELECT ALL + + 9 - 14 - + 45 * 30
----
-1355

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8
SELECT ALL + + 47 / + - ( - + CAST( NULL AS SIGNED ) ), 76 AS col0
----
NULL
76

skipif mysql # not compatible
query II rowsort label-8
SELECT ALL + + 47 / + - ( - + CAST ( NULL AS INTEGER ) ), 76 AS col0
----
NULL
76

onlyif mysql # DIV for integer division: 
query II rowsort label-9
SELECT DISTINCT + 95, + 90 * 2 DIV - + 6 AS col1
----
95
-30

skipif mysql # not compatible
query II rowsort label-9
SELECT DISTINCT + 95, + 90 * 2 / - + 6 AS col1
----
95
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-10
SELECT 10 DIV COUNT( + 70 ) * 42
----
420

skipif mysql # not compatible
query I rowsort label-10
SELECT 10 / COUNT ( + 70 ) * 42
----
420

onlyif mysql # DIV for integer division: 
query I rowsort label-11
SELECT - 98 DIV 73 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-11
SELECT - 98 / 73 AS col1
----
-1

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

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

query I rowsort
SELECT ALL NULLIF ( - 90, 20 ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT - 26 + + SUM( DISTINCT - 15 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-14
SELECT - 26 + + SUM ( DISTINCT - 15 ) AS col1
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-15
SELECT CASE + + 30 WHEN + - 51 THEN NULL WHEN + 27 THEN + 30 DIV + - CASE + + 90 WHEN - 96 * - 57 DIV + + 45 THEN 38 END * 49 + COUNT( * ) ELSE - COUNT( * ) END + + 43 DIV - 44 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-15
SELECT CASE + + 30 WHEN + - 51 THEN NULL WHEN + 27 THEN + 30 / + - CASE + + 90 WHEN - 96 * - 57 / + + 45 THEN 38 END * 49 + COUNT ( * ) ELSE - COUNT ( * ) END + + 43 / - 44 AS col1
----
-1

query I rowsort
SELECT 79 * + ( - - 33 ) AS col2
----
2607

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT ALL - MAX( 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL - MAX ( 16 ) AS col2
----
-16

query I rowsort
SELECT - + COALESCE ( - 8, + - 16, - 88 )
----
8

query II rowsort
SELECT DISTINCT 77, + 52 AS col0
----
77
52

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT ALL 64 * COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-20
SELECT ALL 64 * COUNT ( * ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT ALL MAX( + + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL MAX ( + + 79 ) AS col0
----
79

query I rowsort
SELECT 66 - + 35 AS col1
----
31

query I rowsort
SELECT 85 + + 67 * 43 AS col1
----
2966

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-24
SELECT ( + - 47 ) + - ( + COUNT( * ) ) DIV COUNT( + - 48 ) * + ( 70 ) * + 56 + + 16
----
-3951

skipif mysql # not compatible
query I rowsort label-24
SELECT ( + - 47 ) + - ( + COUNT ( * ) ) / COUNT ( + - 48 ) * + ( 70 ) * + 56 + + 16
----
-3951

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT DISTINCT ( SUM( + 96 ) ) + - 50 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-25
SELECT DISTINCT ( SUM ( + 96 ) ) + - 50 AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-26
SELECT ALL AVG ( DISTINCT - 64 ) + + COUNT( + 9 ) - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-26
SELECT ALL AVG ( DISTINCT - 64 ) + + COUNT ( + 9 ) - - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT ALL + COUNT( * ) * + 38 + - - 1
----
39

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL + COUNT ( * ) * + 38 + - - 1
----
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT DISTINCT + 69 * - + COUNT( * ) + + 18
----
-51

skipif mysql # not compatible
query I rowsort label-29
SELECT DISTINCT + 69 * - + COUNT ( * ) + + 18
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT SUM( 56 ) col2
----
56

skipif mysql # not compatible
query I rowsort label-30
SELECT SUM ( 56 ) col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-31
SELECT 7 * + COUNT( * ) col1, 30 AS col1
----
7
30

skipif mysql # not compatible
query II rowsort label-31
SELECT 7 * + COUNT ( * ) col1, 30 AS col1
----
7
30

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT COUNT( * ) + + 44 + 51
----
96

skipif mysql # not compatible
query I rowsort label-32
SELECT COUNT ( * ) + + 44 + 51
----
96

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

skipif mysql # not compatible
query I rowsort label-33
SELECT + MIN ( 95 )
----
95

query I rowsort
SELECT DISTINCT 73 * 71 AS col1
----
5183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-35
SELECT CAST( - CASE + - COUNT( * ) WHEN 53 THEN - - MAX( DISTINCT - + 59 ) * - COUNT( - + 9 ) * - + 8 - CAST( + - 6 AS SIGNED ) + - 32 ELSE 98 END AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-35
SELECT CAST ( - CASE + - COUNT ( * ) WHEN 53 THEN - - MAX ( DISTINCT - + 59 ) * - COUNT ( - + 9 ) * - + 8 - CAST ( + - 6 AS INTEGER ) + - 32 ELSE 98 END AS INTEGER )
----
-98

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-37
SELECT ALL COUNT( * ) * 36 - + 16 + ( + COUNT( * ) ) DIV + 35 AS col0, - 52
----
20
-52

skipif mysql # not compatible
query II rowsort label-37
SELECT ALL COUNT ( * ) * 36 - + 16 + ( + COUNT ( * ) ) / + 35 AS col0, - 52
----
20
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT - COUNT( * ) * - 52 + 6 * + 71 col0
----
478

skipif mysql # not compatible
query I rowsort label-38
SELECT - COUNT ( * ) * - 52 + 6 * + 71 col0
----
478

query II rowsort
SELECT + - 45 AS col1, 66
----
-45
66

onlyif mysql # aggregate syntax: 
query II rowsort label-40
SELECT - 66 col2, COUNT( * ) * + ( COUNT( DISTINCT + - 90 ) ) col0
----
-66
1

skipif mysql # not compatible
query II rowsort label-40
SELECT - 66 col2, COUNT ( * ) * + ( COUNT ( DISTINCT + - 90 ) ) col0
----
-66
1

query I rowsort
SELECT + 18 * + 23 col2
----
414

query I rowsort
SELECT - 94 * + 0 * + + 46 + - + NULLIF ( - ( 32 ), + 42 )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-43
SELECT - 50 col2, 99 + - - 32 * + COUNT( * ) + + 7 * - ( 18 )
----
-50
5

skipif mysql # not compatible
query II rowsort label-43
SELECT - 50 col2, 99 + - - 32 * + COUNT ( * ) + + 7 * - ( 18 )
----
-50
5

onlyif mysql # DIV for integer division: 
query I rowsort label-44
SELECT ALL + 80 DIV - 10
----
-8

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL + 80 / - 10
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-45
SELECT ALL + COUNT( * ) AS col2, CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-45
SELECT ALL + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER )
----
1
NULL

query I rowsort
SELECT + - 41 + - 61 AS col1
----
-102

query I rowsort
SELECT ALL + 30 * ( 77 ) * + 56
----
129360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-48
SELECT ALL CAST( NULL AS SIGNED ) / - COALESCE ( 93, - + 30 * - 79 * - + ( - - 96 ) + + MAX( 60 ), - MIN( ALL - 28 ) + - NULLIF ( CAST( NULL AS DECIMAL ), - CASE + 56 WHEN ( + 22 ) * + 50 THEN NULL WHEN COUNT( * ) THEN + 50 * + CASE - 54 WHEN + COUNT( * ) + + 33 THEN + 48 WHEN + 40 THEN - 51 WHEN + COUNT( * ) * 85 THEN NULL ELSE COUNT( * ) / ( 58 ) - + CAST( - 33 AS SIGNED ) * COUNT( * ) END END ) ) + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-48
SELECT ALL CAST ( NULL AS INTEGER ) / - COALESCE ( 93, - + 30 * - 79 * - + ( - - 96 ) + + MAX ( 60 ), - MIN ( ALL - 28 ) + - NULLIF ( CAST ( NULL AS REAL ), - CASE + 56 WHEN ( + 22 ) * + 50 THEN NULL WHEN COUNT ( * ) THEN + 50 * + CASE - 54 WHEN + COUNT ( * ) + + 33 THEN + 48 WHEN + 40 THEN - 51 WHEN + COUNT ( * ) * 85 THEN NULL ELSE COUNT ( * ) / ( 58 ) - + CAST ( - 33 AS INTEGER ) * COUNT ( * ) END END ) ) + 12
----
NULL

query I rowsort
SELECT + 76 + 81
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT - SUM( + - 7 ) + - - 48 * - 31 AS col0
----
-1481

skipif mysql # not compatible
query I rowsort label-50
SELECT - SUM ( + - 7 ) + - - 48 * - 31 AS col0
----
-1481

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-51
SELECT ALL CAST( - 99 AS SIGNED ) * 93 AS col1
----
-9207

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL CAST ( - 99 AS INTEGER ) * 93 AS col1
----
-9207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-52
SELECT - - ( - - CAST( - 85 AS SIGNED ) ) DIV + - CASE 39 WHEN - 37 * - SUM( ALL - + 50 ) + COUNT( ALL + - 54 ) + - 19 DIV 29 THEN NULL ELSE COUNT( * ) + + 97 * 19 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-52
SELECT - - ( - - CAST ( - 85 AS INTEGER ) ) / + - CASE 39 WHEN - 37 * - SUM ( ALL - + 50 ) + COUNT ( ALL + - 54 ) + - 19 / 29 THEN NULL ELSE COUNT ( * ) + + 97 * 19 END AS col0
----
0

query I rowsort
SELECT - 29 + 66 AS col1
----
37

query I rowsort
SELECT + 40 + 26 col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-55
SELECT - 5 DIV - 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-55
SELECT - 5 / - 44 AS col2
----
0

query I rowsort
SELECT - 22 - 41
----
-63

query I rowsort
SELECT - 99 + - ( + - 35 ) * 52 + 5
----
1726

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT DISTINCT - 33 + - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-58
SELECT DISTINCT - 33 + - COUNT ( * )
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-59
SELECT DISTINCT - 24 * - 18 DIV 2 AS col1
----
216

skipif mysql # not compatible
query I rowsort label-59
SELECT DISTINCT - 24 * - 18 / 2 AS col1
----
216

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

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL 51 + + + 30 * + - SUM ( - 0 ) AS col1
----
51

query I rowsort
SELECT ALL + ( - + 67 ) * 52 + - 55
----
-3539

query I rowsort
SELECT - 39 + 42
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-63
SELECT ALL - 79 + + CAST( + 99 AS SIGNED ) + + - 73 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL - 79 + + CAST ( + 99 AS INTEGER ) + + - 73 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT DISTINCT ( - MIN( ALL - + 10 ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT ( - MIN ( ALL - + 10 ) ) AS col0
----
10

query I rowsort
SELECT - 15 + + 75
----
60

query I rowsort
SELECT - 44 + + + 23 * + 79 + - - 36 AS col2
----
1809

query I rowsort
SELECT 7 * + 63 + - 92
----
349

onlyif mysql # DIV for integer division: 
query I rowsort label-68
SELECT DISTINCT - 10 DIV 32 - 48
----
-48

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT - 10 / 32 - 48
----
-48

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-70
SELECT DISTINCT + - 5 / CASE - 52 WHEN + - ( 11 ) + + - 9 * 45 THEN + 73 + - + 46 END * 60 / + - CAST( 52 AS SIGNED ) * + 38 - + 95 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT + - 5 / CASE - 52 WHEN + - ( 11 ) + + - 9 * 45 THEN + 73 + - + 46 END * 60 / + - CAST ( 52 AS INTEGER ) * + 38 - + 95 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-71
SELECT - 31 + 44 AS col1, COUNT( DISTINCT - - 88 ) DIV + + 40 + 42 AS col0
----
13
42

skipif mysql # not compatible
query II rowsort label-71
SELECT - 31 + 44 AS col1, COUNT ( DISTINCT - - 88 ) / + + 40 + 42 AS col0
----
13
42

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT ALL CASE - 75 WHEN + 48 + 10 THEN + + SUM( - 61 ) + - 19 END * + 41 * + 76 + + + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL CASE - 75 WHEN + 48 + 10 THEN + + SUM ( - 61 ) + - 19 END * + 41 * + 76 + + + 99 AS col2
----
NULL

query I rowsort
SELECT - 44 + - - 58 - 81 - + 77 * - 94
----
7171

onlyif mysql # DIV for integer division: 
query I rowsort label-74
SELECT ALL + + 38 DIV - - 94 * - 62 * - + 44
----
0

skipif mysql # not compatible
query I rowsort label-74
SELECT ALL + + 38 / - - 94 * - 62 * - + 44
----
0

query I rowsort
SELECT ALL - 19 * + 49 - + 90
----
-1021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-76
SELECT - + 20 * + MAX( - 84 ) * - SUM( ALL 36 ) * - + COUNT( * ) + CAST( NULL AS SIGNED ) * - 5 * - CAST( + 93 AS SIGNED ) - - COALESCE ( + - 53, - 97 + - 36, 42 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-76
SELECT - + 20 * + MAX ( - 84 ) * - SUM ( ALL 36 ) * - + COUNT ( * ) + CAST ( NULL AS INTEGER ) * - 5 * - CAST ( + 93 AS INTEGER ) - - COALESCE ( + - 53, - 97 + - 36, 42 ) AS col0
----
NULL

query II rowsort
SELECT ALL 64 * + 28 AS col0, 37 + - + 83 AS col0
----
1792
-46

query I rowsort
SELECT + - 95 * + + 87 * 83
----
-685995

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT ALL + + 83 * - 96 - + COUNT( * ) * + 84 + COUNT( * ) - + COUNT( * )
----
-8052

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL + + 83 * - 96 - + COUNT ( * ) * + 84 + COUNT ( * ) - + COUNT ( * )
----
-8052

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

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT MAX( ALL 5 ) col0
----
5

skipif mysql # not compatible
query I rowsort label-81
SELECT MAX ( ALL 5 ) col0
----
5

query II rowsort
SELECT 9 * + - 14 + 83 AS col0, - 77 * + - 33
----
-43
2541

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

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

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

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

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

query I rowsort
SELECT ALL 81 + + 20 col2
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-87
SELECT ALL COALESCE ( 40, 19 + + + 0 + 97 * + + CAST( - 48 AS SIGNED ) * + COUNT( * ) ) AS col2, + 9 DIV + 70
----
40
0

skipif mysql # not compatible
query II rowsort label-87
SELECT ALL COALESCE ( 40, 19 + + + 0 + 97 * + + CAST ( - 48 AS INTEGER ) * + COUNT ( * ) ) AS col2, + 9 / + 70
----
40
0

query I rowsort
SELECT + 39 * - 75
----
-2925

query I rowsort
SELECT ALL 45 + - 26 AS col0
----
19

query I rowsort
SELECT DISTINCT ( + + 26 ) * 61 - + - 12 AS col0
----
1598

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT ALL CASE WHEN NOT 22 IS NULL THEN + COUNT( * ) WHEN - 78 IS NOT NULL THEN - CASE + - 79 WHEN 78 THEN + ( 34 ) WHEN COUNT( * ) / COALESCE ( + COALESCE ( 41, CASE + 3 WHEN 78 + - 17 THEN 95 + + COUNT( * ) * 8 ELSE + 81 END + 7 ), + ( - 35 ) - ( + SUM( DISTINCT + 30 ) ), 54 ) THEN NULL ELSE NULL END END col2
----
1

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL CASE WHEN NOT 22 IS NULL THEN + COUNT ( * ) WHEN - 78 IS NOT NULL THEN - CASE + - 79 WHEN 78 THEN + ( 34 ) WHEN COUNT ( * ) / COALESCE ( + COALESCE ( 41, CASE + 3 WHEN 78 + - 17 THEN 95 + + COUNT ( * ) * 8 ELSE + 81 END + 7 ), + ( - 35 ) - ( + SUM ( DISTINCT + 30 ) ), 54 ) THEN NULL ELSE NULL END END col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-92
SELECT - 9 * - ( + 19 ) AS col2, - SUM( ALL - ( ( + 7 ) ) )
----
171
7

skipif mysql # not compatible
query II rowsort label-92
SELECT - 9 * - ( + 19 ) AS col2, - SUM ( ALL - ( ( + 7 ) ) )
----
171
7

onlyif mysql # DIV for integer division: 
query II rowsort label-93
SELECT DISTINCT - ( - + 51 ) DIV 48, - ( - 42 ) - - 22 AS col2
----
1
64

skipif mysql # not compatible
query II rowsort label-93
SELECT DISTINCT - ( - + 51 ) / 48, - ( - 42 ) - - 22 AS col2
----
1
64

query I rowsort
SELECT 20 + + 49 AS col1
----
69

query II rowsort
SELECT 23, + ( - - 37 ) + - 86 AS col0
----
23
-49

query I rowsort
SELECT ALL + 84 - - + 55 AS col1
----
139

query I rowsort
SELECT 36 * - 74
----
-2664

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

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

query II rowsort
SELECT ALL - 39 AS col0, - 7 col2
----
-39
-7

onlyif mysql # aggregate syntax: 
query III rowsort label-100
SELECT DISTINCT + MIN( DISTINCT 8 ) * + COUNT( * ) AS col1, 18 AS col2, + ( + COUNT( DISTINCT 96 ) )
----
8
18
1

skipif mysql # not compatible
query III rowsort label-100
SELECT DISTINCT + MIN ( DISTINCT 8 ) * + COUNT ( * ) AS col1, 18 AS col2, + ( + COUNT ( DISTINCT 96 ) )
----
8
18
1

onlyif mysql # DIV for integer division: 
query I rowsort label-101
SELECT 65 DIV - 48 + - 8
----
-9

skipif mysql # not compatible
query I rowsort label-101
SELECT 65 / - 48 + - 8
----
-9

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

query I rowsort
SELECT 8 * - 41
----
-328

query I rowsort
SELECT - 78 * - + 44 AS col0
----
3432

query I rowsort
SELECT 67 - - + 8
----
75

query II rowsort
SELECT - 85 AS col0, 8 * - 93
----
-85
-744

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT ALL - ( 30 ) + - MAX( DISTINCT + + 41 )
----
-71

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL - ( 30 ) + - MAX ( DISTINCT + + 41 )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-108
SELECT + 45 * 63 DIV COUNT( * ) col1, COUNT( * ) AS col0
----
2835
1

skipif mysql # not compatible
query II rowsort label-108
SELECT + 45 * 63 / COUNT ( * ) col1, COUNT ( * ) AS col0
----
2835
1

query I rowsort
SELECT + - ( + NULLIF ( 92, - 70 * + AVG ( DISTINCT COALESCE ( + + 29, - - 75 * - 15, - ( - 85 ) ) ) ) )
----
-92

query I rowsort
SELECT + 11 + 82 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT + - SUM( - 49 ) * + 29 * 52 + - 29
----
73863

skipif mysql # not compatible
query I rowsort label-111
SELECT + - SUM ( - 49 ) * + 29 * 52 + - 29
----
73863

query I rowsort
SELECT - 38 + 54 + 31 * + 1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-113
SELECT 21 DIV - + 8
----
-2

skipif mysql # not compatible
query I rowsort label-113
SELECT 21 / - + 8
----
-2

query I rowsort
SELECT ALL + 51 + - 93
----
-42

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

skipif mysql # not compatible
query I rowsort label-115
SELECT COUNT ( * ) + + 15 / - - 69 AS col2
----
1

query II rowsort
SELECT ALL 58 + + + 29 AS col1, 28 * - - 83
----
87
2324

query II rowsort
SELECT 11 + + 38 AS col0, 38 + + 37 AS col2
----
49
75

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT ALL - SUM( 22 ) + - 53 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL - SUM ( 22 ) + - 53 AS col2
----
-75

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

query I rowsort
SELECT DISTINCT 33 * + ( - 46 ) AS col2
----
-1518

onlyif mysql # DIV for integer division: 
query I rowsort label-121
SELECT ALL CASE 30 WHEN - - 55 + 56 + - + 85 THEN NULL WHEN + 83 THEN + 42 ELSE + ( + 32 ) DIV + 45 - - 81 + + 3 * + 57 END - + - 74 - + ( + 26 ) * 69 AS col2
----
-1468

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL CASE 30 WHEN - - 55 + 56 + - + 85 THEN NULL WHEN + 83 THEN + 42 ELSE + ( + 32 ) / + 45 - - 81 + + 3 * + 57 END - + - 74 - + ( + 26 ) * 69 AS col2
----
-1468

query I rowsort
SELECT DISTINCT 50 * - 36 AS col1
----
-1800

query I rowsort
SELECT 36 + - 67 - 46 + - 32 + 64
----
-45

query II rowsort
SELECT 55 + - + 46, + 76 AS col0
----
9
76

query I rowsort
SELECT DISTINCT 92 * ( + 84 )
----
7728

query I rowsort
SELECT 31 + 48 * + + 99 + + 49 + - 59 AS col2
----
4773

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT NULLIF ( SUM( 16 ), - 91 * + ( 17 ) * - 67 * - + 41 ) * + + 78 * COUNT( 4 ) + 28 * 15 + + 27 + 46 AS col0
----
1741

skipif mysql # not compatible
query I rowsort label-127
SELECT NULLIF ( SUM ( 16 ), - 91 * + ( 17 ) * - 67 * - + 41 ) * + + 78 * COUNT ( 4 ) + 28 * 15 + + 27 + 46 AS col0
----
1741

query I rowsort
SELECT - CASE + - 69 WHEN 47 THEN NULL WHEN 50 THEN + 8 + 67 + - 49 ELSE NULL END / + - 91 + - 46 * ( - 63 ) col1
----
NULL

query I rowsort
SELECT 23 * + 59
----
1357

query I rowsort
SELECT ALL - COALESCE ( 69, - 42 - - 52, + 83 ) + + 38
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-131
SELECT CAST( NULL AS SIGNED ) + + - MAX( 57 ) / + 75 * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-131
SELECT CAST ( NULL AS INTEGER ) + + - MAX ( 57 ) / + 75 * + 33
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-132
SELECT DISTINCT 99 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-132
SELECT DISTINCT 99 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT DISTINCT - - MIN( ALL - + 35 ) + + + 19 * + + COUNT( * ) + - 92
----
-108

skipif mysql # not compatible
query I rowsort label-133
SELECT DISTINCT - - MIN ( ALL - + 35 ) + + + 19 * + + COUNT ( * ) + - 92
----
-108

query I rowsort
SELECT - 9 * - 57 col1
----
513

query I rowsort
SELECT + 92 + + - 82 - - 85 AS col2
----
95

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

skipif mysql # not compatible
query I rowsort label-136
SELECT ALL + COUNT ( * ) + + + 46 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT ALL - - MIN( 45 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL - - MIN ( 45 ) AS col0
----
45

query I rowsort
SELECT ALL + 46 * - 45 + + - 20
----
-2090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-139
SELECT DISTINCT 35 + + CAST( + 83 AS SIGNED ) AS col1
----
118

skipif mysql # not compatible
query I rowsort label-139
SELECT DISTINCT 35 + + CAST ( + 83 AS INTEGER ) AS col1
----
118

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

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

query I rowsort
SELECT DISTINCT - 65 - + + 36 AS col1
----
-101

query II rowsort
SELECT ALL - 50, + 6 AS col2
----
-50
6

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT ALL MIN( + 25 ) - - 55 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-143
SELECT ALL MIN ( + 25 ) - - 55 AS col0
----
80

query I rowsort
SELECT 27 * - - 33 * 46
----
40986

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-145
SELECT DISTINCT - MIN( 95 ) DIV - - 46 col0
----
-2

skipif mysql # not compatible
query I rowsort label-145
SELECT DISTINCT - MIN ( 95 ) / - - 46 col0
----
-2

query I rowsort
SELECT 1 * 71 * + 4 AS col0
----
284

query I rowsort
SELECT 40 * + 72
----
2880

query I rowsort
SELECT ALL - 47 * - 4
----
188

query I rowsort
SELECT - 21 * 17 AS col2
----
-357

onlyif mysql # aggregate syntax: 
query II rowsort label-150
SELECT - 54, - 22 * + CASE + 19 WHEN + ( + 86 ) + + NULLIF ( 38, + + ( + 95 ) ) THEN - 76 WHEN - 55 * + + 6 * + ( COUNT( * ) ) THEN 10 ELSE NULL END AS col0
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-150
SELECT - 54, - 22 * + CASE + 19 WHEN + ( + 86 ) + + NULLIF ( 38, + + ( + 95 ) ) THEN - 76 WHEN - 55 * + + 6 * + ( COUNT ( * ) ) THEN 10 ELSE NULL END AS col0
----
-54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT ALL SUM( DISTINCT - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-151
SELECT ALL SUM ( DISTINCT - 73 )
----
-73

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-153
SELECT DISTINCT CASE 66 WHEN + COUNT( * ) * ( - + 14 ) * ( + CAST( + + 53 AS SIGNED ) ) - - 71 + 81 THEN NULL WHEN - + COUNT( * ) + + 80 - + 64 + - + ( + 68 ) THEN AVG ( 50 ) + 97 * 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-153
SELECT DISTINCT CASE 66 WHEN + COUNT ( * ) * ( - + 14 ) * ( + CAST ( + + 53 AS INTEGER ) ) - - 71 + 81 THEN NULL WHEN - + COUNT ( * ) + + 80 - + 64 + - + ( + 68 ) THEN AVG ( 50 ) + 97 * 21 END
----
NULL

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

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

query I rowsort
SELECT ALL NULLIF ( - - 28, - 15 * - - 68 )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-156
SELECT - + ( CAST( NULL AS SIGNED ) ) * + + 44 col2, - 14 + - ( - + 21 )
----
NULL
7

skipif mysql # not compatible
query II rowsort label-156
SELECT - + ( CAST ( NULL AS INTEGER ) ) * + + 44 col2, - 14 + - ( - + 21 )
----
NULL
7

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT - 68 + 21 * - + 80 * + - 17 + SUM( 70 ) AS col1
----
28562

skipif mysql # not compatible
query I rowsort label-157
SELECT - 68 + 21 * - + 80 * + - 17 + SUM ( 70 ) AS col1
----
28562

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

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

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

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

query II rowsort
SELECT + 51 * + ( - 3 ), - 60 AS col1
----
-153
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-161
SELECT ALL + 46 + 96 * - COUNT( DISTINCT + + ( - - 15 ) ) * 4 * + COUNT( * ) + - 52 AS col2, - COUNT( * ) * + 47
----
-390
-47

skipif mysql # not compatible
query II rowsort label-161
SELECT ALL + 46 + 96 * - COUNT ( DISTINCT + + ( - - 15 ) ) * 4 * + COUNT ( * ) + - 52 AS col2, - COUNT ( * ) * + 47
----
-390
-47

query I rowsort
SELECT ALL + 13 + 45 * - + 16 * + ( + 36 ) + 54 AS col1
----
-25853

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-163
SELECT ALL + 2 * - COUNT( DISTINCT + - CAST( 26 AS SIGNED ) )
----
-2

skipif mysql # not compatible
query I rowsort label-163
SELECT ALL + 2 * - COUNT ( DISTINCT + - CAST ( 26 AS INTEGER ) )
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT ALL 64 * - 73 * COUNT( * ) + + 62 AS col2
----
-4610

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL 64 * - 73 * COUNT ( * ) + + 62 AS col2
----
-4610

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT DISTINCT 1 * + 64 + + 59 + COUNT( * ) + + - 54 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT 1 * + 64 + + 59 + COUNT ( * ) + + - 54 AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-167
SELECT + + CASE - + 21 WHEN 49 * 3 - 41 + - 54 + - 62 THEN + - MIN( 53 ) + NULLIF ( + - SUM( - - 97 ), + CAST( NULL AS SIGNED ) - + + 74 ) END / - 77 + 29 + + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-167
SELECT + + CASE - + 21 WHEN 49 * 3 - 41 + - 54 + - 62 THEN + - MIN ( 53 ) + NULLIF ( + - SUM ( - - 97 ), + CAST ( NULL AS INTEGER ) - + + 74 ) END / - 77 + 29 + + 2 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-168
SELECT + - 25 DIV - - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-168
SELECT + - 25 / - - 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT ALL + MAX( DISTINCT - 14 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL + MAX ( DISTINCT - 14 ) AS col2
----
-14

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

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

query I rowsort
SELECT + - 81 * + + 70
----
-5670

query I rowsort
SELECT DISTINCT 22 * - 13 + - - 67 * + ( ( + 24 ) ) - 13
----
1309

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT DISTINCT + - MIN( ALL - + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT + - MIN ( ALL - + 37 )
----
37

query I rowsort
SELECT DISTINCT - ( + - 32 ) * - - 6 * 30
----
5760

query II rowsort
SELECT + 78, + 34 col1
----
78
34

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

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

query I rowsort
SELECT ALL 22 * - - ( + 58 ) AS col0
----
1276

query I rowsort
SELECT + 28 + + 88 AS col2
----
116

query I rowsort
SELECT - 59 * + + 63 + + 59 * + + 17 AS col0
----
-2714

onlyif mysql # aggregate syntax: 
query II rowsort label-180
SELECT ALL - ( - + COUNT( * ) ) * - 23 * + + 65 AS col1, 40
----
-1495
40

skipif mysql # not compatible
query II rowsort label-180
SELECT ALL - ( - + COUNT ( * ) ) * - 23 * + + 65 AS col1, 40
----
-1495
40

query I rowsort
SELECT + 80 + + 93
----
173

onlyif mysql # aggregate syntax: 
query II rowsort label-182
SELECT COUNT( * ) AS col1, 39 * 80 AS col1
----
1
3120

skipif mysql # not compatible
query II rowsort label-182
SELECT COUNT ( * ) AS col1, 39 * 80 AS col1
----
1
3120

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT - 74 + - ( - COUNT( ALL ( + 37 ) ) )
----
-73

skipif mysql # not compatible
query I rowsort label-183
SELECT - 74 + - ( - COUNT ( ALL ( + 37 ) ) )
----
-73

query II rowsort
SELECT ALL + 26 + + 79 col2, - 18 * 54
----
105
-972

query II rowsort
SELECT 3 AS col2, 40 AS col1
----
3
40

query II rowsort
SELECT 38 AS col1, - 6 AS col0
----
38
-6

query II rowsort
SELECT ALL ( + 59 ), 58 AS col2
----
59
58

onlyif mysql # DIV for integer division: 
query I rowsort label-188
SELECT - + 3 DIV 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-188
SELECT - + 3 / 43 AS col2
----
0

query I rowsort
SELECT + + 98 + 14
----
112

query I rowsort
SELECT ALL + 76 + + 47
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT ALL - + 41 + - + SUM( ALL + + 91 ) + 11 + 26 + - 14 * - 78 * - - 74
----
80713

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL - + 41 + - + SUM ( ALL + + 91 ) + 11 + 26 + - 14 * - 78 * - - 74
----
80713

query I rowsort
SELECT - 97 * - 22 + + 65
----
2199

query II rowsort
SELECT - 20 AS col1, 41 * ( - + ( 38 ) ) * - 53
----
-20
82574

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-194
SELECT DISTINCT - 73 * - COUNT( * ) * + 42 DIV 3
----
1022

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT - 73 * - COUNT ( * ) * + 42 / 3
----
1022

query I rowsort
SELECT ALL + - 12 + + ( + - 23 )
----
-35

query I rowsort
SELECT - - 35 + + 35 + + 19 AS col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-197
SELECT - + CASE + 20 WHEN ( 93 ) THEN 29 * COUNT( * ) ELSE + 85 END + + NULLIF ( + - 5, - 93 ) + ( 5 ) AS col0, + 79 DIV + 9
----
-85
8

skipif mysql # not compatible
query II rowsort label-197
SELECT - + CASE + 20 WHEN ( 93 ) THEN 29 * COUNT ( * ) ELSE + 85 END + + NULLIF ( + - 5, - 93 ) + ( 5 ) AS col0, + 79 / + 9
----
-85
8

query I rowsort
SELECT + 47 - - - 91 + + 34 AS col0
----
-10

query II rowsort
SELECT + + 9 AS col0, + ( 75 ) + + - 84 * + + 12 * + + 5
----
9
-4965

onlyif mysql # DIV for integer division: 
query I rowsort label-200
SELECT ALL + 36 DIV - 42 - 53
----
-53

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL + 36 / - 42 - 53
----
-53

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

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

query II rowsort
SELECT ALL + 42, 75 AS col1
----
42
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-203
SELECT DISTINCT CAST( NULL AS SIGNED ) / 94 * + + 53 - - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-203
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 94 * + + 53 - - + COUNT ( * ) AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 8 * - 23
----
-184

onlyif mysql # aggregate syntax: 
query II rowsort label-206
SELECT COUNT( * ) * - 40 * - 0 + 0 * - COALESCE ( + + 74, + ( - 66 ), - 88 ) AS col0, 60
----
0
60

skipif mysql # not compatible
query II rowsort label-206
SELECT COUNT ( * ) * - 40 * - 0 + 0 * - COALESCE ( + + 74, + ( - 66 ), - 88 ) AS col0, 60
----
0
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-207
SELECT - CAST( NULL AS SIGNED ) * + + ( - 65 ) * 81 + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-207
SELECT - CAST ( NULL AS INTEGER ) * + + ( - 65 ) * 81 + 16 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-208
SELECT + 17 * + CAST( 33 AS SIGNED ) * - MAX( ALL - 94 )
----
52734

skipif mysql # not compatible
query I rowsort label-208
SELECT + 17 * + CAST ( 33 AS INTEGER ) * - MAX ( ALL - 94 )
----
52734

query I rowsort
SELECT DISTINCT 45 * 35 * + 6 AS col0
----
9450

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-211
SELECT DISTINCT - NULLIF ( - ( + CAST( - + CAST( 79 AS SIGNED ) AS SIGNED ) ), 96 * + + 78 )
----
-79

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT - NULLIF ( - ( + CAST ( - + CAST ( 79 AS INTEGER ) AS INTEGER ) ), 96 * + + 78 )
----
-79

query I rowsort
SELECT DISTINCT - 39 * - 36 AS col0
----
1404

query I rowsort
SELECT ALL + 30 * + ( + ( + + 85 ) )
----
2550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-214
SELECT - 72 * + 79 * COUNT( * ) * + CAST( NULL AS SIGNED ) - 63, CASE + COUNT( * ) WHEN + 4 THEN - 79 ELSE NULL END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-214
SELECT - 72 * + 79 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) - 63, CASE + COUNT ( * ) WHEN + 4 THEN - 79 ELSE NULL END AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT DISTINCT 68 + COUNT( * ) + - 77 + + + 44
----
36

skipif mysql # not compatible
query I rowsort label-215
SELECT DISTINCT 68 + COUNT ( * ) + - 77 + + + 44
----
36

query I rowsort
SELECT 80 * + 37 AS col1
----
2960

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT DISTINCT + 13 + + + 38 + - COUNT( * ) + - COUNT( * ) + 69
----
118

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT + 13 + + + 38 + - COUNT ( * ) + - COUNT ( * ) + 69
----
118

query I rowsort
SELECT DISTINCT ( + 70 ) + + 36 AS col0
----
106

query II rowsort
SELECT ALL + 46 + + 17, 61 AS col0
----
63
61

onlyif mysql # DIV for integer division: 
query I rowsort label-220
SELECT - 73 - 74 * + ( + 38 ) + - NULLIF ( - 23, - - 14 + - NULLIF ( - 34, + 88 ) ) DIV - ( - 53 ) AS col0
----
-2885

skipif mysql # not compatible
query I rowsort label-220
SELECT - 73 - 74 * + ( + 38 ) + - NULLIF ( - 23, - - 14 + - NULLIF ( - 34, + 88 ) ) / - ( - 53 ) AS col0
----
-2885

query II rowsort
SELECT + ( - 39 ) AS col1, 90
----
-39
90

onlyif mysql # DIV for integer division: 
query I rowsort label-222
SELECT 67 DIV 59
----
1

skipif mysql # not compatible
query I rowsort label-222
SELECT 67 / 59
----
1

query I rowsort
SELECT ALL + 86 + 2 + - + 48 + + - 15
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT + 39 * - - 96 * + 71 + 19 * - - 70 + + 71 + + + SUM( - + 46 ) + - CASE + + CASE 97 WHEN + 89 THEN 96 END WHEN 67 THEN NULL WHEN - 49 * 16 * - + 94 THEN 89 * + 0 + + 98 * + 14 END * ( + 70 * 74 ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-224
SELECT + 39 * - - 96 * + 71 + 19 * - - 70 + + 71 + + + SUM ( - + 46 ) + - CASE + + CASE 97 WHEN + 89 THEN 96 END WHEN 67 THEN NULL WHEN - 49 * 16 * - + 94 THEN 89 * + 0 + + 98 * + 14 END * ( + 70 * 74 ) * COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( 64, + - 30 + + 32 )
----
-64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT 77 * - 9 * + 26 * COUNT( * ) AS col2
----
-18018

skipif mysql # not compatible
query I rowsort label-227
SELECT 77 * - 9 * + 26 * COUNT ( * ) AS col2
----
-18018

query I rowsort
SELECT - 45 + + 42
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT DISTINCT - 3 * + + 25 + - 98 DIV 62 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT - 3 * + + 25 + - 98 / 62 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT ALL + COALESCE ( - COALESCE ( 44, 72 * + COUNT( * ), - SUM( ALL - 51 ) * + + 31 ), 5 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL + COALESCE ( - COALESCE ( 44, 72 * + COUNT ( * ), - SUM ( ALL - 51 ) * + + 31 ), 5 ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT DISTINCT + 1 * + MAX( DISTINCT - + 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT + 1 * + MAX ( DISTINCT - + 8 )
----
-8

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-233
SELECT ALL - COALESCE ( + COALESCE ( + 56, 74 DIV + + 77 DIV - 27 + + + 51 + 69 ), + CAST( NULL AS SIGNED ) + - COUNT( * ) + + + 40 )
----
-56

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL - COALESCE ( + COALESCE ( + 56, 74 / + + 77 / - 27 + + + 51 + 69 ), + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + + 40 )
----
-56

query II rowsort
SELECT 21 AS col1, 7
----
21
7

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

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

query I rowsort
SELECT DISTINCT 86 * 66 AS col1
----
5676

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-237
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + NULLIF ( 78, - 7 ) AS col0, - 96
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-237
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + NULLIF ( 78, - 7 ) AS col0, - 96
----
NULL
-96

query II rowsort
SELECT ALL - 16 AS col2, 75
----
-16
75

query I rowsort
SELECT ( - 71 ) * - 68 + - 50 col0
----
4778

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT ALL + COUNT( * ) + - - 95 + - + 75 * + + 58 + 49 * - 78
----
-8076

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL + COUNT ( * ) + - - 95 + - + 75 * + + 58 + 49 * - 78
----
-8076

onlyif mysql # aggregate syntax: 
query II rowsort label-241
SELECT + 0 AS col0, SUM( ALL 11 ) AS col2
----
0
11

skipif mysql # not compatible
query II rowsort label-241
SELECT + 0 AS col0, SUM ( ALL 11 ) AS col2
----
0
11

query II rowsort
SELECT 72 AS col2, 3 * 2
----
72
6

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT - 6 * + + 68 + 13 * - + COUNT( * ) + - 26
----
-447

skipif mysql # not compatible
query I rowsort label-243
SELECT - 6 * + + 68 + 13 * - + COUNT ( * ) + - 26
----
-447

query II rowsort
SELECT + 10 AS col1, + 77 col2
----
10
77

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT SUM( ALL 65 ) + 95 + - 75
----
85

skipif mysql # not compatible
query I rowsort label-245
SELECT SUM ( ALL 65 ) + 95 + - 75
----
85

query II rowsort
SELECT ALL 79 + 39 + + 79 AS col0, 31 AS col1
----
197
31

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT 70 + + COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-247
SELECT 70 + + COUNT ( * ) AS col1
----
71

query II rowsort
SELECT ALL 21, 98 col2
----
21
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-249
SELECT DISTINCT 36 + COUNT( * ) + - 54 DIV - + 76
----
37

skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT 36 + COUNT ( * ) + - 54 / - + 76
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-250
SELECT ALL 70 AS col2, - COUNT( * ) + - ( - - 33 )
----
70
-34

skipif mysql # not compatible
query II rowsort label-250
SELECT ALL 70 AS col2, - COUNT ( * ) + - ( - - 33 )
----
70
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT ( - 21 ) + - MAX( - + 25 )
----
4

skipif mysql # not compatible
query I rowsort label-251
SELECT ( - 21 ) + - MAX ( - + 25 )
----
4

query II rowsort
SELECT DISTINCT - 95 AS col0, - 6 + 68 * 45
----
-95
3054

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT - COUNT( * ) * 32 - 41 + 74 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-253
SELECT - COUNT ( * ) * 32 - 41 + 74 AS col0
----
1

query I rowsort
SELECT 13 * + 3
----
39

query I rowsort
SELECT ALL + - 82 - + + 7 AS col2
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-256
SELECT ALL - 63 * + ( - 88 ) AS col0, 13 DIV - MAX( DISTINCT 47 ) * 91 col2
----
5544
0

skipif mysql # not compatible
query II rowsort label-256
SELECT ALL - 63 * + ( - 88 ) AS col0, 13 / - MAX ( DISTINCT 47 ) * 91 col2
----
5544
0

query I rowsort
SELECT ALL + NULLIF ( + 46, + 41 / + + 67 / + 48 )
----
46

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

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

query II rowsort
SELECT - 89 AS col2, 96
----
-89
96

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT - 9 * - CASE + 84 WHEN - 26 THEN + + ( 27 ) + - 11 + + NULLIF ( 7, + 11 * - + 51 * - 9 ) WHEN 70 + + COALESCE ( - COUNT( * ), - 18, + COUNT( * ) + 1, + 66 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-260
SELECT - 9 * - CASE + 84 WHEN - 26 THEN + + ( 27 ) + - 11 + + NULLIF ( 7, + 11 * - + 51 * - 9 ) WHEN 70 + + COALESCE ( - COUNT ( * ), - 18, + COUNT ( * ) + 1, + 66 ) THEN NULL END
----
NULL

query I rowsort
SELECT - ( + 93 ) col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT + 67 - + - CASE 32 WHEN + + 27 THEN - COUNT( * ) WHEN + CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE 1 END THEN 6 WHEN + + 41 * + + COUNT( * ) THEN - + 77 * - + 87 + - 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-262
SELECT + 67 - + - CASE 32 WHEN + + 27 THEN - COUNT ( * ) WHEN + CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE 1 END THEN 6 WHEN + + 41 * + + COUNT ( * ) THEN - + 77 * - + 87 + - 95 END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-264
SELECT ALL - 47 DIV + 78 * 51 * + 56
----
0

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL - 47 / + 78 * 51 * + 56
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-265
SELECT + CASE - 68 WHEN - 99 * 52 THEN + 13 END + + NULLIF ( + + COUNT( * ), + 0 ) + + CAST( - ( CAST( NULL AS SIGNED ) ) AS DECIMAL ) / CASE + + 25 WHEN - + 84 / - 98 THEN NULL WHEN + 36 THEN + - COUNT( * ) + - CAST( NULL AS SIGNED ) + - 3 * - 16 ELSE NULL END * MAX( - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-265
SELECT + CASE - 68 WHEN - 99 * 52 THEN + 13 END + + NULLIF ( + + COUNT ( * ), + 0 ) + + CAST ( - ( CAST ( NULL AS INTEGER ) ) AS REAL ) / CASE + + 25 WHEN - + 84 / - 98 THEN NULL WHEN + 36 THEN + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - 3 * - 16 ELSE NULL END * MAX ( - 90 )
----
NULL

query I rowsort
SELECT - + 36 + + 92
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-267
SELECT - 81 * - CAST( NULL AS SIGNED ) * 73 * + 85, NULLIF ( - COALESCE ( + 42, 87 * + COUNT( + + 74 ) + - COUNT( * ), 28 - 14, + - 51 ), + SUM( - 88 ) ) AS col1
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-267
SELECT - 81 * - CAST ( NULL AS INTEGER ) * 73 * + 85, NULLIF ( - COALESCE ( + 42, 87 * + COUNT ( + + 74 ) + - COUNT ( * ), 28 - 14, + - 51 ), + SUM ( - 88 ) ) AS col1
----
NULL
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-268
SELECT ALL + CAST( + - CAST( + 85 AS SIGNED ) AS SIGNED ) * 23 + + 56 AS col0
----
-1899

skipif mysql # not compatible
query I rowsort label-268
SELECT ALL + CAST ( + - CAST ( + 85 AS INTEGER ) AS INTEGER ) * 23 + + 56 AS col0
----
-1899

query I rowsort
SELECT ALL - NULLIF ( 80, + 50 - + + 27 ) * - + 56
----
4480

query I rowsort
SELECT NULLIF ( - + 53, + 33 * + 11 + - + 68 * + - 56 + 63 + + - 12 * - 66 )
----
-53

query II rowsort
SELECT ALL 63 * + 64, 76 AS col0
----
4032
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-272
SELECT 57 DIV + + COALESCE ( + 84, - CASE MIN( + CASE + 4 WHEN + ( + 8 ) THEN + 39 END ) WHEN - 9 + + COALESCE ( - COUNT( * ), - + 29 * - - 21, + COUNT( * ) ) DIV - - 97 * + COUNT( * ) THEN NULL ELSE + 7 END, + 64 DIV COUNT( * ) ) * - SUM( 24 + - 45 ) + - 73 * 61 AS col0
----
-4453

skipif mysql # not compatible
query I rowsort label-272
SELECT 57 / + + COALESCE ( + 84, - CASE MIN ( + CASE + 4 WHEN + ( + 8 ) THEN + 39 END ) WHEN - 9 + + COALESCE ( - COUNT ( * ), - + 29 * - - 21, + COUNT ( * ) ) / - - 97 * + COUNT ( * ) THEN NULL ELSE + 7 END, + 64 / COUNT ( * ) ) * - SUM ( 24 + - 45 ) + - 73 * 61 AS col0
----
-4453

query I rowsort
SELECT COALESCE ( 7, + 13 - 54 * 40 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT 30 * 6 + MAX( DISTINCT - 71 ) AS col1
----
109

skipif mysql # not compatible
query I rowsort label-274
SELECT 30 * 6 + MAX ( DISTINCT - 71 ) AS col1
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-275
SELECT COALESCE ( COUNT( * ), + ( - 47 ) * + 84 DIV 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-275
SELECT COALESCE ( COUNT ( * ), + ( - 47 ) * + 84 / 29 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-276
SELECT - COUNT( * ) * - - 31 * + + 80 * 15 * + 6 * - 33 * - 0, - 77 AS col2
----
0
-77

skipif mysql # not compatible
query II rowsort label-276
SELECT - COUNT ( * ) * - - 31 * + + 80 * 15 * + 6 * - 33 * - 0, - 77 AS col2
----
0
-77

query I rowsort
SELECT NULLIF ( 66, 38 ) AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-278
SELECT ALL + COALESCE ( - - COUNT( * ), COALESCE ( - 58, + 9 - + + 28 * + 47 * CASE - + 71 WHEN 22 THEN 44 END ) + - 55, + CAST( NULL AS SIGNED ) - + 25 )
----
1

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL + COALESCE ( - - COUNT ( * ), COALESCE ( - 58, + 9 - + + 28 * + 47 * CASE - + 71 WHEN 22 THEN 44 END ) + - 55, + CAST ( NULL AS INTEGER ) - + 25 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT + COUNT( ALL - - 82 ) + 44 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-279
SELECT + COUNT ( ALL - - 82 ) + 44 AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-280
SELECT - 85 * + CASE CAST( NULL AS DECIMAL ) WHEN 20 THEN COUNT( * ) + + AVG ( DISTINCT + 0 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-280
SELECT - 85 * + CASE CAST ( NULL AS REAL ) WHEN 20 THEN COUNT ( * ) + + AVG ( DISTINCT + 0 ) END AS col2
----
NULL

query I rowsort
SELECT ALL + CASE - 66 WHEN - 86 * - + 23 THEN - 36 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 32 * + 95 AS col1
----
3040

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

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

query I rowsort
SELECT - 21 - - 90 AS col1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-285
SELECT + 91 DIV - + COUNT( * ) * - + ( - + COUNT( DISTINCT - + 31 ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-285
SELECT + 91 / - + COUNT ( * ) * - + ( - + COUNT ( DISTINCT - + 31 ) ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT + CASE - MAX( DISTINCT - 1 ) WHEN 25 THEN NULL WHEN + + 16 THEN 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-286
SELECT + CASE - MAX ( DISTINCT - 1 ) WHEN 25 THEN NULL WHEN + + 16 THEN 59 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-287
SELECT ALL - 3 DIV 25 * 50 * - ( - + SUM( DISTINCT + 67 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL - 3 / 25 * 50 * - ( - + SUM ( DISTINCT + 67 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT ALL + NULLIF ( 56, MAX( - 55 ) )
----
56

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL + NULLIF ( 56, MAX ( - 55 ) )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-289
SELECT + + 23 - + CASE + - 33 WHEN - 53 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN + + 17 + - 42 END AS col1, - 71 AS col0
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-289
SELECT + + 23 - + CASE + - 33 WHEN - 53 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN + + 17 + - 42 END AS col1, - 71 AS col0
----
NULL
-71

query I rowsort
SELECT DISTINCT 95 + - - 48 AS col0
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-291
SELECT + 64 + COUNT( * ) - + 2 * + - MIN( DISTINCT - - 64 ) AS col1, - 91 AS col2
----
193
-91

skipif mysql # not compatible
query II rowsort label-291
SELECT + 64 + COUNT ( * ) - + 2 * + - MIN ( DISTINCT - - 64 ) AS col1, - 91 AS col2
----
193
-91

query I rowsort
SELECT - 34 - + 79 AS col0
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT + + 96 * - 12 * 42 * - - 91 + + COUNT( * )
----
-4402943

skipif mysql # not compatible
query I rowsort label-293
SELECT + + 96 * - 12 * 42 * - - 91 + + COUNT ( * )
----
-4402943

query I rowsort
SELECT ALL + 91 + 32 * + 68
----
2267

query I rowsort
SELECT - ( CASE 81 WHEN - 99 THEN NULL ELSE - 78 END ) col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT + 34 + COUNT( * ) + + - 99 * + 19 AS col0
----
-1846

skipif mysql # not compatible
query I rowsort label-296
SELECT + 34 + COUNT ( * ) + + - 99 * + 19 AS col0
----
-1846

query I rowsort
SELECT ALL - 98 + - 63
----
-161

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

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT ALL 57 + + COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL 57 + + COUNT ( * ) AS col2
----
58

query I rowsort
SELECT + 39 - + 65
----
-26

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

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

query I rowsort
SELECT 62 * - 95 * 55 + - + 35
----
-323985

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-303
SELECT + CAST( + SUM( DISTINCT 58 ) AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-303
SELECT + CAST ( + SUM ( DISTINCT 58 ) AS INTEGER )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-304
SELECT ALL 92 / - ( - 56 ) * + 82 + 22 + 55 * - CASE + 87 WHEN - CAST( NULL AS SIGNED ) - CAST( + COUNT( * ) AS SIGNED ) THEN + 64 * - + 99 WHEN + + 23 / - 3 * 64 + COALESCE ( + - CAST( NULL AS SIGNED ), - 56 ) THEN NULL ELSE NULL END * 34 + - CAST( + COALESCE ( - 14, + 74 ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-304
SELECT ALL 92 / - ( - 56 ) * + 82 + 22 + 55 * - CASE + 87 WHEN - CAST ( NULL AS INTEGER ) - CAST ( + COUNT ( * ) AS INTEGER ) THEN + 64 * - + 99 WHEN + + 23 / - 3 * 64 + COALESCE ( + - CAST ( NULL AS INTEGER ), - 56 ) THEN NULL ELSE NULL END * 34 + - CAST ( + COALESCE ( - 14, + 74 ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT DISTINCT + MAX( ALL + + 13 ) * - 89 - + COUNT( * ) AS col0
----
-1158

skipif mysql # not compatible
query I rowsort label-305
SELECT DISTINCT + MAX ( ALL + + 13 ) * - 89 - + COUNT ( * ) AS col0
----
-1158

onlyif mysql # DIV for integer division: 
query I rowsort label-306
SELECT DISTINCT 60 DIV - 26 - + - 34 + + 64 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-306
SELECT DISTINCT 60 / - 26 - + - 34 + + 64 AS col1
----
96

query II rowsort
SELECT ALL + NULLIF ( + 68, - + 59 * + CASE 90 WHEN - 4 THEN + - ( 72 ) * + 66 * - 10 END ) AS col2, + 80 + + 78 * 36 + - 71
----
68
2817

query I rowsort
SELECT ALL 35 * + 50 * - 20 * 41 - - 46 AS col0
----
-1434954

query I rowsort
SELECT ALL - 9 * 10
----
-90

query I rowsort
SELECT ( ( - 76 ) ) col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT ( - COUNT( DISTINCT 0 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-311
SELECT ( - COUNT ( DISTINCT 0 ) )
----
-1

query I rowsort
SELECT - 32 * + 47 AS col1
----
-1504

query I rowsort
SELECT + 95 * + + 10 + + 18 * + 1 + - + 42
----
926

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT 18 * + 16 + - COUNT( * ) + - 23
----
264

skipif mysql # not compatible
query I rowsort label-314
SELECT 18 * + 16 + - COUNT ( * ) + - 23
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-315
SELECT ALL + - ( - 82 ) * CAST( ( 85 ) AS SIGNED ) * - 45 - + 42 - + - NULLIF ( + + 38, CASE + CASE - 72 WHEN + 56 - - - MIN( DISTINCT + - 57 ) + + 52 + + 60 * + + 81 * - COUNT( * ) - - 2 THEN 6 * 86 END WHEN - 31 THEN CAST( - COALESCE ( COUNT( * ), - 26 ) AS SIGNED ) WHEN + CASE - 50 WHEN - NULLIF ( ( - 74 ), 94 ) THEN - 75 WHEN - COUNT( * ) THEN NULL END THEN NULL WHEN + 99 THEN + 32 END ) * - 96
----
-317340

skipif mysql # not compatible
query I rowsort label-315
SELECT ALL + - ( - 82 ) * CAST ( ( 85 ) AS INTEGER ) * - 45 - + 42 - + - NULLIF ( + + 38, CASE + CASE - 72 WHEN + 56 - - - MIN ( DISTINCT + - 57 ) + + 52 + + 60 * + + 81 * - COUNT ( * ) - - 2 THEN 6 * 86 END WHEN - 31 THEN CAST ( - COALESCE ( COUNT ( * ), - 26 ) AS INTEGER ) WHEN + CASE - 50 WHEN - NULLIF ( ( - 74 ), 94 ) THEN - 75 WHEN - COUNT ( * ) THEN NULL END THEN NULL WHEN + 99 THEN + 32 END ) * - 96
----
-317340

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT - + COUNT( * ) + + + 50 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-316
SELECT - + COUNT ( * ) + + + 50 AS col1
----
49

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

query I rowsort
SELECT DISTINCT - 74 * - 28 AS col2
----
2072

query II rowsort
SELECT DISTINCT + - 81, 8 col2
----
-81
8

onlyif mysql # aggregate syntax: 
query II rowsort label-320
SELECT - MIN( - - 61 ) + - 6 + - ( - - 66 ) AS col1, - 92 col0
----
-133
-92

skipif mysql # not compatible
query II rowsort label-320
SELECT - MIN ( - - 61 ) + - 6 + - ( - - 66 ) AS col1, - 92 col0
----
-133
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-321
SELECT - COALESCE ( CAST( + - CASE 25 WHEN + 6 * 45 THEN NULL WHEN + 64 * + CAST( NULL AS SIGNED ) * 56 THEN - 48 + + CASE - COUNT( * ) WHEN + - CASE + - AVG ( + ( 34 ) ) WHEN - COUNT( + 13 ) / - 87 + + 13 THEN ( MIN( DISTINCT 59 ) ) WHEN - 81 + 2 THEN + 92 ELSE NULL END + - 75 * + 44 THEN + 91 WHEN 74 THEN NULL ELSE - COALESCE ( - 93, 71 ) END + 1 ELSE ( 83 ) + 71 END AS SIGNED ), - ( ( 85 ) ) + 84 ) * COUNT( * ) + + 25
----
179

skipif mysql # not compatible
query I rowsort label-321
SELECT - COALESCE ( CAST ( + - CASE 25 WHEN + 6 * 45 THEN NULL WHEN + 64 * + CAST ( NULL AS INTEGER ) * 56 THEN - 48 + + CASE - COUNT ( * ) WHEN + - CASE + - AVG ( + ( 34 ) ) WHEN - COUNT ( + 13 ) / - 87 + + 13 THEN ( MIN ( DISTINCT 59 ) ) WHEN - 81 + 2 THEN + 92 ELSE NULL END + - 75 * + 44 THEN + 91 WHEN 74 THEN NULL ELSE - COALESCE ( - 93, 71 ) END + 1 ELSE ( 83 ) + 71 END AS INTEGER ), - ( ( 85 ) ) + 84 ) * COUNT ( * ) + + 25
----
179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-322
SELECT DISTINCT - COUNT( * ) * 19 DIV - + 62 DIV - COUNT( * ) + - + 15
----
-15

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT - COUNT ( * ) * 19 / - + 62 / - COUNT ( * ) + - + 15
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT ALL - COUNT( * ) + NULLIF ( - + 62, - MAX( - 31 ) ) + - + 63 - + 69 + ( 60 ) AS col1
----
-135

skipif mysql # not compatible
query I rowsort label-323
SELECT ALL - COUNT ( * ) + NULLIF ( - + 62, - MAX ( - 31 ) ) + - + 63 - + 69 + ( 60 ) AS col1
----
-135

onlyif mysql # DIV for integer division: 
query II rowsort label-324
SELECT DISTINCT 83 + - + 69 DIV - 91 AS col1, 27 col1
----
83
27

skipif mysql # not compatible
query II rowsort label-324
SELECT DISTINCT 83 + - + 69 / - 91 AS col1, 27 col1
----
83
27

query I rowsort
SELECT ALL + 20 + - 67 AS col0
----
-47

query I rowsort
SELECT ALL - 61 + + - 48 * 5 AS col1
----
-301

onlyif mysql # DIV for integer division: 
query I rowsort label-327
SELECT DISTINCT + 98 DIV + - 9 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-327
SELECT DISTINCT + 98 / + - 9 AS col2
----
-10

query I rowsort
SELECT ALL 11 + + 37
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-329
SELECT DISTINCT - COALESCE ( + + 42, + COUNT( * ) ) + - + 26 DIV 63 DIV - 78 col0
----
-42

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT - COALESCE ( + + 42, + COUNT ( * ) ) + - + 26 / 63 / - 78 col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT COALESCE ( - 31, 46, + - ( + COALESCE ( + 2, - 80 ) ) * - 8 * + ( + 75 ) ) + + + 2 + NULLIF ( + - 73, + 78 ) * - NULLIF ( + + NULLIF ( 3, - - 46 ), + COUNT( * ) + - - 35 )
----
190

skipif mysql # not compatible
query I rowsort label-330
SELECT COALESCE ( - 31, 46, + - ( + COALESCE ( + 2, - 80 ) ) * - 8 * + ( + 75 ) ) + + + 2 + NULLIF ( + - 73, + 78 ) * - NULLIF ( + + NULLIF ( 3, - - 46 ), + COUNT ( * ) + - - 35 )
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT DISTINCT 63 + 67 + - COUNT( * ) * - 19 - - 97
----
246

skipif mysql # not compatible
query I rowsort label-331
SELECT DISTINCT 63 + 67 + - COUNT ( * ) * - 19 - - 97
----
246

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-332
SELECT DISTINCT 77 col0, 75 + - CAST( NULL AS DECIMAL )
----
77
NULL

skipif mysql # not compatible
query II rowsort label-332
SELECT DISTINCT 77 col0, 75 + - CAST ( NULL AS REAL )
----
77
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-333
SELECT - 82 AS col1, 20 * - 90 * + COUNT( * )
----
-82
-1800

skipif mysql # not compatible
query II rowsort label-333
SELECT - 82 AS col1, 20 * - 90 * + COUNT ( * )
----
-82
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT COUNT( * ) + + 59 + - 0
----
60

skipif mysql # not compatible
query I rowsort label-334
SELECT COUNT ( * ) + + 59 + - 0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT COUNT( + 87 ) + ( 72 )
----
73

skipif mysql # not compatible
query I rowsort label-335
SELECT COUNT ( + 87 ) + ( 72 )
----
73

query I rowsort
SELECT DISTINCT 4 + 8 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT MIN( - + 87 ) * 67 * - 31 * + 18 AS col0
----
3252582

skipif mysql # not compatible
query I rowsort label-337
SELECT MIN ( - + 87 ) * 67 * - 31 * + 18 AS col0
----
3252582

query I rowsort
SELECT DISTINCT 68 - + 47 * - 97
----
4627

query I rowsort
SELECT 80 + + - 32
----
48

query I rowsort
SELECT ALL - 95 - + + 32 AS col0
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT 96 / ( + - 55 ) * + CASE 96 WHEN - COUNT( * ) THEN - 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-341
SELECT 96 / ( + - 55 ) * + CASE 96 WHEN - COUNT ( * ) THEN - 75 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-342
SELECT DISTINCT 55 DIV - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-342
SELECT DISTINCT 55 / - 96 AS col0
----
0

query I rowsort
SELECT 9 * + + 31 col1
----
279

query I rowsort
SELECT ( + 85 ) * + ( + 70 ) AS col0
----
5950

onlyif mysql # DIV for integer division: 
query I rowsort label-345
SELECT DISTINCT 82 DIV 9 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-345
SELECT DISTINCT 82 / 9 AS col2
----
9

query II rowsort
SELECT ALL - 11 AS col1, 23
----
-11
23

onlyif mysql # DIV for integer division: 
query I rowsort label-347
SELECT DISTINCT + 9 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-347
SELECT DISTINCT + 9 / - 90
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-348
SELECT + COUNT( * ), 34 + 10 * + + NULLIF ( - 7, + + 81 ) * MAX( ALL + 83 ) + - ( 90 ) AS col0
----
1
-5866

skipif mysql # not compatible
query II rowsort label-348
SELECT + COUNT ( * ), 34 + 10 * + + NULLIF ( - 7, + + 81 ) * MAX ( ALL + 83 ) + - ( 90 ) AS col0
----
1
-5866

query I rowsort
SELECT ALL - 76 * + - 48 col0
----
3648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-350
SELECT 48 AS col0, COUNT( * ) * + CASE + + 29 WHEN 92 + - + SUM( ALL + 92 ) - + 98 + SUM( DISTINCT - 53 ) * + 20 THEN 75 + - - 79 WHEN - - COUNT( * ) + + + CAST( NULL AS SIGNED ) + 14 - - 2 + + + 32 - 80 THEN NULL ELSE NULL END
----
48
NULL

skipif mysql # not compatible
query II rowsort label-350
SELECT 48 AS col0, COUNT ( * ) * + CASE + + 29 WHEN 92 + - + SUM ( ALL + 92 ) - + 98 + SUM ( DISTINCT - 53 ) * + 20 THEN 75 + - - 79 WHEN - - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + 14 - - 2 + + + 32 - 80 THEN NULL ELSE NULL END
----
48
NULL

query I rowsort
SELECT + 62 * + 1 * 0 AS col2
----
0

query I rowsort
SELECT DISTINCT - 84 * + 69 * - 72
----
417312

query I rowsort
SELECT + 75 * + 99 - 32 * - 63 + 35
----
9476

query II rowsort
SELECT 92, COALESCE ( - 25, + 4 * + 80 + - - ( 78 ), + 56 ) col0
----
92
-25

query I rowsort
SELECT ( 81 ) - - + 86 + + - 99 * - - ( - 49 )
----
5018

query I rowsort
SELECT - 28 * + 59
----
-1652

query I rowsort
SELECT ALL ( + 85 ) + - 39
----
46

query I rowsort
SELECT ALL 16 + + 32
----
48

query I rowsort
SELECT DISTINCT - 32 + + 73
----
41

query I rowsort
SELECT ALL - + 8 + - 43
----
-51

query II rowsort
SELECT 39 - - + 84 AS col0, + 59 AS col0
----
123
59

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT ALL COUNT( - - 28 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-362
SELECT ALL COUNT ( - - 28 ) AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT 85 - - COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-364
SELECT 85 - - COUNT ( * ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL + COUNT( DISTINCT + 71 ) * 3
----
3

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL + COUNT ( DISTINCT + 71 ) * 3
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT 29 + + + NULLIF ( - COUNT( ( 76 ) ), - 30 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-366
SELECT 29 + + + NULLIF ( - COUNT ( ( 76 ) ), - 30 ) AS col2
----
28

query I rowsort
SELECT 39 + - - 14 * + 22
----
347

query I rowsort
SELECT ALL - ( + 46 ) * - + ( 4 )
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT DISTINCT + 63 - + + 27 - + MIN( + 65 )
----
-29

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT + 63 - + + 27 - + MIN ( + 65 )
----
-29

query I rowsort
SELECT 0 * 37 + - 54 + + 13
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-371
SELECT 64 * - - 38, + ( - + CAST( NULL AS SIGNED ) ) AS col2
----
2432
NULL

skipif mysql # not compatible
query II rowsort label-371
SELECT 64 * - - 38, + ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
2432
NULL

query I rowsort
SELECT + 14 * - 41 + 59 - - - NULLIF ( - 47, - 70 ) AS col2
----
-468

query I rowsort
SELECT DISTINCT 14 * - + ( + - 93 ) AS col0
----
1302

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT ALL COUNT( * ) * 25 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL COUNT ( * ) * 25 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT MIN( 14 ) * + - 17 AS col1
----
-238

skipif mysql # not compatible
query I rowsort label-375
SELECT MIN ( 14 ) * + - 17 AS col1
----
-238

onlyif mysql # DIV for integer division: 
query I rowsort label-376
SELECT ALL + 73 * 47 DIV + 44 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL + 73 * 47 / + 44 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT 67 - COUNT( * ) - - 97 AS col1
----
163

skipif mysql # not compatible
query I rowsort label-377
SELECT 67 - COUNT ( * ) - - 97 AS col1
----
163

query I rowsort
SELECT DISTINCT - 80 * 87 AS col1
----
-6960

query I rowsort
SELECT ALL - - 94 * - - 15 + 79 + + + 78
----
1567

query II rowsort
SELECT - 27 * + ( 68 ) + + 14 - - 73 AS col2, + 85 - + - 98 * - + 67 * - 41
----
-1749
269291

query II rowsort
SELECT ALL - ( - + 23 ) AS col2, 18 AS col1
----
23
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-382
SELECT DISTINCT - CAST( - + 32 AS SIGNED ) * - 45 + - - CASE + 26 WHEN + 7 THEN 78 ELSE NULL END AS col1, 0 * 3 + - ( - 41 ) + + ( - ( - + 28 ) ) * ( + 26 )
----
NULL
769

skipif mysql # not compatible
query II rowsort label-382
SELECT DISTINCT - CAST ( - + 32 AS INTEGER ) * - 45 + - - CASE + 26 WHEN + 7 THEN 78 ELSE NULL END AS col1, 0 * 3 + - ( - 41 ) + + ( - ( - + 28 ) ) * ( + 26 )
----
NULL
769

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

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

query I rowsort
SELECT ALL - 18 * - 38 + 65
----
749

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-385
SELECT - 48 * + - 2 + + + 4 - + + COUNT( * ) DIV - + 34 + - 46 + - 23 + - 38
----
-7

skipif mysql # not compatible
query I rowsort label-385
SELECT - 48 * + - 2 + + + 4 - + + COUNT ( * ) / - + 34 + - 46 + - 23 + - 38
----
-7

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-387
SELECT ALL 43 DIV - - COUNT( + 13 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL 43 / - - COUNT ( + 13 ) AS col2
----
43

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

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

query I rowsort
SELECT DISTINCT 61 * ( - + 20 ) - + 31 AS col1
----
-1251

query I rowsort
SELECT DISTINCT + 72 + - 93
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-391
SELECT + - 34 + - CAST( NULL AS SIGNED ) * 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-391
SELECT + - 34 + - CAST ( NULL AS INTEGER ) * 72 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) * + 66 + - - 23
----
-43

query I rowsort
SELECT + + 48 * - + 81 * + + 77 AS col2
----
-299376

onlyif mysql # aggregate syntax: 
query II rowsort label-394
SELECT - - 84 + - + 89 + - COALESCE ( + COUNT( * ), + COUNT( * ) ) * + 87 * + 58 + + - 50 AS col1, + 98 * + 22
----
-5101
2156

skipif mysql # not compatible
query II rowsort label-394
SELECT - - 84 + - + 89 + - COALESCE ( + COUNT ( * ), + COUNT ( * ) ) * + 87 * + 58 + + - 50 AS col1, + 98 * + 22
----
-5101
2156

query I rowsort
SELECT + 16 + - + 86 col0
----
-70

query I rowsort
SELECT - NULLIF ( - ( - 14 ), - 70 / - 48 * + 73 )
----
-14

query I rowsort
SELECT - 81 + - 77
----
-158

query I rowsort
SELECT + 93 + + 78 AS col1
----
171

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

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

query I rowsort
SELECT ALL ( 13 ) - - 27 + - + 1 - + 46 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT - CASE 22 WHEN - 62 * - 24 + + AVG ( ALL - + 3 ) * + - COUNT( * ) THEN NULL ELSE 94 END * + 72 AS col2
----
-6768

skipif mysql # not compatible
query I rowsort label-401
SELECT - CASE 22 WHEN - 62 * - 24 + + AVG ( ALL - + 3 ) * + - COUNT ( * ) THEN NULL ELSE 94 END * + 72 AS col2
----
-6768

query I rowsort
SELECT - ( + - 24 ) * - 52
----
-1248

query I rowsort
SELECT ALL NULLIF ( + + 79, + 73 ) AS col1
----
79

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT - 85 DIV 16 * - 41 AS col2
----
205

skipif mysql # not compatible
query I rowsort label-405
SELECT - 85 / 16 * - 41 AS col2
----
205

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT - 91 * - - NULLIF ( - + MIN( + - 61 ), - 61 ) col1
----
-5551

skipif mysql # not compatible
query I rowsort label-406
SELECT - 91 * - - NULLIF ( - + MIN ( + - 61 ), - 61 ) col1
----
-5551

query I rowsort
SELECT - 3 + 6
----
3

query II rowsort
SELECT - 57 AS col1, + 62 AS col1
----
-57
62

query I rowsort
SELECT + 85 + - 97 AS col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-410
SELECT - 55 DIV + 26 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-410
SELECT - 55 / + 26 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-411
SELECT ALL + 57 DIV - - 36 + - 66 + 30 * - + 79 + - COUNT( * ) AS col2
----
-2436

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL + 57 / - - 36 + - 66 + 30 * - + 79 + - COUNT ( * ) AS col2
----
-2436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-412
SELECT ( + COUNT( * ) ) / + 27 + - 92 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-412
SELECT ( + COUNT ( * ) ) / + 27 + - 92 + + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - - 39 + 34
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT DISTINCT + 7 * - - 74 + COUNT( * ) + - 0
----
519

skipif mysql # not compatible
query I rowsort label-414
SELECT DISTINCT + 7 * - - 74 + COUNT ( * ) + - 0
----
519

onlyif mysql # aggregate syntax: 
query II rowsort label-415
SELECT ALL - + ( NULLIF ( 60, - - 41 ) ) * - 85 + - + 83 + + MIN( - 80 ) - 80 AS col2, 86
----
4857
86

skipif mysql # not compatible
query II rowsort label-415
SELECT ALL - + ( NULLIF ( 60, - - 41 ) ) * - 85 + - + 83 + + MIN ( - 80 ) - 80 AS col2, 86
----
4857
86

query I rowsort
SELECT ALL - 63 * - + 11 * COALESCE ( 92, - - 67 ) * - + 76 + - 7 + 31 * 24
----
-4844719

query I rowsort
SELECT DISTINCT + 28 * + 8 + - 29 * + + 19 AS col1
----
-327

query II rowsort
SELECT 21, - 29 * + 52 AS col0
----
21
-1508

query I rowsort
SELECT ALL 32 * 84
----
2688

onlyif mysql # DIV for integer division: 
query I rowsort label-420
SELECT - 1 * - NULLIF ( + 53, + 52 ) DIV - + 52 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-420
SELECT - 1 * - NULLIF ( + 53, + 52 ) / - + 52 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-421
SELECT DISTINCT - + COALESCE ( + 83, - 83 * 91 * - COALESCE ( - COUNT( * ), 24 * - 78 - - - 48 + - - 18 DIV - SUM( - NULLIF ( - NULLIF ( 98, ( + + 0 ) ), 28 ) ) DIV + + 6 ) * + 26 + + 10 + - MIN( DISTINCT + + ( - 6 ) ) ) * - 38 + - 11 AS col0
----
3143

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT - + COALESCE ( + 83, - 83 * 91 * - COALESCE ( - COUNT ( * ), 24 * - 78 - - - 48 + - - 18 / - SUM ( - NULLIF ( - NULLIF ( 98, ( + + 0 ) ), 28 ) ) / + + 6 ) * + 26 + + 10 + - MIN ( DISTINCT + + ( - 6 ) ) ) * - 38 + - 11 AS col0
----
3143

onlyif mysql # DIV for integer division: 
query II rowsort label-422
SELECT + 92 AS col0, - COALESCE ( - 9, + - 86 DIV - ( + 64 ) + - - 39 * + - 34 + 35 )
----
92
9

skipif mysql # not compatible
query II rowsort label-422
SELECT + 92 AS col0, - COALESCE ( - 9, + - 86 / - ( + 64 ) + - - 39 * + - 34 + 35 )
----
92
9

query I rowsort
SELECT ALL + - 67 * + 18 - + + ( + - 37 ) + 8 + + - 34
----
-1195

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

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL + + CAST ( NULL AS INTEGER ) * + + 0 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-425
SELECT + + MAX( CAST( + 57 AS SIGNED ) ) * 7
----
399

skipif mysql # not compatible
query I rowsort label-425
SELECT + + MAX ( CAST ( + 57 AS INTEGER ) ) * 7
----
399

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

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT DISTINCT 16 * COUNT( ALL 72 ) - + 40 * COUNT( * ) * 83 + + 7 AS col2
----
-3297

skipif mysql # not compatible
query I rowsort label-427
SELECT DISTINCT 16 * COUNT ( ALL 72 ) - + 40 * COUNT ( * ) * 83 + + 7 AS col2
----
-3297

query I rowsort
SELECT + 74 * - 88 AS col0
----
-6512

query I rowsort
SELECT + 17 - - 73 AS col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-430
SELECT DISTINCT 46 DIV - + 55 * - 10
----
0

skipif mysql # not compatible
query I rowsort label-430
SELECT DISTINCT 46 / - + 55 * - 10
----
0

query I rowsort
SELECT + 52 + - 32
----
20

query I rowsort
SELECT + 69 * 8
----
552

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT DISTINCT 81 * + NULLIF ( - NULLIF ( + - 50, + - 10 ), + + NULLIF ( ( + COUNT( * ) ), - 47 ) ) * - 16 AS col2
----
-64800

skipif mysql # not compatible
query I rowsort label-433
SELECT DISTINCT 81 * + NULLIF ( - NULLIF ( + - 50, + - 10 ), + + NULLIF ( ( + COUNT ( * ) ), - 47 ) ) * - 16 AS col2
----
-64800

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT + NULLIF ( + 93, + + 83 + + 76 ) * - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-434
SELECT + NULLIF ( + 93, + + 83 + + 76 ) * - COUNT ( * )
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-435
SELECT DISTINCT 10 DIV + + 15
----
0

skipif mysql # not compatible
query I rowsort label-435
SELECT DISTINCT 10 / + + 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT + COUNT( * ) * - + 31 * - 57
----
1767

skipif mysql # not compatible
query I rowsort label-436
SELECT + COUNT ( * ) * - + 31 * - 57
----
1767

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT DISTINCT 45 * - COUNT( * ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-437
SELECT DISTINCT 45 * - COUNT ( * ) AS col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-438
SELECT ALL 4 * - - 91 col1, 77 + CAST( NULL AS SIGNED ) + + - 17
----
364
NULL

skipif mysql # not compatible
query II rowsort label-438
SELECT ALL 4 * - - 91 col1, 77 + CAST ( NULL AS INTEGER ) + + - 17
----
364
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-439
SELECT - CAST( NULL AS SIGNED ) * + 16 * - + 65 * - CASE AVG ( ALL + 41 ) WHEN AVG ( DISTINCT - + 41 ) * - 59 THEN + + 76 * 89 ELSE NULL END * ( - 68 ) + + CAST( + 83 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-439
SELECT - CAST ( NULL AS INTEGER ) * + 16 * - + 65 * - CASE AVG ( ALL + 41 ) WHEN AVG ( DISTINCT - + 41 ) * - 59 THEN + + 76 * 89 ELSE NULL END * ( - 68 ) + + CAST ( + 83 AS REAL ) AS col1
----
NULL

query II rowsort
SELECT + 86 + + + 19 col0, - 60 + 85 AS col0
----
105
25

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT ALL NULLIF ( - + 75, - - 14 + - CASE + + 49 WHEN - 82 + NULLIF ( - - 66, - COUNT( * ) + + 71 * - 9 / + + ( - 43 ) ) THEN NULL WHEN - CASE 61 WHEN 44 THEN - 80 WHEN - NULLIF ( - 95, 37 ) * - - 88 * - 11 THEN NULL ELSE - 28 END THEN NULL WHEN + - 90 THEN NULL ELSE + 29 / MIN( 47 ) END ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-441
SELECT ALL NULLIF ( - + 75, - - 14 + - CASE + + 49 WHEN - 82 + NULLIF ( - - 66, - COUNT ( * ) + + 71 * - 9 / + + ( - 43 ) ) THEN NULL WHEN - CASE 61 WHEN 44 THEN - 80 WHEN - NULLIF ( - 95, 37 ) * - - 88 * - 11 THEN NULL ELSE - 28 END THEN NULL WHEN + - 90 THEN NULL ELSE + 29 / MIN ( 47 ) END ) AS col1
----
-75

query I rowsort
SELECT - 85 * + 69
----
-5865

query I rowsort
SELECT DISTINCT 3 * - 71
----
-213

query I rowsort
SELECT DISTINCT 96 + - + 4 * - 22 AS col2
----
184

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

onlyif mysql # DIV for integer division: 
query I rowsort label-446
SELECT ALL - + 89 DIV + 25 + - + 75
----
-78

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL - + 89 / + 25 + - + 75
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-447
SELECT - 56 * - 58 + - - ( MIN( - 4 ) ) + - 51 * - + 1 * + 56 * + 51, COUNT( * ) AS col0
----
148900
1

skipif mysql # not compatible
query II rowsort label-447
SELECT - 56 * - 58 + - - ( MIN ( - 4 ) ) + - 51 * - + 1 * + 56 * + 51, COUNT ( * ) AS col0
----
148900
1

onlyif mysql # DIV for integer division: 
query I rowsort label-448
SELECT DISTINCT - 97 * + ( - 18 ) + - - 73 DIV 31
----
1748

skipif mysql # not compatible
query I rowsort label-448
SELECT DISTINCT - 97 * + ( - 18 ) + - - 73 / 31
----
1748

query II rowsort
SELECT ( + 37 ) AS col1, + 36 col2
----
37
36

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT ALL - + 89 * - MAX( 52 )
----
4628

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL - + 89 * - MAX ( 52 )
----
4628

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-451
SELECT CAST( NULL AS DECIMAL ) + + ( - - 78 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-451
SELECT CAST ( NULL AS REAL ) + + ( - - 78 ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-453
SELECT - CAST( NULL AS SIGNED ) - + - 66 * - - 86 + - 84 * 79 * - 63 - + MIN( ALL - 18 ) + - 23 AS col2, 6
----
NULL
6

skipif mysql # not compatible
query II rowsort label-453
SELECT - CAST ( NULL AS INTEGER ) - + - 66 * - - 86 + - 84 * 79 * - 63 - + MIN ( ALL - 18 ) + - 23 AS col2, 6
----
NULL
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-454
SELECT ALL + - CASE 22 WHEN - - 2 THEN 33 WHEN COALESCE ( - 5, + 10 + 9 ) THEN NULL WHEN + ( + 25 ) THEN NULL END * + COALESCE ( - 74, ( 27 ) - + 30 + + 44 * - 66 ) * + CASE + CAST( - 89 AS SIGNED ) WHEN - COUNT( * ) THEN + CASE - 14 WHEN 78 + + CAST( 17 AS DECIMAL ) * ( + 77 ) THEN 52 END + 42 WHEN 22 * + 36 THEN - COUNT( * ) * 85 + - 46 ELSE 2 END + - 21 * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL + - CASE 22 WHEN - - 2 THEN 33 WHEN COALESCE ( - 5, + 10 + 9 ) THEN NULL WHEN + ( + 25 ) THEN NULL END * + COALESCE ( - 74, ( 27 ) - + 30 + + 44 * - 66 ) * + CASE + CAST ( - 89 AS INTEGER ) WHEN - COUNT ( * ) THEN + CASE - 14 WHEN 78 + + CAST ( 17 AS REAL ) * ( + 77 ) THEN 52 END + 42 WHEN 22 * + 36 THEN - COUNT ( * ) * 85 + - 46 ELSE 2 END + - 21 * 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT 92 * + + 73 * COUNT( * ) + - 31 + - + 49 AS col2
----
6636

skipif mysql # not compatible
query I rowsort label-455
SELECT 92 * + + 73 * COUNT ( * ) + - 31 + - + 49 AS col2
----
6636

onlyif mysql # DIV for integer division: 
query I rowsort label-456
SELECT ALL 61 DIV + 36 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL 61 / + 36 AS col1
----
1

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

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

query I rowsort
SELECT + 75 + + 42 AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT COUNT( * ) + - 56
----
-55

skipif mysql # not compatible
query I rowsort label-459
SELECT COUNT ( * ) + - 56
----
-55

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

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

query I rowsort
SELECT 14 - + + 80 + + 74 * + - 18 * - NULLIF ( - - 1, 23 + + 79 * + - 84 / NULLIF ( - - 10, 22 * + - 27 ) * 30 - 83 )
----
1266

query I rowsort
SELECT 1 * 88 AS col1
----
88

query II rowsort
SELECT + 15 + - 90, 48 - + - 98 AS col2
----
-75
146

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

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT ALL 40 * - SUM( DISTINCT - 69 ) * - 46 * + NULLIF ( - 87, + 93 + MAX( DISTINCT + 63 ) )
----
11045520

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL 40 * - SUM ( DISTINCT - 69 ) * - 46 * + NULLIF ( - 87, + 93 + MAX ( DISTINCT + 63 ) )
----
11045520

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT 64 + 89 + - COUNT( * )
----
152

skipif mysql # not compatible
query I rowsort label-466
SELECT 64 + 89 + - COUNT ( * )
----
152

query I rowsort
SELECT ALL - 76 * + 10 AS col0
----
-760

query I rowsort
SELECT ALL 4 * 23
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-469
SELECT DISTINCT 83, COUNT( * ) * - ( - - ( 31 ) ) col0
----
83
-31

skipif mysql # not compatible
query II rowsort label-469
SELECT DISTINCT 83, COUNT ( * ) * - ( - - ( 31 ) ) col0
----
83
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-470
SELECT ( 47 ) + + + 49 + + 11 * - - 36 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-470
SELECT ( 47 ) + + + 49 + + 11 * - - 36 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-471
SELECT COUNT( * ) + 1 * + 44 * - CAST( + + COUNT( ( 52 ) ) AS SIGNED ) - - 71 DIV + - MAX( 80 ) * + 36 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-471
SELECT COUNT ( * ) + 1 * + 44 * - CAST ( + + COUNT ( ( 52 ) ) AS INTEGER ) - - 71 / + - MAX ( 80 ) * + 36 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT ALL COUNT( * ) + - - 28
----
29

skipif mysql # not compatible
query I rowsort label-472
SELECT ALL COUNT ( * ) + - - 28
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-473
SELECT ALL 38 DIV 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-473
SELECT ALL 38 / 73 AS col1
----
0

query I rowsort
SELECT DISTINCT 97 + + 73 * 43 * - 59
----
-185104

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT DISTINCT 55 + - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-475
SELECT DISTINCT 55 + - COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT ALL - 14 * COALESCE ( + 53, - CASE 45 WHEN - - ( - 65 ) * - 84 THEN 71 * - COUNT( * ) ELSE - COUNT( * ) + - 64 END ) AS col1
----
-742

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL - 14 * COALESCE ( + 53, - CASE 45 WHEN - - ( - 65 ) * - 84 THEN 71 * - COUNT ( * ) ELSE - COUNT ( * ) + - 64 END ) AS col1
----
-742

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL COUNT( - 99 ) + 90 * + - 94 + - 11 AS col1
----
-8470

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL COUNT ( - 99 ) + 90 * + - 94 + - 11 AS col1
----
-8470

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

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

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

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

query I rowsort
SELECT + 56 * - - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT 88 + + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-481
SELECT 88 + + COUNT ( * )
----
89

query I rowsort
SELECT DISTINCT CASE + 49 WHEN - 40 THEN - 57 END AS col2
----
NULL

query I rowsort
SELECT ALL + + 24 + + 74
----
98

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

query I rowsort
SELECT ALL 53 * 8
----
424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-486
SELECT ( COUNT( - 47 ) ) DIV 21 * + ( + + 27 ) * - 86 * 65 + - + 54 * 8 * 21 * - + COUNT( * )
----
9072

skipif mysql # not compatible
query I rowsort label-486
SELECT ( COUNT ( - 47 ) ) / 21 * + ( + + 27 ) * - 86 * 65 + - + 54 * 8 * 21 * - + COUNT ( * )
----
9072

onlyif mysql # aggregate syntax: 
query II rowsort label-487
SELECT DISTINCT - + COUNT( * ) AS col2, ( + 40 )
----
-1
40

skipif mysql # not compatible
query II rowsort label-487
SELECT DISTINCT - + COUNT ( * ) AS col2, ( + 40 )
----
-1
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-488
SELECT ALL + NULLIF ( - - 89, - CAST( NULLIF ( - + 4, 50 * + 5 ) AS SIGNED ) ) - + 7 + NULLIF ( + 29, + + 33 ) * + 50
----
1532

skipif mysql # not compatible
query I rowsort label-488
SELECT ALL + NULLIF ( - - 89, - CAST ( NULLIF ( - + 4, 50 * + 5 ) AS INTEGER ) ) - + 7 + NULLIF ( + 29, + + 33 ) * + 50
----
1532

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT ALL - 52 * - + 35 * - 4 * SUM( 10 ) * 98
----
-7134400

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL - 52 * - + 35 * - 4 * SUM ( 10 ) * 98
----
-7134400

onlyif mysql # DIV for integer division: 
query I rowsort label-490
SELECT DISTINCT - - 20 DIV + 76 * + + 35 col0
----
0

skipif mysql # not compatible
query I rowsort label-490
SELECT DISTINCT - - 20 / + 76 * + + 35 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-491
SELECT + 47 * + - CAST( - + MAX( DISTINCT 15 ) AS SIGNED )
----
705

skipif mysql # not compatible
query I rowsort label-491
SELECT + 47 * + - CAST ( - + MAX ( DISTINCT 15 ) AS INTEGER )
----
705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-492
SELECT ALL + + 69 * + COUNT( * ) / + COUNT( * ) * 38 * + + CAST( NULL AS SIGNED ), COUNT( * ) + + 98 AS col2
----
NULL
99

skipif mysql # not compatible
query II rowsort label-492
SELECT ALL + + 69 * + COUNT ( * ) / + COUNT ( * ) * 38 * + + CAST ( NULL AS INTEGER ), COUNT ( * ) + + 98 AS col2
----
NULL
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-493
SELECT + + COALESCE ( 22, 65, COUNT( * ) + - + COUNT( * ) ) DIV + - 18 + - NULLIF ( - COALESCE ( - 94, - MIN( ALL 28 ) ), - 37 )
----
-95

skipif mysql # not compatible
query I rowsort label-493
SELECT + + COALESCE ( 22, 65, COUNT ( * ) + - + COUNT ( * ) ) / + - 18 + - NULLIF ( - COALESCE ( - 94, - MIN ( ALL 28 ) ), - 37 )
----
-95

query I rowsort
SELECT DISTINCT + 58 * + 73 AS col2
----
4234

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT + SUM( + - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-496
SELECT + SUM ( + - 4 )
----
-4

query I rowsort
SELECT DISTINCT - COALESCE ( - - 92, 9, - 9 + - 75 ) AS col1
----
-92

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

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

query I rowsort
SELECT ALL - NULLIF ( + - 66, - 12 ) AS col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-500
SELECT DISTINCT + 8 DIV - 62 col2
----
0

skipif mysql # not compatible
query I rowsort label-500
SELECT DISTINCT + 8 / - 62 col2
----
0

query II rowsort
SELECT 64 - + 87 AS col0, + 40
----
-23
40

query II rowsort
SELECT ALL - 35 AS col2, 51 * - + 92 AS col2
----
-35
-4692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-503
SELECT 83 + - + CASE - 71 WHEN 87 THEN - - 86 * + MIN( ALL CAST( NULL AS SIGNED ) ) + + 73 ELSE NULL END * + + NULLIF ( - COUNT( * ), - 55 ) * COUNT( * ) + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-503
SELECT 83 + - + CASE - 71 WHEN 87 THEN - - 86 * + MIN ( ALL CAST ( NULL AS INTEGER ) ) + + 73 ELSE NULL END * + + NULLIF ( - COUNT ( * ), - 55 ) * COUNT ( * ) + 39 AS col0
----
NULL

query I rowsort
SELECT ALL 50 + + 57
----
107

query I rowsort
SELECT ALL + 91 + - 31 AS col0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-506
SELECT DISTINCT - 73 + - 93 DIV - SUM( DISTINCT + - 51 )
----
-74

skipif mysql # not compatible
query I rowsort label-506
SELECT DISTINCT - 73 + - 93 / - SUM ( DISTINCT + - 51 )
----
-74

query II rowsort
SELECT - 8 AS col2, - 21
----
-8
-21

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-509
SELECT ALL 64 col0, SUM( DISTINCT + 38 ) - + 8 + + 71
----
64
101

skipif mysql # not compatible
query II rowsort label-509
SELECT ALL 64 col0, SUM ( DISTINCT + 38 ) - + 8 + + 71
----
64
101

onlyif mysql # DIV for integer division: 
query II rowsort label-510
SELECT - 65, 81 DIV - 41 col2
----
-65
-1

skipif mysql # not compatible
query II rowsort label-510
SELECT - 65, 81 / - 41 col2
----
-65
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-511
SELECT + 96 / + SUM( ALL CASE WHEN NULL = ( - 88 ) THEN 12 ELSE NULL END ) AS col1, - 74 AS col2
----
NULL
-74

skipif mysql # not compatible
query II rowsort label-511
SELECT + 96 / + SUM ( ALL CASE WHEN NULL = ( - 88 ) THEN 12 ELSE NULL END ) AS col1, - 74 AS col2
----
NULL
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT DISTINCT 80 + 9 - - + 63 + COALESCE ( - + COUNT( * ), 53, - - 35 ) * - - 31
----
121

skipif mysql # not compatible
query I rowsort label-512
SELECT DISTINCT 80 + 9 - - + 63 + COALESCE ( - + COUNT ( * ), 53, - - 35 ) * - - 31
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT NULLIF ( - COUNT( * ), 96 - 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-513
SELECT NULLIF ( - COUNT ( * ), 96 - 8 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT ALL - COALESCE ( - 88, + + COALESCE ( COUNT( * ), - 16 ) ) - + - 12 + - 34
----
66

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL - COALESCE ( - 88, + + COALESCE ( COUNT ( * ), - 16 ) ) - + - 12 + - 34
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-515
SELECT ALL MIN( - + 65 ) DIV - COALESCE ( + COUNT( * ), COUNT( * ) * + 35 * 86 ) + + + 45
----
110

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL MIN ( - + 65 ) / - COALESCE ( + COUNT ( * ), COUNT ( * ) * + 35 * 86 ) + + + 45
----
110

query I rowsort
SELECT + 68 * 41
----
2788

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT ALL MIN( - 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL MIN ( - 45 ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT DISTINCT - 14 * - NULLIF ( ( + COUNT( * ) ), - 51 * 92 * + 37 + + MIN( 72 ) / COALESCE ( + MIN( - 8 ), - 32 + + - 51 * + - COUNT( 12 ) ) ) * + COUNT( * ) - + CASE + + COALESCE ( NULLIF ( ( 23 ), 61 ), + 44 + 53 + + 26, - 3 ) WHEN - ( + 36 ) * MAX( + 33 ) - 41 THEN NULL ELSE 75 END + 60
----
-1

skipif mysql # not compatible
query I rowsort label-518
SELECT DISTINCT - 14 * - NULLIF ( ( + COUNT ( * ) ), - 51 * 92 * + 37 + + MIN ( 72 ) / COALESCE ( + MIN ( - 8 ), - 32 + + - 51 * + - COUNT ( 12 ) ) ) * + COUNT ( * ) - + CASE + + COALESCE ( NULLIF ( ( 23 ), 61 ), + 44 + 53 + + 26, - 3 ) WHEN - ( + 36 ) * MAX ( + 33 ) - 41 THEN NULL ELSE 75 END + 60
----
-1

query I rowsort
SELECT ALL NULLIF ( + + NULLIF ( + 94, - + 64 ), - 35 ) AS col2
----
94

query I rowsort
SELECT ALL + 87 * - 42 AS col2
----
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT - + MAX( ALL + 94 ) * - - 31
----
-2914

skipif mysql # not compatible
query I rowsort label-521
SELECT - + MAX ( ALL + 94 ) * - - 31
----
-2914

query I rowsort
SELECT + 43 + - + 66 - + 14 * + 90 * - 98 AS col2
----
123457

query I rowsort
SELECT DISTINCT 82 * + - 16 AS col0
----
-1312

query I rowsort
SELECT ALL 87 * - 44
----
-3828

onlyif mysql # DIV for integer division: 
query I rowsort label-525
SELECT + + 26 DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-525
SELECT + + 26 / - 61
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-526
SELECT - 21 DIV 19 + + 73 * + 34 - + + 11 AS col1
----
2470

skipif mysql # not compatible
query I rowsort label-526
SELECT - 21 / 19 + + 73 * + 34 - + + 11 AS col1
----
2470

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT DISTINCT - 18 * - 97 + - + MAX( - CASE 45 WHEN - + 64 + + 54 THEN - COALESCE ( + 49, + ( + - 17 ) + - 65 ) ELSE NULL END ) + - + 18 / - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT - 18 * - 97 + - + MAX ( - CASE 45 WHEN - + 64 + + 54 THEN - COALESCE ( + 49, + ( + - 17 ) + - 65 ) ELSE NULL END ) + - + 18 / - 12
----
NULL

query II rowsort
SELECT ALL + 43 AS col1, 86 AS col0
----
43
86

query II rowsort
SELECT DISTINCT + - 71, + 83 + + - 93 * - 1 AS col1
----
-71
176

query II rowsort
SELECT ALL + 20 AS col1, - NULLIF ( - 18, - 90 ) * - 4 AS col1
----
20
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-531
SELECT CAST( NULL AS SIGNED ) / + 14 + 37 + - - 63 - - 41 + + COUNT( DISTINCT + - 23 ) * - 69 / + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-531
SELECT CAST ( NULL AS INTEGER ) / + 14 + 37 + - - 63 - - 41 + + COUNT ( DISTINCT + - 23 ) * - 69 / + 28
----
NULL

query I rowsort
SELECT + 10 + - - 66 + - 10 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT ALL 1 * COALESCE ( - 76, 32 ) + + 20 * + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL 1 * COALESCE ( - 76, 32 ) + + 20 * + COUNT ( * )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-534
SELECT + CAST( NULL AS SIGNED ) * - + 49 + - 17 + + 86 + CAST( + - 91 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-534
SELECT + CAST ( NULL AS INTEGER ) * - + 49 + - 17 + + 86 + CAST ( + - 91 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-535
SELECT COALESCE ( + - COUNT( * ), 27 * - MIN( DISTINCT NULLIF ( - 39, + CAST( NULL AS SIGNED ) ) ), + 42 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-535
SELECT COALESCE ( + - COUNT ( * ), 27 * - MIN ( DISTINCT NULLIF ( - 39, + CAST ( NULL AS INTEGER ) ) ), + 42 ) AS col2
----
-1

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

skipif mysql # not compatible
query I rowsort label-536
SELECT ALL COUNT ( * ) * + + 24 + 63 AS col2
----
87

query I rowsort
SELECT - 69 - - 7
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-538
SELECT + ( 52 ), MAX( DISTINCT - + 70 ) * COUNT( * ) * + + 90 AS col1
----
52
-6300

skipif mysql # not compatible
query II rowsort label-538
SELECT + ( 52 ), MAX ( DISTINCT - + 70 ) * COUNT ( * ) * + + 90 AS col1
----
52
-6300

query II rowsort
SELECT ALL 62 * 17, 86 + 73 AS col0
----
1054
159

query I rowsort
SELECT ALL 44 * - - 95 + - 9
----
4171

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT ALL + MIN( 87 ) col1
----
87

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL + MIN ( 87 ) col1
----
87

query I rowsort
SELECT - 9 + + ( ( - + CASE + 43 WHEN - 24 THEN + - 85 + + 96 ELSE NULL END ) ) + + NULLIF ( - 24, + - NULLIF ( + 0, 37 + 18 ) * - 39 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-543
SELECT - CASE + + CAST( NULL AS SIGNED ) WHEN CAST( NULL AS SIGNED ) + + 6 - + 81 THEN NULL WHEN + 87 THEN NULL WHEN CAST( 94 AS SIGNED ) THEN + 40 END * 36 + 77 - - 11 * - 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-543
SELECT - CASE + + CAST ( NULL AS INTEGER ) WHEN CAST ( NULL AS INTEGER ) + + 6 - + 81 THEN NULL WHEN + 87 THEN NULL WHEN CAST ( 94 AS INTEGER ) THEN + 40 END * 36 + 77 - - 11 * - 78 AS col1
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 18, - 71 - 92 )
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-545
SELECT ALL CASE 95 WHEN - - 56 THEN + - 99 WHEN CAST( NULL AS DECIMAL ) + + ( - 39 ) * - 90 THEN NULL ELSE + - 97 END
----
-97

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL CASE 95 WHEN - - 56 THEN + - 99 WHEN CAST ( NULL AS REAL ) + + ( - 39 ) * - 90 THEN NULL ELSE + - 97 END
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-546
SELECT - 73 DIV COUNT( * ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-546
SELECT - 73 / COUNT ( * ) AS col1
----
-73

query I rowsort
SELECT - 79 * - + 69 AS col1
----
5451

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-548
SELECT - 90 + + 73, CAST( NULL AS SIGNED ) AS col0
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-548
SELECT - 90 + + 73, CAST ( NULL AS INTEGER ) AS col0
----
-17
NULL

query I rowsort
SELECT - 49 * - - 24
----
-1176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-550
SELECT + 55 + + 90 + CAST( NULL AS SIGNED ) + - CASE WHEN ( NULL ) <> 84 THEN - + 79 END * - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-550
SELECT + 55 + + 90 + CAST ( NULL AS INTEGER ) + - CASE WHEN ( NULL ) <> 84 THEN - + 79 END * - 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-551
SELECT ALL CASE 64 WHEN - + 85 THEN - COUNT( * ) - - COALESCE ( - 82, + + 95, + - 67, 12 - + + 97 * - 90 * - - COUNT( * ) ) + - - 94 ELSE 84 DIV + + ( + ( - COUNT( * ) ) ) END
----
-84

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL CASE 64 WHEN - + 85 THEN - COUNT ( * ) - - COALESCE ( - 82, + + 95, + - 67, 12 - + + 97 * - 90 * - - COUNT ( * ) ) + - - 94 ELSE 84 / + + ( + ( - COUNT ( * ) ) ) END
----
-84

query II rowsort
SELECT DISTINCT - - 40 - - + 57 AS col0, 6
----
97
6

query I rowsort
SELECT ALL + 85 * - - ( + 3 ) AS col2
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT - 75 + - ( 14 ) * + + 38 + + COUNT( * )
----
-606

skipif mysql # not compatible
query I rowsort label-554
SELECT - 75 + - ( 14 ) * + + 38 + + COUNT ( * )
----
-606

onlyif mysql # DIV for integer division: 
query I rowsort label-555
SELECT DISTINCT + 57 * 35 DIV - 45
----
-44

skipif mysql # not compatible
query I rowsort label-555
SELECT DISTINCT + 57 * 35 / - 45
----
-44

query II rowsort
SELECT - 45 - 24 AS col0, + 43 AS col1
----
-69
43

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

query I rowsort
SELECT - - 69 * - + 74 * + - 53 col0
----
270618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-559
SELECT ALL 2 / NULLIF ( - ( + CAST( NULL AS SIGNED ) ), - 43 * - - 70 ) + - 94, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-559
SELECT ALL 2 / NULLIF ( - ( + CAST ( NULL AS INTEGER ) ), - 43 * - - 70 ) + - 94, COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT + 4 * 39 + + - COALESCE ( + 24, + 56, + 58 )
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-561
SELECT ALL ( + 80 ) / - - 13 * - + CASE WHEN NULL IS NOT NULL THEN - 10 END + + + CAST( + 95 AS SIGNED ) + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL ( + 80 ) / - - 13 * - + CASE WHEN NULL IS NOT NULL THEN - 10 END + + + CAST ( + 95 AS INTEGER ) + - 20
----
NULL

query II rowsort
SELECT - + 34 * 42 AS col1, 55
----
-1428
55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-563
SELECT ALL CAST( NULL AS DECIMAL ) / - COUNT( * ) / + 72 + - - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL CAST ( NULL AS REAL ) / - COUNT ( * ) / + 72 + - - 69
----
NULL

query I rowsort
SELECT + 87 * - 9 AS col2
----
-783

query I rowsort
SELECT + 69 + + ( + ( + CASE ( - 62 ) WHEN + - 38 THEN - 73 ELSE NULL END ) )
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-567
SELECT DISTINCT 86 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-567
SELECT DISTINCT 86 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-568
SELECT ALL 71 / + COALESCE ( - COALESCE ( + COUNT( * ), 59 ), + - 97 / - + 23 - - 48 + - 5 ) + 60 + + 28 / - + ( CAST( NULL AS SIGNED ) ) * + COUNT( * ) * 9 + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL 71 / + COALESCE ( - COALESCE ( + COUNT ( * ), 59 ), + - 97 / - + 23 - - 48 + - 5 ) + 60 + + 28 / - + ( CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * 9 + + 64
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-569
SELECT DISTINCT 80 + - SUM( - 75 ) + - CAST( 44 AS SIGNED ) AS col1
----
111

skipif mysql # not compatible
query I rowsort label-569
SELECT DISTINCT 80 + - SUM ( - 75 ) + - CAST ( 44 AS INTEGER ) AS col1
----
111

query I rowsort
SELECT ( + - 4 ) * - 92 AS col2
----
368

query II rowsort
SELECT 5 AS col0, 12
----
5
12

query II rowsort
SELECT + 53, 19 AS col0
----
53
19

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT 8 + 27 + + 48 + + 16 + - + 24 * + 36 + - 94 * + - 71 - - 47 + - 2 * 74 * + - 66 * + 55 * COUNT( * )
----
543196

skipif mysql # not compatible
query I rowsort label-573
SELECT 8 + 27 + + 48 + + 16 + - + 24 * + 36 + - 94 * + - 71 - - 47 + - 2 * 74 * + - 66 * + 55 * COUNT ( * )
----
543196

query I rowsort
SELECT 14 * - - 75
----
1050

onlyif mysql # DIV for integer division: 
query I rowsort label-575
SELECT ALL 73 DIV + - 44 * + 99 DIV - - 71 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL 73 / + - 44 * + 99 / - - 71 AS col0
----
-1

query I rowsort
SELECT ALL 8 * + - 15
----
-120

query II rowsort
SELECT 93 * - 75 - ( 90 ) AS col1, NULLIF ( 35, 67 + 52 ) + - 13
----
-7065
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-578
SELECT ALL 19 * - COUNT( + - 99 ) * + - COUNT( * ) * - CAST( NULL AS SIGNED ) / 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL 19 * - COUNT ( + - 99 ) * + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) / 61 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT 34 - + MIN( - - 91 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-579
SELECT 34 - + MIN ( - - 91 ) AS col0
----
-57

query II rowsort
SELECT ALL 83 AS col1, - 14 + + 29 AS col1
----
83
15

query II rowsort
SELECT 26 AS col1, + 14
----
26
14

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-583
SELECT - 86 DIV - CASE - - 2 WHEN - 92 THEN NULL WHEN - 44 DIV + - 51 + - 31 THEN NULL ELSE + + 64 * - - CAST( - 88 AS SIGNED ) + + 48 + + COUNT( - 33 ) + + + 55 END * - + 78 + + - 11 + + COUNT( * ) DIV - + 30 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-583
SELECT - 86 / - CASE - - 2 WHEN - 92 THEN NULL WHEN - 44 / + - 51 + - 31 THEN NULL ELSE + + 64 * - - CAST ( - 88 AS INTEGER ) + + 48 + + COUNT ( - 33 ) + + + 55 END * - + 78 + + - 11 + + COUNT ( * ) / - + 30 AS col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-584
SELECT + CAST( NULL AS SIGNED ) * 25 * MIN( ALL - 29 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-584
SELECT + CAST ( NULL AS INTEGER ) * 25 * MIN ( ALL - 29 ) col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-586
SELECT + 99 * + - COALESCE ( + - CASE 48 WHEN CASE + - 42 WHEN + + 67 THEN NULL ELSE COUNT( * ) END * + 71 + CAST( NULL AS SIGNED ) - - 14 THEN - 85 END, - 35 ) AS col1
----
3465

skipif mysql # not compatible
query I rowsort label-586
SELECT + 99 * + - COALESCE ( + - CASE 48 WHEN CASE + - 42 WHEN + + 67 THEN NULL ELSE COUNT ( * ) END * + 71 + CAST ( NULL AS INTEGER ) - - 14 THEN - 85 END, - 35 ) AS col1
----
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT SUM( DISTINCT - 3 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-587
SELECT SUM ( DISTINCT - 3 ) AS col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-588
SELECT ALL - - 46 + 95 + COUNT( * ) + + 85 * + 62 - - + CASE + 27 WHEN + COUNT( * ) THEN NULL WHEN + - NULLIF ( 25, + 21 - - + 70 ) THEN NULL WHEN + - 87 - CAST( - - 12 AS SIGNED ) THEN + 59 * + - MIN( ALL 68 ) - - CASE WHEN ( + 32 ) IS NULL THEN - CAST( + COALESCE ( 87, 36 + + - 26, - COUNT( * ) / - 69, 15 * AVG ( DISTINCT - 97 ) + 34 ) AS SIGNED ) END + 58 * 32 ELSE NULL END + MIN( + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL - - 46 + 95 + COUNT ( * ) + + 85 * + 62 - - + CASE + 27 WHEN + COUNT ( * ) THEN NULL WHEN + - NULLIF ( 25, + 21 - - + 70 ) THEN NULL WHEN + - 87 - CAST ( - - 12 AS INTEGER ) THEN + 59 * + - MIN ( ALL 68 ) - - CASE WHEN ( + 32 ) IS NULL THEN - CAST ( + COALESCE ( 87, 36 + + - 26, - COUNT ( * ) / - 69, 15 * AVG ( DISTINCT - 97 ) + 34 ) AS INTEGER ) END + 58 * 32 ELSE NULL END + MIN ( + 97 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-589
SELECT DISTINCT COUNT( * ) AS col2, ( 84 ) - - COUNT( * ) - ( + + 83 ) + + 74 DIV 25 * - 40 * - - 32 col1
----
1
-2558

skipif mysql # not compatible
query II rowsort label-589
SELECT DISTINCT COUNT ( * ) AS col2, ( 84 ) - - COUNT ( * ) - ( + + 83 ) + + 74 / 25 * - 40 * - - 32 col1
----
1
-2558

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT + 66 * + 87 * - 28 + ( + 80 ) + MIN( + 95 ) * - + COUNT( * )
----
-160791

skipif mysql # not compatible
query I rowsort label-590
SELECT + 66 * + 87 * - 28 + ( + 80 ) + MIN ( + 95 ) * - + COUNT ( * )
----
-160791

query I rowsort
SELECT ALL + - 50 + - COALESCE ( - 16, + 71 )
----
-34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT + COUNT( * ) + - - 53 + - - NULLIF ( + 86, COUNT( * ) + + 54 + 53 ) + - + 53
----
87

skipif mysql # not compatible
query I rowsort label-593
SELECT + COUNT ( * ) + - - 53 + - - NULLIF ( + 86, COUNT ( * ) + + 54 + 53 ) + - + 53
----
87

query II rowsort
SELECT - - 62, + 46 * - 5 + + 14 * 5 AS col0
----
62
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT ALL + SUM( - 58 ) + - ( + 31 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-595
SELECT ALL + SUM ( - 58 ) + - ( + 31 ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT + 24 - + 68 + - COUNT( * ) * 40
----
-84

skipif mysql # not compatible
query I rowsort label-596
SELECT + 24 - + 68 + - COUNT ( * ) * 40
----
-84

query I rowsort
SELECT 9 * - + 59 AS col0
----
-531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-598
SELECT ALL 75 + 29 + - ( + 53 ) * - 79 * + + CASE + SUM( ALL 91 ) WHEN + - AVG ( ALL - + 55 ) THEN NULL WHEN + + 55 / 18 + 28 + 96 * + + 21 + 63 THEN CAST( 88 AS SIGNED ) ELSE NULL END * 58 * + MIN( 9 ) + 63 / 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-598
SELECT ALL 75 + 29 + - ( + 53 ) * - 79 * + + CASE + SUM ( ALL 91 ) WHEN + - AVG ( ALL - + 55 ) THEN NULL WHEN + + 55 / 18 + 28 + 96 * + + 21 + 63 THEN CAST ( 88 AS INTEGER ) ELSE NULL END * 58 * + MIN ( 9 ) + 63 / 14 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT 83 + + - CASE CASE + + 75 WHEN + - 43 / - COALESCE ( + - 51, 39 ) THEN COUNT( * ) + + + 84 WHEN 73 THEN NULL END WHEN 43 THEN + + 12 + ( 6 ) END * 73 * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-599
SELECT 83 + + - CASE CASE + + 75 WHEN + - 43 / - COALESCE ( + - 51, 39 ) THEN COUNT ( * ) + + + 84 WHEN 73 THEN NULL END WHEN 43 THEN + + 12 + ( 6 ) END * 73 * - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT DISTINCT - 4 + - 21 * 30 + - 4 + COUNT( * ) * + 98
----
-540

skipif mysql # not compatible
query I rowsort label-600
SELECT DISTINCT - 4 + - 21 * 30 + - 4 + COUNT ( * ) * + 98
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT COUNT( * ) * + 4 + - - COUNT( * ) - - 46 col2
----
51

skipif mysql # not compatible
query I rowsort label-601
SELECT COUNT ( * ) * + 4 + - - COUNT ( * ) - - 46 col2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-602
SELECT 18 + - 77 - - + COUNT( * ) DIV + 3 AS col0, + 57 DIV - - ( 91 )
----
-59
0

skipif mysql # not compatible
query II rowsort label-602
SELECT 18 + - 77 - - + COUNT ( * ) / + 3 AS col0, + 57 / - - ( 91 )
----
-59
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT COUNT( * ) * + 64 * 86
----
5504

skipif mysql # not compatible
query I rowsort label-604
SELECT COUNT ( * ) * + 64 * 86
----
5504

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT ALL ( + 97 ) * - CASE 58 WHEN - - 60 * - + 41 * COUNT( * ) + - + 54 + + 66 / - 99 / - 6 THEN NULL WHEN 62 * + ( 81 ) + 39 THEN - - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL ( + 97 ) * - CASE 58 WHEN - - 60 * - + 41 * COUNT ( * ) + - + 54 + + 66 / - 99 / - 6 THEN NULL WHEN 62 * + ( 81 ) + 39 THEN - - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL ( + 70 ) * 54 * - 39
----
-147420

query I rowsort
SELECT 60 * + - 30 + + 49
----
-1751

query I rowsort
SELECT ALL - 97 * - - 83 col2
----
-8051

query I rowsort
SELECT DISTINCT 67 * + - 1 AS col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-610
SELECT MAX( CAST( - + 4 AS SIGNED ) ) * + 45 + + 39
----
-141

skipif mysql # not compatible
query I rowsort label-610
SELECT MAX ( CAST ( - + 4 AS INTEGER ) ) * + 45 + + 39
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-611
SELECT + 9 + COUNT( * ) + 97 / - + CAST( NULL AS SIGNED ) AS col0, + 92 * - CAST( - 72 AS SIGNED ) + - - CAST( NULL AS SIGNED ) * - 35 * + - 30 * + - 50 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-611
SELECT + 9 + COUNT ( * ) + 97 / - + CAST ( NULL AS INTEGER ) AS col0, + 92 * - CAST ( - 72 AS INTEGER ) + - - CAST ( NULL AS INTEGER ) * - 35 * + - 30 * + - 50 AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-612
SELECT + CASE 23 WHEN - CAST( NULL AS SIGNED ) * 25 THEN NULL WHEN 30 * COUNT( * ) THEN + 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-612
SELECT + CASE 23 WHEN - CAST ( NULL AS INTEGER ) * 25 THEN NULL WHEN 30 * COUNT ( * ) THEN + 6 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT - 23 + COUNT( ALL + - 48 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-614
SELECT - 23 + COUNT ( ALL + - 48 ) AS col1
----
-22

query I rowsort
SELECT DISTINCT - 75 + 80 * 39 * + 61 AS col1
----
190245

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT DISTINCT + NULLIF ( + 7, COUNT( * ) ) col2
----
7

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT + NULLIF ( + 7, COUNT ( * ) ) col2
----
7

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

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL - CAST ( NULL AS INTEGER ) + 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-619
SELECT DISTINCT 38 + 57, COUNT( * ) AS col2
----
95
1

skipif mysql # not compatible
query II rowsort label-619
SELECT DISTINCT 38 + 57, COUNT ( * ) AS col2
----
95
1

query I rowsort
SELECT 98 * - 16 AS col2
----
-1568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-621
SELECT 28 + - 62 DIV COUNT( * ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-621
SELECT 28 + - 62 / COUNT ( * ) col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT + ( - 15 ) * - - MIN( - 79 ) * ( + 34 )
----
40290

skipif mysql # not compatible
query I rowsort label-622
SELECT + ( - 15 ) * - - MIN ( - 79 ) * ( + 34 )
----
40290

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

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

query I rowsort
SELECT + 13 * - 87 AS col2
----
-1131

onlyif mysql # DIV for integer division: 
query I rowsort label-625
SELECT ALL + NULLIF ( 85, + 39 ) DIV - 70
----
-1

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL + NULLIF ( 85, + 39 ) / - 70
----
-1

query I rowsort
SELECT - 22 + - - NULLIF ( ( + - 86 ), 29 ) AS col2
----
-108

query II rowsort
SELECT DISTINCT + - 93 * + 30 AS col1, 95 + + 40 - - + 69 * + 62 * + + 60
----
-2790
256815

query I rowsort
SELECT ALL - 91 + 68 AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-629
SELECT 89 * + CAST( NULL AS SIGNED ) * + + CASE + 17 WHEN + 85 + + + 87 * + 71 THEN + MAX( + 67 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-629
SELECT 89 * + CAST ( NULL AS INTEGER ) * + + CASE + 17 WHEN + 85 + + + 87 * + 71 THEN + MAX ( + 67 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 21 * + 18
----
-378

query II rowsort
SELECT + 80 AS col1, - 5 + - 43 AS col0
----
80
-48

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-633
SELECT COALESCE ( - + 44, - + 52 + - + CAST( - 93 AS SIGNED ) * + MIN( - 5 ) + + - 70 + + 51, 91 DIV + 58 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-633
SELECT COALESCE ( - + 44, - + 52 + - + CAST ( - 93 AS INTEGER ) * + MIN ( - 5 ) + + - 70 + + 51, 91 / + 58 ) AS col0
----
-44

query I rowsort
SELECT NULLIF ( + 53, + - ( + 9 ) )
----
53

query I rowsort
SELECT + 80 * - 93
----
-7440

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT ALL + COUNT( ALL + 13 )
----
1

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL + COUNT ( ALL + 13 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-637
SELECT COALESCE ( - COUNT( * ), 21 * - + 95 DIV - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-637
SELECT COALESCE ( - COUNT ( * ), 21 * - + 95 / - COUNT ( * ) ) col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-638
SELECT COALESCE ( 34, - + 38 DIV COUNT( * ) * + 67 + - NULLIF ( + 43, 83 ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-638
SELECT COALESCE ( 34, - + 38 / COUNT ( * ) * + 67 + - NULLIF ( + 43, 83 ) ) AS col1
----
34

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

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

query I rowsort
SELECT DISTINCT + ( 37 ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-641
SELECT ALL + MIN( DISTINCT ( - 81 ) ) AS col0, 58
----
-81
58

skipif mysql # not compatible
query II rowsort label-641
SELECT ALL + MIN ( DISTINCT ( - 81 ) ) AS col0, 58
----
-81
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-642
SELECT DISTINCT 73 * ( + + 72 ) * + 68 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT 73 * ( + + 72 ) * + 68 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT DISTINCT + CASE - COUNT( * ) WHEN - + 28 + - 91 THEN NULL WHEN + 17 THEN 39 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT + CASE - COUNT ( * ) WHEN - + 28 + - 91 THEN NULL WHEN + 17 THEN 39 END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-644
SELECT + COUNT ( * ) / + 94 * 92 * + ( - - 14 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-645
SELECT DISTINCT + 20 DIV 13 col2
----
1

skipif mysql # not compatible
query I rowsort label-645
SELECT DISTINCT + 20 / 13 col2
----
1

query I rowsort
SELECT ALL 38 * 55 + - 40 - - 67 + 92 + - + 19 AS col1
----
2190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-647
SELECT - COUNT( * ) DIV - ( - 67 ) + + + SUM( ALL + 96 ) + 39 + + 72 + + 59 * 70 * + NULLIF ( 26, - + 14 ) AS col1
----
107587

skipif mysql # not compatible
query I rowsort label-647
SELECT - COUNT ( * ) / - ( - 67 ) + + + SUM ( ALL + 96 ) + 39 + + 72 + + 59 * 70 * + NULLIF ( 26, - + 14 ) AS col1
----
107587

onlyif mysql # aggregate syntax: 
query II rowsort label-648
SELECT ALL - - CASE - ( 93 ) WHEN 12 + - + 82 + 89 THEN NULL WHEN + + 23 THEN NULL ELSE + 27 + - COUNT( * ) END + - + 77, - 68 AS col0
----
-51
-68

skipif mysql # not compatible
query II rowsort label-648
SELECT ALL - - CASE - ( 93 ) WHEN 12 + - + 82 + 89 THEN NULL WHEN + + 23 THEN NULL ELSE + 27 + - COUNT ( * ) END + - + 77, - 68 AS col0
----
-51
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-649
SELECT COALESCE ( + + 53, + 12 DIV COALESCE ( + - 99, + COALESCE ( + - 65, + 79 + 98, 89 ) * + + 10 ), - - COUNT( * ) - - 24 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-649
SELECT COALESCE ( + + 53, + 12 / COALESCE ( + - 99, + COALESCE ( + - 65, + 79 + 98, 89 ) * + + 10 ), - - COUNT ( * ) - - 24 ) AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-650
SELECT ALL 65 + 55 DIV + 66 + - 51 + 7 - + NULLIF ( - - 58, + SUM( + - 57 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL 65 + 55 / + 66 + - 51 + 7 - + NULLIF ( - - 58, + SUM ( + - 57 ) )
----
-37

query I rowsort
SELECT - 0 * - 67 - 72 AS col2
----
-72

query I rowsort
SELECT DISTINCT - 85 + + - 60 AS col2
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-653
SELECT ALL COUNT( * ) + - NULLIF ( + ( - - NULLIF ( + + 14, + 29 ) ), 95 + - - COUNT( * ) + 95 * - 74 ) + + 99 - ( 50 ) + + - CAST( + ( - 62 ) AS SIGNED ) AS col2, + NULLIF ( - 72, + 12 * 81 ) + - ( + 81 )
----
98
-153

skipif mysql # not compatible
query II rowsort label-653
SELECT ALL COUNT ( * ) + - NULLIF ( + ( - - NULLIF ( + + 14, + 29 ) ), 95 + - - COUNT ( * ) + 95 * - 74 ) + + 99 - ( 50 ) + + - CAST ( + ( - 62 ) AS INTEGER ) AS col2, + NULLIF ( - 72, + 12 * 81 ) + - ( + 81 )
----
98
-153

query I rowsort
SELECT ALL - 52 + + - 9
----
-61

query I rowsort
SELECT + + 72 + - 52
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-656
SELECT ALL - 33 AS col0, + ( - 21 ) * - + 8 - - 61 * COUNT( * ) AS col0
----
-33
229

skipif mysql # not compatible
query II rowsort label-656
SELECT ALL - 33 AS col0, + ( - 21 ) * - + 8 - - 61 * COUNT ( * ) AS col0
----
-33
229

query I rowsort
SELECT ALL 11 + + 52
----
63

query I rowsort
SELECT ALL + 69 - + - 65 * + + 12 col1
----
849

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT + + COUNT( ALL + + 9 ) - + 97
----
-96

skipif mysql # not compatible
query I rowsort label-659
SELECT + + COUNT ( ALL + + 9 ) - + 97
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT DISTINCT + SUM( - + 13 ) * 6
----
-78

skipif mysql # not compatible
query I rowsort label-660
SELECT DISTINCT + SUM ( - + 13 ) * 6
----
-78

query I rowsort
SELECT + 93 * 54 col1
----
5022

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT ALL CASE ( + 55 ) WHEN + - 78 / - 15 + 14 THEN - 51 * - COUNT( * ) WHEN - - 88 * 93 * + 13 THEN 47 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-663
SELECT ALL CASE ( + 55 ) WHEN + - 78 / - 15 + 14 THEN - 51 * - COUNT ( * ) WHEN - - 88 * 93 * + 13 THEN 47 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-665
SELECT + ( - COALESCE ( + COUNT( * ), + 18, - MIN( + - 11 ) - - 52 ) ) DIV COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-665
SELECT + ( - COALESCE ( + COUNT ( * ), + 18, - MIN ( + - 11 ) - - 52 ) ) / COUNT ( * ) AS col2
----
-1

query II rowsort
SELECT - 80 - + 84 AS col2, ( - COALESCE ( - 31, 17 * - 69 * 30 ) ) AS col0
----
-164
31

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

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

query I rowsort
SELECT - 27 + 71 AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-669
SELECT ALL + MIN( - + 95 ) * - COUNT( * ) + + - MIN( + CASE - 54 WHEN + + 21 + - 84 THEN - - 1 ELSE NULL END ) + CAST( NULL AS SIGNED ) * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL + MIN ( - + 95 ) * - COUNT ( * ) + + - MIN ( + CASE - 54 WHEN + + 21 + - 84 THEN - - 1 ELSE NULL END ) + CAST ( NULL AS INTEGER ) * 80
----
NULL

query I rowsort
SELECT - 44 + + + 78 * + 47
----
3622

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT 97 * + 46 + + 24 - - 34 + - 0 * 92 * - CASE + MIN( 30 ) WHEN 86 THEN + CASE - - 43 WHEN - 7 THEN - - COUNT( * ) * + 90 + + - 82 END * 27 + + - 69 + + ( - 92 ) WHEN ( - ( - - 95 ) ) * 82 + + 82 THEN + + ( + ( - 86 ) ) END + - MAX( DISTINCT + 31 ) * 0 + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-671
SELECT 97 * + 46 + + 24 - - 34 + - 0 * 92 * - CASE + MIN ( 30 ) WHEN 86 THEN + CASE - - 43 WHEN - 7 THEN - - COUNT ( * ) * + 90 + + - 82 END * 27 + + - 69 + + ( - 92 ) WHEN ( - ( - - 95 ) ) * 82 + + 82 THEN + + ( + ( - 86 ) ) END + - MAX ( DISTINCT + 31 ) * 0 + + 92
----
NULL

query I rowsort
SELECT ALL - 24 * 53
----
-1272

onlyif mysql # aggregate syntax: 
query II rowsort label-673
SELECT ALL + 7 col0, ( - NULLIF ( ( + + 26 ), - ( - CASE + - 26 WHEN - + 65 THEN NULL WHEN - + ( - 70 ) + + 53 THEN + COUNT( * ) WHEN 72 THEN NULL ELSE - + 94 + ( + - 1 ) END ) ) ) * - COUNT( * ) - + 78 * + 27 + + 99
----
7
-1981

skipif mysql # not compatible
query II rowsort label-673
SELECT ALL + 7 col0, ( - NULLIF ( ( + + 26 ), - ( - CASE + - 26 WHEN - + 65 THEN NULL WHEN - + ( - 70 ) + + 53 THEN + COUNT ( * ) WHEN 72 THEN NULL ELSE - + 94 + ( + - 1 ) END ) ) ) * - COUNT ( * ) - + 78 * + 27 + + 99
----
7
-1981

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-674
SELECT + 67 * + CAST( COALESCE ( - 42, - 37 * + SUM( ALL - 29 ) / + ( 42 ), 45 ) AS SIGNED ) AS col0
----
-2814

skipif mysql # not compatible
query I rowsort label-674
SELECT + 67 * + CAST ( COALESCE ( - 42, - 37 * + SUM ( ALL - 29 ) / + ( 42 ), 45 ) AS INTEGER ) AS col0
----
-2814

query I rowsort
SELECT ALL + 1 * + 33 + - - 21 AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-676
SELECT - 66 + + - 63 + CAST( + 18 AS SIGNED ) + + CASE - 59 WHEN + 74 * 7 * NULLIF ( - MAX( + 73 ), + MIN( + 92 ) ) + 19 + - 73 + COUNT( * ) + - COUNT( * ) * + 57 * - 94 * - COUNT( * ) / + COUNT( * ) THEN - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-676
SELECT - 66 + + - 63 + CAST ( + 18 AS INTEGER ) + + CASE - 59 WHEN + 74 * 7 * NULLIF ( - MAX ( + 73 ), + MIN ( + 92 ) ) + 19 + - 73 + COUNT ( * ) + - COUNT ( * ) * + 57 * - 94 * - COUNT ( * ) / + COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-677
SELECT ALL - + 44 * - CAST( NULL AS SIGNED ) * + - 15 + + - NULLIF ( 50, + 16 * - - 21 ) * - 1 / - 87 + + + 87 - + 24 * ( + - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-677
SELECT ALL - + 44 * - CAST ( NULL AS INTEGER ) * + - 15 + + - NULLIF ( 50, + 16 * - - 21 ) * - 1 / - 87 + + + 87 - + 24 * ( + - 54 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT DISTINCT - 14 * 7 + 29 * + COUNT( 45 ) col0
----
-69

skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT - 14 * 7 + 29 * + COUNT ( 45 ) col0
----
-69

query I rowsort
SELECT ALL + - 46 * 39 + - 43 col1
----
-1837

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-681
SELECT ALL CASE - - MIN( ALL - 86 ) WHEN 83 * - + 42 * COUNT( * ) * - - CAST( NULL AS SIGNED ) * - 70 THEN - + ( + + ( + 26 ) ) * ( - + 25 ) ELSE - 40 END * - 17 + - 67 AS col2
----
613

skipif mysql # not compatible
query I rowsort label-681
SELECT ALL CASE - - MIN ( ALL - 86 ) WHEN 83 * - + 42 * COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * - 70 THEN - + ( + + ( + 26 ) ) * ( - + 25 ) ELSE - 40 END * - 17 + - 67 AS col2
----
613

query II rowsort
SELECT 69 col2, ( 60 ) AS col2
----
69
60

query II rowsort
SELECT - 31 AS col1, - 78
----
-31
-78

query I rowsort
SELECT ALL 76 * - 52 + + 77 + + 98 * + - 31 + - ( + 40 ) AS col2
----
-6953

query I rowsort
SELECT + 68 * + + 37 * - + 12 * - + 32
----
966144

query I rowsort
SELECT - - 59 + - 51 AS col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-687
SELECT ALL - 78 col2, COALESCE ( ( 64 ), + 24 * + CAST( NULL AS SIGNED ) + - + 52 * - 35 ) AS col2
----
-78
64

skipif mysql # not compatible
query II rowsort label-687
SELECT ALL - 78 col2, COALESCE ( ( 64 ), + 24 * + CAST ( NULL AS INTEGER ) + - + 52 * - 35 ) AS col2
----
-78
64

query I rowsort
SELECT ALL + + 72 * 94
----
6768

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT DISTINCT - MAX( ALL - 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-689
SELECT DISTINCT - MAX ( ALL - 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-690
SELECT ALL 27 AS col2, - COUNT( * ) + - 17
----
27
-18

skipif mysql # not compatible
query II rowsort label-690
SELECT ALL 27 AS col2, - COUNT ( * ) + - 17
----
27
-18

query I rowsort
SELECT - 71 + 33 AS col1
----
-38

query II rowsort
SELECT 34 + + 21 AS col0, 59
----
55
59

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ALL ( + COUNT( * ) ) * + 20 + - 43 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL ( + COUNT ( * ) ) * + 20 + - 43 AS col2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-694
SELECT ( NULLIF ( + - ( + 52 ), 18 ) ) DIV 9 + 93 * 77 AS col1
----
7156

skipif mysql # not compatible
query I rowsort label-694
SELECT ( NULLIF ( + - ( + 52 ), 18 ) ) / 9 + 93 * 77 AS col1
----
7156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-695
SELECT DISTINCT - NULLIF ( - 28, + NULLIF ( + 51, + 81 * + 55 ) * 86 * + CAST( - - ( - 29 ) AS SIGNED ) - - - ( + 20 ) ) AS col0, + 79 * 73 AS col2
----
28
5767

skipif mysql # not compatible
query II rowsort label-695
SELECT DISTINCT - NULLIF ( - 28, + NULLIF ( + 51, + 81 * + 55 ) * 86 * + CAST ( - - ( - 29 ) AS INTEGER ) - - - ( + 20 ) ) AS col0, + 79 * 73 AS col2
----
28
5767

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-696
SELECT ALL COUNT( * ) + + 32 + 74 - - + 9 DIV + - 48 * + ( - 75 ) AS col2
----
107

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL COUNT ( * ) + + 32 + 74 - - + 9 / + - 48 * + ( - 75 ) AS col2
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-697
SELECT DISTINCT CAST( 19 AS SIGNED ) * - ( - 33 ) + 27, - COALESCE ( 87, 79 + + 24 + - + 97 + 35 * + - 12, + - 67 ) * + MAX( ALL + 8 ) * 58 AS col0
----
654
-40368

skipif mysql # not compatible
query II rowsort label-697
SELECT DISTINCT CAST ( 19 AS INTEGER ) * - ( - 33 ) + 27, - COALESCE ( 87, 79 + + 24 + - + 97 + 35 * + - 12, + - 67 ) * + MAX ( ALL + 8 ) * 58 AS col0
----
654
-40368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-698
SELECT ( SUM( - - 98 ) ) DIV - + 79
----
-1

skipif mysql # not compatible
query I rowsort label-698
SELECT ( SUM ( - - 98 ) ) / - + 79
----
-1

query I rowsort
SELECT 62 * 68 AS col0
----
4216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-700
SELECT ALL CASE + COUNT( * ) WHEN - 69 * - CAST( NULL AS SIGNED ) THEN NULL ELSE 50 + + COUNT( * ) END + + + 47 + - 25 + - + 1
----
72

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL CASE + COUNT ( * ) WHEN - 69 * - CAST ( NULL AS INTEGER ) THEN NULL ELSE 50 + + COUNT ( * ) END + + + 47 + - 25 + - + 1
----
72

query I rowsort
SELECT ALL - 75 + - - 12
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-702
SELECT 42 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-702
SELECT 42 / - 77
----
0

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

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

query I rowsort
SELECT ALL + 46 + + + 84
----
130

query II rowsort
SELECT + ( - + 81 ) AS col0, - 16 + - - 65 * + 30 AS col2
----
-81
1934

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-706
SELECT ALL + + 91 * - - 95 + - 7 DIV - + 94 + SUM( ALL 0 ) * + - 70 DIV 19 + + 74 col1
----
8719

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL + + 91 * - - 95 + - 7 / - + 94 + SUM ( ALL 0 ) * + - 70 / 19 + + 74 col1
----
8719

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT - + COUNT( * ) * + 46 * + 26 + ( + SUM( + 24 ) ) * - 33 AS col0
----
-1988

skipif mysql # not compatible
query I rowsort label-707
SELECT - + COUNT ( * ) * + 46 * + 26 + ( + SUM ( + 24 ) ) * - 33 AS col0
----
-1988

query II rowsort
SELECT 3 * + 89 AS col2, 46 - + 98 AS col2
----
267
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT ALL + - 24 + COUNT( * ) * + - 86
----
-110

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL + - 24 + COUNT ( * ) * + - 86
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-710
SELECT DISTINCT - CAST( 86 AS SIGNED ), - 6 - + 52 + - + 58 + - + ( 90 ) col2
----
-86
-206

skipif mysql # not compatible
query II rowsort label-710
SELECT DISTINCT - CAST ( 86 AS INTEGER ), - 6 - + 52 + - + 58 + - + ( 90 ) col2
----
-86
-206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-711
SELECT COUNT( - 17 ) + + - 15 / - CAST( NULL AS SIGNED ) + - AVG ( 0 ) + + + 3 * + 96 / - CAST( NULL AS SIGNED ) + COUNT( * ) * 51 * COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-711
SELECT COUNT ( - 17 ) + + - 15 / - CAST ( NULL AS INTEGER ) + - AVG ( 0 ) + + + 3 * + 96 / - CAST ( NULL AS INTEGER ) + COUNT ( * ) * 51 * COUNT ( * ) col2
----
NULL

query II rowsort
SELECT DISTINCT + 2 - - - 32 - + - 69 + + - NULLIF ( + 44, + 18 ) * - + 48 * - ( + - 69 ) - + COALESCE ( + 42, + 6 ) col0, 46 * + 11 * 16 AS col2
----
145725
8096

query I rowsort
SELECT DISTINCT CASE WHEN NOT - 90 IS NOT NULL THEN + 49 * + + 49 END * + 58 + 11 + + 28 col2
----
NULL

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

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

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

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

query I rowsort
SELECT 85 * - - ( + 76 ) * - 56 * - 24 AS col1
----
8682240

query I rowsort
SELECT - 69 * - 96 + + 94 * - 82
----
-1084

query I rowsort
SELECT 92 * - 80 col1
----
-7360

onlyif mysql # DIV for integer division: 
query I rowsort label-719
SELECT 37 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-719
SELECT 37 / - 70
----
0

query I rowsort
SELECT 8 * + 48 AS col0
----
384

query II rowsort
SELECT ALL 24 col0, 61
----
24
61

onlyif mysql # aggregate syntax: 
query II rowsort label-722
SELECT ALL ( + COUNT( * ) ) * + 14, 32 * COALESCE ( + CASE + 10 WHEN + - ( - 79 ) * - 21 * - COUNT( * ) THEN 54 + + 24 + - COUNT( * ) * 65 - + 68 ELSE NULL END, - 63 ) AS col1
----
14
-2016

skipif mysql # not compatible
query II rowsort label-722
SELECT ALL ( + COUNT ( * ) ) * + 14, 32 * COALESCE ( + CASE + 10 WHEN + - ( - 79 ) * - 21 * - COUNT ( * ) THEN 54 + + 24 + - COUNT ( * ) * 65 - + 68 ELSE NULL END, - 63 ) AS col1
----
14
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT ALL COUNT( * ) + + 48 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL COUNT ( * ) + + 48 AS col1
----
49

query I rowsort
SELECT 33 - 75
----
-42

query I rowsort
SELECT 8 + + 82
----
90

query I rowsort
SELECT COALESCE ( + 5, + 81 * + + 37 ) * - 95
----
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT COUNT( * ) + + 73
----
74

skipif mysql # not compatible
query I rowsort label-727
SELECT COUNT ( * ) + + 73
----
74

query I rowsort
SELECT 23 + - 58 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-729
SELECT DISTINCT 47 col2, 49 + + + 38 - + COUNT( * ) + 87 AS col2
----
47
173

skipif mysql # not compatible
query II rowsort label-729
SELECT DISTINCT 47 col2, 49 + + + 38 - + COUNT ( * ) + 87 AS col2
----
47
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-730
SELECT ALL + 64 * 10 * - - 94 + + + 86 + - - COALESCE ( - + 23, - ( + + 19 ) * - 87 + - + CAST( NULL AS SIGNED ), - ( + COUNT( * ) ) - - ( + - COALESCE ( 6, MIN( DISTINCT + + 39 ) + + CAST( + 37 AS SIGNED ) ) ) + ( 13 ), 5 )
----
60223

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL + 64 * 10 * - - 94 + + + 86 + - - COALESCE ( - + 23, - ( + + 19 ) * - 87 + - + CAST ( NULL AS INTEGER ), - ( + COUNT ( * ) ) - - ( + - COALESCE ( 6, MIN ( DISTINCT + + 39 ) + + CAST ( + 37 AS INTEGER ) ) ) + ( 13 ), 5 )
----
60223

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT COUNT( * ) + - - 59 col1
----
60

skipif mysql # not compatible
query I rowsort label-731
SELECT COUNT ( * ) + - - 59 col1
----
60

query II rowsort
SELECT + 57, 19 AS col1
----
57
19

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT DISTINCT - CASE - ( 71 ) WHEN + + 58 + - 0 + - 75 / + ( - 39 ) - + ( COUNT( * ) ) / 19 - 12 - - COUNT( ALL - NULLIF ( 48, 17 ) ) THEN NULL WHEN + 35 THEN NULL WHEN 12 THEN 9 + + COUNT( - 53 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-733
SELECT DISTINCT - CASE - ( 71 ) WHEN + + 58 + - 0 + - 75 / + ( - 39 ) - + ( COUNT ( * ) ) / 19 - 12 - - COUNT ( ALL - NULLIF ( 48, 17 ) ) THEN NULL WHEN + 35 THEN NULL WHEN 12 THEN 9 + + COUNT ( - 53 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 87 * - - 78 + - 16 * + 18
----
-7074

query I rowsort
SELECT 58 + - 4
----
54

query I rowsort
SELECT + 81 * 22 * 46 + + + 4 - - - ( 3 )
----
81973

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT ALL - SUM( DISTINCT - 66 )
----
66

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL - SUM ( DISTINCT - 66 )
----
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-738
SELECT 20 DIV + - CAST( - 49 AS SIGNED ) + - - 59
----
59

skipif mysql # not compatible
query I rowsort label-738
SELECT 20 / + - CAST ( - 49 AS INTEGER ) + - - 59
----
59

query I rowsort
SELECT ALL 85 * 10 - - - 76 * 56 AS col0
----
-3406

query II rowsort
SELECT 59 * - + 25 + + + 52 col1, 34 + + 90
----
-1423
124

query I rowsort
SELECT + 23 * - 46 AS col0
----
-1058

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT + CASE 96 WHEN - + COUNT( * ) THEN + - 27 * 24 + + 80 - 58 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-742
SELECT + CASE 96 WHEN - + COUNT ( * ) THEN + - 27 * 24 + + 80 - 58 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT + MIN( + - 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-743
SELECT + MIN ( + - 59 ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT + MIN( ALL + 61 ) + - ( - + 32 ) + - 65 * + 74 AS col0
----
-4717

skipif mysql # not compatible
query I rowsort label-744
SELECT + MIN ( ALL + 61 ) + - ( - + 32 ) + - 65 * + 74 AS col0
----
-4717

onlyif mysql # DIV for integer division: 
query I rowsort label-745
SELECT DISTINCT - 15 DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-745
SELECT DISTINCT - 15 / 39
----
0

query I rowsort
SELECT + - 7 * + - 63 AS col1
----
441

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

skipif mysql # not compatible
query I rowsort label-747
SELECT DISTINCT - ( COUNT ( DISTINCT - 37 ) ) * ( - + 19 ) AS col1
----
19

query I rowsort
SELECT DISTINCT 98 * + - 92 AS col0
----
-9016

query I rowsort
SELECT - 27 * - NULLIF ( - 12, - 61 ) AS col0
----
-324

query I rowsort
SELECT ALL 33 + + - ( - 5 ) AS col2
----
38

query I rowsort
SELECT ALL + 38 + + + 39
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT ALL + 65 + - + ( - COUNT( * ) ) * - SUM( ALL 19 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL + 65 + - + ( - COUNT ( * ) ) * - SUM ( ALL 19 ) AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-753
SELECT + 92 DIV + 90 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-753
SELECT + 92 / + 90 AS col2
----
1

query I rowsort
SELECT - 97 + - 4 AS col1
----
-101

query I rowsort
SELECT - 9 * + 92 AS col2
----
-828

onlyif mysql # DIV for integer division: 
query I rowsort label-756
SELECT DISTINCT - 93 DIV - 23
----
4

skipif mysql # not compatible
query I rowsort label-756
SELECT DISTINCT - 93 / - 23
----
4

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

onlyif mysql # DIV for integer division: 
query II rowsort label-758
SELECT DISTINCT - ( - 10 ) DIV - + 39 - - 21 col2, 17 AS col0
----
21
17

skipif mysql # not compatible
query II rowsort label-758
SELECT DISTINCT - ( - 10 ) / - + 39 - - 21 col2, 17 AS col0
----
21
17

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT ALL - 3 + + CASE - 73 WHEN - 46 THEN + 61 * - 34 + - + 81 + + - MIN( ALL + 0 ) * + ( - - 29 ) * + 14 * - + 72 + + + NULLIF ( - + CASE CASE + ( - COUNT( * ) ) WHEN - 17 THEN COUNT( * ) WHEN - 88 * CASE + 10 WHEN - - 40 THEN - SUM( DISTINCT 39 ) ELSE NULL END THEN NULL END WHEN - 57 THEN MAX( DISTINCT + 32 ) * - - 89 * MIN( - 72 ) WHEN COUNT( * ) THEN 33 ELSE NULL END, + ( 97 ) ) - + 30 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL - 3 + + CASE - 73 WHEN - 46 THEN + 61 * - 34 + - + 81 + + - MIN ( ALL + 0 ) * + ( - - 29 ) * + 14 * - + 72 + + + NULLIF ( - + CASE CASE + ( - COUNT ( * ) ) WHEN - 17 THEN COUNT ( * ) WHEN - 88 * CASE + 10 WHEN - - 40 THEN - SUM ( DISTINCT 39 ) ELSE NULL END THEN NULL END WHEN - 57 THEN MAX ( DISTINCT + 32 ) * - - 89 * MIN ( - 72 ) WHEN COUNT ( * ) THEN 33 ELSE NULL END, + ( 97 ) ) - + 30 END AS col2
----
NULL

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

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

query I rowsort
SELECT ALL + 75 * 75
----
5625

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-763
SELECT - 7 * + 69 / - CASE + CAST( NULL AS SIGNED ) WHEN + 81 THEN NULL WHEN + - 76 * + 9 + AVG ( ALL + ( + - 26 ) ) THEN NULLIF ( + CAST( NULL AS SIGNED ), - + 42 ) + - - 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-763
SELECT - 7 * + 69 / - CASE + CAST ( NULL AS INTEGER ) WHEN + 81 THEN NULL WHEN + - 76 * + 9 + AVG ( ALL + ( + - 26 ) ) THEN NULLIF ( + CAST ( NULL AS INTEGER ), - + 42 ) + - - 32 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-764
SELECT ALL 70 DIV + 69 - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-764
SELECT ALL 70 / + 69 - - COUNT ( * )
----
2

query I rowsort
SELECT + CASE - + 50 WHEN + - 28 THEN NULL WHEN - 87 + + 46 + 66 - 62 THEN NULL ELSE 70 END
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-766
SELECT MIN( 92 ) / 86 + - CAST( NULL AS SIGNED ) + + 12 - + ( - 2 ) / 22 / + - 87 + + ( + 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-766
SELECT MIN ( 92 ) / 86 + - CAST ( NULL AS INTEGER ) + + 12 - + ( - 2 ) / 22 / + - 87 + + ( + 76 )
----
NULL

query I rowsort
SELECT ALL - 94 * + - 70 + - + 15 + + 30 - + 92
----
6503

query I rowsort
SELECT + ( + + 61 ) * + - 78
----
-4758

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT DISTINCT + 86 * + NULLIF ( - 25, - 32 / - COUNT( * ) ) col0
----
-2150

skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT + 86 * + NULLIF ( - 25, - 32 / - COUNT ( * ) ) col0
----
-2150

query I rowsort
SELECT + + 47 - 28 col2
----
19

query I rowsort
SELECT ALL + 42 * + 36 * + 96 col2
----
145152

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT DISTINCT NULLIF ( - + 30, - + 68 ) * - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT NULLIF ( - + 30, - + 68 ) * - COUNT ( * )
----
30

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

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

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

query I rowsort
SELECT + + ( + + 43 ) * 54 + - 27 + + 63
----
2358

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT + SUM( ALL + + 86 ) * - - 30 AS col0
----
2580

skipif mysql # not compatible
query I rowsort label-777
SELECT + SUM ( ALL + + 86 ) * - - 30 AS col0
----
2580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-778
SELECT + - 12 + - + SUM( ALL + NULLIF ( 95, + + 39 - - 21 ) ) + + - 79 + 62 DIV - 62 AS col2
----
-187

skipif mysql # not compatible
query I rowsort label-778
SELECT + - 12 + - + SUM ( ALL + NULLIF ( 95, + + 39 - - 21 ) ) + + - 79 + 62 / - 62 AS col2
----
-187

onlyif mysql # aggregate syntax: 
query II rowsort label-779
SELECT + 86 * 69 * + - COUNT( * ) - - + 43 AS col1, + 33 AS col2
----
-5891
33

skipif mysql # not compatible
query II rowsort label-779
SELECT + 86 * 69 * + - COUNT ( * ) - - + 43 AS col1, + 33 AS col2
----
-5891
33

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-781
SELECT ALL COALESCE ( + + 99, + 31 * - CAST( 58 AS SIGNED ) + - ( COALESCE ( + + SUM( ALL + 13 ), - 95 ) ) - + + 23 + - + 88 * + + 69 ) DIV - COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL COALESCE ( + + 99, + 31 * - CAST ( 58 AS INTEGER ) + - ( COALESCE ( + + SUM ( ALL + 13 ), - 95 ) ) - + + 23 + - + 88 * + + 69 ) / - COUNT ( * )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT SUM( 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-782
SELECT SUM ( 21 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT ALL - 2 * + 66 * - 97 * - - COUNT( * ) + + 6 AS col1
----
12810

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL - 2 * + 66 * - 97 * - - COUNT ( * ) + + 6 AS col1
----
12810

query I rowsort
SELECT + 21 * + - 8 AS col2
----
-168

query I rowsort
SELECT + 80 + 70 + - 3
----
147

query I rowsort
SELECT ALL 80 + + 59 AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT + 85 - - MIN( DISTINCT - 59 ) col0
----
26

skipif mysql # not compatible
query I rowsort label-787
SELECT + 85 - - MIN ( DISTINCT - 59 ) col0
----
26

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-789
SELECT DISTINCT + 34 + + NULLIF ( + + 70, - MIN( DISTINCT CAST( + + 58 AS SIGNED ) ) * + 18 * 96 ) + - + 11 + + + COUNT( * ) + 51 col0
----
145

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT + 34 + + NULLIF ( + + 70, - MIN ( DISTINCT CAST ( + + 58 AS INTEGER ) ) * + 18 * 96 ) + - + 11 + + + COUNT ( * ) + 51 col0
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-790
SELECT ALL NULLIF ( - + COUNT( * ), - 55 * - - ( + - 19 ) ) col2, + 41 - + MAX( - 89 ) col0
----
-1
130

skipif mysql # not compatible
query II rowsort label-790
SELECT ALL NULLIF ( - + COUNT ( * ), - 55 * - - ( + - 19 ) ) col2, + 41 - + MAX ( - 89 ) col0
----
-1
130

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

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL COUNT ( * ) + 39 AS col2
----
40

query I rowsort
SELECT ALL + 7 - + 95
----
-88

query I rowsort
SELECT - ( - - 88 ) - + ( + COALESCE ( + 96, + 82 ) ) AS col2
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT ALL NULLIF ( + 14, - COUNT( * ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-794
SELECT ALL NULLIF ( + 14, - COUNT ( * ) ) AS col1
----
14

query I rowsort
SELECT + 96 + + 25
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-796
SELECT ALL + + ( - - 0 ) DIV - + 90 * + + 3 - + 6 - 4 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL + + ( - - 0 ) / - + 90 * + + 3 - + 6 - 4 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT - COUNT( * ) + + + 17
----
16

skipif mysql # not compatible
query I rowsort label-797
SELECT - COUNT ( * ) + + + 17
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT - 13 * COUNT( * ) - - 16 * - - 49
----
771

skipif mysql # not compatible
query I rowsort label-798
SELECT - 13 * COUNT ( * ) - - 16 * - - 49
----
771

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT - MIN( + 35 ) + - 61
----
-96

skipif mysql # not compatible
query I rowsort label-799
SELECT - MIN ( + 35 ) + - 61
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-800
SELECT ALL + 37 DIV COALESCE ( 99, + - AVG ( - - 52 ) * - 65, SUM( + 58 ) * + 50 ) - - + COUNT( * ) + + 67 - + 14 + + NULLIF ( - - ( + COUNT( * ) ), - - 37 * + NULLIF ( CASE - 99 WHEN + 72 THEN + 46 + + - 2 + - COUNT( * ) END, - 15 * + 71 - + - 96 ) + + 36 ) * - COUNT( * ) * + + 65
----
-11

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL + 37 / COALESCE ( 99, + - AVG ( - - 52 ) * - 65, SUM ( + 58 ) * + 50 ) - - + COUNT ( * ) + + 67 - + 14 + + NULLIF ( - - ( + COUNT ( * ) ), - - 37 * + NULLIF ( CASE - 99 WHEN + 72 THEN + 46 + + - 2 + - COUNT ( * ) END, - 15 * + 71 - + - 96 ) + + 36 ) * - COUNT ( * ) * + + 65
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-801
SELECT + 72 DIV + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-801
SELECT + 72 / + 92 AS col1
----
0

query I rowsort
SELECT ( - - 35 ) + + + 71 AS col1
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-803
SELECT 89 DIV + 98 * + ( - 70 )
----
0

skipif mysql # not compatible
query I rowsort label-803
SELECT 89 / + 98 * + ( - 70 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-804
SELECT - 46 DIV + COUNT( * ) + - 27 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-804
SELECT - 46 / + COUNT ( * ) + - 27 AS col0
----
-73

query I rowsort
SELECT - 21 * - 94 AS col1
----
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT 50 + + 26 + - COUNT( * ) * + 6
----
70

skipif mysql # not compatible
query I rowsort label-806
SELECT 50 + + 26 + - COUNT ( * ) * + 6
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-807
SELECT DISTINCT - NULLIF ( - 31, - + COUNT( * ) - - + COUNT( DISTINCT - - COALESCE ( + ( + - 81 ), 0 ) ) ), - 44 col0
----
31
-44

skipif mysql # not compatible
query II rowsort label-807
SELECT DISTINCT - NULLIF ( - 31, - + COUNT ( * ) - - + COUNT ( DISTINCT - - COALESCE ( + ( + - 81 ), 0 ) ) ), - 44 col0
----
31
-44

query I rowsort
SELECT CASE WHEN NOT ( 84 ) BETWEEN - 57 + - 87 / - 1 AND + - 83 + - 25 THEN - 58 * + 42 - + 76 + - + 97 ELSE - 52 END + + - ( + - 61 ) * + 75
----
1966

query I rowsort
SELECT DISTINCT - 88 + - 25 col2
----
-113

query I rowsort
SELECT + 88 * 86 AS col0
----
7568

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT ALL + COUNT( * ) + 32 + - COUNT( * ) - + + 48
----
-16

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL + COUNT ( * ) + 32 + - COUNT ( * ) - + + 48
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT ALL - + SUM( - ( 39 ) ) + + ( - + 0 ) + - + 76
----
-37

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL - + SUM ( - ( 39 ) ) + + ( - + 0 ) + - + 76
----
-37

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

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

query II rowsort
SELECT 56 AS col1, + 59 + - 88 AS col0
----
56
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT COUNT( * ) + ( + 2 )
----
3

skipif mysql # not compatible
query I rowsort label-815
SELECT COUNT ( * ) + ( + 2 )
----
3

query I rowsort
SELECT ALL 4 + ( - 4 ) AS col1
----
0

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

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

query I rowsort
SELECT DISTINCT 74 - + ( 44 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT ALL COUNT( * ) - 15 + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL COUNT ( * ) - 15 + COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-820
SELECT DISTINCT 67 DIV 14 AS col2, - 16 * - 57 * - + COUNT( * )
----
4
-912

skipif mysql # not compatible
query II rowsort label-820
SELECT DISTINCT 67 / 14 AS col2, - 16 * - 57 * - + COUNT ( * )
----
4
-912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-821
SELECT MAX( 19 ) + - ( - + 40 ) - 60 DIV + 87 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-821
SELECT MAX ( 19 ) + - ( - + 40 ) - 60 / + 87 AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-822
SELECT CASE - - 5 WHEN + 70 * - 91 - + COUNT( + + 33 ) * + - COALESCE ( - 53, + + MAX( DISTINCT + 50 ), - 23 / + 51 - + 27 ) * 2 + - CAST( NULL AS SIGNED ) THEN NULL WHEN - COUNT( * ) THEN 28 ELSE - + 31 END - 47 + - 26 + ( + + 81 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-822
SELECT CASE - - 5 WHEN + 70 * - 91 - + COUNT ( + + 33 ) * + - COALESCE ( - 53, + + MAX ( DISTINCT + 50 ), - 23 / + 51 - + 27 ) * 2 + - CAST ( NULL AS INTEGER ) THEN NULL WHEN - COUNT ( * ) THEN 28 ELSE - + 31 END - 47 + - 26 + ( + + 81 ) AS col0
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-823
SELECT - 50, 65 * SUM( 98 ) * + 45 DIV + - 15 + - 60 + - 9 col0
----
-50
-19179

skipif mysql # not compatible
query II rowsort label-823
SELECT - 50, 65 * SUM ( 98 ) * + 45 / + - 15 + - 60 + - 9 col0
----
-50
-19179

query II rowsort
SELECT 67, + 1 AS col1
----
67
1

query II rowsort
SELECT 72, - 91 AS col0
----
72
-91

query I rowsort
SELECT 93 + + - 53 + - - 36 col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT 97 * - COUNT( * ) * 10
----
-970

skipif mysql # not compatible
query I rowsort label-827
SELECT 97 * - COUNT ( * ) * 10
----
-970

onlyif mysql # DIV for integer division: 
query II rowsort label-828
SELECT + 3 + - 81, - 29 + NULLIF ( + 3, 87 ) DIV + + 59 AS col0
----
-78
-29

skipif mysql # not compatible
query II rowsort label-828
SELECT + 3 + - 81, - 29 + NULLIF ( + 3, 87 ) / + + 59 AS col0
----
-78
-29

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

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

query I rowsort
SELECT DISTINCT NULLIF ( + 48, + 79 ) * - 10
----
-480

query I rowsort
SELECT + 60 * - 50
----
-3000

query I rowsort
SELECT - 97 * 2 col1
----
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT SUM( 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-833
SELECT SUM ( 25 ) AS col1
----
25

query I rowsort
SELECT 6 - 34 + - - 58
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-835
SELECT + SUM( + 22 ) - + 75 + + + 4 * + COUNT( * ) DIV + ( - - 76 ) * + 52 + + - 64 - - 57 + 81 * + + 38 AS col0
----
3018

skipif mysql # not compatible
query I rowsort label-835
SELECT + SUM ( + 22 ) - + 75 + + + 4 * + COUNT ( * ) / + ( - - 76 ) * + 52 + + - 64 - - 57 + 81 * + + 38 AS col0
----
3018

query I rowsort
SELECT ALL + - 98 * + 87 AS col2
----
-8526

query I rowsort
SELECT + COALESCE ( - + 98, + + NULLIF ( - 16, - 24 ) ) AS col0
----
-98

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

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL - 90 + - - COUNT ( * ) AS col0
----
-89

query I rowsort
SELECT DISTINCT + - 85 + 72 AS col0
----
-13

query I rowsort
SELECT ALL - - 23 + - 99 + + + 82 col2
----
6

query I rowsort
SELECT ALL - 98 * + 79
----
-7742

query I rowsort
SELECT - 13 - - 11 - 18 AS col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-843
SELECT DISTINCT + 6 + 46 + + 29 * + + 37 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-843
SELECT DISTINCT + 6 + 46 + + 29 * + + 37 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 27 + 33
----
60

query I rowsort
SELECT 36 + - 43 + + 68
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-846
SELECT ALL + 89 - - 5 + + ( + 54 ) * - - COUNT( * ) + + COUNT( * ) - + 8 - - COUNT( * ) * + 69 * + + 24 * - - 49 - - 4 + + - 81 * 55 DIV - 56 + NULLIF ( 41, 43 - + + 12 * - CAST( + + 55 AS DECIMAL ) ) AS col0
----
81409

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL + 89 - - 5 + + ( + 54 ) * - - COUNT ( * ) + + COUNT ( * ) - + 8 - - COUNT ( * ) * + 69 * + + 24 * - - 49 - - 4 + + - 81 * 55 / - 56 + NULLIF ( 41, 43 - + + 12 * - CAST ( + + 55 AS REAL ) ) AS col0
----
81409

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT ALL 26 * - MAX( - - 9 )
----
-234

skipif mysql # not compatible
query I rowsort label-847
SELECT ALL 26 * - MAX ( - - 9 )
----
-234

query I rowsort
SELECT DISTINCT + 62 * + 27 * - 94 * 73
----
-11486988

onlyif mysql # aggregate syntax: 
query II rowsort label-849
SELECT 42 * - 73 AS col2, MIN( DISTINCT 78 )
----
-3066
78

skipif mysql # not compatible
query II rowsort label-849
SELECT 42 * - 73 AS col2, MIN ( DISTINCT 78 )
----
-3066
78

query I rowsort
SELECT ALL + 44 * - 66
----
-2904

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-852
SELECT 58 + - - CAST( - - 62 AS SIGNED )
----
120

skipif mysql # not compatible
query I rowsort label-852
SELECT 58 + - - CAST ( - - 62 AS INTEGER )
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-853
SELECT - 49 + + 46 / 13 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-853
SELECT - 49 + + 46 / 13 / + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 45 * + - ( 8 ) AS col1
----
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-855
SELECT + CASE + COUNT( * ) WHEN - 88 THEN NULL WHEN - 31 + - SUM( ALL + 74 ) THEN - 23 + - + 87 ELSE NULL END - 41 + + - 65 * + MIN( DISTINCT 83 ) / + CAST( NULL AS DECIMAL ), CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-855
SELECT + CASE + COUNT ( * ) WHEN - 88 THEN NULL WHEN - 31 + - SUM ( ALL + 74 ) THEN - 23 + - + 87 ELSE NULL END - 41 + + - 65 * + MIN ( DISTINCT 83 ) / + CAST ( NULL AS REAL ), CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT DISTINCT - MAX( DISTINCT + 97 ) * + 89 * - 33
----
284889

skipif mysql # not compatible
query I rowsort label-856
SELECT DISTINCT - MAX ( DISTINCT + 97 ) * + 89 * - 33
----
284889

query I rowsort
SELECT DISTINCT - 87 + + 4
----
-83

query II rowsort
SELECT + - 49 + - 3 AS col1, 45
----
-52
45

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

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

query II rowsort
SELECT + + 74 + + 9 AS col1, ( - 5 )
----
83
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-861
SELECT SUM( 66 ) AS col0, 3
----
66
3

skipif mysql # not compatible
query II rowsort label-861
SELECT SUM ( 66 ) AS col0, 3
----
66
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-862
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN - 28 * + 82 * + - 69 THEN - + 1 WHEN 24 THEN - COUNT( * ) END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN - 28 * + 82 * + - 69 THEN - + 1 WHEN 24 THEN - COUNT ( * ) END * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT ALL - ( + + COUNT( * ) ) + + 90 + + 13
----
102

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL - ( + + COUNT ( * ) ) + + 90 + + 13
----
102

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

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

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

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

query I rowsort
SELECT DISTINCT - - 20 * + 83 + + ( - 88 )
----
1572

onlyif mysql # aggregate syntax: 
query II rowsort label-867
SELECT NULLIF ( - + COUNT( * ), ( + 65 ) * - 6 + 97 * + + 3 + + - 76 - + 78 * + + 36 - + + MIN( ALL - 46 ) * 75 ) AS col2, 46 AS col1
----
-1
46

skipif mysql # not compatible
query II rowsort label-867
SELECT NULLIF ( - + COUNT ( * ), ( + 65 ) * - 6 + 97 * + + 3 + + - 76 - + 78 * + + 36 - + + MIN ( ALL - 46 ) * 75 ) AS col2, 46 AS col1
----
-1
46

query I rowsort
SELECT - 10 + + 24 / - CASE - + 93 WHEN + 27 / - + AVG ( DISTINCT - + 46 ) THEN - ( - 16 ) WHEN + 0 THEN NULL END * - 66 * - + 49
----
NULL

query I rowsort
SELECT ALL + + ( - - 1 ) * ( + - 25 ) - + + ( - 71 )
----
46

query I rowsort
SELECT + 45 * 5 * - 92
----
-20700

query I rowsort
SELECT - 51 * + - 35
----
1785

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT + 63 + - - 61 + ( + MAX( + + ( 25 ) ) )
----
149

skipif mysql # not compatible
query I rowsort label-872
SELECT + 63 + - - 61 + ( + MAX ( + + ( 25 ) ) )
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT ALL - 82 * - - NULLIF ( + 32, + 71 ) - - - 56 + - COUNT( ALL - 83 )
----
-2681

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL - 82 * - - NULLIF ( + 32, + 71 ) - - - 56 + - COUNT ( ALL - 83 )
----
-2681

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT DISTINCT - 30 * - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT - 30 * - COUNT ( * )
----
30

query I rowsort
SELECT DISTINCT + COALESCE ( + - 66, - 34, - 4 ) col0
----
-66

query II rowsort
SELECT ALL 11 * - 26 - - 10 AS col1, - 61 AS col1
----
-276
-61

query I rowsort
SELECT - 15 * - - 66
----
-990

query I rowsort
SELECT ALL 21 * COALESCE ( + 46, + + 38 ) AS col1
----
966

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-880
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, 30 * - + 69
----
NULL
-2070

skipif mysql # not compatible
query II rowsort label-880
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 30 * - + 69
----
NULL
-2070

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT - ( COUNT( * ) ) + - + 71 + + - 34 + 61 * + - 72 AS col1
----
-4498

skipif mysql # not compatible
query I rowsort label-881
SELECT - ( COUNT ( * ) ) + - + 71 + + - 34 + 61 * + - 72 AS col1
----
-4498

query II rowsort
SELECT DISTINCT + 76 * + + ( 8 ) AS col1, 91 + + + 25 AS col0
----
608
116

onlyif mysql # aggregate syntax: 
query II rowsort label-883
SELECT - MIN( DISTINCT - 0 ) + - - 6 col0, 95 AS col0
----
6
95

skipif mysql # not compatible
query II rowsort label-883
SELECT - MIN ( DISTINCT - 0 ) + - - 6 col0, 95 AS col0
----
6
95

query I rowsort
SELECT ALL + ( - NULLIF ( + 41, - 40 ) )
----
-41

query I rowsort
SELECT - CASE + - 49 WHEN - - 5 THEN NULL WHEN + + 55 THEN - - 39 * + 77 END * - ( - + 49 )
----
NULL

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

skipif mysql # not compatible
query II rowsort label-886
SELECT COUNT ( * ), 39 AS col1
----
1
39

query I rowsort
SELECT - 25 * - ( 65 ) AS col1
----
1625

onlyif mysql # aggregate syntax: 
query II rowsort label-888
SELECT DISTINCT NULLIF ( - + COALESCE ( 39, - 73 + 19, - ( 16 ) - + 58, 44 * 12 ), COUNT( * ) ), + 63 AS col1
----
-39
63

skipif mysql # not compatible
query II rowsort label-888
SELECT DISTINCT NULLIF ( - + COALESCE ( 39, - 73 + 19, - ( 16 ) - + 58, 44 * 12 ), COUNT ( * ) ), + 63 AS col1
----
-39
63

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT ALL + 86 + - COUNT( * ) + + + COUNT( ALL - 53 ) + - 14 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-889
SELECT ALL + 86 + - COUNT ( * ) + + + COUNT ( ALL - 53 ) + - 14 AS col1
----
72

query I rowsort
SELECT - - 39 + + 10
----
49

query I rowsort
SELECT ALL + 69 + 84 AS col0
----
153

query I rowsort
SELECT ALL - 58 + + 74
----
16

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

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

query I rowsort
SELECT - 18 * 26 AS col1
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT DISTINCT + COUNT( DISTINCT 47 ) + + ( - - CASE 24 WHEN - 11 THEN NULL WHEN + 42 * - 45 - + - 49 - + 0 THEN + 68 END ) + + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT + COUNT ( DISTINCT 47 ) + + ( - - CASE 24 WHEN - 11 THEN NULL WHEN + 42 * - 45 - + - 49 - + 0 THEN + 68 END ) + + 52 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 64 * - + 42
----
-2688

query I rowsort
SELECT ALL 84 + - 81 - 24 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT + + COUNT( * ) * COUNT( * ) - 84 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-899
SELECT + + COUNT ( * ) * COUNT ( * ) - 84 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-900
SELECT - COUNT( * ), 10 * - 90 + - COUNT( * ) AS col2
----
-1
-901

skipif mysql # not compatible
query II rowsort label-900
SELECT - COUNT ( * ), 10 * - 90 + - COUNT ( * ) AS col2
----
-1
-901

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-901
SELECT DISTINCT ( + CAST( - 25 AS SIGNED ) ) AS col0, + 37 - - ( + - 49 )
----
-25
-12

skipif mysql # not compatible
query II rowsort label-901
SELECT DISTINCT ( + CAST ( - 25 AS INTEGER ) ) AS col0, + 37 - - ( + - 49 )
----
-25
-12

query I rowsort
SELECT - - 93 + + 83 AS col2
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT + + CASE - - COUNT( DISTINCT - 4 ) WHEN - 10 * - 34 * - 58 * - ( + - ( - - 22 ) ) THEN NULL WHEN + - 29 / - 53 THEN 21 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-903
SELECT + + CASE - - COUNT ( DISTINCT - 4 ) WHEN - 10 * - 34 * - 58 * - ( + - ( - - 22 ) ) THEN NULL WHEN + - 29 / - 53 THEN 21 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT + - 4 AS col2, - 96 AS col2
----
-4
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-905
SELECT COUNT( * ) DIV 42 + 39 + + + 86 DIV - 77 + - ( + 92 ) + 42 * + COUNT( * ) - + 68
----
-80

skipif mysql # not compatible
query I rowsort label-905
SELECT COUNT ( * ) / 42 + 39 + + + 86 / - 77 + - ( + 92 ) + 42 * + COUNT ( * ) - + 68
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT ALL + - COUNT( + 92 )
----
-1

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL + - COUNT ( + 92 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-907
SELECT + ( - CAST( NULL AS DECIMAL ) ) AS col1, 68 + + - 69
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-907
SELECT + ( - CAST ( NULL AS REAL ) ) AS col1, 68 + + - 69
----
NULL
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-909
SELECT ALL 38 DIV 67 * - 78 * - 44 - - 38
----
38

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL 38 / 67 * - 78 * - 44 - - 38
----
38

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

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

query I rowsort
SELECT ALL 80 * - + ( 9 ) * - + 50
----
36000

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT + 73 * - + COUNT( ALL + 70 )
----
-73

skipif mysql # not compatible
query I rowsort label-912
SELECT + 73 * - + COUNT ( ALL + 70 )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-913
SELECT DISTINCT - 99 + - + 12 / + 34 * CASE 6 WHEN + 15 THEN - MIN( ALL - 16 ) WHEN - CAST( 66 AS SIGNED ) / - 59 THEN + - 72 WHEN + 13 + COALESCE ( MIN( DISTINCT + 90 ), + - 49 ) - - - 66 - SUM( - 27 ) + 53 + - - 77 * + - COUNT( * ) * + 82 THEN NULL ELSE NULL END + - 91 + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT - 99 + - + 12 / + 34 * CASE 6 WHEN + 15 THEN - MIN ( ALL - 16 ) WHEN - CAST ( 66 AS INTEGER ) / - 59 THEN + - 72 WHEN + 13 + COALESCE ( MIN ( DISTINCT + 90 ), + - 49 ) - - - 66 - SUM ( - 27 ) + 53 + - - 77 * + - COUNT ( * ) * + 82 THEN NULL ELSE NULL END + - 91 + - 37
----
NULL

query I rowsort
SELECT ALL - 81 + - + 71 AS col2
----
-152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-915
SELECT ALL - NULLIF ( - - ( - 55 ), + 13 ) * - + 79 * 0 DIV COUNT( + ( - 94 ) )
----
0

skipif mysql # not compatible
query I rowsort label-915
SELECT ALL - NULLIF ( - - ( - 55 ), + 13 ) * - + 79 * 0 / COUNT ( + ( - 94 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-916
SELECT 3 DIV - + COUNT( - 79 )
----
-3

skipif mysql # not compatible
query I rowsort label-916
SELECT 3 / - + COUNT ( - 79 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT ALL + + 67 + 85 + - - 78 - COUNT( * ) * - 45 * - 72
----
-3010

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL + + 67 + 85 + - - 78 - COUNT ( * ) * - 45 * - 72
----
-3010

query I rowsort
SELECT ALL - + 4 * + - COALESCE ( + 5, - 67 ) * 19 AS col2
----
380

query II rowsort
SELECT + 49 * + NULLIF ( + - 84, 68 / - 5 ) * - 18 + - 63, 90 AS col0
----
74025
90

query I rowsort
SELECT - 89 + 15 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT COALESCE ( + 64, - 73 + 49, - 15 * MAX( + - 6 ), 26 )
----
64

skipif mysql # not compatible
query I rowsort label-921
SELECT COALESCE ( + 64, - 73 + 49, - 15 * MAX ( + - 6 ), 26 )
----
64

query I rowsort
SELECT ALL + + 91 + - 49 * + 66
----
-3143

query I rowsort
SELECT 12 + - ( - + 84 ) AS col2
----
96

query I rowsort
SELECT COALESCE ( 24, 73, - 2 + - ( + + 28 ) ) AS col0
----
24

query I rowsort
SELECT - 16 + + 4 * - ( 27 ) AS col0
----
-124

query I rowsort
SELECT + 38 - 61 * 14 AS col2
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT ALL + 11 - - COUNT( * ) * ( + 94 ) + - + 59
----
46

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL + 11 - - COUNT ( * ) * ( + 94 ) + - + 59
----
46

query I rowsort
SELECT 60 + + 43 col1
----
103

query I rowsort
SELECT - 88 * 72 + 26
----
-6310

query I rowsort
SELECT - 32 + + 80 + - - 0 AS col2
----
48

query I rowsort
SELECT 50 - 86 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-932
SELECT - COALESCE ( - ( COUNT( * ) ), - + 84 + + 83, - 42 * + - 78 ) + + ( - COALESCE ( - + 38, - 26, + - COUNT( * ) ) ) AS col0, MIN( DISTINCT + + 88 )
----
39
88

skipif mysql # not compatible
query II rowsort label-932
SELECT - COALESCE ( - ( COUNT ( * ) ), - + 84 + + 83, - 42 * + - 78 ) + + ( - COALESCE ( - + 38, - 26, + - COUNT ( * ) ) ) AS col0, MIN ( DISTINCT + + 88 )
----
39
88

onlyif mysql # DIV for integer division: 
query I rowsort label-933
SELECT DISTINCT 69 DIV 5
----
13

skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT 69 / 5
----
13

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

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT ALL 3 * - COUNT( * ) col2
----
-3

skipif mysql # not compatible
query I rowsort label-935
SELECT ALL 3 * - COUNT ( * ) col2
----
-3

query I rowsort
SELECT 42 * - 41
----
-1722

query I rowsort
SELECT 78 * + 30 AS col0
----
2340

query I rowsort
SELECT ( - - 38 ) + 26
----
64

query I rowsort
SELECT ALL 68 * - 92 * - + 67
----
419152

query I rowsort
SELECT ALL 26 + + 22 - + 81 AS col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-941
SELECT SUM( 36 ) * + CAST( 74 AS SIGNED ) + - + ( + - 42 )
----
2706

skipif mysql # not compatible
query I rowsort label-941
SELECT SUM ( 36 ) * + CAST ( 74 AS INTEGER ) + - + ( + - 42 )
----
2706

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT DISTINCT 61 + + ( + COUNT( * ) ) col0
----
62

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT 61 + + ( + COUNT ( * ) ) col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-943
SELECT + 91 AS col2, ( - + SUM( DISTINCT + 81 ) ) AS col0
----
91
-81

skipif mysql # not compatible
query II rowsort label-943
SELECT + 91 AS col2, ( - + SUM ( DISTINCT + 81 ) ) AS col0
----
91
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-944
SELECT ALL 32 + + + 9 DIV - MIN( DISTINCT + 74 ) * 36 + - - 15 * 16 AS col1
----
272

skipif mysql # not compatible
query I rowsort label-944
SELECT ALL 32 + + + 9 / - MIN ( DISTINCT + 74 ) * 36 + - - 15 * 16 AS col1
----
272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-945
SELECT ALL 96 + + COUNT( * ) * + MAX( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL 96 + + COUNT ( * ) * + MAX ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-946
SELECT DISTINCT 25 + + NULLIF ( - 37, + CAST( NULL AS SIGNED ) ) - 28 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-946
SELECT DISTINCT 25 + + NULLIF ( - 37, + CAST ( NULL AS INTEGER ) ) - 28 AS col2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-947
SELECT 3 + - 1 DIV - + COALESCE ( - 64, 15 ) * 83
----
3

skipif mysql # not compatible
query I rowsort label-947
SELECT 3 + - 1 / - + COALESCE ( - 64, 15 ) * 83
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-948
SELECT - 9 AS col1, - 44 DIV + 59
----
-9
0

skipif mysql # not compatible
query II rowsort label-948
SELECT - 9 AS col1, - 44 / + 59
----
-9
0

query I rowsort
SELECT + COALESCE ( - + 16, - 79, - - 5 )
----
-16

query I rowsort
SELECT 56 * 31 + + 93
----
1829

query I rowsort
SELECT - 61 * + + 4 + - 17 + + 40 * 36 * + - 71 * 48
----
-4907781

query I rowsort
SELECT ALL + 76 - - 32
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT ALL NULLIF ( - COUNT( * ), 74 * + 8 * + 2 + - - 74 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL NULLIF ( - COUNT ( * ), 74 * + 8 * + 2 + - - 74 ) AS col2
----
-1

query I rowsort
SELECT ALL + 26 * - ( 3 )
----
-78

query I rowsort
SELECT - 36 + - - 2
----
-34

query I rowsort
SELECT ALL 6 - 44 AS col2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-957
SELECT - CAST( - 30 AS SIGNED ) * + CAST( - + 89 AS SIGNED )
----
-2670

skipif mysql # not compatible
query I rowsort label-957
SELECT - CAST ( - 30 AS INTEGER ) * + CAST ( - + 89 AS INTEGER )
----
-2670

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT - 94 * + + COALESCE ( - 74, COALESCE ( + ( 3 ), + - ( 99 ) ) * SUM( - 8 ) * + COUNT( * ) ) AS col1
----
6956

skipif mysql # not compatible
query I rowsort label-958
SELECT - 94 * + + COALESCE ( - 74, COALESCE ( + ( 3 ), + - ( 99 ) ) * SUM ( - 8 ) * + COUNT ( * ) ) AS col1
----
6956

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-960
SELECT + MIN( DISTINCT - - CAST( NULL AS DECIMAL ) ) / 25 - - 23 + - + 17 col0, - 59 col1
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-960
SELECT + MIN ( DISTINCT - - CAST ( NULL AS REAL ) ) / 25 - - 23 + - + 17 col0, - 59 col1
----
NULL
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT - COUNT( DISTINCT 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-961
SELECT - COUNT ( DISTINCT 73 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-962
SELECT - + ( CASE 45 WHEN + ( 9 ) * - 41 * - + 56 + - 23 + + - 23 * + - CASE - MAX( ALL - + 71 ) WHEN + COUNT( * ) * 65 THEN 71 ELSE NULL END + + 88 + + - ( - 58 ) + - 87 / - + 93 - + - 61 + + - 31 * 61 / + - 55 THEN CAST( NULL AS DECIMAL ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-962
SELECT - + ( CASE 45 WHEN + ( 9 ) * - 41 * - + 56 + - 23 + + - 23 * + - CASE - MAX ( ALL - + 71 ) WHEN + COUNT ( * ) * 65 THEN 71 ELSE NULL END + + 88 + + - ( - 58 ) + - 87 / - + 93 - + - 61 + + - 31 * 61 / + - 55 THEN CAST ( NULL AS REAL ) END )
----
NULL

query II rowsort
SELECT 22, 86 * + 10 AS col1
----
22
860

onlyif mysql # aggregate syntax: 
query II rowsort label-964
SELECT ALL COUNT( * ) col0, ( + 4 ) * - ( - + 51 ) - - - 67 AS col0
----
1
137

skipif mysql # not compatible
query II rowsort label-964
SELECT ALL COUNT ( * ) col0, ( + 4 ) * - ( - + 51 ) - - - 67 AS col0
----
1
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-965
SELECT 36 + + COUNT( * ) * 11 / + CAST( NULL AS SIGNED ) + - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-965
SELECT 36 + + COUNT ( * ) * 11 / + CAST ( NULL AS INTEGER ) + - 47
----
NULL

query I rowsort
SELECT COALESCE ( + - 36, + 22 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT 78 * + + COUNT( - 34 ) col2
----
78

skipif mysql # not compatible
query I rowsort label-967
SELECT 78 * + + COUNT ( - 34 ) col2
----
78

query I rowsort
SELECT DISTINCT 67 * + 42 + - + 51
----
2763

query I rowsort
SELECT + ( + 55 ) * - 44 + - - COALESCE ( + 56, - 68 ) AS col2
----
-2364

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT ALL 42 * + 46 + - COUNT( * )
----
1931

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL 42 * + 46 + - COUNT ( * )
----
1931

onlyif mysql # aggregate syntax: 
query II rowsort label-971
SELECT + COUNT( - 3 ) AS col2, + 90 AS col0
----
1
90

skipif mysql # not compatible
query II rowsort label-971
SELECT + COUNT ( - 3 ) AS col2, + 90 AS col0
----
1
90

query I rowsort
SELECT NULLIF ( 0, - 27 ) AS col1
----
0

query II rowsort
SELECT + 89 AS col0, + 4 AS col2
----
89
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-974
SELECT ALL - 3 * - + 46 + - CASE + - COALESCE ( - + CASE 26 WHEN - CAST( NULL AS SIGNED ) THEN - 25 ELSE NULL END, + ( + 38 ) ) WHEN - + COUNT( * ) / + + 12 THEN - + 32 WHEN + + COUNT( * ) THEN - 9 * 92 / + 13 * - - COUNT( * ) ELSE + - COUNT( * ) + + - 30 + 66 END + 65 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL - 3 * - + 46 + - CASE + - COALESCE ( - + CASE 26 WHEN - CAST ( NULL AS INTEGER ) THEN - 25 ELSE NULL END, + ( + 38 ) ) WHEN - + COUNT ( * ) / + + 12 THEN - + 32 WHEN + + COUNT ( * ) THEN - 9 * 92 / + 13 * - - COUNT ( * ) ELSE + - COUNT ( * ) + + - 30 + 66 END + 65 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 19 * - 68 * 53 * + 45 + - 44 col0
----
-3081464

onlyif mysql # aggregate syntax: 
query II rowsort label-976
SELECT + SUM( + ( - 13 ) ) - 97 AS col1, - 54 * + 68
----
-110
-3672

skipif mysql # not compatible
query II rowsort label-976
SELECT + SUM ( + ( - 13 ) ) - 97 AS col1, - 54 * + 68
----
-110
-3672

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

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

query I rowsort
SELECT + 96 * - - 74
----
7104

query I rowsort
SELECT + 55 - + 58 AS col1
----
-3

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

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

query I rowsort
SELECT - - NULLIF ( - 27, 42 * - 18 ) + - 21
----
-48

query I rowsort
SELECT + - 27 * + 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-983
SELECT DISTINCT + 23, - CASE 88 WHEN + 87 THEN NULL WHEN 2 THEN + - 74 WHEN - 82 + 37 + COUNT( * ) + + 39 / + 54 * + - 64 * - COUNT( * ) THEN NULL END AS col0
----
23
NULL

skipif mysql # not compatible
query II rowsort label-983
SELECT DISTINCT + 23, - CASE 88 WHEN + 87 THEN NULL WHEN 2 THEN + - 74 WHEN - 82 + 37 + COUNT ( * ) + + 39 / + 54 * + - 64 * - COUNT ( * ) THEN NULL END AS col0
----
23
NULL

query I rowsort
SELECT ALL + 46 * + 2 + 7 + 41 AS col1
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-985
SELECT 97 AS col1, MIN( ALL - 87 ) AS col2
----
97
-87

skipif mysql # not compatible
query II rowsort label-985
SELECT 97 AS col1, MIN ( ALL - 87 ) AS col2
----
97
-87

query I rowsort
SELECT ALL + + 20 * 68 AS col2
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT DISTINCT - 77 - MIN( 47 )
----
-124

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT - 77 - MIN ( 47 )
----
-124

onlyif mysql # DIV for integer division: 
query II rowsort label-988
SELECT + + 87, - 29 DIV 5 + - 99 * + 52 + + - 15 * 78 AS col1
----
87
-6323

skipif mysql # not compatible
query II rowsort label-988
SELECT + + 87, - 29 / 5 + - 99 * + 52 + + - 15 * 78 AS col1
----
87
-6323

onlyif mysql # aggregate syntax: 
query II rowsort label-989
SELECT ALL 60 AS col0, - 96 + - + 64 + + COUNT( * )
----
60
-159

skipif mysql # not compatible
query II rowsort label-989
SELECT ALL 60 AS col0, - 96 + - + 64 + + COUNT ( * )
----
60
-159

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

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

query II rowsort
SELECT - 64 + + - 86, 20 + - 10 AS col0
----
-150
10

onlyif mysql # DIV for integer division: 
query I rowsort label-992
SELECT + 91 * 19 + - 28 DIV - COALESCE ( + 42, - 79 ) col1
----
1729

skipif mysql # not compatible
query I rowsort label-992
SELECT + 91 * 19 + - 28 / - COALESCE ( + 42, - 79 ) col1
----
1729

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

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

query I rowsort
SELECT + - 14 + - 70
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-995
SELECT DISTINCT 40 DIV 29 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT 40 / 29 AS col2
----
1

query I rowsort
SELECT + - 64 + + 20 * 5 AS col2
----
36

query I rowsort
SELECT DISTINCT + CASE + + 34 WHEN + + 97 - + 80 * - 46 * 51 THEN 50 * + 24 WHEN - + 12 * + 55 THEN - 3 WHEN + 66 THEN + + 65 + + 63 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-998
SELECT - - 82, + COUNT( ALL - 95 ) AS col1
----
82
1

skipif mysql # not compatible
query II rowsort label-998
SELECT - - 82, + COUNT ( ALL - 95 ) AS col1
----
82
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-999
SELECT ALL + CASE 68 WHEN COUNT( * ) THEN + 91 WHEN + ( - COALESCE ( + COUNT( * ), - MIN( DISTINCT 82 ) * - 92, - 22 + + 52 ) ) THEN NULL WHEN + - 95 THEN NULL ELSE NULL END + - COALESCE ( - - AVG ( + ( - 28 ) ), + 64 ) * - + CASE + - 1 WHEN ( - CASE 51 WHEN 31 THEN - + 55 END ) THEN NULL WHEN + 8 * + 10 - + 19 * CAST( - + COUNT( * ) AS SIGNED ) THEN - 55 * + + 64 WHEN - - 33 + + 10 THEN NULL ELSE - 30 * 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL + CASE 68 WHEN COUNT ( * ) THEN + 91 WHEN + ( - COALESCE ( + COUNT ( * ), - MIN ( DISTINCT 82 ) * - 92, - 22 + + 52 ) ) THEN NULL WHEN + - 95 THEN NULL ELSE NULL END + - COALESCE ( - - AVG ( + ( - 28 ) ), + 64 ) * - + CASE + - 1 WHEN ( - CASE 51 WHEN 31 THEN - + 55 END ) THEN NULL WHEN + 8 * + 10 - + 19 * CAST ( - + COUNT ( * ) AS INTEGER ) THEN - 55 * + + 64 WHEN - - 33 + + 10 THEN NULL ELSE - 30 * 69 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1000
SELECT + 50 + 60 * CAST( + 18 AS SIGNED ) * - + 46
----
-49630

skipif mysql # not compatible
query I rowsort label-1000
SELECT + 50 + 60 * CAST ( + 18 AS INTEGER ) * - + 46
----
-49630

query I rowsort
SELECT + 63 * - - 68
----
4284

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT - 69 + + - ( + 85 ) + COUNT( * )
----
-153

skipif mysql # not compatible
query I rowsort label-1002
SELECT - 69 + + - ( + 85 ) + COUNT ( * )
----
-153

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

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

query I rowsort
SELECT ALL 51 + 13 AS col0
----
64

query I rowsort
SELECT + 33 + + 49
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1006
SELECT - 39 - + 86 DIV 47
----
-40

skipif mysql # not compatible
query I rowsort label-1006
SELECT - 39 - + 86 / 47
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1007
SELECT ALL - 58 DIV - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1007
SELECT ALL - 58 / - 88 AS col1
----
0

query II rowsort
SELECT DISTINCT 56 + 48 col2, 49 AS col2
----
104
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1009
SELECT DISTINCT 75 DIV 24 + - 41
----
-38

skipif mysql # not compatible
query I rowsort label-1009
SELECT DISTINCT 75 / 24 + - 41
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1010
SELECT ALL + 75 DIV - 84 + - 67 DIV COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL + 75 / - 84 + - 67 / COUNT ( * )
----
-67

query I rowsort
SELECT + 38 * - - 18 * + 53 + - 51
----
36201

query I rowsort
SELECT ALL + COALESCE ( + 36, 80 - + 26 * - 44 + 77 ) AS col0
----
36

query I rowsort
SELECT - 31 + - - 94
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1014
SELECT ALL - CASE - COUNT( * ) WHEN + 35 * + 11 DIV + - CAST( NULL AS SIGNED ) THEN - + 59 * 39 + + + 77 + - 61 * - ( - - COUNT( ALL + 60 ) ) * - 5 ELSE 97 END DIV COALESCE ( - 58, - + 42 ) + 5 - 56 + 88 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL - CASE - COUNT ( * ) WHEN + 35 * + 11 / + - CAST ( NULL AS INTEGER ) THEN - + 59 * 39 + + + 77 + - 61 * - ( - - COUNT ( ALL + 60 ) ) * - 5 ELSE 97 END / COALESCE ( - 58, - + 42 ) + 5 - 56 + 88 AS col2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1015
SELECT - CAST( NULL AS SIGNED ) * 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1015
SELECT - CAST ( NULL AS INTEGER ) * 5
----
NULL

query I rowsort
SELECT - 49 * + + 35
----
-1715

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1017
SELECT - 60 + - COUNT( * ) AS col2, + COUNT( 50 ) * CAST( NULL AS DECIMAL ) * + + 40 * + COUNT( * )
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-1017
SELECT - 60 + - COUNT ( * ) AS col2, + COUNT ( 50 ) * CAST ( NULL AS REAL ) * + + 40 * + COUNT ( * )
----
-61
NULL

query II rowsort
SELECT DISTINCT + 65 * + 21 - 84 col1, 29 AS col0
----
1281
29

query I rowsort
SELECT - 18 * + + 57 * - 36 * + 52 + + 20 AS col2
----
1920692

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

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

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

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

query I rowsort
SELECT - - 79 + - ( + 28 ) * + CASE - 11 WHEN NULLIF ( + ( + 65 ), - + 98 + 5 ) THEN - 93 * + + 4 * - CASE WHEN NOT NULL IS NOT NULL THEN - 40 END * + + 89 * 74 END * 67 + - + 14 * + + 11 * - + 6 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT - - 52 * + 84 + + + 38 * + - 75 + + - COUNT( DISTINCT + - 38 ) AS col0
----
1517

skipif mysql # not compatible
query I rowsort label-1023
SELECT - - 52 * + 84 + + + 38 * + - 75 + + - COUNT ( DISTINCT + - 38 ) AS col0
----
1517

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

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL - - 30 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 85 * - 60 AS col1
----
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT COUNT( * ) * + - MAX( + - 98 ) + + + 65 + - COUNT( * ) * + 20 AS col0
----
143

skipif mysql # not compatible
query I rowsort label-1026
SELECT COUNT ( * ) * + - MAX ( + - 98 ) + + + 65 + - COUNT ( * ) * + 20 AS col0
----
143

query I rowsort
SELECT DISTINCT 24 * 87 AS col0
----
2088

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL 28 * - COUNT( * ) * 86 + - MAX( ALL + + 41 ) AS col2
----
-2449

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL 28 * - COUNT ( * ) * 86 + - MAX ( ALL + + 41 ) AS col2
----
-2449

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1029
SELECT DISTINCT - COUNT( * ) * - 95 DIV + + 32, 46 AS col2
----
2
46

skipif mysql # not compatible
query II rowsort label-1029
SELECT DISTINCT - COUNT ( * ) * - 95 / + + 32, 46 AS col2
----
2
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1030
SELECT ALL + 1 * 50 + + - 39 + + ( - 29 ) * + ( - 69 ) + + - COUNT( * ) DIV + + 91 * + 73 + - COUNT( * )
----
2011

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL + 1 * 50 + + - 39 + + ( - 29 ) * + ( - 69 ) + + - COUNT ( * ) / + + 91 * + 73 + - COUNT ( * )
----
2011

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1032
SELECT DISTINCT 13 + - 78 * + - CAST( - 15 AS SIGNED ) AS col1
----
-1157

skipif mysql # not compatible
query I rowsort label-1032
SELECT DISTINCT 13 + - 78 * + - CAST ( - 15 AS INTEGER ) AS col1
----
-1157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1033
SELECT ALL 51 + - ( + 33 ) DIV + - MIN( - 59 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL 51 + - ( + 33 ) / + - MIN ( - 59 ) AS col2
----
51

query I rowsort
SELECT 52 * + 10 AS col0
----
520

onlyif mysql # DIV for integer division: 
query I rowsort label-1035
SELECT ALL 3 DIV - 4 * 58 * - 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL 3 / - 4 * 58 * - 38 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT ALL 15 + 38 - 52 + + COUNT( * ) * + 67 + + + 11 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL 15 + 38 - 52 + + COUNT ( * ) * + 67 + + + 11 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT ALL COUNT( + - 54 ) + + + ( - - COALESCE ( - 5, + + 43 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL COUNT ( + - 54 ) + + + ( - - COALESCE ( - 5, + + 43 ) )
----
-4

query I rowsort
SELECT 96 * + ( + 75 ) * + 7 * - 22
----
-1108800

query I rowsort
SELECT 67 * - 60
----
-4020

query I rowsort
SELECT ALL 37 - - - 32 + + - 64 col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1041
SELECT - ( + 34 ) * + + 17 + + COUNT( * ) + - 92 + + - 1 * + COUNT( * ) * + CAST( - - 49 AS SIGNED ) + - MAX( + - 89 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1041
SELECT - ( + 34 ) * + + 17 + + COUNT ( * ) + - 92 + + - 1 * + COUNT ( * ) * + CAST ( - - 49 AS INTEGER ) + - MAX ( + - 89 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 97 AS col1, 70 + + 63 + + ( + 36 ) AS col0
----
97
169

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

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT - MAX ( DISTINCT - - 42 )
----
-42

query I rowsort
SELECT DISTINCT 45 - + 85 AS col2
----
-40

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1046
SELECT 71 - - 41 * + CAST( NULL AS SIGNED ) AS col1, - 97
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-1046
SELECT 71 - - 41 * + CAST ( NULL AS INTEGER ) AS col1, - 97
----
NULL
-97

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1048
SELECT DISTINCT - 36 * + 85 * - 70 * - 38 + CASE - + 36 WHEN - 86 + - + ( - + MIN( - 62 ) ) THEN NULL WHEN 67 THEN NULLIF ( - 64, + 87 ) * MIN( ALL - 79 ) - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT - 36 * + 85 * - 70 * - 38 + CASE - + 36 WHEN - 86 + - + ( - + MIN ( - 62 ) ) THEN NULL WHEN 67 THEN NULLIF ( - 64, + 87 ) * MIN ( ALL - 79 ) - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1049
SELECT + 56 col1, COALESCE ( - - 34, - 46 * MIN( - 63 ), 81, 94 ) DIV + 47
----
56
0

skipif mysql # not compatible
query II rowsort label-1049
SELECT + 56 col1, COALESCE ( - - 34, - 46 * MIN ( - 63 ), 81, 94 ) / + 47
----
56
0

query II rowsort
SELECT DISTINCT - + 39 AS col2, + 40
----
-39
40

query I rowsort
SELECT ALL - + 77 * 40 col1
----
-3080

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

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

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

skipif mysql # not compatible
query II rowsort label-1053
SELECT 50 col0, + COUNT ( 0 )
----
50
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1054
SELECT ALL + + 65 + CASE + 99 WHEN + + 98 + + NULLIF ( + 69, 94 ) THEN NULL ELSE 19 * - COUNT( * ) + + 18 DIV - - 42 + + + 24 END + 32 + + 6 + + 47 AS col2
----
155

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL + + 65 + CASE + 99 WHEN + + 98 + + NULLIF ( + 69, 94 ) THEN NULL ELSE 19 * - COUNT ( * ) + + 18 / - - 42 + + + 24 END + 32 + + 6 + + 47 AS col2
----
155

query I rowsort
SELECT + 5 - + - 22 AS col1
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-1056
SELECT + - 19, COUNT( * ) * + COUNT( ALL - 51 ) * 16 AS col2
----
-19
16

skipif mysql # not compatible
query II rowsort label-1056
SELECT + - 19, COUNT ( * ) * + COUNT ( ALL - 51 ) * 16 AS col2
----
-19
16

query II rowsort
SELECT + CASE - 20 WHEN + + 49 THEN 76 END AS col1, 40 AS col1
----
NULL
40

query I rowsort
SELECT ( - + 50 ) + 28 AS col1
----
-22

query II rowsort
SELECT - + 96, + 96 * - 31 AS col2
----
-96
-2976

query I rowsort
SELECT ALL + 51 + 72 col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT - 71 + - - COUNT( * ) col2
----
-70

skipif mysql # not compatible
query I rowsort label-1061
SELECT - 71 + - - COUNT ( * ) col2
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1062
SELECT 29 + COUNT( * ) * + + ( - 52 ) * + 64 * - 4 - - + 84 DIV 64 * - + 27 AS col2
----
13314

skipif mysql # not compatible
query I rowsort label-1062
SELECT 29 + COUNT ( * ) * + + ( - 52 ) * + 64 * - 4 - - + 84 / 64 * - + 27 AS col2
----
13314

onlyif mysql # DIV for integer division: 
query I rowsort label-1063
SELECT DISTINCT + - 60 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT + - 60 / 94
----
0

query I rowsort
SELECT 62 + - 9 col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT ALL - COUNT( * ) + 2 + + + 3 * - - 92
----
277

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL - COUNT ( * ) + 2 + + + 3 * - - 92
----
277

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT ALL 4 * - COALESCE ( 15, 66 * 49 + + MAX( - ( + - 59 ) ) * - 81 * - 33 ) * - + 66 + - 1 AS col2
----
3959

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL 4 * - COALESCE ( 15, 66 * 49 + + MAX ( - ( + - 59 ) ) * - 81 * - 33 ) * - + 66 + - 1 AS col2
----
3959

onlyif mysql # aggregate syntax: 
query II rowsort label-1067
SELECT 71 + 46 AS col1, COUNT( * )
----
117
1

skipif mysql # not compatible
query II rowsort label-1067
SELECT 71 + 46 AS col1, COUNT ( * )
----
117
1

query I rowsort
SELECT ALL + 67 + COALESCE ( - 57, 79 ) - - 86 + + + 45 * 12
----
636

query I rowsort
SELECT 87 + - + ( - ( 58 ) ) + + - 72 col1
----
73

query I rowsort
SELECT ALL - 95 * + 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT DISTINCT MAX( - 53 ) col2
----
-53

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT MAX ( - 53 ) col2
----
-53

query II rowsort
SELECT ALL 61 - - - NULLIF ( - 19, 46 ) AS col0, - 4 + 57
----
80
53

query I rowsort
SELECT ( 19 ) + 14
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT COUNT( * ) + 72 + 28 + 44
----
145

skipif mysql # not compatible
query I rowsort label-1074
SELECT COUNT ( * ) + 72 + 28 + 44
----
145

query I rowsort
SELECT ALL - 68 - ( 74 ) * 71 + + 60 col2
----
-5262

query I rowsort
SELECT 2 * 44 AS col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1077
SELECT DISTINCT COUNT( * ) DIV 21 DIV - 36 * COUNT( DISTINCT + 90 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT COUNT ( * ) / 21 / - 36 * COUNT ( DISTINCT + 90 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT COUNT( * ) * + 41 * + + 52
----
2132

skipif mysql # not compatible
query I rowsort label-1078
SELECT COUNT ( * ) * + 41 * + + 52
----
2132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1079
SELECT COUNT( * ) DIV + 32 * + + 31 * + + 85 * + - CAST( - - 89 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1079
SELECT COUNT ( * ) / + 32 * + + 31 * + + 85 * + - CAST ( - - 89 AS INTEGER )
----
0

query I rowsort
SELECT ALL 61 * - + ( - - 53 )
----
-3233

onlyif mysql # DIV for integer division: 
query I rowsort label-1081
SELECT - 31 DIV - 98 * - 90
----
0

skipif mysql # not compatible
query I rowsort label-1081
SELECT - 31 / - 98 * - 90
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1082
SELECT 16 DIV CAST( + 84 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1082
SELECT 16 / CAST ( + 84 AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1083
SELECT DISTINCT - + CAST( - COUNT( * ) AS SIGNED ) AS col1, - 2 + + 49
----
1
47

skipif mysql # not compatible
query II rowsort label-1083
SELECT DISTINCT - + CAST ( - COUNT ( * ) AS INTEGER ) AS col1, - 2 + + 49
----
1
47

query I rowsort
SELECT + 53 + + 36 AS col2
----
89

query I rowsort
SELECT DISTINCT + 65 * - 30 + 92 AS col1
----
-1858

query I rowsort
SELECT ALL 27 * + 68
----
1836

query I rowsort
SELECT DISTINCT + + 13 + + 74 - 88
----
-1

query I rowsort
SELECT + NULLIF ( - 86, 43 )
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1089
SELECT ALL + - 62 + - 49 + 21 DIV COUNT( DISTINCT - 44 )
----
-90

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL + - 62 + - 49 + 21 / COUNT ( DISTINCT - 44 )
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-1090
SELECT DISTINCT + COUNT( * ) + 97 AS col2, COUNT( * )
----
98
1

skipif mysql # not compatible
query II rowsort label-1090
SELECT DISTINCT + COUNT ( * ) + 97 AS col2, COUNT ( * )
----
98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT ALL 86 + + 93 + + - CASE 36 WHEN 9 + + 12 * AVG ( + 26 ) THEN - COUNT( DISTINCT + + 43 ) - + + 69 ELSE 47 * 98 END AS col2
----
-4427

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL 86 + + 93 + + - CASE 36 WHEN 9 + + 12 * AVG ( + 26 ) THEN - COUNT ( DISTINCT + + 43 ) - + + 69 ELSE 47 * 98 END AS col2
----
-4427

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT + + COUNT( * ) * + 96 * - 9 col1
----
-864

skipif mysql # not compatible
query I rowsort label-1093
SELECT + + COUNT ( * ) * + 96 * - 9 col1
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT - COALESCE ( + 62, - 26 + - 2, - + 70 * - + 44 * - COUNT( * ) + COUNT( DISTINCT - + 5 ) + 33 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-1094
SELECT - COALESCE ( + 62, - 26 + - 2, - + 70 * - + 44 * - COUNT ( * ) + COUNT ( DISTINCT - + 5 ) + 33 ) AS col1
----
-62

query I rowsort
SELECT ALL - 99 - 44 * + 71 col0
----
-3223

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT ALL + 72 * + - 79 * + MAX( ALL - 53 ) * COALESCE ( + 71, COUNT( * ) * + 6 ) + - 60 * - - 45
----
21401244

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL + 72 * + - 79 * + MAX ( ALL - 53 ) * COALESCE ( + 71, COUNT ( * ) * + 6 ) + - 60 * - - 45
----
21401244

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1098
SELECT - ( + + COUNT( * ) ) DIV - + ( NULLIF ( - 72, + COUNT( * ) ) ) * - 98
----
0

skipif mysql # not compatible
query I rowsort label-1098
SELECT - ( + + COUNT ( * ) ) / - + ( NULLIF ( - 72, + COUNT ( * ) ) ) * - 98
----
0

query I rowsort
SELECT + 50 * 97
----
4850

query I rowsort
SELECT DISTINCT COALESCE ( 30, + + 5 ) AS col1
----
30

query I rowsort
SELECT ALL + 9 * - 21 * + + 21
----
-3969

onlyif mysql # aggregate syntax: 
query II rowsort label-1102
SELECT DISTINCT COUNT( * ), + 28 - - 82 AS col0
----
1
110

skipif mysql # not compatible
query II rowsort label-1102
SELECT DISTINCT COUNT ( * ), + 28 - - 82 AS col0
----
1
110

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT DISTINCT + MAX( DISTINCT + 79 ) * 84 * + 56
----
371616

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT + MAX ( DISTINCT + 79 ) * 84 * + 56
----
371616

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT ALL COUNT( * ) * 7 * 31 AS col1
----
217

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL COUNT ( * ) * 7 * 31 AS col1
----
217

query I rowsort
SELECT - 14 * + ( 47 ) AS col2
----
-658

query I rowsort
SELECT ALL NULLIF ( + 74, - 16 )
----
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT - CASE COUNT( * ) WHEN 51 + + 42 THEN + + 49 WHEN - 71 THEN + 25 END + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-1108
SELECT - CASE COUNT ( * ) WHEN 51 + + 42 THEN + + 49 WHEN - 71 THEN + 25 END + - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT - 78 * + COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-1109
SELECT - 78 * + COUNT ( * ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-1110
SELECT 62 col0, COUNT( ALL - - 23 ) - 24 AS col2
----
62
-23

skipif mysql # not compatible
query II rowsort label-1110
SELECT 62 col0, COUNT ( ALL - - 23 ) - 24 AS col2
----
62
-23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1111
SELECT + 89 * - + 22 + + + 1 DIV - COALESCE ( 36, CAST( NULL AS SIGNED ) + - 4 )
----
-1958

skipif mysql # not compatible
query I rowsort label-1111
SELECT + 89 * - + 22 + + + 1 / - COALESCE ( 36, CAST ( NULL AS INTEGER ) + - 4 )
----
-1958

query I rowsort
SELECT - - 47 + - + 14 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT ALL + CASE + 65 WHEN + 37 - - + 28 + + 31 THEN NULL WHEN - + CASE + - 65 WHEN + - 81 THEN COUNT( * ) END + - + 14 THEN - 54 * + 86 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL + CASE + 65 WHEN + 37 - - + 28 + + 31 THEN NULL WHEN - + CASE + - 65 WHEN + - 81 THEN COUNT ( * ) END + - + 14 THEN - 54 * + 86 END AS col1
----
NULL

query I rowsort
SELECT - + 31 * + 71 AS col1
----
-2201

query I rowsort
SELECT DISTINCT + 10 * 56 + + 61
----
621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1116
SELECT ALL + + CAST( NULL AS SIGNED ) AS col1, CASE COALESCE ( - - 80, - 35 / + COUNT( * ), - 71, + - 41 ) WHEN 79 THEN - + NULLIF ( 8, - NULLIF ( + - ( + 8 ), 20 ) ) * - CAST( NULL AS SIGNED ) WHEN - 66 THEN NULL ELSE NULL END - + 31, - COUNT( * ) AS col1
----
NULL
NULL
-1

skipif mysql # not compatible
query III rowsort label-1116
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col1, CASE COALESCE ( - - 80, - 35 / + COUNT ( * ), - 71, + - 41 ) WHEN 79 THEN - + NULLIF ( 8, - NULLIF ( + - ( + 8 ), 20 ) ) * - CAST ( NULL AS INTEGER ) WHEN - 66 THEN NULL ELSE NULL END - + 31, - COUNT ( * ) AS col1
----
NULL
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT - + 25 * - - COUNT( ALL - 90 ) + + ( + ( + 54 ) ) * + 77
----
4133

skipif mysql # not compatible
query I rowsort label-1117
SELECT - + 25 * - - COUNT ( ALL - 90 ) + + ( + ( + 54 ) ) * + 77
----
4133

query II rowsort
SELECT ALL + ( - + 78 ) * + 38 AS col1, 95 AS col1
----
-2964
95

query I rowsort
SELECT ALL + 60 * - + 83 + - ( + 97 )
----
-5077

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1120
SELECT DISTINCT - 53 * + - 54 * - 45 + - MIN( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT - 53 * + - 54 * - 45 + - MIN ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 98 * - 89 + 35
----
-8687

query II rowsort
SELECT + + 87 col2, + 85
----
87
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1123
SELECT DISTINCT + + 87 * - COUNT( * ) + 28 - - 42 - + CAST( 51 AS SIGNED ) + + COUNT( * ) DIV 34 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-1123
SELECT DISTINCT + + 87 * - COUNT ( * ) + 28 - - 42 - + CAST ( 51 AS INTEGER ) + + COUNT ( * ) / 34 AS col2
----
-68

query I rowsort
SELECT + 5 + 74 AS col1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1125
SELECT ALL + 74 * 69 + - 15 DIV + 50
----
5106

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL + 74 * 69 + - 15 / + 50
----
5106

query I rowsort
SELECT DISTINCT 79 * + + 96 AS col1
----
7584

query I rowsort
SELECT + - 65 * + 41
----
-2665

query I rowsort
SELECT + - 96 + + 66 col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1129
SELECT DISTINCT ( - 35 ) * CAST( NULL AS SIGNED ) * + - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT ( - 35 ) * CAST ( NULL AS INTEGER ) * + - 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT ALL 5 * - 45 - + SUM( ALL - + 37 )
----
-188

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL 5 * - 45 - + SUM ( ALL - + 37 )
----
-188

query I rowsort
SELECT + 94 * + 4 AS col2
----
376

query II rowsort
SELECT ALL + 49 AS col1, 98
----
49
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT + MIN( 99 ) + + 66
----
165

skipif mysql # not compatible
query I rowsort label-1133
SELECT + MIN ( 99 ) + + 66
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1134
SELECT ALL ( CASE + CAST( - 95 AS SIGNED ) WHEN + 32 + 26 THEN + 91 WHEN + - 70 THEN + 77 END ) * + 51 - + COUNT( * ) col1, - 78 * + 99
----
NULL
-7722

skipif mysql # not compatible
query II rowsort label-1134
SELECT ALL ( CASE + CAST ( - 95 AS INTEGER ) WHEN + 32 + 26 THEN + 91 WHEN + - 70 THEN + 77 END ) * + 51 - + COUNT ( * ) col1, - 78 * + 99
----
NULL
-7722

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT + ( + - 43 ) + - MAX( ALL - 6 ) + - 20
----
-57

skipif mysql # not compatible
query I rowsort label-1135
SELECT + ( + - 43 ) + - MAX ( ALL - 6 ) + - 20
----
-57

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

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

query I rowsort
SELECT ALL COALESCE ( - ( - + 92 ), - 30 * 17 * + + 3 - 92 + ( + 51 ) - 71, - + 88, + 51 ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-1138
SELECT + 20 + + + COUNT( * ) * + ( - - COUNT( * ) ) AS col0, + 51
----
21
51

skipif mysql # not compatible
query II rowsort label-1138
SELECT + 20 + + + COUNT ( * ) * + ( - - COUNT ( * ) ) AS col0, + 51
----
21
51

query II rowsort
SELECT DISTINCT 85 * + - 77, NULLIF ( - NULLIF ( + 72, - + 87 ), 47 * - 82 ) AS col0
----
-6545
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-1140
SELECT - 14 DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-1140
SELECT - 14 / - 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT DISTINCT COUNT( * ) * - ( - + 18 ) col2
----
18

skipif mysql # not compatible
query I rowsort label-1141
SELECT DISTINCT COUNT ( * ) * - ( - + 18 ) col2
----
18

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

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

query I rowsort
SELECT DISTINCT NULLIF ( - 11, 70 ) * - 2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT - MIN( - 16 ) + + - 85
----
-69

skipif mysql # not compatible
query I rowsort label-1144
SELECT - MIN ( - 16 ) + + - 85
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT ALL CASE 52 WHEN - 52 THEN 31 + + SUM( - 85 ) WHEN - 88 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL CASE 52 WHEN - 52 THEN 31 + + SUM ( - 85 ) WHEN - 88 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1146
SELECT - CAST( + 74 AS SIGNED ), - 35 AS col1
----
-74
-35

skipif mysql # not compatible
query II rowsort label-1146
SELECT - CAST ( + 74 AS INTEGER ), - 35 AS col1
----
-74
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT - 43 + + + 10 * - COUNT( * ) + + 93 col2
----
40

skipif mysql # not compatible
query I rowsort label-1147
SELECT - 43 + + + 10 * - COUNT ( * ) + + 93 col2
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-1148
SELECT 0 AS col0, - 95 DIV + 68 AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-1148
SELECT 0 AS col0, - 95 / + 68 AS col1
----
0
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1149
SELECT - 30 * + ( - MAX( + - 69 ) ) AS col0, + 0
----
-2070
0

skipif mysql # not compatible
query II rowsort label-1149
SELECT - 30 * + ( - MAX ( + - 69 ) ) AS col0, + 0
----
-2070
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT ALL + COUNT( * ) + + 70 - + 4 * + - 3 col2
----
83

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL + COUNT ( * ) + + 70 - + 4 * + - 3 col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1151
SELECT DISTINCT - + 4 DIV - + 63 * COUNT( ALL + 85 ) * + CAST( + 12 AS SIGNED ) + - 25 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT - + 4 / - + 63 * COUNT ( ALL + 85 ) * + CAST ( + 12 AS INTEGER ) + - 25 AS col1
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1152
SELECT ALL 71 DIV + + COUNT( * ) + + COALESCE ( + 62, - ( - COALESCE ( 37, 32, + 76 DIV - 20 ) ) + + 65, - + 36 * + 16 ) * + MIN( - - 94 ) * - - 98 + - ( 49 ) + - 41 + + 78 AS col0
----
571203

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL 71 / + + COUNT ( * ) + + COALESCE ( + 62, - ( - COALESCE ( 37, 32, + 76 / - 20 ) ) + + 65, - + 36 * + 16 ) * + MIN ( - - 94 ) * - - 98 + - ( 49 ) + - 41 + + 78 AS col0
----
571203

onlyif mysql # aggregate syntax: 
query II rowsort label-1153
SELECT 32, - 54 + + + 93 + - - NULLIF ( + + 10, 87 * + COUNT( * ) + - 73 ) AS col1
----
32
49

skipif mysql # not compatible
query II rowsort label-1153
SELECT 32, - 54 + + + 93 + - - NULLIF ( + + 10, 87 * + COUNT ( * ) + - 73 ) AS col1
----
32
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1154
SELECT ALL - 5 DIV - + 47 + + 14 + - 4 DIV - 22 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL - 5 / - + 47 + + 14 + - 4 / - 22 AS col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-1155
SELECT DISTINCT - 70 DIV 72 * - 17 * + + 20 + - 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-1155
SELECT DISTINCT - 70 / 72 * - 17 * + + 20 + - 98 AS col2
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1156
SELECT DISTINCT - 63 / CAST( 65 AS SIGNED ) - - ( 20 ) * - 80 + - 75 + - CASE - + 57 WHEN + 56 THEN NULL WHEN + - 81 THEN - 46 + + - 28 + NULLIF ( - - 50, + + 64 ) / - 89 WHEN - 21 / + + 52 * + + ( - 90 ) THEN COUNT( - 37 ) * + + 95 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1156
SELECT DISTINCT - 63 / CAST ( 65 AS INTEGER ) - - ( 20 ) * - 80 + - 75 + - CASE - + 57 WHEN + 56 THEN NULL WHEN + - 81 THEN - 46 + + - 28 + NULLIF ( - - 50, + + 64 ) / - 89 WHEN - 21 / + + 52 * + + ( - 90 ) THEN COUNT ( - 37 ) * + + 95 END AS col0
----
NULL

query I rowsort
SELECT + + COALESCE ( + - 27, 13 ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT COUNT( * ) * + + ( 38 ) - - 69
----
107

skipif mysql # not compatible
query I rowsort label-1158
SELECT COUNT ( * ) * + + ( 38 ) - - 69
----
107

query II rowsort
SELECT 75 AS col2, 87
----
75
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT 0 * + 94 * + 40 - - MIN( ALL - + 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-1160
SELECT 0 * + 94 * + 40 - - MIN ( ALL - + 79 ) AS col1
----
-79

query II rowsort
SELECT ALL - - 25, 57 col0
----
25
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1162
SELECT DISTINCT - - 52 AS col0, - NULLIF ( + 97, + NULLIF ( ( + 70 ), - - 91 + - NULLIF ( - 15, + 78 + - AVG ( DISTINCT ( - COALESCE ( - + 92, 27 ) ) ) + - 13 * + 40 ) ) ) * + + 47 - - - 68 + - - CASE - - CASE 80 WHEN COUNT( * ) THEN + + NULLIF ( 18, + - COUNT( * ) - + COUNT( DISTINCT + 78 ) ) WHEN + 57 THEN NULL END WHEN - SUM( DISTINCT 6 ) - 34 + - - 96 THEN + 51 ELSE NULL END + - + 53 * - COALESCE ( - 98, 29 + + - 81 + - - 52 * + + 85 + + 54 ) + - CAST( NULL AS SIGNED )
----
52
NULL

skipif mysql # not compatible
query II rowsort label-1162
SELECT DISTINCT - - 52 AS col0, - NULLIF ( + 97, + NULLIF ( ( + 70 ), - - 91 + - NULLIF ( - 15, + 78 + - AVG ( DISTINCT ( - COALESCE ( - + 92, 27 ) ) ) + - 13 * + 40 ) ) ) * + + 47 - - - 68 + - - CASE - - CASE 80 WHEN COUNT ( * ) THEN + + NULLIF ( 18, + - COUNT ( * ) - + COUNT ( DISTINCT + 78 ) ) WHEN + 57 THEN NULL END WHEN - SUM ( DISTINCT 6 ) - 34 + - - 96 THEN + 51 ELSE NULL END + - + 53 * - COALESCE ( - 98, 29 + + - 81 + - - 52 * + + 85 + + 54 ) + - CAST ( NULL AS INTEGER )
----
52
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1163
SELECT DISTINCT - + 57, 10 + - + 42 - + + CAST( - 67 AS SIGNED ) DIV - - 79 AS col1
----
-57
-32

skipif mysql # not compatible
query II rowsort label-1163
SELECT DISTINCT - + 57, 10 + - + 42 - + + CAST ( - 67 AS INTEGER ) / - - 79 AS col1
----
-57
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1164
SELECT + COUNT( * ) + - 14 * + 52 - 94 DIV + 17 + - 6
----
-738

skipif mysql # not compatible
query I rowsort label-1164
SELECT + COUNT ( * ) + - 14 * + 52 - 94 / + 17 + - 6
----
-738

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1165
SELECT ALL 86 DIV MAX( + 97 ) DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL 86 / MAX ( + 97 ) / - 62
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1166
SELECT COALESCE ( + - COUNT( * ), - - 37 ) + 10 + - 8 DIV 28 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-1166
SELECT COALESCE ( + - COUNT ( * ), - - 37 ) + 10 + - 8 / 28 AS col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1167
SELECT 80 DIV 32 * - 17 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-1167
SELECT 80 / 32 * - 17 AS col2
----
-34

query I rowsort
SELECT 16 * 75 col0
----
1200

onlyif mysql # DIV for integer division: 
query I rowsort label-1169
SELECT ALL 39 * NULLIF ( + 14, ( - 75 ) ) DIV - + 44 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL 39 * NULLIF ( + 14, ( - 75 ) ) / - + 44 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT 36 * - 87 + + - 95 + - 89 + 68 * - 9 * + 46 - - - COUNT( * ) + - 92 - 19 + - + 23 * - 36 AS col0
----
-30752

skipif mysql # not compatible
query I rowsort label-1170
SELECT 36 * - 87 + + - 95 + - 89 + 68 * - 9 * + 46 - - - COUNT ( * ) + - 92 - 19 + - + 23 * - 36 AS col0
----
-30752

onlyif mysql # aggregate syntax: 
query II rowsort label-1171
SELECT ALL - COUNT( * ) * + + 33 AS col1, + MAX( - - ( + 39 ) ) - + MAX( ALL + 7 )
----
-33
32

skipif mysql # not compatible
query II rowsort label-1171
SELECT ALL - COUNT ( * ) * + + 33 AS col1, + MAX ( - - ( + 39 ) ) - + MAX ( ALL + 7 )
----
-33
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT DISTINCT COUNT( * ) * + 84 * - 8
----
-672

skipif mysql # not compatible
query I rowsort label-1172
SELECT DISTINCT COUNT ( * ) * + 84 * - 8
----
-672

query I rowsort
SELECT ALL 3 * - 34 * + 33 col0
----
-3366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1174
SELECT ALL MIN( - - 57 ) + - 54 * - + NULLIF ( ( + CAST( CAST( 90 AS SIGNED ) AS SIGNED ) ), + - 69 ) AS col1
----
4917

skipif mysql # not compatible
query I rowsort label-1174
SELECT ALL MIN ( - - 57 ) + - 54 * - + NULLIF ( ( + CAST ( CAST ( 90 AS INTEGER ) AS INTEGER ) ), + - 69 ) AS col1
----
4917

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT ( MAX( - 77 ) ) * + + 63
----
-4851

skipif mysql # not compatible
query I rowsort label-1175
SELECT ( MAX ( - 77 ) ) * + + 63
----
-4851

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1176
SELECT DISTINCT CAST( + - 44 AS SIGNED ) + + 96 + - 93 * 15 * - 81 + + - 33 DIV 8
----
113043

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT CAST ( + - 44 AS INTEGER ) + + 96 + - 93 * 15 * - 81 + + - 33 / 8
----
113043

onlyif mysql # DIV for integer division: 
query I rowsort label-1177
SELECT 30 * 98 DIV 54 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-1177
SELECT 30 * 98 / 54 AS col0
----
54

query I rowsort
SELECT ALL - 74 * 33 AS col1
----
-2442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1179
SELECT DISTINCT - COUNT( * ) * 9 + - 73 * + CAST( NULL AS SIGNED ) * 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT DISTINCT - COUNT ( * ) * 9 + - 73 * + CAST ( NULL AS INTEGER ) * 70 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT ALL MIN( + 5 ) + 28 + + 9 * 30 * - - ( COALESCE ( - - 27, ( COUNT( * ) ), 54 ) ) * + ( + + 18 ) + + 8 * - 84
----
130581

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL MIN ( + 5 ) + 28 + + 9 * 30 * - - ( COALESCE ( - - 27, ( COUNT ( * ) ), 54 ) ) * + ( + + 18 ) + + 8 * - 84
----
130581

query I rowsort
SELECT - CASE + ( - 93 ) WHEN 12 THEN - 46 END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1182
SELECT ALL 7 + - 36 * 84 DIV 55 - - ( + 2 ) * - + 99 + 41 + - 56 AS col0
----
-260

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL 7 + - 36 * 84 / 55 - - ( + 2 ) * - + 99 + 41 + - 56 AS col0
----
-260

query I rowsort
SELECT DISTINCT 12 + - 47
----
-35

query I rowsort
SELECT ALL - 59 * 75 + - 52
----
-4477

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT + ( COUNT( * ) ) + - 90 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-1185
SELECT + ( COUNT ( * ) ) + - 90 AS col2
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1186
SELECT CASE - 56 WHEN - 34 THEN NULL ELSE - ( + 35 ) * - COUNT( * ) * - COUNT( * ) * - 19 * + + CAST( NULL AS SIGNED ) * + 40 END col1, + 67
----
NULL
67

skipif mysql # not compatible
query II rowsort label-1186
SELECT CASE - 56 WHEN - 34 THEN NULL ELSE - ( + 35 ) * - COUNT ( * ) * - COUNT ( * ) * - 19 * + + CAST ( NULL AS INTEGER ) * + 40 END col1, + 67
----
NULL
67

query I rowsort
SELECT 42 + + 51 + 57 AS col2
----
150

query I rowsort
SELECT 73 * + 75 AS col0
----
5475

query I rowsort
SELECT - 83 * - 82
----
6806

query I rowsort
SELECT ALL + + 64 - + - 59 * - 27
----
-1529

query I rowsort
SELECT 19 + - 95
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1192
SELECT + 68 * + + 39 + - ( 78 ) + - + 33 - + + 91 * - 86 * - 30 DIV - COUNT( * ) AS col0
----
237321

skipif mysql # not compatible
query I rowsort label-1192
SELECT + 68 * + + 39 + - ( 78 ) + - + 33 - + + 91 * - 86 * - 30 / - COUNT ( * ) AS col0
----
237321

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT ALL - + SUM( - + 49 ) * + + 68 AS col0
----
3332

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL - + SUM ( - + 49 ) * + + 68 AS col0
----
3332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1194
SELECT + CAST( NULL AS SIGNED ) * + NULLIF ( - - 82, + + 36 + - - 87 * - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1194
SELECT + CAST ( NULL AS INTEGER ) * + NULLIF ( - - 82, + + 36 + - - 87 * - COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1195
SELECT ALL - - 34 DIV - - 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL - - 34 / - - 62 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1196
SELECT DISTINCT - 10 * 75, + 16 + + CASE + COUNT( * ) WHEN - 12 THEN NULL ELSE - - 75 * - 98 * + - COALESCE ( - 26, 54 ) - + CASE 27 WHEN - 6 THEN + 99 END + 36 + + ( - 5 ) + + 39 + - 4 * - 36 * + - SUM( ALL + + ( + - CAST( NULL AS SIGNED ) ) ) + 95 * + 49 END AS col0
----
-750
NULL

skipif mysql # not compatible
query II rowsort label-1196
SELECT DISTINCT - 10 * 75, + 16 + + CASE + COUNT ( * ) WHEN - 12 THEN NULL ELSE - - 75 * - 98 * + - COALESCE ( - 26, 54 ) - + CASE 27 WHEN - 6 THEN + 99 END + 36 + + ( - 5 ) + + 39 + - 4 * - 36 * + - SUM ( ALL + + ( + - CAST ( NULL AS INTEGER ) ) ) + 95 * + 49 END AS col0
----
-750
NULL

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

skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT + - 22 - - COUNT ( * ) / - COUNT ( DISTINCT - + 80 )
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-1198
SELECT + 90 + 4 AS col0, + COUNT( * ) + + COUNT( * )
----
94
2

skipif mysql # not compatible
query II rowsort label-1198
SELECT + 90 + 4 AS col0, + COUNT ( * ) + + COUNT ( * )
----
94
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT ( + COUNT( * ) ) * CASE 73 WHEN - + 12 THEN - 66 * + - ( + 10 ) + + - 35 WHEN - COUNT( * ) THEN - 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1199
SELECT ( + COUNT ( * ) ) * CASE 73 WHEN - + 12 THEN - 66 * + - ( + 10 ) + + - 35 WHEN - COUNT ( * ) THEN - 69 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1200
SELECT ALL - CASE + 1 WHEN - - COALESCE ( + CAST( - ( - - 11 ) AS DECIMAL ), - - 61 ) THEN - 39 + + 4 + 86 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL - CASE + 1 WHEN - - COALESCE ( + CAST ( - ( - - 11 ) AS REAL ), - - 61 ) THEN - 39 + + 4 + 86 END AS col0
----
NULL

query I rowsort
SELECT + 39 * 47 - 89
----
1744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1202
SELECT ALL - 50 * - CAST( - 17 AS SIGNED )
----
-850

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL - 50 * - CAST ( - 17 AS INTEGER )
----
-850

query I rowsort
SELECT 96 * - 32 * + 52 col0
----
-159744

onlyif mysql # DIV for integer division: 
query I rowsort label-1204
SELECT 15 DIV + + 89 * 12 * + 39 * - 15 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1204
SELECT 15 / + + 89 * 12 * + 39 * - 15 AS col0
----
0

query II rowsort
SELECT + 78, + 42 AS col1
----
78
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1206
SELECT ALL - CAST( - 94 AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL - CAST ( - 94 AS INTEGER )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1207
SELECT ALL - 87 * - ( + + 87 ) AS col2, CASE + ( - 53 ) WHEN CAST( NULL AS SIGNED ) - 14 THEN NULL WHEN + + 86 THEN ( NULLIF ( - + 7, + 81 + CASE + COUNT( * ) WHEN - 36 THEN 82 * + 78 * NULLIF ( - 42, ( - 9 ) * 99 ) + 38 WHEN - 92 * MAX( DISTINCT 33 ) + 71 THEN NULL ELSE + 25 * - - 25 * - + 40 + MAX( DISTINCT - ( + 82 ) ) * + 96 END ) ) / - 24 - + 37 WHEN 49 * - + CAST( NULL AS DECIMAL ) * 71 THEN NULL END
----
7569
NULL

skipif mysql # not compatible
query II rowsort label-1207
SELECT ALL - 87 * - ( + + 87 ) AS col2, CASE + ( - 53 ) WHEN CAST ( NULL AS INTEGER ) - 14 THEN NULL WHEN + + 86 THEN ( NULLIF ( - + 7, + 81 + CASE + COUNT ( * ) WHEN - 36 THEN 82 * + 78 * NULLIF ( - 42, ( - 9 ) * 99 ) + 38 WHEN - 92 * MAX ( DISTINCT 33 ) + 71 THEN NULL ELSE + 25 * - - 25 * - + 40 + MAX ( DISTINCT - ( + 82 ) ) * + 96 END ) ) / - 24 - + 37 WHEN 49 * - + CAST ( NULL AS REAL ) * 71 THEN NULL END
----
7569
NULL

query I rowsort
SELECT 41 * 99
----
4059

query I rowsort
SELECT 11 + + 24 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1210
SELECT ALL CAST( NULL AS SIGNED ) + - + 37 * + + NULLIF ( + COUNT( * ), + 0 ) * + + COUNT( * ) - + - ( - 51 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL CAST ( NULL AS INTEGER ) + - + 37 * + + NULLIF ( + COUNT ( * ), + 0 ) * + + COUNT ( * ) - + - ( - 51 ) AS col0
----
NULL

query I rowsort
SELECT NULLIF ( 11, - - 58 * 48 + + 63 ) + - - 26
----
37

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

skipif mysql # not compatible
query I rowsort label-1212
SELECT CAST ( - 36 AS INTEGER ) - + COUNT ( * )
----
-37

query I rowsort
SELECT ALL - ( - 36 ) * - + 24 col0
----
-864

query II rowsort
SELECT ALL 0, 49 AS col1
----
0
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT DISTINCT COUNT( * ) + 52 + 45
----
98

skipif mysql # not compatible
query I rowsort label-1215
SELECT DISTINCT COUNT ( * ) + 52 + 45
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT ALL + 99 + COALESCE ( + COUNT( ALL - + CASE - ( + ( - + 10 ) ) WHEN - - 9 + - + 98 + + 60 * - 20 THEN - - 26 - - 76 ELSE NULL END ), - 56 )
----
99

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL + 99 + COALESCE ( + COUNT ( ALL - + CASE - ( + ( - + 10 ) ) WHEN - - 9 + - + 98 + + 60 * - 20 THEN - - 26 - - 76 ELSE NULL END ), - 56 )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1217
SELECT + COALESCE ( 37, 89, + 7 DIV + 8 ) + + - 0 col0
----
37

skipif mysql # not compatible
query I rowsort label-1217
SELECT + COALESCE ( 37, 89, + 7 / + 8 ) + + - 0 col0
----
37

query II rowsort
SELECT ALL - 6, 87 + + 23 AS col2
----
-6
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1219
SELECT COUNT( * ) col0, - ( 27 ) * - + 50 DIV + COUNT( * ) AS col2
----
1
1350

skipif mysql # not compatible
query II rowsort label-1219
SELECT COUNT ( * ) col0, - ( 27 ) * - + 50 / + COUNT ( * ) AS col2
----
1
1350

query II rowsort
SELECT - - 39 AS col0, - ( 64 ) AS col0
----
39
-64

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

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

query II rowsort
SELECT - 21 AS col2, 77
----
-21
77

query I rowsort
SELECT - 71 + - 73
----
-144

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

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

query I rowsort
SELECT ALL + 3 * CASE - + 56 WHEN + - 85 * NULLIF ( + ( 8 ), + 23 * - 14 + 94 ) + 90 + - 56 THEN + 64 ELSE NULL END + - 39
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT + 53 * + + 58
----
3074

query I rowsort
SELECT + 13 * + 98 col1
----
1274

query I rowsort
SELECT + - 40 + + 50 col2
----
10

query I rowsort
SELECT + 72 * - 87 + 1
----
-6263

query I rowsort
SELECT ALL 91 * + 40 + - 6 col2
----
3634

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT ALL ( - - 14 ) * - 20 * - - SUM( ALL + 51 ) + - 86
----
-14366

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL ( - - 14 ) * - 20 * - - SUM ( ALL + 51 ) + - 86
----
-14366

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT ALL + 74 * - NULLIF ( - 80, - + COUNT( * ) ) + - 96
----
5824

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL + 74 * - NULLIF ( - 80, - + COUNT ( * ) ) + - 96
----
5824

query II rowsort
SELECT + 61 * - 41, 35 AS col2
----
-2501
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT - 67 + COUNT( * ) - 12
----
-78

skipif mysql # not compatible
query I rowsort label-1236
SELECT - 67 + COUNT ( * ) - 12
----
-78

query I rowsort
SELECT - 96 * + 97 - + 95
----
-9407

query I rowsort
SELECT ALL - 97 * + + 40 * - 64 + 13 AS col1
----
248333

query I rowsort
SELECT - 31 * 99 * - - 52 AS col0
----
-159588

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT DISTINCT - COUNT( * ) * 21
----
-21

skipif mysql # not compatible
query I rowsort label-1241
SELECT DISTINCT - COUNT ( * ) * 21
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT ALL - COUNT( * ) * - 50 + - 59
----
-9

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL - COUNT ( * ) * - 50 + - 59
----
-9

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

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT CAST ( + 94 AS INTEGER ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT DISTINCT + COUNT( * ) + + 32 * 52
----
1665

skipif mysql # not compatible
query I rowsort label-1244
SELECT DISTINCT + COUNT ( * ) + + 32 * 52
----
1665

query I rowsort
SELECT DISTINCT COALESCE ( + + 60, 32 ) AS col0
----
60

query I rowsort
SELECT ALL 72 - - 98 + - 24 - 74 * + 23 AS col0
----
-1556

query I rowsort
SELECT - - COALESCE ( - 73, 7, - 36 ) * - 0 AS col0
----
0

query I rowsort
SELECT + ( - 66 ) * + 28 AS col1
----
-1848

query I rowsort
SELECT + - 38 * - NULLIF ( + 5, + 96 )
----
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1250
SELECT ALL + CAST( NULL AS SIGNED ) * + + 44 * CASE COALESCE ( - + 73, + 22 * - SUM( + + 72 ) ) WHEN + + 23 THEN NULL WHEN + 62 THEN + 74 END + - - 29 * - AVG ( + 72 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 44 * CASE COALESCE ( - + 73, + 22 * - SUM ( + + 72 ) ) WHEN + + 23 THEN NULL WHEN + 62 THEN + 74 END + - - 29 * - AVG ( + 72 ) AS col2
----
NULL

query I rowsort
SELECT + 45 - 87 * - 31 AS col1
----
2742

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT - 88 + + COUNT( * ) + - + 34
----
-121

skipif mysql # not compatible
query I rowsort label-1252
SELECT - 88 + + COUNT ( * ) + - + 34
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1253
SELECT + - COUNT( - 61 ) * + 24 DIV 29 * + - 29 + - - 18 * MIN( DISTINCT 38 )
----
684

skipif mysql # not compatible
query I rowsort label-1253
SELECT + - COUNT ( - 61 ) * + 24 / 29 * + - 29 + - - 18 * MIN ( DISTINCT 38 )
----
684

query I rowsort
SELECT + + 11 + + - 46 col1
----
-35

onlyif mysql # DIV for integer division: 
query II rowsort label-1255
SELECT DISTINCT 75 DIV - 78 * - - 61 + + 74, NULLIF ( - 11, - - 74 ) AS col1
----
74
-11

skipif mysql # not compatible
query II rowsort label-1255
SELECT DISTINCT 75 / - 78 * - - 61 + + 74, NULLIF ( - 11, - - 74 ) AS col1
----
74
-11

query I rowsort
SELECT + 98 * - + 98
----
-9604

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT ALL COUNT( - 87 ) * - MAX( ALL - - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL COUNT ( - 87 ) * - MAX ( ALL - - 95 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT DISTINCT - SUM( + 35 ) / - 7 - + - 93 + - + CASE - NULLIF ( - ( - - 7 ), - 66 ) WHEN COUNT( * ) THEN + 2 WHEN 86 THEN NULL END + + + 60 / NULLIF ( + 11, + ( 93 ) ) * - MAX( ALL 52 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1258
SELECT DISTINCT - SUM ( + 35 ) / - 7 - + - 93 + - + CASE - NULLIF ( - ( - - 7 ), - 66 ) WHEN COUNT ( * ) THEN + 2 WHEN 86 THEN NULL END + + + 60 / NULLIF ( + 11, + ( 93 ) ) * - MAX ( ALL 52 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1259
SELECT ALL + 53 DIV + 43 + NULLIF ( + + 57, - 84 + - - ( - - 58 ) + + - MAX( DISTINCT - + 21 ) + - - 60 + 45 DIV - ( 45 ) * + ( 11 ) * + 11 + 23 - + NULLIF ( + + 93, - 66 * + COUNT( * ) - - 17 ) + - 37 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL + 53 / + 43 + NULLIF ( + + 57, - 84 + - - ( - - 58 ) + + - MAX ( DISTINCT - + 21 ) + - - 60 + 45 / - ( 45 ) * + ( 11 ) * + 11 + 23 - + NULLIF ( + + 93, - 66 * + COUNT ( * ) - - 17 ) + - 37 ) AS col0
----
58

query I rowsort
SELECT + 14 * 6
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT ( + + MIN( ALL + 80 ) ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-1261
SELECT ( + + MIN ( ALL + 80 ) ) AS col0
----
80

query II rowsort
SELECT - 92 * + 55 + - - 9 AS col1, 36 AS col0
----
-5051
36

query II rowsort
SELECT ALL + 95, + 92 AS col2
----
95
92

query II rowsort
SELECT ALL - 76 * - 14 - + 81 AS col2, - 75 AS col1
----
983
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT ALL 29 * COUNT( * ) - + - 31 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL 29 * COUNT ( * ) - + - 31 AS col1
----
60

query I rowsort
SELECT - COALESCE ( - 89, - 91 ) - - 2
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1267
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1267
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 63 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1268
SELECT 56 - 15 - + - 15 DIV - - 34 - + 90 - + COALESCE ( COUNT( * ), + 86 * - 23 ) + + COUNT( DISTINCT + 76 ) * + 12 DIV - 75
----
-50

skipif mysql # not compatible
query I rowsort label-1268
SELECT 56 - 15 - + - 15 / - - 34 - + 90 - + COALESCE ( COUNT ( * ), + 86 * - 23 ) + + COUNT ( DISTINCT + 76 ) * + 12 / - 75
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-1269
SELECT ALL + COUNT( * ) * - COUNT( * ) * - - 72, 78 * - 69 col2
----
-72
-5382

skipif mysql # not compatible
query II rowsort label-1269
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * - - 72, 78 * - 69 col2
----
-72
-5382

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT MIN( 78 ) * + 0 + + 74 + - 72 + + - ( COALESCE ( + 92, 38, + 24 ) ) + + 56 * 11
----
526

skipif mysql # not compatible
query I rowsort label-1270
SELECT MIN ( 78 ) * + 0 + + 74 + - 72 + + - ( COALESCE ( + 92, 38, + 24 ) ) + + 56 * 11
----
526

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT ALL - 16 - - - SUM( ALL + - 38 ) * + 13 - - MIN( + 39 ) * + - ( 29 ) AS col1
----
-653

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL - 16 - - - SUM ( ALL + - 38 ) * + 13 - - MIN ( + 39 ) * + - ( 29 ) AS col1
----
-653

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT ALL + 53 * - MAX( 45 ) AS col0
----
-2385

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL + 53 * - MAX ( 45 ) AS col0
----
-2385

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT 46 + - CASE - 20 + - COUNT( * ) WHEN - 31 * 60 THEN + 2 WHEN 11 * 32 THEN NULL WHEN 3 * - 85 THEN 93 WHEN 90 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1273
SELECT 46 + - CASE - 20 + - COUNT ( * ) WHEN - 31 * 60 THEN + 2 WHEN 11 * 32 THEN NULL WHEN 3 * - 85 THEN 93 WHEN 90 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1274
SELECT 81 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1274
SELECT 81 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT + 44 * COUNT ( * ) AS col0
----
44

query I rowsort
SELECT 55 + + 16
----
71

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

skipif mysql # not compatible
query I rowsort label-1277
SELECT 65 + + 31 / COUNT ( * )
----
96

query I rowsort
SELECT ALL + 53 * 62
----
3286

query I rowsort
SELECT 75 + 6 AS col0
----
81

query I rowsort
SELECT 84 * 23 AS col2
----
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT SUM( ALL 98 ) + - 21 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-1281
SELECT SUM ( ALL 98 ) + - 21 AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1282
SELECT 61 * + CASE 77 WHEN 18 THEN + 41 + + CASE + MAX( DISTINCT 18 ) WHEN MIN( 49 ) + - CAST( NULL AS SIGNED ) THEN + 5 + - 66 WHEN + 80 THEN NULL END WHEN + ( 40 ) * + 81 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1282
SELECT 61 * + CASE 77 WHEN 18 THEN + 41 + + CASE + MAX ( DISTINCT 18 ) WHEN MIN ( 49 ) + - CAST ( NULL AS INTEGER ) THEN + 5 + - 66 WHEN + 80 THEN NULL END WHEN + ( 40 ) * + 81 THEN NULL ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT + COUNT ( * ) + - 16 AS col1
----
-15

query I rowsort
SELECT ALL + 81 + - 2 col1
----
79

query I rowsort
SELECT DISTINCT + 9 + ( 15 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT DISTINCT 10 + ( COUNT( + 95 ) ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT 10 + ( COUNT ( + 95 ) ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT ALL CASE + MIN( ALL 57 ) WHEN - 31 THEN - 45 * 72 + + 55 WHEN + 80 + - 88 THEN NULL ELSE NULL END + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL CASE + MIN ( ALL 57 ) WHEN - 31 THEN - 45 * 72 + + 55 WHEN + 80 + - 88 THEN NULL ELSE NULL END + 91 AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 64 + 98
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1290
SELECT COUNT( * ) DIV 89 - + MAX( - 15 + + 9 )
----
6

skipif mysql # not compatible
query I rowsort label-1290
SELECT COUNT ( * ) / 89 - + MAX ( - 15 + + 9 )
----
6

query I rowsort
SELECT 25 * + 89 col0
----
2225

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT 83 * - 83 + SUM( - 25 ) AS col2
----
-6914

skipif mysql # not compatible
query I rowsort label-1292
SELECT 83 * - 83 + SUM ( - 25 ) AS col2
----
-6914

query I rowsort
SELECT ALL 9 + 44 AS col1
----
53

query I rowsort
SELECT 21 + ( COALESCE ( + 31, - 21 ) ) AS col2
----
52

query I rowsort
SELECT DISTINCT - 47 - 56 col0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1296
SELECT ALL CAST( NULL AS SIGNED ) * 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL CAST ( NULL AS INTEGER ) * 53 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1297
SELECT ALL - CAST( COUNT( DISTINCT - 24 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL - CAST ( COUNT ( DISTINCT - 24 ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL 73 - 83
----
-10

query I rowsort
SELECT ALL 55 * 94
----
5170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1300
SELECT ( CAST( NULL AS SIGNED ) ) * 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1300
SELECT ( CAST ( NULL AS INTEGER ) ) * 65 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT DISTINCT 95 - + 92 * - COUNT( - ( + 30 ) )
----
187

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT 95 - + 92 * - COUNT ( - ( + 30 ) )
----
187

query I rowsort
SELECT DISTINCT - 98 * + 77
----
-7546

onlyif mysql # DIV for integer division: 
query I rowsort label-1304
SELECT ALL - + 17 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL - + 17 / 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT - SUM( - 31 ) * - 82 AS col1
----
-2542

skipif mysql # not compatible
query I rowsort label-1305
SELECT - SUM ( - 31 ) * - 82 AS col1
----
-2542

query I rowsort
SELECT DISTINCT - + 42 * 68
----
-2856

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

skipif mysql # not compatible
query I rowsort label-1307
SELECT COUNT ( * ) / 63 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1308
SELECT ALL ( 78 ) DIV - 41
----
-1

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL ( 78 ) / - 41
----
-1

query I rowsort
SELECT + 43 + 58
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1310
SELECT MIN( DISTINCT 47 ) DIV 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1310
SELECT MIN ( DISTINCT 47 ) / 70 AS col0
----
0

query I rowsort
SELECT DISTINCT 92 + - 17 * 83 AS col0
----
-1319

query I rowsort
SELECT ALL + + 13 * 3 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT DISTINCT - + 50 * - NULLIF ( - COUNT( * ), - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT - + 50 * - NULLIF ( - COUNT ( * ), - COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT 42 - 41 * + 86 AS col0
----
-3484

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT ( MAX( ALL 47 ) ) * NULLIF ( 98, - 2 * + 93 + - 85 )
----
4606

skipif mysql # not compatible
query I rowsort label-1315
SELECT ( MAX ( ALL 47 ) ) * NULLIF ( 98, - 2 * + 93 + - 85 )
----
4606

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT - 7 + COUNT( * ) * 52 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-1317
SELECT - 7 + COUNT ( * ) * 52 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT ALL COUNT( - COALESCE ( + 84, - 57 * NULLIF ( + 6, - 37 * 19 ) ) ) + + 26 * 89
----
2315

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL COUNT ( - COALESCE ( + 84, - 57 * NULLIF ( + 6, - 37 * 19 ) ) ) + + 26 * 89
----
2315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1319
SELECT DISTINCT ( 72 ) * CAST( COUNT( * ) AS SIGNED ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-1319
SELECT DISTINCT ( 72 ) * CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT ALL + COUNT( * ) + + 16
----
17

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL + COUNT ( * ) + + 16
----
17

query I rowsort
SELECT + 73 + ( 52 + + 79 * 64 ) AS col1
----
5181

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT + COUNT( * ) - + 53 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-1322
SELECT + COUNT ( * ) - + 53 AS col0
----
-52

query I rowsort
SELECT 99 + - - 36 + - ( ( + 83 ) )
----
52

query I rowsort
SELECT 34 - - + 6
----
40

query I rowsort
SELECT ALL - 60 + - 87 AS col1
----
-147

query I rowsort
SELECT 5 * 80 * - 77 AS col2
----
-30800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1327
SELECT ALL - CAST( NULL AS SIGNED ) * 5 * 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL - CAST ( NULL AS INTEGER ) * 5 * 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1328
SELECT 24 + - COUNT( * ) + 59 DIV - 87
----
23

skipif mysql # not compatible
query I rowsort label-1328
SELECT 24 + - COUNT ( * ) + 59 / - 87
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1329
SELECT ALL - ( + MIN( DISTINCT - 73 ) ) DIV + 42 col2
----
1

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL - ( + MIN ( DISTINCT - 73 ) ) / + 42 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT ALL + COUNT( * ) * - + 13 - + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL + COUNT ( * ) * - + 13 - + COUNT ( * )
----
-14

query I rowsort
SELECT DISTINCT - 42 * 60 AS col0
----
-2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1332
SELECT ALL CASE 38 WHEN 22 THEN NULL WHEN 5 + - ( + ( COALESCE ( + 64, - 3 * + 82 ) ) ) THEN - COUNT( * ) + 63 END * - ( - 94 ) - - ( - 63 ) / NULLIF ( + SUM( 71 ), 79 + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL CASE 38 WHEN 22 THEN NULL WHEN 5 + - ( + ( COALESCE ( + 64, - 3 * + 82 ) ) ) THEN - COUNT ( * ) + 63 END * - ( - 94 ) - - ( - 63 ) / NULLIF ( + SUM ( 71 ), 79 + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 61 * + - 26
----
1586

onlyif mysql # DIV for integer division: 
query I rowsort label-1334
SELECT 88 DIV + 86 + + 9 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-1334
SELECT 88 / + 86 + + 9 AS col0
----
10

query I rowsort
SELECT DISTINCT + 22 * - - 20 - - ( 82 - 45 ) AS col2
----
477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1336
SELECT + SUM( DISTINCT + NULLIF ( + 76, - CAST( 85 AS SIGNED ) ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-1336
SELECT + SUM ( DISTINCT + NULLIF ( + 76, - CAST ( 85 AS INTEGER ) ) ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT + 13 + + - COUNT( * ) - 23
----
-11

skipif mysql # not compatible
query I rowsort label-1337
SELECT + 13 + + - COUNT ( * ) - 23
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1338
SELECT ALL - 98 / + - 66 * MIN( - ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL - 98 / + - 66 * MIN ( - ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1339
SELECT - 25 DIV - - 57
----
0

skipif mysql # not compatible
query I rowsort label-1339
SELECT - 25 / - - 57
----
0

query I rowsort
SELECT 52 * 43 + + 1 col2
----
2237

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

skipif mysql # not compatible
query I rowsort label-1341
SELECT - COALESCE ( - + COUNT ( * ), 87 ) * - 74 AS col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1342
SELECT + CAST( NULL AS SIGNED ) * + + 64 * - AVG ( - 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1342
SELECT + CAST ( NULL AS INTEGER ) * + + 64 * - AVG ( - 86 )
----
NULL

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

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

query I rowsort
SELECT + - 0 + + - 49
----
-49

query I rowsort
SELECT ALL + + COALESCE ( 3, + ( 51 ) + - 81 )
----
3

query I rowsort
SELECT ALL - 45 + 31 * 93
----
2838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1347
SELECT + - MIN( ALL - 41 ) * + 18 + + CAST( + 50 AS SIGNED ) AS col1
----
788

skipif mysql # not compatible
query I rowsort label-1347
SELECT + - MIN ( ALL - 41 ) * + 18 + + CAST ( + 50 AS INTEGER ) AS col1
----
788

query I rowsort
SELECT + 97 - + 86 AS col1
----
11

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1350
SELECT + - 64 * + - COUNT( * ) + 62 / CASE + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) / 30 + 40 * 72 WHEN 40 / COUNT( DISTINCT 35 * 79 ) THEN NULL WHEN SUM( DISTINCT CASE - 23 WHEN - 43 + 23 THEN + 2 ELSE NULL END ) * NULLIF ( AVG ( DISTINCT + 51 ), - COUNT( * ) + - 22 * - 92 ) THEN COUNT( * ) + + 47 * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1350
SELECT + - 64 * + - COUNT ( * ) + 62 / CASE + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) / 30 + 40 * 72 WHEN 40 / COUNT ( DISTINCT 35 * 79 ) THEN NULL WHEN SUM ( DISTINCT CASE - 23 WHEN - 43 + 23 THEN + 2 ELSE NULL END ) * NULLIF ( AVG ( DISTINCT + 51 ), - COUNT ( * ) + - 22 * - 92 ) THEN COUNT ( * ) + + 47 * - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT 59 * - + ( + 10 ) * + 14 + 55 AS col1
----
-8205

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT ALL 81 + + COUNT( * ) - 0 * + 59
----
82

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL 81 + + COUNT ( * ) - 0 * + 59
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT + 64 + 16 * MIN( 34 )
----
608

skipif mysql # not compatible
query I rowsort label-1353
SELECT + 64 + 16 * MIN ( 34 )
----
608

query I rowsort
SELECT ALL 8 + - + 66
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-1355
SELECT + 77 + 97 - + 89 DIV 13
----
168

skipif mysql # not compatible
query I rowsort label-1355
SELECT + 77 + 97 - + 89 / 13
----
168

query I rowsort
SELECT + + 23 + + NULLIF ( 87, - 21 * 67 + + 80 ) AS col0
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-1357
SELECT ALL + 12 + 28 DIV 64
----
12

skipif mysql # not compatible
query I rowsort label-1357
SELECT ALL + 12 + 28 / 64
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-1358
SELECT DISTINCT - 54 DIV 33
----
-1

skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT - 54 / 33
----
-1

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

query I rowsort
SELECT + + 32 * - 28
----
-896

query I rowsort
SELECT - COALESCE ( - 7, - 98 * - 35 ) + 20
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT ALL 10 - - ( - 17 ) - + 67 * COUNT( - 67 + 86 )
----
-74

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL 10 - - ( - 17 ) - + 67 * COUNT ( - 67 + 86 )
----
-74

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

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

query I rowsort
SELECT - 45 * - - 16
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT DISTINCT + COUNT( * ) * - - 16 * + NULLIF ( + COALESCE ( ( + ( - 9 ) ), 35 ), - 2 )
----
-144

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT + COUNT ( * ) * - - 16 * + NULLIF ( + COALESCE ( ( + ( - 9 ) ), 35 ), - 2 )
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT + 15 * - ( - + COUNT( - 51 ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1366
SELECT + 15 * - ( - + COUNT ( - 51 ) ) AS col1
----
15

query I rowsort
SELECT - ( + + 61 ) AS col0
----
-61

query I rowsort
SELECT DISTINCT 56 * - - COALESCE ( - 14, 91 + 81, 21 + + 90 * - 3 ) * 64 AS col0
----
-50176

query I rowsort
SELECT DISTINCT CASE + 64 WHEN - 46 THEN + 16 WHEN + 46 * 81 + AVG ( DISTINCT 0 ) THEN - 81 * 98 WHEN + 55 * 60 THEN + 25 * 25 ELSE 64 END AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT ALL NULLIF ( - COUNT( + + 32 ), - 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL NULLIF ( - COUNT ( + + 32 ), - 53 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT - 85 * + MAX( ALL + 46 ) AS col2
----
-3910

skipif mysql # not compatible
query I rowsort label-1371
SELECT - 85 * + MAX ( ALL + 46 ) AS col2
----
-3910

query I rowsort
SELECT ALL 91 * + 40 col1
----
3640

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1374
SELECT MAX( 83 ) * + COUNT( CAST( - 8 AS SIGNED ) ) - - 52 + 48 * 79 AS col0
----
3927

skipif mysql # not compatible
query I rowsort label-1374
SELECT MAX ( 83 ) * + COUNT ( CAST ( - 8 AS INTEGER ) ) - - 52 + 48 * 79 AS col0
----
3927

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1376
SELECT DISTINCT - 11 DIV + + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1376
SELECT DISTINCT - 11 / + + 78 AS col1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1378
SELECT - COUNT( * ) / - ( CAST( NULL AS SIGNED ) ) * 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1378
SELECT - COUNT ( * ) / - ( CAST ( NULL AS INTEGER ) ) * 95 AS col0
----
NULL

query I rowsort
SELECT ALL - 94 * - 93 AS col0
----
8742

query I rowsort
SELECT - 19 + 21 * - - 8
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT DISTINCT - 85 * + + CASE + 64 WHEN - COUNT( * ) THEN 4 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT - 85 * + + CASE + 64 WHEN - COUNT ( * ) THEN 4 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1382
SELECT DISTINCT - COUNT( * ) DIV - COALESCE ( - 47, - 97 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT - COUNT ( * ) / - COALESCE ( - 47, - 97 ) AS col2
----
0

query I rowsort
SELECT ALL + COALESCE ( + - ( 54 ), - 68 + + 25 ) AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1384
SELECT ALL CAST( 33 AS SIGNED ) * - - MIN( 16 ) + 52 * CASE + 78 * + 71 + + 19 * + COUNT( * ) WHEN + 38 + + 56 THEN - COUNT( * ) / 1 + + 30 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL CAST ( 33 AS INTEGER ) * - - MIN ( 16 ) + 52 * CASE + 78 * + 71 + + 19 * + COUNT ( * ) WHEN + 38 + + 56 THEN - COUNT ( * ) / 1 + + 30 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT DISTINCT - ( MIN( ALL - 98 ) ) * 6 + + 88
----
676

skipif mysql # not compatible
query I rowsort label-1385
SELECT DISTINCT - ( MIN ( ALL - 98 ) ) * 6 + + 88
----
676

query I rowsort
SELECT - ( + + CASE + 13 WHEN 68 * 89 THEN NULL WHEN 65 THEN 7 END ) col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL + - COUNT ( DISTINCT 75 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1388
SELECT - 26 DIV + - ( + - MIN( + 14 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1388
SELECT - 26 / + - ( + - MIN ( + 14 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT + COUNT( 91 ) + - 34 + COALESCE ( 69 - - COUNT( * ) * 92, 42 )
----
128

skipif mysql # not compatible
query I rowsort label-1389
SELECT + COUNT ( 91 ) + - 34 + COALESCE ( 69 - - COUNT ( * ) * 92, 42 )
----
128

query I rowsort
SELECT - + 77 * - 10 AS col0
----
770

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1391
SELECT DISTINCT + 66 DIV - CAST( - - 33 AS SIGNED ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1391
SELECT DISTINCT + 66 / - CAST ( - - 33 AS INTEGER ) AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1392
SELECT ALL 46 * 62 + - + 33 + - 38 DIV 66 AS col0
----
2819

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL 46 * 62 + - + 33 + - 38 / 66 AS col0
----
2819

onlyif mysql # aggregate syntax: 
query II rowsort label-1393
SELECT ALL + 84, + NULLIF ( - COUNT( * ), + 63 * 64 - COUNT( 80 ) * - 20 ) AS col1
----
84
-1

skipif mysql # not compatible
query II rowsort label-1393
SELECT ALL + 84, + NULLIF ( - COUNT ( * ), + 63 * 64 - COUNT ( 80 ) * - 20 ) AS col1
----
84
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1394
SELECT - - CASE CAST( NULL AS SIGNED ) WHEN - 51 / SUM( COALESCE ( + 84, + 43 * - 99 ) ) THEN 78 * CAST( NULL AS SIGNED ) END * - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1394
SELECT - - CASE CAST ( NULL AS INTEGER ) WHEN - 51 / SUM ( COALESCE ( + 84, + 43 * - 99 ) ) THEN 78 * CAST ( NULL AS INTEGER ) END * - 60 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1395
SELECT ALL + 25 * CAST( - 60 AS SIGNED ) * - 46 + 12 col2
----
69012

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL + 25 * CAST ( - 60 AS INTEGER ) * - 46 + 12 col2
----
69012

query I rowsort
SELECT ALL - ( - - 17 ) AS col1
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1397
SELECT DISTINCT + 39 * + ( - CAST( NULL AS DECIMAL ) ) + 10 + ( 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1397
SELECT DISTINCT + 39 * + ( - CAST ( NULL AS REAL ) ) + 10 + ( 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT - COUNT( * ) + MAX( - 32 ) * 42 AS col1
----
-1345

skipif mysql # not compatible
query I rowsort label-1398
SELECT - COUNT ( * ) + MAX ( - 32 ) * 42 AS col1
----
-1345

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1399
SELECT + CAST( NULL AS DECIMAL ) * - 37 * + 98 / - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1399
SELECT + CAST ( NULL AS REAL ) * - 37 * + 98 / - 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1400
SELECT ALL COUNT( DISTINCT NULLIF ( + 97, + CAST( NULL AS SIGNED ) ) ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL COUNT ( DISTINCT NULLIF ( + 97, + CAST ( NULL AS INTEGER ) ) ) * - COUNT ( * )
----
-1

query II rowsort
SELECT + 4 AS col1, + NULLIF ( 88, 15 ) * - 76
----
4
-6688

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT - 55 + + COALESCE ( - + COUNT( * ), COUNT( * ) )
----
-56

skipif mysql # not compatible
query I rowsort label-1402
SELECT - 55 + + COALESCE ( - + COUNT ( * ), COUNT ( * ) )
----
-56

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

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

query II rowsort
SELECT 70 AS col2, + 48
----
70
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT DISTINCT + ( + + CASE - - 97 WHEN ( + 68 ) THEN COUNT( * ) ELSE 4 END )
----
4

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT + ( + + CASE - - 97 WHEN ( + 68 ) THEN COUNT ( * ) ELSE 4 END )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT + - ( + + 74 ) - + NULLIF ( + COUNT( * ), - 93 * + 86 + ( ( 64 ) ) ) * COUNT( DISTINCT + 56 )
----
-75

skipif mysql # not compatible
query I rowsort label-1406
SELECT + - ( + + 74 ) - + NULLIF ( + COUNT ( * ), - 93 * + 86 + ( ( 64 ) ) ) * COUNT ( DISTINCT + 56 )
----
-75

query I rowsort
SELECT + 21 * + + 91 AS col1
----
1911

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT + 92 - - 44 + + COUNT( * ) col0
----
137

skipif mysql # not compatible
query I rowsort label-1408
SELECT + 92 - - 44 + + COUNT ( * ) col0
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-1409
SELECT ALL 97 - - + 45 + - 10 DIV COALESCE ( 1, + ( 35 ) * + 65, 13 ) AS col1
----
132

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL 97 - - + 45 + - 10 / COALESCE ( 1, + ( 35 ) * + 65, 13 ) AS col1
----
132

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1410
SELECT ALL 79 DIV - + ( CAST( + + 63 AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL 79 / - + ( CAST ( + + 63 AS INTEGER ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1411
SELECT + 85 * - - COUNT( * ) col1, NULLIF ( 49, 82 + - MAX( 66 ) / - 79 )
----
85
49

skipif mysql # not compatible
query II rowsort label-1411
SELECT + 85 * - - COUNT ( * ) col1, NULLIF ( 49, 82 + - MAX ( 66 ) / - 79 )
----
85
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT DISTINCT 97 * - - SUM( - 77 ) AS col0
----
-7469

skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT 97 * - - SUM ( - 77 ) AS col0
----
-7469

onlyif mysql # DIV for integer division: 
query I rowsort label-1413
SELECT DISTINCT NULLIF ( - 83, - 94 * 21 + + 15 + 62 ) DIV 21 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1413
SELECT DISTINCT NULLIF ( - 83, - 94 * 21 + + 15 + 62 ) / 21 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT COUNT( * ) + ( + 88 )
----
89

skipif mysql # not compatible
query I rowsort label-1414
SELECT COUNT ( * ) + ( + 88 )
----
89

query I rowsort
SELECT ( - + 97 ) - + - 95
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1416
SELECT ALL ( 92 ) DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL ( 92 ) / 94
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1417
SELECT NULLIF ( + + 86, - - 21 ) / - - 2 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1417
SELECT NULLIF ( + + 86, - - 21 ) / - - 2 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 66 * - + 61 AS col2
----
-4026

query I rowsort
SELECT 69 - 62 AS col1
----
7

query I rowsort
SELECT 40 * - 48 AS col0
----
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT 75 * - COUNT( * ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-1421
SELECT 75 * - COUNT ( * ) AS col2
----
-75

query I rowsort
SELECT ALL 37 * ( + - 11 ) AS col1
----
-407

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT SUM( DISTINCT + 81 ) + 87 AS col2
----
168

skipif mysql # not compatible
query I rowsort label-1424
SELECT SUM ( DISTINCT + 81 ) + 87 AS col2
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1425
SELECT COUNT( ALL + 36 ) * - 21 + + - CASE 33 WHEN - COUNT( * ) + COUNT( * ) THEN - 97 * CAST( NULLIF ( CAST( NULL AS SIGNED ), AVG ( 72 ) * - MIN( 84 ) ) AS SIGNED ) ELSE NULL END + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-1425
SELECT COUNT ( ALL + 36 ) * - 21 + + - CASE 33 WHEN - COUNT ( * ) + COUNT ( * ) THEN - 97 * CAST ( NULLIF ( CAST ( NULL AS INTEGER ), AVG ( 72 ) * - MIN ( 84 ) ) AS INTEGER ) ELSE NULL END + 20
----
NULL

query I rowsort
SELECT ALL 1 + + 24 + 6
----
31

query I rowsort
SELECT ALL 77 + - 90 AS col0
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1428
SELECT ALL + COUNT( * ) + + + 53 + + - NULLIF ( - - ( COUNT( * ) ), 16 ) DIV + 27
----
54

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL + COUNT ( * ) + + + 53 + + - NULLIF ( - - ( COUNT ( * ) ), 16 ) / + 27
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT MIN( ALL + - 1 ) + + COALESCE ( - - NULLIF ( - COUNT( * ), + 11 ), 15 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1429
SELECT MIN ( ALL + - 1 ) + + COALESCE ( - - NULLIF ( - COUNT ( * ), + 11 ), 15 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT CASE WHEN ( + 43 ) IS NOT NULL THEN - COUNT( * ) END * - 76
----
76

skipif mysql # not compatible
query I rowsort label-1430
SELECT CASE WHEN ( + 43 ) IS NOT NULL THEN - COUNT ( * ) END * - 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT DISTINCT + - SUM( DISTINCT - COALESCE ( 69, + 92 * ( - 98 ) ) ) + 48
----
117

skipif mysql # not compatible
query I rowsort label-1431
SELECT DISTINCT + - SUM ( DISTINCT - COALESCE ( 69, + 92 * ( - 98 ) ) ) + 48
----
117

query II rowsort
SELECT - 10 + + 54, 3 AS col0
----
44
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT + 98 * + 58 * - + 80 + - COUNT( DISTINCT 15 ) * MIN( ALL 19 * 10 ) + 81
----
-454829

skipif mysql # not compatible
query I rowsort label-1433
SELECT + 98 * + 58 * - + 80 + - COUNT ( DISTINCT 15 ) * MIN ( ALL 19 * 10 ) + 81
----
-454829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1434
SELECT + 10 * + + CAST( + CASE + 44 WHEN 95 * - COUNT( * ) THEN + 75 WHEN 85 THEN NULL ELSE + 15 END AS SIGNED ) + + MAX( DISTINCT - 95 ) + - 96
----
-41

skipif mysql # not compatible
query I rowsort label-1434
SELECT + 10 * + + CAST ( + CASE + 44 WHEN 95 * - COUNT ( * ) THEN + 75 WHEN 85 THEN NULL ELSE + 15 END AS INTEGER ) + + MAX ( DISTINCT - 95 ) + - 96
----
-41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1435
SELECT ALL + + CAST( NULL AS SIGNED ) * 41 AS col1, + 79 DIV + + 94 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1435
SELECT ALL + + CAST ( NULL AS INTEGER ) * 41 AS col1, + 79 / + + 94 AS col1
----
NULL
0

query I rowsort
SELECT 40 + + + 71 + 94 * - 81 AS col1
----
-7503

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT ALL + 76 + - COUNT( * ) + NULLIF ( 3, + 31 + - 53 ) + + ( - 52 - 43 )
----
-17

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL + 76 + - COUNT ( * ) + NULLIF ( 3, + 31 + - 53 ) + + ( - 52 - 43 )
----
-17

query I rowsort
SELECT ALL - + 18 - + 68 AS col2
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1439
SELECT DISTINCT - + NULLIF ( + COUNT( * ), + - CASE - - 11 WHEN 15 + ( 97 ) * + CAST( NULL AS SIGNED ) THEN - 4 END ) * COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT - + NULLIF ( + COUNT ( * ), + - CASE - - 11 WHEN 15 + ( 97 ) * + CAST ( NULL AS INTEGER ) THEN - 4 END ) * COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT 20 + + 62 AS col1
----
82

query I rowsort
SELECT ALL + 10 - + 38 AS col0
----
-28

query I rowsort
SELECT 97 * 40 AS col0
----
3880

query I rowsort
SELECT + 53 * + - ( 2 ) AS col1
----
-106

query I rowsort
SELECT 55 + - 94 + 49 + 6 * 93 AS col0
----
568

query I rowsort
SELECT + 62 + - 13
----
49

query I rowsort
SELECT ( + 11 ) * + 28 + - 73 * + 39 AS col1
----
-2539

query I rowsort
SELECT 34 + + 22 AS col0
----
56

query I rowsort
SELECT DISTINCT 38 * 34 AS col2
----
1292

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

skipif mysql # not compatible
query I rowsort label-1449
SELECT COUNT ( * ) * 48
----
48

query I rowsort
SELECT ALL 56 * 1 AS col1
----
56

query I rowsort
SELECT ALL + ( 20 ) * + - 44
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT DISTINCT ( + 66 ) * - + 30 * + MIN( ALL 94 ) * 67 AS col2
----
-12470040

skipif mysql # not compatible
query I rowsort label-1452
SELECT DISTINCT ( + 66 ) * - + 30 * + MIN ( ALL 94 ) * 67 AS col2
----
-12470040

query I rowsort
SELECT 33 * + 4 AS col0
----
132

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1454
SELECT CASE + - 81 WHEN - ( - 41 ) + + 6 THEN CAST( NULL AS DECIMAL ) WHEN 74 * - 62 THEN - 36 + NULLIF ( 20, NULLIF ( + 0, 64 * + 27 ) ) ELSE NULL END + - 29 * NULLIF ( 0, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1454
SELECT CASE + - 81 WHEN - ( - 41 ) + + 6 THEN CAST ( NULL AS REAL ) WHEN 74 * - 62 THEN - 36 + NULLIF ( 20, NULLIF ( + 0, 64 * + 27 ) ) ELSE NULL END + - 29 * NULLIF ( 0, COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL 37 + + 35
----
72

query I rowsort
SELECT ALL 96 + + 85
----
181

query I rowsort
SELECT DISTINCT + ( 35 ) + + + 15 * - 98
----
-1435

query II rowsort
SELECT ALL 82, 62 * 14 * 80 col1
----
82
69440

query I rowsort
SELECT ALL + 94 + + ( 70 ) + - 78
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-1460
SELECT 72, + COUNT( ALL - - 90 ) AS col0
----
72
1

skipif mysql # not compatible
query II rowsort label-1460
SELECT 72, + COUNT ( ALL - - 90 ) AS col0
----
72
1

query II rowsort
SELECT ALL 84 + - 66 * - 27, 87 AS col2
----
1866
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1462
SELECT ALL NULLIF ( - 38, 25 + + 84 + COUNT( ALL 84 ) + ( 1 - 54 * 13 ) ) + - 96 DIV 12 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL NULLIF ( - 38, 25 + + 84 + COUNT ( ALL 84 ) + ( 1 - 54 * 13 ) ) + - 96 / 12 AS col1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-1463
SELECT ALL 54 DIV + + 89
----
0

skipif mysql # not compatible
query I rowsort label-1463
SELECT ALL 54 / + + 89
----
0

query I rowsort
SELECT ALL 54 * - ( - 4 ) + 33 AS col1
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT 86 * - 86 + - 84 * - 73 * + - 62 * COUNT( * )
----
-387580

skipif mysql # not compatible
query I rowsort label-1465
SELECT 86 * - 86 + - 84 * - 73 * + - 62 * COUNT ( * )
----
-387580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1466
SELECT 72 DIV + COUNT( * ) + 30 AS col2, - 3 + - CAST( NULL AS SIGNED ) + + 1
----
102
NULL

skipif mysql # not compatible
query II rowsort label-1466
SELECT 72 / + COUNT ( * ) + 30 AS col2, - 3 + - CAST ( NULL AS INTEGER ) + + 1
----
102
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT ALL COUNT( * ) * + + 62 * - 89 * - 34 AS col1
----
187612

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL COUNT ( * ) * + + 62 * - 89 * - 34 AS col1
----
187612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1468
SELECT - 17 / + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1468
SELECT - 17 / + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1469
SELECT DISTINCT - COUNT ( * ) AS col0, - 69
----
-1
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1470
SELECT 27 / + 47 - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1470
SELECT 27 / + 47 - + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( 25 ) - - - NULLIF ( - 32, + 40 + 50 )
----
57

query II rowsort
SELECT ALL - 42 AS col0, - 13 + - 68 * - 55 * - 65 AS col1
----
-42
-243113

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT - + 52 * + - 2 + + MAX( DISTINCT + + 28 )
----
132

skipif mysql # not compatible
query I rowsort label-1473
SELECT - + 52 * + - 2 + + MAX ( DISTINCT + + 28 )
----
132

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

skipif mysql # not compatible
query I rowsort label-1474
SELECT CAST ( NULL AS INTEGER ) + - 72 * + 52 AS col2
----
NULL

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

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

query I rowsort
SELECT - COALESCE ( - 89, - 51 ) * 90 AS col2
----
8010

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

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

query I rowsort
SELECT ALL - - 77 col1
----
77

query I rowsort
SELECT DISTINCT + ( + 79 ) * + - 83
----
-6557

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT DISTINCT - - SUM( ALL + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-1480
SELECT DISTINCT - - SUM ( ALL + 30 )
----
30

query I rowsort
SELECT DISTINCT + 82 * - - 65 * + 44 + + 17
----
234537

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT DISTINCT COUNT( * ) * - 93 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-1482
SELECT DISTINCT COUNT ( * ) * - 93 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT - 45 * - 28 * - COUNT( * ) * + - COUNT( * ) * - + MIN( ALL + 24 ) AS col1
----
-30240

skipif mysql # not compatible
query I rowsort label-1483
SELECT - 45 * - 28 * - COUNT ( * ) * + - COUNT ( * ) * - + MIN ( ALL + 24 ) AS col1
----
-30240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1484
SELECT ALL - ( 77 ) * COUNT( - 95 ) DIV 56
----
-1

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL - ( 77 ) * COUNT ( - 95 ) / 56
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT + 32 + COUNT( - + 32 ) + - 77 * 34
----
-2585

skipif mysql # not compatible
query I rowsort label-1485
SELECT + 32 + COUNT ( - + 32 ) + - 77 * 34
----
-2585

query II rowsort
SELECT 33 AS col2, ( + 70 ) AS col1
----
33
70

onlyif mysql # aggregate syntax: 
query II rowsort label-1487
SELECT DISTINCT COUNT( * ) AS col1, - 13
----
1
-13

skipif mysql # not compatible
query II rowsort label-1487
SELECT DISTINCT COUNT ( * ) AS col1, - 13
----
1
-13

query I rowsort
SELECT - 9 + - 48 + + 19
----
-38

query I rowsort
SELECT - 14 * - 19 AS col2
----
266

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT - COUNT( * ) - - + 30 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-1490
SELECT - COUNT ( * ) - - + 30 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT DISTINCT + 25 + + + COUNT( * ) - + - COALESCE ( + 98, - 55 ) + + 25 - 5
----
144

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT + 25 + + + COUNT ( * ) - + - COALESCE ( + 98, - 55 ) + + 25 - 5
----
144

query I rowsort
SELECT ALL NULLIF ( - 90, + - 14 * CASE + + 23 WHEN - 48 * 95 THEN NULL WHEN 6 * - 66 THEN + 35 * - 22 - + 50 END ) AS col0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1493
SELECT - CASE + COUNT( * ) WHEN - COUNT( * ) + - 14 THEN - - 43 * - 46 ELSE - ( 77 ) * CASE 18 + 20 WHEN 34 + 54 THEN NULL ELSE 52 END END + + ( + ( + 55 ) ) DIV 53 AS col0
----
4005

skipif mysql # not compatible
query I rowsort label-1493
SELECT - CASE + COUNT ( * ) WHEN - COUNT ( * ) + - 14 THEN - - 43 * - 46 ELSE - ( 77 ) * CASE 18 + 20 WHEN 34 + 54 THEN NULL ELSE 52 END END + + ( + ( + 55 ) ) / 53 AS col0
----
4005

query I rowsort
SELECT ALL + 7 + - - 20 * 41
----
827

query I rowsort
SELECT DISTINCT NULLIF ( + - 80, + 81 * - 52 * - - COALESCE ( + 45, 71, 66 - + 18 ) + 27 * + 18 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT DISTINCT SUM( ALL 59 ) + + - 43 * - 27 + + ( - 57 )
----
1163

skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT SUM ( ALL 59 ) + + - 43 * - 27 + + ( - 57 )
----
1163

query I rowsort
SELECT ALL 43 + 20
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1498
SELECT - COUNT( * ) AS col2, 58 * + 57 * + + 58 * - 62 col1
----
-1
-11888376

skipif mysql # not compatible
query II rowsort label-1498
SELECT - COUNT ( * ) AS col2, 58 * + 57 * + + 58 * - 62 col1
----
-1
-11888376

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT ALL NULLIF ( + - ( + 9 ), MAX( - - 14 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL NULLIF ( + - ( + 9 ), MAX ( - - 14 ) )
----
-9

query I rowsort
SELECT - NULLIF ( - 10, + 8 * - + 50 ) + 24 * - 67 AS col2
----
-1598

query I rowsort
SELECT DISTINCT + 63 + - 54 AS col2
----
9

query I rowsort
SELECT ALL 7 + - - 46 AS col0
----
53

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

query I rowsort
SELECT ALL 36 - 29
----
7

query I rowsort
SELECT DISTINCT + ( + 82 ) AS col2
----
82

query I rowsort
SELECT ALL + 27 * - 33 - - ( + 92 ) - - CASE - 65 WHEN 53 / + 59 + ( 52 + + 76 ) THEN NULL WHEN + 30 * - 54 THEN NULL ELSE 16 + - 54 END + 33
----
-804

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

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

query I rowsort
SELECT ALL + 54 / 80 + - CASE 9 WHEN + 48 THEN + 88 WHEN ( 85 ) THEN 30 END
----
NULL

query II rowsort
SELECT ALL + + 25 AS col0, 68
----
25
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1510
SELECT + - 0 AS col2, 12 + + CAST( + 15 AS SIGNED )
----
0
27

skipif mysql # not compatible
query II rowsort label-1510
SELECT + - 0 AS col2, 12 + + CAST ( + 15 AS INTEGER )
----
0
27

query I rowsort
SELECT + + 16 + - + 49 + + + 65 * + 40 AS col1
----
2567

query I rowsort
SELECT - 63 * - 95 - 29 + 10 AS col2
----
5966

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT + 78 * + COALESCE ( 44, COUNT( * ) ) - + + ( 72 ) + MAX( DISTINCT 46 )
----
3406

skipif mysql # not compatible
query I rowsort label-1513
SELECT + 78 * + COALESCE ( 44, COUNT ( * ) ) - + + ( 72 ) + MAX ( DISTINCT 46 )
----
3406

query I rowsort
SELECT ALL 47 * - 13 AS col0
----
-611

onlyif mysql # aggregate syntax: 
query II rowsort label-1515
SELECT 21 col0, ( - 31 ) + + COUNT( * ) AS col1
----
21
-30

skipif mysql # not compatible
query II rowsort label-1515
SELECT 21 col0, ( - 31 ) + + COUNT ( * ) AS col1
----
21
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-1516
SELECT DISTINCT + + 9 AS col0, + 26 + + 54 * - + 94 + - 73 * 89 + COUNT( * ) * - 66 AS col2
----
9
-11613

skipif mysql # not compatible
query II rowsort label-1516
SELECT DISTINCT + + 9 AS col0, + 26 + + 54 * - + 94 + - 73 * 89 + COUNT ( * ) * - 66 AS col2
----
9
-11613

query I rowsort
SELECT ALL - 33 * + - 51
----
1683

query I rowsort
SELECT DISTINCT 36 * 75 col0
----
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT + 80 + + ( + COUNT( DISTINCT - 27 ) ) * - 59 * + 39
----
-2221

skipif mysql # not compatible
query I rowsort label-1519
SELECT + 80 + + ( + COUNT ( DISTINCT - 27 ) ) * - 59 * + 39
----
-2221

query II rowsort
SELECT + 33 * + - 33 AS col2, 85 + + 5
----
-1089
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1521
SELECT 38 * ( + COALESCE ( - 29, + 52 - - 39 ) ) DIV COUNT( * ) + 70 * NULLIF ( + 83, + 26 DIV COUNT( * ) ) AS col0
----
4708

skipif mysql # not compatible
query I rowsort label-1521
SELECT 38 * ( + COALESCE ( - 29, + 52 - - 39 ) ) / COUNT ( * ) + 70 * NULLIF ( + 83, + 26 / COUNT ( * ) ) AS col0
----
4708

onlyif mysql # aggregate syntax: 
query II rowsort label-1522
SELECT MIN( 19 ) AS col0, + 28 AS col2
----
19
28

skipif mysql # not compatible
query II rowsort label-1522
SELECT MIN ( 19 ) AS col0, + 28 AS col2
----
19
28

query I rowsort
SELECT - 91 + 34 col1
----
-57

query I rowsort
SELECT ALL - 66 * + ( + + 68 )
----
-4488

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT ALL 38 * + COUNT( * ) + + + 96
----
134

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL 38 * + COUNT ( * ) + + + 96
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1526
SELECT - 55 DIV 65 * - - SUM( ALL 43 ) * 29
----
0

skipif mysql # not compatible
query I rowsort label-1526
SELECT - 55 / 65 * - - SUM ( ALL 43 ) * 29
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1527
SELECT ALL - 39 + + + 40 * + CAST( NULL AS SIGNED ) * 53 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL - 39 + + + 40 * + CAST ( NULL AS INTEGER ) * 53 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1528
SELECT ALL 78 * - - CAST( + 70 AS SIGNED ) * + 5 * - COUNT( DISTINCT 9 )
----
-27300

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL 78 * - - CAST ( + 70 AS INTEGER ) * + 5 * - COUNT ( DISTINCT 9 )
----
-27300

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT ALL CASE + + 79 WHEN + 62 * + 61 THEN NULL WHEN + MAX( DISTINCT - + 86 ) THEN - + 34 / - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL CASE + + 79 WHEN + 62 * + 61 THEN NULL WHEN + MAX ( DISTINCT - + 86 ) THEN - + 34 / - COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT - 49 * - 65
----
3185

query I rowsort
SELECT + 37 * ( + 97 ) * 84 AS col1
----
301476

query II rowsort
SELECT ALL + 76 - - 10, - 68 AS col0
----
86
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1533
SELECT - SUM( 49 ) DIV - 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1533
SELECT - SUM ( 49 ) / - 68 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1534
SELECT ALL - 4 DIV - 67 * - + 42
----
0

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL - 4 / - 67 * - + 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT DISTINCT NULLIF ( - - 59, 80 + + - MIN( ALL 69 ) ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-1535
SELECT DISTINCT NULLIF ( - - 59, 80 + + - MIN ( ALL 69 ) ) AS col0
----
59

query I rowsort
SELECT - + ( + 77 ) - + 59 + - - 15 + + - 79 + - 79
----
-279

query I rowsort
SELECT DISTINCT + + 13 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1538
SELECT - 15 * 45 + 37 + 26 * - + 82 * + CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1538
SELECT - 15 * 45 + 37 + 26 * - + 82 * + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1539
SELECT ALL - + 45 * - CASE CAST( - ( + - NULLIF ( - 45, 20 / 23 ) ) AS SIGNED ) WHEN ( 98 ) THEN NULL WHEN + COUNT( * ) + COALESCE ( 15 + + 89, + COUNT( DISTINCT 61 ) ) THEN ( - 81 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL - + 45 * - CASE CAST ( - ( + - NULLIF ( - 45, 20 / 23 ) ) AS INTEGER ) WHEN ( 98 ) THEN NULL WHEN + COUNT ( * ) + COALESCE ( 15 + + 89, + COUNT ( DISTINCT 61 ) ) THEN ( - 81 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT - 6 * - - SUM( 48 )
----
-288

skipif mysql # not compatible
query I rowsort label-1540
SELECT - 6 * - - SUM ( 48 )
----
-288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1541
SELECT DISTINCT + - CASE + 39 WHEN CASE - - 25 WHEN + 95 / + COUNT( * ) THEN NULL ELSE + 9 END THEN + CAST( + 98 AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT + - CASE + 39 WHEN CASE - - 25 WHEN + 95 / + COUNT ( * ) THEN NULL ELSE + 9 END THEN + CAST ( + 98 AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT ALL - 4 * - ( CASE - 19 WHEN + 46 * + + 25 + - + SUM( ALL 88 ) + - ( - 50 ) THEN + 35 / + COUNT( * ) WHEN + 74 THEN NULL END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL - 4 * - ( CASE - 19 WHEN + 46 * + + 25 + - + SUM ( ALL 88 ) + - ( - 50 ) THEN + 35 / + COUNT ( * ) WHEN + 74 THEN NULL END ) col0
----
NULL

query I rowsort
SELECT 41 * 84 * 50 + - + 46
----
172154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1544
SELECT ALL - COALESCE ( + ( 73 ), + CASE + 64 WHEN - 46 DIV COUNT( * ) THEN 77 + - 67 DIV + 7 END DIV COALESCE ( COUNT( * ), + 41 + - 71 ) + - ( 65 ) * SUM( 74 ), CAST( + COUNT( 57 ) AS SIGNED ) )
----
-73

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL - COALESCE ( + ( 73 ), + CASE + 64 WHEN - 46 / COUNT ( * ) THEN 77 + - 67 / + 7 END / COALESCE ( COUNT ( * ), + 41 + - 71 ) + - ( 65 ) * SUM ( 74 ), CAST ( + COUNT ( 57 ) AS INTEGER ) )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1545
SELECT 20 * - 64 * CAST( NULL AS SIGNED ) * - 26 * + + 84 * - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1545
SELECT 20 * - 64 * CAST ( NULL AS INTEGER ) * - 26 * + + 84 * - 90 AS col2
----
NULL

query I rowsort
SELECT 64 * - - 4 * + 70 * - 28
----
-501760

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1547
SELECT ALL 48 + 22 AS col2, + 72 DIV - 37 - 48 DIV + - ( + COUNT( * ) ) AS col0
----
70
47

skipif mysql # not compatible
query II rowsort label-1547
SELECT ALL 48 + 22 AS col2, + 72 / - 37 - 48 / + - ( + COUNT ( * ) ) AS col0
----
70
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT NULLIF ( + 93, + COUNT( * ) * - ( + ( + + 63 ) ) + ( 3 ) ) * + 69
----
6417

skipif mysql # not compatible
query I rowsort label-1548
SELECT NULLIF ( + 93, + COUNT ( * ) * - ( + ( + + 63 ) ) + ( 3 ) ) * + 69
----
6417

query I rowsort
SELECT ALL 21 + 69
----
90

query II rowsort
SELECT 70 * - - 42 - 25, + 55 * + 73 col0
----
2915
4015

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

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

query I rowsort
SELECT ALL 15 * - 50
----
-750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1553
SELECT 59 * - - 47 * CASE WHEN ( NULL ) <= + CASE + + 4 WHEN + CAST( NULL AS SIGNED ) * 73 - + 60 THEN + 5 END THEN ( CASE - 38 WHEN 41 * 32 THEN 71 WHEN COUNT( * ) * - 94 THEN + COUNT( * ) WHEN - 6 * 9 THEN MIN( 56 ) ELSE 12 END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1553
SELECT 59 * - - 47 * CASE WHEN ( NULL ) <= + CASE + + 4 WHEN + CAST ( NULL AS INTEGER ) * 73 - + 60 THEN + 5 END THEN ( CASE - 38 WHEN 41 * 32 THEN 71 WHEN COUNT ( * ) * - 94 THEN + COUNT ( * ) WHEN - 6 * 9 THEN MIN ( 56 ) ELSE 12 END ) END
----
NULL

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

query I rowsort
SELECT DISTINCT 8 + - + 36 AS col1
----
-28

query I rowsort
SELECT ALL 67 + 15
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT ALL 37 * - + MIN( + - 3 ) col1
----
111

skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL 37 * - + MIN ( + - 3 ) col1
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1558
SELECT 49 + 53 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1558
SELECT 49 + 53 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 84 * - NULLIF ( 85, - ( 43 ) ) AS col1
----
-7140

query II rowsort
SELECT 1 AS col1, 21 AS col2
----
1
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1561
SELECT CAST( + 78 AS SIGNED ) + COALESCE ( + + MAX( ALL - 8 ), - COUNT( * ), 76 DIV COUNT( - 22 ) ) * 73
----
-506

skipif mysql # not compatible
query I rowsort label-1561
SELECT CAST ( + 78 AS INTEGER ) + COALESCE ( + + MAX ( ALL - 8 ), - COUNT ( * ), 76 / COUNT ( - 22 ) ) * 73
----
-506

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1563
SELECT COALESCE ( + + 8, 75 * 94 / + 37 ) * + CASE - + CASE - - 32 WHEN 82 THEN + 91 * COUNT( * ) ELSE NULL END WHEN 52 THEN NULL WHEN 57 - 39 THEN 0 / CAST( NULL AS SIGNED ) + - 16 * + 3 END / CASE 20 + 91 WHEN 38 - 7 THEN CASE 33 WHEN + COUNT( * ) * 8 THEN 45 * + COALESCE ( COUNT( * ) * 26, + 51 * - 20, + 93 - 4, + 35 ) END + + 94 WHEN - 74 * + 7 + 13 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1563
SELECT COALESCE ( + + 8, 75 * 94 / + 37 ) * + CASE - + CASE - - 32 WHEN 82 THEN + 91 * COUNT ( * ) ELSE NULL END WHEN 52 THEN NULL WHEN 57 - 39 THEN 0 / CAST ( NULL AS INTEGER ) + - 16 * + 3 END / CASE 20 + 91 WHEN 38 - 7 THEN CASE 33 WHEN + COUNT ( * ) * 8 THEN 45 * + COALESCE ( COUNT ( * ) * 26, + 51 * - 20, + 93 - 4, + 35 ) END + + 94 WHEN - 74 * + 7 + 13 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + - 84 - ( - - 59 ) AS col1
----
-143

onlyif mysql # aggregate syntax: 
query II rowsort label-1565
SELECT DISTINCT + - COUNT( * ) * - - 37 * - - COALESCE ( + + 28, - 86, COUNT( * ) ) AS col1, 45 col2
----
-1036
45

skipif mysql # not compatible
query II rowsort label-1565
SELECT DISTINCT + - COUNT ( * ) * - - 37 * - - COALESCE ( + + 28, - 86, COUNT ( * ) ) AS col1, 45 col2
----
-1036
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1566
SELECT ALL 84 * - COUNT( * ) * 94 + 38 DIV 79 + + 7 + - + NULLIF ( - ( + 33 ), 22 * + 46 ) AS col0
----
-7856

skipif mysql # not compatible
query I rowsort label-1566
SELECT ALL 84 * - COUNT ( * ) * 94 + 38 / 79 + + 7 + - + NULLIF ( - ( + 33 ), 22 * + 46 ) AS col0
----
-7856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1567
SELECT - 54 + + 14 + ( MIN( + 65 ) ) + + 78 DIV + 86 * 58 * 75 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-1567
SELECT - 54 + + 14 + ( MIN ( + 65 ) ) + + 78 / + 86 * 58 * 75 AS col2
----
25

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

skipif mysql # not compatible
query I rowsort label-1568
SELECT 9 + - - ( COUNT ( * ) ) * + COUNT ( * ) * 17 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT - COUNT( * ) - 54 + - + 74 AS col2
----
-129

skipif mysql # not compatible
query I rowsort label-1569
SELECT - COUNT ( * ) - 54 + - + 74 AS col2
----
-129

query II rowsort
SELECT ALL 89 AS col2, - 60 AS col1
----
89
-60

query II rowsort
SELECT 70, + 25 * - - 76 AS col0
----
70
1900

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT 99 + + 32 + 89 * + - 87 * + COUNT( * ) * 18 + + + 96 * + - 86 AS col2
----
-147499

skipif mysql # not compatible
query I rowsort label-1572
SELECT 99 + + 32 + 89 * + - 87 * + COUNT ( * ) * 18 + + + 96 * + - 86 AS col2
----
-147499

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1573
SELECT COUNT( DISTINCT - 62 ) DIV NULLIF ( + 28, - + 57 ) * + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1573
SELECT COUNT ( DISTINCT - 62 ) / NULLIF ( + 28, - + 57 ) * + 99 AS col0
----
0

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

query I rowsort
SELECT 17 * + + ( 35 ) + + ( 11 )
----
606

query I rowsort
SELECT + 3 + + 81 AS col0
----
84

query I rowsort
SELECT DISTINCT + 44 + + - 65 + + - 32 AS col2
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-1578
SELECT DISTINCT - COALESCE ( + ( + - 48 ), - 8 DIV + 67 )
----
48

skipif mysql # not compatible
query I rowsort label-1578
SELECT DISTINCT - COALESCE ( + ( + - 48 ), - 8 / + 67 )
----
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT DISTINCT + 94 + + COUNT( * ) col2
----
95

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT + 94 + + COUNT ( * ) col2
----
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1581
SELECT - AVG ( DISTINCT + 41 ) / - ( - CAST( NULL AS DECIMAL ) ) + + 91 * + AVG ( ALL - 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1581
SELECT - AVG ( DISTINCT + 41 ) / - ( - CAST ( NULL AS REAL ) ) + + 91 * + AVG ( ALL - 82 )
----
NULL

query I rowsort
SELECT + 83 * + 57 - - - 66 + - 68
----
4597

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT 89 + + MAX( - - 18 ) * - 99 * - 38 AS col2
----
67805

skipif mysql # not compatible
query I rowsort label-1583
SELECT 89 + + MAX ( - - 18 ) * - 99 * - 38 AS col2
----
67805

query I rowsort
SELECT + NULLIF ( - - 22, - 4 + + 98 )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1585
SELECT ALL - MAX( ALL CAST( + 53 AS SIGNED ) ) * - - 53 + + 35 AS col1
----
-2774

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL - MAX ( ALL CAST ( + 53 AS INTEGER ) ) * - - 53 + + 35 AS col1
----
-2774

query I rowsort
SELECT ALL - 39 + + + ( + 29 ) - + - NULLIF ( 46, + 11 + - 93 + + 83 - - 63 + - 1 * + 75 )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1587
SELECT DISTINCT 26 DIV - NULLIF ( COUNT( DISTINCT + 1 ), + 25 + 34 ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT 26 / - NULLIF ( COUNT ( DISTINCT + 1 ), + 25 + 34 ) col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT ALL - NULLIF ( - - 74, - + 33 / + COUNT( * ) * + 24 + - 10 + 92 ) col2
----
-74

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL - NULLIF ( - - 74, - + 33 / + COUNT ( * ) * + 24 + - 10 + 92 ) col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-1589
SELECT 49 DIV 87, CAST( NULL AS SIGNED ) + 22 + + - 81 + + CASE + ( 56 ) WHEN 0 + 30 THEN 58 * CAST( NULL AS DECIMAL ) ELSE NULL END * - 38 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1589
SELECT 49 / 87, CAST ( NULL AS INTEGER ) + 22 + + - 81 + + CASE + ( 56 ) WHEN 0 + 30 THEN 58 * CAST ( NULL AS REAL ) ELSE NULL END * - 38 AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT MIN( DISTINCT 32 ) + - 96 + 16 * - + 89 AS col0
----
-1488

skipif mysql # not compatible
query I rowsort label-1590
SELECT MIN ( DISTINCT 32 ) + - 96 + 16 * - + 89 AS col0
----
-1488

onlyif mysql # DIV for integer division: 
query I rowsort label-1591
SELECT DISTINCT + 31 DIV - ( + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-1591
SELECT DISTINCT + 31 / - ( + 53 )
----
0

query I rowsort
SELECT ALL 31 - + 92 * - - 46 AS col1
----
-4201

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT NULLIF ( + 29, 37 ) + - - 42 * + - COALESCE ( - + NULLIF ( - + 76, - 66 ), + MAX( ( 89 ) ) - MAX( + 14 ) ) * 12 + + 26 * MAX( DISTINCT 51 ) AS col0
----
-36949

skipif mysql # not compatible
query I rowsort label-1593
SELECT NULLIF ( + 29, 37 ) + - - 42 * + - COALESCE ( - + NULLIF ( - + 76, - 66 ), + MAX ( ( 89 ) ) - MAX ( + 14 ) ) * 12 + + 26 * MAX ( DISTINCT 51 ) AS col0
----
-36949

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT DISTINCT COUNT( * ) * + 64 * 74
----
4736

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT COUNT ( * ) * + 64 * 74
----
4736

query I rowsort
SELECT DISTINCT 19 * + 91 AS col1
----
1729

query I rowsort
SELECT DISTINCT 83 * 41
----
3403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1597
SELECT + 21 + + CAST( + + 15 AS SIGNED ) + - CAST( + 17 AS SIGNED ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-1597
SELECT + 21 + + CAST ( + + 15 AS INTEGER ) + - CAST ( + 17 AS INTEGER ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT + 61 * - + COALESCE ( + + 33, CASE + + 15 WHEN - ( 87 ) THEN 76 - 46 WHEN 55 THEN 97 * - 76 WHEN COUNT( * ) + + 89 THEN NULL END, 92 ) + - 11
----
-2024

skipif mysql # not compatible
query I rowsort label-1598
SELECT + 61 * - + COALESCE ( + + 33, CASE + + 15 WHEN - ( 87 ) THEN 76 - 46 WHEN 55 THEN 97 * - 76 WHEN COUNT ( * ) + + 89 THEN NULL END, 92 ) + - 11
----
-2024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1599
SELECT ( + - 82 ) * - - 54 + 55 + - CAST( NULL AS SIGNED ) + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1599
SELECT ( + - 82 ) * - - 54 + 55 + - CAST ( NULL AS INTEGER ) + + - COUNT ( * )
----
NULL

query I rowsort
SELECT + ( + ( + 14 ) ) + - - 26 AS col2
----
40

query I rowsort
SELECT ALL 14 + - 77 + 50
----
-13

query I rowsort
SELECT ALL - 48 + - 58
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-1603
SELECT - + COALESCE ( - 15, 1, 17 DIV 43 + 25 DIV - 84 DIV ( - 71 ) )
----
15

skipif mysql # not compatible
query I rowsort label-1603
SELECT - + COALESCE ( - 15, 1, 17 / 43 + 25 / - 84 / ( - 71 ) )
----
15

query I rowsort
SELECT ALL + 45 + + 50 AS col1
----
95

query I rowsort
SELECT + - 65 * + + ( + + 12 )
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT DISTINCT - 54 + + - ( + MAX( + NULLIF ( + 39, 43 / 48 ) ) ) + + + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT - 54 + + - ( + MAX ( + NULLIF ( + 39, 43 / 48 ) ) ) + + + COUNT ( * )
----
-92

query I rowsort
SELECT - + 27 * + 69
----
-1863

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT ALL - 21 * - + SUM( + 98 )
----
2058

skipif mysql # not compatible
query I rowsort label-1608
SELECT ALL - 21 * - + SUM ( + 98 )
----
2058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1609
SELECT + 69 * - + COUNT( * ) * - 75 + - 90 / - CASE 38 WHEN - SUM( DISTINCT + 40 ) + + + 85 THEN 60 WHEN + 30 THEN - 38 * - SUM( ALL CAST( NULL AS SIGNED ) ) END + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-1609
SELECT + 69 * - + COUNT ( * ) * - 75 + - 90 / - CASE 38 WHEN - SUM ( DISTINCT + 40 ) + + + 85 THEN 60 WHEN + 30 THEN - 38 * - SUM ( ALL CAST ( NULL AS INTEGER ) ) END + 43
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1610
SELECT + CAST( NULL AS SIGNED ) * + - 69 + + CASE + COUNT( * ) WHEN - - 79 THEN + - 63 + 70 END / - - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1610
SELECT + CAST ( NULL AS INTEGER ) * + - 69 + + CASE + COUNT ( * ) WHEN - - 79 THEN + - 63 + 70 END / - - 56
----
NULL

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

query I rowsort
SELECT ALL 58 * - - 81 - - 46
----
4744

query II rowsort
SELECT + 53 AS col1, 56 + - 3
----
53
53

query I rowsort
SELECT NULLIF ( + 8, 86 )
----
8

query I rowsort
SELECT NULLIF ( + 91, + 73 ) AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1616
SELECT NULLIF ( - SUM( - + ( - CAST( + 40 AS SIGNED ) ) ), + 3 * - + COUNT( * ) + - 80 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-1616
SELECT NULLIF ( - SUM ( - + ( - CAST ( + 40 AS INTEGER ) ) ), + 3 * - + COUNT ( * ) + - 80 ) AS col0
----
-40

query I rowsort
SELECT 44 * - 42 - 4 * + 57 AS col2
----
-2076

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1619
SELECT DISTINCT + 52, + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + 27 * - ( - 57 ) * + - 86 - 36 * + 14 * - 68 AS col1
----
52
NULL

skipif mysql # not compatible
query II rowsort label-1619
SELECT DISTINCT + 52, + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 27 * - ( - 57 ) * + - 86 - 36 * + 14 * - 68 AS col1
----
52
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1620
SELECT DISTINCT + CAST( - - 70 AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT + CAST ( - - 70 AS INTEGER )
----
70

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1622
SELECT - 42 * - COUNT( * ) / - CAST( NULL AS DECIMAL ) * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1622
SELECT - 42 * - COUNT ( * ) / - CAST ( NULL AS REAL ) * 37
----
NULL

query I rowsort
SELECT ALL + 18 * + - 24
----
-432

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1626
SELECT + 36 - - + 81 DIV - - COUNT( * ) DIV - + COUNT( * ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-1626
SELECT + 36 - - + 81 / - - COUNT ( * ) / - + COUNT ( * ) AS col2
----
-45

query I rowsort
SELECT ALL ( + - 4 ) col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT COUNT( 17 )
----
1

skipif mysql # not compatible
query I rowsort label-1628
SELECT COUNT ( 17 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT DISTINCT - COALESCE ( - 35, + 3 ) + COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT - COALESCE ( - 35, + 3 ) + COUNT ( * ) AS col2
----
36

query I rowsort
SELECT ALL 98 + 29
----
127

query I rowsort
SELECT ALL 2 + - - 93 AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1632
SELECT DISTINCT + 8 + - NULLIF ( + NULLIF ( CASE - + CAST( NULL AS DECIMAL ) WHEN + + 12 + - + 74 THEN NULL WHEN - 38 * + 42 * 58 THEN - ( - CAST( + 54 AS SIGNED ) ) + + COUNT( * ) * - 5 WHEN COALESCE ( 77, 23, - CASE + 3 WHEN - 82 + + COUNT( * ) THEN NULL WHEN + 68 THEN + 40 WHEN 23 THEN AVG ( - ( - 55 ) ) ELSE 81 END ) * - 58 THEN NULL ELSE 24 END, 73 * 72 + + COALESCE ( + 7, 68 * - 24 + - COALESCE ( - 45, 41 * CAST( NULL AS SIGNED ), + MIN( DISTINCT 67 ) - + 68 ) ) / 96 ), - 41 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT + 8 + - NULLIF ( + NULLIF ( CASE - + CAST ( NULL AS REAL ) WHEN + + 12 + - + 74 THEN NULL WHEN - 38 * + 42 * 58 THEN - ( - CAST ( + 54 AS INTEGER ) ) + + COUNT ( * ) * - 5 WHEN COALESCE ( 77, 23, - CASE + 3 WHEN - 82 + + COUNT ( * ) THEN NULL WHEN + 68 THEN + 40 WHEN 23 THEN AVG ( - ( - 55 ) ) ELSE 81 END ) * - 58 THEN NULL ELSE 24 END, 73 * 72 + + COALESCE ( + 7, 68 * - 24 + - COALESCE ( - 45, 41 * CAST ( NULL AS INTEGER ), + MIN ( DISTINCT 67 ) - + 68 ) ) / 96 ), - 41 ) AS col2
----
-16

query I rowsort
SELECT + 86 + + + 96 + - 5 * 47
----
-53

query I rowsort
SELECT DISTINCT 29 + - - 5
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT ALL - 16 + + 71 + COALESCE ( + 42, - NULLIF ( - 44, - + CASE - COUNT( * ) WHEN 28 + + + COUNT( * ) THEN + AVG ( ALL 43 ) - 59 WHEN 76 + 0 THEN NULL ELSE NULL END * 17 ) )
----
97

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL - 16 + + 71 + COALESCE ( + 42, - NULLIF ( - 44, - + CASE - COUNT ( * ) WHEN 28 + + + COUNT ( * ) THEN + AVG ( ALL 43 ) - 59 WHEN 76 + 0 THEN NULL ELSE NULL END * 17 ) )
----
97

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

query I rowsort
SELECT - - ( 42 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1638
SELECT - + COALESCE ( + 14, 97 ) + - + MAX( ALL + 38 ) * 79 AS col1, + CASE - - CAST( + 21 AS SIGNED ) WHEN - + 22 * 96 THEN ( + 57 ) WHEN + 9 * ( 42 ) + + 95 THEN NULL END * 27
----
-3016
NULL

skipif mysql # not compatible
query II rowsort label-1638
SELECT - + COALESCE ( + 14, 97 ) + - + MAX ( ALL + 38 ) * 79 AS col1, + CASE - - CAST ( + 21 AS INTEGER ) WHEN - + 22 * 96 THEN ( + 57 ) WHEN + 9 * ( 42 ) + + 95 THEN NULL END * 27
----
-3016
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT DISTINCT + NULLIF ( + 62, - 15 + COUNT( * ) + + 3 + + 68 + 77 + - ( - - 4 ) - + + ( 26 ) * - 39 * 47 )
----
62

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT + NULLIF ( + 62, - 15 + COUNT ( * ) + + 3 + + 68 + 77 + - ( - - 4 ) - + + ( 26 ) * - 39 * 47 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT ALL - COALESCE ( - COUNT( * ), - ( - + COUNT( * ) ) + + 4, 11 + + 21 ) * + + 95 * + 54
----
5130

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL - COALESCE ( - COUNT ( * ), - ( - + COUNT ( * ) ) + + 4, 11 + + 21 ) * + + 95 * + 54
----
5130

query II rowsort
SELECT ALL + 4 AS col1, 7 AS col1
----
4
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT DISTINCT 47 DIV - 60 - 95
----
-95

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT 47 / - 60 - 95
----
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1644
SELECT - 97 / + ( + 29 ) + - CAST( NULL AS DECIMAL ) + + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1644
SELECT - 97 / + ( + 29 ) + - CAST ( NULL AS REAL ) + + 52 AS col1
----
NULL

query I rowsort
SELECT + 9 * + + 97
----
873

query I rowsort
SELECT ALL 14 * 2
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1647
SELECT + 73 DIV - + 27
----
-2

skipif mysql # not compatible
query I rowsort label-1647
SELECT + 73 / - + 27
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1648
SELECT CAST( NULL AS SIGNED ) * 52 * MIN( + - 19 ) + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1648
SELECT CAST ( NULL AS INTEGER ) * 52 * MIN ( + - 19 ) + + 96
----
NULL

query II rowsort
SELECT DISTINCT + 55, - 46 + + - 82 AS col0
----
55
-128

query I rowsort
SELECT + ( 75 ) + - 16 AS col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1651
SELECT - 43 + + 26, + ( - 63 ) DIV + + 58 * ( + - COUNT( - - 37 ) ) AS col0
----
-17
1

skipif mysql # not compatible
query II rowsort label-1651
SELECT - 43 + + 26, + ( - 63 ) / + + 58 * ( + - COUNT ( - - 37 ) ) AS col0
----
-17
1

query II rowsort
SELECT ALL + 39, + 10 AS col0
----
39
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT - 19 * + - ( + 79 ) * + + COUNT( * ) AS col1
----
1501

skipif mysql # not compatible
query I rowsort label-1653
SELECT - 19 * + - ( + 79 ) * + + COUNT ( * ) AS col1
----
1501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1654
SELECT + CAST( - - COUNT( 46 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1654
SELECT + CAST ( - - COUNT ( 46 ) AS INTEGER )
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1656
SELECT CASE - 40 WHEN 8 THEN NULL WHEN - 94 * 49 * 7 THEN NULL ELSE + - 9 DIV - ( - ( - - 80 ) ) END
----
0

skipif mysql # not compatible
query I rowsort label-1656
SELECT CASE - 40 WHEN 8 THEN NULL WHEN - 94 * 49 * 7 THEN NULL ELSE + - 9 / - ( - ( - - 80 ) ) END
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1657
SELECT 87 * 33 * + MIN( + ( 1 ) ) + - COUNT( * ) AS col0, 13 * CAST( NULL AS SIGNED ) + + 5 AS col0
----
2870
NULL

skipif mysql # not compatible
query II rowsort label-1657
SELECT 87 * 33 * + MIN ( + ( 1 ) ) + - COUNT ( * ) AS col0, 13 * CAST ( NULL AS INTEGER ) + + 5 AS col0
----
2870
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1658
SELECT CASE - 13 WHEN - 47 * - 5 THEN + CAST( NULL AS DECIMAL ) * + + ( + 5 ) + + 25 + CASE - - 56 WHEN - 91 THEN 5 ELSE 32 + COUNT( * ) END + 45 WHEN - 85 * - 16 + COUNT( * ) THEN + SUM( 57 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1658
SELECT CASE - 13 WHEN - 47 * - 5 THEN + CAST ( NULL AS REAL ) * + + ( + 5 ) + + 25 + CASE - - 56 WHEN - 91 THEN 5 ELSE 32 + COUNT ( * ) END + 45 WHEN - 85 * - 16 + COUNT ( * ) THEN + SUM ( 57 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1659
SELECT - 83 * - 64, 87 * - + 99 + - AVG ( ALL + CASE + NULLIF ( 54, + 16 ) WHEN + - 59 THEN - ( 31 ) + ( 47 ) WHEN - 74 - - CAST( 53 + 62 AS SIGNED ) THEN NULL END ) AS col1
----
5312
NULL

skipif mysql # not compatible
query II rowsort label-1659
SELECT - 83 * - 64, 87 * - + 99 + - AVG ( ALL + CASE + NULLIF ( 54, + 16 ) WHEN + - 59 THEN - ( 31 ) + ( 47 ) WHEN - 74 - - CAST ( 53 + 62 AS INTEGER ) THEN NULL END ) AS col1
----
5312
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT - MAX( - 34 ) + + + 46 * - - 89
----
4128

skipif mysql # not compatible
query I rowsort label-1660
SELECT - MAX ( - 34 ) + + + 46 * - - 89
----
4128

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT ALL + COUNT( * ) * ( - 73 ) + + - 53
----
-126

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL + COUNT ( * ) * ( - 73 ) + + - 53
----
-126

query I rowsort
SELECT ALL + - 24 * - 92 + + 57 * + - 86
----
-2694

query I rowsort
SELECT DISTINCT - + 19 * - 99 AS col0
----
1881

query I rowsort
SELECT DISTINCT + 79 + - + 33 AS col2
----
46

query I rowsort
SELECT - - COALESCE ( + 27, 91, + 91 )
----
27

query I rowsort
SELECT DISTINCT - - 60 + - - 4 * + 61 AS col2
----
304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1667
SELECT MAX( ALL + + 96 ) * + 83 * - 50 DIV + COUNT( * ) AS col0
----
-398400

skipif mysql # not compatible
query I rowsort label-1667
SELECT MAX ( ALL + + 96 ) * + 83 * - 50 / + COUNT ( * ) AS col0
----
-398400

query II rowsort
SELECT - 76 AS col2, - 56 - + 72 + + 79 AS col2
----
-76
-49

query II rowsort
SELECT - 37 AS col2, 98 AS col1
----
-37
98

query II rowsort
SELECT ALL NULLIF ( - - 86, + 58 + + + 95 ) AS col2, 35 * + ( - - 57 ) + + NULLIF ( 34, + + 36 * ( - 87 ) - - 85 )
----
86
2029

onlyif mysql # aggregate syntax: 
query II rowsort label-1671
SELECT - ( + 76 ) * - - MAX( DISTINCT + 20 ) AS col1, 45
----
-1520
45

skipif mysql # not compatible
query II rowsort label-1671
SELECT - ( + 76 ) * - - MAX ( DISTINCT + 20 ) AS col1, 45
----
-1520
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1672
SELECT + 81 + + ( ( 49 ) ) DIV - 17
----
79

skipif mysql # not compatible
query I rowsort label-1672
SELECT + 81 + + ( ( 49 ) ) / - 17
----
79

query I rowsort
SELECT DISTINCT 21 * + 91
----
1911

query I rowsort
SELECT ALL - 13 * - 29 AS col0
----
377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1675
SELECT CASE + + 33 WHEN CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) + + 27 - CASE 37 WHEN - - 89 + ( + COUNT( * ) ) THEN NULL ELSE - AVG ( 85 ) * + 67 - COUNT( * ) * 13 END - + 67 THEN NULL WHEN 15 THEN 94 END + - 76 * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1675
SELECT CASE + + 33 WHEN CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) + + 27 - CASE 37 WHEN - - 89 + ( + COUNT ( * ) ) THEN NULL ELSE - AVG ( 85 ) * + 67 - COUNT ( * ) * 13 END - + 67 THEN NULL WHEN 15 THEN 94 END + - 76 * + 5
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1676
SELECT - SUM( ALL - COALESCE ( - ( - - 18 ), - 90 + + 4 ) ) AS col2, + ( + - 17 )
----
-18
-17

skipif mysql # not compatible
query II rowsort label-1676
SELECT - SUM ( ALL - COALESCE ( - ( - - 18 ), - 90 + + 4 ) ) AS col2, + ( + - 17 )
----
-18
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1677
SELECT ALL + CAST( + 67 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL + CAST ( + 67 AS INTEGER )
----
67

query I rowsort
SELECT + 8 * 48
----
384

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT ALL + ( + COUNT( * ) ) * - 61 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL + ( + COUNT ( * ) ) * - 61 AS col2
----
-61

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

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT - + 76 * COUNT ( 5 ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT ( - ( + COUNT( * ) ) ) + + + 23 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-1681
SELECT ( - ( + COUNT ( * ) ) ) + + + 23 AS col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1682
SELECT 53 DIV SUM( - 44 ) * 60 + - - 84 AS col2, 24 AS col1
----
24
24

skipif mysql # not compatible
query II rowsort label-1682
SELECT 53 / SUM ( - 44 ) * 60 + - - 84 AS col2, 24 AS col1
----
24
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1683
SELECT ALL - COALESCE ( 61, + - 21 * + + COUNT( ALL 4 ) * + 54 + 6 + - + CAST( NULL AS SIGNED ), 5 DIV + 28 ), 86 - + 95 - + 82 col2
----
-61
-91

skipif mysql # not compatible
query II rowsort label-1683
SELECT ALL - COALESCE ( 61, + - 21 * + + COUNT ( ALL 4 ) * + 54 + 6 + - + CAST ( NULL AS INTEGER ), 5 / + 28 ), 86 - + 95 - + 82 col2
----
-61
-91

query I rowsort
SELECT 94 * + 84 col1
----
7896

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT ALL - MIN( 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL - MIN ( 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT 84 * + MAX( 82 )
----
6888

skipif mysql # not compatible
query I rowsort label-1687
SELECT 84 * + MAX ( 82 )
----
6888

query I rowsort
SELECT 3 / - CASE - - 75 WHEN - + ( - 57 ) - + 84 * 32 THEN + 53 * - 19 * + + 30 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT ALL MIN( DISTINCT 54 ) + + 40 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL MIN ( DISTINCT 54 ) + + 40 AS col0
----
94

query I rowsort
SELECT 19 * + 85 - - ( - 17 ) * + 38
----
969

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT ALL 6 * + 90 DIV - 10
----
-54

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL 6 * + 90 / - 10
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1692
SELECT ALL - - CASE 89 WHEN - - MAX( + + 61 ) * + 22 / 42 + 76 + - 44 / - CASE + CAST( + - ( + ( CAST( - 62 AS SIGNED ) ) ) AS SIGNED ) WHEN COUNT( * ) THEN - 30 WHEN + 38 THEN 0 * - 79 WHEN - 3 * 10 THEN - 1 + CAST( 91 AS SIGNED ) * - 71 ELSE NULL END / 20 THEN NULL ELSE NULLIF ( + 53, 2 ) + + 3 END AS col2
----
56

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL - - CASE 89 WHEN - - MAX ( + + 61 ) * + 22 / 42 + 76 + - 44 / - CASE + CAST ( + - ( + ( CAST ( - 62 AS INTEGER ) ) ) AS INTEGER ) WHEN COUNT ( * ) THEN - 30 WHEN + 38 THEN 0 * - 79 WHEN - 3 * 10 THEN - 1 + CAST ( 91 AS INTEGER ) * - 71 ELSE NULL END / 20 THEN NULL ELSE NULLIF ( + 53, 2 ) + + 3 END AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT ALL - - CASE + 21 WHEN 0 THEN - 71 WHEN - 22 THEN + - 27 * + + 44 * + + 72 END / + - CASE - 64 WHEN - 87 * 97 * CASE - NULLIF ( + 67, - 23 ) WHEN - 68 THEN + 54 WHEN + COUNT( * ) THEN NULL ELSE + 36 * - 65 END THEN + 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL - - CASE + 21 WHEN 0 THEN - 71 WHEN - 22 THEN + - 27 * + + 44 * + + 72 END / + - CASE - 64 WHEN - 87 * 97 * CASE - NULLIF ( + 67, - 23 ) WHEN - 68 THEN + 54 WHEN + COUNT ( * ) THEN NULL ELSE + 36 * - 65 END THEN + 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT ALL + 49 + - MAX( ALL 24 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL + 49 + - MAX ( ALL 24 ) AS col1
----
25

query II rowsort
SELECT DISTINCT + 27 + + 10 AS col2, + 45 * - ( - - 95 ) + 11 AS col0
----
37
-4264

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT ALL - 69 + 2 + 50 * - + 63 * + COUNT( * ) col1
----
-3217

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL - 69 + 2 + 50 * - + 63 * + COUNT ( * ) col1
----
-3217

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT ALL + MIN( ALL - 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL + MIN ( ALL - 87 ) AS col1
----
-87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT - 90 - - - 90 * + ( + COUNT( * ) )
----
-180

skipif mysql # not compatible
query I rowsort label-1699
SELECT - 90 - - - 90 * + ( + COUNT ( * ) )
----
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1700
SELECT 20 * + - 91 * - + COALESCE ( - + 87, - 68 ) + CAST( + 9 AS SIGNED ) AS col1
----
-158331

skipif mysql # not compatible
query I rowsort label-1700
SELECT 20 * + - 91 * - + COALESCE ( - + 87, - 68 ) + CAST ( + 9 AS INTEGER ) AS col1
----
-158331

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT - 4 * NULLIF ( - COUNT( * ), - 65 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-1701
SELECT - 4 * NULLIF ( - COUNT ( * ), - 65 ) AS col0
----
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT ALL + 34 - - COUNT( 72 )
----
35

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL + 34 - - COUNT ( 72 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT DISTINCT - 75 * - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT - 75 * - COUNT ( * )
----
75

query I rowsort
SELECT ALL - 42 * + 55 * 60
----
-138600

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT DISTINCT NULLIF ( - MAX( - - 21 ), - 24 )
----
-21

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT NULLIF ( - MAX ( - - 21 ), - 24 )
----
-21

query I rowsort
SELECT 48 + - - 77 * 13 AS col0
----
1049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1708
SELECT ALL + CASE - 52 WHEN + 51 THEN NULL WHEN + + 24 / 34 THEN - CAST( NULL AS SIGNED ) / COUNT( * ) * - 23 END - MAX( DISTINCT - - 76 ) * 37 + - CASE - 1 WHEN 11 + - 83 THEN 16 WHEN - COUNT( * ) THEN 20 + NULLIF ( - COUNT( * ) + + 89, - 4 / + 36 + COALESCE ( 76 - 48, COUNT( * ), CASE 27 WHEN COUNT( * ) / - 85 THEN 85 / + 17 END * 39 ) ) * CAST( NULL AS SIGNED ) END + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL + CASE - 52 WHEN + 51 THEN NULL WHEN + + 24 / 34 THEN - CAST ( NULL AS INTEGER ) / COUNT ( * ) * - 23 END - MAX ( DISTINCT - - 76 ) * 37 + - CASE - 1 WHEN 11 + - 83 THEN 16 WHEN - COUNT ( * ) THEN 20 + NULLIF ( - COUNT ( * ) + + 89, - 4 / + 36 + COALESCE ( 76 - 48, COUNT ( * ), CASE 27 WHEN COUNT ( * ) / - 85 THEN 85 / + 17 END * 39 ) ) * CAST ( NULL AS INTEGER ) END + 21
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1709
SELECT - 37 DIV + - 81 col2
----
0

skipif mysql # not compatible
query I rowsort label-1709
SELECT - 37 / + - 81 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT - SUM( - 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-1710
SELECT - SUM ( - 32 ) AS col0
----
32

query I rowsort
SELECT - ( + NULLIF ( - + 16, - + 23 ) ) AS col0
----
16

query I rowsort
SELECT 75 - + 13 AS col2
----
62

query II rowsort
SELECT - 3 col2, 94
----
-3
94

onlyif mysql # DIV for integer division: 
query II rowsort label-1714
SELECT 84 + + + 67 DIV + 72 col2, 82 * 54
----
84
4428

skipif mysql # not compatible
query II rowsort label-1714
SELECT 84 + + + 67 / + 72 col2, 82 * 54
----
84
4428

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT ALL MIN( 49 ) * + 54 + 83 + + 53
----
2782

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL MIN ( 49 ) * + 54 + 83 + + 53
----
2782

query I rowsort
SELECT 94 * - + 71 AS col0
----
-6674

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT ALL ( - + 4 ) * + + 6 + + + 81 * 16 + - COUNT( * ) AS col1
----
1271

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL ( - + 4 ) * + + 6 + + + 81 * 16 + - COUNT ( * ) AS col1
----
1271

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT DISTINCT + COUNT( * ) * 49 * 16 + COUNT( * ) col1
----
785

skipif mysql # not compatible
query I rowsort label-1718
SELECT DISTINCT + COUNT ( * ) * 49 * 16 + COUNT ( * ) col1
----
785

query I rowsort
SELECT 10 - + + COALESCE ( - 0, - 11 * - 14 )
----
10

query I rowsort
SELECT 84 + + 14 col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT 93 + - COUNT( * ) + - + 8 + + 83
----
167

skipif mysql # not compatible
query I rowsort label-1721
SELECT 93 + - COUNT ( * ) + - + 8 + + 83
----
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1722
SELECT 29 * ( - 29 ) * - 59 - - + CAST( NULL AS SIGNED ) + + + NULLIF ( + ( + + CAST( NULL AS SIGNED ) ), + + COUNT( - 79 ) + + - 75 ) / + 35 * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT 29 * ( - 29 ) * - 59 - - + CAST ( NULL AS INTEGER ) + + + NULLIF ( + ( + + CAST ( NULL AS INTEGER ) ), + + COUNT ( - 79 ) + + - 75 ) / + 35 * - 38
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1723
SELECT ALL - ( - 7 ) * + 91 * 98 * - 68 * - 73 + - ( + 2 ) * - 81 DIV 45 DIV 84
----
309882664

skipif mysql # not compatible
query I rowsort label-1723
SELECT ALL - ( - 7 ) * + 91 * 98 * - 68 * - 73 + - ( + 2 ) * - 81 / 45 / 84
----
309882664

query II rowsort
SELECT + 81, 85 AS col0
----
81
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT - 0 * ( COUNT( * ) ) * + 89 + - NULLIF ( + + 82, - + 12 + - 21 + - 86 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-1725
SELECT - 0 * ( COUNT ( * ) ) * + 89 + - NULLIF ( + + 82, - + 12 + - 21 + - 86 ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT ALL - COUNT( DISTINCT - + 76 ) * + 72 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL - COUNT ( DISTINCT - + 76 ) * + 72 AS col1
----
-72

query I rowsort
SELECT + 53 + 45 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT ALL + 42 * - - 35 * + COUNT( * ) + - + 42
----
1428

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL + 42 * - - 35 * + COUNT ( * ) + - + 42
----
1428

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1729
SELECT ALL + 18 * CAST( NULL AS DECIMAL ) + 53 - - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL + 18 * CAST ( NULL AS REAL ) + 53 - - 7
----
NULL

query I rowsort
SELECT + - ( + 63 ) * 33 - + + 94 col0
----
-2173

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT - 22 * - MIN( - 13 ) + + - 26 + + 39 * ( MIN( ALL - 84 ) ) + MAX( ALL 94 ) - COUNT( - 20 ) * + + 58 + - 51 * 37
----
-5439

skipif mysql # not compatible
query I rowsort label-1731
SELECT - 22 * - MIN ( - 13 ) + + - 26 + + 39 * ( MIN ( ALL - 84 ) ) + MAX ( ALL 94 ) - COUNT ( - 20 ) * + + 58 + - 51 * 37
----
-5439

query I rowsort
SELECT + + 46 * 26 + 37 + - 12 AS col1
----
1221

query I rowsort
SELECT ALL - 38 - + 6
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1734
SELECT + - 32 * CAST( NULL AS SIGNED ) * - - ( + - CASE + 23 WHEN - 24 * NULLIF ( + 55, + + COUNT( * ) ) THEN NULL WHEN - 83 THEN 92 / 14 * 26 + + 22 * + 75 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1734
SELECT + - 32 * CAST ( NULL AS INTEGER ) * - - ( + - CASE + 23 WHEN - 24 * NULLIF ( + 55, + + COUNT ( * ) ) THEN NULL WHEN - 83 THEN 92 / 14 * 26 + + 22 * + 75 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT + 97 * COUNT( * ) * - + 2 * + 51
----
-9894

skipif mysql # not compatible
query I rowsort label-1735
SELECT + 97 * COUNT ( * ) * - + 2 * + 51
----
-9894

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1736
SELECT DISTINCT + CASE + 1 WHEN + COUNT( * ) * + + 12 - + + 5 * + CAST( + + COUNT( * ) AS SIGNED ) + - 37 * - 30 + SUM( DISTINCT + - 20 ) THEN NULL WHEN - + 37 THEN - 61 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT + CASE + 1 WHEN + COUNT ( * ) * + + 12 - + + 5 * + CAST ( + + COUNT ( * ) AS INTEGER ) + - 37 * - 30 + SUM ( DISTINCT + - 20 ) THEN NULL WHEN - + 37 THEN - 61 END AS col0
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1737
SELECT DISTINCT COUNT ( * ) AS col2, - ( - - 2 )
----
1
-2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1739
SELECT + + CAST( NULL AS SIGNED ) / + + 2 + COUNT( * ) * + + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1739
SELECT + + CAST ( NULL AS INTEGER ) / + + 2 + COUNT ( * ) * + + 38 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1740
SELECT ALL + 11 DIV 83 + - 17
----
-17

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL + 11 / 83 + - 17
----
-17

query I rowsort
SELECT + + 5 * + 60 AS col2
----
300

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

query I rowsort
SELECT - + 25 + - 37
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT ALL - MAX( ALL + + 63 ) * ( - 15 )
----
945

skipif mysql # not compatible
query I rowsort label-1744
SELECT ALL - MAX ( ALL + + 63 ) * ( - 15 )
----
945

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT + MIN( - 71 ) + - ( 61 ) AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-1745
SELECT + MIN ( - 71 ) + - ( 61 ) AS col1
----
-132

query I rowsort
SELECT DISTINCT 97 + + 30 AS col0
----
127

query I rowsort
SELECT DISTINCT - COALESCE ( - 24, - + 4 ) + + - 48 * + 69
----
-3288

query I rowsort
SELECT + 14 + - 87 AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1749
SELECT ALL - 25 / - 5 * CAST( NULL AS SIGNED ) / + - AVG ( ALL 55 ) / 6 + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-1749
SELECT ALL - 25 / - 5 * CAST ( NULL AS INTEGER ) / + - AVG ( ALL 55 ) / 6 + - 57
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1750
SELECT COUNT ( * ) / 94 * + 41 + + + 81 AS col1
----
81

query I rowsort
SELECT ( - 65 ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT - 60 * ( - COUNT( * ) ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-1752
SELECT - 60 * ( - COUNT ( * ) ) AS col1
----
60

query I rowsort
SELECT ALL + ( + ( 22 ) ) * + + 98 + + 29 AS col2
----
2185

onlyif mysql # DIV for integer division: 
query I rowsort label-1754
SELECT - 77 DIV - + 51
----
1

skipif mysql # not compatible
query I rowsort label-1754
SELECT - 77 / - + 51
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1755
SELECT ALL + 48 DIV + + 31 + - 74 - SUM( + 85 ) - 63 + + 80
----
-141

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL + 48 / + + 31 + - 74 - SUM ( + 85 ) - 63 + + 80
----
-141

query I rowsort
SELECT DISTINCT - 92 * + 48 + - 16 col2
----
-4432

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT ALL + COUNT( * ) * + 7 * - 8 - + - 56
----
0

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL + COUNT ( * ) * + 7 * - 8 - + - 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT DISTINCT + SUM( DISTINCT - - 21 )
----
21

skipif mysql # not compatible
query I rowsort label-1758
SELECT DISTINCT + SUM ( DISTINCT - - 21 )
----
21

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

skipif mysql # not compatible
query I rowsort label-1759
SELECT - COUNT ( * ) / + - 11 col0
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1761
SELECT ALL - - 99 * + 49 + + ( - - 88 ) AS col1, + COUNT( * ) AS col1
----
4939
1

skipif mysql # not compatible
query II rowsort label-1761
SELECT ALL - - 99 * + 49 + + ( - - 88 ) AS col1, + COUNT ( * ) AS col1
----
4939
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1762
SELECT DISTINCT + 0 * - CAST( - 95 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1762
SELECT DISTINCT + 0 * - CAST ( - 95 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT + + NULLIF ( + - 87, - - 7 )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1764
SELECT - COUNT( * ) - - - 74 DIV + ( + 82 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1764
SELECT - COUNT ( * ) - - - 74 / + ( + 82 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1765
SELECT ALL + - CAST( + 45 AS SIGNED ) AS col1, + 55 AS col1
----
-45
55

skipif mysql # not compatible
query II rowsort label-1765
SELECT ALL + - CAST ( + 45 AS INTEGER ) AS col1, + 55 AS col1
----
-45
55

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

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

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

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

query II rowsort
SELECT + + 20 * + - 51 AS col0, - 2 * + 94 AS col2
----
-1020
-188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1769
SELECT ALL + CAST( 44 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL + CAST ( 44 AS INTEGER )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-1770
SELECT - - 51 + + COUNT( * ), + 86 col1
----
52
86

skipif mysql # not compatible
query II rowsort label-1770
SELECT - - 51 + + COUNT ( * ), + 86 col1
----
52
86

query I rowsort
SELECT ALL + 82 * - 86 * 59 * - - 91 * - 36 AS col2
----
1363038768

query I rowsort
SELECT - + 76 + 31
----
-45

query I rowsort
SELECT + + 71 - - 4 + + ( + 84 ) col1
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1774
SELECT - 28 * + - 14 + - 14 + + CAST( NULL AS SIGNED ) * - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1774
SELECT - 28 * + - 14 + - 14 + + CAST ( NULL AS INTEGER ) * - 72 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1775
SELECT + 97 * + 71 - - - MAX( ALL COALESCE ( 72, - NULLIF ( + + 48, - 29 * 89 ) ) ) + + 99 - - 88 * + - 70 / 27 + 85 + CAST( NULL AS SIGNED ) * MIN( DISTINCT 48 ) * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-1775
SELECT + 97 * + 71 - - - MAX ( ALL COALESCE ( 72, - NULLIF ( + + 48, - 29 * 89 ) ) ) + + 99 - - 88 * + - 70 / 27 + 85 + CAST ( NULL AS INTEGER ) * MIN ( DISTINCT 48 ) * 51
----
NULL

query I rowsort
SELECT + - 96 - + 67 + + 58
----
-105

query II rowsort
SELECT DISTINCT + 32 * + 77, 1 * 80 AS col0
----
2464
80

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1779
SELECT + 55 + - CAST( 72 AS SIGNED ) col0
----
-17

skipif mysql # not compatible
query I rowsort label-1779
SELECT + 55 + - CAST ( 72 AS INTEGER ) col0
----
-17

query I rowsort
SELECT ALL - ( - 99 ) + + 44
----
143

query I rowsort
SELECT + - 94 * + + 6 AS col0
----
-564

query II rowsort
SELECT DISTINCT - 88 + 91 AS col0, 70
----
3
70

query I rowsort
SELECT ALL 56 * 74 AS col0
----
4144

query I rowsort
SELECT + 26 + 21 + - 89 + + 59 AS col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1785
SELECT ALL 38 DIV 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL 38 / 65 AS col1
----
0

query I rowsort
SELECT ALL 50 + - - 16 * + 74
----
1234

query I rowsort
SELECT + 55 + + 39
----
94

query II rowsort
SELECT 56 AS col2, - 38 col1
----
56
-38

query I rowsort
SELECT + 37 * - 38
----
-1406

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

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT COUNT ( * ) + 55 AS col1
----
56

query I rowsort
SELECT - 72 + - - 27 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-1792
SELECT ALL 84 - + MAX( + + 88 ) + + NULLIF ( 70, - 89 ) AS col1, - 85 * + 27 * + + 32 col2
----
66
-73440

skipif mysql # not compatible
query II rowsort label-1792
SELECT ALL 84 - + MAX ( + + 88 ) + + NULLIF ( 70, - 89 ) AS col1, - 85 * + 27 * + + 32 col2
----
66
-73440

onlyif mysql # DIV for integer division: 
query I rowsort label-1793
SELECT 60 DIV - 72 + + 7 * + ( 52 ) AS col0
----
364

skipif mysql # not compatible
query I rowsort label-1793
SELECT 60 / - 72 + + 7 * + ( 52 ) AS col0
----
364

query I rowsort
SELECT 47 * ( 91 )
----
4277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1795
SELECT CAST( NULL AS SIGNED ) + - NULLIF ( + + 17, COUNT( * ) ) + - + MAX( DISTINCT + 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1795
SELECT CAST ( NULL AS INTEGER ) + - NULLIF ( + + 17, COUNT ( * ) ) + - + MAX ( DISTINCT + 26 )
----
NULL

query I rowsort
SELECT ALL + 24 - + 74
----
-50

query I rowsort
SELECT - 56 + + 13
----
-43

query II rowsort
SELECT - 0 * 69 - - 39 AS col0, - NULLIF ( - 63, + + 99 )
----
39
63

query I rowsort
SELECT 74 * - - 86 AS col1
----
6364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1800
SELECT DISTINCT - + CAST( + 14 AS SIGNED ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT - + CAST ( + 14 AS INTEGER ) AS col2
----
-14

query II rowsort
SELECT ALL - 64 AS col1, + COALESCE ( - 32, - 21, - - 14 * + 25 )
----
-64
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT ALL - + MAX( DISTINCT - - 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-1802
SELECT ALL - + MAX ( DISTINCT - - 66 ) AS col2
----
-66

query I rowsort
SELECT 54 + - 17
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1804
SELECT 84 DIV + 79
----
1

skipif mysql # not compatible
query I rowsort label-1804
SELECT 84 / + 79
----
1

query I rowsort
SELECT DISTINCT - 44 * 61
----
-2684

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT ALL - NULLIF ( 51, + + 0 + + NULLIF ( + + 86, + + 74 + + COUNT( * ) ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL - NULLIF ( 51, + + 0 + + NULLIF ( + + 86, + + 74 + + COUNT ( * ) ) ) AS col1
----
-51

query I rowsort
SELECT DISTINCT + 53 * 9 - ( 41 ) AS col2
----
436

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

skipif mysql # not compatible
query I rowsort label-1808
SELECT 64 / COUNT ( * ) + 26
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT - ( - COUNT( * ) ) * COALESCE ( + 55, - 21 )
----
55

skipif mysql # not compatible
query I rowsort label-1809
SELECT - ( - COUNT ( * ) ) * COALESCE ( + 55, - 21 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT DISTINCT + ( + + NULLIF ( - ( COUNT( * ) ), + 96 * + 3 + + 72 ) ) + + - MAX( DISTINCT - 97 )
----
96

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT + ( + + NULLIF ( - ( COUNT ( * ) ), + 96 * + 3 + + 72 ) ) + + - MAX ( DISTINCT - 97 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT DISTINCT + + 38 + - + COUNT( * ) * + - 80 * - + 70 col2
----
-5562

skipif mysql # not compatible
query I rowsort label-1811
SELECT DISTINCT + + 38 + - + COUNT ( * ) * + - 80 * - + 70 col2
----
-5562

query I rowsort
SELECT ALL ( - 24 ) + + 25
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT 2 * + + NULLIF ( CASE COUNT( * ) WHEN + 42 / - + 73 * + 37 + + 89 THEN NULL WHEN + 4 THEN + - 39 END, - + 55 + + ( 59 ) + 96 + - - 37 + - 62 * - 7 * 86 ) * - ( + 22 / - MAX( DISTINCT + 28 ) + 53 ) - + COUNT( ALL 11 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1813
SELECT 2 * + + NULLIF ( CASE COUNT ( * ) WHEN + 42 / - + 73 * + 37 + + 89 THEN NULL WHEN + 4 THEN + - 39 END, - + 55 + + ( 59 ) + 96 + - - 37 + - 62 * - 7 * 86 ) * - ( + 22 / - MAX ( DISTINCT + 28 ) + 53 ) - + COUNT ( ALL 11 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT ALL + 59 + + - 37 - + MAX( + + 52 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL + 59 + + - 37 - + MAX ( + + 52 ) AS col0
----
-30

query II rowsort
SELECT ALL 45 AS col2, 3 + 15
----
45
18

onlyif mysql # DIV for integer division: 
query I rowsort label-1816
SELECT DISTINCT ( 98 ) * 48 * ( - + 90 ) + - 67 DIV - - 94 * + 48
----
-423360

skipif mysql # not compatible
query I rowsort label-1816
SELECT DISTINCT ( 98 ) * 48 * ( - + 90 ) + - 67 / - - 94 * + 48
----
-423360

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT 19 + + - ( + NULLIF ( + 15, - + NULLIF ( CASE WHEN - 93 IS NOT NULL THEN NULL ELSE - 48 END, - 84 + - 28 + - - 74 ) * + 17 * COUNT( * ) / - MAX( + - 72 ) + 64 ) ) + COALESCE ( 33, - 46 ) * + 70
----
2314

skipif mysql # not compatible
query I rowsort label-1817
SELECT 19 + + - ( + NULLIF ( + 15, - + NULLIF ( CASE WHEN - 93 IS NOT NULL THEN NULL ELSE - 48 END, - 84 + - 28 + - - 74 ) * + 17 * COUNT ( * ) / - MAX ( + - 72 ) + 64 ) ) + COALESCE ( 33, - 46 ) * + 70
----
2314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1818
SELECT DISTINCT 44 + + CAST( NULL AS SIGNED ) + + + CASE - CAST( NULL AS SIGNED ) WHEN 66 * + 32 / - 2 + + 90 THEN + - 56 WHEN 29 THEN NULL WHEN 92 + 85 + + 31 / + 68 THEN NULL WHEN + NULLIF ( 73, 49 ) THEN NULL ELSE 87 + + 86 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT 44 + + CAST ( NULL AS INTEGER ) + + + CASE - CAST ( NULL AS INTEGER ) WHEN 66 * + 32 / - 2 + + 90 THEN + - 56 WHEN 29 THEN NULL WHEN 92 + 85 + + 31 / + 68 THEN NULL WHEN + NULLIF ( 73, 49 ) THEN NULL ELSE 87 + + 86 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1819
SELECT NULLIF ( 53, + 83 ) + + + COUNT( * ) DIV - - 21 + + - 94 + + 14 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-1819
SELECT NULLIF ( 53, + 83 ) + + + COUNT ( * ) / - - 21 + + - 94 + + 14 AS col1
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-1820
SELECT 32 * + 80, + 33 + - + 95 DIV - 82 - + - 7 col0
----
2560
41

skipif mysql # not compatible
query II rowsort label-1820
SELECT 32 * + 80, + 33 + - + 95 / - 82 - + - 7 col0
----
2560
41

query I rowsort
SELECT 3 * - 58 col0
----
-174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1822
SELECT ALL 96 * COUNT( * ) DIV 7 * 89
----
1157

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL 96 * COUNT ( * ) / 7 * 89
----
1157

query I rowsort
SELECT 9 + + - 1 AS col0
----
8

query I rowsort
SELECT DISTINCT - 55 - - 57 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT COUNT( * ) + - - COUNT( * ) + + CASE - COUNT( * ) WHEN - ( 23 ) / + 64 * - 94 * + 1 + - 69 + - CASE - COUNT( * ) WHEN 57 THEN + CASE ( + 47 ) WHEN + 6 * - COUNT( * ) THEN 44 END * - 60 - 99 WHEN 83 THEN NULL END * - MIN( + 3 / + 69 ) THEN ( 6 ) WHEN + 40 THEN NULL END * 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1825
SELECT COUNT ( * ) + - - COUNT ( * ) + + CASE - COUNT ( * ) WHEN - ( 23 ) / + 64 * - 94 * + 1 + - 69 + - CASE - COUNT ( * ) WHEN 57 THEN + CASE ( + 47 ) WHEN + 6 * - COUNT ( * ) THEN 44 END * - 60 - 99 WHEN 83 THEN NULL END * - MIN ( + 3 / + 69 ) THEN ( 6 ) WHEN + 40 THEN NULL END * 16 AS col1
----
NULL

query I rowsort
SELECT ALL - 37 * + - 5
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT DISTINCT COALESCE ( + 15, + COUNT( * ) ) * - - 0 * CASE 50 WHEN 96 THEN - MIN( ALL - 69 ) * + 19 ELSE + 49 END + 97 + 66 * 16 AS col1
----
1153

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT COALESCE ( + 15, + COUNT ( * ) ) * - - 0 * CASE 50 WHEN 96 THEN - MIN ( ALL - 69 ) * + 19 ELSE + 49 END + 97 + 66 * 16 AS col1
----
1153

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT DISTINCT 83 DIV + + 67
----
1

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT 83 / + + 67
----
1

query I rowsort
SELECT 18 * - 8
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT ALL COUNT( * ) - - 99 * + 19 AS col2
----
1882

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL COUNT ( * ) - - 99 * + 19 AS col2
----
1882

onlyif mysql # aggregate syntax: 
query II rowsort label-1831
SELECT MIN( + 70 ) AS col0, 49
----
70
49

skipif mysql # not compatible
query II rowsort label-1831
SELECT MIN ( + 70 ) AS col0, 49
----
70
49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1833
SELECT ALL - + CASE 65 WHEN CAST( - 96 AS SIGNED ) THEN - 73 WHEN + 53 * + - 45 * + 73 + - - 20 / - 93 THEN - - 51 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL - + CASE 65 WHEN CAST ( - 96 AS INTEGER ) THEN - 73 WHEN + 53 * + - 45 * + 73 + - - 20 / - 93 THEN - - 51 END AS col0
----
NULL

query I rowsort
SELECT + ( + 83 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT DISTINCT 86 * NULLIF ( + + COUNT( * ), + ( 72 ) )
----
86

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT 86 * NULLIF ( + + COUNT ( * ), + ( 72 ) )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1836
SELECT ALL 4 + + 78 - - 6 + 19 + - COALESCE ( - COALESCE ( + 65, - 82 / - COUNT( DISTINCT - 60 ) + ( - ( 99 ) ) ), + 43 ) + CASE + CASE - 16 WHEN 86 * CASE + COALESCE ( 86, - 81, 62, - SUM( - 6 ) * 57 ) WHEN - 47 + MIN( ( - COALESCE ( + 35, - 20 ) ) ) / + MIN( - 92 ) THEN 74 + + COUNT( * ) * + 41 ELSE NULL END THEN NULL WHEN 0 * + 68 THEN NULL WHEN 7 THEN NULL ELSE 34 END WHEN CAST( 33 AS SIGNED ) THEN - 56 WHEN - 54 + - 37 THEN NULL END + - COUNT( * ) / CASE + 22 + - COUNT( * ) WHEN + NULLIF ( ( + 15 ), + CASE 64 WHEN 93 / ( 91 ) THEN NULL WHEN - 36 + 18 THEN - COUNT( * ) + 76 * - ( - 38 / + ( + 64 ) ) WHEN CAST( + ( 13 ) AS SIGNED ) * + COALESCE ( - 14, 70, COUNT( * ) * AVG ( - 91 ) ) THEN NULL END + 31 ) + 18 * + 37 THEN NULL WHEN 77 * 47 THEN + 10 ELSE NULL END * ( - 88 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL 4 + + 78 - - 6 + 19 + - COALESCE ( - COALESCE ( + 65, - 82 / - COUNT ( DISTINCT - 60 ) + ( - ( 99 ) ) ), + 43 ) + CASE + CASE - 16 WHEN 86 * CASE + COALESCE ( 86, - 81, 62, - SUM ( - 6 ) * 57 ) WHEN - 47 + MIN ( ( - COALESCE ( + 35, - 20 ) ) ) / + MIN ( - 92 ) THEN 74 + + COUNT ( * ) * + 41 ELSE NULL END THEN NULL WHEN 0 * + 68 THEN NULL WHEN 7 THEN NULL ELSE 34 END WHEN CAST ( 33 AS INTEGER ) THEN - 56 WHEN - 54 + - 37 THEN NULL END + - COUNT ( * ) / CASE + 22 + - COUNT ( * ) WHEN + NULLIF ( ( + 15 ), + CASE 64 WHEN 93 / ( 91 ) THEN NULL WHEN - 36 + 18 THEN - COUNT ( * ) + 76 * - ( - 38 / + ( + 64 ) ) WHEN CAST ( + ( 13 ) AS INTEGER ) * + COALESCE ( - 14, 70, COUNT ( * ) * AVG ( - 91 ) ) THEN NULL END + 31 ) + 18 * + 37 THEN NULL WHEN 77 * 47 THEN + 10 ELSE NULL END * ( - 88 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT - MIN( ALL + ( + 66 ) ) col2
----
-66

skipif mysql # not compatible
query I rowsort label-1837
SELECT - MIN ( ALL + ( + 66 ) ) col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT + COUNT( - - 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1838
SELECT + COUNT ( - - 16 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT ALL + CASE + 3 WHEN + COUNT( * ) * + 39 * + + 34 THEN NULL WHEN 28 THEN + 97 WHEN 46 - 53 THEN - + 3 ELSE NULL END + - + 77 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL + CASE + 3 WHEN + COUNT ( * ) * + 39 * + + 34 THEN NULL WHEN 28 THEN + 97 WHEN 46 - 53 THEN - + 3 ELSE NULL END + - + 77 / - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1840
SELECT CASE + COUNT( * ) WHEN 60 + - 23 THEN - 94 END - 12 AS col0, ( - COALESCE ( + 51, - COUNT( 34 ), - 54 ) )
----
NULL
-51

skipif mysql # not compatible
query II rowsort label-1840
SELECT CASE + COUNT ( * ) WHEN 60 + - 23 THEN - 94 END - 12 AS col0, ( - COALESCE ( + 51, - COUNT ( 34 ), - 54 ) )
----
NULL
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-1841
SELECT ALL - + ( + 35 ) * - 34 + - - 13 + - 48 DIV 48 + - ( 2 ) + - 64 * - - 13 * 42
----
-33744

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL - + ( + 35 ) * - 34 + - - 13 + - 48 / 48 + - ( 2 ) + - 64 * - - 13 * 42
----
-33744

query I rowsort
SELECT DISTINCT 15 + + - 18 + - - 87 col2
----
84

query I rowsort
SELECT ALL - - 73 + + - 45 - 44 AS col1
----
-16

query I rowsort
SELECT 50 + + 75
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1845
SELECT 13 * - 16 DIV - + COUNT( * ) AS col0
----
208

skipif mysql # not compatible
query I rowsort label-1845
SELECT 13 * - 16 / - + COUNT ( * ) AS col0
----
208

onlyif mysql # aggregate syntax: 
query II rowsort label-1846
SELECT COUNT( * ) - - 1, 90 col2
----
2
90

skipif mysql # not compatible
query II rowsort label-1846
SELECT COUNT ( * ) - - 1, 90 col2
----
2
90

onlyif mysql # aggregate syntax: 
query II rowsort label-1847
SELECT - 73 - + 1 AS col1, - 8 + 69 + - + SUM( ALL + 76 ) AS col0
----
-74
-15

skipif mysql # not compatible
query II rowsort label-1847
SELECT - 73 - + 1 AS col1, - 8 + 69 + - + SUM ( ALL + 76 ) AS col0
----
-74
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT - 61 + - COUNT( * ) + 22
----
-40

skipif mysql # not compatible
query I rowsort label-1848
SELECT - 61 + - COUNT ( * ) + 22
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL - COUNT( DISTINCT 76 ) * 88 * - 3
----
264

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL - COUNT ( DISTINCT 76 ) * 88 * - 3
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT DISTINCT MIN( - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-1850
SELECT DISTINCT MIN ( - 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT ALL SUM( DISTINCT + + 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL SUM ( DISTINCT + + 65 ) AS col1
----
65

query II rowsort
SELECT - 31 * - - 92 col1, + 19 AS col1
----
-2852
19

query II rowsort
SELECT - 42 + + 48 * - 68 col2, + 96 AS col0
----
-3306
96

query I rowsort
SELECT DISTINCT COALESCE ( - 97, - - ( ( - - 91 ) ) * 63 ) col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT - MIN( - 83 )
----
83

skipif mysql # not compatible
query I rowsort label-1855
SELECT - MIN ( - 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT + 83 + SUM( - 3 ) col2
----
80

skipif mysql # not compatible
query I rowsort label-1856
SELECT + 83 + SUM ( - 3 ) col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1857
SELECT ALL - CAST( NULL AS SIGNED ) * + ( - 16 ) AS col0
----
NULL

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

query I rowsort
SELECT - 95 * + 68 * + 27 AS col0
----
-174420

query I rowsort
SELECT + 1 * + 59 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT - COUNT( 38 ) + + ( 33 )
----
32

skipif mysql # not compatible
query I rowsort label-1860
SELECT - COUNT ( 38 ) + + ( 33 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT DISTINCT - 77 * + 41 + - MAX( DISTINCT - 18 )
----
-3139

skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT - 77 * + 41 + - MAX ( DISTINCT - 18 )
----
-3139

query I rowsort
SELECT ALL - 19 + + - ( 82 ) col2
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1863
SELECT 58 DIV - - COUNT( * ) + + 96
----
154

skipif mysql # not compatible
query I rowsort label-1863
SELECT 58 / - - COUNT ( * ) + + 96
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-1864
SELECT + + 89 DIV - 53 + - + 92 DIV + 88
----
-2

skipif mysql # not compatible
query I rowsort label-1864
SELECT + + 89 / - 53 + - + 92 / + 88
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT + 4 * + 39 * + COUNT( * ) + - 42 + 1 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-1865
SELECT + 4 * + 39 * + COUNT ( * ) + - 42 + 1 AS col1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT ALL + - COUNT( ALL 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL + - COUNT ( ALL 9 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT CASE - 96 WHEN COUNT( * ) THEN NULL ELSE 45 END AS col1
----
45

skipif mysql # not compatible
query I rowsort label-1867
SELECT CASE - 96 WHEN COUNT ( * ) THEN NULL ELSE 45 END AS col1
----
45

query I rowsort
SELECT DISTINCT - 63 * - - 29 - 55 * - + 46 + + + 91
----
794

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT COUNT( 41 )
----
1

skipif mysql # not compatible
query I rowsort label-1870
SELECT COUNT ( 41 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT ALL + MIN( + 66 ) col2
----
66

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL + MIN ( + 66 ) col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1872
SELECT + 61 DIV - 17
----
-3

skipif mysql # not compatible
query I rowsort label-1872
SELECT + 61 / - 17
----
-3

query I rowsort
SELECT + 79 + - - 98
----
177

query II rowsort
SELECT DISTINCT 57 AS col1, + 18 * + 63 AS col2
----
57
1134

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT 1 * COALESCE ( 5, + 27 * 17, - + CASE + 69 WHEN + - COUNT( DISTINCT + - 99 ) THEN - + 62 + + 5 + 75 * - 99 ELSE NULL END ) + - - 63 * - COALESCE ( 54, 11, + + 41 + - 98 * 16 ) + + 94 col0
----
-3303

skipif mysql # not compatible
query I rowsort label-1876
SELECT 1 * COALESCE ( 5, + 27 * 17, - + CASE + 69 WHEN + - COUNT ( DISTINCT + - 99 ) THEN - + 62 + + 5 + 75 * - 99 ELSE NULL END ) + - - 63 * - COALESCE ( 54, 11, + + 41 + - 98 * 16 ) + + 94 col0
----
-3303

onlyif mysql # DIV for integer division: 
query I rowsort label-1877
SELECT ALL NULLIF ( + 85, + + 94 * + 45 ) DIV + + 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL NULLIF ( + 85, + + 94 * + 45 ) / + + 98 AS col2
----
0

query I rowsort
SELECT + 43 * + 62
----
2666

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1880
SELECT - NULLIF ( + CASE 42 WHEN + ( - 67 ) * - 37 THEN + 1 ELSE ( + 48 ) END, + CAST( NULL AS SIGNED ) ) + COUNT( * ) - - + COUNT( * ) + - 64
----
-110

skipif mysql # not compatible
query I rowsort label-1880
SELECT - NULLIF ( + CASE 42 WHEN + ( - 67 ) * - 37 THEN + 1 ELSE ( + 48 ) END, + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) - - + COUNT ( * ) + - 64
----
-110

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT - 71 * + - MAX( DISTINCT 76 )
----
5396

skipif mysql # not compatible
query I rowsort label-1882
SELECT - 71 * + - MAX ( DISTINCT 76 )
----
5396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1883
SELECT - 89 + + ( - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1883
SELECT - 89 + + ( - CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT ALL CASE 70 WHEN 56 * + 50 * + 58 THEN - - COUNT( * ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL CASE 70 WHEN 56 * + 50 * + 58 THEN - - COUNT ( * ) ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT ALL + ( 43 ) + ( + CASE + 32 WHEN - 74 / - + COUNT( * ) * COUNT( * ) THEN + 14 * + 83 ELSE NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL + ( 43 ) + ( + CASE + 32 WHEN - 74 / - + COUNT ( * ) * COUNT ( * ) THEN + 14 * + 83 ELSE NULL END ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1886
SELECT - 41 * 59 * 96 DIV + - 61 AS col2, - 40
----
3806
-40

skipif mysql # not compatible
query II rowsort label-1886
SELECT - 41 * 59 * 96 / + - 61 AS col2, - 40
----
3806
-40

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

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

query II rowsort
SELECT - 7 AS col2, 14
----
-7
14

query I rowsort
SELECT - + 62 + + NULLIF ( + 91, + + 88 * - 45 ) AS col2
----
29

query I rowsort
SELECT - + 93 * - - 72 AS col2
----
-6696

query I rowsort
SELECT + - 87 + + 38
----
-49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1893
SELECT ALL - + 60 + + 56 DIV + 69 * - + 42 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL - + 60 + + 56 / + 69 * - + 42 AS col0
----
-60

query I rowsort
SELECT - 92 * - 2 col0
----
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1895
SELECT DISTINCT - 16 * NULLIF ( + + ( - + SUM( DISTINCT - CAST( + 87 AS SIGNED ) ) ), - COUNT( * ) * COUNT( * ) * ( + - COUNT( ALL + 54 ) ) + 31 + + 58 * COUNT( * ) ) AS col1
----
-1392

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT - 16 * NULLIF ( + + ( - + SUM ( DISTINCT - CAST ( + 87 AS INTEGER ) ) ), - COUNT ( * ) * COUNT ( * ) * ( + - COUNT ( ALL + 54 ) ) + 31 + + 58 * COUNT ( * ) ) AS col1
----
-1392

query II rowsort
SELECT ALL + 10, + 95 - 73 - - 73 AS col0
----
10
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1897
SELECT DISTINCT 18 / SUM( DISTINCT - 3 ) * + - 59 + + 55 + - COUNT( * ) + + CASE 62 WHEN + - 61 * + + 30 + + ( 26 ) * + + ( CAST( NULL AS DECIMAL ) ) + + ( - ( - - 50 ) ) / + 96 THEN + 80 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT 18 / SUM ( DISTINCT - 3 ) * + - 59 + + 55 + - COUNT ( * ) + + CASE 62 WHEN + - 61 * + + 30 + + ( 26 ) * + + ( CAST ( NULL AS REAL ) ) + + ( - ( - - 50 ) ) / + 96 THEN + 80 * + COUNT ( * ) END
----
NULL

query I rowsort
SELECT - + ( - 34 ) + 8
----
42

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1900
SELECT + 97 * + 88 + COUNT( ALL + 36 ) DIV - CAST( COALESCE ( - 21, 4 ) AS SIGNED ) + - 92 + + - ( - + 72 ) + + + 37
----
8553

skipif mysql # not compatible
query I rowsort label-1900
SELECT + 97 * + 88 + COUNT ( ALL + 36 ) / - CAST ( COALESCE ( - 21, 4 ) AS INTEGER ) + - 92 + + - ( - + 72 ) + + + 37
----
8553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1901
SELECT + + COALESCE ( + CAST( 1 AS SIGNED ), - 8 * 12 + + COUNT( * ) - + + 23 ) DIV MIN( - 56 ) + - 5
----
-5

skipif mysql # not compatible
query I rowsort label-1901
SELECT + + COALESCE ( + CAST ( 1 AS INTEGER ), - 8 * 12 + + COUNT ( * ) - + + 23 ) / MIN ( - 56 ) + - 5
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT - CASE - 37 WHEN + COUNT( * ) * - 23 * - - 26 THEN COUNT( * ) WHEN - 26 THEN + + 90 END * + + ( - COUNT( * ) ) * + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-1902
SELECT - CASE - 37 WHEN + COUNT ( * ) * - 23 * - - 26 THEN COUNT ( * ) WHEN - 26 THEN + + 90 END * + + ( - COUNT ( * ) ) * + 55
----
NULL

query I rowsort
SELECT ALL 38 - - ( - 5 ) AS col1
----
33

query I rowsort
SELECT 10 * - 62
----
-620

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1905
SELECT ALL + 14 DIV MIN( DISTINCT - 69 ) * + - 89 AS col1, - NULLIF ( - + 5, + 39 * + - 31 + + + 42 DIV 9 * + - 57 * + NULLIF ( - - 18, - 13 + + 57 ) ) + - 93 * + + 89 * - 65 AS col0
----
0
538010

skipif mysql # not compatible
query II rowsort label-1905
SELECT ALL + 14 / MIN ( DISTINCT - 69 ) * + - 89 AS col1, - NULLIF ( - + 5, + 39 * + - 31 + + + 42 / 9 * + - 57 * + NULLIF ( - - 18, - 13 + + 57 ) ) + - 93 * + + 89 * - 65 AS col0
----
0
538010

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

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

query I rowsort
SELECT 14 * 3 + - 5 * - 86 + - - 13
----
485

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT DISTINCT MAX( + + ( 9 ) ) * 95 * - 12 * + NULLIF ( - COALESCE ( + + 12, 18 ), - CASE 47 WHEN + COUNT( * ) THEN NULL WHEN - 96 THEN NULL ELSE - 68 + + - 80 END / + COUNT( DISTINCT - - 36 ) + + 80 ) AS col0
----
123120

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT MAX ( + + ( 9 ) ) * 95 * - 12 * + NULLIF ( - COALESCE ( + + 12, 18 ), - CASE 47 WHEN + COUNT ( * ) THEN NULL WHEN - 96 THEN NULL ELSE - 68 + + - 80 END / + COUNT ( DISTINCT - - 36 ) + + 80 ) AS col0
----
123120

query I rowsort
SELECT 21 + - - 72 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT 57 - + MAX( DISTINCT + 79 ) * + CASE + ( 24 ) WHEN - + 58 THEN NULL ELSE - ( - 75 ) + + 16 - + 46 END AS col2
----
-3498

skipif mysql # not compatible
query I rowsort label-1910
SELECT 57 - + MAX ( DISTINCT + 79 ) * + CASE + ( 24 ) WHEN - + 58 THEN NULL ELSE - ( - 75 ) + + 16 - + 46 END AS col2
----
-3498

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT ALL 7 + - + NULLIF ( - MIN( ALL - - 9 ), - CASE - 31 WHEN - 37 THEN + 7 * 96 END ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL 7 + - + NULLIF ( - MIN ( ALL - - 9 ), - CASE - 31 WHEN - 37 THEN + 7 * 96 END ) AS col1
----
16

query I rowsort
SELECT DISTINCT 36 + - 77
----
-41

query I rowsort
SELECT 47 + + + 3 * - 73
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT ALL MAX( DISTINCT 74 ) + - COUNT( * ) - + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL MAX ( DISTINCT 74 ) + - COUNT ( * ) - + COUNT ( * )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1915
SELECT 63 DIV + 48 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1915
SELECT 63 / + 48 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1916
SELECT ALL + 34 + 34, + CASE + 79 WHEN + 85 THEN + CAST( NULL AS SIGNED ) WHEN - MIN( 90 ) * + 40 / - MAX( DISTINCT + ( + 25 ) ) + - - 16 THEN NULL ELSE NULL END AS col1
----
68
NULL

skipif mysql # not compatible
query II rowsort label-1916
SELECT ALL + 34 + 34, + CASE + 79 WHEN + 85 THEN + CAST ( NULL AS INTEGER ) WHEN - MIN ( 90 ) * + 40 / - MAX ( DISTINCT + ( + 25 ) ) + - - 16 THEN NULL ELSE NULL END AS col1
----
68
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT DISTINCT 65 DIV - + 70
----
0

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT 65 / - + 70
----
0

query I rowsort
SELECT - ( 9 ) + 2
----
-7

query I rowsort
SELECT ALL + NULLIF ( + 22, 51 ) * + - 32 * + 20 AS col0
----
-14080

query I rowsort
SELECT 7 + 13
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT ALL + COUNT( * ) + 60
----
61

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL + COUNT ( * ) + 60
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT 84 + COUNT( * ) - + COUNT( * ) * - + NULLIF ( 28, - 2 ) AS col1
----
113

skipif mysql # not compatible
query I rowsort label-1922
SELECT 84 + COUNT ( * ) - + COUNT ( * ) * - + NULLIF ( 28, - 2 ) AS col1
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-1923
SELECT DISTINCT ( + ( - MIN( - 62 ) ) ) AS col2, - 18 - + + 82 * - CASE 22 WHEN - 14 THEN NULL WHEN - CASE + 45 WHEN 14 THEN NULL WHEN + ( + + ( - COUNT( * ) ) ) THEN NULL ELSE - ( + 56 ) + - + COUNT( * ) * 58 * 17 END THEN 37 / 92 + - 12 * + 71 WHEN 45 THEN 50 ELSE NULL END + 91 AS col2
----
62
NULL

skipif mysql # not compatible
query II rowsort label-1923
SELECT DISTINCT ( + ( - MIN ( - 62 ) ) ) AS col2, - 18 - + + 82 * - CASE 22 WHEN - 14 THEN NULL WHEN - CASE + 45 WHEN 14 THEN NULL WHEN + ( + + ( - COUNT ( * ) ) ) THEN NULL ELSE - ( + 56 ) + - + COUNT ( * ) * 58 * 17 END THEN 37 / 92 + - 12 * + 71 WHEN 45 THEN 50 ELSE NULL END + 91 AS col2
----
62
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1924
SELECT 77 + - 5 DIV - 64 + + + 30 + + - 85 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1924
SELECT 77 + - 5 / - 64 + + + 30 + + - 85 AS col1
----
22

query I rowsort
SELECT ( 92 ) + 98
----
190

query I rowsort
SELECT 25 * + 53 col1
----
1325

query I rowsort
SELECT + ( ( - 89 ) ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT - 37 * + - 89 + CASE - 6 WHEN 62 * - - CASE - - ( + 21 ) WHEN + 86 THEN + - COUNT( ALL 17 ) END THEN + + 39 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1928
SELECT - 37 * + - 89 + CASE - 6 WHEN 62 * - - CASE - - ( + 21 ) WHEN + 86 THEN + - COUNT ( ALL 17 ) END THEN + + 39 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT 92 + - COUNT( * ) * - 51
----
143

skipif mysql # not compatible
query I rowsort label-1929
SELECT 92 + - COUNT ( * ) * - 51
----
143

query I rowsort
SELECT ALL + - 53 * 68 AS col2
----
-3604

onlyif mysql # aggregate syntax: 
query II rowsort label-1931
SELECT ALL - ( 50 ) AS col2, + ( + 79 ) - + + 81 - + COUNT( ALL 8 ) - 90 AS col0
----
-50
-93

skipif mysql # not compatible
query II rowsort label-1931
SELECT ALL - ( 50 ) AS col2, + ( + 79 ) - + + 81 - + COUNT ( ALL 8 ) - 90 AS col0
----
-50
-93

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

skipif mysql # not compatible
query I rowsort label-1932
SELECT DISTINCT + COUNT ( * ) / 10
----
0

query I rowsort
SELECT ALL + 10 * - 78 * - + 19 col1
----
14820

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT COALESCE ( - 56, - 5, - MAX( ALL - 37 ) ) * - 91 AS col0
----
5096

skipif mysql # not compatible
query I rowsort label-1934
SELECT COALESCE ( - 56, - 5, - MAX ( ALL - 37 ) ) * - 91 AS col0
----
5096

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT 32 + - CASE WHEN + COUNT( * ) <> + 40 THEN 19 + - 79 + 57 + - ( - + ( + COUNT( * ) ) ) END AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1935
SELECT 32 + - CASE WHEN + COUNT ( * ) <> + 40 THEN 19 + - 79 + 57 + - ( - + ( + COUNT ( * ) ) ) END AS col0
----
34

query I rowsort
SELECT 10 * - 49 + - 10
----
-500

onlyif mysql # aggregate syntax: 
query II rowsort label-1937
SELECT 66 + + CASE - 34 WHEN + 6 + + + 73 * + COUNT( * ) THEN NULL WHEN + + 92 THEN COUNT( * ) END - - ( - 73 ) + + CASE + 50 WHEN + + 85 THEN - 64 ELSE NULL END * - 50 AS col0, - 52 AS col0
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-1937
SELECT 66 + + CASE - 34 WHEN + 6 + + + 73 * + COUNT ( * ) THEN NULL WHEN + + 92 THEN COUNT ( * ) END - - ( - 73 ) + + CASE + 50 WHEN + + 85 THEN - 64 ELSE NULL END * - 50 AS col0, - 52 AS col0
----
NULL
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT ALL 66 + - COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL 66 + - COUNT ( * ) AS col2
----
65

query I rowsort
SELECT DISTINCT + 20 + 80 AS col1
----
100

query II rowsort
SELECT ALL 30 + 30 * - 96 AS col2, + 12
----
-2850
12

query II rowsort
SELECT - 30 AS col0, 94
----
-30
94

query I rowsort
SELECT ALL 24 * - + 55 col1
----
-1320

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT COUNT( * ) * 9 col2
----
9

skipif mysql # not compatible
query I rowsort label-1943
SELECT COUNT ( * ) * 9 col2
----
9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1945
SELECT + COALESCE ( + ( + ( CASE - MAX( ALL 99 ) WHEN - - 87 - CAST( - + 78 AS SIGNED ) THEN - ( - 56 ) + + - 29 * - - COUNT( * ) WHEN + - 22 THEN COUNT( + + 64 ) END ) ), - + ( - 32 ) * 15 * + COALESCE ( 30, + COUNT( * ) + - 59 ) * 60 + 35 ) + 83
----
864118

skipif mysql # not compatible
query I rowsort label-1945
SELECT + COALESCE ( + ( + ( CASE - MAX ( ALL 99 ) WHEN - - 87 - CAST ( - + 78 AS INTEGER ) THEN - ( - 56 ) + + - 29 * - - COUNT ( * ) WHEN + - 22 THEN COUNT ( + + 64 ) END ) ), - + ( - 32 ) * 15 * + COALESCE ( 30, + COUNT ( * ) + - 59 ) * 60 + 35 ) + 83
----
864118

onlyif mysql # aggregate syntax: 
query II rowsort label-1946
SELECT ALL 82 + NULLIF ( - 21, COUNT( ALL - 33 ) ) AS col1, 50 AS col2
----
61
50

skipif mysql # not compatible
query II rowsort label-1946
SELECT ALL 82 + NULLIF ( - 21, COUNT ( ALL - 33 ) ) AS col1, 50 AS col2
----
61
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1947
SELECT DISTINCT 30 - + - CAST( NULL AS SIGNED ) * 39 * 89 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT 30 - + - CAST ( NULL AS INTEGER ) * 39 * 89 col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL ( - MAX ( 96 ) )
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-1949
SELECT DISTINCT - 19 col2, + ( - COUNT( * ) )
----
-19
-1

skipif mysql # not compatible
query II rowsort label-1949
SELECT DISTINCT - 19 col2, + ( - COUNT ( * ) )
----
-19
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1950
SELECT + CAST( NULL AS SIGNED ) * - COALESCE ( 64, - - CASE CAST( NULL AS SIGNED ) WHEN AVG ( DISTINCT - 70 ) * + 46 * + + NULLIF ( + - 23, + - 9 / - + COUNT( * ) + - 19 * + AVG ( - - 74 ) * + CAST( NULL AS SIGNED ) + 3 ) + + + 43 * + 51 * ( 40 ) THEN + 12 + + 11 * 17 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1950
SELECT + CAST ( NULL AS INTEGER ) * - COALESCE ( 64, - - CASE CAST ( NULL AS INTEGER ) WHEN AVG ( DISTINCT - 70 ) * + 46 * + + NULLIF ( + - 23, + - 9 / - + COUNT ( * ) + - 19 * + AVG ( - - 74 ) * + CAST ( NULL AS INTEGER ) + 3 ) + + + 43 * + 51 * ( 40 ) THEN + 12 + + 11 * 17 END ) AS col1
----
NULL

query I rowsort
SELECT 37 * 78
----
2886

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1952
SELECT ALL CAST( 46 AS SIGNED ) DIV 79 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL CAST ( 46 AS INTEGER ) / 79 / 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT DISTINCT + COUNT( * ) * + 51 + + 22 * COUNT( - 93 ) + - 8 - + 44 + + + 82 * + + 48 + COUNT( * ) AS col0
----
3958

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT + COUNT ( * ) * + 51 + + 22 * COUNT ( - 93 ) + - 8 - + 44 + + + 82 * + + 48 + COUNT ( * ) AS col0
----
3958

query I rowsort
SELECT + 67 * 4
----
268

query I rowsort
SELECT - - 94 * 31
----
2914

query I rowsort
SELECT DISTINCT + - 51 * + 7 * ( + 12 )
----
-4284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1957
SELECT + 26 + - COALESCE ( COUNT( * ), - - COUNT( * ) + - COUNT( * ) + 73 - CAST( NULL AS SIGNED ) + 33 * + - 87 + + 93 + + 68 + 71 + + CAST( NULL AS SIGNED ) * NULLIF ( + - 77, - MIN( DISTINCT + ( 82 ) ) ) ) + - COUNT( - ( + 19 ) )
----
24

skipif mysql # not compatible
query I rowsort label-1957
SELECT + 26 + - COALESCE ( COUNT ( * ), - - COUNT ( * ) + - COUNT ( * ) + 73 - CAST ( NULL AS INTEGER ) + 33 * + - 87 + + 93 + + 68 + 71 + + CAST ( NULL AS INTEGER ) * NULLIF ( + - 77, - MIN ( DISTINCT + ( 82 ) ) ) ) + - COUNT ( - ( + 19 ) )
----
24

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

query I rowsort
SELECT ALL + 57 * - 91 + + 35 AS col0
----
-5152

query I rowsort
SELECT - 31 * - + 52 + - - 98
----
1710

query I rowsort
SELECT COALESCE ( - - 90, + 78 )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1962
SELECT 51 * - CAST( NULL AS SIGNED ) / 25 + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1962
SELECT 51 * - CAST ( NULL AS INTEGER ) / 25 + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT NULLIF ( 78, COUNT( * ) * + - COUNT( * ) + 62 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-1963
SELECT NULLIF ( 78, COUNT ( * ) * + - COUNT ( * ) + 62 ) AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1964
SELECT + 7, ( - + ( - - 2 ) ) - - 62 * + + MIN( + 4 ) + - CAST( 79 AS SIGNED ) col1
----
7
167

skipif mysql # not compatible
query II rowsort label-1964
SELECT + 7, ( - + ( - - 2 ) ) - - 62 * + + MIN ( + 4 ) + - CAST ( 79 AS INTEGER ) col1
----
7
167

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT + SUM( DISTINCT + - 51 ) col0
----
-51

skipif mysql # not compatible
query I rowsort label-1965
SELECT + SUM ( DISTINCT + - 51 ) col0
----
-51

query II rowsort
SELECT + 61, - 32 AS col0
----
61
-32

query I rowsort
SELECT ALL 5 * 30 + - 59 - - 12
----
103

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

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT + 47 * + COUNT ( * ) + - COUNT ( * ) AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1969
SELECT ALL - CASE WHEN 6 NOT BETWEEN - COUNT( * ) AND 69 - - 40 THEN - ( + NULLIF ( - 15, + + 10 ) ) ELSE + CAST( NULL AS SIGNED ) * + 68 END * - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL - CASE WHEN 6 NOT BETWEEN - COUNT ( * ) AND 69 - - 40 THEN - ( + NULLIF ( - 15, + + 10 ) ) ELSE + CAST ( NULL AS INTEGER ) * + 68 END * - 91 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1970
SELECT - 66 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-1970
SELECT - 66 / 92
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1971
SELECT ALL - 14 * - + COUNT( * ) + - CASE - - COALESCE ( - - 85, 6 + + 65 + 16 * - COUNT( * ) / + ( - CAST( 40 AS SIGNED ) ) / + - CASE - 75 WHEN - 63 + + - 99 - - 12 * + MIN( - + 45 ) * CASE 72 WHEN - COUNT( * ) THEN - 93 * + 48 WHEN 86 / SUM( 23 ) - 45 THEN CAST( NULL AS SIGNED ) + 39 / - 28 END + - 2 * + ( 5 / 43 ) THEN NULL WHEN 50 THEN NULL ELSE 47 END, 20 * ( 32 ), - 78 * - COUNT( * ) - 19 ) WHEN 4 THEN - CAST( - 20 AS SIGNED ) ELSE NULL END - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL - 14 * - + COUNT ( * ) + - CASE - - COALESCE ( - - 85, 6 + + 65 + 16 * - COUNT ( * ) / + ( - CAST ( 40 AS INTEGER ) ) / + - CASE - 75 WHEN - 63 + + - 99 - - 12 * + MIN ( - + 45 ) * CASE 72 WHEN - COUNT ( * ) THEN - 93 * + 48 WHEN 86 / SUM ( 23 ) - 45 THEN CAST ( NULL AS INTEGER ) + 39 / - 28 END + - 2 * + ( 5 / 43 ) THEN NULL WHEN 50 THEN NULL ELSE 47 END, 20 * ( 32 ), - 78 * - COUNT ( * ) - 19 ) WHEN 4 THEN - CAST ( - 20 AS INTEGER ) ELSE NULL END - + COUNT ( * )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT - 12 + + + 37 + + COUNT( ALL + 62 )
----
26

skipif mysql # not compatible
query I rowsort label-1973
SELECT - 12 + + + 37 + + COUNT ( ALL + 62 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1974
SELECT ALL CAST( NULL AS SIGNED ) * - 23 + + 57 + + 39 - 69 + - 7 / 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL CAST ( NULL AS INTEGER ) * - 23 + + 57 + + 39 - 69 + - 7 / 19
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1975
SELECT - MIN( 97 ) + + - 32 + 26 * - NULLIF ( 68, - MAX( DISTINCT 36 ) ) + + 53 col2, NULLIF ( 7, + 52 ) AS col2
----
-1844
7

skipif mysql # not compatible
query II rowsort label-1975
SELECT - MIN ( 97 ) + + - 32 + 26 * - NULLIF ( 68, - MAX ( DISTINCT 36 ) ) + + 53 col2, NULLIF ( 7, + 52 ) AS col2
----
-1844
7

onlyif mysql # aggregate syntax: 
query II rowsort label-1976
SELECT COUNT( * ) AS col1, ( - + 67 ) * 75 + - 51 col1
----
1
-5076

skipif mysql # not compatible
query II rowsort label-1976
SELECT COUNT ( * ) AS col1, ( - + 67 ) * 75 + - 51 col1
----
1
-5076

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT + MIN( + 90 ) - + - 10 * + 4
----
130

skipif mysql # not compatible
query I rowsort label-1977
SELECT + MIN ( + 90 ) - + - 10 * + 4
----
130

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1979
SELECT - 82 * + - COALESCE ( + - CAST( NULL AS SIGNED ), 97 * - + 36 ) AS col1
----
-286344

skipif mysql # not compatible
query I rowsort label-1979
SELECT - 82 * + - COALESCE ( + - CAST ( NULL AS INTEGER ), 97 * - + 36 ) AS col1
----
-286344

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT - - NULLIF ( COUNT( - + 45 ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1981
SELECT - - NULLIF ( COUNT ( - + 45 ), COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT + 8 - 83
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1983
SELECT ALL - 50 DIV + - 10 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL - 50 / + - 10 AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1984
SELECT DISTINCT - CAST( - - 8 AS SIGNED ) * + - CASE - 94 WHEN + 81 THEN NULL WHEN + CAST( NULL AS SIGNED ) + - + CASE - + 94 WHEN - - 32 THEN + - COALESCE ( 82, - SUM( DISTINCT 33 ) ) WHEN + 84 * - CAST( 45 AS SIGNED ) THEN NULL END THEN - - 78 + - + 41 + - 6 + + 1 * + COUNT( * ) - COUNT( + 14 ) * 98 * 97 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT - CAST ( - - 8 AS INTEGER ) * + - CASE - 94 WHEN + 81 THEN NULL WHEN + CAST ( NULL AS INTEGER ) + - + CASE - + 94 WHEN - - 32 THEN + - COALESCE ( 82, - SUM ( DISTINCT 33 ) ) WHEN + 84 * - CAST ( 45 AS INTEGER ) THEN NULL END THEN - - 78 + - + 41 + - 6 + + 1 * + COUNT ( * ) - COUNT ( + 14 ) * 98 * 97 ELSE NULL END
----
NULL

query I rowsort
SELECT + + 81 + + 9 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT ALL - + 87 - - + 75 * - 44 * MIN( ALL - 31 )
----
102213

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL - + 87 - - + 75 * - 44 * MIN ( ALL - 31 )
----
102213

query I rowsort
SELECT - - 53 + + 94 AS col0
----
147

query II rowsort
SELECT + 33 AS col2, 56 AS col2
----
33
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1989
SELECT - 44, CASE + 97 WHEN - - 73 THEN NULL WHEN - 71 THEN - 16 * - COUNT( * ) WHEN + + ( - NULLIF ( - 72, - - CASE CAST( - + 4 AS DECIMAL ) WHEN - - 48 THEN COUNT( * ) END * SUM( - 98 ) + AVG ( DISTINCT ( + - 40 ) ) ) ) THEN NULL END * 66 / 96 + + 78 / + ( 34 * - COUNT( * ) ) AS col1
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-1989
SELECT - 44, CASE + 97 WHEN - - 73 THEN NULL WHEN - 71 THEN - 16 * - COUNT ( * ) WHEN + + ( - NULLIF ( - 72, - - CASE CAST ( - + 4 AS REAL ) WHEN - - 48 THEN COUNT ( * ) END * SUM ( - 98 ) + AVG ( DISTINCT ( + - 40 ) ) ) ) THEN NULL END * 66 / 96 + + 78 / + ( 34 * - COUNT ( * ) ) AS col1
----
-44
NULL

query I rowsort
SELECT - + 79 + 15
----
-64

query II rowsort
SELECT - 77, ( + 33 ) AS col1
----
-77
33

query I rowsort
SELECT + - 4 + 98
----
94

query I rowsort
SELECT ALL - 93 * - + 84 * + ( ( ( - 56 ) ) ) * + 51 AS col2
----
-22311072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1994
SELECT - - CASE - MAX( + 90 ) WHEN - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) THEN NULL ELSE 88 - + COALESCE ( 76, + ( + NULLIF ( - 80, - - 51 * - CAST( NULL AS SIGNED ) ) ) * + COUNT( * ) ) END AS col2
----
12

skipif mysql # not compatible
query I rowsort label-1994
SELECT - - CASE - MAX ( + 90 ) WHEN - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) THEN NULL ELSE 88 - + COALESCE ( 76, + ( + NULLIF ( - 80, - - 51 * - CAST ( NULL AS INTEGER ) ) ) * + COUNT ( * ) ) END AS col2
----
12

query I rowsort
SELECT ( + + 66 ) AS col0
----
66

query I rowsort
SELECT + - 54 * + 73 AS col1
----
-3942

query I rowsort
SELECT + 88 + - 53 * - 36 AS col1
----
1996

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT DISTINCT - SUM( 40 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT - SUM ( 40 ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-1999
SELECT 64 AS col2, NULLIF ( - - 92, COUNT( * ) ) + ( 19 ) AS col1
----
64
111

skipif mysql # not compatible
query II rowsort label-1999
SELECT 64 AS col2, NULLIF ( - - 92, COUNT ( * ) ) + ( 19 ) AS col1
----
64
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2000
SELECT ALL + 12 DIV - 55 + - - 18 + + MAX( ALL - 58 ) * - 69 AS col0
----
4020

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL + 12 / - 55 + - - 18 + + MAX ( ALL - 58 ) * - 69 AS col0
----
4020

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2001
SELECT + 79 DIV 78 col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-2001
SELECT + 79 / 78 col2, COUNT ( * )
----
1
1

query I rowsort
SELECT + 55 * + + 65 * 8
----
28600

onlyif mysql # DIV for integer division: 
query I rowsort label-2003
SELECT ALL + 35 DIV + 26 + + - 98
----
-97

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL + 35 / + 26 + + - 98
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2004
SELECT DISTINCT - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) / - 96 + + 43 + + - 86 / - 75 * 18 + + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT DISTINCT - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - 96 + + 43 + + - 86 / - 75 * 18 + + - 7
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2005
SELECT ALL 1 DIV - - 61 + + + 66
----
66

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL 1 / - - 61 + + + 66
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2006
SELECT - COUNT( * ) * COALESCE ( ( + 67 ), - 12 DIV + - 86 ) + - + 94 - 12 + + 10 * 6
----
-113

skipif mysql # not compatible
query I rowsort label-2006
SELECT - COUNT ( * ) * COALESCE ( ( + 67 ), - 12 / + - 86 ) + - + 94 - 12 + + 10 * 6
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT - 25 + - COUNT( * ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-2007
SELECT - 25 + - COUNT ( * ) AS col2
----
-26

query I rowsort
SELECT ( CASE + 15 WHEN 4 THEN - 69 * - 32 / + + 67 END ) col2
----
NULL

query I rowsort
SELECT ALL 38 * 46 + 43 + - 6 + - 28 + - 13
----
1744

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

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

query I rowsort
SELECT ( - - 98 )
----
98

query I rowsort
SELECT + 75 * 77 + + - 49 AS col0
----
5726

onlyif mysql # aggregate syntax: 
query II rowsort label-2013
SELECT ALL ( + 26 ) * 61 * - COUNT( * ) - + 78, 0 AS col1
----
-1664
0

skipif mysql # not compatible
query II rowsort label-2013
SELECT ALL ( + 26 ) * 61 * - COUNT ( * ) - + 78, 0 AS col1
----
-1664
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT COALESCE ( - 25, + + MAX( 34 ) ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-2014
SELECT COALESCE ( - 25, + + MAX ( 34 ) ) AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2015
SELECT DISTINCT 50 * + 2 - + CAST( - 15 AS SIGNED ) AS col1
----
115

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT 50 * + 2 - + CAST ( - 15 AS INTEGER ) AS col1
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2016
SELECT DISTINCT - + MIN( ALL - - 25 ) DIV MIN( ALL + - 62 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2016
SELECT DISTINCT - + MIN ( ALL - - 25 ) / MIN ( ALL + - 62 ) AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2017
SELECT DISTINCT + CASE - 75 WHEN - 55 / ( + - CAST( 36 AS DECIMAL ) ) THEN NULL WHEN 0 * - 74 THEN + 4 * - 10 / + + 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT + CASE - 75 WHEN - 55 / ( + - CAST ( 36 AS REAL ) ) THEN NULL WHEN 0 * - 74 THEN + 4 * - 10 / + + 31 END
----
NULL

query I rowsort
SELECT ALL + + 22 * - 83 AS col2
----
-1826

onlyif mysql # aggregate syntax: 
query II rowsort label-2019
SELECT ALL + MAX( 11 ), 13 AS col0
----
11
13

skipif mysql # not compatible
query II rowsort label-2019
SELECT ALL + MAX ( 11 ), 13 AS col0
----
11
13

query I rowsort
SELECT - 0 - - ( + 39 ) - - 96 AS col1
----
135

query I rowsort
SELECT + 78 + - 36 AS col2
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2022
SELECT COUNT( * ) DIV - - 78 * + + 5 + 79 + + - 45 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-2022
SELECT COUNT ( * ) / - - 78 * + + 5 + 79 + + - 45 AS col0
----
34

query II rowsort
SELECT + 22 * 60 AS col1, 10
----
1320
10

query I rowsort
SELECT 51 + + 32
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2025
SELECT DISTINCT + 5 DIV + - 35 + + COUNT( * ) + + 49
----
50

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT + 5 / + - 35 + + COUNT ( * ) + + 49
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2026
SELECT DISTINCT CAST( + 40 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-2026
SELECT DISTINCT CAST ( + 40 AS INTEGER )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2027
SELECT ALL CAST( CASE CASE + 83 WHEN - - 4 / 33 + - 22 * - COUNT( * ) THEN NULL WHEN + 22 THEN - + 69 END WHEN + 18 THEN - 11 END AS SIGNED ) / 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL CAST ( CASE CASE + 83 WHEN - - 4 / 33 + - 22 * - COUNT ( * ) THEN NULL WHEN + 22 THEN - + 69 END WHEN + 18 THEN - 11 END AS INTEGER ) / 29
----
NULL

query II rowsort
SELECT 31 * + + 11 AS col2, + 86
----
341
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT ALL + 61 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL + 61 / + 80
----
0

query I rowsort
SELECT - NULLIF ( - 67, - 46 ) AS col0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2031
SELECT ALL 78 * 9 DIV 63
----
11

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL 78 * 9 / 63
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2032
SELECT - 91, + COALESCE ( - 1, + - CAST( NULL AS SIGNED ) + + 43 + + MAX( ALL + + 33 ) * - 47 * + - COUNT( ALL - 18 ), - 1 ) * 98 AS col0
----
-91
-98

skipif mysql # not compatible
query II rowsort label-2032
SELECT - 91, + COALESCE ( - 1, + - CAST ( NULL AS INTEGER ) + + 43 + + MAX ( ALL + + 33 ) * - 47 * + - COUNT ( ALL - 18 ), - 1 ) * 98 AS col0
----
-91
-98

query I rowsort
SELECT DISTINCT + 33 + 87 AS col1
----
120

query I rowsort
SELECT ALL 43 + + - 25
----
18

query I rowsort
SELECT DISTINCT 2 + + 40
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2036
SELECT ALL 37 DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL 37 / 50
----
0

query I rowsort
SELECT 37 + + 66 AS col2
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2038
SELECT ALL 1 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL 1 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT CASE - 66 WHEN + COALESCE ( 84, + 79 ) * - 46 THEN 73 + - - COALESCE ( 51, + 71 - + + 72, - 63 ) WHEN - - COUNT( + 87 ) + 70 * - 66 THEN NULL END * COUNT( * ) * - MIN( DISTINCT + - 20 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2039
SELECT CASE - 66 WHEN + COALESCE ( 84, + 79 ) * - 46 THEN 73 + - - COALESCE ( 51, + 71 - + + 72, - 63 ) WHEN - - COUNT ( + 87 ) + 70 * - 66 THEN NULL END * COUNT ( * ) * - MIN ( DISTINCT + - 20 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2040
SELECT DISTINCT 36 * + COUNT( ALL + + CAST( 67 AS SIGNED ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-2040
SELECT DISTINCT 36 * + COUNT ( ALL + + CAST ( 67 AS INTEGER ) ) AS col1
----
36

query I rowsort
SELECT DISTINCT 95 * + 57 AS col1
----
5415

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2042
SELECT DISTINCT 6 - - 94 * + NULLIF ( 29, + CAST( - NULLIF ( 85, - + COUNT( * ) ) AS DECIMAL ) ) + - - COUNT( * ) col1
----
2733

skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT 6 - - 94 * + NULLIF ( 29, + CAST ( - NULLIF ( 85, - + COUNT ( * ) ) AS REAL ) ) + - - COUNT ( * ) col1
----
2733

query I rowsort
SELECT ALL 65 * + 94
----
6110

query I rowsort
SELECT ALL 41 * + + 28
----
1148

query I rowsort
SELECT DISTINCT 0 * - 59 * - - 30
----
0

query II rowsort
SELECT + 5 AS col2, 67 + + - 56 AS col2
----
5
11

query I rowsort
SELECT + 84 + - + 98
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT + 54 * - 16 * - CASE - - 85 WHEN + - COALESCE ( + + 69, ( + 77 ) / - + 55 * + COUNT( * ) + - - 42 ) + 21 - + 8 THEN - 66 WHEN - 51 + + 12 + + 35 THEN - 96 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2048
SELECT + 54 * - 16 * - CASE - - 85 WHEN + - COALESCE ( + + 69, ( + 77 ) / - + 55 * + COUNT ( * ) + - - 42 ) + 21 - + 8 THEN - 66 WHEN - 51 + + 12 + + 35 THEN - 96 ELSE NULL END col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT + 67 - - ( - 58 ) + 92 DIV + 54
----
10

skipif mysql # not compatible
query I rowsort label-2050
SELECT + 67 - - ( - 58 ) + 92 / + 54
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2051
SELECT ALL + 76 + 24 DIV 96 - + 18 * - 7
----
202

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL + 76 + 24 / 96 - + 18 * - 7
----
202

query I rowsort
SELECT ALL + 16 + + 37 + - - 19 AS col2
----
72

query I rowsort
SELECT ALL - - 15 + + 1
----
16

query I rowsort
SELECT - ( 86 ) + + 93
----
7

query I rowsort
SELECT 25 + 26
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT - MIN( 62 ) * + 7 + + 91
----
-343

skipif mysql # not compatible
query I rowsort label-2056
SELECT - MIN ( 62 ) * + 7 + + 91
----
-343

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT DISTINCT + - COUNT( * ) + - 13
----
-14

skipif mysql # not compatible
query I rowsort label-2057
SELECT DISTINCT + - COUNT ( * ) + - 13
----
-14

query I rowsort
SELECT ALL + 19 + 40
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2059
SELECT 38 + COUNT( * ) + + 51 * 32 + + 80 - 16 * - 96, 70 - - MIN( ALL + 88 ) AS col2
----
3287
158

skipif mysql # not compatible
query II rowsort label-2059
SELECT 38 + COUNT ( * ) + + 51 * 32 + + 80 - 16 * - 96, 70 - - MIN ( ALL + 88 ) AS col2
----
3287
158

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT ALL + 29 DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL + 29 / - 51
----
0

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

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

query I rowsort
SELECT 63 * - 62 AS col0
----
-3906

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

query I rowsort
SELECT ALL + 48 * - 42 * - 70
----
141120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2065
SELECT CAST( NULL AS SIGNED ) * - + COUNT( * ) + 33 + SUM( DISTINCT - 94 ) AS col1, + 14
----
NULL
14

skipif mysql # not compatible
query II rowsort label-2065
SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + 33 + SUM ( DISTINCT - 94 ) AS col1, + 14
----
NULL
14

query I rowsort
SELECT ALL 60 * 87
----
5220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2067
SELECT + COUNT( * ) DIV - - 13 * + + 73 + - 6 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-2067
SELECT + COUNT ( * ) / - - 13 * + + 73 + - 6 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT COUNT( DISTINCT - + 93 ) * - - 35 * - 37 AS col2
----
-1295

skipif mysql # not compatible
query I rowsort label-2068
SELECT COUNT ( DISTINCT - + 93 ) * - - 35 * - 37 AS col2
----
-1295

query I rowsort
SELECT DISTINCT + 39 * 8 * + 71 col2
----
22152

query I rowsort
SELECT ALL + 30 * + 79 * 59 * - ( + - 6 ) * 3 col2
----
2516940

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT MAX( ALL + + 67 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-2071
SELECT MAX ( ALL + + 67 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT DISTINCT 26 * - COUNT( * ) * - SUM( - 33 )
----
-858

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT 26 * - COUNT ( * ) * - SUM ( - 33 )
----
-858

query I rowsort
SELECT + 95 * - 81 AS col0
----
-7695

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT - 88 * - + 2 + 72 + COUNT( * )
----
249

skipif mysql # not compatible
query I rowsort label-2074
SELECT - 88 * - + 2 + 72 + COUNT ( * )
----
249

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

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL + COUNT ( * ) + + - 50 col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT + MAX( + - 3 ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-2076
SELECT + MAX ( + - 3 ) col0
----
-3

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

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

query I rowsort
SELECT DISTINCT 92 + 69 AS col0
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-2079
SELECT + - 67 * - 29 - + COALESCE ( + 39, - - ( - - COALESCE ( - + 71, + 81 + 21 ) ) DIV + 11, + + 81 )
----
1904

skipif mysql # not compatible
query I rowsort label-2079
SELECT + - 67 * - 29 - + COALESCE ( + 39, - - ( - - COALESCE ( - + 71, + 81 + 21 ) ) / + 11, + + 81 )
----
1904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2080
SELECT - 71 * + 7 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2080
SELECT - 71 * + 7 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL NULLIF ( + COUNT( * ), 50 ) + 68 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL NULLIF ( + COUNT ( * ), 50 ) + 68 AS col1
----
69

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

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL + 86 + - 61 + - ( COUNT ( * ) ) AS col1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2083
SELECT COALESCE ( + NULLIF ( + COUNT( * ), 18 * 24 - + 75 ), - - CASE - - 67 WHEN + 36 + + 73 + - + 29 THEN NULL ELSE + 68 DIV - 78 * + + 40 * + MAX( ALL - 17 ) + - ( - 70 ) END, ( + - 57 ) + - COUNT( * ) + - COUNT( * ) * - COUNT( * ), + - 58 )
----
1

skipif mysql # not compatible
query I rowsort label-2083
SELECT COALESCE ( + NULLIF ( + COUNT ( * ), 18 * 24 - + 75 ), - - CASE - - 67 WHEN + 36 + + 73 + - + 29 THEN NULL ELSE + 68 / - 78 * + + 40 * + MAX ( ALL - 17 ) + - ( - 70 ) END, ( + - 57 ) + - COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ), + - 58 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT - - SUM( ALL + 58 ) + 53
----
111

skipif mysql # not compatible
query I rowsort label-2084
SELECT - - SUM ( ALL + 58 ) + 53
----
111

query II rowsort
SELECT ALL + - 75 + - + 39, 25 AS col0
----
-114
25

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2087
SELECT MAX( + 21 ) AS col0, - 97 AS col0
----
21
-97

skipif mysql # not compatible
query II rowsort label-2087
SELECT MAX ( + 21 ) AS col0, - 97 AS col0
----
21
-97

query I rowsort
SELECT + - 65 * - 75 AS col2
----
4875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2089
SELECT DISTINCT 40 AS col1, + NULLIF ( - 24, + NULLIF ( - 33, + - CASE - - COUNT( * ) WHEN - + CAST( 57 AS SIGNED ) + - 84 + MIN( - ( + 48 ) ) THEN NULL WHEN + 86 * - ( - SUM( + 67 ) ) + + 9 THEN NULL ELSE 64 * + 72 END ) + + 69 ) DIV + 68 AS col0
----
40
0

skipif mysql # not compatible
query II rowsort label-2089
SELECT DISTINCT 40 AS col1, + NULLIF ( - 24, + NULLIF ( - 33, + - CASE - - COUNT ( * ) WHEN - + CAST ( 57 AS INTEGER ) + - 84 + MIN ( - ( + 48 ) ) THEN NULL WHEN + 86 * - ( - SUM ( + 67 ) ) + + 9 THEN NULL ELSE 64 * + 72 END ) + + 69 ) / + 68 AS col0
----
40
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2090
SELECT DISTINCT + 15 * + CAST( NULL AS DECIMAL ) * + 23 AS col1, + 26
----
NULL
26

skipif mysql # not compatible
query II rowsort label-2090
SELECT DISTINCT + 15 * + CAST ( NULL AS REAL ) * + 23 AS col1, + 26
----
NULL
26

query I rowsort
SELECT ALL NULLIF ( + 85, - 76 * + 87 ) AS col0
----
85

query I rowsort
SELECT DISTINCT + 70 - 52
----
18

query I rowsort
SELECT DISTINCT - 16 * - 6 * + - 29 AS col1
----
-2784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2094
SELECT ALL NULLIF ( - - CASE - 80 WHEN + 11 THEN - 43 WHEN - ( + 26 ) * - 30 + - - 53 + - + 74 * + CAST( NULL AS SIGNED ) / - 85 THEN NULL END, - 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL NULLIF ( - - CASE - 80 WHEN + 11 THEN - 43 WHEN - ( + 26 ) * - 30 + - - 53 + - + 74 * + CAST ( NULL AS INTEGER ) / - 85 THEN NULL END, - 5 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT DISTINCT 89 * ( COUNT( * ) )
----
89

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT 89 * ( COUNT ( * ) )
----
89

query I rowsort
SELECT DISTINCT + COALESCE ( 69, 9 ) col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2097
SELECT ALL - 53 * NULLIF ( CAST( + 12 AS SIGNED ), - 68 - 36 + - + NULLIF ( + COALESCE ( CAST( NULL AS SIGNED ), - - 34 * 73 + + COALESCE ( 30, + COUNT( * ), 0 - + + NULLIF ( 1, - - 52 ), + 76 ) ), - 56 ) * - 60 ) AS col2
----
-636

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL - 53 * NULLIF ( CAST ( + 12 AS INTEGER ), - 68 - 36 + - + NULLIF ( + COALESCE ( CAST ( NULL AS INTEGER ), - - 34 * 73 + + COALESCE ( 30, + COUNT ( * ), 0 - + + NULLIF ( 1, - - 52 ), + 76 ) ), - 56 ) * - 60 ) AS col2
----
-636

query II rowsort
SELECT ALL + 56, - 79 AS col1
----
56
-79

query I rowsort
SELECT ALL + NULLIF ( - - 0, 26 ) AS col0
----
0

query I rowsort
SELECT DISTINCT - 72 / - CASE - 35 WHEN 24 THEN + 33 + - + 15 END
----
NULL

query I rowsort
SELECT - 88 * - ( 94 ) AS col2
----
8272

query I rowsort
SELECT - 0 + - 20
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2103
SELECT ALL ( - 61 ) * - - COUNT( * ) * + 41 + - COUNT( * ) + + + 86 DIV + 90 AS col1
----
-2502

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL ( - 61 ) * - - COUNT ( * ) * + 41 + - COUNT ( * ) + + + 86 / + 90 AS col1
----
-2502

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2104
SELECT + NULLIF ( - CAST( + 81 AS SIGNED ), - 60 ) * + - 63 + - + MAX( 25 ) AS col2
----
5078

skipif mysql # not compatible
query I rowsort label-2104
SELECT + NULLIF ( - CAST ( + 81 AS INTEGER ), - 60 ) * + - 63 + - + MAX ( 25 ) AS col2
----
5078

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

query I rowsort
SELECT - - 20 * + 77
----
1540

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2108
SELECT ALL + NULLIF ( MAX( 54 ), 43 + + - 17 ), - 74 + + COUNT( DISTINCT + 88 ) AS col1
----
54
-73

skipif mysql # not compatible
query II rowsort label-2108
SELECT ALL + NULLIF ( MAX ( 54 ), 43 + + - 17 ), - 74 + + COUNT ( DISTINCT + 88 ) AS col1
----
54
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2109
SELECT ALL - COUNT( * ) * 39 * + 34 + CAST( NULL AS SIGNED ) * 52 * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-2109
SELECT ALL - COUNT ( * ) * 39 * + 34 + CAST ( NULL AS INTEGER ) * 52 * + 2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2110
SELECT - - 71 + + 78 * + CASE - 80 WHEN + CAST( NULL AS SIGNED ) THEN - 49 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2110
SELECT - - 71 + + 78 * + CASE - 80 WHEN + CAST ( NULL AS INTEGER ) THEN - 49 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT ALL - + NULLIF ( + - 46, - + 42 * + 48 / - - 71 - + COUNT( * ) ) * + 67 col1
----
3082

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL - + NULLIF ( + - 46, - + 42 * + 48 / - - 71 - + COUNT ( * ) ) * + 67 col1
----
3082

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT ALL + 72 * + + CASE - 88 WHEN COUNT( 4 ) * - ( + 35 ) THEN + 82 END + - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL + 72 * + + CASE - 88 WHEN COUNT ( 4 ) * - ( + 35 ) THEN + 82 END + - 46 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT COUNT( * ) * + + 69 + - 85
----
-16

skipif mysql # not compatible
query I rowsort label-2113
SELECT COUNT ( * ) * + + 69 + - 85
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2114
SELECT + 64 AS col1, - MAX( ALL + 27 )
----
64
-27

skipif mysql # not compatible
query II rowsort label-2114
SELECT + 64 AS col1, - MAX ( ALL + 27 )
----
64
-27

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

skipif mysql # not compatible
query I rowsort label-2115
SELECT + MAX ( - 81 )
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2116
SELECT - CAST( NULL AS DECIMAL ) * + + 62 * + 76 - - ( - - 96 ) * + - 13 + + - 30 * + 39 + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-2116
SELECT - CAST ( NULL AS REAL ) * + + 62 * + 76 - - ( - - 96 ) * + - 13 + + - 30 * + 39 + 25
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2117
SELECT + - 75 AS col2, CASE + 85 WHEN + 50 THEN NULL ELSE COUNT( * ) END * - 6 DIV - 9 AS col1
----
-75
0

skipif mysql # not compatible
query II rowsort label-2117
SELECT + - 75 AS col2, CASE + 85 WHEN + 50 THEN NULL ELSE COUNT ( * ) END * - 6 / - 9 AS col1
----
-75
0

query I rowsort
SELECT + 65 + + NULLIF ( - 52, + 62 * + 79 * - + 4 / - 75 ) * - 1 * 59 * COALESCE ( - 5, - 46 ) AS col0
----
-15275

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2120
SELECT DISTINCT - ( + ( - + 8 ) ) DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT - ( + ( - + 8 ) ) / - 39
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2121
SELECT + ( CAST( NULL AS SIGNED ) ) - + COUNT( * ) + - CAST( NULL AS SIGNED ) / + - COUNT( * ) AS col2, - 38 * COUNT( * )
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-2121
SELECT + ( CAST ( NULL AS INTEGER ) ) - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) / + - COUNT ( * ) AS col2, - 38 * COUNT ( * )
----
NULL
-38

query I rowsort
SELECT + + 94 * + - 25 AS col2
----
-2350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2123
SELECT ALL CAST( NULL AS SIGNED ) * - 52, 1 * - ( - - 11 ) AS col0
----
NULL
-11

skipif mysql # not compatible
query II rowsort label-2123
SELECT ALL CAST ( NULL AS INTEGER ) * - 52, 1 * - ( - - 11 ) AS col0
----
NULL
-11

query I rowsort
SELECT + 96 * - - 65 * 67
----
418080

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT + COUNT( * ) * NULLIF ( 15, 25 + + 7 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-2125
SELECT + COUNT ( * ) * NULLIF ( 15, 25 + + 7 ) AS col0
----
15

query I rowsort
SELECT + 14 + 48 * + 97
----
4670

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT + MAX( DISTINCT + 91 ) + + 69 * + 88
----
6163

skipif mysql # not compatible
query I rowsort label-2128
SELECT + MAX ( DISTINCT + 91 ) + + 69 * + 88
----
6163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2129
SELECT ALL CASE + 93 WHEN 97 THEN 26 - - 49 WHEN + + 64 * - ( + 7 ) THEN - COUNT( * ) * + + 30 + - COUNT( * ) + - - COUNT( * ) + - + CAST( + ( + 16 ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL CASE + 93 WHEN 97 THEN 26 - - 49 WHEN + + 64 * - ( + 7 ) THEN - COUNT ( * ) * + + 30 + - COUNT ( * ) + - - COUNT ( * ) + - + CAST ( + ( + 16 ) AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT + MAX( + - 62 ) + COUNT( * ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-2130
SELECT + MAX ( + - 62 ) + COUNT ( * ) AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2131
SELECT + 43 * + CASE - + 7 WHEN - 62 * + COUNT( * ) * + COUNT( * ) THEN - - 59 WHEN - + ( + 16 ) * - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) THEN + 15 + 25 - + 28 * - 11 * - 44 * + + 83 ELSE NULL END * + 84 + + 20 / ( 20 ) * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2131
SELECT + 43 * + CASE - + 7 WHEN - 62 * + COUNT ( * ) * + COUNT ( * ) THEN - - 59 WHEN - + ( + 16 ) * - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN + 15 + 25 - + 28 * - 11 * - 44 * + + 83 ELSE NULL END * + 84 + + 20 / ( 20 ) * - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT + 60 + + COUNT( * ) + + 78
----
139

skipif mysql # not compatible
query I rowsort label-2132
SELECT + 60 + + COUNT ( * ) + + 78
----
139

query II rowsort
SELECT 91 AS col0, + 16
----
91
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2134
SELECT + COALESCE ( + ( 56 ), - 71 + + 23 + 28, - 8 ) + + COALESCE ( + - COUNT( * ), - - COUNT( * ) * + 67 - + 59 ) DIV + 28
----
56

skipif mysql # not compatible
query I rowsort label-2134
SELECT + COALESCE ( + ( 56 ), - 71 + + 23 + 28, - 8 ) + + COALESCE ( + - COUNT ( * ), - - COUNT ( * ) * + 67 - + 59 ) / + 28
----
56

query I rowsort
SELECT ALL - 67 * 2
----
-134

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2136
SELECT - 12 + + 49 + - - AVG ( CAST( NULL AS DECIMAL ) ) + + 24 + + 99 * + - 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT - 12 + + 49 + - - AVG ( CAST ( NULL AS REAL ) ) + + 24 + + 99 * + - 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT ALL 18 * - + SUM( DISTINCT + 88 )
----
-1584

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL 18 * - + SUM ( DISTINCT + 88 )
----
-1584

query I rowsort
SELECT DISTINCT 36 * + - 74 AS col0
----
-2664

query I rowsort
SELECT 7 + - + 23 col0
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2140
SELECT 10 DIV - - MAX( DISTINCT - 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-2140
SELECT 10 / - - MAX ( DISTINCT - 8 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT ALL - MIN( ALL 51 ) + - 84 - - 19 * + 61 / + - 13 + + COUNT( * ) + + + 28 * - 8 + 17 * 37 - - CASE 61 WHEN + 36 / + + 30 - ( + 22 ) * - 47 THEN - 50 + - 48 ELSE NULL END * + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL - MIN ( ALL 51 ) + - 84 - - 19 * + 61 / + - 13 + + COUNT ( * ) + + + 28 * - 8 + 17 * 37 - - CASE 61 WHEN + 36 / + + 30 - ( + 22 ) * - 47 THEN - 50 + - 48 ELSE NULL END * + 59 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT SUM( + 81 ) * - 45 AS col2
----
-3645

skipif mysql # not compatible
query I rowsort label-2142
SELECT SUM ( + 81 ) * - 45 AS col2
----
-3645

query I rowsort
SELECT DISTINCT - 49 + + 79
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT ALL + COUNT( + - 78 ) + - 26 - - - 71 + NULLIF ( ( COUNT( * ) ), + MIN( + 50 ) + - 24 )
----
-95

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL + COUNT ( + - 78 ) + - 26 - - - 71 + NULLIF ( ( COUNT ( * ) ), + MIN ( + 50 ) + - 24 )
----
-95

query II rowsort
SELECT + 46, COALESCE ( 87, - + ( - 44 ) + + 29 ) AS col0
----
46
87

onlyif mysql # aggregate syntax: 
query II rowsort label-2146
SELECT ALL - 72, - COUNT( * ) - - 27 AS col0
----
-72
26

skipif mysql # not compatible
query II rowsort label-2146
SELECT ALL - 72, - COUNT ( * ) - - 27 AS col0
----
-72
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2147
SELECT ALL + COUNT( * ) + + + 50 - + ( - - COALESCE ( MIN( 8 ), 86 * + + CASE - 99 WHEN - 6 THEN 73 ELSE + - COALESCE ( - - 31, + 2 DIV - + 67 + - - 38 - + ( 72 ) ) - - 1 + - COALESCE ( - COUNT( * ), ( 32 ) DIV 84 + - - 45, - NULLIF ( - COUNT( * ), + 80 * COUNT( * ) ) ) * + 32 END DIV + 79 ) ) + - COALESCE ( - 95, 72 )
----
138

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL + COUNT ( * ) + + + 50 - + ( - - COALESCE ( MIN ( 8 ), 86 * + + CASE - 99 WHEN - 6 THEN 73 ELSE + - COALESCE ( - - 31, + 2 / - + 67 + - - 38 - + ( 72 ) ) - - 1 + - COALESCE ( - COUNT ( * ), ( 32 ) / 84 + - - 45, - NULLIF ( - COUNT ( * ), + 80 * COUNT ( * ) ) ) * + 32 END / + 79 ) ) + - COALESCE ( - 95, 72 )
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT ALL - 89 DIV - 87
----
1

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL - 89 / - 87
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT ALL + 30 + + COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL + 30 + + COUNT ( * ) AS col1
----
31

query I rowsort
SELECT ALL + + 8 + + 69 AS col0
----
77

query I rowsort
SELECT DISTINCT + - 38 * + - 49 + - 85
----
1777

query I rowsort
SELECT + 53 * + ( - 84 )
----
-4452

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

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL + COUNT ( * ) / + - 45
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT CASE - 38 WHEN - 79 THEN + - NULLIF ( + 91, - 81 ) / - - 85 * + SUM( + 15 ) + - 61 - - ( - + 32 ) + 57 - + 39 - - MAX( ALL + 28 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2155
SELECT CASE - 38 WHEN - 79 THEN + - NULLIF ( + 91, - 81 ) / - - 85 * + SUM ( + 15 ) + - 61 - - ( - + 32 ) + 57 - + 39 - - MAX ( ALL + 28 ) END AS col2
----
NULL

query II rowsort
SELECT + + 77 AS col0, - 63 col1
----
77
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2157
SELECT DISTINCT - - COALESCE ( - 89, 49 DIV - COUNT( DISTINCT - 18 ) + - + 38 + - COALESCE ( - + 87, COUNT( * ), - - 88 * + - ( + + 84 ) + - + 84 + 12, + + 57 + 66 * + MAX( + + 60 ) ) * + + 82, - CASE - 64 WHEN - - 13 THEN + 53 DIV COUNT( * ) * + 45 * - - 24 + ( - 36 ) ELSE + 48 END * - 17 )
----
-89

skipif mysql # not compatible
query I rowsort label-2157
SELECT DISTINCT - - COALESCE ( - 89, 49 / - COUNT ( DISTINCT - 18 ) + - + 38 + - COALESCE ( - + 87, COUNT ( * ), - - 88 * + - ( + + 84 ) + - + 84 + 12, + + 57 + 66 * + MAX ( + + 60 ) ) * + + 82, - CASE - 64 WHEN - - 13 THEN + 53 / COUNT ( * ) * + 45 * - - 24 + ( - 36 ) ELSE + 48 END * - 17 )
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2158
SELECT ALL - + 33 - + 7 + 16 DIV - - NULLIF ( - 14, + COUNT( * ) * 26 * - + 52 + 89 )
----
-41

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL - + 33 - + 7 + 16 / - - NULLIF ( - 14, + COUNT ( * ) * 26 * - + 52 + 89 )
----
-41

query I rowsort
SELECT NULLIF ( + + 49, 90 ) col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT ALL - CASE - - 67 WHEN - 88 + COALESCE ( + 57, + COUNT( * ), - + 85 + - - 78 ) THEN 7 + - COUNT( ( - CASE - 82 WHEN 92 THEN 18 END ) ) WHEN 63 THEN NULL ELSE + 16 END * 27 * 68
----
-29376

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL - CASE - - 67 WHEN - 88 + COALESCE ( + 57, + COUNT ( * ), - + 85 + - - 78 ) THEN 7 + - COUNT ( ( - CASE - 82 WHEN 92 THEN 18 END ) ) WHEN 63 THEN NULL ELSE + 16 END * 27 * 68
----
-29376

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT ALL - - CASE - - 2 WHEN 34 * + 19 + + ( - COUNT( * ) ) THEN + 77 * - 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL - - CASE - - 2 WHEN 34 * + 19 + + ( - COUNT ( * ) ) THEN + 77 * - 88 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT DISTINCT - + CASE 27 WHEN - 68 THEN 30 * - CASE + + 90 WHEN + - 96 THEN - COUNT( * ) * - + 50 * 42 ELSE NULL END + + 35 + - + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2162
SELECT DISTINCT - + CASE 27 WHEN - 68 THEN 30 * - CASE + + 90 WHEN + - 96 THEN - COUNT ( * ) * - + 50 * 42 ELSE NULL END + + 35 + - + COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT ALL CASE - + 39 WHEN - 31 / - COUNT( * ) THEN NULL WHEN + ( + 91 ) * + + 85 THEN - 65 + + - 19 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2163
SELECT ALL CASE - + 39 WHEN - 31 / - COUNT ( * ) THEN NULL WHEN + ( + 91 ) * + + 85 THEN - 65 + + - 19 END AS col0
----
NULL

query II rowsort
SELECT 76 * - - 95 AS col1, 97
----
7220
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2165
SELECT 47 * + - COUNT( * ), 64 AS col2
----
-47
64

skipif mysql # not compatible
query II rowsort label-2165
SELECT 47 * + - COUNT ( * ), 64 AS col2
----
-47
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT COUNT( - 73 ) + 97 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-2166
SELECT COUNT ( - 73 ) + 97 AS col2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2167
SELECT DISTINCT 2 DIV - 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2167
SELECT DISTINCT 2 / - 65 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2168
SELECT CAST( + 78 AS SIGNED ) + + 65 + + 83
----
226

skipif mysql # not compatible
query I rowsort label-2168
SELECT CAST ( + 78 AS INTEGER ) + + 65 + + 83
----
226

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT ALL 37 * + - SUM( DISTINCT - 47 )
----
1739

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL 37 * + - SUM ( DISTINCT - 47 )
----
1739

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2170
SELECT DISTINCT 72 * + + 40 / + CASE 0 WHEN + + CASE + COUNT( * ) WHEN - 5 / + ( + 62 ) * - COALESCE ( + 80, + CAST( NULL AS DECIMAL ), - 86 + - 72 ) THEN + 41 * + 91 + + - 28 WHEN - - 81 + - ( + CAST( + 74 AS SIGNED ) ) * 66 THEN NULL ELSE NULL END THEN + 78 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT 72 * + + 40 / + CASE 0 WHEN + + CASE + COUNT ( * ) WHEN - 5 / + ( + 62 ) * - COALESCE ( + 80, + CAST ( NULL AS REAL ), - 86 + - 72 ) THEN + 41 * + 91 + + - 28 WHEN - - 81 + - ( + CAST ( + 74 AS INTEGER ) ) * 66 THEN NULL ELSE NULL END THEN + 78 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2171
SELECT ALL 1 * - - 84 AS col1, - 53 DIV 46 * + 17 col2
----
84
-17

skipif mysql # not compatible
query II rowsort label-2171
SELECT ALL 1 * - - 84 AS col1, - 53 / 46 * + 17 col2
----
84
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT MAX( + 12 ) - ( + 58 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-2172
SELECT MAX ( + 12 ) - ( + 58 ) AS col0
----
-46

query II rowsort
SELECT 26 * + 85 AS col2, 8 col1
----
2210
8

query I rowsort
SELECT ALL 65 + + - 34 AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2175
SELECT ALL COUNT( * ) + + CASE - CAST( - 11 AS SIGNED ) WHEN + + COUNT( * ) / + NULLIF ( + 91, COUNT( * ) + + - ( 66 ) * COUNT( * ) / 76 * + + 51 * 92 * 66 + + CAST( - 69 AS SIGNED ) + + + 21 * - 18 - - - 7 ) THEN - - 66 * + 97 WHEN 11 THEN + COUNT( * ) ELSE NULL END
----
2

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL COUNT ( * ) + + CASE - CAST ( - 11 AS INTEGER ) WHEN + + COUNT ( * ) / + NULLIF ( + 91, COUNT ( * ) + + - ( 66 ) * COUNT ( * ) / 76 * + + 51 * 92 * 66 + + CAST ( - 69 AS INTEGER ) + + + 21 * - 18 - - - 7 ) THEN - - 66 * + 97 WHEN 11 THEN + COUNT ( * ) ELSE NULL END
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT DISTINCT 94 + + 6 DIV + 76 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT 94 + + 6 / + 76 AS col0
----
94

query I rowsort
SELECT ALL - - 85 + + 4 + 65 * 77 AS col0
----
5094

query I rowsort
SELECT ALL - 49 + + 89 AS col0
----
40

query I rowsort
SELECT DISTINCT - - 35 + - 28 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT CASE + 61 WHEN - 96 * + 72 + + 4 THEN NULL WHEN + 91 / 52 * + COUNT( * ) THEN + 51 * + - 76 * + 92 * + 80 * + 78 * AVG ( ALL - 7 ) + - COUNT( ALL + 16 ) ELSE - 60 END
----
-60

skipif mysql # not compatible
query I rowsort label-2180
SELECT CASE + 61 WHEN - 96 * + 72 + + 4 THEN NULL WHEN + 91 / 52 * + COUNT ( * ) THEN + 51 * + - 76 * + 92 * + 80 * + 78 * AVG ( ALL - 7 ) + - COUNT ( ALL + 16 ) ELSE - 60 END
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2181
SELECT ALL - 99 + - 33 DIV 74 * - 69 - + - 86 * + 95
----
8071

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL - 99 + - 33 / 74 * - 69 - + - 86 * + 95
----
8071

query I rowsort
SELECT 69 + + 59 * - + 70
----
-4061

query I rowsort
SELECT + 20 * + 13
----
260

query II rowsort
SELECT ALL + 33 - 68 - - 88 * 96 * - 30 AS col1, 79 AS col1
----
-253475
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2185
SELECT - CASE 6 WHEN + CASE - ( 25 ) WHEN 55 THEN NULL WHEN - COUNT( ALL - ( 44 ) ) THEN - COUNT( * ) END + + COUNT( * ) * - 50 + + CAST( - 3 AS DECIMAL ) THEN NULL WHEN 48 * + 43 THEN + SUM( + - ( - + 61 ) ) + + COALESCE ( - 84, 26 ) * + 27 ELSE 0 END * - COALESCE ( - + 19, + CAST( 79 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2185
SELECT - CASE 6 WHEN + CASE - ( 25 ) WHEN 55 THEN NULL WHEN - COUNT ( ALL - ( 44 ) ) THEN - COUNT ( * ) END + + COUNT ( * ) * - 50 + + CAST ( - 3 AS REAL ) THEN NULL WHEN 48 * + 43 THEN + SUM ( + - ( - + 61 ) ) + + COALESCE ( - 84, 26 ) * + 27 ELSE 0 END * - COALESCE ( - + 19, + CAST ( 79 AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2186
SELECT ALL 56 * 97 - SUM( - 51 ) + NULLIF ( + - 36, + + CAST( NULL AS SIGNED ) ) * + - 91 / - 0 * - 45 * - 10 * - CAST( NULL AS SIGNED ) * - - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL 56 * 97 - SUM ( - 51 ) + NULLIF ( + - 36, + + CAST ( NULL AS INTEGER ) ) * + - 91 / - 0 * - 45 * - 10 * - CAST ( NULL AS INTEGER ) * - - 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT ALL - + ( + CASE + - COUNT( * ) WHEN + COUNT( * ) * - COUNT( * ) THEN 24 ELSE + 41 END )
----
-24

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL - + ( + CASE + - COUNT ( * ) WHEN + COUNT ( * ) * - COUNT ( * ) THEN 24 ELSE + 41 END )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT CASE + 87 WHEN 20 / + COUNT( * ) THEN 93 WHEN + 91 THEN 9 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2188
SELECT CASE + 87 WHEN 20 / + COUNT ( * ) THEN 93 WHEN + 91 THEN 9 ELSE NULL END
----
NULL

query I rowsort
SELECT 84 + + 30 AS col1
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2190
SELECT CAST( NULL AS SIGNED ) * + 31 * + + 63 + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-2190
SELECT CAST ( NULL AS INTEGER ) * + 31 * + + 63 + + 14
----
NULL

query I rowsort
SELECT 17 * + 18 AS col2
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT - ( - ( + 56 ) ) * + + 30 + 56 + COUNT( * ) + - 10 * 19 * + COUNT( + - 53 ) * + ( 57 ) * 16 + - 2 * - 57 AS col0
----
-171429

skipif mysql # not compatible
query I rowsort label-2192
SELECT - ( - ( + 56 ) ) * + + 30 + 56 + COUNT ( * ) + - 10 * 19 * + COUNT ( + - 53 ) * + ( 57 ) * 16 + - 2 * - 57 AS col0
----
-171429

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT COUNT( DISTINCT 40 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2193
SELECT COUNT ( DISTINCT 40 ) AS col0
----
1

query II rowsort
SELECT ALL - 2 * ( 2 ) AS col0, + ( 70 ) AS col0
----
-4
70

query I rowsort
SELECT 56 * + 67
----
3752

query I rowsort
SELECT ALL + 30 + + - 20
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT 72 - 70 * - COUNT( * ) + + - COUNT( * ) + + 48 col0
----
189

skipif mysql # not compatible
query I rowsort label-2197
SELECT 72 - 70 * - COUNT ( * ) + + - COUNT ( * ) + + 48 col0
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT ALL 31 + + 80 * - 72 * + + COUNT( DISTINCT - 9 ) AS col1
----
-5729

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL 31 + + 80 * - 72 * + + COUNT ( DISTINCT - 9 ) AS col1
----
-5729

query I rowsort
SELECT 82 + - 50
----
32

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2201
SELECT - NULLIF ( 40, ( ( + + MAX( + 78 ) ) ) ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2201
SELECT - NULLIF ( 40, ( ( + + MAX ( + 78 ) ) ) ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 7 - 88 + NULLIF ( 57, - - 88 + + 10 + - 58 / 80 ) * + 46 AS col2
----
2541

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT ALL 89 + - 82 * - + COUNT( * ) + + 36 + + + 78
----
285

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL 89 + - 82 * - + COUNT ( * ) + + 36 + + + 78
----
285

onlyif mysql # DIV for integer division: 
query I rowsort label-2204
SELECT + 59 DIV - 40 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2204
SELECT + 59 / - 40 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2205
SELECT - CAST( 66 AS SIGNED ) + - 88, - CAST( NULL AS SIGNED ) + 88 AS col1
----
-154
NULL

skipif mysql # not compatible
query II rowsort label-2205
SELECT - CAST ( 66 AS INTEGER ) + - 88, - CAST ( NULL AS INTEGER ) + 88 AS col1
----
-154
NULL

query I rowsort
SELECT ALL 41 + + + 23 * - - 14 AS col1
----
363

query I rowsort
SELECT + 47 + ( 10 ) AS col0
----
57

query II rowsort
SELECT ALL NULLIF ( CASE - 44 WHEN + 52 THEN 69 ELSE NULL END, 85 ) AS col2, 60
----
NULL
60

query II rowsort
SELECT ALL 87 AS col0, - 61 col0
----
87
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT DISTINCT COUNT( 9 ) * 78 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-2210
SELECT DISTINCT COUNT ( 9 ) * 78 AS col2
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-2211
SELECT ALL - 94 AS col1, MAX( ALL - 50 )
----
-94
-50

skipif mysql # not compatible
query II rowsort label-2211
SELECT ALL - 94 AS col1, MAX ( ALL - 50 )
----
-94
-50

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT ALL + MAX( DISTINCT + + NULLIF ( - + 83, - 40 + 47 * + 52 / ( - 36 ) ) ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL + MAX ( DISTINCT + + NULLIF ( - + 83, - 40 + 47 * + 52 / ( - 36 ) ) ) AS col0
----
-83

query I rowsort
SELECT + + 82 * + - 30 AS col1
----
-2460

query I rowsort
SELECT + 21 * 1
----
21

query I rowsort
SELECT ALL 90 * - 66
----
-5940

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT + 60 + + COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-2218
SELECT + 60 + + COUNT ( * ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-2219
SELECT 46 * + 40 - - - COUNT( * ), COUNT( * ) AS col0
----
1839
1

skipif mysql # not compatible
query II rowsort label-2219
SELECT 46 * + 40 - - - COUNT ( * ), COUNT ( * ) AS col0
----
1839
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT DISTINCT + ( - ( MAX( ALL + + 56 ) ) ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT + ( - ( MAX ( ALL + + 56 ) ) ) AS col2
----
-56

query I rowsort
SELECT ALL 17 * + 31 AS col2
----
527

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT - - COUNT( * ) * - + COUNT( * ) * + 48 + - 49 + 30
----
-67

skipif mysql # not compatible
query I rowsort label-2222
SELECT - - COUNT ( * ) * - + COUNT ( * ) * + 48 + - 49 + 30
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2223
SELECT + SUM( ALL + + 90 ) + + + 11 + + CAST( NULL AS SIGNED ) / + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT + SUM ( ALL + + 90 ) + + + 11 + + CAST ( NULL AS INTEGER ) / + 5
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2224
SELECT CAST( NULL AS DECIMAL ) * - 12 - COUNT( - 8 ) * - + AVG ( CAST( + 13 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2224
SELECT CAST ( NULL AS REAL ) * - 12 - COUNT ( - 8 ) * - + AVG ( CAST ( + 13 AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2225
SELECT - NULLIF ( + - 89, + 22 ) * + ( 86 ) - - COUNT( * ) + + - NULLIF ( - MIN( DISTINCT COALESCE ( COALESCE ( - - 73, + 82 + COALESCE ( - 70, 42, - 92, ( - + ( - + 4 ) ) * - 88 + + - 96 ) ), + ( - + 72 ) - + 80 ) ), - - COUNT( * ) ) + + + CAST( - + 39 AS SIGNED ) AS col2, - 40 * 37
----
7689
-1480

skipif mysql # not compatible
query II rowsort label-2225
SELECT - NULLIF ( + - 89, + 22 ) * + ( 86 ) - - COUNT ( * ) + + - NULLIF ( - MIN ( DISTINCT COALESCE ( COALESCE ( - - 73, + 82 + COALESCE ( - 70, 42, - 92, ( - + ( - + 4 ) ) * - 88 + + - 96 ) ), + ( - + 72 ) - + 80 ) ), - - COUNT ( * ) ) + + + CAST ( - + 39 AS INTEGER ) AS col2, - 40 * 37
----
7689
-1480

onlyif mysql # aggregate syntax: 
query II rowsort label-2226
SELECT MIN( ALL + 88 ) col2, 61
----
88
61

skipif mysql # not compatible
query II rowsort label-2226
SELECT MIN ( ALL + 88 ) col2, 61
----
88
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT - ( MAX( 17 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-2227
SELECT - ( MAX ( 17 ) )
----
-17

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

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL COUNT ( * ) * + + 30 + ( COUNT ( * ) ) AS col0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2229
SELECT + 1 DIV - + 71
----
0

skipif mysql # not compatible
query I rowsort label-2229
SELECT + 1 / - + 71
----
0

query I rowsort
SELECT DISTINCT - 26 * - - 32
----
-832

query I rowsort
SELECT - 83 + - 84 - - - ( - ( 8 ) ) * 41
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT ALL COALESCE ( - COUNT( * ), COUNT( ALL 94 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL COALESCE ( - COUNT ( * ), COUNT ( ALL 94 ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + 54 * ( - COALESCE ( 71, - 67, - 67 ) )
----
-3834

query II rowsort
SELECT DISTINCT 18 + ( 67 ) + - 62, - 88 * ( 84 ) col2
----
23
-7392

query II rowsort
SELECT ALL NULLIF ( 50, - 16 * + - 82 ) col2, - 11
----
50
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT ALL + COALESCE ( - - 93, - ( 7 ) ) * - SUM( DISTINCT - 79 )
----
7347

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL + COALESCE ( - - 93, - ( 7 ) ) * - SUM ( DISTINCT - 79 )
----
7347

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT - MAX( + 37 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-2237
SELECT - MAX ( + 37 ) AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2238
SELECT - CAST( NULL AS SIGNED ) - - + 80 * - COUNT( 89 ) * - - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2238
SELECT - CAST ( NULL AS INTEGER ) - - + 80 * - COUNT ( 89 ) * - - 30
----
NULL

query I rowsort
SELECT - 19 - 3 AS col2
----
-22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT - - COUNT( DISTINCT + 84 ) * + 2 * SUM( DISTINCT - 19 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-2241
SELECT - - COUNT ( DISTINCT + 84 ) * + 2 * SUM ( DISTINCT - 19 ) AS col0
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-2242
SELECT DISTINCT + ( - - 46 ) DIV 67 - 51 - + + 41 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-2242
SELECT DISTINCT + ( - - 46 ) / 67 - 51 - + + 41 AS col1
----
-92

query II rowsort
SELECT DISTINCT - + 60 - - - 4 AS col0, 59
----
-64
59

query I rowsort
SELECT - + 27 * ( + - 41 ) col0
----
1107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2245
SELECT ALL - COUNT( * ) * 81 - - + ( - - CASE - NULLIF ( 86, + 58 ) WHEN - 41 THEN - 1 END ), CAST( NULL AS SIGNED ) / - COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2245
SELECT ALL - COUNT ( * ) * 81 - - + ( - - CASE - NULLIF ( 86, + 58 ) WHEN - 41 THEN - 1 END ), CAST ( NULL AS INTEGER ) / - COUNT ( * )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT - - NULLIF ( 33, 35 * 20 + - 57 + - - ( - 79 ) * COUNT( * ) + 94 + 56 ) - + 92
----
-59

skipif mysql # not compatible
query I rowsort label-2246
SELECT - - NULLIF ( 33, 35 * 20 + - 57 + - - ( - 79 ) * COUNT ( * ) + 94 + 56 ) - + 92
----
-59

query I rowsort
SELECT - 35 + 51
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2248
SELECT + NULLIF ( - 84, - 76 ) DIV - + 76 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2248
SELECT + NULLIF ( - 84, - 76 ) / - + 76 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT ALL CASE + 23 WHEN + 13 + - 40 + - 87 * + 70 THEN + 71 ELSE - 44 + 21 END * - 69 * + SUM( + 43 ) AS col0
----
68241

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL CASE + 23 WHEN + 13 + - 40 + - 87 * + 70 THEN + 71 ELSE - 44 + 21 END * - 69 * + SUM ( + 43 ) AS col0
----
68241

query I rowsort
SELECT - - 59 * + 22 * 34 * - COALESCE ( 69, - 93, - + 53 )
----
-3045108

query I rowsort
SELECT ALL + NULLIF ( - ( 8 ), + 72 / - + 84 )
----
-8

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2253
SELECT + COUNT( * ) + - 47 DIV + COUNT( DISTINCT + 39 ) + + 67 - - - MAX( 28 ) + + ( - - 26 ) - 86 * - 74
----
6383

skipif mysql # not compatible
query I rowsort label-2253
SELECT + COUNT ( * ) + - 47 / + COUNT ( DISTINCT + 39 ) + + 67 - - - MAX ( 28 ) + + ( - - 26 ) - 86 * - 74
----
6383

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2254
SELECT + 0 * - ( + + 4 ) * ( + 35 ) + + 13 + + - COALESCE ( + CAST( NULL AS SIGNED ), + + CAST( + 30 AS SIGNED ) * - 50, + COUNT( * ) * - + 19 + - 96 ) AS col1
----
1513

skipif mysql # not compatible
query I rowsort label-2254
SELECT + 0 * - ( + + 4 ) * ( + 35 ) + + 13 + + - COALESCE ( + CAST ( NULL AS INTEGER ), + + CAST ( + 30 AS INTEGER ) * - 50, + COUNT ( * ) * - + 19 + - 96 ) AS col1
----
1513

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT ALL NULLIF ( + MAX( DISTINCT + + 5 ), + MIN( - - 86 ) ) * + ( COUNT( * ) ) + + - 46 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL NULLIF ( + MAX ( DISTINCT + + 5 ), + MIN ( - - 86 ) ) * + ( COUNT ( * ) ) + + - 46 AS col0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-2256
SELECT ALL 19 + - 4 * - 77 DIV - 70 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL 19 + - 4 * - 77 / - 70 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT ALL 78 + - 91 - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL 78 + - 91 - COUNT ( * )
----
-14

query I rowsort
SELECT + 68 * 61 + - + 45 + + 15
----
4118

query I rowsort
SELECT 81 + + 46 AS col2
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2260
SELECT ALL SUM( - - 65 ) + + 26 + 24 + + 54 / - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL SUM ( - - 65 ) + + 26 + 24 + + 54 / - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 68 * 36 + - + 17
----
2431

query I rowsort
SELECT ( - NULLIF ( 30, + - 21 / - - 31 ) ) + 68
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT 97 + - - MAX( + + 7 )
----
104

skipif mysql # not compatible
query I rowsort label-2263
SELECT 97 + - - MAX ( + + 7 )
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-2264
SELECT - 81, + 36 * + 13 * - 40 + - COUNT( * ) AS col0
----
-81
-18721

skipif mysql # not compatible
query II rowsort label-2264
SELECT - 81, + 36 * + 13 * - 40 + - COUNT ( * ) AS col0
----
-81
-18721

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2265
SELECT 45 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2265
SELECT 45 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT ALL - COUNT( * ) * - 46 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL - COUNT ( * ) * - 46 AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2267
SELECT 51 / 36 / + 9 + CAST( CASE - ( - 26 ) WHEN 75 * 12 THEN - 52 WHEN - 10 * + 80 + - 78 THEN 49 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2267
SELECT 51 / 36 / + 9 + CAST ( CASE - ( - 26 ) WHEN 75 * 12 THEN - 52 WHEN - 10 * + 80 + - 78 THEN 49 END AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT - ( - + MAX( ALL 9 ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2268
SELECT - ( - + MAX ( ALL 9 ) ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT ALL + COUNT( * ) * + - 33 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL + COUNT ( * ) * + - 33 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-2270
SELECT - 39 + + 55 - - 88 + + COUNT( * ) + - 89, 84 AS col1
----
16
84

skipif mysql # not compatible
query II rowsort label-2270
SELECT - 39 + + 55 - - 88 + + COUNT ( * ) + - 89, 84 AS col1
----
16
84

query I rowsort
SELECT ALL - 76 * 13 * - 27
----
26676

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2272
SELECT 90 + + + 76 + - 24 * - + CASE CAST( NULL AS SIGNED ) WHEN + - 67 THEN 25 * - 60 * + COUNT( * ) WHEN - CASE - 12 WHEN + - 32 + - ( + + 46 ) THEN COUNT( * ) * + 46 * + 76 + COUNT( * ) + + 60 WHEN 62 THEN NULL END * + 43 + + ( - + 98 ) THEN + 60 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2272
SELECT 90 + + + 76 + - 24 * - + CASE CAST ( NULL AS INTEGER ) WHEN + - 67 THEN 25 * - 60 * + COUNT ( * ) WHEN - CASE - 12 WHEN + - 32 + - ( + + 46 ) THEN COUNT ( * ) * + 46 * + 76 + COUNT ( * ) + + 60 WHEN 62 THEN NULL END * + 43 + + ( - + 98 ) THEN + 60 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT COUNT( * ) * - CASE COUNT( * ) WHEN + ( - MIN( DISTINCT + 80 ) ) + - 15 * 35 * - COUNT( 45 ) * - 7 + + 99 + + MAX( 33 ) THEN - - 33 + 91 WHEN NULLIF ( - + 7, 27 ) THEN NULL ELSE COUNT( * ) * + ( - ( + MIN( 68 ) ) ) END
----
68

skipif mysql # not compatible
query I rowsort label-2273
SELECT COUNT ( * ) * - CASE COUNT ( * ) WHEN + ( - MIN ( DISTINCT + 80 ) ) + - 15 * 35 * - COUNT ( 45 ) * - 7 + + 99 + + MAX ( 33 ) THEN - - 33 + 91 WHEN NULLIF ( - + 7, 27 ) THEN NULL ELSE COUNT ( * ) * + ( - ( + MIN ( 68 ) ) ) END
----
68

query I rowsort
SELECT DISTINCT - + 57 * - + 13 * + 56 + + + 72 AS col0
----
41568

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL - MIN( DISTINCT 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL - MIN ( DISTINCT 45 )
----
-45

query I rowsort
SELECT 82 * - 3
----
-246

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

skipif mysql # not compatible
query I rowsort label-2277
SELECT - - MAX ( + - 98 )
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2278
SELECT NULLIF ( - 66, + MIN( DISTINCT + COALESCE ( - - 40, - 44 ) ) * + ( - - COUNT( * ) ) + + 84 * + 56 * 67 DIV - 80 ) + - 1 + 2 + 44 DIV + + 38 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-2278
SELECT NULLIF ( - 66, + MIN ( DISTINCT + COALESCE ( - - 40, - 44 ) ) * + ( - - COUNT ( * ) ) + + 84 * + 56 * 67 / - 80 ) + - 1 + 2 + 44 / + + 38 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT 0 * 74 * - ( MIN( 93 ) ) + + 45 - - - 48 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-2279
SELECT 0 * 74 * - ( MIN ( 93 ) ) + + 45 - - - 48 AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2280
SELECT DISTINCT - 60 / + COUNT( * ) * ( CAST( NULL AS SIGNED ) ) * + 31 + - CASE + - 80 WHEN - COALESCE ( + + 33, - 86 * + 14 - + COUNT( * ) * - 84 + + + 31 ) * + 23 * + + 69 * - 11 THEN NULL ELSE - 60 END - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT - 60 / + COUNT ( * ) * ( CAST ( NULL AS INTEGER ) ) * + 31 + - CASE + - 80 WHEN - COALESCE ( + + 33, - 86 * + 14 - + COUNT ( * ) * - 84 + + + 31 ) * + 23 * + + 69 * - 11 THEN NULL ELSE - 60 END - 39
----
NULL

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

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

query II rowsort
SELECT ALL - - 22 AS col0, - 43 AS col2
----
22
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT DISTINCT + - 77 + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT + - 77 + COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT ALL - 35 + + + 48 + COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL - 35 + + + 48 + COUNT ( * ) AS col0
----
14

query I rowsort
SELECT ALL + 80 + + 75
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT + MIN( + + 52 ) * + + 67 - - 75
----
3559

skipif mysql # not compatible
query I rowsort label-2286
SELECT + MIN ( + + 52 ) * + + 67 - - 75
----
3559

query I rowsort
SELECT 72 * + 51 * 28 AS col0
----
102816

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT COUNT( * ) * - 8 col2
----
-8

skipif mysql # not compatible
query I rowsort label-2288
SELECT COUNT ( * ) * - 8 col2
----
-8

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2290
SELECT 20 * 73 * - + 92 * 46 * NULLIF ( + 87, CAST( + 15 AS SIGNED ) + AVG ( + - 67 ) ) AS col2
----
-537548640

skipif mysql # not compatible
query I rowsort label-2290
SELECT 20 * 73 * - + 92 * 46 * NULLIF ( + 87, CAST ( + 15 AS INTEGER ) + AVG ( + - 67 ) ) AS col2
----
-537548640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2291
SELECT ALL 1 - + - COUNT( * ) + + 21 + - CASE + 27 WHEN 97 * + ( + 23 ) THEN - + MAX( - CAST( NULL AS SIGNED ) ) + COALESCE ( 79, + 84 ) + - 83 * - 89 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL 1 - + - COUNT ( * ) + + 21 + - CASE + 27 WHEN 97 * + ( + 23 ) THEN - + MAX ( - CAST ( NULL AS INTEGER ) ) + COALESCE ( 79, + 84 ) + - 83 * - 89 ELSE NULL END col0
----
NULL

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

query II rowsort
SELECT 40 col1, - 95 AS col0
----
40
-95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT 0 * + CASE - 9 WHEN - - 25 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT 0 * + CASE - 9 WHEN - - 25 THEN COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT 35 * - 59
----
-2065

onlyif mysql # aggregate syntax: 
query II rowsort label-2297
SELECT - 26, - COUNT( * ) + + 45 - + - 57 * - ( - - COUNT( * ) ) * 53 AS col1
----
-26
-2977

skipif mysql # not compatible
query II rowsort label-2297
SELECT - 26, - COUNT ( * ) + + 45 - + - 57 * - ( - - COUNT ( * ) ) * 53 AS col1
----
-26
-2977

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT 42 + + 31 * - 78 * 41 * - COUNT( * )
----
99180

skipif mysql # not compatible
query I rowsort label-2298
SELECT 42 + + 31 * - 78 * 41 * - COUNT ( * )
----
99180

query I rowsort
SELECT DISTINCT 0 * - 95 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2300
SELECT ALL 80 AS col2, + COUNT( * ) + + 49
----
80
50

skipif mysql # not compatible
query II rowsort label-2300
SELECT ALL 80 AS col2, + COUNT ( * ) + + 49
----
80
50

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2302
SELECT 35 * + 48 AS col0, - 35 + - - CASE - 12 WHEN - CAST( 20 AS SIGNED ) - COALESCE ( - - 35, 83 ) THEN NULL ELSE + 53 END
----
1680
18

skipif mysql # not compatible
query II rowsort label-2302
SELECT 35 * + 48 AS col0, - 35 + - - CASE - 12 WHEN - CAST ( 20 AS INTEGER ) - COALESCE ( - - 35, 83 ) THEN NULL ELSE + 53 END
----
1680
18

query I rowsort
SELECT ALL - 14 + - + 30 * + 67
----
-2024

query II rowsort
SELECT DISTINCT 79 AS col0, 68 * - - 17
----
79
1156

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

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

query I rowsort
SELECT ALL - 64 + + 82 * 28 - - 93 * - 85
----
-5673

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2307
SELECT ( - + 33 ) + + 52 + - NULLIF ( - + 84, - + 51 + - 89 - + 16 ) * + 92 * COUNT( * ) * - + 20 + + 55 DIV COUNT( * ) AS col1
----
-154486

skipif mysql # not compatible
query I rowsort label-2307
SELECT ( - + 33 ) + + 52 + - NULLIF ( - + 84, - + 51 + - 89 - + 16 ) * + 92 * COUNT ( * ) * - + 20 + + 55 / COUNT ( * ) AS col1
----
-154486

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT - 53 - NULLIF ( + - 72, - 62 + + 54 ) * - COUNT( * )
----
-125

skipif mysql # not compatible
query I rowsort label-2308
SELECT - 53 - NULLIF ( + - 72, - 62 + + 54 ) * - COUNT ( * )
----
-125

onlyif mysql # aggregate syntax: 
query II rowsort label-2309
SELECT ALL - COUNT( * ), + COUNT( * ) + + - ( 2 ) * + ( 43 ) * 66 AS col0
----
-1
-5675

skipif mysql # not compatible
query II rowsort label-2309
SELECT ALL - COUNT ( * ), + COUNT ( * ) + + - ( 2 ) * + ( 43 ) * 66 AS col0
----
-1
-5675

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

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL 28 + + CAST ( NULL AS REAL ) - + 66 AS col0
----
NULL

query I rowsort
SELECT COALESCE ( 31, - COALESCE ( 16, 66 * 59 + - 44 + - 64 ), 17 * + 30 ) - 99 + 21 + + 49 * - - ( - - 21 ) * + - 79 AS col0
----
-81338

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

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

query I rowsort
SELECT + + 95 * - - 18 + + 41 col1
----
1751

query I rowsort
SELECT ALL + 38 * - 73 + - - 59
----
-2715

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2316
SELECT + 85 + - COUNT( * ) AS col1, - 7 * + - COUNT( * ) * COUNT( * ) DIV + - 93 + 28
----
84
28

skipif mysql # not compatible
query II rowsort label-2316
SELECT + 85 + - COUNT ( * ) AS col1, - 7 * + - COUNT ( * ) * COUNT ( * ) / + - 93 + 28
----
84
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT - 67 - + MAX( - ( 66 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2317
SELECT - 67 - + MAX ( - ( 66 ) ) AS col2
----
-1

query II rowsort
SELECT ALL + ( 92 ) AS col0, 59
----
92
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2319
SELECT COUNT( + 49 ) DIV - NULLIF ( - 57, - - COUNT( * ) ) + + - 8
----
-8

skipif mysql # not compatible
query I rowsort label-2319
SELECT COUNT ( + 49 ) / - NULLIF ( - 57, - - COUNT ( * ) ) + + - 8
----
-8

query I rowsort
SELECT 49 * - 52 - + 33
----
-2581

query I rowsort
SELECT DISTINCT + NULLIF ( 62, + + 89 ) col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2322
SELECT ALL - COUNT( * ) DIV + SUM( DISTINCT - 7 ) * 99 * + - NULLIF ( - 50, + COUNT( + 21 ) * - COUNT( * ) * + + 6 + - + CAST( NULL AS SIGNED ) + 1 * 88 + - + ( - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL - COUNT ( * ) / + SUM ( DISTINCT - 7 ) * 99 * + - NULLIF ( - 50, + COUNT ( + 21 ) * - COUNT ( * ) * + + 6 + - + CAST ( NULL AS INTEGER ) + 1 * 88 + - + ( - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2323
SELECT - 7 + - CAST( 39 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-2323
SELECT - 7 + - CAST ( 39 AS INTEGER )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT ALL COALESCE ( + 29, NULLIF ( - + COUNT( * ), - 57 ) ) * + + 58 + + + 63 * COUNT( + - 10 ) * + 71 AS col2
----
6155

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL COALESCE ( + 29, NULLIF ( - + COUNT ( * ), - 57 ) ) * + + 58 + + + 63 * COUNT ( + - 10 ) * + 71 AS col2
----
6155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2325
SELECT ALL + COUNT( * ) * + + 28 - + + 31 - - COUNT( ALL COALESCE ( 20, 94, - CAST( NULL AS SIGNED ) ) ) DIV - - 57
----
-3

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL + COUNT ( * ) * + + 28 - + + 31 - - COUNT ( ALL COALESCE ( 20, 94, - CAST ( NULL AS INTEGER ) ) ) / - - 57
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2326
SELECT + 77 DIV - ( 76 ) AS col0, - CASE 19 WHEN + 6 THEN + COALESCE ( + CAST( ( ( 16 ) ) AS SIGNED ), + NULLIF ( - 94, COUNT( * ) * + - 60 ), - + CASE + 58 WHEN - 14 THEN NULL ELSE + + 41 END ) END AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2326
SELECT + 77 / - ( 76 ) AS col0, - CASE 19 WHEN + 6 THEN + COALESCE ( + CAST ( ( ( 16 ) ) AS INTEGER ), + NULLIF ( - 94, COUNT ( * ) * + - 60 ), - + CASE + 58 WHEN - 14 THEN NULL ELSE + + 41 END ) END AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2327
SELECT ALL + ( + NULLIF ( 2, + 31 - - 41 + - + 51 ) ) * - COUNT( * ) DIV - 60 * + 33
----
0

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL + ( + NULLIF ( 2, + 31 - - 41 + - + 51 ) ) * - COUNT ( * ) / - 60 * + 33
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2328
SELECT - 88 + + 58, COUNT( * ) AS col0
----
-30
1

skipif mysql # not compatible
query II rowsort label-2328
SELECT - 88 + + 58, COUNT ( * ) AS col0
----
-30
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2329
SELECT + MIN( ALL - - 53 ) AS col2, + 26 + 73
----
53
99

skipif mysql # not compatible
query II rowsort label-2329
SELECT + MIN ( ALL - - 53 ) AS col2, + 26 + 73
----
53
99

query I rowsort
SELECT + 53 * - - 87 * + - 29 AS col0
----
-133719

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT - 65 + + - 32 + + 33 - + 95 - - 82 * + 33 + - COUNT( * ) * 84 * COALESCE ( - + 50, - - 54, 18 * - 12 ) * - 4 AS col0
----
-14253

skipif mysql # not compatible
query I rowsort label-2331
SELECT - 65 + + - 32 + + 33 - + 95 - - 82 * + 33 + - COUNT ( * ) * 84 * COALESCE ( - + 50, - - 54, 18 * - 12 ) * - 4 AS col0
----
-14253

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT + COUNT( * ) + - - 61 col1
----
62

skipif mysql # not compatible
query I rowsort label-2332
SELECT + COUNT ( * ) + - - 61 col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2333
SELECT DISTINCT - COALESCE ( - 91, CAST( NULL AS SIGNED ) * - - 51 * - + 88 * + 47 + MIN( DISTINCT 78 ), - ( - - 52 ) * + 80 ) * - SUM( + 31 ) AS col1
----
-2821

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT - COALESCE ( - 91, CAST ( NULL AS INTEGER ) * - - 51 * - + 88 * + 47 + MIN ( DISTINCT 78 ), - ( - - 52 ) * + 80 ) * - SUM ( + 31 ) AS col1
----
-2821

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2334
SELECT ALL CAST( + - 96 AS SIGNED ) DIV - 59 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL CAST ( + - 96 AS INTEGER ) / - 59 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT - 58 + - SUM( DISTINCT 96 )
----
-154

skipif mysql # not compatible
query I rowsort label-2335
SELECT - 58 + - SUM ( DISTINCT 96 )
----
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2336
SELECT ALL + + 3 + CAST( NULL AS SIGNED ) + + 1 + + - COUNT( - 58 ) + + 54 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL + + 3 + CAST ( NULL AS INTEGER ) + + 1 + + - COUNT ( - 58 ) + + 54 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2337
SELECT - + ( SUM( ALL 83 ) ) AS col1, 30 * - 37 + + + 1 + - 70 * - + 82
----
-83
4631

skipif mysql # not compatible
query II rowsort label-2337
SELECT - + ( SUM ( ALL 83 ) ) AS col1, 30 * - 37 + + + 1 + - 70 * - + 82
----
-83
4631

onlyif mysql # aggregate syntax: 
query II rowsort label-2338
SELECT + + COUNT( * ) + - 33 AS col1, COUNT( * ) AS col2
----
-32
1

skipif mysql # not compatible
query II rowsort label-2338
SELECT + + COUNT ( * ) + - 33 AS col1, COUNT ( * ) AS col2
----
-32
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2339
SELECT ALL COUNT( * ) + - 4 AS col2, 85 * - 10 AS col0
----
-3
-850

skipif mysql # not compatible
query II rowsort label-2339
SELECT ALL COUNT ( * ) + - 4 AS col2, 85 * - 10 AS col0
----
-3
-850

query I rowsort
SELECT - 1 + + 89 AS col2
----
88

query I rowsort
SELECT ALL 45 * - 99 AS col1
----
-4455

query I rowsort
SELECT + 15 * - 18 AS col1
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT + 85 + - 67 + MIN( DISTINCT 54 ) + 47 + - 74 + 52 * 94 + - 90 * 16
----
3493

skipif mysql # not compatible
query I rowsort label-2343
SELECT + 85 + - 67 + MIN ( DISTINCT 54 ) + 47 + - 74 + 52 * 94 + - 90 * 16
----
3493

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT ALL - 77 + - - COUNT( ALL - 68 )
----
-76

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL - 77 + - - COUNT ( ALL - 68 )
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-2345
SELECT + + 97 + - + 71, - COALESCE ( 52, + + COALESCE ( + + ( - 44 ), - 78, + 42 * + COUNT( * ) ) * - 79 + 36 + + + 64 - SUM( 1 ) + 18 ) * ( - 93 ) + 36 AS col0
----
26
4872

skipif mysql # not compatible
query II rowsort label-2345
SELECT + + 97 + - + 71, - COALESCE ( 52, + + COALESCE ( + + ( - 44 ), - 78, + 42 * + COUNT ( * ) ) * - 79 + 36 + + + 64 - SUM ( 1 ) + 18 ) * ( - 93 ) + 36 AS col0
----
26
4872

query I rowsort
SELECT ALL - 33 * - 30 * + 56 AS col2
----
55440

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT + + 47 + - + COUNT( * ) - 64
----
-18

skipif mysql # not compatible
query I rowsort label-2347
SELECT + + 47 + - + COUNT ( * ) - 64
----
-18

query II rowsort
SELECT ALL - 41 + + 7 AS col0, 47
----
-34
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2349
SELECT + COUNT( * ) DIV - COALESCE ( + 47, CAST( + 49 AS SIGNED ) * - 91, + 49, - NULLIF ( + 14, 14 - - CAST( + 20 AS SIGNED ) + + - SUM( - - 45 ) + - 51 ) * + - 13 + + 99 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2349
SELECT + COUNT ( * ) / - COALESCE ( + 47, CAST ( + 49 AS INTEGER ) * - 91, + 49, - NULLIF ( + 14, 14 - - CAST ( + 20 AS INTEGER ) + + - SUM ( - - 45 ) + - 51 ) * + - 13 + + 99 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2350
SELECT + CAST( - 16 AS SIGNED ) * ( - - MIN( + - 34 ) ) * 42 * - 4 AS col0
----
-91392

skipif mysql # not compatible
query I rowsort label-2350
SELECT + CAST ( - 16 AS INTEGER ) * ( - - MIN ( + - 34 ) ) * 42 * - 4 AS col0
----
-91392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2351
SELECT ALL MIN( - - 51 ) / + + 76 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL MIN ( - - 51 ) / + + 76 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 67 + + 94 AS col1
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2353
SELECT CAST( - + 12 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-2353
SELECT CAST ( - + 12 AS INTEGER )
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-2354
SELECT - 37 DIV + - 73 + - 53 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-2354
SELECT - 37 / + - 73 + - 53 AS col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2355
SELECT + CAST( - CAST( + + 61 AS SIGNED ) AS SIGNED ) * + 20 * - - 51 + - 83 AS col0
----
-62303

skipif mysql # not compatible
query I rowsort label-2355
SELECT + CAST ( - CAST ( + + 61 AS INTEGER ) AS INTEGER ) * + 20 * - - 51 + - 83 AS col0
----
-62303

onlyif mysql # DIV for integer division: 
query I rowsort label-2356
SELECT ALL 61 DIV - 32
----
-1

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL 61 / - 32
----
-1

query I rowsort
SELECT + 31 * + - 88
----
-2728

query II rowsort
SELECT ALL + 81, 54 AS col0
----
81
54

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

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

query I rowsort
SELECT ( - 34 ) col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT DISTINCT + MIN( ALL 33 )
----
33

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT + MIN ( ALL 33 )
----
33

query I rowsort
SELECT + 48 - + 11 AS col1
----
37

query I rowsort
SELECT - 65 * + 21 AS col0
----
-1365

query I rowsort
SELECT + 67 * - 28 * + 1 + - 63
----
-1939

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT DISTINCT + CASE WHEN NULL IN ( + 54, 51, + COUNT( * ), + 95 / - 55 + + + 28 + 7 ) THEN 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT + CASE WHEN NULL IN ( + 54, 51, + COUNT ( * ), + 95 / - 55 + + + 28 + 7 ) THEN 58 END
----
NULL

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

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

query I rowsort
SELECT ALL + 55 * - - 99 * 22 AS col2
----
119790

query I rowsort
SELECT ALL 92 * + 19 + + + 48 AS col2
----
1796

query I rowsort
SELECT DISTINCT - 57 * + + 21 + - + 62
----
-1259

query I rowsort
SELECT DISTINCT + 38 * + - 62 + + 57 col2
----
-2299

onlyif mysql # DIV for integer division: 
query I rowsort label-2372
SELECT - 33 DIV + 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2372
SELECT - 33 / + 47 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2373
SELECT - + 44 AS col1, - 84 + 10 DIV 40 * + 0 + 89 + - + COUNT( - ( + 39 ) ) * 11
----
-44
-6

skipif mysql # not compatible
query II rowsort label-2373
SELECT - + 44 AS col1, - 84 + 10 / 40 * + 0 + 89 + - + COUNT ( - ( + 39 ) ) * 11
----
-44
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT ALL 88 * - COUNT( * ) + + + 9 + - + COUNT( ALL + 99 ) * + + ( - 93 )
----
14

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL 88 * - COUNT ( * ) + + + 9 + - + COUNT ( ALL + 99 ) * + + ( - 93 )
----
14

query I rowsort
SELECT - - 1 * - 64 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT ALL + 37 * - ( - 38 ) * MAX( + 16 ) * + 29 + 20 AS col1
----
652404

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL + 37 * - ( - 38 ) * MAX ( + 16 ) * + 29 + 20 AS col1
----
652404

query I rowsort
SELECT DISTINCT + 23 * + 50 + - ( - - 82 ) * - 62 * ( - 33 )
----
-166622

query I rowsort
SELECT DISTINCT + + 46 + - 72 * 59
----
-4202

query I rowsort
SELECT ALL - 45 + + + 92
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2380
SELECT DISTINCT + COALESCE ( - 66, + - 46 + 15 ) - + + 54 - + + 96 + + CAST( + 25 AS SIGNED ) * 46 col0
----
934

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT + COALESCE ( - 66, + - 46 + 15 ) - + + 54 - + + 96 + + CAST ( + 25 AS INTEGER ) * 46 col0
----
934

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2381
SELECT 77 - - + CAST( + - 77 AS SIGNED ) + + 64 * - - 94 AS col2
----
6016

skipif mysql # not compatible
query I rowsort label-2381
SELECT 77 - - + CAST ( + - 77 AS INTEGER ) + + 64 * - - 94 AS col2
----
6016

onlyif mysql # aggregate syntax: 
query II rowsort label-2382
SELECT - MAX( DISTINCT - + ( + 20 ) ), - 59 AS col2
----
20
-59

skipif mysql # not compatible
query II rowsort label-2382
SELECT - MAX ( DISTINCT - + ( + 20 ) ), - 59 AS col2
----
20
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-2383
SELECT - NULLIF ( - 72, - 34 ) + 76 + 98 - + - 61 col2, CASE - - ( - 50 ) WHEN + 11 + 58 THEN + - COUNT( * ) END / - COUNT( * ) col1
----
307
NULL

skipif mysql # not compatible
query II rowsort label-2383
SELECT - NULLIF ( - 72, - 34 ) + 76 + 98 - + - 61 col2, CASE - - ( - 50 ) WHEN + 11 + 58 THEN + - COUNT ( * ) END / - COUNT ( * ) col1
----
307
NULL

query I rowsort
SELECT - COALESCE ( - 57, 31, + 21 * + - 93 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT ALL - 30 - + + SUM( DISTINCT + 6 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL - 30 - + + SUM ( DISTINCT + 6 ) AS col0
----
-36

query I rowsort
SELECT ALL + 22 * + + 2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2387
SELECT NULLIF ( - SUM( DISTINCT - 38 ), + 95 ) - - ( + ( - 54 ) ) + - 78 + - - 50 DIV 62 + + - COALESCE ( + 62, 89 ) + - - NULLIF ( 84, - ( + + 26 ) ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-2387
SELECT NULLIF ( - SUM ( DISTINCT - 38 ), + 95 ) - - ( + ( - 54 ) ) + - 78 + - - 50 / 62 + + - COALESCE ( + 62, 89 ) + - - NULLIF ( 84, - ( + + 26 ) ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT ALL - SUM( DISTINCT 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL - SUM ( DISTINCT 5 )
----
-5

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

skipif mysql # not compatible
query I rowsort label-2389
SELECT 90 / + - 90
----
-1

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

skipif mysql # not compatible
query I rowsort label-2390
SELECT - COUNT ( * ) / - + 57 + + 73
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2391
SELECT COALESCE ( 52, + 20 + COUNT( * ), 46 + + CAST( NULL AS SIGNED ) + + 92 * + 40 * 53 + 96 + + 49, + ( - COUNT( * ) ) * - 14 ) * - 69 AS col0
----
-3588

skipif mysql # not compatible
query I rowsort label-2391
SELECT COALESCE ( 52, + 20 + COUNT ( * ), 46 + + CAST ( NULL AS INTEGER ) + + 92 * + 40 * 53 + 96 + + 49, + ( - COUNT ( * ) ) * - 14 ) * - 69 AS col0
----
-3588

onlyif mysql # DIV for integer division: 
query I rowsort label-2392
SELECT ALL 42 DIV - - 92 * - + 32
----
0

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL 42 / - - 92 * - + 32
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2393
SELECT 23 * 97 + + COALESCE ( - CAST( 41 AS SIGNED ), 39 )
----
2190

skipif mysql # not compatible
query I rowsort label-2393
SELECT 23 * 97 + + COALESCE ( - CAST ( 41 AS INTEGER ), 39 )
----
2190

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

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

query I rowsort
SELECT 51 * + 95 AS col2
----
4845

query I rowsort
SELECT DISTINCT 77 + + - 58
----
19

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

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

query I rowsort
SELECT DISTINCT + 69 * + + 71
----
4899

query I rowsort
SELECT ALL + 60 + - ( - COALESCE ( - 73, + 65 ) )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ( 74 ) + - CASE 70 WHEN - COUNT( * ) THEN 29 WHEN - - 28 THEN NULL END + - 29 / + 93 * + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2400
SELECT ( 74 ) + - CASE 70 WHEN - COUNT ( * ) THEN 29 WHEN - - 28 THEN NULL END + - 29 / + 93 * + 50 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2401
SELECT CAST( 42 AS SIGNED ) * - - 77 + - MAX( + 76 ) AS col0
----
3158

skipif mysql # not compatible
query I rowsort label-2401
SELECT CAST ( 42 AS INTEGER ) * - - 77 + - MAX ( + 76 ) AS col0
----
3158

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2402
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - ( + 81 ) * + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT CAST ( NULL AS REAL ) * - ( + 81 ) * + 28 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2403
SELECT COALESCE ( + 19, + MAX( DISTINCT CAST( NULL AS SIGNED ) ) + - ( + ( - + 60 ) ) + CAST( NULL AS SIGNED ) + - + 34 + + 46 * - 45, - 27 ) + + + COUNT( * ) + + 66 * + NULLIF ( - - 13, - COUNT( * ) + 27 ) AS col1
----
878

skipif mysql # not compatible
query I rowsort label-2403
SELECT COALESCE ( + 19, + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + - ( + ( - + 60 ) ) + CAST ( NULL AS INTEGER ) + - + 34 + + 46 * - 45, - 27 ) + + + COUNT ( * ) + + 66 * + NULLIF ( - - 13, - COUNT ( * ) + 27 ) AS col1
----
878

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2404
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) * - MAX( ALL - + 28 ) AS col0, 70 + + 91 AS col0
----
NULL
161

skipif mysql # not compatible
query II rowsort label-2404
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - MAX ( ALL - + 28 ) AS col0, 70 + + 91 AS col0
----
NULL
161

query I rowsort
SELECT DISTINCT + - 23 + - 41
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT + 84 + + 12 + AVG ( + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT + 84 + + 12 + AVG ( + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 35 + 28 - 99 AS col1
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT ALL - CASE - + COUNT( * ) WHEN - - 85 * + COUNT( * ) * + + 4 + - COUNT( * ) * - COUNT( + + 82 ) + 62 / - - COUNT( * ) THEN + - 81 * - SUM( - - 57 ) + - 10 + - 81 - - - 3 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL - CASE - + COUNT ( * ) WHEN - - 85 * + COUNT ( * ) * + + 4 + - COUNT ( * ) * - COUNT ( + + 82 ) + 62 / - - COUNT ( * ) THEN + - 81 * - SUM ( - - 57 ) + - 10 + - 81 - - - 3 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( - 26 ) + + 27 AS col1
----
53

query I rowsort
SELECT DISTINCT - 44 * + 94 AS col0
----
-4136

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT + 52 * - 11 * + 32 + MAX( + - 2 )
----
-18306

skipif mysql # not compatible
query I rowsort label-2411
SELECT + 52 * - 11 * + 32 + MAX ( + - 2 )
----
-18306

query I rowsort
SELECT ALL + + ( 77 ) - - 63 + 5 * + 26
----
270

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2413
SELECT ALL - + 81 DIV - 75, ( - 8 ) DIV - - COUNT( * ) AS col2
----
1
-8

skipif mysql # not compatible
query II rowsort label-2413
SELECT ALL - + 81 / - 75, ( - 8 ) / - - COUNT ( * ) AS col2
----
1
-8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT DISTINCT - - 31 * - 70 * - 81 + + - COUNT( * ) * - + 39 AS col0
----
175809

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT - - 31 * - 70 * - 81 + + - COUNT ( * ) * - + 39 AS col0
----
175809

query I rowsort
SELECT ALL + NULLIF ( - + 83, + AVG ( - 40 ) )
----
-83

query I rowsort
SELECT - 22 * + - 84
----
1848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2418
SELECT DISTINCT + + 26 * - COUNT( * ) * - 12 * - - CASE - - 9 WHEN + 53 THEN + 23 WHEN + + 71 * - - 31 THEN 88 + + + COUNT( * ) END / + CAST( 92 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2418
SELECT DISTINCT + + 26 * - COUNT ( * ) * - 12 * - - CASE - - 9 WHEN + 53 THEN + 23 WHEN + + 71 * - - 31 THEN 88 + + + COUNT ( * ) END / + CAST ( 92 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2419
SELECT DISTINCT 43 DIV COUNT( * ) * - 34
----
-1462

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT 43 / COUNT ( * ) * - 34
----
-1462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2420
SELECT 20 + + 46 DIV + - CAST( + + NULLIF ( + 61, - SUM( - 75 ) + + CAST( + + 37 AS SIGNED ) ) AS SIGNED ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-2420
SELECT 20 + + 46 / + - CAST ( + + NULLIF ( + 61, - SUM ( - 75 ) + + CAST ( + + 37 AS INTEGER ) ) AS INTEGER ) AS col0
----
20

query I rowsort
SELECT COALESCE ( - - 6, - + 7 * 48 + + 19 ) * 50
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT COUNT( * ) + - 78 - - 11 + - - 7 * + 39 + + ( - + 86 ) * - 88 * 11
----
83455

skipif mysql # not compatible
query I rowsort label-2422
SELECT COUNT ( * ) + - 78 - - 11 + - - 7 * + 39 + + ( - + 86 ) * - 88 * 11
----
83455

query I rowsort
SELECT 19 * 66 AS col2
----
1254

query II rowsort
SELECT DISTINCT - 93 AS col2, 16 AS col0
----
-93
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2425
SELECT ALL 46 * 71 / - + ( 4 ) * + 6 / - CAST( NULL AS SIGNED ) * 98 + + SUM( - 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL 46 * 71 / - + ( 4 ) * + 6 / - CAST ( NULL AS INTEGER ) * 98 + + SUM ( - 55 )
----
NULL

query I rowsort
SELECT - 59 * + + 32 + + - 90
----
-1978

query I rowsort
SELECT 44 * + 32 AS col0
----
1408

query I rowsort
SELECT ALL - 56 * 57
----
-3192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2429
SELECT 83 DIV - 6 + - MIN( + 96 ) + - + 1
----
-110

skipif mysql # not compatible
query I rowsort label-2429
SELECT 83 / - 6 + - MIN ( + 96 ) + - + 1
----
-110

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2430
SELECT SUM( DISTINCT - ( - 11 ) ) AS col1, CASE + 52 WHEN 62 THEN + 10 WHEN + 31 THEN + 8 WHEN + CAST( - 49 AS DECIMAL ) THEN NULL ELSE + SUM( + - 22 ) END AS col1
----
11
-22

skipif mysql # not compatible
query II rowsort label-2430
SELECT SUM ( DISTINCT - ( - 11 ) ) AS col1, CASE + 52 WHEN 62 THEN + 10 WHEN + 31 THEN + 8 WHEN + CAST ( - 49 AS REAL ) THEN NULL ELSE + SUM ( + - 22 ) END AS col1
----
11
-22

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

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

query II rowsort
SELECT + 33, + 84 AS col2
----
33
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2433
SELECT COUNT( * ) - COUNT( * ) * - 76 DIV - 26
----
-1

skipif mysql # not compatible
query I rowsort label-2433
SELECT COUNT ( * ) - COUNT ( * ) * - 76 / - 26
----
-1

query I rowsort
SELECT + 4 * 89 + + 10
----
366

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

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

query I rowsort
SELECT DISTINCT + CASE + - 90 WHEN - 13 - - ( - 49 ) THEN + 96 WHEN + + 31 THEN NULL ELSE + 58 END - + - 14
----
72

query I rowsort
SELECT ALL 34 * 79 * 29 AS col2
----
77894

query I rowsort
SELECT - COALESCE ( 47, - 4, + - 63 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT DISTINCT COUNT( DISTINCT - - 3 ) * + 95
----
95

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT COUNT ( DISTINCT - - 3 ) * + 95
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-2440
SELECT + - 65 * ( + COUNT( * ) ) AS col0, + 32 AS col1
----
-65
32

skipif mysql # not compatible
query II rowsort label-2440
SELECT + - 65 * ( + COUNT ( * ) ) AS col0, + 32 AS col1
----
-65
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT ALL - 54 * COUNT( * ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL - 54 * COUNT ( * ) AS col0
----
-54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL 23 - + COUNT( 26 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL 23 - + COUNT ( 26 ) AS col1
----
22

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

query I rowsort
SELECT - 24 * + 61
----
-1464

query I rowsort
SELECT ALL - - 53 * + 33
----
1749

onlyif mysql # aggregate syntax: 
query II rowsort label-2447
SELECT ALL - 50 * + COUNT( * ) AS col1, 12 + - - 60 AS col2
----
-50
72

skipif mysql # not compatible
query II rowsort label-2447
SELECT ALL - 50 * + COUNT ( * ) AS col1, 12 + - - 60 AS col2
----
-50
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2448
SELECT DISTINCT 31 DIV - 78 col2
----
0

skipif mysql # not compatible
query I rowsort label-2448
SELECT DISTINCT 31 / - 78 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2449
SELECT + MAX( DISTINCT + ( - 3 ) ) DIV + + 15 * - 57 DIV COUNT( * ), - 40 AS col2
----
0
-40

skipif mysql # not compatible
query II rowsort label-2449
SELECT + MAX ( DISTINCT + ( - 3 ) ) / + + 15 * - 57 / COUNT ( * ), - 40 AS col2
----
0
-40

query I rowsort
SELECT + 72 + + + NULLIF ( + 47, 36 + - + 54 * - 59 )
----
119

query II rowsort
SELECT - 43, + 84 * 2 - + 56 AS col2
----
-43
112

onlyif mysql # aggregate syntax: 
query II rowsort label-2452
SELECT - 99, MAX( DISTINCT - ( - 18 ) ) AS col1
----
-99
18

skipif mysql # not compatible
query II rowsort label-2452
SELECT - 99, MAX ( DISTINCT - ( - 18 ) ) AS col1
----
-99
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT DISTINCT + COALESCE ( + COALESCE ( - COUNT( * ), - 26 - + 76 ), - 69, + COUNT( * ) ) + + + 89 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT + COALESCE ( + COALESCE ( - COUNT ( * ), - 26 - + 76 ), - 69, + COUNT ( * ) ) + + + 89 AS col2
----
88

query I rowsort
SELECT ALL - 60 + + + 72
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2455
SELECT - 18 - - + 12 AS col1, - NULLIF ( - COUNT( DISTINCT - + ( - 9 ) ), 36 ) - + 28 / - CASE 11 WHEN 78 THEN - ( + COALESCE ( + - CAST( NULL AS SIGNED ), 84, - - 55 ) ) WHEN + 11 - 48 + CAST( NULL AS SIGNED ) + - 90 THEN 75 - 46 ELSE NULL END + - 90 + - - 0 * + COUNT( * )
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-2455
SELECT - 18 - - + 12 AS col1, - NULLIF ( - COUNT ( DISTINCT - + ( - 9 ) ), 36 ) - + 28 / - CASE 11 WHEN 78 THEN - ( + COALESCE ( + - CAST ( NULL AS INTEGER ), 84, - - 55 ) ) WHEN + 11 - 48 + CAST ( NULL AS INTEGER ) + - 90 THEN 75 - 46 ELSE NULL END + - 90 + - - 0 * + COUNT ( * )
----
-6
NULL

query I rowsort
SELECT ALL - 87 * + - 27 AS col0
----
2349

query I rowsort
SELECT ALL + 96 + + 84 + + 16
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT - 94 + + ( - 8 ) * - 25 + - COUNT( * )
----
105

skipif mysql # not compatible
query I rowsort label-2458
SELECT - 94 + + ( - 8 ) * - 25 + - COUNT ( * )
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-2459
SELECT DISTINCT COALESCE ( 39, + 4 DIV + + COALESCE ( - ( - + 45 ), + 59 + - 66 + 25 + 90, 32 * - 31 ) + 22 )
----
39

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT COALESCE ( 39, + 4 / + + COALESCE ( - ( - + 45 ), + 59 + - 66 + 25 + 90, 32 * - 31 ) + 22 )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-2460
SELECT DISTINCT - 75 DIV 54 * + 25 DIV 41 + - - 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT - 75 / 54 * + 25 / 41 + - - 31 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2461
SELECT ( - 52 ), + CASE - COUNT( * ) WHEN - - 47 THEN - 14 END * CAST( - 25 AS SIGNED ) - 47 + MIN( ALL - 91 ) / - 25 AS col0
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-2461
SELECT ( - 52 ), + CASE - COUNT ( * ) WHEN - - 47 THEN - 14 END * CAST ( - 25 AS INTEGER ) - 47 + MIN ( ALL - 91 ) / - 25 AS col0
----
-52
NULL

query I rowsort
SELECT - 59 + + 83 - - 58 - + 2 * - - 19 AS col1
----
44

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

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

query I rowsort
SELECT 97 * - - 38 + + 63
----
3749

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2466
SELECT DISTINCT 52 * + NULLIF ( + 0, 86 + + 15 + - + CAST( - 13 AS SIGNED ) * + + 66 ) - + - COALESCE ( + 55, - 53, + CASE - + 22 WHEN - ( NULLIF ( - 87, MAX( ( 12 ) ) * + COUNT( * ) + + 64 ) ) THEN + 8 WHEN 1 * - 57 DIV - - 92 THEN - + AVG ( + - 12 ) ELSE NULL END ) DIV 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT 52 * + NULLIF ( + 0, 86 + + 15 + - + CAST ( - 13 AS INTEGER ) * + + 66 ) - + - COALESCE ( + 55, - 53, + CASE - + 22 WHEN - ( NULLIF ( - 87, MAX ( ( 12 ) ) * + COUNT ( * ) + + 64 ) ) THEN + 8 WHEN 1 * - 57 / - - 92 THEN - + AVG ( + - 12 ) ELSE NULL END ) / 63 AS col1
----
0

query II rowsort
SELECT ALL + - 71 col1, 4 AS col0
----
-71
4

query I rowsort
SELECT + + 89 * - + 98 AS col1
----
-8722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2469
SELECT + CASE - - ( - 26 ) WHEN + 26 + - MIN( + - 39 ) THEN NULL ELSE COALESCE ( + + 0, 28 ) * 53 END * + - CAST( 52 AS SIGNED ) + 44
----
44

skipif mysql # not compatible
query I rowsort label-2469
SELECT + CASE - - ( - 26 ) WHEN + 26 + - MIN ( + - 39 ) THEN NULL ELSE COALESCE ( + + 0, 28 ) * 53 END * + - CAST ( 52 AS INTEGER ) + 44
----
44

query I rowsort
SELECT DISTINCT + - 94 col0
----
-94

query II rowsort
SELECT + + 19, 36 AS col1
----
19
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2472
SELECT + 42 DIV 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2472
SELECT + 42 / 90 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2473
SELECT ALL ( 64 ) DIV 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL ( 64 ) / 72 AS col1
----
0

query II rowsort
SELECT DISTINCT + 81 AS col2, 76
----
81
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2475
SELECT + 93 * COALESCE ( COUNT( * ), + 75, - 63 * - CAST( NULL AS SIGNED ) ) + 37 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-2475
SELECT + 93 * COALESCE ( COUNT ( * ), + 75, - 63 * - CAST ( NULL AS INTEGER ) ) + 37 AS col1
----
130

query I rowsort
SELECT ALL - - ( + 80 ) * - 43
----
-3440

query I rowsort
SELECT ALL + 37 * 21 + - 84
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT + MIN( 75 ) + + 87 * - + 52 * - 26 * + - 35 AS col0
----
-4116765

skipif mysql # not compatible
query I rowsort label-2478
SELECT + MIN ( 75 ) + + 87 * - + 52 * - 26 * + - 35 AS col0
----
-4116765

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

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

query I rowsort
SELECT - 55 + - - 49 * + - 76
----
-3779

query I rowsort
SELECT DISTINCT 89 + + - 59 - + ( 53 ) AS col1
----
-23

query I rowsort
SELECT ALL + 28 + + + 29
----
57

query I rowsort
SELECT - 95 + - + 33 + 87 * - 18
----
-1694

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2484
SELECT - ( CAST( + 40 AS SIGNED ) )
----
-40

skipif mysql # not compatible
query I rowsort label-2484
SELECT - ( CAST ( + 40 AS INTEGER ) )
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2485
SELECT ALL CASE + 42 WHEN - + 40 THEN NULL WHEN + - 13 DIV - COUNT( * ) THEN NULL WHEN - + COUNT( * ) THEN + 12 DIV + - ( + 89 ) DIV + 96 * + 75 + - 88 + + 41 - + - ( + 99 ) - - 61 * + 34 ELSE - 55 * 68 * + 5 + + 66 END + COUNT( * ) + - 80 * 45 AS col0
----
-22233

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL CASE + 42 WHEN - + 40 THEN NULL WHEN + - 13 / - COUNT ( * ) THEN NULL WHEN - + COUNT ( * ) THEN + 12 / + - ( + 89 ) / + 96 * + 75 + - 88 + + 41 - + - ( + 99 ) - - 61 * + 34 ELSE - 55 * 68 * + 5 + + 66 END + COUNT ( * ) + - 80 * 45 AS col0
----
-22233

query I rowsort
SELECT ALL NULLIF ( - + 71, - ( 51 ) + + 52 )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2487
SELECT + COUNT( * ) DIV - - NULLIF ( + - 64, 31 * - 56 * + + COUNT( * ) + - + 22 + - - 27 * - - NULLIF ( - - 79, + - 67 * - 84 * + + 23 + - - 24 - + 6 * + - COUNT( * ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2487
SELECT + COUNT ( * ) / - - NULLIF ( + - 64, 31 * - 56 * + + COUNT ( * ) + - + 22 + - - 27 * - - NULLIF ( - - 79, + - 67 * - 84 * + + 23 + - - 24 - + 6 * + - COUNT ( * ) ) ) AS col1
----
0

query I rowsort
SELECT - ( - 67 ) + - 83
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-2489
SELECT DISTINCT + COALESCE ( - 9, - 2 DIV - + 24 * - 65, + 66 )
----
-9

skipif mysql # not compatible
query I rowsort label-2489
SELECT DISTINCT + COALESCE ( - 9, - 2 / - + 24 * - 65, + 66 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2490
SELECT DISTINCT CAST( 13 AS SIGNED ) * + + 49 AS col1
----
637

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT CAST ( 13 AS INTEGER ) * + + 49 AS col1
----
637

onlyif mysql # DIV for integer division: 
query I rowsort label-2491
SELECT - 78 DIV + 31 - - + 37 * + 83
----
3069

skipif mysql # not compatible
query I rowsort label-2491
SELECT - 78 / + 31 - - + 37 * + 83
----
3069

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT 57 * COUNT( * ) * - 56 * + ( 29 ) * - + 67
----
6202056

skipif mysql # not compatible
query I rowsort label-2492
SELECT 57 * COUNT ( * ) * - 56 * + ( 29 ) * - + 67
----
6202056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2493
SELECT 88 + + 5 + - CAST( + 58 AS SIGNED ) * + COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-2493
SELECT 88 + + 5 + - CAST ( + 58 AS INTEGER ) * + COUNT ( * ) AS col2
----
35

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

query I rowsort
SELECT 36 * + 51 * + - 64 AS col1
----
-117504

query I rowsort
SELECT ALL - COALESCE ( + 51, + 28 ) AS col0
----
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT - 16 * SUM( 10 ) * - + 21 * + 46 * 65
----
10046400

skipif mysql # not compatible
query I rowsort label-2498
SELECT - 16 * SUM ( 10 ) * - + 21 * + 46 * 65
----
10046400

query I rowsort
SELECT ALL + 11 + 48 * + + 67 * - 74 AS col0
----
-237973

query I rowsort
SELECT 47 - - + COALESCE ( - 25, - COALESCE ( + - 60, + 87 + - NULLIF ( NULLIF ( 96, + 14 ), - 1 ) ) ) col1
----
22

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2502
SELECT DISTINCT CAST( - 54 AS SIGNED ) + + + COUNT( * ) * - 9 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT CAST ( - 54 AS INTEGER ) + + + COUNT ( * ) * - 9 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT ALL COUNT( * ) + - 57 + - 33 * - - 24 * + 32 * - 60 AS col0
----
1520584

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL COUNT ( * ) + - 57 + - 33 * - - 24 * + 32 * - 60 AS col0
----
1520584

query II rowsort
SELECT 57 AS col2, 57
----
57
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2505
SELECT ( - 40 ) * + COUNT( + CAST( NULL AS SIGNED ) ) + 88 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-2505
SELECT ( - 40 ) * + COUNT ( + CAST ( NULL AS INTEGER ) ) + 88 AS col0
----
88

query I rowsort
SELECT DISTINCT 31 * - + 62 * - + 85 col2
----
163370

query I rowsort
SELECT 19 + 7 + + 6 * - + 93
----
-532

query II rowsort
SELECT - 4 AS col0, - 47
----
-4
-47

query I rowsort
SELECT ALL 77 - + 38 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT 25 + + 11 * + NULLIF ( + - SUM( DISTINCT - + 74 ), - 57 ) + + COALESCE ( + 71, + 24 + - COUNT( * ) * + - 79 )
----
910

skipif mysql # not compatible
query I rowsort label-2510
SELECT 25 + + 11 * + NULLIF ( + - SUM ( DISTINCT - + 74 ), - 57 ) + + COALESCE ( + 71, + 24 + - COUNT ( * ) * + - 79 )
----
910

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

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

query I rowsort
SELECT ( - COALESCE ( + - ( - 63 ), 52, + + 15 ) ) - + 20
----
-83

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2514
SELECT ALL 23 - + COALESCE ( 31, - 41, - MIN( ALL 8 ) ) DIV - ( 90 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL 23 - + COALESCE ( 31, - 41, - MIN ( ALL 8 ) ) / - ( 90 ) AS col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2515
SELECT ( + CAST( NULL AS SIGNED ) ) * 22 + + 24 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT ( + CAST ( NULL AS INTEGER ) ) * 22 + + 24 col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2517
SELECT 3 + + 85 + - CAST( + 63 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-2517
SELECT 3 + + 85 + - CAST ( + 63 AS INTEGER )
----
25

query I rowsort
SELECT - 1 * 2 AS col2
----
-2

query I rowsort
SELECT 33 * - 26
----
-858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2520
SELECT - COALESCE ( + 2, + - SUM( DISTINCT 25 ), - 17 ) DIV - 72 + - COALESCE ( NULLIF ( + - COUNT( * ), + 26 ), - 54 + + - CAST( 74 AS SIGNED ) ) + - - 3 * - - ( 18 ) + - 91 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-2520
SELECT - COALESCE ( + 2, + - SUM ( DISTINCT 25 ), - 17 ) / - 72 + - COALESCE ( NULLIF ( + - COUNT ( * ), + 26 ), - 54 + + - CAST ( 74 AS INTEGER ) ) + - - 3 * - - ( 18 ) + - 91 AS col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2521
SELECT + - MAX( + CAST( NULL AS SIGNED ) ) * + 67 + + + 36 + - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT + - MAX ( + CAST ( NULL AS INTEGER ) ) * + 67 + + + 36 + - 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT ALL + CASE + 39 WHEN 94 + + - 7 - - 72 / + - 17 * + COUNT( * ) + + 47 + + COUNT( * ) + - 2 * - + 52 / - - 47 THEN 96 WHEN AVG ( ALL 88 ) THEN - + COUNT( * ) * - 58 + 83 * - 69 ELSE NULL END * - + 13 + - 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL + CASE + 39 WHEN 94 + + - 7 - - 72 / + - 17 * + COUNT ( * ) + + 47 + + COUNT ( * ) + - 2 * - + 52 / - - 47 THEN 96 WHEN AVG ( ALL 88 ) THEN - + COUNT ( * ) * - 58 + 83 * - 69 ELSE NULL END * - + 13 + - 96 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + + 61 / - + 9 ) * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2523
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + + 61 / - + 9 ) * - 30
----
NULL

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

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

query II rowsort
SELECT DISTINCT - 23, - 91 - 14 * - + 47 AS col1
----
-23
567

query I rowsort
SELECT ALL + - 17 + 30 AS col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-2527
SELECT - 0 DIV 90 + - + 41 + 38 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2527
SELECT - 0 / 90 + - + 41 + 38 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2528
SELECT - + 64 * + - ( + 11 ) + + + CAST( NULL AS SIGNED ) + ( - 54 ) + + + COALESCE ( - + 28, + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT - + 64 * + - ( + 11 ) + + + CAST ( NULL AS INTEGER ) + ( - 54 ) + + + COALESCE ( - + 28, + COUNT ( * ) )
----
NULL

query I rowsort
SELECT - 25 * 57 * + - 69 - 71
----
98254

query II rowsort
SELECT 57 AS col2, + ( 27 )
----
57
27

query II rowsort
SELECT + 66 + - 56 * 92 AS col1, - 29 + 98
----
-5086
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT DISTINCT - CASE + 6 WHEN - 33 / - COUNT( * ) THEN + COUNT( * ) + - 22 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT - CASE + 6 WHEN - 33 / - COUNT ( * ) THEN + COUNT ( * ) + - 22 END col1
----
NULL

query I rowsort
SELECT 28 * 0 + + 73 col1
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT COUNT( * ) + - ( - 99 ) * 26 + - 90 + + NULLIF ( + + COALESCE ( + 40, 13 * 39 ), + 64 ) - COUNT( * ) AS col0
----
2524

skipif mysql # not compatible
query I rowsort label-2535
SELECT COUNT ( * ) + - ( - 99 ) * 26 + - 90 + + NULLIF ( + + COALESCE ( + 40, 13 * 39 ), + 64 ) - COUNT ( * ) AS col0
----
2524

onlyif mysql # aggregate syntax: 
query II rowsort label-2536
SELECT 54 + + 63, - COUNT( * ) col2
----
117
-1

skipif mysql # not compatible
query II rowsort label-2536
SELECT 54 + + 63, - COUNT ( * ) col2
----
117
-1

query I rowsort
SELECT 70 + - + 95
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2538
SELECT ALL CASE - 61 WHEN - - 94 * - - 46 THEN NULL WHEN COUNT( * ) THEN - + 54 * + 90 + + 30 WHEN 2 * + + 67 / - - 20 + 7 + - + 72 / - + 77 + 77 THEN + 87 - + 75 WHEN - MAX( ALL + - CAST( 62 AS SIGNED ) ) THEN CAST( 19 AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL CASE - 61 WHEN - - 94 * - - 46 THEN NULL WHEN COUNT ( * ) THEN - + 54 * + 90 + + 30 WHEN 2 * + + 67 / - - 20 + 7 + - + 72 / - + 77 + 77 THEN + 87 - + 75 WHEN - MAX ( ALL + - CAST ( 62 AS INTEGER ) ) THEN CAST ( 19 AS INTEGER ) ELSE NULL END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL 24 / - - CAST ( NULL AS INTEGER ) col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL 76 * + CAST ( - COUNT ( * ) AS INTEGER )
----
-76

query I rowsort
SELECT ALL - 66 * + 69
----
-4554

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

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

query I rowsort
SELECT - - 82 - - 1 + + 18 * - 20 * 91 AS col1
----
-32677

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT + - SUM( ALL - 5 ) * + 55
----
275

skipif mysql # not compatible
query I rowsort label-2544
SELECT + - SUM ( ALL - 5 ) * + 55
----
275

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2546
SELECT - + CAST( - 3 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-2546
SELECT - + CAST ( - 3 AS INTEGER )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT DISTINCT - COUNT( * ) + - SUM( - 93 )
----
92

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT - COUNT ( * ) + - SUM ( - 93 )
----
92

query I rowsort
SELECT ALL + + 78 + + - 96 AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2549
SELECT ALL - - 94 DIV - + COALESCE ( - SUM( DISTINCT - CAST( NULL AS SIGNED ) ), + CASE WHEN NOT NULL BETWEEN + 91 AND + + 2 THEN + 9 ELSE + + 81 END ) + MAX( DISTINCT ( - + 47 ) ) + + - 89
----
-137

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL - - 94 / - + COALESCE ( - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ), + CASE WHEN NOT NULL BETWEEN + 91 AND + + 2 THEN + 9 ELSE + + 81 END ) + MAX ( DISTINCT ( - + 47 ) ) + + - 89
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT DISTINCT - COUNT( ALL + 74 ) * + 87 + + 60 + 69 + + 56 col1
----
98

skipif mysql # not compatible
query I rowsort label-2550
SELECT DISTINCT - COUNT ( ALL + 74 ) * + 87 + + 60 + 69 + + 56 col1
----
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT COUNT( 20 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2552
SELECT COUNT ( 20 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2553
SELECT + 37 DIV + + COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-2553
SELECT + 37 / + + COUNT ( * ) AS col0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2554
SELECT DISTINCT + - CAST( + 37 AS SIGNED ) * + 79 + - 55
----
-2978

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT + - CAST ( + 37 AS INTEGER ) * + 79 + - 55
----
-2978

query I rowsort
SELECT DISTINCT + + 29 col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2556
SELECT DISTINCT 67 * ( - - 60 ), CAST( NULL AS SIGNED ) AS col1
----
4020
NULL

skipif mysql # not compatible
query II rowsort label-2556
SELECT DISTINCT 67 * ( - - 60 ), CAST ( NULL AS INTEGER ) AS col1
----
4020
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT - 78 * - ( - + COALESCE ( + ( 52 ), - COUNT( * ) ) )
----
-4056

skipif mysql # not compatible
query I rowsort label-2557
SELECT - 78 * - ( - + COALESCE ( + ( 52 ), - COUNT ( * ) ) )
----
-4056

onlyif mysql # DIV for integer division: 
query I rowsort label-2558
SELECT ALL - 69 DIV - + 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL - 69 / - + 90 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2559
SELECT + 7 DIV + 17
----
0

skipif mysql # not compatible
query I rowsort label-2559
SELECT + 7 / + 17
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2560
SELECT - ( - COALESCE ( + 68, + 40 + + CAST( - - 16 AS SIGNED ), - + SUM( 60 ) + + COUNT( 83 ) * - 73 ) ) * - 97
----
-6596

skipif mysql # not compatible
query I rowsort label-2560
SELECT - ( - COALESCE ( + 68, + 40 + + CAST ( - - 16 AS INTEGER ), - + SUM ( 60 ) + + COUNT ( 83 ) * - 73 ) ) * - 97
----
-6596

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT DISTINCT + CASE + - 3 WHEN + COALESCE ( + 73, + SUM( DISTINCT + 21 ), - + ( - 73 ) * - 5, - 31 + + ( + + 70 ) ) THEN 36 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT + CASE + - 3 WHEN + COALESCE ( + 73, + SUM ( DISTINCT + 21 ), - + ( - 73 ) * - 5, - 31 + + ( + + 70 ) ) THEN 36 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL + MIN( DISTINCT - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL + MIN ( DISTINCT - 30 )
----
-30

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

skipif mysql # not compatible
query I rowsort label-2563
SELECT MIN ( - + 28 )
----
-28

query I rowsort
SELECT - 24 * - 48 * + 67
----
77184

query I rowsort
SELECT - 53 * - 31 AS col2
----
1643

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

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

query I rowsort
SELECT - 88 * + 36 AS col1
----
-3168

onlyif mysql # aggregate syntax: 
query II rowsort label-2568
SELECT DISTINCT CASE - COUNT( * ) WHEN - 32 THEN - + 97 ELSE - - COUNT( * ) END AS col1, 38
----
1
38

skipif mysql # not compatible
query II rowsort label-2568
SELECT DISTINCT CASE - COUNT ( * ) WHEN - 32 THEN - + 97 ELSE - - COUNT ( * ) END AS col1, 38
----
1
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2569
SELECT ALL CAST( + + 44 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL CAST ( + + 44 AS INTEGER )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT ALL CASE - COALESCE ( + COUNT( * ), + + 77 + - 94 * + + 86, + 73 ) WHEN - COUNT( * ) * + 45 THEN NULL WHEN - - 59 / - + CASE - ( 35 ) WHEN ( MAX( + 13 ) ) THEN NULL ELSE + + 80 / + - 24 + + + 67 * 57 END THEN NULL ELSE - 75 END col1
----
-75

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL CASE - COALESCE ( + COUNT ( * ), + + 77 + - 94 * + + 86, + 73 ) WHEN - COUNT ( * ) * + 45 THEN NULL WHEN - - 59 / - + CASE - ( 35 ) WHEN ( MAX ( + 13 ) ) THEN NULL ELSE + + 80 / + - 24 + + + 67 * 57 END THEN NULL ELSE - 75 END col1
----
-75

query I rowsort
SELECT DISTINCT - 80 * + 55 AS col1
----
-4400

query I rowsort
SELECT - 52 * 10 col0
----
-520

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

query I rowsort
SELECT ALL + 7 + - 4
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT - COALESCE ( + - 36, - - 46 ) + - 43 * + COUNT( * ) * - COALESCE ( + COUNT( * ), + 5 - - 0 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-2575
SELECT - COALESCE ( + - 36, - - 46 ) + - 43 * + COUNT ( * ) * - COALESCE ( + COUNT ( * ), + 5 - - 0 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT + MAX( DISTINCT - - 60 ) - MIN( - + 1 )
----
61

skipif mysql # not compatible
query I rowsort label-2576
SELECT + MAX ( DISTINCT - - 60 ) - MIN ( - + 1 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT - COALESCE ( - NULLIF ( - + ( 33 ), - 51 ), - + MAX( + - 79 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-2577
SELECT - COALESCE ( - NULLIF ( - + ( 33 ), - 51 ), - + MAX ( + - 79 ) )
----
-33

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2579
SELECT DISTINCT 67 DIV + 43 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2579
SELECT DISTINCT 67 / + 43 AS col2
----
1

query I rowsort
SELECT ALL + 59 + + 78
----
137

query I rowsort
SELECT DISTINCT + 48 + 97 AS col1
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2582
SELECT + + 78 DIV + CASE + 78 WHEN 23 + 16 THEN NULL WHEN - COUNT( * ) THEN - + CAST( NULL AS SIGNED ) ELSE - COUNT( * ) END AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-2582
SELECT + + 78 / + CASE + 78 WHEN 23 + 16 THEN NULL WHEN - COUNT ( * ) THEN - + CAST ( NULL AS INTEGER ) ELSE - COUNT ( * ) END AS col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2583
SELECT + + 20 + - CAST( NULL AS DECIMAL ) * + - COUNT( * ) + + - ( + 50 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2583
SELECT + + 20 + - CAST ( NULL AS REAL ) * + - COUNT ( * ) + + - ( + 50 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2584
SELECT DISTINCT + + 13 * + 65 / + MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT + + 13 * + 65 / + MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT + - ( + ( 36 ) ) + + + COUNT( * ) + + ( 28 ) col0
----
-7

skipif mysql # not compatible
query I rowsort label-2585
SELECT + - ( + ( 36 ) ) + + + COUNT ( * ) + + ( 28 ) col0
----
-7

query I rowsort
SELECT - - 34 * - 24 col2
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT COALESCE ( - - 22, - + 15, - + COUNT( * ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-2587
SELECT COALESCE ( - - 22, - + 15, - + COUNT ( * ) ) AS col0
----
22

query I rowsort
SELECT - + 60 * - 5 AS col1
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT + COUNT( * ) * - 97 + - 25
----
-122

skipif mysql # not compatible
query I rowsort label-2589
SELECT + COUNT ( * ) * - 97 + - 25
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT DISTINCT + - 76 / + - 20 * 53 - - 88 * CASE 11 WHEN - 26 THEN + 5 - CAST( NULL AS SIGNED ) END * ( + 69 ) - + 22 + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT + - 76 / + - 20 * 53 - - 88 * CASE 11 WHEN - 26 THEN + 5 - CAST ( NULL AS INTEGER ) END * ( + 69 ) - + 22 + - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT ALL + - SUM( DISTINCT + 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL + - SUM ( DISTINCT + 42 )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-2592
SELECT DISTINCT + 49 DIV + 74 - - 49 * 55 AS col2
----
2695

skipif mysql # not compatible
query I rowsort label-2592
SELECT DISTINCT + 49 / + 74 - - 49 * 55 AS col2
----
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT + 62 * + 78 * + COUNT( * )
----
4836

skipif mysql # not compatible
query I rowsort label-2593
SELECT + 62 * + 78 * + COUNT ( * )
----
4836

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT + CASE - CASE - 45 WHEN + - 77 THEN + + 29 END WHEN 74 THEN 89 + - ( - + 9 ) * + SUM( DISTINCT 83 ) WHEN + 42 - + - 64 * + 50 THEN NULL WHEN 37 + 93 THEN NULL END / 86 + + COUNT( * ) + - 93 * + ( - 65 ) * - 45 * - 85 * + - MAX( 24 ) - 22 * + + 90 * - + 41 * + 96 - + - 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT + CASE - CASE - 45 WHEN + - 77 THEN + + 29 END WHEN 74 THEN 89 + - ( - + 9 ) * + SUM ( DISTINCT 83 ) WHEN + 42 - + - 64 * + 50 THEN NULL WHEN 37 + 93 THEN NULL END / 86 + + COUNT ( * ) + - 93 * + ( - 65 ) * - 45 * - 85 * + - MAX ( 24 ) - 22 * + + 90 * - + 41 * + 96 - + - 50 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2595
SELECT DISTINCT - COUNT( * ) DIV - + 16 - 54, - 60 + - - 38 + - + 78 AS col0
----
-54
-100

skipif mysql # not compatible
query II rowsort label-2595
SELECT DISTINCT - COUNT ( * ) / - + 16 - 54, - 60 + - - 38 + - + 78 AS col0
----
-54
-100

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2597
SELECT ALL + 83 AS col1, - 57 + + + 32 * + ( + + COALESCE ( COALESCE ( + CASE + 23 WHEN - 26 THEN - - CAST( NULL AS SIGNED ) END, 79 ), + 73 + + - 31 ) )
----
83
2471

skipif mysql # not compatible
query II rowsort label-2597
SELECT ALL + 83 AS col1, - 57 + + + 32 * + ( + + COALESCE ( COALESCE ( + CASE + 23 WHEN - 26 THEN - - CAST ( NULL AS INTEGER ) END, 79 ), + 73 + + - 31 ) )
----
83
2471

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

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

query I rowsort
SELECT ( + NULLIF ( + + 45, + 56 * - - 54 * 95 * 10 - - 32 ) )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2600
SELECT 65 * - NULLIF ( + 98, - 96 + + - 64 ) + + - 47 DIV + 83 + - COUNT( * )
----
-6371

skipif mysql # not compatible
query I rowsort label-2600
SELECT 65 * - NULLIF ( + 98, - 96 + + - 64 ) + + - 47 / + 83 + - COUNT ( * )
----
-6371

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2602
SELECT + NULLIF ( NULLIF ( - 31, - 54 - + 16 ), + 82 * + ( - + CASE - CAST( + 72 AS DECIMAL ) WHEN - - ( + 80 ) THEN - + COUNT( * ) ELSE NULL END ) + CAST( - 67 AS SIGNED ) ) * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / - COUNT( * ) + 40 * - ( 86 ) - - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2602
SELECT + NULLIF ( NULLIF ( - 31, - 54 - + 16 ), + 82 * + ( - + CASE - CAST ( + 72 AS REAL ) WHEN - - ( + 80 ) THEN - + COUNT ( * ) ELSE NULL END ) + CAST ( - 67 AS INTEGER ) ) * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / - COUNT ( * ) + 40 * - ( 86 ) - - 20
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2603
SELECT - COUNT ( * ) * - 72
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2604
SELECT + 36 + - + COUNT( * ) + + CASE + CAST( - 60 AS SIGNED ) WHEN - 76 + + 36 * - 93 THEN NULL WHEN ( + 57 ) * 12 + + CAST( - 74 AS SIGNED ) + - - 70 THEN NULL WHEN + 80 THEN + - CAST( NULL AS SIGNED ) ELSE - NULLIF ( - - 1, - - 19 + - 52 + + - MIN( ALL - ( - 29 ) ) * + - 16 * 63 ) * - 97 + + 79 + - 94 - - + 39 END + + COUNT( * ) + - 73 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2604
SELECT + 36 + - + COUNT ( * ) + + CASE + CAST ( - 60 AS INTEGER ) WHEN - 76 + + 36 * - 93 THEN NULL WHEN ( + 57 ) * 12 + + CAST ( - 74 AS INTEGER ) + - - 70 THEN NULL WHEN + 80 THEN + - CAST ( NULL AS INTEGER ) ELSE - NULLIF ( - - 1, - - 19 + - 52 + + - MIN ( ALL - ( - 29 ) ) * + - 16 * 63 ) * - 97 + + 79 + - 94 - - + 39 END + + COUNT ( * ) + - 73 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT COUNT( * ) * + COUNT( * ) - + + 51
----
-50

skipif mysql # not compatible
query I rowsort label-2605
SELECT COUNT ( * ) * + COUNT ( * ) - + + 51
----
-50

query I rowsort
SELECT ALL 48 * + - 34 AS col2
----
-1632

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

query II rowsort
SELECT + 0 AS col1, - 23
----
0
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT DISTINCT CASE - 28 WHEN + NULLIF ( + COUNT( * ), 43 - 67 ) THEN 13 ELSE NULL END * 76 + - COALESCE ( 35, + + MAX( ALL + + 8 ) ) + 82 + + ( COUNT( * ) ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT CASE - 28 WHEN + NULLIF ( + COUNT ( * ), 43 - 67 ) THEN 13 ELSE NULL END * 76 + - COALESCE ( 35, + + MAX ( ALL + + 8 ) ) + 82 + + ( COUNT ( * ) ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2610
SELECT CASE - 81 WHEN - 76 / SUM( ALL - 7 ) - ( + 20 ) + + 16 THEN - COUNT( * ) ELSE NULL END / + ( + ( + + CAST( 20 AS SIGNED ) ) ) + 86 + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2610
SELECT CASE - 81 WHEN - 76 / SUM ( ALL - 7 ) - ( + 20 ) + + 16 THEN - COUNT ( * ) ELSE NULL END / + ( + ( + + CAST ( 20 AS INTEGER ) ) ) + 86 + 58
----
NULL

query II rowsort
SELECT DISTINCT - 2 AS col0, 11 * - 86 AS col2
----
-2
-946

query I rowsort
SELECT 79 + + 20
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2613
SELECT 73, + 80 - - 18 * - MAX( DISTINCT - 23 ) AS col0
----
73
494

skipif mysql # not compatible
query II rowsort label-2613
SELECT 73, + 80 - - 18 * - MAX ( DISTINCT - 23 ) AS col0
----
73
494

query I rowsort
SELECT 89 + - 32 * - - 16 * + - 11 * - - 99
----
557657

query I rowsort
SELECT 98 * 11
----
1078

query II rowsort
SELECT ALL - 76 + 17 AS col1, + 63 * - + 86
----
-59
-5418

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2617
SELECT 89, COUNT( * ) - 91 + + 0 + - - 30 DIV + + 11 + - 13 AS col2
----
89
-101

skipif mysql # not compatible
query II rowsort label-2617
SELECT 89, COUNT ( * ) - 91 + + 0 + - - 30 / + + 11 + - 13 AS col2
----
89
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-2618
SELECT 5 + COUNT( * ) AS col0, ( - 40 ) AS col1
----
6
-40

skipif mysql # not compatible
query II rowsort label-2618
SELECT 5 + COUNT ( * ) AS col0, ( - 40 ) AS col1
----
6
-40

query I rowsort
SELECT - CASE 60 WHEN 11 * - 25 THEN ( - 37 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 10 + - 85
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2621
SELECT DISTINCT 82 + 44 + 94 * - COUNT( * ) * + + CAST( NULL AS SIGNED ) / + + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT 82 + 44 + 94 * - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) / + + 36 AS col2
----
NULL

query I rowsort
SELECT ALL + - 40 + + 15 * - 58
----
-910

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2624
SELECT + 47 AS col0, 9 * - ( - + COUNT( * ) ) * - ( + 53 ) + CAST( 24 AS SIGNED ) * 64 AS col0
----
47
1059

skipif mysql # not compatible
query II rowsort label-2624
SELECT + 47 AS col0, 9 * - ( - + COUNT ( * ) ) * - ( + 53 ) + CAST ( 24 AS INTEGER ) * 64 AS col0
----
47
1059

onlyif mysql # aggregate syntax: 
query II rowsort label-2625
SELECT - + 34 AS col0, 25 - + + 63 + COUNT( * ) + 14 AS col0
----
-34
-23

skipif mysql # not compatible
query II rowsort label-2625
SELECT - + 34 AS col0, 25 - + + 63 + COUNT ( * ) + 14 AS col0
----
-34
-23

query I rowsort
SELECT ALL - + 10 * - 97
----
970

query I rowsort
SELECT 36 - - 32 * 9 AS col2
----
324

query I rowsort
SELECT 67 + + 3 AS col2
----
70

query I rowsort
SELECT 26 * + 25 * + 99
----
64350

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT - + NULLIF ( - 54, + 32 + - COUNT( * ) ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-2630
SELECT - + NULLIF ( - 54, + 32 + - COUNT ( * ) ) AS col0
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT ( + 22 ) * 14 + COUNT( * ) - - 91 + + + 0 + 79 * + 34 * - 75 * - 93 AS col1
----
18735250

skipif mysql # not compatible
query I rowsort label-2632
SELECT ( + 22 ) * 14 + COUNT ( * ) - - 91 + + + 0 + 79 * + 34 * - 75 * - 93 AS col1
----
18735250

query I rowsort
SELECT ALL 85 * 18 AS col1
----
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT DISTINCT + 0 - - + 23 + - + 30 + + + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT + 0 - - + 23 + - + 30 + + + COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ALL - MAX( - - 55 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL - MAX ( - - 55 ) AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2636
SELECT 88 col2, - 85 * + COALESCE ( CAST( NULL AS SIGNED ), + 36, + COUNT( * ) )
----
88
-3060

skipif mysql # not compatible
query II rowsort label-2636
SELECT 88 col2, - 85 * + COALESCE ( CAST ( NULL AS INTEGER ), + 36, + COUNT ( * ) )
----
88
-3060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2637
SELECT 85 / SUM( CAST( - CASE - 61 WHEN + - ( + 72 ) * + 43 * 50 * 74 THEN - + 30 * - 25 + + 93 * ( - 33 ) END AS SIGNED ) ) + NULLIF ( - + 4, + 91 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2637
SELECT 85 / SUM ( CAST ( - CASE - 61 WHEN + - ( + 72 ) * + 43 * 50 * 74 THEN - + 30 * - 25 + + 93 * ( - 33 ) END AS INTEGER ) ) + NULLIF ( - + 4, + 91 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2638
SELECT ALL + ( - - CAST( NULL AS SIGNED ) ) * - NULLIF ( - COUNT( * ), - 83 + + 17 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL + ( - - CAST ( NULL AS INTEGER ) ) * - NULLIF ( - COUNT ( * ), - 83 + + 17 ) AS col1
----
NULL

query I rowsort
SELECT 28 * ( + + ( + + 78 ) ) col1
----
2184

query II rowsort
SELECT DISTINCT 13 * - + 44 AS col2, + 14 * + 88 * + - 55
----
-572
-67760

onlyif mysql # DIV for integer division: 
query I rowsort label-2641
SELECT - 25 DIV 74 + - 95
----
-95

skipif mysql # not compatible
query I rowsort label-2641
SELECT - 25 / 74 + - 95
----
-95

query I rowsort
SELECT ALL - ( - + CASE - 97 WHEN 76 THEN NULL ELSE - - 0 + 16 END ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT ALL 1 + + - ( + CASE 72 WHEN 54 - + - 15 THEN + + COALESCE ( + 52, + MAX( ALL + 52 ) - COUNT( 7 ) + + COUNT( * ) + + COUNT( * ) * + 79 * + - 96, + 15 * - 91 ) / + + NULLIF ( + - 94, - 97 ) + - + MIN( 84 ) WHEN - 5 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL 1 + + - ( + CASE 72 WHEN 54 - + - 15 THEN + + COALESCE ( + 52, + MAX ( ALL + 52 ) - COUNT ( 7 ) + + COUNT ( * ) + + COUNT ( * ) * + 79 * + - 96, + 15 * - 91 ) / + + NULLIF ( + - 94, - 97 ) + - + MIN ( 84 ) WHEN - 5 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT + COUNT( * ) * - 16 - + 24 + - 33 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-2644
SELECT + COUNT ( * ) * - 16 - + 24 + - 33 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT ( 21 ) * + + 95 * - 59 - + 4 - - 60 + + + 35 + + 60 * NULLIF ( + 5, - 19 ) * COUNT( * ) * - 43 col2
----
-130514

skipif mysql # not compatible
query I rowsort label-2645
SELECT ( 21 ) * + + 95 * - 59 - + 4 - - 60 + + + 35 + + 60 * NULLIF ( + 5, - 19 ) * COUNT ( * ) * - 43 col2
----
-130514

query I rowsort
SELECT ALL 58 * + 76
----
4408

query II rowsort
SELECT ALL 29 + - 74, - 23 AS col0
----
-45
-23

query I rowsort
SELECT DISTINCT 52 + - + ( 36 ) AS col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2649
SELECT DISTINCT 64 + + CAST( + 45 AS SIGNED ) * - 67 AS col0
----
-2951

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT 64 + + CAST ( + 45 AS INTEGER ) * - 67 AS col0
----
-2951

query I rowsort
SELECT 26 - - + 60 + - 66 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT ALL MIN( DISTINCT - 37 ) * - + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL MIN ( DISTINCT - 37 ) * - + COUNT ( * )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2652
SELECT DISTINCT + CAST( 19 AS SIGNED ) * + 9 * - 71 AS col1
----
-12141

skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT + CAST ( 19 AS INTEGER ) * + 9 * - 71 AS col1
----
-12141

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT 2 * 47 * COUNT( * ) + - 10 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-2653
SELECT 2 * 47 * COUNT ( * ) + - 10 AS col1
----
84

query I rowsort
SELECT ALL 11 - + + NULLIF ( + 42, 87 )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2655
SELECT 5 + + - MIN( ALL 35 ) DIV - 43
----
5

skipif mysql # not compatible
query I rowsort label-2655
SELECT 5 + + - MIN ( ALL 35 ) / - 43
----
5

query I rowsort
SELECT 51 + 62 AS col1
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2657
SELECT 95 - + 29 + - COUNT( * ) + + CAST( 8 AS SIGNED ) AS col0, - 3 + + 93 * + + 69
----
73
6414

skipif mysql # not compatible
query II rowsort label-2657
SELECT 95 - + 29 + - COUNT ( * ) + + CAST ( 8 AS INTEGER ) AS col0, - 3 + + 93 * + + 69
----
73
6414

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

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

query I rowsort
SELECT - ( ( 66 ) )
----
-66

query I rowsort
SELECT DISTINCT + 15 * - 64 * - 2 AS col0
----
1920

onlyif mysql # aggregate syntax: 
query II rowsort label-2661
SELECT DISTINCT 96 - CASE 41 WHEN + + ( 92 ) THEN - 92 WHEN - - COUNT( * ) THEN NULL END, - 14 AS col1
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-2661
SELECT DISTINCT 96 - CASE 41 WHEN + + ( 92 ) THEN - 92 WHEN - - COUNT ( * ) THEN NULL END, - 14 AS col1
----
NULL
-14

query I rowsort
SELECT ALL + + ( + 2 ) * + 61 * + 15 col1
----
1830

query I rowsort
SELECT ALL ( + 31 ) * - - 44 AS col0
----
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT DISTINCT COALESCE ( + 93, - 83, - 11 * - COUNT( * ) )
----
93

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT COALESCE ( + 93, - 83, - 11 * - COUNT ( * ) )
----
93

query I rowsort
SELECT - 57 + 97
----
40

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

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

query II rowsort
SELECT ALL - NULLIF ( + + 21, + - 26 ) AS col1, 37 col0
----
-21
37

query I rowsort
SELECT ALL + 22 * 81 * 94 * + 64 AS col2
----
10720512

query I rowsort
SELECT 43 * - 80 AS col1
----
-3440

query I rowsort
SELECT 35 + - ( - ( + - 92 ) )
----
-57

query I rowsort
SELECT ALL + 83 * - 80
----
-6640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2672
SELECT - NULLIF ( 85, - 42 + 21 * - + 64 + SUM( ALL + - 64 ) ) DIV - COUNT( + 94 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-2672
SELECT - NULLIF ( 85, - 42 + 21 * - + 64 + SUM ( ALL + - 64 ) ) / - COUNT ( + 94 ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT ALL 20 * - - 75 + 51 + - - NULLIF ( + - 42, - - 89 ) + 77 + - CASE - - 21 WHEN + + 50 THEN + SUM( ALL + 46 ) / 88 + - 52 * - + NULLIF ( + - 68, 33 ) + + COUNT( * ) * 99 END * - - 71 / - 43 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL 20 * - - 75 + 51 + - - NULLIF ( + - 42, - - 89 ) + 77 + - CASE - - 21 WHEN + + 50 THEN + SUM ( ALL + 46 ) / 88 + - 52 * - + NULLIF ( + - 68, 33 ) + + COUNT ( * ) * 99 END * - - 71 / - 43 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2674
SELECT COALESCE ( + 2, + - 25 + - CASE - 35 WHEN CASE + - NULLIF ( 73, - + 97 * + 93 ) WHEN - 3 THEN + 87 + 96 END THEN 4 WHEN 76 / - - 22 * - 41 * CAST( 98 AS SIGNED ) - + + 34 THEN - 6 WHEN + + 76 * - + 79 / 38 THEN NULL ELSE - 61 END + + 49 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-2674
SELECT COALESCE ( + 2, + - 25 + - CASE - 35 WHEN CASE + - NULLIF ( 73, - + 97 * + 93 ) WHEN - 3 THEN + 87 + 96 END THEN 4 WHEN 76 / - - 22 * - 41 * CAST ( 98 AS INTEGER ) - + + 34 THEN - 6 WHEN + + 76 * - + 79 / 38 THEN NULL ELSE - 61 END + + 49 ) col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2675
SELECT + 76 * + 71 + + + COUNT( ALL - + 8 ) * 80 DIV 94, - NULLIF ( - 22, - 65 * + 90 - + COUNT( * ) ) AS col1
----
5396
22

skipif mysql # not compatible
query II rowsort label-2675
SELECT + 76 * + 71 + + + COUNT ( ALL - + 8 ) * 80 / 94, - NULLIF ( - 22, - 65 * + 90 - + COUNT ( * ) ) AS col1
----
5396
22

query I rowsort
SELECT - 47 + 56 * - 34 * - 91 * - - 94
----
16286769

onlyif mysql # aggregate syntax: 
query II rowsort label-2677
SELECT 39 * - MAX( - 4 ) - - 35, ( - 35 ) AS col0
----
191
-35

skipif mysql # not compatible
query II rowsort label-2677
SELECT 39 * - MAX ( - 4 ) - - 35, ( - 35 ) AS col0
----
191
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT SUM( + 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-2678
SELECT SUM ( + 21 ) AS col2
----
21

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2680
SELECT - NULLIF ( + ( - 34 ), + 76 ) + + + CAST( NULL AS SIGNED ) * - + 25 / - + ( + 63 ) AS col0, 65 AS col1
----
NULL
65

skipif mysql # not compatible
query II rowsort label-2680
SELECT - NULLIF ( + ( - 34 ), + 76 ) + + + CAST ( NULL AS INTEGER ) * - + 25 / - + ( + 63 ) AS col0, 65 AS col1
----
NULL
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT ALL - 25 * COUNT( * ) + MIN( DISTINCT 34 ) + + 37 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL - 25 * COUNT ( * ) + MIN ( DISTINCT 34 ) + + 37 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT SUM( DISTINCT + + CASE + - 69 WHEN + 91 + - 70 + + + 55 THEN NULL WHEN + 14 THEN - - 29 * + + 89 * + + 98 + 52 WHEN - 24 + - 10 * + 89 THEN COALESCE ( - 31, - - 15 + - + 63 ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2682
SELECT SUM ( DISTINCT + + CASE + - 69 WHEN + 91 + - 70 + + + 55 THEN NULL WHEN + 14 THEN - - 29 * + + 89 * + + 98 + 52 WHEN - 24 + - 10 * + 89 THEN COALESCE ( - 31, - - 15 + - + 63 ) END ) AS col1
----
NULL

query I rowsort
SELECT ALL + 49 * 82 * + ( - 60 ) AS col1
----
-241080

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2684
SELECT - CAST( NULL AS DECIMAL ) * + + COUNT( * ) + + + COUNT( * ) + CAST( - 73 AS DECIMAL ) * 3 + - + COUNT( * ) * - 2 * - + 4 * 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT - CAST ( NULL AS REAL ) * + + COUNT ( * ) + + + COUNT ( * ) + CAST ( - 73 AS REAL ) * 3 + - + COUNT ( * ) * - 2 * - + 4 * 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2685
SELECT DISTINCT 31 AS col0, 49 * + COUNT( * )
----
31
49

skipif mysql # not compatible
query II rowsort label-2685
SELECT DISTINCT 31 AS col0, 49 * + COUNT ( * )
----
31
49

query I rowsort
SELECT + + 33 + 60 * 66
----
3993

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT - - COALESCE ( ( + ( COUNT( * ) ) ), + MIN( 59 ) ) * + ( COUNT( * ) ) + 66 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-2688
SELECT - - COALESCE ( ( + ( COUNT ( * ) ) ), + MIN ( 59 ) ) * + ( COUNT ( * ) ) + 66 AS col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2689
SELECT 81 AS col1, + ( + MIN( DISTINCT + 62 ) ) DIV + 67 + - - 94
----
81
94

skipif mysql # not compatible
query II rowsort label-2689
SELECT 81 AS col1, + ( + MIN ( DISTINCT + 62 ) ) / + 67 + - - 94
----
81
94

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

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

query II rowsort
SELECT - - 50 AS col2, - 67 + + 78
----
50
11

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2693
SELECT ALL - 99, + 62 * + MAX( - ( 77 ) ) AS col0
----
-99
-4774

skipif mysql # not compatible
query II rowsort label-2693
SELECT ALL - 99, + 62 * + MAX ( - ( 77 ) ) AS col0
----
-99
-4774

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT ALL 89 * + COUNT( - - 36 ) * - COUNT( * ) + - + 64
----
-153

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL 89 * + COUNT ( - - 36 ) * - COUNT ( * ) + - + 64
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT ALL - SUM( DISTINCT 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL - SUM ( DISTINCT 26 )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2696
SELECT + + 89 + - CASE - CASE - - 51 WHEN - COALESCE ( + 40, + COUNT( ALL 1 ) / NULLIF ( + NULLIF ( 83, - 29 ), 70 ), + AVG ( ALL - 79 ), 9 + - 60 ) * + ( + CASE + 48 WHEN - - 63 * 98 + - + 64 THEN NULL WHEN + + 10 * 86 * - 24 THEN + - CAST( + 94 AS SIGNED ) + - 74 + - - 1 ELSE NULL END ) * 78 + - ( 43 ) / 79 * ( - 71 ) + 92 THEN + - 70 ELSE NULL END WHEN - - 85 THEN + ( 60 ) / - COUNT( * ) - - - 10 + - 16 ELSE NULL END * 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2696
SELECT + + 89 + - CASE - CASE - - 51 WHEN - COALESCE ( + 40, + COUNT ( ALL 1 ) / NULLIF ( + NULLIF ( 83, - 29 ), 70 ), + AVG ( ALL - 79 ), 9 + - 60 ) * + ( + CASE + 48 WHEN - - 63 * 98 + - + 64 THEN NULL WHEN + + 10 * 86 * - 24 THEN + - CAST ( + 94 AS INTEGER ) + - 74 + - - 1 ELSE NULL END ) * 78 + - ( 43 ) / 79 * ( - 71 ) + 92 THEN + - 70 ELSE NULL END WHEN - - 85 THEN + ( 60 ) / - COUNT ( * ) - - - 10 + - 16 ELSE NULL END * 23 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 84 * - - 6
----
504

query I rowsort
SELECT + - 20 * - 17 * + - 18
----
-6120

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT + MIN( + 5 ) * + - 39 * - - 54 * 21 AS col1
----
-221130

skipif mysql # not compatible
query I rowsort label-2699
SELECT + MIN ( + 5 ) * + - 39 * - - 54 * 21 AS col1
----
-221130

query I rowsort
SELECT + + ( - 28 ) - - 59
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2701
SELECT - + 40 DIV + 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2701
SELECT - + 40 / + 56 AS col0
----
0

query I rowsort
SELECT + - 71 - - - 27 AS col2
----
-98

query I rowsort
SELECT + 17 * + - 94
----
-1598

query I rowsort
SELECT ALL CASE + 82 WHEN + + 30 THEN NULL ELSE - 87 END + 96
----
9

query I rowsort
SELECT ALL - 6 + + 53 + COALESCE ( - + 47, 16, + - 33 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2706
SELECT ALL NULLIF ( 19, + 45 ) / - CAST( NULL AS DECIMAL ) + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL NULLIF ( 19, + 45 ) / - CAST ( NULL AS REAL ) + 65
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2707
SELECT ALL + COUNT( ALL - - CAST( - - 17 AS DECIMAL ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL + COUNT ( ALL - - CAST ( - - 17 AS REAL ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT DISTINCT 10 DIV + 18 + + 34 * 35 AS col1
----
1190

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT 10 / + 18 + + 34 * 35 AS col1
----
1190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2709
SELECT CASE MAX( 50 ) WHEN - 58 THEN + + 86 WHEN 96 + + 54 THEN NULL WHEN ( - - 62 ) * ( - 59 ) + - 7 * - + 36 THEN + 26 * CAST( NULL AS SIGNED ) END / + ( - ( + - 36 ) ) + 16 - - + ( + - CAST( NULL AS DECIMAL ) ) + 56 * - COALESCE ( + 36, + 13 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT CASE MAX ( 50 ) WHEN - 58 THEN + + 86 WHEN 96 + + 54 THEN NULL WHEN ( - - 62 ) * ( - 59 ) + - 7 * - + 36 THEN + 26 * CAST ( NULL AS INTEGER ) END / + ( - ( + - 36 ) ) + 16 - - + ( + - CAST ( NULL AS REAL ) ) + 56 * - COALESCE ( + 36, + 13 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2710
SELECT DISTINCT 16 DIV 26 + - 9 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT 16 / 26 + - 9 AS col1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2711
SELECT ALL 85 DIV 21 + 59 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL 85 / 21 + 59 AS col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2712
SELECT ALL 54 DIV + 72 + - + 91 + - - COUNT( * ) * - 65 DIV + + 41
----
-92

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL 54 / + 72 + - + 91 + - - COUNT ( * ) * - 65 / + + 41
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT + 71 * COUNT( - ( - + 60 ) ) col1
----
71

skipif mysql # not compatible
query I rowsort label-2713
SELECT + 71 * COUNT ( - ( - + 60 ) ) col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2714
SELECT + CAST( - - 95 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-2714
SELECT + CAST ( - - 95 AS INTEGER )
----
95

query I rowsort
SELECT ( - ( - 66 ) ) AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2716
SELECT + CAST( - - 68 AS SIGNED ) AS col1, 1 * ( - 83 ) + - - MIN( ( - - 80 ) ) + + - SUM( DISTINCT + 80 )
----
68
-83

skipif mysql # not compatible
query II rowsort label-2716
SELECT + CAST ( - - 68 AS INTEGER ) AS col1, 1 * ( - 83 ) + - - MIN ( ( - - 80 ) ) + + - SUM ( DISTINCT + 80 )
----
68
-83

query I rowsort
SELECT - 53 + - + 81 AS col1
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT DISTINCT CASE 3 WHEN 16 THEN NULL WHEN + - ( - 41 ) + - - 66 THEN + + 60 / 14 * + 66 + 42 + 46 + - - COUNT( * ) / - - 96 END * - - 31 * - 90 + 24 - - COUNT( * ) + - + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT DISTINCT CASE 3 WHEN 16 THEN NULL WHEN + - ( - 41 ) + - - 66 THEN + + 60 / 14 * + 66 + 42 + 46 + - - COUNT ( * ) / - - 96 END * - - 31 * - 90 + 24 - - COUNT ( * ) + - + 11 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 47 * + 72
----
3384

query I rowsort
SELECT ALL - 81 * - 91 + - 0
----
7371

query I rowsort
SELECT DISTINCT - 72 * + 28 AS col2
----
-2016

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

skipif mysql # not compatible
query I rowsort label-2722
SELECT + 96 * 13 - COUNT ( * ) AS col1
----
1247

onlyif mysql # aggregate syntax: 
query II rowsort label-2723
SELECT - - 67 * 60 + COALESCE ( + 40, - 37 + 96 ) * - + 65 * - 23 * - - ( 76 ), CASE + - COUNT( * ) WHEN + + 47 THEN NULL WHEN + COUNT( * ) THEN - 13 END col2
----
4548820
NULL

skipif mysql # not compatible
query II rowsort label-2723
SELECT - - 67 * 60 + COALESCE ( + 40, - 37 + 96 ) * - + 65 * - 23 * - - ( 76 ), CASE + - COUNT ( * ) WHEN + + 47 THEN NULL WHEN + COUNT ( * ) THEN - 13 END col2
----
4548820
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT DISTINCT - + 65 * + + 19 - CASE - 47 WHEN + 30 + - 41 THEN + 52 WHEN - COUNT( * ) THEN + + 31 ELSE - 3 END
----
-1232

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT - + 65 * + + 19 - CASE - 47 WHEN + 30 + - 41 THEN + 52 WHEN - COUNT ( * ) THEN + + 31 ELSE - 3 END
----
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT DISTINCT - - COUNT( * ) * + COUNT( * ) + + 77
----
78

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT - - COUNT ( * ) * + COUNT ( * ) + + 77
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-2726
SELECT - 63 + + 98, 90 DIV - + 98 AS col0
----
35
0

skipif mysql # not compatible
query II rowsort label-2726
SELECT - 63 + + 98, 90 / - + 98 AS col0
----
35
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2727
SELECT + 32 * - 42 col2, - COUNT( + - ( 90 ) ) + + 70
----
-1344
69

skipif mysql # not compatible
query II rowsort label-2727
SELECT + 32 * - 42 col2, - COUNT ( + - ( 90 ) ) + + 70
----
-1344
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2728
SELECT DISTINCT + - 91 * 46 * 11 * + 47 + - 69 - + - 97 DIV 94 + - - 70 DIV + COUNT( * )
----
-2164160

skipif mysql # not compatible
query I rowsort label-2728
SELECT DISTINCT + - 91 * 46 * 11 * + 47 + - 69 - + - 97 / 94 + - - 70 / + COUNT ( * )
----
-2164160

onlyif mysql # aggregate syntax: 
query II rowsort label-2729
SELECT DISTINCT + + 74 * + COUNT( * ) * - ( - 75 ) AS col0, 52 AS col1
----
5550
52

skipif mysql # not compatible
query II rowsort label-2729
SELECT DISTINCT + + 74 * + COUNT ( * ) * - ( - 75 ) AS col0, 52 AS col1
----
5550
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT DISTINCT NULLIF ( + 10, 86 * - AVG ( - + 25 ) + + + MAX( DISTINCT 24 ) * - 9 + AVG ( DISTINCT NULLIF ( + 91, - 67 ) ) )
----
10

skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT NULLIF ( + 10, 86 * - AVG ( - + 25 ) + + + MAX ( DISTINCT 24 ) * - 9 + AVG ( DISTINCT NULLIF ( + 91, - 67 ) ) )
----
10

query II rowsort
SELECT - + 10 - + 25 AS col2, + 22 + + 84
----
-35
106

query I rowsort
SELECT ALL + + 24 * + 97 * - 37
----
-86136

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

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

query I rowsort
SELECT + + 60 + + ( 98 ) AS col2
----
158

onlyif mysql # aggregate syntax: 
query II rowsort label-2735
SELECT - - ( - 52 ) AS col2, - 90 - MIN( ALL 87 ) AS col2
----
-52
-177

skipif mysql # not compatible
query II rowsort label-2735
SELECT - - ( - 52 ) AS col2, - 90 - MIN ( ALL 87 ) AS col2
----
-52
-177

query I rowsort
SELECT - 79 + 58 * + - 4
----
-311

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT COALESCE ( 91, 21 * - COUNT( * ) * - 27 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-2737
SELECT COALESCE ( 91, 21 * - COUNT ( * ) * - 27 ) AS col0
----
91

query I rowsort
SELECT - 62 - + 93 + 77 * 74 - + + 2 col1
----
5541

onlyif mysql # DIV for integer division: 
query I rowsort label-2739
SELECT 14 DIV - 86 + - 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-2739
SELECT 14 / - 86 + - 98 AS col2
----
-98

query II rowsort
SELECT - 6 + + + 71, 75 AS col2
----
65
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT ALL + COALESCE ( - SUM( ALL - + 32 ), + COUNT( * ) + 63 ) + - 56 - - + 86 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL + COALESCE ( - SUM ( ALL - + 32 ), + COUNT ( * ) + 63 ) + - 56 - - + 86 AS col2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2742
SELECT ALL + - 44 + + - CAST( - 14 AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL + - 44 + + - CAST ( - 14 AS INTEGER )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT ALL 84 + + + CASE 87 WHEN 75 + - MAX( + 1 ) THEN + + 38 + - MAX( DISTINCT - COALESCE ( - 83, - - 20 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL 84 + + + CASE 87 WHEN 75 + - MAX ( + 1 ) THEN + + 38 + - MAX ( DISTINCT - COALESCE ( - 83, - - 20 ) ) END AS col2
----
NULL

query II rowsort
SELECT 66, + 6 AS col0
----
66
6

query I rowsort
SELECT DISTINCT 54 + 75 + - 90 * + - 6 * 95 * 53 + 22
----
2719051

query I rowsort
SELECT DISTINCT 13 + + 71 AS col1
----
84

query I rowsort
SELECT ( + 13 ) * + - NULLIF ( 92, + 72 ) col0
----
-1196

query I rowsort
SELECT ALL 89 + - 24 col1
----
65

query I rowsort
SELECT ALL 48 + 7 AS col0
----
55

query I rowsort
SELECT 60 + + 9 * + 45 AS col1
----
465

onlyif mysql # aggregate syntax: 
query II rowsort label-2751
SELECT 61 AS col0, 13 - - + COUNT( DISTINCT - 1 ) AS col0
----
61
14

skipif mysql # not compatible
query II rowsort label-2751
SELECT 61 AS col0, 13 - - + COUNT ( DISTINCT - 1 ) AS col0
----
61
14

query II rowsort
SELECT + 96 AS col0, + 42 - - 0
----
96
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT ( - - 26 ) + + MIN( ALL 11 )
----
37

skipif mysql # not compatible
query I rowsort label-2753
SELECT ( - - 26 ) + + MIN ( ALL 11 )
----
37

query I rowsort
SELECT 5 * + + 44
----
220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2755
SELECT 8 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2755
SELECT 8 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2756
SELECT DISTINCT - 46 AS col2, NULLIF ( 49, + - MIN( DISTINCT + + ( - 5 ) ) ) + - - NULLIF ( - - ( + + 51 ), + CASE - NULLIF ( - 21, + - 40 ) WHEN + + COUNT( * ) THEN NULL WHEN + - 71 THEN + 2 * - COALESCE ( - - 52, 44 + + - 7 ) END * 72 ) - COUNT( * ) - + 38
----
-46
61

skipif mysql # not compatible
query II rowsort label-2756
SELECT DISTINCT - 46 AS col2, NULLIF ( 49, + - MIN ( DISTINCT + + ( - 5 ) ) ) + - - NULLIF ( - - ( + + 51 ), + CASE - NULLIF ( - 21, + - 40 ) WHEN + + COUNT ( * ) THEN NULL WHEN + - 71 THEN + 2 * - COALESCE ( - - 52, 44 + + - 7 ) END * 72 ) - COUNT ( * ) - + 38
----
-46
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT ALL 35 + + + 87 * + - 81 + - 23 * MAX( DISTINCT - + 96 ) * - COUNT( * ) + + COALESCE ( - - 10, - - 77 * NULLIF ( - + 50, 10 + - 80 ), + 97, - 42 ) + + 52
----
-9158

skipif mysql # not compatible
query I rowsort label-2757
SELECT ALL 35 + + + 87 * + - 81 + - 23 * MAX ( DISTINCT - + 96 ) * - COUNT ( * ) + + COALESCE ( - - 10, - - 77 * NULLIF ( - + 50, 10 + - 80 ), + 97, - 42 ) + + 52
----
-9158

onlyif mysql # DIV for integer division: 
query I rowsort label-2758
SELECT 76 * - + ( - 94 ) - + - 56 + + - 85 DIV - 73
----
7201

skipif mysql # not compatible
query I rowsort label-2758
SELECT 76 * - + ( - 94 ) - + - 56 + + - 85 / - 73
----
7201

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT DISTINCT - 3 * COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT - 3 * COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2760
SELECT ALL 0 - COUNT( ALL + 43 ), + 95 + - COUNT( * ) AS col0
----
-1
94

skipif mysql # not compatible
query II rowsort label-2760
SELECT ALL 0 - COUNT ( ALL + 43 ), + 95 + - COUNT ( * ) AS col0
----
-1
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT 14 + + 53 + - COUNT( * ) * - - 50 + + - CASE + COALESCE ( 85, + + COUNT( * ) ) WHEN - + ( + CASE + - 23 WHEN + 29 THEN NULL WHEN 5 + + 28 THEN + 91 - - 69 ELSE NULL END ) THEN COUNT( * ) * 17 WHEN + + 44 THEN NULL ELSE NULL END * - 89 / + - 84 / - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT 14 + + 53 + - COUNT ( * ) * - - 50 + + - CASE + COALESCE ( 85, + + COUNT ( * ) ) WHEN - + ( + CASE + - 23 WHEN + 29 THEN NULL WHEN 5 + + 28 THEN + 91 - - 69 ELSE NULL END ) THEN COUNT ( * ) * 17 WHEN + + 44 THEN NULL ELSE NULL END * - 89 / + - 84 / - 48
----
NULL

query I rowsort
SELECT ALL 76 * + 62 AS col1
----
4712

query II rowsort
SELECT + 72 AS col2, + ( + - 26 ) AS col0
----
72
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-2764
SELECT 30 - - - ( + 37 ) + + 66 + + - 34 DIV + + 51 * - + 57 * - 18
----
59

skipif mysql # not compatible
query I rowsort label-2764
SELECT 30 - - - ( + 37 ) + + 66 + + - 34 / + + 51 * - + 57 * - 18
----
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT - 85 * - - 15 * - + 30 - - + COUNT( * ) AS col2
----
38251

skipif mysql # not compatible
query I rowsort label-2766
SELECT - 85 * - - 15 * - + 30 - - + COUNT ( * ) AS col2
----
38251

query I rowsort
SELECT - 61 + 42
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT COUNT( * ) * + NULLIF ( - 22, + 90 )
----
-22

skipif mysql # not compatible
query I rowsort label-2768
SELECT COUNT ( * ) * + NULLIF ( - 22, + 90 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ( COUNT( * ) ) * - 91 + + - 10 AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-2769
SELECT ( COUNT ( * ) ) * - 91 + + - 10 AS col0
----
-101

query I rowsort
SELECT - ( 89 ) * - + 7 + 81 AS col0
----
704

query I rowsort
SELECT + 10 + 71
----
81

query II rowsort
SELECT - - 59 AS col1, + 53 AS col2
----
59
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2773
SELECT DISTINCT + - ( + 79 ) / + 33 + 5 + + - CAST( NULL AS DECIMAL ) - + 23 * COUNT( * ) * 52 * - ( - + AVG ( - - ( + 6 ) ) ) * + - CAST( + ( 36 ) AS DECIMAL ) / 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2773
SELECT DISTINCT + - ( + 79 ) / + 33 + 5 + + - CAST ( NULL AS REAL ) - + 23 * COUNT ( * ) * 52 * - ( - + AVG ( - - ( + 6 ) ) ) * + - CAST ( + ( 36 ) AS REAL ) / 78 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT SUM( DISTINCT - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-2774
SELECT SUM ( DISTINCT - 40 )
----
-40

query I rowsort
SELECT ALL - 43 + - - 83
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT ALL + ( - COUNT( ALL 11 ) ) + + + 29 * - 94 + - COALESCE ( - - 70, 79 - 54 + + - ( + 8 ) ) col0
----
-2797

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL + ( - COUNT ( ALL 11 ) ) + + + 29 * - 94 + - COALESCE ( - - 70, 79 - 54 + + - ( + 8 ) ) col0
----
-2797

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT - + CASE - + 32 WHEN - ( ( + + NULLIF ( 93, + 95 ) ) ) * 73 + - + 37 THEN 95 + + MAX( DISTINCT - - 27 ) - - 58 ELSE COUNT( * ) * 7 + + + 29 + - 59 END
----
23

skipif mysql # not compatible
query I rowsort label-2777
SELECT - + CASE - + 32 WHEN - ( ( + + NULLIF ( 93, + 95 ) ) ) * 73 + - + 37 THEN 95 + + MAX ( DISTINCT - - 27 ) - - 58 ELSE COUNT ( * ) * 7 + + + 29 + - 59 END
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2778
SELECT DISTINCT + 6 + CASE - - 38 WHEN + 67 THEN NULL WHEN + 49 / - AVG ( DISTINCT + 45 ) - - + CASE - CAST( + COUNT( * ) AS SIGNED ) WHEN - NULLIF ( - ( + - MAX( DISTINCT - 81 ) ), - 25 * - - 36 ) * + - 53 - 70 + - - 13 * - 42 THEN - CAST( - 27 AS SIGNED ) END THEN 92 + - - COUNT( * ) * - + 48 + 41 + + 92 WHEN CAST( NULL AS DECIMAL ) * + ( - 95 ) THEN NULL ELSE - 18 * - 31 END + ( 63 )
----
627

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT + 6 + CASE - - 38 WHEN + 67 THEN NULL WHEN + 49 / - AVG ( DISTINCT + 45 ) - - + CASE - CAST ( + COUNT ( * ) AS INTEGER ) WHEN - NULLIF ( - ( + - MAX ( DISTINCT - 81 ) ), - 25 * - - 36 ) * + - 53 - 70 + - - 13 * - 42 THEN - CAST ( - 27 AS INTEGER ) END THEN 92 + - - COUNT ( * ) * - + 48 + 41 + + 92 WHEN CAST ( NULL AS REAL ) * + ( - 95 ) THEN NULL ELSE - 18 * - 31 END + ( 63 )
----
627

query II rowsort
SELECT 14, 26 * 99 col1
----
14
2574

onlyif mysql # DIV for integer division: 
query I rowsort label-2780
SELECT 79 + - 76 DIV - 5
----
94

skipif mysql # not compatible
query I rowsort label-2780
SELECT 79 + - 76 / - 5
----
94

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2782
SELECT - 84 AS col0, ( + MAX( DISTINCT + 2 ) ) AS col1
----
-84
2

skipif mysql # not compatible
query II rowsort label-2782
SELECT - 84 AS col0, ( + MAX ( DISTINCT + 2 ) ) AS col1
----
-84
2

onlyif mysql # DIV for integer division: 
query II rowsort label-2783
SELECT DISTINCT 45, 91 DIV + + 65 AS col2
----
45
1

skipif mysql # not compatible
query II rowsort label-2783
SELECT DISTINCT 45, 91 / + + 65 AS col2
----
45
1

query I rowsort
SELECT DISTINCT NULLIF ( - 63, + NULLIF ( - 90, - + 72 ) ) - 9 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT ALL 95 * + COUNT( * ) * 49
----
4655

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL 95 * + COUNT ( * ) * 49
----
4655

query I rowsort
SELECT 88 * 11
----
968

onlyif mysql # DIV for integer division: 
query II rowsort label-2787
SELECT ALL + 17 DIV + - 38 AS col0, 52 DIV - 96 AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-2787
SELECT ALL + 17 / + - 38 AS col0, 52 / - 96 AS col1
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT DISTINCT COUNT( * ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT COUNT ( * ) * - 0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2789
SELECT ALL - 69 AS col1, 57 DIV - 82 - - 28 + + 16
----
-69
44

skipif mysql # not compatible
query II rowsort label-2789
SELECT ALL - 69 AS col1, 57 / - 82 - - 28 + + 16
----
-69
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2790
SELECT DISTINCT 32 * - - CAST( NULL AS SIGNED ) - 95 + - 75 + + SUM( DISTINCT - 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT 32 * - - CAST ( NULL AS INTEGER ) - 95 + - 75 + + SUM ( DISTINCT - 63 )
----
NULL

query I rowsort
SELECT ALL 59 * - - 74
----
4366

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT 78 * + CASE COUNT( - + 20 ) WHEN - 20 / 10 / + COUNT( * ) THEN + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2792
SELECT 78 * + CASE COUNT ( - + 20 ) WHEN - 20 / 10 / + COUNT ( * ) THEN + COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT ALL - 32 * 95 - 69
----
-3109

query II rowsort
SELECT 69 AS col1, - 30
----
69
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2795
SELECT CAST( + + 22 AS SIGNED ) AS col0, 30 AS col0
----
22
30

skipif mysql # not compatible
query II rowsort label-2795
SELECT CAST ( + + 22 AS INTEGER ) AS col0, 30 AS col0
----
22
30

query II rowsort
SELECT ALL - + 28 AS col1, - ( + 19 ) AS col0
----
-28
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT DISTINCT - MAX( 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT - MAX ( 66 ) AS col1
----
-66

query I rowsort
SELECT ( - 29 ) * 32 * 52 AS col0
----
-48256

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT ALL - 99 + - 43 + - + 50 * + COUNT( * ) * + - 36 * 67 * 25 * + 81
----
244214858

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL - 99 + - 43 + - + 50 * + COUNT ( * ) * + - 36 * 67 * 25 * + 81
----
244214858

query II rowsort
SELECT 18, 87 AS col0
----
18
87

query II rowsort
SELECT ALL - - 51 AS col0, - 10 AS col1
----
51
-10

query II rowsort
SELECT + - 82, 45 + - 32 AS col2
----
-82
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT COALESCE ( + - COUNT( * ), + 16 * + COALESCE ( + - COUNT( * ), 87 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2803
SELECT COALESCE ( + - COUNT ( * ), + 16 * + COALESCE ( + - COUNT ( * ), 87 ) ) AS col2
----
-1

query I rowsort
SELECT - 34 - - 32 + - 13
----
-15

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

query I rowsort
SELECT - 8 * - 36 - + - 36 AS col2
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT ALL 78 + CASE - 47 WHEN COUNT( * ) THEN COALESCE ( 49, 54 ) WHEN + 66 - - 67 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL 78 + CASE - 47 WHEN COUNT ( * ) THEN COALESCE ( 49, 54 ) WHEN + 66 - - 67 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 74 - + + 7
----
67

query I rowsort
SELECT ALL ( + 98 ) + 2 AS col1
----
100

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2810
SELECT ALL + + 0, - 77 + + CASE - 49 WHEN + - ( COALESCE ( + - 18, - + 5 ) ) + - + 82 THEN 39 END + + 9 * + COUNT( + 24 ) * - + NULLIF ( 78, SUM( 63 ) * + 67 / 9 + - 53 + - 0 ) + - 2 - + 35 * - COUNT( * ) * - - ( - + CAST( NULL AS DECIMAL ) ) + AVG ( ALL - 40 ) * + + 25 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2810
SELECT ALL + + 0, - 77 + + CASE - 49 WHEN + - ( COALESCE ( + - 18, - + 5 ) ) + - + 82 THEN 39 END + + 9 * + COUNT ( + 24 ) * - + NULLIF ( 78, SUM ( 63 ) * + 67 / 9 + - 53 + - 0 ) + - 2 - + 35 * - COUNT ( * ) * - - ( - + CAST ( NULL AS REAL ) ) + AVG ( ALL - 40 ) * + + 25 AS col2
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2811
SELECT + COALESCE ( - - 76, + CAST( NULL AS SIGNED ) * - - 27 )
----
76

skipif mysql # not compatible
query I rowsort label-2811
SELECT + COALESCE ( - - 76, + CAST ( NULL AS INTEGER ) * - - 27 )
----
76

query II rowsort
SELECT - 69 col2, 17
----
-69
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ALL SUM( ALL 31 ) * - 12
----
-372

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL SUM ( ALL 31 ) * - 12
----
-372

query I rowsort
SELECT ALL + - 6 + + 83 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT - ( + 91 ) - + COALESCE ( - 80, - + NULLIF ( NULLIF ( - COUNT( * ), - - 68 ), - 66 ), + 25 ) * + 65 * + ( 57 ) + - - 51 AS col1
----
296360

skipif mysql # not compatible
query I rowsort label-2815
SELECT - ( + 91 ) - + COALESCE ( - 80, - + NULLIF ( NULLIF ( - COUNT ( * ), - - 68 ), - 66 ), + 25 ) * + 65 * + ( 57 ) + - - 51 AS col1
----
296360

onlyif mysql # aggregate syntax: 
query II rowsort label-2816
SELECT ALL 80 + - ( - 50 ) + - - 42 * 70 * 41 * ( + 16 ) * - COUNT( * ) + 32 - 11 + - 83 AS col2, - CASE + 42 WHEN + 36 * 0 THEN + COUNT( * ) ELSE NULL END * - 28 * 5
----
-1928572
NULL

skipif mysql # not compatible
query II rowsort label-2816
SELECT ALL 80 + - ( - 50 ) + - - 42 * 70 * 41 * ( + 16 ) * - COUNT ( * ) + 32 - 11 + - 83 AS col2, - CASE + 42 WHEN + 36 * 0 THEN + COUNT ( * ) ELSE NULL END * - 28 * 5
----
-1928572
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT - + MIN( - 84 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2817
SELECT - + MIN ( - 84 ) AS col2
----
84

query II rowsort
SELECT 11, + 61 col1
----
11
61

query I rowsort
SELECT - 24 + + + 30 + - + 91 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT - 7 + + + 57 * + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-2820
SELECT - 7 + + + 57 * + COUNT ( * )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2821
SELECT ALL 13 - + CASE - CASE 73 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN - 9 THEN - 42 - + 85 + + 22 END WHEN + 6 + - 22 + NULLIF ( + + ( - COUNT( * ) ), - MAX( ALL 42 ) * COUNT( * ) * + 16 ) + 82 * - 27 * - 66 THEN + - 8 WHEN - 81 THEN NULL END * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL 13 - + CASE - CASE 73 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 9 THEN - 42 - + 85 + + 22 END WHEN + 6 + - 22 + NULLIF ( + + ( - COUNT ( * ) ), - MAX ( ALL 42 ) * COUNT ( * ) * + 16 ) + 82 * - 27 * - 66 THEN + - 8 WHEN - 81 THEN NULL END * - 67
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2822
SELECT ALL - 21 * + COUNT( * ) AS col2, 82
----
-21
82

skipif mysql # not compatible
query II rowsort label-2822
SELECT ALL - 21 * + COUNT ( * ) AS col2, 82
----
-21
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2823
SELECT - CAST( NULL AS SIGNED ) * - 40 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2823
SELECT - CAST ( NULL AS INTEGER ) * - 40 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2824
SELECT ALL MAX( + 13 ), - 18 AS col1
----
13
-18

skipif mysql # not compatible
query II rowsort label-2824
SELECT ALL MAX ( + 13 ), - 18 AS col1
----
13
-18

query II rowsort
SELECT ALL - 30 * + + 92, + 19 * - 61 AS col1
----
-2760
-1159

query I rowsort
SELECT DISTINCT + 76 - + 68 * + + 33 * + 37
----
-82952

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

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

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT + 13 * - ( - COUNT ( * ) ) / + + 49 / COUNT ( 25 )
----
0

query I rowsort
SELECT - ( + 63 ) + - NULLIF ( + - 8, - - 77 ) AS col0
----
-55

query II rowsort
SELECT ( + 65 ) AS col1, + 23 * 84 * 6 AS col0
----
65
11592

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

skipif mysql # not compatible
query I rowsort label-2831
SELECT - 35 + + COUNT ( * ) / - 14 AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2832
SELECT ALL + NULLIF ( - 17, - CAST( + - ( - 31 ) AS SIGNED ) ), + 46 * + COUNT( * ) + - ( 4 ) + - + COALESCE ( 85, + 9 + - + 81 ) + CASE - ( 16 ) WHEN - - 48 THEN 26 + ( + - 16 ) ELSE + 22 + - NULLIF ( 34, - 17 * - 99 * - COUNT( * ) ) END AS col1
----
-17
-55

skipif mysql # not compatible
query II rowsort label-2832
SELECT ALL + NULLIF ( - 17, - CAST ( + - ( - 31 ) AS INTEGER ) ), + 46 * + COUNT ( * ) + - ( 4 ) + - + COALESCE ( 85, + 9 + - + 81 ) + CASE - ( 16 ) WHEN - - 48 THEN 26 + ( + - 16 ) ELSE + 22 + - NULLIF ( 34, - 17 * - 99 * - COUNT ( * ) ) END AS col1
----
-17
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2833
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + - CASE + + 22 WHEN - 45 + - ( CAST( + ( COUNT( * ) ) AS SIGNED ) ) - + - 84 THEN - NULLIF ( - 34, 54 ) WHEN + + COUNT( * ) THEN + 55 ELSE NULL END + - CAST( NULL AS SIGNED ) + + + 82 + 8 * - 28 * 62
----
NULL

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + - CASE + + 22 WHEN - 45 + - ( CAST ( + ( COUNT ( * ) ) AS INTEGER ) ) - + - 84 THEN - NULLIF ( - 34, 54 ) WHEN + + COUNT ( * ) THEN + 55 ELSE NULL END + - CAST ( NULL AS INTEGER ) + + + 82 + 8 * - 28 * 62
----
NULL

query I rowsort
SELECT ALL 34 * 44 + + 54
----
1550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2835
SELECT + CASE + + 9 WHEN - - CAST( - 63 AS DECIMAL ) THEN NULL WHEN - - 76 THEN - 84 * + 11 * - 50 + - 79 * + - 84 / + CAST( NULL AS SIGNED ) + - COUNT( * ) END + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT + CASE + + 9 WHEN - - CAST ( - 63 AS REAL ) THEN NULL WHEN - - 76 THEN - 84 * + 11 * - 50 + - 79 * + - 84 / + CAST ( NULL AS INTEGER ) + - COUNT ( * ) END + 64
----
NULL

query I rowsort
SELECT ALL + 91 * 91 + - 4 * - ( - 85 )
----
7941

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

skipif mysql # not compatible
query I rowsort label-2837
SELECT 37 * + COUNT ( * ) + - COUNT ( * ) AS col0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2838
SELECT ALL - + COUNT( - + 23 ) * + - 97 * - 21 * - SUM( ALL + - 54 ) + + 34 + - 36 DIV + + 35 + + - 15 AS col2
----
-109980

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL - + COUNT ( - + 23 ) * + - 97 * - 21 * - SUM ( ALL + - 54 ) + + 34 + - 36 / + + 35 + + - 15 AS col2
----
-109980

query I rowsort
SELECT - 34 * 92 + 12 + + - 89 * + - 14 * - 40 * + - 86 * - 70
----
-300039916

query I rowsort
SELECT + - 62 * - 18 - 1 * 67 AS col2
----
1049

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT + - MIN( 12 ) + - - ( - + 42 )
----
-54

skipif mysql # not compatible
query I rowsort label-2841
SELECT + - MIN ( 12 ) + - - ( - + 42 )
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2842
SELECT ALL + 97 * CAST( NULL AS SIGNED ) - 46 + + 99 / 59 + 67 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL + 97 * CAST ( NULL AS INTEGER ) - 46 + + 99 / 59 + 67 col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL + CAST ( NULL AS INTEGER ) / + - 11
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2844
SELECT ALL - 47 * - CAST( NULL AS SIGNED ) + + - AVG ( DISTINCT + + 79 ) + - - 59 AS col0, - 90 + - COUNT( * )
----
NULL
-91

skipif mysql # not compatible
query II rowsort label-2844
SELECT ALL - 47 * - CAST ( NULL AS INTEGER ) + + - AVG ( DISTINCT + + 79 ) + - - 59 AS col0, - 90 + - COUNT ( * )
----
NULL
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT DISTINCT - 85 * + SUM( DISTINCT + 66 ) * - - 20
----
-112200

skipif mysql # not compatible
query I rowsort label-2845
SELECT DISTINCT - 85 * + SUM ( DISTINCT + 66 ) * - - 20
----
-112200

onlyif mysql # aggregate syntax: 
query II rowsort label-2846
SELECT ALL + + CASE 1 WHEN + + COUNT( * ) / - 94 THEN - + 28 END col1, + 16 + 78
----
NULL
94

skipif mysql # not compatible
query II rowsort label-2846
SELECT ALL + + CASE 1 WHEN + + COUNT ( * ) / - 94 THEN - + 28 END col1, + 16 + 78
----
NULL
94

query I rowsort
SELECT + 95 + 1
----
96

query I rowsort
SELECT ALL 50 * - - 14 + + - 76
----
624

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2850
SELECT + SUM( - 75 ) AS col2, + COUNT( ALL 91 ) col1
----
-75
1

skipif mysql # not compatible
query II rowsort label-2850
SELECT + SUM ( - 75 ) AS col2, + COUNT ( ALL 91 ) col1
----
-75
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT + + 71 + - 66 + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-2851
SELECT + + 71 + - 66 + COUNT ( * )
----
6

query I rowsort
SELECT + NULLIF ( - + 42, + 14 )
----
-42

query I rowsort
SELECT DISTINCT 87 * + 60 AS col1
----
5220

query I rowsort
SELECT DISTINCT 38 * - 87 - NULLIF ( + 38, + 87 )
----
-3344

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT COUNT( ALL + ( - 10 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2855
SELECT COUNT ( ALL + ( - 10 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT DISTINCT CASE - + COUNT( * ) WHEN + 13 THEN NULL WHEN ( - 72 ) THEN - - 66 * 90 WHEN COUNT( * ) + 92 THEN 27 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT CASE - + COUNT ( * ) WHEN + 13 THEN NULL WHEN ( - 72 ) THEN - - 66 * 90 WHEN COUNT ( * ) + 92 THEN 27 ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 68, - - 2 )
----
-68

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

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

query I rowsort
SELECT - 95 + - 97 AS col1
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT - 71 + + 16 + 1 * 81 * - 63 * - - COUNT( * ) * + COUNT( * ) * MIN( ALL + 52 )
----
-265411

skipif mysql # not compatible
query I rowsort label-2860
SELECT - 71 + + 16 + 1 * 81 * - 63 * - - COUNT ( * ) * + COUNT ( * ) * MIN ( ALL + 52 )
----
-265411

query I rowsort
SELECT ALL CASE 36 WHEN - + 31 THEN + + 63 END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2863
SELECT + COALESCE ( + 48, + 83 * + 74 + - 83 + - - CAST( NULL AS SIGNED ) ) - - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-2863
SELECT + COALESCE ( + 48, + 83 * + 74 + - 83 + - - CAST ( NULL AS INTEGER ) ) - - COUNT ( * )
----
49

query I rowsort
SELECT - 23 * 85 * - ( 18 ) * 92 AS col0
----
3237480

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

query I rowsort
SELECT ALL - 27 * - 0
----
0

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

skipif mysql # not compatible
query I rowsort label-2867
SELECT - 11 / - + 30
----
0

query I rowsort
SELECT ALL 17 + 62 + + 53
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2869
SELECT DISTINCT CAST( NULL AS SIGNED ), 21 + - 89 AS col1
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-2869
SELECT DISTINCT CAST ( NULL AS INTEGER ), 21 + - 89 AS col1
----
NULL
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2870
SELECT 20 AS col0, - SUM( DISTINCT + CAST( - + 26 AS SIGNED ) ) AS col2
----
20
26

skipif mysql # not compatible
query II rowsort label-2870
SELECT 20 AS col0, - SUM ( DISTINCT + CAST ( - + 26 AS INTEGER ) ) AS col2
----
20
26

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2872
SELECT ALL + + 15 * - CAST( - 89 AS SIGNED )
----
1335

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL + + 15 * - CAST ( - 89 AS INTEGER )
----
1335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2873
SELECT 4 AS col1, - CAST( - - COUNT( * ) AS SIGNED ) AS col1
----
4
-1

skipif mysql # not compatible
query II rowsort label-2873
SELECT 4 AS col1, - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1
----
4
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2874
SELECT ALL - AVG ( - 29 ) + + COALESCE ( + NULLIF ( + - 97, + 46 * + + 25 * + + 3 ), 99 * + + 76 ) + CAST( NULL AS SIGNED ) * 80 * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL - AVG ( - 29 ) + + COALESCE ( + NULLIF ( + - 97, + 46 * + + 25 * + + 3 ), 99 * + + 76 ) + CAST ( NULL AS INTEGER ) * 80 * 83
----
NULL

query I rowsort
SELECT DISTINCT + + 40 + + 26
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT ALL + COUNT( * ) + + 56 * + 46 AS col2
----
2577

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL + COUNT ( * ) + + 56 * + 46 AS col2
----
2577

query II rowsort
SELECT DISTINCT - 32, - 29 AS col1
----
-32
-29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT ALL - NULLIF ( - 90, - 1 ) * + - 76 * COUNT( * )
----
-6840

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL - NULLIF ( - 90, - 1 ) * + - 76 * COUNT ( * )
----
-6840

query I rowsort
SELECT ALL - 95 - - 55
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT - COUNT( * ) - - 15
----
14

skipif mysql # not compatible
query I rowsort label-2881
SELECT - COUNT ( * ) - - 15
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT 3 * - COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2882
SELECT 3 * - COUNT ( * ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT - CASE - 66 WHEN - - SUM( DISTINCT - 50 ) - 16 + - 0 THEN NULL WHEN + COUNT( * ) + 7 THEN 28 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT - CASE - 66 WHEN - - SUM ( DISTINCT - 50 ) - 16 + - 0 THEN NULL WHEN + COUNT ( * ) + 7 THEN 28 END AS col0
----
NULL

query I rowsort
SELECT - 45 + + 98
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2885
SELECT + 39 * CAST( NULL AS SIGNED ) * - 31 + - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT + 39 * CAST ( NULL AS INTEGER ) * - 31 + - 64 AS col2
----
NULL

query II rowsort
SELECT 79 * CASE WHEN NOT NULL NOT BETWEEN - 65 AND NULL THEN - - 75 END / 66 + + 83 AS col2, - 20
----
NULL
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT DISTINCT - 76 - - + NULLIF ( + MIN( ALL 34 ), - 6 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT - 76 - - + NULLIF ( + MIN ( ALL 34 ), - 6 ) AS col0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2888
SELECT 98 - + MAX( + 65 ) DIV - 15 AS col1
----
102

skipif mysql # not compatible
query I rowsort label-2888
SELECT 98 - + MAX ( + 65 ) / - 15 AS col1
----
102

query I rowsort
SELECT ( - 36 ) + 56 AS col2
----
20

query I rowsort
SELECT ALL 12 * + + ( + 22 )
----
264

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

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

query I rowsort
SELECT 4 * - 35 AS col2
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT DISTINCT 41 + - + MIN( DISTINCT + + 63 ) * + COUNT( * ) + - MIN( ALL 90 ) + - - 35
----
-77

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT 41 + - + MIN ( DISTINCT + + 63 ) * + COUNT ( * ) + - MIN ( ALL 90 ) + - - 35
----
-77

query I rowsort
SELECT 42 + + 77 col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT ALL COUNT( * ) + + - 89 + - + MIN( DISTINCT - + 29 ) * - 52 + + + 86 + - 72 AS col0
----
-1582

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL COUNT ( * ) + + - 89 + - + MIN ( DISTINCT - + 29 ) * - 52 + + + 86 + - 72 AS col0
----
-1582

query I rowsort
SELECT 80 + - + ( 95 ) AS col0
----
-15

query I rowsort
SELECT - 14 + 55 AS col0
----
41

query I rowsort
SELECT - - CASE + 17 WHEN + 13 THEN + NULLIF ( 0, ( - 21 ) * - 46 + + - 1 * - - 79 ) * - 58 * + 82 * + 60 + 45 ELSE NULL END * - ( + 57 ) + + - 34 - ( - 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT ALL + SUM( DISTINCT + - 7 ) + - NULLIF ( 96, + + 74 )
----
-103

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL + SUM ( DISTINCT + - 7 ) + - NULLIF ( 96, + + 74 )
----
-103

query I rowsort
SELECT + 54 * + 32 + 35
----
1763

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT COUNT( * ) * + 16 - - + COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-2901
SELECT COUNT ( * ) * + 16 - - + COUNT ( * ) AS col1
----
17

query I rowsort
SELECT ALL - 15 * - 12 - 45 + + - 66 * - 20
----
1455

query II rowsort
SELECT ( + - 13 ) col0, CASE - 57 WHEN - CASE 4 WHEN 45 * + 76 THEN - 52 ELSE + 10 + + - 37 END THEN - - 30 * + 99 END + + + 0 * + 2
----
-13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT + COUNT( + + 60 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2904
SELECT + COUNT ( + + 60 ) col1
----
1

query I rowsort
SELECT + 21 * - - 82 + + 77 AS col0
----
1799

onlyif mysql # aggregate syntax: 
query II rowsort label-2906
SELECT ALL - SUM( ALL 98 ) col2, COUNT( * ) + 83 col2
----
-98
84

skipif mysql # not compatible
query II rowsort label-2906
SELECT ALL - SUM ( ALL 98 ) col2, COUNT ( * ) + 83 col2
----
-98
84

query I rowsort
SELECT ALL - 0 * 14
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT MIN( ALL + 42 ) * 95
----
3990

skipif mysql # not compatible
query I rowsort label-2908
SELECT MIN ( ALL + 42 ) * 95
----
3990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2909
SELECT ALL - + CAST( - + 0 AS SIGNED ) * 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL - + CAST ( - + 0 AS INTEGER ) * 38 AS col1
----
0

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

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

query I rowsort
SELECT ALL - 71 * + - 53 AS col1
----
3763

query I rowsort
SELECT 72 * 17 * + 24
----
29376

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT 8 + + - 54 * - COUNT( 46 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2913
SELECT 8 + + - 54 * - COUNT ( 46 ) AS col2
----
62

query II rowsort
SELECT 15, + 65 AS col2
----
15
65

query I rowsort
SELECT 14 * + 78 col2
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ALL MIN( 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL MIN ( 38 ) AS col0
----
38

query I rowsort
SELECT DISTINCT - COALESCE ( - 14, + 41 * + + 27 - 52 ) * 59
----
826

query I rowsort
SELECT 98 * + 91
----
8918

query I rowsort
SELECT 90 * + 54 * - 71 + + 95 col0
----
-344965

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2920
SELECT DISTINCT CASE - 34 WHEN - + 41 THEN NULL WHEN + - 46 + - - 37 THEN + 68 ELSE - + 58 - - COUNT( * ) + + ( + 88 ) * - - 26 END DIV + 29 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT CASE - 34 WHEN - + 41 THEN NULL WHEN + - 46 + - - 37 THEN + 68 ELSE - + 58 - - COUNT ( * ) + + ( + 88 ) * - - 26 END / + 29 AS col1
----
76

query I rowsort
SELECT ALL 58 + + + 16 AS col2
----
74

query I rowsort
SELECT DISTINCT 17 * - + 47 AS col1
----
-799

onlyif mysql # aggregate syntax: 
query II rowsort label-2923
SELECT 69 AS col1, CASE - 35 WHEN - + 7 THEN + NULLIF ( - 35, + 17 + 27 ) WHEN - - 20 * 2 + 2 + - SUM( - + 29 ) + - + 57 * 77 * + 62 * + 53 THEN - + COUNT( * ) ELSE NULL END
----
69
NULL

skipif mysql # not compatible
query II rowsort label-2923
SELECT 69 AS col1, CASE - 35 WHEN - + 7 THEN + NULLIF ( - 35, + 17 + 27 ) WHEN - - 20 * 2 + 2 + - SUM ( - + 29 ) + - + 57 * 77 * + 62 * + 53 THEN - + COUNT ( * ) ELSE NULL END
----
69
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2924
SELECT COALESCE ( + 93, 52 * 34 + 68, + 49, - - ( - CAST( NULL AS SIGNED ) ) ) + + + 9 AS col1
----
102

skipif mysql # not compatible
query I rowsort label-2924
SELECT COALESCE ( + 93, 52 * 34 + 68, + 49, - - ( - CAST ( NULL AS INTEGER ) ) ) + + + 9 AS col1
----
102

query I rowsort
SELECT ALL 22 + + 25 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT + 46 * + MIN( 66 )
----
3036

skipif mysql # not compatible
query I rowsort label-2926
SELECT + 46 * + MIN ( 66 )
----
3036

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT - CASE - 54 WHEN + 87 * + COALESCE ( 20 * - 81, 77 ) THEN NULL WHEN COUNT( * ) THEN + 78 + - 77 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2927
SELECT - CASE - 54 WHEN + 87 * + COALESCE ( 20 * - 81, 77 ) THEN NULL WHEN COUNT ( * ) THEN + 78 + - 77 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT - MAX( - 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2928
SELECT - MAX ( - 89 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT ALL + 92 + COALESCE ( 15, 78 * + ( + COUNT( DISTINCT + 82 ) ) )
----
107

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL + 92 + COALESCE ( 15, 78 * + ( + COUNT ( DISTINCT + 82 ) ) )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT ALL 10 - - NULLIF ( - ( 72 ), COUNT( * ) ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL 10 - - NULLIF ( - ( 72 ), COUNT ( * ) ) AS col2
----
-62

query I rowsort
SELECT ALL 68 - - 60 AS col0
----
128

query I rowsort
SELECT DISTINCT - 74 - + 33 * 33
----
-1163

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT + MAX( DISTINCT 37 ) * 88 col1
----
3256

skipif mysql # not compatible
query I rowsort label-2933
SELECT + MAX ( DISTINCT 37 ) * 88 col1
----
3256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2934
SELECT CASE - 92 WHEN - CAST( 26 AS DECIMAL ) * + NULLIF ( - 47, - COUNT( * ) / + 40 + + COUNT( * ) * + 30 ) THEN 41 WHEN - COUNT( * ) * - CAST( - 60 * COUNT( * ) AS SIGNED ) THEN 14 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2934
SELECT CASE - 92 WHEN - CAST ( 26 AS REAL ) * + NULLIF ( - 47, - COUNT ( * ) / + 40 + + COUNT ( * ) * + 30 ) THEN 41 WHEN - COUNT ( * ) * - CAST ( - 60 * COUNT ( * ) AS INTEGER ) THEN 14 END AS col1
----
NULL

query I rowsort
SELECT + COALESCE ( 56, - ( - 34 ) ) AS col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2936
SELECT CASE + 93 WHEN 83 THEN NULL ELSE - COUNT( * ) DIV 98 + - 43 END AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-2936
SELECT CASE + 93 WHEN 83 THEN NULL ELSE - COUNT ( * ) / 98 + - 43 END AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT CASE 34 WHEN ( - 92 ) THEN 44 WHEN - COUNT( ALL - 94 ) + + 75 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT CASE 34 WHEN ( - 92 ) THEN 44 WHEN - COUNT ( ALL - 94 ) + + 75 THEN NULL END AS col1
----
NULL

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

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

query I rowsort
SELECT - NULLIF ( - 4, + 15 ) * 33
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT + CASE - 45 WHEN - 43 / 3 - 27 THEN 94 * - CASE 61 WHEN 27 - + 92 * + COUNT( * ) THEN - 42 WHEN - COUNT( * ) / - 20 THEN NULL END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT + CASE - 45 WHEN - 43 / 3 - 27 THEN 94 * - CASE 61 WHEN 27 - + 92 * + COUNT ( * ) THEN - 42 WHEN - COUNT ( * ) / - 20 THEN NULL END END AS col1
----
NULL

query I rowsort
SELECT COALESCE ( + 70, 95 ) AS col0
----
70

query I rowsort
SELECT DISTINCT 44 * + 53 AS col1
----
2332

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT + CASE COUNT( * ) WHEN - 77 + 46 * + 31 THEN - 25 * 11 - + MAX( - 46 ) END * - 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2943
SELECT + CASE COUNT ( * ) WHEN - 77 + 46 * + 31 THEN - 25 * 11 - + MAX ( - 46 ) END * - 50 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2944
SELECT ALL + NULLIF ( - CAST( 78 AS SIGNED ), AVG ( 52 ) + 44 ) * + 81
----
-6318

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL + NULLIF ( - CAST ( 78 AS INTEGER ), AVG ( 52 ) + 44 ) * + 81
----
-6318

query I rowsort
SELECT + ( - 31 ) - - 42 col0
----
11

query I rowsort
SELECT DISTINCT 8 * - 20
----
-160

query I rowsort
SELECT NULLIF ( 59, + 71 ) col1
----
59

query I rowsort
SELECT ALL 43 * 71
----
3053

query I rowsort
SELECT + 25 + + 93 AS col1
----
118

query I rowsort
SELECT - 30 * 5 col0
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2951
SELECT ALL + ( CAST( - 59 AS SIGNED ) )
----
-59

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL + ( CAST ( - 59 AS INTEGER ) )
----
-59

query I rowsort
SELECT ALL + 13 * 1 + 48
----
61

query I rowsort
SELECT 4 * - COALESCE ( 3, 1 ) + + 62 * + 65 AS col1
----
4018

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT ALL 81 * 16 + COUNT( * ) col0
----
1297

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL 81 * 16 + COUNT ( * ) col0
----
1297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2955
SELECT DISTINCT + COALESCE ( - MAX( DISTINCT 38 ), 67 + + 64, - 91 * - NULLIF ( 51, + 86 * MAX( 36 ) ), + 14 DIV 91 + NULLIF ( 71, 68 ) ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT + COALESCE ( - MAX ( DISTINCT 38 ), 67 + + 64, - 91 * - NULLIF ( 51, + 86 * MAX ( 36 ) ), + 14 / 91 + NULLIF ( 71, 68 ) ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT - 71 + - COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-2956
SELECT - 71 + - COUNT ( * ) AS col2
----
-72

query I rowsort
SELECT ALL + ( + 69 ) * NULLIF ( 0 * 70, 24 ) + 57 AS col1
----
57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT ALL + COUNT( * ) + - 84 * 85 AS col2
----
-7139

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL + COUNT ( * ) + - 84 * 85 AS col2
----
-7139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2960
SELECT - 64 - - CASE + 36 WHEN + CAST( NULL AS SIGNED ) - - 13 THEN NULL ELSE NULLIF ( + CASE - 8 WHEN COUNT( * ) THEN COUNT( * ) END, 77 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT - 64 - - CASE + 36 WHEN + CAST ( NULL AS INTEGER ) - - 13 THEN NULL ELSE NULLIF ( + CASE - 8 WHEN COUNT ( * ) THEN COUNT ( * ) END, 77 ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 7, 40 + - 65 )
----
7

query I rowsort
SELECT DISTINCT + ( COALESCE ( - 98, 63 ) ) + - 77
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT ALL - MAX( + ( - 91 ) ) + 56 * + 7
----
483

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL - MAX ( + ( - 91 ) ) + 56 * + 7
----
483

query I rowsort
SELECT ALL + 5 + 8
----
13

query I rowsort
SELECT - 28 + + 64 * - 2 AS col0
----
-156

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

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

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

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

query I rowsort
SELECT - 5 + 20
----
15

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

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

query I rowsort
SELECT - + ( - 53 ) + 0
----
53

query I rowsort
SELECT ALL + - 17 - 22
----
-39

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

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

query I rowsort
SELECT ALL + 59 - 87 AS col2
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-2974
SELECT DISTINCT + 1 DIV - 14
----
0

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT + 1 / - 14
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2975
SELECT DISTINCT CAST( - SUM( 38 ) AS SIGNED ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT CAST ( - SUM ( 38 ) AS INTEGER ) AS col2
----
-38

query I rowsort
SELECT + 23 + - 40 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT - SUM( 37 ) * - 75 AS col0
----
2775

skipif mysql # not compatible
query I rowsort label-2977
SELECT - SUM ( 37 ) * - 75 AS col0
----
2775

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT + NULLIF ( - MAX( DISTINCT - 91 ), 30 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-2978
SELECT + NULLIF ( - MAX ( DISTINCT - 91 ), 30 ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT - COUNT( - 66 ) * 32
----
-32

skipif mysql # not compatible
query I rowsort label-2979
SELECT - COUNT ( - 66 ) * 32
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2980
SELECT DISTINCT 24 * + MAX( DISTINCT CASE 17 WHEN 23 + 22 * ( CAST( NULL AS SIGNED ) ) THEN - ( - 10 ) ELSE NULL END * + ( 31 ) + + ( 89 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT 24 * + MAX ( DISTINCT CASE 17 WHEN 23 + 22 * ( CAST ( NULL AS INTEGER ) ) THEN - ( - 10 ) ELSE NULL END * + ( 31 ) + + ( 89 ) ) AS col0
----
NULL

query I rowsort
SELECT - + 2 + - 47 AS col0
----
-49

query I rowsort
SELECT ALL - 33 * 60
----
-1980

query I rowsort
SELECT + - 65 * - 21 + + 22 AS col2
----
1387

query I rowsort
SELECT ALL 51 * 63 AS col1
----
3213

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT 36 * NULLIF ( CASE - 11 WHEN - 75 - COUNT( * ) THEN + 97 ELSE NULL END + - 20, + COUNT( - 15 ) ) + - 52 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT 36 * NULLIF ( CASE - 11 WHEN - 75 - COUNT ( * ) THEN + 97 ELSE NULL END + - 20, + COUNT ( - 15 ) ) + - 52 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2986
SELECT DISTINCT 74 DIV - 57 + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT 74 / - 57 + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2987
SELECT ALL - 15 / 60 + + CAST( NULL AS SIGNED ) / 15 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL - 15 / 60 + + CAST ( NULL AS INTEGER ) / 15 col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2988
SELECT + NULLIF ( - COUNT ( * ), - 86 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2989
SELECT + ( - 5 ) DIV - ( - 74 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2989
SELECT + ( - 5 ) / - ( - 74 ) AS col0
----
0

query I rowsort
SELECT - 58 * + - 2 + + 52
----
168

query I rowsort
SELECT + ( - 78 ) * 38 AS col2
----
-2964

query I rowsort
SELECT ( + COALESCE ( + 94, 94 ) )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2993
SELECT ALL - COALESCE ( + AVG ( + 68 ), - 53 ) / + CASE + CAST( + ( + COUNT( * ) ) AS SIGNED ) * - 83 WHEN + 61 + + 81 THEN 42 + - 63 WHEN CASE 57 WHEN 6 THEN SUM( DISTINCT 61 ) + + 10 END THEN NULL WHEN + 2 THEN + 27 * + 77 END + 6 * AVG ( - 86 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL - COALESCE ( + AVG ( + 68 ), - 53 ) / + CASE + CAST ( + ( + COUNT ( * ) ) AS INTEGER ) * - 83 WHEN + 61 + + 81 THEN 42 + - 63 WHEN CASE 57 WHEN 6 THEN SUM ( DISTINCT 61 ) + + 10 END THEN NULL WHEN + 2 THEN + 27 * + 77 END + 6 * AVG ( - 86 ) col2
----
NULL

query I rowsort
SELECT 99 * 51 + + 9
----
5058

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT ALL ( + - 80 ) * - CASE - 49 + COUNT( * ) WHEN - 55 THEN NULL WHEN ( - MAX( ALL 96 ) ) THEN MAX( DISTINCT - 80 ) + + 32 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL ( + - 80 ) * - CASE - 49 + COUNT ( * ) WHEN - 55 THEN NULL WHEN ( - MAX ( ALL 96 ) ) THEN MAX ( DISTINCT - 80 ) + + 32 END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT ALL - 2 * 19 + + COUNT( * ) * + 88
----
50

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL - 2 * 19 + + COUNT ( * ) * + 88
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2998
SELECT DISTINCT NULLIF ( 71, 95 + 37 * + 37 ) DIV - 58
----
-1

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT NULLIF ( 71, 95 + 37 * + 37 ) / - 58
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2999
SELECT DISTINCT + COUNT( ALL 7 ) * CAST( + 59 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT + COUNT ( ALL 7 ) * CAST ( + 59 AS INTEGER )
----
59

query I rowsort
SELECT DISTINCT - 27 * + 37 AS col2
----
-999

query I rowsort
SELECT CASE 27 WHEN - 77 * 7 + - 60 THEN 43 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT - 41 * + - 48 AS col0
----
1968

query I rowsort
SELECT ( - ( - 17 ) ) * - 10 AS col1
----
-170

query I rowsort
SELECT 67 + - 11 + - 33
----
23

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3007
SELECT ALL + 72 * - - 55 DIV 55
----
72

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL + 72 * - - 55 / 55
----
72

query I rowsort
SELECT + 16 + - - 83 * - 22
----
-1810

query I rowsort
SELECT ALL + COALESCE ( + 54, + 5, - 52 ) - 78
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3010
SELECT COUNT( * ) * - 78 DIV 37 - 22 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-3010
SELECT COUNT ( * ) * - 78 / 37 - 22 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT NULLIF ( COUNT( * ), - ( + COALESCE ( - 59, + COALESCE ( - ( + 21 ), 34 + 29 * COUNT( * ), + 40 * - CASE NULLIF ( + MIN( ALL - 45 ), + 6 ) WHEN 49 THEN NULL WHEN 46 * + 56 THEN NULL ELSE 72 END ) + - 89 * + COUNT( * ), - 88 ) ) ) * - 80 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-3011
SELECT NULLIF ( COUNT ( * ), - ( + COALESCE ( - 59, + COALESCE ( - ( + 21 ), 34 + 29 * COUNT ( * ), + 40 * - CASE NULLIF ( + MIN ( ALL - 45 ), + 6 ) WHEN 49 THEN NULL WHEN 46 * + 56 THEN NULL ELSE 72 END ) + - 89 * + COUNT ( * ), - 88 ) ) ) * - 80 AS col1
----
-80

query I rowsort
SELECT DISTINCT + 95 * + 54
----
5130

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT DISTINCT + 78 * MIN( ALL + 30 ) AS col1
----
2340

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT + 78 * MIN ( ALL + 30 ) AS col1
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT COUNT( ALL - 89 ) - - 10 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-3014
SELECT COUNT ( ALL - 89 ) - - 10 AS col1
----
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT ALL CASE + + 65 WHEN 98 THEN NULL WHEN - 81 + 22 THEN - 4 * - ( - 63 ) ELSE NULL END / + COUNT( DISTINCT + 0 * 13 + + 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL CASE + + 65 WHEN 98 THEN NULL WHEN - 81 + 22 THEN - 4 * - ( - 63 ) ELSE NULL END / + COUNT ( DISTINCT + 0 * 13 + + 64 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3017
SELECT ALL - 96 + - + 6 DIV - ( 30 + - COUNT( * ) )
----
-96

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL - 96 + - + 6 / - ( 30 + - COUNT ( * ) )
----
-96

query I rowsort
SELECT + 32 * + 63
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT SUM( - - 34 ) * - 65
----
-2210

skipif mysql # not compatible
query I rowsort label-3019
SELECT SUM ( - - 34 ) * - 65
----
-2210

query I rowsort
SELECT ALL + - 84 + + 88 * 55
----
4756

onlyif mysql # DIV for integer division: 
query I rowsort label-3021
SELECT + + 3 DIV + - ( + 39 ) - 45 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-3021
SELECT + + 3 / + - ( + 39 ) - 45 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT - COALESCE ( - 91, + COUNT( * ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-3022
SELECT - COALESCE ( - 91, + COUNT ( * ) ) AS col1
----
91

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

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

query I rowsort
SELECT ALL 7 + - - 65 + - - 97 - ( - 4 ) AS col2
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT ALL ( - COUNT( 51 ) ) * 86
----
-86

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL ( - COUNT ( 51 ) ) * 86
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT ALL + COUNT( * ) + NULLIF ( ( + 16 ), 35 - - 3 ) * + COUNT( 85 )
----
17

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL + COUNT ( * ) + NULLIF ( ( + 16 ), 35 - - 3 ) * + COUNT ( 85 )
----
17

query II rowsort
SELECT DISTINCT - 94, 38 - + 30 AS col2
----
-94
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3028
SELECT ALL MIN( DISTINCT 77 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL MIN ( DISTINCT 77 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3030
SELECT ALL CAST( NULL AS SIGNED ) - NULLIF ( + - CASE ( ( - 29 ) ) WHEN NULLIF ( AVG ( + 12 ), ( + 20 ) ) + - 35 THEN 23 - - 15 ELSE NULL END, 22 + + 60 / - 44 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL CAST ( NULL AS INTEGER ) - NULLIF ( + - CASE ( ( - 29 ) ) WHEN NULLIF ( AVG ( + 12 ), ( + 20 ) ) + - 35 THEN 23 - - 15 ELSE NULL END, 22 + + 60 / - 44 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3031
SELECT 50 AS col0, MIN( DISTINCT + - 49 ) AS col2
----
50
-49

skipif mysql # not compatible
query II rowsort label-3031
SELECT 50 AS col0, MIN ( DISTINCT + - 49 ) AS col2
----
50
-49

query II rowsort
SELECT 85 AS col2, - 69
----
85
-69

query I rowsort
SELECT 38 * + 78
----
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT - ( COUNT( * ) ) * + 19 + - 13 * + 84 AS col1
----
-1111

skipif mysql # not compatible
query I rowsort label-3034
SELECT - ( COUNT ( * ) ) * + 19 + - 13 * + 84 AS col1
----
-1111

query I rowsort
SELECT ALL 93 - NULLIF ( - 20, + 60 * 90 + - 5 )
----
113

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

query I rowsort
SELECT 51 + - 39 col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3038
SELECT ALL 63 DIV - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL 63 / - 97 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3039
SELECT 57 DIV - + 93 DIV + NULLIF ( + COUNT( * ), NULLIF ( + 22, + 67 ) * 34 - - 81 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3039
SELECT 57 / - + 93 / + NULLIF ( + COUNT ( * ), NULLIF ( + 22, + 67 ) * 34 - - 81 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT ALL COALESCE ( + COUNT( * ), - - 92 * + 95, + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL COALESCE ( + COUNT ( * ), - - 92 * + 95, + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT ALL - SUM( - 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL - SUM ( - 34 ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT + 31 * ( COUNT( * ) ) * 70
----
2170

skipif mysql # not compatible
query I rowsort label-3042
SELECT + 31 * ( COUNT ( * ) ) * 70
----
2170

query II rowsort
SELECT + 61 AS col0, 76
----
61
76

query I rowsort
SELECT + ( 99 ) + + - 23 col2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3045
SELECT 72 DIV + 39 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3045
SELECT 72 / + 39 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3046
SELECT 31 + + 5 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT 31 + + 5 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 18 + + 19 * - 43 AS col1
----
-799

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

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

query I rowsort
SELECT - 71 + 26 + + 7 - + 54 AS col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3050
SELECT ALL - 8, - CAST( + 99 AS SIGNED ) AS col0
----
-8
-99

skipif mysql # not compatible
query II rowsort label-3050
SELECT ALL - 8, - CAST ( + 99 AS INTEGER ) AS col0
----
-8
-99

query I rowsort
SELECT DISTINCT - + 24 + 10 col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT DISTINCT 68 + - + 38 * COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT 68 + - + 38 * COUNT ( * )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT DISTINCT - 83 * COUNT( ALL - 38 ) + 24
----
-59

skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT - 83 * COUNT ( ALL - 38 ) + 24
----
-59

query I rowsort
SELECT ALL + + 49 + + 44
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT DISTINCT - + COUNT( - 69 ) + + 99 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT - + COUNT ( - 69 ) + + 99 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT + COUNT( * ) + + 23 + 74 * + 15 * 21 AS col2
----
23334

skipif mysql # not compatible
query I rowsort label-3056
SELECT + COUNT ( * ) + + 23 + 74 * + 15 * 21 AS col2
----
23334

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL SUM( DISTINCT - - 41 ) col0
----
41

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL SUM ( DISTINCT - - 41 ) col0
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT COUNT( ALL + 51 ) + + 86 - + 82 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3059
SELECT COUNT ( ALL + 51 ) + + 86 - + 82 AS col0
----
5

query I rowsort
SELECT - 96 + - 99 - - - 38 + 94 * + 77
----
7005

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT SUM( DISTINCT + 10 ) - + 27 * 27
----
-719

skipif mysql # not compatible
query I rowsort label-3061
SELECT SUM ( DISTINCT + 10 ) - + 27 * 27
----
-719

query I rowsort
SELECT ALL - 14 * - - 62 + + 96 * - 9 col2
----
-1732

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3064
SELECT DISTINCT - 70 * + 28 + - CAST( NULL AS SIGNED ) + + COALESCE ( - 79, + 85 ) / - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3064
SELECT DISTINCT - 70 * + 28 + - CAST ( NULL AS INTEGER ) + + COALESCE ( - 79, + 85 ) / - 6
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3065
SELECT COALESCE ( - + 33, 23 * 50 + + COALESCE ( + 19, - ( - ( + CASE - 76 WHEN 76 THEN 32 DIV 13 END ) ), 64 ) ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-3065
SELECT COALESCE ( - + 33, 23 * 50 + + COALESCE ( + 19, - ( - ( + CASE - 76 WHEN 76 THEN 32 / 13 END ) ), 64 ) ) AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3066
SELECT - NULLIF ( + - 15, ( - COALESCE ( 4, 94 * 22 + + ( - 56 + - COUNT( * ) * 99 ) * 65, 0 + + CASE + 11 WHEN + 36 THEN ( 13 ) DIV + 25 WHEN - 18 - 47 THEN CASE - CAST( NULL AS DECIMAL ) WHEN 11 THEN - 9 * 37 ELSE NULL END WHEN 70 * 18 THEN - 52 * 61 ELSE NULL END * ( + CASE - CAST( 29 AS SIGNED ) WHEN 34 + - MIN( 51 ) THEN NULL WHEN + 78 + + ( 22 ) THEN - 91 + 19 WHEN 6 + + CAST( NULL AS SIGNED ) DIV - 91 THEN NULL END ), 34 * - 4 ) ) ) DIV 91 + + COUNT( * ) * + 99 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-3066
SELECT - NULLIF ( + - 15, ( - COALESCE ( 4, 94 * 22 + + ( - 56 + - COUNT ( * ) * 99 ) * 65, 0 + + CASE + 11 WHEN + 36 THEN ( 13 ) / + 25 WHEN - 18 - 47 THEN CASE - CAST ( NULL AS REAL ) WHEN 11 THEN - 9 * 37 ELSE NULL END WHEN 70 * 18 THEN - 52 * 61 ELSE NULL END * ( + CASE - CAST ( 29 AS INTEGER ) WHEN 34 + - MIN ( 51 ) THEN NULL WHEN + 78 + + ( 22 ) THEN - 91 + 19 WHEN 6 + + CAST ( NULL AS INTEGER ) / - 91 THEN NULL END ), 34 * - 4 ) ) ) / 91 + + COUNT ( * ) * + 99 AS col1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3067
SELECT ALL - 82 DIV + 68 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL - 82 / + 68 AS col0
----
-1

query I rowsort
SELECT - 42 + + 67 + - 20 AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3069
SELECT - 53 / COUNT( - 49 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3069
SELECT - 53 / COUNT ( - 49 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3070
SELECT - 29 * - - MAX( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3070
SELECT - 29 * - - MAX ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT 58 * + - 8 * + 60 AS col2
----
-27840

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT DISTINCT + MAX( DISTINCT + 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT + MAX ( DISTINCT + 56 ) AS col1
----
56

query I rowsort
SELECT - 99 * 2
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT DISTINCT 11 * - - MIN( ALL 55 ) AS col0
----
605

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT 11 * - - MIN ( ALL 55 ) AS col0
----
605

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3078
SELECT ALL + COALESCE ( - ( 14 ), + ( + COUNT( * ) ), - COUNT( * ) + ( CAST( + COUNT( * ) AS SIGNED ) ) * NULLIF ( 32, + 48 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL + COALESCE ( - ( 14 ), + ( + COUNT ( * ) ), - COUNT ( * ) + ( CAST ( + COUNT ( * ) AS INTEGER ) ) * NULLIF ( 32, + 48 ) )
----
-14

query II rowsort
SELECT + - 89 + + 24 col1, 67 * + COALESCE ( 11, 16 ) * 45
----
-65
33165

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3082
SELECT ALL ( COUNT( ALL + - 67 ) ) + MAX( DISTINCT CAST( NULL AS DECIMAL ) ) - - ( - 61 ) / + 14 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL ( COUNT ( ALL + - 67 ) ) + MAX ( DISTINCT CAST ( NULL AS REAL ) ) - - ( - 61 ) / + 14 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3083
SELECT DISTINCT CAST( 0 AS SIGNED ) + - 49
----
-49

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT CAST ( 0 AS INTEGER ) + - 49
----
-49

query I rowsort
SELECT ALL 31 + - - 58 AS col1
----
89

query I rowsort
SELECT + 1 + 88
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT + - 90 * + MIN( - + 73 ) + 49 AS col2
----
6619

skipif mysql # not compatible
query I rowsort label-3086
SELECT + - 90 * + MIN ( - + 73 ) + 49 AS col2
----
6619

query I rowsort
SELECT ALL 75 * - + 7 * - 94 AS col0
----
49350

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT DISTINCT + COALESCE ( + 58, + NULLIF ( + - COUNT( * ), 61 + + COUNT( - 10 ) ), - 9 ) * - 68 AS col0
----
-3944

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT + COALESCE ( + 58, + NULLIF ( + - COUNT ( * ), 61 + + COUNT ( - 10 ) ), - 9 ) * - 68 AS col0
----
-3944

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3090
SELECT 94 AS col0, NULLIF ( 65, - 51 * + - MIN( - 91 ) ) AS col1
----
94
65

skipif mysql # not compatible
query II rowsort label-3090
SELECT 94 AS col0, NULLIF ( 65, - 51 * + - MIN ( - 91 ) ) AS col1
----
94
65

query I rowsort
SELECT - 48 * + + 43
----
-2064

query I rowsort
SELECT ALL - ( - 92 ) * - + 59 * - 70
----
379960

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT + 53 - - + ( 29 ) - + COUNT( * ) + + 61 + - 84 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-3093
SELECT + 53 - - + ( 29 ) - + COUNT ( * ) + + 61 + - 84 AS col1
----
58

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

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

query I rowsort
SELECT ALL - 78 * + 34
----
-2652

query I rowsort
SELECT + 30 - + 33 + + - 88 AS col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3097
SELECT - 35 DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-3097
SELECT - 35 / 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT DISTINCT - 60 * 43 * + - 83 * + CASE + COUNT( DISTINCT 18 ) WHEN + 72 THEN + 25 WHEN 65 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT - 60 * 43 * + - 83 * + CASE + COUNT ( DISTINCT 18 ) WHEN + 72 THEN + 25 WHEN 65 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3099
SELECT DISTINCT + MAX( + ( 97 ) ) AS col2, - 8 + - 84 + 6
----
97
-86

skipif mysql # not compatible
query II rowsort label-3099
SELECT DISTINCT + MAX ( + ( 97 ) ) AS col2, - 8 + - 84 + 6
----
97
-86

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

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

query I rowsort
SELECT ( + COALESCE ( + - 96, + 37 ) )
----
-96

query II rowsort
SELECT ALL + 22 AS col2, - ( + 85 )
----
22
-85

query I rowsort
SELECT - 76 - - 99 AS col1
----
23

query I rowsort
SELECT - 22 + + 4 col2
----
-18

query I rowsort
SELECT - 46 * + ( - + 27 ) * 22
----
27324

query II rowsort
SELECT DISTINCT + 18 col1, 52
----
18
52

query II rowsort
SELECT - + 35 + ( + 19 ) AS col1, 23
----
-16
23

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

skipif mysql # not compatible
query I rowsort label-3108
SELECT + COUNT ( ALL + 44 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT 60 * - + COUNT( DISTINCT 37 ) + + 66 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3109
SELECT 60 * - + COUNT ( DISTINCT 37 ) + + 66 AS col0
----
6

query I rowsort
SELECT ALL - ( - 74 ) * 48 AS col2
----
3552

query I rowsort
SELECT + CASE - 76 WHEN + - 46 THEN NULL ELSE - 23 END * ( + 83 ) + ( - 54 + 23 ) AS col0
----
-1940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3112
SELECT ALL - CAST( + 35 AS SIGNED ) * + 42 + + COUNT( * ) AS col0
----
-1469

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL - CAST ( + 35 AS INTEGER ) * + 42 + + COUNT ( * ) AS col0
----
-1469

query I rowsort
SELECT DISTINCT - NULLIF ( + 30, - - 49 + - ( + 46 ) ) * 51 AS col1
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT DISTINCT + COUNT( * ) * + + 7 * - - 57 + - 36 AS col2
----
363

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT + COUNT ( * ) * + + 7 * - - 57 + - 36 AS col2
----
363

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3116
SELECT + 46, CAST( + - 90 AS SIGNED ) + - CAST( NULL AS DECIMAL ) + - AVG ( 56 ) + 26 col1
----
46
NULL

skipif mysql # not compatible
query II rowsort label-3116
SELECT + 46, CAST ( + - 90 AS INTEGER ) + - CAST ( NULL AS REAL ) + - AVG ( 56 ) + 26 col1
----
46
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3117
SELECT ALL - + SUM( ALL - 58 ) * - + 96 col2, COUNT( * ) - + - 35 * + COALESCE ( + 98 DIV - 30, 40 )
----
-5568
-104

skipif mysql # not compatible
query II rowsort label-3117
SELECT ALL - + SUM ( ALL - 58 ) * - + 96 col2, COUNT ( * ) - + - 35 * + COALESCE ( + 98 / - 30, 40 )
----
-5568
-104

query I rowsort
SELECT + ( + + ( NULLIF ( - 97, - 37 * 48 ) ) ) + + 93
----
-4

query I rowsort
SELECT DISTINCT - 56 * 28 col1
----
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT DISTINCT ( - 45 ) * + COUNT( - 27 ) + 99
----
54

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT ( - 45 ) * + COUNT ( - 27 ) + 99
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT - MIN( 79 ) col1
----
-79

skipif mysql # not compatible
query I rowsort label-3121
SELECT - MIN ( 79 ) col1
----
-79

query I rowsort
SELECT ALL + + 70 * 75 * + 87 * + 18 + - 3 + 15 * - 43 + NULLIF ( + 85, + 99 )
----
8220937

onlyif mysql # aggregate syntax: 
query II rowsort label-3123
SELECT - 20 AS col0, COUNT( * ) + + 48 + - 98 AS col1
----
-20
-49

skipif mysql # not compatible
query II rowsort label-3123
SELECT - 20 AS col0, COUNT ( * ) + + 48 + - 98 AS col1
----
-20
-49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3125
SELECT ALL + 73 DIV 3
----
24

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL + 73 / 3
----
24

query I rowsort
SELECT - - 27 col0
----
27

query I rowsort
SELECT DISTINCT + 40 * - 4 AS col2
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT ALL ( + 35 ) - + CASE - + 42 WHEN - - 32 THEN - MIN( ALL 17 ) * MAX( DISTINCT 25 + - 79 ) + 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL ( + 35 ) - + CASE - + 42 WHEN - - 32 THEN - MIN ( ALL 17 ) * MAX ( DISTINCT 25 + - 79 ) + 88 END
----
NULL

query I rowsort
SELECT + 5 * 49 AS col0
----
245

onlyif mysql # DIV for integer division: 
query I rowsort label-3130
SELECT ALL 75 DIV - 5
----
-15

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL 75 / - 5
----
-15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT 36 * COUNT( * ) * 30 AS col1
----
1080

skipif mysql # not compatible
query I rowsort label-3132
SELECT 36 * COUNT ( * ) * 30 AS col1
----
1080

onlyif mysql # aggregate syntax: 
query II rowsort label-3133
SELECT - 26, - SUM( ALL 26 )
----
-26
-26

skipif mysql # not compatible
query II rowsort label-3133
SELECT - 26, - SUM ( ALL 26 )
----
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL 48 * + COUNT( - + 44 ) * COUNT( - 70 ) * - - 99
----
4752

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL 48 * + COUNT ( - + 44 ) * COUNT ( - 70 ) * - - 99
----
4752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3135
SELECT NULLIF ( - 88, + 1 ) / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT NULLIF ( - 88, + 1 ) / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3136
SELECT ALL 83 AS col2, + 18 DIV + 57 AS col0
----
83
0

skipif mysql # not compatible
query II rowsort label-3136
SELECT ALL 83 AS col2, + 18 / + 57 AS col0
----
83
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3137
SELECT CAST( - - 61 AS SIGNED ) - - 54 * + 25 + + 31
----
1442

skipif mysql # not compatible
query I rowsort label-3137
SELECT CAST ( - - 61 AS INTEGER ) - - 54 * + 25 + + 31
----
1442

query I rowsort
SELECT 61 * - 80 * + - 14 AS col2
----
68320

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT 32 + - - 51 - - CASE - + 31 WHEN - - 24 THEN + 75 + - 88 / - 79 ELSE NULL END + 0 / - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3139
SELECT 32 + - - 51 - - CASE - + 31 WHEN - - 24 THEN + 75 + - 88 / - 79 ELSE NULL END + 0 / - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3140
SELECT ALL - COUNT( * ) AS col1, + CASE - + 27 WHEN + 2 - - 53 THEN + - 37 / - 78 + ( - 6 ) * 37 WHEN - 99 THEN 82 * + 29 END + COUNT( * )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3140
SELECT ALL - COUNT ( * ) AS col1, + CASE - + 27 WHEN + 2 - - 53 THEN + - 37 / - 78 + ( - 6 ) * 37 WHEN - 99 THEN 82 * + 29 END + COUNT ( * )
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3141
SELECT - ( 8 ) * + + 55 + COUNT( ALL 43 ) + + 7 + - 48 DIV - 99 AS col2
----
-432

skipif mysql # not compatible
query I rowsort label-3141
SELECT - ( 8 ) * + + 55 + COUNT ( ALL 43 ) + + 7 + - 48 / - 99 AS col2
----
-432

query II rowsort
SELECT ALL - 77 AS col2, 26
----
-77
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3143
SELECT ALL - COUNT( * ) AS col1, 21 + - 71
----
-1
-50

skipif mysql # not compatible
query II rowsort label-3143
SELECT ALL - COUNT ( * ) AS col1, 21 + - 71
----
-1
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT + 47 * COUNT( * ) + 83 AS col0
----
130

skipif mysql # not compatible
query I rowsort label-3144
SELECT + 47 * COUNT ( * ) + 83 AS col0
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-3145
SELECT 67 + + MIN( - ( - 13 ) ), 21 + + 94 AS col1
----
80
115

skipif mysql # not compatible
query II rowsort label-3145
SELECT 67 + + MIN ( - ( - 13 ) ), 21 + + 94 AS col1
----
80
115

query I rowsort
SELECT NULLIF ( - 92, + 31 + - 99 ) * - 3
----
276

query I rowsort
SELECT 77 + - + 64 + - 60 AS col0
----
-47

query I rowsort
SELECT ALL 34 + 47 * - 43 col2
----
-1987

query II rowsort
SELECT 14 AS col2, + 37 AS col2
----
14
37

query I rowsort
SELECT ALL - 84 + - NULLIF ( - 54, - 35 * - 65 )
----
-30

query I rowsort
SELECT DISTINCT + 29 + - 13
----
16

query I rowsort
SELECT DISTINCT 40 + + 70 + + 45 AS col0
----
155

query I rowsort
SELECT DISTINCT + ( - 86 ) + - + 78
----
-164

query II rowsort
SELECT DISTINCT - 51 * + 27 + + 17 * - 65 col2, + 63 * 19
----
-2482
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT ALL + + 55 + - - NULLIF ( + COALESCE ( - + NULLIF ( 13, SUM( DISTINCT 69 ) ), - 91 + 37 ), - 81 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL + + 55 + - - NULLIF ( + COALESCE ( - + NULLIF ( 13, SUM ( DISTINCT 69 ) ), - 91 + 37 ), - 81 ) AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3156
SELECT 93 * - - 27 + - COUNT( + CAST( ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) )
----
2511

skipif mysql # not compatible
query I rowsort label-3156
SELECT 93 * - - 27 + - COUNT ( + CAST ( ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) )
----
2511

query II rowsort
SELECT ALL - - 34 col0, 55 AS col2
----
34
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3158
SELECT + + CAST( + ( 32 ) AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-3158
SELECT + + CAST ( + ( 32 ) AS INTEGER )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3159
SELECT 86 / + COALESCE ( 65, + + 33 - - - 48 ) + + CAST( NULL AS SIGNED ) * + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3159
SELECT 86 / + COALESCE ( 65, + + 33 - - - 48 ) + + CAST ( NULL AS INTEGER ) * + 50 AS col0
----
NULL

query I rowsort
SELECT ALL + 68 + - ( - 75 )
----
143

query I rowsort
SELECT 73 * - 39 * - 70 + + 58 AS col1
----
199348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3162
SELECT COUNT( * ) * + 32 + + 89 + + - CASE 65 WHEN - 72 THEN NULL ELSE + 60 + 20 END + COUNT( DISTINCT 27 ) * - 27 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT COUNT ( * ) * + 32 + + 89 + + - CASE 65 WHEN - 72 THEN NULL ELSE + 60 + 20 END + COUNT ( DISTINCT 27 ) * - 27 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3163
SELECT 1 AS col2, 96 DIV 65 AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-3163
SELECT 1 AS col2, 96 / 65 AS col1
----
1
1

query II rowsort
SELECT ALL 98, - 15 AS col1
----
98
-15

query II rowsort
SELECT - 9 AS col1, - 80 AS col0
----
-9
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3166
SELECT 95, ( + MIN( DISTINCT + 54 ) ) * - + ( + 90 ) AS col2
----
95
-4860

skipif mysql # not compatible
query II rowsort label-3166
SELECT 95, ( + MIN ( DISTINCT + 54 ) ) * - + ( + 90 ) AS col2
----
95
-4860

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3167
SELECT 32 col2, - COUNT( * ) DIV - - 18 AS col1
----
32
0

skipif mysql # not compatible
query II rowsort label-3167
SELECT 32 col2, - COUNT ( * ) / - - 18 AS col1
----
32
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3168
SELECT COUNT( * ) AS col1, - 42 * 83 * - - 26 + + CAST( NULL AS SIGNED ) + - 8 + + 5 * 51 / 8 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3168
SELECT COUNT ( * ) AS col1, - 42 * 83 * - - 26 + + CAST ( NULL AS INTEGER ) + - 8 + + 5 * 51 / 8 AS col2
----
1
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + - 11, + ( - 1 ) * + 36 + + 39, 18 )
----
-11

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

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

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

query I rowsort
SELECT + 99 + - + 6 AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3173
SELECT 34 - - COUNT( * ) + - - COUNT( ALL CASE + + 50 WHEN 21 + + 16 THEN CAST( NULL AS SIGNED ) WHEN - 37 THEN NULL END ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3173
SELECT 34 - - COUNT ( * ) + - - COUNT ( ALL CASE + + 50 WHEN 21 + + 16 THEN CAST ( NULL AS INTEGER ) WHEN - 37 THEN NULL END ) AS col1
----
35

query I rowsort
SELECT + 43 * + - 50
----
-2150

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

skipif mysql # not compatible
query I rowsort label-3175
SELECT COUNT ( * ) + - - 92 AS col2
----
93

query I rowsort
SELECT 26 + - 40 AS col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3177
SELECT DISTINCT 36 DIV - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT 36 / - 74 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3178
SELECT ALL 71 + - + 40 AS col1, 22 * - 88 - - - 39 + + COUNT( * )
----
31
-1974

skipif mysql # not compatible
query II rowsort label-3178
SELECT ALL 71 + - + 40 AS col1, 22 * - 88 - - - 39 + + COUNT ( * )
----
31
-1974

query I rowsort
SELECT DISTINCT 88 * 50 AS col0
----
4400

onlyif mysql # DIV for integer division: 
query I rowsort label-3180
SELECT 41 DIV + 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3180
SELECT 41 / + 84 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3181
SELECT 77 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT 77 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3182
SELECT ALL 99 * 11 DIV 91 DIV - 95 + + 37
----
37

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL 99 * 11 / 91 / - 95 + + 37
----
37

query I rowsort
SELECT 48 - - NULLIF ( + 84, 79 ) AS col2
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3184
SELECT + 17 * + + 46 - CAST( - 80 AS SIGNED ) + + + 34 + - 97
----
799

skipif mysql # not compatible
query I rowsort label-3184
SELECT + 17 * + + 46 - CAST ( - 80 AS INTEGER ) + + + 34 + - 97
----
799

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT CASE - 9 WHEN 48 THEN 40 WHEN - 82 THEN - + COUNT( * ) * + + 74 * + 94 + - 89 + - 36 WHEN + SUM( 93 ) THEN 89 WHEN - COUNT( * ) THEN + NULLIF ( 39, - 6 ) ELSE MIN( DISTINCT + 90 ) END - - ( 14 + + 9 * 91 )
----
923

skipif mysql # not compatible
query I rowsort label-3186
SELECT CASE - 9 WHEN 48 THEN 40 WHEN - 82 THEN - + COUNT ( * ) * + + 74 * + 94 + - 89 + - 36 WHEN + SUM ( 93 ) THEN 89 WHEN - COUNT ( * ) THEN + NULLIF ( 39, - 6 ) ELSE MIN ( DISTINCT + 90 ) END - - ( 14 + + 9 * 91 )
----
923

query I rowsort
SELECT - NULLIF ( 22, + 77 + + + 20 ) * - 62 * - + 21 + - - 68 - 39
----
-28615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3188
SELECT + CAST( 27 AS SIGNED ) AS col1, - COALESCE ( 28, + NULLIF ( + 34, + 28 ) DIV 65 - COUNT( * ) * - 83, COUNT( - 13 ) ) - 33
----
27
-61

skipif mysql # not compatible
query II rowsort label-3188
SELECT + CAST ( 27 AS INTEGER ) AS col1, - COALESCE ( 28, + NULLIF ( + 34, + 28 ) / 65 - COUNT ( * ) * - 83, COUNT ( - 13 ) ) - 33
----
27
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT ALL + MAX( ALL - ( - ( - 85 ) ) ) - 97
----
-182

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL + MAX ( ALL - ( - ( - 85 ) ) ) - 97
----
-182

query I rowsort
SELECT - 24 + - + 41 + - 93
----
-158

query I rowsort
SELECT 31 * - + 64
----
-1984

query I rowsort
SELECT ALL + + 10 * + + 94
----
940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3193
SELECT ALL CAST( NULL AS SIGNED ) - COUNT( * ), + 19 * MIN( ALL 97 ) col1
----
NULL
1843

skipif mysql # not compatible
query II rowsort label-3193
SELECT ALL CAST ( NULL AS INTEGER ) - COUNT ( * ), + 19 * MIN ( ALL 97 ) col1
----
NULL
1843

query I rowsort
SELECT ALL - + COALESCE ( - - 63, 70 ) - + + 60
----
-123

query I rowsort
SELECT ALL + 45 * + 51 AS col1
----
2295

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT - + 1 + + CASE - + 44 WHEN ( COALESCE ( + 75, 56, + 35, 84 - 74 / - NULLIF ( + 81 * 44 + COUNT( * ) * - 34, - COUNT( 96 ) ) ) ) THEN 41 WHEN ( + 85 ) THEN NULL ELSE COUNT( * ) END - - COUNT( * ) * + 82 * - 15
----
-1230

skipif mysql # not compatible
query I rowsort label-3196
SELECT - + 1 + + CASE - + 44 WHEN ( COALESCE ( + 75, 56, + 35, 84 - 74 / - NULLIF ( + 81 * 44 + COUNT ( * ) * - 34, - COUNT ( 96 ) ) ) ) THEN 41 WHEN ( + 85 ) THEN NULL ELSE COUNT ( * ) END - - COUNT ( * ) * + 82 * - 15
----
-1230

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

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

query I rowsort
SELECT - 97 * - + 47 * - 14 AS col1
----
-63826

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3200
SELECT - 46 * + 48 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT - 46 * + 48 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 19 * 47 AS col1
----
-893

query I rowsort
SELECT - 7 + - 66 * + NULLIF ( + - 30, - 55 ) + - - 36 * - 42 AS col1
----
461

query II rowsort
SELECT ALL 78 col1, + 69 + + 41 * 66 AS col1
----
78
2775

query I rowsort
SELECT ALL - ( + 70 ) + 9 + + 71 * - + 23 AS col0
----
-1694

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT - 77 - - - COUNT( * ) + + + 41 + - 2 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3205
SELECT - 77 - - - COUNT ( * ) + + + 41 + - 2 AS col0
----
-39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT - ( COUNT( * ) ) + + 49 + + 43 + - ( + ( + - 52 ) ) * + - 73 * 51 + 60 col0
----
-193445

skipif mysql # not compatible
query I rowsort label-3207
SELECT - ( COUNT ( * ) ) + + 49 + + 43 + - ( + ( + - 52 ) ) * + - 73 * 51 + 60 col0
----
-193445

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3208
SELECT ALL + 47 + + 8 + - 68 AS col0, - COUNT( * ) DIV - COUNT( * )
----
-13
1

skipif mysql # not compatible
query II rowsort label-3208
SELECT ALL + 47 + + 8 + - 68 AS col0, - COUNT ( * ) / - COUNT ( * )
----
-13
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3209
SELECT - 41 + - 28 + - CAST( + 68 AS SIGNED ) - + + 7 * + 85 + + 99
----
-633

skipif mysql # not compatible
query I rowsort label-3209
SELECT - 41 + - 28 + - CAST ( + 68 AS INTEGER ) - + + 7 * + 85 + + 99
----
-633

query II rowsort
SELECT 20, - 7 AS col1
----
20
-7

query I rowsort
SELECT + 23 - 27 AS col0
----
-4

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3213
SELECT ALL + 84 + 72 * - 33 + + CAST( + COUNT( * ) AS SIGNED ) * - 18 + - 29 + - ( 67 ) * COUNT( ALL 29 )
----
-2406

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL + 84 + 72 * - 33 + + CAST ( + COUNT ( * ) AS INTEGER ) * - 18 + - 29 + - ( 67 ) * COUNT ( ALL 29 )
----
-2406

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT ALL NULLIF ( + 59, + - 35 * 36 + - NULLIF ( 39, + + MIN( 72 ) ) )
----
59

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL NULLIF ( + 59, + - 35 * 36 + - NULLIF ( 39, + + MIN ( 72 ) ) )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3215
SELECT ALL ( - + NULLIF ( + CAST( NULL AS SIGNED ), - 35 ) ) * + 51 + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL ( - + NULLIF ( + CAST ( NULL AS INTEGER ), - 35 ) ) * + 51 + 20
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT + NULLIF ( + - COUNT( * ), + 65 ) + 89
----
88

skipif mysql # not compatible
query I rowsort label-3217
SELECT + NULLIF ( + - COUNT ( * ), + 65 ) + 89
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3218
SELECT ALL 71 * + MIN( DISTINCT 2 ) * - 71 - - COUNT( * ) DIV + - ( - + 75 ) * + + 12
----
-10082

skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL 71 * + MIN ( DISTINCT 2 ) * - 71 - - COUNT ( * ) / + - ( - + 75 ) * + + 12
----
-10082

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

query I rowsort
SELECT - 95 * - 94 AS col1
----
8930

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT + COUNT( * ) * + 20 - + 14 * 43 * - + ( + 87 ) + 78 + - 87
----
52385

skipif mysql # not compatible
query I rowsort label-3221
SELECT + COUNT ( * ) * + 20 - + 14 * 43 * - + ( + 87 ) + 78 + - 87
----
52385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3222
SELECT + NULLIF ( + MAX( DISTINCT + 76 ), - - SUM( + + 63 ) * + 98 + - + 2 - 18 * + 18 ) DIV 41 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3222
SELECT + NULLIF ( + MAX ( DISTINCT + 76 ), - - SUM ( + + 63 ) * + 98 + - + 2 - 18 * + 18 ) / 41 AS col0
----
1

query I rowsort
SELECT CASE - 24 WHEN - COALESCE ( - 22, + 22 ) THEN - + 62 / + + 93 + + 89 / 92 WHEN ( 65 ) THEN - 21 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT ALL + COUNT( ALL + + 21 ) * - 18 + 63 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL + COUNT ( ALL + + 21 ) * - 18 + 63 AS col0
----
45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT DISTINCT + CASE + + 51 WHEN + 24 THEN NULL ELSE + CASE + 9 WHEN COUNT( * ) THEN + 26 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT + CASE + + 51 WHEN + 24 THEN NULL ELSE + CASE + 9 WHEN COUNT ( * ) THEN + 26 END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3227
SELECT + 98 * + - NULLIF ( + + 76, - - CASE - - COALESCE ( + 19, + + COUNT( * ) / - COUNT( * ) * + 18, 63 ) WHEN + CASE 65 WHEN 85 THEN NULL ELSE ( ( 17 ) ) END THEN + 67 * NULLIF ( - COUNT( DISTINCT 11 ), 0 ) WHEN COUNT( * ) THEN NULL END ) * - COALESCE ( COUNT( * ), CAST( + 78 AS SIGNED ), 24 )
----
7448

skipif mysql # not compatible
query I rowsort label-3227
SELECT + 98 * + - NULLIF ( + + 76, - - CASE - - COALESCE ( + 19, + + COUNT ( * ) / - COUNT ( * ) * + 18, 63 ) WHEN + CASE 65 WHEN 85 THEN NULL ELSE ( ( 17 ) ) END THEN + 67 * NULLIF ( - COUNT ( DISTINCT 11 ), 0 ) WHEN COUNT ( * ) THEN NULL END ) * - COALESCE ( COUNT ( * ), CAST ( + 78 AS INTEGER ), 24 )
----
7448

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT - 94 * - COUNT( * ) * 35 + - + 56 + - - SUM( + 60 ) * + 69 * - ( - 87 ) AS col2
----
363414

skipif mysql # not compatible
query I rowsort label-3228
SELECT - 94 * - COUNT ( * ) * 35 + - + 56 + - - SUM ( + 60 ) * + 69 * - ( - 87 ) AS col2
----
363414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3229
SELECT ALL - ( + 38 ) * + + CAST( - + COUNT( * ) AS SIGNED ) - + - SUM( ALL + 20 )
----
58

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL - ( + 38 ) * + + CAST ( - + COUNT ( * ) AS INTEGER ) - + - SUM ( ALL + 20 )
----
58

query I rowsort
SELECT - - 6 * + + 0 - - 33
----
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT ALL 72 * + MAX( ALL + - 1 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL 72 * + MAX ( ALL + - 1 ) AS col2
----
-72

query I rowsort
SELECT DISTINCT 11 * - 57 + 33 AS col1
----
-594

query II rowsort
SELECT ALL CASE - 64 WHEN - 55 THEN - - 66 * - AVG ( - 46 ) + 60 ELSE NULL END col0, 57 AS col1
----
NULL
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT SUM( DISTINCT - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-3235
SELECT SUM ( DISTINCT - 83 )
----
-83

query I rowsort
SELECT ALL ( - 68 ) + - 22
----
-90

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3238
SELECT DISTINCT 59 + + ( + CASE + COUNT( + - ( - + CAST( NULL AS SIGNED ) ) ) WHEN + NULLIF ( - 91, + 50 ) THEN NULL WHEN + 43 THEN 21 DIV 83 ELSE COUNT( * ) END )
----
60

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT 59 + + ( + CASE + COUNT ( + - ( - + CAST ( NULL AS INTEGER ) ) ) WHEN + NULLIF ( - 91, + 50 ) THEN NULL WHEN + 43 THEN 21 / 83 ELSE COUNT ( * ) END )
----
60

query I rowsort
SELECT - ( 78 ) * - 38
----
2964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3240
SELECT ALL - 88 + - - 0 * 61 * + 43 * 63 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL - 88 + - - 0 * 61 * + 43 * 63 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - 36
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3241
SELECT + 17 DIV + 49 col1
----
0

skipif mysql # not compatible
query I rowsort label-3241
SELECT + 17 / + 49 col1
----
0

query I rowsort
SELECT ALL - 98 * - 13
----
1274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3243
SELECT DISTINCT CAST( 77 AS SIGNED ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3243
SELECT DISTINCT CAST ( 77 AS INTEGER ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3244
SELECT ALL + 53 - + COUNT( * ) AS col0, NULLIF ( - + 68, - + COALESCE ( + + 54, - + CASE COUNT( * ) WHEN 73 THEN ( - ( - ( 82 ) ) ) + 74 WHEN - 3 THEN NULL ELSE NULL END ) )
----
52
-68

skipif mysql # not compatible
query II rowsort label-3244
SELECT ALL + 53 - + COUNT ( * ) AS col0, NULLIF ( - + 68, - + COALESCE ( + + 54, - + CASE COUNT ( * ) WHEN 73 THEN ( - ( - ( 82 ) ) ) + 74 WHEN - 3 THEN NULL ELSE NULL END ) )
----
52
-68

query I rowsort
SELECT ALL - 72 * - + 43 + + 18 * 14 + 70 col1
----
3418

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT - + ( - - COUNT( * ) ) - + 96 * CASE + + 58 WHEN - 18 THEN - MAX( + 41 ) * - + 77 + + 7 * - 40 END * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3246
SELECT - + ( - - COUNT ( * ) ) - + 96 * CASE + + 58 WHEN - 18 THEN - MAX ( + 41 ) * - + 77 + + 7 * - 40 END * 32
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT + ( - 75 ) * - 50 - + 9 DIV + 55 + 13 AS col1
----
3763

skipif mysql # not compatible
query I rowsort label-3247
SELECT + ( - 75 ) * - 50 - + 9 / + 55 + 13 AS col1
----
3763

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT + 60 DIV + + 55 + + 57 * - 96
----
-5471

skipif mysql # not compatible
query I rowsort label-3248
SELECT + 60 / + + 55 + + 57 * - 96
----
-5471

query I rowsort
SELECT - 15 * - NULLIF ( - 84, 60 ) AS col2
----
-1260

query I rowsort
SELECT - + 51 * + 99 AS col0
----
-5049

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT - 43 - - - NULLIF ( - COUNT( + 17 ), + 78 )
----
-42

skipif mysql # not compatible
query I rowsort label-3251
SELECT - 43 - - - NULLIF ( - COUNT ( + 17 ), + 78 )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3252
SELECT - COUNT( + 27 ) * - 90 - + MAX( + 22 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3252
SELECT - COUNT ( + 27 ) * - 90 - + MAX ( + 22 ) * CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT - 70 * + + 47
----
-3290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3255
SELECT ALL + COUNT( * ) + + NULLIF ( 3, + 40 + - 16 - + + 75 * 95 * - CAST( COUNT( * ) AS SIGNED ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL + COUNT ( * ) + + NULLIF ( 3, + 40 + - 16 - + + 75 * 95 * - CAST ( COUNT ( * ) AS INTEGER ) ) AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3256
SELECT 19 + + - CAST( - 29 AS SIGNED ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-3256
SELECT 19 + + - CAST ( - 29 AS INTEGER ) AS col2
----
48

query I rowsort
SELECT ALL + - 59 + + 46 AS col1
----
-13

query I rowsort
SELECT ALL 71 + - - 31 AS col1
----
102

query I rowsort
SELECT DISTINCT 83 + - COALESCE ( - ( + 77 ), + 77 )
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-3260
SELECT 70 + MIN( + - 75 ) col0, + COUNT( * ) + - + COUNT( * ) AS col2
----
-5
0

skipif mysql # not compatible
query II rowsort label-3260
SELECT 70 + MIN ( + - 75 ) col0, + COUNT ( * ) + - + COUNT ( * ) AS col2
----
-5
0

query I rowsort
SELECT 60 * + 55
----
3300

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT COUNT( ALL - - 66 ) + - 33
----
-32

skipif mysql # not compatible
query I rowsort label-3262
SELECT COUNT ( ALL - - 66 ) + - 33
----
-32

query I rowsort
SELECT DISTINCT 5 - 23
----
-18

query I rowsort
SELECT DISTINCT 17 * + 2 AS col1
----
34

query II rowsort
SELECT ALL 52 AS col0, 58 AS col0
----
52
58

query I rowsort
SELECT DISTINCT 69 - - - 73 * + + 27 * + 16
----
-31467

query I rowsort
SELECT 2 + + + 84
----
86

query I rowsort
SELECT CASE - 68 WHEN ( + - 64 ) THEN 88 ELSE NULL END + - - 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT - - NULLIF ( + CASE + 98 WHEN + - 82 + - + 43 THEN + + COUNT( * ) ELSE 87 END, + 73 + 69 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-3269
SELECT - - NULLIF ( + CASE + 98 WHEN + - 82 + - + 43 THEN + + COUNT ( * ) ELSE 87 END, + 73 + 69 ) AS col0
----
87

onlyif mysql # DIV for integer division: 
query II rowsort label-3270
SELECT ALL + 52 AS col1, - 80 DIV + 96 + 18 AS col2
----
52
18

skipif mysql # not compatible
query II rowsort label-3270
SELECT ALL + 52 AS col1, - 80 / + 96 + 18 AS col2
----
52
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT - 91 + 89 - - 60 - COUNT( * ) col0
----
57

skipif mysql # not compatible
query I rowsort label-3271
SELECT - 91 + 89 - - 60 - COUNT ( * ) col0
----
57

query I rowsort
SELECT ALL + - 3 * + 93 * - + 29 AS col0
----
8091

query I rowsort
SELECT DISTINCT - - 91 * + ( 3 ) * - 12 * 85
----
-278460

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3274
SELECT DISTINCT - + CAST( NULLIF ( - 72, + + COALESCE ( + 40, CAST( - COALESCE ( + 43, - 83, 82 ) AS DECIMAL ) ) ) AS SIGNED ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT - + CAST ( NULLIF ( - 72, + + COALESCE ( + 40, CAST ( - COALESCE ( + 43, - 83, 82 ) AS REAL ) ) ) AS INTEGER ) AS col1
----
72

query I rowsort
SELECT + 40 + + 71 AS col0
----
111

query I rowsort
SELECT DISTINCT - + 99 + + - 47 AS col1
----
-146

query I rowsort
SELECT + NULLIF ( 0, + - ( - 16 ) ) col1
----
0

query I rowsort
SELECT + 67 * 17 AS col2
----
1139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT ALL + 33 + 44 + - CAST( NULL AS SIGNED ) * + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL + 33 + 44 + - CAST ( NULL AS INTEGER ) * + 3 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3280
SELECT + NULLIF ( 90, - 28 + 36 ) * + SUM( + CASE - 58 WHEN - CAST( NULL AS SIGNED ) THEN - + CASE + 20 WHEN 54 * - 34 THEN - 75 WHEN 62 * 12 THEN 64 DIV 71 END WHEN + 95 THEN NULL ELSE + 10 + 10 END ) * - 57
----
-102600

skipif mysql # not compatible
query I rowsort label-3280
SELECT + NULLIF ( 90, - 28 + 36 ) * + SUM ( + CASE - 58 WHEN - CAST ( NULL AS INTEGER ) THEN - + CASE + 20 WHEN 54 * - 34 THEN - 75 WHEN 62 * 12 THEN 64 / 71 END WHEN + 95 THEN NULL ELSE + 10 + 10 END ) * - 57
----
-102600

query I rowsort
SELECT ALL 76 * 91
----
6916

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3283
SELECT DISTINCT - COALESCE ( NULLIF ( + 97, - 5 DIV + - 70 * - 11 ), - 39 * + - AVG ( DISTINCT - 40 ) DIV - + SUM( DISTINCT + 45 ) + + ( 34 - + 19 ) ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT - COALESCE ( NULLIF ( + 97, - 5 / + - 70 * - 11 ), - 39 * + - AVG ( DISTINCT - 40 ) / - + SUM ( DISTINCT + 45 ) + + ( 34 - + 19 ) ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3284
SELECT ALL + - 57 + MAX( - 16 ), 81 AS col2
----
-73
81

skipif mysql # not compatible
query II rowsort label-3284
SELECT ALL + - 57 + MAX ( - 16 ), 81 AS col2
----
-73
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3285
SELECT ALL - CAST( - COALESCE ( 71, - 54 ) AS SIGNED ) + - ( + 1 )
----
70

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL - CAST ( - COALESCE ( 71, - 54 ) AS INTEGER ) + - ( + 1 )
----
70

query I rowsort
SELECT ALL 30 + - 67 AS col2
----
-37

query II rowsort
SELECT ALL - 96, - NULLIF ( 89, 81 ) AS col1
----
-96
-89

query I rowsort
SELECT 41 * 82 AS col0
----
3362

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT ALL + 88 * - 66 * + + COUNT( * )
----
-5808

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL + 88 * - 66 * + + COUNT ( * )
----
-5808

query II rowsort
SELECT + 33 AS col0, + 83
----
33
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3291
SELECT ALL + CAST( - + 12 AS SIGNED ) * + 2 * 63
----
-1512

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL + CAST ( - + 12 AS INTEGER ) * + 2 * 63
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT ALL - 25 * - COUNT( - 36 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL - 25 * - COUNT ( - 36 ) AS col1
----
25

query II rowsort
SELECT ALL + 70 - + 3 col2, - 70 AS col0
----
67
-70

query II rowsort
SELECT DISTINCT 47 col0, - 90 * + - 40
----
47
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT 92 + 14 + ( - MIN( DISTINCT - 56 ) ) * 15 * + 67 - + + COUNT( * ) + + 10 * - + 71 * + + 71 AS col0
----
5975

skipif mysql # not compatible
query I rowsort label-3295
SELECT 92 + 14 + ( - MIN ( DISTINCT - 56 ) ) * 15 * + 67 - + + COUNT ( * ) + + 10 * - + 71 * + + 71 AS col0
----
5975

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3296
SELECT DISTINCT - 53 - - 4 DIV + + CAST( - 77 AS SIGNED ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT - 53 - - 4 / + + CAST ( - 77 AS INTEGER ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT COUNT( - + 66 ) * 61 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-3297
SELECT COUNT ( - + 66 ) * 61 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT COALESCE ( + COUNT( * ), + ( + + 59 ) ) * 58 + + 38
----
96

skipif mysql # not compatible
query I rowsort label-3298
SELECT COALESCE ( + COUNT ( * ), + ( + + 59 ) ) * 58 + + 38
----
96

query II rowsort
SELECT - 65 AS col0, - 21 + - - 78
----
-65
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3300
SELECT 95 + + - 29 * - 26 * - COUNT( * ) * - NULLIF ( - + MAX( + 50 ), - 87 + 15 + + 7 / + 8 * + COALESCE ( 63 * ( 90 ), 72 / - CAST( 74 * COUNT( * ) AS SIGNED ), - COUNT( DISTINCT 48 ) ) )
----
-37605

skipif mysql # not compatible
query I rowsort label-3300
SELECT 95 + + - 29 * - 26 * - COUNT ( * ) * - NULLIF ( - + MAX ( + 50 ), - 87 + 15 + + 7 / + 8 * + COALESCE ( 63 * ( 90 ), 72 / - CAST ( 74 * COUNT ( * ) AS INTEGER ), - COUNT ( DISTINCT 48 ) ) )
----
-37605

query I rowsort
SELECT ALL NULLIF ( 6, + 97 ) AS col1
----
6

query II rowsort
SELECT - + 8 AS col1, 49
----
-8
49

query II rowsort
SELECT ALL 19 * - - 72, + 1 AS col1
----
1368
1

query I rowsort
SELECT ALL + ( ( 78 ) ) * + 42
----
3276

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

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

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

query I rowsort
SELECT + + 18 * + - 88 + + 5
----
-1579

query II rowsort
SELECT - 12 AS col2, 5 AS col1
----
-12
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT + - NULLIF ( + CASE + + 62 WHEN 28 THEN + + 80 + 36 WHEN - - COUNT( * ) THEN 48 ELSE NULL END, - + 53 * + ( - 27 ) / + 79 ) * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT + - NULLIF ( + CASE + + 62 WHEN 28 THEN + + 80 + 36 WHEN - - COUNT ( * ) THEN 48 ELSE NULL END, - + 53 * + ( - 27 ) / + 79 ) * 46
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3310
SELECT ALL - COUNT( * ) * + + ( 84 ) + - 79 + + 42 * - CAST( - 49 AS SIGNED ) + 7 AS col1
----
1902

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL - COUNT ( * ) * + + ( 84 ) + - 79 + + 42 * - CAST ( - 49 AS INTEGER ) + 7 AS col1
----
1902

onlyif mysql # aggregate syntax: 
query II rowsort label-3311
SELECT + 74 AS col2, - 85 + + NULLIF ( - 23, + 74 - + 20 + MAX( - - 29 ) / + - 67 ) * + 3
----
74
-154

skipif mysql # not compatible
query II rowsort label-3311
SELECT + 74 AS col2, - 85 + + NULLIF ( - 23, + 74 - + 20 + MAX ( - - 29 ) / + - 67 ) * + 3
----
74
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-3312
SELECT ALL + 46 DIV - ( - + 37 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL + 46 / - ( - + 37 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT DISTINCT - - 5 * - + 94 + SUM( DISTINCT - NULLIF ( - - 31, 33 ) )
----
-501

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT - - 5 * - + 94 + SUM ( DISTINCT - NULLIF ( - - 31, 33 ) )
----
-501

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT - + 7 * + COUNT( * ) * - 63 + 88 + + 32 * + - ( + 51 ) AS col2
----
-1103

skipif mysql # not compatible
query I rowsort label-3314
SELECT - + 7 * + COUNT ( * ) * - 63 + 88 + + 32 * + - ( + 51 ) AS col2
----
-1103

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT - + 16 - + COALESCE ( + + 62, + 37 * + COUNT( * ) )
----
-78

skipif mysql # not compatible
query I rowsort label-3315
SELECT - + 16 - + COALESCE ( + + 62, + 37 * + COUNT ( * ) )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3316
SELECT + - 47 + COUNT( * ) - - COALESCE ( - + 56, - - 81 - - 25 + - COUNT( * ) - + 96 + 1 DIV + 83 ) * - 71 + COUNT( * )
----
3931

skipif mysql # not compatible
query I rowsort label-3316
SELECT + - 47 + COUNT ( * ) - - COALESCE ( - + 56, - - 81 - - 25 + - COUNT ( * ) - + 96 + 1 / + 83 ) * - 71 + COUNT ( * )
----
3931

query I rowsort
SELECT 1 * - 23 - + 78
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3318
SELECT + COUNT( 43 ) / - 76 + + 86 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT + COUNT ( 43 ) / - 76 + + 86 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3319
SELECT + COUNT( * ) + CAST( + + 52 AS SIGNED ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-3319
SELECT + COUNT ( * ) + CAST ( + + 52 AS INTEGER ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT - ( + + MIN( ALL + 74 ) ) * + 87
----
-6438

skipif mysql # not compatible
query I rowsort label-3320
SELECT - ( + + MIN ( ALL + 74 ) ) * + 87
----
-6438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3321
SELECT DISTINCT CAST( NULL AS SIGNED ) * - CASE - NULLIF ( - 28, 26 * + - 98 / + COUNT( DISTINCT 34 ) ) WHEN 69 THEN NULL WHEN + COUNT( * ) THEN 76 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3321
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - CASE - NULLIF ( - 28, 26 * + - 98 / + COUNT ( DISTINCT 34 ) ) WHEN 69 THEN NULL WHEN + COUNT ( * ) THEN 76 ELSE NULL END
----
NULL

query I rowsort
SELECT + 29 * 39 + - 67 + + 26 AS col1
----
1090

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3324
SELECT DISTINCT + COUNT( ALL 55 ) DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT + COUNT ( ALL 55 ) / + 91
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3325
SELECT ALL + 66 DIV + + 89, COALESCE ( - ( - 1 ), - CASE COALESCE ( - + 88, + COALESCE ( + CAST( NULL AS SIGNED ), - - COUNT( * ) ) ) WHEN - COALESCE ( + 27, 16, 0 - - 7 ) DIV + COUNT( * ) THEN NULL WHEN - 49 THEN - 23 END * CAST( - 47 AS SIGNED ) ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-3325
SELECT ALL + 66 / + + 89, COALESCE ( - ( - 1 ), - CASE COALESCE ( - + 88, + COALESCE ( + CAST ( NULL AS INTEGER ), - - COUNT ( * ) ) ) WHEN - COALESCE ( + 27, 16, 0 - - 7 ) / + COUNT ( * ) THEN NULL WHEN - 49 THEN - 23 END * CAST ( - 47 AS INTEGER ) ) AS col2
----
0
1

query I rowsort
SELECT - 40 * - 2 AS col0
----
80

query I rowsort
SELECT - 99 + + - 26 * 67 AS col1
----
-1841

onlyif mysql # DIV for integer division: 
query I rowsort label-3328
SELECT - 87 DIV + NULLIF ( 51, - 18 + - 59 + 67 )
----
-1

skipif mysql # not compatible
query I rowsort label-3328
SELECT - 87 / + NULLIF ( 51, - 18 + - 59 + 67 )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3329
SELECT + 93 DIV - 10 col1, + 77
----
-9
77

skipif mysql # not compatible
query II rowsort label-3329
SELECT + 93 / - 10 col1, + 77
----
-9
77

query I rowsort
SELECT - 4 + 17 * 96
----
1628

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL CASE - NULLIF ( + ( - + 9 ), - - 62 + 26 ) WHEN 36 + COUNT( * ) / - 35 THEN ( - CASE - COUNT( * ) WHEN + SUM( ALL 44 ) * - 27 THEN - 57 * 53 END ) ELSE - COALESCE ( + COUNT( * ), + 11, + 55 ) END
----
-1

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL CASE - NULLIF ( + ( - + 9 ), - - 62 + 26 ) WHEN 36 + COUNT ( * ) / - 35 THEN ( - CASE - COUNT ( * ) WHEN + SUM ( ALL 44 ) * - 27 THEN - 57 * 53 END ) ELSE - COALESCE ( + COUNT ( * ), + 11, + 55 ) END
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3332
SELECT - - 13 DIV - - ( + 80 )
----
0

skipif mysql # not compatible
query I rowsort label-3332
SELECT - - 13 / - - ( + 80 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT - 82 + ( + 95 ) + - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-3333
SELECT - 82 + ( + 95 ) + - COUNT ( * )
----
12

query I rowsort
SELECT DISTINCT + NULLIF ( + + 10, - 37 ) + 75 + - + 97 * 97
----
-9324

query I rowsort
SELECT - 48 + 62 - 10 AS col2
----
4

query I rowsort
SELECT ALL 92 + 7 + + 24 * 96 col2
----
2403

query I rowsort
SELECT - 62 + + 94 AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3338
SELECT ALL 19 * - 74 * - CAST( NULL AS SIGNED ) * - 76 * - + 80 AS col1, 68 * - 91 * 3
----
NULL
-18564

skipif mysql # not compatible
query II rowsort label-3338
SELECT ALL 19 * - 74 * - CAST ( NULL AS INTEGER ) * - 76 * - + 80 AS col1, 68 * - 91 * 3
----
NULL
-18564

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3340
SELECT ALL + 6 + + 18 + + + CASE + - 88 WHEN + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) THEN - 41 WHEN COUNT( * ) THEN NULL WHEN - - SUM( ALL + CASE - - 71 WHEN - 7 THEN - 55 ELSE NULL END ) THEN - 46 * + 91 + - 88 WHEN 45 THEN COUNT( * ) * + ( + 34 ) - + CAST( + CAST( - ( MAX( 61 ) ) AS SIGNED ) AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL + 6 + + 18 + + + CASE + - 88 WHEN + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN - 41 WHEN COUNT ( * ) THEN NULL WHEN - - SUM ( ALL + CASE - - 71 WHEN - 7 THEN - 55 ELSE NULL END ) THEN - 46 * + 91 + - 88 WHEN 45 THEN COUNT ( * ) * + ( + 34 ) - + CAST ( + CAST ( - ( MAX ( 61 ) ) AS INTEGER ) AS INTEGER ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT CASE 52 WHEN - - 69 + - - 76 * + ( + 94 ) THEN NULL WHEN + - 92 THEN + + AVG ( ALL + 96 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT ( + COALESCE ( + 31, + + 43 ) ) * + 98 - NULLIF ( + - 4, - COALESCE ( - - 96, - + 93 ) ) AS col2
----
3042

query I rowsort
SELECT + 61 * 7 + + 20 * - ( 52 ) AS col1
----
-613

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3344
SELECT + 73 DIV - + ( + + 97 ) * 94 + - ( 27 ) * + - SUM( ALL 73 ) + - 7
----
1964

skipif mysql # not compatible
query I rowsort label-3344
SELECT + 73 / - + ( + + 97 ) * 94 + - ( 27 ) * + - SUM ( ALL 73 ) + - 7
----
1964

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT + ( + COUNT( * ) ) * - ( - + 60 ) * + 47 * - + 53 * - - 31 * + 66
----
-305795160

skipif mysql # not compatible
query I rowsort label-3345
SELECT + ( + COUNT ( * ) ) * - ( - + 60 ) * + 47 * - + 53 * - - 31 * + 66
----
-305795160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3346
SELECT DISTINCT + + ( - 24 ) col0, - ( - - SUM( + 19 ) ) * - + 64 DIV - + 61 AS col2
----
-24
-19

skipif mysql # not compatible
query II rowsort label-3346
SELECT DISTINCT + + ( - 24 ) col0, - ( - - SUM ( + 19 ) ) * - + 64 / - + 61 AS col2
----
-24
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3347
SELECT - 7 * + 80 * MIN( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3347
SELECT - 7 * + 80 * MIN ( - CAST ( NULL AS INTEGER ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-3349
SELECT + 71 * + + ( - - 27 ) AS col1, 85, COUNT( * ) + 22 col2
----
1917
85
23

skipif mysql # not compatible
query III rowsort label-3349
SELECT + 71 * + + ( - - 27 ) AS col1, 85, COUNT ( * ) + 22 col2
----
1917
85
23

query I rowsort
SELECT ALL + 70 * - 75
----
-5250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3351
SELECT DISTINCT COUNT( ALL 13 ) * - CAST( NULL AS SIGNED ) + + + 58 + + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT COUNT ( ALL 13 ) * - CAST ( NULL AS INTEGER ) + + + 58 + + 68 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT + MIN( DISTINCT + 42 ) * - 33 + - MAX( ALL + 6 )
----
-1392

skipif mysql # not compatible
query I rowsort label-3352
SELECT + MIN ( DISTINCT + 42 ) * - 33 + - MAX ( ALL + 6 )
----
-1392

query I rowsort
SELECT ( CASE - - 44 WHEN + 10 + - 81 + 54 THEN NULL ELSE + CASE + 89 WHEN + 59 THEN + 99 + + 73 * + 39 + - 48 WHEN + 85 THEN NULL END * 38 END )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT - 17 * - + MIN( ( - 50 ) ) * COUNT( * )
----
-850

skipif mysql # not compatible
query I rowsort label-3355
SELECT - 17 * - + MIN ( ( - 50 ) ) * COUNT ( * )
----
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT DISTINCT 52 * - + 50 * - - SUM( DISTINCT - 37 ) AS col0
----
96200

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT 52 * - + 50 * - - SUM ( DISTINCT - 37 ) AS col0
----
96200

query I rowsort
SELECT + 64 - - - 72
----
-8

query I rowsort
SELECT - 81 * + 27 AS col0
----
-2187

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL CASE - AVG ( ALL + 1 ) WHEN + 17 / - 93 THEN - 80 ELSE NULL END * - - COUNT( * ) + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL CASE - AVG ( ALL + 1 ) WHEN + 17 / - 93 THEN - 80 ELSE NULL END * - - COUNT ( * ) + - 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT ALL MIN( - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL MIN ( - 59 )
----
-59

query II rowsort
SELECT 13 AS col1, 30 col1
----
13
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3362
SELECT ALL + CASE 26 WHEN 77 THEN + 50 WHEN CAST( 63 AS SIGNED ) * + 85 / 59 + - 59 THEN + 2 ELSE - 68 END + - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL + CASE 26 WHEN 77 THEN + 50 WHEN CAST ( 63 AS INTEGER ) * + 85 / 59 + - 59 THEN + 2 ELSE - 68 END + - COUNT ( * )
----
-69

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

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL - 8 / - COUNT ( * ) AS col1
----
8

query I rowsort
SELECT - 10 * - - 22
----
-220

onlyif mysql # aggregate syntax: 
query II rowsort label-3365
SELECT - MIN( - - 40 ) * 56 AS col1, - COUNT( * ) * - - 12 AS col0
----
-2240
-12

skipif mysql # not compatible
query II rowsort label-3365
SELECT - MIN ( - - 40 ) * 56 AS col1, - COUNT ( * ) * - - 12 AS col0
----
-2240
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3366
SELECT 84 - + 11 DIV - 64 DIV 3 * 88 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-3366
SELECT 84 - + 11 / - 64 / 3 * 88 AS col2
----
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3367
SELECT DISTINCT - - 67 + 91 + - + CAST( - 19 AS SIGNED ) DIV + + 90
----
158

skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT - - 67 + 91 + - + CAST ( - 19 AS INTEGER ) / + + 90
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT - - MIN( - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-3368
SELECT - - MIN ( - 82 )
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3369
SELECT ALL + 10 + + CAST( 99 AS SIGNED )
----
109

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL + 10 + + CAST ( 99 AS INTEGER )
----
109

query I rowsort
SELECT ALL + CASE - - CASE - 85 WHEN - + 2 * 40 * 5 THEN 98 / + + 0 * - - 95 + 99 END WHEN + 21 THEN + + 90 WHEN ( - ( 66 ) ) THEN NULLIF ( - 83, NULLIF ( + 96, - 84 ) * 37 ) ELSE + 72 END
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT DISTINCT + CASE - 68 WHEN 92 THEN 10 WHEN + MIN( + 78 ) - 21 - COUNT( ALL + 49 ) THEN NULL END + - 35 * 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT + CASE - 68 WHEN 92 THEN 10 WHEN + MIN ( + 78 ) - 21 - COUNT ( ALL + 49 ) THEN NULL END + - 35 * 2 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3372
SELECT DISTINCT + + COUNT( * ) * + 38 + - 68 DIV - 70
----
38

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT + + COUNT ( * ) * + 38 + - 68 / - 70
----
38

query I rowsort
SELECT 19 + - 42 - 97 AS col2
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3374
SELECT + CAST( - - 8 AS SIGNED ) * 29 * + 52 - 73
----
11991

skipif mysql # not compatible
query I rowsort label-3374
SELECT + CAST ( - - 8 AS INTEGER ) * 29 * + 52 - 73
----
11991

query II rowsort
SELECT 34 AS col0, + 27 + 43
----
34
70

query I rowsort
SELECT 42 - - 98 AS col2
----
140

query I rowsort
SELECT + COALESCE ( 83, - - 70 )
----
83

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

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

query I rowsort
SELECT ALL - ( + NULLIF ( + - 60, + - 9 * + - 92 + - + 4 + - ( 86 ) ) ) AS col2
----
60

query I rowsort
SELECT 80 + + - 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT ALL 53 * - 42 * - COUNT( * )
----
2226

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL 53 * - 42 * - COUNT ( * )
----
2226

query I rowsort
SELECT + 21 * - + 87 * + 55 + 73 - + 34
----
-100446

query I rowsort
SELECT 70 + + 36
----
106

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

skipif mysql # not compatible
query I rowsort label-3384
SELECT COUNT ( * ) / - 85 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3385
SELECT CAST( NULL AS SIGNED ) + + - ( + 17 ) + + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3385
SELECT CAST ( NULL AS INTEGER ) + + - ( + 17 ) + + - 14
----
NULL

query I rowsort
SELECT CASE + - 71 WHEN + 74 THEN NULL ELSE + - 69 - 39 END + + 40
----
-68

query I rowsort
SELECT DISTINCT 11 + + 2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3388
SELECT COUNT( * ) DIV + 65, COUNT( * ) * + + 99 * + 75 + - 0 AS col1
----
0
7425

skipif mysql # not compatible
query II rowsort label-3388
SELECT COUNT ( * ) / + 65, COUNT ( * ) * + + 99 * + 75 + - 0 AS col1
----
0
7425

onlyif mysql # DIV for integer division: 
query I rowsort label-3389
SELECT ALL 46 + ( 77 ) - 32 DIV 30
----
122

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL 46 + ( 77 ) - 32 / 30
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-3390
SELECT DISTINCT 5 DIV 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT 5 / 22 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3391
SELECT ALL + 76 + + 7 AS col2, - COUNT( * )
----
83
-1

skipif mysql # not compatible
query II rowsort label-3391
SELECT ALL + 76 + + 7 AS col2, - COUNT ( * )
----
83
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3392
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT - CAST ( NULL AS REAL ) * + 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT MIN( DISTINCT - 44 ) + + 76 * 89 AS col2
----
6720

skipif mysql # not compatible
query I rowsort label-3393
SELECT MIN ( DISTINCT - 44 ) + + 76 * 89 AS col2
----
6720

query I rowsort
SELECT 30 + + 42
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-3395
SELECT ALL + 0 + - - 34 + + 68 * - + 85 col1, ( - 80 ) + + - 46 DIV + 5
----
-5746
-89

skipif mysql # not compatible
query II rowsort label-3395
SELECT ALL + 0 + - - 34 + + 68 * - + 85 col1, ( - 80 ) + + - 46 / + 5
----
-5746
-89

query II rowsort
SELECT ( 93 ) col1, 17 col1
----
93
17

query I rowsort
SELECT ALL 13 + - NULLIF ( - 78, - 92 + 66 * + 42 ) AS col2
----
91

query I rowsort
SELECT 85 + + + 57 * - 63 AS col2
----
-3506

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

query I rowsort
SELECT 78 + 33 - + ( + + 62 ) col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3401
SELECT ALL + 23 DIV - + 39 + - + 26 * - - 41 - - + 31
----
-1035

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL + 23 / - + 39 + - + 26 * - - 41 - - + 31
----
-1035

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3402
SELECT MIN( 49 ) DIV + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3402
SELECT MIN ( 49 ) / + 86 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT NULLIF ( + 28, - COALESCE ( - COUNT( * ), + 82 ) * + - 70 ) + - CASE + 86 WHEN - 21 THEN NULL WHEN - MIN( 26 ) + - 6 + - - COUNT( * ) * ( - 63 ) * COALESCE ( - MIN( - 31 ) * COUNT( * ) + - COUNT( * ), 97 ) + ( 4 ) THEN 18 + + COUNT( * ) END - 2 * - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT NULLIF ( + 28, - COALESCE ( - COUNT ( * ), + 82 ) * + - 70 ) + - CASE + 86 WHEN - 21 THEN NULL WHEN - MIN ( 26 ) + - 6 + - - COUNT ( * ) * ( - 63 ) * COALESCE ( - MIN ( - 31 ) * COUNT ( * ) + - COUNT ( * ), 97 ) + ( 4 ) THEN 18 + + COUNT ( * ) END - 2 * - 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3405
SELECT ALL + 74 * - COUNT( * ) * + ( + 11 ) AS col0, - ( 78 )
----
-814
-78

skipif mysql # not compatible
query II rowsort label-3405
SELECT ALL + 74 * - COUNT ( * ) * + ( + 11 ) AS col0, - ( 78 )
----
-814
-78

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3407
SELECT + SUM( ALL - + 58 ) * 61 + + 66 + 51 col0, SUM( + 78 ) AS col2
----
-3421
78

skipif mysql # not compatible
query II rowsort label-3407
SELECT + SUM ( ALL - + 58 ) * 61 + + 66 + 51 col0, SUM ( + 78 ) AS col2
----
-3421
78

query I rowsort
SELECT ALL - 80 * NULLIF ( 82, - 54 ) AS col2
----
-6560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3409
SELECT 7 DIV - - 97 + 72 - + + COUNT( ALL + - 81 )
----
71

skipif mysql # not compatible
query I rowsort label-3409
SELECT 7 / - - 97 + 72 - + + COUNT ( ALL + - 81 )
----
71

query I rowsort
SELECT 66 * - 17 AS col2
----
-1122

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT COUNT( * ) + + - 49
----
-48

skipif mysql # not compatible
query I rowsort label-3411
SELECT COUNT ( * ) + + - 49
----
-48

query II rowsort
SELECT + 82 AS col2, 40 AS col2
----
82
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT COUNT( 12 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3413
SELECT COUNT ( 12 ) AS col0
----
1

query I rowsort
SELECT 15 * + + 43
----
645

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3416
SELECT ALL + CAST( 4 AS SIGNED ) * + NULLIF ( + 68, - - CASE 37 WHEN - - 55 THEN COUNT( COALESCE ( - + 41, 91 / 85 + + 31 ) ) WHEN - 55 THEN + 82 END ) + 34 AS col1
----
306

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL + CAST ( 4 AS INTEGER ) * + NULLIF ( + 68, - - CASE 37 WHEN - - 55 THEN COUNT ( COALESCE ( - + 41, 91 / 85 + + 31 ) ) WHEN - 55 THEN + 82 END ) + 34 AS col1
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT ALL 16 * 61 * - - MAX( + + 97 ) * + COUNT( * ) + - 45
----
94627

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL 16 * 61 * - - MAX ( + + 97 ) * + COUNT ( * ) + - 45
----
94627

query I rowsort
SELECT - 40 * - - 72
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT MIN( + 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-3419
SELECT MIN ( + 93 ) AS col2
----
93

query I rowsort
SELECT + 10 * + 95
----
950

query I rowsort
SELECT ALL 92 + - 36 + - + 74 * - 84
----
6272

query II rowsort
SELECT - 67 * + - 7 - - 77 * - - 31 * + - 97 + + 94 - 18 * 45, 95 AS col2
----
-231786
95

query I rowsort
SELECT + 33 - + 10
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3424
SELECT DISTINCT CAST( - - 17 AS SIGNED ) col0
----
17

skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT CAST ( - - 17 AS INTEGER ) col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT DISTINCT - CASE + ( - 20 ) WHEN + 66 THEN - 67 * - 80 + 52 + + + 88 + 84 WHEN + - ( + 13 ) THEN - 54 + - COUNT( * ) * SUM( ( 99 ) ) * - 25 WHEN 58 * + COUNT( * ) THEN - ( 42 ) / 26 WHEN + 71 / 10 THEN NULL END - 5 * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT - CASE + ( - 20 ) WHEN + 66 THEN - 67 * - 80 + 52 + + + 88 + 84 WHEN + - ( + 13 ) THEN - 54 + - COUNT ( * ) * SUM ( ( 99 ) ) * - 25 WHEN 58 * + COUNT ( * ) THEN - ( 42 ) / 26 WHEN + 71 / 10 THEN NULL END - 5 * - 24
----
NULL

query I rowsort
SELECT ALL 85 * 65 + - + 72 AS col2
----
5453

query I rowsort
SELECT + 55 * 75
----
4125

onlyif mysql # DIV for integer division: 
query I rowsort label-3428
SELECT ALL - 18 DIV + + 33
----
0

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL - 18 / + + 33
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3429
SELECT + + COUNT( * ) DIV CASE - COALESCE ( ( + + 35 ), 84 * + 81 + - 3 ) WHEN - 29 THEN + 62 WHEN 41 + + 83 THEN NULL ELSE - 34 * + COUNT( * ) END
----
0

skipif mysql # not compatible
query I rowsort label-3429
SELECT + + COUNT ( * ) / CASE - COALESCE ( ( + + 35 ), 84 * + 81 + - 3 ) WHEN - 29 THEN + 62 WHEN 41 + + 83 THEN NULL ELSE - 34 * + COUNT ( * ) END
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3431
SELECT - ( COALESCE ( + COUNT( * ), + - 58, - + CASE - ( + - 8 ) WHEN CAST( NULL AS SIGNED ) * - 50 + - 65 + - 7 + + 85 * - ( CAST( NULL AS SIGNED ) ) * + 58 + - COUNT( * ) - - CASE 93 WHEN 84 + + 38 * 47 THEN NULL ELSE + 55 END * + 69 THEN 92 ELSE NULL END + MAX( - 40 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3431
SELECT - ( COALESCE ( + COUNT ( * ), + - 58, - + CASE - ( + - 8 ) WHEN CAST ( NULL AS INTEGER ) * - 50 + - 65 + - 7 + + 85 * - ( CAST ( NULL AS INTEGER ) ) * + 58 + - COUNT ( * ) - - CASE 93 WHEN 84 + + 38 * 47 THEN NULL ELSE + 55 END * + 69 THEN 92 ELSE NULL END + MAX ( - 40 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT + COUNT( * ) - 88 - - - CASE ( - - ( + 84 ) ) WHEN 84 THEN - + 72 * + 97 * 92 WHEN + 73 * - ( + - 91 ) THEN NULL END * 65 AS col2
----
41764233

skipif mysql # not compatible
query I rowsort label-3432
SELECT + COUNT ( * ) - 88 - - - CASE ( - - ( + 84 ) ) WHEN 84 THEN - + 72 * + 97 * 92 WHEN + 73 * - ( + - 91 ) THEN NULL END * 65 AS col2
----
41764233

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT DISTINCT COALESCE ( - COUNT( * ), + + 96 + 82, 29 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT COALESCE ( - COUNT ( * ), + + 96 + 82, 29 ) AS col1
----
-1

query II rowsort
SELECT ALL 32 * ( + 76 ), + 76 + 77 AS col1
----
2432
153

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

query I rowsort
SELECT DISTINCT + 0 * + 35 + - - 85 col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3437
SELECT - ( + + 13 ) DIV - 8
----
1

skipif mysql # not compatible
query I rowsort label-3437
SELECT - ( + + 13 ) / - 8
----
1

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

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

query II rowsort
SELECT - 69 AS col2, + 68 AS col0
----
-69
68

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

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

query I rowsort
SELECT + 95 + + 25 * - 38 AS col0
----
-855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3442
SELECT DISTINCT + COUNT( * ) DIV + CAST( - 80 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT + COUNT ( * ) / + CAST ( - 80 AS INTEGER )
----
0

query I rowsort
SELECT - 77 * 64
----
-4928

onlyif mysql # DIV for integer division: 
query I rowsort label-3444
SELECT ALL + 40 DIV - - 93 + 20 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL + 40 / - - 93 + 20 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT ( + 51 ) * - - NULLIF ( + 47, - COUNT( * ) + - + 26 ) * - 83 + + + 50 AS col1
----
-198901

skipif mysql # not compatible
query I rowsort label-3445
SELECT ( + 51 ) * - - NULLIF ( + 47, - COUNT ( * ) + - + 26 ) * - 83 + + + 50 AS col1
----
-198901

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3446
SELECT ALL COALESCE ( 9, + 47 * - COUNT( * ), + 24 + - 6 ) DIV - 87 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL COALESCE ( 9, + 47 * - COUNT ( * ), + 24 + - 6 ) / - 87 + + COUNT ( * )
----
1

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

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT COUNT ( * ) / + 10 * 26 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT DISTINCT ( - 6 ) / + - ( + 40 ) + + NULLIF ( CASE + COUNT( * ) WHEN 45 + - 71 THEN - NULLIF ( COALESCE ( 44, - + 93 * - 48 * + 6 * + - 9 * 74 + - 84, - 22 / - ( - 99 / 1 ), 28 + + 88 ), - 73 ) + 24 * 62 END, + 76 / - 31 ) / + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT ( - 6 ) / + - ( + 40 ) + + NULLIF ( CASE + COUNT ( * ) WHEN 45 + - 71 THEN - NULLIF ( COALESCE ( 44, - + 93 * - 48 * + 6 * + - 9 * 74 + - 84, - 22 / - ( - 99 / 1 ), 28 + + 88 ), - 73 ) + 24 * 62 END, + 76 / - 31 ) / + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT ALL + COALESCE ( - COUNT( * ), + 88, - 79 ) / CASE - CASE - COALESCE ( - 77, - 17 ) WHEN 31 THEN - 59 * 50 + - 35 ELSE - 90 END WHEN + 85 THEN NULL WHEN - COUNT( * ) + + 58 THEN NULL WHEN NULLIF ( 39, + 24 ) - 2 * - 28 THEN NULL WHEN 3 THEN - COUNT( * ) ELSE NULL END + CASE + 6 + + 87 WHEN - 87 THEN - 87 * ( COUNT( * ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL + COALESCE ( - COUNT ( * ), + 88, - 79 ) / CASE - CASE - COALESCE ( - 77, - 17 ) WHEN 31 THEN - 59 * 50 + - 35 ELSE - 90 END WHEN + 85 THEN NULL WHEN - COUNT ( * ) + + 58 THEN NULL WHEN NULLIF ( 39, + 24 ) - 2 * - 28 THEN NULL WHEN 3 THEN - COUNT ( * ) ELSE NULL END + CASE + 6 + + 87 WHEN - 87 THEN - 87 * ( COUNT ( * ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT ALL - 63 * + + 80 * + COUNT( DISTINCT + 19 ) + + COUNT( * ) * 52 * - 22 col0
----
-6184

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL - 63 * + + 80 * + COUNT ( DISTINCT + 19 ) + + COUNT ( * ) * 52 * - 22 col0
----
-6184

query I rowsort
SELECT 13 * - - 17 + - 64 * - 81
----
5405

query I rowsort
SELECT ( - ( 74 ) )
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3453
SELECT ( COALESCE ( - + COUNT( * ), - COUNT( * ) * 54, 99 ) ) AS col1, 8 + - MAX( DISTINCT - - 25 ) AS col1
----
-1
-17

skipif mysql # not compatible
query II rowsort label-3453
SELECT ( COALESCE ( - + COUNT ( * ), - COUNT ( * ) * 54, 99 ) ) AS col1, 8 + - MAX ( DISTINCT - - 25 ) AS col1
----
-1
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-3454
SELECT + MIN( - - 86 ) AS col1, - 60 * - 99 + 51 * 34
----
86
7674

skipif mysql # not compatible
query II rowsort label-3454
SELECT + MIN ( - - 86 ) AS col1, - 60 * - 99 + 51 * 34
----
86
7674

query I rowsort
SELECT - 75 + + - 41
----
-116

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3457
SELECT ALL + - 85 * + ( - - 4 ) + 18 DIV - 86 + + - 57 * + 0 * + + 65 - 41 + + 40 * + + 73 col1, + 99 AS col2
----
2539
99

skipif mysql # not compatible
query II rowsort label-3457
SELECT ALL + - 85 * + ( - - 4 ) + 18 / - 86 + + - 57 * + 0 * + + 65 - 41 + + 40 * + + 73 col1, + 99 AS col2
----
2539
99

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

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

query I rowsort
SELECT DISTINCT + 89 * + 17 - + 39 AS col0
----
1474

query II rowsort
SELECT - 77 AS col0, - 73 AS col2
----
-77
-73

query II rowsort
SELECT DISTINCT + - 6 * + 6 AS col2, + 42
----
-36
42

query II rowsort
SELECT ALL + 28, + 94 AS col0
----
28
94

query I rowsort
SELECT + 22 * - 56 + - + 84
----
-1316

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

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

query I rowsort
SELECT DISTINCT + ( - 49 ) AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3466
SELECT + - 52 + 61 - - 7 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT + - 52 + 61 - - 7 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

query I rowsort
SELECT + + ( - 75 ) * + 73 col2
----
-5475

onlyif mysql # DIV for integer division: 
query I rowsort label-3469
SELECT DISTINCT + 13 DIV - - 16
----
0

skipif mysql # not compatible
query I rowsort label-3469
SELECT DISTINCT + 13 / - - 16
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3470
SELECT - 22 DIV + 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3470
SELECT - 22 / + 80 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT + 92 + + - 15 * + - NULLIF ( 15, - COUNT( * ) )
----
317

skipif mysql # not compatible
query I rowsort label-3471
SELECT + 92 + + - 15 * + - NULLIF ( 15, - COUNT ( * ) )
----
317

query I rowsort
SELECT ALL 61 * - - 82 - + 47
----
4955

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT + CASE + + 75 WHEN 14 * + 31 + + AVG ( DISTINCT - + 46 ) * + 9 + 59 THEN NULL WHEN + 28 THEN 28 END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT + CASE + + 75 WHEN 14 * + 31 + + AVG ( DISTINCT - + 46 ) * + 9 + 59 THEN NULL WHEN + 28 THEN 28 END * COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT + 1 + - + 56, + NULLIF ( + 62, + 36 ) + + + 86 AS col1
----
-55
148

query I rowsort
SELECT - ( - - 53 )
----
-53

query I rowsort
SELECT ALL 53 * - - 8 AS col1
----
424

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT DISTINCT MAX( - + 86 ) * + 0
----
0

skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT MAX ( - + 86 ) * + 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT ALL 47 + + + CAST( NULL AS SIGNED ) + - 93 * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL 47 + + + CAST ( NULL AS INTEGER ) + - 93 * 20
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 71, + 73 ) + + 53 AS col2
----
-18

query I rowsort
SELECT DISTINCT 82 + 63
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-3481
SELECT ALL - MIN( + 58 ) AS col2, 3 * 85 * 35 + + 18 * + 11 + + COUNT( * )
----
-58
9124

skipif mysql # not compatible
query II rowsort label-3481
SELECT ALL - MIN ( + 58 ) AS col2, 3 * 85 * 35 + + 18 * + 11 + + COUNT ( * )
----
-58
9124

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

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL COUNT ( * ) + - 21 AS col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3483
SELECT 11 * - - CASE 43 WHEN + NULLIF ( 13, - - 23 * - 3 + + COUNT( * ) + - - 32 ) THEN NULL ELSE + COUNT( * ) END DIV - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-3483
SELECT 11 * - - CASE 43 WHEN + NULLIF ( 13, - - 23 * - 3 + + COUNT ( * ) + - - 32 ) THEN NULL ELSE + COUNT ( * ) END / - COUNT ( * )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-3484
SELECT 46 * 40, COUNT( ALL + 12 ) AS col0
----
1840
1

skipif mysql # not compatible
query II rowsort label-3484
SELECT 46 * 40, COUNT ( ALL + 12 ) AS col0
----
1840
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3485
SELECT ALL - 72 DIV + + 75 AS col0, + 42 + + + CASE - 58 WHEN + 15 + - 35 THEN 96 ELSE NULL END AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3485
SELECT ALL - 72 / + + 75 AS col0, + 42 + + + CASE - 58 WHEN + 15 + - 35 THEN 96 ELSE NULL END AS col2
----
0
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3487
SELECT ALL 74 * - + COUNT( * ) * - - CAST( + 94 AS SIGNED ) AS col1
----
-6956

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL 74 * - + COUNT ( * ) * - - CAST ( + 94 AS INTEGER ) AS col1
----
-6956

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT ALL - - SUM( DISTINCT 42 )
----
42

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL - - SUM ( DISTINCT 42 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3489
SELECT CAST( - 90 AS SIGNED ) + + - 81 * + 51
----
-4221

skipif mysql # not compatible
query I rowsort label-3489
SELECT CAST ( - 90 AS INTEGER ) + + - 81 * + 51
----
-4221

onlyif mysql # DIV for integer division: 
query I rowsort label-3490
SELECT - 37 DIV + 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3490
SELECT - 37 / + 88 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3491
SELECT 94 * + 79 * 53 - 8 - + 69 DIV - 1 + - 86 DIV 19
----
393635

skipif mysql # not compatible
query I rowsort label-3491
SELECT 94 * + 79 * 53 - 8 - + 69 / - 1 + - 86 / 19
----
393635

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT ALL - + COUNT( + + 29 )
----
-1

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL - + COUNT ( + + 29 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT + CASE + + COUNT( * ) WHEN - + CASE - 86 WHEN - 16 / - 28 + + MIN( DISTINCT + + 14 ) / + + 64 THEN NULL WHEN - + 80 THEN + 86 END + + 83 THEN - + NULLIF ( + COUNT( * ), 29 ) WHEN + 53 + - 14 THEN - 25 * 29 + + 58 ELSE 73 * - 19 END
----
-1387

skipif mysql # not compatible
query I rowsort label-3497
SELECT + CASE + + COUNT ( * ) WHEN - + CASE - 86 WHEN - 16 / - 28 + + MIN ( DISTINCT + + 14 ) / + + 64 THEN NULL WHEN - + 80 THEN + 86 END + + 83 THEN - + NULLIF ( + COUNT ( * ), 29 ) WHEN + 53 + - 14 THEN - 25 * 29 + + 58 ELSE 73 * - 19 END
----
-1387

query II rowsort
SELECT + 53 * + ( - 6 ) col0, 28
----
-318
28

query I rowsort
SELECT ALL 93 + - 9 col0
----
84

query I rowsort
SELECT + 97 + 56
----
153

query I rowsort
SELECT DISTINCT + 92 + - 18 * 29 AS col1
----
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT + COUNT( * ) - + 29 col1
----
-28

skipif mysql # not compatible
query I rowsort label-3502
SELECT + COUNT ( * ) - + 29 col1
----
-28

query II rowsort
SELECT - 65 AS col1, - 76
----
-65
-76

query II rowsort
SELECT 67 AS col2, - 25 AS col2
----
67
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3505
SELECT ALL MIN( ALL - 29 ) + - CAST( NULL AS SIGNED ) * + + 82, 47 AS col2
----
NULL
47

skipif mysql # not compatible
query II rowsort label-3505
SELECT ALL MIN ( ALL - 29 ) + - CAST ( NULL AS INTEGER ) * + + 82, 47 AS col2
----
NULL
47

query I rowsort
SELECT DISTINCT + 67 + - + 71
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-3507
SELECT ALL 24 col0, COUNT( * ) * - - NULLIF ( + 56, 70 ) AS col0
----
24
56

skipif mysql # not compatible
query II rowsort label-3507
SELECT ALL 24 col0, COUNT ( * ) * - - NULLIF ( + 56, 70 ) AS col0
----
24
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3508
SELECT ALL + 49 + - 14 + - + CAST( NULL AS SIGNED ) * - NULLIF ( - CAST( NULL AS SIGNED ), + 98 * - 60 * 42 + - 7 ) + - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL + 49 + - 14 + - + CAST ( NULL AS INTEGER ) * - NULLIF ( - CAST ( NULL AS INTEGER ), + 98 * - 60 * 42 + - 7 ) + - - 68
----
NULL

query I rowsort
SELECT DISTINCT - 94 + - + 4
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3510
SELECT ALL 41 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL 41 / - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ( - 97 ) * - 75 * + COUNT( * ) * - + 86
----
-625650

skipif mysql # not compatible
query I rowsort label-3511
SELECT ( - 97 ) * - 75 * + COUNT ( * ) * - + 86
----
-625650

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT DISTINCT MIN( + + 75 ) * + 19
----
1425

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT MIN ( + + 75 ) * + 19
----
1425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3513
SELECT 11 + - - CAST( 23 AS SIGNED ) + 63
----
97

skipif mysql # not compatible
query I rowsort label-3513
SELECT 11 + - - CAST ( 23 AS INTEGER ) + 63
----
97

query I rowsort
SELECT ALL 33 * - + 35
----
-1155

query II rowsort
SELECT DISTINCT - 78 AS col2, + 3
----
-78
3

query I rowsort
SELECT 62 * - 29 + - 60
----
-1858

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3517
SELECT DISTINCT - - 9 AS col1, 0 DIV - COUNT( * ) + 42 + + 71 AS col2
----
9
113

skipif mysql # not compatible
query II rowsort label-3517
SELECT DISTINCT - - 9 AS col1, 0 / - COUNT ( * ) + 42 + + 71 AS col2
----
9
113

query I rowsort
SELECT CASE NULLIF ( + + 81, - ( + - 66 ) / + + 73 * 95 ) WHEN 11 THEN 60 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL - 7 * + - 69 AS col0
----
483

query I rowsort
SELECT + 1 + 48 AS col1
----
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT DISTINCT CASE - 70 WHEN + 71 + + CASE + + 38 WHEN - - ( CASE 67 WHEN - 17 THEN + + NULLIF ( + - 67, 95 + - + COUNT( * ) + + - 12 + + - COUNT( * ) * - NULLIF ( 82, - + 65 ) * ( ( + 4 ) + COUNT( * ) ) + NULLIF ( + 69 + ( 20 + 38 ) * + 71, - 39 ) ) * COUNT( * ) END ) * 68 THEN NULL WHEN 31 THEN NULL ELSE 92 * + 9 + 6 END + + 15 THEN CASE + MAX( ALL 63 ) WHEN 82 * 77 THEN NULL WHEN COUNT( * ) * - COUNT( * ) + 31 THEN + 52 WHEN - COUNT( * ) * - 86 THEN 2 ELSE NULL END WHEN + MAX( ( 95 ) ) THEN 91 * SUM( DISTINCT NULLIF ( 19, - 49 ) ) ELSE NULL END + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT CASE - 70 WHEN + 71 + + CASE + + 38 WHEN - - ( CASE 67 WHEN - 17 THEN + + NULLIF ( + - 67, 95 + - + COUNT ( * ) + + - 12 + + - COUNT ( * ) * - NULLIF ( 82, - + 65 ) * ( ( + 4 ) + COUNT ( * ) ) + NULLIF ( + 69 + ( 20 + 38 ) * + 71, - 39 ) ) * COUNT ( * ) END ) * 68 THEN NULL WHEN 31 THEN NULL ELSE 92 * + 9 + 6 END + + 15 THEN CASE + MAX ( ALL 63 ) WHEN 82 * 77 THEN NULL WHEN COUNT ( * ) * - COUNT ( * ) + 31 THEN + 52 WHEN - COUNT ( * ) * - 86 THEN 2 ELSE NULL END WHEN + MAX ( ( 95 ) ) THEN 91 * SUM ( DISTINCT NULLIF ( 19, - 49 ) ) ELSE NULL END + 56
----
NULL

query I rowsort
SELECT ALL - - 63 + - 88 + + ( + 93 ) + - ( + 81 )
----
-13

query I rowsort
SELECT ALL + 55 * + - 42 AS col0
----
-2310

query I rowsort
SELECT 57 + 27 * + 23 * + + ( + 59 )
----
36696

query I rowsort
SELECT + 60 * 62 AS col2
----
3720

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3528
SELECT CAST( NULL AS DECIMAL ) / - - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT CAST ( NULL AS REAL ) / - - 94
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3529
SELECT ALL + SUM( ALL + 68 ) + + - 0 AS col0, SUM( - 9 ) * 57 + - 23 AS col2
----
68
-536

skipif mysql # not compatible
query II rowsort label-3529
SELECT ALL + SUM ( ALL + 68 ) + + - 0 AS col0, SUM ( - 9 ) * 57 + - 23 AS col2
----
68
-536

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

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

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

query I rowsort
SELECT - COALESCE ( 98, COALESCE ( + 4, - 78 ) / + 1 ) + - 1 * + 10 * - 35 + - CASE + - COALESCE ( - 53, + 49 ) WHEN + 88 * - - 88 / - ( + - 64 ) * 13 THEN NULL WHEN 37 * 73 THEN - 20 END / 41
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3533
SELECT - 86 AS col0, - 54 * - COALESCE ( 69, + 1 * + + MAX( - 6 ) * - COUNT( * ) ) * 95 + CASE WHEN NOT ( - COUNT( DISTINCT 41 ) ) >= NULL THEN 93 END AS col1
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-3533
SELECT - 86 AS col0, - 54 * - COALESCE ( 69, + 1 * + + MAX ( - 6 ) * - COUNT ( * ) ) * 95 + CASE WHEN NOT ( - COUNT ( DISTINCT 41 ) ) >= NULL THEN 93 END AS col1
----
-86
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT DISTINCT + 62 - COUNT( DISTINCT + 93 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT + 62 - COUNT ( DISTINCT + 93 ) AS col1
----
61

query I rowsort
SELECT ALL - 90 * 25 * 33 AS col0
----
-74250

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT DISTINCT - MIN( ALL - - 72 ) * - 89 col0
----
6408

skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT - MIN ( ALL - - 72 ) * - 89 col0
----
6408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3539
SELECT + 64 + 10 / - COALESCE ( + - 82, 21 ) * 99 - + + COUNT( * ) + 12 + 46 * - 64 * - CAST( NULL AS SIGNED ) * - + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT + 64 + 10 / - COALESCE ( + - 82, 21 ) * 99 - + + COUNT ( * ) + 12 + 46 * - 64 * - CAST ( NULL AS INTEGER ) * - + 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT DISTINCT + 0 - + CASE + COUNT( * ) WHEN + + 15 THEN COUNT( * ) ELSE NULL END + + 80 + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT + 0 - + CASE + COUNT ( * ) WHEN + + 15 THEN COUNT ( * ) ELSE NULL END + + 80 + - 8
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3542
SELECT DISTINCT - ( + 21 ) * CASE - 96 WHEN 93 / 48 * - + 81 - + COUNT( ALL CAST( NULL AS SIGNED ) ) THEN - 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT - ( + 21 ) * CASE - 96 WHEN 93 / 48 * - + 81 - + COUNT ( ALL CAST ( NULL AS INTEGER ) ) THEN - 65 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3543
SELECT ALL 22 DIV - 92 AS col0, + 30 AS col0
----
0
30

skipif mysql # not compatible
query II rowsort label-3543
SELECT ALL 22 / - 92 AS col0, + 30 AS col0
----
0
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT - 28 * - + MAX( 18 ) * - 61
----
-30744

skipif mysql # not compatible
query I rowsort label-3544
SELECT - 28 * - + MAX ( 18 ) * - 61
----
-30744

query II rowsort
SELECT ALL CASE - 31 WHEN 44 THEN - 11 ELSE + - 30 END AS col0, 11 AS col1
----
-30
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT DISTINCT COALESCE ( + COUNT( * ), - 71 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT COALESCE ( + COUNT ( * ), - 71 ) col2
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3548
SELECT - 92 * + 43 * - 36 * 96 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3548
SELECT - 92 * + 43 * - 36 * 96 * CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT + ( - - 34 ) * + 51 + COUNT( * ) AS col2
----
1735

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT + ( - - 34 ) * + 51 + COUNT ( * ) AS col2
----
1735

query I rowsort
SELECT DISTINCT - 52 * + ( - 80 ) AS col0
----
4160

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT DISTINCT + - 71 * - - ( - 31 ) + - COUNT( * ) + - ( - - 30 )
----
2170

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT + - 71 * - - ( - 31 ) + - COUNT ( * ) + - ( - - 30 )
----
2170

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT ALL + 88 * - 31 + + + NULLIF ( - 15, CASE 60 WHEN + 61 THEN NULL WHEN - COALESCE ( COUNT( * ), + 14 ) * 83 THEN - + ( + + 25 ) WHEN + SUM( ( 20 ) ) + - + 41 * - - 88 THEN NULL ELSE NULL END ) AS col1
----
-2743

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL + 88 * - 31 + + + NULLIF ( - 15, CASE 60 WHEN + 61 THEN NULL WHEN - COALESCE ( COUNT ( * ), + 14 ) * 83 THEN - + ( + + 25 ) WHEN + SUM ( ( 20 ) ) + - + 41 * - - 88 THEN NULL ELSE NULL END ) AS col1
----
-2743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3554
SELECT + MIN( - 20 ) AS col0, CAST( NULL AS SIGNED ) * 18 AS col2
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-3554
SELECT + MIN ( - 20 ) AS col0, CAST ( NULL AS INTEGER ) * 18 AS col2
----
-20
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3556
SELECT - CAST( + - NULLIF ( + 31, 90 * - 81 + - ( + AVG ( + - 2 ) ) ) AS SIGNED ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-3556
SELECT - CAST ( + - NULLIF ( + 31, 90 * - 81 + - ( + AVG ( + - 2 ) ) ) AS INTEGER ) AS col1
----
31

query I rowsort
SELECT DISTINCT 19 * 85 + - - 4 + 0 AS col1
----
1619

onlyif mysql # aggregate syntax: 
query III rowsort label-3558
SELECT ALL - 87 * - 27 + + 35 * - 94, ( - CASE + 69 WHEN - 61 THEN NULL ELSE 37 END ) * + 84 col2, - 52 - + COUNT( * ) col0
----
-941
-3108
-53

skipif mysql # not compatible
query III rowsort label-3558
SELECT ALL - 87 * - 27 + + 35 * - 94, ( - CASE + 69 WHEN - 61 THEN NULL ELSE 37 END ) * + 84 col2, - 52 - + COUNT ( * ) col0
----
-941
-3108
-53

query I rowsort
SELECT + + 29 * - 84 + 27
----
-2409

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3561
SELECT ALL 98 DIV + - ( + - 67 ) + - - 86 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL 98 / + - ( + - 67 ) + - - 86 AS col1
----
87

query I rowsort
SELECT DISTINCT COALESCE ( - + 67, 53 ) AS col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3563
SELECT ALL + COUNT( * ) * 23 - + CAST( + 48 AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL + COUNT ( * ) * 23 - + CAST ( + 48 AS INTEGER )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT - COALESCE ( + + 76, COUNT( * ) * COUNT( * ) ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-3564
SELECT - COALESCE ( + + 76, COUNT ( * ) * COUNT ( * ) ) AS col0
----
-76

query I rowsort
SELECT - 36 * - 84
----
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT - 94 * + - MAX( + 59 )
----
5546

skipif mysql # not compatible
query I rowsort label-3566
SELECT - 94 * + - MAX ( + 59 )
----
5546

onlyif mysql # aggregate syntax: 
query II rowsort label-3567
SELECT ALL COALESCE ( + 25, + 81 ) * + SUM( - 43 ), - ( + 49 ) + + 8 col1
----
-1075
-41

skipif mysql # not compatible
query II rowsort label-3567
SELECT ALL COALESCE ( + 25, + 81 ) * + SUM ( - 43 ), - ( + 49 ) + + 8 col1
----
-1075
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-3568
SELECT ALL NULLIF ( - - 53, + ( + 70 ) ) - - COUNT( * ) AS col0, SUM( ALL 12 )
----
54
12

skipif mysql # not compatible
query II rowsort label-3568
SELECT ALL NULLIF ( - - 53, + ( + 70 ) ) - - COUNT ( * ) AS col0, SUM ( ALL 12 )
----
54
12

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3570
SELECT + 58 DIV + - 25
----
-2

skipif mysql # not compatible
query I rowsort label-3570
SELECT + 58 / + - 25
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT - MIN( - 33 ) * + - 13 + - COUNT( * )
----
-430

skipif mysql # not compatible
query I rowsort label-3571
SELECT - MIN ( - 33 ) * + - 13 + - COUNT ( * )
----
-430

query I rowsort
SELECT DISTINCT 23 * - 97 col0
----
-2231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3573
SELECT ALL ( + CASE 89 WHEN + 90 * - 20 + + CAST( 41 AS SIGNED ) + - ( 16 ) THEN + + ( + - CASE WHEN CAST( NULL AS SIGNED ) IS NOT NULL THEN + COUNT( * ) END ) WHEN + 99 THEN NULL WHEN - 72 THEN ( - 12 ) ELSE 73 * + + 86 - CASE - 94 WHEN + 72 * NULLIF ( - 27 * 45, 22 * + 94 ) THEN - 56 * + COALESCE ( - 55, 64 + - 40 ) WHEN 79 THEN 80 + + 44 WHEN + 63 THEN 8 * + 5 END END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL ( + CASE 89 WHEN + 90 * - 20 + + CAST ( 41 AS INTEGER ) + - ( 16 ) THEN + + ( + - CASE WHEN CAST ( NULL AS INTEGER ) IS NOT NULL THEN + COUNT ( * ) END ) WHEN + 99 THEN NULL WHEN - 72 THEN ( - 12 ) ELSE 73 * + + 86 - CASE - 94 WHEN + 72 * NULLIF ( - 27 * 45, 22 * + 94 ) THEN - 56 * + COALESCE ( - 55, 64 + - 40 ) WHEN 79 THEN 80 + + 44 WHEN + 63 THEN 8 * + 5 END END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT DISTINCT SUM( - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT SUM ( - 7 )
----
-7

query I rowsort
SELECT DISTINCT - 41 * 72 col1
----
-2952

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT DISTINCT COALESCE ( 97, + - SUM( - 89 ) - 18 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT COALESCE ( 97, + - SUM ( - 89 ) - 18 ) AS col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3577
SELECT ALL CASE CAST( + - 9 AS SIGNED ) WHEN + 55 THEN COALESCE ( 57, - 77, + + 96 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL CASE CAST ( + - 9 AS INTEGER ) WHEN + 55 THEN COALESCE ( 57, - 77, + + 96 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT + 16 + + + COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-3578
SELECT + 16 + + + COUNT ( * ) AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3579
SELECT - COUNT( * ) - + + 81 DIV - 79 col1
----
0

skipif mysql # not compatible
query I rowsort label-3579
SELECT - COUNT ( * ) - + + 81 / - 79 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT ALL ( + - MAX( 38 ) ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL ( + - MAX ( 38 ) ) col0
----
-38

query I rowsort
SELECT - 92 + - 59 * 36
----
-2216

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT ALL + - SUM( - 1 ) + - - 19 col0
----
20

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL + - SUM ( - 1 ) + - - 19 col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3583
SELECT - CAST( - ( SUM( ALL + 31 ) ) AS SIGNED ) + - - 81, ( - 44 ) AS col2
----
112
-44

skipif mysql # not compatible
query II rowsort label-3583
SELECT - CAST ( - ( SUM ( ALL + 31 ) ) AS INTEGER ) + - - 81, ( - 44 ) AS col2
----
112
-44

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

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

query I rowsort
SELECT DISTINCT + 12 + + 21 * + + 96 + - 56 + - 77 AS col0
----
1895

onlyif mysql # DIV for integer division: 
query I rowsort label-3586
SELECT ALL 22 DIV + 22 + - 36 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL 22 / + 22 + - 36 AS col0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-3587
SELECT + + 91 DIV 42 + + - 18 + + + 11 + - ( + 72 ) - + 57 * + 2 - - + 55
----
-136

skipif mysql # not compatible
query I rowsort label-3587
SELECT + + 91 / 42 + + - 18 + + + 11 + - ( + 72 ) - + 57 * + 2 - - + 55
----
-136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3588
SELECT ALL COUNT( * ) DIV - MAX( 47 ) + - 33 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL COUNT ( * ) / - MAX ( 47 ) + - 33 AS col1
----
-33

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3590
SELECT - - COUNT( * ) * - 35 * - NULLIF ( 51, + - 12 + + + CAST( - COUNT( * ) AS SIGNED ) )
----
1785

skipif mysql # not compatible
query I rowsort label-3590
SELECT - - COUNT ( * ) * - 35 * - NULLIF ( 51, + - 12 + + + CAST ( - COUNT ( * ) AS INTEGER ) )
----
1785

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT + - 18 + COUNT( * ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3591
SELECT + - 18 + COUNT ( * ) AS col2
----
-17

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3593
SELECT + 29 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-3593
SELECT + 29 / 78
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3594
SELECT DISTINCT + CAST( + 44 AS SIGNED ) DIV + - 38 + + 20 + + 53 - - - 15 - + NULLIF ( + COUNT( * ), + 94 DIV + ( - + 25 ) - 66 ) * - 13 * - COUNT( DISTINCT + 7 ) - 5
----
39

skipif mysql # not compatible
query I rowsort label-3594
SELECT DISTINCT + CAST ( + 44 AS INTEGER ) / + - 38 + + 20 + + 53 - - - 15 - + NULLIF ( + COUNT ( * ), + 94 / + ( - + 25 ) - 66 ) * - 13 * - COUNT ( DISTINCT + 7 ) - 5
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3595
SELECT ALL 29 / - NULLIF ( 49, 53 ) - - CASE + + 10 WHEN AVG ( ( + - 43 ) ) + - 70 THEN + 91 WHEN 93 * + + 32 - 30 * - - 30 THEN NULL END + CASE - ( + CAST( NULL AS SIGNED ) ) WHEN - 4 * 79 + 69 THEN 88 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL 29 / - NULLIF ( 49, 53 ) - - CASE + + 10 WHEN AVG ( ( + - 43 ) ) + - 70 THEN + 91 WHEN 93 * + + 32 - 30 * - - 30 THEN NULL END + CASE - ( + CAST ( NULL AS INTEGER ) ) WHEN - 4 * 79 + 69 THEN 88 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3596
SELECT + 56 * - CAST( 11 AS SIGNED ) AS col1
----
-616

skipif mysql # not compatible
query I rowsort label-3596
SELECT + 56 * - CAST ( 11 AS INTEGER ) AS col1
----
-616

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3597
SELECT ALL NULLIF ( 78, - + MIN( + ( + 0 ) ) - - CAST( NULL AS DECIMAL ) ) * - 20 AS col0
----
-1560

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL NULLIF ( 78, - + MIN ( + ( + 0 ) ) - - CAST ( NULL AS REAL ) ) * - 20 AS col0
----
-1560

query I rowsort
SELECT DISTINCT + + 88 - 46 AS col1
----
42

query I rowsort
SELECT ALL - - 38 - + 13
----
25

query II rowsort
SELECT DISTINCT - 84, + 30 AS col1
----
-84
30

onlyif mysql # aggregate syntax: 
query II rowsort label-3601
SELECT ALL COUNT( * ) * + 28, - 83 AS col2
----
28
-83

skipif mysql # not compatible
query II rowsort label-3601
SELECT ALL COUNT ( * ) * + 28, - 83 AS col2
----
28
-83

query I rowsort
SELECT 85 + 95 AS col2
----
180

query II rowsort
SELECT - 74, + COALESCE ( + 67, 87 * - + COALESCE ( - + 4, + + 17 ) ) + + 70 AS col0
----
-74
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3604
SELECT - 54 * + 85 + - - 69 * - 24 / + + ( CASE - 6 WHEN 8 / - 96 THEN - + 98 / + + 14 + + COALESCE ( - 42, 53, + CASE AVG ( 90 ) WHEN - - MIN( 3 ) * + + 93 * - - 10 THEN NULL WHEN 95 + 77 THEN 90 END + + 96, AVG ( DISTINCT 97 ) ) * + COALESCE ( + COUNT( * ) * 77, 89, COUNT( * ) ) + + CAST( 67 + + 93 AS SIGNED ) END ) * - 43 + 85 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT - 54 * + 85 + - - 69 * - 24 / + + ( CASE - 6 WHEN 8 / - 96 THEN - + 98 / + + 14 + + COALESCE ( - 42, 53, + CASE AVG ( 90 ) WHEN - - MIN ( 3 ) * + + 93 * - - 10 THEN NULL WHEN 95 + 77 THEN 90 END + + 96, AVG ( DISTINCT 97 ) ) * + COALESCE ( + COUNT ( * ) * 77, 89, COUNT ( * ) ) + + CAST ( 67 + + 93 AS INTEGER ) END ) * - 43 + 85 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 20 + 38 * - 37
----
-1386

onlyif mysql # DIV for integer division: 
query II rowsort label-3606
SELECT ALL 31 AS col2, 23 DIV 79
----
31
0

skipif mysql # not compatible
query II rowsort label-3606
SELECT ALL 31 AS col2, 23 / 79
----
31
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3607
SELECT ALL CAST( NULL AS SIGNED ) * - 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL CAST ( NULL AS INTEGER ) * - 90 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3609
SELECT DISTINCT ( - CAST( 48 AS SIGNED ) ) DIV + COUNT( * ), CAST( - - 90 AS SIGNED ) col2
----
-48
90

skipif mysql # not compatible
query II rowsort label-3609
SELECT DISTINCT ( - CAST ( 48 AS INTEGER ) ) / + COUNT ( * ), CAST ( - - 90 AS INTEGER ) col2
----
-48
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT COUNT( * ) + ( 53 )
----
54

skipif mysql # not compatible
query I rowsort label-3610
SELECT COUNT ( * ) + ( 53 )
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3611
SELECT DISTINCT 43 AS col0, - COUNT( * ) * - - 89
----
43
-89

skipif mysql # not compatible
query II rowsort label-3611
SELECT DISTINCT 43 AS col0, - COUNT ( * ) * - - 89
----
43
-89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT ( + 5 ) * + 48 * - 7 + + - 84 * MIN( DISTINCT + - 29 ) AS col1
----
756

skipif mysql # not compatible
query I rowsort label-3613
SELECT ( + 5 ) * + 48 * - 7 + + - 84 * MIN ( DISTINCT + - 29 ) AS col1
----
756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3614
SELECT 65 + 41 + - 3 / + + COUNT( * ) + - - CASE - - 40 WHEN - + 26 THEN - 85 WHEN - - 73 THEN + 84 END + - 89 + + - ( 24 ) / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT 65 + 41 + - 3 / + + COUNT ( * ) + - - CASE - - 40 WHEN - + 26 THEN - 85 WHEN - - 73 THEN + 84 END + - 89 + + - ( 24 ) / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 77 AS col0, + 61 * - - 90
----
77
5490

onlyif mysql # DIV for integer division: 
query I rowsort label-3616
SELECT 39 DIV + + 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3616
SELECT 39 / + + 63 AS col2
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3618
SELECT ALL + 28 + + + ( - COALESCE ( 98, NULLIF ( - 5, - - 10 ) - + - 38 * CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * + 80 * 46 ) ) * - - 24 + 97 AS col1, - ( - - COALESCE ( + COUNT( * ), + 97 ) ) * 54 * - ( MAX( DISTINCT NULLIF ( + 80, 2 ) ) ) * - 25 AS col2
----
-2227
-108000

skipif mysql # not compatible
query II rowsort label-3618
SELECT ALL + 28 + + + ( - COALESCE ( 98, NULLIF ( - 5, - - 10 ) - + - 38 * CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * + 80 * 46 ) ) * - - 24 + 97 AS col1, - ( - - COALESCE ( + COUNT ( * ), + 97 ) ) * 54 * - ( MAX ( DISTINCT NULLIF ( + 80, 2 ) ) ) * - 25 AS col2
----
-2227
-108000

onlyif mysql # aggregate syntax: 
query II rowsort label-3619
SELECT 94 AS col2, 59 * 40 + MAX( ( 3 ) )
----
94
2363

skipif mysql # not compatible
query II rowsort label-3619
SELECT 94 AS col2, 59 * 40 + MAX ( ( 3 ) )
----
94
2363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3620
SELECT ALL - 83 + + CAST( NULL AS DECIMAL ) * COUNT( * ) * + CASE + + 98 WHEN + + 56 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN + + COUNT( * ) * 55 - + + 56 + + 2 + - + MIN( DISTINCT + 43 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL - 83 + + CAST ( NULL AS REAL ) * COUNT ( * ) * + CASE + + 98 WHEN + + 56 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN + + COUNT ( * ) * 55 - + + 56 + + 2 + - + MIN ( DISTINCT + 43 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 19 + + 22
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT ALL + 28 + + SUM( ALL + - 28 )
----
0

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL + 28 + + SUM ( ALL + - 28 )
----
0

query I rowsort
SELECT DISTINCT + - 27 + + 12
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3624
SELECT 58 AS col1, 59 + - + NULLIF ( + - 1, COUNT( * ) )
----
58
60

skipif mysql # not compatible
query II rowsort label-3624
SELECT 58 AS col1, 59 + - + NULLIF ( + - 1, COUNT ( * ) )
----
58
60

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

query II rowsort
SELECT ALL - 42, - 67 AS col2
----
-42
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3627
SELECT DISTINCT - 65 - - CAST( + COUNT( * ) AS SIGNED ) * + 44 + 31 * - 47, 15 AS col0
----
-1478
15

skipif mysql # not compatible
query II rowsort label-3627
SELECT DISTINCT - 65 - - CAST ( + COUNT ( * ) AS INTEGER ) * + 44 + 31 * - 47, 15 AS col0
----
-1478
15

query I rowsort
SELECT DISTINCT - NULLIF ( - - 15, + 62 ) AS col2
----
-15

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

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

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

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL - ( - 50 ) - + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 74 * + 53 AS col1
----
-3922

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3633
SELECT - - 20 * - + COUNT( * ) - + - CAST( NULL AS SIGNED ) + + 46 * + - 96 + - 47 * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT - - 20 * - + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) + + 46 * + - 96 + - 47 * - 86
----
NULL

query I rowsort
SELECT - 51 * - - 39 * - 61 + - 67 col2
----
121262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3635
SELECT ALL - NULLIF ( + CAST( 83 AS SIGNED ), - 75 + 64 ) DIV - COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL - NULLIF ( + CAST ( 83 AS INTEGER ), - 75 + 64 ) / - COUNT ( * ) AS col2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3636
SELECT 4 DIV + - ( 49 )
----
0

skipif mysql # not compatible
query I rowsort label-3636
SELECT 4 / + - ( 49 )
----
0

query I rowsort
SELECT 40 * + + 49 AS col2
----
1960

query I rowsort
SELECT 14 * - 63 AS col1
----
-882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3639
SELECT ALL ( 62 ) * - COUNT( * ) + 58 + + MIN( - - CAST( NULL AS SIGNED ) ) * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL ( 62 ) * - COUNT ( * ) + 58 + + MIN ( - - CAST ( NULL AS INTEGER ) ) * 71
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3641
SELECT ALL + 68 * + COUNT( * ), 40 AS col0, - - CAST( + 91 AS SIGNED ) + + 6 + - + 72 AS col0
----
68
40
25

skipif mysql # not compatible
query III rowsort label-3641
SELECT ALL + 68 * + COUNT ( * ), 40 AS col0, - - CAST ( + 91 AS INTEGER ) + + 6 + - + 72 AS col0
----
68
40
25

query I rowsort
SELECT ALL + 59 + ( - 33 )
----
26

query I rowsort
SELECT ALL - 96 + - + 90
----
-186

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

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - - 15 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3646
SELECT CAST( + 99 AS SIGNED ) * - 70
----
-6930

skipif mysql # not compatible
query I rowsort label-3646
SELECT CAST ( + 99 AS INTEGER ) * - 70
----
-6930

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT 45 - - + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-3648
SELECT 45 - - + COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT - COUNT( DISTINCT 62 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3649
SELECT - COUNT ( DISTINCT 62 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3650
SELECT ALL 57 + - 43 DIV - 62
----
57

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL 57 + - 43 / - 62
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT 55 - - SUM( - 44 ) * 22
----
-913

skipif mysql # not compatible
query I rowsort label-3651
SELECT 55 - - SUM ( - 44 ) * 22
----
-913

onlyif mysql # aggregate syntax: 
query II rowsort label-3652
SELECT ALL - ( + COUNT( * ) ) + + + 87 - 88 * + ( + COUNT( * ) ) * - 63, + 30 AS col0
----
5630
30

skipif mysql # not compatible
query II rowsort label-3652
SELECT ALL - ( + COUNT ( * ) ) + + + 87 - 88 * + ( + COUNT ( * ) ) * - 63, + 30 AS col0
----
5630
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3653
SELECT - SUM( 27 ), - COALESCE ( + 13, + - CAST( NULL AS SIGNED ) * 0 ) * - - 0 * + 62 AS col0
----
-27
0

skipif mysql # not compatible
query II rowsort label-3653
SELECT - SUM ( 27 ), - COALESCE ( + 13, + - CAST ( NULL AS INTEGER ) * 0 ) * - - 0 * + 62 AS col0
----
-27
0

query I rowsort
SELECT ALL 91 + + - 90
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT - SUM( DISTINCT - + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-3655
SELECT - SUM ( DISTINCT - + 52 )
----
52

query I rowsort
SELECT ALL 35 + - 45
----
-10

query I rowsort
SELECT - 88 - + 97 col1
----
-185

query II rowsort
SELECT - ( - + 74 ), COALESCE ( + COALESCE ( - ( - 35 ), + - 65 ), 32, + - 8 ) AS col1
----
74
35

query I rowsort
SELECT 47 + - + 72 + - 65 AS col0
----
-90

query I rowsort
SELECT ALL + 96 - 65
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT 78 * MAX( + 9 )
----
702

skipif mysql # not compatible
query I rowsort label-3661
SELECT 78 * MAX ( + 9 )
----
702

query I rowsort
SELECT + 11 * - + 38 * 2
----
-836

onlyif mysql # aggregate syntax: 
query II rowsort label-3663
SELECT DISTINCT COALESCE ( - 13, - 73 + - + 79 * + + 80 ) AS col1, - MAX( 86 ) AS col2
----
-13
-86

skipif mysql # not compatible
query II rowsort label-3663
SELECT DISTINCT COALESCE ( - 13, - 73 + - + 79 * + + 80 ) AS col1, - MAX ( 86 ) AS col2
----
-13
-86

query I rowsort
SELECT + + 16 + - 87 AS col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3665
SELECT + - COALESCE ( + 73, CAST( + ( + 96 ) AS SIGNED ), + 8 ) + - COUNT( * ) col0
----
-74

skipif mysql # not compatible
query I rowsort label-3665
SELECT + - COALESCE ( + 73, CAST ( + ( + 96 ) AS INTEGER ), + 8 ) + - COUNT ( * ) col0
----
-74

query I rowsort
SELECT - - ( + - 70 ) + - - ( 90 ) col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT + + MAX( DISTINCT - 52 ) + - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-3667
SELECT + + MAX ( DISTINCT - 52 ) + - COUNT ( * )
----
-53

query I rowsort
SELECT + - 89 * + 97 + - - 81 * - 66 - 51
----
-14030

query I rowsort
SELECT - - 59 * + 90 + + 94 col1
----
5404

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

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

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

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

query II rowsort
SELECT ALL - ( - 53 ) * - 11 * - 68 col2, - 62 + 76 + - 17 + - 95 AS col1
----
39644
-98

query I rowsort
SELECT DISTINCT 83 * - 33
----
-2739

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

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

query I rowsort
SELECT DISTINCT 0 * 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT DISTINCT + ( - MIN( ALL + - 75 ) )
----
75

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT + ( - MIN ( ALL + - 75 ) )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT MIN( 72 ) * - COALESCE ( + 40, + 71 ) * 22 + 84
----
-63276

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT MIN ( 72 ) * - COALESCE ( + 40, + 71 ) * 22 + 84
----
-63276

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT DISTINCT + 79 * - 89 + - - 53 - COUNT( * ) * - MAX( ALL 67 ) AS col0
----
-6911

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT + 79 * - 89 + - - 53 - COUNT ( * ) * - MAX ( ALL 67 ) AS col0
----
-6911

query I rowsort
SELECT + 99 - - - 50 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT - 17 + 33 + 68 * + MAX( - + 87 ) AS col0
----
-5900

skipif mysql # not compatible
query I rowsort label-3680
SELECT - 17 + 33 + 68 * + MAX ( - + 87 ) AS col0
----
-5900

query I rowsort
SELECT + 70 * - 96 * - ( + + 24 ) + + 89 col1
----
161369

onlyif mysql # DIV for integer division: 
query I rowsort label-3682
SELECT - 93 DIV + - 88 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3682
SELECT - 93 / + - 88 AS col1
----
1

query I rowsort
SELECT - 99 + + 55 AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3684
SELECT DISTINCT - 83 DIV MAX( ALL + 59 ), - CAST( - 80 AS SIGNED ) - + - 34 AS col0
----
-1
114

skipif mysql # not compatible
query II rowsort label-3684
SELECT DISTINCT - 83 / MAX ( ALL + 59 ), - CAST ( - 80 AS INTEGER ) - + - 34 AS col0
----
-1
114

query I rowsort
SELECT ALL + 28 + 41 * + - 93
----
-3785

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3686
SELECT - CAST( NULL AS DECIMAL ) * 64 + - 23 + + 61 * + ( 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT - CAST ( NULL AS REAL ) * 64 + - 23 + + 61 * + ( 45 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3687
SELECT DISTINCT COUNT( DISTINCT + CAST( + 34 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT COUNT ( DISTINCT + CAST ( + 34 AS INTEGER ) ) AS col1
----
1

query I rowsort
SELECT ALL - 65 * + 18 AS col1
----
-1170

query I rowsort
SELECT - 63 + 48 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT ALL + ( + 76 ) + - + MIN( ALL + ( + 29 ) )
----
47

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL + ( + 76 ) + - + MIN ( ALL + ( + 29 ) )
----
47

query I rowsort
SELECT DISTINCT - 20 * - 54
----
1080

query I rowsort
SELECT DISTINCT - 11 - - 40 col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT - SUM( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3693
SELECT - SUM ( - 0 )
----
0

query I rowsort
SELECT ALL - 0 * + 62
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3695
SELECT + - NULLIF ( 4, - CAST( NULL AS SIGNED ) + - - 34 - + COUNT( * ) ) + - 88 + - 38 * + NULLIF ( 44, - 82 - 64 ) * COALESCE ( 0, 22 + + COUNT( * ) DIV + COUNT( * ), CAST( NULL AS SIGNED ) + - + COUNT( * ) * + 35 * 85 * - MAX( + 36 ) )
----
-92

skipif mysql # not compatible
query I rowsort label-3695
SELECT + - NULLIF ( 4, - CAST ( NULL AS INTEGER ) + - - 34 - + COUNT ( * ) ) + - 88 + - 38 * + NULLIF ( 44, - 82 - 64 ) * COALESCE ( 0, 22 + + COUNT ( * ) / + COUNT ( * ), CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * + 35 * 85 * - MAX ( + 36 ) )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3696
SELECT - 39 * SUM( CAST( NULL AS SIGNED ) ) * - + NULLIF ( - 4, - ( 63 ) ) - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3696
SELECT - 39 * SUM ( CAST ( NULL AS INTEGER ) ) * - + NULLIF ( - 4, - ( 63 ) ) - 60
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3697
SELECT ALL 54 col0, CASE 38 WHEN - CASE + 21 WHEN - 53 * - - CASE 10 WHEN + + 2 THEN + 11 + 99 END / - COUNT( * ) THEN + 52 * CAST( NULL AS DECIMAL ) END / - 6 * - + 14 THEN 89 END
----
54
NULL

skipif mysql # not compatible
query II rowsort label-3697
SELECT ALL 54 col0, CASE 38 WHEN - CASE + 21 WHEN - 53 * - - CASE 10 WHEN + + 2 THEN + 11 + 99 END / - COUNT ( * ) THEN + 52 * CAST ( NULL AS REAL ) END / - 6 * - + 14 THEN 89 END
----
54
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3698
SELECT - 66, 28 + + SUM( ALL - 96 ) * + COUNT( * ) AS col0
----
-66
-68

skipif mysql # not compatible
query II rowsort label-3698
SELECT - 66, 28 + + SUM ( ALL - 96 ) * + COUNT ( * ) AS col0
----
-66
-68

query I rowsort
SELECT DISTINCT ( 55 ) AS col1
----
55

query II rowsort
SELECT DISTINCT - 13, 91 AS col2
----
-13
91

query I rowsort
SELECT ALL 5 * - 63 AS col0
----
-315

onlyif mysql # DIV for integer division: 
query I rowsort label-3702
SELECT ALL + 74 DIV + ( - ( + - 13 ) ) col0
----
5

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL + 74 / + ( - ( + - 13 ) ) col0
----
5

query I rowsort
SELECT DISTINCT + 68 * - + 58
----
-3944

query I rowsort
SELECT + - 35 - 68 AS col1
----
-103

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3706
SELECT DISTINCT + 13 col0, COUNT( * ) * 89
----
13
89

skipif mysql # not compatible
query II rowsort label-3706
SELECT DISTINCT + 13 col0, COUNT ( * ) * 89
----
13
89

query I rowsort
SELECT - + 80 * + 23
----
-1840

query I rowsort
SELECT ALL 38 * - 66
----
-2508

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT + 36 - - MIN( ALL - 43 )
----
-7

skipif mysql # not compatible
query I rowsort label-3709
SELECT + 36 - - MIN ( ALL - 43 )
----
-7

query I rowsort
SELECT ALL 42 * - - 3 * - 11
----
-1386

onlyif mysql # DIV for integer division: 
query I rowsort label-3711
SELECT DISTINCT 11 DIV - 83 * + 91 + + 40
----
40

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT 11 / - 83 * + 91 + + 40
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3712
SELECT ALL 79 DIV + 53 + SUM( + 50 ) - + 20
----
31

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL 79 / + 53 + SUM ( + 50 ) - + 20
----
31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3713
SELECT + 0 + CAST( NULL AS SIGNED ) AS col0, + 21 + - 33 DIV + 44 AS col1
----
NULL
21

skipif mysql # not compatible
query II rowsort label-3713
SELECT + 0 + CAST ( NULL AS INTEGER ) AS col0, + 21 + - 33 / + 44 AS col1
----
NULL
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3714
SELECT 59 * + 23 + - - NULLIF ( 24, + - 27 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT 59 * + 23 + - - NULLIF ( 24, + - 27 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 2 * 6 + - 32 AS col2
----
-44

query I rowsort
SELECT - 58 - - 1 + - - 44
----
-13

query I rowsort
SELECT ( + + ( - 64 ) ) AS col0
----
-64

query II rowsort
SELECT ( 66 ) AS col2, + 1 AS col2
----
66
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3719
SELECT ALL CAST( NULL AS SIGNED ) * 67 + + 20 / + COALESCE ( - COUNT( * ), - ( - COUNT( * ) ) ), 34 + - 1 + - COALESCE ( NULLIF ( 40, + 3 / + 98 ), - MIN( DISTINCT - 5 ) - - 77 ) * + CASE - 97 WHEN - 93 * - 41 + + + 46 / ( CASE WHEN 71 NOT BETWEEN 40 AND ( + MIN( - 45 ) + 17 ) THEN - 73 WHEN 99 < ( NULL ) THEN NULL END ) + - 70 * 2 THEN NULL WHEN CAST( 52 AS SIGNED ) THEN 34 / + 16 END * - 29 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3719
SELECT ALL CAST ( NULL AS INTEGER ) * 67 + + 20 / + COALESCE ( - COUNT ( * ), - ( - COUNT ( * ) ) ), 34 + - 1 + - COALESCE ( NULLIF ( 40, + 3 / + 98 ), - MIN ( DISTINCT - 5 ) - - 77 ) * + CASE - 97 WHEN - 93 * - 41 + + + 46 / ( CASE WHEN 71 NOT BETWEEN 40 AND ( + MIN ( - 45 ) + 17 ) THEN - 73 WHEN 99 < ( NULL ) THEN NULL END ) + - 70 * 2 THEN NULL WHEN CAST ( 52 AS INTEGER ) THEN 34 / + 16 END * - 29 AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT + 87 * - 12 * CAST( + COALESCE ( COALESCE ( - 12, - 51 ), + - 40, + 63 * + + 39 ) AS SIGNED )
----
12528

skipif mysql # not compatible
query I rowsort label-3720
SELECT + 87 * - 12 * CAST ( + COALESCE ( COALESCE ( - 12, - 51 ), + - 40, + 63 * + + 39 ) AS INTEGER )
----
12528

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT DISTINCT + 25 * ( + 78 ) + - COUNT( * ) AS col0
----
1949

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT + 25 * ( + 78 ) + - COUNT ( * ) AS col0
----
1949

query I rowsort
SELECT - 22 + - - 94 AS col2
----
72

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3724
SELECT NULLIF ( 70, - MIN( - - 45 ) ), + 25 AS col0
----
70
25

skipif mysql # not compatible
query II rowsort label-3724
SELECT NULLIF ( 70, - MIN ( - - 45 ) ), + 25 AS col0
----
70
25

query I rowsort
SELECT ALL NULLIF ( - 27, + - 7 ) AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT ALL 78 * + SUM( DISTINCT - 10 ) - + + 92 + + 59 * - 4 * + 5
----
-2052

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL 78 * + SUM ( DISTINCT - 10 ) - + + 92 + + 59 * - 4 * + 5
----
-2052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT DISTINCT NULLIF ( - ( + ( + - CAST( NULL AS SIGNED ) ) ), - 57 + - ( - 41 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT NULLIF ( - ( + ( + - CAST ( NULL AS INTEGER ) ) ), - 57 + - ( - 41 ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT + 84 * 55 + CASE + 42 WHEN + 35 + MIN( - 36 ) + 27 THEN NULL ELSE - ( + 89 ) - - - 22 + - - 24 * - + 58 + - - 63 * 75 + + 84 END - + + NULLIF ( SUM( + 16 ), + COUNT( * ) ) col1
----
7910

skipif mysql # not compatible
query I rowsort label-3728
SELECT + 84 * 55 + CASE + 42 WHEN + 35 + MIN ( - 36 ) + 27 THEN NULL ELSE - ( + 89 ) - - - 22 + - - 24 * - + 58 + - - 63 * 75 + + 84 END - + + NULLIF ( SUM ( + 16 ), + COUNT ( * ) ) col1
----
7910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3729
SELECT - COALESCE ( + COUNT( * ), + 87 * ( - COUNT( * ) ) - AVG ( 39 ) ) DIV 3 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3729
SELECT - COALESCE ( + COUNT ( * ), + 87 * ( - COUNT ( * ) ) - AVG ( 39 ) ) / 3 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3730
SELECT ALL 9 * - + 70 - + + 0 + - COUNT( ALL - - 45 ) + - CAST( NULL AS SIGNED ) + - 22 * - - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL 9 * - + 70 - + + 0 + - COUNT ( ALL - - 45 ) + - CAST ( NULL AS INTEGER ) + - 22 * - - 73
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT ALL + - ( - 84 ) / - ( - ( - 68 ) ) * 7 * 99 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL + - ( - 84 ) / - ( - ( - 68 ) ) * 7 * 99 - + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3733
SELECT 7 + + - NULLIF ( + CAST( + + 31 AS SIGNED ), + 81 ) + + - 91
----
-115

skipif mysql # not compatible
query I rowsort label-3733
SELECT 7 + + - NULLIF ( + CAST ( + + 31 AS INTEGER ), + 81 ) + + - 91
----
-115

query I rowsort
SELECT ALL + + 79 * + 53
----
4187

query I rowsort
SELECT ALL - 44 * + - 36
----
1584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3736
SELECT ALL - + 66 * 3 / + CAST( NULL AS SIGNED ) * 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL - + 66 * 3 / + CAST ( NULL AS INTEGER ) * 92 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3737
SELECT + COUNT ( * ) + - 0 * - 73 AS col1
----
1

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

skipif mysql # not compatible
query I rowsort label-3738
SELECT MAX ( ALL + - 89 ) + 34 AS col1
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3739
SELECT DISTINCT - CAST( + - 42 AS SIGNED ) + + 86
----
128

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT - CAST ( + - 42 AS INTEGER ) + + 86
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-3740
SELECT ALL 83 + - + 22 col2, 70 * COUNT( * ) * + 77 * - 31 * - 49 * + - 15 AS col1
----
61
-122811150

skipif mysql # not compatible
query II rowsort label-3740
SELECT ALL 83 + - + 22 col2, 70 * COUNT ( * ) * + 77 * - 31 * - 49 * + - 15 AS col1
----
61
-122811150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3741
SELECT 56 + + 79 * + + 66 / + 53 + + - CASE + - COALESCE ( + + CAST( NULL AS SIGNED ), + 79, + COUNT( * ) * + 80 + + 28 * - - SUM( - 10 ) ) WHEN - 50 THEN - 17 + + 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3741
SELECT 56 + + 79 * + + 66 / + 53 + + - CASE + - COALESCE ( + + CAST ( NULL AS INTEGER ), + 79, + COUNT ( * ) * + 80 + + 28 * - - SUM ( - 10 ) ) WHEN - 50 THEN - 17 + + 59 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3742
SELECT DISTINCT + - 24 + - + 60 - - - 43 - - 0 AS col0, + SUM( + + 42 ) * + - 33 + 34 * + 2 * + 31 * - - MIN( DISTINCT + + CAST( 58 AS SIGNED ) ) * + 21 - - + NULLIF ( + CAST( NULL AS SIGNED ), + - CASE - + 41 WHEN + + CAST( + + 43 AS SIGNED ) * - 72 * + COUNT( DISTINCT + NULLIF ( - 11, 33 + ( + 8 ) * 30 ) ) / 98 THEN 24 END + 57 )
----
-127
NULL

skipif mysql # not compatible
query II rowsort label-3742
SELECT DISTINCT + - 24 + - + 60 - - - 43 - - 0 AS col0, + SUM ( + + 42 ) * + - 33 + 34 * + 2 * + 31 * - - MIN ( DISTINCT + + CAST ( 58 AS INTEGER ) ) * + 21 - - + NULLIF ( + CAST ( NULL AS INTEGER ), + - CASE - + 41 WHEN + + CAST ( + + 43 AS INTEGER ) * - 72 * + COUNT ( DISTINCT + NULLIF ( - 11, 33 + ( + 8 ) * 30 ) ) / 98 THEN 24 END + 57 )
----
-127
NULL

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

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

query I rowsort
SELECT ALL - 73 + - + 30 AS col1
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3745
SELECT DISTINCT 41 + + + CASE 63 WHEN + COUNT( * ) THEN 64 * 94 * + 18 ELSE + CAST( + 22 AS SIGNED ) END
----
63

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT 41 + + + CASE 63 WHEN + COUNT ( * ) THEN 64 * 94 * + 18 ELSE + CAST ( + 22 AS INTEGER ) END
----
63

query I rowsort
SELECT 14 * 93
----
1302

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3747
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT CAST ( NULL AS REAL ) * - 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT COALESCE ( - 82, 36 + + 94 * 75 + - 37 * COUNT( * ) * - 52 * COUNT( * ) ) * + 18 * COUNT( DISTINCT + + 39 ) col0
----
-1476

skipif mysql # not compatible
query I rowsort label-3748
SELECT COALESCE ( - 82, 36 + + 94 * 75 + - 37 * COUNT ( * ) * - 52 * COUNT ( * ) ) * + 18 * COUNT ( DISTINCT + + 39 ) col0
----
-1476

query I rowsort
SELECT ALL 40 + - - 22
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3750
SELECT ALL MAX( CAST( NULL AS SIGNED ) ) * - CAST( COUNT( * ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL MAX ( CAST ( NULL AS INTEGER ) ) * - CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 64
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3752
SELECT ( + - 27 ) DIV - 20
----
1

skipif mysql # not compatible
query I rowsort label-3752
SELECT ( + - 27 ) / - 20
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3753
SELECT ALL 34 DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL 34 / 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT DISTINCT - COALESCE ( - 93, + COUNT( DISTINCT - 50 ) )
----
93

skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT - COALESCE ( - 93, + COUNT ( DISTINCT - 50 ) )
----
93

query II rowsort
SELECT 95, 94 AS col0
----
95
94

query I rowsort
SELECT 90 + 97 AS col2
----
187

query I rowsort
SELECT ALL 92 * - 68 AS col2
----
-6256

query I rowsort
SELECT 45 * 35
----
1575

query II rowsort
SELECT ALL - 63 AS col2, - 39
----
-63
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3760
SELECT 22 + CAST( - 50 AS SIGNED ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-3760
SELECT 22 + CAST ( - 50 AS INTEGER ) AS col2
----
-28

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

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

query II rowsort
SELECT - 0 col1, 52 - - - 21 * 59 AS col1
----
0
-1187

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

skipif mysql # not compatible
query I rowsort label-3763
SELECT - 57 + 80 + - COUNT ( * ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT ALL + MAX( DISTINCT - 57 ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL + MAX ( DISTINCT - 57 ) col0
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3765
SELECT ALL + 7 + - + 90 + - 5 + 44 * - 54 DIV + COUNT( * )
----
-2464

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL + 7 + - + 90 + - 5 + 44 * - 54 / + COUNT ( * )
----
-2464

query I rowsort
SELECT - 98 + + + 99
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3768
SELECT - - NULLIF ( + - 59, CAST( NULL AS SIGNED ) )
----
-59

skipif mysql # not compatible
query I rowsort label-3768
SELECT - - NULLIF ( + - 59, CAST ( NULL AS INTEGER ) )
----
-59

query I rowsort
SELECT ALL 11 + + + 96 * + + 85 AS col2
----
8171

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT DISTINCT - 5 + + 84 + - ( 41 ) + + 58 * + - COUNT( * ) + - 5 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-3770
SELECT DISTINCT - 5 + + 84 + - ( 41 ) + + 58 * + - COUNT ( * ) + - 5 AS col2
----
-25

query I rowsort
SELECT + 64 * + + 26 + - 25 + 96 - - 88 * - 7
----
1119

query I rowsort
SELECT ALL + + 72 + + - 35 AS col2
----
37

query I rowsort
SELECT DISTINCT 12 + - + 3 + 90
----
99

query I rowsort
SELECT 14 - - 84
----
98

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

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

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

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

query I rowsort
SELECT 23 + - NULLIF ( - 22, + - 78 - + 55 + + - NULLIF ( + 25, - 42 ) + - 61 + 62 * - 96 ) * ( - + 49 )
----
-1055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3778
SELECT COUNT( + + ( - - 42 ) ) * NULLIF ( + 58, + + COUNT( + CAST( + - NULLIF ( 28, + - 56 + - 1 ) AS SIGNED ) ) ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-3778
SELECT COUNT ( + + ( - - 42 ) ) * NULLIF ( + 58, + + COUNT ( + CAST ( + - NULLIF ( 28, + - 56 + - 1 ) AS INTEGER ) ) ) AS col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3779
SELECT + 59 DIV + - ( - COUNT( DISTINCT + + 51 ) ) + + 35
----
94

skipif mysql # not compatible
query I rowsort label-3779
SELECT + 59 / + - ( - COUNT ( DISTINCT + + 51 ) ) + + 35
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3780
SELECT DISTINCT 71 * - + 20 + CAST( NULL AS SIGNED ) * + 82 * COUNT( * ) + - 49 + - + ( - + 47 ) / - - 53 AS col2, CAST( + + MIN( ALL + ( + 98 ) ) AS SIGNED ) AS col0
----
NULL
98

skipif mysql # not compatible
query II rowsort label-3780
SELECT DISTINCT 71 * - + 20 + CAST ( NULL AS INTEGER ) * + 82 * COUNT ( * ) + - 49 + - + ( - + 47 ) / - - 53 AS col2, CAST ( + + MIN ( ALL + ( + 98 ) ) AS INTEGER ) AS col0
----
NULL
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT ALL 40 * - 16 + + + ( CASE + 29 WHEN + 33 THEN NULL ELSE - 26 * + COUNT( * ) + + - 56 END )
----
-722

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL 40 * - 16 + + + ( CASE + 29 WHEN + 33 THEN NULL ELSE - 26 * + COUNT ( * ) + + - 56 END )
----
-722

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL COUNT( * ) * + ( + + 87 ) * 81 - + + CASE + + COUNT( * ) WHEN 72 THEN - COUNT( * ) END * - 12 * + 64 + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL COUNT ( * ) * + ( + + 87 ) * 81 - + + CASE + + COUNT ( * ) WHEN 72 THEN - COUNT ( * ) END * - 12 * + 64 + + 18
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3783
SELECT + 80 AS col2, CASE 43 WHEN COUNT( * ) * - 8 THEN + 55 END + 8 AS col0
----
80
NULL

skipif mysql # not compatible
query II rowsort label-3783
SELECT + 80 AS col2, CASE 43 WHEN COUNT ( * ) * - 8 THEN + 55 END + 8 AS col0
----
80
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT DISTINCT + 87 * - MAX( ALL 17 ) - + 54
----
-1533

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT + 87 * - MAX ( ALL 17 ) - + 54
----
-1533

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ALL 83 * + - 57 - + 53 + + COUNT( * ) + 7 * + 22 + 88 AS col0
----
-4541

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL 83 * + - 57 - + 53 + + COUNT ( * ) + 7 * + 22 + 88 AS col0
----
-4541

onlyif mysql # aggregate syntax: 
query II rowsort label-3786
SELECT DISTINCT - COUNT( * ) AS col2, 6 AS col0
----
-1
6

skipif mysql # not compatible
query II rowsort label-3786
SELECT DISTINCT - COUNT ( * ) AS col2, 6 AS col0
----
-1
6

query I rowsort
SELECT ALL - COALESCE ( 2, 72 - 99 )
----
-2

query II rowsort
SELECT + 45 AS col1, 27
----
45
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT CAST( + 38 AS SIGNED ) - + 96
----
-58

skipif mysql # not compatible
query I rowsort label-3789
SELECT CAST ( + 38 AS INTEGER ) - + 96
----
-58

query II rowsort
SELECT ALL 92 * 35, + 32 AS col0
----
3220
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3791
SELECT ALL 51 * - COALESCE ( COUNT( * ), - 56 DIV - - CAST( NULL AS SIGNED ) )
----
-51

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL 51 * - COALESCE ( COUNT ( * ), - 56 / - - CAST ( NULL AS INTEGER ) )
----
-51

query II rowsort
SELECT + 54 AS col1, 47 AS col1
----
54
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT MIN( DISTINCT - 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-3793
SELECT MIN ( DISTINCT - 54 )
----
-54

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

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

skipif mysql # not compatible
query I rowsort label-3795
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) + + 58 + + - ( - ( + COUNT ( * ) ) ) + 70 + - 3 AS col2
----
127

query II rowsort
SELECT DISTINCT + 49 AS col1, - 87
----
49
-87

query I rowsort
SELECT + 71 + - 91 col1
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3798
SELECT 44 AS col2, - ( + COUNT( - 54 ) ) + COUNT( * ) AS col2
----
44
0

skipif mysql # not compatible
query II rowsort label-3798
SELECT 44 AS col2, - ( + COUNT ( - 54 ) ) + COUNT ( * ) AS col2
----
44
0

query I rowsort
SELECT DISTINCT CASE + + ( - 74 ) WHEN - + 77 THEN NULL WHEN + 47 THEN + 25 / - + 88 * - 29 + - + 16 / + + 66 END
----
NULL

query II rowsort
SELECT - + 13 AS col1, - 7
----
-13
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT - - SUM( 5 ) col1
----
5

skipif mysql # not compatible
query I rowsort label-3801
SELECT - - SUM ( 5 ) col1
----
5

query I rowsort
SELECT ALL + 37 + - 84 col2
----
-47

query I rowsort
SELECT + + 31 - + + 65 col1
----
-34

query I rowsort
SELECT ALL - 67 + - 69 + + 30 AS col1
----
-106

onlyif mysql # aggregate syntax: 
query II rowsort label-3805
SELECT + - 56 - + COALESCE ( 15, - CASE + 51 WHEN CASE + - MAX( DISTINCT - 67 ) WHEN + - 1 THEN NULL WHEN - + MAX( - + 69 ) * + - 1 THEN - 77 ELSE NULL END + - + 18 THEN + + 55 + + 59 END ) AS col1, 79 + + 84 * + - ( + 49 )
----
-71
-4037

skipif mysql # not compatible
query II rowsort label-3805
SELECT + - 56 - + COALESCE ( 15, - CASE + 51 WHEN CASE + - MAX ( DISTINCT - 67 ) WHEN + - 1 THEN NULL WHEN - + MAX ( - + 69 ) * + - 1 THEN - 77 ELSE NULL END + - + 18 THEN + + 55 + + 59 END ) AS col1, 79 + + 84 * + - ( + 49 )
----
-71
-4037

query I rowsort
SELECT DISTINCT + + 99 * + 64 AS col2
----
6336

query I rowsort
SELECT + + 81 + + 54
----
135

query I rowsort
SELECT ALL 4 + + + 8 + - 59
----
-47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT + - COUNT( * ) + + 60
----
59

skipif mysql # not compatible
query I rowsort label-3810
SELECT + - COUNT ( * ) + + 60
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT ALL COALESCE ( + + 19, + 19 * CASE 12 WHEN + - 75 THEN NULL ELSE MAX( 35 ) + - 4 END + - 13 * 32 + + - COALESCE ( 1, ( 87 ) + 47 * + NULLIF ( - 95, - - 66 * + 68 - 68 ), - + 54 * - 34 ) + 92 * 62 ) * + 53
----
1007

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL COALESCE ( + + 19, + 19 * CASE 12 WHEN + - 75 THEN NULL ELSE MAX ( 35 ) + - 4 END + - 13 * 32 + + - COALESCE ( 1, ( 87 ) + 47 * + NULLIF ( - 95, - - 66 * + 68 - 68 ), - + 54 * - 34 ) + 92 * 62 ) * + 53
----
1007

query I rowsort
SELECT + 1 + + 12 AS col1
----
13

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

skipif mysql # not compatible
query I rowsort label-3813
SELECT - 71 - CAST ( NULL AS INTEGER ) + 25 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3814
SELECT - 83 - - + 25 + - 5 + + + COALESCE ( - 17, - COALESCE ( + CAST( NULL AS SIGNED ), - - 89 + - - 16 ) ) * - - CAST( NULLIF ( + 7, - - ( - CAST( NULL AS SIGNED ) ) - COUNT( * ) - + COUNT( DISTINCT - 39 ) / + + 18 * + 84 ) AS SIGNED )
----
-182

skipif mysql # not compatible
query I rowsort label-3814
SELECT - 83 - - + 25 + - 5 + + + COALESCE ( - 17, - COALESCE ( + CAST ( NULL AS INTEGER ), - - 89 + - - 16 ) ) * - - CAST ( NULLIF ( + 7, - - ( - CAST ( NULL AS INTEGER ) ) - COUNT ( * ) - + COUNT ( DISTINCT - 39 ) / + + 18 * + 84 ) AS INTEGER )
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT + 53 + 89 + - - NULLIF ( MAX( ALL + 62 ), + - 32 ) * - + 9 * 92 AS col2
----
-51194

skipif mysql # not compatible
query I rowsort label-3815
SELECT + 53 + 89 + - - NULLIF ( MAX ( ALL + 62 ), + - 32 ) * - + 9 * 92 AS col2
----
-51194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3816
SELECT - CASE 44 WHEN - 49 * - - 47 THEN MAX( ALL + 77 ) + - 65 END + - - COALESCE ( - COUNT( - CAST( NULL AS SIGNED ) ), - 60 ) / - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3816
SELECT - CASE 44 WHEN - 49 * - - 47 THEN MAX ( ALL + 77 ) + - 65 END + - - COALESCE ( - COUNT ( - CAST ( NULL AS INTEGER ) ), - 60 ) / - 62
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3817
SELECT DISTINCT - 55 DIV - COALESCE ( + 55, 26 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT - 55 / - COALESCE ( + 55, 26 ) AS col0
----
1

query I rowsort
SELECT - 47 + + 83 + ( + 53 ) AS col1
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3819
SELECT - 99 + - - COUNT( ALL - + 88 ) + + COUNT( * ) DIV - 47, 80 AS col0
----
-98
80

skipif mysql # not compatible
query II rowsort label-3819
SELECT - 99 + - - COUNT ( ALL - + 88 ) + + COUNT ( * ) / - 47, 80 AS col0
----
-98
80

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3822
SELECT - CAST( - 28 AS SIGNED ) * - + 33 AS col0
----
-924

skipif mysql # not compatible
query I rowsort label-3822
SELECT - CAST ( - 28 AS INTEGER ) * - + 33 AS col0
----
-924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3823
SELECT + 66 * + 32 + + - COUNT( ALL - + 53 ) * + COUNT( * ) DIV - CAST( + - 52 AS SIGNED ) - - COUNT( * ) AS col2
----
2113

skipif mysql # not compatible
query I rowsort label-3823
SELECT + 66 * + 32 + + - COUNT ( ALL - + 53 ) * + COUNT ( * ) / - CAST ( + - 52 AS INTEGER ) - - COUNT ( * ) AS col2
----
2113

query II rowsort
SELECT DISTINCT + 65 * - + 33 AS col0, - 29
----
-2145
-29

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

skipif mysql # not compatible
query II rowsort label-3825
SELECT ( + COUNT ( * ) ) col1, 85
----
1
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3826
SELECT - CAST( + 30 AS SIGNED ) * + + 51 + + 81 * - + 17
----
-2907

skipif mysql # not compatible
query I rowsort label-3826
SELECT - CAST ( + 30 AS INTEGER ) * + + 51 + + 81 * - + 17
----
-2907

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3827
SELECT + 63 * + - NULLIF ( + 70, + CAST( NULL AS SIGNED ) )
----
-4410

skipif mysql # not compatible
query I rowsort label-3827
SELECT + 63 * + - NULLIF ( + 70, + CAST ( NULL AS INTEGER ) )
----
-4410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3828
SELECT ( - CASE + COUNT( * ) WHEN 69 * + - 6 THEN NULL WHEN + 92 THEN + 57 DIV - 21 ELSE - 66 END ) DIV - - ( - 94 ) * - 18 + + COUNT( * ) + - 42 + + 82
----
41

skipif mysql # not compatible
query I rowsort label-3828
SELECT ( - CASE + COUNT ( * ) WHEN 69 * + - 6 THEN NULL WHEN + 92 THEN + 57 / - 21 ELSE - 66 END ) / - - ( - 94 ) * - 18 + + COUNT ( * ) + - 42 + + 82
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT ALL - 68 * COUNT( * ) + + 45 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL - 68 * COUNT ( * ) + + 45 AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3831
SELECT - - COALESCE ( + 47, - 98 * - 93 + + 10, COUNT( * ) * SUM( - COALESCE ( + 65, 34, - 30 ) ) + + COUNT( ALL 35 ) + 50 + 59 + + - COUNT( * ) + - + 13 + - + 78 DIV - - 64 * 16 * - 60 + + - MAX( + COALESCE ( + + 41, - 69 * - 98 - + CAST( NULL AS SIGNED ), 27, + 71 ) ), 19 ) + + 94 * - ( - 96 - - 58 ) AS col2
----
3619

skipif mysql # not compatible
query I rowsort label-3831
SELECT - - COALESCE ( + 47, - 98 * - 93 + + 10, COUNT ( * ) * SUM ( - COALESCE ( + 65, 34, - 30 ) ) + + COUNT ( ALL 35 ) + 50 + 59 + + - COUNT ( * ) + - + 13 + - + 78 / - - 64 * 16 * - 60 + + - MAX ( + COALESCE ( + + 41, - 69 * - 98 - + CAST ( NULL AS INTEGER ), 27, + 71 ) ), 19 ) + + 94 * - ( - 96 - - 58 ) AS col2
----
3619

query I rowsort
SELECT - + 52 * + + 80 * + 80
----
-332800

query I rowsort
SELECT ALL + NULLIF ( - + 79, - 97 ) * + + 10 * - + 32 + + 66
----
25346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3834
SELECT ALL - + ( - + 57 ) * - - MAX( ALL + CAST( NULL AS SIGNED ) ) + - ( + - 77 ) + + COUNT( * ) + COUNT( * ) * - COUNT( * ) * - + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL - + ( - + 57 ) * - - MAX ( ALL + CAST ( NULL AS INTEGER ) ) + - ( + - 77 ) + + COUNT ( * ) + COUNT ( * ) * - COUNT ( * ) * - + 39
----
NULL

query I rowsort
SELECT + 19 + - 12 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3836
SELECT DISTINCT COALESCE ( 18, - - 98 + - MIN( DISTINCT 11 ), 49 + + 22 ) * 25 + + NULLIF ( + - COUNT( DISTINCT - ( + 78 ) ), 80 / - - ( - COUNT( * ) ) + + CASE - MIN( DISTINCT + + ( - - 49 ) ) WHEN + 38 THEN + 65 / + + 44 + - + 26 - + - 82 - 84 * - 6 * - 23 WHEN 60 / + 14 THEN ( - CAST( + 60 AS SIGNED ) ) WHEN + 11 THEN NULL ELSE NULL END * 95 )
----
449

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT COALESCE ( 18, - - 98 + - MIN ( DISTINCT 11 ), 49 + + 22 ) * 25 + + NULLIF ( + - COUNT ( DISTINCT - ( + 78 ) ), 80 / - - ( - COUNT ( * ) ) + + CASE - MIN ( DISTINCT + + ( - - 49 ) ) WHEN + 38 THEN + 65 / + + 44 + - + 26 - + - 82 - 84 * - 6 * - 23 WHEN 60 / + 14 THEN ( - CAST ( + 60 AS INTEGER ) ) WHEN + 11 THEN NULL ELSE NULL END * 95 )
----
449

query I rowsort
SELECT DISTINCT NULLIF ( 23, - 20 * - + 48 - + 5 ) AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3838
SELECT - + CAST( 63 AS SIGNED ) * + - CASE - SUM( + 1 ) WHEN + - COUNT( * ) - 0 + - ( ( + COUNT( + 9 ) ) ) DIV + SUM( - 33 ) * + - 71 * - + 62 THEN + + 97 * COUNT( * ) - + COUNT( * ) WHEN + + 73 THEN + - 61 * + + 47 + - 72 ELSE NULL END + 57 + + - 55 AS col2
----
6050

skipif mysql # not compatible
query I rowsort label-3838
SELECT - + CAST ( 63 AS INTEGER ) * + - CASE - SUM ( + 1 ) WHEN + - COUNT ( * ) - 0 + - ( ( + COUNT ( + 9 ) ) ) / + SUM ( - 33 ) * + - 71 * - + 62 THEN + + 97 * COUNT ( * ) - + COUNT ( * ) WHEN + + 73 THEN + - 61 * + + 47 + - 72 ELSE NULL END + 57 + + - 55 AS col2
----
6050

query I rowsort
SELECT ALL - 64 - - + 59
----
-5

query I rowsort
SELECT + 71 * + 12
----
852

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT - 77 * - COALESCE ( + 93, COUNT( * ), - + 10 ) * + 58 + 71 - - 6
----
415415

skipif mysql # not compatible
query I rowsort label-3841
SELECT - 77 * - COALESCE ( + 93, COUNT ( * ), - + 10 ) * + 58 + 71 - - 6
----
415415

onlyif mysql # aggregate syntax: 
query II rowsort label-3842
SELECT DISTINCT 83 * - COUNT( * ) * COUNT( * ) AS col0, + 55 + - 50
----
-83
5

skipif mysql # not compatible
query II rowsort label-3842
SELECT DISTINCT 83 * - COUNT ( * ) * COUNT ( * ) AS col0, + 55 + - 50
----
-83
5

query II rowsort
SELECT DISTINCT 14 col1, 78
----
14
78

query I rowsort
SELECT ALL 17 * - CASE - + NULLIF ( - - 46, + - 56 ) WHEN + 68 * - 57 * + + ( + 15 ) * 40 + - 34 THEN 26 * + + 8 WHEN 80 THEN NULL ELSE + NULLIF ( + 56, 81 ) END AS col0
----
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT DISTINCT CASE + + COUNT( * ) WHEN 16 * 56 - - ( - 74 ) THEN + - 31 WHEN 84 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT CASE + + COUNT ( * ) WHEN 16 * 56 - - ( - 74 ) THEN + - 31 WHEN 84 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3846
SELECT + 41 * NULLIF ( 5, COUNT( * ) + + CAST( NULL AS SIGNED ) + + + 7 * + + COUNT( * ) ) AS col2
----
205

skipif mysql # not compatible
query I rowsort label-3846
SELECT + 41 * NULLIF ( 5, COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + + 7 * + + COUNT ( * ) ) AS col2
----
205

query II rowsort
SELECT 95 AS col1, ( - - 71 )
----
95
71

query I rowsort
SELECT + 87 - 26
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT DISTINCT MAX( DISTINCT - 25 ) col2
----
-25

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT MAX ( DISTINCT - 25 ) col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT + 12 / + 88 + + - CASE - 13 WHEN - - COALESCE ( - 58, 74 / + 95, - 54 ) THEN NULL WHEN + COUNT( - + 10 ) / - 55 + - + COUNT( * ) * - 99 THEN NULL WHEN + 34 THEN NULL ELSE CASE + 15 WHEN + + 65 THEN - 64 WHEN 3 THEN + 29 ELSE NULL END END - - + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-3850
SELECT + 12 / + 88 + + - CASE - 13 WHEN - - COALESCE ( - 58, 74 / + 95, - 54 ) THEN NULL WHEN + COUNT ( - + 10 ) / - 55 + - + COUNT ( * ) * - 99 THEN NULL WHEN + 34 THEN NULL ELSE CASE + 15 WHEN + + 65 THEN - 64 WHEN 3 THEN + 29 ELSE NULL END END - - + 96
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3852
SELECT + 12 DIV 72 - 69
----
-69

skipif mysql # not compatible
query I rowsort label-3852
SELECT + 12 / 72 - 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT 93 - NULLIF ( - 32, + 10 * - 7 * CASE - + 15 WHEN - 80 + 28 THEN 54 / + 42 * + + COUNT( * ) + + + 82 * COUNT( * ) * + - MIN( DISTINCT + 1 ) * - COUNT( * ) END + COUNT( * ) ) + 80 * - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-3853
SELECT 93 - NULLIF ( - 32, + 10 * - 7 * CASE - + 15 WHEN - 80 + 28 THEN 54 / + 42 * + + COUNT ( * ) + + + 82 * COUNT ( * ) * + - MIN ( DISTINCT + 1 ) * - COUNT ( * ) END + COUNT ( * ) ) + 80 * - COUNT ( * )
----
45

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3855
SELECT 99 DIV - 73 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3855
SELECT 99 / - 73 AS col2
----
-1

query I rowsort
SELECT ALL + 71 + - 6
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3857
SELECT ALL - - COALESCE ( ( + - 82 ), - - 16 * + 2 * - 85 + - MIN( 95 ), 58 DIV 19 + + 81, + - 72 ) + + + COUNT( * ) col2, - 95 * 92 + COUNT( * ) DIV - 99 AS col1
----
-81
-8740

skipif mysql # not compatible
query II rowsort label-3857
SELECT ALL - - COALESCE ( ( + - 82 ), - - 16 * + 2 * - 85 + - MIN ( 95 ), 58 / 19 + + 81, + - 72 ) + + + COUNT ( * ) col2, - 95 * 92 + COUNT ( * ) / - 99 AS col1
----
-81
-8740

query I rowsort
SELECT ( - 26 ) * 89 AS col0
----
-2314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3859
SELECT + ( 62 ) + - 94 * + + COALESCE ( - - MAX( CAST( NULL AS SIGNED ) ), + + 10 DIV - 98 ) + + 86 DIV + NULLIF ( 78, 3 ) + + + COUNT( * ) + 20
----
84

skipif mysql # not compatible
query I rowsort label-3859
SELECT + ( 62 ) + - 94 * + + COALESCE ( - - MAX ( CAST ( NULL AS INTEGER ) ), + + 10 / - 98 ) + + 86 / + NULLIF ( 78, 3 ) + + + COUNT ( * ) + 20
----
84

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

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

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

query I rowsort
SELECT 97 * + 8 AS col2
----
776

query I rowsort
SELECT - 76 * - 19 AS col0
----
1444

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

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

query I rowsort
SELECT ALL + 20 + + 59 AS col0
----
79

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

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

query I rowsort
SELECT 76 * 61 AS col1
----
4636

query I rowsort
SELECT ALL - 29 + - 72 + 84 * 31 AS col0
----
2503

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT ALL + 54 - + - 70 + - - 43 + 2 * - + 38 * + 50 * + 78 + - + NULLIF ( + 42, + + CAST( + 90 AS SIGNED ) ) * 40
----
-297913

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL + 54 - + - 70 + - - 43 + 2 * - + 38 * + 50 * + 78 + - + NULLIF ( + 42, + + CAST ( + 90 AS INTEGER ) ) * 40
----
-297913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3870
SELECT MIN( ALL - 89 ) * + 32 - - 57 + + - CAST( + + 76 AS SIGNED ) * - CASE + + CASE - 6 WHEN - 82 THEN + - 90 * - 24 + + - COALESCE ( + 17, CAST( NULL AS SIGNED ) + - - COUNT( * ) + 26 / 33 ) / + + COALESCE ( - ( - 56 ), - 87 + 33 * 9 + - 71 ) WHEN ( + COALESCE ( + - 22, 95 / + COUNT( DISTINCT + 57 ), 55 ) ) + 79 * 12 THEN + 56 END WHEN + MAX( 34 ) + COUNT( 14 ) THEN 68 + 11 * - 79 WHEN - ( 44 ) THEN + COALESCE ( - COUNT( * ), + 17, + 10 - 52, CAST( + 39 AS SIGNED ) ) WHEN + 83 * COALESCE ( - 54, + ( - COUNT( * ) ) + - 45 ) THEN + 62 * ( COUNT( * ) ) + 86 END * 1 + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT MIN ( ALL - 89 ) * + 32 - - 57 + + - CAST ( + + 76 AS INTEGER ) * - CASE + + CASE - 6 WHEN - 82 THEN + - 90 * - 24 + + - COALESCE ( + 17, CAST ( NULL AS INTEGER ) + - - COUNT ( * ) + 26 / 33 ) / + + COALESCE ( - ( - 56 ), - 87 + 33 * 9 + - 71 ) WHEN ( + COALESCE ( + - 22, 95 / + COUNT ( DISTINCT + 57 ), 55 ) ) + 79 * 12 THEN + 56 END WHEN + MAX ( 34 ) + COUNT ( 14 ) THEN 68 + 11 * - 79 WHEN - ( 44 ) THEN + COALESCE ( - COUNT ( * ), + 17, + 10 - 52, CAST ( + 39 AS INTEGER ) ) WHEN + 83 * COALESCE ( - 54, + ( - COUNT ( * ) ) + - 45 ) THEN + 62 * ( COUNT ( * ) ) + 86 END * 1 + 88 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT MAX( ALL + + 24 ) * NULLIF ( + + 32, + 36 ) + - 74
----
694

skipif mysql # not compatible
query I rowsort label-3871
SELECT MAX ( ALL + + 24 ) * NULLIF ( + + 32, + 36 ) + - 74
----
694

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT + 83 + - SUM( DISTINCT + 47 ) + - 28 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-3872
SELECT + 83 + - SUM ( DISTINCT + 47 ) + - 28 AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3873
SELECT - - 45 col0, + CASE WHEN ( - 98 ) BETWEEN NULL AND 44 / 38 * - + 93 + + 51 + 41 THEN - 72 * CASE - 59 WHEN - - 39 THEN NULL WHEN - 22 THEN NULL WHEN + COUNT( ALL 15 ) THEN NULL ELSE - 56 END * + 93 ELSE NULL END * - + 70
----
45
NULL

skipif mysql # not compatible
query II rowsort label-3873
SELECT - - 45 col0, + CASE WHEN ( - 98 ) BETWEEN NULL AND 44 / 38 * - + 93 + + 51 + 41 THEN - 72 * CASE - 59 WHEN - - 39 THEN NULL WHEN - 22 THEN NULL WHEN + COUNT ( ALL 15 ) THEN NULL ELSE - 56 END * + 93 ELSE NULL END * - + 70
----
45
NULL

query II rowsort
SELECT - + 32 AS col2, - 5 - NULLIF ( 37, - + 22 * - + 99 / - 31 ) AS col1
----
-32
-42

query II rowsort
SELECT - + 91 AS col0, - 75 + + NULLIF ( 3, + 72 ) AS col0
----
-91
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3876
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) + + 38 DIV - 40 + - + 93 * - 10 * - 79 + NULLIF ( 61, - + 82 )
----
-73410

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) + + 38 / - 40 + - + 93 * - 10 * - 79 + NULLIF ( 61, - + 82 )
----
-73410

query I rowsort
SELECT 49 + + ( + + 62 )
----
111

query I rowsort
SELECT 68 + - + 82 AS col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3879
SELECT 48 + + 84 DIV CAST( + + 86 AS SIGNED ) + + 61
----
109

skipif mysql # not compatible
query I rowsort label-3879
SELECT 48 + + 84 / CAST ( + + 86 AS INTEGER ) + + 61
----
109

query II rowsort
SELECT 58 + - 2 col1, 85 AS col1
----
56
85

query I rowsort
SELECT 64 * - NULLIF ( 66, - 45 * - + 97 )
----
-4224

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

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

query I rowsort
SELECT DISTINCT 10 * - ( 40 )
----
-400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3884
SELECT ALL SUM( ALL - ( - 68 ) ) + - NULLIF ( - ( 40 ), + CAST( NULL AS SIGNED ) ) AS col2
----
108

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL SUM ( ALL - ( - 68 ) ) + - NULLIF ( - ( 40 ), + CAST ( NULL AS INTEGER ) ) AS col2
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-3885
SELECT 83 + 54 col2, + COUNT( * ) AS col1
----
137
1

skipif mysql # not compatible
query II rowsort label-3885
SELECT 83 + 54 col2, + COUNT ( * ) AS col1
----
137
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3886
SELECT MIN( DISTINCT + - COALESCE ( - 69, + 17 ) ) * - CAST( NULL AS SIGNED ) * 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3886
SELECT MIN ( DISTINCT + - COALESCE ( - 69, + 17 ) ) * - CAST ( NULL AS INTEGER ) * 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3887
SELECT ( + - COUNT( * ) ) + 8 + - + 2 * 77, 10 * - - ( - 85 ) - 37 * 27 AS col1
----
-147
-1849

skipif mysql # not compatible
query II rowsort label-3887
SELECT ( + - COUNT ( * ) ) + 8 + - + 2 * 77, 10 * - - ( - 85 ) - 37 * 27 AS col1
----
-147
-1849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3888
SELECT ALL + CAST( AVG ( + + 28 ) AS SIGNED ) + - + SUM( ALL + 69 ) DIV - 84
----
28

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL + CAST ( AVG ( + + 28 ) AS INTEGER ) + - + SUM ( ALL + 69 ) / - 84
----
28

query I rowsort
SELECT DISTINCT ( 81 ) + + 57
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-3890
SELECT DISTINCT + - 67 DIV - + 58 col2
----
1

skipif mysql # not compatible
query I rowsort label-3890
SELECT DISTINCT + - 67 / - + 58 col2
----
1

query I rowsort
SELECT + 74 + 50 * 89 col2
----
4524

onlyif mysql # aggregate syntax: 
query II rowsort label-3892
SELECT DISTINCT + - 92 - + + 8 AS col0, COUNT( * )
----
-100
1

skipif mysql # not compatible
query II rowsort label-3892
SELECT DISTINCT + - 92 - + + 8 AS col0, COUNT ( * )
----
-100
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT + 15 * - SUM( + + 92 )
----
-1380

skipif mysql # not compatible
query I rowsort label-3893
SELECT + 15 * - SUM ( + + 92 )
----
-1380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3894
SELECT DISTINCT - + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT - + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + 97 * 53 col0
----
5141

query II rowsort
SELECT 14 + - 38 AS col2, + 61 - - 18
----
-24
79

query I rowsort
SELECT ALL - + 12 - + 78 - + 65 AS col1
----
-155

query I rowsort
SELECT 63 * + 83 AS col0
----
5229

query I rowsort
SELECT ALL + 62 - - 31
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3900
SELECT ALL CASE CAST( + 99 AS SIGNED ) WHEN - - COUNT( * ) * 24 THEN NULL WHEN - 55 * + MIN( - 45 ) THEN + 24 * - - 11 - + 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL CASE CAST ( + 99 AS INTEGER ) WHEN - - COUNT ( * ) * 24 THEN NULL WHEN - 55 * + MIN ( - 45 ) THEN + 24 * - - 11 - + 55 END
----
NULL

query I rowsort
SELECT 68 * - 62 * + + 30 AS col1
----
-126480

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT ALL + 15 * MIN( ALL - 89 )
----
-1335

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL + 15 * MIN ( ALL - 89 )
----
-1335

query I rowsort
SELECT DISTINCT NULLIF ( - 80, 3 ) col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT DISTINCT + COUNT( * ) + 66 * + + 67 + + 61 AS col2
----
4484

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT + COUNT ( * ) + 66 * + + 67 + + 61 AS col2
----
4484

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3905
SELECT ALL + 16 * - CAST( NULL AS SIGNED ) * 23 AS col0, 27 * 81
----
NULL
2187

skipif mysql # not compatible
query II rowsort label-3905
SELECT ALL + 16 * - CAST ( NULL AS INTEGER ) * 23 AS col0, 27 * 81
----
NULL
2187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3906
SELECT DISTINCT CASE + COUNT( ALL + ( 54 ) ) WHEN - 8 * + COUNT( * ) + + MAX( - 89 ) + + - ( - 46 ) THEN NULL WHEN 18 + 1 * + + 19 THEN NULL WHEN + ( + CAST( + 65 AS SIGNED ) ) * + 92 THEN 27 * + + 24 * - - 43 END + + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT CASE + COUNT ( ALL + ( 54 ) ) WHEN - 8 * + COUNT ( * ) + + MAX ( - 89 ) + + - ( - 46 ) THEN NULL WHEN 18 + 1 * + + 19 THEN NULL WHEN + ( + CAST ( + 65 AS INTEGER ) ) * + 92 THEN 27 * + + 24 * - - 43 END + + + 87
----
NULL

query I rowsort
SELECT ALL - 44 + 53 col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ALL + COUNT( + ( - 86 ) ) + + 57
----
58

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL + COUNT ( + ( - 86 ) ) + + 57
----
58

query I rowsort
SELECT - ( + 6 ) - - 72
----
66

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

skipif mysql # not compatible
query I rowsort label-3910
SELECT - CAST ( NULL AS INTEGER ) / + - 61 * - COUNT ( ALL 31 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT ALL + + MAX( - - 73 ) * - 11 * - 9 + + + 83
----
7310

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL + + MAX ( - - 73 ) * - 11 * - 9 + + + 83
----
7310

query I rowsort
SELECT DISTINCT - 55 * + + 79 + ( 17 )
----
-4328

query I rowsort
SELECT ALL + 78 * + NULLIF ( 87, 22 - + 38 ) * + 62 * 56 AS col2
----
23560992

query I rowsort
SELECT + - 40 - + NULLIF ( - - 56, + 54 ) AS col1
----
-96

query II rowsort
SELECT ALL + 29 * - 41 * 88 * + ( 5 ) AS col0, + 94
----
-523160
94

onlyif mysql # aggregate syntax: 
query II rowsort label-3916
SELECT 8 col0, COUNT( * ) + - 72
----
8
-71

skipif mysql # not compatible
query II rowsort label-3916
SELECT 8 col0, COUNT ( * ) + - 72
----
8
-71

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3918
SELECT ALL + + 93 * - - 58 * + - MIN( CAST( - 73 AS SIGNED ) ) * - - 85 - - 58 AS col0
----
33469828

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + + 93 * - - 58 * + - MIN ( CAST ( - 73 AS INTEGER ) ) * - - 85 - - 58 AS col0
----
33469828

query I rowsort
SELECT + 43 + - 80 col0
----
-37

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

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

query I rowsort
SELECT + 26 - + 48
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT MAX( DISTINCT - 99 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-3923
SELECT MAX ( DISTINCT - 99 ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL + + COALESCE ( - 20, + + 13 * MIN( ALL - 25 ) ) col2
----
-20

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL + + COALESCE ( - 20, + + 13 * MIN ( ALL - 25 ) ) col2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-3925
SELECT ALL - 2 DIV - 51 * + ( 14 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL - 2 / - 51 * + ( 14 ) AS col1
----
0

query I rowsort
SELECT ALL - 52 * + 80
----
-4160

query I rowsort
SELECT + 15 * + 15
----
225

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3928
SELECT ALL MIN( + 5 ) DIV + 59, 78 + - 98 AS col0
----
0
-20

skipif mysql # not compatible
query II rowsort label-3928
SELECT ALL MIN ( + 5 ) / + 59, 78 + - 98 AS col0
----
0
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3929
SELECT + 54 + - 27 + - COUNT( * ) * + ( - + 72 ) * + CAST( + ( + 1 ) AS SIGNED ) * + 78 + - - 31 + - 6
----
5668

skipif mysql # not compatible
query I rowsort label-3929
SELECT + 54 + - 27 + - COUNT ( * ) * + ( - + 72 ) * + CAST ( + ( + 1 ) AS INTEGER ) * + 78 + - - 31 + - 6
----
5668

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT - CASE - + 27 WHEN - ( + CASE + 13 WHEN SUM( 37 ) THEN NULL ELSE + 25 END ) * - + 69 THEN + COUNT( * ) ELSE 55 END * 56
----
-3080

skipif mysql # not compatible
query I rowsort label-3930
SELECT - CASE - + 27 WHEN - ( + CASE + 13 WHEN SUM ( 37 ) THEN NULL ELSE + 25 END ) * - + 69 THEN + COUNT ( * ) ELSE 55 END * 56
----
-3080

onlyif mysql # aggregate syntax: 
query II rowsort label-3931
SELECT ALL 59 * - 34 AS col2, 47 * 11 + + 70 + COUNT( * )
----
-2006
588

skipif mysql # not compatible
query II rowsort label-3931
SELECT ALL 59 * - 34 AS col2, 47 * 11 + + 70 + COUNT ( * )
----
-2006
588

query I rowsort
SELECT + 64 + 83 AS col0
----
147

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

query I rowsort
SELECT - 46 * + ( 52 )
----
-2392

query I rowsort
SELECT ALL + 20 + - 82
----
-62

query I rowsort
SELECT ALL 64 * + ( + 40 ) * 16
----
40960

query I rowsort
SELECT - 34 + + - 18 AS col2
----
-52

query I rowsort
SELECT DISTINCT ( - + 6 ) AS col1
----
-6

query I rowsort
SELECT - 87 + - - 67
----
-20

query I rowsort
SELECT - 80 + - + 38 + + 0 AS col0
----
-118

query II rowsort
SELECT ALL ( + 61 ) AS col1, 57
----
61
57

query I rowsort
SELECT DISTINCT ( + + 77 ) AS col2
----
77

query I rowsort
SELECT - 57 + 99 + + - 72 AS col1
----
-30

query I rowsort
SELECT - 44 * 23 AS col2
----
-1012

onlyif mysql # DIV for integer division: 
query I rowsort label-3945
SELECT ALL - 85 DIV + - 67 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL - 85 / + - 67 AS col1
----
1

query I rowsort
SELECT - - 44 + - 55
----
-11

query I rowsort
SELECT - + ( + + 48 ) + + 91 * + 86 + - 51 AS col0
----
7727

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3948
SELECT ALL + SUM( 49 ) * 89 - + ( + + 19 ) DIV + - 85
----
4361

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL + SUM ( 49 ) * 89 - + ( + + 19 ) / + - 85
----
4361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3949
SELECT DISTINCT + NULLIF ( + NULLIF ( ( + CASE WHEN CAST( + 46 AS SIGNED ) IS NOT NULL THEN + 67 * 57 + - - COUNT( * ) + - COUNT( * ) DIV + 64 END ), + 75 * + 2 * - NULLIF ( 32, - 14 + - 9 ) ), - 5 ) AS col2
----
3820

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT + NULLIF ( + NULLIF ( ( + CASE WHEN CAST ( + 46 AS INTEGER ) IS NOT NULL THEN + 67 * 57 + - - COUNT ( * ) + - COUNT ( * ) / + 64 END ), + 75 * + 2 * - NULLIF ( 32, - 14 + - 9 ) ), - 5 ) AS col2
----
3820

query II rowsort
SELECT + 5, - 80 * - 20 * - + 19 + + + 34 AS col0
----
5
-30366

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

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

query I rowsort
SELECT + + 86 * 56 * - 62
----
-298592

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT - + 17 * + - SUM( 30 ) AS col2
----
510

skipif mysql # not compatible
query I rowsort label-3953
SELECT - + 17 * + - SUM ( 30 ) AS col2
----
510

query I rowsort
SELECT ALL + NULLIF ( - 90, - - 31 ) col1
----
-90

query I rowsort
SELECT + 72 + ( + + 50 ) AS col1
----
122

query I rowsort
SELECT + 86 + 20 AS col1
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-3957
SELECT ALL + - 55, 20 * + COUNT( * ) + + + 75 * + 70 AS col2
----
-55
5270

skipif mysql # not compatible
query II rowsort label-3957
SELECT ALL + - 55, 20 * + COUNT ( * ) + + + 75 * + 70 AS col2
----
-55
5270

query I rowsort
SELECT ALL + - COALESCE ( - - 29, 62 )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3959
SELECT - CAST( + 12 AS SIGNED ) * 18 + + - ( + 89 ) + + 85 * 57
----
4540

skipif mysql # not compatible
query I rowsort label-3959
SELECT - CAST ( + 12 AS INTEGER ) * 18 + + - ( + 89 ) + + 85 * 57
----
4540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3960
SELECT + - COUNT( * ) * - 77 * CAST( - COUNT( * ) AS SIGNED ) + - 27 DIV + COUNT( * ) AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-3960
SELECT + - COUNT ( * ) * - 77 * CAST ( - COUNT ( * ) AS INTEGER ) + - 27 / + COUNT ( * ) AS col0
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3961
SELECT + 13 DIV + 39 - - ( + + 76 ) + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-3961
SELECT + 13 / + 39 - - ( + + 76 ) + COUNT ( * )
----
77

query I rowsort
SELECT DISTINCT 18 + + 47 AS col2
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-3963
SELECT ALL 53 + - 51, - COUNT( * ) col1
----
2
-1

skipif mysql # not compatible
query II rowsort label-3963
SELECT ALL 53 + - 51, - COUNT ( * ) col1
----
2
-1

query I rowsort
SELECT ALL 64 * 83 AS col2
----
5312

onlyif mysql # DIV for integer division: 
query I rowsort label-3965
SELECT ALL 5 DIV - 56 * + + 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL 5 / - 56 * + + 72 AS col1
----
0

query I rowsort
SELECT ALL 17 + + 37 * + 84 AS col0
----
3125

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT DISTINCT - 43 + - COUNT( * ) + + 90 * + + 72
----
6436

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT - 43 + - COUNT ( * ) + + 90 * + + 72
----
6436

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3968
SELECT DISTINCT 52 + + 60 col1, + CAST( NULL AS SIGNED ) col2
----
112
NULL

skipif mysql # not compatible
query II rowsort label-3968
SELECT DISTINCT 52 + + 60 col1, + CAST ( NULL AS INTEGER ) col2
----
112
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3969
SELECT 83 DIV - + 62 * + ( + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3969
SELECT 83 / - + 62 * + ( + - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT COUNT( + 54 ) * + - 26
----
-26

skipif mysql # not compatible
query I rowsort label-3970
SELECT COUNT ( + 54 ) * + - 26
----
-26

query I rowsort
SELECT DISTINCT 4 * + 73
----
292

onlyif mysql # aggregate syntax: 
query II rowsort label-3972
SELECT 18 * 60, + COALESCE ( + 42, - 56 * - 19 + - - 58 + 76, - MIN( DISTINCT 96 ) ) AS col1
----
1080
42

skipif mysql # not compatible
query II rowsort label-3972
SELECT 18 * 60, + COALESCE ( + 42, - 56 * - 19 + - - 58 + 76, - MIN ( DISTINCT 96 ) ) AS col1
----
1080
42

query I rowsort
SELECT DISTINCT - 51 * - - 73
----
-3723

query I rowsort
SELECT ALL 14 - - 1 AS col1
----
15

query I rowsort
SELECT 99 + 54
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT + COUNT( * ) + + MAX( ALL + 29 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-3976
SELECT + COUNT ( * ) + + MAX ( ALL + 29 ) AS col2
----
30

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3978
SELECT NULLIF ( + + 74, ( + 39 ) * - 85 ) AS col1, MIN( DISTINCT + + 74 ) AS col0
----
74
74

skipif mysql # not compatible
query II rowsort label-3978
SELECT NULLIF ( + + 74, ( + 39 ) * - 85 ) AS col1, MIN ( DISTINCT + + 74 ) AS col0
----
74
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3979
SELECT 20 + - 50 - 43 DIV - CAST( - 81 AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-3979
SELECT 20 + - 50 - 43 / - CAST ( - 81 AS INTEGER )
----
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-3980
SELECT - NULLIF ( - 45, + 10 ), 80 * 18 DIV + - 9 + ( - ( - 55 ) ) AS col0
----
45
-105

skipif mysql # not compatible
query II rowsort label-3980
SELECT - NULLIF ( - 45, + 10 ), 80 * 18 / + - 9 + ( - ( - 55 ) ) AS col0
----
45
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT - 34 * - SUM( DISTINCT 65 ) AS col2
----
2210

skipif mysql # not compatible
query I rowsort label-3981
SELECT - 34 * - SUM ( DISTINCT 65 ) AS col2
----
2210

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT + COUNT( + + 47 ) * + + 46 + + ( 85 )
----
131

skipif mysql # not compatible
query I rowsort label-3982
SELECT + COUNT ( + + 47 ) * + + 46 + + ( 85 )
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL - + COUNT( * ) + + SUM( + + 52 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL - + COUNT ( * ) + + SUM ( + + 52 ) AS col0
----
51

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT ALL - + 39 + + COUNT( * ) * - + 23
----
-62

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL - + 39 + + COUNT ( * ) * - + 23
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-3987
SELECT + 36 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-3987
SELECT + 36 / - 95
----
0

query II rowsort
SELECT 68 * 0 AS col0, 84
----
0
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3989
SELECT + MIN( 11 ) * + COUNT( * ) DIV + - 33 * 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3989
SELECT + MIN ( 11 ) * + COUNT ( * ) / + - 33 * 2 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3990
SELECT - 19 * - MIN( - 95 ) AS col2, + 32 + + COUNT( DISTINCT - + 24 ) + + COUNT( * ) + - 73 DIV - 44 AS col1
----
-1805
35

skipif mysql # not compatible
query II rowsort label-3990
SELECT - 19 * - MIN ( - 95 ) AS col2, + 32 + + COUNT ( DISTINCT - + 24 ) + + COUNT ( * ) + - 73 / - 44 AS col1
----
-1805
35

onlyif mysql # aggregate syntax: 
query II rowsort label-3991
SELECT ALL - + COUNT( * ) + - + 33, - SUM( ALL - 76 ) col0
----
-34
76

skipif mysql # not compatible
query II rowsort label-3991
SELECT ALL - + COUNT ( * ) + - + 33, - SUM ( ALL - 76 ) col0
----
-34
76

query I rowsort
SELECT 74 - 65
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3993
SELECT DISTINCT + 75 + + 88 DIV - - 83 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3993
SELECT DISTINCT + 75 + + 88 / - - 83 AS col2
----
76

query I rowsort
SELECT DISTINCT 47 * + 3 AS col1
----
141

query I rowsort
SELECT DISTINCT 64 + + 9 AS col0
----
73

query II rowsort
SELECT DISTINCT - 31 AS col2, ( + + 39 )
----
-31
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT 73 + + 16 * + 79 + - 54 * + + COUNT( * ) AS col0
----
1283

skipif mysql # not compatible
query I rowsort label-3997
SELECT 73 + + 16 * + 79 + - 54 * + + COUNT ( * ) AS col0
----
1283

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

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT 11 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 47 AS col1, - 29 AS col1
----
-47
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT + ( - - CASE - - ( + 80 ) WHEN 67 THEN NULL WHEN + - COUNT( * ) THEN - 0 + + ( - 11 ) WHEN + 2 THEN NULL WHEN + 42 THEN NULL END ) * - 76 + + 61 * + - 32 + - - 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT + ( - - CASE - - ( + 80 ) WHEN 67 THEN NULL WHEN + - COUNT ( * ) THEN - 0 + + ( - 11 ) WHEN + 2 THEN NULL WHEN + 42 THEN NULL END ) * - 76 + + 61 * + - 32 + - - 75 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4001
SELECT 92 + - 65 + + 42 * 47 * + - 88 * - 89 + + COUNT( * ) + 3 * - - 48 AS col0, 64
----
15460540
64

skipif mysql # not compatible
query II rowsort label-4001
SELECT 92 + - 65 + + 42 * 47 * + - 88 * - 89 + + COUNT ( * ) + 3 * - - 48 AS col0, 64
----
15460540
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4002
SELECT NULLIF ( + - 7, + 4 ) + CAST( 55 AS SIGNED ) + + + 3 col1
----
51

skipif mysql # not compatible
query I rowsort label-4002
SELECT NULLIF ( + - 7, + 4 ) + CAST ( 55 AS INTEGER ) + + + 3 col1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4003
SELECT ALL NULLIF ( + 45, + 29 DIV + ( - + 90 ) - - 75 ) DIV NULLIF ( - + 96, + 34 ) + + 57 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL NULLIF ( + 45, + 29 / + ( - + 90 ) - - 75 ) / NULLIF ( - + 96, + 34 ) + + 57 AS col2
----
57

query I rowsort
SELECT 27 + + + 77 AS col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT COALESCE ( - 49, COUNT( * ) * + 71 ) + - 11 - - 1 * + - COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-4005
SELECT COALESCE ( - 49, COUNT ( * ) * + 71 ) + - 11 - - 1 * + - COUNT ( * ) AS col2
----
-61

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4007
SELECT + 52 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-4007
SELECT + 52 / 85
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4008
SELECT ALL NULLIF ( + 27, ( + 4 ) + - - 39 ) DIV - + 55 * - + 45 col2
----
0

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL NULLIF ( + 27, ( + 4 ) + - - 39 ) / - + 55 * - + 45 col2
----
0

query I rowsort
SELECT - 91 * 34
----
-3094

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

skipif mysql # not compatible
query I rowsort label-4010
SELECT + COUNT ( ALL + - 24 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 39 * + - 17 * + 51 / + CASE - + 51 WHEN ( + 8 ) THEN + 9 END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4012
SELECT - 18 DIV + - 34 * - - 93 col2
----
0

skipif mysql # not compatible
query I rowsort label-4012
SELECT - 18 / + - 34 * - - 93 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4013
SELECT 34 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-4013
SELECT 34 / + 78
----
0

query II rowsort
SELECT ALL 78, + 76 col1
----
78
76

query I rowsort
SELECT + ( + 99 ) * COALESCE ( + 45, 83 + 33 )
----
4455

query I rowsort
SELECT DISTINCT - 78 + + 38 * - - 51 - - 84
----
1944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4017
SELECT DISTINCT - CAST( + - 60 AS SIGNED ) + + 26
----
86

skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT - CAST ( + - 60 AS INTEGER ) + + 26
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL + 45 + 57 + + COUNT( - 25 )
----
103

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL + 45 + 57 + + COUNT ( - 25 )
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT + 7 + + - COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-4019
SELECT + 7 + + - COUNT ( * ) AS col1
----
6

query I rowsort
SELECT - 90 - - 53 + - 7 * + 57 * + 16 AS col0
----
-6421

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

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

query I rowsort
SELECT - 4 * + 27
----
-108

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4023
SELECT ALL + 42 AS col0, 5 * MIN( DISTINCT CAST( NULL AS DECIMAL ) ) col0
----
42
NULL

skipif mysql # not compatible
query II rowsort label-4023
SELECT ALL + 42 AS col0, 5 * MIN ( DISTINCT CAST ( NULL AS REAL ) ) col0
----
42
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4024
SELECT - NULLIF ( 28, + 27 * - COALESCE ( + + 86, + COALESCE ( 61, + 97 * - 92 / MIN( - + 7 ) * - COUNT( * ) + + 13 + ( + + 62 ) / + 8 + - 36 * - - 93 * - - 17 ) * - - 30 * + COUNT( * ) * 77 + - COUNT( * ), + COALESCE ( 17, + ( 0 ) - + 72 / - 17 ) ) ) + + + CAST( - - 5 AS SIGNED ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4024
SELECT - NULLIF ( 28, + 27 * - COALESCE ( + + 86, + COALESCE ( 61, + 97 * - 92 / MIN ( - + 7 ) * - COUNT ( * ) + + 13 + ( + + 62 ) / + 8 + - 36 * - - 93 * - - 17 ) * - - 30 * + COUNT ( * ) * 77 + - COUNT ( * ), + COALESCE ( 17, + ( 0 ) - + 72 / - 17 ) ) ) + + + CAST ( - - 5 AS INTEGER ) AS col0
----
-23

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

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

query I rowsort
SELECT - 25 * + NULLIF ( + - ( - + 81 ), + 54 ) + - 73
----
-2098

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4027
SELECT - CAST( - 50 AS SIGNED ) DIV 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4027
SELECT - CAST ( - 50 AS INTEGER ) / 79 AS col0
----
0

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

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

query I rowsort
SELECT ALL NULLIF ( + 17, + ( 91 ) ) * + 22
----
374

query II rowsort
SELECT DISTINCT - 54 * 80 col0, + 94 * 49 col1
----
-4320
4606

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ALL + NULLIF ( + + 34, 51 * - + MIN( + + ( - 53 ) ) + + + 56 + + - COUNT( * ) / - + 83 / + + COALESCE ( - 32, + 95 ) ) * 26
----
884

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL + NULLIF ( + + 34, 51 * - + MIN ( + + ( - 53 ) ) + + + 56 + + - COUNT ( * ) / - + 83 / + + COALESCE ( - 32, + 95 ) ) * 26
----
884

query I rowsort
SELECT DISTINCT ( 43 ) AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4034
SELECT - - 79 * + CASE 2 WHEN + CAST( - - 43 AS DECIMAL ) THEN - CASE - 2 WHEN COUNT( * ) + + 63 THEN NULL WHEN - - COUNT( * ) THEN 60 + - 53 END END * - 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4034
SELECT - - 79 * + CASE 2 WHEN + CAST ( - - 43 AS REAL ) THEN - CASE - 2 WHEN COUNT ( * ) + + 63 THEN NULL WHEN - - COUNT ( * ) THEN 60 + - 53 END END * - 0 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4035
SELECT + - 29 - COUNT( * ) + - + 42 + ( + CASE + CAST( - - 4 AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) THEN 36 WHEN - CASE - - CASE 74 WHEN + + 48 * 0 / - 91 + - 1 + - CAST( - 10 AS SIGNED ) THEN NULL WHEN - - 29 / 60 * - + 3 THEN + 78 / 61 WHEN ( - + 95 ) * + 60 + 83 + - COUNT( * ) THEN NULL ELSE NULL END WHEN + CASE + 65 WHEN + 56 THEN MAX( ALL + - 46 ) WHEN + 64 * - 18 THEN NULL END THEN AVG ( COALESCE ( - 20, 58 + - 89 ) ) WHEN + 81 THEN 7 + - COUNT( * ) * + ( - 62 ) END THEN 87 + + CAST( NULL AS SIGNED ) WHEN 63 THEN 20 END ) + + 38 / CAST( 85 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT + - 29 - COUNT ( * ) + - + 42 + ( + CASE + CAST ( - - 4 AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) THEN 36 WHEN - CASE - - CASE 74 WHEN + + 48 * 0 / - 91 + - 1 + - CAST ( - 10 AS INTEGER ) THEN NULL WHEN - - 29 / 60 * - + 3 THEN + 78 / 61 WHEN ( - + 95 ) * + 60 + 83 + - COUNT ( * ) THEN NULL ELSE NULL END WHEN + CASE + 65 WHEN + 56 THEN MAX ( ALL + - 46 ) WHEN + 64 * - 18 THEN NULL END THEN AVG ( COALESCE ( - 20, 58 + - 89 ) ) WHEN + 81 THEN 7 + - COUNT ( * ) * + ( - 62 ) END THEN 87 + + CAST ( NULL AS INTEGER ) WHEN 63 THEN 20 END ) + + 38 / CAST ( 85 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 60 + - 79 * 82
----
-6418

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT + - COUNT( + 71 ) * - 95 + 76 AS col1
----
171

skipif mysql # not compatible
query I rowsort label-4037
SELECT + - COUNT ( + 71 ) * - 95 + 76 AS col1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT ALL SUM( ALL - 27 ) * - - ( + 74 ) * - 13 - + 57 AS col2
----
25917

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL SUM ( ALL - 27 ) * - - ( + 74 ) * - 13 - + 57 AS col2
----
25917

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ALL COUNT( * ) + - + 15
----
-14

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL COUNT ( * ) + - + 15
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4040
SELECT - 96 + - ( + 6 ) + COUNT( * ) DIV + - 57 * 44
----
-102

skipif mysql # not compatible
query I rowsort label-4040
SELECT - 96 + - ( + 6 ) + COUNT ( * ) / + - 57 * 44
----
-102

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

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

query II rowsort
SELECT + 9 + - + 14 AS col1, ( + 97 )
----
-5
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4043
SELECT + + CASE + CAST( 93 AS SIGNED ) WHEN + MAX( ALL - 25 ) THEN - - 28 END + - + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-4043
SELECT + + CASE + CAST ( 93 AS INTEGER ) WHEN + MAX ( ALL - 25 ) THEN - - 28 END + - + 4
----
NULL

query I rowsort
SELECT DISTINCT 67 * - - 70 * 7
----
32830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4045
SELECT DISTINCT 5 DIV - ( + - 44 ) + 77 * + + CASE - + 10 WHEN + ( + + CAST( + ( + COUNT( * ) ) AS SIGNED ) ) + 86 THEN NULL WHEN 85 THEN NULL ELSE - 3 END
----
-231

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT 5 / - ( + - 44 ) + 77 * + + CASE - + 10 WHEN + ( + + CAST ( + ( + COUNT ( * ) ) AS INTEGER ) ) + 86 THEN NULL WHEN 85 THEN NULL ELSE - 3 END
----
-231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4046
SELECT DISTINCT + + 8 DIV + 40 * NULLIF ( 48, + 70 + - COUNT( * ) + + + 17 * - + COUNT( * ) ) - 42
----
-42

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT + + 8 / + 40 * NULLIF ( 48, + 70 + - COUNT ( * ) + + + 17 * - + COUNT ( * ) ) - 42
----
-42

query I rowsort
SELECT + - 78 + - - 51
----
-27

query I rowsort
SELECT ALL - 73 * - 61 - - - 36 AS col0
----
4417

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4049
SELECT ALL - 76 DIV - + COALESCE ( 52, + MAX( ALL 93 ) ) - + 61
----
-60

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL - 76 / - + COALESCE ( 52, + MAX ( ALL 93 ) ) - + 61
----
-60

query II rowsort
SELECT DISTINCT + 35, ( - 90 ) * - - 1 AS col1
----
35
-90

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

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

query I rowsort
SELECT ( - - 24 ) AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4053
SELECT + 69 - - - ( - ( SUM( ALL - 47 ) ) ) * + COALESCE ( + 91, + CAST( + 77 AS SIGNED ) + - 77 ) * - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT + 69 - - - ( - ( SUM ( ALL - 47 ) ) ) * + COALESCE ( + 91, + CAST ( + 77 AS INTEGER ) + - 77 ) * - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT + 28 * - COUNT( DISTINCT + 5 )
----
-28

skipif mysql # not compatible
query I rowsort label-4054
SELECT + 28 * - COUNT ( DISTINCT + 5 )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-4055
SELECT + 46 - - + 63 DIV + 60 + + 97 AS col1
----
144

skipif mysql # not compatible
query I rowsort label-4055
SELECT + 46 - - + 63 / + 60 + + 97 AS col1
----
144

query II rowsort
SELECT ALL + 82, 30 AS col1
----
82
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4057
SELECT ALL CASE - CAST( - - 41 AS SIGNED ) WHEN NULLIF ( 53, COALESCE ( - 56, + 74 * 84 / NULLIF ( - NULLIF ( MIN( + 81 ), 89 ), + CAST( NULL AS SIGNED ) * - 24 * + 1 ) ) ) THEN + 20 WHEN + 43 + + 78 THEN NULL ELSE NULL END * 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL CASE - CAST ( - - 41 AS INTEGER ) WHEN NULLIF ( 53, COALESCE ( - 56, + 74 * 84 / NULLIF ( - NULLIF ( MIN ( + 81 ), 89 ), + CAST ( NULL AS INTEGER ) * - 24 * + 1 ) ) ) THEN + 20 WHEN + 43 + + 78 THEN NULL ELSE NULL END * 85 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4058
SELECT ALL + CAST( 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL + CAST ( 21 AS INTEGER )
----
21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4059
SELECT - COUNT( * ) / - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4059
SELECT - COUNT ( * ) / - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - ( - 29 ) * + 34 * - 87
----
-85782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4061
SELECT - 92 - 65 - + ( - 0 ) + - 64 * - 15 * - + COUNT( * ) DIV + COUNT( * ) + 18
----
-1099

skipif mysql # not compatible
query I rowsort label-4061
SELECT - 92 - 65 - + ( - 0 ) + - 64 * - 15 * - + COUNT ( * ) / + COUNT ( * ) + 18
----
-1099

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

skipif mysql # not compatible
query I rowsort label-4062
SELECT - COUNT ( * ) * + 89 + - 77 + - 75 AS col1
----
-241

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT - CASE MIN( ALL 8 ) WHEN - 4 - - 55 THEN - 8 + 99 * + 67 - 74 ELSE NULL END - - + 24 + + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT - CASE MIN ( ALL 8 ) WHEN - 4 - - 55 THEN - 8 + 99 * + 67 - 74 ELSE NULL END - - + 24 + + 46 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4064
SELECT - 38 + + - COALESCE ( CAST( NULL AS SIGNED ), - - CAST( - 35 AS SIGNED ) ) + + 31
----
28

skipif mysql # not compatible
query I rowsort label-4064
SELECT - 38 + + - COALESCE ( CAST ( NULL AS INTEGER ), - - CAST ( - 35 AS INTEGER ) ) + + 31
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT CASE - 41 WHEN - 30 THEN NULL WHEN + - 0 / - CASE + + 88 WHEN + - 33 THEN - COALESCE ( NULLIF ( 26, + 7 ), - 23, + 14 ) * - + 49 WHEN + + MIN( ALL 57 ) THEN - 15 * - 22 * + - 56 ELSE - + 70 END * + 27 + 54 * - + ( + - 96 ) * - COUNT( * ) * 86 + 85 + 90 * - COUNT( * ) * + - COUNT( - + 70 ) THEN NULL WHEN + + 86 THEN NULL ELSE 9 END AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4065
SELECT CASE - 41 WHEN - 30 THEN NULL WHEN + - 0 / - CASE + + 88 WHEN + - 33 THEN - COALESCE ( NULLIF ( 26, + 7 ), - 23, + 14 ) * - + 49 WHEN + + MIN ( ALL 57 ) THEN - 15 * - 22 * + - 56 ELSE - + 70 END * + 27 + 54 * - + ( + - 96 ) * - COUNT ( * ) * 86 + 85 + 90 * - COUNT ( * ) * + - COUNT ( - + 70 ) THEN NULL WHEN + + 86 THEN NULL ELSE 9 END AS col2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4066
SELECT - - MIN( + - 14 ) DIV - 47
----
0

skipif mysql # not compatible
query I rowsort label-4066
SELECT - - MIN ( + - 14 ) / - 47
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT - 14 + + - ( - - COUNT( - + 84 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-4067
SELECT - 14 + + - ( - - COUNT ( - + 84 ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ALL - + 57 * - COUNT( * ) + - 47 + COUNT( * ) * + 66 + + + 82 * - 2
----
-88

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL - + 57 * - COUNT ( * ) + - 47 + COUNT ( * ) * + 66 + + + 82 * - 2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4069
SELECT DISTINCT + COUNT( - CAST( + - 35 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT + COUNT ( - CAST ( + - 35 AS INTEGER ) ) AS col1
----
1

query I rowsort
SELECT - NULLIF ( 70, 0 ) + - - ( + + 17 ) AS col0
----
-53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT - COALESCE ( - + 46, + NULLIF ( - COUNT( * ), - 69 + + - 51 ) * + 48 )
----
46

skipif mysql # not compatible
query I rowsort label-4072
SELECT - COALESCE ( - + 46, + NULLIF ( - COUNT ( * ), - 69 + + - 51 ) * + 48 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT - 80 * 17 * - - 31 * - 20 * + MIN( CASE - 53 WHEN + 92 + + 51 THEN - 27 WHEN 28 THEN NULL ELSE 67 END )
----
56494400

skipif mysql # not compatible
query I rowsort label-4073
SELECT - 80 * 17 * - - 31 * - 20 * + MIN ( CASE - 53 WHEN + 92 + + 51 THEN - 27 WHEN 28 THEN NULL ELSE 67 END )
----
56494400

onlyif mysql # aggregate syntax: 
query II rowsort label-4074
SELECT DISTINCT + - 94 + + COUNT( * ) * - 22, 46 col0
----
-116
46

skipif mysql # not compatible
query II rowsort label-4074
SELECT DISTINCT + - 94 + + COUNT ( * ) * - 22, 46 col0
----
-116
46

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

query I rowsort
SELECT - 39 + + + 3
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-4077
SELECT DISTINCT 53 DIV + 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT 53 / + 80 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT NULLIF ( - 16, + - SUM( DISTINCT - - 96 ) / - 13 * + 65 + - 68 + + 24 + - 89 - - 10 * + + 34 ) * COALESCE ( - NULLIF ( - - 94, + 54 ), 61 * - COUNT( * ) ) - 76
----
1428

skipif mysql # not compatible
query I rowsort label-4078
SELECT NULLIF ( - 16, + - SUM ( DISTINCT - - 96 ) / - 13 * + 65 + - 68 + + 24 + - 89 - - 10 * + + 34 ) * COALESCE ( - NULLIF ( - - 94, + 54 ), 61 * - COUNT ( * ) ) - 76
----
1428

query I rowsort
SELECT ( ( - 1 ) ) * + - 6 + 77 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT 18 - + COUNT( * ) * 17 + + 37 + - COALESCE ( + 75, 8, MAX( - ( - + 65 ) ) ) col2
----
-37

skipif mysql # not compatible
query I rowsort label-4080
SELECT 18 - + COUNT ( * ) * 17 + + 37 + - COALESCE ( + 75, 8, MAX ( - ( - + 65 ) ) ) col2
----
-37

query I rowsort
SELECT DISTINCT 88 * 46 col0
----
4048

query II rowsort
SELECT + 65 AS col2, + 53 * - 74 * + 86
----
65
-337292

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4083
SELECT 89 AS col2, 75 * ( - COUNT( * ) ) / + CAST( NULL AS DECIMAL )
----
89
NULL

skipif mysql # not compatible
query II rowsort label-4083
SELECT 89 AS col2, 75 * ( - COUNT ( * ) ) / + CAST ( NULL AS REAL )
----
89
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4084
SELECT 2 DIV COALESCE ( - 58, + + 45 - - AVG ( DISTINCT - 98 ), + 41 )
----
0

skipif mysql # not compatible
query I rowsort label-4084
SELECT 2 / COALESCE ( - 58, + + 45 - - AVG ( DISTINCT - 98 ), + 41 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4085
SELECT 62 DIV CASE + 37 WHEN + - 49 + 33 * 77 - - CAST( - 2 AS SIGNED ) DIV - 47 THEN + 6 WHEN - 47 THEN 80 WHEN - 83 - - CAST( - 97 AS SIGNED ) + + 74 THEN ( - NULLIF ( - + 54, + 68 ) ) ELSE - 26 + - 38 END * - 25 DIV - 57 + + 72 - 25 col2
----
47

skipif mysql # not compatible
query I rowsort label-4085
SELECT 62 / CASE + 37 WHEN + - 49 + 33 * 77 - - CAST ( - 2 AS INTEGER ) / - 47 THEN + 6 WHEN - 47 THEN 80 WHEN - 83 - - CAST ( - 97 AS INTEGER ) + + 74 THEN ( - NULLIF ( - + 54, + 68 ) ) ELSE - 26 + - 38 END * - 25 / - 57 + + 72 - 25 col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4086
SELECT DISTINCT COALESCE ( 50, - 92 ) * + 48 AS col1, CAST( - 97 AS SIGNED )
----
2400
-97

skipif mysql # not compatible
query II rowsort label-4086
SELECT DISTINCT COALESCE ( 50, - 92 ) * + 48 AS col1, CAST ( - 97 AS INTEGER )
----
2400
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4087
SELECT CAST( NULL AS DECIMAL ) * 38 * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT CAST ( NULL AS REAL ) * 38 * 33
----
NULL

query I rowsort
SELECT ALL ( - - 60 ) + + ( 4 ) AS col2
----
64

query I rowsort
SELECT - ( + COALESCE ( - ( + NULLIF ( - 9, - 95 ) ), + 93 ) ) * - 92 + 34
----
862

query I rowsort
SELECT 53 + - - 92 AS col2
----
145

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4092
SELECT CAST( NULL AS SIGNED ) * - 8 / - SUM( 37 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4092
SELECT CAST ( NULL AS INTEGER ) * - 8 / - SUM ( 37 ) AS col1
----
NULL

query II rowsort
SELECT + 99, 91 - ( + 61 ) AS col1
----
99
30

query I rowsort
SELECT 89 * - 47 col1
----
-4183

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT ALL - + 72 * + 47 * + 41 * + 79 * + 55 + + 81 + - - COUNT( * ) AS col0
----
-602842598

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL - + 72 * + 47 * + 41 * + 79 * + 55 + + 81 + - - COUNT ( * ) AS col0
----
-602842598

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT - CASE - 82 WHEN + COUNT( * ) THEN ( MIN( ALL - - 14 ) ) WHEN + 51 + COUNT( * ) + 72 THEN NULL WHEN + 17 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4096
SELECT - CASE - 82 WHEN + COUNT ( * ) THEN ( MIN ( ALL - - 14 ) ) WHEN + 51 + COUNT ( * ) + 72 THEN NULL WHEN + 17 THEN NULL END
----
NULL

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

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

query I rowsort
SELECT ( + - 31 ) - - 22
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT 12 * + COUNT( * ) + + 87 + - COALESCE ( 22, 21, + 17 * - - 17, + 15 ) + - ( 21 ) * - - 65 * - - 65
----
-88648

skipif mysql # not compatible
query I rowsort label-4099
SELECT 12 * + COUNT ( * ) + + 87 + - COALESCE ( 22, 21, + 17 * - - 17, + 15 ) + - ( 21 ) * - - 65 * - - 65
----
-88648

query II rowsort
SELECT 2, + 95 AS col0
----
2
95

query I rowsort
SELECT + 78 * - - 83 + - 47
----
6427

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

skipif mysql # not compatible
query I rowsort label-4102
SELECT + MIN ( - - 29 )
----
29

query II rowsort
SELECT + 81, - 67 AS col1
----
81
-67

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4105
SELECT + 61 DIV - - COUNT( + 38 ) col2
----
61

skipif mysql # not compatible
query I rowsort label-4105
SELECT + 61 / - - COUNT ( + 38 ) col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT DISTINCT - 39 * + + 76 + 79 + MIN( DISTINCT 75 ) + - MAX( DISTINCT - 92 ) - - 49 * + MIN( DISTINCT - - ( - 79 ) ) * + 95 * 25 + + ( - 62 )
----
-9196405

skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT - 39 * + + 76 + 79 + MIN ( DISTINCT 75 ) + - MAX ( DISTINCT - 92 ) - - 49 * + MIN ( DISTINCT - - ( - 79 ) ) * + 95 * 25 + + ( - 62 )
----
-9196405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4107
SELECT ALL - + COUNT( 26 ) DIV 22
----
0

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL - + COUNT ( 26 ) / 22
----
0

query I rowsort
SELECT ALL + + 17 - 9
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT 38 - + 66 + - + 59 + - 3 + - - CAST( NULL AS SIGNED ) * + 89 / - + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT 38 - + 66 + - + 59 + - 3 + - - CAST ( NULL AS INTEGER ) * + 89 / - + 69 AS col1
----
NULL

query I rowsort
SELECT - 27 - - 4 - 43 AS col0
----
-66

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

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

query II rowsort
SELECT ALL 76 AS col2, 37 AS col1
----
76
37

query I rowsort
SELECT 17 * + 37 AS col2
----
629

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT 61 * - - COUNT( DISTINCT - 73 )
----
61

skipif mysql # not compatible
query I rowsort label-4114
SELECT 61 * - - COUNT ( DISTINCT - 73 )
----
61

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

skipif mysql # not compatible
query II rowsort label-4115
SELECT - COUNT ( * ), - 23 AS col1
----
-1
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT + SUM( + + 29 ) + + COALESCE ( + 92, - 28 ) + COUNT( * )
----
122

skipif mysql # not compatible
query I rowsort label-4116
SELECT + SUM ( + + 29 ) + + COALESCE ( + 92, - 28 ) + COUNT ( * )
----
122

query I rowsort
SELECT 18 + + 7 + + - 6
----
19

query I rowsort
SELECT 22 - - - 81 + 56 + 24 + - 12 - - 25
----
34

query I rowsort
SELECT ALL - 39 * - 57
----
2223

query I rowsort
SELECT 92 * - - ( - + 20 ) AS col1
----
-1840

query I rowsort
SELECT DISTINCT - 58 * + 64 * 92 AS col2
----
-341504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4122
SELECT DISTINCT - COALESCE ( + - COUNT( * ), - 21 * + NULLIF ( + 26, 45 ) + + 9 + - 71 + + 6 DIV - 72, 80 * - 41 )
----
1

skipif mysql # not compatible
query I rowsort label-4122
SELECT DISTINCT - COALESCE ( + - COUNT ( * ), - 21 * + NULLIF ( + 26, 45 ) + + 9 + - 71 + + 6 / - 72, 80 * - 41 )
----
1

query II rowsort
SELECT ALL - 40 * 7 AS col2, - ( 40 ) + + + 55 + 76 AS col1
----
-280
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT 18 * NULLIF ( + NULLIF ( - - 21, CASE - + COUNT( * ) WHEN + - 90 THEN ( + 18 ) ELSE NULL END ), + - 15 * - 74 + - + 0 ) * + + ( 10 ) AS col2
----
3780

skipif mysql # not compatible
query I rowsort label-4124
SELECT 18 * NULLIF ( + NULLIF ( - - 21, CASE - + COUNT ( * ) WHEN + - 90 THEN ( + 18 ) ELSE NULL END ), + - 15 * - 74 + - + 0 ) * + + ( 10 ) AS col2
----
3780

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT SUM( - 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-4125
SELECT SUM ( - 83 ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ALL - COALESCE ( NULLIF ( SUM( + + 13 ), CASE - 84 WHEN + 2 * - ( + 44 ) THEN NULL WHEN - COUNT( + 20 ) THEN NULL WHEN - 29 THEN 83 END + + CASE 8 WHEN + - 46 THEN + 10 + 72 END ), + + 59 ) * + 46 * + 56 + - + 15
----
-33503

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL - COALESCE ( NULLIF ( SUM ( + + 13 ), CASE - 84 WHEN + 2 * - ( + 44 ) THEN NULL WHEN - COUNT ( + 20 ) THEN NULL WHEN - 29 THEN 83 END + + CASE 8 WHEN + - 46 THEN + 10 + 72 END ), + + 59 ) * + 46 * + 56 + - + 15
----
-33503

onlyif mysql # DIV for integer division: 
query I rowsort label-4127
SELECT 37 DIV - + 41 * + 12
----
0

skipif mysql # not compatible
query I rowsort label-4127
SELECT 37 / - + 41 * + 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT 68 * + - ( + 45 ) + - COUNT( * ) + 99
----
-2962

skipif mysql # not compatible
query I rowsort label-4128
SELECT 68 * + - ( + 45 ) + - COUNT ( * ) + 99
----
-2962

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT DISTINCT 98 DIV - 20
----
-4

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT 98 / - 20
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4130
SELECT + MIN( DISTINCT + 81 ), - COUNT( * ) DIV + 30 col0
----
81
0

skipif mysql # not compatible
query II rowsort label-4130
SELECT + MIN ( DISTINCT + 81 ), - COUNT ( * ) / + 30 col0
----
81
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4132
SELECT 27 DIV 92 * 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4132
SELECT 27 / 92 * 69 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4133
SELECT MIN( 92 ) DIV + COUNT( * ) + 30
----
122

skipif mysql # not compatible
query I rowsort label-4133
SELECT MIN ( 92 ) / + COUNT ( * ) + 30
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4134
SELECT DISTINCT - CASE 49 WHEN COUNT( * ) THEN NULL WHEN 59 THEN 17 END / + COUNT( * ) / - 41 * + + 55 + + 87 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT - CASE 49 WHEN COUNT ( * ) THEN NULL WHEN 59 THEN 17 END / + COUNT ( * ) / - 41 * + + 55 + + 87 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT ALL 36 * + COUNT( * ) + + 38
----
74

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL 36 * + COUNT ( * ) + + 38
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT - 49 * - 2 - COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-4136
SELECT - 49 * - 2 - COUNT ( * ) AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT ALL + CAST( + + 60 AS SIGNED ) * + 74 col1
----
4440

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL + CAST ( + + 60 AS INTEGER ) * + 74 col1
----
4440

query I rowsort
SELECT + 55 * - 54 - + 41 AS col1
----
-3011

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL + MIN( ALL + + 70 ) + - - 68 AS col1
----
138

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL + MIN ( ALL + + 70 ) + - - 68 AS col1
----
138

query I rowsort
SELECT + 32 - + + 74 AS col0
----
-42

query I rowsort
SELECT + 71 * - 32 AS col2
----
-2272

query II rowsort
SELECT + 76 + + 32 + 27 AS col2, - 59 * + 22
----
135
-1298

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT ALL - 46 * + + COUNT( * ) - COUNT( 76 )
----
-47

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL - 46 * + + COUNT ( * ) - COUNT ( 76 )
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-4144
SELECT DISTINCT + ( 76 ) DIV 10 * + + 88 * + + 8 AS col0
----
4928

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT + ( 76 ) / 10 * + + 88 * + + 8 AS col0
----
4928

query I rowsort
SELECT ALL NULLIF ( - - 4, 99 )
----
4

query I rowsort
SELECT - - 91 + + + 17 col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL - COUNT( DISTINCT - + 8 ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL - COUNT ( DISTINCT - + 8 ) * - COUNT ( * )
----
1

query I rowsort
SELECT - + 74 * + 76 AS col1
----
-5624

query I rowsort
SELECT DISTINCT 13 * - 90 AS col2
----
-1170

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4150
SELECT - CAST( 68 AS SIGNED ) AS col2, - NULLIF ( 49, - 10 ) + 63
----
-68
14

skipif mysql # not compatible
query II rowsort label-4150
SELECT - CAST ( 68 AS INTEGER ) AS col2, - NULLIF ( 49, - 10 ) + 63
----
-68
14

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4152
SELECT - 59 * - 33 * - COUNT( * ), 40 AS col1
----
-1947
40

skipif mysql # not compatible
query II rowsort label-4152
SELECT - 59 * - 33 * - COUNT ( * ), 40 AS col1
----
-1947
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT DISTINCT SUM( DISTINCT - 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT SUM ( DISTINCT - 54 ) AS col1
----
-54

query I rowsort
SELECT ALL 35 * + + 92 AS col0
----
3220

onlyif mysql # DIV for integer division: 
query I rowsort label-4155
SELECT - 47 + NULLIF ( 71, + 63 ) DIV + 25 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-4155
SELECT - 47 + NULLIF ( 71, + 63 ) / + 25 AS col1
----
-45

query II rowsort
SELECT 9 AS col1, 33
----
9
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL + 99 + - COUNT( * ) + - - 0 * - 33
----
98

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + 99 + - COUNT ( * ) + - - 0 * - 33
----
98

query I rowsort
SELECT - 99 * + - 90 * 27
----
240570

query I rowsort
SELECT + 11 + + 90 + 31 * 62
----
2023

onlyif mysql # aggregate syntax: 
query II rowsort label-4161
SELECT - 87 + - + MIN( 58 ), - 51 * + + 46 * + - COUNT( * ) AS col2
----
-145
2346

skipif mysql # not compatible
query II rowsort label-4161
SELECT - 87 + - + MIN ( 58 ), - 51 * + + 46 * + - COUNT ( * ) AS col2
----
-145
2346

query I rowsort
SELECT - 69 + 84 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT + MIN( - 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-4163
SELECT + MIN ( - 68 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT - 70 * - 52 + - + MIN( - 11 ) AS col2
----
3651

skipif mysql # not compatible
query I rowsort label-4164
SELECT - 70 * - 52 + - + MIN ( - 11 ) AS col2
----
3651

query I rowsort
SELECT ALL - 9 * - 54
----
486

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT - 33 + - 2 + - 2 * - - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-4166
SELECT - 33 + - 2 + - 2 * - - COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT - COUNT( * ) * - NULLIF ( + 21, + 28 ) col2
----
21

skipif mysql # not compatible
query I rowsort label-4167
SELECT - COUNT ( * ) * - NULLIF ( + 21, + 28 ) col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT + 89 * + + 95 * + COUNT( * )
----
8455

skipif mysql # not compatible
query I rowsort label-4168
SELECT + 89 * + + 95 * + COUNT ( * )
----
8455

query I rowsort
SELECT NULLIF ( 0, - 28 )
----
0

query I rowsort
SELECT 5 * - 2 * - - 53 + + + 9 + - - 32 * - 71
----
-2793

query I rowsort
SELECT + ( - 79 ) + + 20 + - 8 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT DISTINCT - ( - 49 ) * - ( - SUM( 27 ) ) + 54 col1
----
1377

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT - ( - 49 ) * - ( - SUM ( 27 ) ) + 54 col1
----
1377

query II rowsort
SELECT ALL + + 99 AS col2, + 61
----
99
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4174
SELECT ALL + + COUNT( * ) DIV - NULLIF ( + MIN( + 14 ), + 97 DIV ( - 23 ) DIV - 68 + 35 - + 41 + + AVG ( + + 64 ) - + - MAX( - 25 ) + - 30 + + 66 - - - 9 * 68 + CASE + - ( + 39 ) WHEN 92 THEN + 89 WHEN 38 THEN - COUNT( * ) * - COUNT( * ) + 87 * + - 35 + 41 + - 44 * - 99 END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL + + COUNT ( * ) / - NULLIF ( + MIN ( + 14 ), + 97 / ( - 23 ) / - 68 + 35 - + 41 + + AVG ( + + 64 ) - + - MAX ( - 25 ) + - 30 + + 66 - - - 9 * 68 + CASE + - ( + 39 ) WHEN 92 THEN + 89 WHEN 38 THEN - COUNT ( * ) * - COUNT ( * ) + 87 * + - 35 + 41 + - 44 * - 99 END ) AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT ALL - + ( + + 79 ) * - COUNT( * ) * + 32 + + 59
----
2587

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL - + ( + + 79 ) * - COUNT ( * ) * + 32 + + 59
----
2587

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4178
SELECT + + 37 + 67 + + - 28 * - + COALESCE ( - 39, - COUNT( * ), + ( 73 ), + 27 * - 22 * - CASE + 12 WHEN + 75 * - - 30 / + 86 THEN + 0 END ), - 21 col0
----
-988
-21

skipif mysql # not compatible
query II rowsort label-4178
SELECT + + 37 + 67 + + - 28 * - + COALESCE ( - 39, - COUNT ( * ), + ( 73 ), + 27 * - 22 * - CASE + 12 WHEN + 75 * - - 30 / + 86 THEN + 0 END ), - 21 col0
----
-988
-21

query I rowsort
SELECT DISTINCT + 32 + + 59 AS col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4180
SELECT DISTINCT 94 + - - ( 1 ) + + + COUNT( * ) * + SUM( DISTINCT 82 ) - + COALESCE ( + + 93, - + 50 DIV - + 93 + - + 60, CASE - 64 WHEN 13 + + 98 * - 50 * - - 74 + + 85 * 51 THEN NULL WHEN 87 THEN 41 ELSE + 55 END DIV 42 + + 36 - + 42 + + + 73 DIV - - NULLIF ( + 48, + - 33 + - 99 ) )
----
84

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT 94 + - - ( 1 ) + + + COUNT ( * ) * + SUM ( DISTINCT 82 ) - + COALESCE ( + + 93, - + 50 / - + 93 + - + 60, CASE - 64 WHEN 13 + + 98 * - 50 * - - 74 + + 85 * 51 THEN NULL WHEN 87 THEN 41 ELSE + 55 END / 42 + + 36 - + 42 + + + 73 / - - NULLIF ( + 48, + - 33 + - 99 ) )
----
84

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

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

query I rowsort
SELECT ALL COALESCE ( + - 51, 98 * - 35 )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4183
SELECT - ( - 46 ) AS col2, + CASE - 92 WHEN - COUNT( * ) THEN + - 71 * COUNT( * ) / + ( - 3 ) * - 55 WHEN - + 10 THEN NULL ELSE NULL END AS col2
----
46
NULL

skipif mysql # not compatible
query II rowsort label-4183
SELECT - ( - 46 ) AS col2, + CASE - 92 WHEN - COUNT ( * ) THEN + - 71 * COUNT ( * ) / + ( - 3 ) * - 55 WHEN - + 10 THEN NULL ELSE NULL END AS col2
----
46
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4184
SELECT + 46 + COALESCE ( 41, - 9, ( + - 83 ) + - + ( + + NULLIF ( + ( - MAX( DISTINCT - + 62 ) ), - 42 ) ) ) - 60 * + 62 AS col1, - 46 AS col1
----
-3633
-46

skipif mysql # not compatible
query II rowsort label-4184
SELECT + 46 + COALESCE ( 41, - 9, ( + - 83 ) + - + ( + + NULLIF ( + ( - MAX ( DISTINCT - + 62 ) ), - 42 ) ) ) - 60 * + 62 AS col1, - 46 AS col1
----
-3633
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT ALL ( - 43 ) * + MAX( + 29 ) AS col2
----
-1247

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL ( - 43 ) * + MAX ( + 29 ) AS col2
----
-1247

query I rowsort
SELECT DISTINCT 16 + + 51 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT ALL - COALESCE ( CASE + 0 WHEN - 33 * - COALESCE ( - SUM( + 46 ), + NULLIF ( - 76, 28 ) ) - 46 THEN COALESCE ( - + 81, - COUNT( * ) + - 95 + + 11 ) * + 49 + - 97 * + COALESCE ( - 53, 81 ) END, + + 85 + 16 * NULLIF ( - 80, + 2 ) ) + 4 * + + CASE + - 60 WHEN - COUNT( * ) * - - MAX( ALL + 72 ) * ( 66 ) * - - COUNT( * ) + + 86 THEN - COUNT( * ) ELSE NULL END * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL - COALESCE ( CASE + 0 WHEN - 33 * - COALESCE ( - SUM ( + 46 ), + NULLIF ( - 76, 28 ) ) - 46 THEN COALESCE ( - + 81, - COUNT ( * ) + - 95 + + 11 ) * + 49 + - 97 * + COALESCE ( - 53, 81 ) END, + + 85 + 16 * NULLIF ( - 80, + 2 ) ) + 4 * + + CASE + - 60 WHEN - COUNT ( * ) * - - MAX ( ALL + 72 ) * ( 66 ) * - - COUNT ( * ) + + 86 THEN - COUNT ( * ) ELSE NULL END * + 26
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4189
SELECT DISTINCT + 86 DIV - 26 + + + 43 * + 42
----
1803

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT + 86 / - 26 + + + 43 * + 42
----
1803

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT ALL COUNT( * ) - - 60 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL COUNT ( * ) - - 60 AS col2
----
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4191
SELECT ALL CAST( 31 AS SIGNED ) DIV - 13 + 89 + + 80 - - + 84 * ( + 73 ) DIV - NULLIF ( + 38, + + 15 * 0 + + 7 )
----
6

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL CAST ( 31 AS INTEGER ) / - 13 + 89 + + 80 - - + 84 * ( + 73 ) / - NULLIF ( + 38, + + 15 * 0 + + 7 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT DISTINCT - 60 * + - MAX( ( - + 79 ) )
----
-4740

skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT - 60 * + - MAX ( ( - + 79 ) )
----
-4740

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT - COUNT( * ) * + 66 + + 60 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-4194
SELECT - COUNT ( * ) * + 66 + + 60 AS col1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4195
SELECT 78 * - COALESCE ( 15, + MAX( ALL - 87 ), - COUNT( * ) + 52 + 7 + - 77 DIV + - 67 ) AS col0
----
-1170

skipif mysql # not compatible
query I rowsort label-4195
SELECT 78 * - COALESCE ( 15, + MAX ( ALL - 87 ), - COUNT ( * ) + 52 + 7 + - 77 / + - 67 ) AS col0
----
-1170

query I rowsort
SELECT + 31 + 86 * - + 25 col0
----
-2119

query I rowsort
SELECT DISTINCT + 68 * + + 17 - - - ( - 69 ) * - 54 AS col1
----
-2570

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

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT + 51 * + COUNT ( * ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT ALL + 18 * + - 91 * + COUNT( + 9 ) * ( + 31 ) AS col1
----
-50778

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL + 18 * + - 91 * + COUNT ( + 9 ) * ( + 31 ) AS col1
----
-50778

query II rowsort
SELECT - 7 * - - 53 col0, - 36
----
-371
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT + - 93 * + - 19 - - SUM( ALL + 78 ) + ( - 47 ) AS col1
----
1798

skipif mysql # not compatible
query I rowsort label-4201
SELECT + - 93 * + - 19 - - SUM ( ALL + 78 ) + ( - 47 ) AS col1
----
1798

query I rowsort
SELECT 12 - - ( - 30 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT COUNT( * ) + + COUNT( * ) * + 90 + + + 2 + - + 23 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4203
SELECT COUNT ( * ) + + COUNT ( * ) * + 90 + + + 2 + - + 23 AS col2
----
70

query I rowsort
SELECT - - 46 col0
----
46

query I rowsort
SELECT + 74 + + - 31 + - 76
----
-33

query I rowsort
SELECT ALL - 3 + - 29 AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4207
SELECT ALL - + 39 + CAST( - 18 AS SIGNED ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL - + 39 + CAST ( - 18 AS INTEGER ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT DISTINCT + SUM( ALL - 5 ) + - 39 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT + SUM ( ALL - 5 ) + - 39 AS col2
----
-44

query I rowsort
SELECT 18 * 28
----
504

query I rowsort
SELECT DISTINCT + 35 + 45
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4211
SELECT ALL - CASE - 56 WHEN - 86 THEN + - COALESCE ( + 0, + 34, + - 90 * + 59 + + + 7 ) + + 23 + - COALESCE ( 68, - + COUNT( * ), + COUNT( * ) ) ELSE NULL END + + 52 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL - CASE - 56 WHEN - 86 THEN + - COALESCE ( + 0, + 34, + - 90 * + 59 + + + 7 ) + + 23 + - COALESCE ( 68, - + COUNT ( * ), + COUNT ( * ) ) ELSE NULL END + + 52 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 26 * + 87 * + 9
----
20358

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT COUNT( * ) + CASE - 98 WHEN - 72 THEN NULL ELSE - MAX( ALL + 43 ) * - - 23 - + ( 5 ) - + 48 END AS col0
----
-1041

skipif mysql # not compatible
query I rowsort label-4213
SELECT COUNT ( * ) + CASE - 98 WHEN - 72 THEN NULL ELSE - MAX ( ALL + 43 ) * - - 23 - + ( 5 ) - + 48 END AS col0
----
-1041

query I rowsort
SELECT 8 + 51 * + 52
----
2660

query I rowsort
SELECT DISTINCT 75 + + NULLIF ( - 0, + 59 * 24 * - 34 )
----
75

query II rowsort
SELECT - 72 AS col0, + 85
----
-72
85

query I rowsort
SELECT ALL 10 + 75
----
85

query I rowsort
SELECT 43 + 34 AS col0
----
77

query I rowsort
SELECT DISTINCT 39 - + 42 - ( - + 32 )
----
29

query I rowsort
SELECT ALL 4 * 92 AS col1
----
368

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4221
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT CAST ( NULL AS REAL ) / - 65
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4222
SELECT 33 + + - 86 DIV 30 - + - 98
----
129

skipif mysql # not compatible
query I rowsort label-4222
SELECT 33 + + - 86 / 30 - + - 98
----
129

query I rowsort
SELECT COALESCE ( + + 87, 63, - 23 * 62 ) * + + 5 AS col0
----
435

query I rowsort
SELECT ALL 68 * - 13 AS col0
----
-884

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4225
SELECT ( + 66 ) + COALESCE ( 36, - CAST( - 61 AS SIGNED ), - + 47 ) + - 42 * + ( - 2 )
----
186

skipif mysql # not compatible
query I rowsort label-4225
SELECT ( + 66 ) + COALESCE ( 36, - CAST ( - 61 AS INTEGER ), - + 47 ) + - 42 * + ( - 2 )
----
186

query III rowsort
SELECT + 48 AS col2, 54 * - 17 col0, + - 79
----
48
-918
-79

query I rowsort
SELECT 87 + + 26
----
113

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4228
SELECT ALL - CAST( NULL AS DECIMAL ) * + 17 / + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL - CAST ( NULL AS REAL ) * + 17 / + 83 AS col1
----
NULL

query I rowsort
SELECT 12 + + + 73
----
85

query I rowsort
SELECT 58 + + 28 + 25 * - + 27 * + + 97
----
-65389

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4232
SELECT + 62 * - CAST( NULL AS SIGNED ) / - MAX( + 86 ) + 5 + AVG ( 15 ) + + + 87 * + - ( + 8 ) * + 22 + + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4232
SELECT + 62 * - CAST ( NULL AS INTEGER ) / - MAX ( + 86 ) + 5 + AVG ( 15 ) + + + 87 * + - ( + 8 ) * + 22 + + 79 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4233
SELECT + 44 * - CAST( + - 34 AS SIGNED )
----
1496

skipif mysql # not compatible
query I rowsort label-4233
SELECT + 44 * - CAST ( + - 34 AS INTEGER )
----
1496

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT COUNT( * ) + + - 59
----
-58

skipif mysql # not compatible
query I rowsort label-4234
SELECT COUNT ( * ) + + - 59
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4235
SELECT ALL + + 66 * - 3 - - 33 DIV - ( + 58 )
----
-198

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL + + 66 * - 3 - - 33 / - ( + 58 )
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-4236
SELECT ALL + 37 + + 59 * 32 DIV COALESCE ( - + 98, - 92 + + 71 + - 27 + - 69 + + - 34, + - 32 + - 82 )
----
18

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL + 37 + + 59 * 32 / COALESCE ( - + 98, - 92 + + 71 + - 27 + - 69 + + - 34, + - 32 + - 82 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT DISTINCT + 4 + CASE - 97 WHEN + + COUNT( ALL + 14 ) * 29 THEN - 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT DISTINCT + 4 + CASE - 97 WHEN + + COUNT ( ALL + 14 ) * 29 THEN - 56 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4238
SELECT ALL + + 74 * + + CAST( - - 8 AS SIGNED ) * - + 11 AS col2
----
-6512

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL + + 74 * + + CAST ( - - 8 AS INTEGER ) * - + 11 AS col2
----
-6512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4239
SELECT ALL - 82 + + + CASE - COUNT( * ) WHEN 27 / + COUNT( * ) + 64 * + 79 + 19 + 53 THEN NULL WHEN - 86 THEN + 2 / - 42 + + COUNT( * ) - + 73 * - 89 + + - COUNT( * ) * CAST( NULL AS SIGNED ) END - + + 76 + + COALESCE ( + COUNT( * ), + + 95 * - + 43 + + 25 + - 33 + 55 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL - 82 + + + CASE - COUNT ( * ) WHEN 27 / + COUNT ( * ) + 64 * + 79 + 19 + 53 THEN NULL WHEN - 86 THEN + 2 / - 42 + + COUNT ( * ) - + 73 * - 89 + + - COUNT ( * ) * CAST ( NULL AS INTEGER ) END - + + 76 + + COALESCE ( + COUNT ( * ), + + 95 * - + 43 + + 25 + - 33 + 55 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4240
SELECT DISTINCT + 24 + - 66 + - 55 DIV + 60
----
-42

skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT + 24 + - 66 + - 55 / + 60
----
-42

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

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT MAX ( DISTINCT 37 )
----
37

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

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL + COUNT ( * ) + + 9 AS col0
----
10

query I rowsort
SELECT 11 - - 70 * + 88 col0
----
6171

query II rowsort
SELECT - 58, + NULLIF ( + + 53, 33 ) AS col2
----
-58
53

query I rowsort
SELECT 56 * 44 AS col1
----
2464

query I rowsort
SELECT 27 * - 34
----
-918

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4248
SELECT DISTINCT - ( - + 1 ) DIV - NULLIF ( 9, 52 + + + 0 ) * - 45
----
0

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT - ( - + 1 ) / - NULLIF ( 9, 52 + + + 0 ) * - 45
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4249
SELECT DISTINCT + COUNT( * ) - + 45, 15 + - - 49 + - 36 + - 30 * - NULLIF ( 97, + CAST( NULL AS SIGNED ) ) + - COUNT( + 23 ) * 72 * - 31 * - CAST( + 87 AS SIGNED ) AS col0
----
-44
-191246

skipif mysql # not compatible
query II rowsort label-4249
SELECT DISTINCT + COUNT ( * ) - + 45, 15 + - - 49 + - 36 + - 30 * - NULLIF ( 97, + CAST ( NULL AS INTEGER ) ) + - COUNT ( + 23 ) * 72 * - 31 * - CAST ( + 87 AS INTEGER ) AS col0
----
-44
-191246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4250
SELECT ALL - CAST( - ( - 35 ) AS SIGNED ) * - 61 AS col2
----
2135

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL - CAST ( - ( - 35 ) AS INTEGER ) * - 61 AS col2
----
2135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4251
SELECT DISTINCT 63 * - MAX( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT DISTINCT 63 * - MAX ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4252
SELECT ALL + ( - 63 ) - - 68 * - 4 AS col1, - CAST( NULL AS SIGNED ) AS col1
----
-335
NULL

skipif mysql # not compatible
query II rowsort label-4252
SELECT ALL + ( - 63 ) - - 68 * - 4 AS col1, - CAST ( NULL AS INTEGER ) AS col1
----
-335
NULL

query II rowsort
SELECT - 83, - 44 + 51 AS col0
----
-83
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT ALL NULLIF ( + CASE - 53 WHEN MIN( ALL 77 ) THEN COALESCE ( 11, + - 22 * + + 20 + 86 ) * + ( + 13 ) + + 57 * - 74 ELSE - 14 * - 2 END, - - 79 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL NULLIF ( + CASE - 53 WHEN MIN ( ALL 77 ) THEN COALESCE ( 11, + - 22 * + + 20 + 86 ) * + ( + 13 ) + + 57 * - 74 ELSE - 14 * - 2 END, - - 79 ) AS col1
----
28

onlyif mysql # DIV for integer division: 
query II rowsort label-4255
SELECT - 37, - 4 DIV 41 AS col2
----
-37
0

skipif mysql # not compatible
query II rowsort label-4255
SELECT - 37, - 4 / 41 AS col2
----
-37
0

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

skipif mysql # not compatible
query I rowsort label-4256
SELECT + CAST ( NULL AS REAL ) * 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT - COUNT( DISTINCT ( + + 37 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4257
SELECT - COUNT ( DISTINCT ( + + 37 ) ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT ALL COALESCE ( - COUNT( * ), - + 10, - 39, - - COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL COALESCE ( - COUNT ( * ), - + 10, - 39, - - COUNT ( * ) ) col1
----
-1

query II rowsort
SELECT ALL 50, - 24 AS col2
----
50
-24

query I rowsort
SELECT + CASE - 1 WHEN + ( + ( - 32 ) ) + + 88 THEN 93 + + - 92 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4261
SELECT ALL + - COUNT( * ) AS col2, - 20 + 28
----
-1
8

skipif mysql # not compatible
query II rowsort label-4261
SELECT ALL + - COUNT ( * ) AS col2, - 20 + 28
----
-1
8

query I rowsort
SELECT DISTINCT + - 27 col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT ALL 26 * 84 + CASE NULLIF ( - - 14, - COUNT( * ) ) WHEN 24 THEN - 94 WHEN + - 2 + COUNT( * ) + + COUNT( * ) * + 69 * + COUNT( - 42 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL 26 * 84 + CASE NULLIF ( - - 14, - COUNT ( * ) ) WHEN 24 THEN - 94 WHEN + - 2 + COUNT ( * ) + + COUNT ( * ) * + 69 * + COUNT ( - 42 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 18 * - 44 + + 9
----
-783

query III rowsort
SELECT + 1 AS col1, 53 - + + ( - 94 ) AS col1, + 78 + + + 6
----
1
147
84

query I rowsort
SELECT ALL - 42 * + 14 + - + 25
----
-613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4267
SELECT + 30 / - - 76 / + - 43 + ( + + CAST( NULL AS SIGNED ) ) + + 90 * - - 23 * + - ( - + NULLIF ( - + 19, - - 5 * - + 10 ) ) * ( + ( 66 ) ) + 33 + COUNT( * ) + + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-4267
SELECT + 30 / - - 76 / + - 43 + ( + + CAST ( NULL AS INTEGER ) ) + + 90 * - - 23 * + - ( - + NULLIF ( - + 19, - - 5 * - + 10 ) ) * ( + ( 66 ) ) + 33 + COUNT ( * ) + + 41
----
NULL

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

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

query II rowsort
SELECT + 62 col1, + 96 * 88
----
62
8448

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4270
SELECT ALL - - 16 * - - 30 + 58 + + CAST( - CAST( + 47 AS SIGNED ) AS SIGNED ) col2, + 33 AS col0
----
491
33

skipif mysql # not compatible
query II rowsort label-4270
SELECT ALL - - 16 * - - 30 + 58 + + CAST ( - CAST ( + 47 AS INTEGER ) AS INTEGER ) col2, + 33 AS col0
----
491
33

query II rowsort
SELECT - 35 AS col1, + 3
----
-35
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4272
SELECT ALL 47 * + COUNT( * ) * - + 91 + + - 29 AS col0, + ( + ( 86 ) ) col1
----
-4306
86

skipif mysql # not compatible
query II rowsort label-4272
SELECT ALL 47 * + COUNT ( * ) * - + 91 + + - 29 AS col0, + ( + ( 86 ) ) col1
----
-4306
86

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4274
SELECT ALL - + 18 * + - 50 + - NULLIF ( - + 85, - 80 + - 4 ) DIV + 29 col2
----
902

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL - + 18 * + - 50 + - NULLIF ( - + 85, - 80 + - 4 ) / + 29 col2
----
902

query I rowsort
SELECT ALL 34 * 51 + 22 AS col1
----
1756

query I rowsort
SELECT - - ( + + ( + 39 ) ) + + 45 + - 24 AS col0
----
60

query I rowsort
SELECT + - 20 + + 88
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT - NULLIF ( - 48, - 74 ) * - - MIN( ALL - + 99 ) + 97
----
-4655

skipif mysql # not compatible
query I rowsort label-4278
SELECT - NULLIF ( - 48, - 74 ) * - - MIN ( ALL - + 99 ) + 97
----
-4655

query I rowsort
SELECT - 53 - + 8 AS col1
----
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-4280
SELECT + ( + + 91 ), - 69 DIV + 79 col1
----
91
0

skipif mysql # not compatible
query II rowsort label-4280
SELECT + ( + + 91 ), - 69 / + 79 col1
----
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT DISTINCT + COUNT( * ) * - - 98 - 46
----
52

skipif mysql # not compatible
query I rowsort label-4281
SELECT DISTINCT + COUNT ( * ) * - - 98 - 46
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4282
SELECT ALL - 45 * - - 15 AS col0, NULLIF ( + NULLIF ( 79, + - CAST( - 88 AS SIGNED ) ), - COALESCE ( 23, + 43 ) ) AS col0
----
-675
79

skipif mysql # not compatible
query II rowsort label-4282
SELECT ALL - 45 * - - 15 AS col0, NULLIF ( + NULLIF ( 79, + - CAST ( - 88 AS INTEGER ) ), - COALESCE ( 23, + 43 ) ) AS col0
----
-675
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4283
SELECT ALL COUNT( ALL - 79 ), 20 AS col2
----
1
20

skipif mysql # not compatible
query II rowsort label-4283
SELECT ALL COUNT ( ALL - 79 ), 20 AS col2
----
1
20

query I rowsort
SELECT ALL COALESCE ( - - NULLIF ( + 62, + ( - + ( + - 10 ) ) * 53 ), 1 )
----
62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4285
SELECT - MIN( - - 82 ) + + - 85 + 11 * CAST( + 59 AS DECIMAL ) * + CAST( NULL AS DECIMAL ) AS col2, 25
----
NULL
25

skipif mysql # not compatible
query II rowsort label-4285
SELECT - MIN ( - - 82 ) + + - 85 + 11 * CAST ( + 59 AS REAL ) * + CAST ( NULL AS REAL ) AS col2, 25
----
NULL
25

query I rowsort
SELECT - 51 + - - 32 + + 59
----
40

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4288
SELECT DISTINCT - 1 DIV - + 30 AS col2, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-4288
SELECT DISTINCT - 1 / - + 30 AS col2, COUNT ( * )
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4289
SELECT - COUNT( * ) + 52 + - 56 - + - 10 * + 57 * + + CAST( NULL AS SIGNED ) * - + 83 - COUNT( * ) - - 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT - COUNT ( * ) + 52 + - 56 - + - 10 * + 57 * + + CAST ( NULL AS INTEGER ) * - + 83 - COUNT ( * ) - - 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4290
SELECT DISTINCT - 11 DIV - 61 * - ( COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT - 11 / - 61 * - ( COUNT ( * ) ) AS col1
----
0

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

query I rowsort
SELECT + COALESCE ( + 41, 65 )
----
41

query I rowsort
SELECT - - 36 + 49 * + 17 + - 25 AS col2
----
844

onlyif mysql # DIV for integer division: 
query I rowsort label-4294
SELECT ALL + 31 + + 56 DIV 63
----
31

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL + 31 + + 56 / 63
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT - 86 + - CAST( 94 AS SIGNED ) + - + 14
----
-194

skipif mysql # not compatible
query I rowsort label-4295
SELECT - 86 + - CAST ( 94 AS INTEGER ) + - + 14
----
-194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4296
SELECT - CAST( + + 28 AS SIGNED ), - CASE - - 48 WHEN + 26 * + 93 THEN + - 84 * - - 48 * + - NULLIF ( - + COUNT( * ), + + 62 ) * - 31 + + - NULLIF ( 56, - 30 ) * + MAX( - CAST( NULL AS SIGNED ) ) ELSE + 31 + - - COALESCE ( - 80, - COUNT( * ) * + + 84 + - COUNT( * ) + - - 68 ) + CAST( NULL AS SIGNED ) * + - 41 / + 43 * ( - - SUM( CAST( + 51 AS SIGNED ) ) ) / - 20 - 14 END * - + 59 AS col1
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-4296
SELECT - CAST ( + + 28 AS INTEGER ), - CASE - - 48 WHEN + 26 * + 93 THEN + - 84 * - - 48 * + - NULLIF ( - + COUNT ( * ), + + 62 ) * - 31 + + - NULLIF ( 56, - 30 ) * + MAX ( - CAST ( NULL AS INTEGER ) ) ELSE + 31 + - - COALESCE ( - 80, - COUNT ( * ) * + + 84 + - COUNT ( * ) + - - 68 ) + CAST ( NULL AS INTEGER ) * + - 41 / + 43 * ( - - SUM ( CAST ( + 51 AS INTEGER ) ) ) / - 20 - 14 END * - + 59 AS col1
----
-28
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4297
SELECT - ( + + 12 ) * + + 62 / - 16 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT - ( + + 12 ) * + + 62 / - 16 / CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4298
SELECT DISTINCT 45 DIV 19 * + 62 + 6 + - - 3 + COUNT( * )
----
134

skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT 45 / 19 * + 62 + 6 + - - 3 + COUNT ( * )
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT ALL - 80 DIV 50 + + 8 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL - 80 / 50 + + 8 AS col2
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4300
SELECT ALL + 15 DIV COUNT( * ) + COUNT( * ) + 62 * - 4
----
-232

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL + 15 / COUNT ( * ) + COUNT ( * ) + 62 * - 4
----
-232

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4302
SELECT DISTINCT - - 56 DIV + - 49 - 39 + ( - + COUNT( * ) ) DIV + 81 * - + 97 AS col2, + 50
----
-40
50

skipif mysql # not compatible
query II rowsort label-4302
SELECT DISTINCT - - 56 / + - 49 - 39 + ( - + COUNT ( * ) ) / + 81 * - + 97 AS col2, + 50
----
-40
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4303
SELECT + + 58 * - 29 / COUNT( * ) + - CAST( NULL AS SIGNED ) * + - 8 - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT + + 58 * - 29 / COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + - 8 - 49 AS col1
----
NULL

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

query I rowsort
SELECT + 0 * - 64 AS col1
----
0

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4308
SELECT ( + 61 ) DIV CASE 75 WHEN - 55 THEN + COUNT( * ) * + 92 * 67 WHEN - - 56 * + 23 - - 36 THEN NULL ELSE 2 END AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4308
SELECT ( + 61 ) / CASE 75 WHEN - 55 THEN + COUNT ( * ) * + 92 * 67 WHEN - - 56 * + 23 - - 36 THEN NULL ELSE 2 END AS col0
----
30

query I rowsort
SELECT 72 * + - 81
----
-5832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4310
SELECT NULLIF ( + 8, + + 38 / - 88 - 97 ) + - CASE + + 47 WHEN MIN( ALL - ( - CAST( NULL AS SIGNED ) ) ) THEN - + 21 * + COUNT( + CASE + 89 WHEN + 63 - + ( + 43 ) THEN NULL WHEN 76 / 5 - 32 + - 91 THEN - - 79 * + 21 + - CAST( + 21 AS SIGNED ) - - + 2 * - 72 ELSE NULL END ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT NULLIF ( + 8, + + 38 / - 88 - 97 ) + - CASE + + 47 WHEN MIN ( ALL - ( - CAST ( NULL AS INTEGER ) ) ) THEN - + 21 * + COUNT ( + CASE + 89 WHEN + 63 - + ( + 43 ) THEN NULL WHEN 76 / 5 - 32 + - 91 THEN - - 79 * + 21 + - CAST ( + 21 AS INTEGER ) - - + 2 * - 72 ELSE NULL END ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4311
SELECT ALL 78, - 55 + + - 86 * - - ( + 20 ) * NULLIF ( + 8, - 41 ) + ( + 89 ) DIV CAST( + - 67 AS SIGNED ) AS col1
----
78
-13816

skipif mysql # not compatible
query II rowsort label-4311
SELECT ALL 78, - 55 + + - 86 * - - ( + 20 ) * NULLIF ( + 8, - 41 ) + ( + 89 ) / CAST ( + - 67 AS INTEGER ) AS col1
----
78
-13816

query I rowsort
SELECT 87 + + 98
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT MAX( DISTINCT - 41 ) * 59 * + 99 * + 33 * - + 13
----
102737349

skipif mysql # not compatible
query I rowsort label-4313
SELECT MAX ( DISTINCT - 41 ) * 59 * + 99 * + 33 * - + 13
----
102737349

query I rowsort
SELECT ALL - 15 + 84
----
69

query II rowsort
SELECT - 88 AS col2, + 24 + - 37 AS col1
----
-88
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4316
SELECT ALL - SUM( DISTINCT + 56 ) + COUNT( * ) * + 90 col1, + CAST( + + 78 AS SIGNED )
----
34
78

skipif mysql # not compatible
query II rowsort label-4316
SELECT ALL - SUM ( DISTINCT + 56 ) + COUNT ( * ) * + 90 col1, + CAST ( + + 78 AS INTEGER )
----
34
78

query I rowsort
SELECT 81 - 88 * + + 26 AS col0
----
-2207

query I rowsort
SELECT ALL 3 + 43 col2
----
46

query II rowsort
SELECT - 99 AS col0, + 59 + 26 * - - 45
----
-99
1229

query I rowsort
SELECT ALL - + 47 + ( 93 ) * - 12
----
-1163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4321
SELECT - 75 + + - MAX( - CAST( - 24 AS SIGNED ) ) DIV COUNT( * ) * - 15
----
285

skipif mysql # not compatible
query I rowsort label-4321
SELECT - 75 + + - MAX ( - CAST ( - 24 AS INTEGER ) ) / COUNT ( * ) * - 15
----
285

query I rowsort
SELECT ALL + - 59 + + 69 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT 66 * MAX( - 61 ) * NULLIF ( + COUNT( * ), - 1 - + - 33 + ( - - 51 ) * ( - + 98 ) ) AS col1
----
-4026

skipif mysql # not compatible
query I rowsort label-4323
SELECT 66 * MAX ( - 61 ) * NULLIF ( + COUNT ( * ), - 1 - + - 33 + ( - - 51 ) * ( - + 98 ) ) AS col1
----
-4026

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

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

query II rowsort
SELECT ALL - 25 AS col2, 31
----
-25
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT - 33 * - 65 * + ( + + COUNT( * ) ) * - 81 * 76 + - 9 AS col1
----
-13204629

skipif mysql # not compatible
query I rowsort label-4326
SELECT - 33 * - 65 * + ( + + COUNT ( * ) ) * - 81 * 76 + - 9 AS col1
----
-13204629

query I rowsort
SELECT DISTINCT - - 46 * - 70
----
-3220

query I rowsort
SELECT ALL + - 67 - - ( + - 78 )
----
-145

onlyif mysql # aggregate syntax: 
query II rowsort label-4329
SELECT ALL - 84 * - + 47 * + 12, ( + + COUNT( * ) ) AS col1
----
47376
1

skipif mysql # not compatible
query II rowsort label-4329
SELECT ALL - 84 * - + 47 * + 12, ( + + COUNT ( * ) ) AS col1
----
47376
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4330
SELECT DISTINCT - + 54 * 71 * - - 57, CAST( + 71 AS SIGNED ) * + - 30 AS col0
----
-218538
-2130

skipif mysql # not compatible
query II rowsort label-4330
SELECT DISTINCT - + 54 * 71 * - - 57, CAST ( + 71 AS INTEGER ) * + - 30 AS col0
----
-218538
-2130

onlyif mysql # DIV for integer division: 
query I rowsort label-4331
SELECT - 84 DIV + 18 + + + 88 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4331
SELECT - 84 / + 18 + + + 88 AS col1
----
84

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

query I rowsort
SELECT DISTINCT + - 25 - - 99
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT - 8 * 65 + + 14 * - CASE 89 WHEN - 51 THEN - - COUNT( * ) ELSE - - 93 + 82 END + COUNT( * )
----
-2969

skipif mysql # not compatible
query I rowsort label-4334
SELECT - 8 * 65 + + 14 * - CASE 89 WHEN - 51 THEN - - COUNT ( * ) ELSE - - 93 + 82 END + COUNT ( * )
----
-2969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4335
SELECT DISTINCT - CASE - + ( + 76 ) WHEN + 56 * - + 95 THEN - 41 + - NULLIF ( 8, + COUNT( * ) ) + - - COUNT( * ) * - ( 67 ) ELSE + COALESCE ( - 6, - CAST( NULL AS SIGNED ), + 38 ) + - - 71 + - 48 END * - 52, 64 * - 69 AS col0
----
884
-4416

skipif mysql # not compatible
query II rowsort label-4335
SELECT DISTINCT - CASE - + ( + 76 ) WHEN + 56 * - + 95 THEN - 41 + - NULLIF ( 8, + COUNT ( * ) ) + - - COUNT ( * ) * - ( 67 ) ELSE + COALESCE ( - 6, - CAST ( NULL AS INTEGER ), + 38 ) + - - 71 + - 48 END * - 52, 64 * - 69 AS col0
----
884
-4416

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT MIN( ALL 94 ) + + + 51 * - + 25
----
-1181

skipif mysql # not compatible
query I rowsort label-4336
SELECT MIN ( ALL 94 ) + + + 51 * - + 25
----
-1181

query I rowsort
SELECT ALL 69 * 43 * + - 5
----
-14835

query I rowsort
SELECT 81 - - + 88 * + + 81 AS col1
----
7209

query I rowsort
SELECT DISTINCT 4 * - ( 4 ) AS col1
----
-16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT ALL 9 * - MIN( + 24 ) AS col2
----
-216

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL 9 * - MIN ( + 24 ) AS col2
----
-216

query I rowsort
SELECT DISTINCT 68 + ( 75 )
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4343
SELECT ALL CASE NULLIF ( + CAST( - - COUNT( * ) AS SIGNED ), 11 ) WHEN - 64 * - + CAST( NULL AS DECIMAL ) / - 36 * + ( + MIN( DISTINCT + 53 ) ) * - COUNT( - 66 ) * + CAST( NULL AS SIGNED ) * + COUNT( * ) THEN NULL WHEN + 50 / 82 THEN 65 ELSE NULL END / - CAST( NULL AS SIGNED ) + - + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL CASE NULLIF ( + CAST ( - - COUNT ( * ) AS INTEGER ), 11 ) WHEN - 64 * - + CAST ( NULL AS REAL ) / - 36 * + ( + MIN ( DISTINCT + 53 ) ) * - COUNT ( - 66 ) * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) THEN NULL WHEN + 50 / 82 THEN 65 ELSE NULL END / - CAST ( NULL AS INTEGER ) + - + 76
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4344
SELECT DISTINCT 3 + + - 82 - - + 87 * ( - 76 ) * - COUNT( - 15 ) + + 66 - + MAX( DISTINCT 81 ) DIV - 22 + + 14 + - 15
----
6601

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT 3 + + - 82 - - + 87 * ( - 76 ) * - COUNT ( - 15 ) + + 66 - + MAX ( DISTINCT 81 ) / - 22 + + 14 + - 15
----
6601

onlyif mysql # DIV for integer division: 
query I rowsort label-4345
SELECT ALL + ( 97 ) DIV - 18
----
-5

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL + ( 97 ) / - 18
----
-5

query I rowsort
SELECT 12 + + ( NULLIF ( 36, + 86 ) ) AS col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4347
SELECT + 38 DIV + COUNT( * ) AS col0, - 35
----
38
-35

skipif mysql # not compatible
query II rowsort label-4347
SELECT + 38 / + COUNT ( * ) AS col0, - 35
----
38
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT 71 + - MIN( DISTINCT + 10 )
----
61

skipif mysql # not compatible
query I rowsort label-4348
SELECT 71 + - MIN ( DISTINCT + 10 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT + MAX( + 36 ) + ( COUNT( * ) ) + + 54 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-4349
SELECT + MAX ( + 36 ) + ( COUNT ( * ) ) + + 54 AS col1
----
91

query I rowsort
SELECT 2 * - + 98 AS col0
----
-196

onlyif mysql # aggregate syntax: 
query II rowsort label-4351
SELECT ALL COUNT( * ) + 94 - + ( + - 23 ) AS col1, 15 AS col2
----
118
15

skipif mysql # not compatible
query II rowsort label-4351
SELECT ALL COUNT ( * ) + 94 - + ( + - 23 ) AS col1, 15 AS col2
----
118
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4352
SELECT ALL - COUNT( * ) + + + 96 col1, CAST( + 93 AS SIGNED ) AS col2
----
95
93

skipif mysql # not compatible
query II rowsort label-4352
SELECT ALL - COUNT ( * ) + + + 96 col1, CAST ( + 93 AS INTEGER ) AS col2
----
95
93

query I rowsort
SELECT - 4 + 58 + + + 27 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT DISTINCT MAX( + 46 ) + + 56 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT MAX ( + 46 ) + + 56 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT DISTINCT - ( + MAX( ALL - 63 ) ) col2
----
63

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT - ( + MAX ( ALL - 63 ) ) col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT COUNT( * ) * - - 15 + + - 34 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4356
SELECT COUNT ( * ) * - - 15 + + - 34 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT ALL ( - CASE - + 45 WHEN - + COUNT( * ) - - 57 / - 47 * - 60 + + ( MAX( - - 96 ) ) + 52 + + ( COUNT( * ) ) THEN 71 * 63 * 62 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4357
SELECT ALL ( - CASE - + 45 WHEN - + COUNT ( * ) - - 57 / - 47 * - 60 + + ( MAX ( - - 96 ) ) + 52 + + ( COUNT ( * ) ) THEN 71 * 63 * 62 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4358
SELECT ALL + 47 DIV - 34
----
-1

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL + 47 / - 34
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4360
SELECT ALL + - CAST( 59 AS SIGNED ) AS col0, + 55 AS col2
----
-59
55

skipif mysql # not compatible
query II rowsort label-4360
SELECT ALL + - CAST ( 59 AS INTEGER ) AS col0, + 55 AS col2
----
-59
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4361
SELECT DISTINCT + - 89 * 24 DIV ( - - 15 ) + 16 AS col1
----
-126

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT + - 89 * 24 / ( - - 15 ) + 16 AS col1
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-4362
SELECT - - 8 DIV + 17 * - 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4362
SELECT - - 8 / + 17 * - 42 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4363
SELECT ALL 8 DIV 66 * + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL 8 / 66 * + - COUNT ( * )
----
0

query I rowsort
SELECT ALL - 86 * + - 77 AS col2
----
6622

query I rowsort
SELECT ALL + 32 * - 97
----
-3104

query I rowsort
SELECT - 46 * - 80 * - 62 AS col2
----
-228160

query I rowsort
SELECT DISTINCT + 41 * - 32 * + 35 AS col2
----
-45920

query I rowsort
SELECT ALL - 87 * + + 83
----
-7221

query I rowsort
SELECT ALL 67 * 15 * + - 27 + 22 + ( + 65 ) AS col1
----
-27048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4370
SELECT - COALESCE ( - MIN( ALL + 19 ), CASE CASE - + 40 WHEN + - 92 THEN NULL WHEN + 18 THEN + 55 END WHEN 89 * + CAST( NULL AS SIGNED ) THEN NULL WHEN - + COUNT( * ) THEN 37 * + COUNT( DISTINCT + 49 ) ELSE NULL END * + - 49 ) + - 86 - + + SUM( ALL 31 ) - 34 * ( - + 35 ) + + COUNT( * ) col1
----
1093

skipif mysql # not compatible
query I rowsort label-4370
SELECT - COALESCE ( - MIN ( ALL + 19 ), CASE CASE - + 40 WHEN + - 92 THEN NULL WHEN + 18 THEN + 55 END WHEN 89 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN - + COUNT ( * ) THEN 37 * + COUNT ( DISTINCT + 49 ) ELSE NULL END * + - 49 ) + - 86 - + + SUM ( ALL 31 ) - 34 * ( - + 35 ) + + COUNT ( * ) col1
----
1093

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4371
SELECT - COUNT( + - 92 ) * - 9 * + 54 + + 9 DIV + - ( + - 26 )
----
486

skipif mysql # not compatible
query I rowsort label-4371
SELECT - COUNT ( + - 92 ) * - 9 * + 54 + + 9 / + - ( + - 26 )
----
486

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4372
SELECT DISTINCT + 39 AS col1, - CAST( NULL AS SIGNED ) AS col1
----
39
NULL

skipif mysql # not compatible
query II rowsort label-4372
SELECT DISTINCT + 39 AS col1, - CAST ( NULL AS INTEGER ) AS col1
----
39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT DISTINCT 79 * + 43 + + - ( COUNT( * ) ) AS col1
----
3396

skipif mysql # not compatible
query I rowsort label-4373
SELECT DISTINCT 79 * + 43 + + - ( COUNT ( * ) ) AS col1
----
3396

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4374
SELECT ALL + 97 + 59 * + + 82 + + 8 + - 24 AS col1, - 28 * - - CAST( NULL AS DECIMAL ) + - COUNT( * ) - 90 col0
----
4919
NULL

skipif mysql # not compatible
query II rowsort label-4374
SELECT ALL + 97 + 59 * + + 82 + + 8 + - 24 AS col1, - 28 * - - CAST ( NULL AS REAL ) + - COUNT ( * ) - 90 col0
----
4919
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4375
SELECT - CAST( NULL AS SIGNED ) + - 52 / - SUM( ALL 71 ) * - 36 * - - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT - CAST ( NULL AS INTEGER ) + - 52 / - SUM ( ALL 71 ) * - 36 * - - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT + 26 * + COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4376
SELECT + 26 * + COUNT ( * ) AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4377
SELECT - - NULLIF ( - 66, - - 5 ) * NULLIF ( - ( - 21 ), 24 / 59 + - 61 + 36 ) + - SUM( ALL 48 ) + CAST( NULL AS SIGNED ) + - 96 - + 23 * COUNT( * ) / 12 + - + 45 * COUNT( * ) * ( - NULLIF ( + 15, 9 * 75 + 15 / 27 ) ) * - 92 / 73 + - 63 * + - 56 + + 40 * - 7 * - 62 + + 58 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4377
SELECT - - NULLIF ( - 66, - - 5 ) * NULLIF ( - ( - 21 ), 24 / 59 + - 61 + 36 ) + - SUM ( ALL 48 ) + CAST ( NULL AS INTEGER ) + - 96 - + 23 * COUNT ( * ) / 12 + - + 45 * COUNT ( * ) * ( - NULLIF ( + 15, 9 * 75 + 15 / 27 ) ) * - 92 / 73 + - 63 * + - 56 + + 40 * - 7 * - 62 + + 58 col0
----
NULL

query I rowsort
SELECT ALL 10 + 90
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4379
SELECT ALL CAST( NULL AS SIGNED ) - + + 96 + + 5 col2, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4379
SELECT ALL CAST ( NULL AS INTEGER ) - + + 96 + + 5 col2, COUNT ( * ) AS col2
----
NULL
1

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

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

query I rowsort
SELECT - - ( 83 ) * 52 + + - ( 40 ) - - 17 * - 45 AS col1
----
3511

query II rowsort
SELECT - + 29 AS col1, 98 AS col2
----
-29
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4383
SELECT - CAST( 18 AS SIGNED ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4383
SELECT - CAST ( 18 AS INTEGER ) AS col1
----
-18

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4385
SELECT + - 98 DIV - 9
----
10

skipif mysql # not compatible
query I rowsort label-4385
SELECT + - 98 / - 9
----
10

query I rowsort
SELECT ALL 39 * 93 AS col2
----
3627

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4387
SELECT ALL + COALESCE ( - NULLIF ( - 10, 45 ), + COALESCE ( + 40, + 47 + - 78 * SUM( - + 90 ) DIV + 16 ) * + - 12 + + - 7 )
----
10

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL + COALESCE ( - NULLIF ( - 10, 45 ), + COALESCE ( + 40, + 47 + - 78 * SUM ( - + 90 ) / + 16 ) * + - 12 + + - 7 )
----
10

query I rowsort
SELECT ALL + 40 * 59 * + ( + + 30 )
----
70800

onlyif mysql # DIV for integer division: 
query I rowsort label-4389
SELECT + 82 + - - COALESCE ( - 85, ( - 15 ) * + 53 ) DIV + 55 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4389
SELECT + 82 + - - COALESCE ( - 85, ( - 15 ) * + 53 ) / + 55 AS col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4390
SELECT - 1 * 63 + - 52 * + NULLIF ( + CAST( NULL AS SIGNED ), + - 53 ) * - 63 + + + 95 - + 71 AS col0, + COUNT( * ) col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4390
SELECT - 1 * 63 + - 52 * + NULLIF ( + CAST ( NULL AS INTEGER ), + - 53 ) * - 63 + + + 95 - + 71 AS col0, + COUNT ( * ) col0
----
NULL
1

query II rowsort
SELECT + 5 AS col2, - 64 AS col1
----
5
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-4392
SELECT ALL 94 DIV - 36 + 35 + - 17 * + ( 14 ) AS col0
----
-205

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL 94 / - 36 + 35 + - 17 * + ( 14 ) AS col0
----
-205

onlyif mysql # DIV for integer division: 
query I rowsort label-4393
SELECT 64 DIV 52 + + 96 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4393
SELECT 64 / 52 + + 96 AS col0
----
97

query I rowsort
SELECT - 40 * - 20 AS col0
----
800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4395
SELECT + COUNT( * ) + 34 AS col2, - CASE + ( - COUNT( * ) ) WHEN + CAST( NULL AS SIGNED ) THEN - + COUNT( * ) END + + - 74
----
35
NULL

skipif mysql # not compatible
query II rowsort label-4395
SELECT + COUNT ( * ) + 34 AS col2, - CASE + ( - COUNT ( * ) ) WHEN + CAST ( NULL AS INTEGER ) THEN - + COUNT ( * ) END + + - 74
----
35
NULL

query I rowsort
SELECT ALL 31 * - 43 + - - 79
----
-1254

query I rowsort
SELECT ALL 50 * - ( - 7 ) + NULLIF ( 81, 67 )
----
431

query I rowsort
SELECT ALL 75 * + - 8 + + + 14 AS col0
----
-586

query II rowsort
SELECT + 76 col0, 31 * - 21
----
76
-651

query I rowsort
SELECT - 57 + + 92 + + - 51
----
-16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT ALL - 56 * NULLIF ( + 89, 78 / COUNT( * ) ) AS col1
----
-4984

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL - 56 * NULLIF ( + 89, 78 / COUNT ( * ) ) AS col1
----
-4984

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4403
SELECT COALESCE ( + + 25, + COUNT( * ) DIV - 28 * - - 66, + AVG ( ( - 32 ) ) DIV 97 DIV 16 * + + COUNT( ALL + 2 ) - - 84, + 66 ) AS col1, + 50
----
25
50

skipif mysql # not compatible
query II rowsort label-4403
SELECT COALESCE ( + + 25, + COUNT ( * ) / - 28 * - - 66, + AVG ( ( - 32 ) ) / 97 / 16 * + + COUNT ( ALL + 2 ) - - 84, + 66 ) AS col1, + 50
----
25
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4404
SELECT ALL + 45, - NULLIF ( - COUNT( * ), - 54 ) AS col1
----
45
1

skipif mysql # not compatible
query II rowsort label-4404
SELECT ALL + 45, - NULLIF ( - COUNT ( * ), - 54 ) AS col1
----
45
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT 2 * + 10 + CASE + - 88 WHEN + - 82 THEN 2 * 22 + - + 70 * + COUNT( * ) + + + COUNT( * ) * 61 * - 99 + + 11 + - COUNT( * ) + + COUNT( * ) + - + 83 * 28 + COUNT( * ) - + + 70 / CASE + 12 WHEN - 46 THEN 31 END + - 82 END * + - ( - ( 67 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT 2 * + 10 + CASE + - 88 WHEN + - 82 THEN 2 * 22 + - + 70 * + COUNT ( * ) + + + COUNT ( * ) * 61 * - 99 + + 11 + - COUNT ( * ) + + COUNT ( * ) + - + 83 * 28 + COUNT ( * ) - + + 70 / CASE + 12 WHEN - 46 THEN 31 END + - 82 END * + - ( - ( 67 ) )
----
NULL

query I rowsort
SELECT - 27 + ( - - 16 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-4407
SELECT - COUNT( * ) * - - 75 * - 52 * - 17 AS col1, + ( 63 ) AS col0
----
-66300
63

skipif mysql # not compatible
query II rowsort label-4407
SELECT - COUNT ( * ) * - - 75 * - 52 * - 17 AS col1, + ( 63 ) AS col0
----
-66300
63

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

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

query I rowsort
SELECT - + ( + + 88 ) + 56 AS col1
----
-32

query II rowsort
SELECT ALL - 90, + 11 AS col1
----
-90
11

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

skipif mysql # not compatible
query I rowsort label-4411
SELECT - - COUNT ( DISTINCT + 61 ) + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 77 AS col0, 2 AS col0
----
77
2

query I rowsort
SELECT - + CASE - 82 WHEN - 78 THEN NULL ELSE - 48 END AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-4414
SELECT - + 93 + + 22 + + + 86 DIV + + 43 + - 42 + - + 27 + + 58 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-4414
SELECT - + 93 + + 22 + + + 86 / + + 43 + - 42 + - + 27 + + 58 AS col0
----
-80

query I rowsort
SELECT + 27 * 20 - 98
----
442

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT DISTINCT - - 48 * + COUNT( 51 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-4416
SELECT DISTINCT - - 48 * + COUNT ( 51 ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4417
SELECT ALL COUNT( * ) AS col1, - 58 + - 92 + - 70 + - 6 col1
----
1
-226

skipif mysql # not compatible
query II rowsort label-4417
SELECT ALL COUNT ( * ) AS col1, - 58 + - 92 + - 70 + - 6 col1
----
1
-226

query I rowsort
SELECT + 2 + + 44 AS col2
----
46

query II rowsort
SELECT DISTINCT 28 AS col1, - 84 AS col0
----
28
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL - MIN( DISTINCT + + 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL - MIN ( DISTINCT + + 68 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT + 16 + - - 93 + + 84 * 8 * - 15 * + + COUNT( * ) AS col0
----
-9971

skipif mysql # not compatible
query I rowsort label-4421
SELECT + 16 + - - 93 + + 84 * 8 * - 15 * + + COUNT ( * ) AS col0
----
-9971

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4422
SELECT - 43 * 68 DIV + COUNT( * )
----
-2924

skipif mysql # not compatible
query I rowsort label-4422
SELECT - 43 * 68 / + COUNT ( * )
----
-2924

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT COALESCE ( - 83, - - 2 * + COUNT( * ) ) col1
----
-83

skipif mysql # not compatible
query I rowsort label-4423
SELECT COALESCE ( - 83, - - 2 * + COUNT ( * ) ) col1
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4424
SELECT CAST( + + 67 AS SIGNED ) + + COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4424
SELECT CAST ( + + 67 AS INTEGER ) + + COUNT ( * ) AS col2
----
68

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4426
SELECT 55 * 35 DIV - ( - 38 )
----
50

skipif mysql # not compatible
query I rowsort label-4426
SELECT 55 * 35 / - ( - 38 )
----
50

query I rowsort
SELECT DISTINCT 40 * - + 74 AS col0
----
-2960

onlyif mysql # aggregate syntax: 
query II rowsort label-4428
SELECT DISTINCT 52 + + - COUNT( * ) AS col0, + NULLIF ( + + 72, 19 )
----
51
72

skipif mysql # not compatible
query II rowsort label-4428
SELECT DISTINCT 52 + + - COUNT ( * ) AS col0, + NULLIF ( + + 72, 19 )
----
51
72

query I rowsort
SELECT 81 * - - 45 AS col2
----
3645

query I rowsort
SELECT ALL 87 + 15
----
102

query I rowsort
SELECT + ( - CASE - - 86 WHEN 94 THEN 52 WHEN + AVG ( ALL 67 ) THEN NULL END ) / - 83 - 40 col2
----
NULL

query I rowsort
SELECT ALL 39 * - 20 AS col1
----
-780

query I rowsort
SELECT 71 * 31
----
2201

query II rowsort
SELECT 6 * + 95 AS col1, - 71 + 24
----
570
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT DISTINCT 74 - + + 8 + - SUM( - 92 ) * + + 90 * + 67 + - NULLIF ( - ( - + 29 ), - + AVG ( ALL 38 ) ) AS col0
----
554797

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT 74 - + + 8 + - SUM ( - 92 ) * + + 90 * + 67 + - NULLIF ( - ( - + 29 ), - + AVG ( ALL 38 ) ) AS col0
----
554797

query I rowsort
SELECT ALL - 34 - - 36 * - 56 AS col1
----
-2050

onlyif mysql # DIV for integer division: 
query I rowsort label-4437
SELECT DISTINCT - 25 DIV 32
----
0

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT - 25 / 32
----
0

query I rowsort
SELECT ALL - + 50 * + 83
----
-4150

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT ALL COUNT( * ) - + + 39 + - 74 AS col2
----
-112

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL COUNT ( * ) - + + 39 + - 74 AS col2
----
-112

query II rowsort
SELECT DISTINCT - + ( + + 26 ) AS col0, 23 - 63
----
-26
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT 36 * ( - COUNT( DISTINCT 84 ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4441
SELECT 36 * ( - COUNT ( DISTINCT 84 ) ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-4442
SELECT ( - 31 ), + COUNT( * ) + 15 AS col2
----
-31
16

skipif mysql # not compatible
query II rowsort label-4442
SELECT ( - 31 ), + COUNT ( * ) + 15 AS col2
----
-31
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT ALL + - MIN( DISTINCT - + 18 ) * - COUNT( * ) * 85 / + NULLIF ( COUNT( * ), COUNT( ALL - 6 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL + - MIN ( DISTINCT - + 18 ) * - COUNT ( * ) * 85 / + NULLIF ( COUNT ( * ), COUNT ( ALL - 6 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4444
SELECT - CAST( NULL AS SIGNED ) + 29, - 14 + - + 84 AS col2
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-4444
SELECT - CAST ( NULL AS INTEGER ) + 29, - 14 + - + 84 AS col2
----
NULL
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-4445
SELECT 25 DIV 94 AS col2, 91 AS col2
----
0
91

skipif mysql # not compatible
query II rowsort label-4445
SELECT 25 / 94 AS col2, 91 AS col2
----
0
91

query I rowsort
SELECT + 50 * - 76 AS col1
----
-3800

query I rowsort
SELECT DISTINCT + COALESCE ( 64, - - 84 )
----
64

query I rowsort
SELECT + CASE + ( + 98 ) WHEN - 43 THEN NULL WHEN 67 + + 89 THEN NULL ELSE + 10 + + 5 END * 48
----
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4449
SELECT ALL + 40 * + CAST( - + 32 AS SIGNED ) AS col0
----
-1280

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL + 40 * + CAST ( - + 32 AS INTEGER ) AS col0
----
-1280

query I rowsort
SELECT ALL + + 33 + + + 45
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL - 73 + - 92 + - COUNT( * )
----
-166

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL - 73 + - 92 + - COUNT ( * )
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT COUNT( * ) - - - 36 * 1 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4452
SELECT COUNT ( * ) - - - 36 * 1 AS col0
----
-35

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

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

query I rowsort
SELECT ALL + 33 + - 45 + - + 78 * + - 56
----
4356

query I rowsort
SELECT ALL + 1 + + - NULLIF ( 24, 12 + 95 * 48 ) * 21
----
-503

query I rowsort
SELECT 62 - 97 + 80
----
45

query II rowsort
SELECT - 3 col2, 59 - - 68
----
-3
127

query I rowsort
SELECT ALL 99 + + 64 + + 75
----
238

query I rowsort
SELECT 71 - - 90
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4460
SELECT 74 * - CAST( + 46 AS SIGNED ) AS col1
----
-3404

skipif mysql # not compatible
query I rowsort label-4460
SELECT 74 * - CAST ( + 46 AS INTEGER ) AS col1
----
-3404

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT SUM( + 68 )
----
68

skipif mysql # not compatible
query I rowsort label-4462
SELECT SUM ( + 68 )
----
68

query I rowsort
SELECT + 54 * + 17 * - 80 * + 7 + 76 AS col1
----
-514004

query I rowsort
SELECT 80 + - - ( + 46 )
----
126

query I rowsort
SELECT 16 * + 19
----
304

query II rowsort
SELECT + 35 AS col2, + ( + 18 ) col1
----
35
18

query I rowsort
SELECT ALL 85 * 22 * + + 69 AS col2
----
129030

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT - 16 * - COUNT( * ) + + 74
----
90

skipif mysql # not compatible
query I rowsort label-4469
SELECT - 16 * - COUNT ( * ) + + 74
----
90

query I rowsort
SELECT DISTINCT 32 * - 52 col1
----
-1664

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT + 82 * + 41 - - COUNT( * )
----
3363

skipif mysql # not compatible
query I rowsort label-4471
SELECT + 82 * + 41 - - COUNT ( * )
----
3363

query I rowsort
SELECT ALL - COALESCE ( + 38, + 57, + 27 ) * - + 68
----
2584

query II rowsort
SELECT + 83 AS col2, + 70 AS col1
----
83
70

query II rowsort
SELECT ALL - 84 AS col0, + 36 AS col1
----
-84
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL COUNT( * ) * + - CASE - 96 WHEN + NULLIF ( + - 11, - - MAX( ALL - 70 ) ) THEN NULL WHEN CASE + 62 WHEN 85 THEN + 82 + 13 * 24 WHEN 34 / 40 THEN NULL END / + - 20 THEN + 39 END / 7 * - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL COUNT ( * ) * + - CASE - 96 WHEN + NULLIF ( + - 11, - - MAX ( ALL - 70 ) ) THEN NULL WHEN CASE + 62 WHEN 85 THEN + 82 + 13 * 24 WHEN 34 / 40 THEN NULL END / + - 20 THEN + 39 END / 7 * - 73
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4476
SELECT DISTINCT + + MIN( DISTINCT + - CAST( - ( 41 ) AS SIGNED ) ) col2
----
41

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT + + MIN ( DISTINCT + - CAST ( - ( 41 ) AS INTEGER ) ) col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT ALL - 88 + - MAX( + + 71 ) * COUNT( * ) * + 97
----
-6975

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL - 88 + - MAX ( + + 71 ) * COUNT ( * ) * + 97
----
-6975

query I rowsort
SELECT ALL + 30 + + + 49 - - 61 - - 11 * ( + ( 39 ) )
----
569

onlyif mysql # DIV for integer division: 
query I rowsort label-4479
SELECT DISTINCT + - 80 + - 34 + + 94 * - + 23 * + 22 + - 91 - 71 DIV - ( + 56 ) AS col1
----
-47768

skipif mysql # not compatible
query I rowsort label-4479
SELECT DISTINCT + - 80 + - 34 + + 94 * - + 23 * + 22 + - 91 - 71 / - ( + 56 ) AS col1
----
-47768

onlyif mysql # DIV for integer division: 
query I rowsort label-4480
SELECT DISTINCT - 86 DIV + 5
----
-17

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT - 86 / + 5
----
-17

query I rowsort
SELECT ALL - 28 + 64 col2
----
36

query I rowsort
SELECT + + 47 + + 51 AS col2
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4483
SELECT + - CASE + ( + + ( + + COUNT( * ) ) ) WHEN - COUNT( * ) * 6 + + + 43 THEN + 9 END + 38 AS col1, 93 AS col2
----
NULL
93

skipif mysql # not compatible
query II rowsort label-4483
SELECT + - CASE + ( + + ( + + COUNT ( * ) ) ) WHEN - COUNT ( * ) * 6 + + + 43 THEN + 9 END + 38 AS col1, 93 AS col2
----
NULL
93

query I rowsort
SELECT - 34 - + - 15
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4485
SELECT DISTINCT - + 1 + + NULLIF ( 66, + - 12 ) + + - CASE - - COUNT( * ) WHEN CASE + 7 WHEN - + CAST( NULL AS SIGNED ) THEN 76 ELSE NULL END THEN + 86 WHEN - + 95 + + 62 THEN NULL END col2, 91
----
NULL
91

skipif mysql # not compatible
query II rowsort label-4485
SELECT DISTINCT - + 1 + + NULLIF ( 66, + - 12 ) + + - CASE - - COUNT ( * ) WHEN CASE + 7 WHEN - + CAST ( NULL AS INTEGER ) THEN 76 ELSE NULL END THEN + 86 WHEN - + 95 + + 62 THEN NULL END col2, 91
----
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT ALL SUM( + 83 )
----
83

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL SUM ( + 83 )
----
83

query II rowsort
SELECT - 91, 69 AS col2
----
-91
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT DISTINCT - COUNT( * ) + 10 col2
----
9

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT - COUNT ( * ) + 10 col2
----
9

query I rowsort
SELECT - 81 + + 5
----
-76

query I rowsort
SELECT ALL NULLIF ( + 50, - 19 ) col0
----
50

query I rowsort
SELECT DISTINCT NULLIF ( + 23, + + 0 )
----
23

query I rowsort
SELECT ALL + 34 - - - 83
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT - ( + NULLIF ( 97, - COUNT( * ) ) ) * - 99 AS col2
----
9603

skipif mysql # not compatible
query I rowsort label-4493
SELECT - ( + NULLIF ( 97, - COUNT ( * ) ) ) * - 99 AS col2
----
9603

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4494
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4495
SELECT - CAST( + 44 AS SIGNED ) * + CAST( - + COUNT( * ) AS SIGNED ) * - 8
----
-352

skipif mysql # not compatible
query I rowsort label-4495
SELECT - CAST ( + 44 AS INTEGER ) * + CAST ( - + COUNT ( * ) AS INTEGER ) * - 8
----
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT ALL + COUNT( * ) * 25 col1
----
25

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL + COUNT ( * ) * 25 col1
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4497
SELECT DISTINCT + 17 * - 53 AS col0, + 11 + 13 + MIN( ( - + 20 ) ) col0
----
-901
4

skipif mysql # not compatible
query II rowsort label-4497
SELECT DISTINCT + 17 * - 53 AS col0, + 11 + 13 + MIN ( ( - + 20 ) ) col0
----
-901
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4498
SELECT - CAST( NULL AS SIGNED ) * + 23 / - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT - CAST ( NULL AS INTEGER ) * + 23 / - 74
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4499
SELECT + MIN( DISTINCT + + ( + - 97 ) ) / - CASE 34 WHEN + 54 THEN COUNT( * ) * MAX( DISTINCT + + 83 ) / + CAST( NULL AS SIGNED ) + + 41 * + CAST( + SUM( + 69 ) AS DECIMAL ) + - NULLIF ( + 9, COALESCE ( 1, + + 11, NULLIF ( + 59, + AVG ( DISTINCT 8 ) - - COUNT( * ) + - 29 * - 13 - - 81 + 10 ) + + - 36 ) ) END - - + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT + MIN ( DISTINCT + + ( + - 97 ) ) / - CASE 34 WHEN + 54 THEN COUNT ( * ) * MAX ( DISTINCT + + 83 ) / + CAST ( NULL AS INTEGER ) + + 41 * + CAST ( + SUM ( + 69 ) AS REAL ) + - NULLIF ( + 9, COALESCE ( 1, + + 11, NULLIF ( + 59, + AVG ( DISTINCT 8 ) - - COUNT ( * ) + - 29 * - 13 - - 81 + 10 ) + + - 36 ) ) END - - + 14 AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( - - 46, 84 ) AS col1
----
46

query I rowsort
SELECT - 19 * - 38 AS col0
----
722

query I rowsort
SELECT - + 20 * + - 63 * + 32
----
40320

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT - - 45 * + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-4503
SELECT - - 45 * + COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT ALL + COUNT( * ) * + + 58 + + 58
----
116

skipif mysql # not compatible
query I rowsort label-4504
SELECT ALL + COUNT ( * ) * + + 58 + + 58
----
116

query I rowsort
SELECT ALL 53 * + + 7 * + 53 + + ( 52 ) * - 13 + + 14 AS col1
----
19001

query I rowsort
SELECT DISTINCT - 7 * + 81 + - 39
----
-606

query I rowsort
SELECT DISTINCT + - ( - + 40 )
----
40

query I rowsort
SELECT + + 18 + + + 39 AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4509
SELECT + 18 + 49 DIV - 87 + - 22 col0
----
-4

skipif mysql # not compatible
query I rowsort label-4509
SELECT + 18 + 49 / - 87 + - 22 col0
----
-4

query I rowsort
SELECT - NULLIF ( - NULLIF ( + 2, - 45 * 58 ), 13 * + 20 - 55 - 21 + - 5 * + 1 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT DISTINCT + COUNT( ALL - 78 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT + COUNT ( ALL - 78 ) col2
----
1

query I rowsort
SELECT ALL - 70 * 2 + + 88 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT + MIN( 92 ) * - 66 AS col0
----
-6072

skipif mysql # not compatible
query I rowsort label-4513
SELECT + MIN ( 92 ) * - 66 AS col0
----
-6072

onlyif mysql # DIV for integer division: 
query I rowsort label-4514
SELECT ALL - 41 DIV + + 85
----
0

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL - 41 / + + 85
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4515
SELECT + - ( + + COUNT( * ) ) DIV + 25 + NULLIF ( - - CAST( + 82 AS SIGNED ), + COUNT( DISTINCT 45 ) DIV + + 72 )
----
82

skipif mysql # not compatible
query I rowsort label-4515
SELECT + - ( + + COUNT ( * ) ) / + 25 + NULLIF ( - - CAST ( + 82 AS INTEGER ), + COUNT ( DISTINCT 45 ) / + + 72 )
----
82

query I rowsort
SELECT DISTINCT + 28 * + + 56
----
1568

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4517
SELECT - CAST( NULL AS DECIMAL ), - 82 * 18 + + - 65 * + COUNT( * ) AS col0
----
NULL
-1541

skipif mysql # not compatible
query II rowsort label-4517
SELECT - CAST ( NULL AS REAL ), - 82 * 18 + + - 65 * + COUNT ( * ) AS col0
----
NULL
-1541

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT DISTINCT + CASE - + 65 WHEN - 74 THEN NULL ELSE + 56 END - + MAX( 2 ) + 94
----
148

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT + CASE - + 65 WHEN - 74 THEN NULL ELSE + 56 END - + MAX ( 2 ) + 94
----
148

query I rowsort
SELECT + 52 * - 16
----
-832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4520
SELECT ALL 64 DIV + SUM( ALL 22 )
----
2

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL 64 / + SUM ( ALL 22 )
----
2

query I rowsort
SELECT - ( + 12 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT + COUNT( * ) + 73 + 31 AS col0
----
105

skipif mysql # not compatible
query I rowsort label-4522
SELECT + COUNT ( * ) + 73 + 31 AS col0
----
105

query I rowsort
SELECT ALL 16 * 86 AS col2
----
1376

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT DISTINCT COALESCE ( - COUNT( * ), + + ( + 78 ), + - 61 * COALESCE ( 94, 37 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT COALESCE ( - COUNT ( * ), + + ( + 78 ), + - 61 * COALESCE ( 94, 37 ) )
----
-1

query I rowsort
SELECT DISTINCT 63 * + ( 42 ) AS col1
----
2646

query I rowsort
SELECT DISTINCT 21 * + - 77
----
-1617

query I rowsort
SELECT - 92 - + 73 AS col1
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT - COUNT( * ) * 48
----
-48

skipif mysql # not compatible
query I rowsort label-4528
SELECT - COUNT ( * ) * 48
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4529
SELECT - 7 DIV + COUNT( * ) + - 94
----
-101

skipif mysql # not compatible
query I rowsort label-4529
SELECT - 7 / + COUNT ( * ) + - 94
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT - 20 * - COUNT( * ) - 10 - 22 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-4530
SELECT - 20 * - COUNT ( * ) - 10 - 22 AS col2
----
-12

query I rowsort
SELECT - 8 + 49
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT 76 * 77 - - SUM( ALL + CAST( NULL AS SIGNED ) - 17 * - 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT 76 * 77 - - SUM ( ALL + CAST ( NULL AS INTEGER ) - 17 * - 24 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT DISTINCT + ( + COUNT( * ) ) * - 60 col2
----
-60

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT + ( + COUNT ( * ) ) * - 60 col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT - COUNT( * ) * + 55 + - 33 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-4534
SELECT - COUNT ( * ) * + 55 + - 33 AS col1
----
-88

query I rowsort
SELECT ALL - 4 * - 52
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT ALL + 13 + ( + MAX( DISTINCT 41 ) ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL + 13 + ( + MAX ( DISTINCT 41 ) ) AS col1
----
54

query I rowsort
SELECT ALL - ( ( + 43 ) ) AS col0
----
-43

query I rowsort
SELECT DISTINCT + 32 + 9
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4539
SELECT MAX( DISTINCT 65 ) + 62 DIV - 99 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4539
SELECT MAX ( DISTINCT 65 ) + 62 / - 99 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL + COUNT( * ) + CASE WHEN NULL IS NOT NULL THEN NULL ELSE + 30 END * + 98
----
2941

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL + COUNT ( * ) + CASE WHEN NULL IS NOT NULL THEN NULL ELSE + 30 END * + 98
----
2941

query I rowsort
SELECT 40 * 19 AS col1
----
760

query I rowsort
SELECT 75 * 30
----
2250

query I rowsort
SELECT 49 * + 28
----
1372

query I rowsort
SELECT + 25 * + 67 + 11 AS col2
----
1686

onlyif mysql # DIV for integer division: 
query I rowsort label-4545
SELECT DISTINCT 65 DIV 31 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT 65 / 31 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT 65 * + COUNT( * ) col0
----
65

skipif mysql # not compatible
query I rowsort label-4546
SELECT 65 * + COUNT ( * ) col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4547
SELECT ALL - 42 DIV + 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL - 42 / + 76 AS col0
----
0

query I rowsort
SELECT CASE - 56 WHEN + 71 THEN - 49 ELSE NULL END * - 13
----
NULL

query I rowsort
SELECT 0 * 38 AS col2
----
0

query I rowsort
SELECT 6 - 50 * + 17 AS col1
----
-844

query I rowsort
SELECT DISTINCT 58 - - 42
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT MAX( - 62 ) + - 50 AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-4552
SELECT MAX ( - 62 ) + - 50 AS col0
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4553
SELECT NULLIF ( SUM( DISTINCT 79 ), CAST( NULL AS SIGNED ) * - 66 ) + 19 * - ( - 11 )
----
288

skipif mysql # not compatible
query I rowsort label-4553
SELECT NULLIF ( SUM ( DISTINCT 79 ), CAST ( NULL AS INTEGER ) * - 66 ) + 19 * - ( - 11 )
----
288

query I rowsort
SELECT ALL - 52 * 36 AS col0
----
-1872

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT 90 * + SUM( DISTINCT - 88 ) AS col0
----
-7920

skipif mysql # not compatible
query I rowsort label-4555
SELECT 90 * + SUM ( DISTINCT - 88 ) AS col0
----
-7920

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT COALESCE ( + 15, 17 ) + - COALESCE ( + COUNT( * ) + 87, 31, - 50 + - 98 )
----
-73

skipif mysql # not compatible
query I rowsort label-4556
SELECT COALESCE ( + 15, 17 ) + - COALESCE ( + COUNT ( * ) + 87, 31, - 50 + - 98 )
----
-73

query I rowsort
SELECT ALL 62 * + 42
----
2604

query I rowsort
SELECT 15 + + 14 AS col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4559
SELECT ( 95 ) + CAST( 77 AS SIGNED ) AS col1
----
172

skipif mysql # not compatible
query I rowsort label-4559
SELECT ( 95 ) + CAST ( 77 AS INTEGER ) AS col1
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4560
SELECT ALL CASE + 82 WHEN 3 THEN + 29 WHEN 44 THEN NULL ELSE CAST( - COUNT( * ) AS SIGNED ) - + 76 END + AVG ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL CASE + 82 WHEN 3 THEN + 29 WHEN 44 THEN NULL ELSE CAST ( - COUNT ( * ) AS INTEGER ) - + 76 END + AVG ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT DISTINCT 9 DIV + ( - 74 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT 9 / + ( - 74 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4562
SELECT COUNT( * ) DIV 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4562
SELECT COUNT ( * ) / 95 AS col0
----
0

query I rowsort
SELECT 5 * 18 AS col2
----
90

query I rowsort
SELECT 41 + 48
----
89

query I rowsort
SELECT ALL 44 * + 18
----
792

query I rowsort
SELECT ALL ( 35 ) + 99 * 74 AS col2
----
7361

query I rowsort
SELECT DISTINCT 73 * - ( 73 * - COALESCE ( + 84, - 96 * + 26 ) )
----
447636

query I rowsort
SELECT ALL - 92 + - 46 * + 13
----
-690

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4569
SELECT CASE 64 WHEN + 46 THEN 42 * 97 + - ( - 2 + 47 ) WHEN CAST( + AVG ( DISTINCT - 63 ) AS DECIMAL ) * ( 48 + - 61 ) THEN NULL END * ( - ( 85 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT CASE 64 WHEN + 46 THEN 42 * 97 + - ( - 2 + 47 ) WHEN CAST ( + AVG ( DISTINCT - 63 ) AS REAL ) * ( 48 + - 61 ) THEN NULL END * ( - ( 85 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT SUM( ALL + 92 ) col2
----
92

skipif mysql # not compatible
query I rowsort label-4570
SELECT SUM ( ALL + 92 ) col2
----
92

query I rowsort
SELECT DISTINCT 7 + 38 * 87 AS col2
----
3313

query I rowsort
SELECT ALL 11 + 0
----
11

query I rowsort
SELECT ALL 25 + 85 AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT - COUNT( * ) - - 53
----
52

skipif mysql # not compatible
query I rowsort label-4574
SELECT - COUNT ( * ) - - 53
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) * ( 19 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) * ( 19 ) AS col0
----
-18

query I rowsort
SELECT ALL + - 32 - - 21
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT DISTINCT - SUM( ALL + 44 ) * 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT - SUM ( ALL + 44 ) * 0 AS col1
----
0

query I rowsort
SELECT DISTINCT - 47 * + 86
----
-4042

query I rowsort
SELECT + 58 - + 12
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT DISTINCT - COUNT( * ) * 5 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4580
SELECT DISTINCT - COUNT ( * ) * 5 AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4581
SELECT ALL + 55 - + CAST( NULL AS SIGNED ) * CASE - COUNT( * ) * - 63 + + COALESCE ( 86, - 65 + - 28 ) WHEN 8 THEN - 20 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL + 55 - + CAST ( NULL AS INTEGER ) * CASE - COUNT ( * ) * - 63 + + COALESCE ( 86, - 65 + - 28 ) WHEN 8 THEN - 20 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 71 * 61
----
4331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4583
SELECT NULLIF ( - + 33, COUNT( * ) * 45 + ( CAST( 39 AS SIGNED ) + + 71 ) ) * 71 col0
----
-2343

skipif mysql # not compatible
query I rowsort label-4583
SELECT NULLIF ( - + 33, COUNT ( * ) * 45 + ( CAST ( 39 AS INTEGER ) + + 71 ) ) * 71 col0
----
-2343

onlyif mysql # DIV for integer division: 
query I rowsort label-4584
SELECT 90 DIV - 21 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4584
SELECT 90 / - 21 AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4585
SELECT DISTINCT + 93 + + SUM( - 4 ) * CAST( - SUM( + 45 ) * + 91 AS SIGNED ) AS col1
----
16473

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT + 93 + + SUM ( - 4 ) * CAST ( - SUM ( + 45 ) * + 91 AS INTEGER ) AS col1
----
16473

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT COUNT( * ) + - 8
----
-7

skipif mysql # not compatible
query I rowsort label-4586
SELECT COUNT ( * ) + - 8
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4587
SELECT DISTINCT 22 + - 84 - - 11 * - 58 DIV + 58
----
-73

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT 22 + - 84 - - 11 * - 58 / + 58
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT 25 * COUNT( 51 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4588
SELECT 25 * COUNT ( 51 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT 96 - - SUM( DISTINCT CASE 51 WHEN - 12 THEN NULL ELSE + 70 END ) * + 60 AS col2
----
4296

skipif mysql # not compatible
query I rowsort label-4589
SELECT 96 - - SUM ( DISTINCT CASE 51 WHEN - 12 THEN NULL ELSE + 70 END ) * + 60 AS col2
----
4296

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT DISTINCT 68 * COUNT( * ) * + 16 AS col1
----
1088

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT 68 * COUNT ( * ) * + 16 AS col1
----
1088

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT ALL NULLIF ( + - 94, + MIN( - 79 ) ) + + 15
----
-79

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL NULLIF ( + - 94, + MIN ( - 79 ) ) + + 15
----
-79

query I rowsort
SELECT ALL 3 * + + ( + 10 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT - 9 * COUNT( * ) * - COALESCE ( 63 * 19, - 55, 15 ) AS col0
----
10773

skipif mysql # not compatible
query I rowsort label-4593
SELECT - 9 * COUNT ( * ) * - COALESCE ( 63 * 19, - 55, 15 ) AS col0
----
10773

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4594
SELECT ALL COUNT( * ) + - MAX( - 15 ) + - 17 DIV 80
----
16

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL COUNT ( * ) + - MAX ( - 15 ) + - 17 / 80
----
16

query I rowsort
SELECT DISTINCT - 4 * 92 * + 2
----
-736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4596
SELECT ALL CAST( - 77 AS SIGNED ) + 5
----
-72

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL CAST ( - 77 AS INTEGER ) + 5
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4597
SELECT + 3 - + COUNT( * ) + - 33 DIV + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-4597
SELECT + 3 - + COUNT ( * ) + - 33 / + COUNT ( * )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT ALL COALESCE ( + COUNT( * ), 85, - CASE + 52 WHEN + AVG ( ALL + 87 ) THEN - SUM( 44 ) WHEN 47 * + COUNT( * ) + + 49 THEN NULL WHEN 99 + 46 * 63 THEN COUNT( * ) - ( + 83 ) * - 90 ELSE NULL END )
----
1

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL COALESCE ( + COUNT ( * ), 85, - CASE + 52 WHEN + AVG ( ALL + 87 ) THEN - SUM ( 44 ) WHEN 47 * + COUNT ( * ) + + 49 THEN NULL WHEN 99 + 46 * 63 THEN COUNT ( * ) - ( + 83 ) * - 90 ELSE NULL END )
----
1

query I rowsort
SELECT DISTINCT ( + 20 ) + 9 AS col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4600
SELECT ALL ( - 57 ) DIV - 26 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL ( - 57 ) / - 26 AS col0
----
2

query I rowsort
SELECT + 26 + + ( + 17 ) * 63
----
1097

query I rowsort
SELECT ALL 95 + + 73 + 23 * + 20
----
628

query I rowsort
SELECT NULLIF ( + 11, AVG ( DISTINCT 20 ) + + 63 * NULLIF ( - 50, - ( - 54 ) / 84 ) ) AS col1
----
11

query I rowsort
SELECT - + ( 42 ) * 19 + NULLIF ( - 28, + 72 )
----
-826

query I rowsort
SELECT + + 75 * + + 3 AS col1
----
225

query I rowsort
SELECT ALL - 70 * + + 88
----
-6160

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4607
SELECT 6 DIV - + 18 * + CAST( 6 AS SIGNED ) + 22 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-4607
SELECT 6 / - + 18 * + CAST ( 6 AS INTEGER ) + 22 AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4608
SELECT COUNT( * ) * - - CAST( 64 AS SIGNED ) - 50
----
14

skipif mysql # not compatible
query I rowsort label-4608
SELECT COUNT ( * ) * - - CAST ( 64 AS INTEGER ) - 50
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT + MIN( + + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-4609
SELECT + MIN ( + + 36 )
----
36

query I rowsort
SELECT ALL - 79 * 53 - 73
----
-4260

query I rowsort
SELECT + 15 * - 99
----
-1485

query I rowsort
SELECT ALL 84 * 64 + 93
----
5469

query I rowsort
SELECT + 28 * + 81
----
2268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4614
SELECT ALL + 76 * 33 * CASE WHEN NOT - CAST( 30 AS SIGNED ) IN ( - ( + 98 ) * + CASE + 90 WHEN MIN( ALL 30 ) THEN 86 * + ( + 82 ) + - COUNT( * ) * - 38 END ) THEN NULL ELSE + 37 END AS col0
----
92796

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL + 76 * 33 * CASE WHEN NOT - CAST ( 30 AS INTEGER ) IN ( - ( + 98 ) * + CASE + 90 WHEN MIN ( ALL 30 ) THEN 86 * + ( + 82 ) + - COUNT ( * ) * - 38 END ) THEN NULL ELSE + 37 END AS col0
----
92796

query I rowsort
SELECT DISTINCT - 18 * + - 49 + - 68 * 7
----
406

onlyif mysql # DIV for integer division: 
query I rowsort label-4616
SELECT ALL + ( - - 31 ) DIV 2 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL + ( - - 31 ) / 2 AS col0
----
15

query I rowsort
SELECT + - 48 * - - 58 AS col1
----
-2784

query I rowsort
SELECT + 95 * + + 35 + - 80
----
3245

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT - 69 + + - COUNT( * ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-4619
SELECT - 69 + + - COUNT ( * ) AS col0
----
-70

query I rowsort
SELECT + + 88 + 18 + 42
----
148

query I rowsort
SELECT - - NULLIF ( 13, ( 79 ) ) + - 75
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT + COUNT( * ) * + + 43 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-4622
SELECT + COUNT ( * ) * + + 43 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT COUNT( DISTINCT - 30 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4623
SELECT COUNT ( DISTINCT - 30 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT COUNT( DISTINCT 25 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4624
SELECT COUNT ( DISTINCT 25 ) AS col0
----
1

query I rowsort
SELECT - 93 + + 82 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT DISTINCT 59 * - 83 * - COUNT( * ) + 64 AS col0
----
4961

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT 59 * - 83 * - COUNT ( * ) + 64 AS col0
----
4961

query I rowsort
SELECT ALL ( + 34 ) col2
----
34

query I rowsort
SELECT - 69 + + - 5 * 83 * + 41
----
-17084

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT - 28 * COUNT( * ) col1
----
-28

skipif mysql # not compatible
query I rowsort label-4629
SELECT - 28 * COUNT ( * ) col1
----
-28

query I rowsort
SELECT ALL + 89 + + 97
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT SUM( ALL CASE - 4 WHEN 47 * + 99 THEN NULL ELSE + 17 * + 8 END )
----
136

skipif mysql # not compatible
query I rowsort label-4631
SELECT SUM ( ALL CASE - 4 WHEN 47 * + 99 THEN NULL ELSE + 17 * + 8 END )
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4632
SELECT - 45 DIV - ( - + 72 ) * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4632
SELECT - 45 / - ( - + 72 ) * COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT + ( COUNT( * ) ) + 66
----
67

skipif mysql # not compatible
query I rowsort label-4633
SELECT + ( COUNT ( * ) ) + 66
----
67

query II rowsort
SELECT - 18 AS col1, 13 AS col1
----
-18
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4635
SELECT - 33 + 16 DIV - + 14 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4635
SELECT - 33 + 16 / - + 14 AS col0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4636
SELECT - 39 - CAST( + + 14 AS SIGNED ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-4636
SELECT - 39 - CAST ( + + 14 AS INTEGER ) AS col0
----
-53

query I rowsort
SELECT ALL + 44 + + ( + - 94 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT ALL COALESCE ( - 31, + COUNT( * ) )
----
-31

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL COALESCE ( - 31, + COUNT ( * ) )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT - 3 + - - COUNT( * ) + 12 + COUNT( ALL 23 + 9 ) * + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-4639
SELECT - 3 + - - COUNT ( * ) + 12 + COUNT ( ALL 23 + 9 ) * + COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT ALL 73 * - MAX( DISTINCT - 78 ) AS col1
----
5694

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL 73 * - MAX ( DISTINCT - 78 ) AS col1
----
5694

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT - COUNT( + 17 ) + CASE - ( 19 ) WHEN 13 + - 69 * + 83 THEN - SUM( DISTINCT 38 ) + + 91 WHEN + 71 THEN 37 WHEN + 52 - ( 54 ) THEN NULL END - - ( 8 - - 20 ) * + 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4641
SELECT - COUNT ( + 17 ) + CASE - ( 19 ) WHEN 13 + - 69 * + 83 THEN - SUM ( DISTINCT 38 ) + + 91 WHEN + 71 THEN 37 WHEN + 52 - ( 54 ) THEN NULL END - - ( 8 - - 20 ) * + 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT ALL + ( - COALESCE ( - 51, + COUNT( * ) ) ) + - 54 * + 66
----
-3513

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL + ( - COALESCE ( - 51, + COUNT ( * ) ) ) + - 54 * + 66
----
-3513

query I rowsort
SELECT ALL 49 * - 68
----
-3332

query I rowsort
SELECT - 55 + - - 96
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-4645
SELECT - COUNT( * ) AS col1, 3 * - 94
----
-1
-282

skipif mysql # not compatible
query II rowsort label-4645
SELECT - COUNT ( * ) AS col1, 3 * - 94
----
-1
-282

query I rowsort
SELECT - COALESCE ( 9, - + 82, - 87 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT ALL + - 52 * COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL + - 52 * COUNT ( * ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-4648
SELECT - + COUNT( * ) AS col1, 79
----
-1
79

skipif mysql # not compatible
query II rowsort label-4648
SELECT - + COUNT ( * ) AS col1, 79
----
-1
79

query I rowsort
SELECT ALL 29 - + 88 AS col1
----
-59

query I rowsort
SELECT ALL + - ( + 10 ) * ( 73 ) * 61 col1
----
-44530

query I rowsort
SELECT DISTINCT + ( + - ( - + 35 ) ) col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4652
SELECT ALL CAST( NULL AS SIGNED ) / + 38 - NULLIF ( + 57, + 40 * 15 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL CAST ( NULL AS INTEGER ) / + 38 - NULLIF ( + 57, + 40 * 15 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT + + SUM( + - 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4653
SELECT + + SUM ( + - 95 ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT + + 3 * - COUNT( * ) + + + 39 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4654
SELECT + + 3 * - COUNT ( * ) + + + 39 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT - + COUNT( * ) - - - COALESCE ( - - 49, + 27 ) col0
----
-50

skipif mysql # not compatible
query I rowsort label-4655
SELECT - + COUNT ( * ) - - - COALESCE ( - - 49, + 27 ) col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL - 64 * + - MAX( DISTINCT + 31 )
----
1984

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL - 64 * + - MAX ( DISTINCT + 31 )
----
1984

query I rowsort
SELECT + - 58 - - + 86 + - 68
----
-40

query II rowsort
SELECT 99 AS col1, 49 + + - 94 AS col2
----
99
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4659
SELECT + 15 DIV 23
----
0

skipif mysql # not compatible
query I rowsort label-4659
SELECT + 15 / 23
----
0

query I rowsort
SELECT ALL 59 * + + 2 - + 5 col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT ALL ( - ( + 65 ) ) * + COUNT( * ) + NULLIF ( - 91, 28 ) AS col2
----
-156

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL ( - ( + 65 ) ) * + COUNT ( * ) + NULLIF ( - 91, 28 ) AS col2
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4662
SELECT + CAST( - 51 AS SIGNED ), + 32 AS col2
----
-51
32

skipif mysql # not compatible
query II rowsort label-4662
SELECT + CAST ( - 51 AS INTEGER ), + 32 AS col2
----
-51
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL + COUNT( * ) * + + ( ( 39 ) ) + + 31
----
70

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL + COUNT ( * ) * + + ( ( 39 ) ) + + 31
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4664
SELECT + 93 DIV + 50 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4664
SELECT + 93 / + 50 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4665
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) * + 87 * COALESCE ( - 84, COUNT( ALL + COALESCE ( + 3, 99 / + NULLIF ( - CASE + 69 WHEN - 97 THEN NULL WHEN 22 + 80 THEN - 9 END, 11 * 38 - 20 ) ) ) ) - - COUNT( ALL 81 ) * 25 + + 12 col1
----
7345

skipif mysql # not compatible
query I rowsort label-4665
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) * + 87 * COALESCE ( - 84, COUNT ( ALL + COALESCE ( + 3, 99 / + NULLIF ( - CASE + 69 WHEN - 97 THEN NULL WHEN 22 + 80 THEN - 9 END, 11 * 38 - 20 ) ) ) ) - - COUNT ( ALL 81 ) * 25 + + 12 col1
----
7345

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4666
SELECT + 69 * - NULLIF ( MIN( ALL + + 87 ), + 6 * CAST( NULL AS DECIMAL ) ) * 6 AS col1
----
-36018

skipif mysql # not compatible
query I rowsort label-4666
SELECT + 69 * - NULLIF ( MIN ( ALL + + 87 ), + 6 * CAST ( NULL AS REAL ) ) * 6 AS col1
----
-36018

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4667
SELECT + 28 - - + 63 * - + 58 + CAST( 92 AS SIGNED ) * ( + 74 ) AS col1
----
3182

skipif mysql # not compatible
query I rowsort label-4667
SELECT + 28 - - + 63 * - + 58 + CAST ( 92 AS INTEGER ) * ( + 74 ) AS col1
----
3182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4668
SELECT + ( COALESCE ( + 41, COUNT( * ) + - ( COUNT( * ) ) * + 67, + ( NULLIF ( SUM( + 18 ), 70 * 87 ) ) + 24 DIV 45 ) )
----
41

skipif mysql # not compatible
query I rowsort label-4668
SELECT + ( COALESCE ( + 41, COUNT ( * ) + - ( COUNT ( * ) ) * + 67, + ( NULLIF ( SUM ( + 18 ), 70 * 87 ) ) + 24 / 45 ) )
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4669
SELECT + ( - COUNT( 64 ) ) + 28 DIV - 72 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4669
SELECT + ( - COUNT ( 64 ) ) + 28 / - 72 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4670
SELECT NULLIF ( COUNT( * ), CAST( COUNT( - 55 ) AS SIGNED ) ) * - 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT NULLIF ( COUNT ( * ), CAST ( COUNT ( - 55 ) AS INTEGER ) ) * - 6 AS col1
----
NULL

query I rowsort
SELECT 41 + + 40
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4672
SELECT ALL + CAST( 84 AS SIGNED ) * - COUNT( ALL - 23 ) + 61 col1
----
-23

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL + CAST ( 84 AS INTEGER ) * - COUNT ( ALL - 23 ) + 61 col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4673
SELECT DISTINCT + 40 * - 33 * + - CASE + + MIN( ALL 74 ) WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE + 42 END
----
55440

skipif mysql # not compatible
query I rowsort label-4673
SELECT DISTINCT + 40 * - 33 * + - CASE + + MIN ( ALL 74 ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 42 END
----
55440

query I rowsort
SELECT DISTINCT + 31 - 53
----
-22

query I rowsort
SELECT ALL ( - + 85 ) * + - 23 + + 1
----
1956

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4676
SELECT CAST( NULL AS SIGNED ) - - 82, CAST( - - 17 AS SIGNED ) col2
----
NULL
17

skipif mysql # not compatible
query II rowsort label-4676
SELECT CAST ( NULL AS INTEGER ) - - 82, CAST ( - - 17 AS INTEGER ) col2
----
NULL
17

query I rowsort
SELECT + 52 * - + 22 * COALESCE ( + 49, 80 ) AS col1
----
-56056

query I rowsort
SELECT + 21 * - - ( + 58 ) AS col2
----
1218

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT - 61 + + + ( - COALESCE ( + 89, - 8 ) ) + COUNT( * ) col0
----
-149

skipif mysql # not compatible
query I rowsort label-4679
SELECT - 61 + + + ( - COALESCE ( + 89, - 8 ) ) + COUNT ( * ) col0
----
-149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT - + ( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4680
SELECT - + ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 42 * + + 3 * 14
----
1764

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4682
SELECT - 88 * - 36 * CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT - 88 * - 36 * CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4683
SELECT + 10 - - - ( - ( - MIN( CAST( NULL AS SIGNED ) ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4683
SELECT + 10 - - - ( - ( - MIN ( CAST ( NULL AS INTEGER ) ) ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4684
SELECT ALL - + NULLIF ( + - 30, - 79 ) DIV ( 39 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL - + NULLIF ( + - 30, - 79 ) / ( 39 ) AS col2
----
0

query I rowsort
SELECT + 54 * - + 30 AS col2
----
-1620

query I rowsort
SELECT ( 56 ) + - 76 * - - 87
----
-6556

query I rowsort
SELECT - 63 + - - 3 AS col2
----
-60

query I rowsort
SELECT + 68 * + 72
----
4896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4689
SELECT + 37 * - + 96 + + + SUM( DISTINCT - 59 ) - - 43 DIV 41 AS col0
----
-3610

skipif mysql # not compatible
query I rowsort label-4689
SELECT + 37 * - + 96 + + + SUM ( DISTINCT - 59 ) - - 43 / 41 AS col0
----
-3610

query I rowsort
SELECT ALL + 68 * 9 AS col1
----
612

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT + COALESCE ( 62, + 53 ) * - - 60 + - 58 * COUNT( * ) col1
----
3662

skipif mysql # not compatible
query I rowsort label-4691
SELECT + COALESCE ( 62, + 53 ) * - - 60 + - 58 * COUNT ( * ) col1
----
3662

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT ( + + MAX( ALL + - 40 ) ) * - COUNT( * ) + 80 - + 18 col2
----
102

skipif mysql # not compatible
query I rowsort label-4692
SELECT ( + + MAX ( ALL + - 40 ) ) * - COUNT ( * ) + 80 - + 18 col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT - 66 + + MAX( DISTINCT + 39 ) + - + 78 AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT - 66 + + MAX ( DISTINCT + 39 ) + - + 78 AS col2
----
-105

query II rowsort
SELECT ALL - - ( + 37 ), - 13 AS col0
----
37
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-4695
SELECT - MAX( 45 ), - 39 AS col1
----
-45
-39

skipif mysql # not compatible
query II rowsort label-4695
SELECT - MAX ( 45 ), - 39 AS col1
----
-45
-39

query I rowsort
SELECT DISTINCT - 85 + + - 61
----
-146

query I rowsort
SELECT DISTINCT + 74 + + 0 * 78 - + 44 * 54 AS col2
----
-2302

query I rowsort
SELECT ALL ( + - 93 ) + 3 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT - 70 * - - NULLIF ( 51, + COUNT( * ) + 36 ) * 11 + + 28
----
-39242

skipif mysql # not compatible
query I rowsort label-4699
SELECT - 70 * - - NULLIF ( 51, + COUNT ( * ) + 36 ) * 11 + + 28
----
-39242

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT - NULLIF ( + - COUNT( * ), + 90 - + 54 * + ( - 69 ) + + ( - 82 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT - NULLIF ( + - COUNT ( * ), + 90 - + 54 * + ( - 69 ) + + ( - 82 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4701
SELECT COUNT( * ) + - ( - CASE + + COUNT( DISTINCT + 58 ) WHEN - 77 THEN - 76 WHEN ( 23 ) THEN NULL WHEN COUNT( * ) / AVG ( ALL NULLIF ( - 36, 23 + + 17 ) ) - CAST( NULL AS SIGNED ) / - 21 THEN NULL ELSE - ( 26 ) + + 73 END ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT COUNT ( * ) + - ( - CASE + + COUNT ( DISTINCT + 58 ) WHEN - 77 THEN - 76 WHEN ( 23 ) THEN NULL WHEN COUNT ( * ) / AVG ( ALL NULLIF ( - 36, 23 + + 17 ) ) - CAST ( NULL AS INTEGER ) / - 21 THEN NULL ELSE - ( 26 ) + + 73 END ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4702
SELECT DISTINCT - 72 DIV + 87 * - 33
----
0

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT - 72 / + 87 * - 33
----
0

query I rowsort
SELECT ALL - ( 99 ) col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4704
SELECT ALL 80 * 41 * - - CASE + 12 WHEN + CASE 8 WHEN - 63 - ( 18 + - 60 ) THEN 77 * 22 - + ( CAST( NULL AS SIGNED ) ) * + CAST( NULL AS SIGNED ) WHEN - ( + 8 ) THEN 78 END * - ( COUNT( * ) ) + + 78 * + CAST( 93 AS SIGNED ) THEN 30 + COUNT( * ) ELSE + 65 END AS col1
----
213200

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL 80 * 41 * - - CASE + 12 WHEN + CASE 8 WHEN - 63 - ( 18 + - 60 ) THEN 77 * 22 - + ( CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) WHEN - ( + 8 ) THEN 78 END * - ( COUNT ( * ) ) + + 78 * + CAST ( 93 AS INTEGER ) THEN 30 + COUNT ( * ) ELSE + 65 END AS col1
----
213200

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT 24 * + COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4705
SELECT 24 * + COUNT ( * ) AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4706
SELECT DISTINCT 9 - + + NULLIF ( + 24, 30 * - - CASE SUM( DISTINCT 41 ) WHEN 89 + + 40 THEN 0 ELSE + SUM( CAST( 59 AS DECIMAL ) ) END + - 38 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT 9 - + + NULLIF ( + 24, 30 * - - CASE SUM ( DISTINCT 41 ) WHEN 89 + + 40 THEN 0 ELSE + SUM ( CAST ( 59 AS REAL ) ) END + - 38 ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4707
SELECT ALL - COUNT( * ) AS col0, 52
----
-1
52

skipif mysql # not compatible
query II rowsort label-4707
SELECT ALL - COUNT ( * ) AS col0, 52
----
-1
52

query I rowsort
SELECT COALESCE ( 55, + 13 ) + + 44 - + ( 38 ) AS col0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4709
SELECT 44 DIV + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4709
SELECT 44 / + COUNT ( * ) AS col1
----
44

query I rowsort
SELECT 14 * + + 25
----
350

query I rowsort
SELECT NULLIF ( + 72, + - 9 ) + + CASE 32 WHEN - 65 THEN - 65 + - 19 WHEN + 98 THEN NULL END
----
NULL

query I rowsort
SELECT 75 + - + 65 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT DISTINCT - 82 - + + COUNT( * ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT - 82 - + + COUNT ( * ) AS col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4714
SELECT DISTINCT - 91 * - 18 DIV 2 * + 74 * - + 28
----
-1696968

skipif mysql # not compatible
query I rowsort label-4714
SELECT DISTINCT - 91 * - 18 / 2 * + 74 * - + 28
----
-1696968

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT COUNT( * ) + + ( 90 )
----
91

skipif mysql # not compatible
query I rowsort label-4715
SELECT COUNT ( * ) + + ( 90 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT ALL - + 85 * 60 + + COUNT( * ) + - 20 * 7 * - 10
----
-3699

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL - + 85 * 60 + + COUNT ( * ) + - 20 * 7 * - 10
----
-3699

onlyif mysql # DIV for integer division: 
query I rowsort label-4717
SELECT ALL - 41 * - - 99 + 15 + + + 61 * 27 DIV + 61 + 97 DIV 97
----
-4016

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL - 41 * - - 99 + 15 + + + 61 * 27 / + 61 + 97 / 97
----
-4016

query II rowsort
SELECT - 22 AS col2, 61
----
-22
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4719
SELECT - 8 + + 19 + 2 DIV - 67 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4719
SELECT - 8 + + 19 + 2 / - 67 AS col1
----
11

query I rowsort
SELECT 87 * + 56
----
4872

query I rowsort
SELECT 17 + + 18
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT - MAX( ALL - + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-4722
SELECT - MAX ( ALL - + 28 )
----
28

query I rowsort
SELECT + NULLIF ( - 70, 3 / + 41 ) + - - 74
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT - ( COUNT( 3 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4724
SELECT - ( COUNT ( 3 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ALL + 80 * SUM( ALL + 13 ) + - 52 AS col0
----
988

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL + 80 * SUM ( ALL + 13 ) + - 52 AS col0
----
988

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4726
SELECT + + CAST( NULL AS SIGNED ) AS col0, - 45
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-4726
SELECT + + CAST ( NULL AS INTEGER ) AS col0, - 45
----
NULL
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4727
SELECT ALL - + 25 * COUNT( * ) DIV - + NULLIF ( - 22, 26 * + COUNT( DISTINCT 88 ) ) + 32
----
31

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL - + 25 * COUNT ( * ) / - + NULLIF ( - 22, 26 * + COUNT ( DISTINCT 88 ) ) + 32
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT + COUNT( * ) * - 43 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-4728
SELECT + COUNT ( * ) * - 43 AS col1
----
-43

query I rowsort
SELECT DISTINCT - COALESCE ( + 76, + + 6 ) AS col0
----
-76

query I rowsort
SELECT ALL - 53 * ( - - 83 ) + - + 27 AS col1
----
-4426

onlyif mysql # aggregate syntax: 
query II rowsort label-4731
SELECT COUNT( * ) AS col2, + 38 * + 38 - - 17 + - - 21 + - CASE MIN( DISTINCT 71 ) WHEN 25 + 70 THEN NULL ELSE 37 * - COUNT( * ) + + 35 END
----
1
1484

skipif mysql # not compatible
query II rowsort label-4731
SELECT COUNT ( * ) AS col2, + 38 * + 38 - - 17 + - - 21 + - CASE MIN ( DISTINCT 71 ) WHEN 25 + 70 THEN NULL ELSE 37 * - COUNT ( * ) + + 35 END
----
1
1484

query I rowsort
SELECT + 98 * + 22
----
2156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4733
SELECT DISTINCT + CASE - CAST( NULL AS SIGNED ) WHEN + ( + - 48 ) THEN NULL WHEN AVG ( + ( - 8 ) ) + - 74 * NULLIF ( COUNT( * ), - 35 * - 4 ) THEN + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT + CASE - CAST ( NULL AS INTEGER ) WHEN + ( + - 48 ) THEN NULL WHEN AVG ( + ( - 8 ) ) + - 74 * NULLIF ( COUNT ( * ), - 35 * - 4 ) THEN + 9 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT - COALESCE ( + 80, 3 ) * COUNT( * ) + ( + 10 ) * - 94 + 48 AS col1
----
-972

skipif mysql # not compatible
query I rowsort label-4734
SELECT - COALESCE ( + 80, 3 ) * COUNT ( * ) + ( + 10 ) * - 94 + 48 AS col1
----
-972

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT ALL + 75 * - 34 - COUNT( * )
----
-2551

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL + 75 * - 34 - COUNT ( * )
----
-2551

query I rowsort
SELECT ALL + 37 * + 28 * - 81 - - - 26 AS col0
----
-83942

query I rowsort
SELECT - 62 * + ( - 77 ) AS col1
----
4774

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4738
SELECT ALL - CASE - + 30 WHEN CAST( NULL AS DECIMAL ) THEN - 13 / 77 + + 52 * COUNT( * ) END * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL - CASE - + 30 WHEN CAST ( NULL AS REAL ) THEN - 13 / 77 + + 52 * COUNT ( * ) END * 54
----
NULL

query II rowsort
SELECT + 19, - 13 + - 25 col0
----
19
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT - COUNT( * ) - + 99 + + - CASE - 82 WHEN - 95 THEN 50 + - ( COALESCE ( + ( 17 ), 60 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4740
SELECT - COUNT ( * ) - + 99 + + - CASE - 82 WHEN - 95 THEN 50 + - ( COALESCE ( + ( 17 ), 60 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT SUM( DISTINCT - + ( + 67 ) ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-4741
SELECT SUM ( DISTINCT - + ( + 67 ) ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT 68 * + NULLIF ( + - COUNT( * ), - 17 ) - - 79
----
11

skipif mysql # not compatible
query I rowsort label-4742
SELECT 68 * + NULLIF ( + - COUNT ( * ), - 17 ) - - 79
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT - 27 * - COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4743
SELECT - 27 * - COUNT ( * ) AS col0
----
27

query I rowsort
SELECT + 32 * - 75
----
-2400

query II rowsort
SELECT + 29, - 14 AS col1
----
29
-14

query II rowsort
SELECT - 3 + - 65 AS col1, - 34 AS col0
----
-68
-34

query I rowsort
SELECT + ( - + 4 ) + + 83
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT MAX( DISTINCT + 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4748
SELECT MAX ( DISTINCT + 31 ) AS col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4749
SELECT ALL 91 * + 19 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL 91 * + 19 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 96 * + 17
----
-1632

onlyif mysql # DIV for integer division: 
query I rowsort label-4751
SELECT ALL - 23 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL - 23 / - 68
----
0

query I rowsort
SELECT - + CASE - + 99 WHEN 75 THEN NULL ELSE + 35 END
----
-35

query II rowsort
SELECT ALL - 73 AS col1, 66 * - 34 AS col2
----
-73
-2244

query I rowsort
SELECT DISTINCT CASE - 23 WHEN - 9 THEN + - COALESCE ( + 60, 88 ) ELSE + 16 - 2 END AS col0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-4755
SELECT - COUNT( * ), - 89 AS col0
----
-1
-89

skipif mysql # not compatible
query II rowsort label-4755
SELECT - COUNT ( * ), - 89 AS col0
----
-1
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT ALL - MIN( - 61 ) * - - 82
----
5002

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - MIN ( - 61 ) * - - 82
----
5002

query I rowsort
SELECT + 79 * - + 52 - 76 AS col2
----
-4184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4758
SELECT - NULLIF ( + CASE + MAX( 31 ) WHEN + 36 THEN NULLIF ( + 32, + CASE + 20 WHEN - 71 - 61 THEN NULL WHEN 7 THEN 49 + 71 / 46 ELSE 66 + - COUNT( 26 + NULLIF ( 61, + 50 / CAST( NULL AS DECIMAL ) ) ) END + + ( + 97 ) / NULLIF ( 1, ( AVG ( + COALESCE ( 93, 9 + 13 * 14 ) ) ) / - ( + 29 * COUNT( * ) ) ) ) * 79 + + CAST( NULL AS SIGNED ) * + 41 ELSE 33 + + CAST( NULL AS SIGNED ) END, 95 ) * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT - NULLIF ( + CASE + MAX ( 31 ) WHEN + 36 THEN NULLIF ( + 32, + CASE + 20 WHEN - 71 - 61 THEN NULL WHEN 7 THEN 49 + 71 / 46 ELSE 66 + - COUNT ( 26 + NULLIF ( 61, + 50 / CAST ( NULL AS REAL ) ) ) END + + ( + 97 ) / NULLIF ( 1, ( AVG ( + COALESCE ( 93, 9 + 13 * 14 ) ) ) / - ( + 29 * COUNT ( * ) ) ) ) * 79 + + CAST ( NULL AS INTEGER ) * + 41 ELSE 33 + + CAST ( NULL AS INTEGER ) END, 95 ) * + 45
----
NULL

query I rowsort
SELECT ALL 62 + + 4 - + 73 AS col1
----
-7

query I rowsort
SELECT + + 21 + + + ( 77 ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT SUM( ALL - - 99 )
----
99

skipif mysql # not compatible
query I rowsort label-4761
SELECT SUM ( ALL - - 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT DISTINCT CASE - 86 WHEN MAX( DISTINCT + 8 ) THEN 61 * ( - MAX( 29 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT CASE - 86 WHEN MAX ( DISTINCT + 8 ) THEN 61 * ( - MAX ( 29 ) ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4763
SELECT + + 71 + MAX( DISTINCT 7 ) * - 59 DIV - COUNT( * ) + + 3 - ( + 64 ) col0
----
423

skipif mysql # not compatible
query I rowsort label-4763
SELECT + + 71 + MAX ( DISTINCT 7 ) * - 59 / - COUNT ( * ) + + 3 - ( + 64 ) col0
----
423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4764
SELECT ALL + SUM( DISTINCT + 63 ) + - 24 + + NULLIF ( + COUNT( * ), - + 55 * - 3 + CAST( NULL AS SIGNED ) ) - COUNT( * ) * 7 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL + SUM ( DISTINCT + 63 ) + - 24 + + NULLIF ( + COUNT ( * ), - + 55 * - 3 + CAST ( NULL AS INTEGER ) ) - COUNT ( * ) * 7 AS col0
----
33

query I rowsort
SELECT DISTINCT + COALESCE ( - 4, 0 ) + - + 81 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-4766
SELECT - - 81 col1, ( + COUNT( * ) )
----
81
1

skipif mysql # not compatible
query II rowsort label-4766
SELECT - - 81 col1, ( + COUNT ( * ) )
----
81
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4767
SELECT + 95 - + + ( - - 28 ) + + 86 DIV 93 * 79
----
67

skipif mysql # not compatible
query I rowsort label-4767
SELECT + 95 - + + ( - - 28 ) + + 86 / 93 * 79
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4768
SELECT ALL 74 AS col2, + 30 + - CASE 83 WHEN - + COALESCE ( AVG ( 49 ), 44 + CASE + 92 WHEN COALESCE ( 22, 78 / 84 ) * 48 THEN - 32 END * - NULLIF ( 39, COUNT( * ) / - 62 ) ) + 64 THEN NULL WHEN + 10 * - 77 THEN COUNT( * ) ELSE NULL END AS col2
----
74
NULL

skipif mysql # not compatible
query II rowsort label-4768
SELECT ALL 74 AS col2, + 30 + - CASE 83 WHEN - + COALESCE ( AVG ( 49 ), 44 + CASE + 92 WHEN COALESCE ( 22, 78 / 84 ) * 48 THEN - 32 END * - NULLIF ( 39, COUNT ( * ) / - 62 ) ) + 64 THEN NULL WHEN + 10 * - 77 THEN COUNT ( * ) ELSE NULL END AS col2
----
74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT + NULLIF ( + 50, + COUNT( - 73 ) ) + - 8 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4769
SELECT + NULLIF ( + 50, + COUNT ( - 73 ) ) + - 8 AS col2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4770
SELECT DISTINCT - COUNT( * ) AS col0, 31 + - 17 AS col2
----
-1
14

skipif mysql # not compatible
query II rowsort label-4770
SELECT DISTINCT - COUNT ( * ) AS col0, 31 + - 17 AS col2
----
-1
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT ALL 92 + - - 88 + + + COUNT( * )
----
181

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL 92 + - - 88 + + + COUNT ( * )
----
181

query I rowsort
SELECT - ( - 2 ) col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4773
SELECT 37 AS col1, SUM( - 8 ) * - 0
----
37
0

skipif mysql # not compatible
query II rowsort label-4773
SELECT 37 AS col1, SUM ( - 8 ) * - 0
----
37
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT ( - MIN( - 1 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4774
SELECT ( - MIN ( - 1 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4775
SELECT ALL + 0 DIV NULLIF ( + - 91, - - 4 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL + 0 / NULLIF ( + - 91, - - 4 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4776
SELECT DISTINCT + COALESCE ( 88, - - 58 DIV + 21 )
----
88

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT + COALESCE ( 88, - - 58 / + 21 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL - 27 * - 61 * + - COUNT( * )
----
-1647

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL - 27 * - 61 * + - COUNT ( * )
----
-1647

query I rowsort
SELECT 91 * - - 99 * 4 * + 80 + + 59 + - 13 AS col1
----
2882926

query I rowsort
SELECT DISTINCT - 9 * + 93 AS col0
----
-837

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4780
SELECT DISTINCT - COUNT( * ) * + 31 DIV SUM( ALL - 67 ) + - + 19 * 14 * COUNT( * ) * 21 AS col0
----
-5586

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT - COUNT ( * ) * + 31 / SUM ( ALL - 67 ) + - + 19 * 14 * COUNT ( * ) * 21 AS col0
----
-5586

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4781
SELECT - - ( + + 91 ) + - CAST( - 23 AS SIGNED ) DIV + - 17 + + + 3 - 91 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4781
SELECT - - ( + + 91 ) + - CAST ( - 23 AS INTEGER ) / + - 17 + + + 3 - 91 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4782
SELECT ALL 1 * + - 82 * + 78 + - SUM( DISTINCT - 55 ) * - 2 * CAST( COUNT( * ) AS SIGNED )
----
-6506

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL 1 * + - 82 * + 78 + - SUM ( DISTINCT - 55 ) * - 2 * CAST ( COUNT ( * ) AS INTEGER )
----
-6506

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT ALL COUNT( * ) * COUNT( ALL - - 34 ) * - + COUNT( * ) + + + 62 + 48 + 88 * - 40
----
-3411

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL COUNT ( * ) * COUNT ( ALL - - 34 ) * - + COUNT ( * ) + + + 62 + 48 + 88 * - 40
----
-3411

query I rowsort
SELECT - + 75 * + 52 AS col0
----
-3900

query I rowsort
SELECT DISTINCT - ( + 61 ) + - 24 AS col2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4786
SELECT ALL COUNT( + 53 ) + 91 + CAST( - - ( 84 ) AS SIGNED )
----
176

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL COUNT ( + 53 ) + 91 + CAST ( - - ( 84 ) AS INTEGER )
----
176

query I rowsort
SELECT ALL - 54 - - ( + 96 )
----
42

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4788
SELECT - - 48 / 53 + CAST( NULL AS DECIMAL ) AS col2, 58 - + 6 + - 20
----
NULL
32

skipif mysql # not compatible
query II rowsort label-4788
SELECT - - 48 / 53 + CAST ( NULL AS REAL ) AS col2, 58 - + 6 + - 20
----
NULL
32

query I rowsort
SELECT + 15 * 67
----
1005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4790
SELECT ( 35 ) * + COUNT( * ) * - 62 * 38 - 11 DIV - - 50 AS col2
----
-82460

skipif mysql # not compatible
query I rowsort label-4790
SELECT ( 35 ) * + COUNT ( * ) * - 62 * 38 - 11 / - - 50 AS col2
----
-82460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4791
SELECT - COALESCE ( - + ( - - COUNT( * ) ), + - 56 * - 24 + 7 + - - 19, + 16 ) + 27 DIV - 62
----
1

skipif mysql # not compatible
query I rowsort label-4791
SELECT - COALESCE ( - + ( - - COUNT ( * ) ), + - 56 * - 24 + 7 + - - 19, + 16 ) + 27 / - 62
----
1

query II rowsort
SELECT - 91, 26 + - 63 * 96 AS col1
----
-91
-6022

query I rowsort
SELECT ALL + NULLIF ( + 3, - 25 ) - + 60 + + 73
----
16

query II rowsort
SELECT DISTINCT 96 AS col1, ( - + 3 ) * - 24 * + - 71 col0
----
96
-5112

query I rowsort
SELECT DISTINCT 16 * + 56 col0
----
896

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT COUNT( * ) * + SUM( DISTINCT NULLIF ( 9, + 7 * - 43 ) )
----
9

skipif mysql # not compatible
query I rowsort label-4796
SELECT COUNT ( * ) * + SUM ( DISTINCT NULLIF ( 9, + 7 * - 43 ) )
----
9

query II rowsort
SELECT ALL - 89, 18 col0
----
-89
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4798
SELECT NULLIF ( + - CAST( NULL AS SIGNED ), COUNT( * ) * - - 84 - - - CASE 8 WHEN + + ( + COUNT( * ) ) + 18 THEN + 65 WHEN + 20 THEN 25 END ) - - 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4798
SELECT NULLIF ( + - CAST ( NULL AS INTEGER ), COUNT ( * ) * - - 84 - - - CASE 8 WHEN + + ( + COUNT ( * ) ) + 18 THEN + 65 WHEN + 20 THEN 25 END ) - - 6 AS col1
----
NULL

query I rowsort
SELECT ALL 15 * - - 3 AS col0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4800
SELECT NULLIF ( - + 15, 33 ) * - - COUNT( * ) AS col1, COUNT( * ) DIV + 66
----
-15
0

skipif mysql # not compatible
query II rowsort label-4800
SELECT NULLIF ( - + 15, 33 ) * - - COUNT ( * ) AS col1, COUNT ( * ) / + 66
----
-15
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT COUNT( * ) * + ( CASE - 12 WHEN COUNT( * ) THEN + 24 + + 23 + - - COUNT( * ) WHEN 51 * ( 81 ) THEN NULL END ) + 10 * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4801
SELECT COUNT ( * ) * + ( CASE - 12 WHEN COUNT ( * ) THEN + 24 + + 23 + - - COUNT ( * ) WHEN 51 * ( 81 ) THEN NULL END ) + 10 * 13
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4802
SELECT ALL - 79 AS col2, + 23 - 4 * + 30 + 9 DIV NULLIF ( - CAST( - 60 AS SIGNED ), 33 ) * - MIN( ALL 3 * + 87 )
----
-79
-97

skipif mysql # not compatible
query II rowsort label-4802
SELECT ALL - 79 AS col2, + 23 - 4 * + 30 + 9 / NULLIF ( - CAST ( - 60 AS INTEGER ), 33 ) * - MIN ( ALL 3 * + 87 )
----
-79
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4803
SELECT DISTINCT - 23 + + CASE 75 WHEN 89 / + ( + CASE + 21 WHEN + 26 + - CAST( NULL AS SIGNED ) * 77 THEN - 40 + 61 WHEN + 20 - 82 THEN 61 * - 52 ELSE NULL END ) THEN NULL ELSE + 6 + - 92 END + - 59
----
-168

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT - 23 + + CASE 75 WHEN 89 / + ( + CASE + 21 WHEN + 26 + - CAST ( NULL AS INTEGER ) * 77 THEN - 40 + 61 WHEN + 20 - 82 THEN 61 * - 52 ELSE NULL END ) THEN NULL ELSE + 6 + - 92 END + - 59
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4804
SELECT ALL - COALESCE ( + MIN( DISTINCT + - COALESCE ( - + 1, + 80 DIV + + 0 + 53, - - ( + ( CAST( + 65 AS SIGNED ) ) ) DIV 70 + 41 ) ), - 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL - COALESCE ( + MIN ( DISTINCT + - COALESCE ( - + 1, + 80 / + + 0 + 53, - - ( + ( CAST ( + 65 AS INTEGER ) ) ) / 70 + 41 ) ), - 80 )
----
-1

query II rowsort
SELECT ALL - 94 AS col2, + 5 AS col0
----
-94
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4806
SELECT 69 - - 94 + + + COUNT( * ) * CAST( NULL AS SIGNED ) + - 52 * MAX( DISTINCT - 94 ) + 11 / ( - MIN( + ( - 64 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT 69 - - 94 + + + COUNT ( * ) * CAST ( NULL AS INTEGER ) + - 52 * MAX ( DISTINCT - 94 ) + 11 / ( - MIN ( + ( - 64 ) ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - 96 + + 31 AS col0
----
-65

query I rowsort
SELECT DISTINCT 73 + - 33 AS col2
----
40

query I rowsort
SELECT - ( + 52 ) * + 80 AS col0
----
-4160

onlyif mysql # aggregate syntax: 
query II rowsort label-4810
SELECT DISTINCT + ( - - COUNT( * ) ) + + 54 AS col0, - 19 * ( 89 ) * COUNT( * ) + + 85 AS col0
----
55
-1606

skipif mysql # not compatible
query II rowsort label-4810
SELECT DISTINCT + ( - - COUNT ( * ) ) + + 54 AS col0, - 19 * ( 89 ) * COUNT ( * ) + + 85 AS col0
----
55
-1606

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL + + 74 + - + COUNT( - 57 )
----
73

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL + + 74 + - + COUNT ( - 57 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT DISTINCT + 7 * - + COUNT( DISTINCT - 44 )
----
-7

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT + 7 * - + COUNT ( DISTINCT - 44 )
----
-7

query II rowsort
SELECT ALL - 62, 21 * - 48 AS col1
----
-62
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT SUM( ALL - 29 ) * + 13 col2
----
-377

skipif mysql # not compatible
query I rowsort label-4814
SELECT SUM ( ALL - 29 ) * + 13 col2
----
-377

onlyif mysql # DIV for integer division: 
query II rowsort label-4815
SELECT - + 95 col1, 79 + - - 1 DIV 75 AS col2
----
-95
79

skipif mysql # not compatible
query II rowsort label-4815
SELECT - + 95 col1, 79 + - - 1 / 75 AS col2
----
-95
79

onlyif mysql # DIV for integer division: 
query I rowsort label-4816
SELECT ALL + 58 - + 96 DIV + 24
----
54

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL + 58 - + 96 / + 24
----
54

query II rowsort
SELECT 23 AS col2, - 36
----
23
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT - 43 + ( COUNT( * ) ) + - 96 AS col2
----
-138

skipif mysql # not compatible
query I rowsort label-4818
SELECT - 43 + ( COUNT ( * ) ) + - 96 AS col2
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4819
SELECT - 13 * + 23 * 23 + + 25 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4819
SELECT - 13 * + 23 * 23 + + 25 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 20 + 19 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT ALL + MAX( 71 )
----
71

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL + MAX ( 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT - 70 + 83 + + + 97 * - - COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-4822
SELECT - 70 + 83 + + + 97 * - - COUNT ( * )
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4823
SELECT ALL CAST( NULLIF ( - + 19, + 85 ) AS SIGNED ) * CASE + 63 WHEN + - 5 THEN - + 56 END + - 53 - + COUNT( * ) * 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL CAST ( NULLIF ( - + 19, + 85 ) AS INTEGER ) * CASE + 63 WHEN + - 5 THEN - + 56 END + - 53 - + COUNT ( * ) * 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4824
SELECT ALL + COALESCE ( - + NULLIF ( + + 44, + + 40 + - 48 + - - 55 ), + 22, - CASE + 50 WHEN - 89 - + COALESCE ( - COALESCE ( + 93, - 58, 56, + 52 DIV + ( 36 ) ), - 50 DIV + 61 ) THEN + 84 * 97 + ( + 37 ) * - 91 ELSE NULL END ) DIV COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL + COALESCE ( - + NULLIF ( + + 44, + + 40 + - 48 + - - 55 ), + 22, - CASE + 50 WHEN - 89 - + COALESCE ( - COALESCE ( + 93, - 58, 56, + 52 / + ( 36 ) ), - 50 / + 61 ) THEN + 84 * 97 + ( + 37 ) * - 91 ELSE NULL END ) / COUNT ( * )
----
-44

query I rowsort
SELECT 34 + 13 + + + 78 * 52
----
4103

query I rowsort
SELECT 44 + + 3 col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4827
SELECT ALL - COUNT( ALL - 96 ) * ( CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL - COUNT ( ALL - 96 ) * ( CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4828
SELECT 15 DIV + 63 * - - 19
----
0

skipif mysql # not compatible
query I rowsort label-4828
SELECT 15 / + 63 * - - 19
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4829
SELECT 50 DIV - + 7 col1, - 20 AS col1
----
-7
-20

skipif mysql # not compatible
query II rowsort label-4829
SELECT 50 / - + 7 col1, - 20 AS col1
----
-7
-20

query I rowsort
SELECT 24 + 43
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4831
SELECT 40 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-4831
SELECT 40 / - 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT COUNT( * ) + 1 + - MIN( + 10 ) * - 73 + + NULLIF ( - 7, CASE + 93 WHEN - 40 / + 68 THEN + 52 / AVG ( + 61 ) WHEN 46 - ( - 83 ) THEN NULL WHEN - 71 + - 7 THEN NULL ELSE 66 END + + 89 ) AS col1
----
725

skipif mysql # not compatible
query I rowsort label-4832
SELECT COUNT ( * ) + 1 + - MIN ( + 10 ) * - 73 + + NULLIF ( - 7, CASE + 93 WHEN - 40 / + 68 THEN + 52 / AVG ( + 61 ) WHEN 46 - ( - 83 ) THEN NULL WHEN - 71 + - 7 THEN NULL ELSE 66 END + + 89 ) AS col1
----
725

query I rowsort
SELECT ALL + ( 26 ) * 35 * + + 27
----
24570

onlyif mysql # DIV for integer division: 
query I rowsort label-4834
SELECT ALL 52 * + ( - 53 ) + - 45 - NULLIF ( + ( - 23 ), + 25 ) DIV + 4 AS col1
----
-2796

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL 52 * + ( - 53 ) + - 45 - NULLIF ( + ( - 23 ), + 25 ) / + 4 AS col1
----
-2796

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4835
SELECT ALL CAST( NULL AS SIGNED ) + + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL CAST ( NULL AS INTEGER ) + + 45 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4836
SELECT + 70 * - + 73 + + 83 - 86 - - - 51 * 57 * + CAST( 61 AS SIGNED ) * + - 1 AS col0
----
172214

skipif mysql # not compatible
query I rowsort label-4836
SELECT + 70 * - + 73 + + 83 - 86 - - - 51 * 57 * + CAST ( 61 AS INTEGER ) * + - 1 AS col0
----
172214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT ALL 32 + CAST( NULL AS SIGNED ) * + 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL 32 + CAST ( NULL AS INTEGER ) * + 52 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT COUNT( ALL 63 )
----
1

skipif mysql # not compatible
query I rowsort label-4838
SELECT COUNT ( ALL 63 )
----
1

query I rowsort
SELECT ALL 28 * - 63
----
-1764

query I rowsort
SELECT 48 + 82 col2
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4841
SELECT 10 * CAST( + 96 AS SIGNED ) + - COUNT( + 78 ) - - MAX( 61 ) col1
----
1020

skipif mysql # not compatible
query I rowsort label-4841
SELECT 10 * CAST ( + 96 AS INTEGER ) + - COUNT ( + 78 ) - - MAX ( 61 ) col1
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL 86 + - + MAX( 83 ) * + 21 AS col1
----
-1657

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL 86 + - + MAX ( 83 ) * + 21 AS col1
----
-1657

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4843
SELECT ALL + - ( + 0 ) + + 1 + + 98 * + COUNT( * ) AS col0, + 22 * + AVG ( 55 ) + ( 1 ) * + CAST( NULL AS SIGNED ) AS col1
----
99
NULL

skipif mysql # not compatible
query II rowsort label-4843
SELECT ALL + - ( + 0 ) + + 1 + + 98 * + COUNT ( * ) AS col0, + 22 * + AVG ( 55 ) + ( 1 ) * + CAST ( NULL AS INTEGER ) AS col1
----
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT 17 + COUNT( DISTINCT 30 )
----
18

skipif mysql # not compatible
query I rowsort label-4844
SELECT 17 + COUNT ( DISTINCT 30 )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4845
SELECT ALL 31 - + 20 + COUNT( * ) + - NULLIF ( - 38, - ( - 75 ) ) * - 22 / + CAST( NULL AS SIGNED ) * 52 * 24 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL 31 - + 20 + COUNT ( * ) + - NULLIF ( - 38, - ( - 75 ) ) * - 22 / + CAST ( NULL AS INTEGER ) * 52 * 24 col2
----
NULL

query I rowsort
SELECT - 63 * - 53 + - 82
----
3257

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT + COUNT( * ) * NULLIF ( - 59, + 42 * + CASE + SUM( - 76 ) WHEN + 90 * - COALESCE ( - 55, SUM( - 86 ) + 60 ) * - 9 THEN NULL WHEN + 19 + - 13 THEN NULL WHEN + 78 - 23 THEN ( - 23 ) - + COUNT( * ) ELSE + AVG ( - 87 ) * 44 + - CASE 92 WHEN 2 * 4 + + 2 THEN 33 - - 83 WHEN 34 THEN NULL ELSE - COALESCE ( NULLIF ( - 25, + COUNT( * ) ), CASE - 54 WHEN 96 * + 26 THEN - COALESCE ( + 14, 5 ) ELSE + MAX( ALL - CASE + 89 WHEN 31 THEN + 97 END ) * + 96 END, MIN( - 77 ) / - COALESCE ( 96 * 25, 76, COUNT( * ) - + 67 ), + 83, - 92 * 79 ) * 60 END END ) + - 77
----
-136

skipif mysql # not compatible
query I rowsort label-4847
SELECT + COUNT ( * ) * NULLIF ( - 59, + 42 * + CASE + SUM ( - 76 ) WHEN + 90 * - COALESCE ( - 55, SUM ( - 86 ) + 60 ) * - 9 THEN NULL WHEN + 19 + - 13 THEN NULL WHEN + 78 - 23 THEN ( - 23 ) - + COUNT ( * ) ELSE + AVG ( - 87 ) * 44 + - CASE 92 WHEN 2 * 4 + + 2 THEN 33 - - 83 WHEN 34 THEN NULL ELSE - COALESCE ( NULLIF ( - 25, + COUNT ( * ) ), CASE - 54 WHEN 96 * + 26 THEN - COALESCE ( + 14, 5 ) ELSE + MAX ( ALL - CASE + 89 WHEN 31 THEN + 97 END ) * + 96 END, MIN ( - 77 ) / - COALESCE ( 96 * 25, 76, COUNT ( * ) - + 67 ), + 83, - 92 * 79 ) * 60 END END ) + - 77
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT - MIN( DISTINCT - - 85 ) * + 36 * + 62
----
-189720

skipif mysql # not compatible
query I rowsort label-4848
SELECT - MIN ( DISTINCT - - 85 ) * + 36 * + 62
----
-189720

query I rowsort
SELECT ALL - + 67 * 48 - - 67 AS col2
----
-3149

query I rowsort
SELECT - 2 * + 14
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-4851
SELECT DISTINCT ( + 28 ), COUNT( * ) + - - 19 col1
----
28
20

skipif mysql # not compatible
query II rowsort label-4851
SELECT DISTINCT ( + 28 ), COUNT ( * ) + - - 19 col1
----
28
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT DISTINCT + COUNT( * ) * COUNT( DISTINCT + - 57 )
----
1

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT + COUNT ( * ) * COUNT ( DISTINCT + - 57 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4853
SELECT - - COALESCE ( 14, + - 6 * - + ( + COALESCE ( + 26, 53 - + ( - 63 ) + AVG ( DISTINCT 70 ) * - 66, + 89 ) ) / 35 + CAST( NULL AS SIGNED ) * 70 ) * + CASE COUNT( * ) WHEN - 19 THEN - 70 * - MAX( + 34 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4853
SELECT - - COALESCE ( 14, + - 6 * - + ( + COALESCE ( + 26, 53 - + ( - 63 ) + AVG ( DISTINCT 70 ) * - 66, + 89 ) ) / 35 + CAST ( NULL AS INTEGER ) * 70 ) * + CASE COUNT ( * ) WHEN - 19 THEN - 70 * - MAX ( + 34 ) END AS col2
----
NULL

query I rowsort
SELECT ALL - 2 * + 81 + - 60 AS col0
----
-222

query III rowsort
SELECT 16 AS col2, ( + COALESCE ( - 41, - 81 ) ) + + + 74 col2, - + 74 + + ( - 10 ) AS col0
----
16
33
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT - NULLIF ( SUM( ALL + 24 ), MAX( ALL - 36 ) * 43 + + 81 - + 65 * + 66 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-4856
SELECT - NULLIF ( SUM ( ALL + 24 ), MAX ( ALL - 36 ) * 43 + + 81 - + 65 * + 66 ) AS col0
----
-24

query I rowsort
SELECT + 10 * + 19
----
190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4858
SELECT DISTINCT COALESCE ( - - ( - 22 ), - - ( - 61 ) DIV ( + 70 ), + CASE CASE + - 25 WHEN 31 * ( + 38 ) THEN NULL WHEN - COUNT( * ) THEN 16 WHEN - COALESCE ( - 51, 97 ) THEN NULL WHEN 40 THEN 26 - 74 ELSE NULL END WHEN COUNT( * ) * + COUNT( * ) + 4 THEN 99 WHEN + COUNT( * ) THEN NULL ELSE - NULLIF ( + MAX( - ( 64 ) ), - COUNT( * ) ) + 91 END + 47 ) col2
----
-22

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT COALESCE ( - - ( - 22 ), - - ( - 61 ) / ( + 70 ), + CASE CASE + - 25 WHEN 31 * ( + 38 ) THEN NULL WHEN - COUNT ( * ) THEN 16 WHEN - COALESCE ( - 51, 97 ) THEN NULL WHEN 40 THEN 26 - 74 ELSE NULL END WHEN COUNT ( * ) * + COUNT ( * ) + 4 THEN 99 WHEN + COUNT ( * ) THEN NULL ELSE - NULLIF ( + MAX ( - ( 64 ) ), - COUNT ( * ) ) + 91 END + 47 ) col2
----
-22

query I rowsort
SELECT ALL - 68 * - + 8 * - 16 AS col1
----
-8704

query I rowsort
SELECT DISTINCT - 96 + + 10 * + 42 AS col2
----
324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4861
SELECT ALL + COALESCE ( - 77, 51 - 22 * - 61 + + CASE - 91 WHEN + 68 THEN + + SUM( - 53 ) DIV - 46 + - 25 ELSE NULL END + - COUNT( * ), 20 + ( - 71 ) ) + COUNT( * ) * - 74 AS col2
----
-151

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + COALESCE ( - 77, 51 - 22 * - 61 + + CASE - 91 WHEN + 68 THEN + + SUM ( - 53 ) / - 46 + - 25 ELSE NULL END + - COUNT ( * ), 20 + ( - 71 ) ) + COUNT ( * ) * - 74 AS col2
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT 27 * - MIN( + 96 )
----
-2592

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT 27 * - MIN ( + 96 )
----
-2592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4863
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 16 * 14 + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 16 * 14 + + 49
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4864
SELECT DISTINCT 42 * 7 * - - CAST( NULL AS SIGNED ) + + + ( + - 6 ) * + + 95 / 44 * - - ( + ( - - 7 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT 42 * 7 * - - CAST ( NULL AS INTEGER ) + + + ( + - 6 ) * + + 95 / 44 * - - ( + ( - - 7 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4865
SELECT ALL 16 * + - CAST( - + 40 AS SIGNED ) + + 35
----
675

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL 16 * + - CAST ( - + 40 AS INTEGER ) + + 35
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT DISTINCT - 51 * - MAX( ALL 77 ) * COUNT( * ) - - 21 * + + 25
----
4452

skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT - 51 * - MAX ( ALL 77 ) * COUNT ( * ) - - 21 * + + 25
----
4452

onlyif mysql # DIV for integer division: 
query I rowsort label-4867
SELECT + 2 DIV - 46
----
0

skipif mysql # not compatible
query I rowsort label-4867
SELECT + 2 / - 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT + COUNT( * ) * - NULLIF ( - 28, + - 74 / - MAX( - 97 ) )
----
28

skipif mysql # not compatible
query I rowsort label-4868
SELECT + COUNT ( * ) * - NULLIF ( - 28, + - 74 / - MAX ( - 97 ) )
----
28

query I rowsort
SELECT ALL ( - 10 ) * + 86 + - 23 col2
----
-883

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4870
SELECT - ( + + ( ( + + CASE - - ( COUNT( * ) ) WHEN - CASE 20 WHEN + ( - - 87 ) THEN ( - 99 ) * 43 WHEN 36 THEN - CAST( NULL AS SIGNED ) END * SUM( 49 ) THEN AVG ( ALL + 27 ) * 76 WHEN + ( + 29 ) + 32 THEN NULL END ) ) ) + + CASE + 65 WHEN - 77 + SUM( ALL NULLIF ( - 41, + 20 ) ) / 10 THEN CASE 61 WHEN - 88 THEN + 36 ELSE - 80 + - ( 82 ) END WHEN + 87 THEN + 64 + 69 ELSE - ( 99 ) * NULLIF ( - 18 * - 77 - 13, + 51 * + 57 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4870
SELECT - ( + + ( ( + + CASE - - ( COUNT ( * ) ) WHEN - CASE 20 WHEN + ( - - 87 ) THEN ( - 99 ) * 43 WHEN 36 THEN - CAST ( NULL AS INTEGER ) END * SUM ( 49 ) THEN AVG ( ALL + 27 ) * 76 WHEN + ( + 29 ) + 32 THEN NULL END ) ) ) + + CASE + 65 WHEN - 77 + SUM ( ALL NULLIF ( - 41, + 20 ) ) / 10 THEN CASE 61 WHEN - 88 THEN + 36 ELSE - 80 + - ( 82 ) END WHEN + 87 THEN + 64 + 69 ELSE - ( 99 ) * NULLIF ( - 18 * - 77 - 13, + 51 * + 57 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL + 38 * + COUNT( * ) - + - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL + 38 * + COUNT ( * ) - + - COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT + - MAX( - 99 )
----
99

skipif mysql # not compatible
query I rowsort label-4872
SELECT + - MAX ( - 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT DISTINCT + COALESCE ( + - 30, + COUNT( * ) + - 58 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT + COALESCE ( + - 30, + COUNT ( * ) + - 58 ) AS col0
----
-30

query I rowsort
SELECT + 50 - + 33
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4875
SELECT - 89 * - 3 + + 68 * + - 84 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT - 89 * - 3 + + 68 * + - 84 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT DISTINCT COUNT( * ) * - 83 * - ( 27 ) AS col2
----
2241

skipif mysql # not compatible
query I rowsort label-4876
SELECT DISTINCT COUNT ( * ) * - 83 * - ( 27 ) AS col2
----
2241

query II rowsort
SELECT + + ( - - 62 ) * + + 63, 26 AS col0
----
3906
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4878
SELECT DISTINCT + - CAST( + + 81 AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-4878
SELECT DISTINCT + - CAST ( + + 81 AS INTEGER )
----
-81

query II rowsort
SELECT ALL + - 65 AS col2, + 23 AS col0
----
-65
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT DISTINCT 4 * + SUM( ALL - 22 ) + + COUNT( + 63 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT 4 * + SUM ( ALL - 22 ) + + COUNT ( + 63 ) AS col0
----
-87

query I rowsort
SELECT DISTINCT + 47 * - 57
----
-2679

onlyif mysql # DIV for integer division: 
query I rowsort label-4882
SELECT + + 36 DIV + + 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4882
SELECT + + 36 / + + 89 AS col0
----
0

query II rowsort
SELECT ALL + 37 AS col2, 74 * + ( COALESCE ( - 38, - - 15 * + 83 + + 53 ) )
----
37
-2812

onlyif mysql # DIV for integer division: 
query I rowsort label-4884
SELECT + 11 DIV + ( - 51 )
----
0

skipif mysql # not compatible
query I rowsort label-4884
SELECT + 11 / + ( - 51 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4885
SELECT - 16 * CASE COUNT( * ) WHEN - + CASE + - CASE + + 66 WHEN + - 48 * - 66 + 23 + - 74 + - + 40 THEN 28 * - 78 + + 36 ELSE NULL END WHEN + CAST( - 30 AS SIGNED ) THEN NULL ELSE + 80 END + 63 THEN + COUNT( * ) ELSE CAST( NULL AS SIGNED ) * - 68 END * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4885
SELECT - 16 * CASE COUNT ( * ) WHEN - + CASE + - CASE + + 66 WHEN + - 48 * - 66 + 23 + - 74 + - + 40 THEN 28 * - 78 + + 36 ELSE NULL END WHEN + CAST ( - 30 AS INTEGER ) THEN NULL ELSE + 80 END + 63 THEN + COUNT ( * ) ELSE CAST ( NULL AS INTEGER ) * - 68 END * 38
----
NULL

query I rowsort
SELECT + 28 + + - 20 AS col2
----
8

query I rowsort
SELECT - ( + - 11 ) AS col0
----
11

query I rowsort
SELECT - ( + ( - 85 ) ) * - 45 * - 47 * - 66 * - 22 AS col0
----
261033300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4889
SELECT + COUNT( * ) + + COALESCE ( + + COUNT( * ), + - 6 * - - 5 * - 9 + - + 83 + + 18 * + COUNT( * ) * - 27 DIV - 87 ) + - 46 * 34
----
-1562

skipif mysql # not compatible
query I rowsort label-4889
SELECT + COUNT ( * ) + + COALESCE ( + + COUNT ( * ), + - 6 * - - 5 * - 9 + - + 83 + + 18 * + COUNT ( * ) * - 27 / - 87 ) + - 46 * 34
----
-1562

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT - 10 - COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-4890
SELECT - 10 - COUNT ( * ) AS col0
----
-11

query I rowsort
SELECT DISTINCT 28 + - 82
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4892
SELECT ALL - 82 * + CASE + NULLIF ( - 14, + 71 ) WHEN + 99 * - 5 + 31 - CAST( NULL AS SIGNED ) / + 85 + + + COUNT( * ) * CAST( NULL AS DECIMAL ) THEN + COUNT( * ) * COUNT( * ) + ( COUNT( * ) + + ( - 68 + + 80 * MAX( DISTINCT + 52 ) ) ) * - 16 END * - ( - 22 * + 82 + - AVG ( ALL 81 + 21 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL - 82 * + CASE + NULLIF ( - 14, + 71 ) WHEN + 99 * - 5 + 31 - CAST ( NULL AS INTEGER ) / + 85 + + + COUNT ( * ) * CAST ( NULL AS REAL ) THEN + COUNT ( * ) * COUNT ( * ) + ( COUNT ( * ) + + ( - 68 + + 80 * MAX ( DISTINCT + 52 ) ) ) * - 16 END * - ( - 22 * + 82 + - AVG ( ALL 81 + 21 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT ALL 62 + COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL 62 + COUNT ( * ) AS col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT DISTINCT COALESCE ( CAST( - - 80 AS SIGNED ), - - CAST( NULL AS SIGNED ) + + 80, + + 18 ) + 73 + + + 59 * + - 78 AS col1
----
-4449

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT COALESCE ( CAST ( - - 80 AS INTEGER ), - - CAST ( NULL AS INTEGER ) + + 80, + + 18 ) + 73 + + + 59 * + - 78 AS col1
----
-4449

query II rowsort
SELECT ALL + 10 + 38, 28 AS col1
----
48
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT - CASE - 65 WHEN + COUNT( * ) THEN - 12 * + COUNT( * ) * + 25 END + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4896
SELECT - CASE - 65 WHEN + COUNT ( * ) THEN - 12 * + COUNT ( * ) * + 25 END + 24
----
NULL

query I rowsort
SELECT - 27 + - 91 AS col0
----
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4898
SELECT DISTINCT CASE - 15 WHEN CAST( - + COUNT( * ) AS SIGNED ) THEN NULL ELSE + 78 * + 97 END
----
7566

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT CASE - 15 WHEN CAST ( - + COUNT ( * ) AS INTEGER ) THEN NULL ELSE + 78 * + 97 END
----
7566

query I rowsort
SELECT DISTINCT NULLIF ( - + 43, - - 3 - + - 62 ) AS col0
----
-43

query I rowsort
SELECT 74 * + - 98 + + 83
----
-7169

onlyif mysql # DIV for integer division: 
query II rowsort label-4901
SELECT + 34 AS col0, 56 DIV - 77 * - ( + + 57 ) + + 39
----
34
39

skipif mysql # not compatible
query II rowsort label-4901
SELECT + 34 AS col0, 56 / - 77 * - ( + + 57 ) + + 39
----
34
39

query I rowsort
SELECT DISTINCT - 64 * 17 AS col1
----
-1088

query I rowsort
SELECT ALL + ( + 55 ) col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4904
SELECT DISTINCT + COUNT( * ) DIV + 91 - + + 38 + + 27 + - + 72 DIV 59 * - 61 DIV 49 + + 40 * MIN( ALL - 46 ) AS col1
----
-1850

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT + COUNT ( * ) / + 91 - + + 38 + + 27 + - + 72 / 59 * - 61 / 49 + + 40 * MIN ( ALL - 46 ) AS col1
----
-1850

query I rowsort
SELECT ALL - 31 * + 36 AS col1
----
-1116

onlyif mysql # DIV for integer division: 
query I rowsort label-4906
SELECT DISTINCT + 41 DIV ( - - 94 ) - 67
----
-67

skipif mysql # not compatible
query I rowsort label-4906
SELECT DISTINCT + 41 / ( - - 94 ) - 67
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT + - NULLIF ( 4, - 2 + CASE - 46 WHEN 76 - + + COUNT( * ) THEN 44 * + ( - 44 ) + - 48 END ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4907
SELECT + - NULLIF ( 4, - 2 + CASE - 46 WHEN 76 - + + COUNT ( * ) THEN 44 * + ( - 44 ) + - 48 END ) AS col2
----
-4

query I rowsort
SELECT + 74 * + 92 AS col2
----
6808

query II rowsort
SELECT ALL + 70 * - - 8, 39 AS col0
----
560
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT COUNT( * ) * - + 75 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-4910
SELECT COUNT ( * ) * - + 75 AS col2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4911
SELECT 73 col0, COALESCE ( - + 91, 36 ) + 37 + - - 36 * + 3 + + - 35 + + 59 DIV - 95 * - 88 * + MIN( - 30 ) * - 31 AS col2
----
73
19

skipif mysql # not compatible
query II rowsort label-4911
SELECT 73 col0, COALESCE ( - + 91, 36 ) + 37 + - - 36 * + 3 + + - 35 + + 59 / - 95 * - 88 * + MIN ( - 30 ) * - 31 AS col2
----
73
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT DISTINCT - MIN( ( - 41 ) ) * 85 AS col2
----
3485

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT - MIN ( ( - 41 ) ) * 85 AS col2
----
3485

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT - 23 * COUNT( 30 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4913
SELECT - 23 * COUNT ( 30 ) AS col0
----
-23

query II rowsort
SELECT DISTINCT - + 97 AS col1, - 31
----
-97
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4915
SELECT NULLIF ( - + CAST( NULL AS SIGNED ), - 67 ) + + ( + 96 ) * COUNT( * ) - + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT NULLIF ( - + CAST ( NULL AS INTEGER ), - 67 ) + + ( + 96 ) * COUNT ( * ) - + 3 AS col1
----
NULL

query I rowsort
SELECT - 90 * - - 45 AS col1
----
-4050

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT DISTINCT COALESCE ( - - 59, + + 40 * + 15, + 56 ) * COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT COALESCE ( - - 59, + + 40 * + 15, + 56 ) * COUNT ( * ) AS col0
----
59

query II rowsort
SELECT ALL 16 * - - 65 col1, - 68 AS col2
----
1040
-68

query I rowsort
SELECT DISTINCT - 95 + 85
----
-10

query I rowsort
SELECT DISTINCT 22 + - 39 AS col2
----
-17

query I rowsort
SELECT ALL 45 + + 41
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-4922
SELECT DISTINCT 4 + + 92 AS col2, COUNT( * )
----
96
1

skipif mysql # not compatible
query II rowsort label-4922
SELECT DISTINCT 4 + + 92 AS col2, COUNT ( * )
----
96
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4923
SELECT COUNT( * ) * 16, COUNT( * ) AS col0
----
16
1

skipif mysql # not compatible
query II rowsort label-4923
SELECT COUNT ( * ) * 16, COUNT ( * ) AS col0
----
16
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4924
SELECT DISTINCT 50 DIV 56 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT 50 / 56 * + COUNT ( * )
----
0

query I rowsort
SELECT ALL 9 - - - 1 * + 94 AS col2
----
-85

query I rowsort
SELECT 59 - + 81
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-4927
SELECT 4 DIV - 25
----
0

skipif mysql # not compatible
query I rowsort label-4927
SELECT 4 / - 25
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4928
SELECT ALL COUNT( * ) * - 2 * - ( + COUNT( + 75 ) ) DIV - - 20 - - 17
----
17

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL COUNT ( * ) * - 2 * - ( + COUNT ( + 75 ) ) / - - 20 - - 17
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-4929
SELECT DISTINCT 14 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT 14 / 92
----
0

query I rowsort
SELECT ALL 73 - + 54
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT DISTINCT 8 - - 5 - - - COUNT( * ) + + - 57 * + 15
----
-843

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT 8 - - 5 - - - COUNT ( * ) + + - 57 * + 15
----
-843

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4932
SELECT + 14 + - ( + CAST( - MAX( ALL 38 ) AS SIGNED ) ) + 85
----
137

skipif mysql # not compatible
query I rowsort label-4932
SELECT + 14 + - ( + CAST ( - MAX ( ALL 38 ) AS INTEGER ) ) + 85
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT + SUM( ALL - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-4933
SELECT + SUM ( ALL - 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT + 71 + + + SUM( + 24 ) + + + 38 + - + 82
----
51

skipif mysql # not compatible
query I rowsort label-4934
SELECT + 71 + + + SUM ( + 24 ) + + + 38 + - + 82
----
51

query I rowsort
SELECT ( - - 83 ) + - - 12
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT ALL + - 47 + 71 + - MIN( 62 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL + - 47 + 71 + - MIN ( 62 ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT DISTINCT + ( CASE - 87 WHEN + 82 * - 43 THEN - 30 WHEN ( 63 ) + - 0 THEN NULL END ) + 5 + + - 40 + + + MIN( DISTINCT - 20 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT + ( CASE - 87 WHEN + 82 * - 43 THEN - 30 WHEN ( 63 ) + - 0 THEN NULL END ) + 5 + + - 40 + + + MIN ( DISTINCT - 20 ) AS col2
----
NULL

query I rowsort
SELECT 33 - + - ( + 3 ) AS col0
----
36

query I rowsort
SELECT ALL + + 81 * 90 + 21 + 26 AS col0
----
7337

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4940
SELECT CAST( ( + + 10 ) AS SIGNED ) * - 38 * 87
----
-33060

skipif mysql # not compatible
query I rowsort label-4940
SELECT CAST ( ( + + 10 ) AS INTEGER ) * - 38 * 87
----
-33060

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT COUNT( * ) * - 46 - + - 70
----
24

skipif mysql # not compatible
query I rowsort label-4941
SELECT COUNT ( * ) * - 46 - + - 70
----
24

query I rowsort
SELECT ALL - + 68 + + + ( - - 60 ) AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4943
SELECT - 80 * CAST( - - 16 AS SIGNED )
----
-1280

skipif mysql # not compatible
query I rowsort label-4943
SELECT - 80 * CAST ( - - 16 AS INTEGER )
----
-1280

query I rowsort
SELECT DISTINCT + 63 * + 15 AS col0
----
945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4945
SELECT ALL - ( + COUNT( * ) ) + + - 78 + + - CAST( NULL AS SIGNED ) * + + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL - ( + COUNT ( * ) ) + + - 78 + + - CAST ( NULL AS INTEGER ) * + + 60 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4946
SELECT DISTINCT + AVG ( ALL + 41 ) + - CASE - 75 WHEN CASE 81 WHEN COUNT( + 63 ) THEN NULL WHEN + - 93 * + CAST( NULL AS SIGNED ) THEN - ( 94 ) * - 88 ELSE NULL END + + AVG ( ALL 81 ) THEN 66 * + 5 END * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT + AVG ( ALL + 41 ) + - CASE - 75 WHEN CASE 81 WHEN COUNT ( + 63 ) THEN NULL WHEN + - 93 * + CAST ( NULL AS INTEGER ) THEN - ( 94 ) * - 88 ELSE NULL END + + AVG ( ALL 81 ) THEN 66 * + 5 END * 33
----
NULL

query I rowsort
SELECT ALL 69 + 26 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT SUM( DISTINCT + + 15 ) - - - COUNT( * ) + - 73 * + ( - 21 ) AS col0
----
1547

skipif mysql # not compatible
query I rowsort label-4948
SELECT SUM ( DISTINCT + + 15 ) - - - COUNT ( * ) + - 73 * + ( - 21 ) AS col0
----
1547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4949
SELECT DISTINCT COUNT( ALL - CAST( + 86 AS SIGNED ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT COUNT ( ALL - CAST ( + 86 AS INTEGER ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT ALL COUNT( - 12 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL COUNT ( - 12 ) AS col1
----
1

query I rowsort
SELECT 69 * - ( + 21 ) col1
----
-1449

query I rowsort
SELECT 43 + - 96 AS col0
----
-53

query I rowsort
SELECT 49 + + 87 AS col2
----
136

query II rowsort
SELECT - 61 AS col2, - 95
----
-61
-95

query II rowsort
SELECT 64 AS col2, + 74 * + 17
----
64
1258

query I rowsort
SELECT ALL 9 * 68
----
612

query I rowsort
SELECT 59 + + 72 col1
----
131

query II rowsort
SELECT 68 + - 74 * - 54, 82 AS col2
----
4064
82