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 # DIV for integer division: 
query I rowsort label-0
SELECT ALL - 83 DIV - 36 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL - 83 / - 36 AS col1
----
2

query II rowsort
SELECT DISTINCT + 29 - 30, + 32 AS col0
----
-1
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT - COUNT( - 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-2
SELECT - COUNT ( - 25 )
----
-1

query II rowsort
SELECT ALL 79 AS col0, + ( - 30 ) * 39
----
79
-1170

query I rowsort
SELECT DISTINCT 35 - ( + + 52 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-5
SELECT - COUNT( * ) AS col0, - 68 * 51 + - ( + 15 ) * - + 91
----
-1
-2103

skipif mysql # not compatible
query II rowsort label-5
SELECT - COUNT ( * ) AS col0, - 68 * 51 + - ( + 15 ) * - + 91
----
-1
-2103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6
SELECT DISTINCT 17 DIV MIN( 95 )
----
0

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT 17 / MIN ( 95 )
----
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9
SELECT ALL 63 DIV + 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL 63 / + 95 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT SUM( DISTINCT - 7 ) + + - 50 + + 95 + + 40 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-10
SELECT SUM ( DISTINCT - 7 ) + + - 50 + + 95 + + 40 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT + 52 * + - COUNT( * ) * + COUNT( * ) * + 16 * 80
----
-66560

skipif mysql # not compatible
query I rowsort label-11
SELECT + 52 * + - COUNT ( * ) * + COUNT ( * ) * + 16 * 80
----
-66560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-12
SELECT ALL + CAST( 4 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL + CAST ( 4 AS INTEGER )
----
4

query I rowsort
SELECT + - ( - + 58 ) * - 18 - 26
----
-1070

query I rowsort
SELECT ALL - 48 * - 25
----
1200

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-15
SELECT - MIN( + - 66 ) * + + 86 + + - SUM( + 97 ) - - + 4 * ( + MAX( - 8 ) ) * CASE 6 WHEN CAST( + + 22 AS DECIMAL ) THEN - 82 WHEN - 14 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-15
SELECT - MIN ( + - 66 ) * + + 86 + + - SUM ( + 97 ) - - + 4 * ( + MAX ( - 8 ) ) * CASE 6 WHEN CAST ( + + 22 AS REAL ) THEN - 82 WHEN - 14 THEN NULL END AS col0
----
NULL

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

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

query II rowsort
SELECT DISTINCT 67 * + 94 AS col0, - 93 col0
----
6298
-93

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

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

query I rowsort
SELECT - 6 + + 75
----
69

query I rowsort
SELECT + + 82 + COALESCE ( - - 32, 59 ) AS col0
----
114

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

query I rowsort
SELECT - + 16 * 28 + + + 20 AS col1
----
-428

onlyif mysql # aggregate syntax: 
query II rowsort label-23
SELECT 95 col2, COUNT( * )
----
95
1

skipif mysql # not compatible
query II rowsort label-23
SELECT 95 col2, COUNT ( * )
----
95
1

query I rowsort
SELECT + 23 * 34 + + 59
----
841

query I rowsort
SELECT - 15 * - 59 * - 96 - + - 54 * - 57 + 52 - + COALESCE ( - 63, ( - - 12 ) ) + 99 * 28 AS col0
----
-85151

query II rowsort
SELECT DISTINCT + 0, + 13 AS col0
----
0
13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-27
SELECT DISTINCT + COUNT( * ) col0, MAX( - CAST( NULL AS DECIMAL ) ) col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-27
SELECT DISTINCT + COUNT ( * ) col0, MAX ( - CAST ( NULL AS REAL ) ) col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT ALL + MAX( 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-28
SELECT ALL + MAX ( 78 ) AS col2
----
78

query I rowsort
SELECT - 8 + + NULLIF ( - 34, - 33 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT DISTINCT + CASE COUNT( * ) WHEN + COUNT( * ) * - - 23 * 96 - + - COUNT( * ) + 41 THEN - 34 + + MIN( DISTINCT + 82 ) + - 76 * - 59 WHEN + - 81 THEN NULL ELSE + 37 + + COUNT( * ) END
----
38

skipif mysql # not compatible
query I rowsort label-30
SELECT DISTINCT + CASE COUNT ( * ) WHEN + COUNT ( * ) * - - 23 * 96 - + - COUNT ( * ) + 41 THEN - 34 + + MIN ( DISTINCT + 82 ) + - 76 * - 59 WHEN + - 81 THEN NULL ELSE + 37 + + COUNT ( * ) END
----
38

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

skipif mysql # not compatible
query I rowsort label-31
SELECT + - COUNT ( * ) * - 54 + + - 73 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT - 66 * SUM( + 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-32
SELECT - 66 * SUM ( + 0 ) AS col1
----
0

query I rowsort
SELECT - 42 * + ( 60 ) AS col2
----
-2520

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

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

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

query I rowsort
SELECT ALL - 97 * - - 29 * - 99 * - ( 71 ) * 43 AS col2
----
-850220811

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-37
SELECT DISTINCT CASE 16 WHEN + CAST( - - 36 AS DECIMAL ) THEN NULL WHEN 7 THEN - ( COUNT( + NULLIF ( - 78, - 49 ) ) ) / - 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT CASE 16 WHEN + CAST ( - - 36 AS REAL ) THEN NULL WHEN 7 THEN - ( COUNT ( + NULLIF ( - 78, - 49 ) ) ) / - 56 END
----
NULL

query I rowsort
SELECT - 29 + - ( + COALESCE ( - 36, - 47 ) ) AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-39
SELECT DISTINCT COALESCE ( - 56, + 80 + 0 + 51 + - - 94 * + + COUNT( * ) / - 79 ) - - - SUM( + + 33 ) + + CASE - NULLIF ( - - 50, + + 96 ) WHEN + - CASE COUNT( * ) WHEN + ( 70 ) * 30 THEN - 87 END * + 0 + - ( - 63 ) THEN + ( - + COUNT( DISTINCT + - 92 ) ) - - + 83 WHEN + 89 + + COUNT( ALL + 27 ) + 77 + - 36 THEN + + 10 END + + NULLIF ( - 1, + 2 * + SUM( ALL 10 ) ) / - - CAST( NULL AS SIGNED ) * + - 20 + COUNT( * ) * + 94 - - 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-39
SELECT DISTINCT COALESCE ( - 56, + 80 + 0 + 51 + - - 94 * + + COUNT ( * ) / - 79 ) - - - SUM ( + + 33 ) + + CASE - NULLIF ( - - 50, + + 96 ) WHEN + - CASE COUNT ( * ) WHEN + ( 70 ) * 30 THEN - 87 END * + 0 + - ( - 63 ) THEN + ( - + COUNT ( DISTINCT + - 92 ) ) - - + 83 WHEN + 89 + + COUNT ( ALL + 27 ) + 77 + - 36 THEN + + 10 END + + NULLIF ( - 1, + 2 * + SUM ( ALL 10 ) ) / - - CAST ( NULL AS INTEGER ) * + - 20 + COUNT ( * ) * + 94 - - 69 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT - 76 * - 41 * + COUNT( * )
----
3116

skipif mysql # not compatible
query I rowsort label-40
SELECT - 76 * - 41 * + COUNT ( * )
----
3116

onlyif mysql # DIV for integer division: 
query I rowsort label-41
SELECT + 34 DIV + 46 * + 71 col2
----
0

skipif mysql # not compatible
query I rowsort label-41
SELECT + 34 / + 46 * + 71 col2
----
0

query II rowsort
SELECT + 51 + - - 96 AS col0, + 13
----
147
13

query I rowsort
SELECT ALL + 89 + - 70
----
19

query I rowsort
SELECT DISTINCT + + 92 * - 20 AS col0
----
-1840

query I rowsort
SELECT ALL 93 + - 63 * + 56
----
-3435

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT + 63 * + 71 * + COUNT( * ) * - + 37 + 48
----
-165453

skipif mysql # not compatible
query I rowsort label-46
SELECT + 63 * + 71 * + COUNT ( * ) * - + 37 + 48
----
-165453

query I rowsort
SELECT ALL + 66 * - 74
----
-4884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-48
SELECT DISTINCT - 70 / CASE - - 6 WHEN 43 THEN NULL WHEN - - 99 THEN + + COUNT( * ) - - 7 WHEN + - 52 - + COALESCE ( + 22, - ( - 18 ), - - COUNT( * ) ) + + - 67 + - - COUNT( 80 ) - - 33 * + 85 + - 78 THEN + 6 ELSE NULL END + COALESCE ( ( - + AVG ( DISTINCT - CAST( 24 AS SIGNED ) ) ), - 48 + + 55 * - 64 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-48
SELECT DISTINCT - 70 / CASE - - 6 WHEN 43 THEN NULL WHEN - - 99 THEN + + COUNT ( * ) - - 7 WHEN + - 52 - + COALESCE ( + 22, - ( - 18 ), - - COUNT ( * ) ) + + - 67 + - - COUNT ( 80 ) - - 33 * + 85 + - 78 THEN + 6 ELSE NULL END + COALESCE ( ( - + AVG ( DISTINCT - CAST ( 24 AS INTEGER ) ) ), - 48 + + 55 * - 64 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-49
SELECT - 21 DIV 14 * - 27 + COUNT( * ) * + - NULLIF ( + 87, - - 49 + - - COUNT( * ) ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-49
SELECT - 21 / 14 * - 27 + COUNT ( * ) * + - NULLIF ( + 87, - - 49 + - - COUNT ( * ) ) AS col0
----
-60

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

skipif mysql # not compatible
query I rowsort label-50
SELECT + - CAST ( NULL AS REAL ) / + - 45 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-51
SELECT - - 11 * + + ( - - 50 ) + ( - - COUNT( * ) ) + - COUNT( * ) DIV - 35 + - 1 * + COALESCE ( 35, + - 6 * + COUNT( * ) ) * + 53 * - 1
----
2406

skipif mysql # not compatible
query I rowsort label-51
SELECT - - 11 * + + ( - - 50 ) + ( - - COUNT ( * ) ) + - COUNT ( * ) / - 35 + - 1 * + COALESCE ( 35, + - 6 * + COUNT ( * ) ) * + 53 * - 1
----
2406

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT + MAX( - + 51 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-52
SELECT + MAX ( - + 51 ) AS col0
----
-51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT DISTINCT - 69 DIV - + 72 * 26 + 9 * + - 18 + 95
----
-67

skipif mysql # not compatible
query I rowsort label-54
SELECT DISTINCT - 69 / - + 72 * 26 + 9 * + - 18 + 95
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT DISTINCT + 55 / + - MAX( + 81 ) + CASE 45 WHEN + NULLIF ( + + 97, + 21 ) + + - 2 + + NULLIF ( - 58, + - 68 + - MIN( + - 22 ) ) THEN 44 + 8 END + 88 * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT + 55 / + - MAX ( + 81 ) + CASE 45 WHEN + NULLIF ( + + 97, + 21 ) + + - 2 + + NULLIF ( - 58, + - 68 + - MIN ( + - 22 ) ) THEN 44 + 8 END + 88 * 41
----
NULL

query I rowsort
SELECT ALL 91 * - 25 * 74 + + - 18
----
-168368

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-58
SELECT DISTINCT - + 66 * - COUNT( * ) + + ( - CASE 28 WHEN + 21 THEN NULL ELSE ( + 78 ) END ) * COUNT( * ) * + COUNT( * ) + 88 + + + 86 * CAST( NULL AS SIGNED ) * + - 87 * + 83 + - + MAX( ALL + + 53 ) * + + 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-58
SELECT DISTINCT - + 66 * - COUNT ( * ) + + ( - CASE 28 WHEN + 21 THEN NULL ELSE ( + 78 ) END ) * COUNT ( * ) * + COUNT ( * ) + 88 + + + 86 * CAST ( NULL AS INTEGER ) * + - 87 * + 83 + - + MAX ( ALL + + 53 ) * + + 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-59
SELECT ALL COUNT( + 70 ) * + + 62 - - 92 - - + 8 DIV + 58 DIV ( 5 ) + + - 52 + + COUNT( * ) + - - 62 * NULLIF ( COUNT( * ), + SUM( DISTINCT - 26 ) ) AS col1, COUNT( * ) * + 16 + 94 AS col1
----
165
110

skipif mysql # not compatible
query II rowsort label-59
SELECT ALL COUNT ( + 70 ) * + + 62 - - 92 - - + 8 / + 58 / ( 5 ) + + - 52 + + COUNT ( * ) + - - 62 * NULLIF ( COUNT ( * ), + SUM ( DISTINCT - 26 ) ) AS col1, COUNT ( * ) * + 16 + 94 AS col1
----
165
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-60
SELECT - + COUNT( * ) * + 5 DIV + 66 - - - COUNT( * ) * + COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-60
SELECT - + COUNT ( * ) * + 5 / + 66 - - - COUNT ( * ) * + COUNT ( * ) col0
----
-1

query I rowsort
SELECT + NULLIF ( 66, + + 96 ) col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT + COUNT( * ) - NULLIF ( COUNT( * ), 32 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-62
SELECT + COUNT ( * ) - NULLIF ( COUNT ( * ), 32 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-63
SELECT - COALESCE ( + ( + - 77 ), - 44 + - - 53 * + 44 * 5 * - AVG ( ALL + 6 ) DIV - - 27 + + + ( + CAST( + 75 AS SIGNED ) ) DIV + COUNT( * ) + - COALESCE ( - 17, - - 35 + - COUNT( * ) * + + CASE + 34 WHEN + 75 THEN NULL WHEN + 59 DIV + 13 THEN + 19 * + 56 ELSE NULL END + 38 ) ) * + 82 * 39 + - 69 AS col2
----
246177

skipif mysql # not compatible
query I rowsort label-63
SELECT - COALESCE ( + ( + - 77 ), - 44 + - - 53 * + 44 * 5 * - AVG ( ALL + 6 ) / - - 27 + + + ( + CAST ( + 75 AS INTEGER ) ) / + COUNT ( * ) + - COALESCE ( - 17, - - 35 + - COUNT ( * ) * + + CASE + 34 WHEN + 75 THEN NULL WHEN + 59 / + 13 THEN + 19 * + 56 ELSE NULL END + 38 ) ) * + 82 * 39 + - 69 AS col2
----
246177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-64
SELECT + CAST( + 47 AS SIGNED ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-64
SELECT + CAST ( + 47 AS INTEGER ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT + COALESCE ( COUNT( * ), 19 ) * - 24 + 31 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-65
SELECT + COALESCE ( COUNT ( * ), 19 ) * - 24 + 31 AS col0
----
7

query I rowsort
SELECT ALL 2 * + 84 - + + 69 + + 84 AS col2
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT CASE + + 4 WHEN + 41 THEN + ( 51 ) - + COUNT( * ) + - 71 * + 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-67
SELECT CASE + + 4 WHEN + 41 THEN + ( 51 ) - + COUNT ( * ) + - 71 * + 33 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT - COALESCE ( MAX( 74 ), 89 ) * - 35 AS col0
----
2590

skipif mysql # not compatible
query I rowsort label-68
SELECT - COALESCE ( MAX ( 74 ), 89 ) * - 35 AS col0
----
2590

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT COALESCE ( - + COUNT( * ), - + 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-69
SELECT COALESCE ( - + COUNT ( * ), - + 70 )
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT ALL NULLIF ( - + 87, - - 77 * + - 8 * - - COUNT( DISTINCT + 65 ) / - 46 + + ( - COUNT( CASE + + 13 WHEN 31 THEN NULL WHEN - 31 THEN NULL ELSE + - 21 * 1 END ) ) )
----
-87

skipif mysql # not compatible
query I rowsort label-71
SELECT ALL NULLIF ( - + 87, - - 77 * + - 8 * - - COUNT ( DISTINCT + 65 ) / - 46 + + ( - COUNT ( CASE + + 13 WHEN 31 THEN NULL WHEN - 31 THEN NULL ELSE + - 21 * 1 END ) ) )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-72
SELECT DISTINCT 53 DIV MIN( - + 20 ) * + 37 * + 94 * - - 46 AS col0
----
-319976

skipif mysql # not compatible
query I rowsort label-72
SELECT DISTINCT 53 / MIN ( - + 20 ) * + 37 * + 94 * - - 46 AS col0
----
-319976

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

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

query I rowsort
SELECT - 82 * + 81
----
-6642

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-75
SELECT ALL + COUNT( * ) DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-75
SELECT ALL + COUNT ( * ) / - 63
----
0

query I rowsort
SELECT - 58 * + 85
----
-4930

onlyif mysql # aggregate syntax: 
query II rowsort label-77
SELECT - 33 AS col0, 3 / + COUNT( * ) + - CASE - 63 WHEN + + 43 * + COUNT( * ) THEN + 77 * + ( 69 ) WHEN - + ( + 24 ) + + 83 * - - 92 THEN + 91 END + - - 12 * + 64 col0
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-77
SELECT - 33 AS col0, 3 / + COUNT ( * ) + - CASE - 63 WHEN + + 43 * + COUNT ( * ) THEN + 77 * + ( 69 ) WHEN - + ( + 24 ) + + 83 * - - 92 THEN + 91 END + - - 12 * + 64 col0
----
-33
NULL

query I rowsort
SELECT 89 + - 73
----
16

query I rowsort
SELECT ALL + 94 * 56
----
5264

onlyif mysql # DIV for integer division: 
query I rowsort label-80
SELECT 95 DIV 31
----
3

skipif mysql # not compatible
query I rowsort label-80
SELECT 95 / 31
----
3

query I rowsort
SELECT ALL - 21 + + - 6
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-82
SELECT 11 - - 56 * NULLIF ( CAST( NULL AS SIGNED ), + 4 + + 77 - 15 ) / 95
----
NULL

skipif mysql # not compatible
query I rowsort label-82
SELECT 11 - - 56 * NULLIF ( CAST ( NULL AS INTEGER ), + 4 + + 77 - 15 ) / 95
----
NULL

query I rowsort
SELECT DISTINCT - 49 * - + 55 * + 70
----
188650

query I rowsort
SELECT ALL + 94 + - + 42 AS col2
----
52

query II rowsort
SELECT 32 AS col0, - 37 * + 89 AS col1
----
32
-3293

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

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

query I rowsort
SELECT ALL - NULLIF ( + ( - 97 ), + 20 ) AS col1
----
97

query I rowsort
SELECT DISTINCT - 79 + - 21
----
-100

query I rowsort
SELECT ALL + 21 + - 56 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-90
SELECT 69 AS col1, - ( + CASE - COUNT( * ) WHEN - COUNT( + + 41 ) * COUNT( * ) THEN NULL ELSE + ( - + ( + ( - 48 ) ) ) END ) * - - 66 / - 84 / + - 82 + AVG ( - + 75 )
----
69
NULL

skipif mysql # not compatible
query II rowsort label-90
SELECT 69 AS col1, - ( + CASE - COUNT ( * ) WHEN - COUNT ( + + 41 ) * COUNT ( * ) THEN NULL ELSE + ( - + ( + ( - 48 ) ) ) END ) * - - 66 / - 84 / + - 82 + AVG ( - + 75 )
----
69
NULL

query I rowsort
SELECT 42 + - 56
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT - COALESCE ( + 50, - - 50 * - 16, 51 * 59 + - SUM( + + 14 ) ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-92
SELECT - COALESCE ( + 50, - - 50 * - 16, 51 * 59 + - SUM ( + + 14 ) ) AS col1
----
-50

query I rowsort
SELECT 32 * + - 30 col2
----
-960

onlyif mysql # aggregate syntax: 
query III rowsort label-94
SELECT ALL + + COUNT( * ) * - - ( COUNT( * ) ), CASE + 7 WHEN + 65 + + + 84 THEN - 65 * + COUNT( * ) + + 37 + + - 61 ELSE NULL END AS col1, 25 - - + 57 AS col0
----
1
NULL
82

skipif mysql # not compatible
query III rowsort label-94
SELECT ALL + + COUNT ( * ) * - - ( COUNT ( * ) ), CASE + 7 WHEN + 65 + + + 84 THEN - 65 * + COUNT ( * ) + + 37 + + - 61 ELSE NULL END AS col1, 25 - - + 57 AS col0
----
1
NULL
82

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

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

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

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

query I rowsort
SELECT 91 * 78 AS col1
----
7098

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-99
SELECT + + ( 63 ) * - 39 + - 3 DIV + + 96 DIV - + 15 + COUNT( ALL - - 10 ) + + 24
----
-2432

skipif mysql # not compatible
query I rowsort label-99
SELECT + + ( 63 ) * - 39 + - 3 / + + 96 / - + 15 + COUNT ( ALL - - 10 ) + + 24
----
-2432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-100
SELECT ALL 96 DIV - 89 + + + 72 + + ( - - COUNT( * ) ) * - 42 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-100
SELECT ALL 96 / - 89 + + + 72 + + ( - - COUNT ( * ) ) * - 42 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT MAX( + - 57 ) * + 95 AS col2
----
-5415

skipif mysql # not compatible
query I rowsort label-101
SELECT MAX ( + - 57 ) * + 95 AS col2
----
-5415

query I rowsort
SELECT DISTINCT 59 - - 90
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-103
SELECT ALL + 25 * - + 94 AS col1, 48 + - 99 + - 12 * - CAST( NULL AS SIGNED ) * - 34
----
-2350
NULL

skipif mysql # not compatible
query II rowsort label-103
SELECT ALL + 25 * - + 94 AS col1, 48 + - 99 + - 12 * - CAST ( NULL AS INTEGER ) * - 34
----
-2350
NULL

query I rowsort
SELECT DISTINCT 12 * - 23 col1
----
-276

query II rowsort
SELECT 95 + + 54 AS col1, 15 AS col2
----
149
15

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT ALL COUNT( * ) * + NULLIF ( - + COUNT( * ), 69 * 6 * - 70 * 77 / + 97 ) * - + NULLIF ( - 67, - 5 + - MIN( DISTINCT + 31 ) ) + + 60 + - 28
----
-35

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL COUNT ( * ) * + NULLIF ( - + COUNT ( * ), 69 * 6 * - 70 * 77 / + 97 ) * - + NULLIF ( - 67, - 5 + - MIN ( DISTINCT + 31 ) ) + + 60 + - 28
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-107
SELECT CAST( NULL AS SIGNED ) / - - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-107
SELECT CAST ( NULL AS INTEGER ) / - - 6
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-108
SELECT ALL - CAST( NULL AS SIGNED ) + - + COALESCE ( - 74, 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-108
SELECT ALL - CAST ( NULL AS INTEGER ) + - + COALESCE ( - 74, 50 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-109
SELECT ALL + CAST( - 79 AS SIGNED ) * 12 - - 64 AS col2
----
-884

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL + CAST ( - 79 AS INTEGER ) * 12 - - 64 AS col2
----
-884

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

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

query I rowsort
SELECT ALL ( - 33 ) + + 24
----
-9

query I rowsort
SELECT - + 11 col1
----
-11

query I rowsort
SELECT 26 * - 4 AS col2
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-114
SELECT ALL + COUNT( * ) * 31 DIV - 2
----
-15

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL + COUNT ( * ) * 31 / - 2
----
-15

query II rowsort
SELECT ALL + COALESCE ( + + 42, - 32 ) + 64, ( - 97 ) AS col0
----
106
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT ALL - COUNT( * ) - - COUNT( - 37 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL - COUNT ( * ) - - COUNT ( - 37 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT MIN( DISTINCT + + NULLIF ( - - 13, ( + 62 ) ) )
----
13

skipif mysql # not compatible
query I rowsort label-117
SELECT MIN ( DISTINCT + + NULLIF ( - - 13, ( + 62 ) ) )
----
13

query I rowsort
SELECT ALL + - 20 * + - ( - + 56 )
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT ALL COUNT( * ) * - - 21 + 60 - + 65 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-119
SELECT ALL COUNT ( * ) * - - 21 + 60 - + 65 AS col1
----
16

query II rowsort
SELECT 6 * 17 AS col2, 55
----
102
55

query I rowsort
SELECT - 97 * - + 4 AS col2
----
388

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT + COUNT( ALL COALESCE ( - 99, - 40 * - 99 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-122
SELECT + COUNT ( ALL COALESCE ( - 99, - 40 * - 99 ) ) AS col0
----
1

query II rowsort
SELECT + 52 AS col2, - 48
----
52
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-124
SELECT ALL - 38 * - + CAST( 88 AS SIGNED ) * - 35 AS col0
----
-117040

skipif mysql # not compatible
query I rowsort label-124
SELECT ALL - 38 * - + CAST ( 88 AS INTEGER ) * - 35 AS col0
----
-117040

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

skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT - NULLIF ( - COUNT ( * ), - 9 )
----
1

query I rowsort
SELECT 57 * NULLIF ( 92, - + ( 21 ) ) + + + 90 * - 12 * 12
----
-7716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-127
SELECT DISTINCT - 20 * - ( - CAST( NULL AS SIGNED ) ) * - + MIN( - 17 ) + 1 * - 83 * - 81 * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT - 20 * - ( - CAST ( NULL AS INTEGER ) ) * - + MIN ( - 17 ) + 1 * - 83 * - 81 * + 93
----
NULL

query I rowsort
SELECT 9 * 16
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-129
SELECT MAX( ALL + 40 ) * + COUNT( * ) - - ( - 96 ) + + MIN( - - NULLIF ( 53, + - CAST( NULL AS SIGNED ) + 75 * - 6 ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-129
SELECT MAX ( ALL + 40 ) * + COUNT ( * ) - - ( - 96 ) + + MIN ( - - NULLIF ( 53, + - CAST ( NULL AS INTEGER ) + 75 * - 6 ) ) AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-130
SELECT ALL + 50 col2, CASE + 78 WHEN 53 THEN COUNT( * ) DIV - 70 ELSE COUNT( * ) * 27 END + + 83 + - - 37 AS col2
----
50
147

skipif mysql # not compatible
query II rowsort label-130
SELECT ALL + 50 col2, CASE + 78 WHEN 53 THEN COUNT ( * ) / - 70 ELSE COUNT ( * ) * 27 END + + 83 + - - 37 AS col2
----
50
147

query I rowsort
SELECT - 70 * + 77 AS col1
----
-5390

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT - ( - + 14 ) + + COUNT( * ) + + COUNT( * ) * 60 * 23 + 15
----
1410

skipif mysql # not compatible
query I rowsort label-132
SELECT - ( - + 14 ) + + COUNT ( * ) + + COUNT ( * ) * 60 * 23 + 15
----
1410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-133
SELECT - CAST( NULL AS DECIMAL ) * COALESCE ( + 3, + CAST( + - 28 AS SIGNED ) ) AS col2, - MIN( ALL + 29 )
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-133
SELECT - CAST ( NULL AS REAL ) * COALESCE ( + 3, + CAST ( + - 28 AS INTEGER ) ) AS col2, - MIN ( ALL + 29 )
----
NULL
-29

query I rowsort
SELECT + 5 + + 0 + - 59 * - 76
----
4489

query I rowsort
SELECT ALL - 3 + + 15 * - 1
----
-18

query I rowsort
SELECT ALL - 94 + + + 97 col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-137
SELECT ALL ( NULLIF ( + COUNT( * ), - CAST( NULL AS SIGNED ) * ( - COUNT( * ) ) ) ) + 93 + 92 AS col0
----
186

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL ( NULLIF ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) * ( - COUNT ( * ) ) ) ) + 93 + 92 AS col0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT DISTINCT 63 + - 44 * + - COUNT( * ) * 51 * + ( + 44 ) * - + ( + 73 )
----
-7207665

skipif mysql # not compatible
query I rowsort label-138
SELECT DISTINCT 63 + - 44 * + - COUNT ( * ) * 51 * + ( + 44 ) * - + ( + 73 )
----
-7207665

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

query I rowsort
SELECT ALL 98 + - 90 - + 90
----
-82

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

skipif mysql # not compatible
query I rowsort label-141
SELECT - MAX ( DISTINCT - 21 )
----
21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-142
SELECT ALL 44 - 78 * + NULLIF ( - 88, CAST( NULL AS DECIMAL ) * 15 + + COUNT( - 50 ) )
----
6908

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL 44 - 78 * + NULLIF ( - 88, CAST ( NULL AS REAL ) * 15 + + COUNT ( - 50 ) )
----
6908

query I rowsort
SELECT DISTINCT 56 * - 88
----
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT + COUNT( * ) - - 51
----
52

skipif mysql # not compatible
query I rowsort label-144
SELECT + COUNT ( * ) - - 51
----
52

query I rowsort
SELECT + 85 * 64
----
5440

query I rowsort
SELECT ALL 8 - - 55
----
63

query I rowsort
SELECT + 91 + 97 AS col2
----
188

query I rowsort
SELECT + 49 * 43
----
2107

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

skipif mysql # not compatible
query I rowsort label-149
SELECT - 73 / + 82
----
0

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

skipif mysql # not compatible
query I rowsort label-150
SELECT DISTINCT - 24 * + COUNT ( * ) AS col0
----
-24

query I rowsort
SELECT + NULLIF ( + ( 90 ), 65 ) + - 81 * - 20
----
1710

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-152
SELECT - CAST( NULL AS DECIMAL ) - - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-152
SELECT - CAST ( NULL AS REAL ) - - 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT + 19 + ( COUNT( * ) ) * - MIN( ALL 56 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-153
SELECT + 19 + ( COUNT ( * ) ) * - MIN ( ALL 56 ) AS col1
----
-37

query I rowsort
SELECT DISTINCT 42 * 41
----
1722

query I rowsort
SELECT ALL 1 * + 22 AS col1
----
22

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

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

query I rowsort
SELECT DISTINCT + 52 * + 59 AS col2
----
3068

query I rowsort
SELECT + 59 * 92
----
5428

onlyif mysql # DIV for integer division: 
query I rowsort label-159
SELECT ( 31 ) DIV 36 + + 7 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-159
SELECT ( 31 ) / 36 + + 7 AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-160
SELECT - 83 * + CASE 43 WHEN CAST( NULL AS SIGNED ) / - SUM( + 18 ) THEN COALESCE ( + CAST( NULL AS SIGNED ), 33 + + 29 ) + 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-160
SELECT - 83 * + CASE 43 WHEN CAST ( NULL AS INTEGER ) / - SUM ( + 18 ) THEN COALESCE ( + CAST ( NULL AS INTEGER ), 33 + + 29 ) + 63 END
----
NULL

query I rowsort
SELECT ( - 40 ) AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-162
SELECT ALL + CASE - CAST( NULL AS SIGNED ) WHEN 80 + 9 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE 0 * 83 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL + CASE - CAST ( NULL AS INTEGER ) WHEN 80 + 9 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE 0 * 83 END AS col0
----
0

query I rowsort
SELECT ALL - 60 * + 97 + 73
----
-5747

query I rowsort
SELECT - 29 * + 55 AS col0
----
-1595

query I rowsort
SELECT - 35 + + 9 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT COALESCE ( + COUNT( * ), + 82, 81 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-166
SELECT COALESCE ( + COUNT ( * ), + 82, 81 ) AS col0
----
1

query I rowsort
SELECT ALL + NULLIF ( + 30, - NULLIF ( - 53, 55 / - 66 ) ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT ALL 89 * + 33 + COUNT( * )
----
2938

skipif mysql # not compatible
query I rowsort label-168
SELECT ALL 89 * + 33 + COUNT ( * )
----
2938

query I rowsort
SELECT NULLIF ( 17, 21 * + 90 + 41 * + 61 )
----
17

query I rowsort
SELECT ALL 11 * - 30 AS col1
----
-330

query I rowsort
SELECT - 17 + 88 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT DISTINCT - ( 25 ) * + COUNT( * ) + ( + 18 + 60 ) * - 94
----
-7357

skipif mysql # not compatible
query I rowsort label-172
SELECT DISTINCT - ( 25 ) * + COUNT ( * ) + ( + 18 + 60 ) * - 94
----
-7357

query I rowsort
SELECT 8 * 18 + ( 0 + 32 ) AS col2
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT ALL + 17 * + 82 + COUNT( * )
----
1395

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL + 17 * + 82 + COUNT ( * )
----
1395

query I rowsort
SELECT - 63 * 17 AS col0
----
-1071

query I rowsort
SELECT + NULLIF ( 68, 37 / + 19 + - 55 )
----
68

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

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL + SUM ( DISTINCT 96 ) AS col0
----
96

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

skipif mysql # not compatible
query I rowsort label-178
SELECT 27 * + COUNT ( * ) + 72 AS col0
----
99

query I rowsort
SELECT - 57 + + 30 * 67 AS col0
----
1953

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT + 7 * 47 - COUNT( * )
----
328

skipif mysql # not compatible
query I rowsort label-180
SELECT + 7 * 47 - COUNT ( * )
----
328

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

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

query I rowsort
SELECT - 94 + 96 AS col2
----
2

query I rowsort
SELECT ALL 8 * 56 - 57 * 52 AS col1
----
-2516

query I rowsort
SELECT + 16 + - 31 AS col1
----
-15

query I rowsort
SELECT ( 27 ) col2
----
27

query I rowsort
SELECT + + 12 + 83 AS col1
----
95

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

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL + 7 - + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + - 37 + 36
----
-1

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

skipif mysql # not compatible
query I rowsort label-189
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 62
----
NULL

query I rowsort
SELECT + - ( 38 ) + 41 col0
----
3

query I rowsort
SELECT + - 88 * - 13
----
1144

query I rowsort
SELECT ALL + 82 * + 43
----
3526

query I rowsort
SELECT ALL ( 41 ) * 95 AS col1
----
3895

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT + ( - MIN( 88 ) ) * 46
----
-4048

skipif mysql # not compatible
query I rowsort label-194
SELECT + ( - MIN ( 88 ) ) * 46
----
-4048

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ALL 6 + MIN( - 45 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL 6 + MIN ( - 45 ) AS col0
----
-39

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

skipif mysql # not compatible
query I rowsort label-196
SELECT + ( COUNT ( * ) ) / + 92 AS col1
----
0

query I rowsort
SELECT DISTINCT 89 + - 84 + + 34 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT ALL COUNT( * ) + - 38 + + 32 * 3 col2
----
59

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL COUNT ( * ) + - 38 + + 32 * 3 col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-199
SELECT 25 * ( CAST( 67 AS SIGNED ) ) AS col0
----
1675

skipif mysql # not compatible
query I rowsort label-199
SELECT 25 * ( CAST ( 67 AS INTEGER ) ) AS col0
----
1675

query I rowsort
SELECT DISTINCT 53 + - 83 + 77 * + 98 AS col1
----
7516

query I rowsort
SELECT ALL - 3 + ( + 4 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - CASE + 99 WHEN 74 THEN + 95 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT DISTINCT 47 + - 86 + COUNT( * ) * + 40
----
1

skipif mysql # not compatible
query I rowsort label-203
SELECT DISTINCT 47 + - 86 + COUNT ( * ) * + 40
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT ALL - CASE + MAX( DISTINCT NULLIF ( 0, 74 ) ) WHEN 25 * - 20 + COALESCE ( + 41, 95 ) THEN 41 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL - CASE + MAX ( DISTINCT NULLIF ( 0, 74 ) ) WHEN 25 * - 20 + COALESCE ( + 41, 95 ) THEN 41 END AS col2
----
NULL

query I rowsort
SELECT ALL - ( + 60 ) + 93 * 16 col2
----
1428

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

skipif mysql # not compatible
query I rowsort label-206
SELECT 24 * - - COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 81 * 11 * 97
----
86427

query I rowsort
SELECT ALL - 76 - + 87 col2
----
-163

query I rowsort
SELECT 50 * - NULLIF ( 80, - 0 ) * - 51 AS col2
----
204000

query I rowsort
SELECT 24 + + + 37 + 15 * - 28
----
-359

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-211
SELECT ALL - CAST( COALESCE ( - 36, 49 / - 34 ) AS SIGNED ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL - CAST ( COALESCE ( - 36, 49 / - 34 ) AS INTEGER ) AS col0
----
36

query I rowsort
SELECT ALL - 41 * 34
----
-1394

query I rowsort
SELECT 55 * - + 4 - 72 * + 51 AS col0
----
-3892

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

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

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

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

query I rowsort
SELECT ALL + + ( - 43 ) * - 20 AS col2
----
860

query I rowsort
SELECT ( 40 ) * 56 AS col0
----
2240

query I rowsort
SELECT + 28 * + 20
----
560

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-220
SELECT 70 DIV - 83 col2
----
0

skipif mysql # not compatible
query I rowsort label-220
SELECT 70 / - 83 col2
----
0

query I rowsort
SELECT - 94 * - 21
----
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT DISTINCT - COALESCE ( - 17, NULLIF ( + 1, + 77 + 80 / 5 ) * + COUNT( * ) )
----
17

skipif mysql # not compatible
query I rowsort label-222
SELECT DISTINCT - COALESCE ( - 17, NULLIF ( + 1, + 77 + 80 / 5 ) * + COUNT ( * ) )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-223
SELECT ALL - - 9 + - - 21 DIV - 9
----
7

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL - - 9 + - - 21 / - 9
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-224
SELECT 50 DIV - 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-224
SELECT 50 / - 51 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-225
SELECT ALL + CAST( + - 97 AS SIGNED ) + + 87
----
-10

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL + CAST ( + - 97 AS INTEGER ) + + 87
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-226
SELECT ALL + - 96 DIV - 65
----
1

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL + - 96 / - 65
----
1

query I rowsort
SELECT ALL + ( - - 1 ) + + ( - 23 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT + 44 - + - MAX( - ( 38 ) )
----
6

skipif mysql # not compatible
query I rowsort label-228
SELECT + 44 - + - MAX ( - ( 38 ) )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-229
SELECT COUNT( * ) + - - 57 + 83 DIV ( - CAST( 90 AS SIGNED ) * 54 + + 75 )
----
58

skipif mysql # not compatible
query I rowsort label-229
SELECT COUNT ( * ) + - - 57 + 83 / ( - CAST ( 90 AS INTEGER ) * 54 + + 75 )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-230
SELECT 60 + - 97 DIV ( 44 + - 72 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-230
SELECT 60 + - 97 / ( 44 + - 72 ) AS col1
----
63

query I rowsort
SELECT 19 * - 19 * 43
----
-15523

query I rowsort
SELECT ALL 48 + + 10 AS col1
----
58

query I rowsort
SELECT 80 + - 60 * - + 6 - 1
----
439

query I rowsort
SELECT 89 + - 34 + + 94 AS col1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT 25 - CASE - - 10 WHEN - 97 THEN + 74 WHEN COUNT( * ) THEN 11 WHEN + COUNT( * ) + - 58 * 41 THEN NULL ELSE NULL END - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-235
SELECT 25 - CASE - - 10 WHEN - 97 THEN + 74 WHEN COUNT ( * ) THEN 11 WHEN + COUNT ( * ) + - 58 * 41 THEN NULL ELSE NULL END - 92
----
NULL

query I rowsort
SELECT DISTINCT + 16 * + 87 * + 70
----
97440

query II rowsort
SELECT DISTINCT 6, 45 AS col2
----
6
45

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT ALL + 7 + COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL + 7 + COUNT ( * ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT 80 * - ( + 80 ) * COUNT( * ) + 96
----
-6304

skipif mysql # not compatible
query I rowsort label-239
SELECT 80 * - ( + 80 ) * COUNT ( * ) + 96
----
-6304

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT 15 + - ( - 37 ) + MAX( ALL + ( + 78 ) ) AS col2
----
130

skipif mysql # not compatible
query I rowsort label-240
SELECT 15 + - ( - 37 ) + MAX ( ALL + ( + 78 ) ) AS col2
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-241
SELECT ALL ( - 42 ) DIV + 73 + 45
----
45

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL ( - 42 ) / + 73 + 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT - 74 * - 22 + COALESCE ( COUNT( * ), + 39 * COALESCE ( - 41 * COUNT( * ), + 38 ) - ( + 59 + + NULLIF ( COUNT( * ), - 86 ) * + 99 ) ) - 33 AS col1
----
1596

skipif mysql # not compatible
query I rowsort label-242
SELECT - 74 * - 22 + COALESCE ( COUNT ( * ), + 39 * COALESCE ( - 41 * COUNT ( * ), + 38 ) - ( + 59 + + NULLIF ( COUNT ( * ), - 86 ) * + 99 ) ) - 33 AS col1
----
1596

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT COUNT( 46 ) * 88
----
88

skipif mysql # not compatible
query I rowsort label-243
SELECT COUNT ( 46 ) * 88
----
88

query II rowsort
SELECT 54, + 26 AS col2
----
54
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-245
SELECT CAST( NULL AS SIGNED ) + 86 * - COALESCE ( + 48, 14 - COUNT( * ) ) * 35 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-245
SELECT CAST ( NULL AS INTEGER ) + 86 * - COALESCE ( + 48, 14 - COUNT ( * ) ) * 35 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-246
SELECT ALL ( - - 93 ) DIV - 12 + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-246
SELECT ALL ( - - 93 ) / - 12 + COUNT ( * )
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-247
SELECT NULLIF ( 35, + 24 ) DIV 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-247
SELECT NULLIF ( 35, + 24 ) / 46 AS col2
----
0

query I rowsort
SELECT 50 * 52 AS col0
----
2600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-249
SELECT DISTINCT CAST( - 2 AS SIGNED ) - 24 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT CAST ( - 2 AS INTEGER ) - 24 AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-250
SELECT DISTINCT CASE WHEN NOT NULLIF ( 11, - 27 ) BETWEEN - 40 + + 42 AND - CASE CAST( + 34 AS SIGNED ) WHEN ( 22 ) + + 40 THEN - 15 * 68 ELSE - 4 * 78 END THEN 72 END / COALESCE ( + 58, + MIN( - 44 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-250
SELECT DISTINCT CASE WHEN NOT NULLIF ( 11, - 27 ) BETWEEN - 40 + + 42 AND - CASE CAST ( + 34 AS INTEGER ) WHEN ( 22 ) + + 40 THEN - 15 * 68 ELSE - 4 * 78 END THEN 72 END / COALESCE ( + 58, + MIN ( - 44 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-251
SELECT CAST( NULL AS SIGNED ) / - + 28 * - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-251
SELECT CAST ( NULL AS INTEGER ) / - + 28 * - 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT ALL - NULLIF ( - CASE + 31 WHEN 8 + + 55 THEN COUNT( * ) + COUNT( * ) * COALESCE ( - 10, - 18 ) ELSE NULL END, - 64 / + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-252
SELECT ALL - NULLIF ( - CASE + 31 WHEN 8 + + 55 THEN COUNT ( * ) + COUNT ( * ) * COALESCE ( - 10, - 18 ) ELSE NULL END, - 64 / + 23 )
----
NULL

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

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

query I rowsort
SELECT ALL + 81 * + 74 + + + 85
----
6079

onlyif mysql # DIV for integer division: 
query I rowsort label-255
SELECT 1 + + 88 DIV - - 21 + + 82 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-255
SELECT 1 + + 88 / - - 21 + + 82 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT + + NULLIF ( - - ( + 61 ), - MAX( 4 ) + 54 )
----
61

skipif mysql # not compatible
query I rowsort label-256
SELECT + + NULLIF ( - - ( + 61 ), - MAX ( 4 ) + 54 )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-257
SELECT + ( - CAST( + + 64 AS SIGNED ) ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-257
SELECT + ( - CAST ( + + 64 AS INTEGER ) ) col0
----
-64

query I rowsort
SELECT - 25 * + 43 * + 70
----
-75250

query I rowsort
SELECT 95 - - - 45 * - 4
----
275

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-260
SELECT + 57 * - SUM( DISTINCT CAST( NULL AS DECIMAL ) ) - 76 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-260
SELECT + 57 * - SUM ( DISTINCT CAST ( NULL AS REAL ) ) - 76 col2
----
NULL

query I rowsort
SELECT + 92 * + 34
----
3128

query I rowsort
SELECT ALL - 55 + + 84 AS col0
----
29

query I rowsort
SELECT DISTINCT 66 + + 90
----
156

query I rowsort
SELECT - - NULLIF ( + 12, + 57 ) AS col1
----
12

query I rowsort
SELECT 49 + - + 68 + - - 40 * - 54
----
-2179

query II rowsort
SELECT DISTINCT 27 col1, - CASE - + 30 WHEN + 37 THEN NULL WHEN + 0 + 2 * - 60 THEN + ( 95 ) / COALESCE ( - 40, 57 / - 17 ) WHEN - 64 - - 98 THEN NULL ELSE NULL END AS col1
----
27
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-267
SELECT ALL + 5 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL + 5 / - 92
----
0

query I rowsort
SELECT 95 + - + 55 + + 78 + 15 * 65
----
1093

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT DISTINCT + 72 + - COUNT( * ) * NULLIF ( - 71, + 64 - + 37 )
----
143

skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT + 72 + - COUNT ( * ) * NULLIF ( - 71, + 64 - + 37 )
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-270
SELECT ALL - 14 + + 90 + - + 79 * CAST( 89 AS SIGNED ) AS col2
----
-6955

skipif mysql # not compatible
query I rowsort label-270
SELECT ALL - 14 + + 90 + - + 79 * CAST ( 89 AS INTEGER ) AS col2
----
-6955

query II rowsort
SELECT - - 29 AS col2, + ( + + 5 ) * + 75 col2
----
29
375

query II rowsort
SELECT - 55, 82 AS col2
----
-55
82

query I rowsort
SELECT ALL + - 94 + 66 + - + 69 + - 42 * - 70 * - 40 AS col2
----
-117697

query I rowsort
SELECT - ( - - 63 ) * - 62 AS col2
----
3906

query I rowsort
SELECT - - 28 + + + 54 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT - 8 * + 32 * COUNT( * ) + + 73
----
-183

skipif mysql # not compatible
query I rowsort label-276
SELECT - 8 * + 32 * COUNT ( * ) + + 73
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT ALL COALESCE ( NULLIF ( 86, ( 6 ) * 25 ), + COUNT( * ) )
----
86

skipif mysql # not compatible
query I rowsort label-277
SELECT ALL COALESCE ( NULLIF ( 86, ( 6 ) * 25 ), + COUNT ( * ) )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-278
SELECT DISTINCT CASE + 30 WHEN - 73 * + 56 - + CAST( NULL AS SIGNED ) + + 31 THEN NULL WHEN 23 + 18 THEN 49 + - ( + 36 ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-278
SELECT DISTINCT CASE + 30 WHEN - 73 * + 56 - + CAST ( NULL AS INTEGER ) + + 31 THEN NULL WHEN 23 + 18 THEN 49 + - ( + 36 ) ELSE NULL END col0
----
NULL

query I rowsort
SELECT DISTINCT + 21 + 70
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT ALL CASE + + ( - 61 ) WHEN + + COUNT( * ) / + 49 - 77 * + ( COUNT( * ) ) THEN + 83 + - COUNT( * ) * 32 WHEN SUM( 74 ) + - 35 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL CASE + + ( - 61 ) WHEN + + COUNT ( * ) / + 49 - 77 * + ( COUNT ( * ) ) THEN + 83 + - COUNT ( * ) * 32 WHEN SUM ( 74 ) + - 35 THEN NULL END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL - COUNT ( * ) / - + 24 AS col0
----
0

query I rowsort
SELECT DISTINCT ( + 86 ) - - 25 + + 27 * + 22
----
705

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT DISTINCT CASE - + COUNT( * ) WHEN 48 THEN + - ( COUNT( * ) ) / 66 WHEN 79 THEN NULL WHEN 11 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT CASE - + COUNT ( * ) WHEN 48 THEN + - ( COUNT ( * ) ) / 66 WHEN 79 THEN NULL WHEN 11 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT DISTINCT COALESCE ( + 21, + COUNT( * ), - 69 * ( 63 * 7 ) )
----
21

skipif mysql # not compatible
query I rowsort label-284
SELECT DISTINCT COALESCE ( + 21, + COUNT ( * ), - 69 * ( 63 * 7 ) )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-285
SELECT ALL + 85 * - + COUNT( * ) - 60 + - COUNT( * ) - - 73 * - COALESCE ( NULLIF ( - NULLIF ( COUNT( * ), 54 + 64 ), - 44 ), - COUNT( + CAST( + 97 AS SIGNED ) ) * + 40 ) * + 46 * - 45 AS col0
----
-151256

skipif mysql # not compatible
query I rowsort label-285
SELECT ALL + 85 * - + COUNT ( * ) - 60 + - COUNT ( * ) - - 73 * - COALESCE ( NULLIF ( - NULLIF ( COUNT ( * ), 54 + 64 ), - 44 ), - COUNT ( + CAST ( + 97 AS INTEGER ) ) * + 40 ) * + 46 * - 45 AS col0
----
-151256

query I rowsort
SELECT - 64 * 30
----
-1920

query I rowsort
SELECT + 70 * 37 * + 95
----
246050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-288
SELECT - 40 - - COALESCE ( + 23, + + 58 DIV + CASE - 39 WHEN - 2 THEN 36 WHEN - 40 THEN SUM( 25 ) END ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-288
SELECT - 40 - - COALESCE ( + 23, + + 58 / + CASE - 39 WHEN - 2 THEN 36 WHEN - 40 THEN SUM ( 25 ) END ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT COALESCE ( MIN( ALL + 15 ), + 88, MIN( DISTINCT 11 ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-289
SELECT COALESCE ( MIN ( ALL + 15 ), + 88, MIN ( DISTINCT 11 ) ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT + CASE - - COUNT( * ) WHEN - 82 * - + 83 * - 26 THEN NULL WHEN - COUNT( * ) * + 64 THEN NULL ELSE + 99 END
----
99

skipif mysql # not compatible
query I rowsort label-290
SELECT + CASE - - COUNT ( * ) WHEN - 82 * - + 83 * - 26 THEN NULL WHEN - COUNT ( * ) * + 64 THEN NULL ELSE + 99 END
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-291
SELECT ALL CAST( NULL AS SIGNED ) * 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL CAST ( NULL AS INTEGER ) * 37 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-292
SELECT + 34 * - CAST( + 38 AS SIGNED ) AS col2
----
-1292

skipif mysql # not compatible
query I rowsort label-292
SELECT + 34 * - CAST ( + 38 AS INTEGER ) AS col2
----
-1292

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT DISTINCT + MAX( ALL + 53 ) * 35 - 57 * - 10 AS col1
----
2425

skipif mysql # not compatible
query I rowsort label-293
SELECT DISTINCT + MAX ( ALL + 53 ) * 35 - 57 * - 10 AS col1
----
2425

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT + 63 - + 5 + COUNT( * ) + - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-294
SELECT + 63 - + 5 + COUNT ( * ) + - COUNT ( * )
----
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT + 53 + 84 * - COUNT( * ) + + 65 - - 2 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-296
SELECT + 53 + 84 * - COUNT ( * ) + + 65 - - 2 AS col1
----
36

query I rowsort
SELECT - - 59 + 4 + + 5 AS col0
----
68

query I rowsort
SELECT ALL + 95 * - 5 * + + 21
----
-9975

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT + + MAX( + 14 ) / + + 7 + 32 + CASE + 36 WHEN - 38 THEN 88 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-299
SELECT + + MAX ( + 14 ) / + + 7 + 32 + CASE + 36 WHEN - 38 THEN 88 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-300
SELECT ALL 21 * 51 + + - 7 + - - 45 + 56 / - 63 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-300
SELECT ALL 21 * 51 + + - 7 + - - 45 + 56 / - 63 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT DISTINCT 55 * - 53 * - + COUNT( * ) AS col0
----
2915

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT 55 * - 53 * - + COUNT ( * ) AS col0
----
2915

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT ALL - SUM( DISTINCT - 89 ) * + 21 + + CASE 35 WHEN + 80 THEN - 64 END + 64 * + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL - SUM ( DISTINCT - 89 ) * + 21 + + CASE 35 WHEN + 80 THEN - 64 END + 64 * + 28 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT DISTINCT CASE + 8 WHEN - 50 THEN + 54 WHEN - 47 + + SUM( 77 ) * + ( + 95 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-303
SELECT DISTINCT CASE + 8 WHEN - 50 THEN + 54 WHEN - 47 + + SUM ( 77 ) * + ( + 95 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT + - 65 + - + COUNT( * ) + - + COUNT( * ) + + 44 * - 66 * NULLIF ( - 75 + - 54, - 62 * 65 )
----
374549

skipif mysql # not compatible
query I rowsort label-304
SELECT + - 65 + - + COUNT ( * ) + - + COUNT ( * ) + + 44 * - 66 * NULLIF ( - 75 + - 54, - 62 * 65 )
----
374549

query I rowsort
SELECT DISTINCT CASE + 55 WHEN + 19 + - 8 THEN - 30 / 93 + - 17 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-306
SELECT + + ( + COALESCE ( + 8, - - COUNT( * ) - ( CAST( NULL AS SIGNED ) ), 31 ) ) - 48
----
-40

skipif mysql # not compatible
query I rowsort label-306
SELECT + + ( + COALESCE ( + 8, - - COUNT ( * ) - ( CAST ( NULL AS INTEGER ) ), 31 ) ) - 48
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT + - MIN( + - 34 ) - - 38 + + 75 AS col2
----
147

skipif mysql # not compatible
query I rowsort label-307
SELECT + - MIN ( + - 34 ) - - 38 + + 75 AS col2
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-308
SELECT + + CAST( + + COALESCE ( - 67, - 31 * COUNT( * ) + + 31 ) AS SIGNED ) + SUM( - 87 ) * + ( COUNT( * ) * + COALESCE ( 74, 12 ) - 39 ) AS col1
----
-3112

skipif mysql # not compatible
query I rowsort label-308
SELECT + + CAST ( + + COALESCE ( - 67, - 31 * COUNT ( * ) + + 31 ) AS INTEGER ) + SUM ( - 87 ) * + ( COUNT ( * ) * + COALESCE ( 74, 12 ) - 39 ) AS col1
----
-3112

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT - - 82 * + + 67 + COUNT( * ) * + + COUNT( * )
----
5495

skipif mysql # not compatible
query I rowsort label-309
SELECT - - 82 * + + 67 + COUNT ( * ) * + + COUNT ( * )
----
5495

query I rowsort
SELECT - ( NULLIF ( - 22, + 51 ) ) AS col0
----
22

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

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL SUM ( ALL 18 )
----
18

query I rowsort
SELECT ALL - 7 - - 58
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-313
SELECT ALL - CAST( NULL AS SIGNED ) * + - ( CASE + + 63 WHEN - COUNT( * ) / COUNT( * ) THEN + 18 WHEN 61 * 84 THEN + 37 * - 33 ELSE - NULLIF ( - 29, - 32 ) END ) / + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL - CAST ( NULL AS INTEGER ) * + - ( CASE + + 63 WHEN - COUNT ( * ) / COUNT ( * ) THEN + 18 WHEN 61 * 84 THEN + 37 * - 33 ELSE - NULLIF ( - 29, - 32 ) END ) / + 2
----
NULL

query I rowsort
SELECT - 0 - ( + 76 )
----
-76

query I rowsort
SELECT DISTINCT - 35 * 16
----
-560

query I rowsort
SELECT DISTINCT - 62 * + 87 AS col1
----
-5394

query I rowsort
SELECT + 47 * + 80 * - 86
----
-323360

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

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

query I rowsort
SELECT + 64 + + + ( + - 7 ) + 11 + - ( + 24 ) * 5
----
-52

query I rowsort
SELECT - 41 + 82
----
41

query I rowsort
SELECT - 17 + ( - 91 ) * - 71
----
6444

onlyif mysql # DIV for integer division: 
query I rowsort label-322
SELECT - 34 DIV - - 58 col0
----
0

skipif mysql # not compatible
query I rowsort label-322
SELECT - 34 / - - 58 col0
----
0

query I rowsort
SELECT - 93 + + 39 AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-324
SELECT ALL + CASE + 65 WHEN - ( COUNT( * ) ) THEN NULL WHEN - CAST( CASE WHEN NOT ( SUM( DISTINCT 22 ) ) BETWEEN MAX( + 8 ) AND NULL THEN 30 WHEN ( 82 ) < 95 * - 58 - 43 THEN + 29 + + 96 * 32 ELSE NULL END AS SIGNED ) THEN + 32 * 82 - COUNT( * ) WHEN 76 / + 25 THEN NULL ELSE + 21 END col2
----
21

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL + CASE + 65 WHEN - ( COUNT ( * ) ) THEN NULL WHEN - CAST ( CASE WHEN NOT ( SUM ( DISTINCT 22 ) ) BETWEEN MAX ( + 8 ) AND NULL THEN 30 WHEN ( 82 ) < 95 * - 58 - 43 THEN + 29 + + 96 * 32 ELSE NULL END AS INTEGER ) THEN + 32 * 82 - COUNT ( * ) WHEN 76 / + 25 THEN NULL ELSE + 21 END col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT NULLIF ( 17, - + SUM( ALL - 0 ) ) * + CASE - 29 WHEN 8 * + 2 THEN 85 END * + 25 + - ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-325
SELECT NULLIF ( 17, - + SUM ( ALL - 0 ) ) * + CASE - 29 WHEN 8 * + 2 THEN 85 END * + 25 + - ( - COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-326
SELECT ALL - CAST( NULL AS SIGNED ) / - NULLIF ( - - 69, 39 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL - CAST ( NULL AS INTEGER ) / - NULLIF ( - - 69, 39 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-327
SELECT DISTINCT - 0 DIV - + 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-327
SELECT DISTINCT - 0 / - + 96 AS col1
----
0

query I rowsort
SELECT - ( + 36 ) * 22
----
-792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-329
SELECT DISTINCT COUNT( 20 ) DIV + 1 + + 41
----
42

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT COUNT ( 20 ) / + 1 + + 41
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-330
SELECT + COALESCE ( + - CAST( + 0 AS SIGNED ), + + 89 )
----
0

skipif mysql # not compatible
query I rowsort label-330
SELECT + COALESCE ( + - CAST ( + 0 AS INTEGER ), + + 89 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-331
SELECT + CASE 98 WHEN - 73 THEN + 62 * ( 20 ) + - CAST( NULL AS SIGNED ) WHEN COUNT( * ) + + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-331
SELECT + CASE 98 WHEN - 73 THEN + 62 * ( 20 ) + - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) + + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-332
SELECT ALL + 99 * + CAST( - + COUNT( ALL - 18 ) AS SIGNED ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL + 99 * + CAST ( - + COUNT ( ALL - 18 ) AS INTEGER ) AS col2
----
-99

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-334
SELECT DISTINCT - 78 DIV - 10 + NULLIF ( + 60, - 46 * + 1 + COUNT( * ) )
----
67

skipif mysql # not compatible
query I rowsort label-334
SELECT DISTINCT - 78 / - 10 + NULLIF ( + 60, - 46 * + 1 + COUNT ( * ) )
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-335
SELECT ALL 19 DIV - 88 * + - 96 * - 62 * + + 43 + + SUM( 8 + - 36 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL 19 / - 88 * + - 96 * - 62 * + + 43 + + SUM ( 8 + - 36 ) AS col1
----
-28

query II rowsort
SELECT + 94 AS col0, - 84 col0
----
94
-84

query I rowsort
SELECT ALL - 35 * - 52 + - 53 * - 15
----
2615

onlyif mysql # aggregate syntax: 
query II rowsort label-338
SELECT DISTINCT + + COUNT( * ), + 39 + + 78 col0
----
1
117

skipif mysql # not compatible
query II rowsort label-338
SELECT DISTINCT + + COUNT ( * ), + 39 + + 78 col0
----
1
117

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-340
SELECT DISTINCT + COALESCE ( 83, COUNT( * ), - 76 DIV - - ( 23 ) + - 57 ) + 64 col0
----
147

skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT + COALESCE ( 83, COUNT ( * ), - 76 / - - ( 23 ) + - 57 ) + 64 col0
----
147

query I rowsort
SELECT ALL - 72 + 3 - - 70 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-342
SELECT ALL 84 + 79 + - + CAST( 94 AS SIGNED ) * - - 21
----
-1811

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL 84 + 79 + - + CAST ( 94 AS INTEGER ) * - - 21
----
-1811

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT - CASE - 59 WHEN - - 96 - - 5 + + 24 THEN NULL ELSE + COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-343
SELECT - CASE - 59 WHEN - - 96 - - 5 + + 24 THEN NULL ELSE + COUNT ( * ) END
----
-1

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

skipif mysql # not compatible
query I rowsort label-344
SELECT + MAX ( - CAST ( + - 66 AS INTEGER ) ) AS col0
----
66

query I rowsort
SELECT + 63 + - 4
----
59

query I rowsort
SELECT 27 - - 45
----
72

query I rowsort
SELECT + 37 * 37 AS col2
----
1369

onlyif mysql # DIV for integer division: 
query I rowsort label-348
SELECT ALL - 22 DIV + 56 * - + 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL - 22 / + 56 * - + 53 AS col0
----
0

query I rowsort
SELECT 58 + - 32 AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-350
SELECT ALL - ( - COALESCE ( 65, + - COUNT( * ) * + + CAST( NULL AS SIGNED ) + 10 * 40 ) )
----
65

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL - ( - COALESCE ( 65, + - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + 10 * 40 ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT DISTINCT - 89 * + + 26 + COUNT( - 72 ) + 72
----
-2241

skipif mysql # not compatible
query I rowsort label-351
SELECT DISTINCT - 89 * + + 26 + COUNT ( - 72 ) + 72
----
-2241

query I rowsort
SELECT ALL 29 - 70
----
-41

query I rowsort
SELECT - 3 * - ( + - 83 ) * + - 11
----
2739

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT 76 * + + MIN( ALL 48 ) + + 72 * + COUNT( * ) col0
----
3720

skipif mysql # not compatible
query I rowsort label-354
SELECT 76 * + + MIN ( ALL 48 ) + + 72 * + COUNT ( * ) col0
----
3720

onlyif mysql # aggregate syntax: 
query II rowsort label-355
SELECT COALESCE ( 99, - + 69 ) + - + COUNT( * ) col1, 46
----
98
46

skipif mysql # not compatible
query II rowsort label-355
SELECT COALESCE ( 99, - + 69 ) + - + COUNT ( * ) col1, 46
----
98
46

query I rowsort
SELECT 8 * - 9
----
-72

query II rowsort
SELECT - 8, + 36 AS col0
----
-8
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-358
SELECT 50 + + - 32 * - 16 * + CAST( NULL AS SIGNED ) * + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-358
SELECT 50 + + - 32 * - 16 * + CAST ( NULL AS INTEGER ) * + 64 AS col1
----
NULL

query II rowsort
SELECT ALL 12 AS col0, 57
----
12
57

query I rowsort
SELECT 33 * + + 13
----
429

query I rowsort
SELECT ALL - 13 * 48
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT DISTINCT - 95 * + CASE 16 WHEN - - COUNT( 3 ) * + 13 THEN - 27 * + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-362
SELECT DISTINCT - 95 * + CASE 16 WHEN - - COUNT ( 3 ) * + 13 THEN - 27 * + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 86 + - 70 * - + 80 AS col1
----
5514

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-365
SELECT ALL + 50 + 98 + + CAST( NULL AS SIGNED ) / + + 32 * - ( 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL + 50 + 98 + + CAST ( NULL AS INTEGER ) / + + 32 * - ( 79 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-366
SELECT - 86 DIV + COUNT( * ) - + 19 AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-366
SELECT - 86 / + COUNT ( * ) - + 19 AS col2
----
-105

query II rowsort
SELECT 27 AS col2, 41 AS col1
----
27
41

onlyif mysql # DIV for integer division: 
query I rowsort label-368
SELECT 78 DIV + 50
----
1

skipif mysql # not compatible
query I rowsort label-368
SELECT 78 / + 50
----
1

query I rowsort
SELECT 49 - - 35 AS col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-370
SELECT 32 DIV - 95 * 56 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-370
SELECT 32 / - 95 * 56 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT + 83 * MAX( ALL 25 ) - 33
----
2042

skipif mysql # not compatible
query I rowsort label-371
SELECT + 83 * MAX ( ALL 25 ) - 33
----
2042

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT ALL ( - 19 ) + - 52 * + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL ( - 19 ) + - 52 * + COUNT ( * )
----
-71

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-374
SELECT 94 DIV - 69 - - MIN( + + 21 ) col1
----
20

skipif mysql # not compatible
query I rowsort label-374
SELECT 94 / - 69 - - MIN ( + + 21 ) col1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-375
SELECT ALL - + 0 + + 93, + CAST( 8 AS SIGNED ) AS col0
----
93
8

skipif mysql # not compatible
query II rowsort label-375
SELECT ALL - + 0 + + 93, + CAST ( 8 AS INTEGER ) AS col0
----
93
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-376
SELECT CASE 53 WHEN - - 13 THEN NULL ELSE CAST( NULL AS SIGNED ) END / + COALESCE ( + 50, - 31 ) + - 58 * + NULLIF ( + CAST( NULL AS DECIMAL ) + - 82, 15 * 18 + 38 * - COUNT( * ) ) - + SUM( 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-376
SELECT CASE 53 WHEN - - 13 THEN NULL ELSE CAST ( NULL AS INTEGER ) END / + COALESCE ( + 50, - 31 ) + - 58 * + NULLIF ( + CAST ( NULL AS REAL ) + - 82, 15 * 18 + 38 * - COUNT ( * ) ) - + SUM ( 88 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-377
SELECT DISTINCT + 34 DIV - 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT + 34 / - 59 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-378
SELECT + - 73 * - CAST( + ( + 57 ) AS SIGNED ) * 10 + 41 * 93 + - ( + COUNT( DISTINCT - 51 ) + 66 ) AS col0
----
45356

skipif mysql # not compatible
query I rowsort label-378
SELECT + - 73 * - CAST ( + ( + 57 ) AS INTEGER ) * 10 + 41 * 93 + - ( + COUNT ( DISTINCT - 51 ) + 66 ) AS col0
----
45356

query I rowsort
SELECT + 85 - 17
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-380
SELECT ALL + + 87 / + 5 + - 34 * + - ( + CASE + CAST( 32 AS SIGNED ) WHEN + 13 - - 37 THEN NULL WHEN COUNT( * ) THEN + 83 - ( 47 + COUNT( * ) ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL + + 87 / + 5 + - 34 * + - ( + CASE + CAST ( 32 AS INTEGER ) WHEN + 13 - - 37 THEN NULL WHEN COUNT ( * ) THEN + 83 - ( 47 + COUNT ( * ) ) END ) AS col0
----
NULL

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

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

query I rowsort
SELECT 63 * - - 57 AS col2
----
3591

query I rowsort
SELECT ALL - 43 - + - 92
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-384
SELECT + COALESCE ( + ( - 28 ), + 75 + - 87 DIV + 7 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-384
SELECT + COALESCE ( + ( - 28 ), + 75 + - 87 / + 7 ) AS col1
----
-28

query II rowsort
SELECT ALL - 83 AS col2, 43
----
-83
43

onlyif mysql # aggregate syntax: 
query II rowsort label-386
SELECT + 7, 47 * COALESCE ( - CASE - 51 WHEN - COALESCE ( + 27, - 39 + + 15 ) THEN + 95 END, + SUM( ALL 96 ) * SUM( ALL + 6 + + 37 ) ) * 64 AS col2
----
7
12417024

skipif mysql # not compatible
query II rowsort label-386
SELECT + 7, 47 * COALESCE ( - CASE - 51 WHEN - COALESCE ( + 27, - 39 + + 15 ) THEN + 95 END, + SUM ( ALL 96 ) * SUM ( ALL + 6 + + 37 ) ) * 64 AS col2
----
7
12417024

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-387
SELECT DISTINCT + 35 - + CAST( + ( + 57 ) AS SIGNED ) AS col2, + CAST( NULL AS DECIMAL ) AS col2
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-387
SELECT DISTINCT + 35 - + CAST ( + ( + 57 ) AS INTEGER ) AS col2, + CAST ( NULL AS REAL ) AS col2
----
-22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT ALL + 60 * + + SUM( 94 )
----
5640

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL + 60 * + + SUM ( 94 )
----
5640

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT - COUNT( * ) * 24 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-390
SELECT - COUNT ( * ) * 24 AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-391
SELECT 5 - - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-391
SELECT 5 - - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT 8 / 81 * - - 50 / + CASE + 51 WHEN - ( + ( 82 ) ) + - 20 THEN - SUM( ALL 33 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-392
SELECT 8 / 81 * - - 50 / + CASE + 51 WHEN - ( + ( 82 ) ) + - 20 THEN - SUM ( ALL 33 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT COUNT( * ) * 49 / CASE ( - 76 ) WHEN + CASE + 98 WHEN 83 + 80 THEN NULL WHEN + COUNT( * ) THEN 42 ELSE - MIN( - 45 ) + - 72 END * + 93 THEN + ( + 90 ) * + 40 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-393
SELECT COUNT ( * ) * 49 / CASE ( - 76 ) WHEN + CASE + 98 WHEN 83 + 80 THEN NULL WHEN + COUNT ( * ) THEN 42 ELSE - MIN ( - 45 ) + - 72 END * + 93 THEN + ( + 90 ) * + 40 END col0
----
NULL

query I rowsort
SELECT DISTINCT 64 * 89 * - 52
----
-296192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-395
SELECT 33 * COUNT( * ) DIV - 14
----
-2

skipif mysql # not compatible
query I rowsort label-395
SELECT 33 * COUNT ( * ) / - 14
----
-2

query I rowsort
SELECT 68 + + + 4
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-397
SELECT ( - 18 ) + + + CAST( 32 AS SIGNED ) + + 44 + - - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-397
SELECT ( - 18 ) + + + CAST ( 32 AS INTEGER ) + + 44 + - - COUNT ( * )
----
59

query I rowsort
SELECT 84 - 11 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT - NULLIF ( + 10, + 55 * CASE - + 4 WHEN ( ( - 10 ) ) THEN + 97 * - CASE + COUNT( * ) WHEN 25 + 18 THEN - 60 * - 56 END END - - ( - 95 ) + + 78 ) + - 60 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-399
SELECT - NULLIF ( + 10, + 55 * CASE - + 4 WHEN ( ( - 10 ) ) THEN + 97 * - CASE + COUNT ( * ) WHEN 25 + 18 THEN - 60 * - 56 END END - - ( - 95 ) + + 78 ) + - 60 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT ALL 39 * 14 * - 27 + COALESCE ( + - SUM( DISTINCT - 38 ), - + 43 )
----
-14704

skipif mysql # not compatible
query I rowsort label-400
SELECT ALL 39 * 14 * - 27 + COALESCE ( + - SUM ( DISTINCT - 38 ), - + 43 )
----
-14704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-401
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 3 + - 71 * - - 56 * - 40 + - 58 - + + 47 - + 86 * 87 * + MIN( DISTINCT + 62 / + 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-401
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 3 + - 71 * - - 56 * - 40 + - 58 - + + 47 - + 86 * 87 * + MIN ( DISTINCT + 62 / + 34 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-402
SELECT ALL + - 27 * - CASE + 94 WHEN + 6 THEN NULL ELSE - 45 END AS col0, - ( + - COALESCE ( - 19, + COUNT( * ) + + 57 * 43 ) ) AS col2
----
-1215
-19

skipif mysql # not compatible
query II rowsort label-402
SELECT ALL + - 27 * - CASE + 94 WHEN + 6 THEN NULL ELSE - 45 END AS col0, - ( + - COALESCE ( - 19, + COUNT ( * ) + + 57 * 43 ) ) AS col2
----
-1215
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT - ( COUNT( + + 0 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-403
SELECT - ( COUNT ( + + 0 ) ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-404
SELECT ALL 48 * 41 * + 63 - - 77 + + 91 DIV 28
----
124064

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL 48 * 41 * + 63 - - 77 + + 91 / 28
----
124064

onlyif mysql # aggregate syntax: 
query II rowsort label-405
SELECT DISTINCT - 88 * + + 79 col2, COUNT( + 28 ) * 23
----
-6952
23

skipif mysql # not compatible
query II rowsort label-405
SELECT DISTINCT - 88 * + + 79 col2, COUNT ( + 28 ) * 23
----
-6952
23

query I rowsort
SELECT - + 77 + - 47 * 59 + + 99 + - ( + 0 ) + - 76 AS col0
----
-2827

query I rowsort
SELECT + 22 * + ( 80 )
----
1760

query I rowsort
SELECT ALL + 55 * 61
----
3355

query I rowsort
SELECT + 31 + + 74 AS col2
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-410
SELECT + COUNT( * ) * + COALESCE ( CAST( COALESCE ( - - 63, - ( 53 ) ) AS SIGNED ), - 60 * - SUM( DISTINCT - ( 33 ) * ( 72 ) ), - 94 * ( - CAST( NULL AS SIGNED ) ) + - 84 ) * + 84 + 87 AS col0
----
5379

skipif mysql # not compatible
query I rowsort label-410
SELECT + COUNT ( * ) * + COALESCE ( CAST ( COALESCE ( - - 63, - ( 53 ) ) AS INTEGER ), - 60 * - SUM ( DISTINCT - ( 33 ) * ( 72 ) ), - 94 * ( - CAST ( NULL AS INTEGER ) ) + - 84 ) * + 84 + 87 AS col0
----
5379

query I rowsort
SELECT DISTINCT + + ( + 54 ) AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-412
SELECT DISTINCT 24 * - - COUNT( * ) DIV - - 66
----
0

skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT 24 * - - COUNT ( * ) / - - 66
----
0

query I rowsort
SELECT ALL + 4 * - 6 * 26 - - 80
----
-544

onlyif mysql # DIV for integer division: 
query I rowsort label-414
SELECT DISTINCT + + 9 DIV - - 73 col2
----
0

skipif mysql # not compatible
query I rowsort label-414
SELECT DISTINCT + + 9 / - - 73 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-415
SELECT - - SUM( - - 46 ) DIV 89 * + 23
----
0

skipif mysql # not compatible
query I rowsort label-415
SELECT - - SUM ( - - 46 ) / 89 * + 23
----
0

query I rowsort
SELECT ALL + 40 * - 15 * 89 * - 73 AS col2
----
3898200

onlyif mysql # DIV for integer division: 
query I rowsort label-417
SELECT ALL + - 43 DIV ( + + 42 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL + - 43 / ( + + 42 ) AS col0
----
-1

query I rowsort
SELECT - ( + + 9 ) * + 51 AS col0
----
-459

query I rowsort
SELECT - 63 * - 42 + + 21 AS col1
----
2667

query I rowsort
SELECT NULLIF ( + 10, - + 40 * NULLIF ( ( + 28 ), 71 + - 7 ) + - 7 ) * - 2 + + 29
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT DISTINCT + SUM( + 40 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT + SUM ( + 40 ) AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-422
SELECT ALL + CAST( + MIN( + 3 ) AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-422
SELECT ALL + CAST ( + MIN ( + 3 ) AS INTEGER )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT DISTINCT + 40 * - ( 24 ) * COUNT( * ) + - 85 AS col0
----
-1045

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT + 40 * - ( 24 ) * COUNT ( * ) + - 85 AS col0
----
-1045

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-424
SELECT ALL - 86 + MIN( DISTINCT + 33 ) + + 10 - + 11 + 83 + COUNT( * ) * 7 DIV + 34 * 20 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL - 86 + MIN ( DISTINCT + 33 ) + + 10 - + 11 + 83 + COUNT ( * ) * 7 / + 34 * 20 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT - 11 + - COUNT( * ) + - 86 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-425
SELECT - 11 + - COUNT ( * ) + - 86 AS col1
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-426
SELECT ALL 82 + 76 DIV - ( 5 )
----
67

skipif mysql # not compatible
query I rowsort label-426
SELECT ALL 82 + 76 / - ( 5 )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-427
SELECT + 64 + CAST( + + 67 AS SIGNED ) AS col0
----
131

skipif mysql # not compatible
query I rowsort label-427
SELECT + 64 + CAST ( + + 67 AS INTEGER ) AS col0
----
131

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

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL - ( + + COUNT ( * ) ) + - - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) / + 99 * + 87
----
NULL

query I rowsort
SELECT DISTINCT - 41 + + 55
----
14

query II rowsort
SELECT 65 AS col0, + 72 * - 53 * - ( + 32 ) + - ( + 54 ) AS col1
----
65
122058

query I rowsort
SELECT DISTINCT 81 + 80
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-432
SELECT - NULLIF ( COUNT( * ), - + 75 * - - 20 DIV 12 ) DIV + - 73 * + CAST( 18 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-432
SELECT - NULLIF ( COUNT ( * ), - + 75 * - - 20 / 12 ) / + - 73 * + CAST ( 18 AS INTEGER ) AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-433
SELECT DISTINCT + 78 / + COUNT ( * )
----
78

query II rowsort
SELECT ALL - 24 + + - ( - + 0 ), 69 col1
----
-24
69

query I rowsort
SELECT DISTINCT 9 * - - 36 AS col0
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT ALL 10 * + MIN( - - 15 ) AS col1
----
150

skipif mysql # not compatible
query I rowsort label-436
SELECT ALL 10 * + MIN ( - - 15 ) AS col1
----
150

query I rowsort
SELECT - + 87 + + 61
----
-26

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-439
SELECT ALL CAST( NULL AS SIGNED ) - + 59 + + 99 + 19 + NULLIF ( - + 34, + - 27 ) * COUNT( + 62 ) * - COUNT( * ) + + 35 / - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL CAST ( NULL AS INTEGER ) - + 59 + + 99 + 19 + NULLIF ( - + 34, + - 27 ) * COUNT ( + 62 ) * - COUNT ( * ) + + 35 / - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 18 * 82
----
1476

query I rowsort
SELECT DISTINCT - 59 * + 46 * + 84 * + 71 AS col2
----
-16186296

onlyif mysql # DIV for integer division: 
query I rowsort label-442
SELECT 95 DIV 54 DIV ( - - ( + + 56 ) ) - 75 - - ( 9 )
----
-66

skipif mysql # not compatible
query I rowsort label-442
SELECT 95 / 54 / ( - - ( + + 56 ) ) - 75 - - ( 9 )
----
-66

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-444
SELECT + COUNT( * ) - - 40 + - 65, 4 AS col1
----
-24
4

skipif mysql # not compatible
query II rowsort label-444
SELECT + COUNT ( * ) - - 40 + - 65, 4 AS col1
----
-24
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-445
SELECT + + ( 48 ) * COUNT( * ) DIV + - 20
----
-2

skipif mysql # not compatible
query I rowsort label-445
SELECT + + ( 48 ) * COUNT ( * ) / + - 20
----
-2

query II rowsort
SELECT 46 * 20 * - - 43 + 35 AS col1, 82 + + 92 AS col0
----
39595
174

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT - CASE - - MIN( DISTINCT + 56 ) WHEN + COALESCE ( 70, - 70 + 95 + 21 * 98, 47 ) THEN NULL WHEN + 48 * 1 THEN 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-447
SELECT - CASE - - MIN ( DISTINCT + 56 ) WHEN + COALESCE ( 70, - 70 + 95 + 21 * 98, 47 ) THEN NULL WHEN + 48 * 1 THEN 65 END
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-449
SELECT ALL + COUNT( * ) * 55 DIV - COUNT( * ) + + 34
----
-21

skipif mysql # not compatible
query I rowsort label-449
SELECT ALL + COUNT ( * ) * 55 / - COUNT ( * ) + + 34
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-450
SELECT + 92 AS col0, COUNT( * ) DIV + 96 AS col1
----
92
0

skipif mysql # not compatible
query II rowsort label-450
SELECT + 92 AS col0, COUNT ( * ) / + 96 AS col1
----
92
0

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

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

query I rowsort
SELECT - 83 - + - 41
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT - CASE + COUNT( * ) WHEN + 18 THEN NULL ELSE 81 END * 64 col2
----
-5184

skipif mysql # not compatible
query I rowsort label-453
SELECT - CASE + COUNT ( * ) WHEN + 18 THEN NULL ELSE 81 END * 64 col2
----
-5184

query II rowsort
SELECT + 93 AS col1, + 9
----
93
9

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT DISTINCT + 71 * - COUNT( * ) + + 34 * - COUNT( * ) + 55 * 11 AS col1
----
500

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT + 71 * - COUNT ( * ) + + 34 * - COUNT ( * ) + 55 * 11 AS col1
----
500

query I rowsort
SELECT - 94 * + 51 * 80
----
-383520

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT ALL COALESCE ( COALESCE ( - COUNT( * ), 49 ), - 80, - + 21 ) * + + ( COUNT( * ) ) + + 18 + + 70 * 52
----
3657

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL COALESCE ( COALESCE ( - COUNT ( * ), 49 ), - 80, - + 21 ) * + + ( COUNT ( * ) ) + + 18 + + 70 * 52
----
3657

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

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

query I rowsort
SELECT + 58 + + 69 + 83 AS col1
----
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-461
SELECT ALL 56 * 91 + + + CASE COUNT( * ) WHEN + + ( - CASE + CASE - 56 WHEN + 86 THEN CAST( COUNT( * ) AS SIGNED ) ELSE NULL END WHEN + 46 THEN - ( + CAST( + 79 AS SIGNED ) ) - 19 ELSE NULL END ) - + COUNT( * ) THEN + 86 * - 77 - 74 END + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL 56 * 91 + + + CASE COUNT ( * ) WHEN + + ( - CASE + CASE - 56 WHEN + 86 THEN CAST ( COUNT ( * ) AS INTEGER ) ELSE NULL END WHEN + 46 THEN - ( + CAST ( + 79 AS INTEGER ) ) - 19 ELSE NULL END ) - + COUNT ( * ) THEN + 86 * - 77 - 74 END + 16
----
NULL

query I rowsort
SELECT - 52 + - 3 + + - 78
----
-133

query I rowsort
SELECT - 58 * + 65 AS col0
----
-3770

query II rowsort
SELECT ALL ( + 63 ) AS col1, 28 + - ( - + 81 ) AS col0
----
63
109

query I rowsort
SELECT - ( - 87 ) * 38
----
3306

query I rowsort
SELECT ALL + 82 * - 66 AS col0
----
-5412

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT DISTINCT CASE ( 39 ) WHEN + + 81 THEN AVG ( 71 ) * + COUNT( * ) * - SUM( ALL 1 ) + 9 + - 4 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-467
SELECT DISTINCT CASE ( 39 ) WHEN + + 81 THEN AVG ( 71 ) * + COUNT ( * ) * - SUM ( ALL 1 ) + 9 + - 4 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 19 + - 42 AS col0
----
-61

query I rowsort
SELECT DISTINCT - 37 - + - 93 AS col1
----
56

query I rowsort
SELECT 84 - - 85 + 3 - - - 4 * - 47
----
360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-471
SELECT ALL + 65 * + CAST( - 83 AS SIGNED )
----
-5395

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL + 65 * + CAST ( - 83 AS INTEGER )
----
-5395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-472
SELECT - 38 + + + SUM( ALL - + NULLIF ( + 0, + 51 * + CAST( - 41 AS SIGNED ) ) ) AS col0, ( 39 ) + CAST( - 10 + 45 * COUNT( * ) AS SIGNED ) AS col1
----
-38
74

skipif mysql # not compatible
query II rowsort label-472
SELECT - 38 + + + SUM ( ALL - + NULLIF ( + 0, + 51 * + CAST ( - 41 AS INTEGER ) ) ) AS col0, ( 39 ) + CAST ( - 10 + 45 * COUNT ( * ) AS INTEGER ) AS col1
----
-38
74

query I rowsort
SELECT 10 * + + 4
----
40

query II rowsort
SELECT + 47 * + - 78 AS col0, + 60 AS col0
----
-3666
60

query I rowsort
SELECT - 13 * + 23 AS col2
----
-299

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-476
SELECT CAST( NULL AS SIGNED ) + + + CASE - 20 WHEN - CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL ) THEN + ( AVG ( DISTINCT - - 28 ) ) WHEN - - 56 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-476
SELECT CAST ( NULL AS INTEGER ) + + + CASE - 20 WHEN - CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL ) THEN + ( AVG ( DISTINCT - - 28 ) ) WHEN - - 56 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-477
SELECT DISTINCT - COUNT( * ) * 32 DIV 88 + + ( - - 86 ) - + 67
----
19

skipif mysql # not compatible
query I rowsort label-477
SELECT DISTINCT - COUNT ( * ) * 32 / 88 + + ( - - 86 ) - + 67
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT + COUNT( * ) + 92 + - 24 * - ( + 38 ) AS col0
----
1005

skipif mysql # not compatible
query I rowsort label-478
SELECT + COUNT ( * ) + 92 + - 24 * - ( + 38 ) AS col0
----
1005

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT - + 31 * + MIN( 62 ) + - 55 * - - ( - 14 )
----
-1152

skipif mysql # not compatible
query I rowsort label-479
SELECT - + 31 * + MIN ( 62 ) + - 55 * - - ( - 14 )
----
-1152

query I rowsort
SELECT 58 * + - 7 AS col2
----
-406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-481
SELECT - ( SUM( - - CAST( NULL AS SIGNED ) ) ) + + 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-481
SELECT - ( SUM ( - - CAST ( NULL AS INTEGER ) ) ) + + 1 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 10 * 6 * - + 2 AS col2
----
-120

query I rowsort
SELECT ALL - 51 + - 76 * 40
----
-3091

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

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

query I rowsort
SELECT ALL 6 + + + 29 * - 72 * + 43 + 37 + - 47 AS col0
----
-89788

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT ALL 82 + - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL 82 + - COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-487
SELECT 59 + - COUNT( * ) - + COUNT( * ), ( + 79 ) + - 13 * + - 21 * 3 + - - 13 AS col0
----
57
911

skipif mysql # not compatible
query II rowsort label-487
SELECT 59 + - COUNT ( * ) - + COUNT ( * ), ( + 79 ) + - 13 * + - 21 * 3 + - - 13 AS col0
----
57
911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-488
SELECT DISTINCT 88 * - - CASE + CAST( NULL AS SIGNED ) WHEN - 18 * 35 THEN - 65 WHEN - 70 THEN NULL END / + + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-488
SELECT DISTINCT 88 * - - CASE + CAST ( NULL AS INTEGER ) WHEN - 18 * 35 THEN - 65 WHEN - 70 THEN NULL END / + + 34 AS col0
----
NULL

query I rowsort
SELECT ALL 46 + + 13 AS col1
----
59

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

onlyif mysql # DIV for integer division: 
query I rowsort label-491
SELECT 49 DIV + 19 col0
----
2

skipif mysql # not compatible
query I rowsort label-491
SELECT 49 / + 19 col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT DISTINCT 40 * - - COUNT( * ) * + 7
----
280

skipif mysql # not compatible
query I rowsort label-492
SELECT DISTINCT 40 * - - COUNT ( * ) * + 7
----
280

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-493
SELECT ALL ( - 5 ) - + 54 AS col0, + COUNT( * ) + + + 90 + 43 DIV 20 * - COUNT( * ) col0
----
-59
89

skipif mysql # not compatible
query II rowsort label-493
SELECT ALL ( - 5 ) - + 54 AS col0, + COUNT ( * ) + + + 90 + 43 / 20 * - COUNT ( * ) col0
----
-59
89

onlyif mysql # aggregate syntax: 
query II rowsort label-494
SELECT DISTINCT 45 - - NULLIF ( + + 10, - COUNT( + + 12 ) ), - 12 AS col2
----
55
-12

skipif mysql # not compatible
query II rowsort label-494
SELECT DISTINCT 45 - - NULLIF ( + + 10, - COUNT ( + + 12 ) ), - 12 AS col2
----
55
-12

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-496
SELECT SUM( DISTINCT + - 1 ) DIV + 13 * + ( + COUNT( * ) ), + MAX( ALL - - 13 ) AS col1
----
0
13

skipif mysql # not compatible
query II rowsort label-496
SELECT SUM ( DISTINCT + - 1 ) / + 13 * + ( + COUNT ( * ) ), + MAX ( ALL - - 13 ) AS col1
----
0
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-497
SELECT DISTINCT - 15 DIV MIN( ALL - 28 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-497
SELECT DISTINCT - 15 / MIN ( ALL - 28 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT ALL COALESCE ( - - COALESCE ( - COALESCE ( - CASE 1 WHEN + COALESCE ( + 52, 75 - + 41 + + + 27 * ( CASE - 25 WHEN 61 THEN + 33 WHEN - 59 * 55 + + 1 THEN NULL END * + 52 ) ) THEN - 89 + 58 * - 4 WHEN MIN( - 66 ) * COUNT( ALL 32 ) + 97 THEN NULL ELSE NULL END, 0 ), - 70 + ( 17 ), - 47 ), + ( SUM( - 69 ) ), + 20 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-498
SELECT ALL COALESCE ( - - COALESCE ( - COALESCE ( - CASE 1 WHEN + COALESCE ( + 52, 75 - + 41 + + + 27 * ( CASE - 25 WHEN 61 THEN + 33 WHEN - 59 * 55 + + 1 THEN NULL END * + 52 ) ) THEN - 89 + 58 * - 4 WHEN MIN ( - 66 ) * COUNT ( ALL 32 ) + 97 THEN NULL ELSE NULL END, 0 ), - 70 + ( 17 ), - 47 ), + ( SUM ( - 69 ) ), + 20 ) AS col2
----
0

query I rowsort
SELECT ALL - 10 * - + 71 + 99
----
809

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

skipif mysql # not compatible
query I rowsort label-500
SELECT - COUNT ( * ) * - 45 + ( 18 ) AS col0
----
63

query I rowsort
SELECT DISTINCT - 66 * + - 85
----
5610

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT ALL - + MAX( DISTINCT - 4 ) + + NULLIF ( 20, - 70 + + CASE + 98 WHEN + 54 THEN NULL ELSE + + 11 END ) * 94
----
1884

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL - + MAX ( DISTINCT - 4 ) + + NULLIF ( 20, - 70 + + CASE + 98 WHEN + 54 THEN NULL ELSE + + 11 END ) * 94
----
1884

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT COUNT( - 78 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-503
SELECT COUNT ( - 78 ) col0
----
1

query I rowsort
SELECT + 78 * - 38 AS col2
----
-2964

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT MAX( DISTINCT + - 19 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-505
SELECT MAX ( DISTINCT + - 19 ) AS col2
----
-19

query I rowsort
SELECT ALL + + 36 + - 98
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-507
SELECT 77 DIV - 49 - + 49
----
-50

skipif mysql # not compatible
query I rowsort label-507
SELECT 77 / - 49 - + 49
----
-50

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

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

query I rowsort
SELECT 28 * - - 11 + + 66 AS col0
----
374

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT ALL 48 * + COUNT( * ) + + - 6 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL 48 * + COUNT ( * ) + + - 6 AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-511
SELECT ALL - CAST( - 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL - CAST ( - 1 AS INTEGER )
----
1

query I rowsort
SELECT 53 - - 66 AS col2
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-513
SELECT + 49 col2, SUM( ALL + 0 ) * + - 68 * + 25 - + CASE - 29 WHEN - 32 THEN + 86 / - + 41 WHEN + 45 THEN 28 + 51 * - 85 END + ( 78 ) * + 67 + + ( MAX( DISTINCT 4 ) ) * 29 AS col1
----
49
NULL

skipif mysql # not compatible
query II rowsort label-513
SELECT + 49 col2, SUM ( ALL + 0 ) * + - 68 * + 25 - + CASE - 29 WHEN - 32 THEN + 86 / - + 41 WHEN + 45 THEN 28 + 51 * - 85 END + ( 78 ) * + 67 + + ( MAX ( DISTINCT 4 ) ) * 29 AS col1
----
49
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-514
SELECT ALL + 84 * + CASE 7 WHEN - 94 THEN CAST( - 40 AS SIGNED ) * - 8 END + COUNT( * ) + + 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL + 84 * + CASE 7 WHEN - 94 THEN CAST ( - 40 AS INTEGER ) * - 8 END + COUNT ( * ) + + 36 AS col1
----
NULL

query I rowsort
SELECT 39 * + + 54
----
2106

query I rowsort
SELECT 43 * 18 col2
----
774

query I rowsort
SELECT DISTINCT 40 - 47 AS col2
----
-7

query II rowsort
SELECT ALL - 23 AS col1, 19 + + 59
----
-23
78

query I rowsort
SELECT ALL - 92 * + 2
----
-184

query I rowsort
SELECT ALL + ( + 72 ) - + 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT SUM( DISTINCT + 9 )
----
9

skipif mysql # not compatible
query I rowsort label-521
SELECT SUM ( DISTINCT + 9 )
----
9

query I rowsort
SELECT ALL 52 - + 26
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-523
SELECT + 57 * COUNT( * ) DIV - 9 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-523
SELECT + 57 * COUNT ( * ) / - 9 AS col2
----
-6

query II rowsort
SELECT 79 AS col1, - ( + 75 )
----
79
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT - COALESCE ( + 45, 72 + - 61, - - 67 / + + CASE 92 WHEN 53 THEN - 73 WHEN 26 + + 25 THEN + 83 ELSE 13 END ) + + CASE - 53 WHEN + 47 + + 30 THEN 69 + + COUNT( * ) WHEN 63 + - 60 THEN NULL ELSE NULL END * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-525
SELECT - COALESCE ( + 45, 72 + - 61, - - 67 / + + CASE 92 WHEN 53 THEN - 73 WHEN 26 + + 25 THEN + 83 ELSE 13 END ) + + CASE - 53 WHEN + 47 + + 30 THEN 69 + + COUNT ( * ) WHEN 63 + - 60 THEN NULL ELSE NULL END * 41
----
NULL

query I rowsort
SELECT + 21 * - 12 AS col0
----
-252

query I rowsort
SELECT + 27 * + 79
----
2133

query I rowsort
SELECT + 39 + 51 + - 27 col0
----
63

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

skipif mysql # not compatible
query I rowsort label-529
SELECT - SUM ( ALL - ( 92 ) )
----
92

query I rowsort
SELECT + 73 + 93
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT ALL COUNT( * ) * 95 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL COUNT ( * ) * 95 AS col2
----
95

query I rowsort
SELECT + 86 + 73
----
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-533
SELECT + 0 + + COALESCE ( + + 65, + - 71, - 31 + + + 25 DIV 28 + - NULLIF ( - 95, - + CAST( NULL AS SIGNED ) + + 15 ) + - COUNT( * ) DIV + 13 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-533
SELECT + 0 + + COALESCE ( + + 65, + - 71, - 31 + + + 25 / 28 + - NULLIF ( - 95, - + CAST ( NULL AS INTEGER ) + + 15 ) + - COUNT ( * ) / + 13 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT ALL - NULLIF ( + + 80, COUNT( * ) * + - 40 * 65 + - 31 )
----
-80

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL - NULLIF ( + + 80, COUNT ( * ) * + - 40 * 65 + - 31 )
----
-80

query I rowsort
SELECT + + 42 - - - 17
----
25

query I rowsort
SELECT ALL - 78 + + + 88
----
10

query II rowsort
SELECT - + 95 AS col0, ( - + 15 ) * + 68 * + 78 AS col2
----
-95
-79560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-538
SELECT - + 92 + - AVG ( DISTINCT - 10 ) - - CAST( 75 AS SIGNED ) * + COUNT( * ) * 14 - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-538
SELECT - + 92 + - AVG ( DISTINCT - 10 ) - - CAST ( 75 AS INTEGER ) * + COUNT ( * ) * 14 - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - 10, 60 AS col1
----
-10
60

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT - - 18 + - COUNT( * ) + + + 13 - - 56 * + 67 AS col0
----
3782

skipif mysql # not compatible
query I rowsort label-540
SELECT - - 18 + - COUNT ( * ) + + + 13 - - 56 * + 67 AS col0
----
3782

onlyif mysql # aggregate syntax: 
query II rowsort label-541
SELECT + 2 + - 63 col1, 24 + - - 16 + - 10 * - 27 + 0 * - 71 + 65 + - + COUNT( ALL - 53 ) * CASE 52 WHEN 7 THEN NULL WHEN + 19 + - 23 THEN - 93 * ( - COUNT( + 62 ) ) END / + 98
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-541
SELECT + 2 + - 63 col1, 24 + - - 16 + - 10 * - 27 + 0 * - 71 + 65 + - + COUNT ( ALL - 53 ) * CASE 52 WHEN 7 THEN NULL WHEN + 19 + - 23 THEN - 93 * ( - COUNT ( + 62 ) ) END / + 98
----
-61
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT ALL NULLIF ( + SUM( ALL 73 ), + + 55 * 42 - + + 79 + - 57 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL NULLIF ( + SUM ( ALL 73 ), + + 55 * 42 - + + 79 + - 57 ) AS col2
----
73

query II rowsort
SELECT DISTINCT - 36, + 52 * + 7 AS col0
----
-36
364

query I rowsort
SELECT - COALESCE ( + + 51, 31, + - 34 ) + + 0 AS col2
----
-51

query I rowsort
SELECT ALL 86 + 30
----
116

query I rowsort
SELECT DISTINCT + ( NULLIF ( + 63, - 93 ) ) + + 71 col1
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-547
SELECT ALL - 71 + 99 col2, - COUNT( * )
----
28
-1

skipif mysql # not compatible
query II rowsort label-547
SELECT ALL - 71 + 99 col2, - COUNT ( * )
----
28
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-548
SELECT DISTINCT + 40 * - - CAST( + AVG ( + 71 ) AS SIGNED ) * - + CASE - - ( ( 7 ) ) WHEN - 49 * + + 92 + + AVG ( + CASE 24 WHEN + 45 THEN NULL ELSE + 10 END ) THEN NULL ELSE 37 END + CAST( 47 + MIN( ALL 88 ) AS SIGNED ) * 77
----
-94685

skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT + 40 * - - CAST ( + AVG ( + 71 ) AS INTEGER ) * - + CASE - - ( ( 7 ) ) WHEN - 49 * + + 92 + + AVG ( + CASE 24 WHEN + 45 THEN NULL ELSE + 10 END ) THEN NULL ELSE 37 END + CAST ( 47 + MIN ( ALL 88 ) AS INTEGER ) * 77
----
-94685

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT ALL - 56 * - + 78 - COUNT( * )
----
4367

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL - 56 * - + 78 - COUNT ( * )
----
4367

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT - 35 * MAX( - 44 ) AS col0
----
1540

skipif mysql # not compatible
query I rowsort label-550
SELECT - 35 * MAX ( - 44 ) AS col0
----
1540

query I rowsort
SELECT ALL + COALESCE ( 71, + 14, - + 75 ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT + 62 * + 25 + - + COUNT( + 2 ) col0
----
1549

skipif mysql # not compatible
query I rowsort label-552
SELECT + 62 * + 25 + - + COUNT ( + 2 ) col0
----
1549

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-553
SELECT DISTINCT + 23 DIV - - 26, + CASE + 76 WHEN + 96 THEN NULL WHEN 21 THEN COUNT( * ) * - - 57 + + 27 ELSE - - 85 * COUNT( * ) - + 69 END - - 32 AS col2
----
0
48

skipif mysql # not compatible
query II rowsort label-553
SELECT DISTINCT + 23 / - - 26, + CASE + 76 WHEN + 96 THEN NULL WHEN 21 THEN COUNT ( * ) * - - 57 + + 27 ELSE - - 85 * COUNT ( * ) - + 69 END - - 32 AS col2
----
0
48

query I rowsort
SELECT ALL 62 * - + 0 - - + 11 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT + 51 + - 49 - + COUNT( * ) - - 60 * CASE + COUNT( * ) WHEN - 62 / 80 + - 32 THEN NULL WHEN 90 + + 82 THEN - 78 + 72 ELSE + 30 END
----
1801

skipif mysql # not compatible
query I rowsort label-555
SELECT + 51 + - 49 - + COUNT ( * ) - - 60 * CASE + COUNT ( * ) WHEN - 62 / 80 + - 32 THEN NULL WHEN 90 + + 82 THEN - 78 + 72 ELSE + 30 END
----
1801

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT - 24 * - COALESCE ( COUNT( * ), + 87, - 26 ) + + 98 AS col1
----
122

skipif mysql # not compatible
query I rowsort label-556
SELECT - 24 * - COALESCE ( COUNT ( * ), + 87, - 26 ) + + 98 AS col1
----
122

query I rowsort
SELECT COALESCE ( - + 57, - 75 + - - 50 )
----
-57

query I rowsort
SELECT + 4 * - + 79 AS col0
----
-316

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT NULLIF ( COUNT( - 6 ), - 54 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-559
SELECT NULLIF ( COUNT ( - 6 ), - 54 ) AS col1
----
1

query I rowsort
SELECT ALL - 61 * - 69 AS col2
----
4209

query I rowsort
SELECT ALL CASE - 23 WHEN + 44 * + 11 THEN 99 / - 75 END AS col1
----
NULL

query I rowsort
SELECT + - 88 * - 45
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT ALL + COALESCE ( - - 70, 82 ) * 31 + 32 - COUNT( * ) * + - COUNT( * ) AS col0
----
2203

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL + COALESCE ( - - 70, 82 ) * 31 + 32 - COUNT ( * ) * + - COUNT ( * ) AS col0
----
2203

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-564
SELECT ALL + 83 * - 58 * CASE CASE + 16 WHEN - 39 * - 63 THEN + + 31 END WHEN - COUNT( * ) THEN - 69 ELSE 98 + + CAST( - COUNT( * ) AS SIGNED ) END * - 27 + ( - ( 86 ) ) AS col0
----
12607780

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL + 83 * - 58 * CASE CASE + 16 WHEN - 39 * - 63 THEN + + 31 END WHEN - COUNT ( * ) THEN - 69 ELSE 98 + + CAST ( - COUNT ( * ) AS INTEGER ) END * - 27 + ( - ( 86 ) ) AS col0
----
12607780

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT DISTINCT - - 43 * - + 30 + COUNT( * ) * + + CASE + - MAX( 17 ) WHEN ( + + 58 ) + 4 THEN - 49 * + 14 WHEN + 91 - 34 THEN ( 36 ) * 96 WHEN + 85 THEN - 60 * 78 + - 29 WHEN + 77 + + 29 THEN + COUNT( * ) ELSE NULL END + + MIN( - 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT - - 43 * - + 30 + COUNT ( * ) * + + CASE + - MAX ( 17 ) WHEN ( + + 58 ) + 4 THEN - 49 * + 14 WHEN + 91 - 34 THEN ( 36 ) * 96 WHEN + 85 THEN - 60 * 78 + - 29 WHEN + 77 + + 29 THEN + COUNT ( * ) ELSE NULL END + + MIN ( - 38 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-566
SELECT ALL COUNT( * ) + + - 25 + + + CAST( - - 16 AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-566
SELECT ALL COUNT ( * ) + + - 25 + + + CAST ( - - 16 AS INTEGER )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT ALL + - SUM( ALL 88 ) + - ( - - CASE - 71 WHEN - CASE + + 65 WHEN - 51 THEN NULL ELSE 88 END - - 60 THEN NULL WHEN + 32 THEN NULL ELSE + - 87 END )
----
-1

skipif mysql # not compatible
query I rowsort label-567
SELECT ALL + - SUM ( ALL 88 ) + - ( - - CASE - 71 WHEN - CASE + + 65 WHEN - 51 THEN NULL ELSE 88 END - - 60 THEN NULL WHEN + 32 THEN NULL ELSE + - 87 END )
----
-1

query I rowsort
SELECT ALL - 75 + + 64 + 12
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-569
SELECT ( + - ( - 30 ) ) AS col2, + 45 * 68 * - MAX( + 90 )
----
30
-275400

skipif mysql # not compatible
query II rowsort label-569
SELECT ( + - ( - 30 ) ) AS col2, + 45 * 68 * - MAX ( + 90 )
----
30
-275400

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT - - CASE - COUNT( * ) WHEN - ( 3 ) THEN + - COUNT( * ) + - COALESCE ( 63, - + 47 * 11 + + - 90 + SUM( + 1 ) * + 0 ) WHEN 70 + 68 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-570
SELECT - - CASE - COUNT ( * ) WHEN - ( 3 ) THEN + - COUNT ( * ) + - COALESCE ( 63, - + 47 * 11 + + - 90 + SUM ( + 1 ) * + 0 ) WHEN 70 + 68 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-571
SELECT DISTINCT - 73 - - NULLIF ( + + 9, + COUNT( * ) * + 60 + + 97 + + 77 / + CAST( NULL AS SIGNED ) * - + 6 )
----
-64

skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT - 73 - - NULLIF ( + + 9, + COUNT ( * ) * + 60 + + 97 + + 77 / + CAST ( NULL AS INTEGER ) * - + 6 )
----
-64

query II rowsort
SELECT + 45 + - 57 AS col2, - 38 col2
----
-12
-38

query I rowsort
SELECT ALL 20 - - 69 AS col0
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-574
SELECT DISTINCT + MAX( DISTINCT - - 79 ), + 3 * 64 - + - 35 * - COALESCE ( + - 69, - 61 ) AS col1
----
79
2607

skipif mysql # not compatible
query II rowsort label-574
SELECT DISTINCT + MAX ( DISTINCT - - 79 ), + 3 * 64 - + - 35 * - COALESCE ( + - 69, - 61 ) AS col1
----
79
2607

query II rowsort
SELECT + 46 AS col1, ( + ( + ( - ( ( + 36 ) ) ) ) ) AS col0
----
46
-36

query II rowsort
SELECT ALL + 14, - 40 AS col0
----
14
-40

query I rowsort
SELECT ALL + 9 * 25 * + 55 AS col1
----
12375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-578
SELECT + CASE + 19 WHEN + 60 THEN 13 WHEN MAX( DISTINCT + 37 ) THEN + - 72 WHEN + 71 + - + 4 THEN - - ( 9 ) * 57 * + CASE 72 WHEN ( COUNT( DISTINCT 95 ) ) + 64 / 80 THEN NULL WHEN 3 + - 64 / COUNT( * ) THEN + 96 + - SUM( DISTINCT + 99 ) ELSE ( 88 ) END * - 17 ELSE MIN( DISTINCT 22 ) END + - NULLIF ( - 73, + CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-578
SELECT + CASE + 19 WHEN + 60 THEN 13 WHEN MAX ( DISTINCT + 37 ) THEN + - 72 WHEN + 71 + - + 4 THEN - - ( 9 ) * 57 * + CASE 72 WHEN ( COUNT ( DISTINCT 95 ) ) + 64 / 80 THEN NULL WHEN 3 + - 64 / COUNT ( * ) THEN + 96 + - SUM ( DISTINCT + 99 ) ELSE ( 88 ) END * - 17 ELSE MIN ( DISTINCT 22 ) END + - NULLIF ( - 73, + CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) ) AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-579
SELECT ALL + 35 / CAST( NULL AS SIGNED ) - + - MIN( ALL + 25 ) * + + 76 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL + 35 / CAST ( NULL AS INTEGER ) - + - MIN ( ALL + 25 ) * + + 76 / + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 46 * + 18 AS col2
----
828

query I rowsort
SELECT ALL + 37 * + - 80 AS col2
----
-2960

query I rowsort
SELECT 68 * - - 22
----
1496

query II rowsort
SELECT + 14 AS col1, 46
----
14
46

query II rowsort
SELECT ( - + 82 ) * - + 8 col2, 9
----
656
9

onlyif mysql # DIV for integer division: 
query I rowsort label-585
SELECT 83 * 75 * 13 DIV + + 23 col0
----
3518

skipif mysql # not compatible
query I rowsort label-585
SELECT 83 * 75 * 13 / + + 23 col0
----
3518

query I rowsort
SELECT ALL 22 + - 94
----
-72

query II rowsort
SELECT 17, 45 * + ( + + ( - ( 46 ) ) ) * - - ( 23 ) * - 29 AS col2
----
17
1380690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-588
SELECT ALL - 29 + - COUNT( * ) - 91 + 2 - - - SUM( + - 29 ), CAST( NULL AS SIGNED ) AS col2
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-588
SELECT ALL - 29 + - COUNT ( * ) - 91 + 2 - - - SUM ( + - 29 ), CAST ( NULL AS INTEGER ) AS col2
----
-90
NULL

query II rowsort
SELECT 25 AS col1, - COALESCE ( - 37, - 62 ) * + 57
----
25
2109

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT SUM( 15 ) - - 15 * MAX( 82 ) * - + 33 + + 49 AS col2
----
-40526

skipif mysql # not compatible
query I rowsort label-590
SELECT SUM ( 15 ) - - 15 * MAX ( 82 ) * - + 33 + + 49 AS col2
----
-40526

query I rowsort
SELECT ALL - + 29 + - + 47 * - + 76 AS col0
----
3543

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-593
SELECT 91 DIV + 88 col0
----
1

skipif mysql # not compatible
query I rowsort label-593
SELECT 91 / + 88 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT 79 + 68 - COUNT( * )
----
146

skipif mysql # not compatible
query I rowsort label-594
SELECT 79 + 68 - COUNT ( * )
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT DISTINCT - NULLIF ( + - 67, + COUNT( 8 ) / + 97 * + 3 * - 26 ) * 45 - 6
----
3009

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT - NULLIF ( + - 67, + COUNT ( 8 ) / + 97 * + 3 * - 26 ) * 45 - 6
----
3009

query I rowsort
SELECT + 57 + + + 33
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT CASE + - COUNT( * ) WHEN + 56 / + - 61 + 99 + - 67 - - 42 THEN NULL WHEN 54 * - 66 + + COALESCE ( - + 44, 8, - 26 + 85 ) THEN NULL WHEN 9 / 16 THEN - 40 END * - 28 + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-597
SELECT CASE + - COUNT ( * ) WHEN + 56 / + - 61 + 99 + - 67 - - 42 THEN NULL WHEN 54 * - 66 + + COALESCE ( - + 44, 8, - 26 + 85 ) THEN NULL WHEN 9 / 16 THEN - 40 END * - 28 + 84
----
NULL

query I rowsort
SELECT ALL - 84 + - - 43
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-599
SELECT ( - + 22 ) + - 74 - 69 / + NULLIF ( - 68, - - 23 ) / + + 4 * CASE - COALESCE ( - 36, + - 78 / - 75 * + 41 ) WHEN + 45 * 15 THEN MIN( ALL - 57 ) * CAST( - 13 AS SIGNED ) ELSE NULL END - CAST( NULL AS SIGNED ) + - CASE - COUNT( * ) WHEN 52 THEN 40 WHEN + COUNT( * ) THEN NULL WHEN 92 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-599
SELECT ( - + 22 ) + - 74 - 69 / + NULLIF ( - 68, - - 23 ) / + + 4 * CASE - COALESCE ( - 36, + - 78 / - 75 * + 41 ) WHEN + 45 * 15 THEN MIN ( ALL - 57 ) * CAST ( - 13 AS INTEGER ) ELSE NULL END - CAST ( NULL AS INTEGER ) + - CASE - COUNT ( * ) WHEN 52 THEN 40 WHEN + COUNT ( * ) THEN NULL WHEN 92 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-600
SELECT ALL 24 + + + MAX( - 5 ) AS col2, 58 + + 21 * 3 AS col0
----
19
121

skipif mysql # not compatible
query II rowsort label-600
SELECT ALL 24 + + + MAX ( - 5 ) AS col2, 58 + + 21 * 3 AS col0
----
19
121

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT - NULLIF ( - 65, - 35 ) + COUNT( * ) col0
----
66

skipif mysql # not compatible
query I rowsort label-601
SELECT - NULLIF ( - 65, - 35 ) + COUNT ( * ) col0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-602
SELECT 24 AS col1, + 9 * + MAX( ALL - 42 )
----
24
-378

skipif mysql # not compatible
query II rowsort label-602
SELECT 24 AS col1, + 9 * + MAX ( ALL - 42 )
----
24
-378

query I rowsort
SELECT 40 + + 32
----
72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-605
SELECT 86 + + - 7 + + SUM( ALL 51 ) * + COUNT( * ) + 24 + - - 6 - + 27 / + 64 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-605
SELECT 86 + + - 7 + + SUM ( ALL 51 ) * + COUNT ( * ) + 24 + - - 6 - + 27 / + 64 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-606
SELECT 67 col1, + COALESCE ( + - 17, - 30 DIV + 31, - 87 - - - COALESCE ( + CAST( + 86 AS SIGNED ), 71 + - - 13 + + 36 ) ) AS col0
----
67
-17

skipif mysql # not compatible
query II rowsort label-606
SELECT 67 col1, + COALESCE ( + - 17, - 30 / + 31, - 87 - - - COALESCE ( + CAST ( + 86 AS INTEGER ), 71 + - - 13 + + 36 ) ) AS col0
----
67
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-607
SELECT 19 + + 31 + 77 / 44 + + CAST( NULL AS SIGNED ) / + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-607
SELECT 19 + + 31 + 77 / 44 + + CAST ( NULL AS INTEGER ) / + 49
----
NULL

query I rowsort
SELECT + 57 * + 57 * - 65 AS col2
----
-211185

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT 52 + - + 38 * - - 31 + + - COUNT( * ) + 72 - 15 + + 59 * + + 86
----
4004

skipif mysql # not compatible
query I rowsort label-609
SELECT 52 + - + 38 * - - 31 + + - COUNT ( * ) + 72 - 15 + + 59 * + + 86
----
4004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-610
SELECT ALL - CAST( NULL AS DECIMAL ) - CASE - + 16 WHEN - AVG ( 29 ) - - 29 + - ( - COUNT( * ) ) * + - 75 THEN + CAST( + 66 AS SIGNED ) END - + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL - CAST ( NULL AS REAL ) - CASE - + 16 WHEN - AVG ( 29 ) - - 29 + - ( - COUNT ( * ) ) * + - 75 THEN + CAST ( + 66 AS INTEGER ) END - + 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT 68 * + NULLIF ( + + 82, COUNT( * ) * 32 )
----
5576

skipif mysql # not compatible
query I rowsort label-611
SELECT 68 * + NULLIF ( + + 82, COUNT ( * ) * 32 )
----
5576

onlyif mysql # DIV for integer division: 
query I rowsort label-612
SELECT ALL 88 * 58 DIV + - 39 col2
----
-130

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL 88 * 58 / + - 39 col2
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT COUNT( * ) * 88 * + + 19 + - 98
----
1574

skipif mysql # not compatible
query I rowsort label-613
SELECT COUNT ( * ) * 88 * + + 19 + - 98
----
1574

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-614
SELECT 58 DIV + MIN( DISTINCT + 81 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-614
SELECT 58 / + MIN ( DISTINCT + 81 ) AS col2
----
0

query I rowsort
SELECT 93 * - + 90 * 61 AS col0
----
-510570

onlyif mysql # DIV for integer division: 
query I rowsort label-616
SELECT + 41 DIV 84 + - ( + + 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-616
SELECT + 41 / 84 + - ( + + 38 ) AS col1
----
-38

query I rowsort
SELECT 3 * + ( - 28 )
----
-84

query I rowsort
SELECT ALL 34 + + + 81
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT ALL + 98 + - 42 * - COUNT( * )
----
140

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL + 98 + - 42 * - COUNT ( * )
----
140

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

skipif mysql # not compatible
query I rowsort label-620
SELECT DISTINCT COUNT ( * ) + 15 AS col1
----
16

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

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

query I rowsort
SELECT 93 * ( + - 65 )
----
-6045

query I rowsort
SELECT 88 * + + 71 + 41
----
6289

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-625
SELECT DISTINCT - - ( + - 90 ) + + CAST( + ( 13 ) AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-625
SELECT DISTINCT - - ( + - 90 ) + + CAST ( + ( 13 ) AS INTEGER )
----
-77

query I rowsort
SELECT + 78 * + 46 AS col2
----
3588

query I rowsort
SELECT DISTINCT - - 89 * + 19 * - 45 + + 51
----
-76044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-628
SELECT DISTINCT - COALESCE ( - NULLIF ( + 65, + + NULLIF ( + + 68, - + 99 * + COUNT( * ) * ( - - CAST( 3 AS SIGNED ) ) * - 48 + 40 ) * - 39 ), - 35 + - 58, 92 + COUNT( * ) * 48 ) - + NULLIF ( - 41 + - 58 * 66, 25 + - ( + 2 ) * + 96 ) * + 32 AS col2
----
123873

skipif mysql # not compatible
query I rowsort label-628
SELECT DISTINCT - COALESCE ( - NULLIF ( + 65, + + NULLIF ( + + 68, - + 99 * + COUNT ( * ) * ( - - CAST ( 3 AS INTEGER ) ) * - 48 + 40 ) * - 39 ), - 35 + - 58, 92 + COUNT ( * ) * 48 ) - + NULLIF ( - 41 + - 58 * 66, 25 + - ( + 2 ) * + 96 ) * + 32 AS col2
----
123873

query I rowsort
SELECT - 96 * + + NULLIF ( + + 34, - 19 ) AS col0
----
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT ALL - + COALESCE ( - 93, + ( + ( - 52 ) ) * 76 ) - + MAX( + 72 )
----
21

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL - + COALESCE ( - 93, + ( + ( - 52 ) ) * 76 ) - + MAX ( + 72 )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-631
SELECT CAST( + - NULLIF ( - - 66, COUNT( * ) + - + ( + 96 ) * - - 63 * 58 * + 64 + + COUNT( * ) * - 78 - + 9 + 92 + CAST( NULL AS SIGNED ) * 76 * 6 ) AS SIGNED ) * - 76 col0
----
5016

skipif mysql # not compatible
query I rowsort label-631
SELECT CAST ( + - NULLIF ( - - 66, COUNT ( * ) + - + ( + 96 ) * - - 63 * 58 * + 64 + + COUNT ( * ) * - 78 - + 9 + 92 + CAST ( NULL AS INTEGER ) * 76 * 6 ) AS INTEGER ) * - 76 col0
----
5016

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT COUNT( * ) - + 85 * - + ( 12 ) * 30 + + - 99 AS col0
----
30502

skipif mysql # not compatible
query I rowsort label-632
SELECT COUNT ( * ) - + 85 * - + ( 12 ) * 30 + + - 99 AS col0
----
30502

query I rowsort
SELECT NULLIF ( + 83, 75 * - 43 ) * + 18 AS col0
----
1494

onlyif mysql # DIV for integer division: 
query I rowsort label-634
SELECT 32 DIV ( 11 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-634
SELECT 32 / ( 11 ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-635
SELECT DISTINCT - + CASE 68 WHEN - 33 * - COALESCE ( - CAST( + + 88 AS SIGNED ), - - MIN( ALL 20 ) ) THEN - 10 WHEN 69 * + 45 THEN + 34 END * 16 * - 16 / - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT - + CASE 68 WHEN - 33 * - COALESCE ( - CAST ( + + 88 AS INTEGER ), - - MIN ( ALL 20 ) ) THEN - 10 WHEN 69 * + 45 THEN + 34 END * 16 * - 16 / - 77 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 64 * + - 34 col1
----
-2176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-637
SELECT - CAST( + COALESCE ( COALESCE ( + 89, 2 ), + 44 * + 74 ) AS SIGNED ) - + 71 * 32 + + 90 * - + 91 - - 48 + 22 - - NULLIF ( - COUNT( * ), 87 ) DIV 27
----
-10481

skipif mysql # not compatible
query I rowsort label-637
SELECT - CAST ( + COALESCE ( COALESCE ( + 89, 2 ), + 44 * + 74 ) AS INTEGER ) - + 71 * 32 + + 90 * - + 91 - - 48 + 22 - - NULLIF ( - COUNT ( * ), 87 ) / 27
----
-10481

query I rowsort
SELECT - 70 * - 18 AS col1
----
1260

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-639
SELECT ALL 34 + + ( CAST( NULL AS DECIMAL ) ), - 7 AS col0
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-639
SELECT ALL 34 + + ( CAST ( NULL AS REAL ) ), - 7 AS col0
----
NULL
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-640
SELECT ALL 93 + - CAST( NULL AS SIGNED ) + 54 * 88 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL 93 + - CAST ( NULL AS INTEGER ) + 54 * 88 col0
----
NULL

query II rowsort
SELECT + CASE + 17 WHEN + - 65 THEN NULL WHEN - 49 THEN NULL ELSE - + 93 + + + 35 END AS col2, AVG ( DISTINCT 48 ) + - + 55 + CASE - 12 WHEN - - 94 THEN + 66 END / - 48 + - 86
----
-58
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-642
SELECT ( + + ( - ( COALESCE ( - 52, 47 DIV + - 14, + COUNT( * ) ) ) ) ) * + 24 + - + 83
----
1165

skipif mysql # not compatible
query I rowsort label-642
SELECT ( + + ( - ( COALESCE ( - 52, 47 / + - 14, + COUNT ( * ) ) ) ) ) * + 24 + - + 83
----
1165

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT ALL 87 * - + ( SUM( DISTINCT + - 41 ) ) col0
----
3567

skipif mysql # not compatible
query I rowsort label-643
SELECT ALL 87 * - + ( SUM ( DISTINCT + - 41 ) ) col0
----
3567

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT ALL 55 * 25 + + 63 + - 42 - - + COALESCE ( + COUNT( * ), ( COUNT( * ) ), + 73 + 19 - 98 )
----
1397

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL 55 * 25 + + 63 + - 42 - - + COALESCE ( + COUNT ( * ), ( COUNT ( * ) ), + 73 + 19 - 98 )
----
1397

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT ALL + 0 * + SUM( + + NULLIF ( - + NULLIF ( - - 11, 98 * - 5 * + + 43 + - - 15 ), - 54 + - + 0 ) ) * + 69 * - 34 + + - 45 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL + 0 * + SUM ( + + NULLIF ( - + NULLIF ( - - 11, 98 * - 5 * + + 43 + - - 15 ), - 54 + - + 0 ) ) * + 69 * - 34 + + - 45 AS col0
----
-45

query I rowsort
SELECT DISTINCT 99 * - 6 + - 6
----
-600

query I rowsort
SELECT NULLIF ( + 26, 90 )
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-648
SELECT + 62 DIV 56 * + + 99 DIV ( + 29 )
----
3

skipif mysql # not compatible
query I rowsort label-648
SELECT + 62 / 56 * + + 99 / ( + 29 )
----
3

query I rowsort
SELECT + 21 + + - 78
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT + + 40 * - 31 + 31 * - COUNT( * ) AS col0
----
-1271

skipif mysql # not compatible
query I rowsort label-650
SELECT + + 40 * - 31 + 31 * - COUNT ( * ) AS col0
----
-1271

query II rowsort
SELECT 5 col1, 88 AS col2
----
5
88

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

skipif mysql # not compatible
query I rowsort label-652
SELECT ALL 56 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-653
SELECT + NULLIF ( + 29, + + CASE - AVG ( DISTINCT ( - 44 ) ) WHEN + - 38 * 37 + 87 * - 77 DIV - - 23 * - 17 THEN COALESCE ( - 48, - + 46 ) ELSE - 43 DIV + 31 + 75 END * 53 ) DIV 19 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-653
SELECT + NULLIF ( + 29, + + CASE - AVG ( DISTINCT ( - 44 ) ) WHEN + - 38 * 37 + 87 * - 77 / - - 23 * - 17 THEN COALESCE ( - 48, - + 46 ) ELSE - 43 / + 31 + 75 END * 53 ) / 19 AS col1
----
1

query II rowsort
SELECT + - 21, 34 AS col1
----
-21
34

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT ALL - - COUNT( * ) * - 4 - 23
----
-27

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL - - COUNT ( * ) * - 4 - 23
----
-27

query I rowsort
SELECT ALL 83 * - - 38
----
3154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-657
SELECT ALL + 68 / - ( + CASE + - 32 WHEN + - CAST( NULL AS SIGNED ) THEN SUM( + 46 ) WHEN + NULLIF ( - - 70, 74 ) + - ( 8 ) THEN NULL END ) * + - 11 AS col2, 89 + + CAST( NULL AS DECIMAL ) * 43
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-657
SELECT ALL + 68 / - ( + CASE + - 32 WHEN + - CAST ( NULL AS INTEGER ) THEN SUM ( + 46 ) WHEN + NULLIF ( - - 70, 74 ) + - ( 8 ) THEN NULL END ) * + - 11 AS col2, 89 + + CAST ( NULL AS REAL ) * 43
----
NULL
NULL

query I rowsort
SELECT ALL - + 87 * 5
----
-435

query I rowsort
SELECT + - 13 + + 0 * - + 42
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT DISTINCT + - COUNT( ALL 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-660
SELECT DISTINCT + - COUNT ( ALL 51 )
----
-1

query I rowsort
SELECT ALL 30 * - 89 AS col1
----
-2670

query II rowsort
SELECT - NULLIF ( - + 16, + 88 ) * + 87 + 35 * - 64 * 44 + 17 col0, 61 AS col2
----
-97151
61

query I rowsort
SELECT - - 55 * + - 80
----
-4400

query I rowsort
SELECT - 83 + 38 + + 46 + - - 99 AS col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT ALL + MIN( ALL - 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL + MIN ( ALL - 71 ) AS col0
----
-71

query I rowsort
SELECT ALL - 78 * - ( 22 )
----
1716

query II rowsort
SELECT 90 AS col0, + 82
----
90
82

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

skipif mysql # not compatible
query I rowsort label-668
SELECT - CAST ( NULL AS REAL ) + + 43 * - 45
----
NULL

query I rowsort
SELECT DISTINCT - 88 * - 43 * 98 AS col0
----
370832

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

skipif mysql # not compatible
query I rowsort label-670
SELECT + COUNT ( * ) / + - 3 * 82 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT - NULLIF ( NULLIF ( - ( - ( - SUM( DISTINCT ( 72 ) ) ) ), + 49 ), 78 * 94 + + COUNT( * ) * 60 / - 71 * + 87 * + 39 ) + + + 2 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-671
SELECT - NULLIF ( NULLIF ( - ( - ( - SUM ( DISTINCT ( 72 ) ) ) ), + 49 ), 78 * 94 + + COUNT ( * ) * 60 / - 71 * + 87 * + 39 ) + + + 2 AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-672
SELECT ALL - COUNT( * ) + - CAST( NULL AS SIGNED ), 33 * + CAST( - 13 AS SIGNED ) * + + CAST( NULL AS SIGNED ) / + + 12 * - 39
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-672
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ), 33 * + CAST ( - 13 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) / + + 12 * - 39
----
NULL
NULL

query II rowsort
SELECT - 7 col0, 75
----
-7
75

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

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

query I rowsort
SELECT ALL - 16 + + - 19
----
-35

query I rowsort
SELECT ALL NULLIF ( + 62, 29 ) + NULLIF ( 27, + 14 )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-677
SELECT 41 AS col2, MAX( - 32 )
----
41
-32

skipif mysql # not compatible
query II rowsort label-677
SELECT 41 AS col2, MAX ( - 32 )
----
41
-32

query I rowsort
SELECT ALL + ( - + 52 ) AS col2
----
-52

query I rowsort
SELECT - 21 * + 25
----
-525

onlyif mysql # aggregate syntax: 
query II rowsort label-680
SELECT + 30 AS col0, - 19 * - - COUNT( + 48 ) col1
----
30
-19

skipif mysql # not compatible
query II rowsort label-680
SELECT + 30 AS col0, - 19 * - - COUNT ( + 48 ) col1
----
30
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT + NULLIF ( - 61, - + COUNT( * ) ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-681
SELECT + NULLIF ( - 61, - + COUNT ( * ) ) AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-682
SELECT ALL + MIN( ALL + + CAST( 91 AS SIGNED ) )
----
91

skipif mysql # not compatible
query I rowsort label-682
SELECT ALL + MIN ( ALL + + CAST ( 91 AS INTEGER ) )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT - 27 + + 70 * + COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-683
SELECT - 27 + + 70 * + COUNT ( * ) AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-684
SELECT - 15 * + - CAST( + 1 AS SIGNED ) - - 35 AS col0
----
50

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

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

query II rowsort
SELECT ALL + + 68, 92 AS col0
----
68
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-687
SELECT DISTINCT CASE 34 WHEN - 80 * - 83 THEN - 93 - CAST( + 19 AS DECIMAL ) WHEN 2 + - 12 THEN + 27 END * - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-687
SELECT DISTINCT CASE 34 WHEN - 80 * - 83 THEN - 93 - CAST ( + 19 AS REAL ) WHEN 2 + - 12 THEN + 27 END * - 3 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-688
SELECT + + COUNT( * ) * - 56 + ( COUNT( DISTINCT 64 ) ) DIV + CAST( + 39 AS SIGNED ) * - + 47 * + 33 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-688
SELECT + + COUNT ( * ) * - 56 + ( COUNT ( DISTINCT 64 ) ) / + CAST ( + 39 AS INTEGER ) * - + 47 * + 33 AS col1
----
-56

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

skipif mysql # not compatible
query I rowsort label-689
SELECT - 39 / 26 + COUNT ( * ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-690
SELECT DISTINCT + 73 DIV 45 - - 59 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-690
SELECT DISTINCT + 73 / 45 - - 59 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT + MAX( ALL + 48 ) + + 31 * + 71 AS col0
----
2249

skipif mysql # not compatible
query I rowsort label-691
SELECT + MAX ( ALL + 48 ) + + 31 * + 71 AS col0
----
2249

query I rowsort
SELECT - 17 * + 37 AS col2
----
-629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-693
SELECT + + COUNT( * ) * - MAX( DISTINCT + + CAST( - - 66 AS SIGNED ) ) - - 48 * - COUNT( * ) + + NULLIF ( - 99, - 82 * - 87 ) + 69 * + - 17 * + + 25 * 10 + 41 + + 8 AS col2
----
-293414

skipif mysql # not compatible
query I rowsort label-693
SELECT + + COUNT ( * ) * - MAX ( DISTINCT + + CAST ( - - 66 AS INTEGER ) ) - - 48 * - COUNT ( * ) + + NULLIF ( - 99, - 82 * - 87 ) + 69 * + - 17 * + + 25 * 10 + 41 + + 8 AS col2
----
-293414

onlyif mysql # aggregate syntax: 
query II rowsort label-694
SELECT 56 AS col2, + COUNT( * ) + - - 12
----
56
13

skipif mysql # not compatible
query II rowsort label-694
SELECT 56 AS col2, + COUNT ( * ) + - - 12
----
56
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-695
SELECT 70 * - + 98 * 31 + + + CAST( NULL AS SIGNED ) + - 88 - + ( - 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT 70 * - + 98 * 31 + + + CAST ( NULL AS INTEGER ) + - 88 - + ( - 5 )
----
NULL

query II rowsort
SELECT DISTINCT + 12 AS col2, 23
----
12
23

query II rowsort
SELECT DISTINCT + - 19 AS col2, - 61 col1
----
-19
-61

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

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

query I rowsort
SELECT ALL - 21 + + 29 AS col1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-700
SELECT DISTINCT 41 DIV - ( - 49 )
----
0

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT 41 / - ( - 49 )
----
0

query I rowsort
SELECT ALL + + 80 + + 11 * 56
----
696

query II rowsort
SELECT - - 94 AS col0, - 16 * - - 85
----
94
-1360

query I rowsort
SELECT 52 * ( - + ( - + 3 ) ) col2
----
156

query I rowsort
SELECT DISTINCT 59 + - 99 AS col1
----
-40

query I rowsort
SELECT ( + - 73 ) - - + 89 * - 68
----
-6125

query I rowsort
SELECT 6 * - 85 AS col0
----
-510

onlyif mysql # aggregate syntax: 
query II rowsort label-707
SELECT DISTINCT 23 + - 30 + COUNT( * ) col2, - 47
----
-6
-47

skipif mysql # not compatible
query II rowsort label-707
SELECT DISTINCT 23 + - 30 + COUNT ( * ) col2, - 47
----
-6
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-708
SELECT DISTINCT - 2 + - - 79 + - - 88 + - 3 + - ( CAST( + - COUNT( * ) AS SIGNED ) ) * - 44 * + 71 AS col2
----
-2962

skipif mysql # not compatible
query I rowsort label-708
SELECT DISTINCT - 2 + - - 79 + - - 88 + - 3 + - ( CAST ( + - COUNT ( * ) AS INTEGER ) ) * - 44 * + 71 AS col2
----
-2962

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-709
SELECT 3 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-709
SELECT 3 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 12 - 62 + + 47 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-711
SELECT 18 + + 37 AS col0, SUM( DISTINCT - - 12 ) col2
----
55
12

skipif mysql # not compatible
query II rowsort label-711
SELECT 18 + + 37 AS col0, SUM ( DISTINCT - - 12 ) col2
----
55
12

onlyif mysql # DIV for integer division: 
query I rowsort label-712
SELECT 22 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-712
SELECT 22 / 62
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-713
SELECT ( COUNT( * ) ) * 32 * CAST( + + COUNT( * ) AS SIGNED ) - 33 + - MIN( ALL 81 ) * 17 DIV CAST( + + 46 AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-713
SELECT ( COUNT ( * ) ) * 32 * CAST ( + + COUNT ( * ) AS INTEGER ) - 33 + - MIN ( ALL 81 ) * 17 / CAST ( + + 46 AS INTEGER )
----
-30

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-715
SELECT 12 + COUNT( * ) DIV - COUNT( * ) + - + 89 - + 96 * - - 47 AS col0
----
-4590

skipif mysql # not compatible
query I rowsort label-715
SELECT 12 + COUNT ( * ) / - COUNT ( * ) + - + 89 - + 96 * - - 47 AS col0
----
-4590

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-717
SELECT ALL + CASE - 23 WHEN + 92 THEN + 91 * 11 * 32 + + - ( - - 10 ) WHEN - 30 THEN - COALESCE ( 57, AVG ( ALL - 87 ) ) * + + 85 * + COUNT( * ) + - + COUNT( * ) + + 2 - + 36 END * ( - COUNT( * ) * CASE - 39 * - 94 WHEN - 56 + CASE - 60 WHEN ( 22 ) + 55 THEN NULL ELSE - CAST( 34 AS SIGNED ) END THEN - 82 + + 10 * + CASE + ( COUNT( 0 ) ) WHEN - 23 + - COUNT( * ) THEN + 77 ELSE NULL END WHEN 90 / MIN( - 73 ) THEN NULL ELSE 9 * + 95 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL + CASE - 23 WHEN + 92 THEN + 91 * 11 * 32 + + - ( - - 10 ) WHEN - 30 THEN - COALESCE ( 57, AVG ( ALL - 87 ) ) * + + 85 * + COUNT ( * ) + - + COUNT ( * ) + + 2 - + 36 END * ( - COUNT ( * ) * CASE - 39 * - 94 WHEN - 56 + CASE - 60 WHEN ( 22 ) + 55 THEN NULL ELSE - CAST ( 34 AS INTEGER ) END THEN - 82 + + 10 * + CASE + ( COUNT ( 0 ) ) WHEN - 23 + - COUNT ( * ) THEN + 77 ELSE NULL END WHEN 90 / MIN ( - 73 ) THEN NULL ELSE 9 * + 95 END ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 10 * - + 60 * 90
----
54000

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

skipif mysql # not compatible
query I rowsort label-719
SELECT + - MIN ( + 8 )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-720
SELECT 30 + 31 AS col2, ( + 95 ) + - 8 + + COUNT( + 69 ) AS col1
----
61
88

skipif mysql # not compatible
query II rowsort label-720
SELECT 30 + 31 AS col2, ( + 95 ) + - 8 + + COUNT ( + 69 ) AS col1
----
61
88

query I rowsort
SELECT - 15 * COALESCE ( + 72, 49 * + + 21, - 1 )
----
-1080

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT + 85 * MIN( ALL - 54 ) * 13 AS col2
----
-59670

skipif mysql # not compatible
query I rowsort label-722
SELECT + 85 * MIN ( ALL - 54 ) * 13 AS col2
----
-59670

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT - - 39 * 13 - - COUNT( + 98 )
----
508

skipif mysql # not compatible
query I rowsort label-723
SELECT - - 39 * 13 - - COUNT ( + 98 )
----
508

query I rowsort
SELECT DISTINCT + + ( + 27 ) * + - ( - 63 ) AS col1
----
1701

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-725
SELECT + CASE - - 48 WHEN + - 20 THEN NULL ELSE CAST( + 3 AS SIGNED ) END * 15 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-725
SELECT + CASE - - 48 WHEN + - 20 THEN NULL ELSE CAST ( + 3 AS INTEGER ) END * 15 AS col2
----
45

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

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

query I rowsort
SELECT - 74 - 45
----
-119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-728
SELECT ALL + - 61 * - - NULLIF ( + - 20, - 3 * + 46 + + - COUNT( * ) - + 59 - - - COUNT( + 1 ) * + SUM( + 98 ) + - 63 * - - 52 * - CASE 69 WHEN - 11 THEN - 2 WHEN CASE - 61 WHEN - NULLIF ( + 32, 29 ) - MIN( ALL 17 + ( 30 ) ) THEN NULL WHEN 58 THEN NULL ELSE 93 END THEN 26 + COUNT( * ) * COUNT( * ) WHEN + 16 THEN + 60 * + 87 + COUNT( * ) ELSE NULL END + - 13 * 72 - 72 ) DIV 2 AS col2
----
610

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL + - 61 * - - NULLIF ( + - 20, - 3 * + 46 + + - COUNT ( * ) - + 59 - - - COUNT ( + 1 ) * + SUM ( + 98 ) + - 63 * - - 52 * - CASE 69 WHEN - 11 THEN - 2 WHEN CASE - 61 WHEN - NULLIF ( + 32, 29 ) - MIN ( ALL 17 + ( 30 ) ) THEN NULL WHEN 58 THEN NULL ELSE 93 END THEN 26 + COUNT ( * ) * COUNT ( * ) WHEN + 16 THEN + 60 * + 87 + COUNT ( * ) ELSE NULL END + - 13 * 72 - 72 ) / 2 AS col2
----
610

query II rowsort
SELECT 80 AS col2, 66
----
80
66

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT CASE - + COUNT( * ) WHEN - 65 * - 30 THEN - 32 / - 34 WHEN + + 66 + 49 * + 11 THEN 54 + CASE - CASE + + COUNT( * ) WHEN + 76 * + 45 THEN 16 WHEN + CASE - 41 WHEN + 99 * - 68 THEN MAX( ALL ( + 42 ) ) END THEN 94 + - 26 * - COUNT( * ) END WHEN - 80 * + 64 + 48 THEN NULL WHEN 60 + + 43 THEN - ( + 2 ) * 28 END ELSE NULL END + CASE + 28 WHEN - NULLIF ( - 62, 53 * - 29 ) THEN NULL WHEN + ( - 76 ) THEN 98 + + 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-730
SELECT CASE - + COUNT ( * ) WHEN - 65 * - 30 THEN - 32 / - 34 WHEN + + 66 + 49 * + 11 THEN 54 + CASE - CASE + + COUNT ( * ) WHEN + 76 * + 45 THEN 16 WHEN + CASE - 41 WHEN + 99 * - 68 THEN MAX ( ALL ( + 42 ) ) END THEN 94 + - 26 * - COUNT ( * ) END WHEN - 80 * + 64 + 48 THEN NULL WHEN 60 + + 43 THEN - ( + 2 ) * 28 END ELSE NULL END + CASE + 28 WHEN - NULLIF ( - 62, 53 * - 29 ) THEN NULL WHEN + ( - 76 ) THEN 98 + + 40 END
----
NULL

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

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

query I rowsort
SELECT ALL + 15 + - 24 col0
----
-9

query II rowsort
SELECT - 52 AS col0, 12 * + 90
----
-52
1080

query I rowsort
SELECT ALL 64 + + 12 col1
----
76

query I rowsort
SELECT 3 * + + 75 AS col2
----
225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-736
SELECT ALL 75 DIV - COUNT( * ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL 75 / - COUNT ( * ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT NULLIF ( + + MAX( + - 11 ), NULLIF ( + 80, - 87 ) - 20 ) + - + 56 - - 22
----
-45

skipif mysql # not compatible
query I rowsort label-737
SELECT NULLIF ( + + MAX ( + - 11 ), NULLIF ( + 80, - 87 ) - 20 ) + - + 56 - - 22
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT DISTINCT SUM( ALL ( - 75 ) ) * - CASE - 99 WHEN 43 THEN - MIN( 38 ) WHEN + - COUNT( * ) THEN NULL WHEN - + 92 THEN NULL END + + + 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT SUM ( ALL ( - 75 ) ) * - CASE - 99 WHEN 43 THEN - MIN ( 38 ) WHEN + - COUNT ( * ) THEN NULL WHEN - + 92 THEN NULL END + + + 95 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-739
SELECT ( - - MIN( - 64 ) ) + - + COUNT( * ) AS col0, + 11 DIV + - 20
----
-65
0

skipif mysql # not compatible
query II rowsort label-739
SELECT ( - - MIN ( - 64 ) ) + - + COUNT ( * ) AS col0, + 11 / + - 20
----
-65
0

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT ALL COALESCE ( - ( - 96 ), - 60 + COUNT( - 94 ) ) - COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL COALESCE ( - ( - 96 ), - 60 + COUNT ( - 94 ) ) - COUNT ( * ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT NULLIF ( + 95, + 40 * - ( 90 ) + + MIN( DISTINCT + 87 ) ) * - COUNT( * ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-741
SELECT NULLIF ( + 95, + 40 * - ( 90 ) + + MIN ( DISTINCT + 87 ) ) * - COUNT ( * ) AS col1
----
-95

query I rowsort
SELECT 38 * 29
----
1102

query II rowsort
SELECT ALL 28 col0, - 25 + - 87 AS col0
----
28
-112

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-745
SELECT CAST( NULL AS DECIMAL ) * - 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-745
SELECT CAST ( NULL AS REAL ) * - 28 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-746
SELECT DISTINCT 87 AS col2, COUNT( * ) AS col1
----
87
1

skipif mysql # not compatible
query II rowsort label-746
SELECT DISTINCT 87 AS col2, COUNT ( * ) AS col1
----
87
1

onlyif mysql # aggregate syntax: 
query II rowsort label-747
SELECT 36 AS col0, - 12 - + COUNT( * )
----
36
-13

skipif mysql # not compatible
query II rowsort label-747
SELECT 36 AS col0, - 12 - + COUNT ( * )
----
36
-13

query I rowsort
SELECT + - ( 50 ) * - + 12 + - + 39
----
561

onlyif mysql # DIV for integer division: 
query I rowsort label-749
SELECT DISTINCT + 89 DIV + - 98 col1
----
0

skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT + 89 / + - 98 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-750
SELECT 67, COUNT( * ) + + - 26 AS col0
----
67
-25

skipif mysql # not compatible
query II rowsort label-750
SELECT 67, COUNT ( * ) + + - 26 AS col0
----
67
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT CASE - NULLIF ( - - 26, + + 23 ) WHEN + ( - 89 ) * + 11 - + - COUNT( DISTINCT - 70 ) THEN COUNT( * ) WHEN + COUNT( * ) THEN NULL ELSE + 84 END
----
84

skipif mysql # not compatible
query I rowsort label-751
SELECT CASE - NULLIF ( - - 26, + + 23 ) WHEN + ( - 89 ) * + 11 - + - COUNT ( DISTINCT - 70 ) THEN COUNT ( * ) WHEN + COUNT ( * ) THEN NULL ELSE + 84 END
----
84

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-753
SELECT 62 + + 28 + - + 99 + + + CAST( NULLIF ( 86, - COUNT( * ) ) AS SIGNED ) * - - 73 AS col2
----
6269

skipif mysql # not compatible
query I rowsort label-753
SELECT 62 + + 28 + - + 99 + + + CAST ( NULLIF ( 86, - COUNT ( * ) ) AS INTEGER ) * - - 73 AS col2
----
6269

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT DISTINCT 78 / + CASE - - COALESCE ( 93, - 55, - SUM( - 84 ) ) WHEN - 77 THEN NULL WHEN + NULLIF ( CASE 27 WHEN - COUNT( * ) * + 76 THEN NULL WHEN - 26 / + 59 * - 55 THEN - - 67 + 79 WHEN 62 * 37 THEN 13 ELSE ( 78 ) * 27 END, 98 / + 29 ) * 35 THEN + 5 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-754
SELECT DISTINCT 78 / + CASE - - COALESCE ( 93, - 55, - SUM ( - 84 ) ) WHEN - 77 THEN NULL WHEN + NULLIF ( CASE 27 WHEN - COUNT ( * ) * + 76 THEN NULL WHEN - 26 / + 59 * - 55 THEN - - 67 + 79 WHEN 62 * 37 THEN 13 ELSE ( 78 ) * 27 END, 98 / + 29 ) * 35 THEN + 5 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + + 47 * - 38 + - + 34 + 28 * + 61 AS col0
----
-112

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-757
SELECT COUNT( ALL + 49 ) * - 1 + - + 1 * - - 95 DIV + - CAST( - 8 AS SIGNED ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-757
SELECT COUNT ( ALL + 49 ) * - 1 + - + 1 * - - 95 / + - CAST ( - 8 AS INTEGER ) AS col2
----
-12

query I rowsort
SELECT DISTINCT - - 71 * + ( - 58 ) AS col2
----
-4118

query I rowsort
SELECT ALL 9 * + 81 + + + 89 AS col1
----
818

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-760
SELECT - + 93 + + - 95 / + + 16 * - - CAST( NULL AS SIGNED ) - + 49 / - COUNT( ALL + + 79 ) - + - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-760
SELECT - + 93 + + - 95 / + + 16 * - - CAST ( NULL AS INTEGER ) - + 49 / - COUNT ( ALL + + 79 ) - + - 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-761
SELECT ALL 96 * 46 + 2 col0, - COALESCE ( + + 98, - 68 ) * + - SUM( + 98 )
----
4418
9604

skipif mysql # not compatible
query II rowsort label-761
SELECT ALL 96 * 46 + 2 col0, - COALESCE ( + + 98, - 68 ) * + - SUM ( + 98 )
----
4418
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT - COUNT( - ( 91 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-762
SELECT - COUNT ( - ( 91 ) )
----
-1

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

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

query I rowsort
SELECT - 24 * + ( - 27 )
----
648

query I rowsort
SELECT ALL 21 * - - 13 + + + 85
----
358

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT ALL COUNT( 55 ) - + 80
----
-79

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL COUNT ( 55 ) - + 80
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT DISTINCT 23 * COALESCE ( 40, - + COUNT( * ) - - 81 + COALESCE ( - - ( + 12 ), - + COUNT( 45 ) ), COUNT( * ) )
----
920

skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT 23 * COALESCE ( 40, - + COUNT ( * ) - - 81 + COALESCE ( - - ( + 12 ), - + COUNT ( 45 ) ), COUNT ( * ) )
----
920

query I rowsort
SELECT ALL - 57 * 22 AS col1
----
-1254

query I rowsort
SELECT - 58 * 58 col2
----
-3364

query I rowsort
SELECT ALL + 84 - - 94 AS col1
----
178

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-772
SELECT ALL 57 DIV - + SUM( 63 )
----
0

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL 57 / - + SUM ( 63 )
----
0

query I rowsort
SELECT ALL ( - + NULLIF ( 93, 32 ) )
----
-93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT ALL ( - MAX( DISTINCT + - 22 ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL ( - MAX ( DISTINCT + - 22 ) ) AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-776
SELECT + COUNT( DISTINCT 10 ) * + - 87 * - - COUNT( * ) * + CAST( + 75 AS SIGNED ) * + - 58 + NULLIF ( + + 88, + 92 * + 47 ) + + + 83 AS col1
----
378621

skipif mysql # not compatible
query I rowsort label-776
SELECT + COUNT ( DISTINCT 10 ) * + - 87 * - - COUNT ( * ) * + CAST ( + 75 AS INTEGER ) * + - 58 + NULLIF ( + + 88, + 92 * + 47 ) + + + 83 AS col1
----
378621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-777
SELECT ALL 21 / - + 88 * CASE - + CAST( NULL AS SIGNED ) WHEN - + 63 THEN - 49 + + ( - 12 ) * + + 14 WHEN + + 93 + MAX( - + 58 ) - 3 + - - 27 + + + ( 20 ) * + + COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL 21 / - + 88 * CASE - + CAST ( NULL AS INTEGER ) WHEN - + 63 THEN - 49 + + ( - 12 ) * + + 14 WHEN + + 93 + MAX ( - + 58 ) - 3 + - - 27 + + + ( 20 ) * + + COUNT ( * ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT - 27 + + MIN( DISTINCT - + 47 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-778
SELECT - 27 + + MIN ( DISTINCT - + 47 ) AS col2
----
-74

query II rowsort
SELECT + 33 - 89 AS col0, - 75 + - 4
----
-56
-79

query I rowsort
SELECT + + 66 - ( + 46 )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-781
SELECT ALL + 60 * + 2 AS col0, - COUNT( DISTINCT + + 49 ) AS col1
----
120
-1

skipif mysql # not compatible
query II rowsort label-781
SELECT ALL + 60 * + 2 AS col0, - COUNT ( DISTINCT + + 49 ) AS col1
----
120
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-782
SELECT - CAST( - 85 AS SIGNED ) col2
----
85

skipif mysql # not compatible
query I rowsort label-782
SELECT - CAST ( - 85 AS INTEGER ) col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-783
SELECT DISTINCT - 27 * 70 DIV + + 2
----
-945

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT - 27 * 70 / + + 2
----
-945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-784
SELECT ALL CAST( NULLIF ( - - 52, + 82 ) AS SIGNED ) * + - 59 AS col0
----
-3068

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL CAST ( NULLIF ( - - 52, + 82 ) AS INTEGER ) * + - 59 AS col0
----
-3068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-785
SELECT DISTINCT - 9 DIV - - COUNT( ALL + - 29 ) + + + 47 DIV 7 * + + 17 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-785
SELECT DISTINCT - 9 / - - COUNT ( ALL + - 29 ) + + + 47 / 7 * + + 17 AS col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-786
SELECT ALL + - MAX( 25 ) DIV + 14 + 61 + - + 44 + + 40
----
56

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL + - MAX ( 25 ) / + 14 + 61 + - + 44 + + 40
----
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-787
SELECT ALL SUM( ALL 84 ) / 1 + CAST( NULL AS DECIMAL ) / 93 + + - 59 * + + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL SUM ( ALL 84 ) / 1 + CAST ( NULL AS REAL ) / 93 + + - 59 * + + 94 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-788
SELECT DISTINCT 6 / 63 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-788
SELECT DISTINCT 6 / 63 + + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT + NULLIF ( - COUNT( * ), + + 82 * + 5 * + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-790
SELECT + NULLIF ( - COUNT ( * ), + + 82 * + 5 * + + COUNT ( * ) )
----
-1

query I rowsort
SELECT + 73 * 27 + 14 - + 54
----
1931

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-792
SELECT ALL + NULLIF ( + + 9, - + 63 - - + 28 * - 48 ) * + COUNT( * ) / - COUNT( * ) * - SUM( ALL + - CAST( NULL AS SIGNED ) ) - - 3 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL + NULLIF ( + + 9, - + 63 - - + 28 * - 48 ) * + COUNT ( * ) / - COUNT ( * ) * - SUM ( ALL + - CAST ( NULL AS INTEGER ) ) - - 3 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-793
SELECT ALL CASE - 81 WHEN - 53 THEN - - 37 + 31 + - 52 END / - 60, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-793
SELECT ALL CASE - 81 WHEN - 53 THEN - - 37 + 31 + - 52 END / - 60, COUNT ( * ) AS col2
----
NULL
1

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

skipif mysql # not compatible
query I rowsort label-794
SELECT + SUM ( + + 32 )
----
32

query I rowsort
SELECT ALL + 95 * + - 15 - 2 * + 11 * 15 + - 47 AS col0
----
-1802

query I rowsort
SELECT DISTINCT 0 * + ( ( + 8 ) )
----
0

query I rowsort
SELECT - 70 - - 18
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT - 29 * + 69 * - 2 * - COUNT( * ) AS col0
----
-4002

skipif mysql # not compatible
query I rowsort label-798
SELECT - 29 * + 69 * - 2 * - COUNT ( * ) AS col0
----
-4002

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT SUM( DISTINCT + 9 ) * + + 0 + + COUNT( 52 ) + - CASE ( 77 ) WHEN + 22 THEN NULL WHEN 2 * - COUNT( * ) + 78 THEN 52 + 73 END * + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-799
SELECT SUM ( DISTINCT + 9 ) * + + 0 + + COUNT ( 52 ) + - CASE ( 77 ) WHEN + 22 THEN NULL WHEN 2 * - COUNT ( * ) + 78 THEN 52 + 73 END * + + 39
----
NULL

query I rowsort
SELECT 52 * - 22 * + + 67 - + 57
----
-76705

query I rowsort
SELECT + 17 + - NULLIF ( - 43, - 85 )
----
60

query I rowsort
SELECT + 34 * + ( + + 97 )
----
3298

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT - 11 + + COUNT( - + 34 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-803
SELECT - 11 + + COUNT ( - + 34 ) AS col1
----
-10

query I rowsort
SELECT COALESCE ( - ( - ( + COALESCE ( + 87, + 24 + 28 ) ) ), + - 54 + + 34 + + 77 ) col0
----
87

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-807
SELECT ALL NULLIF ( 29, - 99 + ( + CAST( NULL AS SIGNED ) ) + 87 * 21 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL NULLIF ( 29, - 99 + ( + CAST ( NULL AS INTEGER ) ) + 87 * 21 ) AS col2
----
29

query I rowsort
SELECT DISTINCT CASE + 85 WHEN NULLIF ( - + 16, + - 47 * - 29 ) THEN NULL ELSE + - 93 END AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT - 63 + - COUNT( * ) + ( - 50 )
----
-114

skipif mysql # not compatible
query I rowsort label-809
SELECT - 63 + - COUNT ( * ) + ( - 50 )
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT DISTINCT COALESCE ( - SUM( ALL - 4 ), + - COUNT( * ), - 53 )
----
4

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT COALESCE ( - SUM ( ALL - 4 ), + - COUNT ( * ), - 53 )
----
4

query I rowsort
SELECT DISTINCT ( - 84 ) AS col1
----
-84

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

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

query I rowsort
SELECT ALL 68 * - + 54
----
-3672

query I rowsort
SELECT DISTINCT - ( 78 ) * ( - + 65 )
----
5070

query I rowsort
SELECT - 3 * + 32
----
-96

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-817
SELECT ALL - 90 * ( + - 1 ) DIV COUNT( DISTINCT - - 31 ) * + 11 * + COUNT( * ) - + + 4 * - + 83 * - 80 AS col1
----
-25570

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL - 90 * ( + - 1 ) / COUNT ( DISTINCT - - 31 ) * + 11 * + COUNT ( * ) - + + 4 * - + 83 * - 80 AS col1
----
-25570

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT ALL + 98 + - MIN( + 2 ) + + 86 * - ( 56 )
----
-4720

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL + 98 + - MIN ( + 2 ) + + 86 * - ( 56 )
----
-4720

query I rowsort
SELECT + 77 + - + 97 col2
----
-20

query I rowsort
SELECT DISTINCT + 87 + - 54
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT ALL + + ( - COUNT( * ) ) + 68 + - - 89 AS col0
----
156

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL + + ( - COUNT ( * ) ) + 68 + - - 89 AS col0
----
156

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

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

query I rowsort
SELECT ALL 57 * - - 58 * + - 82 + 91 + - + 73
----
-271074

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

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT DISTINCT + 46 + - COUNT( * ) + 57 * + + 65
----
3750

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT + 46 + - COUNT ( * ) + 57 * + + 65
----
3750

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT - COUNT( * ) * + + 93 + + 92 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-826
SELECT - COUNT ( * ) * + + 93 + + 92 AS col2
----
-1

query I rowsort
SELECT DISTINCT - 55 * - + 44
----
2420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-828
SELECT + CAST( NULL AS SIGNED ) / + 71 + + + ( 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-828
SELECT + CAST ( NULL AS INTEGER ) / + 71 + + + ( 33 )
----
NULL

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

skipif mysql # not compatible
query II rowsort label-829
SELECT CAST ( NULL AS INTEGER ) AS col1, - 36 AS col1
----
NULL
-36

query I rowsort
SELECT ALL + 21 * 66 AS col1
----
1386

query II rowsort
SELECT ALL - 53 AS col1, - 92 AS col0
----
-53
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-832
SELECT DISTINCT - ( - - CAST( NULL AS SIGNED ) ) * - 91, COUNT( * ) * 75 AS col0
----
NULL
75

skipif mysql # not compatible
query II rowsort label-832
SELECT DISTINCT - ( - - CAST ( NULL AS INTEGER ) ) * - 91, COUNT ( * ) * 75 AS col0
----
NULL
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-833
SELECT ALL + 30 - - COALESCE ( + 88, + 98 + - COUNT( + 43 ) + - + CASE - 80 WHEN + 64 THEN 61 END * - CAST( + 14 AS SIGNED ) * NULLIF ( + 0, - 7 * 99 + 68 - - - AVG ( ALL - 19 ) - 18 ) * - 36 ) AS col0
----
118

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL + 30 - - COALESCE ( + 88, + 98 + - COUNT ( + 43 ) + - + CASE - 80 WHEN + 64 THEN 61 END * - CAST ( + 14 AS INTEGER ) * NULLIF ( + 0, - 7 * 99 + 68 - - - AVG ( ALL - 19 ) - 18 ) * - 36 ) AS col0
----
118

query I rowsort
SELECT ALL - COALESCE ( - 60, + 3, + - 52 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT ALL + 61 * 89 + + - COUNT( * ) * 55 AS col1
----
5374

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL + 61 * 89 + + - COUNT ( * ) * 55 AS col1
----
5374

query I rowsort
SELECT 84 * 10 + 12 AS col2
----
852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-837
SELECT CAST( NULL AS SIGNED ) + + + 47 + CASE + + 19 WHEN 22 + - + 34 + + - 16 THEN + 63 * + ( + + CAST( 94 AS SIGNED ) ) END + - - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-837
SELECT CAST ( NULL AS INTEGER ) + + + 47 + CASE + + 19 WHEN 22 + - + 34 + + - 16 THEN + 63 * + ( + + CAST ( 94 AS INTEGER ) ) END + - - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT ALL CASE - 27 WHEN ( - - SUM( DISTINCT + + 18 ) ) THEN NULL ELSE + MAX( - - 79 ) END - 91 * + + ( MAX( ALL + + 96 ) )
----
-8657

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL CASE - 27 WHEN ( - - SUM ( DISTINCT + + 18 ) ) THEN NULL ELSE + MAX ( - - 79 ) END - 91 * + + ( MAX ( ALL + + 96 ) )
----
-8657

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-839
SELECT MAX( DISTINCT - 95 ) DIV 50 * + COUNT( * ) DIV + 9 * + MAX( ALL 8 )
----
0

skipif mysql # not compatible
query I rowsort label-839
SELECT MAX ( DISTINCT - 95 ) / 50 * + COUNT ( * ) / + 9 * + MAX ( ALL 8 )
----
0

query II rowsort
SELECT 69, + 49 AS col1
----
69
49

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT MAX( DISTINCT - 18 ) * - 33 - 3 + - + 46 * + + 69 col1
----
-2583

skipif mysql # not compatible
query I rowsort label-841
SELECT MAX ( DISTINCT - 18 ) * - 33 - 3 + - + 46 * + + 69 col1
----
-2583

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-842
SELECT COUNT( * ) DIV + + MAX( + + 5 )
----
0

skipif mysql # not compatible
query I rowsort label-842
SELECT COUNT ( * ) / + + MAX ( + + 5 )
----
0

query I rowsort
SELECT 41 * - + 25 AS col2
----
-1025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-844
SELECT ALL 93 DIV MAX( ALL ( + 18 ) )
----
5

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL 93 / MAX ( ALL ( + 18 ) )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-845
SELECT DISTINCT COUNT( * ) DIV MAX( - 35 )
----
0

skipif mysql # not compatible
query I rowsort label-845
SELECT DISTINCT COUNT ( * ) / MAX ( - 35 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT DISTINCT - MAX( DISTINCT - 40 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-846
SELECT DISTINCT - MAX ( DISTINCT - 40 ) AS col1
----
40

query I rowsort
SELECT 11 + + 40 col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-848
SELECT ALL 39 * + NULLIF ( + CAST( NULL AS SIGNED ), - ( - 87 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-848
SELECT ALL 39 * + NULLIF ( + CAST ( NULL AS INTEGER ), - ( - 87 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-849
SELECT ( - 51 ) DIV 30 * + 61 * - COUNT( 30 )
----
61

skipif mysql # not compatible
query I rowsort label-849
SELECT ( - 51 ) / 30 * + 61 * - COUNT ( 30 )
----
61

query I rowsort
SELECT 56 * - 78 AS col0
----
-4368

query II rowsort
SELECT DISTINCT 30 AS col0, + COALESCE ( + 70, - NULLIF ( 43, + - 52 ), + + 27 + + 93 + - 65 - - 40 ) AS col2
----
30
70

query I rowsort
SELECT ALL + - ( - 52 ) + 80
----
132

query I rowsort
SELECT ALL - 58 + + 24 col2
----
-34

query I rowsort
SELECT DISTINCT 44 + - 21 AS col0
----
23

query I rowsort
SELECT ALL - - 94 * - 34 AS col1
----
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT ALL + 8 + + 26 + + 86 * COUNT( * ) AS col1
----
120

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL + 8 + + 26 + + 86 * COUNT ( * ) AS col1
----
120

query I rowsort
SELECT DISTINCT + 50 + - 68 + - 9 + 13 * - 66
----
-885

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT COALESCE ( - ( + - 29 ), - COUNT( * ) ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-858
SELECT COALESCE ( - ( + - 29 ), - COUNT ( * ) ) AS col0
----
29

query I rowsort
SELECT 9 + 40 AS col1
----
49

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

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

query III rowsort
SELECT ALL + + 2 * - 69, - 71 + + 90 AS col0, + 9 AS col0
----
-138
19
9

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT - COALESCE ( COUNT( * ), + 77 )
----
-1

skipif mysql # not compatible
query I rowsort label-862
SELECT - COALESCE ( COUNT ( * ), + 77 )
----
-1

query I rowsort
SELECT 99 - + 84 AS col1
----
15

query I rowsort
SELECT + 51 * - + 41 * + 35 * 54 AS col2
----
-3951990

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-865
SELECT - CAST( NULL AS DECIMAL ), 55 AS col1
----
NULL
55

skipif mysql # not compatible
query II rowsort label-865
SELECT - CAST ( NULL AS REAL ), 55 AS col1
----
NULL
55

query I rowsort
SELECT ALL + COALESCE ( + - 78, + ( + 66 ) )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-867
SELECT ALL - 1 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL - 1 / 62
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-868
SELECT ALL - 99 AS col0, + ( + CAST( NULL AS SIGNED ) ) + 0 * - 98 * AVG ( DISTINCT - - 47 ) * - ( + - 77 )
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-868
SELECT ALL - 99 AS col0, + ( + CAST ( NULL AS INTEGER ) ) + 0 * - 98 * AVG ( DISTINCT - - 47 ) * - ( + - 77 )
----
-99
NULL

query II rowsort
SELECT DISTINCT - + 92, + 91 + - ( - 26 ) - + 57 AS col1
----
-92
60

onlyif mysql # DIV for integer division: 
query I rowsort label-870
SELECT ALL + 98 DIV 61
----
1

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL + 98 / 61
----
1

query I rowsort
SELECT 86 * - 60
----
-5160

query I rowsort
SELECT ( + + 34 ) * - 28 AS col2
----
-952

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-873
SELECT MAX( DISTINCT - - 65 ) - - - CAST( NULL AS DECIMAL ) * - - ( + - 48 ) * - 14 * + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-873
SELECT MAX ( DISTINCT - - 65 ) - - - CAST ( NULL AS REAL ) * - - ( + - 48 ) * - 14 * + 75 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT ALL COUNT( * ) * 39 col1
----
39

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL COUNT ( * ) * 39 col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT MIN( - + COALESCE ( - 77, + 65 * 29 - - 93 * + - 11 * 83 ) ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-875
SELECT MIN ( - + COALESCE ( - 77, + 65 * 29 - - 93 * + - 11 * 83 ) ) AS col0
----
77

query I rowsort
SELECT ALL + 35 * - + 87
----
-3045

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT COUNT( * ) + 88 * + 82 * + 12 * 8 * + COUNT( * ) * - + 55 * 26
----
-990612479

skipif mysql # not compatible
query I rowsort label-877
SELECT COUNT ( * ) + 88 * + 82 * + 12 * 8 * + COUNT ( * ) * - + 55 * 26
----
-990612479

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

skipif mysql # not compatible
query I rowsort label-878
SELECT MIN ( CAST ( - + 95 AS INTEGER ) )
----
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT + MIN( + 48 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-880
SELECT + MIN ( + 48 ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT COUNT( * ) + 94 + - 88
----
7

skipif mysql # not compatible
query I rowsort label-881
SELECT COUNT ( * ) + 94 + - 88
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT COUNT( DISTINCT + - 43 ) * + 40 + - + 84 + 87 + + 36 * - - 57 AS col1
----
2095

skipif mysql # not compatible
query I rowsort label-882
SELECT COUNT ( DISTINCT + - 43 ) * + 40 + - + 84 + 87 + + 36 * - - 57 AS col1
----
2095

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-883
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - 95 * 21 / - + COUNT( * ) * - 14 col2, - 60 * COUNT( * ) col0
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-883
SELECT DISTINCT CAST ( NULL AS REAL ) / - 95 * 21 / - + COUNT ( * ) * - 14 col2, - 60 * COUNT ( * ) col0
----
NULL
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT + - ( - - 6 ) + + + COUNT( DISTINCT + 71 ) * - 38 * COUNT( * ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-884
SELECT + - ( - - 6 ) + + + COUNT ( DISTINCT + 71 ) * - 38 * COUNT ( * ) AS col1
----
-44

query I rowsort
SELECT ALL 33 + + + 99 + - 55 col1
----
77

query II rowsort
SELECT + 72 * - 25, + 76 AS col1
----
-1800
76

query I rowsort
SELECT + 77 + - 84 * + 72 + + 4
----
-5967

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-888
SELECT DISTINCT + 79 + + 50 + + COUNT( * ) * + COALESCE ( + 14, NULLIF ( - 38, - 70 ) * - 12 ) + - - COALESCE ( - 31, + 75 ) DIV + 21 AS col1
----
142

skipif mysql # not compatible
query I rowsort label-888
SELECT DISTINCT + 79 + + 50 + + COUNT ( * ) * + COALESCE ( + 14, NULLIF ( - 38, - 70 ) * - 12 ) + - - COALESCE ( - 31, + 75 ) / + 21 AS col1
----
142

query I rowsort
SELECT ALL + 21 * + 42 * 12
----
10584

query I rowsort
SELECT + - 15 + - 30 + + 55 + + + 8 AS col0
----
18

query I rowsort
SELECT + + 40 * - + 89
----
-3560

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT - CASE + 86 WHEN 8 THEN 3 - + + 5 WHEN - - 43 * - 66 + - + 29 THEN NULL WHEN - + MIN( + 85 ) THEN - 47 + COUNT( * ) + - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-892
SELECT - CASE + 86 WHEN 8 THEN 3 - + + 5 WHEN - - 43 * - 66 + - + 29 THEN NULL WHEN - + MIN ( + 85 ) THEN - 47 + COUNT ( * ) + - COUNT ( * ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - + 77 + - + 83 AS col0
----
-160

query I rowsort
SELECT - - 2 + - + 70
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-895
SELECT ALL - COUNT( DISTINCT + - 84 ) AS col2, + 1 * + 7 col0
----
-1
7

skipif mysql # not compatible
query II rowsort label-895
SELECT ALL - COUNT ( DISTINCT + - 84 ) AS col2, + 1 * + 7 col0
----
-1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT - + COALESCE ( - - 95, - - 49 * - SUM( DISTINCT + - 18 ) + - COUNT( * ), + 99 )
----
-95

skipif mysql # not compatible
query I rowsort label-896
SELECT - + COALESCE ( - - 95, - - 49 * - SUM ( DISTINCT + - 18 ) + - COUNT ( * ), + 99 )
----
-95

query III rowsort
SELECT DISTINCT - 63 - + + 27 AS col1, 70 * - - ( - + 40 ) AS col0, - - 41 AS col0
----
-90
-2800
41

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT - COUNT( ALL + 22 ) + 48
----
47

skipif mysql # not compatible
query I rowsort label-898
SELECT - COUNT ( ALL + 22 ) + 48
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT DISTINCT + + 24 * COUNT( * ) * - 35 + - 12 AS col2
----
-852

skipif mysql # not compatible
query I rowsort label-899
SELECT DISTINCT + + 24 * COUNT ( * ) * - 35 + - 12 AS col2
----
-852

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT ALL + - SUM( ALL - - 46 ) * 25 + + 5 + 75 col2
----
-1070

skipif mysql # not compatible
query I rowsort label-901
SELECT ALL + - SUM ( ALL - - 46 ) * 25 + + 5 + 75 col2
----
-1070

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT + + COUNT( * ) * - 22 * + 38
----
-836

skipif mysql # not compatible
query I rowsort label-902
SELECT + + COUNT ( * ) * - 22 * + 38
----
-836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-903
SELECT - CAST( + - 62 AS SIGNED ) / + CAST( - COALESCE ( 3, - 0 * 51 + - 83 + + 76 * - 25 ) AS SIGNED ) * - - CAST( NULL AS SIGNED ) - + 71 + - - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-903
SELECT - CAST ( + - 62 AS INTEGER ) / + CAST ( - COALESCE ( 3, - 0 * 51 + - 83 + + 76 * - 25 ) AS INTEGER ) * - - CAST ( NULL AS INTEGER ) - + 71 + - - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-904
SELECT - 11 + + CAST( NULL AS SIGNED ) - + ( + 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-904
SELECT - 11 + + CAST ( NULL AS INTEGER ) - + ( + 94 )
----
NULL

query I rowsort
SELECT ( - + 36 ) col1
----
-36

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

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

query I rowsort
SELECT - 64 * 53
----
-3392

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-909
SELECT - 28 DIV - 97 * 29
----
0

skipif mysql # not compatible
query I rowsort label-909
SELECT - 28 / - 97 * 29
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-910
SELECT + 34 + + + 34 DIV - + 60 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-910
SELECT + 34 + + + 34 / - + 60 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT ALL + CASE 80 WHEN 69 THEN NULL WHEN MIN( DISTINCT 54 ) THEN 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL + CASE 80 WHEN 69 THEN NULL WHEN MIN ( DISTINCT 54 ) THEN 70 END
----
NULL

query I rowsort
SELECT + COALESCE ( - 33, 71, + 6 * - 39 ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-913
SELECT NULLIF ( - + 82, + COALESCE ( + 10, - + 11 * + 48, - 5 ) + - + 13 ) AS col1, 66 * - NULLIF ( - COUNT( * ), - 71 )
----
-82
66

skipif mysql # not compatible
query II rowsort label-913
SELECT NULLIF ( - + 82, + COALESCE ( + 10, - + 11 * + 48, - 5 ) + - + 13 ) AS col1, 66 * - NULLIF ( - COUNT ( * ), - 71 )
----
-82
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-914
SELECT + COALESCE ( + 7, MAX( - 10 ) DIV + 94 + + 22 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-914
SELECT + COALESCE ( + 7, MAX ( - 10 ) / + 94 + + 22 ) AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-915
SELECT ALL + CASE + CAST( NULL AS SIGNED ) WHEN + + 22 * 38 THEN NULL ELSE - CAST( + + COUNT( * ) AS SIGNED ) DIV + 32 END
----
0

skipif mysql # not compatible
query I rowsort label-915
SELECT ALL + CASE + CAST ( NULL AS INTEGER ) WHEN + + 22 * 38 THEN NULL ELSE - CAST ( + + COUNT ( * ) AS INTEGER ) / + 32 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT ALL 86 * - NULLIF ( - 68, + - SUM( ALL - 27 ) )
----
5848

skipif mysql # not compatible
query I rowsort label-916
SELECT ALL 86 * - NULLIF ( - 68, + - SUM ( ALL - 27 ) )
----
5848

query I rowsort
SELECT ALL + 67 * - 46 + - 27
----
-3109

query I rowsort
SELECT DISTINCT + 77 * + 77 AS col1
----
5929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-919
SELECT ALL + MIN( ALL - CAST( - 0 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL + MIN ( ALL - CAST ( - 0 AS INTEGER ) )
----
0

query II rowsort
SELECT - 90 col0, + 46
----
-90
46

query II rowsort
SELECT DISTINCT - 49 AS col2, - 74 AS col1
----
-49
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-922
SELECT + NULLIF ( + - 10, - 11 ) AS col1, - 32 * + MAX( ALL - ( 12 ) ) * - 42 - + 32 * - COUNT( * ) DIV - CASE - + 46 WHEN 74 THEN NULL ELSE 86 * 65 DIV COUNT( * ) * 60 DIV + + 74 END AS col0
----
-10
-16128

skipif mysql # not compatible
query II rowsort label-922
SELECT + NULLIF ( + - 10, - 11 ) AS col1, - 32 * + MAX ( ALL - ( 12 ) ) * - 42 - + 32 * - COUNT ( * ) / - CASE - + 46 WHEN 74 THEN NULL ELSE 86 * 65 / COUNT ( * ) * 60 / + + 74 END AS col0
----
-10
-16128

query I rowsort
SELECT ALL + NULLIF ( + 27, - - 42 ) - - 98
----
125

query I rowsort
SELECT + 37 * - 7 + - ( - 91 ) AS col0
----
-168

onlyif mysql # aggregate syntax: 
query II rowsort label-925
SELECT + COALESCE ( + COUNT( * ), - MIN( + + ( - 45 ) ) ) * + 81, 39 + - - 9 AS col0
----
81
48

skipif mysql # not compatible
query II rowsort label-925
SELECT + COALESCE ( + COUNT ( * ), - MIN ( + + ( - 45 ) ) ) * + 81, 39 + - - 9 AS col0
----
81
48

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

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

query II rowsort
SELECT ALL + 26 AS col0, 65 AS col1
----
26
65

query I rowsort
SELECT + 50 - + - 52
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT DISTINCT CASE - COUNT( * ) WHEN + - AVG ( DISTINCT + + 52 ) + 95 THEN NULL WHEN 86 * + 25 THEN + COUNT( * ) WHEN 11 * - 5 THEN + ( - 15 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-929
SELECT DISTINCT CASE - COUNT ( * ) WHEN + - AVG ( DISTINCT + + 52 ) + 95 THEN NULL WHEN 86 * + 25 THEN + COUNT ( * ) WHEN 11 * - 5 THEN + ( - 15 ) END col2
----
NULL

query I rowsort
SELECT ALL 3 * + ( + 93 )
----
279

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-932
SELECT ALL - COUNT( * ) DIV - 2
----
0

skipif mysql # not compatible
query I rowsort label-932
SELECT ALL - COUNT ( * ) / - 2
----
0

query I rowsort
SELECT ALL - ( 80 ) AS col1
----
-80

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

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

query I rowsort
SELECT ALL - ( + 16 ) * 58 AS col2
----
-928

query I rowsort
SELECT + - 4 - - + 40 + + 19 * - 32 AS col1
----
-572

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-937
SELECT - 36 DIV 26 * - 98 * 4 + + - ( - 40 ) + + COUNT( * ) * + 17, SUM( DISTINCT - 1 ) AS col1
----
449
-1

skipif mysql # not compatible
query II rowsort label-937
SELECT - 36 / 26 * - 98 * 4 + + - ( - 40 ) + + COUNT ( * ) * + 17, SUM ( DISTINCT - 1 ) AS col1
----
449
-1

query I rowsort
SELECT ALL + - 80 + - 67
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT DISTINCT COALESCE ( ( - COUNT( ALL - 44 ) ), - 65 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT COALESCE ( ( - COUNT ( ALL - 44 ) ), - 65 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-940
SELECT DISTINCT 35 + + CAST( - - 15 AS SIGNED ) DIV 89 - + 64
----
-29

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT 35 + + CAST ( - - 15 AS INTEGER ) / 89 - + 64
----
-29

query II rowsort
SELECT ALL ( 50 ) AS col0, 2
----
50
2

onlyif mysql # DIV for integer division: 
query I rowsort label-942
SELECT DISTINCT - 60 DIV 44 + + - 13
----
-14

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT - 60 / 44 + + - 13
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-943
SELECT ALL MAX( DISTINCT 91 ) DIV + COUNT( * ) * COUNT( + - 59 ) + CASE - CASE + + ( + ( 1 ) ) WHEN + 6 + + COUNT( * ) THEN NULL WHEN COUNT( * ) * - 63 * + + 42 + + - 49 * - - 76 THEN NULL ELSE 95 END WHEN + + 98 THEN NULL ELSE - + 39 + + 77 + - 45 END * - 94 AS col0
----
749

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL MAX ( DISTINCT 91 ) / + COUNT ( * ) * COUNT ( + - 59 ) + CASE - CASE + + ( + ( 1 ) ) WHEN + 6 + + COUNT ( * ) THEN NULL WHEN COUNT ( * ) * - 63 * + + 42 + + - 49 * - - 76 THEN NULL ELSE 95 END WHEN + + 98 THEN NULL ELSE - + 39 + + 77 + - 45 END * - 94 AS col0
----
749

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT - 93 + 21 + - MAX( 34 ) * + CASE + COUNT( * ) WHEN + - 78 THEN + - 84 ELSE NULL END * 89 / 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-944
SELECT - 93 + 21 + - MAX ( 34 ) * + CASE + COUNT ( * ) WHEN + - 78 THEN + - 84 ELSE NULL END * 89 / 86 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-945
SELECT 36 * - 96 + - CASE + 52 WHEN COUNT( * ) - + ( COUNT( - 57 ) ) - 1 THEN COUNT( * ) * + 20 * - 84 ELSE NULL END, 78 + 97 * ( - 82 ) + - COUNT( * ) AS col0
----
NULL
-7877

skipif mysql # not compatible
query II rowsort label-945
SELECT 36 * - 96 + - CASE + 52 WHEN COUNT ( * ) - + ( COUNT ( - 57 ) ) - 1 THEN COUNT ( * ) * + 20 * - 84 ELSE NULL END, 78 + 97 * ( - 82 ) + - COUNT ( * ) AS col0
----
NULL
-7877

onlyif mysql # DIV for integer division: 
query I rowsort label-946
SELECT - 10 DIV - + 26 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-946
SELECT - 10 / - + 26 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT + 22 - + MAX( DISTINCT + 32 )
----
-10

skipif mysql # not compatible
query I rowsort label-947
SELECT + 22 - + MAX ( DISTINCT + 32 )
----
-10

query I rowsort
SELECT 40 * - - ( + - 92 )
----
-3680

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT ALL 63 * - 58 * + COUNT( * ) AS col0
----
-3654

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL 63 * - 58 * + COUNT ( * ) AS col0
----
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT DISTINCT - MAX( 40 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-950
SELECT DISTINCT - MAX ( 40 ) AS col0
----
-40

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

query I rowsort
SELECT 56 + - 42
----
14

query I rowsort
SELECT DISTINCT - 46 - - COALESCE ( - + 77, + 45 )
----
-123

query I rowsort
SELECT 72 - + ( - + 68 ) AS col2
----
140

query I rowsort
SELECT + NULLIF ( + 72, - 11 / + - 94 + - 16 ) * + + 0
----
0

query I rowsort
SELECT 5 + + 58 AS col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-957
SELECT ALL - 29 * + + 44 + - 12 * + + 85 + - COALESCE ( + 95, + 28 * - 62 + + ( + SUM( + 2 ) ) + 1 * ( - + 80 ) * - 59 + - 97 - + - 83 - + 24 + - ( - + 14 ) - - 2 DIV + COUNT( ALL 78 ) * - MIN( ALL - 75 ) * 89 + ( - 12 ) )
----
-2391

skipif mysql # not compatible
query I rowsort label-957
SELECT ALL - 29 * + + 44 + - 12 * + + 85 + - COALESCE ( + 95, + 28 * - 62 + + ( + SUM ( + 2 ) ) + 1 * ( - + 80 ) * - 59 + - 97 - + - 83 - + 24 + - ( - + 14 ) - - 2 / + COUNT ( ALL 78 ) * - MIN ( ALL - 75 ) * 89 + ( - 12 ) )
----
-2391

query I rowsort
SELECT - 95 + 39 AS col0
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-959
SELECT 38 + - - COALESCE ( ( + 12 ), + 90 + + 1 + + - COUNT( * ) DIV - COUNT( * ), 95 )
----
50

skipif mysql # not compatible
query I rowsort label-959
SELECT 38 + - - COALESCE ( ( + 12 ), + 90 + + 1 + + - COUNT ( * ) / - COUNT ( * ), 95 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT ALL + 38 * + + CASE - 26 WHEN - 2 * - COUNT( * ) + + 98 THEN + 74 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL + 38 * + + CASE - 26 WHEN - 2 * - COUNT ( * ) + + 98 THEN + 74 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 72, + 2 ) AS col1
----
72

query I rowsort
SELECT - 62 + + 90 AS col2
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-963
SELECT ALL - + COUNT( * ) * + 92 * + 61 + - - 25 + - 3 + + 7 * - COUNT( * ), + 34 AS col1
----
-5597
34

skipif mysql # not compatible
query II rowsort label-963
SELECT ALL - + COUNT ( * ) * + 92 * + 61 + - - 25 + - 3 + + 7 * - COUNT ( * ), + 34 AS col1
----
-5597
34

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT ALL - 77 * + MAX( 62 )
----
-4774

skipif mysql # not compatible
query I rowsort label-964
SELECT ALL - 77 * + MAX ( 62 )
----
-4774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-965
SELECT 94 + + - CAST( - 77 AS SIGNED ) col1
----
171

skipif mysql # not compatible
query I rowsort label-965
SELECT 94 + + - CAST ( - 77 AS INTEGER ) col1
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-966
SELECT DISTINCT + SUM( DISTINCT 24 ) AS col1, 72 DIV + + NULLIF ( COALESCE ( 77, COUNT( * ) ), 9 ) + + + 25 AS col0
----
24
25

skipif mysql # not compatible
query II rowsort label-966
SELECT DISTINCT + SUM ( DISTINCT 24 ) AS col1, 72 / + + NULLIF ( COALESCE ( 77, COUNT ( * ) ), 9 ) + + + 25 AS col0
----
24
25

query I rowsort
SELECT - 37 * 83 col2
----
-3071

query I rowsort
SELECT DISTINCT 76 + - 44 - + 61 / + CASE + + 55 WHEN + 17 THEN - 46 WHEN 97 + - 35 THEN - + 50 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-969
SELECT DISTINCT CAST( - - 69 AS SIGNED ), - 19 AS col0
----
69
-19

skipif mysql # not compatible
query II rowsort label-969
SELECT DISTINCT CAST ( - - 69 AS INTEGER ), - 19 AS col0
----
69
-19

query I rowsort
SELECT ALL - 62 * 76 AS col0
----
-4712

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT DISTINCT - - 98 + - 18 * - - COUNT( * ) * - 55 AS col1
----
1088

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT - - 98 + - 18 * - - COUNT ( * ) * - 55 AS col1
----
1088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-972
SELECT DISTINCT CAST( - + 51 AS SIGNED ) + - MAX( ALL 52 ) AS col0
----
-103

skipif mysql # not compatible
query I rowsort label-972
SELECT DISTINCT CAST ( - + 51 AS INTEGER ) + - MAX ( ALL 52 ) AS col0
----
-103

query I rowsort
SELECT ALL 46 * + 49 AS col0
----
2254

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-975
SELECT + 33 * + + 67 + + COUNT( * ) / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-975
SELECT + 33 * + + 67 + + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-976
SELECT COUNT( * ) DIV - 47
----
0

skipif mysql # not compatible
query I rowsort label-976
SELECT COUNT ( * ) / - 47
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-977
SELECT ( - 61 ) DIV + 7 + - + 91 + + COUNT( * ) * - 50 * + + 22 + - 55 + - NULLIF ( 52, + 54 ) + + 69 - + 46 - 14 AS col0
----
-1297

skipif mysql # not compatible
query I rowsort label-977
SELECT ( - 61 ) / + 7 + - + 91 + + COUNT ( * ) * - 50 * + + 22 + - 55 + - NULLIF ( 52, + 54 ) + + 69 - + 46 - 14 AS col0
----
-1297

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT 37 * - - COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-978
SELECT 37 * - - COUNT ( * ) AS col2
----
37

query II rowsort
SELECT DISTINCT - 8, 10 AS col0
----
-8
10

query I rowsort
SELECT 62 * + - 40
----
-2480

query II rowsort
SELECT DISTINCT - 98 AS col0, 36
----
-98
36

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

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

query I rowsort
SELECT 81 + + 93
----
174

query I rowsort
SELECT ALL 26 - 23
----
3

query I rowsort
SELECT 52 * - 98 AS col2
----
-5096

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

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

query I rowsort
SELECT DISTINCT - + NULLIF ( + COALESCE ( + 7, 9 ), + - 9 )
----
-7

query I rowsort
SELECT + NULLIF ( - + 29, - 92 ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT ALL - + CASE 77 WHEN 67 THEN NULL WHEN 32 * - 5 + - - COUNT( * ) THEN 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL - + CASE 77 WHEN 67 THEN NULL WHEN 32 * - 5 + - - COUNT ( * ) THEN 37 END
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 40 * 12 AS col0
----
-480

query I rowsort
SELECT ALL - - NULLIF ( + 15, 97 * 83 + 73 * 0 + + 24 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT ALL - + 88 + - 41 + SUM( + - 91 ) * - 54
----
4785

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL - + 88 + - 41 + SUM ( + - 91 ) * - 54
----
4785

onlyif mysql # aggregate syntax: 
query II rowsort label-995
SELECT 32 + - + 47 + 4 * - COUNT( * ) * + 24 + COUNT( * ), - 10 * - + 45 AS col2
----
-110
450

skipif mysql # not compatible
query II rowsort label-995
SELECT 32 + - + 47 + 4 * - COUNT ( * ) * + 24 + COUNT ( * ), - 10 * - + 45 AS col2
----
-110
450

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT - 8 * MAX( ALL + 80 ) AS col2
----
-640

skipif mysql # not compatible
query I rowsort label-996
SELECT - 8 * MAX ( ALL + 80 ) AS col2
----
-640

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT 22 * + + ( ( + + ( + COUNT( * ) ) ) ) + 20
----
42

skipif mysql # not compatible
query I rowsort label-997
SELECT 22 * + + ( ( + + ( + COUNT ( * ) ) ) ) + 20
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-998
SELECT - + 55, COUNT( * ) / CASE - + 46 WHEN + 76 THEN + 57 WHEN + 8 * + + AVG ( + 61 ) + + 16 + - ( 63 ) * - - 99 THEN - + 0 WHEN COUNT( * ) THEN NULL ELSE - - 6 * + ( 64 ) / - 77 - + + 71 + - + COUNT( * ) * - - 29 - + CAST( NULL AS SIGNED ) + + 86 - - - 68 END AS col1
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-998
SELECT - + 55, COUNT ( * ) / CASE - + 46 WHEN + 76 THEN + 57 WHEN + 8 * + + AVG ( + 61 ) + + 16 + - ( 63 ) * - - 99 THEN - + 0 WHEN COUNT ( * ) THEN NULL ELSE - - 6 * + ( 64 ) / - 77 - + + 71 + - + COUNT ( * ) * - - 29 - + CAST ( NULL AS INTEGER ) + + 86 - - - 68 END AS col1
----
-55
NULL

query I rowsort
SELECT DISTINCT - - 46 + + 74 AS col0
----
120

query I rowsort
SELECT - + 32 col1
----
-32

query I rowsort
SELECT DISTINCT + 80 + 61 * + 24
----
1544

query I rowsort
SELECT ALL - 41 + 16 AS col2
----
-25

query II rowsort
SELECT - 84, 46 col2
----
-84
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT DISTINCT - 81 + - COUNT( * ) * - - 42
----
-123

skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT - 81 + - COUNT ( * ) * - - 42
----
-123

query I rowsort
SELECT 5 + 97
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT DISTINCT - SUM( - 62 ) + - 1
----
61

skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT - SUM ( - 62 ) + - 1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1007
SELECT 66 AS col1, - 13 + 25 + - 35 + - 54 + + MIN( ALL - + 66 ) * - + COALESCE ( + MIN( DISTINCT - - NULLIF ( + + 94, + - 1 * CASE WHEN NOT - 27 < NULL THEN 50 * + 43 + + 53 + + CAST( NULL AS SIGNED ) + + 3 + + 93 / 12 * + 9 END ) ), - + 85 )
----
66
6127

skipif mysql # not compatible
query II rowsort label-1007
SELECT 66 AS col1, - 13 + 25 + - 35 + - 54 + + MIN ( ALL - + 66 ) * - + COALESCE ( + MIN ( DISTINCT - - NULLIF ( + + 94, + - 1 * CASE WHEN NOT - 27 < NULL THEN 50 * + 43 + + 53 + + CAST ( NULL AS INTEGER ) + + 3 + + 93 / 12 * + 9 END ) ), - + 85 )
----
66
6127

query I rowsort
SELECT - 81 * 4
----
-324

query II rowsort
SELECT - 7, 38 AS col0
----
-7
38

query I rowsort
SELECT ALL COALESCE ( - + 29, 88 )
----
-29

query I rowsort
SELECT DISTINCT 87 - - - ( - 55 )
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1012
SELECT + NULLIF ( 58, + 25 * + 17 ) DIV COUNT( * ) + + 47
----
105

skipif mysql # not compatible
query I rowsort label-1012
SELECT + NULLIF ( 58, + 25 * + 17 ) / COUNT ( * ) + + 47
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1013
SELECT - COUNT( * ) + + 44 + + 38 + + 48 * + ( - - 31 ) col0, - 80 * - ( + - 7 ) * + CAST( NULL AS DECIMAL ) * - - NULLIF ( 84, - COUNT( * ) * - - 90 * - 79 * 32 + 79 + 89 ) - - 42 + 76 + + CAST( NULL AS SIGNED ) AS col0
----
1569
NULL

skipif mysql # not compatible
query II rowsort label-1013
SELECT - COUNT ( * ) + + 44 + + 38 + + 48 * + ( - - 31 ) col0, - 80 * - ( + - 7 ) * + CAST ( NULL AS REAL ) * - - NULLIF ( 84, - COUNT ( * ) * - - 90 * - 79 * 32 + 79 + 89 ) - - 42 + 76 + + CAST ( NULL AS INTEGER ) AS col0
----
1569
NULL

query I rowsort
SELECT ALL 27 * - 94
----
-2538

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT NULLIF ( + 57, - - 9 ) * - - 38 + - SUM( + + 92 ) - COUNT( * )
----
2073

skipif mysql # not compatible
query I rowsort label-1016
SELECT NULLIF ( + 57, - - 9 ) * - - 38 + - SUM ( + + 92 ) - COUNT ( * )
----
2073

query I rowsort
SELECT + 9 + 29 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT DISTINCT 68 * + COUNT( * ) * - - 69 + + - 62 * - COALESCE ( + 83, + 2 * - + ( - + 56 ), 95 ) AS col2
----
9838

skipif mysql # not compatible
query I rowsort label-1018
SELECT DISTINCT 68 * + COUNT ( * ) * - - 69 + + - 62 * - COALESCE ( + 83, + 2 * - + ( - + 56 ), 95 ) AS col2
----
9838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1019
SELECT DISTINCT - CASE - + 28 WHEN COUNT( * ) - + - 70 THEN NULL ELSE - ( CASE 74 WHEN - 5 THEN - - 32 WHEN + 0 THEN AVG ( + + 85 ) * + + 27 * - 61 + 64 ELSE + 80 * + 41 / + 86 END ) END * + 56 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1019
SELECT DISTINCT - CASE - + 28 WHEN COUNT ( * ) - + - 70 THEN NULL ELSE - ( CASE 74 WHEN - 5 THEN - - 32 WHEN + 0 THEN AVG ( + + 85 ) * + + 27 * - 61 + 64 ELSE + 80 * + 41 / + 86 END ) END * + 56 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT ALL - COUNT( * ) * - 48 * 20 + + 45 AS col1
----
1005

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL - COUNT ( * ) * - 48 * 20 + + 45 AS col1
----
1005

query I rowsort
SELECT - ( - + 54 ) * 39 + 79 AS col1
----
2185

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT + SUM( + - 38 ) + 84 * COUNT( * ) + - - COUNT( * ) + + 66 AS col1
----
113

skipif mysql # not compatible
query I rowsort label-1022
SELECT + SUM ( + - 38 ) + 84 * COUNT ( * ) + - - COUNT ( * ) + + 66 AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT ALL - COUNT( * ) * + 9 + + + 33 + - 50 * CASE + - 81 WHEN 95 * - 12 * + 24 + - CASE - 38 WHEN - 97 * - - 82 * - 91 THEN NULL WHEN - - 24 * - + COUNT( * ) * - - 78 * - - 55 / 32 * COUNT( ALL - - 20 ) * - 72 THEN NULL ELSE + 27 / + - 84 END + - 63 THEN NULL WHEN ( 79 ) THEN - 78 + 38 END + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL - COUNT ( * ) * + 9 + + + 33 + - 50 * CASE + - 81 WHEN 95 * - 12 * + 24 + - CASE - 38 WHEN - 97 * - - 82 * - 91 THEN NULL WHEN - - 24 * - + COUNT ( * ) * - - 78 * - - 55 / 32 * COUNT ( ALL - - 20 ) * - 72 THEN NULL ELSE + 27 / + - 84 END + - 63 THEN NULL WHEN ( 79 ) THEN - 78 + 38 END + 37
----
NULL

query II rowsort
SELECT - 38 AS col0, + 80 + + + 36 - 25 + 47 AS col0
----
-38
138

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT + NULLIF ( + COUNT( * ), - 79 + COUNT( * ) ) * 9 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-1025
SELECT + NULLIF ( + COUNT ( * ), - 79 + COUNT ( * ) ) * 9 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT + MAX( + COALESCE ( - 66, + ( - 88 ) ) )
----
-66

skipif mysql # not compatible
query I rowsort label-1026
SELECT + MAX ( + COALESCE ( - 66, + ( - 88 ) ) )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT + - 31 + - NULLIF ( + 17, - MIN( ALL 48 ) + + 79 ) * + + 65 AS col0
----
-1136

skipif mysql # not compatible
query I rowsort label-1027
SELECT + - 31 + - NULLIF ( + 17, - MIN ( ALL 48 ) + + 79 ) * + + 65 AS col0
----
-1136

query I rowsort
SELECT ALL 16 + + 84
----
100

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

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

query II rowsort
SELECT 38 col1, 62 AS col1
----
38
62

onlyif mysql # DIV for integer division: 
query I rowsort label-1031
SELECT ALL + 1 + - 90 DIV 1
----
-89

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL + 1 + - 90 / 1
----
-89

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1033
SELECT DISTINCT + NULLIF ( + 14, - 99 ) DIV - 30 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1033
SELECT DISTINCT + NULLIF ( + 14, - 99 ) / - 30 + + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1034
SELECT - SUM( ALL 54 ) * - + ( + 79 ) - + 95 + 75 * NULLIF ( + 14, - CAST( NULL AS SIGNED ) ) col1
----
5221

skipif mysql # not compatible
query I rowsort label-1034
SELECT - SUM ( ALL 54 ) * - + ( + 79 ) - + 95 + 75 * NULLIF ( + 14, - CAST ( NULL AS INTEGER ) ) col1
----
5221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1035
SELECT - ( + 64 ) * + NULLIF ( - CAST( + 59 AS SIGNED ), + + 99 ) DIV - + COUNT( * ) + - + 28 + - 47
----
-3851

skipif mysql # not compatible
query I rowsort label-1035
SELECT - ( + 64 ) * + NULLIF ( - CAST ( + 59 AS INTEGER ), + + 99 ) / - + COUNT ( * ) + - + 28 + - 47
----
-3851

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1036
SELECT - SUM( + 9 ) + - CAST( NULL AS DECIMAL ) + + 56 * - + ( - 50 ) * - 23 * - 14 * + - AVG ( DISTINCT 92 ) / - 94 * + 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1036
SELECT - SUM ( + 9 ) + - CAST ( NULL AS REAL ) + + 56 * - + ( - 50 ) * - 23 * - 14 * + - AVG ( DISTINCT 92 ) / - 94 * + 75 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT DISTINCT ( + 38 ) - + + MIN( DISTINCT - 50 ) * - 24
----
-1162

skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT ( + 38 ) - + + MIN ( DISTINCT - 50 ) * - 24
----
-1162

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT - 75 + - CASE - 60 WHEN - COUNT( * ) THEN - 44 END - - - 88 + + 46 + + + COUNT( * ) - - 64 * - 8 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1038
SELECT - 75 + - CASE - 60 WHEN - COUNT ( * ) THEN - 44 END - - - 88 + + 46 + + + COUNT ( * ) - - 64 * - 8 + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 32 - - ( + 43 ) AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1040
SELECT - COUNT( * ) * - + CAST( NULL AS SIGNED ) / + CASE 72 WHEN 68 * + ( 78 ) - - + 71 THEN NULL ELSE + 79 - 32 + - 57 END * - 4 / + 80 + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1040
SELECT - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) / + CASE 72 WHEN 68 * + ( 78 ) - - + 71 THEN NULL ELSE + 79 - 32 + - 57 END * - 4 / + 80 + 91 AS col2
----
NULL

query I rowsort
SELECT ALL + 41 * - - NULLIF ( + 38, 89 * + 13 + - - 6 ) * - 92 + - CASE - 39 WHEN - - 55 THEN + 20 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT ( - 24 ) AS col0, 92 * - 19
----
-24
-1748

query I rowsort
SELECT - 98 - + 24
----
-122

query II rowsort
SELECT + 21 + + 27 AS col1, - 57
----
48
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1045
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col0, 32 + + 91 + - 95 + - NULLIF ( + CASE + 52 WHEN - + 61 + - + 37 THEN + - 27 - + - 74 / MAX( ALL + 70 ) WHEN - 37 THEN NULL WHEN + 66 THEN NULL WHEN + ( + MIN( DISTINCT 35 ) ) + + 29 * - 72 THEN - MIN( DISTINCT + - ( - 20 ) ) * - + 53 END, - COALESCE ( + 84, 72 + - CASE - 84 WHEN + 41 THEN 21 WHEN ( - 50 ) THEN NULL WHEN - NULLIF ( 12, SUM( + 17 ) * - 86 ) THEN 17 END / + 19 ) / - 50 + 67 ) * + 54 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1045
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col0, 32 + + 91 + - 95 + - NULLIF ( + CASE + 52 WHEN - + 61 + - + 37 THEN + - 27 - + - 74 / MAX ( ALL + 70 ) WHEN - 37 THEN NULL WHEN + 66 THEN NULL WHEN + ( + MIN ( DISTINCT 35 ) ) + + 29 * - 72 THEN - MIN ( DISTINCT + - ( - 20 ) ) * - + 53 END, - COALESCE ( + 84, 72 + - CASE - 84 WHEN + 41 THEN 21 WHEN ( - 50 ) THEN NULL WHEN - NULLIF ( 12, SUM ( + 17 ) * - 86 ) THEN 17 END / + 19 ) / - 50 + 67 ) * + 54 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT + SUM( 69 ) * - 35 + - + 18 * + COUNT( * )
----
-2433

skipif mysql # not compatible
query I rowsort label-1046
SELECT + SUM ( 69 ) * - 35 + - + 18 * + COUNT ( * )
----
-2433

query I rowsort
SELECT DISTINCT + NULLIF ( - - 6, ( 41 ) ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT + SUM( - - ( 94 ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-1048
SELECT + SUM ( - - ( 94 ) ) AS col2
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1049
SELECT ALL + ( - 96 ), - 96 / + + 55 - CASE + + CAST( 39 AS DECIMAL ) WHEN - 12 THEN - - CASE + 53 WHEN - - ( + + 33 ) THEN - - CAST( - 4 AS DECIMAL ) END * - 80 + + 20 + 70 ELSE NULL END AS col0
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-1049
SELECT ALL + ( - 96 ), - 96 / + + 55 - CASE + + CAST ( 39 AS REAL ) WHEN - 12 THEN - - CASE + 53 WHEN - - ( + + 33 ) THEN - - CAST ( - 4 AS REAL ) END * - 80 + + 20 + 70 ELSE NULL END AS col0
----
-96
NULL

query I rowsort
SELECT - ( + 54 ) * + 94 AS col2
----
-5076

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1052
SELECT + CASE - 40 WHEN COUNT( * ) THEN NULL WHEN + + 12 / - 63 + 49 THEN NULL ELSE + + 83 END AS col1, - COUNT( + - 8 ) + + - 13 AS col2
----
83
-14

skipif mysql # not compatible
query II rowsort label-1052
SELECT + CASE - 40 WHEN COUNT ( * ) THEN NULL WHEN + + 12 / - 63 + 49 THEN NULL ELSE + + 83 END AS col1, - COUNT ( + - 8 ) + + - 13 AS col2
----
83
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1053
SELECT ALL - 82 DIV 99 * - 52 + + - 60
----
-60

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL - 82 / 99 * - 52 + + - 60
----
-60

query I rowsort
SELECT DISTINCT - ( - 38 ) * ( - 30 ) * - + 79 * + - 67 + + 88 col2
----
-6033932

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1056
SELECT ALL + 67 * - CASE - ( - 41 ) WHEN + + 7 * + 34 THEN - - 34 WHEN + 14 THEN 19 WHEN - ( + + CAST( NULL AS DECIMAL ) ) THEN - 51 * - + 62 END + + - 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL + 67 * - CASE - ( - 41 ) WHEN + + 7 * + 34 THEN - - 34 WHEN + 14 THEN 19 WHEN - ( + + CAST ( NULL AS REAL ) ) THEN - 51 * - + 62 END + + - 87 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1058
SELECT ALL + SUM( ALL + + 94 ) AS col1, 0
----
94
0

skipif mysql # not compatible
query II rowsort label-1058
SELECT ALL + SUM ( ALL + + 94 ) AS col1, 0
----
94
0

query I rowsort
SELECT + + ( - - 19 ) + + 74
----
93

query I rowsort
SELECT + 80 * + ( + 18 ) col2
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT ALL - NULLIF ( + 60, - NULLIF ( COUNT( * ), + + 82 ) ) - - 21
----
-39

skipif mysql # not compatible
query I rowsort label-1061
SELECT ALL - NULLIF ( + 60, - NULLIF ( COUNT ( * ), + + 82 ) ) - - 21
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT ( COUNT( - + 93 ) ) * + SUM( + - 70 ) * - 2 + + 56
----
196

skipif mysql # not compatible
query I rowsort label-1062
SELECT ( COUNT ( - + 93 ) ) * + SUM ( + - 70 ) * - 2 + + 56
----
196

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

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 65
----
NULL

query II rowsort
SELECT 13, 31 AS col0
----
13
31

onlyif mysql # aggregate syntax: 
query II rowsort label-1065
SELECT ALL 39, - 46 + - COUNT( * ) AS col1
----
39
-47

skipif mysql # not compatible
query II rowsort label-1065
SELECT ALL 39, - 46 + - COUNT ( * ) AS col1
----
39
-47

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

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL + 18 * - ( - ( - 98 ) ) / COUNT ( * )
----
-1764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1067
SELECT CAST( NULL AS SIGNED ) + AVG ( - + 88 ) + + - 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1067
SELECT CAST ( NULL AS INTEGER ) + AVG ( - + 88 ) + + - 53 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1069
SELECT DISTINCT 44 AS col2, + MAX( - 66 ) + - 97
----
44
-163

skipif mysql # not compatible
query II rowsort label-1069
SELECT DISTINCT 44 AS col2, + MAX ( - 66 ) + - 97
----
44
-163

query I rowsort
SELECT ALL 16 * 42
----
672

query I rowsort
SELECT COALESCE ( 86, - + 74 ) + - 19 * 82
----
-1472

onlyif mysql # DIV for integer division: 
query I rowsort label-1072
SELECT 56 DIV - + 20
----
-2

skipif mysql # not compatible
query I rowsort label-1072
SELECT 56 / - + 20
----
-2

query I rowsort
SELECT 91 * - - 87 AS col1
----
7917

query I rowsort
SELECT 1 * - + 91
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT DISTINCT - 56 + - + COUNT( * ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-1075
SELECT DISTINCT - 56 + - + COUNT ( * ) AS col0
----
-57

query I rowsort
SELECT 75 + + 90 AS col0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT DISTINCT 9 + - 50 + - - COUNT( * ) + - + 29 - + 51 * + 70 * COUNT( * ) AS col0
----
-3639

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT 9 + - 50 + - - COUNT ( * ) + - + 29 - + 51 * + 70 * COUNT ( * ) AS col0
----
-3639

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT ALL + 83 * - NULLIF ( - + COUNT( * ), 64 + - 66 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL + 83 * - NULLIF ( - + COUNT ( * ), 64 + - 66 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT 90 * - CASE - COUNT( ALL - 51 ) WHEN - 41 THEN - 87 + 44 + 98 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1079
SELECT 90 * - CASE - COUNT ( ALL - 51 ) WHEN - 41 THEN - 87 + 44 + 98 END col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1080
SELECT ALL + 11 + - COUNT ( * ) AS col0
----
10

query II rowsort
SELECT + 77 AS col1, + 4
----
77
4

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1083
SELECT 84 + + + 60 + - CAST( NULL AS DECIMAL ) * 45 + + - ( 72 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1083
SELECT 84 + + + 60 + - CAST ( NULL AS REAL ) * 45 + + - ( 72 ) AS col2
----
NULL

query II rowsort
SELECT 28 * ( + 6 ) * - 56 AS col2, + 16 * + + 56 AS col1
----
-9408
896

onlyif mysql # aggregate syntax: 
query II rowsort label-1085
SELECT + + 30 col1, ( + SUM( ALL + 9 ) )
----
30
9

skipif mysql # not compatible
query II rowsort label-1085
SELECT + + 30 col1, ( + SUM ( ALL + 9 ) )
----
30
9

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

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

query I rowsort
SELECT ALL - - 69 + + 12
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT - 73 * - + 79 + - - 43 + + - COUNT( * ) + 62 * - - ( - 45 ) + - 55 + + 88 + + 95
----
3147

skipif mysql # not compatible
query I rowsort label-1088
SELECT - 73 * - + 79 + - - 43 + + - COUNT ( * ) + 62 * - - ( - 45 ) + - 55 + + 88 + + 95
----
3147

onlyif mysql # aggregate syntax: 
query II rowsort label-1089
SELECT 53 + - SUM( DISTINCT 11 ) AS col0, - NULLIF ( + 14, + 81 * 16 + - COUNT( * ) + - + 24 ) + + COUNT( * ) - - 52 AS col0
----
42
39

skipif mysql # not compatible
query II rowsort label-1089
SELECT 53 + - SUM ( DISTINCT 11 ) AS col0, - NULLIF ( + 14, + 81 * 16 + - COUNT ( * ) + - + 24 ) + + COUNT ( * ) - - 52 AS col0
----
42
39

query I rowsort
SELECT ALL - 3 + 39 AS col2
----
36

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

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

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

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

query I rowsort
SELECT DISTINCT + + 27 - + + 86 col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT - + COUNT( 25 ) * - 4 + - 14
----
-10

skipif mysql # not compatible
query I rowsort label-1094
SELECT - + COUNT ( 25 ) * - 4 + - 14
----
-10

query II rowsort
SELECT + 57 AS col2, + 29
----
57
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1096
SELECT - 4 * + + CAST( + 25 AS SIGNED )
----
-100

skipif mysql # not compatible
query I rowsort label-1096
SELECT - 4 * + + CAST ( + 25 AS INTEGER )
----
-100

query I rowsort
SELECT 53 * + 15 * 73 + 88
----
58123

query II rowsort
SELECT DISTINCT - 97, 13 * - 60 * + 51 AS col0
----
-97
-39780

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1100
SELECT ALL 70 DIV + - SUM( - + 82 )
----
0

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL 70 / + - SUM ( - + 82 )
----
0

query I rowsort
SELECT ( + + 48 ) * + + 66 * 63 AS col1
----
199584

query I rowsort
SELECT 37 + - 40 AS col0
----
-3

query I rowsort
SELECT 75 + + + 68 + - 23 + - NULLIF ( + + 14, + - 2 )
----
106

query I rowsort
SELECT 46 * 18
----
828

query I rowsort
SELECT DISTINCT 45 * + - 75
----
-3375

onlyif mysql # aggregate syntax: 
query II rowsort label-1106
SELECT ALL 4 + + + 7 + + + MAX( + - 70 ), + 95 + + 40 + + COUNT( * ) AS col2
----
-59
136

skipif mysql # not compatible
query II rowsort label-1106
SELECT ALL 4 + + + 7 + + + MAX ( + - 70 ), + 95 + + 40 + + COUNT ( * ) AS col2
----
-59
136

query I rowsort
SELECT ALL 63 * - 34 AS col0
----
-2142

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT - SUM( + ( - - 27 ) ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-1108
SELECT - SUM ( + ( - - 27 ) ) AS col1
----
-27

query I rowsort
SELECT DISTINCT 9 + + 41
----
50

query II rowsort
SELECT ALL 68 + - 94 * + 71 + - 58 AS col1, + 98
----
-6664
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT DISTINCT + CASE + 49 WHEN COUNT( * ) / 9 THEN - + 4 / + - 12 END + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT + CASE + 49 WHEN COUNT ( * ) / 9 THEN - + 4 / + - 12 END + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1112
SELECT ALL - COUNT( * ) + - 42 AS col1, 28 * - 84
----
-43
-2352

skipif mysql # not compatible
query II rowsort label-1112
SELECT ALL - COUNT ( * ) + - 42 AS col1, 28 * - 84
----
-43
-2352

query I rowsort
SELECT 50 + + 82
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1114
SELECT DISTINCT MIN( 14 ) + 52 DIV - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-1114
SELECT DISTINCT MIN ( 14 ) + 52 / - COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1115
SELECT DISTINCT + 32 + - ( + 65 ) + + - SUM( ALL + 80 ) - + 63 - - + COUNT( * ) DIV + 13 AS col1
----
-176

skipif mysql # not compatible
query I rowsort label-1115
SELECT DISTINCT + 32 + - ( + 65 ) + + - SUM ( ALL + 80 ) - + 63 - - + COUNT ( * ) / + 13 AS col1
----
-176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1116
SELECT DISTINCT - 30 * + + 46 DIV + COUNT( * ) + + 91
----
-1289

skipif mysql # not compatible
query I rowsort label-1116
SELECT DISTINCT - 30 * + + 46 / + COUNT ( * ) + + 91
----
-1289

onlyif mysql # DIV for integer division: 
query I rowsort label-1117
SELECT + 85 DIV 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1117
SELECT + 85 / 92 AS col2
----
0

query I rowsort
SELECT DISTINCT - 7 * - 40 AS col2
----
280

onlyif mysql # DIV for integer division: 
query I rowsort label-1119
SELECT DISTINCT 64 DIV - + ( 1 ) col2
----
-64

skipif mysql # not compatible
query I rowsort label-1119
SELECT DISTINCT 64 / - + ( 1 ) col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1120
SELECT + COALESCE ( - CAST( NULL AS SIGNED ), + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-1120
SELECT + COALESCE ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT ALL - + COUNT( * ) * - 34 + 94 - + + 44 * - 51 * + 22
----
49496

skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL - + COUNT ( * ) * - 34 + 94 - + + 44 * - 51 * + 22
----
49496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1122
SELECT - COUNT( * ) * - 24 DIV - 38 * + + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1122
SELECT - COUNT ( * ) * - 24 / - 38 * + + 91 AS col0
----
0

query I rowsort
SELECT ALL - 72 * ( - 53 ) AS col2
----
3816

query I rowsort
SELECT 17 * + 29 - - 91 * - 72
----
-6059

onlyif mysql # aggregate syntax: 
query II rowsort label-1125
SELECT ALL + - MIN( DISTINCT + 32 ) AS col2, + NULLIF ( - 67, + 62 + COUNT( * ) * 89 + + + 1 ) + - 9 * + 74 AS col1
----
-32
-733

skipif mysql # not compatible
query II rowsort label-1125
SELECT ALL + - MIN ( DISTINCT + 32 ) AS col2, + NULLIF ( - 67, + 62 + COUNT ( * ) * 89 + + + 1 ) + - 9 * + 74 AS col1
----
-32
-733

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1127
SELECT ALL + CAST( + - 40 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL + CAST ( + - 40 AS INTEGER )
----
-40

query I rowsort
SELECT - 52 * + ( + 98 ) col0
----
-5096

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1129
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT - CAST ( NULL AS REAL ) / 31 AS col2
----
NULL

query I rowsort
SELECT - 99 + - 2 - - 19
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT + COUNT( * ) - + 34 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-1131
SELECT + COUNT ( * ) - + 34 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT ALL - 82 * - COUNT( * ) * - COUNT( * ) * + 45
----
-3690

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL - 82 * - COUNT ( * ) * - COUNT ( * ) * + 45
----
-3690

query I rowsort
SELECT 9 * + 63 * - - 60 + - - 86 + + + 14 * + 33 + 97 + + - 88 + - 85 - 6 AS col1
----
34486

query I rowsort
SELECT ALL 63 + + - 90 AS col2
----
-27

query I rowsort
SELECT ALL + 83 * + - 40
----
-3320

onlyif mysql # aggregate syntax: 
query II rowsort label-1136
SELECT - 45 + - COUNT( * ) + + 44 + + 79 * 16, + 38 + + + COUNT( * ) AS col1
----
1262
39

skipif mysql # not compatible
query II rowsort label-1136
SELECT - 45 + - COUNT ( * ) + + 44 + + 79 * 16, + 38 + + + COUNT ( * ) AS col1
----
1262
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1137
SELECT ALL - 10 + CASE + CAST( - 21 AS SIGNED ) WHEN ( + MAX( ALL 14 ) ) / - MAX( - 78 ) THEN 8 WHEN - 40 THEN NULL WHEN - + 32 + + - COALESCE ( - 51, - COUNT( * ) + + - COUNT( * ) ) THEN - 1 * - - 19 * 52 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL - 10 + CASE + CAST ( - 21 AS INTEGER ) WHEN ( + MAX ( ALL 14 ) ) / - MAX ( - 78 ) THEN 8 WHEN - 40 THEN NULL WHEN - + 32 + + - COALESCE ( - 51, - COUNT ( * ) + + - COUNT ( * ) ) THEN - 1 * - - 19 * 52 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1138
SELECT ALL + 56 + - 66 DIV - 32 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL + 56 + - 66 / - 32 AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1139
SELECT ALL CASE 64 WHEN - 42 THEN CAST( NULL AS SIGNED ) + 18 - + - 68 WHEN - COUNT( * ) * - COUNT( * ) THEN - 29 WHEN + + 76 THEN NULL ELSE 20 END + - + 6
----
14

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL CASE 64 WHEN - 42 THEN CAST ( NULL AS INTEGER ) + 18 - + - 68 WHEN - COUNT ( * ) * - COUNT ( * ) THEN - 29 WHEN + + 76 THEN NULL ELSE 20 END + - + 6
----
14

query I rowsort
SELECT ALL 9 + 2 AS col2
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-1141
SELECT - NULLIF ( + ( - + SUM( ALL - 64 ) ), - COUNT( * ) * + + 54 ) col1, 40
----
-64
40

skipif mysql # not compatible
query II rowsort label-1141
SELECT - NULLIF ( + ( - + SUM ( ALL - 64 ) ), - COUNT ( * ) * + + 54 ) col1, 40
----
-64
40

query II rowsort
SELECT - 24 AS col1, + 54 + + + 84 AS col2
----
-24
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1143
SELECT + 32 * + CAST( - 84 AS SIGNED )
----
-2688

skipif mysql # not compatible
query I rowsort label-1143
SELECT + 32 * + CAST ( - 84 AS INTEGER )
----
-2688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1144
SELECT - CASE 81 WHEN NULLIF ( + COUNT( * ), - 99 / + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * MAX( ALL + 72 ) + - 54 ) + 49 THEN 60 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1144
SELECT - CASE 81 WHEN NULLIF ( + COUNT ( * ), - 99 / + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * MAX ( ALL + 72 ) + - 54 ) + 49 THEN 60 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT ALL COUNT( * ) + - + 76
----
-75

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL COUNT ( * ) + - + 76
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1146
SELECT + - COALESCE ( ( 47 ), - - CAST( NULL AS SIGNED ), + NULLIF ( + 47, + SUM( ALL 59 ) ) ) - 44 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-1146
SELECT + - COALESCE ( ( 47 ), - - CAST ( NULL AS INTEGER ), + NULLIF ( + 47, + SUM ( ALL 59 ) ) ) - 44 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT DISTINCT COUNT( * ) * - NULLIF ( - + 40, + 44 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT COUNT ( * ) * - NULLIF ( - + 40, + 44 ) AS col0
----
40

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

skipif mysql # not compatible
query II rowsort label-1148
SELECT COUNT ( * ), 7 AS col1
----
1
7

query I rowsort
SELECT ALL 53 * + 24 + + 91 * + 86 * 89 AS col2
----
697786

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT ALL - COUNT( * ) - - + 18 col0
----
17

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL - COUNT ( * ) - - + 18 col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1151
SELECT DISTINCT + - 91 DIV 58 DIV - 63 - 89
----
-89

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT + - 91 / 58 / - 63 - 89
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-1152
SELECT + 41 * 85 DIV 42 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-1152
SELECT + 41 * 85 / 42 AS col1
----
82

query I rowsort
SELECT + 10 * 14 * 37 AS col1
----
5180

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT ALL + - CASE - 82 WHEN + 24 * + 4 * - 40 + 20 THEN + 41 + MAX( DISTINCT - 93 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL + - CASE - 82 WHEN + 24 * + 4 * - 40 + 20 THEN + 41 + MAX ( DISTINCT - 93 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT + 63 + + COUNT( * ) + + 50
----
114

skipif mysql # not compatible
query I rowsort label-1155
SELECT + 63 + + COUNT ( * ) + + 50
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-1156
SELECT ALL + - 22 DIV - 10 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL + - 22 / - 10 AS col0
----
2

query I rowsort
SELECT - ( + 10 ) + + 46 col1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-1158
SELECT ALL 82 DIV - 11
----
-7

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL 82 / - 11
----
-7

query I rowsort
SELECT - 11 + 70 AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1160
SELECT ALL - 14 * + + CAST( - 46 AS SIGNED )
----
644

skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL - 14 * + + CAST ( - 46 AS INTEGER )
----
644

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT ALL COALESCE ( NULLIF ( + - 73, + + 56 + + COUNT( * ) * COUNT( * ) ), 46 ) * - COUNT( * ) * - - 27 + - 10 AS col1
----
1961

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL COALESCE ( NULLIF ( + - 73, + + 56 + + COUNT ( * ) * COUNT ( * ) ), 46 ) * - COUNT ( * ) * - - 27 + - 10 AS col1
----
1961

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT + 53 * 46 + - + COUNT( * ) AS col2
----
2437

skipif mysql # not compatible
query I rowsort label-1162
SELECT + 53 * 46 + - + COUNT ( * ) AS col2
----
2437

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1163
SELECT + CAST( + - 33 AS SIGNED ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-1163
SELECT + CAST ( + - 33 AS INTEGER ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT ( + - COUNT( * ) ) * - 54 + + ( + 6 )
----
60

skipif mysql # not compatible
query I rowsort label-1164
SELECT ( + - COUNT ( * ) ) * - 54 + + ( + 6 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1165
SELECT ALL CAST( + - 92 AS SIGNED ) * - 34 + 54
----
3182

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL CAST ( + - 92 AS INTEGER ) * - 34 + 54
----
3182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1166
SELECT NULLIF ( + CAST( NULL AS SIGNED ), + 37 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1166
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), + 37 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1168
SELECT COALESCE ( - + 52, + 73 * - COALESCE ( - 14, 75 DIV + + COUNT( - 50 ) ) + 27 * + - CASE 91 WHEN 86 THEN NULL WHEN + 85 + + - ( - + 78 ) THEN 15 WHEN - AVG ( 85 ) + - 27 * + NULLIF ( 79, + 39 DIV - 37 + 69 ) + + + CASE - 62 WHEN + + 7 THEN 35 END THEN - - COUNT( * ) * - COALESCE ( + 17, + 29 ) + + COUNT( * ) END + + 17 )
----
-52

skipif mysql # not compatible
query I rowsort label-1168
SELECT COALESCE ( - + 52, + 73 * - COALESCE ( - 14, 75 / + + COUNT ( - 50 ) ) + 27 * + - CASE 91 WHEN 86 THEN NULL WHEN + 85 + + - ( - + 78 ) THEN 15 WHEN - AVG ( 85 ) + - 27 * + NULLIF ( 79, + 39 / - 37 + 69 ) + + + CASE - 62 WHEN + + 7 THEN 35 END THEN - - COUNT ( * ) * - COALESCE ( + 17, + 29 ) + + COUNT ( * ) END + + 17 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT DISTINCT COUNT( * ) * + 45 + + 39 + 83
----
167

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT COUNT ( * ) * + 45 + + 39 + 83
----
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1170
SELECT DISTINCT 89 * CAST( NULL AS SIGNED ) + + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1170
SELECT DISTINCT 89 * CAST ( NULL AS INTEGER ) + + 64 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 33 * + 95 + - + 7
----
3128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1172
SELECT DISTINCT ( - - CAST( NULL AS SIGNED ) ), 91 col0
----
NULL
91

skipif mysql # not compatible
query II rowsort label-1172
SELECT DISTINCT ( - - CAST ( NULL AS INTEGER ) ), 91 col0
----
NULL
91

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

skipif mysql # not compatible
query I rowsort label-1173
SELECT - 15 * - - COUNT ( * )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-1174
SELECT ALL + 52 DIV - 52
----
-1

skipif mysql # not compatible
query I rowsort label-1174
SELECT ALL + 52 / - 52
----
-1

query I rowsort
SELECT - NULLIF ( 53, 88 + - 36 ) + - 11 col0
----
-64

query I rowsort
SELECT DISTINCT - 79 - + 40 col1
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT ALL - SUM( ALL - 54 ) - + - 43
----
97

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL - SUM ( ALL - 54 ) - + - 43
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1178
SELECT 88 AS col2, SUM( 72 ) AS col0
----
88
72

skipif mysql # not compatible
query II rowsort label-1178
SELECT 88 AS col2, SUM ( 72 ) AS col0
----
88
72

query I rowsort
SELECT DISTINCT + 29 * 49 * - 73
----
-103733

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1180
SELECT DISTINCT - 71 - + - CAST( 11 AS SIGNED ) + - + 36 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-1180
SELECT DISTINCT - 71 - + - CAST ( 11 AS INTEGER ) + - + 36 AS col0
----
-96

query II rowsort
SELECT ALL 41 AS col1, + 5 * - 1
----
41
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1182
SELECT + + COUNT( * ) + - AVG ( ALL - 90 ) + - MAX( - - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1182
SELECT + + COUNT ( * ) + - AVG ( ALL - 90 ) + - MAX ( - - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT DISTINCT COUNT( ALL - + 72 )
----
1

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT COUNT ( ALL - + 72 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT + 8 * - - 42 * + 49 + + - 83 + + 50 + + + NULLIF ( - 28, + COUNT( * ) + 44 ) AS col1
----
16403

skipif mysql # not compatible
query I rowsort label-1184
SELECT + 8 * - - 42 * + 49 + + - 83 + + 50 + + + NULLIF ( - 28, + COUNT ( * ) + 44 ) AS col1
----
16403

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

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

query II rowsort
SELECT - 75, + 47 AS col1
----
-75
47

onlyif mysql # aggregate syntax: 
query III rowsort label-1187
SELECT 81 AS col2, 96, + CASE - 29 WHEN - + NULLIF ( + COUNT( * ), + COALESCE ( + - 88, + - 61 ) + + - 57 + - COUNT( * ) ) THEN + 69 * - ( + - 20 ) ELSE NULL END * + COUNT( * ) AS col2
----
81
96
NULL

skipif mysql # not compatible
query III rowsort label-1187
SELECT 81 AS col2, 96, + CASE - 29 WHEN - + NULLIF ( + COUNT ( * ), + COALESCE ( + - 88, + - 61 ) + + - 57 + - COUNT ( * ) ) THEN + 69 * - ( + - 20 ) ELSE NULL END * + COUNT ( * ) AS col2
----
81
96
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT DISTINCT - 73 + 91 * - + COUNT( * )
----
-164

skipif mysql # not compatible
query I rowsort label-1189
SELECT DISTINCT - 73 + 91 * - + COUNT ( * )
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT DISTINCT 71 * - + 72 + - - 38 + + - CASE + 6 WHEN + 80 * COUNT( - 89 ) / + 73 + + 97 THEN + 13 END * + + 71 * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT 71 * - + 72 + - - 38 + + - CASE + 6 WHEN + 80 * COUNT ( - 89 ) / + 73 + + 97 THEN + 13 END * + + 71 * - - COUNT ( * )
----
NULL

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

query I rowsort
SELECT DISTINCT 52 + - + ( + + 23 )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-1193
SELECT COALESCE ( - - 73, - 78, COALESCE ( - 40, NULLIF ( - 98, 95 ) ) ) DIV + 41 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1193
SELECT COALESCE ( - - 73, - 78, COALESCE ( - 40, NULLIF ( - 98, 95 ) ) ) / + 41 AS col2
----
1

query II rowsort
SELECT 85 * + - 99, - 55 AS col0
----
-8415
-55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT SUM( ALL - 51 ) - 96
----
-147

skipif mysql # not compatible
query I rowsort label-1196
SELECT SUM ( ALL - 51 ) - 96
----
-147

query I rowsort
SELECT ALL + 56 * - ( + - 29 )
----
1624

query I rowsort
SELECT 65 + + + 39 + - + COALESCE ( 11, + 19 ) AS col1
----
93

query II rowsort
SELECT 0 * 47 AS col0, 97 + - 10
----
0
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT ALL 80 * + NULLIF ( + + 68, + COUNT( * ) * - 14 ) AS col0
----
5440

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL 80 * + NULLIF ( + + 68, + COUNT ( * ) * - 14 ) AS col0
----
5440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1201
SELECT 10 - + + COUNT( * ) DIV 20 DIV - + 77 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-1201
SELECT 10 - + + COUNT ( * ) / 20 / - + 77 AS col1
----
10

query II rowsort
SELECT 0 * + 44 AS col0, 64 AS col0
----
0
64

query I rowsort
SELECT 9 + 16 - 59
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT ALL + - ( - CASE - COUNT( * ) WHEN - - 71 THEN NULL WHEN - - 7 + 29 - - - 73 + + COUNT( * ) / 37 THEN + 20 ELSE - 53 END ) * 75 + + + CASE + + 6 WHEN + 14 - COALESCE ( CASE - 46 WHEN + + 90 THEN - + ( 83 ) END, 79 + - - 94 ) THEN - - 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL + - ( - CASE - COUNT ( * ) WHEN - - 71 THEN NULL WHEN - - 7 + 29 - - - 73 + + COUNT ( * ) / 37 THEN + 20 ELSE - 53 END ) * 75 + + + CASE + + 6 WHEN + 14 - COALESCE ( CASE - 46 WHEN + + 90 THEN - + ( 83 ) END, 79 + - - 94 ) THEN - - 40 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1205
SELECT DISTINCT + + 80 / - CAST( NULL AS DECIMAL ) / + CASE 12 WHEN + + COALESCE ( - 11, + 47 + - - 36 + - - AVG ( DISTINCT - ( + 87 ) ) * 29 + CAST( - + 78 AS SIGNED ) * 6, + + 15 ) - 81 + + + 34 + 23 + 30 THEN + COUNT( * ) + 62 * COUNT( ALL - + 84 ) * - CAST( - COALESCE ( 5, - COUNT( * ), COALESCE ( - 93, + + 15 + + 38 ) ) AS SIGNED ) + + ( CAST( NULL AS SIGNED ) ) WHEN - 74 THEN - 46 ELSE NULL END * 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT + + 80 / - CAST ( NULL AS REAL ) / + CASE 12 WHEN + + COALESCE ( - 11, + 47 + - - 36 + - - AVG ( DISTINCT - ( + 87 ) ) * 29 + CAST ( - + 78 AS INTEGER ) * 6, + + 15 ) - 81 + + + 34 + 23 + 30 THEN + COUNT ( * ) + 62 * COUNT ( ALL - + 84 ) * - CAST ( - COALESCE ( 5, - COUNT ( * ), COALESCE ( - 93, + + 15 + + 38 ) ) AS INTEGER ) + + ( CAST ( NULL AS INTEGER ) ) WHEN - 74 THEN - 46 ELSE NULL END * 99 AS col0
----
NULL

query I rowsort
SELECT ( 57 ) + + - 67 AS col2
----
-10

query I rowsort
SELECT - 54 - - 89 + + 64
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT 76 + + MIN( 5 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-1208
SELECT 76 + + MIN ( 5 ) AS col2
----
81

query I rowsort
SELECT ALL - 24 * - ( - + 62 ) AS col1
----
-1488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1210
SELECT ALL + - 76 * 6 AS col1, - COALESCE ( - - 23, 73 ) + - CASE - + 75 WHEN + + NULLIF ( + MAX( ALL + 94 ), + + CASE - COUNT( * ) WHEN - 18 THEN + - 20 * CAST( - ( + 77 ) AS SIGNED ) * + 43 + + COALESCE ( + 96, - 53 + + + 26 * - 77 * + NULLIF ( - + 59, - - 54 ) * - 25, + 26 ) + + 50 END * - + 73 ) THEN + 29 ELSE NULL END
----
-456
NULL

skipif mysql # not compatible
query II rowsort label-1210
SELECT ALL + - 76 * 6 AS col1, - COALESCE ( - - 23, 73 ) + - CASE - + 75 WHEN + + NULLIF ( + MAX ( ALL + 94 ), + + CASE - COUNT ( * ) WHEN - 18 THEN + - 20 * CAST ( - ( + 77 ) AS INTEGER ) * + 43 + + COALESCE ( + 96, - 53 + + + 26 * - 77 * + NULLIF ( - + 59, - - 54 ) * - 25, + 26 ) + + 50 END * - + 73 ) THEN + 29 ELSE NULL END
----
-456
NULL

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

skipif mysql # not compatible
query I rowsort label-1211
SELECT - MAX ( DISTINCT 28 )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-1212
SELECT ALL - 85 DIV + - 28 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL - 85 / + - 28 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1213
SELECT + 95 / + - 20 + - - 15 * - + COUNT( * ) * + - CAST( NULL AS SIGNED ) * - - AVG ( - 77 ) - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1213
SELECT + 95 / + - 20 + - - 15 * - + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * - - AVG ( - 77 ) - 6 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1214
SELECT + 55 DIV - 83 + + + 38
----
38

skipif mysql # not compatible
query I rowsort label-1214
SELECT + 55 / - 83 + + + 38
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1215
SELECT ALL + + CAST( + 61 AS SIGNED ) + + 48 - - ( - 33 ) + - - 43
----
119

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL + + CAST ( + 61 AS INTEGER ) + + 48 - - ( - 33 ) + - - 43
----
119

query I rowsort
SELECT + 48 + - 50 + - 35 * - 13
----
453

query I rowsort
SELECT + 59 * + 51 - - 39 * 76 + 9 AS col2
----
5982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1218
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) + - - 50 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) + - - 50 AS col0
----
51

query I rowsort
SELECT ALL 88 + - 95
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1220
SELECT COUNT( * ), + 93 * - + 34 * + SUM( DISTINCT - 86 ) * - - 22 * + CAST( NULL AS SIGNED ) - + + 47 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1220
SELECT COUNT ( * ), + 93 * - + 34 * + SUM ( DISTINCT - 86 ) * - - 22 * + CAST ( NULL AS INTEGER ) - + + 47 AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT COUNT( DISTINCT - 39 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1221
SELECT COUNT ( DISTINCT - 39 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - 41 + - + 6 AS col1
----
-47

query II rowsort
SELECT ALL - 39, 0 AS col2
----
-39
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1224
SELECT MIN( DISTINCT - 39 ) DIV 17 + 26
----
24

skipif mysql # not compatible
query I rowsort label-1224
SELECT MIN ( DISTINCT - 39 ) / 17 + 26
----
24

query I rowsort
SELECT ALL - 24 + ( + 27 )
----
3

query I rowsort
SELECT DISTINCT + 69 * ( - - 29 ) * 98 + 27
----
196125

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT ALL 45 * - + 36 * - 82 * + COUNT( * ) * - NULLIF ( - 15, - - 54 + COALESCE ( + SUM( ALL + 28 ), - 20, - MIN( + 64 ), - MIN( 17 ) + COUNT( * ) * - 77 * + CASE + 59 WHEN 85 THEN 87 WHEN - 56 / 82 THEN NULL ELSE NULL END + 29 ) * - 93 ) * + - ( 12 )
----
-23911200

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL 45 * - + 36 * - 82 * + COUNT ( * ) * - NULLIF ( - 15, - - 54 + COALESCE ( + SUM ( ALL + 28 ), - 20, - MIN ( + 64 ), - MIN ( 17 ) + COUNT ( * ) * - 77 * + CASE + 59 WHEN 85 THEN 87 WHEN - 56 / 82 THEN NULL ELSE NULL END + 29 ) * - 93 ) * + - ( 12 )
----
-23911200

query II rowsort
SELECT ALL - 29, 72 - + 57 AS col0
----
-29
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT MIN( 49 )
----
49

skipif mysql # not compatible
query I rowsort label-1229
SELECT MIN ( 49 )
----
49

query II rowsort
SELECT + 55 AS col0, + 59 + - - 35 - 42 * 95
----
55
-3896

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT - ( COUNT( * ) ) * ( 71 ) + 80 * + 27 * - 65 AS col0
----
-140471

skipif mysql # not compatible
query I rowsort label-1231
SELECT - ( COUNT ( * ) ) * ( 71 ) + 80 * + 27 * - 65 AS col0
----
-140471

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT 29 + ( COUNT( * ) ) col1
----
30

skipif mysql # not compatible
query I rowsort label-1232
SELECT 29 + ( COUNT ( * ) ) col1
----
30

query II rowsort
SELECT DISTINCT - 32, 16 AS col2
----
-32
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1234
SELECT ALL 68 DIV + - 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL 68 / + - 79 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT 6 + - - NULLIF ( + 34, - 31 + - 92 + 67 * COUNT( * ) ) * - + ( - - COUNT( * ) )
----
-28

skipif mysql # not compatible
query I rowsort label-1235
SELECT 6 + - - NULLIF ( + 34, - 31 + - 92 + 67 * COUNT ( * ) ) * - + ( - - COUNT ( * ) )
----
-28

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1237
SELECT DISTINCT 97 DIV 91
----
1

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT 97 / 91
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT DISTINCT + NULLIF ( - COUNT( * ), 78 ) * + - 98
----
98

skipif mysql # not compatible
query I rowsort label-1238
SELECT DISTINCT + NULLIF ( - COUNT ( * ), 78 ) * + - 98
----
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT - 89 + ( + + 54 ) * + 98 - + 70 + + SUM( ALL + 35 )
----
5168

skipif mysql # not compatible
query I rowsort label-1240
SELECT - 89 + ( + + 54 ) * + 98 - + 70 + + SUM ( ALL + 35 )
----
5168

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT + + COUNT( * ) - - 81 col0
----
82

skipif mysql # not compatible
query I rowsort label-1241
SELECT + + COUNT ( * ) - - 81 col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1242
SELECT - + NULLIF ( 9, - 74 + 39 * 56 ) * - 39 * - 83 * + + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * 94 + - COUNT( * ) - - - 52 * + + COUNT( * ) * - + CASE - 41 WHEN + + 78 THEN + 37 WHEN 53 * + 64 + COUNT( - 97 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1242
SELECT - + NULLIF ( 9, - 74 + 39 * 56 ) * - 39 * - 83 * + + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 94 + - COUNT ( * ) - - - 52 * + + COUNT ( * ) * - + CASE - 41 WHEN + + 78 THEN + 37 WHEN 53 * + 64 + COUNT ( - 97 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT DISTINCT - 47 * 71 * - SUM( 99 ) + + 48 + 0 AS col0
----
330411

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT - 47 * 71 * - SUM ( 99 ) + + 48 + 0 AS col0
----
330411

query II rowsort
SELECT - - 81 AS col1, + ( + 32 ) AS col0
----
81
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT ALL + - COUNT( * ) * - + 70 + 82
----
152

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL + - COUNT ( * ) * - + 70 + 82
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT ALL + COUNT( * ) + + 79
----
80

skipif mysql # not compatible
query I rowsort label-1246
SELECT ALL + COUNT ( * ) + + 79
----
80

query I rowsort
SELECT DISTINCT - 28 * - 24 AS col0
----
672

query II rowsort
SELECT - + 58 + - - 41 + - 4, 9 + 38 AS col0
----
-21
47

query I rowsort
SELECT - 57 - 69
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1250
SELECT ALL ( - CASE - + 44 WHEN 78 THEN NULL ELSE + CAST( NULL AS SIGNED ) + - CASE 45 WHEN 27 * + 22 THEN - 81 END * - 44 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL ( - CASE - + 44 WHEN 78 THEN NULL ELSE + CAST ( NULL AS INTEGER ) + - CASE 45 WHEN 27 * + 22 THEN - 81 END * - 44 END )
----
NULL

query I rowsort
SELECT DISTINCT 31 + - ( + + 37 )
----
-6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT DISTINCT - - 78 + - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-1253
SELECT DISTINCT - - 78 + - COUNT ( * )
----
77

query I rowsort
SELECT DISTINCT - COALESCE ( 85, ( 75 ) + + - 97 ) + - - 37 AS col1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1255
SELECT + - 39 + - - CAST( NULL AS SIGNED ) + + 89 * - 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1255
SELECT + - 39 + - - CAST ( NULL AS INTEGER ) + + 89 * - 44 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1256
SELECT + NULLIF ( ( 60 ), - + 65 * + 71 ) DIV + CASE WHEN NOT 72 IN ( - ( - COALESCE ( + - MIN( DISTINCT + 57 ), - 17 ) ), - 12 DIV 19, - 1, 55, + + CAST( - CAST( 90 AS DECIMAL ) AS DECIMAL ) DIV + 57 + + COALESCE ( + COUNT( * ), + 29 ) + 31, COALESCE ( 34, 6 DIV + 83 + + NULLIF ( + 70, - - 14 ) ) DIV + 89 * + 79 ) THEN + 29 WHEN NOT MAX( DISTINCT - 76 ) + - 84 NOT BETWEEN NULL AND NULL THEN NULL END - - 62 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-1256
SELECT + NULLIF ( ( 60 ), - + 65 * + 71 ) / + CASE WHEN NOT 72 IN ( - ( - COALESCE ( + - MIN ( DISTINCT + 57 ), - 17 ) ), - 12 / 19, - 1, 55, + + CAST ( - CAST ( 90 AS REAL ) AS REAL ) / + 57 + + COALESCE ( + COUNT ( * ), + 29 ) + 31, COALESCE ( 34, 6 / + 83 + + NULLIF ( + 70, - - 14 ) ) / + 89 * + 79 ) THEN + 29 WHEN NOT MAX ( DISTINCT - 76 ) + - 84 NOT BETWEEN NULL AND NULL THEN NULL END - - 62 AS col2
----
64

query I rowsort
SELECT - 2 + + - 32 AS col0
----
-34

query I rowsort
SELECT ALL - + 11 + 89 AS col0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1259
SELECT - 15 + + CAST( - 9 AS SIGNED ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-1259
SELECT - 15 + + CAST ( - 9 AS INTEGER ) AS col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1260
SELECT - + COUNT( * ) AS col1, NULLIF ( - CAST( NULL AS SIGNED ), - 35 + - 62 ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1260
SELECT - + COUNT ( * ) AS col1, NULLIF ( - CAST ( NULL AS INTEGER ), - 35 + - 62 ) AS col2
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1261
SELECT DISTINCT CAST( 9 AS SIGNED ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-1261
SELECT DISTINCT CAST ( 9 AS INTEGER ) AS col1
----
9

query I rowsort
SELECT - ( + 85 ) * - 75
----
6375

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT DISTINCT - 37 * + MIN( 17 ) AS col1
----
-629

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT - 37 * + MIN ( 17 ) AS col1
----
-629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1264
SELECT DISTINCT + 83 * + 25 * + NULLIF ( - - 61, + COUNT( * ) + - + 67 ) / + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT + 83 * + 25 * + NULLIF ( - - 61, + COUNT ( * ) + - + 67 ) / + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1265
SELECT DISTINCT 52 DIV - - SUM( ALL 92 ) * + - 86
----
0

skipif mysql # not compatible
query I rowsort label-1265
SELECT DISTINCT 52 / - - SUM ( ALL 92 ) * + - 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT - ( 52 ) - + 43 + - COUNT( ALL 34 ) + NULLIF ( + + ( - - 70 ), - 52 / + + 30 ) * 1 + - + 14 col2
----
-40

skipif mysql # not compatible
query I rowsort label-1266
SELECT - ( 52 ) - + 43 + - COUNT ( ALL 34 ) + NULLIF ( + + ( - - 70 ), - 52 / + + 30 ) * 1 + - + 14 col2
----
-40

query I rowsort
SELECT - 16 * - 8 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT - 80 * + + 84 * COUNT( * ) * - 6 col0
----
40320

skipif mysql # not compatible
query I rowsort label-1268
SELECT - 80 * + + 84 * COUNT ( * ) * - 6 col0
----
40320

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT - 56 - + COUNT( * ) - - MIN( - 83 ) * + 76 + + + COUNT( * ) AS col2
----
-6364

skipif mysql # not compatible
query I rowsort label-1270
SELECT - 56 - + COUNT ( * ) - - MIN ( - 83 ) * + 76 + + + COUNT ( * ) AS col2
----
-6364

query I rowsort
SELECT ALL + COALESCE ( + - 80, 64 * - - 56 + + 2, + 59 * - COALESCE ( + 51, - - 25, 26 * + 40 ) ) AS col2
----
-80

query I rowsort
SELECT ALL 27 * - ( 89 ) * + 61 AS col2
----
-146583

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT + 33 - + 67 * - COUNT( * ) col0
----
100

skipif mysql # not compatible
query I rowsort label-1273
SELECT + 33 - + 67 * - COUNT ( * ) col0
----
100

query I rowsort
SELECT + 50 * - 61 AS col1
----
-3050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1275
SELECT DISTINCT - COUNT( * ) * 24 DIV + + 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT - COUNT ( * ) * 24 / + + 53 AS col1
----
0

query I rowsort
SELECT ALL 91 * + 33 AS col0
----
3003

query I rowsort
SELECT - 97 + + 28
----
-69

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

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

query I rowsort
SELECT + 61 - - - 50 * + + 74
----
-3639

query I rowsort
SELECT + 74 * + + 85 + + 65 AS col1
----
6355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1281
SELECT ALL - - 53 * - ( + 68 ) + - 3 / + + 59 / + CAST( NULL AS SIGNED ) + + - 56 + + 16 + - - 91 + 72 * - 33 * - - COUNT( * ) * + 14 * + 40 + + - MAX( 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL - - 53 * - ( + 68 ) + - 3 / + + 59 / + CAST ( NULL AS INTEGER ) + + - 56 + + 16 + - - 91 + 72 * - 33 * - - COUNT ( * ) * + 14 * + 40 + + - MAX ( 46 )
----
NULL

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

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

query II rowsort
SELECT ALL 19 + 76 AS col2, 5 * ( + - COALESCE ( - - 46, + + 92 ) )
----
95
-230

query I rowsort
SELECT + ( + + 48 ) + - 40
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1285
SELECT - - CAST( NULL AS SIGNED ) / - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-1285
SELECT - - CAST ( NULL AS INTEGER ) / - 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT - CASE - + 97 WHEN + 59 * - 16 THEN + COUNT( * ) ELSE NULL END + + 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1286
SELECT - CASE - + 97 WHEN + 59 * - 16 THEN + COUNT ( * ) ELSE NULL END + + 51 AS col0
----
NULL

query II rowsort
SELECT ALL 60 * - + 17, 52 col0
----
-1020
52

query II rowsort
SELECT + ( + 4 ) AS col2, 78
----
4
78

query I rowsort
SELECT + - 61 - - + 15 * - - 26
----
329

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT + + COUNT( DISTINCT 62 ) - + + 58
----
-57

skipif mysql # not compatible
query I rowsort label-1290
SELECT + + COUNT ( DISTINCT 62 ) - + + 58
----
-57

query I rowsort
SELECT + 46 + + 7
----
53

query I rowsort
SELECT ALL ( - 8 ) col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT ALL - NULLIF ( 27, - + 98 ) * + 57 * - 26 * COUNT( * )
----
40014

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL - NULLIF ( 27, - + 98 ) * + 57 * - 26 * COUNT ( * )
----
40014

query I rowsort
SELECT + 11 + 16 * + 96 AS col1
----
1547

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT + ( 90 ) + + - MIN( ALL 2 )
----
88

skipif mysql # not compatible
query I rowsort label-1295
SELECT + ( 90 ) + + - MIN ( ALL 2 )
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-1296
SELECT - 69 + - NULLIF ( - - COUNT( ALL - - 75 ), + - 29 ) col2, - 47 + - CASE + 86 WHEN + 32 THEN NULL WHEN - 45 THEN + + ( + MAX( - 11 ) ) END AS col1
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-1296
SELECT - 69 + - NULLIF ( - - COUNT ( ALL - - 75 ), + - 29 ) col2, - 47 + - CASE + 86 WHEN + 32 THEN NULL WHEN - 45 THEN + + ( + MAX ( - 11 ) ) END AS col1
----
-70
NULL

query I rowsort
SELECT - 86 * + 97
----
-8342

query I rowsort
SELECT ALL 21 * 35
----
735

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1299
SELECT - 4 DIV - COUNT( * ) + 83
----
87

skipif mysql # not compatible
query I rowsort label-1299
SELECT - 4 / - COUNT ( * ) + 83
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1300
SELECT - 50 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-1300
SELECT - 50 / 81
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1301
SELECT DISTINCT + MIN( - - 88 ) * + COUNT( * ) * - NULLIF ( + 21, 79 * - 96 + CASE + 58 WHEN + 22 / - 78 * + + 12 THEN ( - - 0 ) WHEN CAST( - ( + - 64 ) AS DECIMAL ) THEN NULL END * - MAX( ALL + 75 ) ) AS col1
----
-1848

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT + MIN ( - - 88 ) * + COUNT ( * ) * - NULLIF ( + 21, 79 * - 96 + CASE + 58 WHEN + 22 / - 78 * + + 12 THEN ( - - 0 ) WHEN CAST ( - ( + - 64 ) AS REAL ) THEN NULL END * - MAX ( ALL + 75 ) ) AS col1
----
-1848

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1302
SELECT ALL - 34 * 78 * + CAST( NULL AS SIGNED ) AS col0, 9 col0
----
NULL
9

skipif mysql # not compatible
query II rowsort label-1302
SELECT ALL - 34 * 78 * + CAST ( NULL AS INTEGER ) AS col0, 9 col0
----
NULL
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1303
SELECT DISTINCT ( + 20 ) DIV + 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1303
SELECT DISTINCT ( + 20 ) / + 85 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1304
SELECT 28 DIV - + 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1304
SELECT 28 / - + 44 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-1305
SELECT 99 * - CAST ( NULL AS INTEGER ) * - ( + 21 ) AS col2
----
NULL

query I rowsort
SELECT - 78 * NULLIF ( - 28, + + 93 ) + - - 83
----
2267

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT COUNT( * ) * - - 78 * - 54 + + - 6
----
-4218

skipif mysql # not compatible
query I rowsort label-1307
SELECT COUNT ( * ) * - - 78 * - 54 + + - 6
----
-4218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1308
SELECT CAST( NULL AS SIGNED ) * 65 / + - ( ( + 81 ) ) + - 15 * - - 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1308
SELECT CAST ( NULL AS INTEGER ) * 65 / + - ( ( + 81 ) ) + - 15 * - - 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT DISTINCT - - 11 + COUNT( DISTINCT - 81 ) + - + 46 + 50
----
16

skipif mysql # not compatible
query I rowsort label-1309
SELECT DISTINCT - - 11 + COUNT ( DISTINCT - 81 ) + - + 46 + 50
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1310
SELECT ALL - - CAST( + + MIN( ALL + + 78 ) AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL - - CAST ( + + MIN ( ALL + + 78 ) AS INTEGER )
----
78

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

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

query I rowsort
SELECT DISTINCT + 89 * + - 79 AS col2
----
-7031

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT ALL - + 69 + + 0 - COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL - + 69 + + 0 - COUNT ( * )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT ( - 72 ) * + + COUNT( * ) - - + 97 col0
----
25

skipif mysql # not compatible
query I rowsort label-1314
SELECT ( - 72 ) * + + COUNT ( * ) - - + 97 col0
----
25

query I rowsort
SELECT - CASE + - 7 WHEN 76 THEN - - ( ( + 24 ) ) WHEN + 12 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1316
SELECT CAST( + 41 AS SIGNED ) + 58
----
99

skipif mysql # not compatible
query I rowsort label-1316
SELECT CAST ( + 41 AS INTEGER ) + 58
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT + 75 * - COUNT( ALL 44 )
----
-75

skipif mysql # not compatible
query I rowsort label-1317
SELECT + 75 * - COUNT ( ALL 44 )
----
-75

query I rowsort
SELECT ALL 53 - - - 95 * + - 29 * - + 25
----
-68822

query II rowsort
SELECT ALL + 87 AS col2, 36 * + + 97
----
87
3492

query I rowsort
SELECT DISTINCT - 62 - - 47 * + + 14
----
596

query I rowsort
SELECT + 41 * + 96 AS col2
----
3936

query II rowsort
SELECT - CASE 14 WHEN - 16 THEN - 18 * 84 * + 40 END + + + 63 * + ( + + 36 ) * - 57 AS col1, - 92
----
NULL
-92

query I rowsort
SELECT DISTINCT + ( - 98 ) - + 58
----
-156

query II rowsort
SELECT ALL 96 col2, ( + 33 ) AS col1
----
96
33

query I rowsort
SELECT DISTINCT 88 - 24
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1326
SELECT CAST( NULL AS SIGNED ) + + MAX( ALL + 5 ) / - COUNT( * ) + COUNT( * ) * - - 40 * + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1326
SELECT CAST ( NULL AS INTEGER ) + + MAX ( ALL + 5 ) / - COUNT ( * ) + COUNT ( * ) * - - 40 * + ( - CAST ( NULL AS INTEGER ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1328
SELECT - 92 AS col2, 66 - + 88 - + 40 * - COUNT( * ) DIV + COUNT( DISTINCT + + ( - + 19 ) ) AS col2
----
-92
18

skipif mysql # not compatible
query II rowsort label-1328
SELECT - 92 AS col2, 66 - + 88 - + 40 * - COUNT ( * ) / + COUNT ( DISTINCT + + ( - + 19 ) ) AS col2
----
-92
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT MAX( DISTINCT + 57 ) * + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-1329
SELECT MAX ( DISTINCT + 57 ) * + COUNT ( * )
----
57

query II rowsort
SELECT DISTINCT - 68, - 16 col1
----
-68
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT DISTINCT 80 * COUNT( + 78 )
----
80

skipif mysql # not compatible
query I rowsort label-1331
SELECT DISTINCT 80 * COUNT ( + 78 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1332
SELECT NULLIF ( - - 95, - 97 + 78 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1332
SELECT NULLIF ( - - 95, - 97 + 78 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1333
SELECT ALL COUNT( * ) + + + ( NULLIF ( 19, - AVG ( DISTINCT + + 10 ) ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1333
SELECT ALL COUNT ( * ) + + + ( NULLIF ( 19, - AVG ( DISTINCT + + 10 ) ) ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1334
SELECT DISTINCT - 57 AS col2, + 56 + + 46 + + + COUNT( NULLIF ( + NULLIF ( - 37, 21 ), + 19 ) ) * + 10
----
-57
112

skipif mysql # not compatible
query II rowsort label-1334
SELECT DISTINCT - 57 AS col2, + 56 + + 46 + + + COUNT ( NULLIF ( + NULLIF ( - 37, 21 ), + 19 ) ) * + 10
----
-57
112

query I rowsort
SELECT 99 - - - 34
----
65

onlyif mysql # DIV for integer division: 
query II rowsort label-1336
SELECT ALL - 70, - ( + + ( + 25 ) ) DIV - 27 - + 15 col0
----
-70
-15

skipif mysql # not compatible
query II rowsort label-1336
SELECT ALL - 70, - ( + + ( + 25 ) ) / - 27 - + 15 col0
----
-70
-15

query I rowsort
SELECT 44 * - 7
----
-308

onlyif mysql # DIV for integer division: 
query I rowsort label-1338
SELECT 51 + - 50 DIV + ( - + 67 )
----
51

skipif mysql # not compatible
query I rowsort label-1338
SELECT 51 + - 50 / + ( - + 67 )
----
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT ALL - NULLIF ( 52, - 5 / - 57 ) + COUNT( * ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL - NULLIF ( 52, - 5 / - 57 ) + COUNT ( * ) AS col2
----
-51

query I rowsort
SELECT ALL + 68 + - 17
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1342
SELECT 20 - + COUNT( * ) + + + 31 + - CAST( NULL AS SIGNED ) * + 99 * MAX( - 72 ) + - + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1342
SELECT 20 - + COUNT ( * ) + + + 31 + - CAST ( NULL AS INTEGER ) * + 99 * MAX ( - 72 ) + - + 67 AS col0
----
NULL

query I rowsort
SELECT ALL + 51 * + + 4 AS col2
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT ALL + NULLIF ( 86, - - 75 ) + 57 * + - COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-1344
SELECT ALL + NULLIF ( 86, - - 75 ) + 57 * + - COUNT ( * ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT ( - COUNT( * ) ) + + + 27
----
26

skipif mysql # not compatible
query I rowsort label-1345
SELECT ( - COUNT ( * ) ) + + + 27
----
26

query I rowsort
SELECT COALESCE ( - 64, + - 75 ) - + 97 AS col0
----
-161

query I rowsort
SELECT - 98 * 66 AS col2
----
-6468

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1348
SELECT + 90 AS col0, 61 DIV + - COUNT( * )
----
90
-61

skipif mysql # not compatible
query II rowsort label-1348
SELECT + 90 AS col0, 61 / + - COUNT ( * )
----
90
-61

query I rowsort
SELECT + 72 - + - 93 + - 83 * + 6
----
-333

query I rowsort
SELECT ALL + 66 - + - 93 * - - 61
----
5739

query I rowsort
SELECT 69 * 15
----
1035

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

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

query I rowsort
SELECT - 39 + - 37
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT COALESCE ( + COUNT( * ), - 19 ) * - - 65 col0
----
65

skipif mysql # not compatible
query I rowsort label-1354
SELECT COALESCE ( + COUNT ( * ), - 19 ) * - - 65 col0
----
65

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

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

query I rowsort
SELECT 74 + - - 87 * + + 33 AS col2
----
2945

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT 13 + 98 + - COUNT( * ) - + COUNT( * ) + + - 33 * - 6 * - - NULLIF ( 66, + + ( + 47 ) * - + 8 + - 96 )
----
13177

skipif mysql # not compatible
query I rowsort label-1357
SELECT 13 + 98 + - COUNT ( * ) - + COUNT ( * ) + + - 33 * - 6 * - - NULLIF ( 66, + + ( + 47 ) * - + 8 + - 96 )
----
13177

query I rowsort
SELECT ALL + 6 * + COALESCE ( - 16, - - 47 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT ALL - 34 + - + 48 + CASE COUNT( * ) WHEN + 27 * - 18 + - 27 + - 85 THEN + ( - - COUNT( * ) ) / + + 95 * + 43 ELSE NULL END + 10 * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL - 34 + - + 48 + CASE COUNT ( * ) WHEN + 27 * - 18 + - 27 + - 85 THEN + ( - - COUNT ( * ) ) / + + 95 * + 43 ELSE NULL END + 10 * 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT ALL 4 * ( - - MAX( ALL + ( + - 15 ) ) ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL 4 * ( - - MAX ( ALL + ( + - 15 ) ) ) AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-1361
SELECT + 10 DIV ( - 27 ) DIV - 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1361
SELECT + 10 / ( - 27 ) / - 67 AS col0
----
0

query II rowsort
SELECT ALL 21 + 11 AS col2, 62 AS col1
----
32
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT - 8 * 26 - + 89 + - COALESCE ( - 52, - 96, COUNT( * ) ) + + 93 + - 79 AS col1
----
-231

skipif mysql # not compatible
query I rowsort label-1363
SELECT - 8 * 26 - + 89 + - COALESCE ( - 52, - 96, COUNT ( * ) ) + + 93 + - 79 AS col1
----
-231

query II rowsort
SELECT ALL 68 * + 72 AS col1, 49 * + 66 * 14 + + + 4
----
4896
45280

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT + 74 + - SUM( DISTINCT + 52 )
----
22

skipif mysql # not compatible
query I rowsort label-1365
SELECT + 74 + - SUM ( DISTINCT + 52 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT ALL + 16 * + - SUM( + 41 ) + + COUNT( * ) - - + 39 AS col2
----
-616

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL + 16 * + - SUM ( + 41 ) + + COUNT ( * ) - - + 39 AS col2
----
-616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1367
SELECT 72 * + - 62 / + 38 * + CAST( NULL AS SIGNED ) + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1367
SELECT 72 * + - 62 / + 38 * + CAST ( NULL AS INTEGER ) + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT ALL - - COUNT( * ) * + 79 + + 18 - + ( + + 23 ) * COUNT( - + 9 ) + 97
----
171

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL - - COUNT ( * ) * + 79 + + 18 - + ( + + 23 ) * COUNT ( - + 9 ) + 97
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT + + 56 * + - 41 * - 17 - 72 + - + 53 DIV - 48 AS col1
----
38961

skipif mysql # not compatible
query I rowsort label-1369
SELECT + + 56 * + - 41 * - 17 - 72 + - + 53 / - 48 AS col1
----
38961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1370
SELECT + - COALESCE ( + - CAST( NULL AS SIGNED ), + - NULLIF ( - 4, - - NULLIF ( - 0, 59 ) * - 71 ) ) * - 61 * + + NULLIF ( COUNT( * ), + 2 * - CAST( + - COUNT( * ) AS SIGNED ) ) - + + 90 + + + 21 - - 80 AS col2
----
255

skipif mysql # not compatible
query I rowsort label-1370
SELECT + - COALESCE ( + - CAST ( NULL AS INTEGER ), + - NULLIF ( - 4, - - NULLIF ( - 0, 59 ) * - 71 ) ) * - 61 * + + NULLIF ( COUNT ( * ), + 2 * - CAST ( + - COUNT ( * ) AS INTEGER ) ) - + + 90 + + + 21 - - 80 AS col2
----
255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1371
SELECT - 69 * 12 + - + 58 + - 26 - - - COUNT( * ) DIV - - 16 * - 36 + - + 95 * 27 * 14 * - 12
----
430008

skipif mysql # not compatible
query I rowsort label-1371
SELECT - 69 * 12 + - + 58 + - 26 - - - COUNT ( * ) / - - 16 * - 36 + - + 95 * 27 * 14 * - 12
----
430008

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT ALL + CASE - ( - - 75 ) WHEN + - 64 THEN 38 WHEN - 23 + - 93 - + COALESCE ( MAX( ALL - 53 ), + - 14 ) * - 24 / + - 18 THEN + 12 WHEN + - 22 * - MIN( + 51 ) * + 37 + - 93 + - - 57 / - - 29 THEN + - 42 + - 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1372
SELECT ALL + CASE - ( - - 75 ) WHEN + - 64 THEN 38 WHEN - 23 + - 93 - + COALESCE ( MAX ( ALL - 53 ), + - 14 ) * - 24 / + - 18 THEN + 12 WHEN + - 22 * - MIN ( + 51 ) * + 37 + - 93 + - - 57 / - - 29 THEN + - 42 + - 42 END
----
NULL

query II rowsort
SELECT - + 99 + 45, 85 AS col0
----
-54
85

onlyif mysql # aggregate syntax: 
query III rowsort label-1374
SELECT 24 * - - 58 * - 72 + SUM( ALL + 0 ) AS col2, + COUNT( * ) - + 74 - - 91, + + ( - 53 ) + NULLIF ( 10, 37 ) AS col1
----
-100224
18
-43

skipif mysql # not compatible
query III rowsort label-1374
SELECT 24 * - - 58 * - 72 + SUM ( ALL + 0 ) AS col2, + COUNT ( * ) - + 74 - - 91, + + ( - 53 ) + NULLIF ( 10, 37 ) AS col1
----
-100224
18
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT - - CASE 22 WHEN + 65 + - MIN( + 76 ) + + ( 88 ) / 4 * 31 THEN NULL WHEN ( 71 ) * - 69 * 74 + - + COALESCE ( + 9, - - 48 ) THEN NULLIF ( + COALESCE ( + 86, + 4 + - - 87 ), + 65 ) WHEN - 93 THEN NULL WHEN ( + COUNT( * ) ) THEN + + 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1375
SELECT - - CASE 22 WHEN + 65 + - MIN ( + 76 ) + + ( 88 ) / 4 * 31 THEN NULL WHEN ( 71 ) * - 69 * 74 + - + COALESCE ( + 9, - - 48 ) THEN NULLIF ( + COALESCE ( + 86, + 4 + - - 87 ), + 65 ) WHEN - 93 THEN NULL WHEN ( + COUNT ( * ) ) THEN + + 2 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1376
SELECT - CASE WHEN ( NULL ) NOT IN ( + CAST( + ( + 68 ) AS SIGNED ), 63 * 18 * - NULLIF ( 46, 33 + + COUNT( DISTINCT - - 56 ) ) / - 35 - CAST( NULL AS SIGNED ) + + 91, + ( + - ( + + 69 ) ), - + 1, - - 83 ) THEN 12 END + + 95 + - 95 * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-1376
SELECT - CASE WHEN ( NULL ) NOT IN ( + CAST ( + ( + 68 ) AS INTEGER ), 63 * 18 * - NULLIF ( 46, 33 + + COUNT ( DISTINCT - - 56 ) ) / - 35 - CAST ( NULL AS INTEGER ) + + 91, + ( + - ( + + 69 ) ), - + 1, - - 83 ) THEN 12 END + + 95 + - 95 * + 88
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT ALL - CASE + 50 WHEN + - 76 THEN NULL ELSE - + 10 * 20 - - 85 + 7 END DIV - 7
----
-15

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL - CASE + 50 WHEN + - 76 THEN NULL ELSE - + 10 * 20 - - 85 + 7 END / - 7
----
-15

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

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

query I rowsort
SELECT - 70 + 25
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1380
SELECT - CAST( + COUNT( * ) AS SIGNED ) + + 76 - - + CASE 24 WHEN + ( + 39 ) * 1 THEN NULL ELSE - 29 + + - ( CASE - MAX( ALL + - 99 ) WHEN - SUM( - 81 ) * - + ( 53 ) THEN MIN( - 53 ) ELSE NULL END ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1380
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + + 76 - - + CASE 24 WHEN + ( + 39 ) * 1 THEN NULL ELSE - 29 + + - ( CASE - MAX ( ALL + - 99 ) WHEN - SUM ( - 81 ) * - + ( 53 ) THEN MIN ( - 53 ) ELSE NULL END ) END AS col0
----
NULL

query II rowsort
SELECT 14, 66 AS col1
----
14
66

query I rowsort
SELECT DISTINCT + 20 + - 83 AS col1
----
-63

query I rowsort
SELECT ALL + 75 + + 27 col2
----
102

query I rowsort
SELECT - 34 * 82 AS col2
----
-2788

query I rowsort
SELECT ALL NULLIF ( ( - 74 ), + + 25 ) AS col1
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1386
SELECT DISTINCT CAST( + 90 AS SIGNED ) + - - 90
----
180

skipif mysql # not compatible
query I rowsort label-1386
SELECT DISTINCT CAST ( + 90 AS INTEGER ) + - - 90
----
180

query I rowsort
SELECT ALL NULLIF ( + 35, - 98 * - 40 ) + - 3
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT - 27 + - COUNT( * ) + - 38 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-1388
SELECT - 27 + - COUNT ( * ) + - 38 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT ALL - ( - COUNT( - - 40 ) ) + - 34 + + 73 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL - ( - COUNT ( - - 40 ) ) + - 34 + + 73 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT - 98 * - COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-1390
SELECT - 98 * - COUNT ( * ) AS col2
----
98

query II rowsort
SELECT - 4 + - 91 + - 3 AS col0, 6 AS col2
----
-98
6

query II rowsort
SELECT - 56, 72 AS col2
----
-56
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT ALL + ( - + 54 ) + + MIN( DISTINCT + - 87 ) * - 90
----
7776

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL + ( - + 54 ) + + MIN ( DISTINCT + - 87 ) * - 90
----
7776

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT + 56 + + COUNT( * ) * - - 65
----
121

skipif mysql # not compatible
query I rowsort label-1394
SELECT + 56 + + COUNT ( * ) * - - 65
----
121

query I rowsort
SELECT - 68 * - 25
----
1700

query I rowsort
SELECT DISTINCT - ( + 93 ) + 95 * 82 AS col2
----
7697

onlyif mysql # DIV for integer division: 
query I rowsort label-1397
SELECT ALL 14 DIV + 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL 14 / + 65 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1398
SELECT + 20 DIV + 51 * ( - 9 ) AS col2, + 74 * 23 * CASE 63 WHEN - 63 * 83 + + CAST( + + 97 AS SIGNED ) THEN - + 23 DIV + 51 WHEN - - 48 THEN NULL ELSE - 73 + + 72 END + - - 25 AS col1
----
0
-1677

skipif mysql # not compatible
query II rowsort label-1398
SELECT + 20 / + 51 * ( - 9 ) AS col2, + 74 * 23 * CASE 63 WHEN - 63 * 83 + + CAST ( + + 97 AS INTEGER ) THEN - + 23 / + 51 WHEN - - 48 THEN NULL ELSE - 73 + + 72 END + - - 25 AS col1
----
0
-1677

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1399
SELECT ALL - MIN( + 61 ) DIV + 69 - + 35
----
-35

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL - MIN ( + 61 ) / + 69 - + 35
----
-35

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

query II rowsort
SELECT DISTINCT 26 * 70 * 84 AS col2, 59 AS col2
----
152880
59

query I rowsort
SELECT - 31 - 64
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1403
SELECT ALL COUNT( DISTINCT + 80 ) DIV + + ( COALESCE ( + 89, + + COUNT( * ) + + + 73 * MAX( 50 ), - + 94 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL COUNT ( DISTINCT + 80 ) / + + ( COALESCE ( + 89, + + COUNT ( * ) + + + 73 * MAX ( 50 ), - + 94 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT MIN( + 8 ) * + 4 + + + 87 col0
----
119

skipif mysql # not compatible
query I rowsort label-1404
SELECT MIN ( + 8 ) * + 4 + + + 87 col0
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-1405
SELECT + 14 DIV - - 33 * + 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1405
SELECT + 14 / - - 33 * + 87 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1406
SELECT - - 69 * COUNT( * ) * + 60 * 2 + COUNT( * ) + + + CAST( - NULLIF ( + 68, - + 16 + - 58 ) AS SIGNED )
----
8213

skipif mysql # not compatible
query I rowsort label-1406
SELECT - - 69 * COUNT ( * ) * + 60 * 2 + COUNT ( * ) + + + CAST ( - NULLIF ( + 68, - + 16 + - 58 ) AS INTEGER )
----
8213

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT ALL + + MIN( - 32 ) * - COUNT( * ) * - + 61 AS col2
----
-1952

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL + + MIN ( - 32 ) * - COUNT ( * ) * - + 61 AS col2
----
-1952

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

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

query I rowsort
SELECT ALL + + 38 col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT + CASE - - 2 WHEN - 93 * + + 39 THEN COUNT( * ) + + 91 + + 57 + - COUNT( * ) * + 2 + 0 + + 67 END + + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1410
SELECT + CASE - - 2 WHEN - 93 * + + 39 THEN COUNT ( * ) + + 91 + + 57 + - COUNT ( * ) * + 2 + 0 + + 67 END + + - 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT ( - NULLIF ( ( 86 ), - COUNT( * ) ) )
----
-86

skipif mysql # not compatible
query I rowsort label-1411
SELECT ( - NULLIF ( ( 86 ), - COUNT ( * ) ) )
----
-86

query II rowsort
SELECT + 98, 59 col2
----
98
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1413
SELECT DISTINCT + 95, + CAST( NULL AS SIGNED ) * - + 59 + - - 21 * - - COUNT( - + 50 ) + 1 + + COUNT( * ) * + 86 * - 5 AS col0
----
95
NULL

skipif mysql # not compatible
query II rowsort label-1413
SELECT DISTINCT + 95, + CAST ( NULL AS INTEGER ) * - + 59 + - - 21 * - - COUNT ( - + 50 ) + 1 + + COUNT ( * ) * + 86 * - 5 AS col0
----
95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT - + ( + 53 ) * - MAX( ALL 9 ) col1
----
477

skipif mysql # not compatible
query I rowsort label-1414
SELECT - + ( + 53 ) * - MAX ( ALL 9 ) col1
----
477

query I rowsort
SELECT ALL + 21 * - - 71 + - 5 + + 19
----
1505

query I rowsort
SELECT DISTINCT 19 * + 84 + - 78
----
1518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1417
SELECT DISTINCT + ( - 43 ) * + 62 * - 5 + - 7 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT + ( - 43 ) * + 62 * - 5 + - 7 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 57 * + ( 59 ) AS col2
----
3363

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT ALL + 71 + + COUNT( * ) + + 38
----
110

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL + 71 + + COUNT ( * ) + + 38
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT COUNT( 76 ) * - 52 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-1420
SELECT COUNT ( 76 ) * - 52 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT COUNT( + 7 ) + + 59 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-1421
SELECT COUNT ( + 7 ) + + 59 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT 35 * + SUM( 32 ) AS col2
----
1120

skipif mysql # not compatible
query I rowsort label-1422
SELECT 35 * + SUM ( 32 ) AS col2
----
1120

query I rowsort
SELECT 9 + + + ( 14 )
----
23

query I rowsort
SELECT ALL - ( 33 ) + - 38
----
-71

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

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

query I rowsort
SELECT 34 + - 23
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1427
SELECT 44 + NULLIF ( 31, ( 96 ) / + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-1427
SELECT 44 + NULLIF ( 31, ( 96 ) / + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1428
SELECT 53 + - 78 DIV + - ( - 77 ), - 74 DIV COALESCE ( COUNT( * ), - + COUNT( * ) + - 80 ) + - - 48 + 48 * - 82 AS col0
----
52
-3962

skipif mysql # not compatible
query II rowsort label-1428
SELECT 53 + - 78 / + - ( - 77 ), - 74 / COALESCE ( COUNT ( * ), - + COUNT ( * ) + - 80 ) + - - 48 + 48 * - 82 AS col0
----
52
-3962

query I rowsort
SELECT 24 + 49 AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1430
SELECT CASE - 0 WHEN + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - 16 THEN NULL WHEN + 23 THEN - 63 * 59 * COUNT( * ) * - 34 * + - 55 - 3 END, 90 AS col2
----
NULL
90

skipif mysql # not compatible
query II rowsort label-1430
SELECT CASE - 0 WHEN + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 16 THEN NULL WHEN + 23 THEN - 63 * 59 * COUNT ( * ) * - 34 * + - 55 - 3 END, 90 AS col2
----
NULL
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1431
SELECT 34 DIV 18 + - 82 + 26 + + 49 DIV COUNT( * ) * 50 AS col1
----
2395

skipif mysql # not compatible
query I rowsort label-1431
SELECT 34 / 18 + - 82 + 26 + + 49 / COUNT ( * ) * 50 AS col1
----
2395

onlyif mysql # DIV for integer division: 
query I rowsort label-1432
SELECT ALL - ( - 64 ) - - 55 DIV + ( + 59 )
----
64

skipif mysql # not compatible
query I rowsort label-1432
SELECT ALL - ( - 64 ) - - 55 / + ( + 59 )
----
64

query I rowsort
SELECT + 51 * 39 AS col2
----
1989

query I rowsort
SELECT 72 * 93 AS col2
----
6696

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT + ( 80 ) + - COUNT( * ) * - 28
----
108

skipif mysql # not compatible
query I rowsort label-1435
SELECT + ( 80 ) + - COUNT ( * ) * - 28
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1436
SELECT 73 * - COUNT( * ) * + + 48 + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1436
SELECT 73 * - COUNT ( * ) * + + 48 + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1437
SELECT - ( + 86 ) + + + MIN( 19 ) * - 26 / CAST( NULL AS SIGNED ) * + 44 * - - 73 * + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-1437
SELECT - ( + 86 ) + + + MIN ( 19 ) * - 26 / CAST ( NULL AS INTEGER ) * + 44 * - - 73 * + - 95
----
NULL

query I rowsort
SELECT 13 + + ( 83 )
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1439
SELECT DISTINCT + 85 DIV + - 20
----
-4

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT + 85 / + - 20
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-1440
SELECT SUM( - - 25 ) AS col0, - COALESCE ( - 55, - - 37 * + + ( + + 63 ) ) AS col0
----
25
55

skipif mysql # not compatible
query II rowsort label-1440
SELECT SUM ( - - 25 ) AS col0, - COALESCE ( - 55, - - 37 * + + ( + + 63 ) ) AS col0
----
25
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT - 51 * + - SUM( + 48 ) + - ( - + 5 ) * - 38
----
2258

skipif mysql # not compatible
query I rowsort label-1441
SELECT - 51 * + - SUM ( + 48 ) + - ( - + 5 ) * - 38
----
2258

query I rowsort
SELECT ALL + 52 * 23
----
1196

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT DISTINCT 15 * + - MIN( ALL - 70 )
----
1050

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT 15 * + - MIN ( ALL - 70 )
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT COUNT( * ) + - MIN( ALL 60 )
----
-59

skipif mysql # not compatible
query I rowsort label-1444
SELECT COUNT ( * ) + - MIN ( ALL 60 )
----
-59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT - 40 * - 39 + + + 3 + + COUNT( * ) AS col0
----
1564

skipif mysql # not compatible
query I rowsort label-1446
SELECT - 40 * - 39 + + + 3 + + COUNT ( * ) AS col0
----
1564

query I rowsort
SELECT 13 * - 61
----
-793

query I rowsort
SELECT 90 * + 7 col0
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT COUNT( ALL 11 ) - - - 93
----
-92

skipif mysql # not compatible
query I rowsort label-1449
SELECT COUNT ( ALL 11 ) - - - 93
----
-92

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1451
SELECT COUNT( * ) * + 93 * - COALESCE ( 45, + 72 DIV + - 13 - + + 35, + + 51 DIV - + 54 ) AS col0
----
-4185

skipif mysql # not compatible
query I rowsort label-1451
SELECT COUNT ( * ) * + 93 * - COALESCE ( 45, + 72 / + - 13 - + + 35, + + 51 / - + 54 ) AS col0
----
-4185

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

skipif mysql # not compatible
query I rowsort label-1452
SELECT - MIN ( + 90 )
----
-90

query III rowsort
SELECT 68 AS col1, - 60 + - COALESCE ( + + ( 2 ), + 74 ) AS col1, - 96 AS col2
----
68
-62
-96

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

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

query I rowsort
SELECT DISTINCT 97 - - + 74 * - + 90
----
-6563

query I rowsort
SELECT 38 - - 8 AS col2
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1457
SELECT ALL - 40 - + SUM( + 31 ) - - 91 + + 50, - 43 * - - 98 * - 22 + + + ( + - NULLIF ( 19, + 79 ) ) * - MIN( NULLIF ( 41, 33 - + 84 ) ) col2
----
70
93487

skipif mysql # not compatible
query II rowsort label-1457
SELECT ALL - 40 - + SUM ( + 31 ) - - 91 + + 50, - 43 * - - 98 * - 22 + + + ( + - NULLIF ( 19, + 79 ) ) * - MIN ( NULLIF ( 41, 33 - + 84 ) ) col2
----
70
93487

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1458
SELECT ( + + 55 ) * - 68 + + + 11 DIV - ( + COUNT( * ) )
----
-3751

skipif mysql # not compatible
query I rowsort label-1458
SELECT ( + + 55 ) * - 68 + + + 11 / - ( + COUNT ( * ) )
----
-3751

query I rowsort
SELECT ALL ( - 79 ) * - 71 * ( + 98 ) * 73
----
40126786

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1460
SELECT 60 DIV - COUNT( * ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-1460
SELECT 60 / - COUNT ( * ) AS col0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1461
SELECT 69 + + + ( COUNT( * ) ) DIV - 10 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-1461
SELECT 69 + + + ( COUNT ( * ) ) / - 10 AS col1
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1462
SELECT 97 DIV 95 col0
----
1

skipif mysql # not compatible
query I rowsort label-1462
SELECT 97 / 95 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1463
SELECT DISTINCT + ( - 76 ) DIV - 89 * + - 63 * + 50
----
0

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT + ( - 76 ) / - 89 * + - 63 * + 50
----
0

query I rowsort
SELECT DISTINCT ( COALESCE ( 91, + 4 ) )
----
91

query II rowsort
SELECT DISTINCT + 61 AS col1, - 65 + - 1 + 29
----
61
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1466
SELECT ALL - - 82 * - ( - ( - CASE - + 68 WHEN + ( CAST( NULL AS DECIMAL ) ) THEN - 4 * - 61 END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL - - 82 * - ( - ( - CASE - + 68 WHEN + ( CAST ( NULL AS REAL ) ) THEN - 4 * - 61 END ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 3 * + 45 + + 67 AS col2
----
202

query I rowsort
SELECT 68 + + CASE + + 66 WHEN + - 72 * 46 - + + 76 THEN NULL ELSE + - 7 * 93 + - - 14 END col2
----
-569

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1469
SELECT + + 91 col0, COUNT( * ) + - 4 + 67 - + 63 + 58 + + - 4 DIV - + ( - 8 ) + + + 95 AS col1
----
91
154

skipif mysql # not compatible
query II rowsort label-1469
SELECT + + 91 col0, COUNT ( * ) + - 4 + 67 - + 63 + 58 + + - 4 / - + ( - 8 ) + + + 95 AS col1
----
91
154

onlyif mysql # aggregate syntax: 
query II rowsort label-1470
SELECT ALL - 45 * - 1 + 47 + 25 * + - 46 AS col1, + NULLIF ( + 38, + - 68 ) * - MIN( ALL - 93 ) AS col1
----
-1058
3534

skipif mysql # not compatible
query II rowsort label-1470
SELECT ALL - 45 * - 1 + 47 + 25 * + - 46 AS col1, + NULLIF ( + 38, + - 68 ) * - MIN ( ALL - 93 ) AS col1
----
-1058
3534

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT DISTINCT + - SUM( + 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT + - SUM ( + 81 )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1473
SELECT ALL - CASE + COALESCE ( COUNT( * ), + 3 ) WHEN 6 THEN + - CAST( NULL AS SIGNED ) ELSE CAST( NULL AS SIGNED ) END + - 16 * - 31 + + + 74 + - - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL - CASE + COALESCE ( COUNT ( * ), + 3 ) WHEN 6 THEN + - CAST ( NULL AS INTEGER ) ELSE CAST ( NULL AS INTEGER ) END + - 16 * - 31 + + + 74 + - - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT + MIN( ALL - 48 ) - - 16
----
-32

skipif mysql # not compatible
query I rowsort label-1474
SELECT + MIN ( ALL - 48 ) - - 16
----
-32

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1476
SELECT + 39 - - - 2 + 79 * 39 * + ( + 98 ) * - ( - ( + - 23 ) ) * - 49 + + + ( + + 41 ) / - NULLIF ( + - 58, + 77 + + SUM( ALL - 15 ) ) * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1476
SELECT + 39 - - - 2 + 79 * 39 * + ( + 98 ) * - ( - ( + - 23 ) ) * - 49 + + + ( + + 41 ) / - NULLIF ( + - 58, + 77 + + SUM ( ALL - 15 ) ) * - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1477
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + 22 * - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1477
SELECT DISTINCT CAST ( NULL AS REAL ) * + 22 * - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT ALL MIN( - 42 ) * + - 53 AS col1
----
2226

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL MIN ( - 42 ) * + - 53 AS col1
----
2226

query I rowsort
SELECT - 69 * - 60
----
4140

query I rowsort
SELECT ALL + 17 * 29
----
493

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT - MAX( 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-1481
SELECT - MAX ( 93 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT + 4 + - ( MIN( 96 ) )
----
-92

skipif mysql # not compatible
query I rowsort label-1482
SELECT + 4 + - ( MIN ( 96 ) )
----
-92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1483
SELECT DISTINCT COALESCE ( + 90, - + CASE - - 49 WHEN + 68 * + 74 + 44 * - 73 * - NULLIF ( - 5, CAST( + 71 AS SIGNED ) ) THEN NULL ELSE - - 90 DIV + 90 + 95 END, + 64 ) col1
----
90

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT COALESCE ( + 90, - + CASE - - 49 WHEN + 68 * + 74 + 44 * - 73 * - NULLIF ( - 5, CAST ( + 71 AS INTEGER ) ) THEN NULL ELSE - - 90 / + 90 + 95 END, + 64 ) col1
----
90

query II rowsort
SELECT 67, 71 AS col0
----
67
71

query I rowsort
SELECT - 9 + - 61 * - 6
----
357

query I rowsort
SELECT + 15 - + 86 + 36
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-1487
SELECT - 85 + + 21 - - 48 + + + 55 * 12 DIV - 82 + + 73 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-1487
SELECT - 85 + + 21 - - 48 + + + 55 * 12 / - 82 + + 73 AS col0
----
49

query II rowsort
SELECT ALL 18, 15 + - 1 AS col2
----
18
14

query I rowsort
SELECT + 61 + + 19 col2
----
80

query II rowsort
SELECT - COALESCE ( + 5, + - 63, - 78 ) AS col0, 89 * + 82 * - 76
----
-5
-554648

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-1491
SELECT + COUNT( * ) * - - 90 AS col1, 23 * - 18, - CAST( NULL AS DECIMAL ) AS col1
----
90
-414
NULL

skipif mysql # not compatible
query III rowsort label-1491
SELECT + COUNT ( * ) * - - 90 AS col1, 23 * - 18, - CAST ( NULL AS REAL ) AS col1
----
90
-414
NULL

query I rowsort
SELECT ALL ( + 57 ) * - 53 col1
----
-3021

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT + - 6 + - MAX( + 36 ) + - - 61
----
19

skipif mysql # not compatible
query I rowsort label-1493
SELECT + - 6 + - MAX ( + 36 ) + - - 61
----
19

query II rowsort
SELECT ALL 37 AS col1, + 71 AS col1
----
37
71

query I rowsort
SELECT + + 32 + - - 52 col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT DISTINCT 25 + + COUNT( ALL 19 ) col1
----
26

skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT 25 + + COUNT ( ALL 19 ) col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-1497
SELECT ALL + SUM( ALL - 14 ) + 54 + COUNT( + 53 ) * + SUM( ALL + ( + 83 ) ) + - 74 AS col1, - MIN( - 33 ) AS col1
----
49
33

skipif mysql # not compatible
query II rowsort label-1497
SELECT ALL + SUM ( ALL - 14 ) + 54 + COUNT ( + 53 ) * + SUM ( ALL + ( + 83 ) ) + - 74 AS col1, - MIN ( - 33 ) AS col1
----
49
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT + + 71 + + MAX( 18 ) + + - 94 * + 70 AS col1
----
-6491

skipif mysql # not compatible
query I rowsort label-1498
SELECT + + 71 + + MAX ( 18 ) + + - 94 * + 70 AS col1
----
-6491

query II rowsort
SELECT + - 14, 54 + - 1 AS col1
----
-14
53

query I rowsort
SELECT + 40 * - 48
----
-1920

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1501
SELECT DISTINCT + + 82 DIV MIN( ALL - 67 ) + + + ( - + 81 ) + + - 79 AS col2, 76 + + - 27 - 95 * 30 DIV MAX( + - 27 ) * - 6
----
-161
-581

skipif mysql # not compatible
query II rowsort label-1501
SELECT DISTINCT + + 82 / MIN ( ALL - 67 ) + + + ( - + 81 ) + + - 79 AS col2, 76 + + - 27 - 95 * 30 / MAX ( + - 27 ) * - 6
----
-161
-581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1502
SELECT ALL - - CAST( NULL AS SIGNED ) / - 33 + - 20 + - - ( + 43 ) * 59 * 26 + + 36 + - - 18 + + - CAST( NULL AS SIGNED ) * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL - - CAST ( NULL AS INTEGER ) / - 33 + - 20 + - - ( + 43 ) * 59 * 26 + + 36 + - - 18 + + - CAST ( NULL AS INTEGER ) * - 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1503
SELECT - 67 * + ( + + 57 ) * - 57 + - + ( - CAST( + - 76 AS SIGNED ) ) * - MAX( ALL - 50 ) AS col0
----
213883

skipif mysql # not compatible
query I rowsort label-1503
SELECT - 67 * + ( + + 57 ) * - 57 + - + ( - CAST ( + - 76 AS INTEGER ) ) * - MAX ( ALL - 50 ) AS col0
----
213883

query I rowsort
SELECT ALL + - ( 78 ) AS col2
----
-78

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1506
SELECT DISTINCT 46 * CAST( NULL AS SIGNED ) + - 49 + + 16 * 64 + 4 * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1506
SELECT DISTINCT 46 * CAST ( NULL AS INTEGER ) + - 49 + + 16 * 64 + 4 * + 73
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1507
SELECT 1, - MAX( + - 11 ) + + COALESCE ( 83, + - 73 * + + ( - SUM( DISTINCT 83 ) ) DIV + - 17 * - 80 ) AS col2
----
1
94

skipif mysql # not compatible
query II rowsort label-1507
SELECT 1, - MAX ( + - 11 ) + + COALESCE ( 83, + - 73 * + + ( - SUM ( DISTINCT 83 ) ) / + - 17 * - 80 ) AS col2
----
1
94

query I rowsort
SELECT + - 95 * - 94 AS col0
----
8930

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1510
SELECT - 32 * + - 14 + - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1510
SELECT - 32 * + - 14 + - CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT DISTINCT + 30 * - ( 72 ) col2
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT - 19 * + - COUNT( * ) + + + 28 * + - 59 * + 73 AS col1
----
-120577

skipif mysql # not compatible
query I rowsort label-1512
SELECT - 19 * + - COUNT ( * ) + + + 28 * + - 59 * + 73 AS col1
----
-120577

query I rowsort
SELECT - 51 * - - 19 AS col2
----
-969

query I rowsort
SELECT DISTINCT + ( - + 45 ) * - 12 * 9 AS col1
----
4860

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1515
SELECT - COUNT( * ) DIV + 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1515
SELECT - COUNT ( * ) / + 44 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT DISTINCT + SUM( ALL - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-1516
SELECT DISTINCT + SUM ( ALL - 85 )
----
-85

query I rowsort
SELECT 58 * + - 67 - - CASE - 75 WHEN + 78 THEN 15 WHEN 30 THEN 78 - - 12 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1518
SELECT - 74 DIV 27 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1518
SELECT - 74 / 27 AS col1
----
-2

query I rowsort
SELECT - 85 * 10 * + 69
----
-58650

query I rowsort
SELECT + 91 + COALESCE ( - 11, + - 68 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1521
SELECT ALL CAST( - 79 AS SIGNED ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL CAST ( - 79 AS INTEGER ) AS col2
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-1522
SELECT - 38 DIV - 96 AS col2, - 92 + - 11 AS col2
----
0
-103

skipif mysql # not compatible
query II rowsort label-1522
SELECT - 38 / - 96 AS col2, - 92 + - 11 AS col2
----
0
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT ALL 49 + COUNT( * ) * 66 * - + 55 AS col1
----
-3581

skipif mysql # not compatible
query I rowsort label-1523
SELECT ALL 49 + COUNT ( * ) * 66 * - + 55 AS col1
----
-3581

query II rowsort
SELECT ALL ( - + 50 ) col2, 24 * - + ( 56 ) AS col1
----
-50
-1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1525
SELECT DISTINCT - COALESCE ( 70, + - 57 * - 78 DIV - + CASE + - 11 WHEN + CAST( NULL AS SIGNED ) + COUNT( * ) + - 80 - + COALESCE ( 75, COUNT( * ) * 64 ) THEN NULL ELSE 41 * CASE 64 WHEN 58 * - 56 - + 15 THEN - 7 DIV 46 + + - ( - - COALESCE ( 90, 48 ) ) END DIV + NULLIF ( 93, - 32 ) DIV 75 END + - CAST( NULL AS SIGNED ) ) + + 64 + 26 AS col2, + 69 DIV - - 62
----
20
1

skipif mysql # not compatible
query II rowsort label-1525
SELECT DISTINCT - COALESCE ( 70, + - 57 * - 78 / - + CASE + - 11 WHEN + CAST ( NULL AS INTEGER ) + COUNT ( * ) + - 80 - + COALESCE ( 75, COUNT ( * ) * 64 ) THEN NULL ELSE 41 * CASE 64 WHEN 58 * - 56 - + 15 THEN - 7 / 46 + + - ( - - COALESCE ( 90, 48 ) ) END / + NULLIF ( 93, - 32 ) / 75 END + - CAST ( NULL AS INTEGER ) ) + + 64 + 26 AS col2, + 69 / - - 62
----
20
1

query I rowsort
SELECT DISTINCT + - 74 + + - 59
----
-133

query I rowsort
SELECT ALL - - 11 + + 73
----
84

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

skipif mysql # not compatible
query I rowsort label-1528
SELECT DISTINCT - 47 + 23 + COUNT ( * ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT - COUNT( * ) * - COUNT( * ) * - 18 * COUNT( * ) + - 63
----
-81

skipif mysql # not compatible
query I rowsort label-1529
SELECT - COUNT ( * ) * - COUNT ( * ) * - 18 * COUNT ( * ) + - 63
----
-81

query I rowsort
SELECT + 94 * - 97
----
-9118

query II rowsort
SELECT - - NULLIF ( 67, 87 ) col0, - 21 AS col2
----
67
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT ALL - 65 + COALESCE ( COUNT( * ), + - ( - COUNT( * ) ) ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL - 65 + COALESCE ( COUNT ( * ), + - ( - COUNT ( * ) ) ) AS col2
----
-64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT DISTINCT COUNT( * ) + COUNT( * ) + + 97 * - + MAX( ALL + + 64 ) * 10
----
-62078

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) + + 97 * - + MAX ( ALL + + 64 ) * 10
----
-62078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1535
SELECT ALL 44 - + CAST( - - 17 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL 44 - + CAST ( - - 17 AS INTEGER )
----
27

query I rowsort
SELECT - 27 + - - 53
----
26

query I rowsort
SELECT - 97 * 10 * 16 * - 41 + + + 93
----
636413

query I rowsort
SELECT ALL 66 * 43 * + - 55 AS col1
----
-156090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1539
SELECT CAST( + + COALESCE ( + 23, 62 - + - 87 ) AS SIGNED ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-1539
SELECT CAST ( + + COALESCE ( + 23, 62 - + - 87 ) AS INTEGER ) AS col2
----
23

query II rowsort
SELECT ( + 95 ) AS col2, 69
----
95
69

query II rowsort
SELECT 68 AS col0, 37 * + - 97 AS col1
----
68
-3589

query I rowsort
SELECT ALL 58 * - 82
----
-4756

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

skipif mysql # not compatible
query I rowsort label-1543
SELECT ALL - MAX ( - 85 )
----
85

query II rowsort
SELECT ALL - 64, + 10 * 31 + + 40 * - 89 AS col2
----
-64
-3250

query II rowsort
SELECT + 86, - 13 AS col0
----
86
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT COUNT( * ) + - + 64 col2
----
-63

skipif mysql # not compatible
query I rowsort label-1546
SELECT COUNT ( * ) + - + 64 col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT ALL - 53 * - COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL - 53 * - COUNT ( * ) AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1548
SELECT - CASE WHEN ( NULL ) IS NOT NULL THEN NULL WHEN NOT NULL <= ( NULL ) THEN 21 END * - AVG ( ALL + 32 ) * + COUNT( - ( ( 57 ) ) ) + - + ( - - NULLIF ( + 98, - ( + NULLIF ( - - SUM( - - 62 ), + CAST( - COUNT( * ) AS SIGNED ) ) ) + + - 1 * + - 11 - - + 29 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1548
SELECT - CASE WHEN ( NULL ) IS NOT NULL THEN NULL WHEN NOT NULL <= ( NULL ) THEN 21 END * - AVG ( ALL + 32 ) * + COUNT ( - ( ( 57 ) ) ) + - + ( - - NULLIF ( + 98, - ( + NULLIF ( - - SUM ( - - 62 ), + CAST ( - COUNT ( * ) AS INTEGER ) ) ) + + - 1 * + - 11 - - + 29 ) ) AS col2
----
NULL

query I rowsort
SELECT 54 * + NULLIF ( - - 67, - - 89 )
----
3618

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT COUNT( * ) + + 46 + + 23 * + 18 * + 42
----
17435

skipif mysql # not compatible
query I rowsort label-1550
SELECT COUNT ( * ) + + 46 + + 23 * + 18 * + 42
----
17435

query II rowsort
SELECT ALL - 99 AS col2, + 72
----
-99
72

query II rowsort
SELECT 84 AS col0, - 37
----
84
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1553
SELECT + 53 col2, + 83 + + CAST( NULL AS DECIMAL )
----
53
NULL

skipif mysql # not compatible
query II rowsort label-1553
SELECT + 53 col2, + 83 + + CAST ( NULL AS REAL )
----
53
NULL

query I rowsort
SELECT 73 - + 26
----
47

query I rowsort
SELECT 44 * + 86 * + 11 AS col1
----
41624

query I rowsort
SELECT 79 * - + 38
----
-3002

query I rowsort
SELECT ALL - 82 * + 46
----
-3772

query I rowsort
SELECT ALL 20 * + + 86
----
1720

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT ALL 38 + - - 61 - 85 + - 22 * COUNT( * ) * - 28 * - COUNT( * ) + 96 * 60
----
5158

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL 38 + - - 61 - 85 + - 22 * COUNT ( * ) * - 28 * - COUNT ( * ) + 96 * 60
----
5158

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT DISTINCT - COUNT( * ) + - 35 + + COUNT( 90 ) + + 72
----
37

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT - COUNT ( * ) + - 35 + + COUNT ( 90 ) + + 72
----
37

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

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL - 51 + + COUNT ( * ) AS col1
----
-50

query II rowsort
SELECT - + 87, 66 AS col2
----
-87
66

query I rowsort
SELECT + 51 - + + 21
----
30

query II rowsort
SELECT ALL + 77, - 14 AS col2
----
77
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1565
SELECT + ( 77 ) + 33 + CAST( - 86 AS SIGNED ) * + 36 * + + COALESCE ( + 47, - + 94, - 38 + - 11 ) AS col2
----
-145402

skipif mysql # not compatible
query I rowsort label-1565
SELECT + ( 77 ) + 33 + CAST ( - 86 AS INTEGER ) * + 36 * + + COALESCE ( + 47, - + 94, - 38 + - 11 ) AS col2
----
-145402

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1566
SELECT + 78 DIV + 86 + - NULLIF ( - + 31, + ( - - COUNT( + CASE + 8 WHEN - 4 THEN NULL WHEN - + 10 THEN + + 94 END ) ) ), - 17 + CAST( NULL AS DECIMAL ) AS col2
----
31
NULL

skipif mysql # not compatible
query II rowsort label-1566
SELECT + 78 / + 86 + - NULLIF ( - + 31, + ( - - COUNT ( + CASE + 8 WHEN - 4 THEN NULL WHEN - + 10 THEN + + 94 END ) ) ), - 17 + CAST ( NULL AS REAL ) AS col2
----
31
NULL

query I rowsort
SELECT - 18 * + 64 AS col2
----
-1152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1568
SELECT ALL CAST( - 40 AS SIGNED ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL CAST ( - 40 AS INTEGER ) AS col2
----
-40

query I rowsort
SELECT 43 + - 77
----
-34

query II rowsort
SELECT ALL - 92 AS col2, 41
----
-92
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1571
SELECT - MAX( - - 94 ) + 14 DIV + - 83 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-1571
SELECT - MAX ( - - 94 ) + 14 / + - 83 AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT 82 + - + COUNT( + 13 ) + + + 47 * COUNT( * ) AS col2
----
128

skipif mysql # not compatible
query I rowsort label-1572
SELECT 82 + - + COUNT ( + 13 ) + + + 47 * COUNT ( * ) AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT COUNT( * ) + 66 + 6 * NULLIF ( + - 41, 7 )
----
-179

skipif mysql # not compatible
query I rowsort label-1573
SELECT COUNT ( * ) + 66 + 6 * NULLIF ( + - 41, 7 )
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT ALL - MIN( ALL + 56 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL - MIN ( ALL + 56 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT CASE - - COALESCE ( + AVG ( ALL - 24 ), + SUM( DISTINCT - 5 ) * - - 66, - 21 ) WHEN + 60 THEN - - 26 WHEN - - 16 + 93 * - + 61 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1575
SELECT CASE - - COALESCE ( + AVG ( ALL - 24 ), + SUM ( DISTINCT - 5 ) * - - 66, - 21 ) WHEN + 60 THEN - - 26 WHEN - - 16 + 93 * - + 61 THEN NULL END
----
NULL

query I rowsort
SELECT + 94 + - 24 AS col2
----
70

query I rowsort
SELECT + 34 * + 68
----
2312

query I rowsort
SELECT + 8 + + 7 AS col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1579
SELECT DISTINCT - CAST( - 4 AS SIGNED ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT - CAST ( - 4 AS INTEGER ) AS col0
----
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT MAX( + - 98 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-1581
SELECT MAX ( + - 98 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT ALL COUNT( - 10 ) * 27
----
27

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL COUNT ( - 10 ) * 27
----
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT SUM( DISTINCT 74 ) * - ( - - 74 ) + - 77 + + 83 + - - 86
----
-5384

skipif mysql # not compatible
query I rowsort label-1584
SELECT SUM ( DISTINCT 74 ) * - ( - - 74 ) + - 77 + + 83 + - - 86
----
-5384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1585
SELECT COUNT( * ) DIV - - COALESCE ( + 71, - 48 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1585
SELECT COUNT ( * ) / - - COALESCE ( + 71, - 48 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT 82 + - 20 + - + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-1586
SELECT 82 + - 20 + - + COUNT ( * )
----
61

query II rowsort
SELECT ALL 44 * 42, - 33 + 60 AS col1
----
1848
27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1588
SELECT DISTINCT COALESCE ( + - ( + 50 ), + - 19 + - + 35 + - 21, - 18 * 24 DIV - 20 + + - CAST( + 48 AS SIGNED ) ) + + + 84 * + + 62 * - 56
----
-291698

skipif mysql # not compatible
query I rowsort label-1588
SELECT DISTINCT COALESCE ( + - ( + 50 ), + - 19 + - + 35 + - 21, - 18 * 24 / - 20 + + - CAST ( + 48 AS INTEGER ) ) + + + 84 * + + 62 * - 56
----
-291698

query I rowsort
SELECT ALL 26 + - 33
----
-7

query I rowsort
SELECT 23 * 63 + - 40
----
1409

query II rowsort
SELECT + ( - 84 ) col0, + 82
----
-84
82

query I rowsort
SELECT DISTINCT 14 + - ( + 26 )
----
-12

query I rowsort
SELECT 79 + - - 4 - - 15
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT ALL + - COUNT( * ) + 2 + + 53 * - ( 98 )
----
-5193

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL + - COUNT ( * ) + 2 + + 53 * - ( 98 )
----
-5193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1595
SELECT ALL - - 81 * 61 / + 16 * - + ( 25 ) * + CAST( NULL AS SIGNED ) + - - CASE - + 36 WHEN 15 THEN NULL ELSE 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL - - 81 * 61 / + 16 * - + ( 25 ) * + CAST ( NULL AS INTEGER ) + - - CASE - + 36 WHEN 15 THEN NULL ELSE 84 END
----
NULL

query I rowsort
SELECT ALL 76 * 75 * + - NULLIF ( 95, + - 36 ) + + 41 AS col1
----
-541459

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT DISTINCT - MIN( 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-1597
SELECT DISTINCT - MIN ( 25 )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1598
SELECT DISTINCT + CAST( 9 AS SIGNED ) * - 3
----
-27

skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT + CAST ( 9 AS INTEGER ) * - 3
----
-27

query I rowsort
SELECT ALL + 37 - + + 2 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT ALL 3 * + 69 - - SUM( 78 ) - - + 52 * - + 92
----
-4499

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL 3 * + 69 - - SUM ( 78 ) - - + 52 * - + 92
----
-4499

query I rowsort
SELECT - + 51 * + 72 + - 61
----
-3733

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1602
SELECT - - ( - 96 ) * - COUNT( * ) + 90 + 15 DIV + 92 * - 24
----
186

skipif mysql # not compatible
query I rowsort label-1602
SELECT - - ( - 96 ) * - COUNT ( * ) + 90 + 15 / + 92 * - 24
----
186

query I rowsort
SELECT - 18 * + 99
----
-1782

onlyif mysql # DIV for integer division: 
query I rowsort label-1604
SELECT ALL + - 97 DIV - 25 col2
----
3

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL + - 97 / - 25 col2
----
3

query I rowsort
SELECT DISTINCT - ( - - 16 ) col1
----
-16

query I rowsort
SELECT ALL - 99 * 69 * - 54 * - - 16
----
5901984

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT - COUNT( + 60 ) * SUM( - + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-1607
SELECT - COUNT ( + 60 ) * SUM ( - + 43 )
----
43

query I rowsort
SELECT - 93 + 6
----
-87

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

query II rowsort
SELECT ALL + ( - - 88 ) * + 9 + - 88 + 13 AS col1, 45 + - 66 AS col0
----
717
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-1611
SELECT + COUNT( * ) AS col2, 25 + - 13
----
1
12

skipif mysql # not compatible
query II rowsort label-1611
SELECT + COUNT ( * ) AS col2, 25 + - 13
----
1
12

query I rowsort
SELECT - 86 * - - 81 AS col0
----
-6966

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1613
SELECT + COUNT( * ) * - COUNT( DISTINCT + CAST( 60 AS DECIMAL ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1613
SELECT + COUNT ( * ) * - COUNT ( DISTINCT + CAST ( 60 AS REAL ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1614
SELECT ALL 12 * - + 45 + 99 + - NULLIF ( - 99, + CAST( NULL AS SIGNED ) + 49 + + + 99 ) AS col1, COALESCE ( - - 2, - COUNT( * ) + - - 94 )
----
-342
2

skipif mysql # not compatible
query II rowsort label-1614
SELECT ALL 12 * - + 45 + 99 + - NULLIF ( - 99, + CAST ( NULL AS INTEGER ) + 49 + + + 99 ) AS col1, COALESCE ( - - 2, - COUNT ( * ) + - - 94 )
----
-342
2

query II rowsort
SELECT + 48 AS col0, + 68
----
48
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT ALL + MIN( ALL + + 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL + MIN ( ALL + + 86 ) AS col0
----
86

query I rowsort
SELECT DISTINCT - 27 * - 58 + - 47 AS col2
----
1519

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1618
SELECT DISTINCT + ( - - CASE - 79 WHEN + - 32 + 85 THEN NULL WHEN 85 THEN 42 WHEN + 47 + 73 * 64 + + 52 THEN NULL ELSE NULL END ) * ( - 48 ) + + AVG ( DISTINCT - CAST( + - 52 AS SIGNED ) ) / - 88 - - - 26 - + - COUNT( DISTINCT - 49 ) + - 11 + - 54 / 55 / - COUNT( * ) * + 10 * + + CAST( NULL AS SIGNED ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT DISTINCT + ( - - CASE - 79 WHEN + - 32 + 85 THEN NULL WHEN 85 THEN 42 WHEN + 47 + 73 * 64 + + 52 THEN NULL ELSE NULL END ) * ( - 48 ) + + AVG ( DISTINCT - CAST ( + - 52 AS INTEGER ) ) / - 88 - - - 26 - + - COUNT ( DISTINCT - 49 ) + - 11 + - 54 / 55 / - COUNT ( * ) * + 10 * + + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1619
SELECT ALL + 34, + COUNT( * ) col2
----
34
1

skipif mysql # not compatible
query II rowsort label-1619
SELECT ALL + 34, + COUNT ( * ) col2
----
34
1

query II rowsort
SELECT + 13 col2, - 51 * - 19
----
13
969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1621
SELECT + ( CAST( COUNT( * ) AS SIGNED ) ) * 86 + ( - 12 ) - + 3 + + + 20 DIV 48
----
71

skipif mysql # not compatible
query I rowsort label-1621
SELECT + ( CAST ( COUNT ( * ) AS INTEGER ) ) * 86 + ( - 12 ) - + 3 + + + 20 / 48
----
71

query I rowsort
SELECT COALESCE ( + - 34, + - 92 ) AS col0
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-1623
SELECT + 78 DIV - 52 col1
----
-1

skipif mysql # not compatible
query I rowsort label-1623
SELECT + 78 / - 52 col1
----
-1

query I rowsort
SELECT NULLIF ( 57, ( - 29 ) )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1625
SELECT DISTINCT 65 * + - ( - + ( + CASE - COALESCE ( 41, - 18, 19 * + + 23, 87 + - + 38 * COALESCE ( + 31, + 89 / + 25 ) + + 63 + - MAX( + 69 ) ) WHEN + COALESCE ( + + 48, 34, 28 * - AVG ( - + NULLIF ( - 81, - - 81 + + 20 ) ) + - + COUNT( * ) * + ( - 82 ) + - 7 - 78 ) * SUM( ALL 17 ) THEN 45 WHEN CAST( NULL AS SIGNED ) * + 26 - 55 + - 42 * + CASE - 24 WHEN - ( COUNT( * ) ) * - MAX( - + 74 ) THEN - 34 * + ( + 79 * 94 ) WHEN 90 THEN NULL ELSE 27 END * 72 THEN NULL WHEN + COUNT( * ) THEN NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT 65 * + - ( - + ( + CASE - COALESCE ( 41, - 18, 19 * + + 23, 87 + - + 38 * COALESCE ( + 31, + 89 / + 25 ) + + 63 + - MAX ( + 69 ) ) WHEN + COALESCE ( + + 48, 34, 28 * - AVG ( - + NULLIF ( - 81, - - 81 + + 20 ) ) + - + COUNT ( * ) * + ( - 82 ) + - 7 - 78 ) * SUM ( ALL 17 ) THEN 45 WHEN CAST ( NULL AS INTEGER ) * + 26 - 55 + - 42 * + CASE - 24 WHEN - ( COUNT ( * ) ) * - MAX ( - + 74 ) THEN - 34 * + ( + 79 * 94 ) WHEN 90 THEN NULL ELSE 27 END * 72 THEN NULL WHEN + COUNT ( * ) THEN NULL END ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1626
SELECT + - COALESCE ( + 96, - 27 * 27 - + 99 * - 39 * - - 20 + - - 75 ) * + 6 + + COUNT( ALL + 93 ), - 87 AS col0
----
-575
-87

skipif mysql # not compatible
query II rowsort label-1626
SELECT + - COALESCE ( + 96, - 27 * 27 - + 99 * - 39 * - - 20 + - - 75 ) * + 6 + + COUNT ( ALL + 93 ), - 87 AS col0
----
-575
-87

query I rowsort
SELECT + 80 + + + 56
----
136

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

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

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

skipif mysql # not compatible
query I rowsort label-1629
SELECT + 93 + + COUNT ( * ) AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1630
SELECT - 63 - COUNT( + CAST( - + COALESCE ( + 48, + - 7 * + 42 ) AS SIGNED ) ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-1630
SELECT - 63 - COUNT ( + CAST ( - + COALESCE ( + 48, + - 7 * + 42 ) AS INTEGER ) ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT + ( - ( + + 4 ) ) + - COUNT( * ) col0
----
-5

skipif mysql # not compatible
query I rowsort label-1631
SELECT + ( - ( + + 4 ) ) + - COUNT ( * ) col0
----
-5

query I rowsort
SELECT DISTINCT + 34 * - 54 * 46
----
-84456

query I rowsort
SELECT - 52 * - + 55 AS col1
----
2860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1634
SELECT DISTINCT ( COALESCE ( + CASE + - 6 WHEN + COUNT( * ) - + 64 THEN NULL ELSE - ( + 75 ) END, 36 + + COALESCE ( + 19, - COUNT( * ) ) + + 92 + + 99 DIV - 78 * - 71 DIV - + COUNT( * ) * - 69 * + - SUM( DISTINCT + 7 ) * 29 * + COALESCE ( 24, + - COUNT( * ) ) * 36 ) ) + 99, 76 * - - CAST( 36 AS SIGNED ) AS col2
----
24
2736

skipif mysql # not compatible
query II rowsort label-1634
SELECT DISTINCT ( COALESCE ( + CASE + - 6 WHEN + COUNT ( * ) - + 64 THEN NULL ELSE - ( + 75 ) END, 36 + + COALESCE ( + 19, - COUNT ( * ) ) + + 92 + + 99 / - 78 * - 71 / - + COUNT ( * ) * - 69 * + - SUM ( DISTINCT + 7 ) * 29 * + COALESCE ( 24, + - COUNT ( * ) ) * 36 ) ) + 99, 76 * - - CAST ( 36 AS INTEGER ) AS col2
----
24
2736

query I rowsort
SELECT ALL COALESCE ( 85, - 72 )
----
85

query I rowsort
SELECT ALL + ( + 60 ) + 40 * - 33 * + 29
----
-38220

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1637
SELECT + 69 * COUNT( * ), - 87 DIV + 89 * + 74 - + + 22 AS col0
----
69
-22

skipif mysql # not compatible
query II rowsort label-1637
SELECT + 69 * COUNT ( * ), - 87 / + 89 * + 74 - + + 22 AS col0
----
69
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1638
SELECT + MAX( + 3 ) DIV + - 44
----
0

skipif mysql # not compatible
query I rowsort label-1638
SELECT + MAX ( + 3 ) / + - 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT DISTINCT + 49 + SUM( + 60 ) * + COALESCE ( + COUNT( * ), 13 )
----
109

skipif mysql # not compatible
query I rowsort label-1639
SELECT DISTINCT + 49 + SUM ( + 60 ) * + COALESCE ( + COUNT ( * ), 13 )
----
109

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

skipif mysql # not compatible
query II rowsort label-1640
SELECT 0, CAST ( NULL AS INTEGER ) AS col1
----
0
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1641
SELECT - COUNT( * ) DIV 52 * + - 70
----
0

skipif mysql # not compatible
query I rowsort label-1641
SELECT - COUNT ( * ) / 52 * + - 70
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1642
SELECT DISTINCT + 99 DIV - + 27 + + 74 + + 34 * - 9 * - 47 * - 53
----
-762175

skipif mysql # not compatible
query I rowsort label-1642
SELECT DISTINCT + 99 / - + 27 + + 74 + + 34 * - 9 * - 47 * - 53
----
-762175

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT ALL 52 DIV 83 + - - 96 * - + 58 - - + 78
----
-5490

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL 52 / 83 + - - 96 * - + 58 - - + 78
----
-5490

onlyif mysql # DIV for integer division: 
query I rowsort label-1644
SELECT - 91 DIV + + 13 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-1644
SELECT - 91 / + + 13 AS col1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1645
SELECT ALL SUM( ALL 54 ) DIV 87 + + - 73
----
-73

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL SUM ( ALL 54 ) / 87 + + - 73
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-1646
SELECT DISTINCT + COUNT( * ) AS col2, NULLIF ( - MAX( ALL + 10 ), 39 )
----
1
-10

skipif mysql # not compatible
query II rowsort label-1646
SELECT DISTINCT + COUNT ( * ) AS col2, NULLIF ( - MAX ( ALL + 10 ), 39 )
----
1
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1647
SELECT ALL + 60 * - NULLIF ( - CAST( NULL AS SIGNED ), 51 * 70 * 62 / + 52 * + 58 / 90 - CAST( + 44 AS SIGNED ) ) AS col2, 35
----
NULL
35

skipif mysql # not compatible
query II rowsort label-1647
SELECT ALL + 60 * - NULLIF ( - CAST ( NULL AS INTEGER ), 51 * 70 * 62 / + 52 * + 58 / 90 - CAST ( + 44 AS INTEGER ) ) AS col2, 35
----
NULL
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT - MAX( - 41 ) + - ( + 75 ) * - 74 + + 75
----
5666

skipif mysql # not compatible
query I rowsort label-1648
SELECT - MAX ( - 41 ) + - ( + 75 ) * - 74 + + 75
----
5666

query I rowsort
SELECT + 79 + 63 AS col1
----
142

query I rowsort
SELECT ALL + ( + CASE - 88 WHEN + ( 98 ) + 70 + 11 * 86 THEN + - 8 + AVG ( DISTINCT 64 ) END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1651
SELECT ALL 26 DIV - - 99 - 35
----
-35

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL 26 / - - 99 - 35
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1652
SELECT - 12, + CAST( NULL AS SIGNED ) + - 76 / - + 97 * 97 AS col1
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-1652
SELECT - 12, + CAST ( NULL AS INTEGER ) + - 76 / - + 97 * 97 AS col1
----
-12
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT COUNT( * ) + - COUNT( * ) - - + 53 * 20 AS col2
----
1060

skipif mysql # not compatible
query I rowsort label-1653
SELECT COUNT ( * ) + - COUNT ( * ) - - + 53 * 20 AS col2
----
1060

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT + MIN( - 87 ) * 34 AS col2
----
-2958

skipif mysql # not compatible
query I rowsort label-1656
SELECT + MIN ( - 87 ) * 34 AS col2
----
-2958

query I rowsort
SELECT 88 * + 64 col2
----
5632

onlyif mysql # aggregate syntax: 
query II rowsort label-1658
SELECT DISTINCT COUNT( * ), + 5 col1
----
1
5

skipif mysql # not compatible
query II rowsort label-1658
SELECT DISTINCT COUNT ( * ), + 5 col1
----
1
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1659
SELECT ( 99 ) * + CAST( NULL AS SIGNED ) + - - 29 * + 70 * + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1659
SELECT ( 99 ) * + CAST ( NULL AS INTEGER ) + - - 29 * + 70 * + 66 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1660
SELECT + COALESCE ( 44, 6 - 78 * + 23 * 43 ) + + 95 + + COUNT( * ) + - CAST( - - 86 AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-1660
SELECT + COALESCE ( 44, 6 - 78 * + 23 * 43 ) + + 95 + + COUNT ( * ) + - CAST ( - - 86 AS INTEGER )
----
54

query I rowsort
SELECT + 61 + + - 60
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1662
SELECT DISTINCT + 85, + MIN( ALL + 48 ) AS col0
----
85
48

skipif mysql # not compatible
query II rowsort label-1662
SELECT DISTINCT + 85, + MIN ( ALL + 48 ) AS col0
----
85
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT ALL + 5 + + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL + 5 + + COUNT ( * )
----
6

query II rowsort
SELECT ALL 15 col2, 78 * + + 68
----
15
5304

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT + NULLIF ( - - 91, + 72 * - ( 21 ) ) * - 20 * - + COUNT( * ) AS col2
----
1820

skipif mysql # not compatible
query I rowsort label-1665
SELECT + NULLIF ( - - 91, + 72 * - ( 21 ) ) * - 20 * - + COUNT ( * ) AS col2
----
1820

onlyif mysql # DIV for integer division: 
query I rowsort label-1666
SELECT ALL ( - 26 ) DIV 11
----
-2

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL ( - 26 ) / 11
----
-2

query I rowsort
SELECT ALL 10 + + 16 AS col2
----
26

query I rowsort
SELECT - 80 - 7 + COALESCE ( + 17, + + COALESCE ( + 37, - ( + 51 ) ), - ( - - 26 ) )
----
-70

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1670
SELECT ALL 64 + - - COUNT( * ) AS col2, 42 * 48 * COUNT( ALL - 95 ) AS col0
----
65
2016

skipif mysql # not compatible
query II rowsort label-1670
SELECT ALL 64 + - - COUNT ( * ) AS col2, 42 * 48 * COUNT ( ALL - 95 ) AS col0
----
65
2016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1671
SELECT 28 - + + 94 / 63 + 39 + + 72 + - CAST( NULL AS SIGNED ) * + - ( + - 81 ) + 54 * - 46 + - - 2 / - CAST( NULL AS SIGNED ) * + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1671
SELECT 28 - + + 94 / 63 + 39 + + 72 + - CAST ( NULL AS INTEGER ) * + - ( + - 81 ) + 54 * - 46 + - - 2 / - CAST ( NULL AS INTEGER ) * + 91 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT ALL 57 + 98 * SUM( ALL + 87 )
----
8583

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL 57 + 98 * SUM ( ALL + 87 )
----
8583

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT ALL + 36 + - 93 * - + ( COUNT( * ) ) + 88 col2
----
217

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL + 36 + - 93 * - + ( COUNT ( * ) ) + 88 col2
----
217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1675
SELECT CAST( - 47 AS SIGNED ) - + - 55 + - 61 + + 53 * 47 col2
----
2438

skipif mysql # not compatible
query I rowsort label-1675
SELECT CAST ( - 47 AS INTEGER ) - + - 55 + - 61 + + 53 * 47 col2
----
2438

query I rowsort
SELECT DISTINCT + 18 + + 3 - - 81
----
102

query I rowsort
SELECT DISTINCT 56 * + 65
----
3640

query II rowsort
SELECT ALL 74 - + 46, - 8 + - 34 col2
----
28
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1679
SELECT 88 * + 78 * CAST( - 16 AS SIGNED ) AS col1
----
-109824

skipif mysql # not compatible
query I rowsort label-1679
SELECT 88 * + 78 * CAST ( - 16 AS INTEGER ) AS col1
----
-109824

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1680
SELECT + 29 * 53 * + + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) + - - 65 + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1680
SELECT + 29 * 53 * + + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) + - - 65 + 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1681
SELECT ALL - 1 DIV - + ( + - NULLIF ( - 17, + COALESCE ( + 41, - MAX( ALL - + 4 ) DIV AVG ( DISTINCT + 21 ) ) * 47 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL - 1 / - + ( + - NULLIF ( - 17, + COALESCE ( + 41, - MAX ( ALL - + 4 ) / AVG ( DISTINCT + 21 ) ) * 47 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT 78 * SUM( - 63 ) AS col0
----
-4914

skipif mysql # not compatible
query I rowsort label-1682
SELECT 78 * SUM ( - 63 ) AS col0
----
-4914

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT ALL - CASE 52 WHEN 29 * - + 33 * + - 55 / 50 + 49 THEN + - 30 * - MIN( + + 16 ) + + AVG ( - 82 ) / + ( 41 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL - CASE 52 WHEN 29 * - + 33 * + - 55 / 50 + 49 THEN + - 30 * - MIN ( + + 16 ) + + AVG ( - 82 ) / + ( 41 ) END AS col0
----
NULL

query I rowsort
SELECT ALL - ( + + 7 ) * - 4 AS col0
----
28

query I rowsort
SELECT 33 + + 37 + 67 * - - 12 * - COALESCE ( + + ( 48 ), 30 * 97 * 39, 6 ) + + 82
----
-38440

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1686
SELECT ALL - COUNT( * ) DIV - 65 AS col0, - 93
----
0
-93

skipif mysql # not compatible
query II rowsort label-1686
SELECT ALL - COUNT ( * ) / - 65 AS col0, - 93
----
0
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-1687
SELECT DISTINCT - MIN( DISTINCT 0 ) AS col0, 25 + - - 90
----
0
115

skipif mysql # not compatible
query II rowsort label-1687
SELECT DISTINCT - MIN ( DISTINCT 0 ) AS col0, 25 + - - 90
----
0
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1688
SELECT + - 88 * NULLIF ( 13, - CAST( - + 77 AS SIGNED ) + + 37 ) - - 34 + - ( - ( - 31 ) ) + + COUNT( * ) + 25 * + 86 * - 0 AS col1
----
-1140

skipif mysql # not compatible
query I rowsort label-1688
SELECT + - 88 * NULLIF ( 13, - CAST ( - + 77 AS INTEGER ) + + 37 ) - - 34 + - ( - ( - 31 ) ) + + COUNT ( * ) + 25 * + 86 * - 0 AS col1
----
-1140

onlyif mysql # DIV for integer division: 
query I rowsort label-1689
SELECT 56 DIV + 84 + + 91
----
91

skipif mysql # not compatible
query I rowsort label-1689
SELECT 56 / + 84 + + 91
----
91

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1692
SELECT DISTINCT - + MIN( 69 ) col1, - ( + - 82 ) / CAST( NULL AS SIGNED ) + 99 + - 98
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-1692
SELECT DISTINCT - + MIN ( 69 ) col1, - ( + - 82 ) / CAST ( NULL AS INTEGER ) + 99 + - 98
----
-69
NULL

query II rowsort
SELECT + 62 * + 37, 85 AS col0
----
2294
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT - 36 + - MAX( - 64 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-1694
SELECT - 36 + - MAX ( - 64 ) AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1695
SELECT ALL - + 66 + - NULLIF ( - CAST( NULL AS SIGNED ), - 52 + 39 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL - + 66 + - NULLIF ( - CAST ( NULL AS INTEGER ), - 52 + 39 ) AS col0
----
NULL

query II rowsort
SELECT ALL - 34 + - 58, 55 AS col0
----
-92
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT - 61 * + COUNT( * ) - + + CASE 10 WHEN + - 4 THEN - ( + NULLIF ( - COUNT( * ), - NULLIF ( - + 23, + 3 + 13 ) ) ) * + + 68 + + 29 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1697
SELECT - 61 * + COUNT ( * ) - + + CASE 10 WHEN + - 4 THEN - ( + NULLIF ( - COUNT ( * ), - NULLIF ( - + 23, + 3 + 13 ) ) ) * + + 68 + + 29 END AS col0
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT ALL COUNT( ALL 74 ) * ( - COALESCE ( 60, + 97 ) ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL COUNT ( ALL 74 ) * ( - COALESCE ( 60, + 97 ) ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT 5 * COUNT( * ) - + 40 col1
----
-35

skipif mysql # not compatible
query I rowsort label-1701
SELECT 5 * COUNT ( * ) - + 40 col1
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1702
SELECT ALL - - ( + 77 ) + + - CAST( ( + 30 ) AS SIGNED ) + + MAX( + 97 ) + CAST( NULL AS SIGNED ) * - + MIN( DISTINCT + + 45 ) * + 74 + + + NULLIF ( - + 91, 7 ) * COUNT( * ) * + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL - - ( + 77 ) + + - CAST ( ( + 30 ) AS INTEGER ) + + MAX ( + 97 ) + CAST ( NULL AS INTEGER ) * - + MIN ( DISTINCT + + 45 ) * + 74 + + + NULLIF ( - + 91, 7 ) * COUNT ( * ) * + 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT MIN( DISTINCT 58 ) - + + 29 * - 56 * - MIN( 3 ) AS col1
----
-4814

skipif mysql # not compatible
query I rowsort label-1703
SELECT MIN ( DISTINCT 58 ) - + + 29 * - 56 * - MIN ( 3 ) AS col1
----
-4814

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1704
SELECT ALL - - 3 * 37 DIV + 24 - COALESCE ( + 55, + ( COUNT( * ) ), 9 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL - - 3 * 37 / + 24 - COALESCE ( + 55, + ( COUNT ( * ) ), 9 ) AS col1
----
-51

query I rowsort
SELECT 37 + + - 12 - + NULLIF ( + ( 93 ), 96 )
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1706
SELECT 73 - - COUNT( * ) * COALESCE ( + 77, - 96 DIV - 72 + - 28 + 46 - 35, - + 47 ) + 1 + 64 * - 50, - 72 AS col0
----
-3049
-72

skipif mysql # not compatible
query II rowsort label-1706
SELECT 73 - - COUNT ( * ) * COALESCE ( + 77, - 96 / - 72 + - 28 + 46 - 35, - + 47 ) + 1 + 64 * - 50, - 72 AS col0
----
-3049
-72

query I rowsort
SELECT ALL + 4 + + 69 - + + 93 * 4
----
-299

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT ALL 10 + COUNT( * ) + - + 63 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL 10 + COUNT ( * ) + - + 63 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-1709
SELECT DISTINCT 69 + + + 52 * + 99, 9 * 94 + COUNT( * ) AS col0
----
5217
847

skipif mysql # not compatible
query II rowsort label-1709
SELECT DISTINCT 69 + + + 52 * + 99, 9 * 94 + COUNT ( * ) AS col0
----
5217
847

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1710
SELECT CASE - 79 WHEN + 22 THEN NULL ELSE MAX( - ( 99 ) ) + + + 18 DIV - 82 END + + 64 col1
----
-35

skipif mysql # not compatible
query I rowsort label-1710
SELECT CASE - 79 WHEN + 22 THEN NULL ELSE MAX ( - ( 99 ) ) + + + 18 / - 82 END + + 64 col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT SUM( 8 ) + + - 86 * 37 + 24 AS col0
----
-3150

skipif mysql # not compatible
query I rowsort label-1711
SELECT SUM ( 8 ) + + - 86 * 37 + 24 AS col0
----
-3150

query I rowsort
SELECT ALL 74 - - 49 AS col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT DISTINCT 9 - - + COALESCE ( 43, COUNT( DISTINCT + 69 ) + + COALESCE ( + + 88, - 35 ), + SUM( - + 2 ) ) col1
----
52

skipif mysql # not compatible
query I rowsort label-1713
SELECT DISTINCT 9 - - + COALESCE ( 43, COUNT ( DISTINCT + 69 ) + + COALESCE ( + + 88, - 35 ), + SUM ( - + 2 ) ) col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT NULLIF ( COUNT( * ), - 40 ) + 13 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-1714
SELECT NULLIF ( COUNT ( * ), - 40 ) + 13 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT DISTINCT 3 * - COUNT( * ) * 48
----
-144

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT 3 * - COUNT ( * ) * 48
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1716
SELECT DISTINCT + 49 AS col2, 47 * - - 32 * + - CAST( NULL AS SIGNED ) / 29
----
49
NULL

skipif mysql # not compatible
query II rowsort label-1716
SELECT DISTINCT + 49 AS col2, 47 * - - 32 * + - CAST ( NULL AS INTEGER ) / 29
----
49
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT DISTINCT ( - 82 ) * 65 - + 15 * - MIN( - 63 )
----
-6275

skipif mysql # not compatible
query I rowsort label-1717
SELECT DISTINCT ( - 82 ) * 65 - + 15 * - MIN ( - 63 )
----
-6275

query II rowsort
SELECT ALL + 62 AS col1, + 98 AS col2
----
62
98

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

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

query I rowsort
SELECT DISTINCT 67 * 20
----
1340

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1722
SELECT + COUNT( * ) * - 90 + ( MAX( + - 8 ) ) + - - 30 + CASE + + 83 WHEN 84 / - 79 * + NULLIF ( - 58, + + CASE - COUNT( * ) WHEN + 49 THEN + COUNT( * ) ELSE - 74 END * 35 * COUNT( * ) ) * ( + - 96 ) / + COALESCE ( - 83, - + CASE - 75 WHEN + - AVG ( - 16 ) THEN + - 94 + - ( - 96 ) ELSE NULL END ) THEN - 52 WHEN + 71 THEN SUM( DISTINCT - 76 ) END + + 80 * 19 * + ( + + 26 ) * + ( + COALESCE ( - ( + 88 ), - 29 * - - CASE + 49 WHEN + + 42 THEN - 41 WHEN - - 43 THEN + 41 WHEN 35 THEN - 25 WHEN + CAST( + 98 AS SIGNED ) / + 38 + + 20 THEN NULL END / COUNT( * ) + 74 * 23, - ( + COUNT( * ) ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT + COUNT ( * ) * - 90 + ( MAX ( + - 8 ) ) + - - 30 + CASE + + 83 WHEN 84 / - 79 * + NULLIF ( - 58, + + CASE - COUNT ( * ) WHEN + 49 THEN + COUNT ( * ) ELSE - 74 END * 35 * COUNT ( * ) ) * ( + - 96 ) / + COALESCE ( - 83, - + CASE - 75 WHEN + - AVG ( - 16 ) THEN + - 94 + - ( - 96 ) ELSE NULL END ) THEN - 52 WHEN + 71 THEN SUM ( DISTINCT - 76 ) END + + 80 * 19 * + ( + + 26 ) * + ( + COALESCE ( - ( + 88 ), - 29 * - - CASE + 49 WHEN + + 42 THEN - 41 WHEN - - 43 THEN + 41 WHEN 35 THEN - 25 WHEN + CAST ( + 98 AS INTEGER ) / + 38 + + 20 THEN NULL END / COUNT ( * ) + 74 * 23, - ( + COUNT ( * ) ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1723
SELECT DISTINCT - CAST( 84 AS SIGNED ) DIV 37
----
-2

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT - CAST ( 84 AS INTEGER ) / 37
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT ALL - - 55 * + - NULLIF ( + COUNT( * ), - 0 * - 89 * + + 73 + 26 )
----
-55

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL - - 55 * + - NULLIF ( + COUNT ( * ), - 0 * - 89 * + + 73 + 26 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT - 82 + + NULLIF ( + + 91, + 6 - - AVG ( ALL 88 ) + + 70 + + COUNT( * ) ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-1725
SELECT - 82 + + NULLIF ( + + 91, + 6 - - AVG ( ALL 88 ) + + 70 + + COUNT ( * ) ) AS col2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1726
SELECT - + ( + 23 ) * + COUNT( ALL - + 85 ) * - 91 + + 37 + 54 - + 70 DIV ( + 41 ) + - COUNT( + 3 )
----
2182

skipif mysql # not compatible
query I rowsort label-1726
SELECT - + ( + 23 ) * + COUNT ( ALL - + 85 ) * - 91 + + 37 + 54 - + 70 / ( + 41 ) + - COUNT ( + 3 )
----
2182

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT ALL - + 6 * + ( + 75 ) * COUNT( * ) + 89 - - 15 + 20
----
-326

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL - + 6 * + ( + 75 ) * COUNT ( * ) + 89 - - 15 + 20
----
-326

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT + - MAX( + 50 ) * - 76 + 58 * - - 57 * + ( + 90 ) + ( + 69 )
----
301409

skipif mysql # not compatible
query I rowsort label-1728
SELECT + - MAX ( + 50 ) * - 76 + 58 * - - 57 * + ( + 90 ) + ( + 69 )
----
301409

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

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

query I rowsort
SELECT - - 17 + - 94 - + 64 * - - 84 col2
----
-5453

query I rowsort
SELECT DISTINCT - 11 * 69 * + 75 * + 75 + - 16 + + 73 * - 62 * + - 32
----
-4124559

query I rowsort
SELECT DISTINCT - 95 + 79 col2
----
-16

query II rowsort
SELECT 97 col2, 95
----
97
95

query I rowsort
SELECT ALL - 36 + - + 78 col0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT DISTINCT - MIN( - 23 ) * + - 72 - 92 - + 16 * - 38 * - ( - COUNT( * ) )
----
-1140

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT - MIN ( - 23 ) * + - 72 - 92 - + 16 * - 38 * - ( - COUNT ( * ) )
----
-1140

onlyif mysql # aggregate syntax: 
query II rowsort label-1736
SELECT ALL COUNT( + 37 ), 55 col0
----
1
55

skipif mysql # not compatible
query II rowsort label-1736
SELECT ALL COUNT ( + 37 ), 55 col0
----
1
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1737
SELECT DISTINCT - 18 - + 83 / + - ( 44 ) + + 11 / - - COUNT( * ) * - ( - 92 ) + - CAST( NULL AS SIGNED ) * 35 + + CAST( NULL AS SIGNED ) + + 65 / + + 23 * - 54, 16 * - 83 + + CASE - + COUNT( * ) WHEN - - ( - ( - 59 ) ) THEN + 48 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1737
SELECT DISTINCT - 18 - + 83 / + - ( 44 ) + + 11 / - - COUNT ( * ) * - ( - 92 ) + - CAST ( NULL AS INTEGER ) * 35 + + CAST ( NULL AS INTEGER ) + + 65 / + + 23 * - 54, 16 * - 83 + + CASE - + COUNT ( * ) WHEN - - ( - ( - 59 ) ) THEN + 48 END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT DISTINCT CASE - NULLIF ( 90, 68 + + 59 ) WHEN + - 69 THEN NULL WHEN COUNT( * ) THEN - COALESCE ( 95, + 32 + + - 86 - - 95, - 57 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1738
SELECT DISTINCT CASE - NULLIF ( 90, 68 + + 59 ) WHEN + - 69 THEN NULL WHEN COUNT ( * ) THEN - COALESCE ( 95, + 32 + + - 86 - - 95, - 57 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 36 - + 71
----
-107

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

skipif mysql # not compatible
query I rowsort label-1740
SELECT - COUNT ( ALL + + 22 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT - CASE - 92 WHEN - - 30 * 56 * + + 82 * - 85 - + CASE - COALESCE ( + - 44, - 5 * - 41, + COUNT( * ) ) WHEN 92 THEN - - COUNT( * ) * + 17 - - - 30 WHEN 58 THEN NULL END THEN NULL WHEN - - 15 THEN NULL ELSE - - COUNT( * ) END - 88 - + 39 AS col0
----
-128

skipif mysql # not compatible
query I rowsort label-1741
SELECT - CASE - 92 WHEN - - 30 * 56 * + + 82 * - 85 - + CASE - COALESCE ( + - 44, - 5 * - 41, + COUNT ( * ) ) WHEN 92 THEN - - COUNT ( * ) * + 17 - - - 30 WHEN 58 THEN NULL END THEN NULL WHEN - - 15 THEN NULL ELSE - - COUNT ( * ) END - 88 - + 39 AS col0
----
-128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT - 56 - - + CASE - 34 WHEN - 71 THEN - - 25 * + ( 99 ) END + - COUNT( * ) * + 0 + - 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1743
SELECT - 56 - - + CASE - 34 WHEN - 71 THEN - - 25 * + ( 99 ) END + - COUNT ( * ) * + 0 + - 79 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT - SUM( - - 77 ) * - 12
----
924

skipif mysql # not compatible
query I rowsort label-1745
SELECT - SUM ( - - 77 ) * - 12
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT DISTINCT - MIN( - 91 ) * - + NULLIF ( + - 46, - - 34 ) - 92 col2
----
4094

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT - MIN ( - 91 ) * - + NULLIF ( + - 46, - - 34 ) - 92 col2
----
4094

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1748
SELECT DISTINCT NULLIF ( - COALESCE ( - + COALESCE ( + 48, + 25 + 61 * + 41 * + - 43, 1 ), CASE + COUNT( * ) WHEN 20 * + - ( - 4 ) * - ( + 0 ) + CAST( COUNT( * ) AS SIGNED ) * - ( + CAST( NULL AS SIGNED ) ) THEN NULL WHEN - COUNT( * ) / + NULLIF ( + - 44, 77 + - + 78 ) / + 79 THEN + + 67 + + COUNT( * ) + - - 3 * - CASE - 30 WHEN - 90 + - 92 + + 95 * 48 * - AVG ( ALL - 38 ) THEN + 70 - + 53 + + - 12 * + + 46 WHEN + ( ( - 91 ) ) THEN NULL END + 82 END, - 79 ), + - ( - 64 ) * + + NULLIF ( + ( - 51 ), - 4 + - 65 ) * + 91 + - 19 + 28 / 52 )
----
48

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT NULLIF ( - COALESCE ( - + COALESCE ( + 48, + 25 + 61 * + 41 * + - 43, 1 ), CASE + COUNT ( * ) WHEN 20 * + - ( - 4 ) * - ( + 0 ) + CAST ( COUNT ( * ) AS INTEGER ) * - ( + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - COUNT ( * ) / + NULLIF ( + - 44, 77 + - + 78 ) / + 79 THEN + + 67 + + COUNT ( * ) + - - 3 * - CASE - 30 WHEN - 90 + - 92 + + 95 * 48 * - AVG ( ALL - 38 ) THEN + 70 - + 53 + + - 12 * + + 46 WHEN + ( ( - 91 ) ) THEN NULL END + 82 END, - 79 ), + - ( - 64 ) * + + NULLIF ( + ( - 51 ), - 4 + - 65 ) * + 91 + - 19 + 28 / 52 )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1749
SELECT ALL + 1 * 13 DIV - - 79 * - + 41
----
0

skipif mysql # not compatible
query I rowsort label-1749
SELECT ALL + 1 * 13 / - - 79 * - + 41
----
0

query II rowsort
SELECT - 2 - - 65 AS col0, - 74 AS col0
----
63
-74

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

query I rowsort
SELECT DISTINCT ( - + NULLIF ( + - 80, + 4 ) )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1753
SELECT + 96 DIV ( + 41 )
----
2

skipif mysql # not compatible
query I rowsort label-1753
SELECT + 96 / ( + 41 )
----
2

query I rowsort
SELECT + NULLIF ( + 64, + 67 + 61 + - 7 * 66 + - 10 ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT + - COUNT( DISTINCT - 22 ) - + - 34 * 23 + - 64 * - 55 AS col0
----
4301

skipif mysql # not compatible
query I rowsort label-1755
SELECT + - COUNT ( DISTINCT - 22 ) - + - 34 * 23 + - 64 * - 55 AS col0
----
4301

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1756
SELECT - 30 DIV + 50 + + 37 + + COUNT( 71 ), 50 + - 58 AS col1
----
38
-8

skipif mysql # not compatible
query II rowsort label-1756
SELECT - 30 / + 50 + + 37 + + COUNT ( 71 ), 50 + - 58 AS col1
----
38
-8

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

skipif mysql # not compatible
query I rowsort label-1757
SELECT DISTINCT + - COUNT ( * ) / - 97 * - + 31 * 75 + - + 51 AS col1
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1758
SELECT ALL - + COUNT( * ) DIV - 7 + 40 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL - + COUNT ( * ) / - 7 + 40 AS col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1759
SELECT DISTINCT - CAST( + - CAST( + - 16 AS SIGNED ) AS SIGNED ) * 7 DIV + 21 * - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT - CAST ( + - CAST ( + - 16 AS INTEGER ) AS INTEGER ) * 7 / + 21 * - COUNT ( * )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1760
SELECT DISTINCT + 57 DIV - 67 + + 92 + + 38 + - COUNT( * )
----
129

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT + 57 / - 67 + + 92 + + 38 + - COUNT ( * )
----
129

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

skipif mysql # not compatible
query I rowsort label-1761
SELECT + - CAST ( NULL AS REAL ) * - 90 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT ALL - - 29 * COALESCE ( COUNT( * ), - - 75 ) + - + 78 - + MAX( + 73 ) - + 35 * - 12 * + 8 + + - 77 + - - COUNT( * ) * + 95
----
3256

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL - - 29 * COALESCE ( COUNT ( * ), - - 75 ) + - + 78 - + MAX ( + 73 ) - + 35 * - 12 * + 8 + + - 77 + - - COUNT ( * ) * + 95
----
3256

query I rowsort
SELECT - 90 * - 6 + + NULLIF ( - 61, + 66 ) AS col1
----
479

query II rowsort
SELECT + - 68 * - CASE - + 31 WHEN - + 96 THEN 89 END AS col1, 81 col2
----
NULL
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1765
SELECT + 16 * ( 47 ) DIV - 17 - - 6 + + + 40 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1765
SELECT + 16 * ( 47 ) / - 17 - - 6 + + + 40 AS col0
----
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT ALL ( COUNT( 40 ) ) * + - COUNT( * ) * + + 66 + + ( + 66 ) * - + 41 + + 14 + - 72 + - ( + - 79 ) + + 92
----
-2659

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL ( COUNT ( 40 ) ) * + - COUNT ( * ) * + + 66 + + ( + 66 ) * - + 41 + + 14 + - 72 + - ( + - 79 ) + + 92
----
-2659

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT ALL - 13 * - COUNT( * ) + 9 + - + 9 - + 85
----
-72

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL - 13 * - COUNT ( * ) + 9 + - + 9 - + 85
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1769
SELECT + + CAST( - COUNT( ALL ( - 64 ) ) AS SIGNED ) - - 67
----
66

skipif mysql # not compatible
query I rowsort label-1769
SELECT + + CAST ( - COUNT ( ALL ( - 64 ) ) AS INTEGER ) - - 67
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT DISTINCT + ( + COUNT( + 25 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT + ( + COUNT ( + 25 ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT DISTINCT + 74 * - + 94 + - + COUNT( * ) AS col1
----
-6957

skipif mysql # not compatible
query I rowsort label-1771
SELECT DISTINCT + 74 * - + 94 + - + COUNT ( * ) AS col1
----
-6957

query I rowsort
SELECT 4 * - 89 + + + 0 * + 70 + + + 95
----
-261

query I rowsort
SELECT DISTINCT ( - + 21 ) AS col1
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-1774
SELECT ALL 98 DIV 81 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL 98 / 81 AS col1
----
1

query I rowsort
SELECT + 80 + - + 70 AS col0
----
10

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

skipif mysql # not compatible
query I rowsort label-1776
SELECT - SUM ( + 12 ) * + COUNT ( 80 ) AS col1
----
-12

query I rowsort
SELECT DISTINCT - 32 * 5 col1
----
-160

query I rowsort
SELECT ALL + 78 * + 83 * 71 AS col2
----
459654

query I rowsort
SELECT ALL - 14 * + 60 AS col1
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT + COUNT( * ) + - + NULLIF ( 5, 81 / 99 + - 46 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1780
SELECT + COUNT ( * ) + - + NULLIF ( 5, 81 / 99 + - 46 ) AS col2
----
-4

query I rowsort
SELECT 7 - - 80 + + 39 AS col2
----
126

query I rowsort
SELECT DISTINCT 56 * - 63 * - - 49 AS col0
----
-172872

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT 97 + + SUM( ALL - 43 ) col1
----
54

skipif mysql # not compatible
query I rowsort label-1783
SELECT 97 + + SUM ( ALL - 43 ) col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1784
SELECT 7 + - 73 + + 61 DIV MIN( - 43 ) * - 2
----
-64

skipif mysql # not compatible
query I rowsort label-1784
SELECT 7 + - 73 + + 61 / MIN ( - 43 ) * - 2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1785
SELECT 16 + + COALESCE ( 37, - 53 DIV - - 54 + + + 73 - - + 49 + - 1 + + - 16 + + ( CAST( NULL AS SIGNED ) ) * + 90 * ( + ( + COUNT( * ) ) ) + - COALESCE ( 97, - 43 ) - COUNT( * ) * + 52 DIV - NULLIF ( ( - COUNT( * ) ), + - COUNT( * ) - + 81 + - - 33 * + 61 ) * + 58 + + - ( + + 69 ) + - + 46, 2 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-1785
SELECT 16 + + COALESCE ( 37, - 53 / - - 54 + + + 73 - - + 49 + - 1 + + - 16 + + ( CAST ( NULL AS INTEGER ) ) * + 90 * ( + ( + COUNT ( * ) ) ) + - COALESCE ( 97, - 43 ) - COUNT ( * ) * + 52 / - NULLIF ( ( - COUNT ( * ) ), + - COUNT ( * ) - + 81 + - - 33 * + 61 ) * + 58 + + - ( + + 69 ) + - + 46, 2 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT ALL - 16 + 6 * + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL - 16 + 6 * + COUNT ( * )
----
-10

query I rowsort
SELECT 32 + - 97
----
-65

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1789
SELECT DISTINCT - CASE + 1 WHEN COUNT( * ) * 95 THEN 83 * 79 ELSE CAST( 69 AS SIGNED ) * 67 + 67 END + 40 AS col1
----
-4650

skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT - CASE + 1 WHEN COUNT ( * ) * 95 THEN 83 * 79 ELSE CAST ( 69 AS INTEGER ) * 67 + 67 END + 40 AS col1
----
-4650

query I rowsort
SELECT ALL + 43 + + 61
----
104

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT ALL - 80 + COUNT( * ) * + 99 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL - 80 + COUNT ( * ) * + 99 AS col2
----
19

query I rowsort
SELECT DISTINCT - 98 + - 67 AS col1
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1794
SELECT - 2 * + 55 + - CAST( + 48 AS SIGNED )
----
-158

skipif mysql # not compatible
query I rowsort label-1794
SELECT - 2 * + 55 + - CAST ( + 48 AS INTEGER )
----
-158

query I rowsort
SELECT DISTINCT + 35 + 46 AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1796
SELECT DISTINCT - CAST( 88 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT - CAST ( 88 AS INTEGER )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1797
SELECT - COALESCE ( + MIN( DISTINCT ( 67 ) ), + 27 + + COUNT( * ) ) * CAST( NULL AS DECIMAL ) - + 2 * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1797
SELECT - COALESCE ( + MIN ( DISTINCT ( 67 ) ), + 27 + + COUNT ( * ) ) * CAST ( NULL AS REAL ) - + 2 * 28
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT 17 DIV 35 - + 44
----
-44

skipif mysql # not compatible
query I rowsort label-1799
SELECT 17 / 35 - + 44
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT DISTINCT - CASE 66 WHEN 96 - COALESCE ( COUNT( * ), + COUNT( * ) ) THEN - 28 + + COALESCE ( 38, ( 81 ) + 53 * MAX( ALL + 33 ), + 48 + 98 * 66 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT - CASE 66 WHEN 96 - COALESCE ( COUNT ( * ), + COUNT ( * ) ) THEN - 28 + + COALESCE ( 38, ( 81 ) + 53 * MAX ( ALL + 33 ), + 48 + 98 * 66 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT 53 + - COALESCE ( - NULLIF ( 53, - COUNT( * ) ), + MIN( ALL + 64 ) - + 0 )
----
106

skipif mysql # not compatible
query I rowsort label-1801
SELECT 53 + - COALESCE ( - NULLIF ( 53, - COUNT ( * ) ), + MIN ( ALL + 64 ) - + 0 )
----
106

query I rowsort
SELECT ALL 11 * ( 54 * 84 ) AS col2
----
49896

query I rowsort
SELECT ALL + 36 - + 37
----
-1

query I rowsort
SELECT ( + 10 ) * - 18 + 66
----
-114

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

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

query I rowsort
SELECT ( 0 ) * - 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT + COUNT( * ) * 73 + - 95 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-1807
SELECT + COUNT ( * ) * 73 + - 95 AS col1
----
-22

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

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

query I rowsort
SELECT 7 + - 24 col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT DISTINCT CASE - 68 WHEN NULLIF ( - AVG ( + 36 ), 50 ) THEN + NULLIF ( + 21, - COUNT( * ) + 4 ) END / MIN( DISTINCT 30 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT CASE - 68 WHEN NULLIF ( - AVG ( + 36 ), 50 ) THEN + NULLIF ( + 21, - COUNT ( * ) + 4 ) END / MIN ( DISTINCT 30 ) AS col0
----
NULL

query I rowsort
SELECT ALL + ( - 99 ) + - 63
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1812
SELECT CAST( 65 AS SIGNED ) * 60
----
3900

skipif mysql # not compatible
query I rowsort label-1812
SELECT CAST ( 65 AS INTEGER ) * 60
----
3900

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT 87 - ( CASE - 49 WHEN + 39 THEN NULL WHEN 4 THEN NULL WHEN - 73 * COUNT( * ) THEN SUM( DISTINCT - 34 ) * 45 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1815
SELECT 87 - ( CASE - 49 WHEN + 39 THEN NULL WHEN 4 THEN NULL WHEN - 73 * COUNT ( * ) THEN SUM ( DISTINCT - 34 ) * 45 ELSE NULL END ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT CASE 13 WHEN - 18 THEN NULL WHEN COUNT( * ) / + 51 THEN 37 ELSE NULL END + + 76 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT CASE 13 WHEN - 18 THEN NULL WHEN COUNT ( * ) / + 51 THEN 37 ELSE NULL END + + 76 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1818
SELECT 6 DIV SUM( 48 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1818
SELECT 6 / SUM ( 48 ) AS col0
----
0

query I rowsort
SELECT 42 * 77
----
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT ALL - 11 + 26 * - CASE - COUNT( * ) WHEN COUNT( * ) * + 74 + + 72 THEN + COUNT( * ) ELSE + 70 + - 12 END AS col0
----
-1519

skipif mysql # not compatible
query I rowsort label-1820
SELECT ALL - 11 + 26 * - CASE - COUNT ( * ) WHEN COUNT ( * ) * + 74 + + 72 THEN + COUNT ( * ) ELSE + 70 + - 12 END AS col0
----
-1519

query I rowsort
SELECT ALL - ( - 89 ) + - 53
----
36

query I rowsort
SELECT ALL - + ( - 0 ) + 12 AS col2
----
12

query I rowsort
SELECT 2 - 88 * - 69 AS col0
----
6074

query I rowsort
SELECT + 53 - 88
----
-35

query I rowsort
SELECT ALL + + 44 + - 26
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT ALL - NULLIF ( SUM( 0 ), - 9 * + 76 )
----
0

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL - NULLIF ( SUM ( 0 ), - 9 * + 76 )
----
0

query I rowsort
SELECT 82 + 69
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT MIN( - 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-1828
SELECT MIN ( - 83 ) AS col2
----
-83

query I rowsort
SELECT - 60 * + 47 + - 94 AS col1
----
-2914

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

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

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

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

query I rowsort
SELECT DISTINCT - + 94 * 59 AS col1
----
-5546

query I rowsort
SELECT DISTINCT - + 77 * COALESCE ( + 25, 21 ) AS col0
----
-1925

query I rowsort
SELECT + 55 * + 82 AS col1
----
4510

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT ALL + 40 * + CASE + SUM( 1 ) + - 83 WHEN COUNT( * ) + 12 THEN - ( - 13 ) * - 95 END - + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL + 40 * + CASE + SUM ( 1 ) + - 83 WHEN COUNT ( * ) + 12 THEN - ( - 13 ) * - 95 END - + 2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1836
SELECT - 22 DIV ( 42 )
----
0

skipif mysql # not compatible
query I rowsort label-1836
SELECT - 22 / ( 42 )
----
0

query I rowsort
SELECT 74 * - 38 AS col2
----
-2812

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT COALESCE ( - CASE 80 WHEN - 93 + NULLIF ( + 25, MIN( + 8 ) * COUNT( * ) ) * - 24 THEN 39 END, + 52 + 93 ) * + 9 + + 69 AS col0
----
1374

skipif mysql # not compatible
query I rowsort label-1838
SELECT COALESCE ( - CASE 80 WHEN - 93 + NULLIF ( + 25, MIN ( + 8 ) * COUNT ( * ) ) * - 24 THEN 39 END, + 52 + 93 ) * + 9 + + 69 AS col0
----
1374

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT MAX( 24 ) col2
----
24

skipif mysql # not compatible
query I rowsort label-1839
SELECT MAX ( 24 ) col2
----
24

query I rowsort
SELECT - 33 + + + 33 + 47
----
47

query I rowsort
SELECT + 39 * + - 1 AS col1
----
-39

query I rowsort
SELECT ALL 45 * + 68 * + 33
----
100980

onlyif mysql # DIV for integer division: 
query I rowsort label-1843
SELECT DISTINCT - 69 DIV COALESCE ( 83, NULLIF ( + 4, + 36 ) * COALESCE ( + 24 * 75, + 44 ) + 41 * 47 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1843
SELECT DISTINCT - 69 / COALESCE ( 83, NULLIF ( + 4, + 36 ) * COALESCE ( + 24 * 75, + 44 ) + 41 * 47 ) AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT DISTINCT COALESCE ( 7, + COUNT( DISTINCT - 68 ), - NULLIF ( - 28, - AVG ( ALL 43 ) + 16 ) ) * + 74
----
518

skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT COALESCE ( 7, + COUNT ( DISTINCT - 68 ), - NULLIF ( - 28, - AVG ( ALL 43 ) + 16 ) ) * + 74
----
518

query I rowsort
SELECT ALL 98 + - + 17 AS col2
----
81

query I rowsort
SELECT ALL + 88 * - 57
----
-5016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1848
SELECT - CAST( - 71 AS SIGNED ) + + 91 AS col2
----
162

skipif mysql # not compatible
query I rowsort label-1848
SELECT - CAST ( - 71 AS INTEGER ) + + 91 AS col2
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1849
SELECT DISTINCT COALESCE ( CAST( NULL AS SIGNED ), - 59, - 26 ) * ( - 2 ) col1
----
118

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT COALESCE ( CAST ( NULL AS INTEGER ), - 59, - 26 ) * ( - 2 ) col1
----
118

query I rowsort
SELECT ALL 62 + 32 col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT + 73 - COUNT( - 90 ) col1
----
72

skipif mysql # not compatible
query I rowsort label-1851
SELECT + 73 - COUNT ( - 90 ) col1
----
72

query I rowsort
SELECT - NULLIF ( + 97, 32 ) AS col2
----
-97

query I rowsort
SELECT ALL 38 + + - 63
----
-25

query I rowsort
SELECT + 44 + - 46 + + 88 * - 53 AS col2
----
-4666

query I rowsort
SELECT + 49 - ( - 42 ) + 18 * - 82 col0
----
-1385

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT + 26 + + NULLIF ( + COUNT( * ), COUNT( * ) / 41 ) + - 97 col0
----
-70

skipif mysql # not compatible
query I rowsort label-1857
SELECT + 26 + + NULLIF ( + COUNT ( * ), COUNT ( * ) / 41 ) + - 97 col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT ALL COALESCE ( + COUNT( * ), 12 * + COUNT( - 71 ), + 12 * 65 ) + + 21
----
22

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL COALESCE ( + COUNT ( * ), 12 * + COUNT ( - 71 ), + 12 * 65 ) + + 21
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT ALL 2 + - 90 * COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL 2 + - 90 * COUNT ( * )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT DISTINCT COUNT( ALL + ( 30 ) ) + + 97 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT COUNT ( ALL + ( 30 ) ) + + 97 AS col2
----
98

query I rowsort
SELECT ALL 49 * + ( + ( + 13 ) )
----
637

query I rowsort
SELECT ALL 54 + + 19 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT + COUNT( * ) + - - 22
----
23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT ALL 93 + - SUM( DISTINCT + ( - 67 ) )
----
160

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL 93 + - SUM ( DISTINCT + ( - 67 ) )
----
160

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1865
SELECT DISTINCT 98 / - 14 * COUNT( * ) + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT 98 / - 14 * COUNT ( * ) + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + 37 + - - 28
----
65

query I rowsort
SELECT + - 30 * + 59 AS col0
----
-1770

query I rowsort
SELECT + - 24 * - - ( 26 )
----
-624

query I rowsort
SELECT ALL + 19 * - - 63 - + 26 AS col2
----
1171

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT + CASE WHEN NULLIF ( + 75, + 79 ) IS NULL THEN - 24 + - 74 * - 68 ELSE - 22 * + 31 + - NULLIF ( 17, - NULLIF ( 34, ( 58 ) ) ) * COUNT( * ) END
----
-699

skipif mysql # not compatible
query I rowsort label-1870
SELECT + CASE WHEN NULLIF ( + 75, + 79 ) IS NULL THEN - 24 + - 74 * - 68 ELSE - 22 * + 31 + - NULLIF ( 17, - NULLIF ( 34, ( 58 ) ) ) * COUNT ( * ) END
----
-699

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1871
SELECT + - CAST( NULL AS DECIMAL ) + - - COUNT( * ) * + 70 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1871
SELECT + - CAST ( NULL AS REAL ) + - - COUNT ( * ) * + 70 col0
----
NULL

query I rowsort
SELECT DISTINCT 38 - + + 30 + + 40
----
48

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

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

query I rowsort
SELECT + 13 * + 77 + 66
----
1067

query I rowsort
SELECT ALL + 95 - + 81 + - 54 col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1876
SELECT + 26 * - + NULLIF ( 54, CAST( NULL AS DECIMAL ) * + 26 + 8 * - ( 55 + 84 ) ) + + COUNT( * ) AS col1
----
-1403

skipif mysql # not compatible
query I rowsort label-1876
SELECT + 26 * - + NULLIF ( 54, CAST ( NULL AS REAL ) * + 26 + 8 * - ( 55 + 84 ) ) + + COUNT ( * ) AS col1
----
-1403

onlyif mysql # DIV for integer division: 
query I rowsort label-1877
SELECT ( 31 ) DIV - 25 + - 45 * - 11 AS col2
----
494

skipif mysql # not compatible
query I rowsort label-1877
SELECT ( 31 ) / - 25 + - 45 * - 11 AS col2
----
494

query I rowsort
SELECT + + 62 * 81 AS col0
----
5022

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1879
SELECT - 63 + - 47 + 68 - 56 * MIN( DISTINCT + 13 ) DIV CASE - 32 WHEN - 73 - 77 THEN NULL WHEN + 64 + - 74 THEN NULL ELSE - 81 + + 24 END AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-1879
SELECT - 63 + - 47 + 68 - 56 * MIN ( DISTINCT + 13 ) / CASE - 32 WHEN - 73 - 77 THEN NULL WHEN + 64 + - 74 THEN NULL ELSE - 81 + + 24 END AS col2
----
-30

query I rowsort
SELECT ALL + NULLIF ( - - 6, + 33 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1881
SELECT - 11 * - CAST( - 12 AS SIGNED ) + - 61
----
-193

skipif mysql # not compatible
query I rowsort label-1881
SELECT - 11 * - CAST ( - 12 AS INTEGER ) + - 61
----
-193

query I rowsort
SELECT ALL - 55 * + + 21
----
-1155

onlyif mysql # DIV for integer division: 
query I rowsort label-1883
SELECT - 10 DIV 46 * + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1883
SELECT - 10 / 46 * + 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT ALL - 93 * + - 91 + COUNT( * ) * 67 AS col0
----
8530

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL - 93 * + - 91 + COUNT ( * ) * 67 AS col0
----
8530

query I rowsort
SELECT - 27 + 68 + 92 AS col0
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT ALL 61 * + CASE 30 WHEN 8 THEN - 40 ELSE COUNT( ALL 37 ) END + - 15
----
46

skipif mysql # not compatible
query I rowsort label-1886
SELECT ALL 61 * + CASE 30 WHEN 8 THEN - 40 ELSE COUNT ( ALL 37 ) END + - 15
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT DISTINCT 98 * - + SUM( ALL + 37 ) + 82
----
-3544

skipif mysql # not compatible
query I rowsort label-1887
SELECT DISTINCT 98 * - + SUM ( ALL + 37 ) + 82
----
-3544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1888
SELECT - AVG ( ALL + 53 ) * - COALESCE ( - 90, 73 ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1888
SELECT - AVG ( ALL + 53 ) * - COALESCE ( - 90, 73 ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT COALESCE ( - + 71, - - 81 + 27 * - 40 ) AS col2
----
-71

query I rowsort
SELECT COALESCE ( + NULLIF ( - 15, 35 ), + 53 + + 74 )
----
-15

query I rowsort
SELECT - 98 * + - ( 47 ) + ( + 69 ) AS col0
----
4675

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT NULLIF ( - 65, - + 7 * - SUM( 81 ) ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-1892
SELECT NULLIF ( - 65, - + 7 * - SUM ( 81 ) ) AS col2
----
-65

query I rowsort
SELECT + 50 + + 35
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1894
SELECT ALL + 50 * + COUNT( * ) + ( - CAST( NULL AS SIGNED ) ) col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1895
SELECT + 26 + + - COALESCE ( - - MIN( DISTINCT - 87 ), - ( 39 ) DIV 53 + + 64 * - ( + NULLIF ( + 9, - ( - 66 ) DIV - 51 ) * 44 ), + 76 ) AS col0
----
113

skipif mysql # not compatible
query I rowsort label-1895
SELECT + 26 + + - COALESCE ( - - MIN ( DISTINCT - 87 ), - ( 39 ) / 53 + + 64 * - ( + NULLIF ( + 9, - ( - 66 ) / - 51 ) * 44 ), + 76 ) AS col0
----
113

query I rowsort
SELECT ALL ( - - 80 )
----
80

query I rowsort
SELECT ALL 84 * + 93 * ( 20 ) * - 10
----
-1562400

query I rowsort
SELECT ALL 2 * 41
----
82

query I rowsort
SELECT DISTINCT - - 27 * - ( - 58 ) * 63 AS col1
----
98658

query I rowsort
SELECT ALL - 90 * + 2 AS col0
----
-180

onlyif mysql # DIV for integer division: 
query I rowsort label-1901
SELECT - - 84 - ( + 41 ) DIV 34 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-1901
SELECT - - 84 - ( + 41 ) / 34 AS col2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1902
SELECT + - 79 * - CASE - + 41 WHEN - 77 THEN - 63 ELSE 70 + + 68 DIV 3 END AS col2
----
7268

skipif mysql # not compatible
query I rowsort label-1902
SELECT + - 79 * - CASE - + 41 WHEN - 77 THEN - 63 ELSE 70 + + 68 / 3 END AS col2
----
7268

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1903
SELECT + - 35 + - COUNT( * ) DIV - 87 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-1903
SELECT + - 35 + - COUNT ( * ) / - 87 AS col1
----
-35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT + COUNT( * ) * - 91 col1
----
-91

skipif mysql # not compatible
query I rowsort label-1905
SELECT + COUNT ( * ) * - 91 col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT ALL CASE - MIN( 45 ) WHEN + AVG ( 72 ) * 88 + - SUM( ALL - 0 ) THEN NULL ELSE - 72 END * - 19 AS col0
----
1368

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL CASE - MIN ( 45 ) WHEN + AVG ( 72 ) * 88 + - SUM ( ALL - 0 ) THEN NULL ELSE - 72 END * - 19 AS col0
----
1368

query I rowsort
SELECT ALL + CASE 29 WHEN - 71 THEN 92 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT + - SUM( - 68 ) * - 40 * 55 AS col1
----
-149600

skipif mysql # not compatible
query I rowsort label-1908
SELECT + - SUM ( - 68 ) * - 40 * 55 AS col1
----
-149600

query I rowsort
SELECT - + COALESCE ( COALESCE ( + - 75, + 27, - 59 * 18 + ( + 58 ) * 68, 89 ), 50 ) AS col1
----
75

query I rowsort
SELECT ALL + 13 * NULLIF ( + + COALESCE ( - 38, ( + 55 ), - 37 ), - 70 )
----
-494

query I rowsort
SELECT + + 8 + + + 23
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT 44 * - 77 * COUNT( 7 ) - - COALESCE ( 89, ( - 32 ) * ( - 36 - 76 ), + 45 * 97, - 31 * 98 + - 40 ) * 76 col2
----
3376

skipif mysql # not compatible
query I rowsort label-1912
SELECT 44 * - 77 * COUNT ( 7 ) - - COALESCE ( 89, ( - 32 ) * ( - 36 - 76 ), + 45 * 97, - 31 * 98 + - 40 ) * 76 col2
----
3376

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT ALL MAX( ALL 11 ) * - 50 AS col2
----
-550

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL MAX ( ALL 11 ) * - 50 AS col2
----
-550

query I rowsort
SELECT - ( + 35 ) * - 39
----
1365

query I rowsort
SELECT ALL 99 + + NULLIF ( 28, 29 * COALESCE ( 67, 27 * + 96 ) )
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT ALL + 15 + COUNT( * ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL + 15 + COUNT ( * ) AS col1
----
16

query I rowsort
SELECT DISTINCT 34 + + 97 * - 54 AS col2
----
-5204

query I rowsort
SELECT ALL 92 * + 67 col2
----
6164

query I rowsort
SELECT 97 * + 34
----
3298

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

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

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

skipif mysql # not compatible
query I rowsort label-1921
SELECT + CAST ( NULL AS INTEGER ) * 2 + - 37
----
NULL

query I rowsort
SELECT ALL 62 + 13 AS col2
----
75

query I rowsort
SELECT ( + + 94 ) * + 10 + + - 32 AS col2
----
908

query I rowsort
SELECT 23 * + 73 * - - 99 AS col0
----
166221

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT ALL + MIN( + 14 ) + + 56 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL + MIN ( + 14 ) + + 56 AS col0
----
70

query I rowsort
SELECT ALL - 25 * ( + + 67 ) * - 5 AS col1
----
8375

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

skipif mysql # not compatible
query I rowsort label-1927
SELECT DISTINCT + COUNT ( * ) * + + ( + 57 ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT 16 * - + COALESCE ( - 23, + - COUNT( ALL - 96 ) * 37 ) + + 91 AS col2
----
459

skipif mysql # not compatible
query I rowsort label-1928
SELECT 16 * - + COALESCE ( - 23, + - COUNT ( ALL - 96 ) * 37 ) + + 91 AS col2
----
459

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT 26 * + 84 * + COUNT( * )
----
2184

skipif mysql # not compatible
query I rowsort label-1929
SELECT 26 * + 84 * + COUNT ( * )
----
2184

query I rowsort
SELECT ( + 45 ) * + 55 AS col1
----
2475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1931
SELECT ( + + 70 ) + ( COALESCE ( - 21, - 86 * - 90, CAST( 41 AS SIGNED ) + 20 ) ) * 79
----
-1589

skipif mysql # not compatible
query I rowsort label-1931
SELECT ( + + 70 ) + ( COALESCE ( - 21, - 86 * - 90, CAST ( 41 AS INTEGER ) + 20 ) ) * 79
----
-1589

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT - + 43 * - 17 + COALESCE ( + 95, + COUNT( * ), + 91 ) * 82 AS col0
----
8521

skipif mysql # not compatible
query I rowsort label-1932
SELECT - + 43 * - 17 + COALESCE ( + 95, + COUNT ( * ), + 91 ) * 82 AS col0
----
8521

onlyif mysql # aggregate syntax: 
query II rowsort label-1933
SELECT - 72 + COUNT( * ) AS col0, - 33
----
-71
-33

skipif mysql # not compatible
query II rowsort label-1933
SELECT - 72 + COUNT ( * ) AS col0, - 33
----
-71
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT - COUNT( * ) + + - 81 col1
----
-82

skipif mysql # not compatible
query I rowsort label-1934
SELECT - COUNT ( * ) + + - 81 col1
----
-82

query I rowsort
SELECT 80 * + - 67 AS col1
----
-5360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1936
SELECT 11 DIV - - COALESCE ( + 39, + - COUNT( * ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1936
SELECT 11 / - - COALESCE ( + 39, + - COUNT ( * ) ) col1
----
0

query I rowsort
SELECT + COALESCE ( - 15, + + 44 ) + - 47
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT ( + 20 ) + - COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1938
SELECT ( + 20 ) + - COUNT ( * ) AS col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1939
SELECT ALL - + 57 * - + 0 DIV + 67 + + 46 - 91 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL - + 57 * - + 0 / + 67 + + 46 - 91 AS col1
----
-45

query I rowsort
SELECT 80 * 67
----
5360

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT ALL - 43 + COUNT( * ) * + 31 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL - 43 + COUNT ( * ) * + 31 AS col2
----
-12

query I rowsort
SELECT DISTINCT + + 7 * - 4 + 21
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT - 97 + COUNT( * ) + + COALESCE ( + 56, 74, - COUNT( * ) ) + - 99 * - 72
----
7088

skipif mysql # not compatible
query I rowsort label-1943
SELECT - 97 + COUNT ( * ) + + COALESCE ( + 56, 74, - COUNT ( * ) ) + - 99 * - 72
----
7088

query I rowsort
SELECT 28 * 13 * - ( 69 ) + 69
----
-25047

onlyif mysql # DIV for integer division: 
query I rowsort label-1945
SELECT DISTINCT 46 + 96 DIV 78
----
47

skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT 46 + 96 / 78
----
47

query I rowsort
SELECT DISTINCT + 35 + - + 77
----
-42

query I rowsort
SELECT DISTINCT + - 15 * - 94 * + 68 AS col1
----
95880

query I rowsort
SELECT ALL - ( - 71 ) + + 82 AS col2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT ALL - 2 + + 59 * 73 + - - NULLIF ( 21, COALESCE ( 77, - MIN( ALL - 14 ) ) + 16 ) * 32 col2
----
4977

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL - 2 + + 59 * 73 + - - NULLIF ( 21, COALESCE ( 77, - MIN ( ALL - 14 ) ) + 16 ) * 32 col2
----
4977

query I rowsort
SELECT DISTINCT - 1 + 32
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT DISTINCT NULLIF ( + COUNT( * ), - - ( - 17 ) ) + - 15 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-1951
SELECT DISTINCT NULLIF ( + COUNT ( * ), - - ( - 17 ) ) + - 15 AS col0
----
-14

query II rowsort
SELECT ALL - 72 col0, 86 - + + 96 + + - 23
----
-72
-33

query I rowsort
SELECT ALL 86 + - 35
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT ALL COUNT( * ) + COALESCE ( - COUNT( * ), + 78 - - 11, 63 * + 55 )
----
0

skipif mysql # not compatible
query I rowsort label-1954
SELECT ALL COUNT ( * ) + COALESCE ( - COUNT ( * ), + 78 - - 11, 63 * + 55 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT MIN( ALL + + ( 88 ) ) * + - MIN( 50 )
----
-4400

skipif mysql # not compatible
query I rowsort label-1955
SELECT MIN ( ALL + + ( 88 ) ) * + - MIN ( 50 )
----
-4400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1956
SELECT SUM( ALL 85 ) DIV - 48 * - + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1956
SELECT SUM ( ALL 85 ) / - 48 * - + COUNT ( * ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1957
SELECT 29 DIV + 28 - 42 + 49 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-1957
SELECT 29 / + 28 - 42 + 49 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT COUNT( * ) + + - COUNT( * ) * - 66 * + + 11 * COUNT( * ) - 46
----
681

skipif mysql # not compatible
query I rowsort label-1958
SELECT COUNT ( * ) + + - COUNT ( * ) * - 66 * + + 11 * COUNT ( * ) - 46
----
681

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1959
SELECT CAST( NULL AS SIGNED ) * - ( - + 0 ), - 43 * + 29 * 41 AS col2
----
NULL
-51127

skipif mysql # not compatible
query II rowsort label-1959
SELECT CAST ( NULL AS INTEGER ) * - ( - + 0 ), - 43 * + 29 * 41 AS col2
----
NULL
-51127

query I rowsort
SELECT ALL ( + + 93 ) * + 95
----
8835

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT DISTINCT MAX( 11 ) * MIN( DISTINCT - 77 ) AS col0
----
-847

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT MAX ( 11 ) * MIN ( DISTINCT - 77 ) AS col0
----
-847

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT DISTINCT NULLIF ( - ( + - 74 ), + 26 ) * COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT NULLIF ( - ( + - 74 ), + 26 ) * COUNT ( * )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1964
SELECT CAST( NULL AS SIGNED ) / + - MAX( DISTINCT 24 ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1965
SELECT DISTINCT COUNT( * ) * - ( + 89 ), - COUNT( * ) * + - 52 col1
----
-89
52

skipif mysql # not compatible
query II rowsort label-1965
SELECT DISTINCT COUNT ( * ) * - ( + 89 ), - COUNT ( * ) * + - 52 col1
----
-89
52

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

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

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

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

query I rowsort
SELECT 61 * 96
----
5856

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1969
SELECT ALL - - CASE COALESCE ( 13, - 62 / + + CAST( + 2 AS DECIMAL ) / + NULLIF ( - CASE 33 WHEN 18 THEN NULL WHEN - 57 + - 27 THEN 27 ELSE NULL END * 24, ( + COUNT( * ) ) ) ) WHEN + COUNT( * ) THEN - COUNT( * ) ELSE + 95 END AS col2
----
95

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL - - CASE COALESCE ( 13, - 62 / + + CAST ( + 2 AS REAL ) / + NULLIF ( - CASE 33 WHEN 18 THEN NULL WHEN - 57 + - 27 THEN 27 ELSE NULL END * 24, ( + COUNT ( * ) ) ) ) WHEN + COUNT ( * ) THEN - COUNT ( * ) ELSE + 95 END AS col2
----
95

query I rowsort
SELECT 46 + - 15 + - ( + 39 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT - NULLIF ( + - NULLIF ( + CASE - 4 WHEN - 46 * + ( + 52 - + 82 * - 31 ) THEN 7 / 41 + 20 WHEN 0 THEN 98 END, ( SUM( 24 ) ) / 63 + - 4 ), - 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1971
SELECT - NULLIF ( + - NULLIF ( + CASE - 4 WHEN - 46 * + ( + 52 - + 82 * - 31 ) THEN 7 / 41 + 20 WHEN 0 THEN 98 END, ( SUM ( 24 ) ) / 63 + - 4 ), - 14 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1972
SELECT - CAST( + + 12 AS SIGNED ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-1972
SELECT - CAST ( + + 12 AS INTEGER ) AS col0
----
-12

query I rowsort
SELECT 5 - + 61 col1
----
-56

query I rowsort
SELECT + 72 + - 66 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT - - ( 0 ) * - ( - - 68 ) * - 85 * COUNT( * ) + + 0
----
0

skipif mysql # not compatible
query I rowsort label-1975
SELECT - - ( 0 ) * - ( - - 68 ) * - 85 * COUNT ( * ) + + 0
----
0

query I rowsort
SELECT - + 86 * + 51
----
-4386

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

query I rowsort
SELECT - - 17 + 31 AS col0
----
48

query I rowsort
SELECT ALL + 6 + - 31 - + - 16 col2
----
-9

query II rowsort
SELECT - 22 AS col0, COALESCE ( + 54, ( - 18 ) * - 55 + - 23 ) * 35
----
-22
1890

query I rowsort
SELECT DISTINCT - 3 + - + 94 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT ALL CASE COUNT( * ) WHEN + + 15 THEN NULL WHEN + - COUNT( * ) THEN COUNT( * ) ELSE - + COUNT( * ) + - ( + NULLIF ( 9, NULLIF ( + 20, 58 ) * 56 ) + 43 ) END * 60
----
-3180

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL CASE COUNT ( * ) WHEN + + 15 THEN NULL WHEN + - COUNT ( * ) THEN COUNT ( * ) ELSE - + COUNT ( * ) + - ( + NULLIF ( 9, NULLIF ( + 20, 58 ) * 56 ) + 43 ) END * 60
----
-3180

onlyif mysql # DIV for integer division: 
query II rowsort label-1983
SELECT 41 AS col2, 58 DIV + 90 AS col2
----
41
0

skipif mysql # not compatible
query II rowsort label-1983
SELECT 41 AS col2, 58 / + 90 AS col2
----
41
0

query I rowsort
SELECT ALL - 97 + - + 60 + 16
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1985
SELECT + 36 * - - 96 + + NULLIF ( + - COUNT( * ), + 15 * + + 55 + CAST( NULL AS SIGNED ) / + 76 ) + 61
----
3516

skipif mysql # not compatible
query I rowsort label-1985
SELECT + 36 * - - 96 + + NULLIF ( + - COUNT ( * ), + 15 * + + 55 + CAST ( NULL AS INTEGER ) / + 76 ) + 61
----
3516

query I rowsort
SELECT + 33 * - + 57 * 4 * + ( 83 )
----
-624492

query I rowsort
SELECT ALL + 25 * + 79
----
1975

query I rowsort
SELECT COALESCE ( - 79, COALESCE ( + 53, ( + 8 ) ) )
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-1989
SELECT 34 * - 4 + + + 63 DIV - ( + 11 ) AS col0
----
-141

skipif mysql # not compatible
query I rowsort label-1989
SELECT 34 * - 4 + + + 63 / - ( + 11 ) AS col0
----
-141

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1990
SELECT ALL + CAST( - 25 AS SIGNED ) * + 43 * + + 72 - + 34 + + 87 - CAST( + 51 AS SIGNED ) DIV 41
----
-77348

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL + CAST ( - 25 AS INTEGER ) * + 43 * + + 72 - + 34 + + 87 - CAST ( + 51 AS INTEGER ) / 41
----
-77348

query I rowsort
SELECT - 97 * + - 79
----
7663

query I rowsort
SELECT ALL + 25 * - + 49 AS col1
----
-1225

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

skipif mysql # not compatible
query I rowsort label-1993
SELECT + MAX ( + 80 )
----
80

query I rowsort
SELECT - 61 * - - 10 col0
----
-610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1995
SELECT + CASE + 27 WHEN - - COUNT( + + CAST( NULL AS SIGNED ) ) THEN NULL ELSE - 5 * + + 95 * + 50 + + SUM( + 23 ) END
----
-23727

skipif mysql # not compatible
query I rowsort label-1995
SELECT + CASE + 27 WHEN - - COUNT ( + + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE - 5 * + + 95 * + 50 + + SUM ( + 23 ) END
----
-23727

query I rowsort
SELECT - CASE + ( 58 ) WHEN - 20 THEN - - 93 * - 92 - 4 WHEN 72 THEN 19 - 26 WHEN - 90 + 55 THEN NULL END * - 88 + - 51
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1997
SELECT + 20 DIV - - 11 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1997
SELECT + 20 / - - 11 AS col0
----
1

query I rowsort
SELECT ALL 25 * + + 41 AS col0
----
1025

query I rowsort
SELECT + 31 + + + 46 + - 21 * + + 29 col2
----
-532

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT - 78 * 56 + COUNT( * ) AS col2
----
-4367

skipif mysql # not compatible
query I rowsort label-2001
SELECT - 78 * 56 + COUNT ( * ) AS col2
----
-4367

query I rowsort
SELECT + 63 + + 38 + + + 44
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-2003
SELECT + + COALESCE ( + 97, + 52 * - ( + 19 ) + 42 ) DIV - 73 col2
----
-1

skipif mysql # not compatible
query I rowsort label-2003
SELECT + + COALESCE ( + 97, + 52 * - ( + 19 ) + 42 ) / - 73 col2
----
-1

query I rowsort
SELECT ALL + 42 * + 62 * 71 AS col1
----
184884

query I rowsort
SELECT + 62 * - ( 1 ) + - 18 + - 61 + - 80
----
-221

onlyif mysql # DIV for integer division: 
query I rowsort label-2006
SELECT DISTINCT 16 DIV + 2 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-2006
SELECT DISTINCT 16 / + 2 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT ALL - CASE + 94 WHEN - 28 THEN NULL ELSE MIN( + 32 ) END * - 30 + - 23 * 69
----
-627

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL - CASE + 94 WHEN - 28 THEN NULL ELSE MIN ( + 32 ) END * - 30 + - 23 * 69
----
-627

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

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

query I rowsort
SELECT - + 90 + - + 94 * ( 46 ) AS col2
----
-4414

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

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

query I rowsort
SELECT - COALESCE ( 16, - 12 ) col1
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2012
SELECT ALL + + 90 + + 22 + 74 DIV + - 86 * - COUNT( * )
----
112

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL + + 90 + + 22 + 74 / + - 86 * - COUNT ( * )
----
112

query I rowsort
SELECT ALL - 65 + - 85 AS col1
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT ALL + MIN( - 13 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL + MIN ( - 13 ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-2015
SELECT ALL - 91 AS col1, MAX( - 73 )
----
-91
-73

skipif mysql # not compatible
query II rowsort label-2015
SELECT ALL - 91 AS col1, MAX ( - 73 )
----
-91
-73

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

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

query II rowsort
SELECT - + 66, + 77 col1
----
-66
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT ALL CASE + - NULLIF ( COUNT( * ), - AVG ( + 36 ) * - 40 / - 72 ) WHEN + MAX( ALL + 92 ) THEN 62 ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL CASE + - NULLIF ( COUNT ( * ), - AVG ( + 36 ) * - 40 / - 72 ) WHEN + MAX ( ALL + 92 ) THEN 62 ELSE COUNT ( * ) END
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2019
SELECT + 28 DIV + 81, + 55 AS col0
----
0
55

skipif mysql # not compatible
query II rowsort label-2019
SELECT + 28 / + 81, + 55 AS col0
----
0
55

query I rowsort
SELECT - 33 * 5
----
-165

query I rowsort
SELECT + 45 + - + NULLIF ( - + 3, + 92 + - - 15 / 70 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT DISTINCT - MAX( ALL 17 ) - - 9
----
-8

skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT - MAX ( ALL 17 ) - - 9
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2023
SELECT ALL - CAST( - 80 AS SIGNED ) - 30
----
50

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL - CAST ( - 80 AS INTEGER ) - 30
----
50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2024
SELECT - 98 DIV - CAST( 16 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-2024
SELECT - 98 / - CAST ( 16 AS INTEGER )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2025
SELECT - 74 * - CAST( - + CASE ( 35 ) WHEN + 76 - - + COUNT( - 3 ) + COUNT( * ) * 87 THEN - 80 WHEN 30 THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2025
SELECT - 74 * - CAST ( - + CASE ( 35 ) WHEN + 76 - - + COUNT ( - 3 ) + COUNT ( * ) * 87 THEN - 80 WHEN 30 THEN NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + CASE + 6 WHEN + 78 THEN - NULLIF ( 4, - - 0 ) WHEN - 19 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2027
SELECT CAST( - - 62 AS SIGNED ), - COUNT( * ) AS col2
----
62
-1

skipif mysql # not compatible
query II rowsort label-2027
SELECT CAST ( - - 62 AS INTEGER ), - COUNT ( * ) AS col2
----
62
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2028
SELECT 94 DIV + 31 + - ( + + 45 ) + - 73 AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-2028
SELECT 94 / + 31 + - ( + + 45 ) + - 73 AS col1
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT ALL + CASE COALESCE ( - 13, 34 / + 98 + 43, + COUNT( * ) ) WHEN - 40 THEN + 17 * + 76 END * 81
----
NULL

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL + CASE COALESCE ( - 13, 34 / + 98 + 43, + COUNT ( * ) ) WHEN - 40 THEN + 17 * + 76 END * 81
----
NULL

query I rowsort
SELECT - 61 + - 81 - - 14 + 27
----
-101

query I rowsort
SELECT ALL + NULLIF ( 65, - - 0 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2032
SELECT ALL 31 DIV + 18 + - COALESCE ( + 75, - CAST( 94 AS SIGNED ) * 73 + - 76 - - COUNT( * ) )
----
-74

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL 31 / + 18 + - COALESCE ( + 75, - CAST ( 94 AS INTEGER ) * 73 + - 76 - - COUNT ( * ) )
----
-74

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

skipif mysql # not compatible
query II rowsort label-2033
SELECT ( 51 ), COUNT ( * ) AS col1
----
51
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2034
SELECT DISTINCT - 66 / - - 66 * - + CASE 92 WHEN + CAST( - COUNT( * ) AS SIGNED ) + - 69 THEN - MAX( DISTINCT CAST( 11 AS SIGNED ) ) + + MIN( 21 ) * 52 WHEN - 16 THEN + 40 / 97 END * 27 + - NULLIF ( 3, - CAST( 16 AS SIGNED ) + + 8 * - SUM( DISTINCT 60 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT - 66 / - - 66 * - + CASE 92 WHEN + CAST ( - COUNT ( * ) AS INTEGER ) + - 69 THEN - MAX ( DISTINCT CAST ( 11 AS INTEGER ) ) + + MIN ( 21 ) * 52 WHEN - 16 THEN + 40 / 97 END * 27 + - NULLIF ( 3, - CAST ( 16 AS INTEGER ) + + 8 * - SUM ( DISTINCT 60 ) ) AS col1
----
NULL

query I rowsort
SELECT + + 85 * 79
----
6715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2036
SELECT + - CAST( + - NULLIF ( - 15, - CAST( - 56 AS SIGNED ) * - 5 * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + ( ( 64 ) ) ) AS SIGNED ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-2036
SELECT + - CAST ( + - NULLIF ( - 15, - CAST ( - 56 AS INTEGER ) * - 5 * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + ( ( 64 ) ) ) AS INTEGER ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT ALL - COUNT( * ) + - + NULLIF ( 45, 45 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL - COUNT ( * ) + - + NULLIF ( 45, 45 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT - 11 * ( - COUNT( * ) ) * - - 80 * - 70
----
-61600

skipif mysql # not compatible
query I rowsort label-2038
SELECT - 11 * ( - COUNT ( * ) ) * - - 80 * - 70
----
-61600

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT + MAX( DISTINCT - - 9 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-2039
SELECT + MAX ( DISTINCT - - 9 ) AS col2
----
9

query II rowsort
SELECT ALL 94 + - 89 AS col1, + ( + 79 ) AS col2
----
5
79

query I rowsort
SELECT ALL 7 + 43 AS col0
----
50

query I rowsort
SELECT - COALESCE ( 35, + 85 ) * + 24 - - 25 * 91 - - - 75 + 47 * + 42
----
3334

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

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT - + 9 + - + SUM ( ALL + 51 ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT ALL + COUNT( * ) - - 14 * ( - 27 ) + MIN( - 71 )
----
-448

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL + COUNT ( * ) - - 14 * ( - 27 ) + MIN ( - 71 )
----
-448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2045
SELECT NULLIF ( - CAST( + + 14 AS SIGNED ), - 79 / - 51 ) + NULLIF ( 48, SUM( + 71 ) + 31 * + 32 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-2045
SELECT NULLIF ( - CAST ( + + 14 AS INTEGER ), - 79 / - 51 ) + NULLIF ( 48, SUM ( + 71 ) + 31 * + 32 ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT + 57 + CASE MIN( DISTINCT - + 77 ) WHEN - 56 THEN 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2046
SELECT + 57 + CASE MIN ( DISTINCT - + 77 ) WHEN - 56 THEN 44 END
----
NULL

query I rowsort
SELECT + 27 * 17 * - 34 + - - 38
----
-15568

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT ( SUM( ALL 91 ) ) + - 97
----
-6

skipif mysql # not compatible
query I rowsort label-2048
SELECT ( SUM ( ALL 91 ) ) + - 97
----
-6

query I rowsort
SELECT 0 + - 85
----
-85

query I rowsort
SELECT ALL 16 * - + 45
----
-720

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2051
SELECT DISTINCT 62 DIV 85 * - 50, + COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-2051
SELECT DISTINCT 62 / 85 * - 50, + COUNT ( * ) AS col2
----
0
1

query II rowsort
SELECT DISTINCT 79 AS col2, + 60
----
79
60

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

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

query II rowsort
SELECT 4 AS col1, + 49 * - ( + 43 )
----
4
-2107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2055
SELECT COUNT( * ) * - 66 * + CAST( - + 17 AS SIGNED ) col1
----
1122

skipif mysql # not compatible
query I rowsort label-2055
SELECT COUNT ( * ) * - 66 * + CAST ( - + 17 AS INTEGER ) col1
----
1122

query I rowsort
SELECT - 90 * + 65 + + 38 - + 91
----
-5903

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2057
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - 75 * 0 AS col1, 53
----
NULL
53

skipif mysql # not compatible
query II rowsort label-2057
SELECT DISTINCT - CAST ( NULL AS REAL ) + - 75 * 0 AS col1, 53
----
NULL
53

query II rowsort
SELECT DISTINCT - 2, 68 AS col0
----
-2
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2059
SELECT ALL + 35 DIV + 71 * - 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL + 35 / + 71 * - 26 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT NULLIF ( + 90, - 74 ) DIV 5 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-2060
SELECT NULLIF ( + 90, - 74 ) / 5 AS col0
----
18

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2062
SELECT DISTINCT + 17 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-2062
SELECT DISTINCT + 17 / + 87
----
0

query II rowsort
SELECT ALL - 63 + + 68 + 51 + - 23 * + - 38 * + 16 AS col2, 23 AS col1
----
14040
23

query I rowsort
SELECT ALL + 99 + NULLIF ( - 36, 88 )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2065
SELECT 28 * - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * + 39 * + - 32 / - MIN( ALL - 50 ) - - + ( 15 ) + 68 * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-2065
SELECT 28 * - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 39 * + - 32 / - MIN ( ALL - 50 ) - - + ( 15 ) + 68 * - 11
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2066
SELECT + - 97 DIV - 78 + - - 55 AS col2, - 28 * - 72
----
56
2016

skipif mysql # not compatible
query II rowsort label-2066
SELECT + - 97 / - 78 + - - 55 AS col2, - 28 * - 72
----
56
2016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2067
SELECT + CASE 25 WHEN + ( - 1 ) THEN + + 64 + + 69 ELSE + COUNT( * ) END * - 37 + + 97 DIV - 82 - 32
----
-70

skipif mysql # not compatible
query I rowsort label-2067
SELECT + CASE 25 WHEN + ( - 1 ) THEN + + 64 + + 69 ELSE + COUNT ( * ) END * - 37 + + 97 / - 82 - 32
----
-70

query I rowsort
SELECT - 8 * - + 25
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT ALL - MAX( ALL 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL - MAX ( ALL 78 ) AS col0
----
-78

query I rowsort
SELECT 80 + + + 3 + - + 54 * - 49 * - + 24 AS col0
----
-63421

query I rowsort
SELECT ALL - + 6 - - + 87 col2
----
81

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2073
SELECT 72 + + - COALESCE ( + + CAST( NULL AS SIGNED ), + 93 ) * - 17 - 84 AS col0
----
1569

skipif mysql # not compatible
query I rowsort label-2073
SELECT 72 + + - COALESCE ( + + CAST ( NULL AS INTEGER ), + 93 ) * - 17 - 84 AS col0
----
1569

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

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

query II rowsort
SELECT - + 3 AS col0, - 68 - - 84 + + + 49 * - 63 AS col0
----
-3
-3071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2076
SELECT NULLIF ( COUNT( * ), + 88 + + 75 + - 89 / + + 58 * + 53 - - - COUNT( * ) ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2076
SELECT NULLIF ( COUNT ( * ), + 88 + + 75 + - 89 / + + 58 * + 53 - - - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2077
SELECT - 41 DIV - 9 + COUNT( * ) AS col2, - COALESCE ( - 91, - - COALESCE ( 59, + ( 79 ) DIV 61 ) )
----
5
91

skipif mysql # not compatible
query II rowsort label-2077
SELECT - 41 / - 9 + COUNT ( * ) AS col2, - COALESCE ( - 91, - - COALESCE ( 59, + ( 79 ) / 61 ) )
----
5
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT 49 * MIN( 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2078
SELECT 49 * MIN ( 0 ) AS col2
----
0

query II rowsort
SELECT ALL 18, - 10 + - 9 AS col2
----
18
-19

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

query I rowsort
SELECT ALL 8 - + 45
----
-37

query I rowsort
SELECT DISTINCT 75 * 74 AS col2
----
5550

query I rowsort
SELECT 6 * + - 91 col1
----
-546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2084
SELECT COALESCE ( - SUM( DISTINCT CASE - 53 WHEN - 49 / - 3 * + 67 THEN - + 50 WHEN - 74 THEN NULL ELSE NULL END ), + 68 ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2084
SELECT COALESCE ( - SUM ( DISTINCT CASE - 53 WHEN - 49 / - 3 * + 67 THEN - + 50 WHEN - 74 THEN NULL ELSE NULL END ), + 68 ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 32 * + 81
----
2592

query I rowsort
SELECT DISTINCT 44 + 44 * + - 7
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT DISTINCT 61 + + MAX( ALL - 43 )
----
18

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT 61 + + MAX ( ALL - 43 )
----
18

query I rowsort
SELECT DISTINCT - 66 * 77 + - - 72 AS col0
----
-5010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2089
SELECT NULLIF ( + - ( - 69 ), - 15 * - - 70 ) * - CAST( NULL AS SIGNED ) + + NULLIF ( 79, + - MAX( - 70 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2089
SELECT NULLIF ( + - ( - 69 ), - 15 * - - 70 ) * - CAST ( NULL AS INTEGER ) + + NULLIF ( 79, + - MAX ( - 70 ) ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2090
SELECT + ( - 94 ) * CAST( - - 6 AS SIGNED ), + 46 AS col0
----
-564
46

skipif mysql # not compatible
query II rowsort label-2090
SELECT + ( - 94 ) * CAST ( - - 6 AS INTEGER ), + 46 AS col0
----
-564
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2091
SELECT DISTINCT - 64 * + 57 * - - CAST( + - 52 AS SIGNED ) * - COUNT( * ) - - 82 + + + 10 AS col1
----
-189604

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT - 64 * + 57 * - - CAST ( + - 52 AS INTEGER ) * - COUNT ( * ) - - 82 + + + 10 AS col1
----
-189604

query I rowsort
SELECT - CASE + - 8 WHEN - + 51 THEN + 38 END * - 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT + SUM( + 28 ) col1
----
28

skipif mysql # not compatible
query I rowsort label-2093
SELECT + SUM ( + 28 ) col1
----
28

query I rowsort
SELECT - 67 * - 74 + + 43 * 66 AS col2
----
7796

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL + ( + - 20 ) * + COUNT( * ) + + + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL + ( + - 20 ) * + COUNT ( * ) + + + COUNT ( * )
----
-19

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

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT + ( + 88 ) / - COUNT ( * )
----
-88

query II rowsort
SELECT DISTINCT - 35 * - + 26 - 55 * - - 62, 59 + - - 1 AS col1
----
-2500
60

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

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

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

skipif mysql # not compatible
query I rowsort label-2099
SELECT DISTINCT + - 33 * - COUNT ( * ) AS col0
----
33

query I rowsort
SELECT - 71 * 74 - + - 37
----
-5217

query I rowsort
SELECT + 17 * - + 68 AS col2
----
-1156

query II rowsort
SELECT - 86 * - 9 AS col1, - 32 * 16
----
774
-512

onlyif mysql # DIV for integer division: 
query I rowsort label-2103
SELECT + 26 - 29 DIV - + 54 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-2103
SELECT + 26 - 29 / - + 54 AS col2
----
26

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

skipif mysql # not compatible
query I rowsort label-2104
SELECT + MAX ( + 6 )
----
6

query I rowsort
SELECT ALL + 95 * + + ( + 53 )
----
5035

query I rowsort
SELECT DISTINCT + - CASE - 55 WHEN + - 82 * + AVG ( - 52 ) * - 37 + - 56 + + 54 THEN NULL WHEN 63 + 67 THEN 67 END
----
NULL

query I rowsort
SELECT DISTINCT ( 1 ) AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT DISTINCT CASE + 76 WHEN 62 * 54 THEN NULL WHEN + NULLIF ( + CASE 63 WHEN - + COUNT( * ) THEN - 36 END, + 60 - SUM( ALL 96 - + 16 ) * - 45 ) THEN - ( MIN( 91 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT CASE + 76 WHEN 62 * 54 THEN NULL WHEN + NULLIF ( + CASE 63 WHEN - + COUNT ( * ) THEN - 36 END, + 60 - SUM ( ALL 96 - + 16 ) * - 45 ) THEN - ( MIN ( 91 ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2111
SELECT - COUNT( 31 ) DIV - 81 * 22 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2111
SELECT - COUNT ( 31 ) / - 81 * 22 AS col2
----
0

query I rowsort
SELECT ALL - 7 + 18 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT + COALESCE ( + 92, + 29 ) - + COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-2113
SELECT + COALESCE ( + 92, + 29 ) - + COUNT ( * ) AS col0
----
91

query I rowsort
SELECT ALL + 35 * + - 72
----
-2520

onlyif mysql # DIV for integer division: 
query I rowsort label-2115
SELECT - 32 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-2115
SELECT - 32 / + 79
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2116
SELECT - 91 + + 76 + - - 69 + - 29 * - 65, + SUM( DISTINCT + + 77 ) * - COUNT( * ) + - + 83 - + 88 col0
----
1939
-248

skipif mysql # not compatible
query II rowsort label-2116
SELECT - 91 + + 76 + - - 69 + - 29 * - 65, + SUM ( DISTINCT + + 77 ) * - COUNT ( * ) + - + 83 - + 88 col0
----
1939
-248

query I rowsort
SELECT DISTINCT 61 * + 17 col0
----
1037

query I rowsort
SELECT DISTINCT 20 + + 26 col2
----
46

query I rowsort
SELECT DISTINCT - 90 + + - 47
----
-137

query II rowsort
SELECT ALL 96, + 79 AS col2
----
96
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT ALL 55 + 98 + + NULLIF ( - 84, - 43 ) * + ( + COUNT( * ) ) * 13 * 43 + + + 74 - 87 * 28
----
-49165

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL 55 + 98 + + NULLIF ( - 84, - 43 ) * + ( + COUNT ( * ) ) * 13 * 43 + + + 74 - 87 * 28
----
-49165

onlyif mysql # aggregate syntax: 
query II rowsort label-2122
SELECT ALL + ( - ( + 65 ) ) * ( + COUNT( * ) ) AS col1, + 35 AS col0
----
-65
35

skipif mysql # not compatible
query II rowsort label-2122
SELECT ALL + ( - ( + 65 ) ) * ( + COUNT ( * ) ) AS col1, + 35 AS col0
----
-65
35

query I rowsort
SELECT DISTINCT - 18 * + - 82 col0
----
1476

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2124
SELECT - 49 * - ( - COALESCE ( 75, + 16 DIV + 28 * + - COUNT( * ) + + - 62 - + - 67 ) )
----
-3675

skipif mysql # not compatible
query I rowsort label-2124
SELECT - 49 * - ( - COALESCE ( 75, + 16 / + 28 * + - COUNT ( * ) + + - 62 - + - 67 ) )
----
-3675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2125
SELECT - 66 - + CAST( MIN( + - 61 ) AS SIGNED ) * - NULLIF ( - + 10, 32 ) + + 13
----
557

skipif mysql # not compatible
query I rowsort label-2125
SELECT - 66 - + CAST ( MIN ( + - 61 ) AS INTEGER ) * - NULLIF ( - + 10, 32 ) + + 13
----
557

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

query II rowsort
SELECT 45 AS col0, 73 * - 20
----
45
-1460

query I rowsort
SELECT + + 6 * 92
----
552

onlyif mysql # DIV for integer division: 
query I rowsort label-2129
SELECT DISTINCT - 74 DIV - 84 + + 13 * - + 68 + 3 AS col2
----
-881

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT - 74 / - 84 + + 13 * - + 68 + 3 AS col2
----
-881

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

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

query I rowsort
SELECT ALL 60 * - 75
----
-4500

query I rowsort
SELECT ALL 18 * - 21
----
-378

onlyif mysql # DIV for integer division: 
query I rowsort label-2133
SELECT + - ( + 70 ) - + COALESCE ( - 11, - - 96, + 55 - - 25 ) - 55 DIV - ( - - 91 )
----
-59

skipif mysql # not compatible
query I rowsort label-2133
SELECT + - ( + 70 ) - + COALESCE ( - 11, - - 96, + 55 - - 25 ) - 55 / - ( - - 91 )
----
-59

query I rowsort
SELECT + 84 * - 92 + - 11 AS col1
----
-7739

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT - 47 * + 79 + - COUNT( * ) - + - 12
----
-3702

skipif mysql # not compatible
query I rowsort label-2135
SELECT - 47 * + 79 + - COUNT ( * ) - + - 12
----
-3702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2136
SELECT ALL + CASE - 69 WHEN - 86 + + - CASE + + 45 WHEN - - 63 THEN 75 - + - ( + + SUM( + ( 77 ) ) ) END + - 81 * - 6 THEN - 50 + + 13 WHEN - COALESCE ( + 54, + COALESCE ( + SUM( + 20 ), - CASE - 13 WHEN 39 * 71 THEN - CASE 90 WHEN - 54 THEN - 86 * COALESCE ( 24, 6 ) END END ) * 94 + - COUNT( 26 ), + 0, CAST( + COALESCE ( - NULLIF ( - COUNT( * ), + 17 ), 93 ) AS SIGNED ) + 3 / ( 91 ) ) * COALESCE ( + 97, - COUNT( * ), 59 + + 20 ) - + 0 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL + CASE - 69 WHEN - 86 + + - CASE + + 45 WHEN - - 63 THEN 75 - + - ( + + SUM ( + ( 77 ) ) ) END + - 81 * - 6 THEN - 50 + + 13 WHEN - COALESCE ( + 54, + COALESCE ( + SUM ( + 20 ), - CASE - 13 WHEN 39 * 71 THEN - CASE 90 WHEN - 54 THEN - 86 * COALESCE ( 24, 6 ) END END ) * 94 + - COUNT ( 26 ), + 0, CAST ( + COALESCE ( - NULLIF ( - COUNT ( * ), + 17 ), 93 ) AS INTEGER ) + 3 / ( 91 ) ) * COALESCE ( + 97, - COUNT ( * ), 59 + + 20 ) - + 0 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT + - COUNT( 30 ) * ( - - 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-2137
SELECT + - COUNT ( 30 ) * ( - - 78 ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-2138
SELECT ALL + 22 * - 3 + 24 AS col1, - COUNT( * ) * + - 29 * + - COUNT( * ) * + 81 AS col0
----
-42
-2349

skipif mysql # not compatible
query II rowsort label-2138
SELECT ALL + 22 * - 3 + 24 AS col1, - COUNT ( * ) * + - 29 * + - COUNT ( * ) * + 81 AS col0
----
-42
-2349

onlyif mysql # DIV for integer division: 
query I rowsort label-2139
SELECT ALL 39 DIV ( - + 29 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL 39 / ( - + 29 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2140
SELECT CASE COALESCE ( - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ), + 16 ) WHEN + 51 THEN - - 43 ELSE - 77 END
----
-77

skipif mysql # not compatible
query I rowsort label-2140
SELECT CASE COALESCE ( - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ), + 16 ) WHEN + 51 THEN - - 43 ELSE - 77 END
----
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT ALL - COUNT( * ) * + 45 * + 24 + + COALESCE ( + 47, - - 41 + + 53 + - - 49, + 12 ) * - 32
----
-2584

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL - COUNT ( * ) * + 45 * + 24 + + COALESCE ( + 47, - - 41 + + 53 + - - 49, + 12 ) * - 32
----
-2584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2143
SELECT - CAST( + 92 AS SIGNED ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-2143
SELECT - CAST ( + 92 AS INTEGER ) AS col1
----
-92

query II rowsort
SELECT - 24 AS col1, + 9 AS col0
----
-24
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT DISTINCT + COUNT( * ) * + 10 * - 78 + - 10
----
-790

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT + COUNT ( * ) * + 10 * - 78 + - 10
----
-790

query I rowsort
SELECT DISTINCT 40 * + 56 * 48 * 62 + ( - 74 ) * - 67 AS col0
----
6671198

query II rowsort
SELECT 36 AS col0, - CASE + 56 WHEN - 19 THEN - 27 END * + + 70 / + 67 / - - CASE 26 WHEN + 80 THEN - 96 * - 19 END AS col2
----
36
NULL

query I rowsort
SELECT 50 - - 9
----
59

query I rowsort
SELECT 86 * 49 AS col1
----
4214

query I rowsort
SELECT 57 + - 99
----
-42

query I rowsort
SELECT DISTINCT - 87 * + 50
----
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2153
SELECT ALL - NULLIF ( - + CAST( NULL AS SIGNED ), 80 ) - - 0 / - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL - NULLIF ( - + CAST ( NULL AS INTEGER ), 80 ) - - 0 / - 74
----
NULL

query I rowsort
SELECT + 28 + 18 AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2155
SELECT 42 DIV - 12 - + + NULLIF ( + 59, + CAST( - + CASE 9 WHEN + + ( + + 19 ) + 59 + - + ( - ( + 98 ) ) * 79 THEN ( - 33 ) END AS SIGNED ) * - 50 )
----
-62

skipif mysql # not compatible
query I rowsort label-2155
SELECT 42 / - 12 - + + NULLIF ( + 59, + CAST ( - + CASE 9 WHEN + + ( + + 19 ) + 59 + - + ( - ( + 98 ) ) * 79 THEN ( - 33 ) END AS INTEGER ) * - 50 )
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-2156
SELECT ALL - COUNT( * ) AS col2, + MAX( - - 7 ) * 83 * + + 19 col2
----
-1
11039

skipif mysql # not compatible
query II rowsort label-2156
SELECT ALL - COUNT ( * ) AS col2, + MAX ( - - 7 ) * 83 * + + 19 col2
----
-1
11039

query I rowsort
SELECT + 85 * - 60 + 47
----
-5053

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT DISTINCT - + COALESCE ( - + 35, + 31 + - + 48 - COUNT( * ) * - + COUNT( * ) )
----
35

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT - + COALESCE ( - + 35, + 31 + - + 48 - COUNT ( * ) * - + COUNT ( * ) )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2159
SELECT COUNT( * ) DIV + + 42 * 86 col2
----
0

skipif mysql # not compatible
query I rowsort label-2159
SELECT COUNT ( * ) / + + 42 * 86 col2
----
0

query I rowsort
SELECT - 77 + 47 AS col2
----
-30

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

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

skipif mysql # not compatible
query I rowsort label-2162
SELECT ( - SUM ( - 49 ) )
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-2163
SELECT ALL 74 + - COUNT( * ), + 93 AS col2
----
73
93

skipif mysql # not compatible
query II rowsort label-2163
SELECT ALL 74 + - COUNT ( * ), + 93 AS col2
----
73
93

query I rowsort
SELECT DISTINCT - 13 * - 8 - 38 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT DISTINCT 36 + + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT 36 + + COUNT ( * )
----
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2166
SELECT - - 89 * - - CAST( NULL AS DECIMAL ) + + 11 * COUNT( * ) - + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-2166
SELECT - - 89 * - - CAST ( NULL AS REAL ) + + 11 * COUNT ( * ) - + - 31
----
NULL

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

query I rowsort
SELECT 45 * + COALESCE ( 93, - 82 ) col2
----
4185

query I rowsort
SELECT 16 - - + 24 col1
----
40

query I rowsort
SELECT ALL 51 * + ( 30 ) * 27
----
41310

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

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

query I rowsort
SELECT ALL 98 + 38
----
136

query II rowsort
SELECT ALL - 72 * + - 37 AS col0, 76 + - - 49 AS col1
----
2664
125

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

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

query I rowsort
SELECT 70 * + 54 * - 76 AS col0
----
-287280

query I rowsort
SELECT 95 - + 15 AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2177
SELECT CASE - + 22 WHEN + 37 + 31 / + + 80 * + 42 * - - 99 - + 61 THEN - + 59 WHEN - + COALESCE ( - 3, - CAST( NULL AS SIGNED ) ) THEN NULL WHEN 16 THEN + 47 ELSE NULL END + - CASE 91 + - 53 * - COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN + CAST( 75 AS DECIMAL ) + COUNT( * ) WHEN + 7 THEN 97 WHEN - 57 * - 7 THEN NULL ELSE COUNT( * ) + - 67 END * - SUM( DISTINCT 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT CASE - + 22 WHEN + 37 + 31 / + + 80 * + 42 * - - 99 - + 61 THEN - + 59 WHEN - + COALESCE ( - 3, - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 16 THEN + 47 ELSE NULL END + - CASE 91 + - 53 * - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN + CAST ( 75 AS REAL ) + COUNT ( * ) WHEN + 7 THEN 97 WHEN - 57 * - 7 THEN NULL ELSE COUNT ( * ) + - 67 END * - SUM ( DISTINCT 30 )
----
NULL

query II rowsort
SELECT DISTINCT 43 * - 66 AS col2, - 91
----
-2838
-91

query I rowsort
SELECT ALL + 40 * - 91 + + COALESCE ( 16, 1, + 64 * - 50 )
----
-3624

query I rowsort
SELECT - - ( - 5 )
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-2181
SELECT + 16 + - 8 DIV - 69 AS col2, - 64 * + NULLIF ( - 79, - AVG ( ALL - 70 ) ) AS col0
----
16
5056

skipif mysql # not compatible
query II rowsort label-2181
SELECT + 16 + - 8 / - 69 AS col2, - 64 * + NULLIF ( - 79, - AVG ( ALL - 70 ) ) AS col0
----
16
5056

query II rowsort
SELECT 62 + 47 AS col2, - ( - + ( 24 ) ) * 61 + + 25
----
109
1489

query II rowsort
SELECT 80 + - 32 * 50 AS col0, 24
----
-1520
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2184
SELECT - 92 + + 24 / CAST( NULL AS SIGNED ) + + 0 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2184
SELECT - 92 + + 24 / CAST ( NULL AS INTEGER ) + + 0 col0
----
NULL

query II rowsort
SELECT - - ( + 74 ) AS col2, 88 AS col0
----
74
88

query I rowsort
SELECT 72 * - 68
----
-4896

query I rowsort
SELECT ALL - 8 * - 48 AS col1
----
384

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT - 76 * - + 17 * 59 - + COUNT( ALL - 74 )
----
76227

skipif mysql # not compatible
query I rowsort label-2188
SELECT - 76 * - + 17 * 59 - + COUNT ( ALL - 74 )
----
76227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2189
SELECT DISTINCT - 35 * - ( 72 ) + + CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) * + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT - 35 * - ( 72 ) + + CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) * + - 59
----
NULL

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

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

query I rowsort
SELECT ALL + ( - 98 ) * - + 35 + 91 + + - 57 + - 58 col0
----
3406

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT 67 * - COUNT( + + 50 ) + + - 17
----
-84

skipif mysql # not compatible
query I rowsort label-2192
SELECT 67 * - COUNT ( + + 50 ) + + - 17
----
-84

query I rowsort
SELECT + ( - + 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT + COALESCE ( + - COUNT( * ), + 79 )
----
-1

skipif mysql # not compatible
query I rowsort label-2194
SELECT + COALESCE ( + - COUNT ( * ), + 79 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2195
SELECT 18 - + NULLIF ( - + 46, + 98 + - 71 ) DIV 57 + - - 14 + - 31 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2195
SELECT 18 - + NULLIF ( - + 46, + 98 + - 71 ) / 57 + - - 14 + - 31 AS col0
----
1

query I rowsort
SELECT 25 + 12
----
37

query I rowsort
SELECT 76 * ( 78 ) - + 38
----
5890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2198
SELECT 35 + - MIN( ALL CASE CAST( NULL AS SIGNED ) WHEN 65 THEN + - 9 END ) * - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2198
SELECT 35 + - MIN ( ALL CASE CAST ( NULL AS INTEGER ) WHEN 65 THEN + - 9 END ) * - - COUNT ( * ) AS col0
----
NULL

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

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

query II rowsort
SELECT + 22, 84 AS col2
----
22
84

query I rowsort
SELECT DISTINCT 97 * 52 AS col1
----
5044

query I rowsort
SELECT + 38 + - ( + 22 ) * + 78 AS col0
----
-1678

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT ALL 44 - + + 10 + 98 + - + COUNT( * ) * + 72 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL 44 - + + 10 + 98 + - + COUNT ( * ) * + 72 AS col1
----
60

query II rowsort
SELECT + ( - 62 ) + + 6, 79 col1
----
-56
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2205
SELECT ALL 96 * - - CASE - 79 WHEN 12 * 10 + + - 69 THEN - 88 * + MAX( ALL + 9 ) * + CAST( 96 AS SIGNED ) END * - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL 96 * - - CASE - 79 WHEN 12 * 10 + + - 69 THEN - 88 * + MAX ( ALL + 9 ) * + CAST ( 96 AS INTEGER ) END * - 3 AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( - 95, + COALESCE ( + + 21, + - 26 * - + 93 * - + 88 / 3 - + 13 ) ) + 86 * - COALESCE ( + 57, + 94, 65 ) * - 32 + 12
----
156781

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

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

query I rowsort
SELECT ALL 90 - - 51
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-2209
SELECT ALL - ( 30 ) DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL - ( 30 ) / + 70
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2210
SELECT + 23 DIV 62 DIV 56 AS col0, + 74 AS col0
----
0
74

skipif mysql # not compatible
query II rowsort label-2210
SELECT + 23 / 62 / 56 AS col0, + 74 AS col0
----
0
74

onlyif mysql # aggregate syntax: 
query II rowsort label-2211
SELECT + COUNT( + 76 ) + + ( - - 40 ) * + - MIN( - + 36 ) col1, - NULLIF ( - ( + 46 ), + ( - - 0 ) ) + + 92 col0
----
1441
138

skipif mysql # not compatible
query II rowsort label-2211
SELECT + COUNT ( + 76 ) + + ( - - 40 ) * + - MIN ( - + 36 ) col1, - NULLIF ( - ( + 46 ), + ( - - 0 ) ) + + 92 col0
----
1441
138

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT ALL MIN( + 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL MIN ( + 58 ) AS col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2213
SELECT - + 53 AS col0, COUNT( * ) * - ( + 65 ) + - 46 DIV - 94 AS col1
----
-53
-65

skipif mysql # not compatible
query II rowsort label-2213
SELECT - + 53 AS col0, COUNT ( * ) * - ( + 65 ) + - 46 / - 94 AS col1
----
-53
-65

query I rowsort
SELECT ALL - 68 + - 43
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT + 12 + COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-2215
SELECT + 12 + COUNT ( * ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT - + NULLIF ( - 41, + COUNT( * ) + + + 42 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-2216
SELECT - + NULLIF ( - 41, + COUNT ( * ) + + + 42 ) AS col2
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2217
SELECT 7 / + 69 * - 70 + 80 + 27 * + CAST( NULL AS SIGNED ) * - 15 * - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2217
SELECT 7 / + 69 * - 70 + 80 + 27 * + CAST ( NULL AS INTEGER ) * - 15 * - 26 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT + ( - - SUM( ALL + + 86 ) ) * + 72 * 13 * - + ( 52 ) AS col1
----
-4185792

skipif mysql # not compatible
query I rowsort label-2218
SELECT + ( - - SUM ( ALL + + 86 ) ) * + 72 * 13 * - + ( 52 ) AS col1
----
-4185792

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

skipif mysql # not compatible
query II rowsort label-2219
SELECT 10 AS col1, COUNT ( * )
----
10
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2220
SELECT - + 46 DIV + - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2220
SELECT - + 46 / + - 89 AS col2
----
0

query II rowsort
SELECT DISTINCT + 63 AS col1, 59
----
63
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2222
SELECT ALL 85 * 54 * + CASE - + COUNT( * ) WHEN + 55 THEN NULL ELSE COUNT( * ) END + + - 47 DIV - MAX( DISTINCT - 77 )
----
4590

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL 85 * 54 * + CASE - + COUNT ( * ) WHEN + 55 THEN NULL ELSE COUNT ( * ) END + + - 47 / - MAX ( DISTINCT - 77 )
----
4590

query II rowsort
SELECT ALL + 90 * + 44 AS col2, 80
----
3960
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2224
SELECT DISTINCT + 72 * - 11 * + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT + 72 * - 11 * + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT DISTINCT + 99 * - + ( - MAX( 27 ) )
----
2673

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT + 99 * - + ( - MAX ( 27 ) )
----
2673

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT ALL + 62 * + COUNT( * ) - + + 45 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL + 62 * + COUNT ( * ) - + + 45 AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2227
SELECT - ( - 33 ) * - - NULLIF ( 67, 89 + + NULLIF ( + - 33, + 21 + - CASE 90 WHEN + - 13 * - 13 + + 43 * + 39 * + 66 THEN + ( 60 ) - - 22 ELSE NULL END * MIN( + CAST( - 59 AS SIGNED ) ) ) * COUNT( * ) )
----
2211

skipif mysql # not compatible
query I rowsort label-2227
SELECT - ( - 33 ) * - - NULLIF ( 67, 89 + + NULLIF ( + - 33, + 21 + - CASE 90 WHEN + - 13 * - 13 + + 43 * + 39 * + 66 THEN + ( 60 ) - - 22 ELSE NULL END * MIN ( + CAST ( - 59 AS INTEGER ) ) ) * COUNT ( * ) )
----
2211

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT - 26 - 42 + COUNT( - 59 ) + 16 * + + 73 col1
----
1101

skipif mysql # not compatible
query I rowsort label-2228
SELECT - 26 - 42 + COUNT ( - 59 ) + 16 * + + 73 col1
----
1101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2229
SELECT + COUNT( * ) * + 49 DIV + + 88
----
0

skipif mysql # not compatible
query I rowsort label-2229
SELECT + COUNT ( * ) * + 49 / + + 88
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2230
SELECT + CAST( - + ( - + CAST( - - 56 AS SIGNED ) ) AS SIGNED ) * - 21 AS col1
----
-1176

skipif mysql # not compatible
query I rowsort label-2230
SELECT + CAST ( - + ( - + CAST ( - - 56 AS INTEGER ) ) AS INTEGER ) * - 21 AS col1
----
-1176

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2231
SELECT + 52 * AVG ( - - 9 ) + CAST( NULL AS DECIMAL ) AS col1, - 70 + - - ( 25 ) - - 77 * - 39
----
NULL
-3048

skipif mysql # not compatible
query II rowsort label-2231
SELECT + 52 * AVG ( - - 9 ) + CAST ( NULL AS REAL ) AS col1, - 70 + - - ( 25 ) - - 77 * - 39
----
NULL
-3048

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT - NULLIF ( + - COUNT( * ), 24 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2233
SELECT - NULLIF ( + - COUNT ( * ), 24 ) AS col2
----
1

query I rowsort
SELECT - 51 + + 48
----
-3

query I rowsort
SELECT + + 88 - 47 + - 10 AS col2
----
31

query I rowsort
SELECT DISTINCT + 30 * - - 9 + + + 72 AS col2
----
342

query II rowsort
SELECT ALL + 8 + NULLIF ( 19, - 50 / + 24 * 50 * + + 81 / + 21 ) + + 29 AS col0, 35 AS col1
----
56
35

onlyif mysql # aggregate syntax: 
query II rowsort label-2238
SELECT DISTINCT MAX( - 9 ) AS col0, - 2 AS col2
----
-9
-2

skipif mysql # not compatible
query II rowsort label-2238
SELECT DISTINCT MAX ( - 9 ) AS col0, - 2 AS col2
----
-9
-2

query I rowsort
SELECT DISTINCT + 39 + + ( - 1 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT DISTINCT + 58 + - 49 * + SUM( - - 57 ) AS col0
----
-2735

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT + 58 + - 49 * + SUM ( - - 57 ) AS col0
----
-2735

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT + 81 * + 69 - - + COUNT( * ) AS col0
----
5590

skipif mysql # not compatible
query I rowsort label-2241
SELECT + 81 * + 69 - - + COUNT ( * ) AS col0
----
5590

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT - - MIN( - 77 ) * + + COUNT( * ) - 84 * 19 col0
----
-1673

skipif mysql # not compatible
query I rowsort label-2242
SELECT - - MIN ( - 77 ) * + + COUNT ( * ) - 84 * 19 col0
----
-1673

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2243
SELECT - - 70 DIV + 49, - 30 + + COALESCE ( - + 41, + - COUNT( * ) * + 26 ) * + - 92 AS col2
----
1
3742

skipif mysql # not compatible
query II rowsort label-2243
SELECT - - 70 / + 49, - 30 + + COALESCE ( - + 41, + - COUNT ( * ) * + 26 ) * + - 92 AS col2
----
1
3742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2244
SELECT DISTINCT 29 - - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT 29 - - - CAST ( NULL AS INTEGER ) col2
----
NULL

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

query I rowsort
SELECT DISTINCT + 73 * 43
----
3139

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT DISTINCT NULLIF ( - COUNT( * ), + - 31 ) * - 67 + + + 52 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT NULLIF ( - COUNT ( * ), + - 31 ) * - 67 + + + 52 AS col0
----
119

query I rowsort
SELECT 60 + 83
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT ALL ( + COUNT( ALL 50 ) ) - - 97 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL ( + COUNT ( ALL 50 ) ) - - 97 AS col2
----
98

query I rowsort
SELECT 70 + + - 18 * - 28 AS col2
----
574

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT 13 * + - 98 + + - COUNT( ALL - + 69 ) AS col0
----
-1275

skipif mysql # not compatible
query I rowsort label-2251
SELECT 13 * + - 98 + + - COUNT ( ALL - + 69 ) AS col0
----
-1275

query I rowsort
SELECT 80 * + 23 AS col2
----
1840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2253
SELECT + 86 * CAST( NULL AS SIGNED ) - 49 * + COUNT( DISTINCT + + 14 ) + - 4 + - SUM( DISTINCT - + 92 ) * - - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2253
SELECT + 86 * CAST ( NULL AS INTEGER ) - 49 * + COUNT ( DISTINCT + + 14 ) + - 4 + - SUM ( DISTINCT - + 92 ) * - - CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2254
SELECT 50 * + + 11 * + + NULLIF ( + + 73, - ( - CASE - 26 WHEN CASE ( 94 ) WHEN + 61 THEN NULL ELSE + 2 END - - 28 + + 94 THEN COUNT( * ) * + 69 + SUM( - ( - 50 ) ) WHEN - 70 + - NULLIF ( - CAST( - 73 AS SIGNED ) + + 42 * 85, 50 * + COUNT( * ) ) / - 4 THEN NULL ELSE NULL END ) ) - 89
----
40061

skipif mysql # not compatible
query I rowsort label-2254
SELECT 50 * + + 11 * + + NULLIF ( + + 73, - ( - CASE - 26 WHEN CASE ( 94 ) WHEN + 61 THEN NULL ELSE + 2 END - - 28 + + 94 THEN COUNT ( * ) * + 69 + SUM ( - ( - 50 ) ) WHEN - 70 + - NULLIF ( - CAST ( - 73 AS INTEGER ) + + 42 * 85, 50 * + COUNT ( * ) ) / - 4 THEN NULL ELSE NULL END ) ) - 89
----
40061

onlyif mysql # aggregate syntax: 
query II rowsort label-2255
SELECT DISTINCT - COUNT( * ), - COALESCE ( + SUM( ALL - - 8 ), - - 64, - 86 * + COUNT( * ) ) + - 79 AS col0
----
-1
-87

skipif mysql # not compatible
query II rowsort label-2255
SELECT DISTINCT - COUNT ( * ), - COALESCE ( + SUM ( ALL - - 8 ), - - 64, - 86 * + COUNT ( * ) ) + - 79 AS col0
----
-1
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-2256
SELECT DISTINCT 20 DIV + 5 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2256
SELECT DISTINCT 20 / + 5 AS col0
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2257
SELECT ALL + 23 + - - 48 + + - CAST( NULL AS DECIMAL ) + 89 * + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL + 23 + - - 48 + + - CAST ( NULL AS REAL ) + 89 * + 18
----
NULL

query I rowsort
SELECT ALL - 51 * - 32 AS col2
----
1632

onlyif mysql # DIV for integer division: 
query I rowsort label-2259
SELECT 1 DIV + 92 * + 16
----
0

skipif mysql # not compatible
query I rowsort label-2259
SELECT 1 / + 92 * + 16
----
0

query I rowsort
SELECT ALL + 78 * + - 17 AS col2
----
-1326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2261
SELECT ALL - 24 + ( + - 26 ) * + CAST( - 75 AS SIGNED ) AS col2
----
1926

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL - 24 + ( + - 26 ) * + CAST ( - 75 AS INTEGER ) AS col2
----
1926

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2262
SELECT 85 * CAST( - 95 AS SIGNED ) AS col1
----
-8075

skipif mysql # not compatible
query I rowsort label-2262
SELECT 85 * CAST ( - 95 AS INTEGER ) AS col1
----
-8075

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT 81 * + 83 + MAX( DISTINCT 12 )
----
6735

skipif mysql # not compatible
query I rowsort label-2263
SELECT 81 * + 83 + MAX ( DISTINCT 12 )
----
6735

query II rowsort
SELECT 16 AS col0, + 90 AS col0
----
16
90

query I rowsort
SELECT ALL + - 61 + - - 78
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT ALL - - 99 + + COUNT( * ) * ( - - 96 ) AS col1
----
195

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL - - 99 + + COUNT ( * ) * ( - - 96 ) AS col1
----
195

query I rowsort
SELECT ALL 11 + - - 68 AS col1
----
79

query I rowsort
SELECT DISTINCT - + 49 + - 43 + + 55 * + 37 AS col2
----
1943

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2269
SELECT - 61 + + 99 + COUNT( * ) * - COUNT( * ) DIV - 67
----
38

skipif mysql # not compatible
query I rowsort label-2269
SELECT - 61 + + 99 + COUNT ( * ) * - COUNT ( * ) / - 67
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT SUM( - - 55 ) - 72
----
-17

skipif mysql # not compatible
query I rowsort label-2270
SELECT SUM ( - - 55 ) - 72
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2271
SELECT - CAST( - + COALESCE ( + + 90, + 29 + - 10 + 72 ) AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-2271
SELECT - CAST ( - + COALESCE ( + + 90, + 29 + - 10 + 72 ) AS INTEGER )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT NULLIF ( + + MAX( - 21 ), 23 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-2272
SELECT NULLIF ( + + MAX ( - 21 ), 23 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT ALL + - COUNT( * ) - - - 90 * + 94 * 82 + + 8
----
-693713

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL + - COUNT ( * ) - - - 90 * + 94 * 82 + + 8
----
-693713

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2274
SELECT ( - CASE + + CAST( - + 19 AS SIGNED ) WHEN COALESCE ( - 4, + 92 ) * - COUNT( 40 ) + - 96 + ( - 84 ) * CASE + 39 WHEN ( COUNT( DISTINCT + NULLIF ( + 50, 75 ) ) ) THEN NULL WHEN 58 - - 50 THEN 45 - MIN( 46 ) END + 68 / 96 THEN - 77 / + 76 + AVG ( ALL 50 + 46 / + 88 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2274
SELECT ( - CASE + + CAST ( - + 19 AS INTEGER ) WHEN COALESCE ( - 4, + 92 ) * - COUNT ( 40 ) + - 96 + ( - 84 ) * CASE + 39 WHEN ( COUNT ( DISTINCT + NULLIF ( + 50, 75 ) ) ) THEN NULL WHEN 58 - - 50 THEN 45 - MIN ( 46 ) END + 68 / 96 THEN - 77 / + 76 + AVG ( ALL 50 + 46 / + 88 ) END )
----
NULL

query I rowsort
SELECT 60 + + - 48 AS col1
----
12

query II rowsort
SELECT 47 AS col2, 21 - + 12 + + 15 AS col0
----
47
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2277
SELECT 44 DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-2277
SELECT 44 / - 56
----
0

query I rowsort
SELECT 80 * 69 * 25 AS col2
----
138000

query I rowsort
SELECT 86 + 71 AS col0
----
157

query I rowsort
SELECT ( ( 52 ) ) * + - 47 AS col0
----
-2444

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2282
SELECT 70 DIV + - 11
----
-6

skipif mysql # not compatible
query I rowsort label-2282
SELECT 70 / + - 11
----
-6

query I rowsort
SELECT ( 11 ) * + 29
----
319

query II rowsort
SELECT 85 col0, 6 * - - 17
----
85
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2285
SELECT ALL 79 * + CAST( 57 AS SIGNED ) AS col2
----
4503

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL 79 * + CAST ( 57 AS INTEGER ) AS col2
----
4503

query I rowsort
SELECT ( + - 32 ) * - 44 * - 10
----
-14080

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2287
SELECT ( + 40 ) - 54 + + 85 AS col2, - ( - CAST( + + 83 AS SIGNED ) )
----
71
83

skipif mysql # not compatible
query II rowsort label-2287
SELECT ( + 40 ) - 54 + + 85 AS col2, - ( - CAST ( + + 83 AS INTEGER ) )
----
71
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2288
SELECT CAST( + - NULLIF ( 36, + NULLIF ( - 36, + 24 * ( + 7 ) - 35 ) ) AS SIGNED ) * - 16 + - 16 * - + 91 - + - 12 + CAST( 6 AS SIGNED )
----
2050

skipif mysql # not compatible
query I rowsort label-2288
SELECT CAST ( + - NULLIF ( 36, + NULLIF ( - 36, + 24 * ( + 7 ) - 35 ) ) AS INTEGER ) * - 16 + - 16 * - + 91 - + - 12 + CAST ( 6 AS INTEGER )
----
2050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2289
SELECT ALL - 20 DIV COALESCE ( - 91, + + COUNT( * ) * 21 * + 95 + + 36 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL - 20 / COALESCE ( - 91, + + COUNT ( * ) * 21 * + 95 + + 36 ) col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2290
SELECT ALL - 91 + - COUNT( DISTINCT + NULLIF ( + 36, - + 33 ) ) * + + 87, 27 AS col1
----
-178
27

skipif mysql # not compatible
query II rowsort label-2290
SELECT ALL - 91 + - COUNT ( DISTINCT + NULLIF ( + 36, - + 33 ) ) * + + 87, 27 AS col1
----
-178
27

query I rowsort
SELECT + 70 - + 90 * 59 * - 47
----
249640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2292
SELECT ALL - MIN( ALL 26 ) DIV 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL - MIN ( ALL 26 ) / 79 AS col1
----
0

query I rowsort
SELECT + ( + - 13 ) - - 79
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT COUNT( * ) * + + 64 + 84 + + - COUNT( * )
----
147

skipif mysql # not compatible
query I rowsort label-2294
SELECT COUNT ( * ) * + + 64 + 84 + + - COUNT ( * )
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2295
SELECT + 36 * - 80 * - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 72 * + + 99 * + 4 + ( - 3 ) - + ( + ( + 84 ) ) / + CAST( NULL AS SIGNED ) + 85 + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT + 36 * - 80 * - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 72 * + + 99 * + 4 + ( - 3 ) - + ( + ( + 84 ) ) / + CAST ( NULL AS INTEGER ) + 85 + - 37
----
NULL

query I rowsort
SELECT 62 * - 12
----
-744

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2297
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, + 46 + 56 + - 15
----
NULL
87

skipif mysql # not compatible
query II rowsort label-2297
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, + 46 + 56 + - 15
----
NULL
87

query II rowsort
SELECT 36, - 3 col0
----
36
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT COUNT( * ) * + 83 + + + 97 - + MAX( DISTINCT 92 )
----
88

skipif mysql # not compatible
query I rowsort label-2299
SELECT COUNT ( * ) * + 83 + + + 97 - + MAX ( DISTINCT 92 )
----
88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT ALL + MAX( DISTINCT 79 )
----
79

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL + MAX ( DISTINCT 79 )
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-2302
SELECT - - ( - + 91 ), ( - ( - + MIN( - 90 ) ) ) + + 52 * 83 * 69 * 76 AS col2
----
-91
22633014

skipif mysql # not compatible
query II rowsort label-2302
SELECT - - ( - + 91 ), ( - ( - + MIN ( - 90 ) ) ) + + 52 * 83 * 69 * 76 AS col2
----
-91
22633014

query I rowsort
SELECT - - 35 + + 25
----
60

query I rowsort
SELECT - + 18 * - 12 col0
----
216

query II rowsort
SELECT ALL NULLIF ( - 58, 23 * 57 / + - 18 ), - 88 AS col2
----
-58
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2306
SELECT - 51 + + COALESCE ( - 90, COUNT( * ) - + CAST( NULL AS SIGNED ) * + 79 ) AS col0
----
-141

skipif mysql # not compatible
query I rowsort label-2306
SELECT - 51 + + COALESCE ( - 90, COUNT ( * ) - + CAST ( NULL AS INTEGER ) * + 79 ) AS col0
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2307
SELECT - COUNT( * ) + - CASE + - AVG ( ALL + 3 ) WHEN + 96 + 6 - + CAST( NULL AS SIGNED ) THEN + 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2307
SELECT - COUNT ( * ) + - CASE + - AVG ( ALL + 3 ) WHEN + 96 + 6 - + CAST ( NULL AS INTEGER ) THEN + 44 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT DISTINCT CASE 91 WHEN - - COUNT( - 32 ) THEN - 40 ELSE + 56 * - 12 - + 89 END
----
-761

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT CASE 91 WHEN - - COUNT ( - 32 ) THEN - 40 ELSE + 56 * - 12 - + 89 END
----
-761

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT - 3 + + 2 + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2310
SELECT - 3 + + 2 + - COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT ALL - 86 * - 67
----
5762

query I rowsort
SELECT DISTINCT 97 * + 12 + 49
----
1213

query I rowsort
SELECT ALL + 15 * + 72 + + - 80
----
1000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2314
SELECT ( + COUNT( * ) ) DIV - 25 * + ( + SUM( + 81 ) ) + - ( COUNT( DISTINCT - + 94 ) ) DIV + 32 * - NULLIF ( - + 42, 86 ) * - 68
----
0

skipif mysql # not compatible
query I rowsort label-2314
SELECT ( + COUNT ( * ) ) / - 25 * + ( + SUM ( + 81 ) ) + - ( COUNT ( DISTINCT - + 94 ) ) / + 32 * - NULLIF ( - + 42, 86 ) * - 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT COALESCE ( - COUNT( * ), - 67 * + 7 )
----
-1

skipif mysql # not compatible
query I rowsort label-2315
SELECT COALESCE ( - COUNT ( * ), - 67 * + 7 )
----
-1

query I rowsort
SELECT ALL 8 * + 39 * - 60 + + 74
----
-18646

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT - 39 * COUNT( * ) * 18 * 85 * NULLIF ( - 90, 13 ) - + COALESCE ( - 15, + COUNT( * ) )
----
5370315

skipif mysql # not compatible
query I rowsort label-2317
SELECT - 39 * COUNT ( * ) * 18 * 85 * NULLIF ( - 90, 13 ) - + COALESCE ( - 15, + COUNT ( * ) )
----
5370315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2318
SELECT CASE + 34 WHEN - + 25 THEN + CASE 1 WHEN - ( - 28 ) THEN - 8 * - ( - + COUNT( * ) ) * 51 + ( + ( + ( - + 93 ) ) ) WHEN + 56 THEN - CAST( NULL AS SIGNED ) WHEN 42 THEN NULL ELSE NULL END + 81 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2318
SELECT CASE + 34 WHEN - + 25 THEN + CASE 1 WHEN - ( - 28 ) THEN - 8 * - ( - + COUNT ( * ) ) * 51 + ( + ( + ( - + 93 ) ) ) WHEN + 56 THEN - CAST ( NULL AS INTEGER ) WHEN 42 THEN NULL ELSE NULL END + 81 END col1
----
NULL

query I rowsort
SELECT + CASE + 36 WHEN 51 THEN + 88 + - + 64 END + + 83 + + 90
----
NULL

query I rowsort
SELECT ALL 45 * - - 13 + - 97 AS col0
----
488

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2321
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 61 * ( - - CAST( NULL AS DECIMAL ) ) + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 61 * ( - - CAST ( NULL AS REAL ) ) + 89
----
NULL

query I rowsort
SELECT DISTINCT 20 * 9 + - 99 AS col1
----
81

query I rowsort
SELECT ALL + - 80 * - + 94 + + 93 * - + 63
----
1661

onlyif mysql # DIV for integer division: 
query I rowsort label-2324
SELECT - 15 * + 16 + - + 31 DIV - + 27 + + 75 + 5 + 53 + + 24 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-2324
SELECT - 15 * + 16 + - + 31 / - + 27 + + 75 + 5 + 53 + + 24 AS col1
----
-82

query I rowsort
SELECT ALL + + NULLIF ( 77, - + ( + 44 ) ) col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT DISTINCT - 51 * + 22 + 21 * + - 82 + + 13 * - COUNT( * ) * + 65 col2
----
-3689

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT - 51 * + 22 + 21 * + - 82 + + 13 * - COUNT ( * ) * + 65 col2
----
-3689

query I rowsort
SELECT + 7 * + 9 * - 53
----
-3339

query II rowsort
SELECT ALL - + 61 * 99 - 27, 63 AS col2
----
-6066
63

query I rowsort
SELECT - COALESCE ( + 2, + 65 * - ( + + 70 ) * - + 12 + 4 * - 84, 37 ) * + + 6
----
-12

query I rowsort
SELECT ALL 17 - + 89 * 36 + 7
----
-3180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2331
SELECT CAST( - COUNT( * ) AS SIGNED ), - ( ( - COALESCE ( - 14, - COUNT( + 86 ), - 50 + + + 97 ) ) ) * - 23 + - 20 AS col1
----
-1
302

skipif mysql # not compatible
query II rowsort label-2331
SELECT CAST ( - COUNT ( * ) AS INTEGER ), - ( ( - COALESCE ( - 14, - COUNT ( + 86 ), - 50 + + + 97 ) ) ) * - 23 + - 20 AS col1
----
-1
302

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT + + COUNT( * ) * + 55 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-2333
SELECT + + COUNT ( * ) * + 55 AS col1
----
55

query I rowsort
SELECT ALL - COALESCE ( + - 9, + + 24, + + 49 )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2335
SELECT + 36 DIV - - 73 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2335
SELECT + 36 / - - 73 * + COUNT ( * )
----
0

query II rowsort
SELECT - 6 + + 15, - 82 AS col0
----
9
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-2337
SELECT ALL + 42 * 0 - + 0 DIV 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL + 42 * 0 - + 0 / 44 AS col2
----
0

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

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

query I rowsort
SELECT - 80 * 71 AS col1
----
-5680

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT ALL - COUNT( - + 85 ) + 38 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL - COUNT ( - + 85 ) + 38 AS col2
----
37

query II rowsort
SELECT 18 AS col1, + 79
----
18
79

onlyif mysql # aggregate syntax: 
query II rowsort label-2342
SELECT ALL + 27 + 4 * + COUNT( * ), + SUM( 82 ) * - + 27 * + COUNT( * ) + - - 57 AS col0
----
31
-2157

skipif mysql # not compatible
query II rowsort label-2342
SELECT ALL + 27 + 4 * + COUNT ( * ), + SUM ( 82 ) * - + 27 * + COUNT ( * ) + - - 57 AS col0
----
31
-2157

query I rowsort
SELECT - ( + 53 ) + + COALESCE ( + 17, + 17 ) + 74 * + - 92 col1
----
-6844

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2344
SELECT - 26 AS col2, + CAST( NULL AS DECIMAL ) * - - 85 - + - 75
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-2344
SELECT - 26 AS col2, + CAST ( NULL AS REAL ) * - - 85 - + - 75
----
-26
NULL

query I rowsort
SELECT DISTINCT + 10 + + 40 AS col0
----
50

query I rowsort
SELECT ALL - 55 + + 32
----
-23

query I rowsort
SELECT + 20 + + 6 * + - 41 AS col1
----
-226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT DISTINCT - 19 * + + COALESCE ( - CAST( NULL AS SIGNED ), + - 49 * + - 23 * + 81, + 61 ) * - + 62 AS col0
----
107536086

skipif mysql # not compatible
query I rowsort label-2348
SELECT DISTINCT - 19 * + + COALESCE ( - CAST ( NULL AS INTEGER ), + - 49 * + - 23 * + 81, + 61 ) * - + 62 AS col0
----
107536086

onlyif mysql # DIV for integer division: 
query I rowsort label-2349
SELECT DISTINCT - 47 DIV + 86 * - 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2349
SELECT DISTINCT - 47 / + 86 * - 30 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT DISTINCT - 38 * 81 * + - 11 * - + COUNT( * )
----
-33858

skipif mysql # not compatible
query I rowsort label-2350
SELECT DISTINCT - 38 * 81 * + - 11 * - + COUNT ( * )
----
-33858

query I rowsort
SELECT - 84 * - - 64 col2
----
-5376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2352
SELECT DISTINCT - NULLIF ( - - COUNT( * ), - 89 - + CAST( + 2 AS SIGNED ) - - - 78 + - 87 ) DIV + 54 - + - ( + ( + 31 ) ) DIV - - 85
----
0

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT - NULLIF ( - - COUNT ( * ), - 89 - + CAST ( + 2 AS INTEGER ) - - - 78 + - 87 ) / + 54 - + - ( + ( + 31 ) ) / - - 85
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2353
SELECT + 40 col0, CAST( NULL AS SIGNED ) * + 99 + + 34 AS col0
----
40
NULL

skipif mysql # not compatible
query II rowsort label-2353
SELECT + 40 col0, CAST ( NULL AS INTEGER ) * + 99 + + 34 AS col0
----
40
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2354
SELECT - COUNT( * ) - + 33 DIV 25 DIV + + 47 col2
----
-1

skipif mysql # not compatible
query I rowsort label-2354
SELECT - COUNT ( * ) - + 33 / 25 / + + 47 col2
----
-1

query I rowsort
SELECT + 79 * - 39 * - + 82 * - 43 col2
----
-10863606

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2356
SELECT - - 9 + + CAST( NULL AS SIGNED ) + + ( + ( + NULLIF ( 54, - 15 * + + 2 + 29 * + - 35 ) ) ) + + 48 + ( - 73 ) * + + 44 * + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2356
SELECT - - 9 + + CAST ( NULL AS INTEGER ) + + ( + ( + NULLIF ( 54, - 15 * + + 2 + 29 * + - 35 ) ) ) + + 48 + ( - 73 ) * + + 44 * + + 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT ALL - CASE 95 WHEN + 26 THEN 47 * - 61 + CASE + - 92 WHEN ( - - 30 ) THEN NULL ELSE - 8 END ELSE NULL END * + COUNT( * ) * - ( + - 8 ) * - + 73 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL - CASE 95 WHEN + 26 THEN 47 * - 61 + CASE + - 92 WHEN ( - - 30 ) THEN NULL ELSE - 8 END ELSE NULL END * + COUNT ( * ) * - ( + - 8 ) * - + 73 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT - - 92 * + + COALESCE ( + - COUNT( * ), + 90 + - 86, + 78 ) + - + 25
----
-117

skipif mysql # not compatible
query I rowsort label-2358
SELECT - - 92 * + + COALESCE ( + - COUNT ( * ), + 90 + - 86, + 78 ) + - + 25
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2359
SELECT DISTINCT + + CAST( COUNT( * ) AS SIGNED ) DIV + 47 + + 3 + - 5 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT + + CAST ( COUNT ( * ) AS INTEGER ) / + 47 + + 3 + - 5 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT ALL + CASE + 44 WHEN + COUNT( * ) THEN NULL WHEN - 45 THEN - + 38 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL + CASE + 44 WHEN + COUNT ( * ) THEN NULL WHEN - 45 THEN - + 38 END AS col2
----
NULL

query I rowsort
SELECT ALL - ( - 7 ) * - 19
----
-133

query I rowsort
SELECT ALL + + 87 * + ( + 75 ) col0
----
6525

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT ALL - ( + COUNT( DISTINCT + + 59 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL - ( + COUNT ( DISTINCT + + 59 ) ) col0
----
-1

query II rowsort
SELECT + 30, + 68 AS col0
----
30
68

query I rowsort
SELECT DISTINCT - 46 * - 43 AS col0
----
1978

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2367
SELECT + 33 * - 78 + + + 10 AS col2, CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-2564
-1

skipif mysql # not compatible
query II rowsort label-2367
SELECT + 33 * - 78 + + + 10 AS col2, CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-2564
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2369
SELECT CASE + - SUM( 65 ) WHEN + 31 THEN + CASE - - 70 WHEN - NULLIF ( - 16, - 58 ) + - 46 - - - AVG ( + COALESCE ( - - 48, 6 * CAST( NULL AS SIGNED ) ) ) + 80 + - + 51 + 91 * 60 / - 89 / + 68 THEN - CAST( NULL AS SIGNED ) + + ( + 92 ) / MIN( DISTINCT - 70 + 7 ) WHEN 28 THEN MIN( ALL + 95 ) + COUNT( * ) WHEN + 7 THEN 59 * COUNT( * ) END ELSE NULL END * NULLIF ( - 23, + 69 + + 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT CASE + - SUM ( 65 ) WHEN + 31 THEN + CASE - - 70 WHEN - NULLIF ( - 16, - 58 ) + - 46 - - - AVG ( + COALESCE ( - - 48, 6 * CAST ( NULL AS INTEGER ) ) ) + 80 + - + 51 + 91 * 60 / - 89 / + 68 THEN - CAST ( NULL AS INTEGER ) + + ( + 92 ) / MIN ( DISTINCT - 70 + 7 ) WHEN 28 THEN MIN ( ALL + 95 ) + COUNT ( * ) WHEN + 7 THEN 59 * COUNT ( * ) END ELSE NULL END * NULLIF ( - 23, + 69 + + 58 )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2371
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), + 94 + + NULLIF ( + 92, + - 2 + + 19 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), + 94 + + NULLIF ( + 92, + - 2 + + 19 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT ALL 26 + - MIN( + ( + 81 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL 26 + - MIN ( + ( + 81 ) )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT ALL ( MAX( 42 ) ) + + + 16
----
58

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL ( MAX ( 42 ) ) + + + 16
----
58

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

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL + COUNT ( * ) + - + 26 AS col0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-2375
SELECT ALL - 68 + - 25 DIV 3 * + 94
----
-820

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL - 68 + - 25 / 3 * + 94
----
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT ( + + MAX( ALL - 88 ) ) + + 12 * - NULLIF ( - 47, - - COUNT( * ) + - 17 )
----
476

skipif mysql # not compatible
query I rowsort label-2376
SELECT ( + + MAX ( ALL - 88 ) ) + + 12 * - NULLIF ( - 47, - - COUNT ( * ) + - 17 )
----
476

onlyif mysql # DIV for integer division: 
query I rowsort label-2377
SELECT 95 DIV + - CASE + - ( 15 ) WHEN 39 THEN NULL ELSE - 91 * - 29 - + 77 + - 33 - 58 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2377
SELECT 95 / + - CASE + - ( 15 ) WHEN 39 THEN NULL ELSE - 91 * - 29 - + 77 + - 33 - 58 END AS col1
----
0

query I rowsort
SELECT 75 + + - 28
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT ( + 22 ) * - + 8 + COUNT( 93 ) * + 16 + + ( - CASE - MAX( DISTINCT ( + 20 ) ) WHEN - 37 THEN + + 13 + + 4 END ) + - 33 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2379
SELECT ( + 22 ) * - + 8 + COUNT ( 93 ) * + 16 + + ( - CASE - MAX ( DISTINCT ( + 20 ) ) WHEN - 37 THEN + + 13 + + 4 END ) + - 33 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2380
SELECT CAST( - + 82 AS SIGNED ) + + 18
----
-64

skipif mysql # not compatible
query I rowsort label-2380
SELECT CAST ( - + 82 AS INTEGER ) + + 18
----
-64

query I rowsort
SELECT 20 * 86
----
1720

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT COUNT( DISTINCT + 6 ) + - + 77
----
-76

skipif mysql # not compatible
query I rowsort label-2382
SELECT COUNT ( DISTINCT + 6 ) + - + 77
----
-76

query I rowsort
SELECT ALL 96 + + 33
----
129

query I rowsort
SELECT DISTINCT 14 * - 73
----
-1022

query I rowsort
SELECT ALL + ( - + 80 ) - - COALESCE ( - + 21, - 14 ) + 31 + + 78 - 21
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2386
SELECT - 31 * - 87 + - NULLIF ( + 8, - 92 * + + 25 - + CAST( 62 AS SIGNED ) + + 86 * + AVG ( 12 ) + + ( - 81 ) + + - 82 + 66 ) AS col2, - 69 - - 74 + + - CASE + + 23 WHEN - 66 * 74 THEN NULL WHEN + 90 THEN 54 WHEN ( 65 ) THEN NULL ELSE NULL END * + 52
----
2689
NULL

skipif mysql # not compatible
query II rowsort label-2386
SELECT - 31 * - 87 + - NULLIF ( + 8, - 92 * + + 25 - + CAST ( 62 AS INTEGER ) + + 86 * + AVG ( 12 ) + + ( - 81 ) + + - 82 + 66 ) AS col2, - 69 - - 74 + + - CASE + + 23 WHEN - 66 * 74 THEN NULL WHEN + 90 THEN 54 WHEN ( 65 ) THEN NULL ELSE NULL END * + 52
----
2689
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2387
SELECT DISTINCT - COALESCE ( + NULLIF ( 51, + 63 * + - COUNT( * ) / - + CAST( - + 16 AS SIGNED ) + - 44 + + 96 + + - ( + 49 ) / 68 + - + 84 ), - 13 * - - CAST( - 23 AS SIGNED ), - + 18 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT - COALESCE ( + NULLIF ( 51, + 63 * + - COUNT ( * ) / - + CAST ( - + 16 AS INTEGER ) + - 44 + + 96 + + - ( + 49 ) / 68 + - + 84 ), - 13 * - - CAST ( - 23 AS INTEGER ), - + 18 ) AS col2
----
-51

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

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

query I rowsort
SELECT - 60 * - 92 + + + 46 + 13
----
5579

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2390
SELECT - 44 * - COUNT( * ) * 42 + 20 + - 72 * + + CAST( + 4 AS SIGNED ) + 5 * - COUNT( * ) DIV ( + 90 ) * - 93
----
1580

skipif mysql # not compatible
query I rowsort label-2390
SELECT - 44 * - COUNT ( * ) * 42 + 20 + - 72 * + + CAST ( + 4 AS INTEGER ) + 5 * - COUNT ( * ) / ( + 90 ) * - 93
----
1580

query I rowsort
SELECT 67 * - 85
----
-5695

query I rowsort
SELECT DISTINCT + 2 * 23 AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2393
SELECT - 48 * + 30 - 75 - NULLIF ( - + CASE - 85 WHEN + + 98 + - COUNT( * ) THEN NULL WHEN + 94 + - + 90 THEN - 37 * + COUNT( * ) + + + 46 - 22 WHEN COALESCE ( + 36, + - 67 / 21 * 7 * 21 + - 32, - 10 / + 55 ) THEN 67 END, CAST( NULL AS SIGNED ) ) * - 46 * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2393
SELECT - 48 * + 30 - 75 - NULLIF ( - + CASE - 85 WHEN + + 98 + - COUNT ( * ) THEN NULL WHEN + 94 + - + 90 THEN - 37 * + COUNT ( * ) + + + 46 - 22 WHEN COALESCE ( + 36, + - 67 / 21 * 7 * 21 + - 32, - 10 / + 55 ) THEN 67 END, CAST ( NULL AS INTEGER ) ) * - 46 * 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2394
SELECT ALL + CASE 79 WHEN - + 96 THEN NULL WHEN - + 88 * + 30 + + 72 THEN NULL ELSE 90 - - + CAST( - 98 AS SIGNED ) + + ( - - CASE ( - 32 ) WHEN 78 / - 40 + - + 11 * + SUM( + + 82 ) THEN - COUNT( * ) * 30 WHEN 22 * 17 THEN NULL END ) END * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL + CASE 79 WHEN - + 96 THEN NULL WHEN - + 88 * + 30 + + 72 THEN NULL ELSE 90 - - + CAST ( - 98 AS INTEGER ) + + ( - - CASE ( - 32 ) WHEN 78 / - 40 + - + 11 * + SUM ( + + 82 ) THEN - COUNT ( * ) * 30 WHEN 22 * 17 THEN NULL END ) END * 2
----
NULL

query I rowsort
SELECT ALL + 8 * - NULLIF ( + 0, - 21 / 72 + - 25 * - + 74 ) + + - 42
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2396
SELECT COALESCE ( + 83, - + 59, - - COUNT( * ) * + 13 + + 9 - + 46 * - ( 40 ) ) DIV - 51 col0, 96 + COUNT( * ) * - 70
----
-1
26

skipif mysql # not compatible
query II rowsort label-2396
SELECT COALESCE ( + 83, - + 59, - - COUNT ( * ) * + 13 + + 9 - + 46 * - ( 40 ) ) / - 51 col0, 96 + COUNT ( * ) * - 70
----
-1
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT DISTINCT + - 35 + COUNT( * ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT + - 35 + COUNT ( * ) AS col0
----
-34

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2399
SELECT ALL + - 59 DIV - + 94 + + - ( - + NULLIF ( - 37, + 48 ) ) + 67
----
30

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL + - 59 / - + 94 + + - ( - + NULLIF ( - 37, + 48 ) ) + 67
----
30

query I rowsort
SELECT 95 * 92 AS col0
----
8740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2401
SELECT + 45 * - - ( + 30 ) * COALESCE ( CASE CAST( NULL AS SIGNED ) WHEN - + 29 THEN - + 74 + 99 END, 95 ) + - ( - COUNT( * ) ) AS col1
----
128251

skipif mysql # not compatible
query I rowsort label-2401
SELECT + 45 * - - ( + 30 ) * COALESCE ( CASE CAST ( NULL AS INTEGER ) WHEN - + 29 THEN - + 74 + 99 END, 95 ) + - ( - COUNT ( * ) ) AS col1
----
128251

query I rowsort
SELECT ALL - + 93 + - 5
----
-98

query I rowsort
SELECT ALL - 65 + - 89
----
-154

query I rowsort
SELECT ALL 51 + - 70 + 88 AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2405
SELECT - 59 AS col0, CAST( + + 34 AS SIGNED ) - 41 * COUNT( * ) * - + 89
----
-59
3683

skipif mysql # not compatible
query II rowsort label-2405
SELECT - 59 AS col0, CAST ( + + 34 AS INTEGER ) - 41 * COUNT ( * ) * - + 89
----
-59
3683

query I rowsort
SELECT DISTINCT - 9 + 74 AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2407
SELECT DISTINCT + 55 + - CAST( NULL AS SIGNED ) + + 19, - 94 AS col0
----
NULL
-94

skipif mysql # not compatible
query II rowsort label-2407
SELECT DISTINCT + 55 + - CAST ( NULL AS INTEGER ) + + 19, - 94 AS col0
----
NULL
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2408
SELECT ALL 56 + + + 9 + NULLIF ( + 66, - 2 * - 59 + + COUNT( * ) ) / + CAST( NULL AS SIGNED ) AS col2, CAST( NULL AS DECIMAL ) + + 92
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2408
SELECT ALL 56 + + + 9 + NULLIF ( + 66, - 2 * - 59 + + COUNT ( * ) ) / + CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS REAL ) + + 92
----
NULL
NULL

query I rowsort
SELECT ALL 15 + - 28 AS col1
----
-13

query I rowsort
SELECT NULLIF ( 88, + 39 ) + + ( 21 )
----
109

query I rowsort
SELECT 20 + - 30 - - 85 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT ALL COALESCE ( + - COUNT( * ), + 0 * + 56 * + 15 ) - + 14 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL COALESCE ( + - COUNT ( * ), + 0 * + 56 * + 15 ) - + 14 AS col2
----
-15

query I rowsort
SELECT ALL ( 32 ) - - + 77
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2414
SELECT CAST( NULL AS SIGNED ) * CASE + 38 WHEN - 46 + + 89 THEN NULL ELSE + 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2414
SELECT CAST ( NULL AS INTEGER ) * CASE + 38 WHEN - 46 + + 89 THEN NULL ELSE + 19 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT COUNT( * ) - 96 * + - 44 AS col0
----
4225

skipif mysql # not compatible
query I rowsort label-2415
SELECT COUNT ( * ) - 96 * + - 44 AS col0
----
4225

query I rowsort
SELECT 39 * 81
----
3159

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT CASE - - 17 WHEN + + 27 THEN NULL WHEN - ( - AVG ( DISTINCT + 0 ) ) + - 12 THEN - 39 + - - ( + - 91 ) / - COUNT( * ) + - 85 + + 70 - COUNT( * ) / 25 ELSE + + 47 END
----
47

skipif mysql # not compatible
query I rowsort label-2417
SELECT CASE - - 17 WHEN + + 27 THEN NULL WHEN - ( - AVG ( DISTINCT + 0 ) ) + - 12 THEN - 39 + - - ( + - 91 ) / - COUNT ( * ) + - 85 + + 70 - COUNT ( * ) / 25 ELSE + + 47 END
----
47

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

skipif mysql # not compatible
query I rowsort label-2418
SELECT 45 / COUNT ( * )
----
45

query I rowsort
SELECT DISTINCT 36 * - + ( + 40 )
----
-1440

onlyif mysql # aggregate syntax: 
query II rowsort label-2420
SELECT ALL - 72 * MIN( ALL - 69 ) AS col1, - SUM( + 84 ) - + - 82
----
4968
-2

skipif mysql # not compatible
query II rowsort label-2420
SELECT ALL - 72 * MIN ( ALL - 69 ) AS col1, - SUM ( + 84 ) - + - 82
----
4968
-2

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2422
SELECT + 9 DIV - 85 * + 30 - - 99 * + 55 + 46 * ( + + 74 ) * + - 98 * - + 96, - 98 AS col1
----
32030277
-98

skipif mysql # not compatible
query II rowsort label-2422
SELECT + 9 / - 85 * + 30 - - 99 * + 55 + 46 * ( + + 74 ) * + - 98 * - + 96, - 98 AS col1
----
32030277
-98

query I rowsort
SELECT ALL 83 * 22 AS col1
----
1826

onlyif mysql # DIV for integer division: 
query I rowsort label-2424
SELECT DISTINCT - - 62 DIV - - 67 + - 36 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT - - 62 / - - 67 + - 36 AS col2
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2425
SELECT - ( 85 ) DIV + MAX( - 13 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2425
SELECT - ( 85 ) / + MAX ( - 13 ) AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2426
SELECT - - 26 * 83 + NULLIF ( COALESCE ( - + CAST( + - 65 AS SIGNED ), - + 91 ), - COUNT( * ) ) + - + 39 AS col2
----
2184

skipif mysql # not compatible
query I rowsort label-2426
SELECT - - 26 * 83 + NULLIF ( COALESCE ( - + CAST ( + - 65 AS INTEGER ), - + 91 ), - COUNT ( * ) ) + - + 39 AS col2
----
2184

query II rowsort
SELECT + + 95 AS col1, + 34 * + 3 + + 68 - + 48 - + ( + 23 ) AS col2
----
95
99

onlyif mysql # DIV for integer division: 
query II rowsort label-2428
SELECT + 59 AS col1, - 64 DIV - + 45
----
59
1

skipif mysql # not compatible
query II rowsort label-2428
SELECT + 59 AS col1, - 64 / - + 45
----
59
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT + MIN( ALL CASE - + 92 WHEN + 17 + + 96 THEN NULL WHEN - 45 THEN + 7 + + 59 + 13 END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2430
SELECT + MIN ( ALL CASE - + 92 WHEN + 17 + + 96 THEN NULL WHEN - 45 THEN + 7 + + 59 + 13 END ) col1
----
NULL

query II rowsort
SELECT + 93 AS col0, - 74
----
93
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2432
SELECT DISTINCT 7 * NULLIF ( - ( - - 58 ), COUNT( * ) ) + 4 + - 64 + - COALESCE ( - - 17, + 91, - 79 + 78 ) * - NULLIF ( - NULLIF ( - CAST( - + COUNT( * ) AS SIGNED ), + 34 ), - - COUNT( * ) * 83 ) AS col2
----
-483

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT 7 * NULLIF ( - ( - - 58 ), COUNT ( * ) ) + 4 + - 64 + - COALESCE ( - - 17, + 91, - 79 + 78 ) * - NULLIF ( - NULLIF ( - CAST ( - + COUNT ( * ) AS INTEGER ), + 34 ), - - COUNT ( * ) * 83 ) AS col2
----
-483

query I rowsort
SELECT + 3 + 82 + - 94 + - - 76
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT + 49 * COUNT( * ) * + COUNT( * ) - + + 7 * + 51 + - 6
----
-314

skipif mysql # not compatible
query I rowsort label-2434
SELECT + 49 * COUNT ( * ) * + COUNT ( * ) - + + 7 * + 51 + - 6
----
-314

query II rowsort
SELECT DISTINCT + 92 AS col1, 90 col1
----
92
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2436
SELECT 16 * - + CAST( NULL AS SIGNED ) / - + 48 * - + 38 + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2436
SELECT 16 * - + CAST ( NULL AS INTEGER ) / - + 48 * - + 38 + - 40
----
NULL

query I rowsort
SELECT ALL + 8 * - - 30 + - - 24 + - + 67
----
197

query I rowsort
SELECT ALL - + 65 + + 74 * - 95 + + 9
----
-7086

query I rowsort
SELECT DISTINCT + - 87 col2
----
-87

query II rowsort
SELECT DISTINCT + - 26 AS col1, - 94 AS col2
----
-26
-94

query I rowsort
SELECT DISTINCT - - 15 + + + 80
----
95

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

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

query I rowsort
SELECT - 9 + 54 + - + ( - - 97 ) * - 67
----
6544

query I rowsort
SELECT ALL - 5 + - 88 + + 78 * + 1 * 69
----
5289

query I rowsort
SELECT - 21 * + - 99
----
2079

onlyif mysql # aggregate syntax: 
query II rowsort label-2446
SELECT ALL NULLIF ( + - ( CASE 96 WHEN - - 87 THEN + 13 * - + COUNT( * ) - 45 + 90 WHEN - - ( 94 ) THEN NULL END ), + - 71 - - 43 * - ( 56 ) + + COUNT( * ) ), 3 AS col0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2446
SELECT ALL NULLIF ( + - ( CASE 96 WHEN - - 87 THEN + 13 * - + COUNT ( * ) - 45 + 90 WHEN - - ( 94 ) THEN NULL END ), + - 71 - - 43 * - ( 56 ) + + COUNT ( * ) ), 3 AS col0
----
NULL
3

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

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL ( - SUM ( - 41 ) )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2448
SELECT DISTINCT - 88 DIV - - 41 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2448
SELECT DISTINCT - 88 / - - 41 AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2449
SELECT DISTINCT - 79 DIV - 71
----
1

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT - 79 / - 71
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2450
SELECT + 43 / ( - - 46 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2450
SELECT + 43 / ( - - 46 ) * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 37 AS col2, 10 * 63 + ( 70 ) AS col2
----
37
700

onlyif mysql # DIV for integer division: 
query II rowsort label-2452
SELECT - 91 AS col2, 16 DIV - 99 - - ( - 52 ) AS col1
----
-91
-52

skipif mysql # not compatible
query II rowsort label-2452
SELECT - 91 AS col2, 16 / - 99 - - ( - 52 ) AS col1
----
-91
-52

query I rowsort
SELECT DISTINCT ( - 65 ) * - 67 AS col2
----
4355

query II rowsort
SELECT ALL 2 col0, 43 + - + 21
----
2
22

query I rowsort
SELECT + 1 + - 36 - 49 AS col1
----
-84

query I rowsort
SELECT - ( + NULLIF ( 94, 88 ) ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-2457
SELECT DISTINCT - MIN( DISTINCT + 73 ) * + 63 * 32 + + - 31 + + 59 + 83 col2, + 92 AS col0
----
-147057
92

skipif mysql # not compatible
query II rowsort label-2457
SELECT DISTINCT - MIN ( DISTINCT + 73 ) * + 63 * 32 + + - 31 + + 59 + 83 col2, + 92 AS col0
----
-147057
92

query I rowsort
SELECT + 98 * 56 AS col0
----
5488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2459
SELECT ALL + - COUNT( * ) DIV - + ( + + 8 ) + + 59
----
59

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL + - COUNT ( * ) / - + ( + + 8 ) + + 59
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2460
SELECT DISTINCT + 58 AS col2, 62 + + - ( MIN( + 45 ) ) * 65 AS col2
----
58
-2863

skipif mysql # not compatible
query II rowsort label-2460
SELECT DISTINCT + 58 AS col2, 62 + + - ( MIN ( + 45 ) ) * 65 AS col2
----
58
-2863

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT + - CASE - ( 96 ) WHEN - AVG ( DISTINCT 91 ) - - MIN( DISTINCT - 19 ) THEN - 87 ELSE NULL END * 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2462
SELECT + - CASE - ( 96 ) WHEN - AVG ( DISTINCT 91 ) - - MIN ( DISTINCT - 19 ) THEN - 87 ELSE NULL END * 72 AS col1
----
NULL

query I rowsort
SELECT + - 80 + 1 AS col2
----
-79

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2465
SELECT DISTINCT - SUM( - - 42 ) DIV + COUNT( * ) + - 45 + - - ( + 5 ) DIV - 91 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT - SUM ( - - 42 ) / + COUNT ( * ) + - 45 + - - ( + 5 ) / - 91 AS col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2466
SELECT ALL 5 / ( - + COUNT( + 44 ) ) * + CAST( NULL AS SIGNED ) + + 76 + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL 5 / ( - + COUNT ( + 44 ) ) * + CAST ( NULL AS INTEGER ) + + 76 + 28 AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2468
SELECT + 0 * 0 DIV - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2468
SELECT + 0 * 0 / - 66 AS col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2470
SELECT + CASE - + 71 WHEN 21 + CASE + - 3 WHEN + CAST( NULL AS SIGNED ) * - + 49 * 15 THEN NULL ELSE + MIN( ALL - - 9 ) * - COUNT( * ) + 22 + - + 14 + + 33 - - ( + COUNT( * ) ) / + - 6 END THEN 72 * - COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2470
SELECT + CASE - + 71 WHEN 21 + CASE + - 3 WHEN + CAST ( NULL AS INTEGER ) * - + 49 * 15 THEN NULL ELSE + MIN ( ALL - - 9 ) * - COUNT ( * ) + 22 + - + 14 + + 33 - - ( + COUNT ( * ) ) / + - 6 END THEN 72 * - COUNT ( * ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT DISTINCT - + MIN( + 79 ) * - - 94 * 61 + - - 12 AS col0
----
-452974

skipif mysql # not compatible
query I rowsort label-2471
SELECT DISTINCT - + MIN ( + 79 ) * - - 94 * 61 + - - 12 AS col0
----
-452974

query I rowsort
SELECT ALL 5 * + 89 + - 64 AS col2
----
381

query II rowsort
SELECT + 22 AS col2, - 29 * 4 - - + 13
----
22
-103

query I rowsort
SELECT ALL - 23 * - + ( + + 40 )
----
920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2475
SELECT ALL - - SUM( - 87 ) DIV - 75
----
1

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL - - SUM ( - 87 ) / - 75
----
1

query II rowsort
SELECT + + 2 col0, + ( + - 57 )
----
2
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2477
SELECT CASE COUNT( * ) WHEN 62 THEN + + COUNT( * ) + - + 33 WHEN - CASE WHEN NOT 56 IS NOT NULL THEN + + MIN( DISTINCT - 33 ) + 46 + + 62 * COUNT( * ) * - ( - 94 ) END THEN NULL ELSE - CAST( - 8 AS SIGNED ) END AS col0
----
8

skipif mysql # not compatible
query I rowsort label-2477
SELECT CASE COUNT ( * ) WHEN 62 THEN + + COUNT ( * ) + - + 33 WHEN - CASE WHEN NOT 56 IS NOT NULL THEN + + MIN ( DISTINCT - 33 ) + 46 + + 62 * COUNT ( * ) * - ( - 94 ) END THEN NULL ELSE - CAST ( - 8 AS INTEGER ) END AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT ALL 14 * COUNT( * ) - + 82 - - + 85 * + - 10 * - + 39 * + 33
----
1093882

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL 14 * COUNT ( * ) - + 82 - - + 85 * + - 10 * - + 39 * + 33
----
1093882

query I rowsort
SELECT + 98 * - 32 AS col1
----
-3136

query I rowsort
SELECT + 15 + ( + 58 ) * - 1
----
-43

query I rowsort
SELECT ALL ( 21 ) * - 5 * 12 - ( + - ( + - ( - 51 ) ) ) AS col0
----
-1209

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT - 61 + + 65 + 70 * - SUM( ALL - 80 )
----
5604

skipif mysql # not compatible
query I rowsort label-2482
SELECT - 61 + + 65 + 70 * - SUM ( ALL - 80 )
----
5604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2483
SELECT DISTINCT CASE - ( - CAST( NULL AS SIGNED ) ) WHEN - 31 / - - 84 * 95 THEN - SUM( ALL + - 81 ) + + ( + + 67 ) WHEN 34 * + CASE - 6 WHEN + ( 75 ) / COUNT( * ) THEN NULL ELSE 87 END * CASE - 27 WHEN - 29 THEN + COUNT( * ) ELSE - 7 END - + 11 * COALESCE ( ( + 57 ) * 87, - 59, + 71 / 50 + + ( 36 + 37 ) ) + + 94 THEN + CASE 51 WHEN - 82 * + COUNT( + 75 ) THEN NULL ELSE 63 END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT CASE - ( - CAST ( NULL AS INTEGER ) ) WHEN - 31 / - - 84 * 95 THEN - SUM ( ALL + - 81 ) + + ( + + 67 ) WHEN 34 * + CASE - 6 WHEN + ( 75 ) / COUNT ( * ) THEN NULL ELSE 87 END * CASE - 27 WHEN - 29 THEN + COUNT ( * ) ELSE - 7 END - + 11 * COALESCE ( ( + 57 ) * 87, - 59, + 71 / 50 + + ( 36 + 37 ) ) + + 94 THEN + CASE 51 WHEN - 82 * + COUNT ( + 75 ) THEN NULL ELSE 63 END END AS col1
----
NULL

query I rowsort
SELECT ALL - 75 * 0 * + - 37 * - - 35 col1
----
0

query I rowsort
SELECT - 37 + + 25 - + 88 AS col0
----
-100

query I rowsort
SELECT - 1 * + 7 * 18 AS col2
----
-126

query I rowsort
SELECT + 7 + + 18 * + 14 AS col1
----
259

onlyif mysql # DIV for integer division: 
query II rowsort label-2488
SELECT DISTINCT - 30 DIV + 87, 69 AS col1
----
0
69

skipif mysql # not compatible
query II rowsort label-2488
SELECT DISTINCT - 30 / + 87, 69 AS col1
----
0
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2489
SELECT DISTINCT ( + COUNT( * ) ) AS col2, ( + 51 ) DIV - 84 + + - 22 - + COUNT( * ) AS col1
----
1
-23

skipif mysql # not compatible
query II rowsort label-2489
SELECT DISTINCT ( + COUNT ( * ) ) AS col2, ( + 51 ) / - 84 + + - 22 - + COUNT ( * ) AS col1
----
1
-23

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2491
SELECT 39 DIV + 98 * 68
----
0

skipif mysql # not compatible
query I rowsort label-2491
SELECT 39 / + 98 * 68
----
0

query I rowsort
SELECT ALL + 70 + - 60 * + 86 AS col1
----
-5090

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT DISTINCT - - 91 + + MIN( DISTINCT 49 ) * 82 AS col0
----
4109

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT - - 91 + + MIN ( DISTINCT 49 ) * 82 AS col0
----
4109

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2494
SELECT DISTINCT + - COUNT( * ) DIV 40 AS col1, COUNT( 84 )
----
0
1

skipif mysql # not compatible
query II rowsort label-2494
SELECT DISTINCT + - COUNT ( * ) / 40 AS col1, COUNT ( 84 )
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2495
SELECT ALL 35 + CASE - 45 WHEN - + 6 / 80 THEN - CAST( NULL AS SIGNED ) END * - 9 + + - ( 30 ) * - + 52 * - - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL 35 + CASE - 45 WHEN - + 6 / 80 THEN - CAST ( NULL AS INTEGER ) END * - 9 + + - ( 30 ) * - + 52 * - - 90 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT ALL - ( COUNT( * ) ) + 29 * + + 5
----
144

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL - ( COUNT ( * ) ) + 29 * + + 5
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-2497
SELECT ALL + 20 * + 17 + 41 DIV 90
----
340

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL + 20 * + 17 + 41 / 90
----
340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2498
SELECT - COUNT( * ) DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-2498
SELECT - COUNT ( * ) / 82
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2499
SELECT - CAST( 15 AS SIGNED ) - - 46
----
31

skipif mysql # not compatible
query I rowsort label-2499
SELECT - CAST ( 15 AS INTEGER ) - - 46
----
31

query I rowsort
SELECT - 32 * 66
----
-2112

query I rowsort
SELECT 24 * - 15 AS col1
----
-360

query II rowsort
SELECT DISTINCT - 85 * - + 84 AS col1, 97
----
7140
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2503
SELECT ALL - + CASE 25 WHEN + 26 THEN NULL WHEN - COUNT( * ) + + + 21 * + + 66 THEN + + 33 / - + CASE + 45 WHEN + + 35 THEN 89 / 35 / SUM( 4 ) + - + 19 END / - 29 + - COUNT( + CAST( NULL AS SIGNED ) ) + - - 92 * + 71 + + 52 END + 5 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL - + CASE 25 WHEN + 26 THEN NULL WHEN - COUNT ( * ) + + + 21 * + + 66 THEN + + 33 / - + CASE + 45 WHEN + + 35 THEN 89 / 35 / SUM ( 4 ) + - + 19 END / - 29 + - COUNT ( + CAST ( NULL AS INTEGER ) ) + - - 92 * + 71 + + 52 END + 5 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2504
SELECT DISTINCT - 35 + COALESCE ( + 33, 45 * 13, + CAST( NULL AS SIGNED ) ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT - 35 + COALESCE ( + 33, 45 * 13, + CAST ( NULL AS INTEGER ) ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2505
SELECT ALL CAST( NULL AS SIGNED ) - + 61 + + ( - AVG ( ALL ( - 7 ) ) ) * COUNT( ALL 33 ) + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL CAST ( NULL AS INTEGER ) - + 61 + + ( - AVG ( ALL ( - 7 ) ) ) * COUNT ( ALL 33 ) + 45
----
NULL

query I rowsort
SELECT - 74 * + - ( - 51 )
----
-3774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2507
SELECT DISTINCT - CASE + CAST( NULL AS SIGNED ) WHEN + 70 THEN + + 54 * - + 86 + - + 40 ELSE - + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-2507
SELECT DISTINCT - CASE + CAST ( NULL AS INTEGER ) WHEN + 70 THEN + + 54 * - + 86 + - + 40 ELSE - + COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT ALL ( 17 ) * + MAX( - 7 ) * + 66 + - COUNT( * ) + 96 col1
----
-7759

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL ( 17 ) * + MAX ( - 7 ) * + 66 + - COUNT ( * ) + 96 col1
----
-7759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2509
SELECT NULLIF ( + 69, + + CAST( + ( + 65 ) AS SIGNED ) * - - ( 15 ) ) * 25 AS col2, + 56 DIV - - ( - CASE + ( + 40 ) WHEN - 88 THEN NULL WHEN COUNT( * ) + + 27 DIV - 60 * - 36 THEN + + 40 ELSE - 33 * - COUNT( * ) + - - SUM( - - 53 ) END ) AS col0
----
1725
0

skipif mysql # not compatible
query II rowsort label-2509
SELECT NULLIF ( + 69, + + CAST ( + ( + 65 ) AS INTEGER ) * - - ( 15 ) ) * 25 AS col2, + 56 / - - ( - CASE + ( + 40 ) WHEN - 88 THEN NULL WHEN COUNT ( * ) + + 27 / - 60 * - 36 THEN + + 40 ELSE - 33 * - COUNT ( * ) + - - SUM ( - - 53 ) END ) AS col0
----
1725
0

query II rowsort
SELECT DISTINCT - 30 AS col2, - 8 * + 56
----
-30
-448

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT COALESCE ( + - ( 29 ), + 42 ) DIV 45 DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-2511
SELECT COALESCE ( + - ( 29 ), + 42 ) / 45 / + 37
----
0

query I rowsort
SELECT ALL 32 * 60 AS col1
----
1920

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2513
SELECT 14 * 24 DIV - COUNT( * ) AS col1, + 22 + 18
----
-336
40

skipif mysql # not compatible
query II rowsort label-2513
SELECT 14 * 24 / - COUNT ( * ) AS col1, + 22 + 18
----
-336
40

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

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL + 15 / + 97 * - - COUNT ( * ) AS col0
----
0

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

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

query II rowsort
SELECT ALL 77 AS col0, 34 col0
----
77
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT 30 * - 87 * - SUM( + ( + 9 ) ) AS col0
----
23490

skipif mysql # not compatible
query I rowsort label-2517
SELECT 30 * - 87 * - SUM ( + ( + 9 ) ) AS col0
----
23490

onlyif mysql # DIV for integer division: 
query I rowsort label-2518
SELECT ALL NULLIF ( + 65, 59 - + + 63 ) DIV + + 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL NULLIF ( + 65, 59 - + + 63 ) / + + 88 AS col1
----
0

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

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

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

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

query II rowsort
SELECT 88 AS col2, 92 + - + CASE 83 WHEN - 89 + - 84 THEN - 72 ELSE - + 41 * + 60 + + ( - + 15 ) END * - 24 AS col0
----
88
-59308

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT COUNT( * ) + - - 61
----
62

skipif mysql # not compatible
query I rowsort label-2522
SELECT COUNT ( * ) + - - 61
----
62

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

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL ( 39 ) + + - COUNT ( * ) AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2524
SELECT ALL NULLIF ( + COUNT( * ), - + ( 63 ) * 72 ) * 18 * + 30 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL NULLIF ( + COUNT ( * ), - + ( 63 ) * 72 ) * 18 * + 30 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2525
SELECT ALL - 33 + + 99 + CAST( NULL AS SIGNED ) + 83 + - 38 * 93 + 69 * + 97 / - ( + 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL - 33 + + 99 + CAST ( NULL AS INTEGER ) + 83 + - 38 * 93 + 69 * + 97 / - ( + 26 )
----
NULL

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

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

query I rowsort
SELECT 37 - + 31
----
6

query II rowsort
SELECT - + 52, - 78 AS col2
----
-52
-78

query I rowsort
SELECT COALESCE ( - 18, + 81 * - NULLIF ( + 66, + 68 ) ) + + 44
----
26

query I rowsort
SELECT ALL - - 13 + - 31
----
-18

query I rowsort
SELECT DISTINCT + - 0 * + 43 * 43 * 29 AS col0
----
0

query I rowsort
SELECT ALL 38 * 2 - 65
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT ALL - COALESCE ( - 13, + - MAX( DISTINCT + 43 ) )
----
13

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL - COALESCE ( - 13, + - MAX ( DISTINCT + 43 ) )
----
13

onlyif mysql # DIV for integer division: 
query II rowsort label-2534
SELECT ALL + 48 DIV + 68 * - + 23 AS col1, 50 * 73 + + 32 + + 65
----
0
3747

skipif mysql # not compatible
query II rowsort label-2534
SELECT ALL + 48 / + 68 * - + 23 AS col1, 50 * 73 + + 32 + + 65
----
0
3747

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT MIN( + - 1 ) * ( 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-2535
SELECT MIN ( + - 1 ) * ( 41 )
----
-41

query I rowsort
SELECT ALL - + 46 * ( + + 57 )
----
-2622

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT + 71 * - + COUNT( * ) + + 76 + - 57 - 98 AS col2
----
-150

skipif mysql # not compatible
query I rowsort label-2537
SELECT + 71 * - + COUNT ( * ) + + 76 + - 57 - 98 AS col2
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-2538
SELECT 85 * 18 DIV - + 79
----
-19

skipif mysql # not compatible
query I rowsort label-2538
SELECT 85 * 18 / - + 79
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-2539
SELECT 93 AS col2, ( - + 1 ) - - COUNT( * )
----
93
0

skipif mysql # not compatible
query II rowsort label-2539
SELECT 93 AS col2, ( - + 1 ) - - COUNT ( * )
----
93
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2540
SELECT DISTINCT - - 64 AS col1, - CAST( MIN( - 16 ) AS SIGNED ) * - 86 AS col1
----
64
-1376

skipif mysql # not compatible
query II rowsort label-2540
SELECT DISTINCT - - 64 AS col1, - CAST ( MIN ( - 16 ) AS INTEGER ) * - 86 AS col1
----
64
-1376

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT 95 * - - MAX( - + 59 ) col1
----
-5605

skipif mysql # not compatible
query I rowsort label-2541
SELECT 95 * - - MAX ( - + 59 ) col1
----
-5605

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

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

query I rowsort
SELECT DISTINCT + 92 * + 52 AS col2
----
4784

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT DISTINCT ( + 98 ) * - + COUNT( * ) col1
----
-98

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT ( + 98 ) * - + COUNT ( * ) col1
----
-98

query I rowsort
SELECT 39 * - 8 + - ( + 95 )
----
-407

query I rowsort
SELECT DISTINCT - 2 + + 41 + + 58
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2547
SELECT ALL CAST( + COUNT( + 35 ) AS SIGNED ) * + 82
----
82

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL CAST ( + COUNT ( + 35 ) AS INTEGER ) * + 82
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-2548
SELECT + 78 DIV - - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2548
SELECT + 78 / - - 93 AS col0
----
0

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

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

query I rowsort
SELECT ALL 66 + + + 47 AS col1
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2551
SELECT + NULLIF ( - + ( + CAST( NULL AS SIGNED ) ), - - 0 / - 41 ) * + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2551
SELECT + NULLIF ( - + ( + CAST ( NULL AS INTEGER ) ), - - 0 / - 41 ) * + 42
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2552
SELECT DISTINCT CASE - 81 WHEN COUNT( * ) THEN - - 83 - + CASE + + COUNT( * ) WHEN + - 9 / - CAST( 89 AS SIGNED ) * - - 89 + - ( 60 ) + - + COALESCE ( + - 57, - 48 / 2, + + 0 * - - 0 ) THEN MAX( ALL + 27 ) + 56 WHEN 75 / - + 22 + SUM( + 78 ) THEN 31 * 54 END - 97 END + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT CASE - 81 WHEN COUNT ( * ) THEN - - 83 - + CASE + + COUNT ( * ) WHEN + - 9 / - CAST ( 89 AS INTEGER ) * - - 89 + - ( 60 ) + - + COALESCE ( + - 57, - 48 / 2, + + 0 * - - 0 ) THEN MAX ( ALL + 27 ) + 56 WHEN 75 / - + 22 + SUM ( + 78 ) THEN 31 * 54 END - 97 END + + 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT + COUNT( * ) + + - 6 + 52 * - - 10 + - 36 + - + 52 * - 17 * 81 * + COUNT( * )
----
72083

skipif mysql # not compatible
query I rowsort label-2553
SELECT + COUNT ( * ) + + - 6 + 52 * - - 10 + - 36 + - + 52 * - 17 * 81 * + COUNT ( * )
----
72083

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT ALL + SUM( DISTINCT 74 ) + + 25
----
99

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL + SUM ( DISTINCT 74 ) + + 25
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2555
SELECT ALL - NULLIF ( - 37, - 97 + + - ( CAST( NULL AS SIGNED ) ) ) + + ( + - COUNT( * ) ) col0, 10 - + 69 AS col2
----
36
-59

skipif mysql # not compatible
query II rowsort label-2555
SELECT ALL - NULLIF ( - 37, - 97 + + - ( CAST ( NULL AS INTEGER ) ) ) + + ( + - COUNT ( * ) ) col0, 10 - + 69 AS col2
----
36
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2556
SELECT + - 98 * 30 * + 61 - - COUNT( * ) + 27 + - CAST( - 72 AS SIGNED ) * 83
----
-173336

skipif mysql # not compatible
query I rowsort label-2556
SELECT + - 98 * 30 * + 61 - - COUNT ( * ) + 27 + - CAST ( - 72 AS INTEGER ) * 83
----
-173336

query I rowsort
SELECT + CASE 25 WHEN + 30 * 79 / + + 79 THEN + 25 END
----
NULL

query I rowsort
SELECT ALL 23 - + 27 AS col0
----
-4

query II rowsort
SELECT DISTINCT + - 48 * 19 AS col0, + 62 AS col2
----
-912
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT ALL - - 86 - - 73 * - + COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL - - 86 - - 73 * - + COUNT ( * ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2561
SELECT ALL + 46 * + + 77 AS col0, NULLIF ( - - ( COUNT( * ) ), - - 80 )
----
3542
1

skipif mysql # not compatible
query II rowsort label-2561
SELECT ALL + 46 * + + 77 AS col0, NULLIF ( - - ( COUNT ( * ) ), - - 80 )
----
3542
1

query I rowsort
SELECT - - 41 * - + 62
----
-2542

query I rowsort
SELECT DISTINCT + NULLIF ( - 41, ( + 86 ) ) col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT DISTINCT 68 * 38 + - ( + MIN( + 22 ) ) - ( - COUNT( - 92 ) ) AS col1
----
2563

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT 68 * 38 + - ( + MIN ( + 22 ) ) - ( - COUNT ( - 92 ) ) AS col1
----
2563

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT + - MAX( ALL + 37 ) * - 56
----
2072

skipif mysql # not compatible
query I rowsort label-2565
SELECT + - MAX ( ALL + 37 ) * - 56
----
2072

query II rowsort
SELECT ALL ( - 12 ) AS col2, 7
----
-12
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT + 56 - + COUNT( * ) / + COALESCE ( + + 71, - 32 * + 43 + + COUNT( * ) + + 41 / + - CASE - - 76 WHEN - + 97 / - 43 THEN - 19 WHEN + + MAX( DISTINCT - ( + - 85 ) ) THEN + 61 - - 18 * + 26 + + 40 + + 0 ELSE - 54 * + + 65 END ) * - - 88 + 81 / - NULLIF ( COALESCE ( + 18, - MIN( - 5 ) ), 78 - 2 ) + - ( CASE - 15 WHEN - 69 + + 27 * 47 THEN 68 WHEN 1 + 51 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2567
SELECT + 56 - + COUNT ( * ) / + COALESCE ( + + 71, - 32 * + 43 + + COUNT ( * ) + + 41 / + - CASE - - 76 WHEN - + 97 / - 43 THEN - 19 WHEN + + MAX ( DISTINCT - ( + - 85 ) ) THEN + 61 - - 18 * + 26 + + 40 + + 0 ELSE - 54 * + + 65 END ) * - - 88 + 81 / - NULLIF ( COALESCE ( + 18, - MIN ( - 5 ) ), 78 - 2 ) + - ( CASE - 15 WHEN - 69 + + 27 * 47 THEN 68 WHEN 1 + 51 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT - COUNT( * ) * + ( + 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-2568
SELECT - COUNT ( * ) * + ( + 85 ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT COUNT( * ) * - 22 - CASE + COUNT( * ) WHEN + + COUNT( * ) THEN 21 END * COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-2569
SELECT COUNT ( * ) * - 22 - CASE + COUNT ( * ) WHEN + + COUNT ( * ) THEN 21 END * COUNT ( * )
----
-43

query I rowsort
SELECT - 27 * - 79
----
2133

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2572
SELECT ALL - 42 DIV - COUNT( * ) col1
----
42

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL - 42 / - COUNT ( * ) col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2573
SELECT ALL - COALESCE ( + 53, - 27 + - 26 + + + CAST( NULL AS SIGNED ) DIV + COUNT( * ) * - 41 ) * - - ( + 53 )
----
-2809

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL - COALESCE ( + 53, - 27 + - 26 + + + CAST ( NULL AS INTEGER ) / + COUNT ( * ) * - 41 ) * - - ( + 53 )
----
-2809

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2574
SELECT + 57 DIV 25 * - COALESCE ( - 22, - 0 + 13 DIV + 43, + - COUNT( * ) * - - 97 + + - 61 - + + 22 * - 20 ) DIV - - 16 + - 0 + - 30 * + SUM( - ( + - 88 ) )
----
-2638

skipif mysql # not compatible
query I rowsort label-2574
SELECT + 57 / 25 * - COALESCE ( - 22, - 0 + 13 / + 43, + - COUNT ( * ) * - - 97 + + - 61 - + + 22 * - 20 ) / - - 16 + - 0 + - 30 * + SUM ( - ( + - 88 ) )
----
-2638

query I rowsort
SELECT - 38 * - 88 AS col2
----
3344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2576
SELECT DISTINCT - 92 * NULLIF ( CAST( NULL AS SIGNED ), + + 72 * + 77 + + CAST( NULL AS SIGNED ) * + - ( + 67 ) ) + - - COUNT( * ) + - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT - 92 * NULLIF ( CAST ( NULL AS INTEGER ), + + 72 * + 77 + + CAST ( NULL AS INTEGER ) * + - ( + 67 ) ) + - - COUNT ( * ) + - 23 AS col2
----
NULL

query I rowsort
SELECT ALL - 9 * - + 9 + - + 19 + ( + 3 ) * - 41 * + + 75 + - 27 AS col0
----
-9190

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT NULLIF ( - 82, - - CASE + 86 WHEN - - SUM( ALL + ( - ( 83 ) ) ) THEN NULL WHEN 8 THEN - 56 END )
----
-82

skipif mysql # not compatible
query I rowsort label-2578
SELECT NULLIF ( - 82, - - CASE + 86 WHEN - - SUM ( ALL + ( - ( 83 ) ) ) THEN NULL WHEN 8 THEN - 56 END )
----
-82

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

skipif mysql # not compatible
query I rowsort label-2579
SELECT + COUNT ( ALL + + 64 ) * - 38 AS col2
----
-38

query I rowsort
SELECT - 85 + + - 57 col0
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2581
SELECT ALL + CAST( NULL AS SIGNED ) * COALESCE ( + 51, - 45 - - + CASE + 59 WHEN ( - + 27 ) THEN - COUNT( + 14 ) WHEN + - 97 THEN NULL WHEN - 12 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL + CAST ( NULL AS INTEGER ) * COALESCE ( + 51, - 45 - - + CASE + 59 WHEN ( - + 27 ) THEN - COUNT ( + 14 ) WHEN + - 97 THEN NULL WHEN - 12 THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT - 2 * 33
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT DISTINCT - COUNT( * ) * 16 + + 28 + 76
----
88

skipif mysql # not compatible
query I rowsort label-2583
SELECT DISTINCT - COUNT ( * ) * 16 + + 28 + 76
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2584
SELECT ALL + 32 * ( - ( 37 ) ) * 34 + + - CAST( + - 41 AS SIGNED )
----
-40215

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL + 32 * ( - ( 37 ) ) * 34 + + - CAST ( + - 41 AS INTEGER )
----
-40215

query I rowsort
SELECT - 37 + - - 6
----
-31

query I rowsort
SELECT ALL - 82 * + 82 * + 60 * - - 32 + 84 - 95
----
-12910091

query I rowsort
SELECT ALL 44 * - 20 + + 20 AS col1
----
-860

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT ALL 50 * - 22 * + 68 + + 78 + COUNT( * ) col0
----
-74721

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL 50 * - 22 * + 68 + + 78 + COUNT ( * ) col0
----
-74721

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT ALL + MAX( DISTINCT 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL + MAX ( DISTINCT 8 ) AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2591
SELECT DISTINCT + CAST( 16 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT + CAST ( 16 AS INTEGER )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT ALL 18 * - - 82 + - - CASE COUNT( * ) WHEN + + COUNT( * ) THEN NULL WHEN + 13 * + ( - + 3 ) THEN COUNT( * ) END - - - COALESCE ( 88, + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL 18 * - - 82 + - - CASE COUNT ( * ) WHEN + + COUNT ( * ) THEN NULL WHEN + 13 * + ( - + 3 ) THEN COUNT ( * ) END - - - COALESCE ( 88, + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2593
SELECT ALL CASE + 48 WHEN 76 + - 18 + - - COUNT( * ) + - 67 * - + ( - + SUM( - 34 ) ) * + 84 THEN NULL ELSE - - 10 END * + 72 + - 8 + - 86 * 67 col1, CAST( + + 97 AS SIGNED ) + - - 37
----
-5050
134

skipif mysql # not compatible
query II rowsort label-2593
SELECT ALL CASE + 48 WHEN 76 + - 18 + - - COUNT ( * ) + - 67 * - + ( - + SUM ( - 34 ) ) * + 84 THEN NULL ELSE - - 10 END * + 72 + - 8 + - 86 * 67 col1, CAST ( + + 97 AS INTEGER ) + - - 37
----
-5050
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2594
SELECT DISTINCT 48 * + - 65 * - CASE + 28 WHEN + COALESCE ( + + ( + 7 ), COALESCE ( + CASE COUNT( * ) WHEN 30 + - COALESCE ( - - SUM( 35 ), + - CASE - + 1 WHEN + + CAST( NULL AS SIGNED ) THEN 35 WHEN + + 3 * + + 98 * + 24 THEN NULL ELSE + COUNT( * ) * - 37 * + - 56 - - 34 END, + AVG ( ALL - 91 ) ) THEN + 46 * 33 WHEN - 77 THEN NULL ELSE - 77 END, - 55 + 59 ) * - COUNT( * ) ) + 31 THEN NULL ELSE NULLIF ( 75, MAX( - 25 ) + - MAX( - 69 + 12 ) ) DIV - 5 + - 11 * + CAST( ( + ( 29 ) ) + - 10 DIV 78 AS SIGNED ) END AS col0
----
-1042080

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT 48 * + - 65 * - CASE + 28 WHEN + COALESCE ( + + ( + 7 ), COALESCE ( + CASE COUNT ( * ) WHEN 30 + - COALESCE ( - - SUM ( 35 ), + - CASE - + 1 WHEN + + CAST ( NULL AS INTEGER ) THEN 35 WHEN + + 3 * + + 98 * + 24 THEN NULL ELSE + COUNT ( * ) * - 37 * + - 56 - - 34 END, + AVG ( ALL - 91 ) ) THEN + 46 * 33 WHEN - 77 THEN NULL ELSE - 77 END, - 55 + 59 ) * - COUNT ( * ) ) + 31 THEN NULL ELSE NULLIF ( 75, MAX ( - 25 ) + - MAX ( - 69 + 12 ) ) / - 5 + - 11 * + CAST ( ( + ( 29 ) ) + - 10 / 78 AS INTEGER ) END AS col0
----
-1042080

query I rowsort
SELECT ALL 68 * 24
----
1632

onlyif mysql # aggregate syntax: 
query II rowsort label-2596
SELECT + 62 AS col1, + SUM( + 33 ) AS col2
----
62
33

skipif mysql # not compatible
query II rowsort label-2596
SELECT + 62 AS col1, + SUM ( + 33 ) AS col2
----
62
33

query I rowsort
SELECT ALL - - 42 - + + 82 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT ALL + - 79 - + - 47 + - COUNT( ALL 52 ) + + - 23 * + - 48
----
1071

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL + - 79 - + - 47 + - COUNT ( ALL 52 ) + + - 23 * + - 48
----
1071

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

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

query I rowsort
SELECT DISTINCT - 98 - - + 65 * + 68 AS col0
----
4322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2601
SELECT - - 1 + - + MAX( + 90 ) - CAST( NULL AS SIGNED ) * - + 43 AS col1, 37 + + COALESCE ( - ( + + 51 ), 86 - + 69, - - CAST( NULL AS SIGNED ) + - - 87 ) * 49 * 14 * - 49 AS col0
----
NULL
1714351

skipif mysql # not compatible
query II rowsort label-2601
SELECT - - 1 + - + MAX ( + 90 ) - CAST ( NULL AS INTEGER ) * - + 43 AS col1, 37 + + COALESCE ( - ( + + 51 ), 86 - + 69, - - CAST ( NULL AS INTEGER ) + - - 87 ) * 49 * 14 * - 49 AS col0
----
NULL
1714351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2602
SELECT - NULLIF ( CAST( + - 91 AS SIGNED ), 28 )
----
91

skipif mysql # not compatible
query I rowsort label-2602
SELECT - NULLIF ( CAST ( + - 91 AS INTEGER ), 28 )
----
91

query I rowsort
SELECT + + 26 * - 46 AS col0
----
-1196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2604
SELECT ALL 70 DIV COUNT( * ) * - COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL 70 / COUNT ( * ) * - COUNT ( * )
----
-70

query I rowsort
SELECT + 53 + + 15 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT - NULLIF ( - COUNT( * ), - - 79 ) - + + ( + 96 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-2606
SELECT - NULLIF ( - COUNT ( * ), - - 79 ) - + + ( + 96 ) AS col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2607
SELECT DISTINCT CASE - + COUNT( * ) WHEN - + 79 THEN - + 53 + + 11 WHEN + + CASE + + 21 WHEN + 77 THEN + ( + AVG ( DISTINCT + + 41 ) ) - COUNT( * ) + + 11 ELSE - - CAST( NULL AS SIGNED ) END THEN - COUNT( * ) ELSE NULL END AS col1, 14
----
NULL
14

skipif mysql # not compatible
query II rowsort label-2607
SELECT DISTINCT CASE - + COUNT ( * ) WHEN - + 79 THEN - + 53 + + 11 WHEN + + CASE + + 21 WHEN + 77 THEN + ( + AVG ( DISTINCT + + 41 ) ) - COUNT ( * ) + + 11 ELSE - - CAST ( NULL AS INTEGER ) END THEN - COUNT ( * ) ELSE NULL END AS col1, 14
----
NULL
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT + 67 + - + 32 * - ( + + NULLIF ( 15, - - ( - COUNT( * ) ) - - 79 ) ) col2
----
547

skipif mysql # not compatible
query I rowsort label-2608
SELECT + 67 + - + 32 * - ( + + NULLIF ( 15, - - ( - COUNT ( * ) ) - - 79 ) ) col2
----
547

query I rowsort
SELECT ALL + - 79 * 32 AS col2
----
-2528

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2610
SELECT - - CAST( NULL AS SIGNED ) / + 35 + 8 + 28 * 33 AS col1, CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2610
SELECT - - CAST ( NULL AS INTEGER ) / + 35 + 8 + 28 * 33 AS col1, CAST ( NULL AS REAL )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2611
SELECT DISTINCT + MIN( ALL + 88 ) AS col1, + COALESCE ( + 17, 82 - 55 ) * - + MIN( ALL + 51 )
----
88
-867

skipif mysql # not compatible
query II rowsort label-2611
SELECT DISTINCT + MIN ( ALL + 88 ) AS col1, + COALESCE ( + 17, 82 - 55 ) * - + MIN ( ALL + 51 )
----
88
-867

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT + 15 * - COUNT( * ) * + 5
----
-75

skipif mysql # not compatible
query I rowsort label-2612
SELECT + 15 * - COUNT ( * ) * + 5
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2613
SELECT + CAST( 63 AS SIGNED ) col0, 48 AS col2
----
63
48

skipif mysql # not compatible
query II rowsort label-2613
SELECT + CAST ( 63 AS INTEGER ) col0, 48 AS col2
----
63
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2614
SELECT + CAST( + 46 AS SIGNED ) col0
----
46

skipif mysql # not compatible
query I rowsort label-2614
SELECT + CAST ( + 46 AS INTEGER ) col0
----
46

query I rowsort
SELECT + 85 * - - 21 * - 58
----
-103530

onlyif mysql # aggregate syntax: 
query II rowsort label-2616
SELECT + 19, ( + CASE + 10 WHEN + 12 THEN - 26 * + - 53 - + 58 WHEN - COUNT( * ) + CASE - 16 WHEN 57 THEN + 23 + - NULLIF ( - 34, - NULLIF ( - COUNT( * ), 48 + 97 ) ) + - 66 END THEN NULL END ) * + + 43 + 79 AS col0
----
19
NULL

skipif mysql # not compatible
query II rowsort label-2616
SELECT + 19, ( + CASE + 10 WHEN + 12 THEN - 26 * + - 53 - + 58 WHEN - COUNT ( * ) + CASE - 16 WHEN 57 THEN + 23 + - NULLIF ( - 34, - NULLIF ( - COUNT ( * ), 48 + 97 ) ) + - 66 END THEN NULL END ) * + + 43 + 79 AS col0
----
19
NULL

query I rowsort
SELECT ALL CASE - 3 WHEN + + 20 + + 20 THEN - ( + 49 ) END + + 87 * + 25
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2618
SELECT 32 DIV 91 AS col0, 16
----
0
16

skipif mysql # not compatible
query II rowsort label-2618
SELECT 32 / 91 AS col0, 16
----
0
16

query I rowsort
SELECT 39 * - - 16 AS col1
----
624

onlyif mysql # DIV for integer division: 
query II rowsort label-2620
SELECT ALL - 74 AS col2, + 41 DIV 4 AS col1
----
-74
10

skipif mysql # not compatible
query II rowsort label-2620
SELECT ALL - 74 AS col2, + 41 / 4 AS col1
----
-74
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2621
SELECT ALL + 57 + + 95 * - CAST( NULL AS SIGNED ) + + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL + 57 + + 95 * - CAST ( NULL AS INTEGER ) + + + 48
----
NULL

query II rowsort
SELECT + 84, 44 AS col0
----
84
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2623
SELECT COUNT( * ) DIV CASE 48 WHEN - 92 * + 91 + 54 THEN + COALESCE ( + MIN( - + 9 ), CAST( - ( + 79 ) AS SIGNED ), 37 ) WHEN - 98 THEN NULL WHEN 16 THEN NULL ELSE + 91 END * 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2623
SELECT COUNT ( * ) / CASE 48 WHEN - 92 * + 91 + 54 THEN + COALESCE ( + MIN ( - + 9 ), CAST ( - ( + 79 ) AS INTEGER ), 37 ) WHEN - 98 THEN NULL WHEN 16 THEN NULL ELSE + 91 END * 63 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2624
SELECT 58 DIV 5 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-2624
SELECT 58 / 5 AS col0
----
11

query I rowsort
SELECT ALL - 85 * 91 AS col2
----
-7735

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

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

query II rowsort
SELECT + 42 AS col1, 37 AS col2
----
42
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT ALL + 22 - + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL + 22 - + COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT ALL + 13 * + - MAX( + 30 ) AS col2
----
-390

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL + 13 * + - MAX ( + 30 ) AS col2
----
-390

query I rowsort
SELECT 45 + + 65 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT - 33 * - COUNT( * ) - + 88 + 16
----
-39

skipif mysql # not compatible
query I rowsort label-2631
SELECT - 33 * - COUNT ( * ) - + 88 + 16
----
-39

query II rowsort
SELECT + 51 col1, - 34 AS col2
----
51
-34

query II rowsort
SELECT DISTINCT - 22, - 86 AS col1
----
-22
-86

query I rowsort
SELECT ALL - 2 - 24 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-2635
SELECT + COUNT( 81 ) AS col1, + 2 + 87 AS col2
----
1
89

skipif mysql # not compatible
query II rowsort label-2635
SELECT + COUNT ( 81 ) AS col1, + 2 + 87 AS col2
----
1
89

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2637
SELECT - CAST( NULL AS SIGNED ), 7 AS col2
----
NULL
7

skipif mysql # not compatible
query II rowsort label-2637
SELECT - CAST ( NULL AS INTEGER ), 7 AS col2
----
NULL
7

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT 14 + + CASE - 63 WHEN + 45 THEN + COUNT( * ) * + 42 + - 33 + ( + - 80 ) WHEN - - 73 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2640
SELECT 14 + + CASE - 63 WHEN + 45 THEN + COUNT ( * ) * + 42 + - 33 + ( + - 80 ) WHEN - - 73 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2641
SELECT ALL COUNT( * ) AS col0, CAST( + - 67 AS SIGNED ) DIV + CAST( 97 AS SIGNED ) * + + ( 13 ) AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-2641
SELECT ALL COUNT ( * ) AS col0, CAST ( + - 67 AS INTEGER ) / + CAST ( 97 AS INTEGER ) * + + ( 13 ) AS col0
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT - MIN( + 83 ) + + 29 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-2642
SELECT - MIN ( + 83 ) + + 29 AS col1
----
-54

query I rowsort
SELECT 63 * 20 + ( + 58 ) AS col2
----
1318

query II rowsort
SELECT + 25 AS col0, 70
----
25
70

query I rowsort
SELECT + 7 + - 78 + - 42
----
-113

onlyif mysql # DIV for integer division: 
query I rowsort label-2646
SELECT ALL - 25 DIV + 48 * - + 49 - + 76
----
-76

skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL - 25 / + 48 * - + 49 - + 76
----
-76

query I rowsort
SELECT + 65 * - 15 + 11 col1
----
-964

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT ALL + + 60 + ( SUM( ALL + - ( - 67 ) ) )
----
127

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL + + 60 + ( SUM ( ALL + - ( - 67 ) ) )
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT - COALESCE ( 37, + 50 * - 43, - COUNT( * ) * - 83 + COUNT( * ) + - 6 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-2650
SELECT - COALESCE ( 37, + 50 * - 43, - COUNT ( * ) * - 83 + COUNT ( * ) + - 6 ) AS col1
----
-37

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

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

query I rowsort
SELECT - 1 * 14 + 38
----
24

query I rowsort
SELECT ( 20 ) * 27 * + 15 AS col0
----
8100

onlyif mysql # aggregate syntax: 
query II rowsort label-2654
SELECT 23 * + COUNT( * ) col1, - NULLIF ( + + 12, - - 55 + 11 ) AS col0
----
23
-12

skipif mysql # not compatible
query II rowsort label-2654
SELECT 23 * + COUNT ( * ) col1, - NULLIF ( + + 12, - - 55 + 11 ) AS col0
----
23
-12

query I rowsort
SELECT ALL 49 + 55 * + - 33
----
-1766

query I rowsort
SELECT DISTINCT ( + - 54 ) + 1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-2657
SELECT COUNT( * ) * + + 41 col0, + SUM( ALL - 42 ) * - + 75 * + - 29 AS col1
----
41
-91350

skipif mysql # not compatible
query II rowsort label-2657
SELECT COUNT ( * ) * + + 41 col0, + SUM ( ALL - 42 ) * - + 75 * + - 29 AS col1
----
41
-91350

onlyif mysql # DIV for integer division: 
query I rowsort label-2658
SELECT ALL - COALESCE ( 66, - 0 DIV 86, + - 70 * - ( + 16 ), 25 - + 89 * CASE - 57 WHEN - ( ( - 97 ) ) THEN + - 54 DIV + 38 ELSE + 73 END * - 98 DIV + 94 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL - COALESCE ( 66, - 0 / 86, + - 70 * - ( + 16 ), 25 - + 89 * CASE - 57 WHEN - ( ( - 97 ) ) THEN + - 54 / + 38 ELSE + 73 END * - 98 / + 94 ) AS col1
----
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2659
SELECT CAST( NULL AS DECIMAL ) + + 36 AS col2, + 2 + - - 23
----
NULL
25

skipif mysql # not compatible
query II rowsort label-2659
SELECT CAST ( NULL AS REAL ) + + 36 AS col2, + 2 + - - 23
----
NULL
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT 27 * + COUNT( * ) + - + 38
----
-11

skipif mysql # not compatible
query I rowsort label-2660
SELECT 27 * + COUNT ( * ) + - + 38
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2661
SELECT ALL - + COUNT( * ) - CAST( + 99 AS SIGNED ) * + COUNT( * ) * + 68
----
-6733

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL - + COUNT ( * ) - CAST ( + 99 AS INTEGER ) * + COUNT ( * ) * + 68
----
-6733

query I rowsort
SELECT - 47 + 90 AS col1
----
43

query I rowsort
SELECT 39 * + + ( 94 )
----
3666

onlyif mysql # DIV for integer division: 
query II rowsort label-2664
SELECT DISTINCT + - 75 DIV - 35 AS col2, 13 AS col0
----
2
13

skipif mysql # not compatible
query II rowsort label-2664
SELECT DISTINCT + - 75 / - 35 AS col2, 13 AS col0
----
2
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT ALL MIN( + 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL MIN ( + 9 ) AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2666
SELECT - CAST( AVG ( DISTINCT 61 ) AS SIGNED ) * NULLIF ( 70, + ( + + 1 ) ) * - + 36 + + 6 AS col2
----
153726

skipif mysql # not compatible
query I rowsort label-2666
SELECT - CAST ( AVG ( DISTINCT 61 ) AS INTEGER ) * NULLIF ( 70, + ( + + 1 ) ) * - + 36 + + 6 AS col2
----
153726

onlyif mysql # aggregate syntax: 
query II rowsort label-2667
SELECT COUNT( * ) * 71, + 12 * 37 AS col1
----
71
444

skipif mysql # not compatible
query II rowsort label-2667
SELECT COUNT ( * ) * 71, + 12 * 37 AS col1
----
71
444

query I rowsort
SELECT ALL + + 7 + 59 * 45 AS col1
----
2662

query I rowsort
SELECT ALL - 63 + + + 66
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2670
SELECT ALL COALESCE ( - + 11, - 83 * ( 62 ) * - - ( COALESCE ( + - 73, - 14 * 57 ) ) DIV + + 97 DIV 3, 18 ) + 93
----
82

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL COALESCE ( - + 11, - 83 * ( 62 ) * - - ( COALESCE ( + - 73, - 14 * 57 ) ) / + + 97 / 3, 18 ) + 93
----
82

query I rowsort
SELECT - 72 - 24 AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT 77 + - - SUM( DISTINCT 55 ) * + - 23
----
-1188

skipif mysql # not compatible
query I rowsort label-2672
SELECT 77 + - - SUM ( DISTINCT 55 ) * + - 23
----
-1188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2673
SELECT ALL + 72 + CASE COUNT( * ) WHEN COUNT( + - 67 ) THEN + 91 ELSE + + 76 - + 24 - 91 + + 78 END - - 15 + - CASE 1 WHEN - 62 THEN + MAX( ALL + 41 ) * - 71 + + + 91 WHEN 99 THEN - - 89 END * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL + 72 + CASE COUNT ( * ) WHEN COUNT ( + - 67 ) THEN + 91 ELSE + + 76 - + 24 - 91 + + 78 END - - 15 + - CASE 1 WHEN - 62 THEN + MAX ( ALL + 41 ) * - 71 + + + 91 WHEN 99 THEN - - 89 END * CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

query I rowsort
SELECT + 38 + - 24 AS col1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2676
SELECT ALL - ( 42 ) + + 61 DIV + 51 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL - ( 42 ) + + 61 / + 51 AS col1
----
-41

query I rowsort
SELECT + 92 - 9
----
83

query I rowsort
SELECT - 79 * 2 AS col0
----
-158

query I rowsort
SELECT DISTINCT + NULLIF ( + 29, - - 86 ) * 13 AS col2
----
377

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT - MIN( + + 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-2680
SELECT - MIN ( + + 66 ) AS col2
----
-66

query I rowsort
SELECT ALL + 94 * 81 * + 32 * 43
----
10476864

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT DISTINCT + COUNT( * ) * + 85 * + 37 * - + 49 - - 77 col1
----
-154028

skipif mysql # not compatible
query I rowsort label-2682
SELECT DISTINCT + COUNT ( * ) * + 85 * + 37 * - + 49 - - 77 col1
----
-154028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2683
SELECT ALL + MIN( - CAST( NULL AS SIGNED ) ) * CASE WHEN NOT NULL NOT IN ( 17, 75 - + 61, - 29, 86 * + ( + + CAST( NULL AS SIGNED ) ) ) THEN NULL ELSE + 25 + 36 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL + MIN ( - CAST ( NULL AS INTEGER ) ) * CASE WHEN NOT NULL NOT IN ( 17, 75 - + 61, - 29, 86 * + ( + + CAST ( NULL AS INTEGER ) ) ) THEN NULL ELSE + 25 + 36 END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2684
SELECT - 43 * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT - 43 * - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT NULLIF ( 34, - 13 ) AS col1
----
34

query I rowsort
SELECT + 8 + + 34
----
42

query I rowsort
SELECT ALL - 84 * - 90 - + 5 AS col0
----
7555

query I rowsort
SELECT NULLIF ( + 51, - + 97 * - + 40 ) AS col0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2689
SELECT + CAST( - 74 AS SIGNED ) * - - COUNT( * ) * + 80 + + - 95 DIV - + COUNT( * ) + + + 52
----
-5773

skipif mysql # not compatible
query I rowsort label-2689
SELECT + CAST ( - 74 AS INTEGER ) * - - COUNT ( * ) * + 80 + + - 95 / - + COUNT ( * ) + + + 52
----
-5773

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2691
SELECT ALL 7 DIV 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL 7 / 63 AS col1
----
0

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

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

query II rowsort
SELECT ALL + 99 AS col2, 50 * + 0
----
99
0

query I rowsort
SELECT - ( - - 96 )
----
-96

query II rowsort
SELECT ALL - 19 * - ( + - 52 ) AS col1, + 15 AS col0
----
-988
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT + + COALESCE ( 85, - - 9 + + 43, 13 ) * - 16 / - - CASE + - 25 WHEN - + CASE - - 32 WHEN - + 78 THEN 58 + 20 + ( + 56 ) * COUNT( * ) + + + ( - + 63 ) + - + 63 / - + ( + - COUNT( * ) ) + + 73 * SUM( ALL + - 2 ) * - 91 + - 48 ELSE NULL END THEN + 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2696
SELECT + + COALESCE ( 85, - - 9 + + 43, 13 ) * - 16 / - - CASE + - 25 WHEN - + CASE - - 32 WHEN - + 78 THEN 58 + 20 + ( + 56 ) * COUNT ( * ) + + + ( - + 63 ) + - + 63 / - + ( + - COUNT ( * ) ) + + 73 * SUM ( ALL + - 2 ) * - 91 + - 48 ELSE NULL END THEN + 81 END
----
NULL

query I rowsort
SELECT ALL + 2 * - 78 AS col0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT + 6 + - COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2698
SELECT + 6 + - COUNT ( * ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT + 89 * - NULLIF ( + 89, + - COUNT( * ) ) - + 78 AS col0
----
-7999

skipif mysql # not compatible
query I rowsort label-2699
SELECT + 89 * - NULLIF ( + 89, + - COUNT ( * ) ) - + 78 AS col0
----
-7999

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT DISTINCT - - 51 * 71 + - - COUNT( DISTINCT + 4 ) AS col1
----
3622

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT - - 51 * 71 + - - COUNT ( DISTINCT + 4 ) AS col1
----
3622

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT DISTINCT NULLIF ( + + 68, + 55 ) + - 40 * - COUNT( * ) AS col2
----
108

skipif mysql # not compatible
query I rowsort label-2701
SELECT DISTINCT NULLIF ( + + 68, + 55 ) + - 40 * - COUNT ( * ) AS col2
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2702
SELECT 36 AS col2, + NULLIF ( 21, - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) + - 42 ) + 44 * ( + COUNT( * ) ) * ( - + 16 ) * + NULLIF ( - MIN( ALL - 11 ), 20 ) + + 7 AS col1
----
36
-7716

skipif mysql # not compatible
query II rowsort label-2702
SELECT 36 AS col2, + NULLIF ( 21, - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 42 ) + 44 * ( + COUNT ( * ) ) * ( - + 16 ) * + NULLIF ( - MIN ( ALL - 11 ), 20 ) + + 7 AS col1
----
36
-7716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2703
SELECT - - 81 + + MIN( ALL + + ( - 31 ) ) + + CAST( NULL AS SIGNED ) * - + 35 + - - 73 * ( + 58 ) * + 97 + 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2703
SELECT - - 81 + + MIN ( ALL + + ( - 31 ) ) + + CAST ( NULL AS INTEGER ) * - + 35 + - - 73 * ( + 58 ) * + 97 + 17 AS col1
----
NULL

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

skipif mysql # not compatible
query II rowsort label-2704
SELECT ALL COUNT ( * ) AS col2, 79
----
1
79

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

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

query II rowsort
SELECT ALL + - 5 * + + ( + + 48 ) * + - 60 + - 70 * 48 AS col0, + 84
----
11040
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT + NULLIF ( - 74, - - 72 + + COUNT( * ) * - 99 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-2707
SELECT + NULLIF ( - 74, - - 72 + + COUNT ( * ) * - 99 ) AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2708
SELECT ALL + 26 + + - NULLIF ( - NULLIF ( - 79, - + 55 ), COUNT( * ) + - ( - 43 ) + - 28 + + - 2 * ( 75 ) / - 67 + + - 84 - + 87 + - - 63 + + 93 + + + 39 + - 1 * + COUNT( * ) + 91 * 79 * - 82 * - + 34 + 56 * - - ( - COALESCE ( 46, CAST( NULL AS DECIMAL ) ) ) ) + + 95
----
42

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL + 26 + + - NULLIF ( - NULLIF ( - 79, - + 55 ), COUNT ( * ) + - ( - 43 ) + - 28 + + - 2 * ( 75 ) / - 67 + + - 84 - + 87 + - - 63 + + 93 + + + 39 + - 1 * + COUNT ( * ) + 91 * 79 * - 82 * - + 34 + 56 * - - ( - COALESCE ( 46, CAST ( NULL AS REAL ) ) ) ) + + 95
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2709
SELECT + COUNT( * ) * 97 * + 9 * - + AVG ( 36 ) * - 68 + 14 + - + CAST( NULL AS SIGNED ), + 97 AS col1
----
NULL
97

skipif mysql # not compatible
query II rowsort label-2709
SELECT + COUNT ( * ) * 97 * + 9 * - + AVG ( 36 ) * - 68 + 14 + - + CAST ( NULL AS INTEGER ), + 97 AS col1
----
NULL
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2710
SELECT DISTINCT + 35 * - CASE - - CAST( NULL AS SIGNED ) WHEN 9 / - 2 / + 87 * 9 THEN + - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT + 35 * - CASE - - CAST ( NULL AS INTEGER ) WHEN 9 / - 2 / + 87 * 9 THEN + - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT DISTINCT MIN( - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT MIN ( - 96 )
----
-96

query I rowsort
SELECT ALL - ( + - 54 ) - + 10 AS col1
----
44

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

query II rowsort
SELECT DISTINCT ( - 81 ) AS col1, + 37
----
-81
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2715
SELECT DISTINCT CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2715
SELECT DISTINCT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT - 20 * - - 61
----
-1220

query I rowsort
SELECT DISTINCT ( - - 37 )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2718
SELECT - 96 - - CAST( NULL AS SIGNED ) + + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT - 96 - - CAST ( NULL AS INTEGER ) + + - 7
----
NULL

query I rowsort
SELECT + ( + 57 ) * + + 86 col2
----
4902

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT - 15 * - 43 - + COUNT( * ) AS col1
----
644

skipif mysql # not compatible
query I rowsort label-2720
SELECT - 15 * - 43 - + COUNT ( * ) AS col1
----
644

onlyif mysql # aggregate syntax: 
query II rowsort label-2721
SELECT DISTINCT 19 * 21, - NULLIF ( + + 87, - 53 * + ( + 37 ) * - + ( COUNT( * ) ) + - 35 + + 46 * 84 * - 79 ) + 43 AS col2
----
399
-44

skipif mysql # not compatible
query II rowsort label-2721
SELECT DISTINCT 19 * 21, - NULLIF ( + + 87, - 53 * + ( + 37 ) * - + ( COUNT ( * ) ) + - 35 + + 46 * 84 * - 79 ) + 43 AS col2
----
399
-44

query I rowsort
SELECT - ( - 26 ) * - - 30
----
780

onlyif mysql # aggregate syntax: 
query II rowsort label-2723
SELECT + COUNT( * ) - 77, - 92 AS col0
----
-76
-92

skipif mysql # not compatible
query II rowsort label-2723
SELECT + COUNT ( * ) - 77, - 92 AS col0
----
-76
-92

query I rowsort
SELECT ALL - 91 * - + 3
----
273

query I rowsort
SELECT DISTINCT + 36 * + - 70 * + 50 AS col2
----
-126000

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT - 89 + + CASE 19 WHEN + 90 * + + 3 THEN + + 68 + - 52 * - 76 - - 53 * - 94 END + - SUM( + 15 ) * - 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2726
SELECT - 89 + + CASE 19 WHEN + 90 * + + 3 THEN + + 68 + - 52 * - 76 - - 53 * - 94 END + - SUM ( + 15 ) * - 30 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2727
SELECT + 38 DIV + 48
----
0

skipif mysql # not compatible
query I rowsort label-2727
SELECT + 38 / + 48
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2728
SELECT ALL 45 DIV + 16 + - + 24 + + - 80 + 80 + - 0 * + COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL 45 / + 16 + - + 24 + + - 80 + 80 + - 0 * + COUNT ( * ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT - SUM( 27 ) + + COUNT( * ) col0
----
-26

skipif mysql # not compatible
query I rowsort label-2729
SELECT - SUM ( 27 ) + + COUNT ( * ) col0
----
-26

query I rowsort
SELECT 93 * + ( + 39 ) + - 32 + 92 + - - 47
----
3734

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT ALL 34 DIV - 53 * - - 30
----
0

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL 34 / - 53 * - - 30
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT + + CASE 40 WHEN + 55 + + 50 THEN 19 ELSE - 21 * CASE - 39 WHEN COUNT( * ) - + ( - 70 ) THEN - 98 ELSE - - 40 END + - 90 END AS col2
----
-930

skipif mysql # not compatible
query I rowsort label-2732
SELECT + + CASE 40 WHEN + 55 + + 50 THEN 19 ELSE - 21 * CASE - 39 WHEN COUNT ( * ) - + ( - 70 ) THEN - 98 ELSE - - 40 END + - 90 END AS col2
----
-930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2733
SELECT ALL + + 7 * - 3 * - CAST( NULL AS SIGNED ) * 9 + - - MAX( ALL + - 78 ) * + ( - 61 ) / - COUNT( * ) * + COUNT( - + 8 ) * 44 / - + 44 + - NULLIF ( CAST( NULL AS SIGNED ), - ( - 13 ) * ( COUNT( 99 ) ) ) + - + 8 + + COUNT( * ) + - - 37 + + 13 * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL + + 7 * - 3 * - CAST ( NULL AS INTEGER ) * 9 + - - MAX ( ALL + - 78 ) * + ( - 61 ) / - COUNT ( * ) * + COUNT ( - + 8 ) * 44 / - + 44 + - NULLIF ( CAST ( NULL AS INTEGER ), - ( - 13 ) * ( COUNT ( 99 ) ) ) + - + 8 + + COUNT ( * ) + - - 37 + + 13 * 61
----
NULL

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

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

query II rowsort
SELECT ALL - 46 * - + 71 AS col0, - 96 AS col1
----
3266
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2736
SELECT + 54 * 88 DIV - 10
----
-475

skipif mysql # not compatible
query I rowsort label-2736
SELECT + 54 * 88 / - 10
----
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT DISTINCT + COUNT( * ) * 81 + + 40 - + 0 * 51 + + 48 AS col0
----
169

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT + COUNT ( * ) * 81 + + 40 - + 0 * 51 + + 48 AS col0
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT 50 * 94 - - + 25 - - 70 * - 89 + - SUM( ALL - 83 ) * - 15 + 2 + 16
----
-2732

skipif mysql # not compatible
query I rowsort label-2738
SELECT 50 * 94 - - + 25 - - 70 * - 89 + - SUM ( ALL - 83 ) * - 15 + 2 + 16
----
-2732

query I rowsort
SELECT - 11 * + 98
----
-1078

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT + 34 + + MIN( ALL 7 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2741
SELECT + 34 + + MIN ( ALL 7 ) AS col0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2742
SELECT ALL - 57 DIV + + ( - 83 )
----
0

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL - 57 / + + ( - 83 )
----
0

query I rowsort
SELECT 39 - + 21
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2744
SELECT DISTINCT 5 col0, - CAST( + 26 AS SIGNED ) * 4 + - 64 * 80 * + - 9
----
5
45976

skipif mysql # not compatible
query II rowsort label-2744
SELECT DISTINCT 5 col0, - CAST ( + 26 AS INTEGER ) * 4 + - 64 * 80 * + - 9
----
5
45976

onlyif mysql # DIV for integer division: 
query I rowsort label-2745
SELECT ALL 97 DIV + - 31
----
-3

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL 97 / + - 31
----
-3

query I rowsort
SELECT 58 + + 91
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-2747
SELECT 29 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-2747
SELECT 29 / 74
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2748
SELECT - 67, - ( + ( + + 90 ) ) DIV - 64 col1
----
-67
1

skipif mysql # not compatible
query II rowsort label-2748
SELECT - 67, - ( + ( + + 90 ) ) / - 64 col1
----
-67
1

query II rowsort
SELECT ALL 69, 92 + + 25 AS col1
----
69
117

query I rowsort
SELECT ( 94 ) + + ( - 8 )
----
86

query II rowsort
SELECT 74 * - 67 * - 24 AS col0, 8
----
118992
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2752
SELECT 48 + + 40 - + - 80 * - COUNT( * ) DIV - - 89 DIV - 34 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-2752
SELECT 48 + + 40 - + - 80 * - COUNT ( * ) / - - 89 / - 34 AS col0
----
88

query I rowsort
SELECT ALL + 67 * - 77 AS col0
----
-5159

query I rowsort
SELECT 57 + + 7 AS col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2755
SELECT ALL 80 col1, COUNT( * ) * + - 26 - COUNT( * ) + - NULLIF ( MAX( + ( 82 ) ), - CAST( NULL AS SIGNED ) ) col1
----
80
-109

skipif mysql # not compatible
query II rowsort label-2755
SELECT ALL 80 col1, COUNT ( * ) * + - 26 - COUNT ( * ) + - NULLIF ( MAX ( + ( 82 ) ), - CAST ( NULL AS INTEGER ) ) col1
----
80
-109

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2756
SELECT 64 * - - CAST( NULL AS DECIMAL ) * - + 59, ( + - 15 ) AS col2
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-2756
SELECT 64 * - - CAST ( NULL AS REAL ) * - + 59, ( + - 15 ) AS col2
----
NULL
-15

query I rowsort
SELECT DISTINCT 90 * - + 29 * + 38
----
-99180

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2758
SELECT 87 AS col0, ( + - 74 ) + - 80 - - + 83 + COUNT( * ) DIV - 59 AS col2
----
87
-71

skipif mysql # not compatible
query II rowsort label-2758
SELECT 87 AS col0, ( + - 74 ) + - 80 - - + 83 + COUNT ( * ) / - 59 AS col2
----
87
-71

query I rowsort
SELECT DISTINCT + 50 + + 78
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2760
SELECT DISTINCT - 86 + + + CAST( - MIN( ALL - CAST( NULL AS SIGNED ) ) AS SIGNED ) * - + COUNT( + - 79 ) * 82 * - + 18 / - 74 - - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT - 86 + + + CAST ( - MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * - + COUNT ( + - 79 ) * 82 * - + 18 / - 74 - - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT ALL - COUNT( * ) + + + 61
----
60

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL - COUNT ( * ) + + + 61
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2762
SELECT DISTINCT + COUNT( * ) + CAST( - ( COALESCE ( + - 58, - 78 ) ) AS SIGNED ) AS col1, COUNT( * ) AS col1
----
59
1

skipif mysql # not compatible
query II rowsort label-2762
SELECT DISTINCT + COUNT ( * ) + CAST ( - ( COALESCE ( + - 58, - 78 ) ) AS INTEGER ) AS col1, COUNT ( * ) AS col1
----
59
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2763
SELECT ALL - NULLIF ( COUNT( * ), - 43 + - AVG ( ALL - 91 ) ) + CASE - ( - AVG ( DISTINCT ( - 14 ) ) ) WHEN + 14 THEN + 8 END + - + CAST( + AVG ( DISTINCT + ( 80 ) ) AS DECIMAL ) + + - 96 * + - ( COALESCE ( - - 8, + 0 - + COUNT( * ), - 75 * - 23 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL - NULLIF ( COUNT ( * ), - 43 + - AVG ( ALL - 91 ) ) + CASE - ( - AVG ( DISTINCT ( - 14 ) ) ) WHEN + 14 THEN + 8 END + - + CAST ( + AVG ( DISTINCT + ( 80 ) ) AS REAL ) + + - 96 * + - ( COALESCE ( - - 8, + 0 - + COUNT ( * ), - 75 * - 23 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2764
SELECT + COALESCE ( - SUM( ALL - 58 ), - + 69 + + + 13, + CAST( NULL AS SIGNED ) + + CAST( COUNT( ALL + - 54 ) AS SIGNED ) + - - 46, 43 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-2764
SELECT + COALESCE ( - SUM ( ALL - 58 ), - + 69 + + + 13, + CAST ( NULL AS INTEGER ) + + CAST ( COUNT ( ALL + - 54 ) AS INTEGER ) + - - 46, 43 ) AS col0
----
58

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

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

query I rowsort
SELECT + 59 - + - 17
----
76

query I rowsort
SELECT DISTINCT - ( - - 94 ) AS col1
----
-94

query I rowsort
SELECT DISTINCT - - 88 + 2 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT - 51 + - MIN( 67 )
----
-118

skipif mysql # not compatible
query I rowsort label-2769
SELECT - 51 + - MIN ( 67 )
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2770
SELECT ALL - + 38 - ( - CAST( 34 AS SIGNED ) )
----
-4

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL - + 38 - ( - CAST ( 34 AS INTEGER ) )
----
-4

query I rowsort
SELECT - ( + 22 ) * - 52
----
1144

query I rowsort
SELECT - 9 - 91
----
-100

query I rowsort
SELECT + + NULLIF ( + 53, - 15 * 93 * - 74 * + + 75 * - - 9 - + 54 + - 75 ) AS col1
----
53

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

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

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

query I rowsort
SELECT DISTINCT 56 * + - 17 col1
----
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT 32 * - MIN( - 45 ) AS col0
----
1440

skipif mysql # not compatible
query I rowsort label-2777
SELECT 32 * - MIN ( - 45 ) AS col0
----
1440

onlyif mysql # DIV for integer division: 
query II rowsort label-2778
SELECT 68 * + 75, + 80 DIV 18 + COALESCE ( + 35, - + 22 ) DIV + 64 - + 58 AS col0
----
5100
-54

skipif mysql # not compatible
query II rowsort label-2778
SELECT 68 * + 75, + 80 / 18 + COALESCE ( + 35, - + 22 ) / + 64 - + 58 AS col0
----
5100
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-2779
SELECT DISTINCT - 81 * 99 DIV + 92
----
-87

skipif mysql # not compatible
query I rowsort label-2779
SELECT DISTINCT - 81 * 99 / + 92
----
-87

query II rowsort
SELECT DISTINCT 75 AS col1, 92 AS col2
----
75
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT ALL COUNT( * ) + - 55 col1
----
-54

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL COUNT ( * ) + - 55 col1
----
-54

query II rowsort
SELECT ALL 81, - 56 AS col0
----
81
-56

query I rowsort
SELECT ALL 7 + 98
----
105

query I rowsort
SELECT 47 + + 28
----
75

query I rowsort
SELECT ALL 1 + 74 AS col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2786
SELECT 2 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT 2 / - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query II rowsort label-2787
SELECT - 46, CAST ( NULL AS INTEGER ) AS col1
----
-46
NULL

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

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

query I rowsort
SELECT DISTINCT 12 * + 17 + - 52 col2
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2790
SELECT ALL - 40 * + 56 * + ( + 30 ) + CASE - MAX( ( 95 ) ) WHEN - CAST( + + 89 AS DECIMAL ) + - 50 THEN COUNT( * ) END / - CAST( ( + + 82 ) AS SIGNED ) * + + 27 - 50 * + - 47 + + - 10, - 7 AS col1
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-2790
SELECT ALL - 40 * + 56 * + ( + 30 ) + CASE - MAX ( ( 95 ) ) WHEN - CAST ( + + 89 AS REAL ) + - 50 THEN COUNT ( * ) END / - CAST ( ( + + 82 ) AS INTEGER ) * + + 27 - 50 * + - 47 + + - 10, - 7 AS col1
----
NULL
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT ALL - + MAX( DISTINCT 17 ) col0
----
-17

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL - + MAX ( DISTINCT 17 ) col0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2792
SELECT + - 39 DIV + MIN( - 30 ) + - ( - 51 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-2792
SELECT + - 39 / + MIN ( - 30 ) + - ( - 51 ) AS col0
----
52

query I rowsort
SELECT - 57 + 58 + + 45 col2
----
46

query I rowsort
SELECT + 94 * + 39 - + 59
----
3607

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2795
SELECT ALL + - 67 * MAX( 68 ) * 12 * 97 * - COALESCE ( + 10, + 71 * - COUNT( * ) ) + - 59 - NULLIF ( + 63, + 46 ) DIV SUM( DISTINCT + 83 ) AS col0
----
53031781

skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL + - 67 * MAX ( 68 ) * 12 * 97 * - COALESCE ( + 10, + 71 * - COUNT ( * ) ) + - 59 - NULLIF ( + 63, + 46 ) / SUM ( DISTINCT + 83 ) AS col0
----
53031781

query I rowsort
SELECT NULLIF ( - 21, + 24 + + + 55 ) AS col2
----
-21

query I rowsort
SELECT - - 50 + - - 0 * 16 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT DISTINCT + - CASE - - 32 WHEN - 14 THEN + SUM( 94 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2798
SELECT DISTINCT + - CASE - - 32 WHEN - 14 THEN + SUM ( 94 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT - - 38 * + COUNT( * ) + 52 + - + 37
----
53

skipif mysql # not compatible
query I rowsort label-2799
SELECT - - 38 * + COUNT ( * ) + 52 + - + 37
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2800
SELECT DISTINCT - + COUNT( * ) DIV + MIN( + 85 ) + + + 95 AS col2, 33 AS col2
----
95
33

skipif mysql # not compatible
query II rowsort label-2800
SELECT DISTINCT - + COUNT ( * ) / + MIN ( + 85 ) + + + 95 AS col2, 33 AS col2
----
95
33

query I rowsort
SELECT ALL - 14 * + 2
----
-28

query I rowsort
SELECT - 29 * + 62
----
-1798

onlyif mysql # DIV for integer division: 
query I rowsort label-2803
SELECT - 69 + - 32 + 75 DIV + 42 AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-2803
SELECT - 69 + - 32 + 75 / + 42 AS col0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT - 43 + - 13 - - + 3 * + 40 * + - NULLIF ( - 49, CASE COUNT( * ) WHEN - 58 * 73 THEN 68 * + + 17 * COUNT( * ) + 42 WHEN + 53 THEN NULL ELSE 1 END )
----
5824

skipif mysql # not compatible
query I rowsort label-2804
SELECT - 43 + - 13 - - + 3 * + 40 * + - NULLIF ( - 49, CASE COUNT ( * ) WHEN - 58 * 73 THEN 68 * + + 17 * COUNT ( * ) + 42 WHEN + 53 THEN NULL ELSE 1 END )
----
5824

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT ALL + CASE - 21 WHEN + 77 THEN + + COUNT( * ) WHEN + - 92 THEN + - 31 WHEN + 34 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL + CASE - 21 WHEN + 77 THEN + + COUNT ( * ) WHEN + - 92 THEN + - 31 WHEN + 34 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2806
SELECT - 80 DIV 27 * + - 99 AS col0
----
198

skipif mysql # not compatible
query I rowsort label-2806
SELECT - 80 / 27 * + - 99 AS col0
----
198

query II rowsort
SELECT ALL ( ( + COALESCE ( - 19, - 22, 59 * 46 ) ) ) AS col1, 14
----
-19
14

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2809
SELECT ALL 44 DIV - 73 AS col0, - 57 AS col2
----
0
-57

skipif mysql # not compatible
query II rowsort label-2809
SELECT ALL 44 / - 73 AS col0, - 57 AS col2
----
0
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2810
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 7 AS col0, - 69 * 5
----
NULL
-345

skipif mysql # not compatible
query II rowsort label-2810
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 7 AS col0, - 69 * 5
----
NULL
-345

query I rowsort
SELECT ALL 37 + COALESCE ( - 99, - + 6 ) AS col1
----
-62

query I rowsort
SELECT + 43 - + + 88 + + 12 * + 33 * + + 24 col2
----
9459

query I rowsort
SELECT DISTINCT 55 * - 60 * 15 col2
----
-49500

onlyif mysql # DIV for integer division: 
query I rowsort label-2814
SELECT DISTINCT - 50 + + - ( 72 ) DIV - - 61
----
-51

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT - 50 + + - ( 72 ) / - - 61
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2815
SELECT - 90 * 59 AS col2, + 72 * + MIN( 83 ) + + ( + + CAST( - 58 AS SIGNED ) ) + + 82 + - + 51 * + 47 * - 27 * - 16 AS col1
----
-5310
-1029504

skipif mysql # not compatible
query II rowsort label-2815
SELECT - 90 * 59 AS col2, + 72 * + MIN ( 83 ) + + ( + + CAST ( - 58 AS INTEGER ) ) + + 82 + - + 51 * + 47 * - 27 * - 16 AS col1
----
-5310
-1029504

onlyif mysql # aggregate syntax: 
query II rowsort label-2816
SELECT + SUM( DISTINCT + 26 ) + - ( - 68 ) - - 82 AS col0, COUNT( * )
----
176
1

skipif mysql # not compatible
query II rowsort label-2816
SELECT + SUM ( DISTINCT + 26 ) + - ( - 68 ) - - 82 AS col0, COUNT ( * )
----
176
1

query II rowsort
SELECT ALL 1 + + 64 AS col1, 56 AS col2
----
65
56

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

skipif mysql # not compatible
query I rowsort label-2818
SELECT - 7 + + COUNT ( * ) / - 90
----
-7

query II rowsort
SELECT + 72 + - 52 - - 22 AS col1, 27 + + 39
----
42
66

query I rowsort
SELECT - ( + 1 ) + 2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2821
SELECT - ( - + 85 ), ( - + COALESCE ( - - 35, - - MIN( 64 ) * + 85 * + 19 * + 29, - - 52 ) ) AS col2
----
85
-35

skipif mysql # not compatible
query II rowsort label-2821
SELECT - ( - + 85 ), ( - + COALESCE ( - - 35, - - MIN ( 64 ) * + 85 * + 19 * + 29, - - 52 ) ) AS col2
----
85
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2822
SELECT ALL 54 + + COUNT( * ) - CAST( - + 78 AS SIGNED ) - + - COUNT( * ) * - - 34
----
167

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL 54 + + COUNT ( * ) - CAST ( - + 78 AS INTEGER ) - + - COUNT ( * ) * - - 34
----
167

query I rowsort
SELECT ALL 47 + + 24
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2824
SELECT ALL 14 + - - ( ( - + 17 ) ) + - CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL 14 + - - ( ( - + 17 ) ) + - CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2825
SELECT + - 64 + + COUNT( * ) AS col1, - 67 AS col2
----
-63
-67

skipif mysql # not compatible
query II rowsort label-2825
SELECT + - 64 + + COUNT ( * ) AS col1, - 67 AS col2
----
-63
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2826
SELECT ALL + + COUNT( - ( - + 9 ) ) DIV + 28 - + + 46 * 20 AS col1
----
-920

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL + + COUNT ( - ( - + 9 ) ) / + 28 - + + 46 * 20 AS col1
----
-920

query I rowsort
SELECT + - 48 * 88 * + 73 + 56 AS col2
----
-308296

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT + 67 * - 57 + - COUNT( * )
----
-3820

skipif mysql # not compatible
query I rowsort label-2828
SELECT + 67 * - 57 + - COUNT ( * )
----
-3820

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT ALL - 9 * - - 46 - + + COUNT( * ) AS col1
----
-415

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL - 9 * - - 46 - + + COUNT ( * ) AS col1
----
-415

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( + ( - + 17 ), + - 27 )
----
-17

query I rowsort
SELECT DISTINCT - 65 * + 77
----
-5005

query III rowsort
SELECT ALL - 7 * 29 AS col2, - ( 52 ) * + 55, - 14 AS col0
----
-203
-2860
-14

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

query I rowsort
SELECT - - 34 * 77 + + 30 + - 60 AS col1
----
2588

query I rowsort
SELECT ALL + CASE - 18 WHEN + 50 THEN - 30 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2837
SELECT CASE + 77 WHEN + - 29 + - - CAST( NULL AS SIGNED ) THEN 69 WHEN + + 45 THEN NULL END AS col1, 88 + - 98
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-2837
SELECT CASE + 77 WHEN + - 29 + - - CAST ( NULL AS INTEGER ) THEN 69 WHEN + + 45 THEN NULL END AS col1, 88 + - 98
----
NULL
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT - 87 * - 53 - - + COUNT( * ) + + COUNT( * )
----
4613

skipif mysql # not compatible
query I rowsort label-2838
SELECT - 87 * - 53 - - + COUNT ( * ) + + COUNT ( * )
----
4613

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT - SUM( DISTINCT + 50 ) * 71 * - 18
----
63900

skipif mysql # not compatible
query I rowsort label-2839
SELECT - SUM ( DISTINCT + 50 ) * 71 * - 18
----
63900

query I rowsort
SELECT - 74 * - + 93 AS col0
----
6882

query I rowsort
SELECT ALL + 87 * + 80 + 85 col1
----
7045

onlyif mysql # aggregate syntax: 
query II rowsort label-2842
SELECT DISTINCT 87 * 43 + - + 5, - 77 + + COUNT( * ) AS col0
----
3736
-76

skipif mysql # not compatible
query II rowsort label-2842
SELECT DISTINCT 87 * 43 + - + 5, - 77 + + COUNT ( * ) AS col0
----
3736
-76

query I rowsort
SELECT ALL + 8 * - 34 AS col2
----
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT COALESCE ( - MIN( DISTINCT + 68 ), ( + + 91 ), 48 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-2844
SELECT COALESCE ( - MIN ( DISTINCT + 68 ), ( + + 91 ), 48 ) AS col2
----
-68

query I rowsort
SELECT ALL 49 * - + ( 87 ) + + - 98 - 45 AS col1
----
-4406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2846
SELECT - CAST( NULL AS SIGNED ), COUNT( * ) + - + COUNT( * ) AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2846
SELECT - CAST ( NULL AS INTEGER ), COUNT ( * ) + - + COUNT ( * ) AS col0
----
NULL
0

query I rowsort
SELECT ALL 92 * - + 86 + + - ( 1 ) AS col1
----
-7913

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2848
SELECT - ( + ( + 59 ) ) DIV - 96 - + + COUNT( * ) + 5 * + - 72
----
-361

skipif mysql # not compatible
query I rowsort label-2848
SELECT - ( + ( + 59 ) ) / - 96 - + + COUNT ( * ) + 5 * + - 72
----
-361

query I rowsort
SELECT + 90 + + 83 - - 64 + + NULLIF ( + 73, + 70 ) * 42 AS col1
----
3303

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT ALL + 0 + MAX( + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL + 0 + MAX ( + 96 )
----
96

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

query I rowsort
SELECT ALL 48 - 0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT ALL ( + + 65 ) * - NULLIF ( + 96, + + ( 15 ) ) + + + SUM( 15 )
----
-6225

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL ( + + 65 ) * - NULLIF ( + 96, + + ( 15 ) ) + + + SUM ( 15 )
----
-6225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2854
SELECT - 30 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2854
SELECT - 30 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2855
SELECT - - COUNT( * ) AS col1, - 12 - - 81
----
1
69

skipif mysql # not compatible
query II rowsort label-2855
SELECT - - COUNT ( * ) AS col1, - 12 - - 81
----
1
69

query I rowsort
SELECT - - 74 + 42
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2857
SELECT + - CASE - 95 WHEN + 69 / CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) * + + COUNT( DISTINCT - 84 ) + 83 + + 46 * + COUNT( * ) + - COUNT( * ) / - 25 * NULLIF ( 90, ( ( ( - + 8 ) ) ) * - 63 ) THEN - + 90 WHEN - 0 - + 64 THEN NULL END * - - ( 95 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT + - CASE - 95 WHEN + 69 / CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) * + + COUNT ( DISTINCT - 84 ) + 83 + + 46 * + COUNT ( * ) + - COUNT ( * ) / - 25 * NULLIF ( 90, ( ( ( - + 8 ) ) ) * - 63 ) THEN - + 90 WHEN - 0 - + 64 THEN NULL END * - - ( 95 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 63 - - 34
----
97

query I rowsort
SELECT - + 99 + 24
----
-75

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

query I rowsort
SELECT 38 - 22 AS col2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2862
SELECT 81 * 40 DIV + 56
----
57

skipif mysql # not compatible
query I rowsort label-2862
SELECT 81 * 40 / + 56
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2863
SELECT ALL 79, - COUNT( + 41 ) DIV + 20 AS col0
----
79
0

skipif mysql # not compatible
query II rowsort label-2863
SELECT ALL 79, - COUNT ( + 41 ) / + 20 AS col0
----
79
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2864
SELECT + 23 DIV 65 + + ( + - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-2864
SELECT + 23 / 65 + + ( + - 87 )
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-2865
SELECT DISTINCT + 69 * - - CASE + 10 WHEN COUNT( * ) + 24 + + 94 * 11 THEN - 57 END, 57 col1
----
NULL
57

skipif mysql # not compatible
query II rowsort label-2865
SELECT DISTINCT + 69 * - - CASE + 10 WHEN COUNT ( * ) + 24 + + 94 * 11 THEN - 57 END, 57 col1
----
NULL
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2866
SELECT - NULLIF ( + + 4, NULLIF ( + 28, - NULLIF ( + - NULLIF ( + CAST( - 8 AS DECIMAL ), + CASE - + 27 WHEN - COUNT( * ) THEN NULL ELSE - CAST( NULL AS SIGNED ) * 16 END ), - + 33 ) + 81 ) * 95 + + 81 ) DIV - + MAX( ALL CAST( + 21 AS SIGNED ) ) + + 48 - - - COALESCE ( - 35, COUNT( * ) + 16 ) + + - 30 * - 5 * CAST( + 75 AS SIGNED ) * - - 71
----
798833

skipif mysql # not compatible
query I rowsort label-2866
SELECT - NULLIF ( + + 4, NULLIF ( + 28, - NULLIF ( + - NULLIF ( + CAST ( - 8 AS REAL ), + CASE - + 27 WHEN - COUNT ( * ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) * 16 END ), - + 33 ) + 81 ) * 95 + + 81 ) / - + MAX ( ALL CAST ( + 21 AS INTEGER ) ) + + 48 - - - COALESCE ( - 35, COUNT ( * ) + 16 ) + + - 30 * - 5 * CAST ( + 75 AS INTEGER ) * - - 71
----
798833

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT CASE + 22 WHEN - 50 THEN + 92 ELSE 18 * - 95 + - 46 + + COUNT( DISTINCT + 35 ) END * - 11 * MIN( + 21 ) col0
----
405405

skipif mysql # not compatible
query I rowsort label-2867
SELECT CASE + 22 WHEN - 50 THEN + 92 ELSE 18 * - 95 + - 46 + + COUNT ( DISTINCT + 35 ) END * - 11 * MIN ( + 21 ) col0
----
405405

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT ALL + - 2 * SUM( 67 )
----
-134

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL + - 2 * SUM ( 67 )
----
-134

onlyif mysql # DIV for integer division: 
query II rowsort label-2869
SELECT DISTINCT 33 DIV + 8 + + - 0 AS col2, 5
----
4
5

skipif mysql # not compatible
query II rowsort label-2869
SELECT DISTINCT 33 / + 8 + + - 0 AS col2, 5
----
4
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2870
SELECT - COUNT( * ) DIV + 57 - + 28 + - 71 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-2870
SELECT - COUNT ( * ) / + 57 - + 28 + - 71 AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT + - COUNT( * ) * - COALESCE ( + 39, - 31 ) - + 73 * 24 AS col1
----
-1713

skipif mysql # not compatible
query I rowsort label-2871
SELECT + - COUNT ( * ) * - COALESCE ( + 39, - 31 ) - + 73 * 24 AS col1
----
-1713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2872
SELECT ALL - CAST( 58 AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL - CAST ( 58 AS INTEGER )
----
-58

query I rowsort
SELECT - 20 * - - 81
----
-1620

query I rowsort
SELECT 17 * 89 + 38 AS col2
----
1551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2875
SELECT ALL COALESCE ( - CAST( NULL AS SIGNED ), - - 59 ) + - + 90 / 71 - + 64 + - 26 * CAST( NULL AS SIGNED ) + - 40 * - ( - + COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL COALESCE ( - CAST ( NULL AS INTEGER ), - - 59 ) + - + 90 / 71 - + 64 + - 26 * CAST ( NULL AS INTEGER ) + - 40 * - ( - + COUNT ( * ) ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2876
SELECT + 87 DIV + CAST( MIN( ALL + + ( - 35 ) ) AS SIGNED ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2876
SELECT + 87 / + CAST ( MIN ( ALL + + ( - 35 ) ) AS INTEGER ) AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2877
SELECT DISTINCT 97 DIV + 64
----
1

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT 97 / + 64
----
1

query II rowsort
SELECT DISTINCT 62 + 79 + + ( - 83 ) col2, 28
----
58
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT ALL 32 + + ( + COUNT( * ) ) - + 12
----
21

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL 32 + + ( + COUNT ( * ) ) - + 12
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT COUNT( * ) + - 28 + 90
----
63

skipif mysql # not compatible
query I rowsort label-2880
SELECT COUNT ( * ) + - 28 + 90
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ( - 89 ) * COUNT( * ) * + 26 * COALESCE ( - 52, + 33 * 7 * 21 - + 54 + 34 * + + ( + 88 ) + 44 * 86 ) * - 36 AS col1
----
-4331808

skipif mysql # not compatible
query I rowsort label-2881
SELECT ( - 89 ) * COUNT ( * ) * + 26 * COALESCE ( - 52, + 33 * 7 * 21 - + 54 + 34 * + + ( + 88 ) + 44 * 86 ) * - 36 AS col1
----
-4331808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2882
SELECT DISTINCT 26 + + COALESCE ( + - CAST( - - 14 AS SIGNED ), 83 + ( + COUNT( * ) ) ), ( + COUNT( * ) ) AS col2
----
12
1

skipif mysql # not compatible
query II rowsort label-2882
SELECT DISTINCT 26 + + COALESCE ( + - CAST ( - - 14 AS INTEGER ), 83 + ( + COUNT ( * ) ) ), ( + COUNT ( * ) ) AS col2
----
12
1

query I rowsort
SELECT 98 * - 43 AS col2
----
-4214

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT DISTINCT + CASE - COUNT( * ) WHEN SUM( ALL + + 80 ) THEN + CASE - 66 WHEN - COUNT( * ) + - + 14 THEN NULL WHEN + 34 + - + COUNT( DISTINCT 70 ) THEN NULL WHEN - + 95 - 66 * 79 THEN 76 + AVG ( ALL - - 64 ) - - 92 * - 86 END + 86 - 95 * + 44 * - 58 END * - 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT + CASE - COUNT ( * ) WHEN SUM ( ALL + + 80 ) THEN + CASE - 66 WHEN - COUNT ( * ) + - + 14 THEN NULL WHEN + 34 + - + COUNT ( DISTINCT 70 ) THEN NULL WHEN - + 95 - 66 * 79 THEN 76 + AVG ( ALL - - 64 ) - - 92 * - 86 END + 86 - 95 * + 44 * - 58 END * - 97 AS col1
----
NULL

query II rowsort
SELECT 11 * - + 33 * + ( 16 ), + 76 * ( + COALESCE ( + 31, 53 - - 4 ) ) AS col1
----
-5808
2356

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT 17 + - MAX( 85 )
----
-68

skipif mysql # not compatible
query I rowsort label-2886
SELECT 17 + - MAX ( 85 )
----
-68

query I rowsort
SELECT - 19 + - ( 6 ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT - 93 + + 32 + 88 + - 89 * - COUNT( * ) AS col1
----
116

skipif mysql # not compatible
query I rowsort label-2888
SELECT - 93 + + 32 + 88 + - 89 * - COUNT ( * ) AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT COUNT( * ) + + CASE COUNT( * ) WHEN - 69 + SUM( ALL - 54 ) THEN + 21 WHEN + - 42 THEN - 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2889
SELECT COUNT ( * ) + + CASE COUNT ( * ) WHEN - 69 + SUM ( ALL - 54 ) THEN + 21 WHEN + - 42 THEN - 39 END
----
NULL

query I rowsort
SELECT 52 + + + 80
----
132

query I rowsort
SELECT ALL + COALESCE ( + + 39, - + 3 ) AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2892
SELECT + 68 DIV + MAX( + - 21 )
----
-3

skipif mysql # not compatible
query I rowsort label-2892
SELECT + 68 / + MAX ( + - 21 )
----
-3

query I rowsort
SELECT DISTINCT 8 * + 88 - 27
----
677

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2894
SELECT DISTINCT - - 37 DIV + MAX( ALL + + ( + 75 ) ) * + 73 DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT - - 37 / + MAX ( ALL + + ( + 75 ) ) * + 73 / - 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT 22 + + - MAX( DISTINCT 57 )
----
-35

skipif mysql # not compatible
query I rowsort label-2895
SELECT 22 + + - MAX ( DISTINCT 57 )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2896
SELECT ( 80 ) * + 99 * 59 + - 39 + 86 + + - CAST( ( + COUNT( * ) ) AS SIGNED ) DIV ( - 70 )
----
467327

skipif mysql # not compatible
query I rowsort label-2896
SELECT ( 80 ) * + 99 * 59 + - 39 + 86 + + - CAST ( ( + COUNT ( * ) ) AS INTEGER ) / ( - 70 )
----
467327

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT ALL + COUNT( * ) + - 20 * 6
----
-119

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL + COUNT ( * ) + - 20 * 6
----
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2898
SELECT ALL - CASE - COUNT( * ) WHEN + 78 * + - 72 * - 95 * - CASE + ( + + MAX( DISTINCT CASE + 4 WHEN + - 75 * - + 65 THEN + 36 ELSE NULL END ) ) WHEN 23 + NULLIF ( - 62, + - 4 / COUNT( * ) - - + 50 ) + - - 20 * + CASE + 33 WHEN + 0 THEN - 4 ELSE NULL END THEN - 18 WHEN - 89 THEN NULL ELSE - - 34 - - - 56 END THEN NULL WHEN 98 THEN + 34 + + - 19 / + + COUNT( + 8 ) WHEN + 77 * + 86 THEN NULL ELSE - CAST( NULL AS SIGNED ) / - 39 END + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL - CASE - COUNT ( * ) WHEN + 78 * + - 72 * - 95 * - CASE + ( + + MAX ( DISTINCT CASE + 4 WHEN + - 75 * - + 65 THEN + 36 ELSE NULL END ) ) WHEN 23 + NULLIF ( - 62, + - 4 / COUNT ( * ) - - + 50 ) + - - 20 * + CASE + 33 WHEN + 0 THEN - 4 ELSE NULL END THEN - 18 WHEN - 89 THEN NULL ELSE - - 34 - - - 56 END THEN NULL WHEN 98 THEN + 34 + + - 19 / + + COUNT ( + 8 ) WHEN + 77 * + 86 THEN NULL ELSE - CAST ( NULL AS INTEGER ) / - 39 END + 45
----
NULL

query II rowsort
SELECT - 76 * - 1 + - 13 * 47, 26 AS col2
----
-535
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT + ( - CASE + + 67 WHEN 81 THEN + COUNT( * ) WHEN - 55 THEN NULL ELSE 93 END )
----
-93

skipif mysql # not compatible
query I rowsort label-2900
SELECT + ( - CASE + + 67 WHEN 81 THEN + COUNT ( * ) WHEN - 55 THEN NULL ELSE 93 END )
----
-93

query I rowsort
SELECT ALL 38 + - 67
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2902
SELECT DISTINCT + 63 + + - 69 + + 72 + 31 * + 18 DIV + + COUNT( * ) + - COUNT( * ) * + 33 * - 77 AS col1
----
3165

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT + 63 + + - 69 + + 72 + 31 * + 18 / + + COUNT ( * ) + - COUNT ( * ) * + 33 * - 77 AS col1
----
3165

query I rowsort
SELECT 36 * + 20 + - 83 AS col2
----
637

query II rowsort
SELECT ALL - 22 AS col0, - 43 AS col0
----
-22
-43

query I rowsort
SELECT 67 * - 60 * + NULLIF ( + + 35, - - 52 ) AS col0
----
-140700

onlyif mysql # DIV for integer division: 
query I rowsort label-2906
SELECT ALL 78 DIV + 61
----
1

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL 78 / + 61
----
1

query I rowsort
SELECT ALL 31 * - 69 AS col2
----
-2139

query I rowsort
SELECT DISTINCT 77 * + + 31
----
2387

query I rowsort
SELECT 82 * - 78 AS col1
----
-6396

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2910
SELECT DISTINCT 44 AS col2, CASE + 48 WHEN 18 THEN + 25 DIV 91 * - + 41 WHEN - 24 THEN NULL ELSE + 64 END + + COUNT( * ) + + 39 AS col1
----
44
104

skipif mysql # not compatible
query II rowsort label-2910
SELECT DISTINCT 44 AS col2, CASE + 48 WHEN 18 THEN + 25 / 91 * - + 41 WHEN - 24 THEN NULL ELSE + 64 END + + COUNT ( * ) + + 39 AS col1
----
44
104

query II rowsort
SELECT 45, 62 + 90 AS col0
----
45
152

query I rowsort
SELECT ALL - 80 * + 6 AS col1
----
-480

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT DISTINCT - + SUM( ALL + 41 ) * - 49
----
2009

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT - + SUM ( ALL + 41 ) * - 49
----
2009

query I rowsort
SELECT - - 42 * - - 80 AS col0
----
3360

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT + COUNT( * ) + - 10 * + COUNT( * ) + COUNT( * ) * + MAX( ALL - 44 ) * + + 35 * ( 23 )
----
-35429

skipif mysql # not compatible
query I rowsort label-2917
SELECT + COUNT ( * ) + - 10 * + COUNT ( * ) + COUNT ( * ) * + MAX ( ALL - 44 ) * + + 35 * ( 23 )
----
-35429

query II rowsort
SELECT + 24 + 19 * + 6 * - 56 * - 84, + ( 34 ) + + 66 AS col1
----
536280
100

query I rowsort
SELECT - 93 * + 51 AS col0
----
-4743

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2921
SELECT - COUNT( ( + + 14 ) ) AS col2, - ( - CAST( + 11 AS SIGNED ) ) AS col1
----
-1
11

skipif mysql # not compatible
query II rowsort label-2921
SELECT - COUNT ( ( + + 14 ) ) AS col2, - ( - CAST ( + 11 AS INTEGER ) ) AS col1
----
-1
11

query I rowsort
SELECT DISTINCT - 26 * - - 66 AS col2
----
-1716

onlyif mysql # DIV for integer division: 
query I rowsort label-2923
SELECT - + 15 + - 0 DIV 81
----
-15

skipif mysql # not compatible
query I rowsort label-2923
SELECT - + 15 + - 0 / 81
----
-15

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

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL - - 59 / + COUNT ( * )
----
59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT ALL + MAX( + - 8 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL + MAX ( + - 8 ) AS col2
----
-8

query I rowsort
SELECT ALL COALESCE ( + + 86, + 38 ) * 55 + - 45
----
4685

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT - COUNT( * ) - - 90 + + COALESCE ( + - 21, + 36 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-2928
SELECT - COUNT ( * ) - - 90 + + COALESCE ( + - 21, + 36 ) AS col1
----
68

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

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

query II rowsort
SELECT ( + CASE 36 WHEN 29 THEN NULL ELSE 91 * + 18 END ) AS col0, + 39 AS col1
----
1638
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2931
SELECT ( + - 5 ) * ( + + 22 ) * + + 63 - 98 + + 39 DIV 59 + - COUNT( DISTINCT - 8 )
----
-7029

skipif mysql # not compatible
query I rowsort label-2931
SELECT ( + - 5 ) * ( + + 22 ) * + + 63 - 98 + + 39 / 59 + - COUNT ( DISTINCT - 8 )
----
-7029

query II rowsort
SELECT + 6 col1, + 98 * - 9 + + - 97 + + 20
----
6
-959

query I rowsort
SELECT NULLIF ( ( + - 40 ), + + 75 ) AS col0
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2934
SELECT + COALESCE ( + 99, + 39 * - 77 + + 83 * + 29 + - 30 + COALESCE ( 7, - 26 * + 52 + - + 84, - ( - 19 ) * + 90 DIV + + 1 + + + 14 ) + - 59 * COUNT( * ) * + 9 ) DIV 2 + + - 57 + 53 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-2934
SELECT + COALESCE ( + 99, + 39 * - 77 + + 83 * + 29 + - 30 + COALESCE ( 7, - 26 * + 52 + - + 84, - ( - 19 ) * + 90 / + + 1 + + + 14 ) + - 59 * COUNT ( * ) * + 9 ) / 2 + + - 57 + 53 AS col0
----
45

query I rowsort
SELECT COALESCE ( - 4, - 5 )
----
-4

query II rowsort
SELECT + 63 AS col2, 32
----
63
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT - 43 + - - 74 - - + 68 * + - COUNT( * ) * - 60 * 52 * + SUM( DISTINCT - 71 )
----
-15063329

skipif mysql # not compatible
query I rowsort label-2937
SELECT - 43 + - - 74 - - + 68 * + - COUNT ( * ) * - 60 * 52 * + SUM ( DISTINCT - 71 )
----
-15063329

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

skipif mysql # not compatible
query I rowsort label-2938
SELECT DISTINCT + NULLIF ( - 2, - COUNT ( * ) )
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT ALL - 87 * + COUNT( * ) col1
----
-87

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL - 87 * + COUNT ( * ) col1
----
-87

query II rowsort
SELECT + 80 col0, - 40
----
80
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2942
SELECT ALL + CAST( NULL AS SIGNED ), 96 col2
----
NULL
96

skipif mysql # not compatible
query II rowsort label-2942
SELECT ALL + CAST ( NULL AS INTEGER ), 96 col2
----
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT - ( + 20 ) + + ( + MAX( DISTINCT ( 76 ) ) )
----
56

skipif mysql # not compatible
query I rowsort label-2943
SELECT - ( + 20 ) + + ( + MAX ( DISTINCT ( 76 ) ) )
----
56

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

query I rowsort
SELECT + 83 * + - NULLIF ( - 4, 96 ) * + - 53 - + 68
----
-17664

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

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

query II rowsort
SELECT - ( + - 17 ) AS col2, - 20 + + 66
----
17
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2948
SELECT ALL + CASE 26 WHEN - CAST( NULL AS SIGNED ) THEN ( - NULLIF ( - 11, + ( + ( - 62 ) ) * 46 * 98 * + - 23 + 25 ) ) END * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL + CASE 26 WHEN - CAST ( NULL AS INTEGER ) THEN ( - NULLIF ( - 11, + ( + ( - 62 ) ) * 46 * 98 * + - 23 + 25 ) ) END * 9
----
NULL

query I rowsort
SELECT + 28 + + 46 + 30
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2950
SELECT ALL - CAST( NULL AS SIGNED ) + 54 col0, 11
----
NULL
11

skipif mysql # not compatible
query II rowsort label-2950
SELECT ALL - CAST ( NULL AS INTEGER ) + 54 col0, 11
----
NULL
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2951
SELECT DISTINCT - 82 * 45 - + CAST( - 42 AS SIGNED ) AS col1, - COUNT( DISTINCT - 41 )
----
-3648
-1

skipif mysql # not compatible
query II rowsort label-2951
SELECT DISTINCT - 82 * 45 - + CAST ( - 42 AS INTEGER ) AS col1, - COUNT ( DISTINCT - 41 )
----
-3648
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT ALL - 49 * - COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL - 49 * - COUNT ( * ) AS col2
----
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2953
SELECT ALL 25 * - CAST( NULL AS DECIMAL ) * 58 + - - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL 25 * - CAST ( NULL AS REAL ) * 58 + - - 18 AS col1
----
NULL

query I rowsort
SELECT + 94 * - + 39 AS col2
----
-3666

query II rowsort
SELECT 84 AS col2, 45 + + + 58 AS col1
----
84
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2956
SELECT - + CASE + 36 WHEN - + 6 THEN + + 57 WHEN 18 THEN NULL WHEN + + NULLIF ( + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ), + - 3 ) + - 2 / - 41 * - 58 / + COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT - + CASE + 36 WHEN - + 6 THEN + + 57 WHEN 18 THEN NULL WHEN + + NULLIF ( + CAST ( CAST ( NULL AS REAL ) AS INTEGER ), + - 3 ) + - 2 / - 41 * - 58 / + COUNT ( * ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + + 5 + + 10
----
15

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2960
SELECT - - NULLIF ( - 63, + 60 + 91 ) + - ( - - COUNT( * ) ) - 27 DIV - ( - SUM( ALL + 98 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-2960
SELECT - - NULLIF ( - 63, + 60 + 91 ) + - ( - - COUNT ( * ) ) - 27 / - ( - SUM ( ALL + 98 ) )
----
-64

query I rowsort
SELECT + + 19 * + 87 AS col2
----
1653

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2962
SELECT DISTINCT 9 + + 68 DIV + 84 + COUNT( * ) + - - 96 * 18 DIV - + ( - 80 )
----
31

skipif mysql # not compatible
query I rowsort label-2962
SELECT DISTINCT 9 + + 68 / + 84 + COUNT ( * ) + - - 96 * 18 / - + ( - 80 )
----
31

query I rowsort
SELECT DISTINCT - + ( + - 98 ) * + 21
----
2058

query II rowsort
SELECT - 66, 48 AS col2
----
-66
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2965
SELECT ALL ( + 17 ) + - COUNT( CAST( NULL AS SIGNED ) ) * + 63 DIV NULLIF ( - 19, - MIN( ALL + + 57 ) )
----
17

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL ( + 17 ) + - COUNT ( CAST ( NULL AS INTEGER ) ) * + 63 / NULLIF ( - 19, - MIN ( ALL + + 57 ) )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT ALL MIN( DISTINCT + 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL MIN ( DISTINCT + 50 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT - - NULLIF ( - 84, + + AVG ( ALL - + 6 ) * + ( + NULLIF ( + + 62, - - 68 + - + 29 ) ) / - - ( + 17 ) * - - 62 + + 4 - 98 + 58 * + + 76 + + - 48 ) + - NULLIF ( + + 77, + + MIN( 4 ) ) + + 87 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2967
SELECT - - NULLIF ( - 84, + + AVG ( ALL - + 6 ) * + ( + NULLIF ( + + 62, - - 68 + - + 29 ) ) / - - ( + 17 ) * - - 62 + + 4 - 98 + 58 * + + 76 + + - 48 ) + - NULLIF ( + + 77, + + MIN ( 4 ) ) + + 87 AS col2
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2968
SELECT + MIN( ALL + 41 ) * - 0 AS col2, - 6 DIV 78 * - COUNT( * ) AS col0
----
0
0

skipif mysql # not compatible
query II rowsort label-2968
SELECT + MIN ( ALL + 41 ) * - 0 AS col2, - 6 / 78 * - COUNT ( * ) AS col0
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT DISTINCT + 72 * - 16 * COUNT( * )
----
-1152

skipif mysql # not compatible
query I rowsort label-2969
SELECT DISTINCT + 72 * - 16 * COUNT ( * )
----
-1152

onlyif mysql # DIV for integer division: 
query II rowsort label-2970
SELECT + 32 DIV + 84 + + COALESCE ( 77, - 4 ) AS col0, - 50
----
77
-50

skipif mysql # not compatible
query II rowsort label-2970
SELECT + 32 / + 84 + + COALESCE ( 77, - 4 ) AS col0, - 50
----
77
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT DISTINCT 67 * - MIN( DISTINCT + 87 ) col0
----
-5829

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT 67 * - MIN ( DISTINCT + 87 ) col0
----
-5829

query I rowsort
SELECT + 84 + + - 88
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT DISTINCT + 28 / - CASE + COUNT( * ) WHEN MAX( + COALESCE ( 17, 5 ) ) THEN + 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT + 28 / - CASE + COUNT ( * ) WHEN MAX ( + COALESCE ( 17, 5 ) ) THEN + 96 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT - COUNT( ALL 95 ) * 53 * - 24 + - 44 AS col1
----
1228

skipif mysql # not compatible
query I rowsort label-2974
SELECT - COUNT ( ALL 95 ) * 53 * - 24 + - 44 AS col1
----
1228

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2975
SELECT ALL - CAST( - 6 AS SIGNED ), 23 AS col0
----
6
23

skipif mysql # not compatible
query II rowsort label-2975
SELECT ALL - CAST ( - 6 AS INTEGER ), 23 AS col0
----
6
23

query I rowsort
SELECT ALL + 11 + - 38 AS col2
----
-27

query I rowsort
SELECT - 12 * + - 54 * + 84 AS col1
----
54432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2978
SELECT DISTINCT + CAST( + - NULLIF ( ( + COUNT( 71 ) ), + + 26 ) AS SIGNED ) * + 98
----
-98

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT + CAST ( + - NULLIF ( ( + COUNT ( 71 ) ), + + 26 ) AS INTEGER ) * + 98
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-2979
SELECT - + MAX( - - 52 ) AS col0, + 95 + 16
----
-52
111

skipif mysql # not compatible
query II rowsort label-2979
SELECT - + MAX ( - - 52 ) AS col0, + 95 + 16
----
-52
111

query II rowsort
SELECT ALL - NULLIF ( + 13, - 7 + 51 * 71 ) col0, - 61 * 1
----
-13
-61

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

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

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

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL - - 80 + - COUNT ( * ) * - COUNT ( * ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT - CASE + + 78 WHEN - 63 THEN COUNT( * ) + + 29 + - 73 * + 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2983
SELECT - CASE + + 78 WHEN - 63 THEN COUNT ( * ) + + 29 + - 73 * + 50 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2984
SELECT DISTINCT - COUNT( * ) + ( + + 57 ) + 52 DIV + 40 AS col0, + COALESCE ( 64, 87 - - - 21, ( + 37 ) ) + - - 35
----
57
99

skipif mysql # not compatible
query II rowsort label-2984
SELECT DISTINCT - COUNT ( * ) + ( + + 57 ) + 52 / + 40 AS col0, + COALESCE ( 64, 87 - - - 21, ( + 37 ) ) + - - 35
----
57
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT DISTINCT - COALESCE ( + 14, 78 * + - 25 ) * ( COUNT( * ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT - COALESCE ( + 14, 78 * + - 25 ) * ( COUNT ( * ) ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT COUNT( * ) * + ( - 43 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-2986
SELECT COUNT ( * ) * + ( - 43 ) AS col1
----
-43

query I rowsort
SELECT ALL + + 76 * - 79 * 49 + - - 51
----
-294145

query I rowsort
SELECT 76 - - - 27 AS col0
----
49

query I rowsort
SELECT ALL - 43 * - 29
----
1247

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT - CASE 17 WHEN CASE + 64 WHEN - 21 THEN - 10 * 1 ELSE - ( + 86 ) + - + 28 + + 79 END * - 17 + + 11 + + + 83 THEN - 16 WHEN + + 35 THEN - 0 * 28 + - 52 + 20 END * - 24 - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2990
SELECT - CASE 17 WHEN CASE + 64 WHEN - 21 THEN - 10 * 1 ELSE - ( + 86 ) + - + 28 + + 79 END * - 17 + + 11 + + + 83 THEN - 16 WHEN + + 35 THEN - 0 * 28 + - 52 + 20 END * - 24 - - COUNT ( * )
----
NULL

query I rowsort
SELECT 67 + - - 74 * + 13
----
1029

query I rowsort
SELECT DISTINCT + 4 * + 52
----
208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2993
SELECT MAX( CAST( NULL AS SIGNED ) ) + - ( + COUNT( * ) ) + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2993
SELECT MAX ( CAST ( NULL AS INTEGER ) ) + - ( + COUNT ( * ) ) + 10 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2994
SELECT + 65 * - - 52 + CAST( NULL AS SIGNED ) AS col2, 77 AS col1
----
NULL
77

skipif mysql # not compatible
query II rowsort label-2994
SELECT + 65 * - - 52 + CAST ( NULL AS INTEGER ) AS col2, 77 AS col1
----
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT ( + + 87 ) + - COUNT( 92 )
----
86

skipif mysql # not compatible
query I rowsort label-2995
SELECT ( + + 87 ) + - COUNT ( 92 )
----
86

query I rowsort
SELECT 18 * 3
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2997
SELECT - 90 / + + 62 + - + 0 - + 33 + - 25 - + - 58 + - CAST( - 74 AS SIGNED ) * - CAST( NULL AS SIGNED ) + - - COUNT( * ) / 65 + - NULLIF ( + 29, + 20 + + MAX( DISTINCT - - 77 ) * 19 ) + + 55 / - + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-2997
SELECT - 90 / + + 62 + - + 0 - + 33 + - 25 - + - 58 + - CAST ( - 74 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) / 65 + - NULLIF ( + 29, + 20 + + MAX ( DISTINCT - - 77 ) * 19 ) + + 55 / - + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT ALL NULLIF ( - 25, 12 + - - COUNT( * ) ) * - ( - 85 ) AS col0
----
-2125

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL NULLIF ( - 25, 12 + - - COUNT ( * ) ) * - ( - 85 ) AS col0
----
-2125

query II rowsort
SELECT DISTINCT - 69, - 31 * - 82 col0
----
-69
2542

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT DISTINCT + 97 + - - SUM( DISTINCT + 26 )
----
123

skipif mysql # not compatible
query I rowsort label-3000
SELECT DISTINCT + 97 + - - SUM ( DISTINCT + 26 )
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL NULLIF ( + - 33, - COUNT( * ) + + 67 ) * + 44
----
-1452

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL NULLIF ( + - 33, - COUNT ( * ) + + 67 ) * + 44
----
-1452

onlyif mysql # DIV for integer division: 
query I rowsort label-3002
SELECT 27 DIV - 18
----
-1

skipif mysql # not compatible
query I rowsort label-3002
SELECT 27 / - 18
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3003
SELECT ALL + COUNT( + + 16 ) + - COUNT( * ) AS col2, - 9 + + COUNT( * )
----
0
-8

skipif mysql # not compatible
query II rowsort label-3003
SELECT ALL + COUNT ( + + 16 ) + - COUNT ( * ) AS col2, - 9 + + COUNT ( * )
----
0
-8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT 65 * + 63 + + + COUNT( - 22 )
----
4096

skipif mysql # not compatible
query I rowsort label-3005
SELECT 65 * + 63 + + + COUNT ( - 22 )
----
4096

query I rowsort
SELECT ALL - - 28 + + 6
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3007
SELECT - COALESCE ( + - MAX( DISTINCT - 42 ), CASE 18 WHEN + NULLIF ( + - 44, + 8 * + CASE + 57 WHEN 83 THEN - ( + 48 ) - 54 * + NULLIF ( + - ( ( - 99 ) ), - - ( + - CASE COALESCE ( 34, + COALESCE ( COALESCE ( + 16, + COUNT( * ) / + 72 * + 64 * + COALESCE ( COUNT( * ), - - 39 ) + - 7 ), - ( - ( + 30 ) ) + + + 2, - NULLIF ( + 31, CAST( NULL AS SIGNED ) ) / - 49 ) + + 70 ) WHEN + 69 THEN 75 END ) ) * 9 ELSE NULL END * SUM( ALL + ( NULLIF ( + 18, 92 ) ) ) - - COUNT( * ) * 38 - - NULLIF ( 94, + MIN( DISTINCT - 61 ) * + ( + NULLIF ( 91, + 81 ) ) ) ) * + 36 THEN - 26 WHEN - 94 * + 33 THEN NULL WHEN + 73 THEN NULL ELSE 75 * - COUNT( ALL 25 ) END * 14 ) * 95 + - ( ( SUM( + 91 ) ) + + NULLIF ( 78, 38 ) ) AS col2
----
-4159

skipif mysql # not compatible
query I rowsort label-3007
SELECT - COALESCE ( + - MAX ( DISTINCT - 42 ), CASE 18 WHEN + NULLIF ( + - 44, + 8 * + CASE + 57 WHEN 83 THEN - ( + 48 ) - 54 * + NULLIF ( + - ( ( - 99 ) ), - - ( + - CASE COALESCE ( 34, + COALESCE ( COALESCE ( + 16, + COUNT ( * ) / + 72 * + 64 * + COALESCE ( COUNT ( * ), - - 39 ) + - 7 ), - ( - ( + 30 ) ) + + + 2, - NULLIF ( + 31, CAST ( NULL AS INTEGER ) ) / - 49 ) + + 70 ) WHEN + 69 THEN 75 END ) ) * 9 ELSE NULL END * SUM ( ALL + ( NULLIF ( + 18, 92 ) ) ) - - COUNT ( * ) * 38 - - NULLIF ( 94, + MIN ( DISTINCT - 61 ) * + ( + NULLIF ( 91, + 81 ) ) ) ) * + 36 THEN - 26 WHEN - 94 * + 33 THEN NULL WHEN + 73 THEN NULL ELSE 75 * - COUNT ( ALL 25 ) END * 14 ) * 95 + - ( ( SUM ( + 91 ) ) + + NULLIF ( 78, 38 ) ) AS col2
----
-4159

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3008
SELECT 14, 4 * MAX( - - 77 ) * + 55 + + 55 DIV ( + 91 ) AS col2
----
14
16940

skipif mysql # not compatible
query II rowsort label-3008
SELECT 14, 4 * MAX ( - - 77 ) * + 55 + + 55 / ( + 91 ) AS col2
----
14
16940

query II rowsort
SELECT + 55 col1, + NULLIF ( + 84, - 88 + - - 68 - + - 68 ) - - 80 AS col0
----
55
164

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT DISTINCT + 30 + 34 + - ( 93 ) + 21 * - - NULLIF ( - MAX( DISTINCT - 41 ), + 15 ) AS col1
----
832

skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT + 30 + 34 + - ( 93 ) + 21 * - - NULLIF ( - MAX ( DISTINCT - 41 ), + 15 ) AS col1
----
832

query I rowsort
SELECT + 13 + 5 + + CASE + 75 WHEN 19 + - 48 + - 78 + - NULLIF ( + 70, 75 ) THEN NULL ELSE 47 END
----
65

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

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

query I rowsort
SELECT - 35 + - 79 AS col1
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3014
SELECT ALL - 56 - + NULLIF ( + 5, + - 82 * - 62 DIV 65 * - 76 * + 37 ) + - - 72 * ( 74 ) DIV COUNT( * ) AS col1
----
5267

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL - 56 - + NULLIF ( + 5, + - 82 * - 62 / 65 * - 76 * + 37 ) + - - 72 * ( 74 ) / COUNT ( * ) AS col1
----
5267

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3016
SELECT - 76 + 2 DIV ( - 46 )
----
-76

skipif mysql # not compatible
query I rowsort label-3016
SELECT - 76 + 2 / ( - 46 )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3017
SELECT ALL NULLIF ( + - 77, - 34 * + ( + - 95 ) - + CAST( + COUNT( * ) AS SIGNED ) ) * + 83 + 73
----
-6318

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL NULLIF ( + - 77, - 34 * + ( + - 95 ) - + CAST ( + COUNT ( * ) AS INTEGER ) ) * + 83 + 73
----
-6318

query I rowsort
SELECT - 85 * + + 23
----
-1955

onlyif mysql # DIV for integer division: 
query I rowsort label-3019
SELECT - 2 DIV - - ( + 52 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3019
SELECT - 2 / - - ( + 52 ) AS col2
----
0

query I rowsort
SELECT DISTINCT 14 + - 50
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL MIN( + 50 ) * - - 13 AS col1
----
650

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL MIN ( + 50 ) * - - 13 AS col1
----
650

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

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

query I rowsort
SELECT + 43 * 93 AS col0
----
3999

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3024
SELECT CASE - 38 WHEN + ( + + NULLIF ( + 87, - 75 ) ) * 17 + 8 THEN + 13 ELSE NULLIF ( - 84, + + CAST( NULL AS SIGNED ) + + 13 ) * + - CASE 42 WHEN + 92 * - ( + COUNT( 90 ) ) + + 70 + 48 * + 30 THEN 43 + - 57 * + + 90 END + + 13 / - - ( + + 10 ) + + CAST( - + 98 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3024
SELECT CASE - 38 WHEN + ( + + NULLIF ( + 87, - 75 ) ) * 17 + 8 THEN + 13 ELSE NULLIF ( - 84, + + CAST ( NULL AS INTEGER ) + + 13 ) * + - CASE 42 WHEN + 92 * - ( + COUNT ( 90 ) ) + + 70 + 48 * + 30 THEN 43 + - 57 * + + 90 END + + 13 / - - ( + + 10 ) + + CAST ( - + 98 AS INTEGER ) END
----
NULL

query I rowsort
SELECT + 48 * + - 59
----
-2832

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT CASE - + COUNT( * ) WHEN COUNT( * ) THEN - 94 * + 64 + + COUNT( DISTINCT 12 ) + + COUNT( * ) / - ( 71 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3026
SELECT CASE - + COUNT ( * ) WHEN COUNT ( * ) THEN - 94 * + 64 + + COUNT ( DISTINCT 12 ) + + COUNT ( * ) / - ( 71 ) END
----
NULL

query I rowsort
SELECT + 12 * - + 90
----
-1080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3028
SELECT ALL - + COALESCE ( - + CASE - 81 WHEN MAX( DISTINCT 66 ) + - 3 THEN + + COALESCE ( + + CAST( - + 10 AS SIGNED ), + 1 ) + - 45 WHEN + 75 THEN NULL END, - 99, 67 + ( 59 ) * + - 99 * SUM( - 7 ) DIV + ( 69 ) + + 72 ) * COALESCE ( 93, - - 80 * + 18 DIV - 74 + - 42 ) + - COUNT( * ) AS col2
----
9206

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL - + COALESCE ( - + CASE - 81 WHEN MAX ( DISTINCT 66 ) + - 3 THEN + + COALESCE ( + + CAST ( - + 10 AS INTEGER ), + 1 ) + - 45 WHEN + 75 THEN NULL END, - 99, 67 + ( 59 ) * + - 99 * SUM ( - 7 ) / + ( 69 ) + + 72 ) * COALESCE ( 93, - - 80 * + 18 / - 74 + - 42 ) + - COUNT ( * ) AS col2
----
9206

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

query I rowsort
SELECT + + ( - 17 ) * 22 AS col0
----
-374

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT DISTINCT - 70 * + COUNT( * ) + + + 53 + - - 40
----
23

skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT - 70 * + COUNT ( * ) + + + 53 + - - 40
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3032
SELECT DISTINCT 48 * + 84 AS col1, + ( + ( MAX( ALL - 12 ) ) ) AS col1
----
4032
-12

skipif mysql # not compatible
query II rowsort label-3032
SELECT DISTINCT 48 * + 84 AS col1, + ( + ( MAX ( ALL - 12 ) ) ) AS col1
----
4032
-12

query I rowsort
SELECT ALL + 42 * 39 AS col2
----
1638

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

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

query I rowsort
SELECT - 60 * 51 + + 27 AS col0
----
-3033

query I rowsort
SELECT ALL + + 46 * + 69 * - 5
----
-15870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3037
SELECT - COALESCE ( + ( 60 ), - + 68 + - CAST( - + ( - 64 ) AS SIGNED ) )
----
-60

skipif mysql # not compatible
query I rowsort label-3037
SELECT - COALESCE ( + ( 60 ), - + 68 + - CAST ( - + ( - 64 ) AS INTEGER ) )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT ALL + 59 * + COUNT( - 81 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL + 59 * + COUNT ( - 81 ) AS col2
----
59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT + SUM( + ( + - 89 ) ) + + 82 col1
----
-7

skipif mysql # not compatible
query I rowsort label-3040
SELECT + SUM ( + ( + - 89 ) ) + + 82 col1
----
-7

query I rowsort
SELECT - 91 - - 2 + + ( 90 ) AS col2
----
1

query II rowsort
SELECT - 58 AS col1, + 88 * + + 26
----
-58
2288

query I rowsort
SELECT - 61 + 99
----
38

query I rowsort
SELECT - 67 * - + 29
----
1943

query I rowsort
SELECT DISTINCT ( - 54 ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT - 55 + + + COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-3046
SELECT - 55 + + + COUNT ( * ) AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3047
SELECT - CASE AVG ( ALL + NULLIF ( + 95, + 35 ) ) WHEN + 57 * 65 / - 53 + - 19 THEN + - 8 END AS col0, CAST( 0 AS SIGNED ) * + COUNT( DISTINCT + 66 ) AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3047
SELECT - CASE AVG ( ALL + NULLIF ( + 95, + 35 ) ) WHEN + 57 * 65 / - 53 + - 19 THEN + - 8 END AS col0, CAST ( 0 AS INTEGER ) * + COUNT ( DISTINCT + 66 ) AS col1
----
NULL
0

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

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

query I rowsort
SELECT ALL - 97 + + 47 + + 86 * NULLIF ( - - 83, + 20 ) AS col0
----
7088

query I rowsort
SELECT - 31 + 66 + - 1 + + 61 + + 64 * 52 * 4
----
13407

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3051
SELECT - 7 + + MIN( ALL + 90 ) DIV + 65 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-3051
SELECT - 7 + + MIN ( ALL + 90 ) / + 65 AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3052
SELECT ALL + 60 / - CAST( NULL AS SIGNED ) * - + 12 + 13 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL + 60 / - CAST ( NULL AS INTEGER ) * - + 12 + 13 col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3054
SELECT MAX( ALL - 13 ) * + 1 DIV 32 + + + 53 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-3054
SELECT MAX ( ALL - 13 ) * + 1 / 32 + + + 53 AS col0
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-3055
SELECT ALL + 91 AS col2, + 33 + + - COUNT( * ) AS col0
----
91
32

skipif mysql # not compatible
query II rowsort label-3055
SELECT ALL + 91 AS col2, + 33 + + - COUNT ( * ) AS col0
----
91
32

query I rowsort
SELECT - 65 * 45
----
-2925

query I rowsort
SELECT - 68 + 52
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3058
SELECT DISTINCT + 79 DIV - 25 - + 68 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT + 79 / - 25 - + 68 AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3059
SELECT + 90, - CAST( NULL AS SIGNED ) / + COUNT( * ) AS col1
----
90
NULL

skipif mysql # not compatible
query II rowsort label-3059
SELECT + 90, - CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col1
----
90
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3060
SELECT - 47 + 1 - + CASE 17 WHEN - + 12 - - - 90 THEN 90 DIV 86 * 46 ELSE + 96 END col1, + 61 AS col2
----
-142
61

skipif mysql # not compatible
query II rowsort label-3060
SELECT - 47 + 1 - + CASE 17 WHEN - + 12 - - - 90 THEN 90 / 86 * 46 ELSE + 96 END col1, + 61 AS col2
----
-142
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3061
SELECT + - CAST( NULL AS SIGNED ) * - ( MIN( - - 22 ) ) + + - SUM( ALL + - 65 ) * + - AVG ( 82 ) - - - ( - 95 ) AS col2, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3061
SELECT + - CAST ( NULL AS INTEGER ) * - ( MIN ( - - 22 ) ) + + - SUM ( ALL + - 65 ) * + - AVG ( 82 ) - - - ( - 95 ) AS col2, - COUNT ( * )
----
NULL
-1

query I rowsort
SELECT + - COALESCE ( - 64, 77 ) * 13 AS col0
----
832

query I rowsort
SELECT + - 9 + + 78
----
69

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3065
SELECT + - CASE + 93 WHEN - COUNT( * ) THEN 27 + 91 - 36 + - - 61 + + 9 + - 48 / + + NULLIF ( - - 37, - - 52 ) WHEN - + CAST( - 56 AS SIGNED ) - - NULLIF ( - 92, ( + + 77 ) ) THEN + + 98 WHEN - MIN( - 96 ) * - - 81 * - + ( - COUNT( * ) ) * 29 + - COUNT( * ) + - - 97 + NULLIF ( + + ( - + 19 ), - - CAST( + CAST( + 97 AS SIGNED ) AS SIGNED ) * - + 44 + + 59 ) / - 76 + - 86 * - 99 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT + - CASE + 93 WHEN - COUNT ( * ) THEN 27 + 91 - 36 + - - 61 + + 9 + - 48 / + + NULLIF ( - - 37, - - 52 ) WHEN - + CAST ( - 56 AS INTEGER ) - - NULLIF ( - 92, ( + + 77 ) ) THEN + + 98 WHEN - MIN ( - 96 ) * - - 81 * - + ( - COUNT ( * ) ) * 29 + - COUNT ( * ) + - - 97 + NULLIF ( + + ( - + 19 ), - - CAST ( + CAST ( + 97 AS INTEGER ) AS INTEGER ) * - + 44 + + 59 ) / - 76 + - 86 * - 99 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3066
SELECT + + COUNT( * ) * + 84 + + ( ( + - CAST( + 33 AS SIGNED ) ) ) + + + COUNT( + 33 ) + + + 74 * + + 12 * + CAST( NULL AS SIGNED ) + + 25 - 58 / - 53 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT + + COUNT ( * ) * + 84 + + ( ( + - CAST ( + 33 AS INTEGER ) ) ) + + + COUNT ( + 33 ) + + + 74 * + + 12 * + CAST ( NULL AS INTEGER ) + + 25 - 58 / - 53 + COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3067
SELECT + - ( + - ( + COUNT ( * ) ) ) / 7
----
0

query I rowsort
SELECT DISTINCT + ( + 25 ) * - 67
----
-1675

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT DISTINCT NULLIF ( + + 89, + - CASE CASE + COUNT( - 99 ) WHEN 92 THEN NULL WHEN + - 30 + 3 THEN NULL ELSE COUNT( + 95 ) + - COUNT( * ) END WHEN - - 28 * - 63 - + CASE - + CASE + 94 WHEN + 31 * - - 48 + - 17 THEN NULL ELSE - 47 + 87 * - - 63 END WHEN 35 / - - 69 THEN NULL ELSE - 37 - + COUNT( * ) END + 23 * - + 40 THEN NULL WHEN - COUNT( * ) THEN - 47 - + 72 WHEN + COUNT( * ) / + 50 THEN - 35 + + COALESCE ( + + 24, MAX( - 59 ) + - 60 * + 28, + 85 * - ( 21 / - 81 ) ) - + 70 * + 38 * 36 WHEN 77 THEN - COUNT( * ) END )
----
89

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT NULLIF ( + + 89, + - CASE CASE + COUNT ( - 99 ) WHEN 92 THEN NULL WHEN + - 30 + 3 THEN NULL ELSE COUNT ( + 95 ) + - COUNT ( * ) END WHEN - - 28 * - 63 - + CASE - + CASE + 94 WHEN + 31 * - - 48 + - 17 THEN NULL ELSE - 47 + 87 * - - 63 END WHEN 35 / - - 69 THEN NULL ELSE - 37 - + COUNT ( * ) END + 23 * - + 40 THEN NULL WHEN - COUNT ( * ) THEN - 47 - + 72 WHEN + COUNT ( * ) / + 50 THEN - 35 + + COALESCE ( + + 24, MAX ( - 59 ) + - 60 * + 28, + 85 * - ( 21 / - 81 ) ) - + 70 * + 38 * 36 WHEN 77 THEN - COUNT ( * ) END )
----
89

query I rowsort
SELECT ALL 14 * + 86 + 84 + + 40 + 71 AS col2
----
1399

query I rowsort
SELECT DISTINCT 38 + + COALESCE ( - 15, - 6 ) col1
----
23

query I rowsort
SELECT 21 + + 19
----
40

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3074
SELECT ALL 11, ( + - 65 ) - COUNT( * ) * COUNT( DISTINCT 50 ) * COUNT( * ) AS col2
----
11
-66

skipif mysql # not compatible
query II rowsort label-3074
SELECT ALL 11, ( + - 65 ) - COUNT ( * ) * COUNT ( DISTINCT 50 ) * COUNT ( * ) AS col2
----
11
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT DISTINCT COUNT( ALL - - 0 ) + + 87 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT COUNT ( ALL - - 0 ) + + 87 AS col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3076
SELECT ALL - 93 * - ( - ( - 97 ) ) DIV + - COUNT( * )
----
-9021

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL - 93 * - ( - ( - 97 ) ) / + - COUNT ( * )
----
-9021

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

skipif mysql # not compatible
query II rowsort label-3077
SELECT DISTINCT 73 AS col0, - COUNT ( * )
----
73
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3078
SELECT ALL CASE - CAST( NULL AS SIGNED ) WHEN + 23 + + ( + CAST( NULL AS DECIMAL ) ) THEN - COUNT( * ) + + - 67 * - COUNT( * ) END + - CASE - 83 WHEN + - 37 + + - COUNT( ALL - + 75 ) THEN + - 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL CASE - CAST ( NULL AS INTEGER ) WHEN + 23 + + ( + CAST ( NULL AS REAL ) ) THEN - COUNT ( * ) + + - 67 * - COUNT ( * ) END + - CASE - 83 WHEN + - 37 + + - COUNT ( ALL - + 75 ) THEN + - 43 END
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3081
SELECT 46 * - + CAST( 95 AS SIGNED ) * - 96 * - 88
----
-36917760

skipif mysql # not compatible
query I rowsort label-3081
SELECT 46 * - + CAST ( 95 AS INTEGER ) * - 96 * - 88
----
-36917760

onlyif mysql # aggregate syntax: 
query II rowsort label-3082
SELECT 35 AS col1, 57 * 26 * - - 11 + - COUNT( * ) AS col2
----
35
16301

skipif mysql # not compatible
query II rowsort label-3082
SELECT 35 AS col1, 57 * 26 * - - 11 + - COUNT ( * ) AS col2
----
35
16301

query II rowsort
SELECT 5 AS col2, 18 * - - 66 AS col0
----
5
1188

query I rowsort
SELECT ALL - ( + 74 ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT 21 * 79 * COUNT( + - 59 ) + + + 63
----
1722

skipif mysql # not compatible
query I rowsort label-3085
SELECT 21 * 79 * COUNT ( + - 59 ) + + + 63
----
1722

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

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

query I rowsort
SELECT DISTINCT - + NULLIF ( + 9, + 71 )
----
-9

query II rowsort
SELECT ALL - 71, + 65 AS col1
----
-71
65

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3090
SELECT ALL + - 42 DIV 34
----
-1

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL + - 42 / 34
----
-1

query II rowsort
SELECT DISTINCT - 32 AS col2, 60
----
-32
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3092
SELECT DISTINCT + - NULLIF ( - 89, - CASE - - 27 WHEN 58 * - - 32 THEN NULL WHEN - 47 THEN 32 ELSE 65 * 98 DIV - 22 - - CAST( NULL AS SIGNED ) END ) DIV - + 94 + + COALESCE ( + + 15, + + 29 * + 62 * 50 * + - 56 ), + CAST( + ( - COUNT( * ) ) AS SIGNED ) AS col2
----
15
-1

skipif mysql # not compatible
query II rowsort label-3092
SELECT DISTINCT + - NULLIF ( - 89, - CASE - - 27 WHEN 58 * - - 32 THEN NULL WHEN - 47 THEN 32 ELSE 65 * 98 / - 22 - - CAST ( NULL AS INTEGER ) END ) / - + 94 + + COALESCE ( + + 15, + + 29 * + 62 * 50 * + - 56 ), + CAST ( + ( - COUNT ( * ) ) AS INTEGER ) AS col2
----
15
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3094
SELECT + - 81 * + MAX( + CAST( + 39 AS SIGNED ) ) / - 92 * - - 69 + + + CAST( NULL AS SIGNED ) - - + CASE + 98 WHEN 39 * + + 31 THEN - 10 - + 69 + - 85 * + 88 WHEN - 26 THEN + 0 - - 51 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3094
SELECT + - 81 * + MAX ( + CAST ( + 39 AS INTEGER ) ) / - 92 * - - 69 + + + CAST ( NULL AS INTEGER ) - - + CASE + 98 WHEN 39 * + + 31 THEN - 10 - + 69 + - 85 * + 88 WHEN - 26 THEN + 0 - - 51 END AS col1
----
NULL

query I rowsort
SELECT 99 * + 32
----
3168

query II rowsort
SELECT + 53, + 43 - + 52 col2
----
53
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3097
SELECT DISTINCT - + 37 * - ( - 14 ) + - 82 - + CASE - COUNT( * ) WHEN + 30 + 77 THEN NULL ELSE + 35 DIV + 97 + - 25 + + 95 END + - CASE + CAST( - 38 AS SIGNED ) WHEN + 7 * - 43 THEN NULL ELSE 85 * - - 13 + + 96 END
----
-1871

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT - + 37 * - ( - 14 ) + - 82 - + CASE - COUNT ( * ) WHEN + 30 + 77 THEN NULL ELSE + 35 / + 97 + - 25 + + 95 END + - CASE + CAST ( - 38 AS INTEGER ) WHEN + 7 * - 43 THEN NULL ELSE 85 * - - 13 + + 96 END
----
-1871

onlyif mysql # aggregate syntax: 
query II rowsort label-3098
SELECT + 3 col1, + 87 * 91 * - - 96 + COUNT( * ) AS col1
----
3
760033

skipif mysql # not compatible
query II rowsort label-3098
SELECT + 3 col1, + 87 * 91 * - - 96 + COUNT ( * ) AS col1
----
3
760033

query I rowsort
SELECT ALL - 24 * + ( + + 77 ) AS col1
----
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT DISTINCT - SUM( ALL + 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-3100
SELECT DISTINCT - SUM ( ALL + 92 )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-3101
SELECT ALL - + 62 + + - 17 DIV + - 49 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL - + 62 + + - 17 / + - 49 AS col0
----
-62

query II rowsort
SELECT + 3 AS col2, 4
----
3
4

query I rowsort
SELECT ALL + 33 + - 13 * + 81 * 45 * - 31 AS col0
----
1468968

query I rowsort
SELECT DISTINCT - 75 + + 1 + + 67
----
-7

query II rowsort
SELECT + + 14, 91 * - 11 col1
----
14
-1001

query I rowsort
SELECT + 61 * + - 71
----
-4331

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT + COUNT( * ) * - 88 + + - 70
----
-158

skipif mysql # not compatible
query I rowsort label-3107
SELECT + COUNT ( * ) * - 88 + + - 70
----
-158

onlyif mysql # aggregate syntax: 
query II rowsort label-3108
SELECT ALL COUNT( * ) + + + 78 AS col1, - 25 + + 1 * - 52 * - COUNT( * )
----
79
27

skipif mysql # not compatible
query II rowsort label-3108
SELECT ALL COUNT ( * ) + + + 78 AS col1, - 25 + + 1 * - 52 * - COUNT ( * )
----
79
27

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3110
SELECT ALL + 24 DIV 63 * - 37
----
0

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL + 24 / 63 * - 37
----
0

query I rowsort
SELECT 11 - 15 + 15 AS col0
----
11

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

skipif mysql # not compatible
query I rowsort label-3112
SELECT NULLIF ( ( + 52 ), + 28 * 44 ) / 51 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT COALESCE ( - + 0, NULLIF ( NULLIF ( 66, + 82 * + 31 / CASE - COUNT( * ) WHEN 12 THEN - - 27 WHEN COUNT( * ) THEN - 24 ELSE NULL END - + NULLIF ( - - COALESCE ( + 55, + 91 ), - 29 ) ), 90 - - COUNT( * ) - + 70 * + + 4 * + COUNT( * ) * - - 56 ), + 86 + - MAX( + - 27 ) ) + NULLIF ( + 41, - 43 * + - ( + + 38 ) * 43 + - + MAX( 25 ) + + 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-3113
SELECT COALESCE ( - + 0, NULLIF ( NULLIF ( 66, + 82 * + 31 / CASE - COUNT ( * ) WHEN 12 THEN - - 27 WHEN COUNT ( * ) THEN - 24 ELSE NULL END - + NULLIF ( - - COALESCE ( + 55, + 91 ), - 29 ) ), 90 - - COUNT ( * ) - + 70 * + + 4 * + COUNT ( * ) * - - 56 ), + 86 + - MAX ( + - 27 ) ) + NULLIF ( + 41, - 43 * + - ( + + 38 ) * 43 + - + MAX ( 25 ) + + 41 ) AS col1
----
41

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3115
SELECT ALL 36 DIV - 80 * 94
----
0

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL 36 / - 80 * 94
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3117
SELECT ALL ( - MIN( ALL - 69 ) ) DIV - 1
----
-69

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL ( - MIN ( ALL - 69 ) ) / - 1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3118
SELECT CAST( NULL AS DECIMAL ) * - - ( + - 47 ) / 98 + + 7 + - - MAX( - 10 ) * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-3118
SELECT CAST ( NULL AS REAL ) * - - ( + - 47 ) / 98 + + 7 + - - MAX ( - 10 ) * + 56
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3119
SELECT ALL - 62 * - + 34 AS col2, 83 * + - 58 + 22 * 26 DIV + 14
----
2108
-4774

skipif mysql # not compatible
query II rowsort label-3119
SELECT ALL - 62 * - + 34 AS col2, 83 * + - 58 + 22 * 26 / + 14
----
2108
-4774

onlyif mysql # DIV for integer division: 
query I rowsort label-3120
SELECT ALL + 64 * 33 DIV - 76
----
-27

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL + 64 * 33 / - 76
----
-27

query I rowsort
SELECT 75 * 70 * 10 * - + 36 AS col1
----
-1890000

query I rowsort
SELECT + + ( - - 33 ) col1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3123
SELECT - NULLIF ( + MAX( DISTINCT 14 ), 89 + - ( + 15 ) * + 73 ) * - 19 AS col0, + 67
----
266
67

skipif mysql # not compatible
query II rowsort label-3123
SELECT - NULLIF ( + MAX ( DISTINCT 14 ), 89 + - ( + 15 ) * + 73 ) * - 19 AS col0, + 67
----
266
67

query II rowsort
SELECT - 13 * 14 AS col1, + 6
----
-182
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3125
SELECT ALL + 63 * + ( - CAST( - - 70 AS SIGNED ) ) + 16 + - - 76 + - COALESCE ( - 20, + + SUM( ALL + ( + - ( 96 ) ) ), - - 77 ) AS col1
----
-4298

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL + 63 * + ( - CAST ( - - 70 AS INTEGER ) ) + 16 + - - 76 + - COALESCE ( - 20, + + SUM ( ALL + ( + - ( 96 ) ) ), - - 77 ) AS col1
----
-4298

query I rowsort
SELECT DISTINCT - 86 * - 12
----
1032

onlyif mysql # DIV for integer division: 
query I rowsort label-3127
SELECT ALL + - 39 DIV 15
----
-2

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL + - 39 / 15
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3128
SELECT + 79 * + CAST( + 53 AS SIGNED )
----
4187

skipif mysql # not compatible
query I rowsort label-3128
SELECT + 79 * + CAST ( + 53 AS INTEGER )
----
4187

query I rowsort
SELECT + - COALESCE ( ( + 15 ), + + 70 ) AS col2
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3130
SELECT ALL - 69 * - + 84 DIV + + 42 + 33
----
171

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL - 69 * - + 84 / + + 42 + 33
----
171

query I rowsort
SELECT ALL + 87 * - 34 AS col0
----
-2958

query I rowsort
SELECT - 46 + + + 93
----
47

query I rowsort
SELECT - 15 - + 42 + 56 * + + 79 col2
----
4367

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3134
SELECT SUM( - + 85 ) AS col2, + 21 + ( 7 ) + + + COUNT( * ) * CAST( NULL AS SIGNED ) + + 58 * + + 29 col1
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-3134
SELECT SUM ( - + 85 ) AS col2, + 21 + ( 7 ) + + + COUNT ( * ) * CAST ( NULL AS INTEGER ) + + 58 * + + 29 col1
----
-85
NULL

query II rowsort
SELECT ALL + ( - 42 ), ( + 99 ) * - 83 AS col1
----
-42
-8217

onlyif mysql # aggregate syntax: 
query II rowsort label-3136
SELECT DISTINCT + + CASE - 23 WHEN + 94 / 93 THEN - - 98 * - 66 ELSE NULL END + COUNT( * ), + 64 AS col1
----
NULL
64

skipif mysql # not compatible
query II rowsort label-3136
SELECT DISTINCT + + CASE - 23 WHEN + 94 / 93 THEN - - 98 * - 66 ELSE NULL END + COUNT ( * ), + 64 AS col1
----
NULL
64

query I rowsort
SELECT - 68 + + + 70
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT ALL + MAX( ALL + 24 ) + - 24 + + 74 col1
----
74

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL + MAX ( ALL + 24 ) + - 24 + + 74 col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT - 52 * + - COUNT( * ) + - NULLIF ( - CASE 77 WHEN - 17 THEN - 69 ELSE NULL END, + + MAX( - 38 ) ) * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3140
SELECT - 52 * + - COUNT ( * ) + - NULLIF ( - CASE 77 WHEN - 17 THEN - 69 ELSE NULL END, + + MAX ( - 38 ) ) * 20
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3141
SELECT ALL + 92 * + CASE + 23 WHEN + 55 THEN CAST( NULL AS SIGNED ) * - 84 + + + 48 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL + 92 * + CASE + 23 WHEN + 55 THEN CAST ( NULL AS INTEGER ) * - 84 + + + 48 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3142
SELECT ALL + 38 * + CAST( + COUNT( * ) AS SIGNED ) AS col0, 58 AS col2, MAX( 64 ) AS col2
----
38
58
64

skipif mysql # not compatible
query III rowsort label-3142
SELECT ALL + 38 * + CAST ( + COUNT ( * ) AS INTEGER ) AS col0, 58 AS col2, MAX ( 64 ) AS col2
----
38
58
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT DISTINCT - AVG ( 99 ) + - + 14 + + 89 + + CASE - + 32 WHEN - 93 THEN + + 15 WHEN - 79 * 80 THEN - + CASE - - 2 WHEN + + 85 THEN + + 6 WHEN - 7 * + 40 + + 19 THEN NULL ELSE 81 + 23 END WHEN + COALESCE ( 29, + - 31 + - MIN( DISTINCT - + 24 ), 56 / 8 ) * - 13 THEN NULL ELSE NULL END / + 19 * NULLIF ( + - 14, AVG ( ( + 71 ) ) ) * + 50 + + 75 * 95 * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3143
SELECT DISTINCT - AVG ( 99 ) + - + 14 + + 89 + + CASE - + 32 WHEN - 93 THEN + + 15 WHEN - 79 * 80 THEN - + CASE - - 2 WHEN + + 85 THEN + + 6 WHEN - 7 * + 40 + + 19 THEN NULL ELSE 81 + 23 END WHEN + COALESCE ( 29, + - 31 + - MIN ( DISTINCT - + 24 ), 56 / 8 ) * - 13 THEN NULL ELSE NULL END / + 19 * NULLIF ( + - 14, AVG ( ( + 71 ) ) ) * + 50 + + 75 * 95 * + 7
----
NULL

query I rowsort
SELECT - 8 + + - 51 AS col0
----
-59

query I rowsort
SELECT ALL - 65 + + - NULLIF ( 93, - 52 ) * - 89
----
8212

onlyif mysql # aggregate syntax: 
query II rowsort label-3146
SELECT - 96 * + COUNT( * ) * 85, + 29 AS col1
----
-8160
29

skipif mysql # not compatible
query II rowsort label-3146
SELECT - 96 * + COUNT ( * ) * 85, + 29 AS col1
----
-8160
29

query I rowsort
SELECT ALL CASE - 97 WHEN - 86 THEN - 59 + + 58 WHEN - - NULLIF ( + + 75, + + 40 * - 80 * - + 55 ) * 16 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT 22 AS col1, + 34
----
22
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3149
SELECT - 66 * - 31 * + COUNT( * ) DIV + 1
----
2046

skipif mysql # not compatible
query I rowsort label-3149
SELECT - 66 * - 31 * + COUNT ( * ) / + 1
----
2046

query I rowsort
SELECT + 30 + - 82
----
-52

query I rowsort
SELECT DISTINCT 95 - + 33 col0
----
62

onlyif mysql # DIV for integer division: 
query II rowsort label-3152
SELECT 60 AS col0, - 6 DIV - 20 + - 35 * - 63 * - 87 AS col2
----
60
-191835

skipif mysql # not compatible
query II rowsort label-3152
SELECT 60 AS col0, - 6 / - 20 + - 35 * - 63 * - 87 AS col2
----
60
-191835

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT - + 4 - - COUNT( * ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3153
SELECT - + 4 - - COUNT ( * ) AS col0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-3154
SELECT - + 57 col1, + ( 25 ) DIV + 90 + + 63 * - + 76
----
-57
-4788

skipif mysql # not compatible
query II rowsort label-3154
SELECT - + 57 col1, + ( 25 ) / + 90 + + 63 * - + 76
----
-57
-4788

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3156
SELECT + CAST( NULL AS SIGNED ) * - 84 / + 16 AS col2, 25
----
NULL
25

skipif mysql # not compatible
query II rowsort label-3156
SELECT + CAST ( NULL AS INTEGER ) * - 84 / + 16 AS col2, 25
----
NULL
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3157
SELECT ALL 58 DIV - 33 - 34 * - - 92 AS col0
----
-3129

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL 58 / - 33 - 34 * - - 92 AS col0
----
-3129

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3159
SELECT + - 15 DIV - 23 - 58 * - 71 AS col2
----
4118

skipif mysql # not compatible
query I rowsort label-3159
SELECT + - 15 / - 23 - 58 * - 71 AS col2
----
4118

query I rowsort
SELECT ALL 20 * 57 + 2 * 22
----
1184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3161
SELECT ALL + - CAST( ( + + 40 ) AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL + - CAST ( ( + + 40 ) AS INTEGER )
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-3162
SELECT - - 15 DIV 86 - - 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-3162
SELECT - - 15 / 86 - - 67 AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3163
SELECT ALL + - CAST( - 13 AS SIGNED ) * + COALESCE ( + 11, + SUM( DISTINCT - 53 ) + 0, 97 ) + - - 77
----
220

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL + - CAST ( - 13 AS INTEGER ) * + COALESCE ( + 11, + SUM ( DISTINCT - 53 ) + 0, 97 ) + - - 77
----
220

query I rowsort
SELECT CASE - 59 WHEN + 45 THEN + 76 ELSE - 37 END AS col0
----
-37

query I rowsort
SELECT ALL + 81 * 7 * 82 AS col2
----
46494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3166
SELECT ALL COUNT( ALL - + COALESCE ( + ( - ( - ( - - 72 ) ) ), + CAST( 97 AS SIGNED ) * + ( 26 ) * - 54 + - + 3, + 34 ) ) * + - 97 * 4 - + - 8
----
-380

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL COUNT ( ALL - + COALESCE ( + ( - ( - ( - - 72 ) ) ), + CAST ( 97 AS INTEGER ) * + ( 26 ) * - 54 + - + 3, + 34 ) ) * + - 97 * 4 - + - 8
----
-380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3167
SELECT COALESCE ( + 15, + - ( CAST( + 32 AS SIGNED ) ) ) col2
----
15

skipif mysql # not compatible
query I rowsort label-3167
SELECT COALESCE ( + 15, + - ( CAST ( + 32 AS INTEGER ) ) ) col2
----
15

query II rowsort
SELECT DISTINCT + ( - 72 ) * - 33 - 82 AS col0, 95 + - 61 AS col1
----
2294
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT - 2 DIV - 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3169
SELECT - 2 / - 7 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3170
SELECT - MIN( ALL - 11 ) AS col2, + CAST( NULL AS SIGNED )
----
11
NULL

skipif mysql # not compatible
query II rowsort label-3170
SELECT - MIN ( ALL - 11 ) AS col2, + CAST ( NULL AS INTEGER )
----
11
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3171
SELECT - 49 * + 32 * + + MIN( DISTINCT 27 ) * - CASE + - COUNT( * ) WHEN + + 94 THEN NULL ELSE + ( - 61 ) - + 25 END + ( + CAST( NULL AS DECIMAL ) ) - + - ( COUNT( ALL NULLIF ( + 66, - - 40 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT - 49 * + 32 * + + MIN ( DISTINCT 27 ) * - CASE + - COUNT ( * ) WHEN + + 94 THEN NULL ELSE + ( - 61 ) - + 25 END + ( + CAST ( NULL AS REAL ) ) - + - ( COUNT ( ALL NULLIF ( + 66, - - 40 ) ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3172
SELECT - 66 - - 23 DIV 40
----
-66

skipif mysql # not compatible
query I rowsort label-3172
SELECT - 66 - - 23 / 40
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-3173
SELECT - 72 DIV + 17
----
-4

skipif mysql # not compatible
query I rowsort label-3173
SELECT - 72 / + 17
----
-4

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

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

query I rowsort
SELECT - 42 - + + 93 + + 21 AS col2
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3176
SELECT ALL CAST( CASE - 70 WHEN + 51 / + - 89 * - - 78 THEN NULL WHEN + + 86 / + ( - 74 ) * - 10 * + 60 - - 11 THEN 57 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL CAST ( CASE - 70 WHEN + 51 / + - 89 * - - 78 THEN NULL WHEN + + 86 / + ( - 74 ) * - 10 * + 60 - - 11 THEN 57 END AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3177
SELECT - 36 DIV - 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3177
SELECT - 36 / - 59 AS col0
----
0

query I rowsort
SELECT ALL + 71 * 28 AS col0
----
1988

query I rowsort
SELECT - 83 + + 45 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-3180
SELECT + 88 - - COUNT( * ), + 11 * 72 * - 71 col0
----
89
-56232

skipif mysql # not compatible
query II rowsort label-3180
SELECT + 88 - - COUNT ( * ), + 11 * 72 * - 71 col0
----
89
-56232

query I rowsort
SELECT + 59 - - + 30 AS col1
----
89

query I rowsort
SELECT + - 36 * + 27 AS col2
----
-972

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

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

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

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

query I rowsort
SELECT ALL 64 * - 16
----
-1024

query I rowsort
SELECT DISTINCT - - 30 + + + 94
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-3187
SELECT ALL + - 68 + - - 45 + - 98 DIV 10 * - 82 col1
----
715

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL + - 68 + - - 45 + - 98 / 10 * - 82 col1
----
715

onlyif mysql # aggregate syntax: 
query II rowsort label-3188
SELECT DISTINCT - 48 + - 13 col1, - COUNT( * ) - + 98 * + - COUNT( * ) + + 42
----
-61
139

skipif mysql # not compatible
query II rowsort label-3188
SELECT DISTINCT - 48 + - 13 col1, - COUNT ( * ) - + 98 * + - COUNT ( * ) + + 42
----
-61
139

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + - 42 + 59 * + + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-3189
SELECT + - 42 + 59 * + + COUNT ( * )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3190
SELECT ALL - 37 + - - COUNT( * ) DIV - 12 + + 37, MIN( DISTINCT 0 ) AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-3190
SELECT ALL - 37 + - - COUNT ( * ) / - 12 + + 37, MIN ( DISTINCT 0 ) AS col2
----
0
0

query II rowsort
SELECT ALL 31 * + 41 * + - ( - 49 ), + 29 AS col2
----
62279
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT NULLIF ( - + 70, - 80 + + ( + - 89 ) / - 75 * 12 + + 33 / + 94 * COUNT( * ) + + COUNT( ALL - 51 ) + - COUNT( * ) * + - 39 )
----
-70

skipif mysql # not compatible
query I rowsort label-3192
SELECT NULLIF ( - + 70, - 80 + + ( + - 89 ) / - 75 * 12 + + 33 / + 94 * COUNT ( * ) + + COUNT ( ALL - 51 ) + - COUNT ( * ) * + - 39 )
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3193
SELECT + 59 * - 87 + 6 + ( - + 51 ) DIV 26 + - COALESCE ( 21, + + MAX( DISTINCT - + 73 ) ) + - COUNT( * ) + - 33 + COUNT( * )
----
-5182

skipif mysql # not compatible
query I rowsort label-3193
SELECT + 59 * - 87 + 6 + ( - + 51 ) / 26 + - COALESCE ( 21, + + MAX ( DISTINCT - + 73 ) ) + - COUNT ( * ) + - 33 + COUNT ( * )
----
-5182

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT DISTINCT + NULLIF ( - 92, + 41 * - + 21 + - - 61 ) + - + COUNT( * ) + - 14 + 54 col2
----
-53

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT + NULLIF ( - 92, + 41 * - + 21 + - - 61 ) + - + COUNT ( * ) + - 14 + 54 col2
----
-53

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT ALL - COUNT( DISTINCT + 2 ) + - + 56 * + 94
----
-5265

skipif mysql # not compatible
query I rowsort label-3196
SELECT ALL - COUNT ( DISTINCT + 2 ) + - + 56 * + 94
----
-5265

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT + MIN( + - ( + - ( + 11 ) ) ) col0
----
11

skipif mysql # not compatible
query I rowsort label-3197
SELECT + MIN ( + - ( + - ( + 11 ) ) ) col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3198
SELECT CAST( NULL AS SIGNED ) * - MIN( ALL 88 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3198
SELECT CAST ( NULL AS INTEGER ) * - MIN ( ALL 88 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3199
SELECT 76 + 12 * + - NULLIF ( + COUNT( * ), 92 * + NULLIF ( - 63, + - 80 - + 99 + 42 * - + ( + NULLIF ( - 5, - - 52 * + CAST( - - 44 AS SIGNED ) ) ) * + - CAST( NULL AS SIGNED ) * + 12 ) )
----
64

skipif mysql # not compatible
query I rowsort label-3199
SELECT 76 + 12 * + - NULLIF ( + COUNT ( * ), 92 * + NULLIF ( - 63, + - 80 - + 99 + 42 * - + ( + NULLIF ( - 5, - - 52 * + CAST ( - - 44 AS INTEGER ) ) ) * + - CAST ( NULL AS INTEGER ) * + 12 ) )
----
64

query I rowsort
SELECT ALL 33 - 8 * - 24 AS col0
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3201
SELECT ALL - NULLIF ( - 23, CAST( NULL AS SIGNED ) ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL - NULLIF ( - 23, CAST ( NULL AS INTEGER ) ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT ALL + 65 - - NULLIF ( - 94, - SUM( ALL + 61 ) * + 1 + + - 53 ) col2
----
-29

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL + 65 - - NULLIF ( - 94, - SUM ( ALL + 61 ) * + 1 + + - 53 ) col2
----
-29

query II rowsort
SELECT DISTINCT - 62, - 23 col1
----
-62
-23

query I rowsort
SELECT 40 * - - 86 AS col2
----
3440

query I rowsort
SELECT 11 + - 27 AS col0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3206
SELECT 46 + - + CASE 1 WHEN - 80 + - + 35 + - ( + + 52 ) * - - COALESCE ( - 15, - - 53 - COALESCE ( + 9, - 65, + - COUNT( * ) + + - 49 - - - AVG ( + 10 ) + + CAST( NULL AS SIGNED ) * 96 * - + 15 ) ) + 6 + + - 47 THEN 30 + + 2 * + + 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3206
SELECT 46 + - + CASE 1 WHEN - 80 + - + 35 + - ( + + 52 ) * - - COALESCE ( - 15, - - 53 - COALESCE ( + 9, - 65, + - COUNT ( * ) + + - 49 - - - AVG ( + 10 ) + + CAST ( NULL AS INTEGER ) * 96 * - + 15 ) ) + 6 + + - 47 THEN 30 + + 2 * + + 90 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3207
SELECT ALL 84 * + + CAST( - 77 AS SIGNED ) * + + 21 + 0 col2
----
-135828

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL 84 * + + CAST ( - 77 AS INTEGER ) * + + 21 + 0 col2
----
-135828

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

skipif mysql # not compatible
query I rowsort label-3208
SELECT 56 + + + COUNT ( * ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT ALL - SUM( - 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL - SUM ( - 12 ) AS col1
----
12

query I rowsort
SELECT 30 * - 93
----
-2790

query I rowsort
SELECT 65 * 52 AS col2
----
3380

query I rowsort
SELECT ALL - 3 * 74
----
-222

onlyif mysql # DIV for integer division: 
query II rowsort label-3213
SELECT DISTINCT 29 AS col2, + 55 DIV 24 - + + 59 + + + 70 col1
----
29
13

skipif mysql # not compatible
query II rowsort label-3213
SELECT DISTINCT 29 AS col2, + 55 / 24 - + + 59 + + + 70 col1
----
29
13

query I rowsort
SELECT 71 + - 34
----
37

query I rowsort
SELECT ALL - 13 + - 40
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3216
SELECT COUNT( * ) * + - CAST( NULL AS SIGNED ) / - CASE + 77 WHEN MAX( - - 15 ) * - 43 THEN NULL ELSE SUM( 75 ) * - 19 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3216
SELECT COUNT ( * ) * + - CAST ( NULL AS INTEGER ) / - CASE + 77 WHEN MAX ( - - 15 ) * - 43 THEN NULL ELSE SUM ( 75 ) * - 19 END AS col1
----
NULL

query I rowsort
SELECT 80 + + 19
----
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT MIN( DISTINCT 11 ) + - MIN( ALL + - 25 ) col0
----
36

skipif mysql # not compatible
query I rowsort label-3219
SELECT MIN ( DISTINCT 11 ) + - MIN ( ALL + - 25 ) col0
----
36

query I rowsort
SELECT ALL + 40 + 54 AS col1
----
94

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

skipif mysql # not compatible
query I rowsort label-3221
SELECT - - COUNT ( ALL + 96 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3222
SELECT + 54, CAST( NULL AS SIGNED ) * 87 AS col1
----
54
NULL

skipif mysql # not compatible
query II rowsort label-3222
SELECT + 54, CAST ( NULL AS INTEGER ) * 87 AS col1
----
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT DISTINCT SUM( DISTINCT - + 21 ) + 48
----
27

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT SUM ( DISTINCT - + 21 ) + 48
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-3224
SELECT ALL - - COUNT( * ) + + - 31 + + NULLIF ( - - 8, 95 ), 28 AS col2
----
-22
28

skipif mysql # not compatible
query II rowsort label-3224
SELECT ALL - - COUNT ( * ) + + - 31 + + NULLIF ( - - 8, 95 ), 28 AS col2
----
-22
28

onlyif mysql # aggregate syntax: 
query II rowsort label-3225
SELECT DISTINCT + ( - SUM( + 69 ) ) AS col1, 68 AS col2
----
-69
68

skipif mysql # not compatible
query II rowsort label-3225
SELECT DISTINCT + ( - SUM ( + 69 ) ) AS col1, 68 AS col2
----
-69
68

query I rowsort
SELECT ALL 76 + + - 18
----
58

query I rowsort
SELECT ALL - - 53 + - 80
----
-27

query I rowsort
SELECT 20 + - 5 + 87 * - 83
----
-7206

query I rowsort
SELECT DISTINCT - 58 + + 10
----
-48

query I rowsort
SELECT DISTINCT - 97 - 49
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT 60 - + - COUNT( * ) - - + COUNT( ALL + + 21 ) * + 55 + - 63 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-3231
SELECT 60 - + - COUNT ( * ) - - + COUNT ( ALL + + 21 ) * + 55 + - 63 AS col0
----
53

query II rowsort
SELECT 46, 30 * + 61 AS col1
----
46
1830

query I rowsort
SELECT ALL - - ( - - 15 )
----
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT COUNT( ALL - + ( - + COALESCE ( 75, - 13 ) ) ) * 58 + + 51 - - COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-3235
SELECT COUNT ( ALL - + ( - + COALESCE ( 75, - 13 ) ) ) * 58 + + 51 - - COUNT ( * )
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3236
SELECT ALL NULLIF ( - 97, - + NULLIF ( AVG ( ALL + NULLIF ( + + CAST( NULL AS SIGNED ), 57 ) ), + 23 * 17 + MAX( - 6 ) ) DIV + - NULLIF ( - + 33, - ( - + 81 ) ) ) DIV + + 28
----
-3

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL NULLIF ( - 97, - + NULLIF ( AVG ( ALL + NULLIF ( + + CAST ( NULL AS INTEGER ), 57 ) ), + 23 * 17 + MAX ( - 6 ) ) / + - NULLIF ( - + 33, - ( - + 81 ) ) ) / + + 28
----
-3

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

skipif mysql # not compatible
query I rowsort label-3237
SELECT COUNT ( * ) / + 88 * + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT 72 * + 47
----
3384

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3239
SELECT ALL CASE - + 1 WHEN 96 * COUNT( * ) THEN + 4 ELSE NULLIF ( AVG ( ALL CAST( NULL AS DECIMAL ) ), + 6 ) + + - ( - 86 ) END / + - 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL CASE - + 1 WHEN 96 * COUNT ( * ) THEN + 4 ELSE NULLIF ( AVG ( ALL CAST ( NULL AS REAL ) ), + 6 ) + + - ( - 86 ) END / + - 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT ALL 7 * + + COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL 7 * + + COUNT ( * ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT + SUM( + + ( 58 ) ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-3241
SELECT + SUM ( + + ( 58 ) ) AS col2
----
58

query II rowsort
SELECT ALL 71 + - 36 + + - 8 + - - 49 AS col1, + COALESCE ( + - 71, + 92 * - 6, 78 )
----
76
-71

query I rowsort
SELECT 90 * + 95 * - 70
----
-598500

query II rowsort
SELECT DISTINCT 39, 15 AS col2
----
39
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT ALL COUNT( * ) + 10
----
11

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL COUNT ( * ) + 10
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3246
SELECT CAST( + 80 AS SIGNED ) - - 52 + - 5
----
127

skipif mysql # not compatible
query I rowsort label-3246
SELECT CAST ( + 80 AS INTEGER ) - - 52 + - 5
----
127

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

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

query I rowsort
SELECT ALL - ( + + 20 ) + - 94
----
-114

query II rowsort
SELECT DISTINCT + 93 AS col1, 42
----
93
42

query II rowsort
SELECT DISTINCT 44, - 57 + + - 41 AS col1
----
44
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3251
SELECT ALL - + CASE CAST( NULL AS SIGNED ) WHEN + CAST( + - 13 AS SIGNED ) THEN + 86 WHEN + 2 THEN + 33 END + ( + ( - 34 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL - + CASE CAST ( NULL AS INTEGER ) WHEN + CAST ( + - 13 AS INTEGER ) THEN + 86 WHEN + 2 THEN + 33 END + ( + ( - 34 ) ) AS col2
----
NULL

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

query I rowsort
SELECT + - 15 + 24 AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3254
SELECT - - 9 - + 65 * - - 82 * - CASE + + 10 WHEN + + CAST( + + 18 AS SIGNED ) * CAST( + - 68 AS SIGNED ) + - - ( - ( - CAST( NULL AS SIGNED ) ) ) THEN NULL WHEN + 56 * + 22 THEN + 54 WHEN + - 18 THEN + - NULLIF ( 25, + 67 ) ELSE - 60 * - - ( + 19 ) * + 80 END
----
-486095991

skipif mysql # not compatible
query I rowsort label-3254
SELECT - - 9 - + 65 * - - 82 * - CASE + + 10 WHEN + + CAST ( + + 18 AS INTEGER ) * CAST ( + - 68 AS INTEGER ) + - - ( - ( - CAST ( NULL AS INTEGER ) ) ) THEN NULL WHEN + 56 * + 22 THEN + 54 WHEN + - 18 THEN + - NULLIF ( 25, + 67 ) ELSE - 60 * - - ( + 19 ) * + 80 END
----
-486095991

query I rowsort
SELECT + + NULLIF ( - 33, + 31 ) + + 97
----
64

query I rowsort
SELECT - + 34 - + 29 + 3 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT DISTINCT + 71 * NULLIF ( - - ( - 46 ), 96 ) * + MIN( DISTINCT 47 ) AS col2
----
-153502

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT + 71 * NULLIF ( - - ( - 46 ), 96 ) * + MIN ( DISTINCT 47 ) AS col2
----
-153502

query I rowsort
SELECT - 10 * NULLIF ( + 80, 28 ) AS col1
----
-800

query I rowsort
SELECT - 23 + 70
----
47

query II rowsort
SELECT DISTINCT - 85 AS col2, - 34 + + ( + + 73 ) AS col2
----
-85
39

query I rowsort
SELECT - 37 + 50
----
13

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

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

query I rowsort
SELECT - - 8 * NULLIF ( 77, + 31 + + - 76 ) AS col1
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT + + ( + SUM( - + 17 ) ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-3264
SELECT + + ( + SUM ( - + 17 ) ) AS col1
----
-17

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

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

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

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

query I rowsort
SELECT - 49 * 37 AS col1
----
-1813

query I rowsort
SELECT + 55 * - 41 * 7 * 56 col0
----
-883960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3269
SELECT DISTINCT + 42 * - - SUM( + 36 ) + + CASE 48 WHEN + 25 THEN + 67 * CAST( NULL AS SIGNED ) * + 10 * + + 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT + 42 * - - SUM ( + 36 ) + + CASE 48 WHEN + 25 THEN + 67 * CAST ( NULL AS INTEGER ) * + 10 * + + 63 END
----
NULL

query I rowsort
SELECT DISTINCT + 21 * + 34
----
714

query I rowsort
SELECT COALESCE ( + + 43, - 76 + - 53 * - 12, + 22 ) col2
----
43

query I rowsort
SELECT ALL 31 * - 27
----
-837

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT ALL - ( + ( + 24 ) ) * 51 * + 94 * + 60 + 1 * - + 72 + - ( - 2 ) - + COUNT( * ) AS col1
----
-6903431

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL - ( + ( + 24 ) ) * 51 * + 94 * + 60 + 1 * - + 72 + - ( - 2 ) - + COUNT ( * ) AS col1
----
-6903431

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT + SUM( ALL - 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-3274
SELECT + SUM ( ALL - 46 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT ALL 90 * + COUNT( DISTINCT ( + - 43 ) ) + + + 82 + + 93
----
265

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL 90 * + COUNT ( DISTINCT ( + - 43 ) ) + + + 82 + + 93
----
265

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT - 83 + + MIN( DISTINCT COALESCE ( - 66, - 36, + - 10 + - - 87 * + 62 + - 17 * + 13 * 89 ) )
----
-149

skipif mysql # not compatible
query I rowsort label-3276
SELECT - 83 + + MIN ( DISTINCT COALESCE ( - 66, - 36, + - 10 + - - 87 * + 62 + - 17 * + 13 * 89 ) )
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT + COUNT( * ) * 15 + + 50
----
65

skipif mysql # not compatible
query I rowsort label-3277
SELECT + COUNT ( * ) * 15 + + 50
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3278
SELECT + 65 + + - 90 AS col0, CAST( - - 37 AS SIGNED )
----
-25
37

skipif mysql # not compatible
query II rowsort label-3278
SELECT + 65 + + - 90 AS col0, CAST ( - - 37 AS INTEGER )
----
-25
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3279
SELECT ALL COUNT( * ) * - + 51 + + 1 / + CASE - AVG ( - + 20 ) WHEN COALESCE ( - 84, + 72 * 92 - + + 64 - 61 * - 57 ) THEN + + COUNT( * ) + - 58 ELSE - + 70 * - 91 - 87 END * - - 14 * - + CAST( NULL AS SIGNED ) * - ( + - COUNT( * ) ) * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL COUNT ( * ) * - + 51 + + 1 / + CASE - AVG ( - + 20 ) WHEN COALESCE ( - 84, + 72 * 92 - + + 64 - 61 * - 57 ) THEN + + COUNT ( * ) + - 58 ELSE - + 70 * - 91 - 87 END * - - 14 * - + CAST ( NULL AS INTEGER ) * - ( + - COUNT ( * ) ) * - 30
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3280
SELECT + 52 * - - 86 + + - 7 + + - COALESCE ( + 9, - 80 * - 79 * - MIN( + - 76 ) DIV 97 * - COALESCE ( - - 91, + ( 66 ) ) + + 80 + - + 40 + 23 * + - 71 * + + 74 ) + - MAX( ALL + 78 ) DIV - - 43 AS col1
----
4455

skipif mysql # not compatible
query I rowsort label-3280
SELECT + 52 * - - 86 + + - 7 + + - COALESCE ( + 9, - 80 * - 79 * - MIN ( + - 76 ) / 97 * - COALESCE ( - - 91, + ( 66 ) ) + + 80 + - + 40 + 23 * + - 71 * + + 74 ) + - MAX ( ALL + 78 ) / - - 43 AS col1
----
4455

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT ALL 46 * - + 0 + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL 46 * - + 0 + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL 71 * 60 + + 11
----
4271

onlyif mysql # DIV for integer division: 
query II rowsort label-3283
SELECT DISTINCT 70 DIV - + 29 col1, - ( + 74 ) * - 82 + + 40
----
-2
6108

skipif mysql # not compatible
query II rowsort label-3283
SELECT DISTINCT 70 / - + 29 col1, - ( + 74 ) * - 82 + + 40
----
-2
6108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3284
SELECT ALL + 27 * + 30 + + + CAST( AVG ( ALL - + 27 ) AS SIGNED ) col0
----
783

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL + 27 * + 30 + + + CAST ( AVG ( ALL - + 27 ) AS INTEGER ) col0
----
783

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT DISTINCT + CASE - COUNT( * ) WHEN 1 + - 76 THEN + ( - 46 ) + - 13 * - 29 ELSE NULL END - 47 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT + CASE - COUNT ( * ) WHEN 1 + - 76 THEN + ( - 46 ) + - 13 * - 29 ELSE NULL END - 47 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3286
SELECT + COUNT( * ) + + 36 * - 43, + 64 * - - 18 * 1 * + 14 + 52 AS col1
----
-1547
16180

skipif mysql # not compatible
query II rowsort label-3286
SELECT + COUNT ( * ) + + 36 * - 43, + 64 * - - 18 * 1 * + 14 + 52 AS col1
----
-1547
16180

query I rowsort
SELECT ALL 11 - + 45 * - + 16 - + - 64 AS col0
----
795

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT + MIN( DISTINCT - 26 ) * - 27 col1
----
702

skipif mysql # not compatible
query I rowsort label-3288
SELECT + MIN ( DISTINCT - 26 ) * - 27 col1
----
702

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT DISTINCT + 42 * 67 + - 64 * + ( - - COUNT( * ) )
----
2750

skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT + 42 * 67 + - 64 * + ( - - COUNT ( * ) )
----
2750

query II rowsort
SELECT DISTINCT 42 - + + 62 AS col2, - 27 AS col2
----
-20
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT CASE 90 WHEN - 40 * + 68 * + COUNT( * ) * + 8 / + - 68 * - - 83 + 14 THEN - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3291
SELECT CASE 90 WHEN - 40 * + 68 * + COUNT ( * ) * + 8 / + - 68 * - - 83 + 14 THEN - - COUNT ( * ) END
----
NULL

query I rowsort
SELECT - + NULLIF ( - 3, + CASE - 27 WHEN 92 THEN - 95 WHEN - 51 / + NULLIF ( 61, + - 0 ) * + + 63 THEN AVG ( ALL + 72 ) ELSE NULL END )
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-3293
SELECT ALL + ( - 53 ), + 87 DIV + 30 AS col1
----
-53
2

skipif mysql # not compatible
query II rowsort label-3293
SELECT ALL + ( - 53 ), + 87 / + 30 AS col1
----
-53
2

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

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

query I rowsort
SELECT + 83 * + 53 + + 40 * - - 6
----
4639

query I rowsort
SELECT - - 21 col2
----
21

query I rowsort
SELECT ALL + 82 * - + 8 - + 83
----
-739

onlyif mysql # DIV for integer division: 
query II rowsort label-3298
SELECT + 10 DIV + + 94 * + 4 AS col0, 63 AS col0
----
0
63

skipif mysql # not compatible
query II rowsort label-3298
SELECT + 10 / + + 94 * + 4 AS col0, 63 AS col0
----
0
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3299
SELECT - - CAST( 82 AS SIGNED ) + - - 66 + COALESCE ( - 68, + - 35 + - 31 + + 78 )
----
80

skipif mysql # not compatible
query I rowsort label-3299
SELECT - - CAST ( 82 AS INTEGER ) + - - 66 + COALESCE ( - 68, + - 35 + - 31 + + 78 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT ALL + COALESCE ( 86, 53 + + 19 ) + + 7 + - + MIN( - 55 ) * 75 * + 75
----
309468

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL + COALESCE ( 86, 53 + + 19 ) + + 7 + - + MIN ( - 55 ) * 75 * + 75
----
309468

query I rowsort
SELECT ALL 8 * 51
----
408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3302
SELECT DISTINCT + 48 DIV - 17 + 10 - + CASE - 47 WHEN - 78 THEN + COUNT( * ) * 35 ELSE 53 + + 4 END * 69 DIV - 67
----
66

skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT + 48 / - 17 + 10 - + CASE - 47 WHEN - 78 THEN + COUNT ( * ) * 35 ELSE 53 + + 4 END * 69 / - 67
----
66

query I rowsort
SELECT ALL + COALESCE ( - 63, - + 83 + - 90 * + 76 )
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-3304
SELECT ALL - 15 DIV - 83 + - 89
----
-89

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL - 15 / - 83 + - 89
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3305
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - + 79 + - + COALESCE ( 19, - CAST( NULL AS SIGNED ) * 5 + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - + 79 + - + COALESCE ( 19, - CAST ( NULL AS INTEGER ) * 5 + 78 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3306
SELECT CAST( NULL AS SIGNED ) AS col1, + ( - 85 ) AS col2
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-3306
SELECT CAST ( NULL AS INTEGER ) AS col1, + ( - 85 ) AS col2
----
NULL
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3307
SELECT DISTINCT 86 DIV - - 49 + - + MIN( + 84 ) + ( + 94 ) + - - MIN( - + 79 )
----
-68

skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT 86 / - - 49 + - + MIN ( + 84 ) + ( + 94 ) + - - MIN ( - + 79 )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3308
SELECT DISTINCT ( - MIN( + - 21 ) ) / + 42 + + ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) * - CASE + 29 WHEN COALESCE ( - 94, + - COALESCE ( + + 29, + + COUNT( * ) + + MIN( DISTINCT - 9 ) + + NULLIF ( - - ( + COUNT( * ) ), - - 65 ) * 2 + - - MIN( - 45 ) ) * + ( - - COALESCE ( + MAX( - 91 ), 26 ) ) ) + ( 17 ) THEN 83 + - 64 * + 24 WHEN 44 + - 78 THEN - 86 ELSE NULL END * 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT ( - MIN ( + - 21 ) ) / + 42 + + ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - CASE + 29 WHEN COALESCE ( - 94, + - COALESCE ( + + 29, + + COUNT ( * ) + + MIN ( DISTINCT - 9 ) + + NULLIF ( - - ( + COUNT ( * ) ), - - 65 ) * 2 + - - MIN ( - 45 ) ) * + ( - - COALESCE ( + MAX ( - 91 ), 26 ) ) ) + ( 17 ) THEN 83 + - 64 * + 24 WHEN 44 + - 78 THEN - 86 ELSE NULL END * 22 col0
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - 65, + 28 + + 59 ) col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT - COUNT( - ( + 92 ) ) * - COUNT( * ) + + 29
----
30

skipif mysql # not compatible
query I rowsort label-3310
SELECT - COUNT ( - ( + 92 ) ) * - COUNT ( * ) + + 29
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT DISTINCT + COALESCE ( 25, - + CASE 62 WHEN + COUNT( DISTINCT 47 ) THEN NULL ELSE + + 62 END ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT + COALESCE ( 25, - + CASE 62 WHEN + COUNT ( DISTINCT 47 ) THEN NULL ELSE + + 62 END ) AS col2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3312
SELECT ALL 67 DIV - + 89 + + NULLIF ( - SUM( + + 5 ), 99 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL 67 / - + 89 + + NULLIF ( - SUM ( + + 5 ), 99 ) AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3313
SELECT CAST( NULL AS SIGNED ) AS col0, 94 + + 27 + - + 83 + + + MIN( DISTINCT - - 50 ) * + SUM( DISTINCT + - 18 ) * - 73 + + - ( 14 ) DIV 1
----
NULL
65724

skipif mysql # not compatible
query II rowsort label-3313
SELECT CAST ( NULL AS INTEGER ) AS col0, 94 + + 27 + - + 83 + + + MIN ( DISTINCT - - 50 ) * + SUM ( DISTINCT + - 18 ) * - 73 + + - ( 14 ) / 1
----
NULL
65724

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3314
SELECT - NULLIF ( 3, CAST( NULL AS SIGNED ) - + + 78 ) * - 77 + + 65 col0
----
296

skipif mysql # not compatible
query I rowsort label-3314
SELECT - NULLIF ( 3, CAST ( NULL AS INTEGER ) - + + 78 ) * - 77 + + 65 col0
----
296

query I rowsort
SELECT DISTINCT - COALESCE ( + ( - 57 ), + 11 + + 38 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT ALL 18 - SUM( - 99 )
----
117

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL 18 - SUM ( - 99 )
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT ALL CASE + - MIN( - 83 ) WHEN - 77 / - 65 THEN + - 99 + - + ( + 38 ) + + 58 * - + 93 + - 47 END * - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL CASE + - MIN ( - 83 ) WHEN - 77 / - 65 THEN + - 99 + - + ( + 38 ) + + 58 * - + 93 + - 47 END * - 36
----
NULL

query II rowsort
SELECT 38 col0, 74
----
38
74

query I rowsort
SELECT ALL + 82 * NULLIF ( - 37, 73 ) AS col2
----
-3034

onlyif mysql # DIV for integer division: 
query I rowsort label-3320
SELECT DISTINCT - 27 - + - 7 DIV - 92 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT - 27 - + - 7 / - 92 AS col2
----
-27

query I rowsort
SELECT 73 * + 23 + - - ( - 66 ) AS col2
----
1613

query I rowsort
SELECT 28 * + 57
----
1596

onlyif mysql # DIV for integer division: 
query I rowsort label-3323
SELECT ALL - 38 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL - 38 / 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT DISTINCT + SUM( DISTINCT 55 )
----
55

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT + SUM ( DISTINCT 55 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3325
SELECT DISTINCT 63 AS col0, ( - CAST( NULL AS SIGNED ) ) * + + ( + ( 71 ) ) * 24 + + 15 * 10 * ( - COUNT( * ) ) + + CASE + 81 WHEN 91 THEN NULL WHEN - 79 THEN - + 98 ELSE NULL END
----
63
NULL

skipif mysql # not compatible
query II rowsort label-3325
SELECT DISTINCT 63 AS col0, ( - CAST ( NULL AS INTEGER ) ) * + + ( + ( 71 ) ) * 24 + + 15 * 10 * ( - COUNT ( * ) ) + + CASE + 81 WHEN 91 THEN NULL WHEN - 79 THEN - + 98 ELSE NULL END
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT DISTINCT - SUM( ALL 42 ) * + SUM( - 33 ) * + COUNT( * ) * 61 * - 63 AS col0
----
-5326398

skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT - SUM ( ALL 42 ) * + SUM ( - 33 ) * + COUNT ( * ) * 61 * - 63 AS col0
----
-5326398

query I rowsort
SELECT + 19 + + 27 * - 13
----
-332

onlyif mysql # DIV for integer division: 
query II rowsort label-3328
SELECT DISTINCT COALESCE ( + 98, 65 ) AS col0, 51 DIV - 96
----
98
0

skipif mysql # not compatible
query II rowsort label-3328
SELECT DISTINCT COALESCE ( + 98, 65 ) AS col0, 51 / - 96
----
98
0

query I rowsort
SELECT + 67 * - 45 AS col2
----
-3015

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3330
SELECT 46 + COUNT( * ) DIV - - 14 AS col2, 46 AS col0
----
46
46

skipif mysql # not compatible
query II rowsort label-3330
SELECT 46 + COUNT ( * ) / - - 14 AS col2, 46 AS col0
----
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL - 86 * COALESCE ( + COUNT( * ), - 39 * + 56 * + - 38 ) * 20 + - - 79 AS col0
----
-1641

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL - 86 * COALESCE ( + COUNT ( * ), - 39 * + 56 * + - 38 ) * 20 + - - 79 AS col0
----
-1641

query I rowsort
SELECT 76 * + + 28
----
2128

query I rowsort
SELECT - - COALESCE ( - - 13, - - 64 - + 11, 97 * - 66 ) AS col0
----
13

query I rowsort
SELECT ALL + 94 + + 42 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT ALL - 36 + + + COUNT( * ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL - 36 + + + COUNT ( * ) AS col1
----
-35

query I rowsort
SELECT ALL + 25 * - 29
----
-725

query II rowsort
SELECT ( - 37 ) * - + 63 - - 10 col1, 70 AS col2
----
2341
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3338
SELECT DISTINCT CAST( + NULLIF ( + - 63, CAST( NULL AS SIGNED ) * - 72 + - COUNT( ALL 15 ) ) AS SIGNED ) + + 77
----
14

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT CAST ( + NULLIF ( + - 63, CAST ( NULL AS INTEGER ) * - 72 + - COUNT ( ALL 15 ) ) AS INTEGER ) + + 77
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-3339
SELECT ALL COUNT( * ) + - 54 AS col2, 71
----
-53
71

skipif mysql # not compatible
query II rowsort label-3339
SELECT ALL COUNT ( * ) + - 54 AS col2, 71
----
-53
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3340
SELECT DISTINCT + 30 + + 21 * 45 - + 31 - 29 / CAST( NULL AS SIGNED ) + 78 * + + 96 * 43 + + + 3 / - - COALESCE ( + 4, - - 50 + 93 ) * + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT + 30 + + 21 * 45 - + 31 - 29 / CAST ( NULL AS INTEGER ) + 78 * + + 96 * 43 + + + 3 / - - COALESCE ( + 4, - - 50 + 93 ) * + 12 AS col2
----
NULL

query III rowsort
SELECT ALL - 76 + - 49 * - 68 * + 0, 41 AS col0, - + 99 * + - 53 * + - 85 - - 0 * + 76 AS col2
----
-76
41
-445995

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT COUNT( * ) + - - ( - CASE - + ( - + 48 ) WHEN 28 THEN NULL WHEN + 75 THEN - CASE + 40 WHEN + ( + - 35 ) THEN + COUNT( * ) END / + + SUM( DISTINCT - 63 ) * + 5 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3342
SELECT COUNT ( * ) + - - ( - CASE - + ( - + 48 ) WHEN 28 THEN NULL WHEN + 75 THEN - CASE + 40 WHEN + ( + - 35 ) THEN + COUNT ( * ) END / + + SUM ( DISTINCT - 63 ) * + 5 END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3343
SELECT 39 * 49 col0, COUNT( * ) AS col1
----
1911
1

skipif mysql # not compatible
query II rowsort label-3343
SELECT 39 * 49 col0, COUNT ( * ) AS col1
----
1911
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3344
SELECT 74 * + AVG ( 1 ) * 25 + - + 38 / CASE - - ( + COUNT( * ) ) WHEN - 6 THEN 52 WHEN + ( CAST( - NULLIF ( - 75, 99 ) AS SIGNED ) ) * + COUNT( * ) + - 8 THEN NULL END * - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT 74 * + AVG ( 1 ) * 25 + - + 38 / CASE - - ( + COUNT ( * ) ) WHEN - 6 THEN 52 WHEN + ( CAST ( - NULLIF ( - 75, 99 ) AS INTEGER ) ) * + COUNT ( * ) + - 8 THEN NULL END * - + 18
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3345
SELECT ALL 54 DIV + - 20, 59 AS col2
----
-2
59

skipif mysql # not compatible
query II rowsort label-3345
SELECT ALL 54 / + - 20, 59 AS col2
----
-2
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3346
SELECT 81 DIV - + 63 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3346
SELECT 81 / - + 63 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3347
SELECT + COUNT( * ) DIV - 94 * - + 22 + 30 AS col1, + 40 + - COUNT( * ) AS col1
----
30
39

skipif mysql # not compatible
query II rowsort label-3347
SELECT + COUNT ( * ) / - 94 * - + 22 + 30 AS col1, + 40 + - COUNT ( * ) AS col1
----
30
39

onlyif mysql # aggregate syntax: 
query II rowsort label-3348
SELECT 64 * + 21 * + COUNT( ALL - 92 ) col1, + ( - COUNT( * ) ) AS col0
----
1344
-1

skipif mysql # not compatible
query II rowsort label-3348
SELECT 64 * + 21 * + COUNT ( ALL - 92 ) col1, + ( - COUNT ( * ) ) AS col0
----
1344
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3349
SELECT ALL 18 DIV + - 51
----
0

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL 18 / + - 51
----
0

query II rowsort
SELECT 71 + + 11, 75 AS col2
----
82
75

query II rowsort
SELECT 80 + + 96 AS col0, 83 + - 8 * - 81 AS col1
----
176
731

query I rowsort
SELECT ALL 12 - + + 24
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3353
SELECT 77 * + 20 * 38 + 88 AS col0, + 57 * - ( - + 32 ), - - CASE + + 59 WHEN 61 * - 71 * 36 + + 25 DIV - 91 THEN 99 DIV 5 * + COUNT( * ) ELSE - 32 END AS col0
----
58608
1824
-32

skipif mysql # not compatible
query III rowsort label-3353
SELECT 77 * + 20 * 38 + 88 AS col0, + 57 * - ( - + 32 ), - - CASE + + 59 WHEN 61 * - 71 * 36 + + 25 / - 91 THEN 99 / 5 * + COUNT ( * ) ELSE - 32 END AS col0
----
58608
1824
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3354
SELECT ALL - COALESCE ( + + 73, + + 94 * - 90, - CAST( NULL AS SIGNED ) + - 87 )
----
-73

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL - COALESCE ( + + 73, + + 94 * - 90, - CAST ( NULL AS INTEGER ) + - 87 )
----
-73

query I rowsort
SELECT + 10 + + - 25 AS col2
----
-15

query I rowsort
SELECT + 23 + + 80
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3357
SELECT 36 * + - CAST( + 87 AS SIGNED ) * - 65 - 17 * COALESCE ( + 85, 11 + 52 * - - COALESCE ( - 22, + - 64, 55 * + + COALESCE ( 18, - - 71 + + - 54 ) * - + 20 DIV + 64 * ( SUM( + - 52 ) ) * 20 ), - ( ( - 33 ) ) ) + - 22 + 77
----
202190

skipif mysql # not compatible
query I rowsort label-3357
SELECT 36 * + - CAST ( + 87 AS INTEGER ) * - 65 - 17 * COALESCE ( + 85, 11 + 52 * - - COALESCE ( - 22, + - 64, 55 * + + COALESCE ( 18, - - 71 + + - 54 ) * - + 20 / + 64 * ( SUM ( + - 52 ) ) * 20 ), - ( ( - 33 ) ) ) + - 22 + 77
----
202190

query I rowsort
SELECT ALL - NULLIF ( + 64, - + 60 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL - 92 * + ( - MAX( DISTINCT + + ( + - 1 ) ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL - 92 * + ( - MAX ( DISTINCT + + ( + - 1 ) ) ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT + SUM( DISTINCT + - 51 ) * + 78 AS col0
----
-3978

skipif mysql # not compatible
query I rowsort label-3360
SELECT + SUM ( DISTINCT + - 51 ) * + 78 AS col0
----
-3978

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT - + CASE + COUNT( * ) WHEN - - 48 * - 15 THEN - MIN( DISTINCT + - 30 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3362
SELECT - + CASE + COUNT ( * ) WHEN - - 48 * - 15 THEN - MIN ( DISTINCT + - 30 ) END col1
----
NULL

query I rowsort
SELECT + 56 * + NULLIF ( + 46, - 34 + + - 42 ) AS col2
----
2576

query I rowsort
SELECT ALL - - 2 * 99 * - 45 col2
----
-8910

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3365
SELECT DISTINCT - 98 + - + CAST( + + 44 AS SIGNED ) + + 85 * + 34, - 60 AS col2
----
2748
-60

skipif mysql # not compatible
query II rowsort label-3365
SELECT DISTINCT - 98 + - + CAST ( + + 44 AS INTEGER ) + + 85 * + 34, - 60 AS col2
----
2748
-60

query I rowsort
SELECT DISTINCT + + 89 + - + ( - 89 ) AS col2
----
178

query I rowsort
SELECT ALL - + 26 + - + 34
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT DISTINCT - NULLIF ( - 22, 37 / - - ( + + 39 ) * - + 54 + + COUNT( * ) * 34 )
----
22

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT - NULLIF ( - 22, 37 / - - ( + + 39 ) * - + 54 + + COUNT ( * ) * 34 )
----
22

query I rowsort
SELECT DISTINCT + ( + + 86 ) + + - 78
----
8

query I rowsort
SELECT DISTINCT + COALESCE ( - + 43, - ( 21 ), - 87 * - + 90 ) AS col0
----
-43

query I rowsort
SELECT DISTINCT ( + 21 ) + + 91 * 2 AS col0
----
203

query I rowsort
SELECT 49 * - 9
----
-441

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3374
SELECT MIN( DISTINCT + 56 ) * - CAST( ( 12 ) AS SIGNED )
----
-672

skipif mysql # not compatible
query I rowsort label-3374
SELECT MIN ( DISTINCT + 56 ) * - CAST ( ( 12 ) AS INTEGER )
----
-672

query I rowsort
SELECT DISTINCT 13 * - - 6 AS col1
----
78

query I rowsort
SELECT DISTINCT 72 + - 16
----
56

query I rowsort
SELECT 90 + 45 AS col0
----
135

query I rowsort
SELECT ALL 48 * - 13 AS col0
----
-624

query I rowsort
SELECT ALL 7 - 8 + - + 23 AS col0
----
-24

query I rowsort
SELECT DISTINCT 66 * + - 76 AS col0
----
-5016

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3382
SELECT + 89 - + + ( - - CAST( - AVG ( + + 71 ) AS SIGNED ) ) AS col1
----
160

skipif mysql # not compatible
query I rowsort label-3382
SELECT + 89 - + + ( - - CAST ( - AVG ( + + 71 ) AS INTEGER ) ) AS col1
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-3383
SELECT DISTINCT + 48 AS col0, MIN( ALL - - 13 ) + 64 * 67 AS col2
----
48
4301

skipif mysql # not compatible
query II rowsort label-3383
SELECT DISTINCT + 48 AS col0, MIN ( ALL - - 13 ) + 64 * 67 AS col2
----
48
4301

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT + COUNT( ALL - CASE 15 WHEN - 47 THEN 0 END ) * COUNT( + 5 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3384
SELECT + COUNT ( ALL - CASE 15 WHEN - 47 THEN 0 END ) * COUNT ( + 5 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3385
SELECT ALL + 44, - 12 + - 20 * - MAX( ALL - + 1 ) + - 86 DIV - 53 + + 24 AS col2
----
44
-7

skipif mysql # not compatible
query II rowsort label-3385
SELECT ALL + 44, - 12 + - 20 * - MAX ( ALL - + 1 ) + - 86 / - 53 + + 24 AS col2
----
44
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT + CASE + 49 WHEN + COUNT( * ) * - - MIN( ALL 43 ) + - MIN( ALL + 24 ) + 35 + 37 THEN 40 WHEN - - 34 / + 42 THEN + + 43 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT + CASE + 49 WHEN + COUNT ( * ) * - - MIN ( ALL 43 ) + - MIN ( ALL + 24 ) + 35 + 37 THEN 40 WHEN - - 34 / + 42 THEN + + 43 END AS col0
----
NULL

query I rowsort
SELECT - 29 * - 7 AS col2
----
203

query I rowsort
SELECT ALL 35 * 68 AS col2
----
2380

query I rowsort
SELECT + CASE WHEN 17 NOT IN ( 50 ) THEN - 34 * + 54 ELSE NULL END
----
-1836

onlyif mysql # DIV for integer division: 
query I rowsort label-3390
SELECT DISTINCT 64 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT 64 / 86
----
0

query I rowsort
SELECT + 93 * - 74
----
-6882

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ALL 99 * NULLIF ( + MIN( - 63 ), + COUNT( * ) + + 16 * 4 )
----
-6237

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL 99 * NULLIF ( + MIN ( - 63 ), + COUNT ( * ) + + 16 * 4 )
----
-6237

query I rowsort
SELECT DISTINCT 58 * - 48 AS col0
----
-2784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3394
SELECT DISTINCT - 36 * 29 + + CAST( + 26 + 40 AS SIGNED )
----
-978

skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT - 36 * 29 + + CAST ( + 26 + 40 AS INTEGER )
----
-978

query I rowsort
SELECT + 81 + - 66 col2
----
15

query I rowsort
SELECT ALL 92 * 24 AS col1
----
2208

query I rowsort
SELECT ALL + ( 49 ) * + 5 + + 6
----
251

query I rowsort
SELECT - 63 * 26
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT + CASE COALESCE ( COUNT( * ), 55 * - 52 ) WHEN 29 THEN 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3399
SELECT + CASE COALESCE ( COUNT ( * ), 55 * - 52 ) WHEN 29 THEN 87 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3400
SELECT + 33 + + ( 70 + + 11 ) DIV 70
----
34

skipif mysql # not compatible
query I rowsort label-3400
SELECT + 33 + + ( 70 + + 11 ) / 70
----
34

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3403
SELECT + 9 + NULLIF ( + 57 + CAST( NULL AS SIGNED ), + 2 / 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3403
SELECT + 9 + NULLIF ( + 57 + CAST ( NULL AS INTEGER ), + 2 / 39 )
----
NULL

query I rowsort
SELECT - 27 + 89 AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3405
SELECT ALL CASE + 35 WHEN COUNT( * ) + - 47 THEN 49 WHEN CAST( - 60 AS SIGNED ) THEN + 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL CASE + 35 WHEN COUNT ( * ) + - 47 THEN 49 WHEN CAST ( - 60 AS INTEGER ) THEN + 29 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT ( + 86 ) + 46 * 91
----
4272

query I rowsort
SELECT ALL - 84 * - 3 AS col1
----
252

query I rowsort
SELECT ALL CASE 42 WHEN + COALESCE ( + ( - 30 ), 55 - NULLIF ( + 57, 20 ) ) THEN - 25 ELSE 66 * 58 - 79 END
----
3749

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

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

query I rowsort
SELECT - 56 + - 15 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT + 67 + + NULLIF ( - 37, + COUNT( * ) ) * COUNT( ALL 85 * 75 )
----
30

skipif mysql # not compatible
query I rowsort label-3411
SELECT + 67 + + NULLIF ( - 37, + COUNT ( * ) ) * COUNT ( ALL 85 * 75 )
----
30

query I rowsort
SELECT ALL - 85 * 96
----
-8160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3413
SELECT - COUNT( * ) + + 12 DIV - 3
----
-5

skipif mysql # not compatible
query I rowsort label-3413
SELECT - COUNT ( * ) + + 12 / - 3
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3414
SELECT - CAST( NULL AS DECIMAL ) - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT - CAST ( NULL AS REAL ) - 83
----
NULL

query I rowsort
SELECT DISTINCT - 67 * - 9
----
603

query I rowsort
SELECT - 20 + 4
----
-16

query I rowsort
SELECT - COALESCE ( 21, + 65 * - 11 ) + + 62
----
41

query I rowsort
SELECT ALL + 58 - 7
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT - COUNT( * ) * 54 col1
----
-54

skipif mysql # not compatible
query I rowsort label-3419
SELECT - COUNT ( * ) * 54 col1
----
-54

query I rowsort
SELECT ALL - 95 - - 11 col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT DISTINCT ( MIN( ALL + 99 ) ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-3421
SELECT DISTINCT ( MIN ( ALL + 99 ) ) AS col2
----
99

query I rowsort
SELECT DISTINCT CASE 4 WHEN 83 THEN 89 WHEN - 75 * 71 THEN - 47 ELSE NULL END
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3425
SELECT DISTINCT + 41 DIV 7 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT + 41 / 7 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT - 95 + - MIN( - 60 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-3426
SELECT - 95 + - MIN ( - 60 ) AS col1
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-3427
SELECT ALL + 23 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL + 23 / + 66
----
0

query I rowsort
SELECT + 36 * + 69 AS col1
----
2484

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

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

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

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

query I rowsort
SELECT ALL 59 * - ( 58 )
----
-3422

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3433
SELECT + 60 DIV 94 + 90 col1
----
90

skipif mysql # not compatible
query I rowsort label-3433
SELECT + 60 / 94 + 90 col1
----
90

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

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

query I rowsort
SELECT + + 20 + 42 AS col0
----
62

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

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

query I rowsort
SELECT - + 45 * 95 + - 19 AS col2
----
-4294

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

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

query I rowsort
SELECT - 11 * - 65 AS col0
----
715

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT - COALESCE ( 23, SUM( DISTINCT 18 ), + 35 * + 22 ) * 20 + 94 AS col1
----
-366

skipif mysql # not compatible
query I rowsort label-3440
SELECT - COALESCE ( 23, SUM ( DISTINCT 18 ), + 35 * + 22 ) * 20 + 94 AS col1
----
-366

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT DISTINCT - - COUNT( * ) * 44 + + 91 AS col1
----
135

skipif mysql # not compatible
query I rowsort label-3441
SELECT DISTINCT - - COUNT ( * ) * 44 + + 91 AS col1
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-3442
SELECT + 38 DIV 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3442
SELECT + 38 / 83 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT + 8 + + MIN( DISTINCT 8 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3443
SELECT + 8 + + MIN ( DISTINCT 8 ) AS col2
----
16

query I rowsort
SELECT ALL - 44 * - 23 + 92
----
1104

query I rowsort
SELECT + CASE 72 WHEN - 53 THEN 13 WHEN 19 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3446
SELECT + - 43 * - COALESCE ( ( 65 ), 97 DIV MIN( - 96 ) - - ( - 15 ), 29 * 29 )
----
2795

skipif mysql # not compatible
query I rowsort label-3446
SELECT + - 43 * - COALESCE ( ( 65 ), 97 / MIN ( - 96 ) - - ( - 15 ), 29 * 29 )
----
2795

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT ALL - 66 * 61 + 54 * - NULLIF ( 13 + - 84, ( + 22 ) + COUNT( * ) * + 44 ) col0
----
-192

skipif mysql # not compatible
query I rowsort label-3447
SELECT ALL - 66 * 61 + 54 * - NULLIF ( 13 + - 84, ( + 22 ) + COUNT ( * ) * + 44 ) col0
----
-192

query I rowsort
SELECT + + ( 92 ) * - 82
----
-7544

query I rowsort
SELECT ALL - 1 * 14 + + CASE + 37 WHEN - 56 * - 96 THEN NULL WHEN + 76 THEN NULL WHEN 82 THEN + 8 / - 50 + 3 / 27 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 66 * 11 AS col1
----
726

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

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

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

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

query I rowsort
SELECT + 54 * ( + 77 ) AS col1
----
4158

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

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

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

skipif mysql # not compatible
query I rowsort label-3455
SELECT MIN ( + 34 )
----
34

query I rowsort
SELECT DISTINCT NULLIF ( + 83, 40 * - 2 - - 49 )
----
83

query I rowsort
SELECT DISTINCT NULLIF ( + 56, + 9 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT CASE - + 62 WHEN + ( - 30 ) THEN + COALESCE ( ( + 85 ), 28 ) * COUNT( * ) ELSE NULL END * - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT CASE - + 62 WHEN + ( - 30 ) THEN + COALESCE ( ( + 85 ), 28 ) * COUNT ( * ) ELSE NULL END * - 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT 71 + + MAX( ALL 88 ) AS col0
----
159

skipif mysql # not compatible
query I rowsort label-3459
SELECT 71 + + MAX ( ALL 88 ) AS col0
----
159

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

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

query I rowsort
SELECT 90 * + + 48 AS col1
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT 64 + + - MIN( - 62 ) * + 89 AS col0
----
5582

skipif mysql # not compatible
query I rowsort label-3462
SELECT 64 + + - MIN ( - 62 ) * + 89 AS col0
----
5582

query I rowsort
SELECT DISTINCT + 36 * + 63
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT ( + COUNT( * ) ) + + 78 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-3464
SELECT ( + COUNT ( * ) ) + + 78 AS col0
----
79

query I rowsort
SELECT 80 * - ( ( - ( 46 ) ) )
----
3680

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

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

query I rowsort
SELECT DISTINCT 88 + + - 21 + - 63
----
4

query I rowsort
SELECT 5 * + 44 * 12
----
2640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3469
SELECT ALL + 19 + - COUNT( * ) + SUM( + 56 - 92 DIV 53 )
----
73

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL + 19 + - COUNT ( * ) + SUM ( + 56 - 92 / 53 )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3470
SELECT DISTINCT + - 37 + - 30 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT + - 37 + - 30 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

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

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

query I rowsort
SELECT ALL + - 95 + - 41 AS col1
----
-136

query I rowsort
SELECT - 9 * - 56 + NULLIF ( 41, 96 * - 77 ) AS col0
----
545

query I rowsort
SELECT ALL + 2 + - 15 * - 13 col2
----
197

onlyif mysql # DIV for integer division: 
query I rowsort label-3476
SELECT + 92 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-3476
SELECT + 92 / + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT ALL - + 95 + + COUNT( * ) * ( 61 )
----
-34

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL - + 95 + + COUNT ( * ) * ( 61 )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3478
SELECT CAST( - + MIN( 49 ) AS SIGNED ) - 46 * COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-3478
SELECT CAST ( - + MIN ( 49 ) AS INTEGER ) - 46 * COUNT ( * )
----
-95

query I rowsort
SELECT DISTINCT - 0 + - 93 AS col1
----
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3480
SELECT DISTINCT 93 + - 76 - 50 / CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3480
SELECT DISTINCT 93 + - 76 - 50 / CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT DISTINCT + 8 * SUM( DISTINCT ( - 96 ) ) - - 43 AS col0
----
-725

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT + 8 * SUM ( DISTINCT ( - 96 ) ) - - 43 AS col0
----
-725

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT DISTINCT + 45 + + + COUNT( * ) * - 1
----
44

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT + 45 + + + COUNT ( * ) * - 1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3483
SELECT ALL 11 - 99 + + COALESCE ( CASE ( COUNT( * ) ) WHEN 17 * ( 79 ) THEN 18 DIV 98 + 43 WHEN + 37 THEN + 57 * 53 ELSE NULL END + 54, ( ( + COUNT( * ) ) ), + 18 * 32 )
----
-87

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL 11 - 99 + + COALESCE ( CASE ( COUNT ( * ) ) WHEN 17 * ( 79 ) THEN 18 / 98 + 43 WHEN + 37 THEN + 57 * 53 ELSE NULL END + 54, ( ( + COUNT ( * ) ) ), + 18 * 32 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT COUNT( DISTINCT - 79 ) * - 82 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-3484
SELECT COUNT ( DISTINCT - 79 ) * - 82 AS col1
----
-82

query I rowsort
SELECT 12 * + 65 + 72 AS col0
----
852

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3486
SELECT - 95 - - + 1 + ( COUNT( * ) + + ( 93 + 87 DIV - 39 ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3486
SELECT - 95 - - + 1 + ( COUNT ( * ) + + ( 93 + 87 / - 39 ) ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT - 32 * 45 + + COUNT( * ) col1
----
-1439

skipif mysql # not compatible
query I rowsort label-3487
SELECT - 32 * 45 + + COUNT ( * ) col1
----
-1439

query I rowsort
SELECT 46 * 12 AS col0
----
552

query I rowsort
SELECT ALL 32 - + + 1 * - + 58 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT DISTINCT 91 * + COUNT( * ) * 34 * 85 AS col0
----
262990

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT 91 * + COUNT ( * ) * 34 * 85 AS col0
----
262990

query II rowsort
SELECT DISTINCT 42, 57 AS col1
----
42
57

query I rowsort
SELECT ( 28 ) + 1 - + 6 col1
----
23

query II rowsort
SELECT ALL 48, - 80 AS col1
----
48
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT COUNT( - ( - 29 ) ) + 62 * 88 AS col1
----
5457

skipif mysql # not compatible
query I rowsort label-3494
SELECT COUNT ( - ( - 29 ) ) + 62 * 88 AS col1
----
5457

onlyif mysql # DIV for integer division: 
query I rowsort label-3495
SELECT 90 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-3495
SELECT 90 / + 96
----
0

query I rowsort
SELECT ALL 90 * - 94 AS col0
----
-8460

query II rowsort
SELECT - 59 AS col0, + 86 AS col2
----
-59
86

query II rowsort
SELECT 93 col2, + 22 * 17
----
93
374

query I rowsort
SELECT 73 * + 9 AS col2
----
657

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT 80 DIV - 77 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3500
SELECT 80 / - 77 AS col1
----
-1

query I rowsort
SELECT 15 * - + 42 * - 59 * - 58
----
-2155860

query I rowsort
SELECT ALL + 23 + - 60 AS col0
----
-37

query I rowsort
SELECT ALL - 60 + 41 + - - 4 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT DISTINCT + COALESCE ( + COUNT( * ), ( NULLIF ( - 33, 49 ) ) * 85 ) + MAX( ALL ( 0 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT + COALESCE ( + COUNT ( * ), ( NULLIF ( - 33, 49 ) ) * 85 ) + MAX ( ALL ( 0 ) ) AS col0
----
1

query I rowsort
SELECT 15 * + 47 AS col2
----
705

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT DISTINCT + 87 + - ( - 70 ) * COUNT( * )
----
157

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT + 87 + - ( - 70 ) * COUNT ( * )
----
157

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

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

query I rowsort
SELECT ALL 10 + - 23 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT DISTINCT 14 + - + COUNT( * ) * - 65 + 98
----
177

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT 14 + - + COUNT ( * ) * - 65 + 98
----
177

query II rowsort
SELECT - 38 col2, 38 AS col2
----
-38
38

query I rowsort
SELECT - + 8 * - 22 + - 93 * + 49 AS col0
----
-4381

query I rowsort
SELECT ( 76 ) - + - 51 * + 73 AS col0
----
3799

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3513
SELECT ALL + 94 * CASE - 28 WHEN 43 * + 91 THEN - 29 DIV + 53 WHEN - 30 * - ( 34 ) THEN SUM( DISTINCT + 54 ) + 87 ELSE 72 * 74 END + - 65
----
500767

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL + 94 * CASE - 28 WHEN 43 * + 91 THEN - 29 / + 53 WHEN - 30 * - ( 34 ) THEN SUM ( DISTINCT + 54 ) + 87 ELSE 72 * 74 END + - 65
----
500767

query I rowsort
SELECT - - 29 * - + 74 + + + 22
----
-2124

query II rowsort
SELECT 76 AS col2, + 36 AS col0
----
76
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3516
SELECT 76 / - 70 * + + 80 / CAST( NULL AS DECIMAL ) + - 32 + - CAST( 48 + - CAST( + COUNT( * ) + AVG ( ( + 29 ) ) * + 25 AS SIGNED ) AS SIGNED ) * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT 76 / - 70 * + + 80 / CAST ( NULL AS REAL ) + - 32 + - CAST ( 48 + - CAST ( + COUNT ( * ) + AVG ( ( + 29 ) ) * + 25 AS INTEGER ) AS INTEGER ) * 12
----
NULL

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

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

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

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

query I rowsort
SELECT 27 * - 17 + - 5
----
-464

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT ALL + 93 * + COUNT( * ) - + 8 * - ( + 86 )
----
781

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL + 93 * + COUNT ( * ) - + 8 * - ( + 86 )
----
781

query I rowsort
SELECT + 65 * - 67
----
-4355

query I rowsort
SELECT ALL - - ( 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT SUM( - - 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-3523
SELECT SUM ( - - 45 ) AS col1
----
45

query I rowsort
SELECT - 83 * - 77 AS col0
----
6391

query I rowsort
SELECT CASE - 25 WHEN + + 63 + 14 THEN 20 - - 67 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3526
SELECT + 92 + - + 1 * - CASE - 10 WHEN CASE + COUNT( * ) WHEN + 62 THEN NULL WHEN 39 THEN 54 ELSE + COALESCE ( NULLIF ( + ( 81 ), 57 * CAST( NULL AS SIGNED ) ), 50 * AVG ( 67 / + 69 ) ) END + ( 97 ) THEN - ( + CASE 29 WHEN + 83 THEN 61 * 63 ELSE - 71 END ) * - ( 22 ) WHEN + 52 * - 60 + - AVG ( 81 ) * CASE - 62 WHEN - 47 + - 60 * 95 THEN - NULLIF ( - ( 3 ), + ( 57 ) ) ELSE NULL END THEN 55 * + 44 + - 64 ELSE 34 END * - 51
----
-1642

skipif mysql # not compatible
query I rowsort label-3526
SELECT + 92 + - + 1 * - CASE - 10 WHEN CASE + COUNT ( * ) WHEN + 62 THEN NULL WHEN 39 THEN 54 ELSE + COALESCE ( NULLIF ( + ( 81 ), 57 * CAST ( NULL AS INTEGER ) ), 50 * AVG ( 67 / + 69 ) ) END + ( 97 ) THEN - ( + CASE 29 WHEN + 83 THEN 61 * 63 ELSE - 71 END ) * - ( 22 ) WHEN + 52 * - 60 + - AVG ( 81 ) * CASE - 62 WHEN - 47 + - 60 * 95 THEN - NULLIF ( - ( 3 ), + ( 57 ) ) ELSE NULL END THEN 55 * + 44 + - 64 ELSE 34 END * - 51
----
-1642

onlyif mysql # DIV for integer division: 
query I rowsort label-3527
SELECT 60 * 50 DIV + 63 + 50 col1
----
97

skipif mysql # not compatible
query I rowsort label-3527
SELECT 60 * 50 / + 63 + 50 col1
----
97

query I rowsort
SELECT + COALESCE ( + + ( - 0 ), + 67 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3529
SELECT - CAST( NULL AS DECIMAL ) * 48 AS col2, 26 * - 98 + 11 AS col2
----
NULL
-2537

skipif mysql # not compatible
query II rowsort label-3529
SELECT - CAST ( NULL AS REAL ) * 48 AS col2, 26 * - 98 + 11 AS col2
----
NULL
-2537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3530
SELECT DISTINCT + 54 * + - CASE + 44 WHEN CAST( + 22 AS SIGNED ) - - COUNT( * ) * 51 THEN 74 - - 59 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT + 54 * + - CASE + 44 WHEN CAST ( + 22 AS INTEGER ) - - COUNT ( * ) * 51 THEN 74 - - 59 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3531
SELECT ALL NULLIF ( + + 99, - COUNT( * ) / NULLIF ( 42, + 40 + CAST( NULL AS SIGNED ) ) ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL NULLIF ( + + 99, - COUNT ( * ) / NULLIF ( 42, + 40 + CAST ( NULL AS INTEGER ) ) ) AS col1
----
99

query I rowsort
SELECT - 72 * + + CASE - 58 WHEN + 93 + + 29 THEN 76 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT + 18 + - - 8 - 11 * + CASE - NULLIF ( 88, - MIN( - 74 ) + - 65 ) WHEN 10 THEN - 68 * + COUNT( * ) - 98 WHEN 30 * 78 + - 71 * - 28 THEN + NULLIF ( + 10, 9 ) - - 23 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3533
SELECT + 18 + - - 8 - 11 * + CASE - NULLIF ( 88, - MIN ( - 74 ) + - 65 ) WHEN 10 THEN - 68 * + COUNT ( * ) - 98 WHEN 30 * 78 + - 71 * - 28 THEN + NULLIF ( + 10, 9 ) - - 23 END AS col2
----
NULL

query I rowsort
SELECT + 77 * 3 AS col1
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT ALL 88 * - COUNT( + - CASE 25 WHEN + ( + 81 ) THEN NULL WHEN 87 THEN + 47 ELSE NULL END )
----
0

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL 88 * - COUNT ( + - CASE 25 WHEN + ( + 81 ) THEN NULL WHEN 87 THEN + 47 ELSE NULL END )
----
0

query I rowsort
SELECT ALL 0 + - 8 * - 78 - - 96 AS col0
----
720

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT + COUNT( * ) + - - 3 + + + 61
----
65

skipif mysql # not compatible
query I rowsort label-3538
SELECT + COUNT ( * ) + - - 3 + + + 61
----
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3539
SELECT + 47 * - CASE 5 WHEN + CAST( NULL AS DECIMAL ) / COUNT( * ) + CASE MIN( ALL CAST( NULL AS DECIMAL ) ) WHEN 37 * 76 THEN + 99 * + COUNT( * ) ELSE NULL END THEN - 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT + 47 * - CASE 5 WHEN + CAST ( NULL AS REAL ) / COUNT ( * ) + CASE MIN ( ALL CAST ( NULL AS REAL ) ) WHEN 37 * 76 THEN + 99 * + COUNT ( * ) ELSE NULL END THEN - 65 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3540
SELECT + 47 + - 97 + + - 8 * 16 DIV - 34 col0
----
-47

skipif mysql # not compatible
query I rowsort label-3540
SELECT + 47 + - 97 + + - 8 * 16 / - 34 col0
----
-47

query II rowsort
SELECT + 4 * 72, 74 AS col1
----
288
74

query I rowsort
SELECT DISTINCT + 53 - + - 90 * 63
----
5723

onlyif mysql # DIV for integer division: 
query I rowsort label-3543
SELECT DISTINCT 15 DIV + ( 54 ) + - 83 - 77 * ( + 32 ) AS col2
----
-2547

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT 15 / + ( 54 ) + - 83 - 77 * ( + 32 ) AS col2
----
-2547

query I rowsort
SELECT ALL + NULLIF ( 70, + + 18 ) AS col0
----
70

query I rowsort
SELECT 70 * + COALESCE ( - 69, ( + 76 ) ) - - 6
----
-4824

query I rowsort
SELECT DISTINCT COALESCE ( - + 21, - 3 + - 41 ) * - 25
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT ALL - 26 * + COUNT( * ) * + ( + - COUNT( * ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL - 26 * + COUNT ( * ) * + ( + - COUNT ( * ) ) AS col1
----
26

query I rowsort
SELECT DISTINCT + COALESCE ( + ( - 87 ), + 6 ) AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3549
SELECT + - 38 * + + CASE 24 WHEN 50 * COALESCE ( + 34 * 82 + - 75, 91 * + CAST( - 92 AS DECIMAL ), + 46 + - 51 ) THEN - 49 END - ( + 30 - 46 / 77 ) / MAX( DISTINCT - 44 + - 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT + - 38 * + + CASE 24 WHEN 50 * COALESCE ( + 34 * 82 + - 75, 91 * + CAST ( - 92 AS REAL ), + 46 + - 51 ) THEN - 49 END - ( + 30 - 46 / 77 ) / MAX ( DISTINCT - 44 + - 86 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3550
SELECT ALL + COUNT( * ), CAST( NULL AS SIGNED ) + + - ( + + COUNT( * ) ) + CASE - COUNT( * ) WHEN - ( 90 ) * + 55 THEN NULL ELSE - 20 - 55 END + 25 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3550
SELECT ALL + COUNT ( * ), CAST ( NULL AS INTEGER ) + + - ( + + COUNT ( * ) ) + CASE - COUNT ( * ) WHEN - ( 90 ) * + 55 THEN NULL ELSE - 20 - 55 END + 25 AS col1
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3551
SELECT COALESCE ( + - 46, - 78 DIV - COUNT( * ) DIV - - 76 )
----
-46

skipif mysql # not compatible
query I rowsort label-3551
SELECT COALESCE ( + - 46, - 78 / - COUNT ( * ) / - - 76 )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3552
SELECT + 93 col2, 24 * - - CAST( + 65 AS SIGNED )
----
93
1560

skipif mysql # not compatible
query II rowsort label-3552
SELECT + 93 col2, 24 * - - CAST ( + 65 AS INTEGER )
----
93
1560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3553
SELECT - COUNT( * ) DIV 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3553
SELECT - COUNT ( * ) / 76 AS col0
----
0

query I rowsort
SELECT - CASE + 71 WHEN - 46 * 44 * 84 - 15 THEN + 49 WHEN 65 THEN NULL ELSE 94 END - + ( 77 ) col2
----
-171

onlyif mysql # DIV for integer division: 
query I rowsort label-3555
SELECT ALL - 95 DIV 94 * - 93
----
93

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL - 95 / 94 * - 93
----
93

query I rowsort
SELECT 4 * - + 45 + NULLIF ( + - 90, + + ( 16 ) ) + 2
----
-268

query I rowsort
SELECT - 54 * - + 85
----
4590

query I rowsort
SELECT DISTINCT + 98 * + - 37 + + 43
----
-3583

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL + 65 * + ( + - 90 ) * - 8 * + + 84 + COUNT( * ) + 97 AS col2
----
3931298

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL + 65 * + ( + - 90 ) * - 8 * + + 84 + COUNT ( * ) + 97 AS col2
----
3931298

query I rowsort
SELECT - 1 + + 8 + + 66
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT ALL NULLIF ( COUNT( * ), + NULLIF ( COALESCE ( 80, ( 70 ) + 81, + 21 * - 53 ), - 73 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL NULLIF ( COUNT ( * ), + NULLIF ( COALESCE ( 80, ( 70 ) + 81, + 21 * - 53 ), - 73 ) ) AS col0
----
1

query I rowsort
SELECT - 77 + 10
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3563
SELECT ALL + 60 + + - 21 + - + 53 + - COUNT( * ) DIV + 58
----
-14

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL + 60 + + - 21 + - + 53 + - COUNT ( * ) / + 58
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL - COUNT( * ) + - + 94 * - 22 + - 73 AS col2
----
1994

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL - COUNT ( * ) + - + 94 * - 22 + - 73 AS col2
----
1994

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3565
SELECT COUNT( * ), + 52 DIV 19 + + + 29 col1
----
1
31

skipif mysql # not compatible
query II rowsort label-3565
SELECT COUNT ( * ), + 52 / 19 + + + 29 col1
----
1
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3566
SELECT - 81, ( + 88 ) col1, - - 3 / + - 56 * + 88 + ( CAST( + COUNT( * ) AS SIGNED ) + + 74 ) + + 82 * CAST( NULL AS SIGNED ) AS col1
----
-81
88
NULL

skipif mysql # not compatible
query III rowsort label-3566
SELECT - 81, ( + 88 ) col1, - - 3 / + - 56 * + 88 + ( CAST ( + COUNT ( * ) AS INTEGER ) + + 74 ) + + 82 * CAST ( NULL AS INTEGER ) AS col1
----
-81
88
NULL

query I rowsort
SELECT - 17 * 7 AS col1
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT + 23 + CASE - - 31 WHEN + 69 THEN 48 * 40 + - AVG ( 90 ) WHEN - 15 * COUNT( * ) THEN SUM( DISTINCT 1 ) * + AVG ( ALL - 46 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3568
SELECT + 23 + CASE - - 31 WHEN + 69 THEN 48 * 40 + - AVG ( 90 ) WHEN - 15 * COUNT ( * ) THEN SUM ( DISTINCT 1 ) * + AVG ( ALL - 46 ) END col2
----
NULL

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

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

query I rowsort
SELECT ALL NULLIF ( - 6, 50 + - + 44 ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT - - COALESCE ( - SUM( ALL + + 8 ), ( - + 99 ) * 96 ) + 65
----
57

skipif mysql # not compatible
query I rowsort label-3571
SELECT - - COALESCE ( - SUM ( ALL + + 8 ), ( - + 99 ) * 96 ) + 65
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT + 2 * - 76 * COUNT( ALL + 24 ) + - + COUNT( - 65 ) + + 71 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-3572
SELECT + 2 * - 76 * COUNT ( ALL + 24 ) + - + COUNT ( - 65 ) + + 71 AS col2
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3573
SELECT DISTINCT + COUNT( * ) - - CASE - + 72 WHEN + COALESCE ( - + COALESCE ( - 33, 54 * - ( COUNT( * ) DIV 60 ) + - COUNT( * ), 71 * 71, - COUNT( * ) + ( 46 ) ), 91 * - 68 ) THEN 67 + 21 * COUNT( * ) WHEN + COUNT( * ) - 6 THEN NULL ELSE ( - COUNT( * ) ) - 22 END - COALESCE ( + 9, ( + 34 ) + COUNT( ALL - 73 ) ) DIV - 87
----
-22

skipif mysql # not compatible
query I rowsort label-3573
SELECT DISTINCT + COUNT ( * ) - - CASE - + 72 WHEN + COALESCE ( - + COALESCE ( - 33, 54 * - ( COUNT ( * ) / 60 ) + - COUNT ( * ), 71 * 71, - COUNT ( * ) + ( 46 ) ), 91 * - 68 ) THEN 67 + 21 * COUNT ( * ) WHEN + COUNT ( * ) - 6 THEN NULL ELSE ( - COUNT ( * ) ) - 22 END - COALESCE ( + 9, ( + 34 ) + COUNT ( ALL - 73 ) ) / - 87
----
-22

query I rowsort
SELECT DISTINCT 60 * ( 99 )
----
5940

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT ALL - 21 - + + COUNT( * ) - 44 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL - 21 - + + COUNT ( * ) - 44 AS col0
----
-66

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

skipif mysql # not compatible
query I rowsort label-3576
SELECT - + COUNT ( * ) / + 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT + + COUNT( * ) * + 94 + 40 + 67
----
201

skipif mysql # not compatible
query I rowsort label-3577
SELECT + + COUNT ( * ) * + 94 + 40 + 67
----
201

onlyif mysql # DIV for integer division: 
query II rowsort label-3578
SELECT - ( - 91 ) + 23 col2, + 24 DIV + 66 AS col0
----
114
0

skipif mysql # not compatible
query II rowsort label-3578
SELECT - ( - 91 ) + 23 col2, + 24 / + 66 AS col0
----
114
0

query I rowsort
SELECT DISTINCT 17 * + - ( + 87 ) * - 80 + - 66 AS col2
----
118254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3580
SELECT + - 91 * - CAST( NULL AS SIGNED ) + + + MIN( ALL + + 77 ) + - - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-3580
SELECT + - 91 * - CAST ( NULL AS INTEGER ) + + + MIN ( ALL + + 77 ) + - - 13
----
NULL

query I rowsort
SELECT 13 * + 11
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-3582
SELECT - 12 DIV + + 98 + + 16 * + 57 AS col1
----
912

skipif mysql # not compatible
query I rowsort label-3582
SELECT - 12 / + + 98 + + 16 * + 57 AS col1
----
912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3583
SELECT 90 + + - COUNT( * ) + - - COUNT( ALL 8 ) DIV - - 83 - COUNT( * ) * + 29
----
60

skipif mysql # not compatible
query I rowsort label-3583
SELECT 90 + + - COUNT ( * ) + - - COUNT ( ALL 8 ) / - - 83 - COUNT ( * ) * + 29
----
60

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT ALL - + 45 * CAST( - 77 AS SIGNED ) * 41
----
142065

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL - + 45 * CAST ( - 77 AS INTEGER ) * 41
----
142065

query I rowsort
SELECT - 37 * + 68 + + 32 + - 74
----
-2558

onlyif mysql # DIV for integer division: 
query II rowsort label-3587
SELECT + + 23 AS col1, + 76 DIV - + 65 AS col1
----
23
-1

skipif mysql # not compatible
query II rowsort label-3587
SELECT + + 23 AS col1, + 76 / - + 65 AS col1
----
23
-1

query II rowsort
SELECT 93, + 84 * - 5 * + ( 36 ) * + 88 AS col2
----
93
-1330560

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT + 23 * - + 58 + + 2 + - + COUNT( * ) * 9 * ( + 28 )
----
-1584

skipif mysql # not compatible
query I rowsort label-3589
SELECT + 23 * - + 58 + + 2 + - + COUNT ( * ) * 9 * ( + 28 )
----
-1584

onlyif mysql # aggregate syntax: 
query III rowsort label-3590
SELECT ALL - COUNT( * ) AS col2, - 25 AS col1, + 2 AS col0
----
-1
-25
2

skipif mysql # not compatible
query III rowsort label-3590
SELECT ALL - COUNT ( * ) AS col2, - 25 AS col1, + 2 AS col0
----
-1
-25
2

query I rowsort
SELECT ALL 25 + + - 11
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT 9 + CASE - ( 16 ) WHEN - COUNT( * ) THEN - ( + 38 ) * SUM( + 88 ) WHEN 59 + - AVG ( - 50 ) THEN 64 * - 44 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3592
SELECT 9 + CASE - ( 16 ) WHEN - COUNT ( * ) THEN - ( + 38 ) * SUM ( + 88 ) WHEN 59 + - AVG ( - 50 ) THEN 64 * - 44 ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ALL - 37 + - CASE 45 WHEN - ( 42 ) THEN + 89 - AVG ( - 46 ) WHEN + 84 THEN ( 90 ) END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL - 37 + - CASE 45 WHEN - ( 42 ) THEN + 89 - AVG ( - 46 ) WHEN + 84 THEN ( 90 ) END * COUNT ( * )
----
NULL

query II rowsort
SELECT + 2 AS col1, 6 AS col0
----
2
6

query I rowsort
SELECT ALL + ( + - 66 ) + - 65 AS col2
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT DISTINCT 24 + - MIN( DISTINCT 45 )
----
-21

skipif mysql # not compatible
query I rowsort label-3597
SELECT DISTINCT 24 + - MIN ( DISTINCT 45 )
----
-21

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

skipif mysql # not compatible
query I rowsort label-3598
SELECT DISTINCT + COUNT ( * ) / - + COUNT ( ALL + - 86 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT ALL SUM( ALL CASE + 35 WHEN - 36 * + - 27 THEN + + 47 END ) + + COUNT( - 85 + + 39 ) * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL SUM ( ALL CASE + 35 WHEN - 36 * + - 27 THEN + + 47 END ) + + COUNT ( - 85 + + 39 ) * + 11
----
NULL

query I rowsort
SELECT + 3 * - 61 - - 25
----
-158

query I rowsort
SELECT 24 * - - 61 * 23 col1
----
33672

query I rowsort
SELECT 98 - - 31
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-3603
SELECT 43 DIV + 47 * + 36
----
0

skipif mysql # not compatible
query I rowsort label-3603
SELECT 43 / + 47 * + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT 14 * - ( + 87 ) * - 64 * + COUNT( * ) + - - 33 col0
----
77985

skipif mysql # not compatible
query I rowsort label-3604
SELECT 14 * - ( + 87 ) * - 64 * + COUNT ( * ) + - - 33 col0
----
77985

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

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

query I rowsort
SELECT ALL - 74 - 20
----
-94

query II rowsort
SELECT ALL - 20, - 50 * - - 51 AS col2
----
-20
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT - 95 + + 27 * NULLIF ( + 84, - - ( + + NULLIF ( - COALESCE ( - 46, MIN( ( + 92 ) ) / 62 ), - CASE - 9 WHEN - COALESCE ( - CASE 29 WHEN COUNT( * ) - - 82 THEN + 55 ELSE NULL END, - COUNT( + 61 ) * 26 + 77, COUNT( * ) * - 30 ) THEN NULL WHEN + 91 THEN - COUNT( * ) + ( 16 ) / - COUNT( * ) ELSE + 95 + - COUNT( * ) END * + 89 + + 32 ) ) * 59 ) AS col2
----
2173

skipif mysql # not compatible
query I rowsort label-3608
SELECT - 95 + + 27 * NULLIF ( + 84, - - ( + + NULLIF ( - COALESCE ( - 46, MIN ( ( + 92 ) ) / 62 ), - CASE - 9 WHEN - COALESCE ( - CASE 29 WHEN COUNT ( * ) - - 82 THEN + 55 ELSE NULL END, - COUNT ( + 61 ) * 26 + 77, COUNT ( * ) * - 30 ) THEN NULL WHEN + 91 THEN - COUNT ( * ) + ( 16 ) / - COUNT ( * ) ELSE + 95 + - COUNT ( * ) END * + 89 + + 32 ) ) * 59 ) AS col2
----
2173

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3609
SELECT DISTINCT 35, MAX( - 96 ) DIV + COUNT( * ) AS col0
----
35
-96

skipif mysql # not compatible
query II rowsort label-3609
SELECT DISTINCT 35, MAX ( - 96 ) / + COUNT ( * ) AS col0
----
35
-96

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3611
SELECT 8 AS col0, CAST( NULL AS SIGNED ) col2
----
8
NULL

skipif mysql # not compatible
query II rowsort label-3611
SELECT 8 AS col0, CAST ( NULL AS INTEGER ) col2
----
8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT DISTINCT - MIN( - 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT - MIN ( - 93 ) AS col2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3613
SELECT DISTINCT + CAST( 74 AS SIGNED ) * - + 94 AS col0
----
-6956

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT + CAST ( 74 AS INTEGER ) * - + 94 AS col0
----
-6956

query I rowsort
SELECT - 36 * + 69 AS col2
----
-2484

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3615
SELECT CASE 17 WHEN - 34 * + - 49 * - 53 + + 97 + - CASE - 28 WHEN COUNT( * ) THEN 54 WHEN + 15 THEN 34 WHEN + 66 * + 84 THEN ( + 10 ) ELSE NULL END / - 17 THEN NULL WHEN 45 THEN NULLIF ( 21, 5 ) + + ( ( - 51 ) - - CAST( NULL AS DECIMAL ) ) WHEN CASE 64 WHEN - 20 THEN - NULLIF ( COUNT( * ), + NULLIF ( - COALESCE ( - 14, + ( - MIN( DISTINCT - 27 ) ) * 59 + NULLIF ( 84, 33 + 44 * + 26 ) ), - 80 ) + 9 * CASE AVG ( 67 ) WHEN - 32 + - 18 THEN NULL ELSE COUNT( * ) END ) WHEN 41 + - 59 / 98 THEN NULL ELSE NULL END THEN 12 END * - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-3615
SELECT CASE 17 WHEN - 34 * + - 49 * - 53 + + 97 + - CASE - 28 WHEN COUNT ( * ) THEN 54 WHEN + 15 THEN 34 WHEN + 66 * + 84 THEN ( + 10 ) ELSE NULL END / - 17 THEN NULL WHEN 45 THEN NULLIF ( 21, 5 ) + + ( ( - 51 ) - - CAST ( NULL AS REAL ) ) WHEN CASE 64 WHEN - 20 THEN - NULLIF ( COUNT ( * ), + NULLIF ( - COALESCE ( - 14, + ( - MIN ( DISTINCT - 27 ) ) * 59 + NULLIF ( 84, 33 + 44 * + 26 ) ), - 80 ) + 9 * CASE AVG ( 67 ) WHEN - 32 + - 18 THEN NULL ELSE COUNT ( * ) END ) WHEN 41 + - 59 / 98 THEN NULL ELSE NULL END THEN 12 END * - 73
----
NULL

query I rowsort
SELECT + 45 + - - 6
----
51

query I rowsort
SELECT 48 - + - 75 * - 81 col2
----
-6027

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT MIN( DISTINCT 75 ) + COUNT( * ) col1
----
76

skipif mysql # not compatible
query I rowsort label-3618
SELECT MIN ( DISTINCT 75 ) + COUNT ( * ) col1
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3619
SELECT DISTINCT 92, - COUNT( * ) DIV 24 col0
----
92
0

skipif mysql # not compatible
query II rowsort label-3619
SELECT DISTINCT 92, - COUNT ( * ) / 24 col0
----
92
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT ALL - COUNT( * ) * ( - + 76 ) * SUM( ALL + + 14 ) + 95 * + 22 AS col2
----
3154

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL - COUNT ( * ) * ( - + 76 ) * SUM ( ALL + + 14 ) + 95 * + 22 AS col2
----
3154

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT 4 * MAX( + 34 ) + + 66
----
202

skipif mysql # not compatible
query I rowsort label-3622
SELECT 4 * MAX ( + 34 ) + + 66
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT + + 0 * + + MAX( + NULLIF ( - 51, + 53 ) ) + 61 - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-3623
SELECT + + 0 * + + MAX ( + NULLIF ( - 51, + 53 ) ) + 61 - COUNT ( * )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT COUNT( DISTINCT + 17 ) * 89 * + 13 + - - 39
----
1196

skipif mysql # not compatible
query I rowsort label-3624
SELECT COUNT ( DISTINCT + 17 ) * 89 * + 13 + - - 39
----
1196

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3626
SELECT ALL COUNT( * ) * - 13, + 10 AS col1
----
-13
10

skipif mysql # not compatible
query II rowsort label-3626
SELECT ALL COUNT ( * ) * - 13, + 10 AS col1
----
-13
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3627
SELECT ( - MIN( - CAST( - + 32 AS SIGNED ) ) ) * + 14 * COUNT( * ) * + + 21
----
-9408

skipif mysql # not compatible
query I rowsort label-3627
SELECT ( - MIN ( - CAST ( - + 32 AS INTEGER ) ) ) * + 14 * COUNT ( * ) * + + 21
----
-9408

query I rowsort
SELECT ALL 19 + + 5
----
24

query I rowsort
SELECT 89 - - ( 78 )
----
167

query I rowsort
SELECT 5 * + ( + - 99 ) - - + 65 AS col1
----
-430

query I rowsort
SELECT ALL 83 + + + 3
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT DISTINCT COALESCE ( - 12, 48 * - ( - + 35 ) + - MAX( - 12 ) * + 58, 98 ) * 4 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT COALESCE ( - 12, 48 * - ( - + 35 ) + - MAX ( - 12 ) * + 58, 98 ) * 4 AS col1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3633
SELECT + 36 * - - 13 + - - 98 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT + 36 * - - 13 + - - 98 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( + 74 ) - + 42
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3635
SELECT 8 + COUNT( * ), + 66 + + + 80 * - + COUNT( * ) AS col2
----
9
-14

skipif mysql # not compatible
query II rowsort label-3635
SELECT 8 + COUNT ( * ), + 66 + + + 80 * - + COUNT ( * ) AS col2
----
9
-14

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3637
SELECT ( + 45 ) * ( - NULLIF ( - - 5, - 33 * 39 ) ) DIV - 98
----
2

skipif mysql # not compatible
query I rowsort label-3637
SELECT ( + 45 ) * ( - NULLIF ( - - 5, - 33 * 39 ) ) / - 98
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3638
SELECT ALL COALESCE ( 34, - 78 ) * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL COALESCE ( 34, - 78 ) * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT DISTINCT SUM( + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT SUM ( + 70 )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-3640
SELECT - 93 * - COUNT( * ) * - 65, + 51 AS col1
----
-6045
51

skipif mysql # not compatible
query II rowsort label-3640
SELECT - 93 * - COUNT ( * ) * - 65, + 51 AS col1
----
-6045
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT ALL + CASE - COUNT( * ) WHEN + ( - 95 ) + + 37 THEN + 18 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL + CASE - COUNT ( * ) WHEN + ( - 95 ) + + 37 THEN + 18 ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3642
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / NULLIF ( + 86, 60 + + 70 * - 21 ) * + ( + 89 ) + + 26 * + MIN( 55 + 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3642
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / NULLIF ( + 86, 60 + + 70 * - 21 ) * + ( + 89 ) + + 26 * + MIN ( 55 + 57 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3643
SELECT + MIN( ALL 80 ), - 11 * - + MAX( + 21 ) col2
----
80
231

skipif mysql # not compatible
query II rowsort label-3643
SELECT + MIN ( ALL 80 ), - 11 * - + MAX ( + 21 ) col2
----
80
231

onlyif mysql # DIV for integer division: 
query I rowsort label-3644
SELECT ALL + COALESCE ( + 38, 18 ) DIV + - 91
----
0

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL + COALESCE ( + 38, 18 ) / + - 91
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT + - MIN( + + 76 ) + - 38 + + COUNT( * ) * - 31
----
-145

skipif mysql # not compatible
query I rowsort label-3646
SELECT + - MIN ( + + 76 ) + - 38 + + COUNT ( * ) * - 31
----
-145

query I rowsort
SELECT ALL + 86 + 99 * + 10 * - - 43 AS col2
----
42656

query I rowsort
SELECT - + 81 + 91
----
10

query I rowsort
SELECT - + 75 - - 83 + - ( + 21 ) * + 89 * 54
----
-100918

query I rowsort
SELECT - - ( + + 6 ) + - 66 AS col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3651
SELECT ALL 49 * + 10 * - 44 DIV + COUNT( * ) * + COUNT( * ) + - 46 * 78 AS col1
----
-25148

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL 49 * + 10 * - 44 / + COUNT ( * ) * + COUNT ( * ) + - 46 * 78 AS col1
----
-25148

query II rowsort
SELECT + 86 AS col2, 48
----
86
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3653
SELECT + 14 DIV - + 57 + - 70
----
-70

skipif mysql # not compatible
query I rowsort label-3653
SELECT + 14 / - + 57 + - 70
----
-70

query II rowsort
SELECT ALL + 28 AS col0, - 20
----
28
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3655
SELECT DISTINCT CASE 12 WHEN 25 THEN - MAX( ALL + - 20 ) + 56 * - CASE COUNT( DISTINCT 86 ) WHEN + 13 + - COUNT( * ) * - ( 96 ) THEN NULL ELSE 32 END DIV + 39 ELSE + COUNT( * ) + 99 END * ( - 86 ) + - 2 * 58
----
-8716

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT CASE 12 WHEN 25 THEN - MAX ( ALL + - 20 ) + 56 * - CASE COUNT ( DISTINCT 86 ) WHEN + 13 + - COUNT ( * ) * - ( 96 ) THEN NULL ELSE 32 END / + 39 ELSE + COUNT ( * ) + 99 END * ( - 86 ) + - 2 * 58
----
-8716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3656
SELECT ALL CAST( + 7 AS SIGNED ) * 66 + + - NULLIF ( + 67, + 89 + + 31 ) - + MIN( ALL - CAST( NULL AS SIGNED ) ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL CAST ( + 7 AS INTEGER ) * 66 + + - NULLIF ( + 67, + 89 + + 31 ) - + MIN ( ALL - CAST ( NULL AS INTEGER ) ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT - 78 + - + 6
----
-84

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3660
SELECT NULLIF ( - 76, + + CAST( NULL AS SIGNED ) )
----
-76

skipif mysql # not compatible
query I rowsort label-3660
SELECT NULLIF ( - 76, + + CAST ( NULL AS INTEGER ) )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT + COUNT( * ) + + + 12 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3661
SELECT + COUNT ( * ) + + + 12 AS col2
----
13

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3663
SELECT + 12 DIV - - 73
----
0

skipif mysql # not compatible
query I rowsort label-3663
SELECT + 12 / - - 73
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3664
SELECT ALL 24 DIV 22 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL 24 / 22 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3665
SELECT SUM( + + NULLIF ( 36, - + 35 - 89 * - 49 ) ), ( - 95 ) + + 5 AS col2
----
36
-90

skipif mysql # not compatible
query II rowsort label-3665
SELECT SUM ( + + NULLIF ( 36, - + 35 - 89 * - 49 ) ), ( - 95 ) + + 5 AS col2
----
36
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT - 56 * MAX( DISTINCT + 48 ) * + + COUNT( + - 4 ) * - - 39 + - COUNT( * ) col1
----
-104833

skipif mysql # not compatible
query I rowsort label-3666
SELECT - 56 * MAX ( DISTINCT + 48 ) * + + COUNT ( + - 4 ) * - - 39 + - COUNT ( * ) col1
----
-104833

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

skipif mysql # not compatible
query I rowsort label-3667
SELECT MAX ( + 23 )
----
23

query I rowsort
SELECT + + 86 * - - 70 - + 45 AS col1
----
5975

query I rowsort
SELECT DISTINCT 83 + + 58
----
141

query I rowsort
SELECT ALL - 42 * - 45 AS col1
----
1890

onlyif mysql # aggregate syntax: 
query II rowsort label-3671
SELECT - - 19 AS col2, 45 + + MAX( ALL + 43 )
----
19
88

skipif mysql # not compatible
query II rowsort label-3671
SELECT - - 19 AS col2, 45 + + MAX ( ALL + 43 )
----
19
88

query I rowsort
SELECT ALL 10 + + 23
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT + 80 + - 56 * - 40 - + NULLIF ( + - 29, + - NULLIF ( - + 94, + - COALESCE ( - 90, 5 * - 16, + MIN( DISTINCT 7 ) * + 97 - - COUNT( * ) ) - CASE + 73 WHEN 94 + + 26 THEN 30 + 12 WHEN + CASE - 2 WHEN ( - AVG ( DISTINCT + COALESCE ( + 21, + 83 + - 64, 65 ) ) ) + 0 THEN NULL WHEN - SUM( DISTINCT 38 ) THEN ( 45 ) * 61 ELSE 43 END * 92 + 6 THEN NULL END ) ) + - 94
----
2255

skipif mysql # not compatible
query I rowsort label-3673
SELECT + 80 + - 56 * - 40 - + NULLIF ( + - 29, + - NULLIF ( - + 94, + - COALESCE ( - 90, 5 * - 16, + MIN ( DISTINCT 7 ) * + 97 - - COUNT ( * ) ) - CASE + 73 WHEN 94 + + 26 THEN 30 + 12 WHEN + CASE - 2 WHEN ( - AVG ( DISTINCT + COALESCE ( + 21, + 83 + - 64, 65 ) ) ) + 0 THEN NULL WHEN - SUM ( DISTINCT 38 ) THEN ( 45 ) * 61 ELSE 43 END * 92 + 6 THEN NULL END ) ) + - 94
----
2255

query I rowsort
SELECT + 98 - + 18
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT + NULLIF ( + 30, + COUNT( * ) )
----
30

skipif mysql # not compatible
query I rowsort label-3675
SELECT + NULLIF ( + 30, + COUNT ( * ) )
----
30

query I rowsort
SELECT + + 27 * 71 + + 49 AS col0
----
1966

query II rowsort
SELECT - 93 AS col0, + 83 AS col0
----
-93
83

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3679
SELECT + - NULLIF ( + 90, - ( MAX( + 33 ) ) ) DIV ( - + 96 )
----
0

skipif mysql # not compatible
query I rowsort label-3679
SELECT + - NULLIF ( + 90, - ( MAX ( + 33 ) ) ) / ( - + 96 )
----
0

query I rowsort
SELECT - 30 + 70
----
40

query I rowsort
SELECT ALL + - 9 + + - 33 + 17
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-3682
SELECT ALL - 66 DIV - 90 * - 88 * + 28
----
0

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL - 66 / - 90 * - 88 * + 28
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3683
SELECT ALL COUNT( * ) - 56 - - + 55 * + 35, 0 AS col1
----
1870
0

skipif mysql # not compatible
query II rowsort label-3683
SELECT ALL COUNT ( * ) - 56 - - + 55 * + 35, 0 AS col1
----
1870
0

query I rowsort
SELECT DISTINCT + 60 * - COALESCE ( 49, 76, - 40 + + 33 ) AS col0
----
-2940

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT + 85 * + 70 - + - 2 + - COUNT( * ) + + 67 AS col0
----
6018

skipif mysql # not compatible
query I rowsort label-3685
SELECT + 85 * + 70 - + - 2 + - COUNT ( * ) + + 67 AS col0
----
6018

query I rowsort
SELECT - 72 * 85 AS col0
----
-6120

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3688
SELECT + SUM( DISTINCT - NULLIF ( + 53, + 46 ) ) / CAST( NULL AS SIGNED ) + + - SUM( ALL + 29 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3688
SELECT + SUM ( DISTINCT - NULLIF ( + 53, + 46 ) ) / CAST ( NULL AS INTEGER ) + + - SUM ( ALL + 29 ) AS col1
----
NULL

query I rowsort
SELECT - 12 - + 29 AS col0
----
-41

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3691
SELECT ALL - CAST( NULL AS SIGNED ) / + 86 AS col1, 58 AS col2
----
NULL
58

skipif mysql # not compatible
query II rowsort label-3691
SELECT ALL - CAST ( NULL AS INTEGER ) / + 86 AS col1, 58 AS col2
----
NULL
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3692
SELECT MIN( ALL + 82 ) * - 73 - + 9 + + COALESCE ( + + 96, + + 91 ) * + NULLIF ( + ( 51 ), 82 ) * NULLIF ( 65 + - COALESCE ( 5, 72 DIV - 41 ), - COUNT( * ) + CAST( NULL AS SIGNED ) )
----
287765

skipif mysql # not compatible
query I rowsort label-3692
SELECT MIN ( ALL + 82 ) * - 73 - + 9 + + COALESCE ( + + 96, + + 91 ) * + NULLIF ( + ( 51 ), 82 ) * NULLIF ( 65 + - COALESCE ( 5, 72 / - 41 ), - COUNT ( * ) + CAST ( NULL AS INTEGER ) )
----
287765

query I rowsort
SELECT - 53 * + 34 + 7 AS col2
----
-1795

query II rowsort
SELECT DISTINCT + ( - + 78 ), + 56 AS col2
----
-78
56

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3696
SELECT ALL - COUNT( * ) * 25 DIV - NULLIF ( ( - + 25 ), 72 ) + + 23
----
22

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL - COUNT ( * ) * 25 / - NULLIF ( ( - + 25 ), 72 ) + + 23
----
22

query I rowsort
SELECT - - NULLIF ( - 56, + + 41 + + - 33 ) * + 46 + + 61 col0
----
-2515

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT + 89 - - 38 + + 99 * + CASE - + 95 WHEN + 64 * - 19 - + 2 + - 88 + - 43 + - ( - 87 + - COUNT( * ) ) THEN COUNT( + 96 ) + + 26 / 52 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT + 89 - - 38 + + 99 * + CASE - + 95 WHEN + 64 * - 19 - + 2 + - 88 + - 43 + - ( - 87 + - COUNT ( * ) ) THEN COUNT ( + 96 ) + + 26 / 52 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3699
SELECT + 33 + + - 10 + 41 DIV + 13 + + - 63
----
-37

skipif mysql # not compatible
query I rowsort label-3699
SELECT + 33 + + - 10 + 41 / + 13 + + - 63
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT + 83 * - 36 - - 60 - + COUNT( - - 0 ) * + 29
----
-2957

skipif mysql # not compatible
query I rowsort label-3700
SELECT + 83 * - 36 - - 60 - + COUNT ( - - 0 ) * + 29
----
-2957

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT ALL - 60 + + - ( 26 ) * - 86 + 41 + + 1 + - + 34 * MIN( + 48 ) * 30 AS col0
----
-46742

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL - 60 + + - ( 26 ) * - 86 + 41 + + 1 + - + 34 * MIN ( + 48 ) * 30 AS col0
----
-46742

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT ALL + ( - + 1 ) + COUNT( ALL - COALESCE ( + 47, 37 / + - 84 - + + 35 ) ) + - NULLIF ( + 20, 69 + 95 ) + + COALESCE ( 88, + 87, 1 )
----
68

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL + ( - + 1 ) + COUNT ( ALL - COALESCE ( + 47, 37 / + - 84 - + + 35 ) ) + - NULLIF ( + 20, 69 + 95 ) + + COALESCE ( 88, + 87, 1 )
----
68

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

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

query I rowsort
SELECT 33 + - - 71 AS col0
----
104

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

query I rowsort
SELECT ALL 61 + + - 5 AS col0
----
56

query I rowsort
SELECT - 32 + 67 - + 3
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3708
SELECT DISTINCT - NULLIF ( + 42, - - 52 DIV + + 14 + - 1 + - 32 + + COUNT( * ) * + 44 * - - 88 ) - - ( 4 - - 66 * 80 ) DIV COUNT( * ) AS col1
----
5242

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT - NULLIF ( + 42, - - 52 / + + 14 + - 1 + - 32 + + COUNT ( * ) * + 44 * - - 88 ) - - ( 4 - - 66 * 80 ) / COUNT ( * ) AS col1
----
5242

query II rowsort
SELECT 82 * - + 50 AS col0, 48 AS col2
----
-4100
48

query I rowsort
SELECT ALL - 4 * + + 79
----
-316

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT ALL + SUM( ALL - 1 ) - 8 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL + SUM ( ALL - 1 ) - 8 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT ALL - CASE + 46 WHEN + 7 + + COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN - 84 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL - CASE + 46 WHEN + 7 + + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN - 84 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT ( - 33 ) + - + COALESCE ( + - COUNT( * ), 43 * + + 98 - + 15, + - 77 + - MAX( DISTINCT - 27 ) + + 93 ) * - ( - 93 * CASE 69 WHEN - 67 * 32 THEN NULL WHEN + 35 THEN NULL WHEN 26 + 14 THEN NULL ELSE + 85 END )
----
7872

skipif mysql # not compatible
query I rowsort label-3713
SELECT ( - 33 ) + - + COALESCE ( + - COUNT ( * ), 43 * + + 98 - + 15, + - 77 + - MAX ( DISTINCT - 27 ) + + 93 ) * - ( - 93 * CASE 69 WHEN - 67 * 32 THEN NULL WHEN + 35 THEN NULL WHEN 26 + 14 THEN NULL ELSE + 85 END )
----
7872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3714
SELECT ALL + CAST( - - 17 AS SIGNED ) - 49
----
-32

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL + CAST ( - - 17 AS INTEGER ) - 49
----
-32

query I rowsort
SELECT 89 + 72 - + 52
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT COUNT( * ) - 73 * + + 30 * 83
----
-181769

skipif mysql # not compatible
query I rowsort label-3716
SELECT COUNT ( * ) - 73 * + + 30 * 83
----
-181769

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3718
SELECT 37 / 41 * + CAST( NULL AS SIGNED ), + 11 AS col0
----
NULL
11

skipif mysql # not compatible
query II rowsort label-3718
SELECT 37 / 41 * + CAST ( NULL AS INTEGER ), + 11 AS col0
----
NULL
11

query I rowsort
SELECT 44 + 44
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3720
SELECT NULLIF ( + + 28, + 13 ) DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-3720
SELECT NULLIF ( + + 28, + 13 ) / - 76
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3721
SELECT COALESCE ( 5, - + 17 ) DIV + 10
----
0

skipif mysql # not compatible
query I rowsort label-3721
SELECT COALESCE ( 5, - + 17 ) / + 10
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3722
SELECT ALL CASE + 70 WHEN + AVG ( DISTINCT - 83 ) THEN 95 * 67 ELSE - 62 + + + 64 END DIV ( + - 3 ) + + ( 3 + - ( - 8 - - 89 ) * 28 ) DIV 89 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL CASE + 70 WHEN + AVG ( DISTINCT - 83 ) THEN 95 * 67 ELSE - 62 + + + 64 END / ( + - 3 ) + + ( 3 + - ( - 8 - - 89 ) * 28 ) / 89 AS col1
----
-25

query II rowsort
SELECT ALL - 72 AS col1, - 74 * + 28 * - 17 * + 10
----
-72
352240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3724
SELECT 84 * + CAST( NULL AS SIGNED ) + + - COALESCE ( - - AVG ( ALL 36 ), NULLIF ( - 77, 11 - - ( 73 ) + 50 ) * 64, - 52, 0 * 99 ) - CASE COUNT( * ) WHEN 34 THEN - ( 6 ) - + COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3724
SELECT 84 * + CAST ( NULL AS INTEGER ) + + - COALESCE ( - - AVG ( ALL 36 ), NULLIF ( - 77, 11 - - ( 73 ) + 50 ) * 64, - 52, 0 * 99 ) - CASE COUNT ( * ) WHEN 34 THEN - ( 6 ) - + COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - 11 * ( + 67 ) AS col2, 73
----
-737
73

query I rowsort
SELECT DISTINCT 88 * ( 41 ) col2
----
3608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3727
SELECT DISTINCT + 66 + + COALESCE ( - 61, 52 ) - + - COALESCE ( - - 89, + - COUNT( * ) ) DIV - 99
----
5

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT + 66 + + COALESCE ( - 61, 52 ) - + - COALESCE ( - - 89, + - COUNT ( * ) ) / - 99
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3728
SELECT DISTINCT - - ( + ( CAST( NULL AS SIGNED ) ) ) AS col1, ( + + MAX( ALL 77 ) )
----
NULL
77

skipif mysql # not compatible
query II rowsort label-3728
SELECT DISTINCT - - ( + ( CAST ( NULL AS INTEGER ) ) ) AS col1, ( + + MAX ( ALL 77 ) )
----
NULL
77

query I rowsort
SELECT - 30 * 50 + - 50 AS col2
----
-1550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3730
SELECT DISTINCT - + CAST( - 45 AS SIGNED ) + - - 24 * + 48 + - COALESCE ( 19, - 7 )
----
1178

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT - + CAST ( - 45 AS INTEGER ) + - - 24 * + 48 + - COALESCE ( 19, - 7 )
----
1178

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT 48 * + + 58 * ( - CAST( + 99 AS SIGNED ) ) + + 25
----
-275591

skipif mysql # not compatible
query I rowsort label-3732
SELECT 48 * + + 58 * ( - CAST ( + 99 AS INTEGER ) ) + + 25
----
-275591

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

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL + 60 * + COUNT ( * ) * - 14 AS col2
----
-840

onlyif mysql # DIV for integer division: 
query I rowsort label-3734
SELECT ALL + - 30 DIV - 29
----
1

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL + - 30 / - 29
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3735
SELECT ALL - - CASE - COUNT( * ) WHEN - 45 * + CAST( 98 AS SIGNED ) + - 9 + + 73 THEN 78 + - SUM( ALL + 14 ) END + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL - - CASE - COUNT ( * ) WHEN - 45 * + CAST ( 98 AS INTEGER ) + - 9 + + 73 THEN 78 + - SUM ( ALL + 14 ) END + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3736
SELECT + 59 * 36 - + 56 AS col1, COUNT( * ) AS col2
----
2068
1

skipif mysql # not compatible
query II rowsort label-3736
SELECT + 59 * 36 - + 56 AS col1, COUNT ( * ) AS col2
----
2068
1

query II rowsort
SELECT + 5, + ( 95 ) AS col2
----
5
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3738
SELECT ALL + - CAST( + 65 AS SIGNED ) * - - NULLIF ( + COUNT( + 65 ), - CASE - 90 WHEN - SUM( ALL - 32 ) THEN - 32 WHEN 31 THEN NULL END )
----
-65

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + - CAST ( + 65 AS INTEGER ) * - - NULLIF ( + COUNT ( + 65 ), - CASE - 90 WHEN - SUM ( ALL - 32 ) THEN - 32 WHEN 31 THEN NULL END )
----
-65

query II rowsort
SELECT - 78 AS col1, 50 + + + 95
----
-78
145

query I rowsort
SELECT DISTINCT + + 88 * - 74
----
-6512

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

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

query II rowsort
SELECT - 12 AS col1, - ( + 48 )
----
-12
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-3743
SELECT 97 - - - 34 * - COALESCE ( + - 73, + 42 ) AS col0, - COUNT( * ) * - NULLIF ( 57, 49 * 32 ) * 0
----
-2385
0

skipif mysql # not compatible
query II rowsort label-3743
SELECT 97 - - - 34 * - COALESCE ( + - 73, + 42 ) AS col0, - COUNT ( * ) * - NULLIF ( 57, 49 * 32 ) * 0
----
-2385
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3744
SELECT ALL + COUNT( * ) AS col2, 59 + COUNT( * ) * - + 5
----
1
54

skipif mysql # not compatible
query II rowsort label-3744
SELECT ALL + COUNT ( * ) AS col2, 59 + COUNT ( * ) * - + 5
----
1
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3745
SELECT - 36 DIV + - COUNT( + 38 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-3745
SELECT - 36 / + - COUNT ( + 38 ) AS col2
----
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT 92 * - MAX( ALL 87 ) * + COUNT( ALL 80 )
----
-8004

skipif mysql # not compatible
query I rowsort label-3747
SELECT 92 * - MAX ( ALL 87 ) * + COUNT ( ALL 80 )
----
-8004

query I rowsort
SELECT 28 * 61 AS col0
----
1708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3749
SELECT COUNT( * ) + - 38 + + - ( + 15 ) * - CAST( - 11 AS DECIMAL ) * - ( - + CASE CAST( - 70 AS SIGNED ) WHEN + 84 THEN + 83 * + 86 - ( 92 ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3749
SELECT COUNT ( * ) + - 38 + + - ( + 15 ) * - CAST ( - 11 AS REAL ) * - ( - + CASE CAST ( - 70 AS INTEGER ) WHEN + 84 THEN + 83 * + 86 - ( 92 ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT - MAX( 94 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-3750
SELECT - MAX ( 94 ) AS col0
----
-94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT ALL NULLIF ( - 71, - + 77 ) * + COUNT( * ) * + 34
----
-2414

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL NULLIF ( - 71, - + 77 ) * + COUNT ( * ) * + 34
----
-2414

query I rowsort
SELECT DISTINCT + 43 * - 74
----
-3182

onlyif mysql # DIV for integer division: 
query I rowsort label-3754
SELECT ALL CASE - 33 WHEN 82 THEN NULL ELSE 31 DIV - 81 * + 92 END * 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL CASE - 33 WHEN 82 THEN NULL ELSE 31 / - 81 * + 92 END * 19 AS col2
----
0

query I rowsort
SELECT DISTINCT 12 + - + 95 * + + 86 col0
----
-8158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3756
SELECT ALL - 81 * CAST( - 61 AS SIGNED ) / - - CAST( NULL AS SIGNED ) + + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL - 81 * CAST ( - 61 AS INTEGER ) / - - CAST ( NULL AS INTEGER ) + + 32 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3757
SELECT CASE + 29 WHEN CAST( NULL AS DECIMAL ) THEN - COUNT( * ) / + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3757
SELECT CASE + 29 WHEN CAST ( NULL AS REAL ) THEN - COUNT ( * ) / + COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3758
SELECT - 44 DIV 45 + - 96 col2
----
-96

skipif mysql # not compatible
query I rowsort label-3758
SELECT - 44 / 45 + - 96 col2
----
-96

query I rowsort
SELECT + NULLIF ( + + 23, 59 ) * 45
----
1035

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT + 5 + MAX( DISTINCT - - 35 ) * - SUM( ALL + 20 ) AS col0
----
-695

skipif mysql # not compatible
query I rowsort label-3760
SELECT + 5 + MAX ( DISTINCT - - 35 ) * - SUM ( ALL + 20 ) AS col0
----
-695

query I rowsort
SELECT + + 49 - - 33
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3762
SELECT ALL ( - - 17 ) DIV - - 63 + + 23 * + 16
----
368

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL ( - - 17 ) / - - 63 + + 23 * + 16
----
368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3763
SELECT 75 * 8 - + CAST( + 99 AS SIGNED ) - + 77 + 44 + + 17 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3763
SELECT 75 * 8 - + CAST ( + 99 AS INTEGER ) - + 77 + 44 + + 17 * - CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT + 90 * - - 47 AS col1
----
4230

query I rowsort
SELECT - 60 * + + 76 AS col0
----
-4560

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT + COUNT( 12 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3767
SELECT + COUNT ( 12 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT - - COUNT( * ) - - 30 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-3768
SELECT - - COUNT ( * ) - - 30 AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3769
SELECT + 31 + - - COALESCE ( - 87, - - 47 / + 42 ) - + + 30 - + 72 / - MAX( + 45 ) * - CASE - - AVG ( ALL ( 68 ) ) WHEN 18 - + COUNT( * ) THEN + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3769
SELECT + 31 + - - COALESCE ( - 87, - - 47 / + 42 ) - + + 30 - + 72 / - MAX ( + 45 ) * - CASE - - AVG ( ALL ( 68 ) ) WHEN 18 - + COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3770
SELECT - - 22 * 27 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3771
SELECT + + COUNT( * ) * - CAST( 36 AS SIGNED ) * 60
----
-2160

skipif mysql # not compatible
query I rowsort label-3771
SELECT + + COUNT ( * ) * - CAST ( 36 AS INTEGER ) * 60
----
-2160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3772
SELECT DISTINCT 19 - + - AVG ( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT 19 - + - AVG ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3773
SELECT - + CASE + 52 WHEN CAST( - 23 AS SIGNED ) * + 99 + + + CASE + SUM( DISTINCT - 5 ) WHEN - 55 THEN + 17 + + 42 WHEN + ( - 31 ) * 58 THEN NULL WHEN ( - CASE + ( MIN( ALL + 64 ) ) WHEN + 2 * 20 THEN 25 * 53 END ) / 93 THEN NULL ELSE CASE 40 WHEN 27 * 15 THEN + 47 / 33 END / 61 END THEN 21 WHEN 25 THEN NULL ELSE NULL END + 39 * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-3773
SELECT - + CASE + 52 WHEN CAST ( - 23 AS INTEGER ) * + 99 + + + CASE + SUM ( DISTINCT - 5 ) WHEN - 55 THEN + 17 + + 42 WHEN + ( - 31 ) * 58 THEN NULL WHEN ( - CASE + ( MIN ( ALL + 64 ) ) WHEN + 2 * 20 THEN 25 * 53 END ) / 93 THEN NULL ELSE CASE 40 WHEN 27 * 15 THEN + 47 / 33 END / 61 END THEN 21 WHEN 25 THEN NULL ELSE NULL END + 39 * 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT 23 * + + 45 + + + COUNT( * ) + COUNT( * ) AS col2
----
1037

skipif mysql # not compatible
query I rowsort label-3774
SELECT 23 * + + 45 + + + COUNT ( * ) + COUNT ( * ) AS col2
----
1037

onlyif mysql # DIV for integer division: 
query II rowsort label-3775
SELECT + 57 AS col1, + ( COALESCE ( - 78, + + 21 DIV - 79 ) ) + + 59
----
57
-19

skipif mysql # not compatible
query II rowsort label-3775
SELECT + 57 AS col1, + ( COALESCE ( - 78, + + 21 / - 79 ) ) + + 59
----
57
-19

query I rowsort
SELECT + + 96 + - + COALESCE ( + + 22, - 57, + 26 ) - + - 20 + 41 * 22 * ( 4 )
----
3702

query II rowsort
SELECT DISTINCT + 17 col2, 37 AS col2
----
17
37

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

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

query I rowsort
SELECT - 19 + - - NULLIF ( - - 72, - + 16 ) col1
----
53

query I rowsort
SELECT ALL + 83 + - - 9 col2
----
92

query I rowsort
SELECT DISTINCT + 11 * 7 AS col1
----
77

query I rowsort
SELECT DISTINCT - 2 + + 7
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3783
SELECT ALL 60 DIV - - MIN( ALL - 83 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL 60 / - - MIN ( ALL - 83 ) AS col0
----
0

query I rowsort
SELECT - 65 + + 42
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT + MIN( DISTINCT + 34 ) + + 81 * - 26 AS col2
----
-2072

skipif mysql # not compatible
query I rowsort label-3785
SELECT + MIN ( DISTINCT + 34 ) + + 81 * - 26 AS col2
----
-2072

onlyif mysql # DIV for integer division: 
query I rowsort label-3786
SELECT + 35 + + 47 DIV - + 88
----
35

skipif mysql # not compatible
query I rowsort label-3786
SELECT + 35 + + 47 / - + 88
----
35

onlyif mysql # aggregate syntax: 
query III rowsort label-3787
SELECT DISTINCT + ( + - 80 ) col0, ( 18 ) + + 72 AS col2, - COUNT( * ) - - + COUNT( * )
----
-80
90
0

skipif mysql # not compatible
query III rowsort label-3787
SELECT DISTINCT + ( + - 80 ) col0, ( 18 ) + + 72 AS col2, - COUNT ( * ) - - + COUNT ( * )
----
-80
90
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3788
SELECT ALL 9 DIV COUNT( + 31 ) * 64 + - 76 + - 59
----
441

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL 9 / COUNT ( + 31 ) * 64 + - 76 + - 59
----
441

onlyif mysql # DIV for integer division: 
query I rowsort label-3789
SELECT ( + - 19 ) DIV + - 83 + - 37
----
-37

skipif mysql # not compatible
query I rowsort label-3789
SELECT ( + - 19 ) / + - 83 + - 37
----
-37

query I rowsort
SELECT ALL + ( 26 ) * 43 AS col0
----
1118

query I rowsort
SELECT DISTINCT - 82 * 12
----
-984

onlyif mysql # DIV for integer division: 
query I rowsort label-3792
SELECT ALL 76 DIV 37 + - + 23 + - 11 - + 95
----
-127

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL 76 / 37 + - + 23 + - 11 - + 95
----
-127

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3794
SELECT - - 43 DIV - - 12
----
3

skipif mysql # not compatible
query I rowsort label-3794
SELECT - - 43 / - - 12
----
3

onlyif mysql # aggregate syntax: 
query III rowsort label-3795
SELECT + - COUNT( * ) * + COUNT( * ) AS col0, 35 + - 41 * + - 18 AS col0, - ( 82 )
----
-1
773
-82

skipif mysql # not compatible
query III rowsort label-3795
SELECT + - COUNT ( * ) * + COUNT ( * ) AS col0, 35 + - 41 * + - 18 AS col0, - ( 82 )
----
-1
773
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-3796
SELECT - SUM( + - 84 ) AS col0, 49 AS col2
----
84
49

skipif mysql # not compatible
query II rowsort label-3796
SELECT - SUM ( + - 84 ) AS col0, 49 AS col2
----
84
49

query I rowsort
SELECT DISTINCT + ( + + CASE 46 WHEN + 77 * + AVG ( - 72 ) THEN 56 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT + - CASE WHEN NULL IS NULL AND NULL > ( + - MAX( DISTINCT - 32 ) ) THEN NULL WHEN ( 34 ) BETWEEN 34 + COUNT( * ) AND - + 3 THEN NULL ELSE 81 + - 1 END + - ( 33 + 82 ) * 71 AS col2
----
-8245

skipif mysql # not compatible
query I rowsort label-3798
SELECT + - CASE WHEN NULL IS NULL AND NULL > ( + - MAX ( DISTINCT - 32 ) ) THEN NULL WHEN ( 34 ) BETWEEN 34 + COUNT ( * ) AND - + 3 THEN NULL ELSE 81 + - 1 END + - ( 33 + 82 ) * 71 AS col2
----
-8245

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3800
SELECT + CAST( NULL AS SIGNED ) * 91 * + 24 * + 70 * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT + CAST ( NULL AS INTEGER ) * 91 * + 24 * + 70 * - 12
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3801
SELECT DISTINCT 12 DIV - 88 AS col2, - NULLIF ( - 22, 41 )
----
0
22

skipif mysql # not compatible
query II rowsort label-3801
SELECT DISTINCT 12 / - 88 AS col2, - NULLIF ( - 22, 41 )
----
0
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT + + COUNT( * ) + COUNT( * ) * 37 col0
----
38

skipif mysql # not compatible
query I rowsort label-3802
SELECT + + COUNT ( * ) + COUNT ( * ) * 37 col0
----
38

query I rowsort
SELECT + - 36 * + + ( - - 83 )
----
-2988

onlyif mysql # DIV for integer division: 
query II rowsort label-3804
SELECT + + 67 - 33, 83 DIV - + 70 AS col1
----
34
-1

skipif mysql # not compatible
query II rowsort label-3804
SELECT + + 67 - 33, 83 / - + 70 AS col1
----
34
-1

query I rowsort
SELECT + - 92 - - 30 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT DISTINCT NULLIF ( - 31, - 6 * - - ( + NULLIF ( + + 82, - + SUM( DISTINCT + - 33 ) + - + 25 + - 71 * + 25 ) ) * 82 * + ( + 27 ) / + 55 + + 70 * 3 ) * + 57
----
-1767

skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT NULLIF ( - 31, - 6 * - - ( + NULLIF ( + + 82, - + SUM ( DISTINCT + - 33 ) + - + 25 + - 71 * + 25 ) ) * 82 * + ( + 27 ) / + 55 + + 70 * 3 ) * + 57
----
-1767

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3807
SELECT DISTINCT ( + NULLIF ( - 37, + CASE 56 WHEN + - 50 * 27 THEN NULL ELSE - COALESCE ( 49, + + 54 ) END + + 95 ) ) AS col0, CAST( + 65 AS SIGNED ) + - 93
----
-37
-28

skipif mysql # not compatible
query II rowsort label-3807
SELECT DISTINCT ( + NULLIF ( - 37, + CASE 56 WHEN + - 50 * 27 THEN NULL ELSE - COALESCE ( 49, + + 54 ) END + + 95 ) ) AS col0, CAST ( + 65 AS INTEGER ) + - 93
----
-37
-28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3808
SELECT DISTINCT - 76 * COUNT( * ) + - 54 * 71 * + MAX( - - 66 ) * - 39 - + - NULLIF ( COUNT( * ), 86 / + CAST( - + 83 AS DECIMAL ) + ( - 54 ) + 67 * 33 ) * 48 - + MIN( + 56 ) AS col2
----
9868632

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT - 76 * COUNT ( * ) + - 54 * 71 * + MAX ( - - 66 ) * - 39 - + - NULLIF ( COUNT ( * ), 86 / + CAST ( - + 83 AS REAL ) + ( - 54 ) + 67 * 33 ) * 48 - + MIN ( + 56 ) AS col2
----
9868632

query I rowsort
SELECT DISTINCT ( - ( - - 64 ) ) + - 17
----
-81

query I rowsort
SELECT + 54 * + 64
----
3456

query I rowsort
SELECT - 59 * ( - 81 ) AS col2
----
4779

query I rowsort
SELECT DISTINCT - ( 69 ) * - 49 + - 15 + - + 32
----
3334

query II rowsort
SELECT - 60 AS col0, + 86 col2
----
-60
86

query I rowsort
SELECT 72 * + 63
----
4536

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT 78 DIV 44
----
1

skipif mysql # not compatible
query I rowsort label-3815
SELECT 78 / 44
----
1

query I rowsort
SELECT ALL - 53 + - 43 AS col1
----
-96

query I rowsort
SELECT 49 - 74
----
-25

query I rowsort
SELECT DISTINCT 29 * + - 65 * - 16 col0
----
30160

onlyif mysql # aggregate syntax: 
query II rowsort label-3819
SELECT ALL 69 AS col0, COUNT( * ) AS col2
----
69
1

skipif mysql # not compatible
query II rowsort label-3819
SELECT ALL 69 AS col0, COUNT ( * ) AS col2
----
69
1

query I rowsort
SELECT ALL - ( 84 ) * + 82
----
-6888

onlyif mysql # DIV for integer division: 
query I rowsort label-3821
SELECT ALL - 53 - 57 * - 33 * - ( 0 ) DIV + 82 * - + 90 + 58 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL - 53 - 57 * - 33 * - ( 0 ) / + 82 * - + 90 + 58 AS col2
----
5

query II rowsort
SELECT 37 AS col0, + 93 col0
----
37
93

query II rowsort
SELECT 48 + - 50 * - 21 col2, 92 - 14 - + 88
----
1098
-10

query I rowsort
SELECT + 63 * + 16
----
1008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3825
SELECT + COALESCE ( 95, - 93 DIV + 35 * + + COUNT( * ), + - 5 * SUM( - CASE 9 WHEN + 21 THEN NULL ELSE + + 34 * + + 56 END ) + - 70 ) * - SUM( 67 ) + + 54 AS col1
----
-6311

skipif mysql # not compatible
query I rowsort label-3825
SELECT + COALESCE ( 95, - 93 / + 35 * + + COUNT ( * ), + - 5 * SUM ( - CASE 9 WHEN + 21 THEN NULL ELSE + + 34 * + + 56 END ) + - 70 ) * - SUM ( 67 ) + + 54 AS col1
----
-6311

onlyif mysql # DIV for integer division: 
query I rowsort label-3826
SELECT - 42 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-3826
SELECT - 42 / - 89
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3827
SELECT ALL - + 23 DIV + - 56 + 48 col0, 80 AS col0
----
48
80

skipif mysql # not compatible
query II rowsort label-3827
SELECT ALL - + 23 / + - 56 + 48 col0, 80 AS col0
----
48
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3828
SELECT + CAST( + 71 AS SIGNED ) DIV - - 98 + + - ( ( + - ( + 12 ) ) ) + - 56
----
-44

skipif mysql # not compatible
query I rowsort label-3828
SELECT + CAST ( + 71 AS INTEGER ) / - - 98 + + - ( ( + - ( + 12 ) ) ) + - 56
----
-44

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3830
SELECT - CASE - 47 WHEN + + 3 THEN - COUNT( * ) DIV 54 WHEN + COALESCE ( - 4, - - 46 DIV - 26 * + 91 ) + + 24 + + 12 + + + COUNT( * ) DIV 97 * 37 DIV 32 THEN NULL ELSE - 31 END + + COUNT( * ) col2
----
32

skipif mysql # not compatible
query I rowsort label-3830
SELECT - CASE - 47 WHEN + + 3 THEN - COUNT ( * ) / 54 WHEN + COALESCE ( - 4, - - 46 / - 26 * + 91 ) + + 24 + + 12 + + + COUNT ( * ) / 97 * 37 / 32 THEN NULL ELSE - 31 END + + COUNT ( * ) col2
----
32

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

query I rowsort
SELECT 26 * - 52 + - 33 * - - 58 + - CASE - 92 WHEN + AVG ( + + 99 ) + + 31 THEN + 26 ELSE 1 * - + 50 + - 1 END AS col2
----
-3215

query I rowsort
SELECT ALL + 20 * + 97
----
1940

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT DISTINCT - - 19 * - + COUNT( * ) * - + 28 * 19 * COUNT( * ) * 33 * - 46
----
-15343944

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT - - 19 * - + COUNT ( * ) * - + 28 * 19 * COUNT ( * ) * 33 * - 46
----
-15343944

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3835
SELECT ALL - 5 col1, CAST( - - CAST( + + 79 AS SIGNED ) AS SIGNED )
----
-5
79

skipif mysql # not compatible
query II rowsort label-3835
SELECT ALL - 5 col1, CAST ( - - CAST ( + + 79 AS INTEGER ) AS INTEGER )
----
-5
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT + 49 + 38 * COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-3836
SELECT + 49 + 38 * COUNT ( * )
----
87

query I rowsort
SELECT ALL - + 69 * - 8 * - + 70 col1
----
-38640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3838
SELECT + CAST( CASE - 4 WHEN + 28 - - 39 + + ( + ( - 74 ) ) * 43 + - + 94 * - COUNT( * ) THEN - + COUNT( * ) WHEN - 82 / 33 THEN NULL WHEN 88 - - 24 THEN NULL WHEN + 39 THEN NULL ELSE COALESCE ( - NULLIF ( + CASE - 87 WHEN 92 + + 44 * 21 THEN 35 END, 65 ), AVG ( 63 ) + + CASE + 19 WHEN 2 THEN NULL ELSE + 76 END ) * + 77 END AS SIGNED ) AS col0
----
10703

skipif mysql # not compatible
query I rowsort label-3838
SELECT + CAST ( CASE - 4 WHEN + 28 - - 39 + + ( + ( - 74 ) ) * 43 + - + 94 * - COUNT ( * ) THEN - + COUNT ( * ) WHEN - 82 / 33 THEN NULL WHEN 88 - - 24 THEN NULL WHEN + 39 THEN NULL ELSE COALESCE ( - NULLIF ( + CASE - 87 WHEN 92 + + 44 * 21 THEN 35 END, 65 ), AVG ( 63 ) + + CASE + 19 WHEN 2 THEN NULL ELSE + 76 END ) * + 77 END AS INTEGER ) AS col0
----
10703

query I rowsort
SELECT + ( + 25 ) * CASE + 14 WHEN - - 76 THEN - 48 WHEN + + 34 + + 35 + + + 19 THEN NULL END + - 21 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3841
SELECT - 85 * 65 + - + COUNT( * ) DIV + 47 + + 32 + 53 - + 52 AS col0
----
-5492

skipif mysql # not compatible
query I rowsort label-3841
SELECT - 85 * 65 + - + COUNT ( * ) / + 47 + + 32 + 53 - + 52 AS col0
----
-5492

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT ALL MIN( ALL - - 6 ) + 44 + ( + SUM( + 63 ) ) AS col2
----
113

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL MIN ( ALL - - 6 ) + 44 + ( + SUM ( + 63 ) ) AS col2
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3843
SELECT 34 DIV - + 96 * - COUNT( 97 )
----
0

skipif mysql # not compatible
query I rowsort label-3843
SELECT 34 / - + 96 * - COUNT ( 97 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3844
SELECT DISTINCT 96 + - 34 / ( - CASE - - 48 WHEN 54 * + - 54 * 20 * 83 THEN NULL WHEN - 84 * - - ( - CAST( - + 79 AS SIGNED ) ) * 48 + - 87 * - ( - 11 ) THEN 65 WHEN ( - 3 ) * COUNT( * ) THEN 62 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT 96 + - 34 / ( - CASE - - 48 WHEN 54 * + - 54 * 20 * 83 THEN NULL WHEN - 84 * - - ( - CAST ( - + 79 AS INTEGER ) ) * 48 + - 87 * - ( - 11 ) THEN 65 WHEN ( - 3 ) * COUNT ( * ) THEN 62 END )
----
NULL

query I rowsort
SELECT DISTINCT - 38 + + 6 * + 90 AS col2
----
502

onlyif mysql # aggregate syntax: 
query II rowsort label-3846
SELECT ALL COUNT( * ) + - 80 * - ( - 20 ) AS col0, 97
----
-1599
97

skipif mysql # not compatible
query II rowsort label-3846
SELECT ALL COUNT ( * ) + - 80 * - ( - 20 ) AS col0, 97
----
-1599
97

query I rowsort
SELECT ALL 24 * - - ( 34 )
----
816

query I rowsort
SELECT DISTINCT 83 + + 0 + - 25
----
58

query I rowsort
SELECT 72 + - 63 * + 24 + + 71 + + 32 - + ( + - 36 )
----
-1301

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT NULLIF ( 98, - 91 * 11 + + - 26 * + COUNT( * ) ) + + - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-3850
SELECT NULLIF ( 98, - 91 * 11 + + - 26 * + COUNT ( * ) ) + + - COUNT ( * )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3851
SELECT ALL 88 * + + 17 AS col2, MIN( ALL 10 ) * - 63 + - - COUNT( * ) + + COUNT( * ) DIV - + 88 AS col0
----
1496
-629

skipif mysql # not compatible
query II rowsort label-3851
SELECT ALL 88 * + + 17 AS col2, MIN ( ALL 10 ) * - 63 + - - COUNT ( * ) + + COUNT ( * ) / - + 88 AS col0
----
1496
-629

query I rowsort
SELECT DISTINCT ( 12 ) - + 78 AS col0
----
-66

query I rowsort
SELECT ALL 82 - 92
----
-10

query I rowsort
SELECT 49 * - + 99
----
-4851

query I rowsort
SELECT 87 + + 33
----
120

query II rowsort
SELECT 93 + + 23, 60 AS col1
----
116
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT - 31 * MIN( + + 3 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-3857
SELECT - 31 * MIN ( + + 3 ) AS col0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3858
SELECT DISTINCT + ( - - 8 ) AS col0, CAST( NULL AS SIGNED ) / - 90
----
8
NULL

skipif mysql # not compatible
query II rowsort label-3858
SELECT DISTINCT + ( - - 8 ) AS col0, CAST ( NULL AS INTEGER ) / - 90
----
8
NULL

query I rowsort
SELECT DISTINCT - + 46 * - 20 * - 25 * - 39 AS col0
----
897000

query I rowsort
SELECT - ( 88 ) * 17 - 82 + + 76 + + 94 * + 77 + + 60 - 7
----
5789

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

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

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( NULLIF ( 71, + 78 ), 91 )
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-3864
SELECT ALL - - COALESCE ( + MIN( + - 23 ), - - 18 ), + 87 * + 3 col1
----
-23
261

skipif mysql # not compatible
query II rowsort label-3864
SELECT ALL - - COALESCE ( + MIN ( + - 23 ), - - 18 ), + 87 * + 3 col1
----
-23
261

query I rowsort
SELECT + 95 * 14
----
1330

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3867
SELECT ALL - - COUNT( * ) + 60 * + 57 * + 18 - + CASE - + 44 WHEN - - 34 * + 15 THEN 81 + + AVG ( DISTINCT 23 ) * + + 76 ELSE NULL END AS col2, - 7 * CAST( NULL AS SIGNED ) + 45 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3867
SELECT ALL - - COUNT ( * ) + 60 * + 57 * + 18 - + CASE - + 44 WHEN - - 34 * + 15 THEN 81 + + AVG ( DISTINCT 23 ) * + + 76 ELSE NULL END AS col2, - 7 * CAST ( NULL AS INTEGER ) + 45 AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT ALL + SUM( - ( 39 ) ) + + + 35 - 86 + COUNT( * ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL + SUM ( - ( 39 ) ) + + + 35 - 86 + COUNT ( * ) AS col2
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3869
SELECT DISTINCT - - 99 + - 1 DIV - + 46 * - - NULLIF ( - - 99, + 11 * + 66 DIV - 57 * + COUNT( * ) * 6 )
----
99

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT - - 99 + - 1 / - + 46 * - - NULLIF ( - - 99, + 11 * + 66 / - 57 * + COUNT ( * ) * 6 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3870
SELECT - - 37 * COUNT( * ) - + 65 * + 98 + COUNT( * ) + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT - - 37 * COUNT ( * ) - + 65 * + 98 + COUNT ( * ) + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3871
SELECT DISTINCT - CAST( - 42 AS DECIMAL ) * - - 75 + + 90 * + 9 * - MAX( - 6 ) * - + CASE - + ( - 22 ) WHEN - 82 THEN - 53 * + 93 WHEN + + COUNT( * ) THEN NULL END + + + 12 + COUNT( * ) + - 13 / COALESCE ( 43 * - COUNT( * ), ( 74 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT - CAST ( - 42 AS REAL ) * - - 75 + + 90 * + 9 * - MAX ( - 6 ) * - + CASE - + ( - 22 ) WHEN - 82 THEN - 53 * + 93 WHEN + + COUNT ( * ) THEN NULL END + + + 12 + COUNT ( * ) + - 13 / COALESCE ( 43 * - COUNT ( * ), ( 74 ) )
----
NULL

query I rowsort
SELECT - 13 - - 56 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT + COUNT( * ) + - 20 * + 44 + + - 1
----
-880

skipif mysql # not compatible
query I rowsort label-3873
SELECT + COUNT ( * ) + - 20 * + 44 + + - 1
----
-880

query I rowsort
SELECT ALL COALESCE ( - 80, 18 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT ALL 77 - - SUM( DISTINCT - + 30 ) - - 92
----
139

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL 77 - - SUM ( DISTINCT - + 30 ) - - 92
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT + COUNT( DISTINCT - - CASE - - 57 WHEN 56 THEN NULL ELSE - 10 END ) * + ( + - 96 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-3876
SELECT + COUNT ( DISTINCT - - CASE - - 57 WHEN 56 THEN NULL ELSE - 10 END ) * + ( + - 96 ) AS col0
----
-96

query I rowsort
SELECT DISTINCT COALESCE ( 76, 72 * - 83 * - 66 + - 33 * 2 )
----
76

query I rowsort
SELECT DISTINCT + 53 - 65 AS col0
----
-12

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3880
SELECT ALL 41 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL 41 / 79
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3881
SELECT + CASE + 65 WHEN - + COUNT( DISTINCT - 57 ) THEN - - 74 WHEN - MIN( DISTINCT 89 ) * + ( 95 ) + 68 THEN NULL WHEN - 91 THEN CAST( 36 AS SIGNED ) ELSE NULL END * - SUM( + 72 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3881
SELECT + CASE + 65 WHEN - + COUNT ( DISTINCT - 57 ) THEN - - 74 WHEN - MIN ( DISTINCT 89 ) * + ( 95 ) + 68 THEN NULL WHEN - 91 THEN CAST ( 36 AS INTEGER ) ELSE NULL END * - SUM ( + 72 ) AS col1
----
NULL

query I rowsort
SELECT + CASE 86 WHEN - 80 THEN 23 END + + + 60 + 68 AS col2
----
NULL

query I rowsort
SELECT ALL + 75 * - + 68 AS col0
----
-5100

query I rowsort
SELECT DISTINCT 56 * 57 * - + 43 AS col2
----
-137256

onlyif mysql # aggregate syntax: 
query II rowsort label-3885
SELECT ALL + 37 col0, NULLIF ( + + COUNT( * ), - 69 ) col1
----
37
1

skipif mysql # not compatible
query II rowsort label-3885
SELECT ALL + 37 col0, NULLIF ( + + COUNT ( * ), - 69 ) col1
----
37
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3886
SELECT ALL - 83 AS col0, - 8 * + + CAST( NULL AS SIGNED ) * + 90 + COALESCE ( - CAST( NULL AS SIGNED ), + NULLIF ( - COUNT( * ), - - 52 ), - 4 )
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-3886
SELECT ALL - 83 AS col0, - 8 * + + CAST ( NULL AS INTEGER ) * + 90 + COALESCE ( - CAST ( NULL AS INTEGER ), + NULLIF ( - COUNT ( * ), - - 52 ), - 4 )
----
-83
NULL

query I rowsort
SELECT DISTINCT ( - 15 ) AS col2
----
-15

query I rowsort
SELECT DISTINCT + 93 + + - 99
----
-6

query I rowsort
SELECT + ( 20 ) + 83 - - 79
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT - 31 * - SUM( ALL + - ( 5 ) ) AS col1
----
-155

skipif mysql # not compatible
query I rowsort label-3890
SELECT - 31 * - SUM ( ALL + - ( 5 ) ) AS col1
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT ALL - 5 * + CASE - 66 WHEN + - 95 + + 49 THEN + + 51 WHEN + 83 THEN - NULLIF ( + 88, ( - - 28 ) ) ELSE NULL END + - 3 + ( + SUM( DISTINCT - 24 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL - 5 * + CASE - 66 WHEN + - 95 + + 49 THEN + + 51 WHEN + 83 THEN - NULLIF ( + 88, ( - - 28 ) ) ELSE NULL END + - 3 + ( + SUM ( DISTINCT - 24 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3892
SELECT + ( + 43 ) DIV 34 + + 22 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-3892
SELECT + ( + 43 ) / 34 + + 22 AS col0
----
23

query I rowsort
SELECT + - 4 + - + 30
----
-34

query I rowsort
SELECT ALL + 76 * - 97 + 64 AS col2
----
-7308

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

skipif mysql # not compatible
query II rowsort label-3895
SELECT 94 AS col2, COUNT ( * ) AS col1
----
94
1

query I rowsort
SELECT ALL + 4 * + - 21 + 36 + + + 16 AS col1
----
-32

query I rowsort
SELECT - 18 * 23 + - 30 + + 89 + 89 * - 47 * + 38 + 87 - - 17 AS col0
----
-159205

query I rowsort
SELECT DISTINCT - + 47 * + 36
----
-1692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3899
SELECT - 47 + - 16 + - COALESCE ( - CAST( NULL AS SIGNED ), - 64 * - COUNT( * ) + + ( ( - + 32 ) ) * - 7 )
----
-351

skipif mysql # not compatible
query I rowsort label-3899
SELECT - 47 + - 16 + - COALESCE ( - CAST ( NULL AS INTEGER ), - 64 * - COUNT ( * ) + + ( ( - + 32 ) ) * - 7 )
----
-351

query I rowsort
SELECT + 37 + - 20 + - + 66 col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT - 44 * - 59 + + MIN( + 92 ) * + + 75 AS col1
----
9496

skipif mysql # not compatible
query I rowsort label-3901
SELECT - 44 * - 59 + + MIN ( + 92 ) * + + 75 AS col1
----
9496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3902
SELECT - COALESCE ( - 78, + + CAST( NULL AS SIGNED ), - + 62 ) * 94 + CAST( + - 26 AS SIGNED ) * 62 col2
----
5720

skipif mysql # not compatible
query I rowsort label-3902
SELECT - COALESCE ( - 78, + + CAST ( NULL AS INTEGER ), - + 62 ) * 94 + CAST ( + - 26 AS INTEGER ) * 62 col2
----
5720

query II rowsort
SELECT + 90, 97 AS col1
----
90
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT COUNT( * ) * - 92 + MIN( DISTINCT + 38 )
----
-54

skipif mysql # not compatible
query I rowsort label-3904
SELECT COUNT ( * ) * - 92 + MIN ( DISTINCT + 38 )
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-3905
SELECT ALL + COUNT( * ), - COALESCE ( - 52, + 14 + + 49 + + 23 + MIN( DISTINCT + 99 ) * - NULLIF ( + 43, 76 + - COUNT( * ) + + 71 * + 24 ) + COUNT( * ) + ( + 80 ) + 1 * 1 * - COUNT( * ), - 24 * 34, - 54 + + 71 ) + 99 AS col2
----
1
151

skipif mysql # not compatible
query II rowsort label-3905
SELECT ALL + COUNT ( * ), - COALESCE ( - 52, + 14 + + 49 + + 23 + MIN ( DISTINCT + 99 ) * - NULLIF ( + 43, 76 + - COUNT ( * ) + + 71 * + 24 ) + COUNT ( * ) + ( + 80 ) + 1 * 1 * - COUNT ( * ), - 24 * 34, - 54 + + 71 ) + 99 AS col2
----
1
151

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3907
SELECT DISTINCT - 68 * + ( + 54 ) - 54 AS col0, + 76 * + - COUNT( * ) + + ( + 53 ) AS col1
----
-3726
-23

skipif mysql # not compatible
query II rowsort label-3907
SELECT DISTINCT - 68 * + ( + 54 ) - 54 AS col0, + 76 * + - COUNT ( * ) + + ( + 53 ) AS col1
----
-3726
-23

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3909
SELECT 40 * 70 * CASE + 41 WHEN ( + CAST( NULL AS SIGNED ) ) THEN - + 32 WHEN - ( 37 ) - + + COUNT( - CASE + 55 WHEN 48 + + - 89 + 72 THEN NULL ELSE 2 END ) THEN + 80 + COUNT( * ) ELSE NULL END + ( 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3909
SELECT 40 * 70 * CASE + 41 WHEN ( + CAST ( NULL AS INTEGER ) ) THEN - + 32 WHEN - ( 37 ) - + + COUNT ( - CASE + 55 WHEN 48 + + - 89 + 72 THEN NULL ELSE 2 END ) THEN + 80 + COUNT ( * ) ELSE NULL END + ( 84 )
----
NULL

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

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

query I rowsort
SELECT + ( + 26 ) * - 8 AS col2
----
-208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3912
SELECT - COUNT( * ) + + 75 DIV + + 41
----
0

skipif mysql # not compatible
query I rowsort label-3912
SELECT - COUNT ( * ) + + 75 / + + 41
----
0

query I rowsort
SELECT + ( + 99 ) - + 52
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT MAX( ( 17 ) )
----
17

skipif mysql # not compatible
query I rowsort label-3915
SELECT MAX ( ( 17 ) )
----
17

query I rowsort
SELECT + 82 + 84
----
166

query I rowsort
SELECT - ( - 95 ) * 95 * + + 11
----
99275

query I rowsort
SELECT ALL + 31 * - + 31
----
-961

onlyif mysql # DIV for integer division: 
query I rowsort label-3919
SELECT DISTINCT 0 DIV - 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT 0 / - 20 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT ALL 5 + - SUM( DISTINCT - + 42 )
----
47

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL 5 + - SUM ( DISTINCT - + 42 )
----
47

query I rowsort
SELECT + 75 + 13 AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-3922
SELECT - COUNT( * ) AS col2, CASE + - 55 WHEN + - COUNT( * ) THEN - COUNT( * ) - + + COALESCE ( - MIN( DISTINCT + 83 ), NULLIF ( - + 64, - 21 * - COUNT( - + 98 ) * + - NULLIF ( + 30, 86 - 86 ) ), 40 * + COALESCE ( + 18, 23 / 21, + 98 ) ) END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3922
SELECT - COUNT ( * ) AS col2, CASE + - 55 WHEN + - COUNT ( * ) THEN - COUNT ( * ) - + + COALESCE ( - MIN ( DISTINCT + 83 ), NULLIF ( - + 64, - 21 * - COUNT ( - + 98 ) * + - NULLIF ( + 30, 86 - 86 ) ), 40 * + COALESCE ( + 18, 23 / 21, + 98 ) ) END
----
-1
NULL

query I rowsort
SELECT ALL - ( 88 ) + - 55 AS col0
----
-143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3924
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) * + 53 + COUNT( DISTINCT ( + 81 ) ) + - + 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) * + 53 + COUNT ( DISTINCT ( + 81 ) ) + - + 30 AS col0
----
NULL

query I rowsort
SELECT + - 8 * + 93 AS col2
----
-744

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT + - COUNT( * ) + 78 + 54 AS col1
----
131

skipif mysql # not compatible
query I rowsort label-3926
SELECT + - COUNT ( * ) + 78 + 54 AS col1
----
131

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3927
SELECT ALL - NULLIF ( - - 72, + + ( - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) )
----
-72

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL - NULLIF ( - - 72, + + ( - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3928
SELECT - - CAST( MIN( - 94 ) AS SIGNED ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-3928
SELECT - - CAST ( MIN ( - 94 ) AS INTEGER ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT ALL - - 70 + - 97 + - - 57 * 21 * - 18 - + COUNT( * )
----
-21574

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL - - 70 + - 97 + - - 57 * 21 * - 18 - + COUNT ( * )
----
-21574

query II rowsort
SELECT ALL 74 * 34 AS col0, + ( + - 66 ) * 14 AS col2
----
2516
-924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3931
SELECT DISTINCT + 14 DIV COUNT( * ) + + COUNT( - 52 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT + 14 / COUNT ( * ) + + COUNT ( - 52 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT MIN( - 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-3932
SELECT MIN ( - 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT DISTINCT + CASE + + 28 WHEN AVG ( 96 ) * NULLIF ( - 53, + 46 - + COUNT( * ) ) THEN COUNT( * ) + + + 13 + + - COUNT( * ) ELSE + + 51 END AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT + CASE + + 28 WHEN AVG ( 96 ) * NULLIF ( - 53, + 46 - + COUNT ( * ) ) THEN COUNT ( * ) + + + 13 + + - COUNT ( * ) ELSE + + 51 END AS col1
----
51

query I rowsort
SELECT ALL + 87 - - 21 AS col1
----
108

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3936
SELECT + 22 AS col0, - COUNT( * ) + + 11 AS col1
----
22
10

skipif mysql # not compatible
query II rowsort label-3936
SELECT + 22 AS col0, - COUNT ( * ) + + 11 AS col1
----
22
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3937
SELECT DISTINCT CAST( - 45 AS SIGNED ) - + 35 + + 3 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT CAST ( - 45 AS INTEGER ) - + 35 + + 3 AS col2
----
-77

query I rowsort
SELECT ALL - ( 20 ) AS col1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-3939
SELECT 62 DIV + + 93
----
0

skipif mysql # not compatible
query I rowsort label-3939
SELECT 62 / + + 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT 58 * + MAX( ALL - 71 ) * - 17 * - + COUNT( * ) * - ( 22 ) + - COUNT( * )
----
1540131

skipif mysql # not compatible
query I rowsort label-3940
SELECT 58 * + MAX ( ALL - 71 ) * - 17 * - + COUNT ( * ) * - ( 22 ) + - COUNT ( * )
----
1540131

query I rowsort
SELECT - 19 * 80 + 27 - - 34 AS col2
----
-1459

onlyif mysql # DIV for integer division: 
query I rowsort label-3942
SELECT 77 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-3942
SELECT 77 / - 84
----
0

query I rowsort
SELECT ALL 99 + + - 89 col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT ALL + NULLIF ( CASE + 96 WHEN 54 THEN + ( + + 95 ) + 96 / - COUNT( ALL + 18 ) ELSE NULL END, + + COUNT( * ) ) + - COUNT( ALL + 83 ) + - + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL + NULLIF ( CASE + 96 WHEN 54 THEN + ( + + 95 ) + 96 / - COUNT ( ALL + 18 ) ELSE NULL END, + + COUNT ( * ) ) + - COUNT ( ALL + 83 ) + - + 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT DISTINCT - 45 + - 6 - + 27 - 77 * COUNT( * )
----
-155

skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT - 45 + - 6 - + 27 - 77 * COUNT ( * )
----
-155

query II rowsort
SELECT DISTINCT + 26 + + 90 AS col2, 12 AS col2
----
116
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3947
SELECT - COUNT( + - 64 ), 30 + 99 AS col0
----
-1
129

skipif mysql # not compatible
query II rowsort label-3947
SELECT - COUNT ( + - 64 ), 30 + 99 AS col0
----
-1
129

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT - COALESCE ( + SUM( + 71 ), - - 66 )
----
-71

skipif mysql # not compatible
query I rowsort label-3948
SELECT - COALESCE ( + SUM ( + 71 ), - - 66 )
----
-71

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3950
SELECT 3 DIV - 74 col0
----
0

skipif mysql # not compatible
query I rowsort label-3950
SELECT 3 / - 74 col0
----
0

query I rowsort
SELECT 46 * - ( + 59 ) AS col0
----
-2714

query II rowsort
SELECT ( + 65 ) AS col2, - 14
----
65
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT ALL + + 30 + - + ( + MAX( + + ( + + 21 ) ) ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL + + 30 + - + ( + MAX ( + + ( + + 21 ) ) ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT DISTINCT - - MAX( DISTINCT + - 11 ) + + 73
----
62

skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT - - MAX ( DISTINCT + - 11 ) + + 73
----
62

query I rowsort
SELECT 26 * + - 83
----
-2158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3956
SELECT - - CASE - + 85 WHEN - ( - SUM( ALL + CAST( NULL AS SIGNED ) ) ) THEN - - 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3956
SELECT - - CASE - + 85 WHEN - ( - SUM ( ALL + CAST ( NULL AS INTEGER ) ) ) THEN - - 84 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3957
SELECT ALL - NULLIF ( + COUNT( * ), - 50 ) DIV 11
----
0

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL - NULLIF ( + COUNT ( * ), - 50 ) / 11
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3958
SELECT - + 10 DIV + 99 + - 29 + 60 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-3958
SELECT - + 10 / + 99 + - 29 + 60 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT + - 52 * - + 80 - MIN( 63 ) * - - MIN( + 31 )
----
2207

skipif mysql # not compatible
query I rowsort label-3959
SELECT + - 52 * - + 80 - MIN ( 63 ) * - - MIN ( + 31 )
----
2207

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT ALL - 67 * + 68 - - COALESCE ( - - MIN( + 1 ), - 15, 83 * - 36 ) * 81 AS col0
----
-4475

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL - 67 * + 68 - - COALESCE ( - - MIN ( + 1 ), - 15, 83 * - 36 ) * 81 AS col0
----
-4475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3961
SELECT - CASE + + 26 WHEN + - 68 THEN - - MIN( - ( + - 90 ) ) END + 39 - 37 + + 66 * - + 60 + - - CASE - 41 WHEN + 40 THEN - 16 * - ( + 84 ) WHEN + 25 - + CAST( NULL AS SIGNED ) THEN - 30 ELSE - 74 - + 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3961
SELECT - CASE + + 26 WHEN + - 68 THEN - - MIN ( - ( + - 90 ) ) END + 39 - 37 + + 66 * - + 60 + - - CASE - 41 WHEN + 40 THEN - 16 * - ( + 84 ) WHEN + 25 - + CAST ( NULL AS INTEGER ) THEN - 30 ELSE - 74 - + 95 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3962
SELECT 43 DIV - 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3962
SELECT 43 / - 55 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3963
SELECT ALL - CAST( + + MAX( DISTINCT - 78 ) AS SIGNED ) AS col0, 37 * + COUNT( * )
----
78
37

skipif mysql # not compatible
query II rowsort label-3963
SELECT ALL - CAST ( + + MAX ( DISTINCT - 78 ) AS INTEGER ) AS col0, 37 * + COUNT ( * )
----
78
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT DISTINCT - 21 - COUNT( * ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT - 21 - COUNT ( * ) AS col0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3965
SELECT ALL + CAST( + 9 AS SIGNED ) * + + 48 * + + 94 * 87 AS col1
----
3532896

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL + CAST ( + 9 AS INTEGER ) * + + 48 * + + 94 * 87 AS col1
----
3532896

query II rowsort
SELECT ALL - 26 AS col2, 47 + + 93 + - 44
----
-26
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT COUNT( * ) * + - 48 * + + 39 * + 87 + 33 col2
----
-162831

skipif mysql # not compatible
query I rowsort label-3967
SELECT COUNT ( * ) * + - 48 * + + 39 * + 87 + 33 col2
----
-162831

onlyif mysql # aggregate syntax: 
query II rowsort label-3968
SELECT ALL - 97 AS col2, COUNT( - 30 )
----
-97
1

skipif mysql # not compatible
query II rowsort label-3968
SELECT ALL - 97 AS col2, COUNT ( - 30 )
----
-97
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3969
SELECT DISTINCT 25 * SUM( - CAST( NULL AS SIGNED ) ) / - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT 25 * SUM ( - CAST ( NULL AS INTEGER ) ) / - - COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT - 4 AS col0, 42 AS col2
----
-4
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3971
SELECT CASE - 22 WHEN - - 32 - + 74 THEN NULL WHEN + CAST( 42 AS SIGNED ) THEN + - COUNT( DISTINCT + 79 ) + 16 END + + 35 * + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-3971
SELECT CASE - 22 WHEN - - 32 - + 74 THEN NULL WHEN + CAST ( 42 AS INTEGER ) THEN + - COUNT ( DISTINCT + 79 ) + 16 END + + 35 * + - 81
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3972
SELECT ALL - 16, MIN( DISTINCT + 44 ) * + + 35 AS col2
----
-16
1540

skipif mysql # not compatible
query II rowsort label-3972
SELECT ALL - 16, MIN ( DISTINCT + 44 ) * + + 35 AS col2
----
-16
1540

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

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL 12 / COUNT ( * ) AS col1
----
12

query I rowsort
SELECT 3 * - 95 col2
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT - ( - + COUNT( * ) ) * 5 + 83 + - 31 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-3975
SELECT - ( - + COUNT ( * ) ) * 5 + 83 + - 31 AS col1
----
57

query I rowsort
SELECT DISTINCT 47 * + 58 AS col2
----
2726

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3977
SELECT ALL 76 DIV + MIN( ALL 78 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL 76 / + MIN ( ALL 78 ) AS col0
----
0

query I rowsort
SELECT 93 + - 49 + - 16 + - 30
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT + COUNT( - 55 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3979
SELECT + COUNT ( - 55 ) AS col0
----
1

query I rowsort
SELECT DISTINCT 11 + + 93 AS col0
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-3981
SELECT ALL 40 + + - ( + + COUNT( * ) ) col0, - 38
----
39
-38

skipif mysql # not compatible
query II rowsort label-3981
SELECT ALL 40 + + - ( + + COUNT ( * ) ) col0, - 38
----
39
-38

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT - + 28 * - 87 - - 60 * 97 * - COUNT( * ) * - ( 99 ) + + + 72 * + COUNT( * ) * + 92 * + - 74 AS col1
----
88440

skipif mysql # not compatible
query I rowsort label-3984
SELECT - + 28 * - 87 - - 60 * 97 * - COUNT ( * ) * - ( 99 ) + + + 72 * + COUNT ( * ) * + 92 * + - 74 AS col1
----
88440

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT DISTINCT + 30 + + 77 * + COUNT( * ) AS col2
----
107

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT + 30 + + 77 * + COUNT ( * ) AS col2
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-3986
SELECT ALL - 72 DIV - 46
----
1

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL - 72 / - 46
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3987
SELECT - 6 DIV + 12
----
0

skipif mysql # not compatible
query I rowsort label-3987
SELECT - 6 / + 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT 30 + COUNT( * ) - - 26
----
57

skipif mysql # not compatible
query I rowsort label-3988
SELECT 30 + COUNT ( * ) - - 26
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3989
SELECT - - 17 col2, 74 + - COUNT( * ) DIV - CAST( - + 19 AS SIGNED ) - COALESCE ( - 60, - 58 * + + 19 + - COALESCE ( - - 75, 92, - 24 * + 91 + + + 74 + - 58 - 97 * - ( - CAST( 64 AS SIGNED ) ) * 51 * - NULLIF ( COUNT( * ) * 65, + 97 ) ), - 41 ) AS col1
----
17
134

skipif mysql # not compatible
query II rowsort label-3989
SELECT - - 17 col2, 74 + - COUNT ( * ) / - CAST ( - + 19 AS INTEGER ) - COALESCE ( - 60, - 58 * + + 19 + - COALESCE ( - - 75, 92, - 24 * + 91 + + + 74 + - 58 - 97 * - ( - CAST ( 64 AS INTEGER ) ) * 51 * - NULLIF ( COUNT ( * ) * 65, + 97 ) ), - 41 ) AS col1
----
17
134

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT ALL + 81 + - 41 + - COUNT( * ) * - + CASE + SUM( 77 ) WHEN - 63 THEN + + 63 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL + 81 + - 41 + - COUNT ( * ) * - + CASE + SUM ( 77 ) WHEN - 63 THEN + + 63 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3991
SELECT COALESCE ( + - CASE - COUNT( - - 40 ) WHEN - 90 THEN NULL ELSE + 20 + 2 END, + COUNT( * ) ), - 84 AS col0
----
-22
-84

skipif mysql # not compatible
query II rowsort label-3991
SELECT COALESCE ( + - CASE - COUNT ( - - 40 ) WHEN - 90 THEN NULL ELSE + 20 + 2 END, + COUNT ( * ) ), - 84 AS col0
----
-22
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3992
SELECT + CAST( - 60 AS SIGNED ) + 85 AS col1, 57 * + - 58 * + MAX( DISTINCT - 26 ) * - ( + - 21 )
----
25
1805076

skipif mysql # not compatible
query II rowsort label-3992
SELECT + CAST ( - 60 AS INTEGER ) + 85 AS col1, 57 * + - 58 * + MAX ( DISTINCT - 26 ) * - ( + - 21 )
----
25
1805076

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3993
SELECT DISTINCT - 68 AS col1, - 20 * + COUNT( * ) DIV 96
----
-68
0

skipif mysql # not compatible
query II rowsort label-3993
SELECT DISTINCT - 68 AS col1, - 20 * + COUNT ( * ) / 96
----
-68
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT + 26 * - 99 + SUM( ALL - 45 ) AS col0
----
-2619

skipif mysql # not compatible
query I rowsort label-3994
SELECT + 26 * - 99 + SUM ( ALL - 45 ) AS col0
----
-2619

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3995
SELECT DISTINCT - MIN( DISTINCT + 37 ) - - COUNT( * ) DIV + 76 * - - 4 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT - MIN ( DISTINCT + 37 ) - - COUNT ( * ) / + 76 * - - 4 AS col2
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3996
SELECT DISTINCT + 61 AS col1, 86 + - 17 + CAST( NULL AS SIGNED ) / + 17
----
61
NULL

skipif mysql # not compatible
query II rowsort label-3996
SELECT DISTINCT + 61 AS col1, 86 + - 17 + CAST ( NULL AS INTEGER ) / + 17
----
61
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT - COALESCE ( - 57, - 6 + 68 - - 17 * 2, 86 - + - CASE - + COUNT( * ) WHEN - 79 * - 32 + + + 20 * - 5 - - 29 THEN - 54 WHEN + 80 THEN ( + + 78 ) END + + 59 ) + - 55 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3997
SELECT - COALESCE ( - 57, - 6 + 68 - - 17 * 2, 86 - + - CASE - + COUNT ( * ) WHEN - 79 * - 32 + + + 20 * - 5 - - 29 THEN - 54 WHEN + 80 THEN ( + + 78 ) END + + 59 ) + - 55 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT + 36 + + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-3998
SELECT + 36 + + COUNT ( * )
----
37

query I rowsort
SELECT DISTINCT - 27 * + 26 AS col2
----
-702

query II rowsort
SELECT - 80 * ( + 35 ), + 83 + - 42 + + 84 * - 72 AS col1
----
-2800
-6007

query II rowsort
SELECT ALL + ( 25 ), 87 AS col2
----
25
87

onlyif mysql # aggregate syntax: 
query II rowsort label-4002
SELECT DISTINCT + ( + 97 ), NULLIF ( - 13, - NULLIF ( - - COUNT( * ), - + 36 ) ) AS col1
----
97
-13

skipif mysql # not compatible
query II rowsort label-4002
SELECT DISTINCT + ( + 97 ), NULLIF ( - 13, - NULLIF ( - - COUNT ( * ), - + 36 ) ) AS col1
----
97
-13

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-4004
SELECT + 18 DIV + + 24 - - - 40 + - 2 AS col2, 15 * - 97 * + 9 * - + 23
----
-42
301185

skipif mysql # not compatible
query II rowsort label-4004
SELECT + 18 / + + 24 - - - 40 + - 2 AS col2, 15 * - 97 * + 9 * - + 23
----
-42
301185

onlyif mysql # aggregate syntax: 
query II rowsort label-4005
SELECT - COUNT( * ) * - 96, 20 * + COUNT( * ) * ( + 86 ) + COUNT( * ) AS col0
----
96
1721

skipif mysql # not compatible
query II rowsort label-4005
SELECT - COUNT ( * ) * - 96, 20 * + COUNT ( * ) * ( + 86 ) + COUNT ( * ) AS col0
----
96
1721

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT + COUNT( - + 80 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4006
SELECT + COUNT ( - + 80 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT 87 * - + 75 * - + ( - - ( - 97 ) ) + + COUNT( * ) - - 90 * + + 58 - + - 67 - + 16 * + - 8 AS col0
----
-627509

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT 87 * - + 75 * - + ( - - ( - 97 ) ) + + COUNT ( * ) - - 90 * + + 58 - + - 67 - + 16 * + - 8 AS col0
----
-627509

query I rowsort
SELECT DISTINCT 93 * 76 + + 50 + 62 + - ( - 28 ) AS col1
----
7208

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT DISTINCT 55 * + + 83 + COUNT( * )
----
4566

skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT 55 * + + 83 + COUNT ( * )
----
4566

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT + 47 - COUNT( * ) * + COUNT( * ) - - ( + 81 ) AS col1
----
127

skipif mysql # not compatible
query I rowsort label-4010
SELECT + 47 - COUNT ( * ) * + COUNT ( * ) - - ( + 81 ) AS col1
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4011
SELECT DISTINCT 30 * CAST( NULL AS SIGNED ) + + + 39 * - 55 AS col0, - COUNT( * ) * + + 65 * + COUNT( * ) * - CASE - - 35 WHEN - 53 - - 96 * + 88 * + + 53 THEN NULL ELSE + ( - 61 ) END * - - 12 - + 63
----
NULL
-47643

skipif mysql # not compatible
query II rowsort label-4011
SELECT DISTINCT 30 * CAST ( NULL AS INTEGER ) + + + 39 * - 55 AS col0, - COUNT ( * ) * + + 65 * + COUNT ( * ) * - CASE - - 35 WHEN - 53 - - 96 * + 88 * + + 53 THEN NULL ELSE + ( - 61 ) END * - - 12 - + 63
----
NULL
-47643

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

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

query I rowsort
SELECT + + 71 * + 86 AS col0
----
6106

query I rowsort
SELECT + 12 + - NULLIF ( - - 38, + + CASE - ( 93 ) WHEN 35 + + 69 THEN NULL WHEN + + CASE - 58 WHEN - 55 THEN NULL WHEN + + 18 * + 31 / 6 * ( 60 ) * + NULLIF ( 68, - 8 ) + + 38 THEN NULL WHEN - ( 85 ) THEN COALESCE ( + 50, 75 ) * 22 ELSE + 69 END / 96 THEN NULL ELSE 85 + + 56 END ) AS col2
----
-26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT ALL + CASE - 73 WHEN - 86 * - 54 * - 67 * - ( 79 ) THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL + CASE - 73 WHEN - 86 * - 54 * - 67 * - ( 79 ) THEN COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT ALL - + 59 * + 65 - + - 78
----
-3757

query I rowsort
SELECT ALL + NULLIF ( + 32, 1 ) * 47 AS col0
----
1504

query II rowsort
SELECT + 44 * + 62, + 70 AS col1
----
2728
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4020
SELECT DISTINCT + NULLIF ( - ( ( - 23 ) ), 36 - + 3 + - - CAST( NULL AS DECIMAL ) ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT + NULLIF ( - ( ( - 23 ) ), 36 - + 3 + - - CAST ( NULL AS REAL ) ) AS col1
----
23

query I rowsort
SELECT ALL 40 * 18 * 13 + 15
----
9375

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT + 10 - + COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4022
SELECT + 10 - + COUNT ( * ) AS col0
----
9

query I rowsort
SELECT + 23 - 81 * 17 AS col0
----
-1354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4024
SELECT + NULLIF ( - 93, 75 - + CAST( + 17 AS SIGNED ) ) / + - 42 * - CASE - 47 WHEN - NULLIF ( - + 78, + ( - 57 ) ) + AVG ( ALL + 44 ) - - 41 THEN + - 6 WHEN + 41 THEN NULL WHEN - 30 THEN NULL ELSE NULL END + + AVG ( 14 ) + - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4024
SELECT + NULLIF ( - 93, 75 - + CAST ( + 17 AS INTEGER ) ) / + - 42 * - CASE - 47 WHEN - NULLIF ( - + 78, + ( - 57 ) ) + AVG ( ALL + 44 ) - - 41 THEN + - 6 WHEN + 41 THEN NULL WHEN - 30 THEN NULL ELSE NULL END + + AVG ( 14 ) + - 40 AS col0
----
NULL

query I rowsort
SELECT - 98 * + COALESCE ( + 13, 73 + + 77 ) * + 23 AS col0
----
-29302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4026
SELECT DISTINCT + - ( - + COUNT( * ) ) DIV 96 DIV + ( - - 56 ) * CAST( - - 84 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT + - ( - + COUNT ( * ) ) / 96 / + ( - - 56 ) * CAST ( - - 84 AS INTEGER )
----
0

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

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL MAX ( ALL - 12 )
----
-12

query I rowsort
SELECT + - COALESCE ( - + 34, + - 10 ) * 25
----
850

query I rowsort
SELECT - 73 - 63
----
-136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4030
SELECT ALL COUNT( * ) DIV + 32 * + 66 + - 22 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL COUNT ( * ) / + 32 * + 66 + - 22 AS col0
----
-22

query I rowsort
SELECT DISTINCT CASE + + 31 WHEN 39 THEN - 2 WHEN + 16 * - 57 + + + 77 - 73 + - 92 + 23 + - 10 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ALL - 3 * + CASE + COUNT( * ) WHEN + ( - 59 ) * + 99 / + + 79 THEN - 38 WHEN - COUNT( * ) + + - ( + 85 ) * - 23 * + ( 36 ) + + 53 THEN NULL WHEN COUNT( * ) THEN NULL WHEN - - CASE + 65 WHEN ( + - 17 ) THEN - 17 * - COUNT( * ) - 73 END + - AVG ( ALL 0 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL - 3 * + CASE + COUNT ( * ) WHEN + ( - 59 ) * + 99 / + + 79 THEN - 38 WHEN - COUNT ( * ) + + - ( + 85 ) * - 23 * + ( 36 ) + + 53 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN - - CASE + 65 WHEN ( + - 17 ) THEN - 17 * - COUNT ( * ) - 73 END + - AVG ( ALL 0 ) THEN NULL END
----
NULL

query I rowsort
SELECT + 7 * - 69 AS col1
----
-483

onlyif mysql # aggregate syntax: 
query II rowsort label-4034
SELECT + 25 + + - 38 - 59 + 3 * - ( + 43 ), + 27 * - MAX( ALL 63 ) AS col0
----
-201
-1701

skipif mysql # not compatible
query II rowsort label-4034
SELECT + 25 + + - 38 - 59 + 3 * - ( + 43 ), + 27 * - MAX ( ALL 63 ) AS col0
----
-201
-1701

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4035
SELECT + 52 DIV + + 62 + NULLIF ( + 33, + CAST( 98 AS DECIMAL ) * + + 98 * - - COALESCE ( - + 86, 32 ) * + - 60 - - NULLIF ( - - 69, - 64 - + 1 + 44 * - 44 DIV 2 * + 54 ) * + 25 * - 13 + - 84 * - 70 )
----
33

skipif mysql # not compatible
query I rowsort label-4035
SELECT + 52 / + + 62 + NULLIF ( + 33, + CAST ( 98 AS REAL ) * + + 98 * - - COALESCE ( - + 86, 32 ) * + - 60 - - NULLIF ( - - 69, - 64 - + 1 + 44 * - 44 / 2 * + 54 ) * + 25 * - 13 + - 84 * - 70 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4036
SELECT + 64 * - - NULLIF ( 37, - CAST( NULL AS SIGNED ) ) - - 41 * - ( + COUNT( * ) )
----
2327

skipif mysql # not compatible
query I rowsort label-4036
SELECT + 64 * - - NULLIF ( 37, - CAST ( NULL AS INTEGER ) ) - - 41 * - ( + COUNT ( * ) )
----
2327

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4037
SELECT - MIN( ALL + - 75 ) + + - 68 DIV 8 - - 36 + 33 AS col0, - 57 - - 50 * 77 + - - COUNT( * ) AS col1
----
136
3794

skipif mysql # not compatible
query II rowsort label-4037
SELECT - MIN ( ALL + - 75 ) + + - 68 / 8 - - 36 + 33 AS col0, - 57 - - 50 * 77 + - - COUNT ( * ) AS col1
----
136
3794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4038
SELECT ALL 70 / COUNT( * ) + + COUNT( * ) + + + ( CAST( NULL AS SIGNED ) ) / + - 79 * + - 72 * - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL 70 / COUNT ( * ) + + COUNT ( * ) + + + ( CAST ( NULL AS INTEGER ) ) / + - 79 * + - 72 * - 66 AS col2
----
NULL

query I rowsort
SELECT ALL + 4 * - 36
----
-144

onlyif mysql # DIV for integer division: 
query II rowsort label-4040
SELECT ALL + 93 DIV - ( - 16 ) + + 62 - - 54, 58 DIV - 34 col1
----
121
-1

skipif mysql # not compatible
query II rowsort label-4040
SELECT ALL + 93 / - ( - 16 ) + + 62 - - 54, 58 / - 34 col1
----
121
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4041
SELECT DISTINCT MIN( DISTINCT 19 ) DIV - 91 + + + 20 * - 53 col0
----
-1060

skipif mysql # not compatible
query I rowsort label-4041
SELECT DISTINCT MIN ( DISTINCT 19 ) / - 91 + + + 20 * - 53 col0
----
-1060

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4042
SELECT ALL MIN( - + 15 ) DIV + + 98 * 69 col1
----
0

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL MIN ( - + 15 ) / + + 98 * 69 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4043
SELECT ALL 26 DIV 92 + - 92
----
-92

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL 26 / 92 + - 92
----
-92

query I rowsort
SELECT DISTINCT + COALESCE ( + 45, 87 ) col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4045
SELECT - ( - 14 ) * 28 DIV - 50 + + 32 * - 27 AS col0
----
-871

skipif mysql # not compatible
query I rowsort label-4045
SELECT - ( - 14 ) * 28 / - 50 + + 32 * - 27 AS col0
----
-871

query I rowsort
SELECT + 17 * + 99
----
1683

query I rowsort
SELECT ALL + 41 * - 67 AS col1
----
-2747

query I rowsort
SELECT - ( - + 73 ) + + 85 AS col0
----
158

query I rowsort
SELECT + 93 + - 6 AS col0
----
87

query I rowsort
SELECT ALL - 56 * - 10 AS col0
----
560

query I rowsort
SELECT - - 50 * + 39 AS col2
----
1950

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

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

query I rowsort
SELECT ALL - - 24 * + - 75 AS col0
----
-1800

query II rowsort
SELECT ALL + 88 AS col1, - 62 * + + 85
----
88
-5270

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

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

query II rowsort
SELECT ALL - - 85 AS col2, 66 AS col1
----
85
66

query I rowsort
SELECT DISTINCT - COALESCE ( - 92, + + 17 + - + 43 + + - ( + 63 ) * + 66, + 9 * 44 )
----
92

query I rowsort
SELECT ALL 29 - + 12 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT COUNT( - 22 ) * - ( - 88 )
----
88

skipif mysql # not compatible
query I rowsort label-4059
SELECT COUNT ( - 22 ) * - ( - 88 )
----
88

query I rowsort
SELECT 11 + 77
----
88

query I rowsort
SELECT NULLIF ( + 51, - 11 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4062
SELECT CASE + 16 WHEN - 94 THEN - + ( - COUNT( * ) ) * + + CAST( NULL AS SIGNED ) * 69 WHEN + 39 THEN - CASE 0 WHEN - ( + + 14 ) * - - COALESCE ( - COUNT( * ), 60 ) * - + 10 THEN NULL WHEN - + 0 THEN NULL ELSE - COALESCE ( - - 48, + 42 * + 17 ) END * + ( AVG ( 83 ) ) END + + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4062
SELECT CASE + 16 WHEN - 94 THEN - + ( - COUNT ( * ) ) * + + CAST ( NULL AS INTEGER ) * 69 WHEN + 39 THEN - CASE 0 WHEN - ( + + 14 ) * - - COALESCE ( - COUNT ( * ), 60 ) * - + 10 THEN NULL WHEN - + 0 THEN NULL ELSE - COALESCE ( - - 48, + 42 * + 17 ) END * + ( AVG ( 83 ) ) END + + 24 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4063
SELECT - 19 * - + MIN( - - 2 ) / 70 * 29 + CAST( NULL AS SIGNED ) - - 40 * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT - 19 * - + MIN ( - - 2 ) / 70 * 29 + CAST ( NULL AS INTEGER ) - - 40 * 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT + 95 * + - 14 + - 82 - ( - COUNT( * ) )
----
-1411

skipif mysql # not compatible
query I rowsort label-4064
SELECT + 95 * + - 14 + - 82 - ( - COUNT ( * ) )
----
-1411

query I rowsort
SELECT + 35 + 28 + + + 65 AS col1
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-4066
SELECT ALL MAX( + + 5 ) * - 10 col0, + 1 AS col1
----
-50
1

skipif mysql # not compatible
query II rowsort label-4066
SELECT ALL MAX ( + + 5 ) * - 10 col0, + 1 AS col1
----
-50
1

query II rowsort
SELECT ALL + COALESCE ( + 42, + 0 ) AS col2, 33
----
42
33

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4069
SELECT + 62 DIV + NULLIF ( COUNT( * ), 50 )
----
62

skipif mysql # not compatible
query I rowsort label-4069
SELECT + 62 / + NULLIF ( COUNT ( * ), 50 )
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4070
SELECT ALL 32 DIV + COALESCE ( - 44, - - 72 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL 32 / + COALESCE ( - 44, - - 72 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4071
SELECT ALL COUNT( * ) + 55 * CAST( NULL AS SIGNED ) * 95 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL COUNT ( * ) + 55 * CAST ( NULL AS INTEGER ) * 95 * COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT 26 + 38 * + 3 AS col2, 52 + 51 col2
----
140
103

query I rowsort
SELECT - 84 + + 21
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4074
SELECT CAST( - - 26 AS SIGNED ) + + SUM( + + 20 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-4074
SELECT CAST ( - - 26 AS INTEGER ) + + SUM ( + + 20 ) AS col2
----
46

query II rowsort
SELECT - 83 AS col2, - 81 col1
----
-83
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4076
SELECT ALL 95 + - CAST( - - 64 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL 95 + - CAST ( - - 64 AS INTEGER )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4077
SELECT CAST( + 10 AS SIGNED ) DIV COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-4077
SELECT CAST ( + 10 AS INTEGER ) / COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT ALL + COUNT( * ) + - 65 + - 68 - - 81 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL + COUNT ( * ) + - 65 + - 68 - - 81 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4079
SELECT DISTINCT 45, - ( COUNT( * ) ) AS col1
----
45
-1

skipif mysql # not compatible
query II rowsort label-4079
SELECT DISTINCT 45, - ( COUNT ( * ) ) AS col1
----
45
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4080
SELECT ALL 59 + 36 + CAST( - 34 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL 59 + 36 + CAST ( - 34 AS INTEGER )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4081
SELECT ALL 36 DIV - - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-4081
SELECT ALL 36 / - - COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-4082
SELECT ALL - 18 + - 71 AS col2, 34 * + + SUM( + 3 ) AS col1
----
-89
102

skipif mysql # not compatible
query II rowsort label-4082
SELECT ALL - 18 + - 71 AS col2, 34 * + + SUM ( + 3 ) AS col1
----
-89
102

onlyif mysql # aggregate syntax: 
query II rowsort label-4083
SELECT ALL - 32 AS col0, - 7 * - 69 * 39 + + - COUNT( * )
----
-32
18836

skipif mysql # not compatible
query II rowsort label-4083
SELECT ALL - 32 AS col0, - 7 * - 69 * 39 + + - COUNT ( * )
----
-32
18836

query I rowsort
SELECT ALL + 54 * + 22
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT 6 * - CASE + 36 WHEN + 52 / - - 61 * - 36 * ( - COUNT( * ) ) + + CASE 40 WHEN - 37 THEN NULL WHEN + 94 * 46 * + 15 * 36 THEN + ( - COUNT( * ) ) * + - 16 ELSE + - 50 END + 52 THEN - - 43 WHEN COUNT( * ) / COUNT( * ) THEN NULL ELSE 61 END * - 34 AS col2
----
12444

skipif mysql # not compatible
query I rowsort label-4085
SELECT 6 * - CASE + 36 WHEN + 52 / - - 61 * - 36 * ( - COUNT ( * ) ) + + CASE 40 WHEN - 37 THEN NULL WHEN + 94 * 46 * + 15 * 36 THEN + ( - COUNT ( * ) ) * + - 16 ELSE + - 50 END + 52 THEN - - 43 WHEN COUNT ( * ) / COUNT ( * ) THEN NULL ELSE 61 END * - 34 AS col2
----
12444

query II rowsort
SELECT + 60 AS col1, 12 AS col1
----
60
12

query II rowsort
SELECT 15 AS col0, - 36 AS col0
----
15
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-4088
SELECT ALL + 73 * - - COUNT( * ) AS col1, 40 AS col2
----
73
40

skipif mysql # not compatible
query II rowsort label-4088
SELECT ALL + 73 * - - COUNT ( * ) AS col1, 40 AS col2
----
73
40

query I rowsort
SELECT 86 - - + 56
----
142

query I rowsort
SELECT ( - 78 ) * 97 * - ( + 27 )
----
204282

onlyif mysql # DIV for integer division: 
query I rowsort label-4091
SELECT - 27 DIV - 11 + + 17 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-4091
SELECT - 27 / - 11 + + 17 AS col2
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4092
SELECT DISTINCT - CASE - + 2 WHEN + + 89 * + 62 THEN - - 26 WHEN + + COUNT( DISTINCT + 4 ) + + COALESCE ( - 92, - COALESCE ( - 76, - ( - 13 ) * - 70 ) ) * 50 THEN 5 + + COUNT( * ) * 90 / - - 69 END, 24 AS col2
----
NULL
24

skipif mysql # not compatible
query II rowsort label-4092
SELECT DISTINCT - CASE - + 2 WHEN + + 89 * + 62 THEN - - 26 WHEN + + COUNT ( DISTINCT + 4 ) + + COALESCE ( - 92, - COALESCE ( - 76, - ( - 13 ) * - 70 ) ) * 50 THEN 5 + + COUNT ( * ) * 90 / - - 69 END, 24 AS col2
----
NULL
24

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4094
SELECT + 26, COUNT( * ) * + 41 * - 69 AS col1
----
26
-2829

skipif mysql # not compatible
query II rowsort label-4094
SELECT + 26, COUNT ( * ) * + 41 * - 69 AS col1
----
26
-2829

onlyif mysql # DIV for integer division: 
query II rowsort label-4095
SELECT ALL - 47 AS col2, + 3 DIV - 17 AS col2
----
-47
0

skipif mysql # not compatible
query II rowsort label-4095
SELECT ALL - 47 AS col2, + 3 / - 17 AS col2
----
-47
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4096
SELECT ALL CAST( - 9 AS SIGNED ) * - + 28 AS col0
----
252

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL CAST ( - 9 AS INTEGER ) * - + 28 AS col0
----
252

query I rowsort
SELECT - 67 * + 52 + - + 73 AS col1
----
-3557

query I rowsort
SELECT DISTINCT - COALESCE ( - 60, + 68 * 37 - 31, + COALESCE ( - 51, + 21 ) ) AS col2
----
60

query II rowsort
SELECT 39, 16 AS col1
----
39
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4100
SELECT + 83 DIV - CAST( 46 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4100
SELECT + 83 / - CAST ( 46 AS INTEGER )
----
-1

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

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL + - 84 / + CAST ( NULL AS REAL ) AS col0
----
NULL

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

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

query I rowsort
SELECT + 10 + - 98 AS col0
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-4104
SELECT 72 * 73 DIV + 2 AS col0
----
2628

skipif mysql # not compatible
query I rowsort label-4104
SELECT 72 * 73 / + 2 AS col0
----
2628

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL + NULLIF ( COUNT( * ), 59 ) * + 94 * - 73
----
-6862

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL + NULLIF ( COUNT ( * ), 59 ) * + 94 * - 73
----
-6862

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT - 33 * - COUNT( * ) * + + 72
----
2376

skipif mysql # not compatible
query I rowsort label-4106
SELECT - 33 * - COUNT ( * ) * + + 72
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT DISTINCT - + 41 * - - MAX( ALL + + 92 )
----
-3772

skipif mysql # not compatible
query I rowsort label-4107
SELECT DISTINCT - + 41 * - - MAX ( ALL + + 92 )
----
-3772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4108
SELECT 95 * - CAST( NULL AS SIGNED ) * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4108
SELECT 95 * - CAST ( NULL AS INTEGER ) * - 42
----
NULL

query I rowsort
SELECT - 60 + + 25 - + + 71 AS col1
----
-106

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

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL + 48 * + COUNT ( * ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT COUNT( * ) * - COUNT( * ) * + - 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-4111
SELECT COUNT ( * ) * - COUNT ( * ) * + - 76 AS col1
----
76

query I rowsort
SELECT + 8 - - - 66 col2
----
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT ALL - 56 + 45 + - - COUNT( * ) + CASE 35 WHEN - 41 + - 55 THEN NULL WHEN 95 THEN - 12 * + + 33 + - + 27 END + - + SUM( + + 1 ) + + - 36 * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL - 56 + 45 + - - COUNT ( * ) + CASE 35 WHEN - 41 + - 55 THEN NULL WHEN 95 THEN - 12 * + + 33 + - + 27 END + - + SUM ( + + 1 ) + + - 36 * + 3
----
NULL

query I rowsort
SELECT 74 - 94
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT DISTINCT - 31 + - + COUNT( * ) + - 40 * - - 92
----
-3712

skipif mysql # not compatible
query I rowsort label-4116
SELECT DISTINCT - 31 + - + COUNT ( * ) + - 40 * - - 92
----
-3712

query II rowsort
SELECT DISTINCT CASE + - 77 WHEN - - 51 THEN - 35 END * + - 9, 24 AS col0
----
NULL
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4118
SELECT DISTINCT 95 + - - ( - + 3 ) + + - CAST( - + 85 AS SIGNED ) AS col0
----
177

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT 95 + - - ( - + 3 ) + + - CAST ( - + 85 AS INTEGER ) AS col0
----
177

query I rowsort
SELECT DISTINCT ( - 23 ) + + 11 + - + 71 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT DISTINCT COUNT( * ) * - 4 * + 27 col2
----
-108

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT COUNT ( * ) * - 4 * + 27 col2
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-4121
SELECT 12 * ( - 63 ) * COUNT( 38 ) AS col0, - 87 col2
----
-756
-87

skipif mysql # not compatible
query II rowsort label-4121
SELECT 12 * ( - 63 ) * COUNT ( 38 ) AS col0, - 87 col2
----
-756
-87

query I rowsort
SELECT DISTINCT 47 * 58
----
2726

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT 2 * SUM( - + 78 ) * ( + 21 ) + 65 AS col1
----
-3211

skipif mysql # not compatible
query I rowsort label-4123
SELECT 2 * SUM ( - + 78 ) * ( + 21 ) + 65 AS col1
----
-3211

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT DISTINCT 11 * 93 * - MIN( ALL + 34 ) col1
----
-34782

skipif mysql # not compatible
query I rowsort label-4124
SELECT DISTINCT 11 * 93 * - MIN ( ALL + 34 ) col1
----
-34782

query I rowsort
SELECT 51 * + 34 + + 89 AS col0
----
1823

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4127
SELECT DISTINCT 80 DIV - 56
----
-1

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT 80 / - 56
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT DISTINCT - 6 * SUM( - 34 ) + COUNT( * )
----
205

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT - 6 * SUM ( - 34 ) + COUNT ( * )
----
205

query I rowsort
SELECT + + NULLIF ( + 68, + 50 + + 52 )
----
68

query I rowsort
SELECT - + 84 + - ( 94 )
----
-178

onlyif mysql # aggregate syntax: 
query II rowsort label-4131
SELECT - 50 * + + COUNT( * ), COUNT( * ) + + 21 AS col1
----
-50
22

skipif mysql # not compatible
query II rowsort label-4131
SELECT - 50 * + + COUNT ( * ), COUNT ( * ) + + 21 AS col1
----
-50
22

query I rowsort
SELECT DISTINCT + 71 * - 46 AS col1
----
-3266

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4133
SELECT ALL + - MAX( ALL + - 85 ) * - 48 + 5 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL + - MAX ( ALL + - 85 ) * - 48 + 5 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT DISTINCT - ( - 74 ) * - COUNT( * ) col2
----
-74

skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT - ( - 74 ) * - COUNT ( * ) col2
----
-74

query II rowsort
SELECT - + 41 + + 80 AS col1, 53 * - + 15 AS col2
----
39
-795

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT DISTINCT + 19 + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT + 19 + COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT DISTINCT + MAX( 73 ) + - 71 col0
----
2

skipif mysql # not compatible
query I rowsort label-4137
SELECT DISTINCT + MAX ( 73 ) + - 71 col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4138
SELECT ALL - + CASE 56 WHEN - 44 DIV - + 51 THEN + 76 WHEN - + 83 THEN 6 + - 40 DIV 70 ELSE - 59 END + 67 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL - + CASE 56 WHEN - 44 / - + 51 THEN + 76 WHEN - + 83 THEN 6 + - 40 / 70 ELSE - 59 END + 67 AS col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL + 17 + + 94 + + COUNT( * ) * + 44 * + - 7
----
-197

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL + 17 + + 94 + + COUNT ( * ) * + 44 * + - 7
----
-197

query I rowsort
SELECT ALL - 27 * + 41 * + + 88
----
-97416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4141
SELECT 27, COALESCE ( - - COUNT( * ), - 45 - - CASE - ( - 11 ) WHEN COUNT( * ) * + 98 - - - 96 + 67 THEN NULL WHEN + - 38 / 1 + - - 59 - + CAST( - - MAX( DISTINCT 63 ) AS SIGNED ) / + ( + + 69 ) - - 54 THEN 64 + + 32 + + 54 END ) AS col2
----
27
1

skipif mysql # not compatible
query II rowsort label-4141
SELECT 27, COALESCE ( - - COUNT ( * ), - 45 - - CASE - ( - 11 ) WHEN COUNT ( * ) * + 98 - - - 96 + 67 THEN NULL WHEN + - 38 / 1 + - - 59 - + CAST ( - - MAX ( DISTINCT 63 ) AS INTEGER ) / + ( + + 69 ) - - 54 THEN 64 + + 32 + + 54 END ) AS col2
----
27
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL - COUNT( * ) + 36 - - 34 * 68 AS col0
----
2347

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL - COUNT ( * ) + 36 - - 34 * 68 AS col0
----
2347

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4144
SELECT ALL + 82 - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0, 97 * + 91 + + 83 + + ( - + COUNT( * ) )
----
NULL
8909

skipif mysql # not compatible
query II rowsort label-4144
SELECT ALL + 82 - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, 97 * + 91 + + 83 + + ( - + COUNT ( * ) )
----
NULL
8909

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4146
SELECT DISTINCT ( + COALESCE ( - + NULLIF ( 16, + 52 * - 75 ), 3 DIV - 1 * + - 89 DIV + 64 * - COUNT( * ) DIV + + AVG ( ALL + 26 ) + - 34 * - 52 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT ( + COALESCE ( - + NULLIF ( 16, + 52 * - 75 ), 3 / - 1 * + - 89 / + 64 * - COUNT ( * ) / + + AVG ( ALL + 26 ) + - 34 * - 52 ) )
----
-16

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

query I rowsort
SELECT - 12 * 3 AS col0
----
-36

query I rowsort
SELECT + 18 + + - 92
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4150
SELECT DISTINCT CASE - 67 WHEN CAST( + + 26 AS DECIMAL ) THEN - 19 * - CASE - 3 WHEN ( COUNT( * ) ) + - CAST( NULL AS SIGNED ) THEN + - 63 WHEN + 69 THEN NULL ELSE NULL END - + ( + 83 ) ELSE + 74 * - + 16 * CAST( - 45 AS SIGNED ) + + COUNT( * ) END AS col1
----
53281

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT CASE - 67 WHEN CAST ( + + 26 AS REAL ) THEN - 19 * - CASE - 3 WHEN ( COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) THEN + - 63 WHEN + 69 THEN NULL ELSE NULL END - + ( + 83 ) ELSE + 74 * - + 16 * CAST ( - 45 AS INTEGER ) + + COUNT ( * ) END AS col1
----
53281

query I rowsort
SELECT - 82 * + 77
----
-6314

query II rowsort
SELECT 51 AS col0, - 67 AS col1
----
51
-67

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4154
SELECT CAST( + + 12 AS SIGNED ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4154
SELECT CAST ( + + 12 AS INTEGER ) AS col0
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT + 52 + COUNT( * ) col1
----
53

skipif mysql # not compatible
query I rowsort label-4156
SELECT + 52 + COUNT ( * ) col1
----
53

query I rowsort
SELECT DISTINCT 57 * + 54
----
3078

query II rowsort
SELECT + 52 AS col0, 19 AS col1
----
52
19

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-4160
SELECT + 14 AS col0, 48 + 37 DIV + 55 * - 82
----
14
48

skipif mysql # not compatible
query II rowsort label-4160
SELECT + 14 AS col0, 48 + 37 / + 55 * - 82
----
14
48

query I rowsort
SELECT + + 36 * 35 AS col0
----
1260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4162
SELECT ALL 16 * - + 27 + + 78 + + - 41 + - - CASE - 6 WHEN - 21 THEN - 73 WHEN - 15 THEN - 11 + + 41 END * + CAST( - 24 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL 16 * - + 27 + + 78 + + - 41 + - - CASE - 6 WHEN - 21 THEN - 73 WHEN - 15 THEN - 11 + + 41 END * + CAST ( - 24 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT 70 * + 15 - - - COALESCE ( 2, + - COUNT( * ) + + 94 ) + + COUNT( * )
----
1049

skipif mysql # not compatible
query I rowsort label-4163
SELECT 70 * + 15 - - - COALESCE ( 2, + - COUNT ( * ) + + 94 ) + + COUNT ( * )
----
1049

query I rowsort
SELECT + - 12 - + 50 col1
----
-62

query I rowsort
SELECT DISTINCT + NULLIF ( - - 31, 96 ) AS col2
----
31

query I rowsort
SELECT + - 9 * + 42 + + 30
----
-348

query II rowsort
SELECT + + 70 AS col2, + 85 - + 35 AS col0
----
70
50

query I rowsort
SELECT - - 29 + + - 1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT ALL - SUM( - 39 ) * + 37 - + + 79 col0
----
1364

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL - SUM ( - 39 ) * + 37 - + + 79 col0
----
1364

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

skipif mysql # not compatible
query I rowsort label-4170
SELECT DISTINCT + CAST ( + 37 AS INTEGER ) * + + 96 + + + COUNT ( * ) AS col1
----
3553

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT COUNT( ALL - 5 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4172
SELECT COUNT ( ALL - 5 ) col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4173
SELECT + ( 20 ) - + 73 + - + 79 + - ( + + ( - 2 ) ) + 56 DIV ( + + 77 ) * + 1 * + 45
----
-130

skipif mysql # not compatible
query I rowsort label-4173
SELECT + ( 20 ) - + 73 + - + 79 + - ( + + ( - 2 ) ) + 56 / ( + + 77 ) * + 1 * + 45
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT + COUNT( ( + 12 ) ) * + 76 - - 42 AS col2
----
118

skipif mysql # not compatible
query I rowsort label-4174
SELECT + COUNT ( ( + 12 ) ) * + 76 - - 42 AS col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT + COUNT( * ) + CASE + ( + - 25 ) WHEN - 55 THEN 89 END * 83 + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT + COUNT ( * ) + CASE + ( + - 25 ) WHEN - 55 THEN 89 END * 83 + - 48
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4176
SELECT DISTINCT - 14 DIV - 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT - 14 / - 29 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT ALL + MIN( DISTINCT - + 70 ) * 11
----
-770

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL + MIN ( DISTINCT - + 70 ) * 11
----
-770

query I rowsort
SELECT - 65 * + 70 * - 70 AS col0
----
318500

onlyif mysql # DIV for integer division: 
query I rowsort label-4179
SELECT ALL 70 DIV + 20 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL 70 / + 20 AS col2
----
3

query I rowsort
SELECT DISTINCT NULLIF ( 96, + - 23 * 13 )
----
96

query I rowsort
SELECT ALL + 97 * - 40 AS col2
----
-3880

query I rowsort
SELECT 31 - - ( + + 48 ) AS col2
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-4183
SELECT 2 DIV 17 col2
----
0

skipif mysql # not compatible
query I rowsort label-4183
SELECT 2 / 17 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT 41 + + 50 + COUNT( * ) + 50 AS col0
----
142

skipif mysql # not compatible
query I rowsort label-4184
SELECT 41 + + 50 + COUNT ( * ) + 50 AS col0
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT ALL + CAST( + 55 AS SIGNED ) + + 8 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL + CAST ( + 55 AS INTEGER ) + + 8 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT + + SUM( DISTINCT - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-4186
SELECT + + SUM ( DISTINCT - 17 )
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4187
SELECT ALL + - 10 + - - COALESCE ( + 32, + - ( 10 ) + ( - - 60 ), - - CAST( NULL AS SIGNED ), + 31 * - + 63 ) + - 15 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL + - 10 + - - COALESCE ( + 32, + - ( 10 ) + ( - - 60 ), - - CAST ( NULL AS INTEGER ), + 31 * - + 63 ) + - 15 AS col2
----
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ALL 25 + + - COUNT( DISTINCT + + 19 ) * + - COUNT( * ) + - - 70 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL 25 + + - COUNT ( DISTINCT + + 19 ) * + - COUNT ( * ) + - - 70 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT ALL - 21 + + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL - 21 + + COUNT ( * )
----
-20

query II rowsort
SELECT DISTINCT + ( - ( - 54 ) ) * - 28 + - 24, 88 AS col2
----
-1536
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT ALL 96 + 48 + - 96 + + 51 + - COUNT( DISTINCT - 39 ) * - ( + + 36 ) AS col0
----
135

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL 96 + 48 + - 96 + + 51 + - COUNT ( DISTINCT - 39 ) * - ( + + 36 ) AS col0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4194
SELECT CAST( + 33 AS SIGNED ) + - 58
----
-25

skipif mysql # not compatible
query I rowsort label-4194
SELECT CAST ( + 33 AS INTEGER ) + - 58
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-4195
SELECT DISTINCT 14 * 77 - 9 DIV + - 4 AS col2
----
1080

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT 14 * 77 - 9 / + - 4 AS col2
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT - NULLIF ( + + 60, - + 73 * - COUNT( * ) ) * COUNT( * ) + 40 + ( - - 18 )
----
-2

skipif mysql # not compatible
query I rowsort label-4196
SELECT - NULLIF ( + + 60, - + 73 * - COUNT ( * ) ) * COUNT ( * ) + 40 + ( - - 18 )
----
-2

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4199
SELECT - 29 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-4199
SELECT - 29 / 61
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4200
SELECT ( - - COALESCE ( + - 11, 49 - 92, + 34 + + - 30 DIV - 60 + - - 50 ) ) + + 10 + + 62 * + + 77
----
4773

skipif mysql # not compatible
query I rowsort label-4200
SELECT ( - - COALESCE ( + - 11, 49 - 92, + 34 + + - 30 / - 60 + - - 50 ) ) + + 10 + + 62 * + + 77
----
4773

query I rowsort
SELECT 18 * - - 15 + + 79 * - 9 AS col2
----
-441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4202
SELECT - 93 * - CAST( - MAX( ALL + 13 ) AS SIGNED ) - 88, 16 AS col0
----
-1297
16

skipif mysql # not compatible
query II rowsort label-4202
SELECT - 93 * - CAST ( - MAX ( ALL + 13 ) AS INTEGER ) - 88, 16 AS col0
----
-1297
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL 83 * COUNT( * ) * - 49 * + + 9 AS col0
----
-36603

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL 83 * COUNT ( * ) * - 49 * + + 9 AS col0
----
-36603

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT COUNT( DISTINCT + + 5 ) + + + 88
----
89

skipif mysql # not compatible
query I rowsort label-4204
SELECT COUNT ( DISTINCT + + 5 ) + + + 88
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4205
SELECT DISTINCT COUNT( * ) * + CAST( - 41 AS SIGNED ) AS col2, + 37
----
-41
37

skipif mysql # not compatible
query II rowsort label-4205
SELECT DISTINCT COUNT ( * ) * + CAST ( - 41 AS INTEGER ) AS col2, + 37
----
-41
37

query II rowsort
SELECT DISTINCT 2, 50 AS col0
----
2
50

query I rowsort
SELECT 41 + + 75
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4208
SELECT ALL COALESCE ( - - MIN( DISTINCT + - CAST( 1 AS SIGNED ) ), + 13 ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL COALESCE ( - - MIN ( DISTINCT + - CAST ( 1 AS INTEGER ) ), + 13 ) + - COUNT ( * )
----
-2

query II rowsort
SELECT DISTINCT 16 AS col0, + COALESCE ( - 30, - - 3 ) - - 50 AS col2
----
16
20

query II rowsort
SELECT - 18 col1, 8 * 35 + - 35
----
-18
245

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4212
SELECT DISTINCT + MAX( ALL 11 ) + - 97 * - ( - 86 ), + COUNT( * ) AS col2
----
-8331
1

skipif mysql # not compatible
query II rowsort label-4212
SELECT DISTINCT + MAX ( ALL 11 ) + - 97 * - ( - 86 ), + COUNT ( * ) AS col2
----
-8331
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4213
SELECT ALL - 25 + - - 45 + - 99 + - 2 + + CAST( NULL AS SIGNED ) / + ( + - SUM( + + 20 ) ) * + 4 * - 61 * - + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL - 25 + - - 45 + - 99 + - 2 + + CAST ( NULL AS INTEGER ) / + ( + - SUM ( + + 20 ) ) * + 4 * - 61 * - + 81
----
NULL

query II rowsort
SELECT - + 92 AS col1, - 58 AS col1
----
-92
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4215
SELECT DISTINCT - 97 col1, 68 + - COUNT( * ) * + + 31
----
-97
37

skipif mysql # not compatible
query II rowsort label-4215
SELECT DISTINCT - 97 col1, 68 + - COUNT ( * ) * + + 31
----
-97
37

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

skipif mysql # not compatible
query I rowsort label-4216
SELECT + SUM ( 47 )
----
47

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4218
SELECT ALL + CAST( - - CAST( + 78 AS SIGNED ) AS SIGNED ) * - NULLIF ( 94, - 37 ) + - - COUNT( * ) AS col1
----
-7331

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL + CAST ( - - CAST ( + 78 AS INTEGER ) AS INTEGER ) * - NULLIF ( 94, - 37 ) + - - COUNT ( * ) AS col1
----
-7331

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

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

query II rowsort
SELECT ( - 46 ) - + 19 AS col1, + 55
----
-65
55

query I rowsort
SELECT ALL - - COALESCE ( 37, + 45, - 34 * ( + 25 ) ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT 34 * - CASE COUNT( + NULLIF ( + + 78, - - 61 ) ) WHEN COUNT( * ) + - ( - + 54 ) + - 56 * + + 26 THEN MAX( + 83 ) + + 76 - + 67 END * - 10 - 23 * - 86 * + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4222
SELECT 34 * - CASE COUNT ( + NULLIF ( + + 78, - - 61 ) ) WHEN COUNT ( * ) + - ( - + 54 ) + - 56 * + + 26 THEN MAX ( + 83 ) + + 76 - + 67 END * - 10 - 23 * - 86 * + - 1
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( 87, ( - + 39 ) )
----
-87

query I rowsort
SELECT - 99 * 59 col0
----
-5841

query II rowsort
SELECT ALL - - 69, + 72 * 56 AS col1
----
69
4032

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

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

query I rowsort
SELECT ALL + 23 * + 87 * - - 79
----
158079

query I rowsort
SELECT DISTINCT + 14 * - 24
----
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT 22 + + SUM( DISTINCT - 44 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-4229
SELECT 22 + + SUM ( DISTINCT - 44 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT ALL CASE + + ( + 57 ) WHEN MAX( DISTINCT + 43 ) THEN + 29 + + 60 END * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL CASE + + ( + 57 ) WHEN MAX ( DISTINCT + 43 ) THEN + 29 + + 60 END * - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT COUNT( ALL - 53 ) * + 46 * - 23 * + 0 * + + CASE + 0 WHEN + COUNT( * ) THEN + - 27 * + ( - 13 ) WHEN COALESCE ( - - 12, 71 ) THEN + + 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4231
SELECT COUNT ( ALL - 53 ) * + 46 * - 23 * + 0 * + + CASE + 0 WHEN + COUNT ( * ) THEN + - 27 * + ( - 13 ) WHEN COALESCE ( - - 12, 71 ) THEN + + 95 END
----
NULL

query II rowsort
SELECT DISTINCT - 73, - 78 + + 21 * - 69 AS col1
----
-73
-1527

query I rowsort
SELECT DISTINCT NULLIF ( - 78, 13 )
----
-78

query I rowsort
SELECT + 59 * + 16 AS col0
----
944

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT - MAX( - - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-4235
SELECT - MAX ( - - 60 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT - MAX( - - ( + - 72 ) ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4236
SELECT - MAX ( - - ( + - 72 ) ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT ALL COUNT( * ) + - 83 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL COUNT ( * ) + - 83 AS col2
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4238
SELECT 42 AS col2, - 6 + CAST( 16 AS SIGNED ) AS col0
----
42
10

skipif mysql # not compatible
query II rowsort label-4238
SELECT 42 AS col2, - 6 + CAST ( 16 AS INTEGER ) AS col0
----
42
10

query I rowsort
SELECT - 5 / + 34 * CASE - ( - 35 ) WHEN + 73 THEN 27 END * + 13 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4240
SELECT + 11 DIV + 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4240
SELECT + 11 / + 23 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT + MAX( ALL + 43 ) * + - 79
----
-3397

skipif mysql # not compatible
query I rowsort label-4241
SELECT + MAX ( ALL + 43 ) * + - 79
----
-3397

onlyif mysql # aggregate syntax: 
query II rowsort label-4242
SELECT + 99 + - 89 AS col2, + 69 - 14 + 46 + - + 53 * - CASE + 91 WHEN ( + + 49 ) THEN - 30 - COUNT( * ) * + COUNT( * ) END - - + SUM( + - 12 ) * CASE - 12 WHEN + 35 THEN - 27 ELSE 2 * + COUNT( - 4 ) END
----
10
NULL

skipif mysql # not compatible
query II rowsort label-4242
SELECT + 99 + - 89 AS col2, + 69 - 14 + 46 + - + 53 * - CASE + 91 WHEN ( + + 49 ) THEN - 30 - COUNT ( * ) * + COUNT ( * ) END - - + SUM ( + - 12 ) * CASE - 12 WHEN + 35 THEN - 27 ELSE 2 * + COUNT ( - 4 ) END
----
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT ALL 70 + MIN( DISTINCT 22 )
----
92

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL 70 + MIN ( DISTINCT 22 )
----
92

query I rowsort
SELECT + 75 + - ( + 83 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT + MAX( - + 69 ) + COUNT( * ) * 25 - - - 66
----
-110

skipif mysql # not compatible
query I rowsort label-4245
SELECT + MAX ( - + 69 ) + COUNT ( * ) * 25 - - - 66
----
-110

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

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

query II rowsort
SELECT 56, 11 * 58 col2
----
56
638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4248
SELECT + + 74 - + + CASE - 25 WHEN + 77 + + 47 THEN - 20 * + 33 + + ( + COUNT( * ) ) + + 38 WHEN 5 / 66 THEN 85 - - MIN( - 58 ) ELSE - CAST( NULL AS SIGNED ) END, 66 * + + 1 AS col1
----
NULL
66

skipif mysql # not compatible
query II rowsort label-4248
SELECT + + 74 - + + CASE - 25 WHEN + 77 + + 47 THEN - 20 * + 33 + + ( + COUNT ( * ) ) + + 38 WHEN 5 / 66 THEN 85 - - MIN ( - 58 ) ELSE - CAST ( NULL AS INTEGER ) END, 66 * + + 1 AS col1
----
NULL
66

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4250
SELECT DISTINCT 46 + 82 + - 77 * + - 82 * COUNT( * ) DIV - + COUNT( * ) + + - 22
----
-6208

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT 46 + 82 + - 77 * + - 82 * COUNT ( * ) / - + COUNT ( * ) + + - 22
----
-6208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4251
SELECT ALL - CASE + + 57 WHEN NULLIF ( 25, + - 63 ) THEN + 5 - + 82 / + 48 * - - 59 ELSE NULL END + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL - CASE + + 57 WHEN NULLIF ( 25, + - 63 ) THEN + 5 - + 82 / + 48 * - - 59 ELSE NULL END + - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT + - 88 * 47 + - 80 * COUNT( * )
----
-4216

skipif mysql # not compatible
query I rowsort label-4252
SELECT + - 88 * 47 + - 80 * COUNT ( * )
----
-4216

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4253
SELECT ALL 0 AS col0, 11 DIV + + ( + 18 ) + + + 19 * - 48 * + 29 * - + 50 + - SUM( DISTINCT - 29 ) + 77 * + - 20 + + 30 AS col0
----
0
1320919

skipif mysql # not compatible
query II rowsort label-4253
SELECT ALL 0 AS col0, 11 / + + ( + 18 ) + + + 19 * - 48 * + 29 * - + 50 + - SUM ( DISTINCT - 29 ) + 77 * + - 20 + + 30 AS col0
----
0
1320919

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT - COUNT( * ) * - 97 * COALESCE ( 91, 97 ) AS col0
----
8827

skipif mysql # not compatible
query I rowsort label-4255
SELECT - COUNT ( * ) * - 97 * COALESCE ( 91, 97 ) AS col0
----
8827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4256
SELECT ALL + - 30 / + - CASE - 49 WHEN NULLIF ( - - MIN( ALL - 9 ), + ( CAST( + 91 AS SIGNED ) ) ) THEN - + 48 * + 69 * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - - 67 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL + - 30 / + - CASE - 49 WHEN NULLIF ( - - MIN ( ALL - 9 ), + ( CAST ( + 91 AS INTEGER ) ) ) THEN - + 48 * + 69 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - - 67 END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4257
SELECT + SUM( ALL + COALESCE ( + 26, 84 DIV + 32 * + + 36 ) )
----
26

skipif mysql # not compatible
query I rowsort label-4257
SELECT + SUM ( ALL + COALESCE ( + 26, 84 / + 32 * + + 36 ) )
----
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT ALL 51 * - COUNT( * ) + - 40 - - ( - + 65 )
----
-156

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL 51 * - COUNT ( * ) + - 40 - - ( - + 65 )
----
-156

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

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

query I rowsort
SELECT ALL - + 63 * + 82
----
-5166

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4262
SELECT + + 12 DIV - CAST( - 53 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4262
SELECT + + 12 / - CAST ( - 53 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4263
SELECT - CAST( NULL AS SIGNED ) * - + 95 + - + 55 * 20 * ( + 12 ) * 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT - CAST ( NULL AS INTEGER ) * - + 95 + - + 55 * 20 * ( + 12 ) * 46 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4264
SELECT - 33 * + 32 * + + COUNT( * ) * + - 89 / + 62 + + 71 + - COALESCE ( 5, + - 78 / + + ( - NULLIF ( 37, + 60 ) ), + + AVG ( + - 95 ) + - + 60 ) + + CAST( NULL AS SIGNED ) - ( - - 12 ) * - - CASE + + 9 WHEN - + CASE + ( - 26 ) WHEN + ( 54 ) THEN NULL WHEN 84 THEN - 98 - 12 WHEN NULLIF ( MAX( 82 ), 46 + COUNT( * ) ) / 19 THEN NULL END THEN NULL WHEN MIN( - 51 ) THEN + COUNT( * ) END + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT - 33 * + 32 * + + COUNT ( * ) * + - 89 / + 62 + + 71 + - COALESCE ( 5, + - 78 / + + ( - NULLIF ( 37, + 60 ) ), + + AVG ( + - 95 ) + - + 60 ) + + CAST ( NULL AS INTEGER ) - ( - - 12 ) * - - CASE + + 9 WHEN - + CASE + ( - 26 ) WHEN + ( 54 ) THEN NULL WHEN 84 THEN - 98 - 12 WHEN NULLIF ( MAX ( 82 ), 46 + COUNT ( * ) ) / 19 THEN NULL END THEN NULL WHEN MIN ( - 51 ) THEN + COUNT ( * ) END + + 69
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4265
SELECT - ( - ( - COUNT( * ) ) ) + 14 + + 15 * - ( - 40 ) - 66 + 15 DIV 95 DIV + 41
----
547

skipif mysql # not compatible
query I rowsort label-4265
SELECT - ( - ( - COUNT ( * ) ) ) + 14 + + 15 * - ( - 40 ) - 66 + 15 / 95 / + 41
----
547

query I rowsort
SELECT NULLIF ( + 21, - 22 )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4267
SELECT - 65 * - + CAST( NULL AS SIGNED ), - 33 * - CASE - - COUNT( * ) WHEN 67 THEN NULL ELSE - 26 + + 95 END AS col2
----
NULL
2277

skipif mysql # not compatible
query II rowsort label-4267
SELECT - 65 * - + CAST ( NULL AS INTEGER ), - 33 * - CASE - - COUNT ( * ) WHEN 67 THEN NULL ELSE - 26 + + 95 END AS col2
----
NULL
2277

query I rowsort
SELECT ALL + ( + 41 ) * - + 40 + + 3
----
-1637

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT NULLIF ( - + 98, - COUNT( * ) + ( - 21 ) + - 42 ) col1
----
-98

skipif mysql # not compatible
query I rowsort label-4269
SELECT NULLIF ( - + 98, - COUNT ( * ) + ( - 21 ) + - 42 ) col1
----
-98

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

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

query I rowsort
SELECT ALL - 15 * - - 55 + - 51 AS col1
----
-876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4272
SELECT DISTINCT CAST( COALESCE ( 2, - - COUNT( * ), - 73 ) AS SIGNED ) AS col2, - 5 AS col1
----
2
-5

skipif mysql # not compatible
query II rowsort label-4272
SELECT DISTINCT CAST ( COALESCE ( 2, - - COUNT ( * ), - 73 ) AS INTEGER ) AS col2, - 5 AS col1
----
2
-5

query I rowsort
SELECT ALL + 15 * - + 29 * + 59 * + + 89 + 52 - + 2
----
-2284135

query I rowsort
SELECT - 99 + 2 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT SUM( DISTINCT - 67 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-4275
SELECT SUM ( DISTINCT - 67 ) AS col2
----
-67

query II rowsort
SELECT DISTINCT ( 7 ), + 27 AS col1
----
7
27

query I rowsort
SELECT ALL 63 + - 68 + - 21 AS col2
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4278
SELECT - 69 + + COUNT( * ) + ( - + 98 ) + + 3 + + 81 + + + 58 * - CAST( - 16 AS SIGNED ) * - 62 * + + CAST( NULL AS SIGNED ) / - 64 + + 17 + COUNT( * ) * + NULLIF ( CAST( NULL AS SIGNED ), + 57 / + 63 + - 58 ) * + NULLIF ( COUNT( * ), 71 ) * - 83 + 8 / - + 46, MIN( - 14 ) AS col2
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-4278
SELECT - 69 + + COUNT ( * ) + ( - + 98 ) + + 3 + + 81 + + + 58 * - CAST ( - 16 AS INTEGER ) * - 62 * + + CAST ( NULL AS INTEGER ) / - 64 + + 17 + COUNT ( * ) * + NULLIF ( CAST ( NULL AS INTEGER ), + 57 / + 63 + - 58 ) * + NULLIF ( COUNT ( * ), 71 ) * - 83 + 8 / - + 46, MIN ( - 14 ) AS col2
----
NULL
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4279
SELECT ALL CAST( - NULLIF ( + - 55, + 95 * - + 1 * + 84 ) AS SIGNED ) col1
----
55

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL CAST ( - NULLIF ( + - 55, + 95 * - + 1 * + 84 ) AS INTEGER ) col1
----
55

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

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 14
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4281
SELECT ALL + CAST( NULL AS SIGNED ) / + 31 AS col1, 26 AS col0
----
NULL
26

skipif mysql # not compatible
query II rowsort label-4281
SELECT ALL + CAST ( NULL AS INTEGER ) / + 31 AS col1, 26 AS col0
----
NULL
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4282
SELECT + + 28 + - CAST( NULL AS SIGNED ) * 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4282
SELECT + + 28 + - CAST ( NULL AS INTEGER ) * 34 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT ALL NULLIF ( - 55, MIN( ALL 28 ) * + 72 ) - 18 - 9 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL NULLIF ( - 55, MIN ( ALL 28 ) * + 72 ) - 18 - 9 AS col2
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-4284
SELECT - 18 * 6 DIV - + 69
----
1

skipif mysql # not compatible
query I rowsort label-4284
SELECT - 18 * 6 / - + 69
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4285
SELECT + COALESCE ( ( - COUNT( * ) ), + 29 + + - 60, + + 62 ) + - 38 AS col0, - 47, COUNT( * ) * COUNT( * ) DIV - - 36 col0
----
-39
-47
0

skipif mysql # not compatible
query III rowsort label-4285
SELECT + COALESCE ( ( - COUNT ( * ) ), + 29 + + - 60, + + 62 ) + - 38 AS col0, - 47, COUNT ( * ) * COUNT ( * ) / - - 36 col0
----
-39
-47
0

query II rowsort
SELECT ALL 76 * - - 38, - 14 AS col1
----
2888
-14

query I rowsort
SELECT DISTINCT 3 * + 36 AS col0
----
108

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4290
SELECT - 17 DIV - - 63 col2
----
0

skipif mysql # not compatible
query I rowsort label-4290
SELECT - 17 / - - 63 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4291
SELECT NULLIF ( + CAST( 84 AS SIGNED ), COUNT( * ) ) * - 90 + COUNT( * ) + - CAST( + - 23 AS SIGNED ) - MAX( + - 12 )
----
-7524

skipif mysql # not compatible
query I rowsort label-4291
SELECT NULLIF ( + CAST ( 84 AS INTEGER ), COUNT ( * ) ) * - 90 + COUNT ( * ) + - CAST ( + - 23 AS INTEGER ) - MAX ( + - 12 )
----
-7524

onlyif mysql # DIV for integer division: 
query I rowsort label-4292
SELECT + 66 DIV 1 * + 76
----
5016

skipif mysql # not compatible
query I rowsort label-4292
SELECT + 66 / 1 * + 76
----
5016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4293
SELECT ALL ( + 11 ) DIV + 43 + - MIN( DISTINCT - 82 ) + CAST( - + 76 AS SIGNED ) + + + 54
----
60

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL ( + 11 ) / + 43 + - MIN ( DISTINCT - 82 ) + CAST ( - + 76 AS INTEGER ) + + + 54
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4294
SELECT ALL - CASE 94 WHEN 0 THEN - 18 * + 50 WHEN - 29 - SUM( + 58 ) THEN + 98 * + 89 + - CAST( NULL AS SIGNED ) * 10 * + COUNT( * ) * - ( - COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL - CASE 94 WHEN 0 THEN - 18 * + 50 WHEN - 29 - SUM ( + 58 ) THEN + 98 * + 89 + - CAST ( NULL AS INTEGER ) * 10 * + COUNT ( * ) * - ( - COUNT ( * ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT DISTINCT - CAST( - 27 AS SIGNED ) * + - 27 * - - 62
----
-45198

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT - CAST ( - 27 AS INTEGER ) * + - 27 * - - 62
----
-45198

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL + CASE - 35 WHEN + NULLIF ( + - 2, 79 * + 99 + - 26 + - - 3 * - 43 ) * 19 * + 7 * + + 3 THEN - 33 + - - 47 WHEN - 1 * - - COUNT( * ) * + 46 THEN - COUNT( - 51 ) * + 57 ELSE NULL END + + - CASE 26 WHEN + 0 THEN ( + MAX( ALL + 20 ) ) WHEN - ( - 8 ) * - COUNT( 37 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL + CASE - 35 WHEN + NULLIF ( + - 2, 79 * + 99 + - 26 + - - 3 * - 43 ) * 19 * + 7 * + + 3 THEN - 33 + - - 47 WHEN - 1 * - - COUNT ( * ) * + 46 THEN - COUNT ( - 51 ) * + 57 ELSE NULL END + + - CASE 26 WHEN + 0 THEN ( + MAX ( ALL + 20 ) ) WHEN - ( - 8 ) * - COUNT ( 37 ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4297
SELECT DISTINCT CASE + + 49 WHEN + 81 * - + 1 * 3 + + 29 + + 99 * + - 69 + + 91 + - - 89 THEN + 4 * + 54 + - + SUM( ALL + 30 ) END + - - 13 * 75 * + CAST( - 60 AS DECIMAL ) - - 65 * + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT CASE + + 49 WHEN + 81 * - + 1 * 3 + + 29 + + 99 * + - 69 + + 91 + - - 89 THEN + 4 * + 54 + - + SUM ( ALL + 30 ) END + - - 13 * 75 * + CAST ( - 60 AS REAL ) - - 65 * + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ALL - COUNT( * ) + + 69 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL - COUNT ( * ) + + 69 AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4299
SELECT 31 DIV 77 * + NULLIF ( - CAST( + - 97 AS SIGNED ), + - 8 )
----
0

skipif mysql # not compatible
query I rowsort label-4299
SELECT 31 / 77 * + NULLIF ( - CAST ( + - 97 AS INTEGER ), + - 8 )
----
0

query I rowsort
SELECT 34 - NULLIF ( 57, + + 72 * + 57 ) * + 66 AS col0
----
-3728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4301
SELECT ALL ( + - 96 ) * - - CASE - COALESCE ( + 52, + COALESCE ( + MAX( - 63 ), + 56 / 82 ) ) WHEN + 58 + + 80 THEN - COALESCE ( 99, + + CAST( 19 AS SIGNED ) ) WHEN - 49 + + 53 THEN - 2 END * CAST( 72 AS SIGNED ) * - + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL ( + - 96 ) * - - CASE - COALESCE ( + 52, + COALESCE ( + MAX ( - 63 ), + 56 / 82 ) ) WHEN + 58 + + 80 THEN - COALESCE ( 99, + + CAST ( 19 AS INTEGER ) ) WHEN - 49 + + 53 THEN - 2 END * CAST ( 72 AS INTEGER ) * - + 44 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT DISTINCT - CASE - COUNT( * ) WHEN - 14 + ( + 19 ) THEN + + 63 END * + 73 + - ( 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT - CASE - COUNT ( * ) WHEN - 14 + ( + 19 ) THEN + + 63 END * + 73 + - ( 82 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT NULLIF ( - - COUNT( * ), + COUNT( * ) ) / - + COUNT( * ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4304
SELECT NULLIF ( - - COUNT ( * ), + COUNT ( * ) ) / - + COUNT ( * ) * + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL - 61 + - ( - 95 ) * - 16 + - - 83 + + + COUNT( * )
----
-1497

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL - 61 + - ( - 95 ) * - 16 + - - 83 + + + COUNT ( * )
----
-1497

query II rowsort
SELECT 13 AS col2, + 10 * - 98 * - + 14
----
13
13720

query II rowsort
SELECT DISTINCT 65, - 99 + - - 2 AS col2
----
65
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT ALL - 34 * + COUNT( * ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL - 34 * + COUNT ( * ) AS col1
----
-34

query I rowsort
SELECT 56 * 92
----
5152

query II rowsort
SELECT - - 93 col1, ( + + 80 )
----
93
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT + 2 + + 9 + + + 76 + 87 * + COUNT( * ) AS col1
----
174

skipif mysql # not compatible
query I rowsort label-4311
SELECT + 2 + + 9 + + + 76 + 87 * + COUNT ( * ) AS col1
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT 70 + + - MIN( - 97 )
----
167

skipif mysql # not compatible
query I rowsort label-4312
SELECT 70 + + - MIN ( - 97 )
----
167

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

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

query I rowsort
SELECT + 29 + 58 AS col0
----
87

query I rowsort
SELECT ALL - 11 - 35 AS col1
----
-46

query I rowsort
SELECT ALL ( - - 18 ) col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT - ( - 99 ) * - - 9 * + + COUNT( * )
----
891

skipif mysql # not compatible
query I rowsort label-4317
SELECT - ( - 99 ) * - - 9 * + + COUNT ( * )
----
891

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4319
SELECT ALL 96 DIV + + 77
----
1

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL 96 / + + 77
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT 39 + + 39 * - MAX( ALL 3 )
----
-78

skipif mysql # not compatible
query I rowsort label-4320
SELECT 39 + + 39 * - MAX ( ALL 3 )
----
-78

query I rowsort
SELECT 18 + - 25
----
-7

query II rowsort
SELECT 65 AS col2, 31 + + 53
----
65
84

query I rowsort
SELECT + ( 72 ) + + ( 76 ) + + 46
----
194

query I rowsort
SELECT 8 - + - 88
----
96

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

query I rowsort
SELECT ALL - 10 + - 15 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-4327
SELECT ALL 54 + + COUNT( * ) col0, - 19
----
55
-19

skipif mysql # not compatible
query II rowsort label-4327
SELECT ALL 54 + + COUNT ( * ) col0, - 19
----
55
-19

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

skipif mysql # not compatible
query I rowsort label-4328
SELECT COUNT ( * ) / 56 + - 53
----
-53

query I rowsort
SELECT 60 * + 14 AS col0
----
840

query I rowsort
SELECT 2 * + 68 + + 35
----
171

query I rowsort
SELECT DISTINCT + 20 * - 18 AS col1
----
-360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4332
SELECT ALL ( + + COUNT( * ) ) - 23 DIV - 83 + 1 DIV - 99 col1
----
1

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL ( + + COUNT ( * ) ) - 23 / - 83 + 1 / - 99 col1
----
1

query I rowsort
SELECT 66 + + 14
----
80

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

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

query I rowsort
SELECT ALL 4 * 54 AS col2
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4336
SELECT COALESCE ( + 26, + 86 * + - ( + - 68 ) + 57 + 97 * + - ( 68 ), 9 * - ( 18 ) + + - 4 + ( + COALESCE ( - 81, - CASE + COALESCE ( - 69, - 45, + 98 * - 59 * COUNT( * ) + + 56 + 3 / - 79 ) WHEN - COALESCE ( + 33, - 35, + COUNT( * ) * 96, 10 * + 20 + + 38 ) THEN - 97 * COUNT( * ) + + 8 ELSE 70 * - ( 4 ) END * 92, - 7 ) ) * ( 75 * - 29 ) ) / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4336
SELECT COALESCE ( + 26, + 86 * + - ( + - 68 ) + 57 + 97 * + - ( 68 ), 9 * - ( 18 ) + + - 4 + ( + COALESCE ( - 81, - CASE + COALESCE ( - 69, - 45, + 98 * - 59 * COUNT ( * ) + + 56 + 3 / - 79 ) WHEN - COALESCE ( + 33, - 35, + COUNT ( * ) * 96, 10 * + 20 + + 38 ) THEN - 97 * COUNT ( * ) + + 8 ELSE 70 * - ( 4 ) END * 92, - 7 ) ) * ( 75 * - 29 ) ) / CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT ( + COUNT ( ALL 99 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT DISTINCT - + 85 * - CASE + 57 WHEN - + CASE - 92 WHEN + - 97 THEN NULL ELSE + 19 END THEN NULL WHEN - COALESCE ( - 83, - - COUNT( * ) - - 67 - - - 26 + COUNT( * ) + + ( + 68 ) + + COUNT( * ) * 62 * 64, - ( - - 49 ) ) * - + ( + 55 ) THEN + 87 * - 72 * 67 - + COUNT( * ) + + - 30 + - + 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT DISTINCT - + 85 * - CASE + 57 WHEN - + CASE - 92 WHEN + - 97 THEN NULL ELSE + 19 END THEN NULL WHEN - COALESCE ( - 83, - - COUNT ( * ) - - 67 - - - 26 + COUNT ( * ) + + ( + 68 ) + + COUNT ( * ) * 62 * 64, - ( - - 49 ) ) * - + ( + 55 ) THEN + 87 * - 72 * 67 - + COUNT ( * ) + + - 30 + - + 17 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT - 94 * COUNT( * ) + - + 97
----
-191

skipif mysql # not compatible
query I rowsort label-4339
SELECT - 94 * COUNT ( * ) + - + 97
----
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT DISTINCT + - COUNT( * ) + 96 * - 60 AS col1
----
-5761

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT + - COUNT ( * ) + 96 * - 60 AS col1
----
-5761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4341
SELECT ALL - - 56 + - CAST( 33 AS SIGNED ) - - 76 * - 36 col2
----
-2713

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL - - 56 + - CAST ( 33 AS INTEGER ) - - 76 * - 36 col2
----
-2713

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT 46 * + 39 - 48 * - + ( COUNT( * ) ) col2
----
1842

skipif mysql # not compatible
query I rowsort label-4342
SELECT 46 * + 39 - 48 * - + ( COUNT ( * ) ) col2
----
1842

query I rowsort
SELECT NULLIF ( - 39, + 4 - + 63 * NULLIF ( - 29, + 15 ) ) * 76 col0
----
-2964

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL + - 43 * + - 23 + - CASE + - MIN( ( - - 12 ) ) WHEN 15 THEN NULL WHEN - + 60 THEN 10 ELSE - 33 END * + - 31
----
-34

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL + - 43 * + - 23 + - CASE + - MIN ( ( - - 12 ) ) WHEN 15 THEN NULL WHEN - + 60 THEN 10 ELSE - 33 END * + - 31
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4345
SELECT 64 DIV MIN( - + 36 )
----
-1

skipif mysql # not compatible
query I rowsort label-4345
SELECT 64 / MIN ( - + 36 )
----
-1

query I rowsort
SELECT DISTINCT + - 27 + - 23
----
-50

query I rowsort
SELECT DISTINCT COALESCE ( - 56, + 83 )
----
-56

query I rowsort
SELECT ALL 13 + COALESCE ( 33, 78 + - - 70 ) AS col0
----
46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4350
SELECT + 95 DIV - + 37
----
-2

skipif mysql # not compatible
query I rowsort label-4350
SELECT + 95 / - + 37
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT CASE 32 WHEN - 29 * - 19 + + COUNT( * ) * + ( 89 ) * - 49 + + 8 * 82 THEN NULL WHEN + 47 THEN NULL WHEN - 68 + 27 * + + 42 + + 64 + 94 * + 7 + - 87 THEN - 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT CASE 32 WHEN - 29 * - 19 + + COUNT ( * ) * + ( 89 ) * - 49 + + 8 * 82 THEN NULL WHEN + 47 THEN NULL WHEN - 68 + 27 * + + 42 + + 64 + 94 * + 7 + - 87 THEN - 60 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4352
SELECT ALL + 33 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL + 33 / - 57
----
0

query I rowsort
SELECT - 83 - - 45 + - - 74 - 56 * - 55 col2
----
3116

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT + CASE - + 86 WHEN - NULLIF ( 47, 79 ) THEN CASE 29 WHEN + + NULLIF ( - CASE - MAX( DISTINCT 31 ) WHEN 14 THEN NULL ELSE - - CASE + 1 WHEN ( COUNT( * ) ) THEN + - 20 WHEN - 13 THEN NULL END * + 98 + + - 90 - 58 * + + 56 + 68 END, + 27 ) * + 30 THEN + 59 END - - 84 + - - MAX( DISTINCT - 46 ) END * - 68 * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4354
SELECT + CASE - + 86 WHEN - NULLIF ( 47, 79 ) THEN CASE 29 WHEN + + NULLIF ( - CASE - MAX ( DISTINCT 31 ) WHEN 14 THEN NULL ELSE - - CASE + 1 WHEN ( COUNT ( * ) ) THEN + - 20 WHEN - 13 THEN NULL END * + 98 + + - 90 - 58 * + + 56 + 68 END, + 27 ) * + 30 THEN + 59 END - - 84 + - - MAX ( DISTINCT - 46 ) END * - 68 * 42
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4355
SELECT ALL + CAST( CASE - 82 WHEN + 13 + + 44 + - 50 THEN - 8 * - 45 / + SUM( ALL 62 ) / + + 74 END AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL + CAST ( CASE - 82 WHEN + 13 + + 44 + - 50 THEN - 8 * - 45 / + SUM ( ALL 62 ) / + + 74 END AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL 47 * + 16
----
752

query II rowsort
SELECT DISTINCT + 8, - 8 col1
----
8
-8

query I rowsort
SELECT ALL 64 * + NULLIF ( - + 21, - 76 )
----
-1344

onlyif mysql # aggregate syntax: 
query II rowsort label-4359
SELECT + COUNT( * ) AS col2, 60 + + + 83
----
1
143

skipif mysql # not compatible
query II rowsort label-4359
SELECT + COUNT ( * ) AS col2, 60 + + + 83
----
1
143

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

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

query I rowsort
SELECT ALL NULLIF ( + - COALESCE ( + ( - 67 ), - - 90 ), - 72 ) * + 86 AS col2
----
5762

query I rowsort
SELECT COALESCE ( - 49, - + ( - 4 ) ) AS col1
----
-49

query I rowsort
SELECT CASE - 86 WHEN - 67 * 16 + + 53 + - 73 * + 12 * + 59 THEN NULL WHEN 30 THEN NULL WHEN + + COALESCE ( - 77, + 50 * + NULLIF ( + - 88, 93 ), + + 44 + - 8 ) THEN + 87 END
----
NULL

query II rowsort
SELECT ALL + 11, + 45 col2
----
11
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4365
SELECT + COUNT( ALL - CAST( NULL AS SIGNED ) ) * - 20 * + 37 * - ( - - 44 ) + + ( + 7 ) col0
----
7

skipif mysql # not compatible
query I rowsort label-4365
SELECT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * - 20 * + 37 * - ( - - 44 ) + + ( + 7 ) col0
----
7

query II rowsort
SELECT + ( 59 ) * 42 AS col2, - 37 AS col1
----
2478
-37

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4368
SELECT + + CAST( NULLIF ( - 77, 86 + 51 + - - 57 * - - 90 ) AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-4368
SELECT + + CAST ( NULLIF ( - 77, 86 + 51 + - - 57 * - - 90 ) AS INTEGER )
----
-77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT + NULLIF ( 61, - + 98 + - ( - - ( - 88 ) ) ) * COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-4370
SELECT + NULLIF ( 61, - + 98 + - ( - - ( - 88 ) ) ) * COUNT ( * ) AS col0
----
61

query I rowsort
SELECT + + 89 - - - 88 * 16 - + 21 + 90 * - - 46 - 68 + 31
----
2763

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4373
SELECT ALL - 19 + + 8 + + - MAX( 80 ) - + CASE + - 40 WHEN - 26 * CAST( NULL AS SIGNED ) THEN NULL WHEN + 40 * + AVG ( DISTINCT + ( + + 16 ) ) THEN + 12 DIV 5 ELSE - ( + - ( - + 48 ) ) DIV + 16 + + 45 + - + 60 END col1
----
-73

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL - 19 + + 8 + + - MAX ( 80 ) - + CASE + - 40 WHEN - 26 * CAST ( NULL AS INTEGER ) THEN NULL WHEN + 40 * + AVG ( DISTINCT + ( + + 16 ) ) THEN + 12 / 5 ELSE - ( + - ( - + 48 ) ) / + 16 + + 45 + - + 60 END col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT - COALESCE ( + + 0, + - 63 * - COUNT( * ) + - + 22 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4374
SELECT - COALESCE ( + + 0, + - 63 * - COUNT ( * ) + - + 22 ) AS col0
----
0

query I rowsort
SELECT DISTINCT - + 83 * 47
----
-3901

query I rowsort
SELECT + + 39 * + 14 * + 99 col0
----
54054

query I rowsort
SELECT + - 70 * 5 * 65 + 33 col0
----
-22717

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT - - MAX( 39 ) * - - NULLIF ( - 32, - 65 + 75 )
----
-1248

skipif mysql # not compatible
query I rowsort label-4378
SELECT - - MAX ( 39 ) * - - NULLIF ( - 32, - 65 + 75 )
----
-1248

query I rowsort
SELECT ALL - 59 + + 77
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT + 14 + SUM( - + 41 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-4381
SELECT + 14 + SUM ( - + 41 ) AS col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4382
SELECT - 84 * - NULLIF ( + 90, - MIN( - - 99 ) + + COALESCE ( - - CASE + 60 WHEN + MAX( ALL + 93 ) * - ( - 16 ) * - 99 + + COUNT( * ) + + + 93 * + 96 THEN + NULLIF ( + + 77, - ( - - 76 ) ) + - 10 + CAST( NULL AS SIGNED ) * 32 END, + COUNT( * ), 82 + CAST( 93 AS SIGNED ) * 6, + SUM( + + 33 ) ) ) AS col0
----
7560

skipif mysql # not compatible
query I rowsort label-4382
SELECT - 84 * - NULLIF ( + 90, - MIN ( - - 99 ) + + COALESCE ( - - CASE + 60 WHEN + MAX ( ALL + 93 ) * - ( - 16 ) * - 99 + + COUNT ( * ) + + + 93 * + 96 THEN + NULLIF ( + + 77, - ( - - 76 ) ) + - 10 + CAST ( NULL AS INTEGER ) * 32 END, + COUNT ( * ), 82 + CAST ( 93 AS INTEGER ) * 6, + SUM ( + + 33 ) ) ) AS col0
----
7560

query I rowsort
SELECT DISTINCT + ( 49 ) + 88 * - 68 AS col2
----
-5935

query I rowsort
SELECT - 41 + + 39 AS col1
----
-2

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

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

query II rowsort
SELECT ALL 55 AS col0, + 70
----
55
70

query I rowsort
SELECT - 95 + + 49 * + 55
----
2600

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT - COUNT( DISTINCT - + 76 ) + - 51 * + 47 * + 18 * - 9 AS col1
----
388313

skipif mysql # not compatible
query I rowsort label-4388
SELECT - COUNT ( DISTINCT - + 76 ) + - 51 * + 47 * + 18 * - 9 AS col1
----
388313

query I rowsort
SELECT ALL + ( - 71 ) - - 95 + + 55 + + 87 * 73 AS col2
----
6430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4390
SELECT - 65 + - - NULLIF ( 42, + COUNT( * ) / 31 + + - CAST( NULL AS SIGNED ) + ( - 58 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-4390
SELECT - 65 + - - NULLIF ( 42, + COUNT ( * ) / 31 + + - CAST ( NULL AS INTEGER ) + ( - 58 ) )
----
-23

query II rowsort
SELECT - 37, 48 col0
----
-37
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4392
SELECT - COUNT( * ) + + 6 AS col2, 8
----
5
8

skipif mysql # not compatible
query II rowsort label-4392
SELECT - COUNT ( * ) + + 6 AS col2, 8
----
5
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4393
SELECT ALL - 28 DIV - 19 - 64
----
-63

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL - 28 / - 19 - 64
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT - SUM( DISTINCT - 41 ) * + ( 22 )
----
902

skipif mysql # not compatible
query I rowsort label-4394
SELECT - SUM ( DISTINCT - 41 ) * + ( 22 )
----
902

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT ALL + MAX( DISTINCT - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL + MAX ( DISTINCT - 0 )
----
0

query I rowsort
SELECT 48 * + - 70 * - + 41 * - 95 + - + ( + 74 ) AS col2
----
-13087274

query I rowsort
SELECT - 17 * + 5 AS col0
----
-85

query I rowsort
SELECT - 23 * 9 AS col2
----
-207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4399
SELECT + ( + - 80 ) DIV + COUNT( * ) + + 27
----
-53

skipif mysql # not compatible
query I rowsort label-4399
SELECT + ( + - 80 ) / + COUNT ( * ) + + 27
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4400
SELECT CAST( NULL AS SIGNED ) AS col0, + CAST( + AVG ( ALL - 13 ) AS SIGNED ) AS col0
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-4400
SELECT CAST ( NULL AS INTEGER ) AS col0, + CAST ( + AVG ( ALL - 13 ) AS INTEGER ) AS col0
----
NULL
-13

query I rowsort
SELECT - 11 + - - 70 AS col0
----
59

query II rowsort
SELECT + 11, - 19 AS col1
----
11
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4403
SELECT - 87 + 44 + + COALESCE ( - - CAST( NULL AS SIGNED ), - + 38 ) + 11 - + 79 DIV ( COALESCE ( - MIN( DISTINCT + 67 ), + 70 + 9 ) ) col0
----
-69

skipif mysql # not compatible
query I rowsort label-4403
SELECT - 87 + 44 + + COALESCE ( - - CAST ( NULL AS INTEGER ), - + 38 ) + 11 - + 79 / ( COALESCE ( - MIN ( DISTINCT + 67 ), + 70 + 9 ) ) col0
----
-69

query I rowsort
SELECT ALL + COALESCE ( ( - - 68 ), - 58, + 86 ) col1
----
68

onlyif mysql # DIV for integer division: 
query III rowsort label-4405
SELECT ALL + 4, 83 DIV + ( 7 ) AS col1, 9 AS col0
----
4
11
9

skipif mysql # not compatible
query III rowsort label-4405
SELECT ALL + 4, 83 / + ( 7 ) AS col1, 9 AS col0
----
4
11
9

query I rowsort
SELECT + + 43 + - - 30 + - - 5 * + 13 AS col1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT + COUNT( * ) + COALESCE ( - - COUNT( * ), + 82 ) * + 85
----
86

skipif mysql # not compatible
query I rowsort label-4407
SELECT + COUNT ( * ) + COALESCE ( - - COUNT ( * ), + 82 ) * + 85
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4408
SELECT + 65 AS col1, + 21 * CAST( NULL AS SIGNED )
----
65
NULL

skipif mysql # not compatible
query II rowsort label-4408
SELECT + 65 AS col1, + 21 * CAST ( NULL AS INTEGER )
----
65
NULL

query I rowsort
SELECT - 85 * + - 99
----
8415

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT - + NULLIF ( - + 51, + + 89 ) * 16 - - 24 + 96 + 20 * - - 41 * COALESCE ( 62, 26, + COUNT( + ( 19 ) ), 13 + 31 ) * + COUNT( * ) + - + 82
----
51694

skipif mysql # not compatible
query I rowsort label-4410
SELECT - + NULLIF ( - + 51, + + 89 ) * 16 - - 24 + 96 + 20 * - - 41 * COALESCE ( 62, 26, + COUNT ( + ( 19 ) ), 13 + 31 ) * + COUNT ( * ) + - + 82
----
51694

query I rowsort
SELECT + + 2 + 94
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4412
SELECT ALL - COALESCE ( 94, 2, CAST( NULL AS SIGNED ) DIV 76 + - 62 + - 20 ) + COUNT( + 81 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL - COALESCE ( 94, 2, CAST ( NULL AS INTEGER ) / 76 + - 62 + - 20 ) + COUNT ( + 81 ) AS col2
----
-93

query I rowsort
SELECT DISTINCT + ( - 55 ) + + + 70 - + 63 - - 71 * - - NULLIF ( - 7, 26 ) AS col0
----
-545

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL + COUNT( * ) + - NULLIF ( - + COUNT( * ), - - 40 * 44 - + - SUM( DISTINCT - 38 ) + ( + + MIN( - 76 ) ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL + COUNT ( * ) + - NULLIF ( - + COUNT ( * ), - - 40 * 44 - + - SUM ( DISTINCT - 38 ) + ( + + MIN ( - 76 ) ) ) AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4415
SELECT + 48 DIV + - 8
----
-6

skipif mysql # not compatible
query I rowsort label-4415
SELECT + 48 / + - 8
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4416
SELECT ALL 31 - - 23 DIV 85
----
31

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL 31 - - 23 / 85
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-4417
SELECT - 22 AS col2, - 93 + + NULLIF ( 63, COUNT( * ) + - + 31 ) AS col0
----
-22
-30

skipif mysql # not compatible
query II rowsort label-4417
SELECT - 22 AS col2, - 93 + + NULLIF ( 63, COUNT ( * ) + - + 31 ) AS col0
----
-22
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-4418
SELECT 15 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-4418
SELECT 15 / + 92
----
0

query I rowsort
SELECT ALL 42 * - ( 28 ) AS col0
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT DISTINCT ( MIN( + 25 ) ) * + + 54 AS col2
----
1350

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT ( MIN ( + 25 ) ) * + + 54 AS col2
----
1350

query I rowsort
SELECT 66 + 51 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT ALL - COALESCE ( ( + - 27 ), - - COUNT( * ) - - - 50 * - 11 * + COUNT( * ), + + 15 * + + 70 + ( - + 41 ) )
----
27

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL - COALESCE ( ( + - 27 ), - - COUNT ( * ) - - - 50 * - 11 * + COUNT ( * ), + + 15 * + + 70 + ( - + 41 ) )
----
27

query I rowsort
SELECT 40 * + 44 AS col1
----
1760

query I rowsort
SELECT 75 * - - 54 AS col1
----
4050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4425
SELECT + ( ( - 19 ) ) * 91 - - - CAST( NULL AS SIGNED ) + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT + ( ( - 19 ) ) * 91 - - - CAST ( NULL AS INTEGER ) + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT DISTINCT 87 * - - COALESCE ( - 55, + + MIN( ALL - 22 ), + + COUNT( * ) + - 70 )
----
-4785

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT 87 * - - COALESCE ( - 55, + + MIN ( ALL - 22 ), + + COUNT ( * ) + - 70 )
----
-4785

query I rowsort
SELECT ALL - 83 * + 13 AS col2
----
-1079

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

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT + COUNT ( * ) + CAST ( NULL AS INTEGER ) - ( - - 62 ) AS col2
----
NULL

query II rowsort
SELECT + 7 - 65 AS col1, + 16
----
-58
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT ALL + 92 + + + MAX( ALL 31 )
----
123

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL + 92 + + + MAX ( ALL 31 )
----
123

query I rowsort
SELECT + 55 - 10 col0
----
45

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4433
SELECT SUM( DISTINCT + 11 ) AS col1, + 34
----
11
34

skipif mysql # not compatible
query II rowsort label-4433
SELECT SUM ( DISTINCT + 11 ) AS col1, + 34
----
11
34

query I rowsort
SELECT ALL + 51 + + 29 col0
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-4435
SELECT DISTINCT - COUNT( * ) * 4 - + 25 AS col0, 37 - ( 12 )
----
-29
25

skipif mysql # not compatible
query II rowsort label-4435
SELECT DISTINCT - COUNT ( * ) * 4 - + 25 AS col0, 37 - ( 12 )
----
-29
25

query I rowsort
SELECT ALL - + 57 - - 50 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT COALESCE ( + - COUNT( DISTINCT + - 90 ), - 91 + + 4 ) + + + MAX( ALL 14 ) + 15 * COALESCE ( - + 54, + SUM( ALL ( + + 85 ) ), - 85 ) col1
----
-797

skipif mysql # not compatible
query I rowsort label-4437
SELECT COALESCE ( + - COUNT ( DISTINCT + - 90 ), - 91 + + 4 ) + + + MAX ( ALL 14 ) + 15 * COALESCE ( - + 54, + SUM ( ALL ( + + 85 ) ), - 85 ) col1
----
-797

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT 87 + + 26 * - MIN( - 5 ) * + 83 AS col0
----
10877

skipif mysql # not compatible
query I rowsort label-4438
SELECT 87 + + 26 * - MIN ( - 5 ) * + 83 AS col0
----
10877

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT ALL + CASE - 80 WHEN + - COUNT( * ) THEN NULL WHEN + - 38 THEN - - 94 * + 25 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL + CASE - 80 WHEN + - COUNT ( * ) THEN NULL WHEN + - 38 THEN - - 94 * + 25 END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL - COUNT ( * ) - + + COUNT ( * ) / + 42
----
-1

query I rowsort
SELECT 31 * + 84
----
2604

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT COUNT( * ) + - - 12 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4442
SELECT COUNT ( * ) + - - 12 AS col2
----
13

query I rowsort
SELECT 50 + + 0 AS col1
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4444
SELECT COUNT( + - 50 ) + 83 - + ( - 23 ) + - 69 DIV 86
----
107

skipif mysql # not compatible
query I rowsort label-4444
SELECT COUNT ( + - 50 ) + 83 - + ( - 23 ) + - 69 / 86
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4445
SELECT ALL 88 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL 88 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4446
SELECT 54, + COALESCE ( - 40, - 33, - ( - 33 ) + + 53 - - + 97, NULLIF ( 13, - MIN( - - ( - 46 ) ) * + 37 ) * + CAST( NULL AS SIGNED ) ) AS col2
----
54
-40

skipif mysql # not compatible
query II rowsort label-4446
SELECT 54, + COALESCE ( - 40, - 33, - ( - 33 ) + + 53 - - + 97, NULLIF ( 13, - MIN ( - - ( - 46 ) ) * + 37 ) * + CAST ( NULL AS INTEGER ) ) AS col2
----
54
-40

query II rowsort
SELECT - 98, - 54 * + 89 AS col0
----
-98
-4806

onlyif mysql # aggregate syntax: 
query II rowsort label-4448
SELECT 98 col1, SUM( ALL 25 ) + + 13 AS col0
----
98
38

skipif mysql # not compatible
query II rowsort label-4448
SELECT 98 col1, SUM ( ALL 25 ) + + 13 AS col0
----
98
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4449
SELECT SUM( + ( + + 50 ) ) DIV - - 14 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4449
SELECT SUM ( + ( + + 50 ) ) / - - 14 AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4450
SELECT ALL 22 * 82 DIV + - 6 + - COALESCE ( + - 74, + + 58 )
----
-226

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL 22 * 82 / + - 6 + - COALESCE ( + - 74, + + 58 )
----
-226

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT SUM( ALL + 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-4451
SELECT SUM ( ALL + 39 ) AS col2
----
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT ALL + 92 * + 52 + + COUNT( * ) * - 36 + - 96 col0
----
4652

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL + 92 * + 52 + + COUNT ( * ) * - 36 + - 96 col0
----
4652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4454
SELECT + 53 + - 40 - + + 75 * + + COUNT( * ) * + - CAST( + 72 AS SIGNED ) DIV + COUNT( * ) + + 24 AS col1, - ( - CASE - COUNT( * ) WHEN 86 * + 10 + - 1 THEN NULL ELSE 4 - - 57 END ) * + - 56 DIV - - COUNT( * ) + + NULLIF ( - 65, + - 6 * + 35 ) - - + 71
----
5437
-3410

skipif mysql # not compatible
query II rowsort label-4454
SELECT + 53 + - 40 - + + 75 * + + COUNT ( * ) * + - CAST ( + 72 AS INTEGER ) / + COUNT ( * ) + + 24 AS col1, - ( - CASE - COUNT ( * ) WHEN 86 * + 10 + - 1 THEN NULL ELSE 4 - - 57 END ) * + - 56 / - - COUNT ( * ) + + NULLIF ( - 65, + - 6 * + 35 ) - - + 71
----
5437
-3410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4455
SELECT CASE - 79 WHEN + + CAST( NULL AS SIGNED ) THEN NULL WHEN + 6 THEN NULL ELSE - - COUNT( * ) + + 14 + 26 END * + 36 - - 56 + + 62 AS col0
----
1594

skipif mysql # not compatible
query I rowsort label-4455
SELECT CASE - 79 WHEN + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 6 THEN NULL ELSE - - COUNT ( * ) + + 14 + 26 END * + 36 - - 56 + + 62 AS col0
----
1594

onlyif mysql # aggregate syntax: 
query II rowsort label-4456
SELECT CASE - 79 WHEN 82 / + COUNT( * ) THEN - 73 * ( + 90 ) * 55 * + 98 - 35 + 94 END, - 23 AS col0
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-4456
SELECT CASE - 79 WHEN 82 / + COUNT ( * ) THEN - 73 * ( + 90 ) * 55 * + 98 - 35 + 94 END, - 23 AS col0
----
NULL
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4457
SELECT ALL + CAST( NULL AS SIGNED ) * 99 - - 27 + - 79 / + COALESCE ( - - 16, + 11, + - ( - 72 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL + CAST ( NULL AS INTEGER ) * 99 - - 27 + - 79 / + COALESCE ( - - 16, + 11, + - ( - 72 ) )
----
NULL

query I rowsort
SELECT ALL - + 34 * - 59 AS col2
----
2006

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT 0 * 99 + - - CASE - 53 WHEN + + 21 THEN NULL WHEN - - 35 * + 54 THEN + + 27 + + 6 END + MIN( ALL + 65 ) + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4459
SELECT 0 * 99 + - - CASE - 53 WHEN + + 21 THEN NULL WHEN - - 35 * + 54 THEN + + 27 + + 6 END + MIN ( ALL + 65 ) + 19 AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 18, + 70 - + + ( - + 24 ) AS col2
----
18
94

query I rowsort
SELECT ALL - - 5 - - ( + + 6 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT + COUNT( * ) * + 47 + - ( - 92 ) + + 10
----
149

skipif mysql # not compatible
query I rowsort label-4462
SELECT + COUNT ( * ) * + 47 + - ( - 92 ) + + 10
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-4463
SELECT ALL + 95 DIV - 10 + - - 96
----
87

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL + 95 / - 10 + - - 96
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4464
SELECT DISTINCT 40 AS col2, 4 * + CAST( NULL AS SIGNED ) AS col2
----
40
NULL

skipif mysql # not compatible
query II rowsort label-4464
SELECT DISTINCT 40 AS col2, 4 * + CAST ( NULL AS INTEGER ) AS col2
----
40
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT DISTINCT CASE - 4 WHEN - 23 THEN + COUNT( * ) * + 6 * - 34 - 7 - + 59 WHEN - 76 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT CASE - 4 WHEN - 23 THEN + COUNT ( * ) * + 6 * - 34 - 7 - + 59 WHEN - 76 THEN NULL END
----
NULL

query I rowsort
SELECT - 54 * - 98
----
5292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4467
SELECT - COUNT( * ) DIV 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4467
SELECT - COUNT ( * ) / 41 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT ALL SUM( ( 82 ) ) col2
----
82

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL SUM ( ( 82 ) ) col2
----
82

query I rowsort
SELECT - 18 * + 40
----
-720

query I rowsort
SELECT + 24 * 77
----
1848

query I rowsort
SELECT DISTINCT - 98 * - 86
----
8428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4472
SELECT - COALESCE ( + 37, + - 29 * + + ( MIN( ALL - CAST( - 59 AS SIGNED ) ) ) * - + 4 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-4472
SELECT - COALESCE ( + 37, + - 29 * + + ( MIN ( ALL - CAST ( - 59 AS INTEGER ) ) ) * - + 4 ) AS col2
----
-37

query I rowsort
SELECT - 88 * - 50 AS col2
----
4400

query I rowsort
SELECT ALL - 44 + - 71 AS col1
----
-115

query I rowsort
SELECT ALL 34 + - + 24 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT - COALESCE ( - + SUM( - + 97 ), - 20 + 88 + + + 60 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-4476
SELECT - COALESCE ( - + SUM ( - + 97 ), - 20 + 88 + + + 60 ) AS col0
----
-97

query I rowsort
SELECT DISTINCT 40 + + 89
----
129

onlyif mysql # DIV for integer division: 
query II rowsort label-4478
SELECT ALL 99 DIV + - 67, 8 AS col1
----
-1
8

skipif mysql # not compatible
query II rowsort label-4478
SELECT ALL 99 / + - 67, 8 AS col1
----
-1
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT + NULLIF ( + 85, - 61 / MIN( ALL 94 ) / + COALESCE ( NULLIF ( - 70, - COUNT( * ) ), + 7 * - COUNT( * ) ) ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-4479
SELECT + NULLIF ( + 85, - 61 / MIN ( ALL 94 ) / + COALESCE ( NULLIF ( - 70, - COUNT ( * ) ), + 7 * - COUNT ( * ) ) ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT DISTINCT COUNT( * ) * COUNT( * ) * + ( 69 ) * 37 - - 33 col0
----
2586

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * + ( 69 ) * 37 - - 33 col0
----
2586

query I rowsort
SELECT + 38 * - - 73
----
2774

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT + + 11 + - - COALESCE ( - 15, - 46, + SUM( ALL - 81 ) ) * + 58 * + ( + MIN( DISTINCT - 59 ) )
----
51341

skipif mysql # not compatible
query I rowsort label-4482
SELECT + + 11 + - - COALESCE ( - 15, - 46, + SUM ( ALL - 81 ) ) * + 58 * + ( + MIN ( DISTINCT - 59 ) )
----
51341

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT + - 6 * - + COUNT( * ) * 99 col1
----
594

skipif mysql # not compatible
query I rowsort label-4483
SELECT + - 6 * - + COUNT ( * ) * 99 col1
----
594

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4484
SELECT DISTINCT - COUNT( * ) * - 18 AS col0, 82 DIV + - NULLIF ( + 39, 76 )
----
18
-2

skipif mysql # not compatible
query II rowsort label-4484
SELECT DISTINCT - COUNT ( * ) * - 18 AS col0, 82 / + - NULLIF ( + 39, 76 )
----
18
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4485
SELECT DISTINCT + 73 * + COUNT( * ) + - 64 + + 5 + 5 + - + 63 + - + 45 * - ( + - CASE + 63 WHEN 46 * 84 THEN - 34 WHEN + 53 THEN + 22 WHEN + 89 * - 31 * - - 84 THEN NULL ELSE - 26 END ) + MIN( + CASE - + 33 WHEN 33 * - 78 THEN NULL WHEN + + 13 THEN NULL ELSE + - 59 END ) / - 4 * - 1 + + 28 * - CASE - + AVG ( ALL - + 31 ) WHEN - 17 * 26 THEN NULL WHEN 91 / + 67 THEN - 98 - 10 * COUNT( 5 - - 43 ) ELSE CAST( NULL AS SIGNED ) * 30 END / CAST( COUNT( * ) / 81 AS SIGNED ) * 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT + 73 * + COUNT ( * ) + - 64 + + 5 + 5 + - + 63 + - + 45 * - ( + - CASE + 63 WHEN 46 * 84 THEN - 34 WHEN + 53 THEN + 22 WHEN + 89 * - 31 * - - 84 THEN NULL ELSE - 26 END ) + MIN ( + CASE - + 33 WHEN 33 * - 78 THEN NULL WHEN + + 13 THEN NULL ELSE + - 59 END ) / - 4 * - 1 + + 28 * - CASE - + AVG ( ALL - + 31 ) WHEN - 17 * 26 THEN NULL WHEN 91 / + 67 THEN - 98 - 10 * COUNT ( 5 - - 43 ) ELSE CAST ( NULL AS INTEGER ) * 30 END / CAST ( COUNT ( * ) / 81 AS INTEGER ) * 52 AS col2
----
NULL

query I rowsort
SELECT ALL ( + + 75 ) * - + 29 AS col0
----
-2175

query I rowsort
SELECT + 92 * + 56 col2
----
5152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4488
SELECT ALL - - COUNT( CAST( NULL AS SIGNED ) ) * - 65 - 81 - + 57 + 92 + - COUNT( * ) - 94 AS col1
----
-141

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL - - COUNT ( CAST ( NULL AS INTEGER ) ) * - 65 - 81 - + 57 + 92 + - COUNT ( * ) - 94 AS col1
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4489
SELECT + - NULLIF ( - - CAST( + 95 AS SIGNED ), - - COUNT( * ) ) * - 8
----
760

skipif mysql # not compatible
query I rowsort label-4489
SELECT + - NULLIF ( - - CAST ( + 95 AS INTEGER ), - - COUNT ( * ) ) * - 8
----
760

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

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

query I rowsort
SELECT DISTINCT + - 40 * - 78 AS col2
----
3120

query I rowsort
SELECT + 94 * 62 * - 36 AS col0
----
-209808

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT + SUM( + 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-4493
SELECT + SUM ( + 88 ) AS col2
----
88

query I rowsort
SELECT DISTINCT 82 * 65 * - 60 AS col1
----
-319800

onlyif mysql # DIV for integer division: 
query II rowsort label-4495
SELECT + 1 + + 77 * + - 57 AS col2, - 54 DIV - 91
----
-4388
0

skipif mysql # not compatible
query II rowsort label-4495
SELECT + 1 + + 77 * + - 57 AS col2, - 54 / - 91
----
-4388
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT + 77 * - NULLIF ( - + COUNT( * ), + 67 + + + COUNT( * ) ) - 67
----
10

skipif mysql # not compatible
query I rowsort label-4496
SELECT + 77 * - NULLIF ( - + COUNT ( * ), + 67 + + + COUNT ( * ) ) - 67
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4497
SELECT DISTINCT COALESCE ( + CAST( NULL AS SIGNED ), - MAX( ALL - 86 ), 50 + + COUNT( * ) * + 91 + + SUM( - 74 ) - + 7 + + 35 + + 53 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT COALESCE ( + CAST ( NULL AS INTEGER ), - MAX ( ALL - 86 ), 50 + + COUNT ( * ) * + 91 + + SUM ( - 74 ) - + 7 + + 35 + + 53 ) AS col2
----
86

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

skipif mysql # not compatible
query II rowsort label-4498
SELECT COUNT ( * ), 87 AS col1
----
1
87

query I rowsort
SELECT + 95 + 42 + - 19
----
118

query I rowsort
SELECT DISTINCT ( + + ( + 54 ) ) AS col1
----
54

query I rowsort
SELECT - 47 + 82 AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4502
SELECT DISTINCT CASE + 27 WHEN + - 23 THEN - - COUNT( * ) + + - 75 + NULLIF ( - 3, + - COUNT( * ) / - COUNT( DISTINCT + CAST( 55 AS SIGNED ) ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT CASE + 27 WHEN + - 23 THEN - - COUNT ( * ) + + - 75 + NULLIF ( - 3, + - COUNT ( * ) / - COUNT ( DISTINCT + CAST ( 55 AS INTEGER ) ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT DISTINCT + 12 + - 64 + COUNT( * ) * - 59 + + + 30 * 16
----
369

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT + 12 + - 64 + COUNT ( * ) * - 59 + + + 30 * 16
----
369

query I rowsort
SELECT DISTINCT - 40 + 40 col2
----
0

query II rowsort
SELECT 4, 76 AS col1
----
4
76

query I rowsort
SELECT DISTINCT + 67 * + - 94 AS col1
----
-6298

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

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

query I rowsort
SELECT ALL - 95 - + 7
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT - + NULLIF ( 48, - NULLIF ( - 80, + + 16 * + COUNT( * ) + + NULLIF ( + 77, + 61 ) + + 70 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-4509
SELECT - + NULLIF ( 48, - NULLIF ( - 80, + + 16 * + COUNT ( * ) + + NULLIF ( + 77, + 61 ) + + 70 ) )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT DISTINCT - 52 - + - MIN( 66 )
----
14

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT - 52 - + - MIN ( 66 )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-4511
SELECT + + ( + COALESCE ( 28, + + 45, - + 1 ) ) col0, 75 - COUNT( * ) + + 4 + 85 * + + 73
----
28
6283

skipif mysql # not compatible
query II rowsort label-4511
SELECT + + ( + COALESCE ( 28, + + 45, - + 1 ) ) col0, 75 - COUNT ( * ) + + 4 + 85 * + + 73
----
28
6283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4512
SELECT DISTINCT - CASE - - 60 WHEN + - 38 + 96 * + COUNT( * ) THEN + 29 END / + CAST( 73 AS SIGNED ) / + 97 - + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT - CASE - - 60 WHEN + - 38 + 96 * + COUNT ( * ) THEN + 29 END / + CAST ( 73 AS INTEGER ) / + 97 - + 2 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4513
SELECT 97 DIV + NULLIF ( + 91, + COUNT( * ) ) + MIN( + 13 )
----
14

skipif mysql # not compatible
query I rowsort label-4513
SELECT 97 / + NULLIF ( + 91, + COUNT ( * ) ) + MIN ( + 13 )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4514
SELECT - COUNT( * ) / ( + 4 ) + + 87 * 38 - + 35 * + CAST( NULL AS SIGNED ) / 79 * CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT - COUNT ( * ) / ( + 4 ) + + 87 * 38 - + 35 * + CAST ( NULL AS INTEGER ) / 79 * CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 6 * 6 AS col0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT + 34 DIV + + 86 - - ( + + 9 )
----
9

skipif mysql # not compatible
query I rowsort label-4516
SELECT + 34 / + + 86 - - ( + + 9 )
----
9

query I rowsort
SELECT DISTINCT - 0 * 28 + - 84 + + 92 AS col2
----
8

query I rowsort
SELECT ALL - NULLIF ( + 81, 13 - + - 40 ) AS col0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4519
SELECT ALL - - COUNT( * ) col2, COUNT( * ) DIV - 27 + - COALESCE ( - + 7, 92 * + 53, 1 ) * - - 78 AS col2
----
1
546

skipif mysql # not compatible
query II rowsort label-4519
SELECT ALL - - COUNT ( * ) col2, COUNT ( * ) / - 27 + - COALESCE ( - + 7, 92 * + 53, 1 ) * - - 78 AS col2
----
1
546

query I rowsort
SELECT ALL - 67 * + 83
----
-5561

query I rowsort
SELECT DISTINCT 53 * 77 col1
----
4081

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT + 92 * + COUNT( * ) * 45 * - 38 AS col1
----
-157320

skipif mysql # not compatible
query I rowsort label-4522
SELECT + 92 * + COUNT ( * ) * 45 * - 38 AS col1
----
-157320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4523
SELECT + COALESCE ( - 20, 18 - - 44 - + 21, COALESCE ( - 35, - COALESCE ( 15, MIN( DISTINCT 88 ) ), + 27 - - 28 * + 60 DIV CAST( NULL AS SIGNED ) * 58 DIV + 49 ) ) + + 38 + + - 44 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-4523
SELECT + COALESCE ( - 20, 18 - - 44 - + 21, COALESCE ( - 35, - COALESCE ( 15, MIN ( DISTINCT 88 ) ), + 27 - - 28 * + 60 / CAST ( NULL AS INTEGER ) * 58 / + 49 ) ) + + 38 + + - 44 AS col1
----
-26

query I rowsort
SELECT ALL 71 * - + 50 AS col2
----
-3550

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4526
SELECT ALL - 98 col1, + COALESCE ( - - MIN( - 36 ), 99 * + 8 )
----
-98
-36

skipif mysql # not compatible
query II rowsort label-4526
SELECT ALL - 98 col1, + COALESCE ( - - MIN ( - 36 ), 99 * + 8 )
----
-98
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT COUNT( * ) * + ( + 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4527
SELECT COUNT ( * ) * + ( + 98 ) AS col1
----
98

query II rowsort
SELECT + 74, 2 AS col1
----
74
2

query I rowsort
SELECT ALL 65 + - 33
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-4530
SELECT 70, - 30 DIV 80 * + - 6 DIV + ( + 5 ) + - 13 col0
----
70
-13

skipif mysql # not compatible
query II rowsort label-4530
SELECT 70, - 30 / 80 * + - 6 / + ( + 5 ) + - 13 col0
----
70
-13

query I rowsort
SELECT ( 52 ) * - 83 + - - 80 + + 71 + - - 42 - - 93 * + 15 col1
----
-2728

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT DISTINCT MIN( DISTINCT + 80 ) + - + 56
----
24

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT MIN ( DISTINCT + 80 ) + - + 56
----
24

query I rowsort
SELECT ALL 59 * + + 32 AS col1
----
1888

onlyif mysql # aggregate syntax: 
query II rowsort label-4534
SELECT 84 AS col0, - MIN( + 11 ) + - - 16 * + 48 + - 20 AS col2
----
84
737

skipif mysql # not compatible
query II rowsort label-4534
SELECT 84 AS col0, - MIN ( + 11 ) + - - 16 * + 48 + - 20 AS col2
----
84
737

query I rowsort
SELECT ALL 29 + - - ( - 86 ) - - - 93
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4536
SELECT DISTINCT 88 + - + CAST( COUNT( * ) AS SIGNED ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT 88 + - + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4537
SELECT DISTINCT 43, 86 / + CAST( NULL AS SIGNED ) + + COALESCE ( + - 15, + - CASE - COUNT( * ) WHEN + 56 * + MIN( ALL + 34 ) THEN 94 * - NULLIF ( - + 88, 67 ) + - 43 END, + 66 / 94 ) AS col1
----
43
NULL

skipif mysql # not compatible
query II rowsort label-4537
SELECT DISTINCT 43, 86 / + CAST ( NULL AS INTEGER ) + + COALESCE ( + - 15, + - CASE - COUNT ( * ) WHEN + 56 * + MIN ( ALL + 34 ) THEN 94 * - NULLIF ( - + 88, 67 ) + - 43 END, + 66 / 94 ) AS col1
----
43
NULL

query I rowsort
SELECT ALL + 26 + 92
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4539
SELECT ALL 23 * - - CAST( + + 20 AS SIGNED )
----
460

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL 23 * - - CAST ( + + 20 AS INTEGER )
----
460

query II rowsort
SELECT - 49 col2, - 96
----
-49
-96

query I rowsort
SELECT DISTINCT 58 * - 91
----
-5278

query II rowsort
SELECT 0 col0, - ( - - 10 ) + - + COALESCE ( + 25, 41 ) * - 25 AS col0
----
0
615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4543
SELECT ALL - SUM( ALL CAST( + ( COALESCE ( 5, + NULLIF ( + + 46, CAST( NULL AS DECIMAL ) ) ) ) AS SIGNED ) ) DIV MAX( ALL 7 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL - SUM ( ALL CAST ( + ( COALESCE ( 5, + NULLIF ( + + 46, CAST ( NULL AS REAL ) ) ) ) AS INTEGER ) ) / MAX ( ALL 7 ) AS col0
----
0

query II rowsort
SELECT ALL - 3, + 10 AS col2
----
-3
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4545
SELECT DISTINCT 12 DIV + 27
----
0

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT 12 / + 27
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT ALL - - COUNT( * ) * - 47
----
-47

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL - - COUNT ( * ) * - 47
----
-47

query II rowsort
SELECT - ( 86 ) * - 59 * - + 74 AS col1, + 4
----
-375476
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT COALESCE ( + COUNT( * ), COUNT( * ) + 13 + + - 72 * 79, + 24 * + 34 + + 35 )
----
1

skipif mysql # not compatible
query I rowsort label-4548
SELECT COALESCE ( + COUNT ( * ), COUNT ( * ) + 13 + + - 72 * 79, + 24 * + 34 + + 35 )
----
1

query II rowsort
SELECT + + 75 AS col2, ( ( 56 ) ) + 50 AS col1
----
75
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT + - MAX( ALL - + 54 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4550
SELECT + - MAX ( ALL - + 54 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT - COALESCE ( + - 49, - - 26, + - 57 ) + + + 11 + - - COUNT( * ) + + 49 * - 76
----
-3663

skipif mysql # not compatible
query I rowsort label-4551
SELECT - COALESCE ( + - 49, - - 26, + - 57 ) + + + 11 + - - COUNT ( * ) + + 49 * - 76
----
-3663

onlyif mysql # aggregate syntax: 
query II rowsort label-4552
SELECT DISTINCT - - COUNT( * ), 91 AS col1
----
1
91

skipif mysql # not compatible
query II rowsort label-4552
SELECT DISTINCT - - COUNT ( * ), 91 AS col1
----
1
91

query I rowsort
SELECT ALL + 71 * - ( + - COALESCE ( + 14, 47 ) )
----
994

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT MIN( DISTINCT - + 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-4554
SELECT MIN ( DISTINCT - + 11 ) AS col1
----
-11

query I rowsort
SELECT DISTINCT - NULLIF ( - ( 2 ), - 17 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT ALL 16 + + COUNT( * ) + 38 * MAX( ALL - 60 ) + 42
----
-2221

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL 16 + + COUNT ( * ) + 38 * MAX ( ALL - 60 ) + 42
----
-2221

query II rowsort
SELECT + 87 AS col0, - 0 AS col0
----
87
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT COUNT( * ) - + 32 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-4558
SELECT COUNT ( * ) - + 32 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT + SUM( ALL + 54 ) col0
----
54

skipif mysql # not compatible
query I rowsort label-4559
SELECT + SUM ( ALL + 54 ) col0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-4560
SELECT DISTINCT - ( COALESCE ( 53, - 45 DIV 14 ) ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT - ( COALESCE ( 53, - 45 / 14 ) ) AS col2
----
-53

query II rowsort
SELECT 65 * + - 89 AS col0, - 19
----
-5785
-19

query I rowsort
SELECT ALL + 94 + + + 30
----
124

query II rowsort
SELECT ALL + 85 * 61 AS col0, + 0 * - - 47
----
5185
0

query I rowsort
SELECT ALL 12 + + 95 AS col0
----
107

query II rowsort
SELECT 55 * - 7, 41 AS col1
----
-385
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT COUNT( + + 44 ) + - 32 + + 8
----
-23

skipif mysql # not compatible
query I rowsort label-4566
SELECT COUNT ( + + 44 ) + - 32 + + 8
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4567
SELECT ALL 76 - NULLIF ( - 48, - 29 * COUNT( * ) + + + 84 ) + - - CAST( + 38 AS SIGNED ) * - - 88
----
3468

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL 76 - NULLIF ( - 48, - 29 * COUNT ( * ) + + + 84 ) + - - CAST ( + 38 AS INTEGER ) * - - 88
----
3468

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT - NULLIF ( - + 10, + - 75 - 83 * - CASE - 86 WHEN - 13 * + 72 * - + 44 * 66 * + 64 + 5 THEN NULL ELSE + 63 * + 3 END + + 34 * - COUNT( * ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4568
SELECT - NULLIF ( - + 10, + - 75 - 83 * - CASE - 86 WHEN - 13 * + 72 * - + 44 * 66 * + 64 + 5 THEN NULL ELSE + 63 * + 3 END + + 34 * - COUNT ( * ) ) AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4569
SELECT + 64 - + + CASE - 68 WHEN + + CASE WHEN 20 NOT BETWEEN - 73 AND - 78 THEN + 39 * 92 ELSE NULL END THEN - - ( + - ( - COUNT( * ) ) ) END * ( + - COALESCE ( + 83, COUNT( DISTINCT - 71 ), + 56 * + ( + CAST( NULL AS SIGNED ) ) * - 96 + - AVG ( - ( + 55 ) ) + + - 13 ) ) * + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT + 64 - + + CASE - 68 WHEN + + CASE WHEN 20 NOT BETWEEN - 73 AND - 78 THEN + 39 * 92 ELSE NULL END THEN - - ( + - ( - COUNT ( * ) ) ) END * ( + - COALESCE ( + 83, COUNT ( DISTINCT - 71 ), + 56 * + ( + CAST ( NULL AS INTEGER ) ) * - 96 + - AVG ( - ( + 55 ) ) + + - 13 ) ) * + 6 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4570
SELECT + NULLIF ( - - 47, - 68 ) + - 43 DIV + + 71 * + 96
----
47

skipif mysql # not compatible
query I rowsort label-4570
SELECT + NULLIF ( - - 47, - 68 ) + - 43 / + + 71 * + 96
----
47

query I rowsort
SELECT + 10 + - 1 + + NULLIF ( + 49, - 63 * + 16 ) * + - 3 AS col1
----
-138

query I rowsort
SELECT DISTINCT 75 - + 98 * - 13
----
1349

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT ALL 33 * MAX( + 97 )
----
3201

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL 33 * MAX ( + 97 )
----
3201

onlyif mysql # DIV for integer division: 
query I rowsort label-4574
SELECT + 44 + + + 19 * 42 DIV - 38 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4574
SELECT + 44 + + + 19 * 42 / - 38 AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4575
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * + CASE MAX( 29 ) WHEN - COALESCE ( + + COUNT( + + 5 ), - 25 * - ( COUNT( * ) ) * - 91 + + 9 + - ( 98 ) * - + 23 ) THEN NULL WHEN - 96 + + 53 THEN - 70 * - 29 END AS col0, 66
----
NULL
66

skipif mysql # not compatible
query II rowsort label-4575
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * + CASE MAX ( 29 ) WHEN - COALESCE ( + + COUNT ( + + 5 ), - 25 * - ( COUNT ( * ) ) * - 91 + + 9 + - ( 98 ) * - + 23 ) THEN NULL WHEN - 96 + + 53 THEN - 70 * - 29 END AS col0, 66
----
NULL
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4576
SELECT - - ( + ( - + COUNT( * ) ) ) * - 90 / - CASE + + 68 WHEN + - 22 THEN + 2 WHEN + COUNT( * ) - + - COALESCE ( + CASE AVG ( + - CAST( NULL AS DECIMAL ) ) WHEN - - 13 THEN 84 END, - 25 * 33 + + COUNT( - 90 ), - 46 + - 75 - - 31 + - - 43 * - 32 + + CAST( + - 20 AS SIGNED ), MIN( - CAST( - - 9 AS SIGNED ) ) - 22 / CAST( 99 AS DECIMAL ) + + 37 ) * 37 + - 22 THEN + + ( 83 ) ELSE NULL END - + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT - - ( + ( - + COUNT ( * ) ) ) * - 90 / - CASE + + 68 WHEN + - 22 THEN + 2 WHEN + COUNT ( * ) - + - COALESCE ( + CASE AVG ( + - CAST ( NULL AS REAL ) ) WHEN - - 13 THEN 84 END, - 25 * 33 + + COUNT ( - 90 ), - 46 + - 75 - - 31 + - - 43 * - 32 + + CAST ( + - 20 AS INTEGER ), MIN ( - CAST ( - - 9 AS INTEGER ) ) - 22 / CAST ( 99 AS REAL ) + + 37 ) * 37 + - 22 THEN + + ( 83 ) ELSE NULL END - + 35 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4577
SELECT ALL ( - - ( + CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL ( - - ( + CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4578
SELECT ( + + NULLIF ( - MIN( DISTINCT 60 ), + 79 ) ) AS col2, - 40 AS col2
----
-60
-40

skipif mysql # not compatible
query II rowsort label-4578
SELECT ( + + NULLIF ( - MIN ( DISTINCT 60 ), + 79 ) ) AS col2, - 40 AS col2
----
-60
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT + - 81 + - CASE + COUNT( * ) WHEN - 82 THEN NULL WHEN + - 0 THEN NULL ELSE - - 24 * - 55 * 5 END AS col0
----
6519

skipif mysql # not compatible
query I rowsort label-4579
SELECT + - 81 + - CASE + COUNT ( * ) WHEN - 82 THEN NULL WHEN + - 0 THEN NULL ELSE - - 24 * - 55 * 5 END AS col0
----
6519

query I rowsort
SELECT ALL + COALESCE ( + - NULLIF ( 15, + 85 ), - 94 + + + 40 + 23 + + 18 * 64 * + - 37 + - - 14 )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4581
SELECT + NULLIF ( - COALESCE ( 5, + ( + 15 ) ), + - CASE - 34 WHEN COALESCE ( + - 7, - 27, + NULLIF ( 65, - - COALESCE ( COUNT( * ), - COUNT( DISTINCT - + 41 ), + + 24 ) + - + CAST( NULL AS SIGNED ) ) ) THEN + ( 51 ) END ) + - 74 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-4581
SELECT + NULLIF ( - COALESCE ( 5, + ( + 15 ) ), + - CASE - 34 WHEN COALESCE ( + - 7, - 27, + NULLIF ( 65, - - COALESCE ( COUNT ( * ), - COUNT ( DISTINCT - + 41 ), + + 24 ) + - + CAST ( NULL AS INTEGER ) ) ) THEN + ( 51 ) END ) + - 74 AS col1
----
-79

query II rowsort
SELECT ALL 3 + - 26 AS col1, + 94 + + 16
----
-23
110

query I rowsort
SELECT - 47 * - 70
----
3290

query I rowsort
SELECT DISTINCT + 29 * - 56 * 21 + - 23 AS col1
----
-34127

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4585
SELECT CAST( - 41 AS SIGNED ), 56 AS col2
----
-41
56

skipif mysql # not compatible
query II rowsort label-4585
SELECT CAST ( - 41 AS INTEGER ), 56 AS col2
----
-41
56

query I rowsort
SELECT + + ( NULLIF ( + - 68, + 31 + 79 ) )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL CASE + 19 WHEN 10 + + 32 THEN NULL ELSE + COUNT( 7 ) END * + 91 + - - 17 - + 6 + - - 61 AS col2
----
163

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL CASE + 19 WHEN 10 + + 32 THEN NULL ELSE + COUNT ( 7 ) END * + 91 + - - 17 - + 6 + - - 61 AS col2
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT - - COUNT( DISTINCT - 74 ) + + 91 * 45
----
4096

skipif mysql # not compatible
query I rowsort label-4588
SELECT - - COUNT ( DISTINCT - 74 ) + + 91 * 45
----
4096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4589
SELECT - + 4 + - - 85 DIV + COUNT( - - 70 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-4589
SELECT - + 4 + - - 85 / + COUNT ( - - 70 ) AS col0
----
81

query I rowsort
SELECT DISTINCT 95 * - + 88
----
-8360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4591
SELECT ALL + 27 * - CAST( NULL AS SIGNED ) + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL + 27 * - CAST ( NULL AS INTEGER ) + - 69
----
NULL

query I rowsort
SELECT DISTINCT - 71 * - - 43
----
-3053

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4593
SELECT MIN( + NULLIF ( + 17, - - 2 + - - 27 ) ) * 87 * - COALESCE ( - 65, - 84, 25 ) + + + ( MIN( + 36 ) ) + - 34 DIV 35 * + COUNT( DISTINCT - 97 ) + - + 17
----
96154

skipif mysql # not compatible
query I rowsort label-4593
SELECT MIN ( + NULLIF ( + 17, - - 2 + - - 27 ) ) * 87 * - COALESCE ( - 65, - 84, 25 ) + + + ( MIN ( + 36 ) ) + - 34 / 35 * + COUNT ( DISTINCT - 97 ) + - + 17
----
96154

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT COALESCE ( + - COUNT( * ), 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-4594
SELECT COALESCE ( + - COUNT ( * ), 27 )
----
-1

query II rowsort
SELECT ALL + NULLIF ( - + 74, + 23 ), 77 AS col0
----
-74
77

query II rowsort
SELECT - ( + 96 ) + - - 77 AS col1, + 51 AS col0
----
-19
51

query II rowsort
SELECT ALL + 23 AS col2, + 55 AS col2
----
23
55

query II rowsort
SELECT + 36 col1, + 58 AS col0
----
36
58

query I rowsort
SELECT ALL 70 * 29 - + + 35 col2
----
1995

query II rowsort
SELECT - 6 * + 52 * 74, + 37 AS col2
----
-23088
37

query I rowsort
SELECT COALESCE ( - 2, + + 5 + + 86 )
----
-2

query I rowsort
SELECT - ( 59 ) * - 33 + 35
----
1982

query II rowsort
SELECT + 93 AS col2, 65 AS col1
----
93
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT + CASE - COUNT( * ) WHEN + + 10 THEN + + SUM( DISTINCT + 2 ) WHEN - COUNT( ALL + 73 ) THEN NULL ELSE + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT + CASE - COUNT ( * ) WHEN + + 10 THEN + + SUM ( DISTINCT + 2 ) WHEN - COUNT ( ALL + 73 ) THEN NULL ELSE + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT + 46 * COUNT( DISTINCT 13 )
----
46

skipif mysql # not compatible
query I rowsort label-4605
SELECT + 46 * COUNT ( DISTINCT 13 )
----
46

query II rowsort
SELECT 27 * 89 + + 41 * - + 31 col0, + 61 * - 27 - + 67 + + 17 AS col1
----
1132
-1697

query I rowsort
SELECT ALL 70 * - 56 AS col2
----
-3920

query I rowsort
SELECT ALL 28 * - 58 AS col1
----
-1624

onlyif mysql # aggregate syntax: 
query II rowsort label-4609
SELECT - COUNT( * ) AS col0, 84 AS col1
----
-1
84

skipif mysql # not compatible
query II rowsort label-4609
SELECT - COUNT ( * ) AS col0, 84 AS col1
----
-1
84

onlyif mysql # aggregate syntax: 
query II rowsort label-4610
SELECT ALL 59 AS col0, + MIN( + 43 )
----
59
43

skipif mysql # not compatible
query II rowsort label-4610
SELECT ALL 59 AS col0, + MIN ( + 43 )
----
59
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4611
SELECT + 28 DIV - 31 col0
----
0

skipif mysql # not compatible
query I rowsort label-4611
SELECT + 28 / - 31 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4612
SELECT ALL - NULLIF ( - 33, ( - + 56 ) / - - MAX( 40 ) + - 93 + 8 / - 48 + 41 - COUNT( * ) + - - 27 * - 50 + - + 44 / + 99 ) * ( - ( - 38 ) ) - + + 56 * - + ( 11 ) AS col2, 60
----
1870
60

skipif mysql # not compatible
query II rowsort label-4612
SELECT ALL - NULLIF ( - 33, ( - + 56 ) / - - MAX ( 40 ) + - 93 + 8 / - 48 + 41 - COUNT ( * ) + - - 27 * - 50 + - + 44 / + 99 ) * ( - ( - 38 ) ) - + + 56 * - + ( 11 ) AS col2, 60
----
1870
60

query I rowsort
SELECT - 16 * + + 88 * 5 * + 67 * - 91 col2
----
42922880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4614
SELECT - - 12 AS col2, + 81 - - COALESCE ( - 76, + 8, + 58 * 1 + + + CASE + 73 WHEN + + 14 * + - 61 + + - 28 THEN - + 82 * - COALESCE ( + 49, - - 70, - - 54 + + MIN( + 35 ) + + 70 + 86 + 83 * + 36 DIV 71 ) DIV - 85 * - 25 * - CAST( NULL AS SIGNED ) END - - + 91 )
----
12
5

skipif mysql # not compatible
query II rowsort label-4614
SELECT - - 12 AS col2, + 81 - - COALESCE ( - 76, + 8, + 58 * 1 + + + CASE + 73 WHEN + + 14 * + - 61 + + - 28 THEN - + 82 * - COALESCE ( + 49, - - 70, - - 54 + + MIN ( + 35 ) + + 70 + 86 + 83 * + 36 / 71 ) / - 85 * - 25 * - CAST ( NULL AS INTEGER ) END - - + 91 )
----
12
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4615
SELECT DISTINCT - 82 + 44 * COUNT( * ), 47 * - 32 col0
----
-38
-1504

skipif mysql # not compatible
query II rowsort label-4615
SELECT DISTINCT - 82 + 44 * COUNT ( * ), 47 * - 32 col0
----
-38
-1504

query I rowsort
SELECT + 22 - + 53 * - + 83 AS col0
----
4421

query I rowsort
SELECT ALL 92 + - + 85 * + + ( - + ( 61 ) )
----
5277

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT ALL + NULLIF ( + + 44, + 92 * + 3 + + + 37 ) + + + ( + 74 ) * + COUNT( * ) AS col1
----
118

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL + NULLIF ( + + 44, + 92 * + 3 + + + 37 ) + + + ( + 74 ) * + COUNT ( * ) AS col1
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-4619
SELECT - COUNT( * ), COUNT( * ) * - 54 + + 86 AS col1
----
-1
32

skipif mysql # not compatible
query II rowsort label-4619
SELECT - COUNT ( * ), COUNT ( * ) * - 54 + + 86 AS col1
----
-1
32

query II rowsort
SELECT ALL 26 AS col1, 73
----
26
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT DISTINCT COUNT( * ) + 44 + - 73 + 39 col1
----
11

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT COUNT ( * ) + 44 + - 73 + 39 col1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4622
SELECT + + 94 DIV 21 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4622
SELECT + + 94 / 21 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4623
SELECT ALL - 89 + CASE - - 73 WHEN - + ( + 38 ) * - 78 + MAX( 48 ) - + + ( + 70 ) - - COALESCE ( - 71, - MIN( 81 ), - 26 * - 63 - - 77 ) THEN - 30 * 22 + - - COUNT( 40 ) - AVG ( - 60 ) * + CAST( NULL AS SIGNED ) WHEN - 39 - - CAST( NULL AS DECIMAL ) - - 44 THEN + 56 * - - 78 + + 12 * - 65 END + + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL - 89 + CASE - - 73 WHEN - + ( + 38 ) * - 78 + MAX ( 48 ) - + + ( + 70 ) - - COALESCE ( - 71, - MIN ( 81 ), - 26 * - 63 - - 77 ) THEN - 30 * 22 + - - COUNT ( 40 ) - AVG ( - 60 ) * + CAST ( NULL AS INTEGER ) WHEN - 39 - - CAST ( NULL AS REAL ) - - 44 THEN + 56 * - - 78 + + 12 * - 65 END + + 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4624
SELECT ALL SUM( 19 ) DIV + 19 * 1 + - + COUNT( * ) + + + 26 col0
----
26

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL SUM ( 19 ) / + 19 * 1 + - + COUNT ( * ) + + + 26 col0
----
26

query I rowsort
SELECT + + 50 * - - 59 AS col1
----
2950

onlyif mysql # DIV for integer division: 
query I rowsort label-4626
SELECT + 34 DIV - 23 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4626
SELECT + 34 / - 23 AS col2
----
-1

query I rowsort
SELECT + 47 * + 99 + + + COALESCE ( + 67, 40 + 25 - + - 22 + 54 + 93 ) + - ( + 64 ) + 77
----
4733

query I rowsort
SELECT ALL + - ( - 45 ) AS col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4629
SELECT CAST( 28 AS SIGNED ), - 23 col0
----
28
-23

skipif mysql # not compatible
query II rowsort label-4629
SELECT CAST ( 28 AS INTEGER ), - 23 col0
----
28
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4630
SELECT - COALESCE ( - COUNT( * ), + 69 * - - CAST( + - 49 AS SIGNED ) ) DIV 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4630
SELECT - COALESCE ( - COUNT ( * ), + 69 * - - CAST ( + - 49 AS INTEGER ) ) / 39 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4631
SELECT DISTINCT 65 DIV 39 * - + 11 * 57 AS col0
----
-627

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT 65 / 39 * - + 11 * 57 AS col0
----
-627

query I rowsort
SELECT ALL + 94 * + + 55
----
5170

query I rowsort
SELECT + COALESCE ( - + 70, - - 67 * 66 + - 68, - + 25, - - 72 * - - 65 * 17 ) - 36 AS col0
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4634
SELECT ( 22 ) * - CAST( NULL AS SIGNED ) - - 50 * CAST( + 73 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT ( 22 ) * - CAST ( NULL AS INTEGER ) - - 50 * CAST ( + 73 AS INTEGER )
----
NULL

query I rowsort
SELECT + 22 * + - 23 + + 21 AS col0
----
-485

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT ALL - MAX( 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL - MAX ( 73 ) AS col0
----
-73

query I rowsort
SELECT 94 + NULLIF ( 99, 8 )
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT ALL 40 * COUNT( * ) * 80
----
3200

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL 40 * COUNT ( * ) * 80
----
3200

onlyif mysql # aggregate syntax: 
query II rowsort label-4639
SELECT DISTINCT + 23 * + - 40 * - + SUM( - 10 ), 87 AS col0
----
-9200
87

skipif mysql # not compatible
query II rowsort label-4639
SELECT DISTINCT + 23 * + - 40 * - + SUM ( - 10 ), 87 AS col0
----
-9200
87

query II rowsort
SELECT 9 - - 80 AS col0, + 31
----
89
31

query I rowsort
SELECT 13 * - 59
----
-767

query I rowsort
SELECT - 78 * + 19 - + 1
----
-1483

query I rowsort
SELECT 90 * + 26 * 75
----
175500

query I rowsort
SELECT 69 * - 51 + + - 49
----
-3568

query I rowsort
SELECT 3 * - - 54
----
162

query I rowsort
SELECT ALL + 45 * + 9 - 16 AS col2
----
389

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4647
SELECT - COUNT( + + 20 ) + - MAX( - 74 ) + - NULLIF ( + 65, - 87 ) * 76 DIV 98 + - 97 * + 62 * 56 + - - 36 * - + 46 + + 76 col2
----
-338341

skipif mysql # not compatible
query I rowsort label-4647
SELECT - COUNT ( + + 20 ) + - MAX ( - 74 ) + - NULLIF ( + 65, - 87 ) * 76 / 98 + - 97 * + 62 * 56 + - - 36 * - + 46 + + 76 col2
----
-338341

query I rowsort
SELECT DISTINCT + + 41 + - 71
----
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-4649
SELECT DISTINCT + 53 + - 40 + + 87 DIV - 65 AS col2, + 99
----
12
99

skipif mysql # not compatible
query II rowsort label-4649
SELECT DISTINCT + 53 + - 40 + + 87 / - 65 AS col2, + 99
----
12
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT MAX( ALL - + 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-4650
SELECT MAX ( ALL - + 68 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL + 84 + - - COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL + 84 + - - COUNT ( * ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT ALL + COUNT( * ) + - + 82 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL + COUNT ( * ) + - + 82 AS col0
----
-81

query I rowsort
SELECT DISTINCT + + 49 + - ( + COALESCE ( 17, 73 ) )
----
32

query I rowsort
SELECT DISTINCT + - 99 + + 11
----
-88

query II rowsort
SELECT + 32 + - 32 col0, 31
----
0
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT DISTINCT + ( + 66 ) - + - COUNT( + 92 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT + ( + 66 ) - + - COUNT ( + 92 ) AS col0
----
67

query I rowsort
SELECT DISTINCT 24 - + - 3
----
27

query I rowsort
SELECT ALL 59 * + 5
----
295

query II rowsort
SELECT DISTINCT - 46 col0, 94 AS col2
----
-46
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT ALL 23 * NULLIF ( + 30, - COUNT( DISTINCT 89 ) * 67 - + 79 )
----
690

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL 23 * NULLIF ( + 30, - COUNT ( DISTINCT 89 ) * 67 - + 79 )
----
690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4661
SELECT ALL + COUNT( - + 59 ) DIV + 32 + 59 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL + COUNT ( - + 59 ) / + 32 + 59 AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4662
SELECT 64 * + - ( + CASE - + 23 WHEN - ( - 66 ) * - 87 / 4 - 37 - + 83 * CAST( NULL AS SIGNED ) * + 90 THEN + 18 + - + 21 WHEN 96 THEN NULL END ) + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4662
SELECT 64 * + - ( + CASE - + 23 WHEN - ( - 66 ) * - 87 / 4 - 37 - + 83 * CAST ( NULL AS INTEGER ) * + 90 THEN + 18 + - + 21 WHEN 96 THEN NULL END ) + + 57
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4663
SELECT ALL 93 DIV + + MAX( ALL + 60 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL 93 / + + MAX ( ALL + 60 ) AS col0
----
1

query I rowsort
SELECT DISTINCT 52 + + NULLIF ( + 10, - 77 ) + + 75 * - 35 AS col0
----
-2563

onlyif mysql # DIV for integer division: 
query I rowsort label-4665
SELECT ALL 10 DIV - + 86
----
0

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL 10 / - + 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT SUM( DISTINCT 94 ) * + 20
----
1880

skipif mysql # not compatible
query I rowsort label-4666
SELECT SUM ( DISTINCT 94 ) * + 20
----
1880

query II rowsort
SELECT + 58 col1, ( - 46 )
----
58
-46

query I rowsort
SELECT 48 * - 12 * - 35
----
20160

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT ALL + MAX( ALL - 10 ) + SUM( ALL - - 10 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL + MAX ( ALL - 10 ) + SUM ( ALL - - 10 ) col0
----
0

query I rowsort
SELECT DISTINCT + 82 + + 21 AS col0
----
103

query I rowsort
SELECT ALL - + 77 + - - 49
----
-28

query II rowsort
SELECT ALL 88 AS col1, - 24 * - - 12 AS col2
----
88
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-4673
SELECT ALL - ( + 21 ) + 84 + - - 33 DIV - - 44 * - 94
----
63

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL - ( + 21 ) + 84 + - - 33 / - - 44 * - 94
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT DISTINCT + - 47 + - MIN( 27 ) + + 94
----
20

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT + - 47 + - MIN ( 27 ) + + 94
----
20

query I rowsort
SELECT - 40 * - - 52 AS col0
----
-2080

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT DISTINCT + SUM( DISTINCT - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT + SUM ( DISTINCT - 44 )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4677
SELECT ALL - + 5 DIV 16 + + - COUNT( * ) - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL - + 5 / 16 + + - COUNT ( * ) - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT - CASE + 19 WHEN + 90 THEN + 53 - - + 36 + - 39 * - COUNT( * ) * - - 39 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4678
SELECT - CASE + 19 WHEN + 90 THEN + 53 - - + 36 + - 39 * - COUNT ( * ) * - - 39 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT DISTINCT - CASE - - COUNT( * ) WHEN + + ( + + 14 ) * + 75 * - AVG ( ALL - 5 ) * + + 77 + + 8 / + + 90 * - 86 * - 13 * - 55 + - - 36 THEN NULL ELSE 17 * 58 END * 46 * - 30
----
1360680

skipif mysql # not compatible
query I rowsort label-4679
SELECT DISTINCT - CASE - - COUNT ( * ) WHEN + + ( + + 14 ) * + 75 * - AVG ( ALL - 5 ) * + + 77 + + 8 / + + 90 * - 86 * - 13 * - 55 + - - 36 THEN NULL ELSE 17 * 58 END * 46 * - 30
----
1360680

query I rowsort
SELECT DISTINCT + 4 * + 41
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-4681
SELECT 72 + - + 59 DIV - 37 + + 79 + + + 53
----
205

skipif mysql # not compatible
query I rowsort label-4681
SELECT 72 + - + 59 / - 37 + + 79 + + + 53
----
205

query I rowsort
SELECT - 56 - + - 49 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT 97 - - 71 + + COUNT( * )
----
169

skipif mysql # not compatible
query I rowsort label-4683
SELECT 97 - - 71 + + COUNT ( * )
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4684
SELECT ALL - 76 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL - 76 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4685
SELECT - 65 DIV 33 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4685
SELECT - 65 / 33 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4686
SELECT ALL - MIN( ( + - 9 ) ) DIV 4 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL - MIN ( ( + - 9 ) ) / 4 AS col0
----
2

query II rowsort
SELECT - 24 AS col2, 38 AS col1
----
-24
38

query I rowsort
SELECT + 47 * 40 * - 19 AS col2
----
-35720

query II rowsort
SELECT ALL + 49 AS col2, + 90 * - 79 * + + 5
----
49
-35550

query I rowsort
SELECT ALL ( + 93 ) * 31
----
2883

query I rowsort
SELECT + 11 * - 64 AS col0
----
-704

onlyif mysql # aggregate syntax: 
query II rowsort label-4692
SELECT ALL 2 * COUNT( * ) + + + 53 * + 13 AS col1, 41 + - 36
----
691
5

skipif mysql # not compatible
query II rowsort label-4692
SELECT ALL 2 * COUNT ( * ) + + + 53 * + 13 AS col1, 41 + - 36
----
691
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4693
SELECT DISTINCT + COUNT( * ) AS col0, 81 AS col0
----
1
81

skipif mysql # not compatible
query II rowsort label-4693
SELECT DISTINCT + COUNT ( * ) AS col0, 81 AS col0
----
1
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4694
SELECT + COUNT( * ), + 77 + + - 14 + - ( - + 3 ) - - ( - + 76 ) * + - CAST( + + 65 AS SIGNED ) AS col1, + - ( COUNT( * ) ) AS col1
----
1
5006
-1

skipif mysql # not compatible
query III rowsort label-4694
SELECT + COUNT ( * ), + 77 + + - 14 + - ( - + 3 ) - - ( - + 76 ) * + - CAST ( + + 65 AS INTEGER ) AS col1, + - ( COUNT ( * ) ) AS col1
----
1
5006
-1

query I rowsort
SELECT + 81 * + 78 * 8 col1
----
50544

query I rowsort
SELECT - 93 - + 79 col2
----
-172

query I rowsort
SELECT ALL - 37 * + 41 + 13
----
-1504

query I rowsort
SELECT 5 * - + 84 + - 69
----
-489

query I rowsort
SELECT DISTINCT 69 * - 87 AS col2
----
-6003

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4700
SELECT + + COALESCE ( + 65, + 81 DIV + 40 + 34, COUNT( * ) * - - 53 - - + 84 )
----
65

skipif mysql # not compatible
query I rowsort label-4700
SELECT + + COALESCE ( + 65, + 81 / + 40 + 34, COUNT ( * ) * - - 53 - - + 84 )
----
65

query II rowsort
SELECT ALL + - 81 AS col0, + ( + ( + 52 ) ) + + 33 AS col0
----
-81
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT - COUNT( * ) + - - 67
----
66

skipif mysql # not compatible
query I rowsort label-4702
SELECT - COUNT ( * ) + - - 67
----
66

query I rowsort
SELECT + - 12 * 82 * - 75 AS col2
----
73800

query II rowsort
SELECT DISTINCT - 1 * - 59 AS col1, 83
----
59
83

query I rowsort
SELECT ALL CASE - - 35 WHEN 50 THEN + + 96 + 8 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4706
SELECT 63 * - + 47 + - 50 - COUNT( * ), + COALESCE ( + - NULLIF ( + 4, + + 69 / 88 ), + 1 * 51 * - COUNT( * ) ) * - 91 * - - 57 * - 92 + + 57 AS col2
----
-3012
-1908759

skipif mysql # not compatible
query II rowsort label-4706
SELECT 63 * - + 47 + - 50 - COUNT ( * ), + COALESCE ( + - NULLIF ( + 4, + + 69 / 88 ), + 1 * 51 * - COUNT ( * ) ) * - 91 * - - 57 * - 92 + + 57 AS col2
----
-3012
-1908759

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL - SUM( DISTINCT + + 36 ) - 22 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL - SUM ( DISTINCT + + 36 ) - 22 AS col1
----
-58

query II rowsort
SELECT DISTINCT + 89 AS col0, NULLIF ( + + ( + 90 ), 82 ) + 76 + - 18
----
89
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4709
SELECT - CAST( NULL AS SIGNED ) * + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4709
SELECT - CAST ( NULL AS INTEGER ) * + + 71
----
NULL

query I rowsort
SELECT ALL 83 * + + 10 * + 37 + - - ( + 32 )
----
30742

query I rowsort
SELECT + - ( 10 ) * COALESCE ( + 6, 54, - 97, + + 53 ) col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4712
SELECT - - 5 * + 21 * - 68 + - 93 DIV + - CAST( - COUNT( + - 42 ) AS SIGNED ) AS col0
----
-7233

skipif mysql # not compatible
query I rowsort label-4712
SELECT - - 5 * + 21 * - 68 + - 93 / + - CAST ( - COUNT ( + - 42 ) AS INTEGER ) AS col0
----
-7233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4713
SELECT - 54 + + - CAST( NULL AS SIGNED ) * + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4713
SELECT - 54 + + - CAST ( NULL AS INTEGER ) * + 84 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4714
SELECT - 48 DIV + 1, + 79 * - + 20 AS col1
----
-48
-1580

skipif mysql # not compatible
query II rowsort label-4714
SELECT - 48 / + 1, + 79 * - + 20 AS col1
----
-48
-1580

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4715
SELECT - 59 + 91 AS col0, CAST( NULL AS SIGNED ) AS col1
----
32
NULL

skipif mysql # not compatible
query II rowsort label-4715
SELECT - 59 + 91 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
32
NULL

query I rowsort
SELECT ALL + 36 + + 2 + 54
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT ALL - 45 * MAX( ALL + 64 ) AS col2
----
-2880

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL - 45 * MAX ( ALL + 64 ) AS col2
----
-2880

onlyif mysql # DIV for integer division: 
query I rowsort label-4718
SELECT - 12 DIV 61 * + + 75
----
0

skipif mysql # not compatible
query I rowsort label-4718
SELECT - 12 / 61 * + + 75
----
0

query I rowsort
SELECT ALL - 73 + 74
----
1

query I rowsort
SELECT - 5 + 21 + 21
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT ALL + SUM( + 48 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL + SUM ( + 48 ) AS col2
----
48

query I rowsort
SELECT - 93 * 74 col0
----
-6882

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT COUNT( * ) * + MAX( ALL 22 ) + - 88 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4723
SELECT COUNT ( * ) * + MAX ( ALL 22 ) + - 88 AS col1
----
-66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4724
SELECT CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) col0, 42 - 0 AS col2
----
NULL
42

skipif mysql # not compatible
query II rowsort label-4724
SELECT CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) col0, 42 - 0 AS col2
----
NULL
42

query I rowsort
SELECT ( 95 ) col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4726
SELECT DISTINCT + CASE + 41 WHEN CAST( NULL AS SIGNED ) + + 50 THEN NULL WHEN + + 61 THEN + 40 ELSE 62 END, COUNT( * ) + - 75 + - + 6 AS col2, - 18 AS col1
----
62
-80
-18

skipif mysql # not compatible
query III rowsort label-4726
SELECT DISTINCT + CASE + 41 WHEN CAST ( NULL AS INTEGER ) + + 50 THEN NULL WHEN + + 61 THEN + 40 ELSE 62 END, COUNT ( * ) + - 75 + - + 6 AS col2, - 18 AS col1
----
62
-80
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4727
SELECT ALL - 66 DIV - + 21 + + 5 + + 54 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL - 66 / - + 21 + + 5 + + 54 AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4728
SELECT ( CAST( NULL AS SIGNED ) ), ( NULLIF ( + 14, - 75 + ( + 16 ) * - + ( CAST( 85 AS SIGNED ) ) ) ) col1
----
NULL
14

skipif mysql # not compatible
query II rowsort label-4728
SELECT ( CAST ( NULL AS INTEGER ) ), ( NULLIF ( + 14, - 75 + ( + 16 ) * - + ( CAST ( 85 AS INTEGER ) ) ) ) col1
----
NULL
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4729
SELECT ALL + CASE + ( - COUNT( * ) ) WHEN + - 68 * 31 THEN 82 * COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) WHEN + - 88 THEN - 48 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL + CASE + ( - COUNT ( * ) ) WHEN + - 68 * 31 THEN 82 * COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) WHEN + - 88 THEN - 48 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT + + NULLIF ( + - COUNT( * ), - 35 + + - 46 ) + + - ( - - 45 )
----
-46

skipif mysql # not compatible
query I rowsort label-4730
SELECT + + NULLIF ( + - COUNT ( * ), - 35 + + - 46 ) + + - ( - - 45 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT ALL + - 36 * - - COUNT( * ) - 80 col2
----
-116

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL + - 36 * - - COUNT ( * ) - 80 col2
----
-116

query I rowsort
SELECT - - 16 * - - 34
----
544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4733
SELECT DISTINCT 74 * CASE + 75 WHEN - 59 THEN NULL WHEN COUNT( 72 ) THEN - 7 * - 41 + - COUNT( * ) - - 77 + CAST( NULL AS SIGNED ) ELSE NULL END - - - 93 + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT 74 * CASE + 75 WHEN - 59 THEN NULL WHEN COUNT ( 72 ) THEN - 7 * - 41 + - COUNT ( * ) - - 77 + CAST ( NULL AS INTEGER ) ELSE NULL END - - - 93 + 50 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4734
SELECT + MIN( + 68 ) AS col2, MAX( DISTINCT - - 77 ) col2
----
68
77

skipif mysql # not compatible
query II rowsort label-4734
SELECT + MIN ( + 68 ) AS col2, MAX ( DISTINCT - - 77 ) col2
----
68
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT + - 67 / - CASE + 58 WHEN - + COALESCE ( 60, + - 34 ) * - 57 + COUNT( * ) * + 14 / - 87 THEN COUNT( * ) * + 96 / - 45 * + 65 + - - COUNT( * ) WHEN - 76 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT + - 67 / - CASE + 58 WHEN - + COALESCE ( 60, + - 34 ) * - 57 + COUNT ( * ) * + 14 / - 87 THEN COUNT ( * ) * + 96 / - 45 * + 65 + - - COUNT ( * ) WHEN - 76 THEN NULL END
----
NULL

query II rowsort
SELECT + 31 * - - 2 AS col1, + ( 60 ) * 59 * + 24
----
62
84960

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT DISTINCT - - 63 * + + 95 * + - MAX( 35 ) AS col1
----
-209475

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT - - 63 * + + 95 * + - MAX ( 35 ) AS col1
----
-209475

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4738
SELECT + 55 + - COUNT( * ) AS col0, + CASE + 32 WHEN + 56 * + 3 + + COALESCE ( + + 40, - ( + 87 ) DIV - + COUNT( * ) + 25 + 30 + + 96 ) THEN NULL ELSE - 88 END DIV - 24 + + + 22
----
54
25

skipif mysql # not compatible
query II rowsort label-4738
SELECT + 55 + - COUNT ( * ) AS col0, + CASE + 32 WHEN + 56 * + 3 + + COALESCE ( + + 40, - ( + 87 ) / - + COUNT ( * ) + 25 + 30 + + 96 ) THEN NULL ELSE - 88 END / - 24 + + + 22
----
54
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4739
SELECT + + 40 DIV 55 + + 20 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4739
SELECT + + 40 / 55 + + 20 AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4740
SELECT CAST( + - SUM( DISTINCT 57 ) AS SIGNED ) + COUNT( * ) * + 49 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-4740
SELECT CAST ( + - SUM ( DISTINCT 57 ) AS INTEGER ) + COUNT ( * ) * + 49 AS col1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-4741
SELECT DISTINCT 4 DIV + COALESCE ( - + 59, ( + + 32 ) - - 66 )
----
0

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT 4 / + COALESCE ( - + 59, ( + + 32 ) - - 66 )
----
0

query I rowsort
SELECT 29 * - 5
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT ALL + 96 * - + COUNT( * ) + + 13
----
-83

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL + 96 * - + COUNT ( * ) + + 13
----
-83

query I rowsort
SELECT 87 - + 76
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT DISTINCT + COALESCE ( - 1, + - 43 ) + - SUM( - 79 ) * + 3 * + - COUNT( * ) AS col1
----
-238

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT + COALESCE ( - 1, + - 43 ) + - SUM ( - 79 ) * + 3 * + - COUNT ( * ) AS col1
----
-238

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4746
SELECT ALL 0 + + + ( - COALESCE ( 6, - 38 * + 87 * COALESCE ( + 56, - - 51, 37 ), + 52 * + - 83, CAST( NULL AS SIGNED ) ) )
----
-6

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL 0 + + + ( - COALESCE ( 6, - 38 * + 87 * COALESCE ( + 56, - - 51, 37 ), + 52 * + - 83, CAST ( NULL AS INTEGER ) ) )
----
-6

query I rowsort
SELECT ALL + 4 + 78
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT DISTINCT COUNT( * ) + 72 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT COUNT ( * ) + 72 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL 94 * + - MAX( ALL + + 8 )
----
-752

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL 94 * + - MAX ( ALL + + 8 )
----
-752

query I rowsort
SELECT 22 - - + 82 AS col0
----
104

query II rowsort
SELECT 17 AS col1, 59
----
17
59

query I rowsort
SELECT ALL - NULLIF ( - 29, 59 ) + + 32 AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4753
SELECT DISTINCT - ( - ( - CASE + + 72 WHEN - COUNT( * ) THEN NULL WHEN - - 10 * 82 THEN + CAST( 35 AS SIGNED ) WHEN + COUNT( * ) THEN NULL ELSE NULL END ) ) / + 86 + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT - ( - ( - CASE + + 72 WHEN - COUNT ( * ) THEN NULL WHEN - - 10 * 82 THEN + CAST ( 35 AS INTEGER ) WHEN + COUNT ( * ) THEN NULL ELSE NULL END ) ) / + 86 + 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4754
SELECT DISTINCT - 51 AS col1, COUNT( * ) AS col1
----
-51
1

skipif mysql # not compatible
query II rowsort label-4754
SELECT DISTINCT - 51 AS col1, COUNT ( * ) AS col1
----
-51
1

query I rowsort
SELECT ALL + 15 * - 98
----
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT ALL COUNT( * ) + + 43 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL COUNT ( * ) + + 43 AS col0
----
44

query I rowsort
SELECT DISTINCT 87 - - 93 AS col0
----
180

query I rowsort
SELECT DISTINCT + 97 * + - 45
----
-4365

query I rowsort
SELECT DISTINCT + NULLIF ( 0, 90 ) - + ( - 54 ) col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ALL + ( + 84 ) * - + CASE - 97 WHEN - + 52 * - - 60 * - 51 * - 46 / - CASE COUNT( - 50 ) WHEN + - NULLIF ( + 35, - 82 * + CASE 57 WHEN 0 + 48 THEN - COALESCE ( - 14, - 96, - 49, + + 76 ) * - NULLIF ( + COUNT( * ), 9 ) * 97 * 53 ELSE - 69 END ) THEN NULL WHEN + + 10 / - MIN( DISTINCT - - 68 ) THEN - 93 WHEN - NULLIF ( + 79, 80 ) THEN NULL ELSE NULL END THEN NULL WHEN 75 THEN 23 / - + 81 + + COUNT( * ) + 77 * 33 ELSE NULL END / 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL + ( + 84 ) * - + CASE - 97 WHEN - + 52 * - - 60 * - 51 * - 46 / - CASE COUNT ( - 50 ) WHEN + - NULLIF ( + 35, - 82 * + CASE 57 WHEN 0 + 48 THEN - COALESCE ( - 14, - 96, - 49, + + 76 ) * - NULLIF ( + COUNT ( * ), 9 ) * 97 * 53 ELSE - 69 END ) THEN NULL WHEN + + 10 / - MIN ( DISTINCT - - 68 ) THEN - 93 WHEN - NULLIF ( + 79, 80 ) THEN NULL ELSE NULL END THEN NULL WHEN 75 THEN 23 / - + 81 + + COUNT ( * ) + 77 * 33 ELSE NULL END / 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT ( - MAX( - 1 ) ) + - - 37 - 12 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4761
SELECT ( - MAX ( - 1 ) ) + - - 37 - 12 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT - 19 * MIN( + 88 )
----
-1672

skipif mysql # not compatible
query I rowsort label-4762
SELECT - 19 * MIN ( + 88 )
----
-1672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT - 95 * + CAST( + 4 AS SIGNED ) + - - 22
----
-358

skipif mysql # not compatible
query I rowsort label-4763
SELECT - 95 * + CAST ( + 4 AS INTEGER ) + - - 22
----
-358

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4764
SELECT + CAST( + 36 AS SIGNED ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4764
SELECT + CAST ( + 36 AS INTEGER ) AS col1
----
36

query II rowsort
SELECT ALL - 16 col2, + 93
----
-16
93

query I rowsort
SELECT 60 + - 84 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT NULLIF ( + - 37, + ( - - 79 ) - + 45 * + 10 + + MAX( ALL + + 90 ) ) * + 78 AS col2
----
-2886

skipif mysql # not compatible
query I rowsort label-4767
SELECT NULLIF ( + - 37, + ( - - 79 ) - + 45 * + 10 + + MAX ( ALL + + 90 ) ) * + 78 AS col2
----
-2886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT 50 / COUNT( * ) * 32 * - 8 - - - NULLIF ( - + 22, - 46 + 58 ) + - - 84 + - 93 * + 73 * 49 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4768
SELECT 50 / COUNT ( * ) * 32 * - 8 - - - NULLIF ( - + 22, - 46 + 58 ) + - - 84 + - 93 * + 73 * 49 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4769
SELECT ALL + + CAST( + ( - 29 ) AS SIGNED ) DIV - ( 71 ) + + 72 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL + + CAST ( + ( - 29 ) AS INTEGER ) / - ( 71 ) + + 72 AS col0
----
72

query II rowsort
SELECT + CASE - - 62 WHEN + + 50 THEN NULL ELSE + 20 * 30 END * + 95 col1, + 13
----
57000
13

query I rowsort
SELECT ALL - 60 * 6 AS col1
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT + 6 * 52 * - 51 + + MAX( - 26 ) * - MIN( - ( 20 ) ) AS col0
----
-16432

skipif mysql # not compatible
query I rowsort label-4772
SELECT + 6 * 52 * - 51 + + MAX ( - 26 ) * - MIN ( - ( 20 ) ) AS col0
----
-16432

onlyif mysql # aggregate syntax: 
query II rowsort label-4773
SELECT + 25, COUNT( * ) AS col0
----
25
1

skipif mysql # not compatible
query II rowsort label-4773
SELECT + 25, COUNT ( * ) AS col0
----
25
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4774
SELECT DISTINCT - CAST( - + ( - 82 ) AS SIGNED ) + + - COUNT( * ) * 69 DIV 46 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4774
SELECT DISTINCT - CAST ( - + ( - 82 ) AS INTEGER ) + + - COUNT ( * ) * 69 / 46 AS col0
----
-83

query I rowsort
SELECT ALL 92 * - 7 AS col1
----
-644

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4776
SELECT 98 DIV COUNT( * ) - - 21 + - + 67 + + 76 * - 6 + + NULLIF ( - - 12, 81 * COUNT( * ) ) + + 79 - - - ( COUNT( * ) ) * - COUNT( * ) * + 6 + - COUNT( * ) * + + COUNT( * ) col0
----
-308

skipif mysql # not compatible
query I rowsort label-4776
SELECT 98 / COUNT ( * ) - - 21 + - + 67 + + 76 * - 6 + + NULLIF ( - - 12, 81 * COUNT ( * ) ) + + 79 - - - ( COUNT ( * ) ) * - COUNT ( * ) * + 6 + - COUNT ( * ) * + + COUNT ( * ) col0
----
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT + 36 + COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-4777
SELECT + 36 + COUNT ( * ) AS col1
----
37

query I rowsort
SELECT ALL 6 + - + NULLIF ( - 29, + 85 )
----
35

query I rowsort
SELECT - 76 + + 56 AS col1
----
-20

query I rowsort
SELECT DISTINCT + + 44 + - NULLIF ( + 76, 46 * - 48 )
----
-32

query I rowsort
SELECT DISTINCT 89 + 22 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT DISTINCT MAX( DISTINCT + - 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT MAX ( DISTINCT + - 34 ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT COALESCE ( - COUNT( * ), 16 ) * ( 88 ) * + COUNT( * ) * + 9 - - 26 AS col0
----
-766

skipif mysql # not compatible
query I rowsort label-4783
SELECT COALESCE ( - COUNT ( * ), 16 ) * ( 88 ) * + COUNT ( * ) * + 9 - - 26 AS col0
----
-766

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4784
SELECT ( 34 ) DIV COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-4784
SELECT ( 34 ) / COUNT ( * ) AS col1
----
34

query I rowsort
SELECT 22 + + 13 AS col2
----
35

query I rowsort
SELECT ALL 88 + - 87 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT - MAX( ALL COALESCE ( + 30, 55 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-4787
SELECT - MAX ( ALL COALESCE ( + 30, 55 ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT COALESCE ( 93, COUNT( * ) * + COUNT( * ) ) + + 7 * - 44 col2
----
-215

skipif mysql # not compatible
query I rowsort label-4788
SELECT COALESCE ( 93, COUNT ( * ) * + COUNT ( * ) ) + + 7 * - 44 col2
----
-215

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT COUNT( * ) + - 34 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-4789
SELECT COUNT ( * ) + - 34 AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4790
SELECT CAST( NULL AS SIGNED ) + - 32 * - + 91 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4790
SELECT CAST ( NULL AS INTEGER ) + - 32 * - + 91 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4791
SELECT ALL + COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) - - COALESCE ( - 5, - - 36 * - ( - MIN( ALL 39 ) ) + + + COUNT( * ) ) + CASE WHEN NOT + 38 = ( + 78 ) * 98 - - + NULLIF ( - 39, + - ( - MIN( DISTINCT - 41 ) ) ) THEN + - 2 DIV - COUNT( * ) END
----
-3

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL + COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) - - COALESCE ( - 5, - - 36 * - ( - MIN ( ALL 39 ) ) + + + COUNT ( * ) ) + CASE WHEN NOT + 38 = ( + 78 ) * 98 - - + NULLIF ( - 39, + - ( - MIN ( DISTINCT - 41 ) ) ) THEN + - 2 / - COUNT ( * ) END
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT NULLIF ( - - MIN( ALL + 41 ), + 26 ) + - 12 - - CASE + 24 WHEN - - 29 + 43 THEN 67 + COUNT( * ) END * + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT NULLIF ( - - MIN ( ALL + 41 ), + 26 ) + - 12 - - CASE + 24 WHEN - - 29 + 43 THEN 67 + COUNT ( * ) END * + 43
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4793
SELECT DISTINCT NULLIF ( ( COUNT( * ) ), + 91 * + 7 * + NULLIF ( + 30, COUNT( * ) DIV + + 98 ) + - 68 - 18 ) * - 68 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT NULLIF ( ( COUNT ( * ) ), + 91 * + 7 * + NULLIF ( + 30, COUNT ( * ) / + + 98 ) + - 68 - 18 ) * - 68 / 80
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4794
SELECT NULLIF ( 36, + - 7 ) * MAX( - CAST( NULL AS SIGNED ) ) + - NULLIF ( - 76, - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4794
SELECT NULLIF ( 36, + - 7 ) * MAX ( - CAST ( NULL AS INTEGER ) ) + - NULLIF ( - 76, - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4795
SELECT COALESCE ( 41, + - 43 * - CAST( 15 AS SIGNED ) ) * 74 + + - 14 AS col0
----
3020

skipif mysql # not compatible
query I rowsort label-4795
SELECT COALESCE ( 41, + - 43 * - CAST ( 15 AS INTEGER ) ) * 74 + + - 14 AS col0
----
3020

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT + COUNT( * ) * - + 75 + - 61 AS col1
----
-136

skipif mysql # not compatible
query I rowsort label-4796
SELECT + COUNT ( * ) * - + 75 + - 61 AS col1
----
-136

query I rowsort
SELECT - 17 * 14 col2
----
-238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4798
SELECT CAST( NULL AS DECIMAL ) / + 76 + 55 + - - COUNT( * ) * SUM( DISTINCT CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4798
SELECT CAST ( NULL AS REAL ) / + 76 + 55 + - - COUNT ( * ) * SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4799
SELECT 19 DIV - ( + 56 ) + 94 * + 12
----
1128

skipif mysql # not compatible
query I rowsort label-4799
SELECT 19 / - ( + 56 ) + 94 * + 12
----
1128

query I rowsort
SELECT ALL - ( + + 95 ) AS col1
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-4801
SELECT + COALESCE ( 3, 39 DIV 29 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4801
SELECT + COALESCE ( 3, 39 / 29 ) AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4802
SELECT COALESCE ( - 15, ( - 11 ) * - + 74 ) * + 90 + + 8 * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4802
SELECT COALESCE ( - 15, ( - 11 ) * - + 74 ) * + 90 + + 8 * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT DISTINCT COUNT( * ) * - 18 - + + 8 + - - 41
----
15

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT COUNT ( * ) * - 18 - + + 8 + - - 41
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4804
SELECT ALL + ( - COUNT( * ) ) + - 27 / 83 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL + ( - COUNT ( * ) ) + - 27 / 83 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT - COALESCE ( - COUNT( * ), + 34 + + 35 * - + 33 ) * - 96 * + 37 + 0 - + + ( - 15 )
----
-3537

skipif mysql # not compatible
query I rowsort label-4805
SELECT - COALESCE ( - COUNT ( * ), + 34 + + 35 * - + 33 ) * - 96 * + 37 + 0 - + + ( - 15 )
----
-3537

onlyif mysql # DIV for integer division: 
query I rowsort label-4806
SELECT ALL - 79 + NULLIF ( + ( + - NULLIF ( + - 26, - 69 * + 40 DIV + NULLIF ( 73, 36 DIV + - 28 * 85 ) + - 47 * - 94 ) ), + + 42 ) DIV + 44 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL - 79 + NULLIF ( + ( + - NULLIF ( + - 26, - 69 * + 40 / + NULLIF ( 73, 36 / + - 28 * 85 ) + - 47 * - 94 ) ), + + 42 ) / + 44 AS col2
----
-79

query I rowsort
SELECT - - 74 * - - 73
----
5402

onlyif mysql # DIV for integer division: 
query I rowsort label-4808
SELECT ALL - 68 + - + 18 DIV 9
----
-70

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - 68 + - + 18 / 9
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT - + CASE - + MAX( + 33 ) WHEN 94 / - - 5 THEN AVG ( 87 ) WHEN - 34 THEN NULL WHEN + 72 THEN NULL END * COUNT( * ) * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT - + CASE - + MAX ( + 33 ) WHEN 94 / - - 5 THEN AVG ( 87 ) WHEN - 34 THEN NULL WHEN + 72 THEN NULL END * COUNT ( * ) * + 89
----
NULL

query II rowsort
SELECT ALL + 88 + 26, + 34 - - + ( + 57 ) col1
----
114
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL NULLIF ( - COUNT( * ), + 23 * + - NULLIF ( - COUNT( * ), + + COUNT( * ) * + + 57 ) + 69 + + 60 + + 19 - - 8 * - 33 / - + COUNT( * ) * 32 * - 30 * + 12 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL NULLIF ( - COUNT ( * ), + 23 * + - NULLIF ( - COUNT ( * ), + + COUNT ( * ) * + + 57 ) + 69 + + 60 + + 19 - - 8 * - 33 / - + COUNT ( * ) * 32 * - 30 * + 12 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT - ( - + 5 ) + - 93 * COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-4812
SELECT - ( - + 5 ) + - 93 * COUNT ( * )
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4813
SELECT + 65 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT + 65 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT DISTINCT + 32 * + - 39 * + - 59 * - - 55 * + COUNT( * ) * COALESCE ( + - 3, - 29 * - 74 ) AS col1
----
-12149280

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT + 32 * + - 39 * + - 59 * - - 55 * + COUNT ( * ) * COALESCE ( + - 3, - 29 * - 74 ) AS col1
----
-12149280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4815
SELECT - 29 - + ( 34 ) * + 0 DIV - + ( + SUM( ALL - 80 ) ) * + NULLIF ( - MIN( ALL 56 ), 45 * COUNT( * ) )
----
-29

skipif mysql # not compatible
query I rowsort label-4815
SELECT - 29 - + ( 34 ) * + 0 / - + ( + SUM ( ALL - 80 ) ) * + NULLIF ( - MIN ( ALL 56 ), 45 * COUNT ( * ) )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT DISTINCT COALESCE ( - - 71, + - 58 * + 33 * - 13 * 97 - + COUNT( * ) ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT COALESCE ( - - 71, + - 58 * + 33 * - 13 * 97 - + COUNT ( * ) ) AS col0
----
71

query I rowsort
SELECT - 5 + - - 49 AS col2
----
44

query I rowsort
SELECT ALL - 87 - + 10
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4819
SELECT ALL + ( CAST( - 24 AS SIGNED ) ) - - - 81 + - + NULLIF ( - 24, - - 99 * - + 73 + - 98 + 94 * - 41 )
----
-81

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL + ( CAST ( - 24 AS INTEGER ) ) - - - 81 + - + NULLIF ( - 24, - - 99 * - + 73 + - 98 + 94 * - 41 )
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4820
SELECT + MIN( DISTINCT 32 ) * COUNT( * ) AS col2, + ( + 33 )
----
32
33

skipif mysql # not compatible
query II rowsort label-4820
SELECT + MIN ( DISTINCT 32 ) * COUNT ( * ) AS col2, + ( + 33 )
----
32
33

query I rowsort
SELECT ALL 69 - + 65 + 26 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT + 51 - + COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-4822
SELECT + 51 - + COUNT ( * ) AS col0
----
50

query I rowsort
SELECT + 69 * 16
----
1104

onlyif mysql # DIV for integer division: 
query I rowsort label-4824
SELECT ALL 75 DIV + + 85
----
0

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL 75 / + + 85
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4825
SELECT + 80 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4825
SELECT + 80 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 39 * - 85
----
-3315

onlyif mysql # DIV for integer division: 
query II rowsort label-4827
SELECT 93 col1, + 76 + 97 DIV - 34 + + 94 AS col2
----
93
168

skipif mysql # not compatible
query II rowsort label-4827
SELECT 93 col1, + 76 + 97 / - 34 + + 94 AS col2
----
93
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT DISTINCT 20 * + 10 + + 61 + + + COUNT( * ) * + - 91 + 12
----
182

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT 20 * + 10 + + 61 + + + COUNT ( * ) * + - 91 + 12
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4829
SELECT - 15 * CAST( CASE 74 WHEN - 94 * 25 * - 83 * - 3 + - 98 * 3 / - 68 THEN - 69 END AS SIGNED ) - + ( 31 ) * - + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT - 15 * CAST ( CASE 74 WHEN - 94 * 25 * - 83 * - 3 + - 98 * 3 / - 68 THEN - 69 END AS INTEGER ) - + ( 31 ) * - + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT ALL ( + - 6 ) * + - 51 * - 90 * + MIN( - 97 ) + - 57
----
2671323

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL ( + - 6 ) * + - 51 * - 90 * + MIN ( - 97 ) + - 57
----
2671323

query I rowsort
SELECT + 8 + + 6 col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT COUNT( 98 )
----
1

skipif mysql # not compatible
query I rowsort label-4832
SELECT COUNT ( 98 )
----
1

query I rowsort
SELECT - - 89 * - + 56
----
-4984

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4834
SELECT ALL + - COALESCE ( - + 83, + - 14 - - 36 DIV - 66, - COUNT( ALL - 52 ) ) DIV NULLIF ( + 32, 0 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL + - COALESCE ( - + 83, + - 14 - - 36 / - 66, - COUNT ( ALL - 52 ) ) / NULLIF ( + 32, 0 ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4835
SELECT + + NULLIF ( + + 55, - - CAST( NULL AS SIGNED ) ) + 25 * + CASE 65 WHEN - + 56 + CAST( + 68 AS SIGNED ) THEN - + 60 * - 35 * - - 56 / 42 + - + 93 WHEN 79 THEN + + 73 + 11 WHEN CAST( + 68 AS SIGNED ) + 13 + + 6 THEN NULL END + + 52 * - + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT + + NULLIF ( + + 55, - - CAST ( NULL AS INTEGER ) ) + 25 * + CASE 65 WHEN - + 56 + CAST ( + 68 AS INTEGER ) THEN - + 60 * - 35 * - - 56 / 42 + - + 93 WHEN 79 THEN + + 73 + 11 WHEN CAST ( + 68 AS INTEGER ) + 13 + + 6 THEN NULL END + + 52 * - + 88
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4836
SELECT DISTINCT + + 32, 22 DIV + 69 + + + 97 + + 26 * - COUNT( * ) * + 65 + 79 * - 66 - ( + 30 ) - - 47 + 46 * COUNT( * ) * - 22 AS col1
----
32
-7802

skipif mysql # not compatible
query II rowsort label-4836
SELECT DISTINCT + + 32, 22 / + 69 + + + 97 + + 26 * - COUNT ( * ) * + 65 + 79 * - 66 - ( + 30 ) - - 47 + 46 * COUNT ( * ) * - 22 AS col1
----
32
-7802

onlyif mysql # DIV for integer division: 
query I rowsort label-4837
SELECT ALL 50 DIV + 8 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL 50 / + 8 AS col2
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-4838
SELECT ALL 64 * - 59 + - COALESCE ( 4, - 89 DIV - + 78 ) col0, 53 * + 43
----
-3780
2279

skipif mysql # not compatible
query II rowsort label-4838
SELECT ALL 64 * - 59 + - COALESCE ( 4, - 89 / - + 78 ) col0, 53 * + 43
----
-3780
2279

query I rowsort
SELECT - 94 + + 29
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT ALL + 83 * + 28 + ( - - 68 ) * - 38 * + CASE - 94 WHEN - 80 * - 17 / - 77 THEN NULL WHEN + NULLIF ( + 84, 79 * + + 50 / 85 + - 7 + + - COUNT( * ) ) THEN + + 95 * 81 ELSE NULL END * - + 69 + + + CASE + 42 WHEN - 24 THEN + 4 WHEN - SUM( - - 22 ) THEN - 29 * 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL + 83 * + 28 + ( - - 68 ) * - 38 * + CASE - 94 WHEN - 80 * - 17 / - 77 THEN NULL WHEN + NULLIF ( + 84, 79 * + + 50 / 85 + - 7 + + - COUNT ( * ) ) THEN + + 95 * 81 ELSE NULL END * - + 69 + + + CASE + 42 WHEN - 24 THEN + 4 WHEN - SUM ( - - 22 ) THEN - 29 * 37 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4841
SELECT + 77 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT + 77 * + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL - COUNT( * ) * 43 - + + 54 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL - COUNT ( * ) * 43 - + + 54 AS col0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4843
SELECT COUNT( * ) AS col2, + 22 * + NULLIF ( + 24, 26 * + 53 DIV 28 + 76 * - + AVG ( + + 53 ) * + COUNT( * ) + - + COUNT( * ) + - 48 - - + 41 ) + - 49 + + NULLIF ( - + 24, + 37 ) - + - 76 + + - 64 + - 76 + 98 DIV 30 * + + 25 * 8 * + - 8 + - ( + 75 ) * + MAX( 78 ) + + 35 col0
----
1
-10224

skipif mysql # not compatible
query II rowsort label-4843
SELECT COUNT ( * ) AS col2, + 22 * + NULLIF ( + 24, 26 * + 53 / 28 + 76 * - + AVG ( + + 53 ) * + COUNT ( * ) + - + COUNT ( * ) + - 48 - - + 41 ) + - 49 + + NULLIF ( - + 24, + 37 ) - + - 76 + + - 64 + - 76 + 98 / 30 * + + 25 * 8 * + - 8 + - ( + 75 ) * + MAX ( 78 ) + + 35 col0
----
1
-10224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4844
SELECT DISTINCT COALESCE ( + 66, - COUNT( DISTINCT + NULLIF ( + - 53, - 34 + + + ( + ( + 63 ) ) / + - 27 ) ), CAST( + 50 AS SIGNED ) - + + 57 * - CAST( NULL AS SIGNED ) * COUNT( * ) ) col0
----
66

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT COALESCE ( + 66, - COUNT ( DISTINCT + NULLIF ( + - 53, - 34 + + + ( + ( + 63 ) ) / + - 27 ) ), CAST ( + 50 AS INTEGER ) - + + 57 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) ) col0
----
66

query I rowsort
SELECT ALL - 56 - - 9 AS col2
----
-47

query I rowsort
SELECT - COALESCE ( 2, + 71 + + 30 + - 48, 24 ) AS col1
----
-2

query I rowsort
SELECT ALL - 93 * + ( - ( - 87 ) ) AS col2
----
-8091

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT - 39 * + - COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4848
SELECT - 39 * + - COUNT ( * ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT ALL - 84 * - + 65 * - SUM( DISTINCT - 52 ) AS col1
----
283920

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL - 84 * - + 65 * - SUM ( DISTINCT - 52 ) AS col1
----
283920

query I rowsort
SELECT - 57 + - ( + 1 ) AS col2
----
-58

query I rowsort
SELECT DISTINCT - NULLIF ( - 25, - 50 + + 21 ) * + + 31 AS col1
----
775

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT - COUNT( * ) + + COALESCE ( - COALESCE ( COUNT( * ), - - 54 + - - 98 * ( - CASE 43 WHEN 62 THEN NULL WHEN + 67 * + 98 * 72 * - - 79 THEN - ( - - 27 ) END ) ), - 99 )
----
-2

skipif mysql # not compatible
query I rowsort label-4852
SELECT - COUNT ( * ) + + COALESCE ( - COALESCE ( COUNT ( * ), - - 54 + - - 98 * ( - CASE 43 WHEN 62 THEN NULL WHEN + 67 * + 98 * 72 * - - 79 THEN - ( - - 27 ) END ) ), - 99 )
----
-2

query II rowsort
SELECT DISTINCT - 32 AS col1, + 26 AS col0
----
-32
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4854
SELECT ALL CASE + 75 WHEN ( 71 ) THEN - - 16 WHEN 32 / - + CAST( 47 AS SIGNED ) + 96 + - - 9 + + 83 THEN - COUNT( ALL - 12 ) WHEN CASE - 92 WHEN + 44 + + 76 + - + 53 THEN + CAST( NULL AS SIGNED ) + 12 - + + 13 + - 23 / MIN( 32 ) WHEN - 20 THEN NULL END - - 22 + COALESCE ( - 37, + + 86 + + 71 * - - 26 ) + + - 78 / 36 THEN NULL ELSE NULL END + - 44 * 1 / - 28 + - 73 col2, + SUM( + 34 ) AS col2
----
NULL
34

skipif mysql # not compatible
query II rowsort label-4854
SELECT ALL CASE + 75 WHEN ( 71 ) THEN - - 16 WHEN 32 / - + CAST ( 47 AS INTEGER ) + 96 + - - 9 + + 83 THEN - COUNT ( ALL - 12 ) WHEN CASE - 92 WHEN + 44 + + 76 + - + 53 THEN + CAST ( NULL AS INTEGER ) + 12 - + + 13 + - 23 / MIN ( 32 ) WHEN - 20 THEN NULL END - - 22 + COALESCE ( - 37, + + 86 + + 71 * - - 26 ) + + - 78 / 36 THEN NULL ELSE NULL END + - 44 * 1 / - 28 + - 73 col2, + SUM ( + 34 ) AS col2
----
NULL
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4855
SELECT DISTINCT MAX( ALL + + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT MAX ( ALL + + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT DISTINCT - 95 + 84 + - 76 - + 44 - - + 72 AS col1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4857
SELECT COUNT( DISTINCT - 27 ) DIV ( - 28 ) * + 31
----
0

skipif mysql # not compatible
query I rowsort label-4857
SELECT COUNT ( DISTINCT - 27 ) / ( - 28 ) * + 31
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4858
SELECT ALL + 62 + + 18 + + 43 DIV 48 DIV + 30
----
80

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL + 62 + + 18 + + 43 / 48 / + 30
----
80

onlyif mysql # DIV for integer division: 
query II rowsort label-4859
SELECT + + 63 DIV + 90 * 84 + + 15 AS col1, 7
----
15
7

skipif mysql # not compatible
query II rowsort label-4859
SELECT + + 63 / + 90 * 84 + + 15 AS col1, 7
----
15
7

query II rowsort
SELECT + - 4 col2, - 77
----
-4
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT DISTINCT - - SUM( ALL + + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT - - SUM ( ALL + + 42 )
----
42

query I rowsort
SELECT ALL - COALESCE ( 33, - 80 ) + + 45 * 75
----
3342

query I rowsort
SELECT ALL - 37 * 59 - + ( ( - - 91 ) ) AS col1
----
-2274

query I rowsort
SELECT 53 * 25
----
1325

query I rowsort
SELECT ALL 81 + 5
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4866
SELECT ALL 95 + CAST( NULL AS SIGNED ) + + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL 95 + CAST ( NULL AS INTEGER ) + + - 83
----
NULL

query II rowsort
SELECT + 27, + 82 AS col2
----
27
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT DISTINCT 43 + ( - COUNT( * ) ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT 43 + ( - COUNT ( * ) ) AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4869
SELECT + + NULLIF ( 5, + CAST( + 88 AS SIGNED ) ), + 94 AS col1
----
5
94

skipif mysql # not compatible
query II rowsort label-4869
SELECT + + NULLIF ( 5, + CAST ( + 88 AS INTEGER ) ), + 94 AS col1
----
5
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4870
SELECT 3 AS col2, 43 - NULLIF ( + - CAST( NULL AS SIGNED ), 41 * - - 94 + + - 40 ) AS col2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4870
SELECT 3 AS col2, 43 - NULLIF ( + - CAST ( NULL AS INTEGER ), 41 * - - 94 + + - 40 ) AS col2
----
3
NULL

query I rowsort
SELECT 87 * - 29 - - 39 AS col0
----
-2484

onlyif mysql # DIV for integer division: 
query I rowsort label-4872
SELECT ALL 0 DIV + 22 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL 0 / + 22 AS col2
----
0

query I rowsort
SELECT ALL - 87 * 24 col1
----
-2088

query I rowsort
SELECT 28 * - 91 AS col1
----
-2548

query I rowsort
SELECT DISTINCT - 69 * - 40 AS col0
----
2760

query I rowsort
SELECT ALL 64 * - - 0 AS col1
----
0

query II rowsort
SELECT COALESCE ( + 40, - 15 ) * - + 92 + 69 AS col2, 98 col2
----
-3611
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT DISTINCT SUM( + 25 ) * COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4878
SELECT DISTINCT SUM ( + 25 ) * COUNT ( * ) AS col2
----
25

query I rowsort
SELECT 66 * 3 AS col1
----
198

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4880
SELECT 73 DIV 9 * - COALESCE ( 24, + 73 ) col0, - 14 * + CAST( NULL AS SIGNED )
----
-192
NULL

skipif mysql # not compatible
query II rowsort label-4880
SELECT 73 / 9 * - COALESCE ( 24, + 73 ) col0, - 14 * + CAST ( NULL AS INTEGER )
----
-192
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT COALESCE ( + COUNT( * ), - 46, + 75 + + 94 ) * + - 17 col0
----
-17

skipif mysql # not compatible
query I rowsort label-4881
SELECT COALESCE ( + COUNT ( * ), - 46, + 75 + + 94 ) * + - 17 col0
----
-17

query I rowsort
SELECT ALL 22 * 64
----
1408

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT + 34 + + + 74 * + ( - COUNT( * ) ) * COUNT( * ) col1
----
-40

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT + 34 + + + 74 * + ( - COUNT ( * ) ) * COUNT ( * ) col1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4884
SELECT 56 + - COALESCE ( + - 23, + - 67 + + ( - 21 ), + + 1 ) DIV 77
----
56

skipif mysql # not compatible
query I rowsort label-4884
SELECT 56 + - COALESCE ( + - 23, + - 67 + + ( - 21 ), + + 1 ) / 77
----
56

onlyif mysql # DIV for integer division: 
query II rowsort label-4885
SELECT 63 DIV 52 DIV + 59, - 94 + + 65 * 79 AS col1
----
0
5041

skipif mysql # not compatible
query II rowsort label-4885
SELECT 63 / 52 / + 59, - 94 + + 65 * 79 AS col1
----
0
5041

query I rowsort
SELECT ALL ( + + ( - 70 ) ) + + 77
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4887
SELECT ALL - + CAST( - 58 AS SIGNED ) + + 11 - + 68 + + COUNT( * ) * + 94
----
95

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL - + CAST ( - 58 AS INTEGER ) + + 11 - + 68 + + COUNT ( * ) * + 94
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT ALL - - COALESCE ( - 50, 56 + + 68 ) + - + SUM( DISTINCT - - 98 ) AS col1
----
-148

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL - - COALESCE ( - 50, 56 + + 68 ) + - + SUM ( DISTINCT - - 98 ) AS col1
----
-148

query I rowsort
SELECT DISTINCT - + 27 + + 73 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT ALL + 91 + - COUNT( * ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL + 91 + - COUNT ( * ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT - - ( + NULLIF ( + COUNT( * ), + 43 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4891
SELECT - - ( + NULLIF ( + COUNT ( * ), + 43 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT - MAX( ALL 77 ) * 63
----
-4851

skipif mysql # not compatible
query I rowsort label-4892
SELECT - MAX ( ALL 77 ) * 63
----
-4851

query I rowsort
SELECT 29 - - 10 - - - 52 + + + 23 AS col0
----
10

query II rowsort
SELECT ALL + 41 + 11 AS col2, 11 * 86 + + 76 + + + 55 * 54
----
52
3992

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT DISTINCT - - COUNT( * ) + 95 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT - - COUNT ( * ) + 95 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT ALL - - ( 53 ) * MIN( - 49 ) AS col1
----
-2597

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL - - ( 53 ) * MIN ( - 49 ) AS col1
----
-2597

query I rowsort
SELECT ALL - 50 + - 21 * + ( + 77 ) + + 23 + 10 * + 1
----
-1634

query I rowsort
SELECT DISTINCT - 39 * + 51 * - + 78 AS col2
----
155142

query I rowsort
SELECT ( - - 41 ) - - ( - + 88 ) * - 21
----
1889

query I rowsort
SELECT + 93 + + - 50
----
43

query I rowsort
SELECT ( + - NULLIF ( 94, + + 60 ) ) + 73 + + 4 - - 18 + - 55 col2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4902
SELECT + + CAST( NULLIF ( + NULLIF ( - 93, - 59 * - ( COUNT( * ) ) ), + + 34 ) AS SIGNED ), MIN( - 41 ) AS col2
----
-93
-41

skipif mysql # not compatible
query II rowsort label-4902
SELECT + + CAST ( NULLIF ( + NULLIF ( - 93, - 59 * - ( COUNT ( * ) ) ), + + 34 ) AS INTEGER ), MIN ( - 41 ) AS col2
----
-93
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4903
SELECT ALL - - 72 - - - CAST( - - 52 AS SIGNED ) + 34
----
54

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL - - 72 - - - CAST ( - - 52 AS INTEGER ) + 34
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT - 76 * - 18 * + 63 + + SUM( ALL - + ( - 71 ) )
----
86255

skipif mysql # not compatible
query I rowsort label-4904
SELECT - 76 * - 18 * + 63 + + SUM ( ALL - + ( - 71 ) )
----
86255

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT 67 * - + MAX( + 5 )
----
-335

skipif mysql # not compatible
query I rowsort label-4905
SELECT 67 * - + MAX ( + 5 )
----
-335

onlyif mysql # DIV for integer division: 
query II rowsort label-4906
SELECT DISTINCT 68 DIV + 72 AS col1, 7 AS col2
----
0
7

skipif mysql # not compatible
query II rowsort label-4906
SELECT DISTINCT 68 / + 72 AS col1, 7 AS col2
----
0
7

query I rowsort
SELECT ALL - 55 - 3
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT COUNT( * ) + 68 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4908
SELECT COUNT ( * ) + 68 AS col2
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4909
SELECT COUNT( * ) DIV + 80 * - 2
----
0

skipif mysql # not compatible
query I rowsort label-4909
SELECT COUNT ( * ) / + 80 * - 2
----
0

query I rowsort
SELECT DISTINCT + 83 * - 84 * + 43
----
-299796

query I rowsort
SELECT 38 * + 66 * 18 AS col0
----
45144

query II rowsort
SELECT 39 AS col0, 11
----
39
11

query II rowsort
SELECT ALL - 83 col0, - 87 * + + 94 AS col1
----
-83
-8178

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT DISTINCT 45 + 96 + - COUNT( * ) + + 75 * + COUNT( * ) * 12 + - - 78
----
1118

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT 45 + 96 + - COUNT ( * ) + + 75 * + COUNT ( * ) * 12 + - - 78
----
1118

query I rowsort
SELECT DISTINCT + 39 + 25
----
64

query I rowsort
SELECT ALL 74 + - - 87 * + 93 * - 42 col1
----
-339748

query II rowsort
SELECT 90 col2, 49 AS col1
----
90
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4918
SELECT ALL + NULLIF ( - 29, - + 40 DIV COUNT( - 91 ) * ( + - 32 ) + + + 73 ) + + 47 DIV - 66 + + - 73 * + - 24 + + 48 * + SUM( ALL + 36 ) * - ( - 22 ) + - 97 AS col2, 88 AS col1
----
39642
88

skipif mysql # not compatible
query II rowsort label-4918
SELECT ALL + NULLIF ( - 29, - + 40 / COUNT ( - 91 ) * ( + - 32 ) + + + 73 ) + + 47 / - 66 + + - 73 * + - 24 + + 48 * + SUM ( ALL + 36 ) * - ( - 22 ) + - 97 AS col2, 88 AS col1
----
39642
88

onlyif mysql # aggregate syntax: 
query II rowsort label-4919
SELECT - + 21 AS col0, - 17 + 61 + - - 85 * - COUNT( * ) AS col2
----
-21
-41

skipif mysql # not compatible
query II rowsort label-4919
SELECT - + 21 AS col0, - 17 + 61 + - - 85 * - COUNT ( * ) AS col2
----
-21
-41

query I rowsort
SELECT - + 67 * 24 * - - 61 AS col1
----
-98088

query I rowsort
SELECT DISTINCT - 4 * - - 36 AS col0
----
-144

query I rowsort
SELECT ALL 14 + - 64 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT + 1 * + COUNT( + 63 ) + - - NULLIF ( + + 73, + 75 ) + + 1
----
75

skipif mysql # not compatible
query I rowsort label-4923
SELECT + 1 * + COUNT ( + 63 ) + - - NULLIF ( + + 73, + 75 ) + + 1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT ALL 71 * - COUNT( * ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL 71 * - COUNT ( * ) AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT DISTINCT 76 * SUM( ALL 49 ) * 1 * + CASE + 78 WHEN COALESCE ( 66, - 96 ) THEN - NULLIF ( ( + - 77 ), 36 * + 0 * - + 53 + + - 40 + + - 43 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4925
SELECT DISTINCT 76 * SUM ( ALL 49 ) * 1 * + CASE + 78 WHEN COALESCE ( 66, - 96 ) THEN - NULLIF ( ( + - 77 ), 36 * + 0 * - + 53 + + - 40 + + - 43 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4926
SELECT DISTINCT + 63 DIV - + 39
----
-1

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT + 63 / - + 39
----
-1

query I rowsort
SELECT ALL + 19 - + - 62 AS col1
----
81

query II rowsort
SELECT ALL + 72, 25 * - 55 AS col1
----
72
-1375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4929
SELECT COUNT( * ) * + CASE - - CAST( + - 10 AS SIGNED ) WHEN + 80 THEN NULL ELSE - 53 END + + 5 + ( NULLIF ( - CASE 11 WHEN + 11 * - 72 * - 72 + - 42 THEN + 31 WHEN + SUM( DISTINCT + 21 ) THEN - - CAST( NULL AS SIGNED ) END, 32 + COUNT( DISTINCT 49 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4929
SELECT COUNT ( * ) * + CASE - - CAST ( + - 10 AS INTEGER ) WHEN + 80 THEN NULL ELSE - 53 END + + 5 + ( NULLIF ( - CASE 11 WHEN + 11 * - 72 * - 72 + - 42 THEN + 31 WHEN + SUM ( DISTINCT + 21 ) THEN - - CAST ( NULL AS INTEGER ) END, 32 + COUNT ( DISTINCT 49 ) ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 7 * 74 col0
----
-518

onlyif mysql # aggregate syntax: 
query III rowsort label-4931
SELECT ALL + - 43 AS col2, - 53 + + - COUNT( - + 3 ), - - MAX( - + 57 ) AS col0
----
-43
-54
-57

skipif mysql # not compatible
query III rowsort label-4931
SELECT ALL + - 43 AS col2, - 53 + + - COUNT ( - + 3 ), - - MAX ( - + 57 ) AS col0
----
-43
-54
-57

query I rowsort
SELECT - 87 * 19
----
-1653

query I rowsort
SELECT ALL + - COALESCE ( 50, 91 * + 32 ) * + 97
----
-4850

query I rowsort
SELECT DISTINCT + 67 * COALESCE ( - 13, - + 48 ) AS col2
----
-871

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT - 83 * ( - - MIN( DISTINCT - 70 ) )
----
5810

skipif mysql # not compatible
query I rowsort label-4935
SELECT - 83 * ( - - MIN ( DISTINCT - 70 ) )
----
5810

query I rowsort
SELECT ALL + ( - 32 ) * - 40 col0
----
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT NULLIF ( + + COUNT( * ), 93 / + - 12 )
----
1

skipif mysql # not compatible
query I rowsort label-4937
SELECT NULLIF ( + + COUNT ( * ), 93 / + - 12 )
----
1

query I rowsort
SELECT + CASE 86 WHEN 58 + + 99 * 5 THEN - 98 END * 62 - ( - 37 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT DISTINCT + COUNT( * ) * - 54 + 32 - ( COUNT( DISTINCT - 8 ) ) - + + 95
----
-118

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT + COUNT ( * ) * - 54 + 32 - ( COUNT ( DISTINCT - 8 ) ) - + + 95
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT ALL COUNT( * ) * - 70 + 87
----
17

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL COUNT ( * ) * - 70 + 87
----
17

query I rowsort
SELECT - 40 - + + 52 + - + 3
----
-95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4942
SELECT + COALESCE ( - COALESCE ( + 35, + 54 - + 42 ), - + 96 + + + 92 DIV - MAX( ALL + - ( 48 ) ) + NULLIF ( 96, 45 + + - CAST( 91 AS DECIMAL ) + + 21 DIV - - 64 * + - COUNT( * ) DIV - 46 * - COUNT( * ) ) ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4942
SELECT + COALESCE ( - COALESCE ( + 35, + 54 - + 42 ), - + 96 + + + 92 / - MAX ( ALL + - ( 48 ) ) + NULLIF ( 96, 45 + + - CAST ( 91 AS REAL ) + + 21 / - - 64 * + - COUNT ( * ) / - 46 * - COUNT ( * ) ) ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ALL 43 * 27 + - ( - COUNT( * ) ) AS col0
----
1162

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL 43 * 27 + - ( - COUNT ( * ) ) AS col0
----
1162

query I rowsort
SELECT ALL 4 * + + 3 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT DISTINCT ( - COUNT( ALL 53 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT ( - COUNT ( ALL 53 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT - 57 + ( + MAX( + + 92 ) ) * + 17 * - 13
----
-20389

skipif mysql # not compatible
query I rowsort label-4946
SELECT - 57 + ( + MAX ( + + 92 ) ) * + 17 * - 13
----
-20389

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT + CASE + 76 WHEN - 46 THEN + 92 WHEN + - COUNT( * ) THEN NULL END - + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4947
SELECT + CASE + 76 WHEN - 46 THEN + 92 WHEN + - COUNT ( * ) THEN NULL END - + 40
----
NULL

query I rowsort
SELECT ALL 68 * - + 49 * + 30 AS col0
----
-99960

query II rowsort
SELECT ALL 2 + 57 - + + 75 - 83 * + - 70 AS col2, - 26 AS col0
----
5794
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4950
SELECT - CAST( COUNT( ALL + NULLIF ( + 42, + 49 ) ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4950
SELECT - CAST ( COUNT ( ALL + NULLIF ( + 42, + 49 ) ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT + + 36 + + COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4951
SELECT + + 36 + + COUNT ( * ) AS col0
----
37

query I rowsort
SELECT ALL + 50 * - 72
----
-3600

onlyif mysql # aggregate syntax: 
query II rowsort label-4953
SELECT - + ( + 98 ) col1, 20 * - COUNT( * )
----
-98
-20

skipif mysql # not compatible
query II rowsort label-4953
SELECT - + ( + 98 ) col1, 20 * - COUNT ( * )
----
-98
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4954
SELECT ALL CAST( NULL AS SIGNED ) * - ( + 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL CAST ( NULL AS INTEGER ) * - ( + 56 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4955
SELECT + ( + + 0 ) * 81 DIV + 38 col0, - CASE + MAX( - 50 ) WHEN - + 23 * CASE + 91 WHEN AVG ( DISTINCT - CAST( - 22 AS SIGNED ) ) THEN - COALESCE ( ( + - 99 ), + + COUNT( * ) ) * + 53 + 44 + - 60 END THEN NULL WHEN - 42 THEN ( - 42 ) * + 82 * + ( 59 ) * - 21 END AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4955
SELECT + ( + + 0 ) * 81 / + 38 col0, - CASE + MAX ( - 50 ) WHEN - + 23 * CASE + 91 WHEN AVG ( DISTINCT - CAST ( - 22 AS INTEGER ) ) THEN - COALESCE ( ( + - 99 ), + + COUNT ( * ) ) * + 53 + 44 + - 60 END THEN NULL WHEN - 42 THEN ( - 42 ) * + 82 * + ( 59 ) * - 21 END AS col2
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4956
SELECT ALL COUNT( * ) * - SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) * + - 43 AS col2, 36
----
NULL
36

skipif mysql # not compatible
query II rowsort label-4956
SELECT ALL COUNT ( * ) * - SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) * + - 43 AS col2, 36
----
NULL
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4957
SELECT + CAST( 59 AS SIGNED ) * + - 30 * + 33 AS col2
----
-58410

skipif mysql # not compatible
query I rowsort label-4957
SELECT + CAST ( 59 AS INTEGER ) * + - 30 * + 33 AS col2
----
-58410

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT + + ( - 23 ) - - MAX( ALL 34 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4958
SELECT + + ( - 23 ) - - MAX ( ALL 34 ) AS col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4959
SELECT + ( 37 ) DIV - 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4959
SELECT + ( 37 ) / - 65 AS col1
----
0

query I rowsort
SELECT + - 18 - - + 58 col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4961
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * - 41 + + COUNT( ALL - - 70 )
----
-40

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * - 41 + + COUNT ( ALL - - 70 )
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4962
SELECT + - MAX( 26 ) DIV 96 * + - 34 + - 42 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-4962
SELECT + - MAX ( 26 ) / 96 * + - 34 + - 42 / - 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT 92 * COUNT( * ) - + 76
----
16

skipif mysql # not compatible
query I rowsort label-4963
SELECT 92 * COUNT ( * ) - + 76
----
16

query I rowsort
SELECT - 59 * - 32
----
1888

query I rowsort
SELECT + 71 + - 54 - NULLIF ( + 54, + 18 ) + - - 52 + - ( + 53 ) * - 91
----
4838

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4966
SELECT + CAST( - + 27 AS SIGNED ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-4966
SELECT + CAST ( - + 27 AS INTEGER ) AS col1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4967
SELECT CAST( - ( - AVG ( - 89 ) ) AS SIGNED ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-4967
SELECT CAST ( - ( - AVG ( - 89 ) ) AS INTEGER ) AS col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4968
SELECT - NULLIF ( - CASE + ( - 20 ) WHEN - + 40 - 84 * 84 * - 20 * 75 * - COUNT( * ) THEN + COUNT( * ) * + - ( - 70 ) * - + 1 + 75 WHEN - - 50 THEN - COALESCE ( - - 71, 58 ) - 27 + 21 * + 55 ELSE 49 END, MAX( ALL - 82 ) + CAST( NULL AS SIGNED ) + 36 * + + 99 * + 24 ) * + 32 * - 3 AS col2
----
-4704

skipif mysql # not compatible
query I rowsort label-4968
SELECT - NULLIF ( - CASE + ( - 20 ) WHEN - + 40 - 84 * 84 * - 20 * 75 * - COUNT ( * ) THEN + COUNT ( * ) * + - ( - 70 ) * - + 1 + 75 WHEN - - 50 THEN - COALESCE ( - - 71, 58 ) - 27 + 21 * + 55 ELSE 49 END, MAX ( ALL - 82 ) + CAST ( NULL AS INTEGER ) + 36 * + + 99 * + 24 ) * + 32 * - 3 AS col2
----
-4704

onlyif mysql # DIV for integer division: 
query I rowsort label-4969
SELECT ALL 65 DIV + 73 + + 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL 65 / + 73 + + 23 AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4970
SELECT ALL - 54 DIV - 23 + + 61
----
63

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL - 54 / - 23 + + 61
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT 66 * + COUNT( * ) + - 51 + 29
----
44

skipif mysql # not compatible
query I rowsort label-4971
SELECT 66 * + COUNT ( * ) + - 51 + 29
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4972
SELECT ALL + 37 DIV - + ( 83 ) + - + 52
----
-52

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL + 37 / - + ( 83 ) + - + 52
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT COALESCE ( - 74, - - COUNT( * ) - + 26 * 33 + - COUNT( * ) * + 23 ) * - - 60 + - 43 AS col2
----
-4483

skipif mysql # not compatible
query I rowsort label-4973
SELECT COALESCE ( - 74, - - COUNT ( * ) - + 26 * 33 + - COUNT ( * ) * + 23 ) * - - 60 + - 43 AS col2
----
-4483

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL - MAX( DISTINCT - 11 ) + + + 70
----
81

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL - MAX ( DISTINCT - 11 ) + + + 70
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT CASE - 29 WHEN - MIN( + 72 ) / + 58 - ( + 43 ) THEN 16 ELSE NULL END * + MIN( - 96 ) + + - 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT CASE - 29 WHEN - MIN ( + 72 ) / + 58 - ( + 43 ) THEN 16 ELSE NULL END * + MIN ( - 96 ) + + - 84 AS col0
----
NULL

query I rowsort
SELECT 47 * - NULLIF ( - 72, - 25 ) AS col0
----
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT ALL - COALESCE ( - 24, - + MAX( - 35 ) )
----
24

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL - COALESCE ( - 24, - + MAX ( - 35 ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT 72 * + COUNT( * ) * - 26
----
-1872

skipif mysql # not compatible
query I rowsort label-4978
SELECT 72 * + COUNT ( * ) * - 26
----
-1872

query I rowsort
SELECT 78 + 65
----
143

query I rowsort
SELECT DISTINCT - 85 - - 10
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4981
SELECT DISTINCT 74 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT 74 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT ALL - 4 - + ( COUNT( * ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL - 4 - + ( COUNT ( * ) ) AS col0
----
-5

query I rowsort
SELECT 97 * - 73 AS col0
----
-7081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4984
SELECT 78 + COUNT( 53 ) / + CASE 35 * 51 WHEN + 31 THEN COUNT( * ) * - 19 WHEN - NULLIF ( CAST( 15 AS SIGNED ), 10 ) + + 10 THEN + 77 * COUNT( * ) + + 52 / NULLIF ( 25 * - 29 + - 95 * - NULLIF ( - 35, 77 ), COALESCE ( COALESCE ( CAST( ( 67 ) AS SIGNED ), ( 72 ) ), + 65 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4984
SELECT 78 + COUNT ( 53 ) / + CASE 35 * 51 WHEN + 31 THEN COUNT ( * ) * - 19 WHEN - NULLIF ( CAST ( 15 AS INTEGER ), 10 ) + + 10 THEN + 77 * COUNT ( * ) + + 52 / NULLIF ( 25 * - 29 + - 95 * - NULLIF ( - 35, 77 ), COALESCE ( COALESCE ( CAST ( ( 67 ) AS INTEGER ), ( 72 ) ), + 65 ) ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4985
SELECT COALESCE ( - 53, 71, 66 * - 54, COUNT( * ) * - CAST( NULL AS SIGNED ), 85 * - 13 ) + + 5 * 53 AS col0
----
212

skipif mysql # not compatible
query I rowsort label-4985
SELECT COALESCE ( - 53, 71, 66 * - 54, COUNT ( * ) * - CAST ( NULL AS INTEGER ), 85 * - 13 ) + + 5 * 53 AS col0
----
212

query I rowsort
SELECT DISTINCT + 13 * 94 AS col2
----
1222

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT MAX( DISTINCT - 57 ) * COUNT( DISTINCT - 25 ) col2
----
-57

skipif mysql # not compatible
query I rowsort label-4987
SELECT MAX ( DISTINCT - 57 ) * COUNT ( DISTINCT - 25 ) col2
----
-57

query I rowsort
SELECT ( 73 ) * 31 AS col2
----
2263

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ( 81 ) + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-4989
SELECT ( 81 ) + COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT COUNT( * ) + - SUM( - 26 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-4990
SELECT COUNT ( * ) + - SUM ( - 26 ) AS col2
----
27

query I rowsort
SELECT ALL 65 + 17 AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4992
SELECT 48 + 81 DIV 22 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-4992
SELECT 48 + 81 / 22 AS col0
----
51

query I rowsort
SELECT DISTINCT 0 + 84
----
84

query I rowsort
SELECT ALL ( 37 ) + - 93 * + 2
----
-149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4995
SELECT 70 / + 56 + - ( CAST( NULL AS SIGNED ) + 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4995
SELECT 70 / + 56 + - ( CAST ( NULL AS INTEGER ) + 77 ) AS col1
----
NULL

query I rowsort
SELECT ALL 35 + + 98
----
133

query I rowsort
SELECT 38 * 82
----
3116

onlyif mysql # DIV for integer division: 
query I rowsort label-4998
SELECT 57 DIV + 16
----
3

skipif mysql # not compatible
query I rowsort label-4998
SELECT 57 / + 16
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4999
SELECT ALL MAX( 53 ) + - 20 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL MAX ( 53 ) + - 20 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5000
SELECT DISTINCT CAST( 90 AS SIGNED ) * 25 AS col0
----
2250

skipif mysql # not compatible
query I rowsort label-5000
SELECT DISTINCT CAST ( 90 AS INTEGER ) * 25 AS col0
----
2250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5001
SELECT DISTINCT - 89 DIV - SUM( ALL + ( - 7 ) * + 86 )
----
0

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT - 89 / - SUM ( ALL + ( - 7 ) * + 86 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT ALL 45 - - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL 45 - - COUNT ( * )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5003
SELECT CAST( 50 AS SIGNED ) * 27
----
1350

skipif mysql # not compatible
query I rowsort label-5003
SELECT CAST ( 50 AS INTEGER ) * 27
----
1350

query I rowsort
SELECT ALL + 71 - + 99
----
-28

query I rowsort
SELECT 82 - ( 61 )
----
21

query I rowsort
SELECT ALL - 99 * 94 AS col2
----
-9306

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT DISTINCT + SUM( 60 ) * + 94
----
5640

skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT + SUM ( 60 ) * + 94
----
5640

query I rowsort
SELECT 88 * - 87
----
-7656

onlyif mysql # DIV for integer division: 
query I rowsort label-5009
SELECT ALL - 22 * ( - 31 + 44 DIV + 8 ) AS col2
----
572

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL - 22 * ( - 31 + 44 / + 8 ) AS col2
----
572

query I rowsort
SELECT - 9 * + 55 + + 33 AS col1
----
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT + 4 - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-5011
SELECT + 4 - COUNT ( * )
----
3

query I rowsort
SELECT NULLIF ( - 50, 38 ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT 80 - - COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-5013
SELECT 80 - - COUNT ( * ) AS col2
----
81

query I rowsort
SELECT 11 * 62 AS col1
----
682

onlyif mysql # DIV for integer division: 
query I rowsort label-5015
SELECT DISTINCT - 40 DIV 9
----
-4

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT - 40 / 9
----
-4

query I rowsort
SELECT ALL - - 50 * - 66
----
-3300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5017
SELECT COUNT( + 32 ) / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5017
SELECT COUNT ( + 32 ) / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 90 * 17
----
-1530

query I rowsort
SELECT ALL + 15 + 20 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT - + CASE - 93 WHEN 10 * CASE - 1 * 48 WHEN 33 + - 67 THEN NULL WHEN - ( - MAX( - 6 ) ) THEN 42 WHEN + CASE - 48 WHEN 77 THEN NULL WHEN + 90 * - ( 2 ) THEN + 9 * COUNT( * ) END THEN NULL ELSE NULL END THEN NULL WHEN ( - 46 ) + + 88 THEN 26 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5020
SELECT - + CASE - 93 WHEN 10 * CASE - 1 * 48 WHEN 33 + - 67 THEN NULL WHEN - ( - MAX ( - 6 ) ) THEN 42 WHEN + CASE - 48 WHEN 77 THEN NULL WHEN + 90 * - ( 2 ) THEN + 9 * COUNT ( * ) END THEN NULL ELSE NULL END THEN NULL WHEN ( - 46 ) + + 88 THEN 26 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT ALL + - SUM( 53 ) + + COUNT( * ) * - COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL + - SUM ( 53 ) + + COUNT ( * ) * - COUNT ( * ) AS col2
----
-54

query I rowsort
SELECT 70 + - 82 AS col0
----
-12

query I rowsort
SELECT + 29 * 7 AS col0
----
203

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5024
SELECT ALL - - 46 + COALESCE ( + COUNT( * ), + 28 ) DIV - 61
----
46

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL - - 46 + COALESCE ( + COUNT ( * ), + 28 ) / - 61
----
46

query I rowsort
SELECT 28 - - 24 + 0 AS col0
----
52

query I rowsort
SELECT CASE 47 WHEN + 40 * 63 THEN NULL WHEN 94 + 1 THEN NULL WHEN 39 * 88 THEN - 34 END col0
----
NULL

query I rowsort
SELECT ALL 69 * + + 47 * 77 + - ( 29 + 72 )
----
249610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5028
SELECT DISTINCT + CAST( COUNT( DISTINCT 51 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT + CAST ( COUNT ( DISTINCT 51 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT ALL 75 * + NULLIF ( - CASE + COUNT( DISTINCT 48 ) WHEN 76 * 10 + + 9 / 66 THEN NULL WHEN COUNT( 11 ) THEN 60 ELSE NULL END, 54 ) - - 27
----
-4473

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL 75 * + NULLIF ( - CASE + COUNT ( DISTINCT 48 ) WHEN 76 * 10 + + 9 / 66 THEN NULL WHEN COUNT ( 11 ) THEN 60 ELSE NULL END, 54 ) - - 27
----
-4473

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT + SUM( + + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-5030
SELECT + SUM ( + + 21 )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5031
SELECT - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) + + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5031
SELECT - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5032
SELECT + 93 DIV - + ( + COUNT( * ) ) - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-5032
SELECT + 93 / - + ( + COUNT ( * ) ) - COUNT ( * )
----
-94

query I rowsort
SELECT COALESCE ( + - 24, - 88 * + 28 )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5034
SELECT 75 * - - COUNT( * ) DIV + COUNT( * ) + - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-5034
SELECT 75 * - - COUNT ( * ) / + COUNT ( * ) + - COUNT ( * )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT ALL 12 * COUNT( * ) * - 54 - CASE + COUNT( DISTINCT 72 ) + COALESCE ( - 66, - COUNT( * ) * - ( COUNT( * ) ) ) * ( 3 ) WHEN + 49 THEN NULL WHEN 53 THEN NULL ELSE ( 16 ) END col1
----
-664

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL 12 * COUNT ( * ) * - 54 - CASE + COUNT ( DISTINCT 72 ) + COALESCE ( - 66, - COUNT ( * ) * - ( COUNT ( * ) ) ) * ( 3 ) WHEN + 49 THEN NULL WHEN 53 THEN NULL ELSE ( 16 ) END col1
----
-664

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT + 51 * - + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-5036
SELECT + 51 * - + COUNT ( * )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT + MAX( 76 ) * COALESCE ( 16, COUNT( * ) )
----
1216

skipif mysql # not compatible
query I rowsort label-5037
SELECT + MAX ( 76 ) * COALESCE ( 16, COUNT ( * ) )
----
1216

query I rowsort
SELECT + 80 + + 2 col2
----
82

query I rowsort
SELECT ALL + 18 * + 21 - 40 AS col1
----
338

onlyif mysql # DIV for integer division: 
query I rowsort label-5040
SELECT ALL + - 3 DIV - 27 * + 8 col1
----
0

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL + - 3 / - 27 * + 8 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5041
SELECT + + COUNT( ALL 94 ) DIV + 25 col1
----
0

skipif mysql # not compatible
query I rowsort label-5041
SELECT + + COUNT ( ALL 94 ) / + 25 col1
----
0

query I rowsort
SELECT + 78 * + 51 * 50 + - 78 * + 48
----
195156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5043
SELECT DISTINCT 53 DIV COALESCE ( - 58, - 10 ) * 78 + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT 53 / COALESCE ( - 58, - 10 ) * 78 + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT - + 7 + 85
----
78

query I rowsort
SELECT ALL - + 98 * - 29 + + 11
----
2853

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5046
SELECT + + 5 + - COUNT( * ) - - 26 DIV - 37
----
4

skipif mysql # not compatible
query I rowsort label-5046
SELECT + + 5 + - COUNT ( * ) - - 26 / - 37
----
4

query I rowsort
SELECT DISTINCT + 0 + ( 73 )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5048
SELECT DISTINCT + - 85 + - 18 + + 43 DIV 32
----
-102

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT + - 85 + - 18 + + 43 / 32
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5049
SELECT ALL - + 23 * + 37 / 37 - - CAST( NULL AS SIGNED ) * + 15 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL - + 23 * + 37 / 37 - - CAST ( NULL AS INTEGER ) * + 15 col1
----
NULL

query I rowsort
SELECT - 27 + - + 26 + - ( 13 )
----
-66

query I rowsort
SELECT DISTINCT - NULLIF ( - 93, - 45 )
----
93

query I rowsort
SELECT - 0 * - 33 * - 81 * 33 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5053
SELECT ALL + 6 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL + 6 / - 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT - COUNT( * ) + - 80 * + 46
----
-3681

skipif mysql # not compatible
query I rowsort label-5054
SELECT - COUNT ( * ) + - 80 * + 46
----
-3681

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ALL + 34 + COUNT( * ) * - 25 - ( 66 + + 78 )
----
-135

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL + 34 + COUNT ( * ) * - 25 - ( 66 + + 78 )
----
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5056
SELECT ALL COUNT( * ) col1, CAST( CAST( + NULLIF ( + AVG ( ALL 74 ), 34 + 84 ) AS SIGNED ) AS SIGNED )
----
1
74

skipif mysql # not compatible
query II rowsort label-5056
SELECT ALL COUNT ( * ) col1, CAST ( CAST ( + NULLIF ( + AVG ( ALL 74 ), 34 + 84 ) AS INTEGER ) AS INTEGER )
----
1
74

query II rowsort
SELECT - 17 AS col2, 40
----
-17
40

query II rowsort
SELECT 31 AS col1, 23 + + 42 + + 87
----
31
152

onlyif mysql # DIV for integer division: 
query I rowsort label-5059
SELECT ALL + 7 DIV + - 40
----
0

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL + 7 / + - 40
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5060
SELECT - CASE + + 18 WHEN + COUNT( * ) THEN 93 WHEN - 34 THEN 16 - + 53 WHEN 77 + + 4 THEN 3 WHEN - 25 THEN 97 * ( 49 DIV + COUNT( * ) ) ELSE ( + COUNT( * ) ) END + - 58
----
-59

skipif mysql # not compatible
query I rowsort label-5060
SELECT - CASE + + 18 WHEN + COUNT ( * ) THEN 93 WHEN - 34 THEN 16 - + 53 WHEN 77 + + 4 THEN 3 WHEN - 25 THEN 97 * ( 49 / + COUNT ( * ) ) ELSE ( + COUNT ( * ) ) END + - 58
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT DISTINCT + 89 * - - 71 * - COUNT( * )
----
-6319

skipif mysql # not compatible
query I rowsort label-5061
SELECT DISTINCT + 89 * - - 71 * - COUNT ( * )
----
-6319

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT - NULLIF ( - + 15, COUNT( * ) + + 52 ) * COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-5062
SELECT - NULLIF ( - + 15, COUNT ( * ) + + 52 ) * COUNT ( * )
----
15

query I rowsort
SELECT DISTINCT - 17 * + 75 AS col2
----
-1275

query II rowsort
SELECT DISTINCT + 49 AS col0, 54 AS col0
----
49
54

query I rowsort
SELECT ALL + NULLIF ( - 0, 97 + 20 ) AS col2
----
0

query I rowsort
SELECT + NULLIF ( + 55, + + 90 ) AS col0
----
55

query I rowsort
SELECT + 75 * - - CASE 89 WHEN + 48 THEN + 62 WHEN 13 * - 39 THEN NULL END + - 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5068
SELECT ALL 42 DIV - COUNT( * ) + - 0 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL 42 / - COUNT ( * ) + - 0 AS col1
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-5069
SELECT - 12 DIV - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5069
SELECT - 12 / - 83 AS col1
----
0

query I rowsort
SELECT + - 95 + - 19 AS col0
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5071
SELECT DISTINCT - 83 * + CAST( 73 AS SIGNED ) + MIN( + 13 ) + - 44 * - COUNT( * )
----
-6002

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT - 83 * + CAST ( 73 AS INTEGER ) + MIN ( + 13 ) + - 44 * - COUNT ( * )
----
-6002

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT + - COUNT( * ) * - 34
----
34

skipif mysql # not compatible
query I rowsort label-5072
SELECT + - COUNT ( * ) * - 34
----
34

query I rowsort
SELECT ALL + NULLIF ( + 11, 99 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT + - COUNT( * ) * 13
----
-13

skipif mysql # not compatible
query I rowsort label-5074
SELECT + - COUNT ( * ) * 13
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-5075
SELECT + + 74 col0, 85 * - - COUNT( * ) - 14 AS col1
----
74
71

skipif mysql # not compatible
query II rowsort label-5075
SELECT + + 74 col0, 85 * - - COUNT ( * ) - 14 AS col1
----
74
71

query I rowsort
SELECT + ( + 16 ) + - - 39 AS col2
----
55

query II rowsort
SELECT - - 20 AS col0, 66 * - 15 * 37 AS col1
----
20
-36630

query I rowsort
SELECT + 97 * + 31 * 86
----
258602

query I rowsort
SELECT DISTINCT + + NULLIF ( - 11, 49 ) * - 54 + 72
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT - MIN( 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-5080
SELECT - MIN ( 28 ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT - 16 - + MIN( - 71 ) + MAX( ( 34 ) ) * + 46 col2
----
1619

skipif mysql # not compatible
query I rowsort label-5081
SELECT - 16 - + MIN ( - 71 ) + MAX ( ( 34 ) ) * + 46 col2
----
1619

query II rowsort
SELECT - 16 AS col2, - 84 + - - 5 + 55 AS col0
----
-16
-24

query I rowsort
SELECT + - 33 * - 81 AS col0
----
2673

query II rowsort
SELECT 92, 89 AS col0
----
92
89

query I rowsort
SELECT ALL + 2 - 91 AS col0
----
-89

query I rowsort
SELECT 76 * 81
----
6156

query I rowsort
SELECT ( 96 ) + + 7 AS col0
----
103

query I rowsort
SELECT 63 - + 3 + 20
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5089
SELECT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * - 94
----
NULL

query I rowsort
SELECT 1 * + 7
----
7

query I rowsort
SELECT 72 + - + COALESCE ( + 30, + - 0 )
----
42

query I rowsort
SELECT ALL 34 - 38 + + 93
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT 82 + + + MIN( + 56 ) AS col2
----
138

skipif mysql # not compatible
query I rowsort label-5093
SELECT 82 + + + MIN ( + 56 ) AS col2
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5094
SELECT + 97 * + COUNT( * ) + + + COUNT( * ) + ( CAST( - 44 AS SIGNED ) ) col1
----
54

skipif mysql # not compatible
query I rowsort label-5094
SELECT + 97 * + COUNT ( * ) + + + COUNT ( * ) + ( CAST ( - 44 AS INTEGER ) ) col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT ALL + ( - 95 ) * SUM( ALL + - 57 ) * + COUNT( DISTINCT 26 * 8 - + 22 ) AS col0
----
5415

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL + ( - 95 ) * SUM ( ALL + - 57 ) * + COUNT ( DISTINCT 26 * 8 - + 22 ) AS col0
----
5415

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT DISTINCT - MIN( DISTINCT 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-5096
SELECT DISTINCT - MIN ( DISTINCT 22 ) AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5097
SELECT - COUNT( * ) * + + 84 - + 64 - CAST( NULL AS SIGNED ) + COUNT( * ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5097
SELECT - COUNT ( * ) * + + 84 - + 64 - CAST ( NULL AS INTEGER ) + COUNT ( * ) * - COUNT ( * )
----
NULL

query II rowsort
SELECT 81 + 1 AS col1, 67 * - 53 + 97 * + 40
----
82
329

onlyif mysql # DIV for integer division: 
query I rowsort label-5099
SELECT 77 DIV CASE + 49 WHEN - ( - 23 ) THEN NULL ELSE 54 END - - 34
----
35

skipif mysql # not compatible
query I rowsort label-5099
SELECT 77 / CASE + 49 WHEN - ( - 23 ) THEN NULL ELSE 54 END - - 34
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-5100
SELECT DISTINCT + 86 * + COUNT( * ) AS col0, 74 * + 85 + - 13
----
86
6277

skipif mysql # not compatible
query II rowsort label-5100
SELECT DISTINCT + 86 * + COUNT ( * ) AS col0, 74 * + 85 + - 13
----
86
6277

query I rowsort
SELECT 91 * 5 * + - 76 AS col2
----
-34580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5102
SELECT CASE - + COUNT( * ) WHEN - COALESCE ( + 3, ( COUNT( ALL - 36 ) ) ) * - 1 THEN CAST( NULL AS SIGNED ) WHEN 83 / - NULLIF ( 39, COUNT( * ) - + CAST( NULL AS SIGNED ) ) THEN NULL END + ( CASE - 81 WHEN 54 THEN COUNT( * ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT CASE - + COUNT ( * ) WHEN - COALESCE ( + 3, ( COUNT ( ALL - 36 ) ) ) * - 1 THEN CAST ( NULL AS INTEGER ) WHEN 83 / - NULLIF ( 39, COUNT ( * ) - + CAST ( NULL AS INTEGER ) ) THEN NULL END + ( CASE - 81 WHEN 54 THEN COUNT ( * ) ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT DISTINCT + COUNT( * ) + 96
----
97

skipif mysql # not compatible
query I rowsort label-5103
SELECT DISTINCT + COUNT ( * ) + 96
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT - 35 * - COUNT( * ) + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-5104
SELECT - 35 * - COUNT ( * ) + + COUNT ( * )
----
36

query I rowsort
SELECT 65 + - 19 AS col1
----
46

query I rowsort
SELECT DISTINCT + - 14 + + 77 + - 88 * ( 55 )
----
-4777

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5107
SELECT ALL - COUNT( * ) + + COALESCE ( + + 90, + 0 DIV 63 ) col1
----
89

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL - COUNT ( * ) + + COALESCE ( + + 90, + 0 / 63 ) col1
----
89

query I rowsort
SELECT 45 * + ( + 38 )
----
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT - - 42 * + - COUNT( * ) + - 86 + + 94 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-5109
SELECT - - 42 * + - COUNT ( * ) + - 86 + + 94 AS col0
----
-34

query I rowsort
SELECT + 82 * + 36 AS col2
----
2952

query I rowsort
SELECT DISTINCT 60 * + 7 + 46
----
466

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT + COUNT( * ) + - 90 + - 69 * - 81
----
5500

skipif mysql # not compatible
query I rowsort label-5112
SELECT + COUNT ( * ) + - 90 + - 69 * - 81
----
5500

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT + COALESCE ( - COUNT( * ), 54 - + 43 + ( 72 ) * + ( + 50 ) ) * - 38 col1
----
38

skipif mysql # not compatible
query I rowsort label-5113
SELECT + COALESCE ( - COUNT ( * ), 54 - + 43 + ( 72 ) * + ( + 50 ) ) * - 38 col1
----
38

query I rowsort
SELECT - 48 + + 2 AS col1
----
-46

query II rowsort
SELECT DISTINCT + 56 - + 54 AS col0, + 4 AS col1
----
2
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5116
SELECT DISTINCT NULLIF ( + 86, - - 93 / - + 40 * - CAST( NULLIF ( COUNT( * ), - 92 + 11 * - 12 ) AS SIGNED ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT NULLIF ( + 86, - - 93 / - + 40 * - CAST ( NULLIF ( COUNT ( * ), - 92 + 11 * - 12 ) AS INTEGER ) ) AS col2
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5117
SELECT ALL - 7 * + SUM( ALL + + NULLIF ( - - 49, - 81 ) ) DIV MAX( ALL 33 * ( 86 ) ) + COUNT( * ) * 97
----
97

skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL - 7 * + SUM ( ALL + + NULLIF ( - - 49, - 81 ) ) / MAX ( ALL 33 * ( 86 ) ) + COUNT ( * ) * 97
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5118
SELECT 76 DIV COALESCE ( + - 91, - 32 - + + SUM( ALL 45 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5118
SELECT 76 / COALESCE ( + - 91, - 32 - + + SUM ( ALL 45 ) )
----
0

query I rowsort
SELECT 47 * - + 20
----
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT ( + 62 ) * 51 + + MAX( ( + 75 ) ) col2
----
3237

skipif mysql # not compatible
query I rowsort label-5120
SELECT ( + 62 ) * 51 + + MAX ( ( + 75 ) ) col2
----
3237

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5121
SELECT 56 AS col2, + CAST( NULL AS SIGNED ) + + - 10
----
56
NULL

skipif mysql # not compatible
query II rowsort label-5121
SELECT 56 AS col2, + CAST ( NULL AS INTEGER ) + + - 10
----
56
NULL

query I rowsort
SELECT 1 + - 16
----
-15

query I rowsort
SELECT 72 + 6 + + CASE 4 WHEN + - 52 / + 69 THEN - 40 END
----
NULL

query I rowsort
SELECT ( 58 ) + - ( + 75 )
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-5125
SELECT - COUNT( * ) col0, 37 col1
----
-1
37

skipif mysql # not compatible
query II rowsort label-5125
SELECT - COUNT ( * ) col0, 37 col1
----
-1
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT ALL SUM( DISTINCT - 67 ) * 21 + - 63 + - 21
----
-1491

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL SUM ( DISTINCT - 67 ) * 21 + - 63 + - 21
----
-1491

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5127
SELECT - 47 AS col1, - CAST( NULL AS DECIMAL ) - - 1 AS col2
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-5127
SELECT - 47 AS col1, - CAST ( NULL AS REAL ) - - 1 AS col2
----
-47
NULL

query I rowsort
SELECT 91 * - 91 AS col1
----
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT MIN( - 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-5129
SELECT MIN ( - 26 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-5130
SELECT COUNT( * ) AS col0, + 50 col0
----
1
50

skipif mysql # not compatible
query II rowsort label-5130
SELECT COUNT ( * ) AS col0, + 50 col0
----
1
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT ALL - 53 * - - CASE 84 WHEN - NULLIF ( - COUNT( * ), 60 / 81 ) THEN NULL WHEN + 98 + - 31 * + 5 THEN 71 * + COUNT( * ) ELSE - 98 END + + COUNT( * ) * 39 AS col2
----
5233

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL - 53 * - - CASE 84 WHEN - NULLIF ( - COUNT ( * ), 60 / 81 ) THEN NULL WHEN + 98 + - 31 * + 5 THEN 71 * + COUNT ( * ) ELSE - 98 END + + COUNT ( * ) * 39 AS col2
----
5233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5132
SELECT DISTINCT + 17 * - CAST( NULL AS SIGNED ) + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT + 17 * - CAST ( NULL AS INTEGER ) + + 88
----
NULL

query I rowsort
SELECT - 21 * + 26 * + - 82 * - + 85 * ( NULLIF ( - 98, 96 ) ) AS col1
----
372950760

query I rowsort
SELECT DISTINCT - - 65 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT - ( - + 64 ) * + - NULLIF ( + + COUNT( * ), 98 * ( - 1 ) ) - 24 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-5135
SELECT - ( - + 64 ) * + - NULLIF ( + + COUNT ( * ), 98 * ( - 1 ) ) - 24 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT 57 * + + COALESCE ( + 11, - + MAX( ALL - + 75 ) + - CASE 87 WHEN 59 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 30 + + 39 END * - 96 )
----
627

skipif mysql # not compatible
query I rowsort label-5136
SELECT 57 * + + COALESCE ( + 11, - + MAX ( ALL - + 75 ) + - CASE 87 WHEN 59 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 30 + + 39 END * - 96 )
----
627

query I rowsort
SELECT ALL - 63 * - + 32 col2
----
2016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5138
SELECT - - MIN( 39 ) * + 0 DIV + + CASE - 59 WHEN + 76 THEN NULL ELSE - 26 * 74 - + 83 END * 83 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5138
SELECT - - MIN ( 39 ) * + 0 / + + CASE - 59 WHEN + 76 THEN NULL ELSE - 26 * 74 - + 83 END * 83 + + COUNT ( * )
----
1

query I rowsort
SELECT + 70 * - 95
----
-6650

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT DISTINCT - + 49 * 32 + - - COUNT( * )
----
-1567

skipif mysql # not compatible
query I rowsort label-5140
SELECT DISTINCT - + 49 * 32 + - - COUNT ( * )
----
-1567

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT DISTINCT + COUNT( DISTINCT + + 31 ) * - 8 * 35
----
-280

skipif mysql # not compatible
query I rowsort label-5141
SELECT DISTINCT + COUNT ( DISTINCT + + 31 ) * - 8 * 35
----
-280

query I rowsort
SELECT 36 * 70
----
2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5143
SELECT - ( + CASE + CAST( 30 AS SIGNED ) WHEN 10 THEN MIN( DISTINCT 93 ) WHEN + 21 THEN COUNT( * ) * 25 END ) - 28 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT - ( + CASE + CAST ( 30 AS INTEGER ) WHEN 10 THEN MIN ( DISTINCT 93 ) WHEN + 21 THEN COUNT ( * ) * 25 END ) - 28 * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + - 20 * 87
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT 58 * COUNT( * ) * - NULLIF ( 13, - 40 * 68 ) - 69
----
-823

skipif mysql # not compatible
query I rowsort label-5145
SELECT 58 * COUNT ( * ) * - NULLIF ( 13, - 40 * 68 ) - 69
----
-823

onlyif mysql # aggregate syntax: 
query II rowsort label-5146
SELECT ALL + 16 AS col1, - COUNT( * ) + - - 30 * - 52 AS col2
----
16
-1561

skipif mysql # not compatible
query II rowsort label-5146
SELECT ALL + 16 AS col1, - COUNT ( * ) + - - 30 * - 52 AS col2
----
16
-1561

query II rowsort
SELECT + 62 AS col0, 66
----
62
66

query I rowsort
SELECT - + 97 + + + 32
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5149
SELECT ALL CASE - 17 WHEN 1 THEN + 50 * COUNT( * ) WHEN + 51 THEN NULL ELSE 6 DIV - 12 + + 17 * 0 END
----
0

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL CASE - 17 WHEN 1 THEN + 50 * COUNT ( * ) WHEN + 51 THEN NULL ELSE 6 / - 12 + + 17 * 0 END
----
0

query II rowsort
SELECT 18 AS col0, ( 76 ) * - ( - ( + + 33 ) )
----
18
2508

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT - COUNT( DISTINCT 53 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5151
SELECT - COUNT ( DISTINCT 53 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT - 35 * + 54 * - COUNT( DISTINCT - 46 )
----
1890

skipif mysql # not compatible
query I rowsort label-5152
SELECT - 35 * + 54 * - COUNT ( DISTINCT - 46 )
----
1890

query I rowsort
SELECT + 41 * 51 AS col0
----
2091

query II rowsort
SELECT - 68 AS col0, - 0
----
-68
0

query I rowsort
SELECT DISTINCT 82 * + - 35 * 31
----
-88970

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT - 88 + SUM( DISTINCT - 60 ) + + 36
----
-112

skipif mysql # not compatible
query I rowsort label-5156
SELECT - 88 + SUM ( DISTINCT - 60 ) + + 36
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5157
SELECT ALL - 85 DIV + SUM( DISTINCT 78 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL - 85 / + SUM ( DISTINCT 78 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT 34 + + 64 AS col0
----
98

query I rowsort
SELECT DISTINCT - 58 * + CASE COALESCE ( + + 92, - - 8 / + 34 ) WHEN 4 THEN 25 WHEN - 9 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5160
SELECT + 57 DIV + + 22 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5160
SELECT + 57 / + + 22 AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5161
SELECT - 69 + + + 39 + - - COUNT( * ) DIV - 16, 57 + - 59 * ( - 23 * COUNT( * ) ) col2
----
-30
1414

skipif mysql # not compatible
query II rowsort label-5161
SELECT - 69 + + + 39 + - - COUNT ( * ) / - 16, 57 + - 59 * ( - 23 * COUNT ( * ) ) col2
----
-30
1414

query I rowsort
SELECT + 75 * + 22
----
1650

query II rowsort
SELECT ALL 90, - 39 - - 26 AS col0
----
90
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5164
SELECT - CAST( NULL AS SIGNED ) + - - 21 col0, ( - 61 ) + COUNT( * ) AS col0
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-5164
SELECT - CAST ( NULL AS INTEGER ) + - - 21 col0, ( - 61 ) + COUNT ( * ) AS col0
----
NULL
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5165
SELECT - CASE - CAST( NULL AS SIGNED ) WHEN 12 THEN + - 52 ELSE CAST( NULL AS SIGNED ) * + COUNT( * ) * - 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5165
SELECT - CASE - CAST ( NULL AS INTEGER ) WHEN 12 THEN + - 52 ELSE CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - 14 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5166
SELECT + COUNT( * ) + - + 4 DIV - 17 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5166
SELECT + COUNT ( * ) + - + 4 / - 17 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5167
SELECT + 27 DIV - + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5167
SELECT + 27 / - + 83 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT + COALESCE ( + ( + MAX( + + 84 ) ), + - ( - 50 ) ) - 41 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-5168
SELECT + COALESCE ( + ( + MAX ( + + 84 ) ), + - ( - 50 ) ) - 41 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT + 15 + + 57 + + - NULLIF ( - 27, - COUNT( * ) ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-5169
SELECT + 15 + + 57 + + - NULLIF ( - 27, - COUNT ( * ) ) AS col2
----
99

query II rowsort
SELECT ALL 5 AS col1, - 78 AS col1
----
5
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5171
SELECT ALL 49 * + + COUNT( * ) - - 98 + COALESCE ( + 50, 74 ) DIV 49 col2
----
148

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL 49 * + + COUNT ( * ) - - 98 + COALESCE ( + 50, 74 ) / 49 col2
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT + + 89 + + COUNT( DISTINCT - 3 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-5172
SELECT + + 89 + + COUNT ( DISTINCT - 3 ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT - MIN( DISTINCT 53 ) * + 69 - + 8
----
-3665

skipif mysql # not compatible
query I rowsort label-5173
SELECT - MIN ( DISTINCT 53 ) * + 69 - + 8
----
-3665

query I rowsort
SELECT ALL + - COALESCE ( - 61, 0 - 97 * - 73 ) AS col2
----
61

query I rowsort
SELECT ALL + 33 * + + ( + - NULLIF ( ( - 63 ), + 37 + 65 ) ) + 27
----
2106

onlyif mysql # DIV for integer division: 
query I rowsort label-5176
SELECT + - 28 + 82 DIV - 58 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-5176
SELECT + - 28 + 82 / - 58 AS col0
----
-29

query I rowsort
SELECT + 94 * 18 AS col2
----
1692

query II rowsort
SELECT + 50 col0, - 94 * - + 2 * - 6 + + 84 + 21 - 91 col1
----
50
-1114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5179
SELECT ALL 82 * - CAST( - 21 AS SIGNED ) AS col2
----
1722

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL 82 * - CAST ( - 21 AS INTEGER ) AS col2
----
1722

query II rowsort
SELECT ALL + + 61 col0, + 17 + - + 84
----
61
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-5181
SELECT + COUNT( - + 81 ) col0, 8
----
1
8

skipif mysql # not compatible
query II rowsort label-5181
SELECT + COUNT ( - + 81 ) col0, 8
----
1
8

query I rowsort
SELECT - 48 + - + 14 AS col2
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5183
SELECT + CAST( + + 77 AS SIGNED ) * 32 + - 12 + - 29 AS col1
----
2423

skipif mysql # not compatible
query I rowsort label-5183
SELECT + CAST ( + + 77 AS INTEGER ) * 32 + - 12 + - 29 AS col1
----
2423

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT 10 * - - 83 + - 73 * + 93 + 35 - - 78 * + CASE ( - 47 ) + - 22 WHEN 26 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5184
SELECT 10 * - - 83 + - 73 * + 93 + 35 - - 78 * + CASE ( - 47 ) + - 22 WHEN 26 THEN COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5185
SELECT - COALESCE ( - - COUNT( * ), + COALESCE ( CASE AVG ( + - 90 ) WHEN 53 + CAST( - 58 AS SIGNED ) * 61 THEN + 72 * - 40 END, 32 ) ) * - 41 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-5185
SELECT - COALESCE ( - - COUNT ( * ), + COALESCE ( CASE AVG ( + - 90 ) WHEN 53 + CAST ( - 58 AS INTEGER ) * 61 THEN + 72 * - 40 END, 32 ) ) * - 41 AS col2
----
41

query I rowsort
SELECT - 0 + 7
----
7

query I rowsort
SELECT NULLIF ( + 86, + - 1 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT DISTINCT COALESCE ( + 10, 33 * + - 98 / + 13, - 67 * 5, - 71 ) * COUNT( * ) + - CASE - 11 WHEN - 10 + - 42 THEN NULL WHEN - 68 THEN SUM( 57 ) END / + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT COALESCE ( + 10, 33 * + - 98 / + 13, - 67 * 5, - 71 ) * COUNT ( * ) + - CASE - 11 WHEN - 10 + - 42 THEN NULL WHEN - 68 THEN SUM ( 57 ) END / + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5189
SELECT ALL 86 * + 17 * + - CAST( NULL AS SIGNED ) + + AVG ( 46 ) + 96 / + - 50 + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL 86 * + 17 * + - CAST ( NULL AS INTEGER ) + + AVG ( 46 ) + 96 / + - 50 + 30
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 50, 80 * 82 * 52 - - 30 + - 50 - 75 )
----
50

query II rowsort
SELECT - 75 + - 71 col0, - 44 AS col2
----
-146
-44

query II rowsort
SELECT ALL ( + 22 ), + 93 AS col0
----
22
93

query I rowsort
SELECT - 46 * 36
----
-1656

query I rowsort
SELECT - 51 + 88
----
37

query I rowsort
SELECT + 28 + + 76
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5196
SELECT ALL + 81 + ( 17 ) * + - CAST( NULL AS SIGNED ) * + COUNT( * ) / + - 89 - + - 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL + 81 + ( 17 ) * + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) / + - 89 - + - 74 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5197
SELECT DISTINCT - ( + 99 ) + 94 DIV - 44 AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-5197
SELECT DISTINCT - ( + 99 ) + 94 / - 44 AS col1
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT DISTINCT + 0 + - CASE - COUNT( * ) WHEN + 25 * + 92 THEN + + 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT + 0 + - CASE - COUNT ( * ) WHEN + 25 * + 92 THEN + + 6 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT DISTINCT COUNT( * ) * + ( + 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT COUNT ( * ) * + ( + 61 ) AS col1
----
61

query I rowsort
SELECT DISTINCT + 36 * + 39
----
1404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5201
SELECT - CASE - 37 WHEN - + CASE - ( 54 ) WHEN - - 58 THEN - 29 + CASE WHEN NOT + COUNT( * ) NOT BETWEEN + COALESCE ( - 66, 8 ) AND ( - 64 ) * ( - COUNT( * ) ) THEN CAST( NULL AS SIGNED ) ELSE NULL END * - MIN( 2 ) ELSE + 26 - + CASE 36 WHEN - 47 THEN ( - ( - COUNT( * ) ) ) + + 42 END * COALESCE ( ( COUNT( * ) ), 42, - 81 ) END THEN 56 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT - CASE - 37 WHEN - + CASE - ( 54 ) WHEN - - 58 THEN - 29 + CASE WHEN NOT + COUNT ( * ) NOT BETWEEN + COALESCE ( - 66, 8 ) AND ( - 64 ) * ( - COUNT ( * ) ) THEN CAST ( NULL AS INTEGER ) ELSE NULL END * - MIN ( 2 ) ELSE + 26 - + CASE 36 WHEN - 47 THEN ( - ( - COUNT ( * ) ) ) + + 42 END * COALESCE ( ( COUNT ( * ) ), 42, - 81 ) END THEN 56 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT + COUNT( * ) * - COALESCE ( 52, 85 ) * 20 * + ( COUNT( * ) )
----
-1040

skipif mysql # not compatible
query I rowsort label-5202
SELECT + COUNT ( * ) * - COALESCE ( 52, 85 ) * 20 * + ( COUNT ( * ) )
----
-1040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5203
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * 53 col1, - COUNT( * ) + - 65
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-5203
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * 53 col1, - COUNT ( * ) + - 65
----
NULL
-66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5204
SELECT + 25 + + 30 + NULLIF ( + 6, - + COALESCE ( - + CAST( + COUNT( * ) AS DECIMAL ), - 34 + 19 ) ) + - 99
----
-38

skipif mysql # not compatible
query I rowsort label-5204
SELECT + 25 + + 30 + NULLIF ( + 6, - + COALESCE ( - + CAST ( + COUNT ( * ) AS REAL ), - 34 + 19 ) ) + - 99
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT DISTINCT - CASE + 85 WHEN 9 * - COUNT( * ) + - - 13 * + 22 THEN - 83 - 65 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT DISTINCT - CASE + 85 WHEN 9 * - COUNT ( * ) + - - 13 * + 22 THEN - 83 - 65 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT - + 41 * + NULLIF ( - 82, + 61 ) + - + COUNT( * ) AS col1
----
3361

skipif mysql # not compatible
query I rowsort label-5206
SELECT - + 41 * + NULLIF ( - 82, + 61 ) + - + COUNT ( * ) AS col1
----
3361

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT DISTINCT - - SUM( - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT - - SUM ( - 58 )
----
-58

query I rowsort
SELECT 97 * 30
----
2910

query I rowsort
SELECT + + ( - 48 ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT - CASE 60 WHEN + 45 * + - 50 THEN + MIN( DISTINCT 26 ) * 93 WHEN - 41 THEN 76 END * - 21 + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5210
SELECT - CASE 60 WHEN + 45 * + - 50 THEN + MIN ( DISTINCT 26 ) * 93 WHEN - 41 THEN 76 END * - 21 + 68 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT CASE 92 WHEN - NULLIF ( 51, - 11 ) * - COUNT( DISTINCT - - 99 ) + 45 * + ( 85 ) THEN 25 WHEN - 33 THEN NULL END * 95
----
NULL

skipif mysql # not compatible
query I rowsort label-5211
SELECT CASE 92 WHEN - NULLIF ( 51, - 11 ) * - COUNT ( DISTINCT - - 99 ) + 45 * + ( 85 ) THEN 25 WHEN - 33 THEN NULL END * 95
----
NULL

query I rowsort
SELECT 20 + 93 - + 16 + - 81
----
16

query I rowsort
SELECT - ( 38 ) * - 66
----
2508

query I rowsort
SELECT ALL - - 52 col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT ALL - 84 * + COUNT( * ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL - 84 * + COUNT ( * ) AS col0
----
-84

query I rowsort
SELECT DISTINCT 76 + 82 AS col0
----
158

query I rowsort
SELECT DISTINCT 35 + 77
----
112

query II rowsort
SELECT ALL - 46, - 46
----
-46
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-5219
SELECT DISTINCT + COUNT( * ) + - 8 * + 60, 45 AS col1
----
-479
45

skipif mysql # not compatible
query II rowsort label-5219
SELECT DISTINCT + COUNT ( * ) + - 8 * + 60, 45 AS col1
----
-479
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5220
SELECT + ( - - 38 ) * + 5 + + - 74 + 82 DIV - - 88
----
116

skipif mysql # not compatible
query I rowsort label-5220
SELECT + ( - - 38 ) * + 5 + + - 74 + 82 / - - 88
----
116

query I rowsort
SELECT ALL 70 + 59 * - 75 AS col1
----
-4355

query II rowsort
SELECT ALL - 36 AS col2, + 99 + + + NULLIF ( 79, ( - 31 ) ) * + - 5 + - 65
----
-36
-361

query II rowsort
SELECT 72, - 63 AS col0
----
72
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5224
SELECT CASE 28 WHEN - - 57 THEN - CAST( + - 91 AS SIGNED ) WHEN - 38 THEN + - 76 WHEN + 65 THEN NULL ELSE NULL END + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5224
SELECT CASE 28 WHEN - - 57 THEN - CAST ( + - 91 AS INTEGER ) WHEN - 38 THEN + - 76 WHEN + 65 THEN NULL ELSE NULL END + 23 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 99 + - 76 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT ALL + COUNT( * ) + + 20 * - NULLIF ( - - 82, - 45 + MIN( - - 26 ) * 99 ) - + 14
----
-1653

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL + COUNT ( * ) + + 20 * - NULLIF ( - - 82, - 45 + MIN ( - - 26 ) * 99 ) - + 14
----
-1653

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT ALL + ( - COUNT( * ) ) + - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL + ( - COUNT ( * ) ) + - COUNT ( * ) AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5228
SELECT 10 + - 76 DIV - - 58 - + 45 * 42
----
-1881

skipif mysql # not compatible
query I rowsort label-5228
SELECT 10 + - 76 / - - 58 - + 45 * 42
----
-1881

query I rowsort
SELECT ALL 98 - + 85
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5230
SELECT ALL - CAST( - - 84 AS SIGNED ) - + CAST( NULL AS SIGNED ) + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL - CAST ( - - 84 AS INTEGER ) - + CAST ( NULL AS INTEGER ) + - 30
----
NULL

query II rowsort
SELECT - COALESCE ( + 20, + 57 ) * 86, + 66 AS col0
----
-1720
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT - NULLIF ( - 43, - 44 - - COALESCE ( - COUNT( * ), 20 ) / + COUNT( ALL + 46 ) + 24 )
----
43

skipif mysql # not compatible
query I rowsort label-5232
SELECT - NULLIF ( - 43, - 44 - - COALESCE ( - COUNT ( * ), 20 ) / + COUNT ( ALL + 46 ) + 24 )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-5233
SELECT 80, COUNT( * ) AS col1
----
80
1

skipif mysql # not compatible
query II rowsort label-5233
SELECT 80, COUNT ( * ) AS col1
----
80
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5234
SELECT + COUNT( ALL - 42 ) + + + 37 - + COALESCE ( + 64, - 53 ) * + - SUM( 10 ) * CAST( + 55 * + 3 AS SIGNED ) AS col0
----
105638

skipif mysql # not compatible
query I rowsort label-5234
SELECT + COUNT ( ALL - 42 ) + + + 37 - + COALESCE ( + 64, - 53 ) * + - SUM ( 10 ) * CAST ( + 55 * + 3 AS INTEGER ) AS col0
----
105638

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT ALL + + 30 * + + NULLIF ( 29, - 46 - COUNT( * ) ) AS col0
----
870

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL + + 30 * + + NULLIF ( 29, - 46 - COUNT ( * ) ) AS col0
----
870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5236
SELECT ALL - - CASE - COALESCE ( - 70, 24 ) WHEN 97 THEN + 34 WHEN NULLIF ( - 17, + 77 - 99 ) THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL - - CASE - COALESCE ( - 70, 24 ) WHEN 97 THEN + 34 WHEN NULLIF ( - 17, + 77 - 99 ) THEN CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL + 90 * + 46 * 88
----
364320

query I rowsort
SELECT 14 + - - 11 * - + 85 * - 94 * - - 70
----
6152314

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT + - 10 * + + NULLIF ( - 2, + 0 * + 76 ) + - CASE + + ( - - COUNT( * ) ) WHEN - 69 * - 20 - + AVG ( - 94 ) * 56 THEN + 10 + - NULLIF ( + 73 + + 96, 22 ) END * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5239
SELECT + - 10 * + + NULLIF ( - 2, + 0 * + 76 ) + - CASE + + ( - - COUNT ( * ) ) WHEN - 69 * - 20 - + AVG ( - 94 ) * 56 THEN + 10 + - NULLIF ( + 73 + + 96, 22 ) END * + 26
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5240
SELECT - 34 DIV COALESCE ( + - 38, 27, 43 - + 56 + - - 48 + - COUNT( * ) * + 57 ) + 78 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5240
SELECT - 34 / COALESCE ( + - 38, 27, 43 - + 56 + - - 48 + - COUNT ( * ) * + 57 ) + 78 AS col1
----
78

query I rowsort
SELECT 34 * + + 28
----
952

query I rowsort
SELECT + 66 + + 38 col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT + 29 * - + 86 + - MIN( DISTINCT + 26 ) AS col0
----
-2520

skipif mysql # not compatible
query I rowsort label-5243
SELECT + 29 * - + 86 + - MIN ( DISTINCT + 26 ) AS col0
----
-2520

query I rowsort
SELECT ALL 45 + - 78
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5245
SELECT DISTINCT - - CAST( + 46 AS SIGNED ) + COALESCE ( + COUNT( * ), - NULLIF ( 4, - COUNT( * ) * 55 + - ( + 47 ) * - NULLIF ( 19 * 4, - 13 * 8 ) ) + 54, 47 )
----
47

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT - - CAST ( + 46 AS INTEGER ) + COALESCE ( + COUNT ( * ), - NULLIF ( 4, - COUNT ( * ) * 55 + - ( + 47 ) * - NULLIF ( 19 * 4, - 13 * 8 ) ) + 54, 47 )
----
47

query II rowsort
SELECT ALL - 26 + - 23, + 89 - 47 col0
----
-49
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT + 65 * + + COUNT( * ) + + + 64 AS col2
----
129

skipif mysql # not compatible
query I rowsort label-5247
SELECT + 65 * + + COUNT ( * ) + + + 64 AS col2
----
129

query I rowsort
SELECT 26 * + 79 + + - 22 - - 77
----
2109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5249
SELECT DISTINCT 58 + COUNT( * ) DIV + + COUNT( * ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT 58 + COUNT ( * ) / + + COUNT ( * ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT + MAX( + 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5250
SELECT + MAX ( + 15 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT DISTINCT MAX( ALL - 2 ) * 7 - + 12 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT MAX ( ALL - 2 ) * 7 - + 12 AS col2
----
-26

query I rowsort
SELECT DISTINCT 22 - - 36
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5253
SELECT DISTINCT CAST( NULL AS SIGNED ) - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT 42 + - - 94 AS col0, 86 * - + NULLIF ( + 96, - 80 / + ( - + 6 ) ) AS col0
----
136
-8256

query I rowsort
SELECT 51 + + - 47
----
4

query I rowsort
SELECT - 47 * - + 91 * + 4
----
17108

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT 80 * - + MIN( ALL - 66 )
----
5280

skipif mysql # not compatible
query I rowsort label-5257
SELECT 80 * - + MIN ( ALL - 66 )
----
5280

query I rowsort
SELECT + 21 + - 52 AS col0
----
-31

query I rowsort
SELECT + 65 * + 50 * + 0 * + 66
----
0

query I rowsort
SELECT ALL + - 78 * 94
----
-7332

query I rowsort
SELECT ALL 48 * + 66
----
3168

query I rowsort
SELECT DISTINCT ( - 30 ) AS col1
----
-30

query I rowsort
SELECT - + COALESCE ( - ( + 91 ), + 47 + 1, 96 )
----
91

query I rowsort
SELECT - 1 * 84 + 72 AS col0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-5265
SELECT ALL - - 98 + 96 DIV - + 6
----
82

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL - - 98 + 96 / - + 6
----
82

query I rowsort
SELECT DISTINCT + + NULLIF ( + 56, - - ( + 56 ) ) + + 33
----
NULL

query I rowsort
SELECT NULLIF ( - - 62, + + 56 )
----
62

query I rowsort
SELECT + - 39 * - 3
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-5269
SELECT - - 33 * - COUNT( * ) + + - 62 - - + 26 AS col2, + 86
----
-69
86

skipif mysql # not compatible
query II rowsort label-5269
SELECT - - 33 * - COUNT ( * ) + + - 62 - - + 26 AS col2, + 86
----
-69
86

onlyif mysql # DIV for integer division: 
query I rowsort label-5270
SELECT ALL + 28 + + 36 DIV - - 88 * - 33 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL + 28 + + 36 / - - 88 * - 33 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT - COUNT( * ) * - + 51
----
51

skipif mysql # not compatible
query I rowsort label-5271
SELECT - COUNT ( * ) * - + 51
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT ALL + ( - 62 ) * - 89 + COALESCE ( - - COUNT( * ), 64 ) AS col0
----
5519

skipif mysql # not compatible
query I rowsort label-5272
SELECT ALL + ( - 62 ) * - 89 + COALESCE ( - - COUNT ( * ), 64 ) AS col0
----
5519

query I rowsort
SELECT - 53 + - + 7 * + - ( 44 ) AS col1
----
255

query I rowsort
SELECT - 59 * + 33 col2
----
-1947

onlyif mysql # aggregate syntax: 
query II rowsort label-5275
SELECT NULLIF ( + - 35, - ( + ( - 2 ) ) ), - SUM( - + 35 ) * 49 + 61 AS col0
----
-35
1776

skipif mysql # not compatible
query II rowsort label-5275
SELECT NULLIF ( + - 35, - ( + ( - 2 ) ) ), - SUM ( - + 35 ) * 49 + 61 AS col0
----
-35
1776

query II rowsort
SELECT + 61 * - 30 + + + 42 AS col0, - 6 AS col0
----
-1788
-6

query I rowsort
SELECT COALESCE ( 30, 72 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT COALESCE ( 31, - COUNT( ALL 57 ) + 37 * + 17, + 60 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5278
SELECT COALESCE ( 31, - COUNT ( ALL 57 ) + 37 * + 17, + 60 ) AS col2
----
31

query I rowsort
SELECT + 52 + + - 41
----
11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5280
SELECT + 11 DIV 54 * - CAST( 29 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5280
SELECT + 11 / 54 * - CAST ( 29 AS INTEGER )
----
0

query I rowsort
SELECT - 23 * - 76
----
1748

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT + CASE - 73 WHEN - + COALESCE ( + - 58, + + 42 + CASE + + 1 WHEN + - COUNT( * ) * COUNT( * ) THEN NULL ELSE + 67 / 0 END - ( + 11 ) * - 86 ) + 43 / - 81 THEN - 4 WHEN ( ( + ( - COUNT( + 35 ) ) ) ) * - COALESCE ( - 99, - COALESCE ( - 85, - 6 + + 31 * 53 ) ) THEN + 64 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT + CASE - 73 WHEN - + COALESCE ( + - 58, + + 42 + CASE + + 1 WHEN + - COUNT ( * ) * COUNT ( * ) THEN NULL ELSE + 67 / 0 END - ( + 11 ) * - 86 ) + 43 / - 81 THEN - 4 WHEN ( ( + ( - COUNT ( + 35 ) ) ) ) * - COALESCE ( - 99, - COALESCE ( - 85, - 6 + + 31 * 53 ) ) THEN + 64 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5283
SELECT ALL 69 DIV - 16 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL 69 / - 16 AS col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5284
SELECT - 75 + - CAST( + + 49 AS SIGNED ) col2
----
-124

skipif mysql # not compatible
query I rowsort label-5284
SELECT - 75 + - CAST ( + + 49 AS INTEGER ) col2
----
-124

query I rowsort
SELECT DISTINCT + ( 40 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT + MAX( DISTINCT 29 )
----
29

skipif mysql # not compatible
query I rowsort label-5286
SELECT + MAX ( DISTINCT 29 )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5287
SELECT ALL + CAST( + 32 AS SIGNED ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL + CAST ( + 32 AS INTEGER ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT DISTINCT + MAX( ALL 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT + MAX ( ALL 69 ) AS col0
----
69

query I rowsort
SELECT - 39 + + 95 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT DISTINCT ( + MIN( DISTINCT + 91 ) ) * ( - 26 ) * - 52 + + + 24
----
123056

skipif mysql # not compatible
query I rowsort label-5290
SELECT DISTINCT ( + MIN ( DISTINCT + 91 ) ) * ( - 26 ) * - 52 + + + 24
----
123056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5291
SELECT + NULLIF ( 94, + COALESCE ( - ( CASE - + COUNT( * ) WHEN 10 * + CAST( 48 AS DECIMAL ) + + CASE 6 WHEN - 89 * + SUM( DISTINCT - 75 ) + - CASE 58 + + 69 WHEN COUNT( * ) THEN NULL ELSE 48 / 77 END * + 88 THEN - AVG ( 53 ) END + + 19 + CAST( NULL AS SIGNED ) THEN NULL WHEN 29 + 33 THEN SUM( ALL 8 ) END ), + 50 ) * + SUM( 36 ) ) * SUM( DISTINCT 42 ) AS col2
----
3948

skipif mysql # not compatible
query I rowsort label-5291
SELECT + NULLIF ( 94, + COALESCE ( - ( CASE - + COUNT ( * ) WHEN 10 * + CAST ( 48 AS REAL ) + + CASE 6 WHEN - 89 * + SUM ( DISTINCT - 75 ) + - CASE 58 + + 69 WHEN COUNT ( * ) THEN NULL ELSE 48 / 77 END * + 88 THEN - AVG ( 53 ) END + + 19 + CAST ( NULL AS INTEGER ) THEN NULL WHEN 29 + 33 THEN SUM ( ALL 8 ) END ), + 50 ) * + SUM ( 36 ) ) * SUM ( DISTINCT 42 ) AS col2
----
3948

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT COUNT( ALL NULLIF ( 49, - + COALESCE ( + 6, 13, - 9 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5292
SELECT COUNT ( ALL NULLIF ( 49, - + COALESCE ( + 6, 13, - 9 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT - MAX( - 13 )
----
13

skipif mysql # not compatible
query I rowsort label-5293
SELECT - MAX ( - 13 )
----
13

query I rowsort
SELECT + 26 - 89 * + 25 AS col0
----
-2199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5295
SELECT + 49 * + ( - + 63 ) * CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5295
SELECT + 49 * + ( - + 63 ) * CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT - 97 AS col0, COALESCE ( - 44, 9, + 4 ) * + 50 AS col0
----
-97
-2200

query I rowsort
SELECT + + 29 * + 75
----
2175

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT ALL + COUNT( * ) + 91
----
92

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL + COUNT ( * ) + 91
----
92

query I rowsort
SELECT + + 18 + CASE - ( - 74 ) WHEN + 3 * - + 28 THEN + + AVG ( + 6 ) WHEN + 8 - 30 THEN NULL WHEN - 83 * 23 + - 14 THEN NULLIF ( + 43, 82 * - 47 + + 99 ) / + 0 END - 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT + + NULLIF ( + + 86, + + MAX( - - 31 ) + - COALESCE ( + 37, + 40, + - 81 ) + + 38 ) - 78
----
8

skipif mysql # not compatible
query I rowsort label-5300
SELECT + + NULLIF ( + + 86, + + MAX ( - - 31 ) + - COALESCE ( + 37, + 40, + - 81 ) + + 38 ) - 78
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT + - 43 + MAX( DISTINCT - 90 ) + + ( + + 62 ) + 5
----
-66

skipif mysql # not compatible
query I rowsort label-5301
SELECT + - 43 + MAX ( DISTINCT - 90 ) + + ( + + 62 ) + 5
----
-66

query I rowsort
SELECT DISTINCT - 41 + - 63 AS col2
----
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-5303
SELECT DISTINCT + 29 + - 31 + 19, COALESCE ( + - 39, - ( + - 51 ) + - 60, + COUNT( * ) ) * - 4 * - 90 AS col2
----
17
-14040

skipif mysql # not compatible
query II rowsort label-5303
SELECT DISTINCT + 29 + - 31 + 19, COALESCE ( + - 39, - ( + - 51 ) + - 60, + COUNT ( * ) ) * - 4 * - 90 AS col2
----
17
-14040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5304
SELECT ALL CASE - - 44 WHEN - 76 + - CAST( NULL AS SIGNED ) / - - 52 THEN + 56 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL CASE - - 44 WHEN - 76 + - CAST ( NULL AS INTEGER ) / - - 52 THEN + 56 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL - 7 + - - COUNT( + + 54 ) + - 90 * - 30 AS col1
----
2694

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL - 7 + - - COUNT ( + + 54 ) + - 90 * - 30 AS col1
----
2694

query I rowsort
SELECT + 88 + + - 61
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5307
SELECT DISTINCT + ( - CAST( + + 9 AS SIGNED ) ) + 26 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT + ( - CAST ( + + 9 AS INTEGER ) ) + 26 AS col0
----
17

query I rowsort
SELECT ALL + + 58 + + 53
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5309
SELECT + CAST( + 39 AS SIGNED ) col0
----
39

skipif mysql # not compatible
query I rowsort label-5309
SELECT + CAST ( + 39 AS INTEGER ) col0
----
39

query I rowsort
SELECT DISTINCT 80 * 8 AS col2
----
640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5311
SELECT DISTINCT + 58 DIV - 67 + - 93 DIV - COALESCE ( + ( + - COUNT( * ) ), + 39 + + 61 + - + ( - 83 ) * 24, COUNT( * ) - + 40 * + 10 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT + 58 / - 67 + - 93 / - COALESCE ( + ( + - COUNT ( * ) ), + 39 + + 61 + - + ( - 83 ) * 24, COUNT ( * ) - + 40 * + 10 ) AS col2
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5312
SELECT 63 / + 59 + NULLIF ( + + CAST( + + CASE - 91 WHEN - 15 THEN + 30 + + ( + 93 ) + + 18 + COUNT( * ) * + COALESCE ( + 52 * ( - COUNT( * ) ) + 70 / - 75, 31 * + COUNT( * ), - 50 * NULLIF ( CASE + CAST( - COUNT( * ) AS SIGNED ) WHEN + COUNT( - 54 ) / - ( - 81 + + 25 ) THEN + 11 - + 43 * - CAST( NULL AS SIGNED ) WHEN - CAST( AVG ( ALL 26 ) AS SIGNED ) + 27 * 76 THEN NULL ELSE - 58 END, COUNT( * ) ) ) END AS SIGNED ), + 97 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5312
SELECT 63 / + 59 + NULLIF ( + + CAST ( + + CASE - 91 WHEN - 15 THEN + 30 + + ( + 93 ) + + 18 + COUNT ( * ) * + COALESCE ( + 52 * ( - COUNT ( * ) ) + 70 / - 75, 31 * + COUNT ( * ), - 50 * NULLIF ( CASE + CAST ( - COUNT ( * ) AS INTEGER ) WHEN + COUNT ( - 54 ) / - ( - 81 + + 25 ) THEN + 11 - + 43 * - CAST ( NULL AS INTEGER ) WHEN - CAST ( AVG ( ALL 26 ) AS INTEGER ) + 27 * 76 THEN NULL ELSE - 58 END, COUNT ( * ) ) ) END AS INTEGER ), + 97 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5313
SELECT + CAST( NULL AS SIGNED ) AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5313
SELECT + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5314
SELECT - 11 + - CAST( 93 AS SIGNED ) + + 38 + - 80
----
-146

skipif mysql # not compatible
query I rowsort label-5314
SELECT - 11 + - CAST ( 93 AS INTEGER ) + + 38 + - 80
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT + MAX( + + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-5315
SELECT + MAX ( + + 38 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5316
SELECT CAST( NULL AS SIGNED ), - SUM( ALL + COALESCE ( 38, + 77, + - 94 ) ) * 35 AS col2
----
NULL
-1330

skipif mysql # not compatible
query II rowsort label-5316
SELECT CAST ( NULL AS INTEGER ), - SUM ( ALL + COALESCE ( 38, + 77, + - 94 ) ) * 35 AS col2
----
NULL
-1330

onlyif mysql # DIV for integer division: 
query I rowsort label-5317
SELECT DISTINCT - 9 DIV - 19 * 98 DIV - 37
----
0

skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT - 9 / - 19 * 98 / - 37
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT ALL - ( COUNT( * ) ) * + 18
----
-18

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL - ( COUNT ( * ) ) * + 18
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT - 69 * + COUNT( * ) * - ( + 27 ) col2
----
1863

skipif mysql # not compatible
query I rowsort label-5319
SELECT - 69 * + COUNT ( * ) * - ( + 27 ) col2
----
1863

query I rowsort
SELECT - NULLIF ( - + ( - 79 ), - 49 + 65 ) * - 19 * 65 + 0 AS col0
----
97565

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT - MIN( + + 39 ) - + 23 + - 93 + - 39 AS col2
----
-194

skipif mysql # not compatible
query I rowsort label-5321
SELECT - MIN ( + + 39 ) - + 23 + - 93 + - 39 AS col2
----
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT ALL + MAX( ALL + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL + MAX ( ALL + 70 )
----
70

query I rowsort
SELECT - 33 * + 11 col1
----
-363

query I rowsort
SELECT - 9 * - 14 AS col2
----
126

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5325
SELECT + CASE + 63 WHEN - 98 * + - 13 THEN + - CAST( + 96 AS DECIMAL ) * + + 75 * - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5325
SELECT + CASE + 63 WHEN - 98 * + - 13 THEN + - CAST ( + 96 AS REAL ) * + + 75 * - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5326
SELECT DISTINCT - 64 AS col1, CASE WHEN 43 < NULL THEN 40 + + + 8 - - 76 WHEN NOT 28 NOT IN ( + + COUNT( * ) * + CASE 18 WHEN + 29 THEN NULL ELSE - 60 END * 80 ) THEN ( - 54 ) / COALESCE ( COALESCE ( + 98, ( - 41 ) ), - SUM( ALL + NULLIF ( - 39, - 1 ) ) + NULLIF ( + COUNT( * ), 72 ), 91 * 84 - 9 / CAST( NULL AS SIGNED ), 53 ) END / 44
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-5326
SELECT DISTINCT - 64 AS col1, CASE WHEN 43 < NULL THEN 40 + + + 8 - - 76 WHEN NOT 28 NOT IN ( + + COUNT ( * ) * + CASE 18 WHEN + 29 THEN NULL ELSE - 60 END * 80 ) THEN ( - 54 ) / COALESCE ( COALESCE ( + 98, ( - 41 ) ), - SUM ( ALL + NULLIF ( - 39, - 1 ) ) + NULLIF ( + COUNT ( * ), 72 ), 91 * 84 - 9 / CAST ( NULL AS INTEGER ), 53 ) END / 44
----
-64
NULL

query I rowsort
SELECT DISTINCT - ( + + 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT ALL - COUNT( ALL + - 59 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL - COUNT ( ALL + - 59 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5329
SELECT DISTINCT - ( - 70 ) DIV + 20 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT - ( - 70 ) / + 20 AS col2
----
3

query I rowsort
SELECT ALL - + 94 + + 8
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT + COALESCE ( 85, - COUNT( 32 ) ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-5331
SELECT + COALESCE ( 85, - COUNT ( 32 ) ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT ALL + 52 + - COUNT( * ) + + 81
----
132

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL + 52 + - COUNT ( * ) + + 81
----
132

query I rowsort
SELECT ( - + 11 ) AS col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5334
SELECT + MIN( - 1 ) * + CAST( NULL AS SIGNED ) + COUNT( * ) + + + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5334
SELECT + MIN ( - 1 ) * + CAST ( NULL AS INTEGER ) + COUNT ( * ) + + + 20 AS col0
----
NULL

query II rowsort
SELECT 20 * + 55 AS col0, - 3 AS col2
----
1100
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5336
SELECT ALL - 61 + + 44 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL - 61 + + 44 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5337
SELECT - 37 AS col0, 50 * + SUM( + + 55 ) * - 15 * + MAX( + 98 ) + - 25 AS col2
----
-37
-4042525

skipif mysql # not compatible
query II rowsort label-5337
SELECT - 37 AS col0, 50 * + SUM ( + + 55 ) * - 15 * + MAX ( + 98 ) + - 25 AS col2
----
-37
-4042525

query I rowsort
SELECT 9 + - 15 col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT - COUNT( - 0 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5339
SELECT - COUNT ( - 0 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5340
SELECT DISTINCT CAST( - 97 AS SIGNED ) col0, 27 + - COUNT( * ), - + SUM( DISTINCT + - 43 ) * COALESCE ( + 81, + CAST( NULL AS SIGNED ) * - 35, - + 83, 32 ) - 88 * + 96 AS col2
----
-97
26
-4965

skipif mysql # not compatible
query III rowsort label-5340
SELECT DISTINCT CAST ( - 97 AS INTEGER ) col0, 27 + - COUNT ( * ), - + SUM ( DISTINCT + - 43 ) * COALESCE ( + 81, + CAST ( NULL AS INTEGER ) * - 35, - + 83, 32 ) - 88 * + 96 AS col2
----
-97
26
-4965

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5341
SELECT ALL - 0 * - CAST( NULL AS DECIMAL ) + - 20 + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL - 0 * - CAST ( NULL AS REAL ) + - 20 + - 11
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 23, - 4 * - 60 ) + + - 19
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5343
SELECT - MIN( + CASE - - 56 WHEN + CAST( NULL AS SIGNED ) + 40 THEN NULL WHEN - 16 THEN CAST( NULL AS SIGNED ) END ) * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-5343
SELECT - MIN ( + CASE - - 56 WHEN + CAST ( NULL AS INTEGER ) + 40 THEN NULL WHEN - 16 THEN CAST ( NULL AS INTEGER ) END ) * + 9
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5344
SELECT DISTINCT COUNT( * ) DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT COUNT ( * ) / 90
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5345
SELECT ALL + 55 AS col2, COUNT( * )
----
55
1

skipif mysql # not compatible
query II rowsort label-5345
SELECT ALL + 55 AS col2, COUNT ( * )
----
55
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5346
SELECT 58 DIV + SUM( DISTINCT 93 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5346
SELECT 58 / + SUM ( DISTINCT 93 ) col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5347
SELECT ALL 91 / - + CAST( NULL AS DECIMAL ) + + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL 91 / - + CAST ( NULL AS REAL ) + + - 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT ALL SUM( DISTINCT + + 43 ) * CASE + 25 WHEN - + 9 + + 28 THEN 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL SUM ( DISTINCT + + 43 ) * CASE + 25 WHEN - + 9 + + 28 THEN 25 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5349
SELECT COALESCE ( - 71, - COUNT( * ), + - 9 DIV - COUNT( * ) ) - 8 col1
----
-79

skipif mysql # not compatible
query I rowsort label-5349
SELECT COALESCE ( - 71, - COUNT ( * ), + - 9 / - COUNT ( * ) ) - 8 col1
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-5350
SELECT ALL 5 DIV + 4
----
1

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL 5 / + 4
----
1

query I rowsort
SELECT DISTINCT 99 * - 97 * + - 92 AS col1
----
883476

query I rowsort
SELECT ALL 34 * 44
----
1496

query I rowsort
SELECT 0 + + 96
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5354
SELECT 35 * CASE 28 WHEN + 65 THEN NULL ELSE + CASE 47 WHEN + 49 * 77 + + 6 + - 80 THEN - 0 * + 65 - MIN( + 4 ) + + CAST( NULL AS SIGNED ) * 65 WHEN 86 * 15 THEN - 57 * CASE 99 WHEN - 3 + - 19 THEN 16 / - 75 + - COUNT( * ) WHEN - NULLIF ( 37, 94 ) THEN + COUNT( * ) * ( + 16 ) END END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5354
SELECT 35 * CASE 28 WHEN + 65 THEN NULL ELSE + CASE 47 WHEN + 49 * 77 + + 6 + - 80 THEN - 0 * + 65 - MIN ( + 4 ) + + CAST ( NULL AS INTEGER ) * 65 WHEN 86 * 15 THEN - 57 * CASE 99 WHEN - 3 + - 19 THEN 16 / - 75 + - COUNT ( * ) WHEN - NULLIF ( 37, 94 ) THEN + COUNT ( * ) * ( + 16 ) END END END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5355
SELECT ALL - MAX( - + 5 ) AS col2, + COUNT( * )
----
5
1

skipif mysql # not compatible
query II rowsort label-5355
SELECT ALL - MAX ( - + 5 ) AS col2, + COUNT ( * )
----
5
1

query I rowsort
SELECT 51 + - - 16 + + 39 col0
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5357
SELECT COUNT( * ) * + 57 DIV - 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5357
SELECT COUNT ( * ) * + 57 / - 64 AS col2
----
0

query II rowsort
SELECT 61 * - 92 AS col2, + 31 * 67
----
-5612
2077

query I rowsort
SELECT ALL - 60 + - 56
----
-116

query I rowsort
SELECT 44 + + - 13 AS col2
----
31

query I rowsort
SELECT ALL + 33 * - 5 * 72
----
-11880

query II rowsort
SELECT 58 + - 69 + - ( + ( 3 ) ) col0, + 48 col0
----
-14
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5363
SELECT ALL + 7 * - 5 DIV 75 * + NULLIF ( + + 60, + COUNT( * ) + 68 ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL + 7 * - 5 / 75 * + NULLIF ( + + 60, + COUNT ( * ) + 68 ) + COUNT ( * )
----
1

query I rowsort
SELECT 47 - 41 + + 23 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT DISTINCT + - COUNT( * ) + - COUNT( * ) * - ( COUNT( 62 ) ) + + 28 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-5365
SELECT DISTINCT + - COUNT ( * ) + - COUNT ( * ) * - ( COUNT ( 62 ) ) + + 28 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT ALL + + MAX( - + 13 ) + 80 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL + + MAX ( - + 13 ) + 80 AS col1
----
67

query I rowsort
SELECT + 43 - - 49
----
92

query I rowsort
SELECT ALL + + 62 + 81
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5369
SELECT - 56 * + + 30 * CAST( - COALESCE ( - 95, COUNT( * ) ) AS SIGNED ) AS col0
----
-159600

skipif mysql # not compatible
query I rowsort label-5369
SELECT - 56 * + + 30 * CAST ( - COALESCE ( - 95, COUNT ( * ) ) AS INTEGER ) AS col0
----
-159600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5370
SELECT ALL + 91 DIV COALESCE ( COUNT( * ), - - 70 - + 44 + CAST( + 51 AS SIGNED ) + - 43 ) * - COUNT( * ) + COUNT( * ) DIV + 44
----
-91

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL + 91 / COALESCE ( COUNT ( * ), - - 70 - + 44 + CAST ( + 51 AS INTEGER ) + - 43 ) * - COUNT ( * ) + COUNT ( * ) / + 44
----
-91

query I rowsort
SELECT DISTINCT - 22 - 27
----
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-5372
SELECT - 23 + 44 col2, + 40 DIV NULLIF ( + 75, + 99 ) col0
----
21
0

skipif mysql # not compatible
query II rowsort label-5372
SELECT - 23 + 44 col2, + 40 / NULLIF ( + 75, + 99 ) col0
----
21
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5373
SELECT 83 + CAST( - - 65 AS SIGNED ) AS col2, 82
----
148
82

skipif mysql # not compatible
query II rowsort label-5373
SELECT 83 + CAST ( - - 65 AS INTEGER ) AS col2, 82
----
148
82

query II rowsort
SELECT + 6 - + 35, - 83 AS col1
----
-29
-83

query I rowsort
SELECT ALL - ( + 10 ) * - 28 + 94
----
374

query I rowsort
SELECT - 50 + + 32 AS col0
----
-18

query I rowsort
SELECT 1 + - 71
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5378
SELECT ALL + 9 * + CAST( - + COUNT( * ) AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL + 9 * + CAST ( - + COUNT ( * ) AS INTEGER )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT COUNT( * ) + + CASE - + 60 WHEN - 98 THEN NULL WHEN + 91 THEN - - CASE - 38 WHEN + - 60 * 21 THEN 20 * + - COUNT( * ) ELSE + + ( + 20 ) END * COUNT( * ) + ( 14 - COUNT( * ) * 74 ) WHEN 45 THEN NULL END + 28 * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5379
SELECT COUNT ( * ) + + CASE - + 60 WHEN - 98 THEN NULL WHEN + 91 THEN - - CASE - 38 WHEN + - 60 * 21 THEN 20 * + - COUNT ( * ) ELSE + + ( + 20 ) END * COUNT ( * ) + ( 14 - COUNT ( * ) * 74 ) WHEN 45 THEN NULL END + 28 * - 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5380
SELECT COUNT( * ) * - - 99 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5380
SELECT COUNT ( * ) * - - 99 / - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5381
SELECT DISTINCT + CASE COUNT( DISTINCT 79 ) WHEN 18 + - - 5 + + 91 + NULLIF ( + 38, - 74 / - + 28 + COUNT( * ) + + 53 * - 73 * ( - NULLIF ( - MAX( DISTINCT 42 ), + 72 ) * COUNT( - ( + 55 ) + 61 * 65 ) ) ) / - 65 * - 21 THEN CAST( MAX( ALL 39 ) AS SIGNED ) END * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT + CASE COUNT ( DISTINCT 79 ) WHEN 18 + - - 5 + + 91 + NULLIF ( + 38, - 74 / - + 28 + COUNT ( * ) + + 53 * - 73 * ( - NULLIF ( - MAX ( DISTINCT 42 ), + 72 ) * COUNT ( - ( + 55 ) + 61 * 65 ) ) ) / - 65 * - 21 THEN CAST ( MAX ( ALL 39 ) AS INTEGER ) END * + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT ALL COALESCE ( - + 85, - + 22 * - 13 * + SUM( + 36 ) * 96 - 67 + - + COUNT( * ) * 92 + - CASE - - MAX( + 95 ) WHEN 31 THEN 85 WHEN + COUNT( * ) THEN NULL END ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL COALESCE ( - + 85, - + 22 * - 13 * + SUM ( + 36 ) * 96 - 67 + - + COUNT ( * ) * 92 + - CASE - - MAX ( + 95 ) WHEN 31 THEN 85 WHEN + COUNT ( * ) THEN NULL END ) AS col1
----
-85

query I rowsort
SELECT DISTINCT CASE - 13 WHEN 86 THEN + 38 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT NULLIF ( 67, - COUNT( * ) ) + + - 44 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-5384
SELECT NULLIF ( 67, - COUNT ( * ) ) + + - 44 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT COUNT( * ) * - 77 * MAX( ALL + 59 ) AS col0
----
-4543

skipif mysql # not compatible
query I rowsort label-5385
SELECT COUNT ( * ) * - 77 * MAX ( ALL + 59 ) AS col0
----
-4543

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT NULLIF ( + + 76, - 18 * - 77 + + - COUNT( * ) ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5386
SELECT NULLIF ( + + 76, - 18 * - 77 + + - COUNT ( * ) ) AS col1
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5387
SELECT 37 DIV + 2 + - ( 53 ) - + + 33 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-5387
SELECT 37 / + 2 + - ( 53 ) - + + 33 AS col1
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5388
SELECT CAST( 75 AS SIGNED ) + - 74 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5388
SELECT CAST ( 75 AS INTEGER ) + - 74 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT CASE + 9 WHEN + ( COALESCE ( 80, 35 / - 52 ) ) + + 46 * + + 22 + - 73 + + 12 + 23 + - COUNT( * ) + 26 THEN NULL WHEN - 58 * 6 THEN 93 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5389
SELECT CASE + 9 WHEN + ( COALESCE ( 80, 35 / - 52 ) ) + + 46 * + + 22 + - 73 + + 12 + 23 + - COUNT ( * ) + 26 THEN NULL WHEN - 58 * 6 THEN 93 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5390
SELECT + COALESCE ( 24, + + MAX( ALL + 33 ) ) DIV + 47 + COUNT( * ) * - COUNT( + CAST( - + 41 AS DECIMAL ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5390
SELECT + COALESCE ( 24, + + MAX ( ALL + 33 ) ) / + 47 + COUNT ( * ) * - COUNT ( + CAST ( - + 41 AS REAL ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 39 * 71
----
2769

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) * - 46 + 22 * + 33 + 23 + 49 AS col2
----
752

skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) * - 46 + 22 * + 33 + 23 + 49 AS col2
----
752

query I rowsort
SELECT ALL + 87 * - 90 + - 41
----
-7871

onlyif mysql # aggregate syntax: 
query II rowsort label-5394
SELECT ALL - 4 * 69 + + COUNT( * ), - 20 AS col2
----
-275
-20

skipif mysql # not compatible
query II rowsort label-5394
SELECT ALL - 4 * 69 + + COUNT ( * ), - 20 AS col2
----
-275
-20

query I rowsort
SELECT + 68 + 53 AS col1
----
121

query I rowsort
SELECT ALL + NULLIF ( + 41, 94 + + + 63 ) col1
----
41

query I rowsort
SELECT - - 25 + + 31 AS col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5398
SELECT ALL - 75 * + CASE + + 83 WHEN - CASE + 72 WHEN - 94 * 6 + ( + - COALESCE ( + 98, + 93 / 61 - + CAST( CASE + MAX( ALL + 56 ) WHEN + 74 + - 34 THEN - 10 ELSE NULL END AS SIGNED ) * - 4, + 76 / 54 ) ) + 12 * 24 THEN 57 WHEN + NULLIF ( + NULLIF ( + 87, - 10 * - 65 + ( 28 + 50 ) ), 26 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END THEN COUNT( * ) * - 8 WHEN - 80 + - 62 THEN ( 32 ) + ( 58 ) WHEN - 84 * + COUNT( COALESCE ( 91, 42 * 38 ) ) THEN + ( 11 ) / + 26 - - 59 * + 40 ELSE NULL END + - 92 + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL - 75 * + CASE + + 83 WHEN - CASE + 72 WHEN - 94 * 6 + ( + - COALESCE ( + 98, + 93 / 61 - + CAST ( CASE + MAX ( ALL + 56 ) WHEN + 74 + - 34 THEN - 10 ELSE NULL END AS INTEGER ) * - 4, + 76 / 54 ) ) + 12 * 24 THEN 57 WHEN + NULLIF ( + NULLIF ( + 87, - 10 * - 65 + ( 28 + 50 ) ), 26 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END THEN COUNT ( * ) * - 8 WHEN - 80 + - 62 THEN ( 32 ) + ( 58 ) WHEN - 84 * + COUNT ( COALESCE ( 91, 42 * 38 ) ) THEN + ( 11 ) / + 26 - - 59 * + 40 ELSE NULL END + - 92 + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT + MIN( 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5399
SELECT + MIN ( 17 ) AS col1
----
17

query II rowsort
SELECT ALL + 93 AS col0, 52 AS col1
----
93
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT + 27 + COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-5401
SELECT + 27 + COUNT ( * ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT ALL ( 21 ) - + COUNT( * ) * + + 47 - + 69 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-5402
SELECT ALL ( 21 ) - + COUNT ( * ) * + + 47 - + 69 AS col0
----
-95

query II rowsort
SELECT ALL + 29 AS col1, ( 55 ) * - 97
----
29
-5335

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT COUNT( * ) * + + 49 + - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-5404
SELECT COUNT ( * ) * + + 49 + - COUNT ( * )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5405
SELECT DISTINCT 28 - + COUNT( * ) - 2 + + - CAST( NULL AS SIGNED ) * - CASE 31 WHEN + NULLIF ( + - 60, + - 11 ) THEN 62 END + + 1 * + MAX( DISTINCT + + CAST( NULL AS DECIMAL ) ) * 9 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT 28 - + COUNT ( * ) - 2 + + - CAST ( NULL AS INTEGER ) * - CASE 31 WHEN + NULLIF ( + - 60, + - 11 ) THEN 62 END + + 1 * + MAX ( DISTINCT + + CAST ( NULL AS REAL ) ) * 9 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5406
SELECT + NULLIF ( - 19, + + COUNT( * ) * - COUNT( * ) + + 40 * - 42 + - COALESCE ( + + 83, + 89, + 29 ) + + 19 ) AS col0, 70 - 36
----
-19
34

skipif mysql # not compatible
query II rowsort label-5406
SELECT + NULLIF ( - 19, + + COUNT ( * ) * - COUNT ( * ) + + 40 * - 42 + - COALESCE ( + + 83, + 89, + 29 ) + + 19 ) AS col0, 70 - 36
----
-19
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5407
SELECT - - COUNT( * ) + MIN( + 91 ) AS col2, 80 + - 29 AS col2
----
92
51

skipif mysql # not compatible
query II rowsort label-5407
SELECT - - COUNT ( * ) + MIN ( + 91 ) AS col2, 80 + - 29 AS col2
----
92
51

onlyif mysql # aggregate syntax: 
query II rowsort label-5408
SELECT + - SUM( ALL + - 6 ) * ( - 70 ) AS col1, 23
----
-420
23

skipif mysql # not compatible
query II rowsort label-5408
SELECT + - SUM ( ALL + - 6 ) * ( - 70 ) AS col1, 23
----
-420
23

query I rowsort
SELECT - - 74 + 52 AS col0
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5410
SELECT - 43 / + + 75 - CAST( NULL AS SIGNED ) AS col2, ( + COALESCE ( + 36, + - NULLIF ( - 41, + 90 * 26 - 64 ) + - + COUNT( * ) ) ) + 91
----
NULL
127

skipif mysql # not compatible
query II rowsort label-5410
SELECT - 43 / + + 75 - CAST ( NULL AS INTEGER ) AS col2, ( + COALESCE ( + 36, + - NULLIF ( - 41, + 90 * 26 - 64 ) + - + COUNT ( * ) ) ) + 91
----
NULL
127

query I rowsort
SELECT ALL + 99 * + + 35 col1
----
3465

query II rowsort
SELECT 20 AS col2, 77 * - + 19 * + 35
----
20
-51205

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT DISTINCT - 23 * + - COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT - 23 * + - COUNT ( * ) AS col2
----
23

query I rowsort
SELECT - 40 - - - 29 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT ALL COALESCE ( - 23, COUNT( 19 ), + - 6 * 84 ) col1
----
-23

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL COALESCE ( - 23, COUNT ( 19 ), + - 6 * 84 ) col1
----
-23

query I rowsort
SELECT DISTINCT - NULLIF ( - - 99, + - 50 ) + + - 45 AS col1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT DISTINCT + MAX( DISTINCT - - 75 ) + 17
----
92

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT + MAX ( DISTINCT - - 75 ) + 17
----
92

query I rowsort
SELECT DISTINCT + ( ( - 51 ) ) * - 6 * + 59 AS col0
----
18054

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5419
SELECT DISTINCT + 76 DIV - 88 + MAX( + - 24 ) + - + MIN( DISTINCT - 21 ) DIV + COUNT( * ) + - 96 + + 74 AS col1, 25 AS col1
----
-25
25

skipif mysql # not compatible
query II rowsort label-5419
SELECT DISTINCT + 76 / - 88 + MAX ( + - 24 ) + - + MIN ( DISTINCT - 21 ) / + COUNT ( * ) + - 96 + + 74 AS col1, 25 AS col1
----
-25
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5420
SELECT DISTINCT - MIN( DISTINCT + 42 ) DIV + 13 + + COUNT( * ) * + 85 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT - MIN ( DISTINCT + 42 ) / + 13 + + COUNT ( * ) * + 85 AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5421
SELECT CAST( - ( + 74 ) AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-5421
SELECT CAST ( - ( + 74 ) AS INTEGER )
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5422
SELECT ALL - 59 DIV 71 + 55 + + 53 - + 18 + COUNT( 24 ) AS col0, + MAX( ALL - 92 )
----
91
-92

skipif mysql # not compatible
query II rowsort label-5422
SELECT ALL - 59 / 71 + 55 + + 53 - + 18 + COUNT ( 24 ) AS col0, + MAX ( ALL - 92 )
----
91
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT 43 * - 39 + - COUNT( * ) + NULLIF ( 36, - - 92 + - SUM( - 32 ) ) AS col0
----
-1642

skipif mysql # not compatible
query I rowsort label-5423
SELECT 43 * - 39 + - COUNT ( * ) + NULLIF ( 36, - - 92 + - SUM ( - 32 ) ) AS col0
----
-1642

query I rowsort
SELECT ( - - NULLIF ( + 9, + + 19 * + 63 ) ) AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5425
SELECT + COALESCE ( + - CASE - 58 WHEN + COUNT( * ) THEN NULL WHEN 60 * + COUNT( * ) THEN - CAST( NULL AS SIGNED ) DIV ( COUNT( ALL 15 ) ) * + - ( 33 ) + + 38 * 79 END, MAX( 29 ) * COALESCE ( - COUNT( DISTINCT 29 ) * 36, 59 ) ) DIV 53 + 10 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-5425
SELECT + COALESCE ( + - CASE - 58 WHEN + COUNT ( * ) THEN NULL WHEN 60 * + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) / ( COUNT ( ALL 15 ) ) * + - ( 33 ) + + 38 * 79 END, MAX ( 29 ) * COALESCE ( - COUNT ( DISTINCT 29 ) * 36, 59 ) ) / 53 + 10 AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5426
SELECT DISTINCT COUNT( * ) DIV - - 86 + 13 + COUNT( CAST( NULL AS SIGNED ) ) DIV + 57 * - + 10
----
13

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT COUNT ( * ) / - - 86 + 13 + COUNT ( CAST ( NULL AS INTEGER ) ) / + 57 * - + 10
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5427
SELECT ALL - 85 * 79 + - ( + 32 ), 6 - MIN( DISTINCT - 42 ) - 35 * + - CASE WHEN ( NULL ) IN ( - - COUNT( * ), 65 ) THEN - ( 36 ) * 54 END * 89 AS col0
----
-6747
NULL

skipif mysql # not compatible
query II rowsort label-5427
SELECT ALL - 85 * 79 + - ( + 32 ), 6 - MIN ( DISTINCT - 42 ) - 35 * + - CASE WHEN ( NULL ) IN ( - - COUNT ( * ), 65 ) THEN - ( 36 ) * 54 END * 89 AS col0
----
-6747
NULL

query I rowsort
SELECT + 16 + - 47
----
-31

query I rowsort
SELECT ALL 55 * 78 * + 13
----
55770

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT DISTINCT 17 * - COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT 17 * - COUNT ( * )
----
-17

query I rowsort
SELECT + + 94 * ( - 24 )
----
-2256

query I rowsort
SELECT ALL - 89 * - 75 + 39
----
6714

query I rowsort
SELECT + - ( 3 ) + 78 * - 44
----
-3435

query I rowsort
SELECT + 32 * - 85 + 75 AS col1
----
-2645

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5435
SELECT + + NULLIF ( 32, - 47 ) + MIN( DISTINCT NULLIF ( 20, - 59 + CAST( 36 AS DECIMAL ) + - 56 - 1 * + 13 ) )
----
52

skipif mysql # not compatible
query I rowsort label-5435
SELECT + + NULLIF ( 32, - 47 ) + MIN ( DISTINCT NULLIF ( 20, - 59 + CAST ( 36 AS REAL ) + - 56 - 1 * + 13 ) )
----
52

query I rowsort
SELECT + - 67 * + 16
----
-1072

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT MIN( ALL + 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-5437
SELECT MIN ( ALL + 93 ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT + 41 + COUNT( * ) + 60 * + + 20
----
1242

skipif mysql # not compatible
query I rowsort label-5438
SELECT + 41 + COUNT ( * ) + 60 * + + 20
----
1242

onlyif mysql # DIV for integer division: 
query I rowsort label-5439
SELECT ALL 11 + - 67 * 93 DIV - 93 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL 11 + - 67 * 93 / - 93 AS col1
----
78

query I rowsort
SELECT + 17 + - 62 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT - 23 - + + NULLIF ( - ( 22 ), + MIN( 37 ) + + 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-5441
SELECT - 23 - + + NULLIF ( - ( 22 ), + MIN ( 37 ) + + 17 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT ( - 42 ) + + CASE - MAX( ALL + 44 ) WHEN + 35 * + + 1 + + - COUNT( * ) + 59 * 33 THEN - + 24 + + + 80 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5442
SELECT ( - 42 ) + + CASE - MAX ( ALL + 44 ) WHEN + 35 * + + 1 + + - COUNT ( * ) + 59 * 33 THEN - + 24 + + + 80 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 73 + + 64
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5444
SELECT DISTINCT COALESCE ( 41, 18 * + CAST( NULL AS SIGNED ), - 63 ) + + 30
----
71

skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT COALESCE ( 41, 18 * + CAST ( NULL AS INTEGER ), - 63 ) + + 30
----
71

query I rowsort
SELECT ALL + 47 + + 13
----
60

query I rowsort
SELECT 45 + + 74 - - 58 + 82 col1
----
259

onlyif mysql # aggregate syntax: 
query II rowsort label-5447
SELECT 54 + - + MIN( + - 2 ) AS col2, - 20
----
56
-20

skipif mysql # not compatible
query II rowsort label-5447
SELECT 54 + - + MIN ( + - 2 ) AS col2, - 20
----
56
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT ALL - 74 + + MIN( ALL + 28 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL - 74 + + MIN ( ALL + 28 ) AS col0
----
-46

query I rowsort
SELECT 60 * - + 42 AS col2
----
-2520

onlyif mysql # aggregate syntax: 
query II rowsort label-5450
SELECT 35 * + COUNT( * ) * + 72 AS col1, - 74 AS col1
----
2520
-74

skipif mysql # not compatible
query II rowsort label-5450
SELECT 35 * + COUNT ( * ) * + 72 AS col1, - 74 AS col1
----
2520
-74

query I rowsort
SELECT + 1 * - 28 + - + 44 col0
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-5452
SELECT DISTINCT - COUNT( * ) col0, + COALESCE ( - 37, + 22 ) AS col0
----
-1
-37

skipif mysql # not compatible
query II rowsort label-5452
SELECT DISTINCT - COUNT ( * ) col0, + COALESCE ( - 37, + 22 ) AS col0
----
-1
-37

query I rowsort
SELECT DISTINCT + 29 + + 50
----
79

query I rowsort
SELECT ALL - 11 - 34
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5455
SELECT 60 * + - CAST( NULL AS SIGNED ) / - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT 60 * + - CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5456
SELECT ALL - 28 * + + CAST( - 37 AS SIGNED )
----
1036

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL - 28 * + + CAST ( - 37 AS INTEGER )
----
1036

query I rowsort
SELECT DISTINCT - + 43 - 0 * - - 95 col1
----
-43

query I rowsort
SELECT ALL - 84 - 52 + + 2 AS col0
----
-134

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5459
SELECT + - COUNT( * ), 73 DIV 38 + + - 65 AS col1
----
-1
-64

skipif mysql # not compatible
query II rowsort label-5459
SELECT + - COUNT ( * ), 73 / 38 + + - 65 AS col1
----
-1
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT DISTINCT - - ( COUNT( + 53 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT - - ( COUNT ( + 53 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5461
SELECT - CAST( - + 55 AS SIGNED ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-5461
SELECT - CAST ( - + 55 AS INTEGER ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5462
SELECT ALL - 99, ( 52 ) * - ( COUNT( * ) ) * - 88 + - + 4 * + 0 + MIN( ALL 82 ) + + + COALESCE ( - + 26, COUNT( * ) * - 3 + - COUNT( * ), + 71 ) AS col2
----
-99
4632

skipif mysql # not compatible
query II rowsort label-5462
SELECT ALL - 99, ( 52 ) * - ( COUNT ( * ) ) * - 88 + - + 4 * + 0 + MIN ( ALL 82 ) + + + COALESCE ( - + 26, COUNT ( * ) * - 3 + - COUNT ( * ), + 71 ) AS col2
----
-99
4632

query I rowsort
SELECT 2 * - 19
----
-38

query I rowsort
SELECT DISTINCT - + ( - - ( + + 56 ) ) AS col0
----
-56

query II rowsort
SELECT + 29 AS col2, 80 * - + 52
----
29
-4160

query I rowsort
SELECT ALL 46 * - + 30
----
-1380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5467
SELECT ALL - 77 * + CAST( 24 AS SIGNED ) DIV COUNT( * ) + 78 - + 9 DIV - - 11 * + 49 * + 70 + + 3 - - 95, 66 AS col0
----
-1672
66

skipif mysql # not compatible
query II rowsort label-5467
SELECT ALL - 77 * + CAST ( 24 AS INTEGER ) / COUNT ( * ) + 78 - + 9 / - - 11 * + 49 * + 70 + + 3 - - 95, 66 AS col0
----
-1672
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT ALL - ( NULLIF ( COUNT( * ), 26 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL - ( NULLIF ( COUNT ( * ), 26 ) )
----
-1

query I rowsort
SELECT ALL - - 25 * + 71
----
1775

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5470
SELECT + 52 DIV - + NULLIF ( - 39, - - CAST( 91 AS SIGNED ) * - 84 )
----
1

skipif mysql # not compatible
query I rowsort label-5470
SELECT + 52 / - + NULLIF ( - 39, - - CAST ( 91 AS INTEGER ) * - 84 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT DISTINCT COUNT( * ) * + - 24 col1
----
-24

skipif mysql # not compatible
query I rowsort label-5471
SELECT DISTINCT COUNT ( * ) * + - 24 col1
----
-24

query I rowsort
SELECT ALL ( - 26 ) + ( 32 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT DISTINCT MAX( DISTINCT - - 89 ) + + - 39 col0
----
50

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT MAX ( DISTINCT - - 89 ) + + - 39 col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5474
SELECT DISTINCT 70 + + 11 * + + 43 * + CASE 89 WHEN + + 90 THEN + + 65 + + COUNT( * ) ELSE 56 + COUNT( * ) DIV 92 * - 28 * - 59 END
----
26558

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT 70 + + 11 * + + 43 * + CASE 89 WHEN + + 90 THEN + + 65 + + COUNT ( * ) ELSE 56 + COUNT ( * ) / 92 * - 28 * - 59 END
----
26558

onlyif mysql # aggregate syntax: 
query II rowsort label-5475
SELECT ALL 9 AS col0, - COUNT( * ) AS col0
----
9
-1

skipif mysql # not compatible
query II rowsort label-5475
SELECT ALL 9 AS col0, - COUNT ( * ) AS col0
----
9
-1

query I rowsort
SELECT 19 * - - 4
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5477
SELECT 55 + - + 33 DIV - + 82 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-5477
SELECT 55 + - + 33 / - + 82 AS col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5478
SELECT 75 AS col1, + COUNT( ALL - 71 ) * - COUNT( * ) * - 14 AS col2
----
75
14

skipif mysql # not compatible
query II rowsort label-5478
SELECT 75 AS col1, + COUNT ( ALL - 71 ) * - COUNT ( * ) * - 14 AS col2
----
75
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT ALL 69 + - 27 * + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL 69 + - 27 * + COUNT ( * )
----
42

query II rowsort
SELECT - 76 AS col2, + 46
----
-76
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5481
SELECT ALL COUNT( * ) * + CAST( NULL AS SIGNED ) * 76 * 81 * COUNT( * ) * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 76 * 81 * COUNT ( * ) * + 91
----
NULL

query I rowsort
SELECT 35 - 57
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT 70 * COUNT( * ) * - + 70 AS col1
----
-4900

skipif mysql # not compatible
query I rowsort label-5483
SELECT 70 * COUNT ( * ) * - + 70 AS col1
----
-4900

query I rowsort
SELECT ALL 15 - + 79 + - 5 AS col1
----
-69

query II rowsort
SELECT - 43 AS col1, 15
----
-43
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT COUNT( 85 ) * - 81 * + 50 AS col0
----
-4050

skipif mysql # not compatible
query I rowsort label-5486
SELECT COUNT ( 85 ) * - 81 * + 50 AS col0
----
-4050

query I rowsort
SELECT DISTINCT 20 * - 37
----
-740

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5488
SELECT + 51, ( - CASE - - 60 WHEN + CASE - + 97 WHEN - 36 - COUNT( * ) * + 9 / COUNT( * ) THEN NULL WHEN + - 95 THEN - ( - + 4 ) + - + 34 + - - 24 * - 29 END / + 85 THEN 42 * 12 + - 16 WHEN + COALESCE ( - 71, + 83 + - 69 * - 83, 42 * - 36 ) THEN NULL WHEN 24 * - COUNT( * ) - COUNT( * ) THEN + COUNT( * ) END ) * - MIN( + 58 * CAST( NULL AS DECIMAL ) ) AS col0
----
51
NULL

skipif mysql # not compatible
query II rowsort label-5488
SELECT + 51, ( - CASE - - 60 WHEN + CASE - + 97 WHEN - 36 - COUNT ( * ) * + 9 / COUNT ( * ) THEN NULL WHEN + - 95 THEN - ( - + 4 ) + - + 34 + - - 24 * - 29 END / + 85 THEN 42 * 12 + - 16 WHEN + COALESCE ( - 71, + 83 + - 69 * - 83, 42 * - 36 ) THEN NULL WHEN 24 * - COUNT ( * ) - COUNT ( * ) THEN + COUNT ( * ) END ) * - MIN ( + 58 * CAST ( NULL AS REAL ) ) AS col0
----
51
NULL

query II rowsort
SELECT ALL - - 77 AS col0, 71 AS col1
----
77
71

query I rowsort
SELECT 24 * - COALESCE ( + 19, - 75 ) AS col0
----
-456

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT + SUM( - + 9 ) * 27 * 73 * 85 + - - 68
----
-1507747

skipif mysql # not compatible
query I rowsort label-5491
SELECT + SUM ( - + 9 ) * 27 * 73 * 85 + - - 68
----
-1507747

onlyif mysql # DIV for integer division: 
query I rowsort label-5492
SELECT - 34 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-5492
SELECT - 34 / + 69
----
0

query II rowsort
SELECT 57 * - + 6 AS col2, 72 * - + 9 - - + 35 AS col2
----
-342
-613

query I rowsort
SELECT ( + ( + 56 ) ) * + + 95 * 78
----
414960

onlyif mysql # aggregate syntax: 
query II rowsort label-5495
SELECT ALL - COUNT( * ), - 27 AS col0
----
-1
-27

skipif mysql # not compatible
query II rowsort label-5495
SELECT ALL - COUNT ( * ), - 27 AS col0
----
-1
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT DISTINCT - + 90 * COUNT( * ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-5496
SELECT DISTINCT - + 90 * COUNT ( * ) AS col2
----
-90

query I rowsort
SELECT ALL - - 73 * + 54 - - - 39 + - + 69 - - 97 * - 2 * 30 AS col2
----
-1986

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5498
SELECT 27 * 50 AS col2, CAST( NULL AS DECIMAL ) - 21
----
1350
NULL

skipif mysql # not compatible
query II rowsort label-5498
SELECT 27 * 50 AS col2, CAST ( NULL AS REAL ) - 21
----
1350
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5499
SELECT DISTINCT - 14 AS col2, - 41 * + 95 * - - COUNT( * ) * + + 64
----
-14
-249280

skipif mysql # not compatible
query II rowsort label-5499
SELECT DISTINCT - 14 AS col2, - 41 * + 95 * - - COUNT ( * ) * + + 64
----
-14
-249280

query I rowsort
SELECT DISTINCT - - 23 * - + 19
----
-437

query I rowsort
SELECT ALL + - 61 + 54 AS col1
----
-7

query II rowsort
SELECT + 9, + ( + 80 ) AS col1
----
9
80

query I rowsort
SELECT ALL - 45 + - - 53 AS col1
----
8

query II rowsort
SELECT 6 + 61 + 15 * - 7 AS col2, 65 * + ( + - 81 )
----
-38
-5265

query I rowsort
SELECT + 59 * - ( + + 18 )
----
-1062

query III rowsort
SELECT 51 AS col1, - 48, + + NULLIF ( 34, - 24 ) AS col2
----
51
-48
34

query I rowsort
SELECT ALL - 73 + 69
----
-4

query I rowsort
SELECT ALL + CASE - 70 WHEN + 55 + - - 90 THEN + + 76 WHEN COALESCE ( - 73, + 13 ) THEN NULL ELSE CASE 41 WHEN + 11 * + ( - + 91 ) THEN NULL ELSE 24 END END AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT DISTINCT - MAX( DISTINCT - 5 ) + 0 - + + ( 52 ) * 15
----
-775

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT - MAX ( DISTINCT - 5 ) + 0 - + + ( 52 ) * 15
----
-775

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT DISTINCT ( + - ( - 66 ) ) * + CASE - 62 WHEN - 99 THEN + COUNT( ( - + 6 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT ( + - ( - 66 ) ) * + CASE - 62 WHEN - 99 THEN + COUNT ( ( - + 6 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT ALL 82 + - + COUNT( * ) + + 38 * - 16
----
-527

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL 82 + - + COUNT ( * ) + + 38 * - 16
----
-527

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5512
SELECT COUNT( * ) * CAST( - ( - + 53 ) AS SIGNED ) * - 79 - + - 14
----
-4173

skipif mysql # not compatible
query I rowsort label-5512
SELECT COUNT ( * ) * CAST ( - ( - + 53 ) AS INTEGER ) * - 79 - + - 14
----
-4173

query I rowsort
SELECT ALL - ( + + 95 ) + - + 29 + - 11
----
-135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5514
SELECT ALL + COUNT( * ) DIV - - 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL + COUNT ( * ) / - - 26 AS col2
----
0

query I rowsort
SELECT ALL 75 * - + 40
----
-3000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 68 * + + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 68 * + + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT ALL - COUNT( * ) + ( + 32 )
----
31

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL - COUNT ( * ) + ( + 32 )
----
31

query I rowsort
SELECT - 51 + + 81 AS col2
----
30

query I rowsort
SELECT + NULLIF ( + 95, - 13 * + + 57 ) - - 90 col2
----
185

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5520
SELECT - 4 + CAST( NULL AS DECIMAL ) * 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5520
SELECT - 4 + CAST ( NULL AS REAL ) * 17 AS col0
----
NULL

query II rowsort
SELECT + 21 * + + 86 AS col1, + ( + 14 ) AS col2
----
1806
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT - MIN( ALL 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-5522
SELECT - MIN ( ALL 61 )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5523
SELECT + CAST( SUM( ALL - - 48 ) AS SIGNED ) + - 77
----
-29

skipif mysql # not compatible
query I rowsort label-5523
SELECT + CAST ( SUM ( ALL - - 48 ) AS INTEGER ) + - 77
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-5524
SELECT DISTINCT - COUNT( * ) - - 74 AS col0, + 88 AS col0
----
73
88

skipif mysql # not compatible
query II rowsort label-5524
SELECT DISTINCT - COUNT ( * ) - - 74 AS col0, + 88 AS col0
----
73
88

onlyif mysql # aggregate syntax: 
query II rowsort label-5525
SELECT ALL MIN( ALL ( + 81 ) ) col2, 35 * - 81 * + 97 + - + 70 AS col2
----
81
-275065

skipif mysql # not compatible
query II rowsort label-5525
SELECT ALL MIN ( ALL ( + 81 ) ) col2, 35 * - 81 * + 97 + - + 70 AS col2
----
81
-275065

query I rowsort
SELECT + 5 * - - 42 AS col2
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT + - COUNT( * ) + - 55 * - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-5527
SELECT + - COUNT ( * ) + - 55 * - COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT DISTINCT + COALESCE ( + 93, ( 68 ) * + ( - 13 ) + - 58 * 9 * + - COUNT( * ) + 61, - - MAX( - - ( + + 56 ) ) * COALESCE ( - 12, - ( 12 ) + - 5 * ( - 0 ) ) ) * 5
----
465

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT + COALESCE ( + 93, ( 68 ) * + ( - 13 ) + - 58 * 9 * + - COUNT ( * ) + 61, - - MAX ( - - ( + + 56 ) ) * COALESCE ( - 12, - ( 12 ) + - 5 * ( - 0 ) ) ) * 5
----
465

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT + SUM( + 10 ) col1
----
10

skipif mysql # not compatible
query I rowsort label-5529
SELECT + SUM ( + 10 ) col1
----
10

query I rowsort
SELECT ALL - 1 * 1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5531
SELECT - - 90 * - CAST( + 97 AS SIGNED ) * - 43
----
375390

skipif mysql # not compatible
query I rowsort label-5531
SELECT - - 90 * - CAST ( + 97 AS INTEGER ) * - 43
----
375390

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT ALL - 29 * - - COALESCE ( - 18, + + COUNT( * ) + + + 67 ) + + - 99 col2
----
423

skipif mysql # not compatible
query I rowsort label-5532
SELECT ALL - 29 * - - COALESCE ( - 18, + + COUNT ( * ) + + + 67 ) + + - 99 col2
----
423

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5533
SELECT ALL + 21 * - + 20 + 73 + - 6 + + 71 + ( + 51 ) DIV COUNT( * ) * - - 62
----
2880

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL + 21 * - + 20 + 73 + - 6 + + 71 + ( + 51 ) / COUNT ( * ) * - - 62
----
2880

query I rowsort
SELECT NULLIF ( 33, 19 ) * + + 11 * - 56 + + - 14 AS col2
----
-20342

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT DISTINCT + 42 * - + COUNT( * ) + - 45
----
-87

skipif mysql # not compatible
query I rowsort label-5535
SELECT DISTINCT + 42 * - + COUNT ( * ) + - 45
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5536
SELECT - 21 * - - 49 * - 64 + + 83 + + 8 * + + NULLIF ( - 21, + - 52 + - - 1 ) + - - SUM( ALL - CAST( NULL AS SIGNED ) ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5536
SELECT - 21 * - - 49 * - 64 + + 83 + + 8 * + + NULLIF ( - 21, + - 52 + - - 1 ) + - - SUM ( ALL - CAST ( NULL AS INTEGER ) ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT + 65 * + 86
----
5590

onlyif mysql # DIV for integer division: 
query I rowsort label-5538
SELECT - + 28 * + 52 + 6 DIV - 10 AS col0
----
-1456

skipif mysql # not compatible
query I rowsort label-5538
SELECT - + 28 * + 52 + 6 / - 10 AS col0
----
-1456

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5539
SELECT - + 63 + - + 96 AS col1, - COUNT( * ) DIV + - 20 * + - MAX( ALL 76 ) * + NULLIF ( + COUNT( * ), 35 + - - 32 + + ( COUNT( COALESCE ( 19, 15, + CAST( - 71 AS DECIMAL ) - - 92 ) ) ) ) + - 78
----
-159
-78

skipif mysql # not compatible
query II rowsort label-5539
SELECT - + 63 + - + 96 AS col1, - COUNT ( * ) / + - 20 * + - MAX ( ALL 76 ) * + NULLIF ( + COUNT ( * ), 35 + - - 32 + + ( COUNT ( COALESCE ( 19, 15, + CAST ( - 71 AS REAL ) - - 92 ) ) ) ) + - 78
----
-159
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5540
SELECT DISTINCT + 13 * - COUNT( 61 ) * - 38 * - 45 - + CAST( NULL AS SIGNED ) / - - 51 * COALESCE ( - + 30, - 48 + ( - 54 ) + + + 94 ) + - + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-5540
SELECT DISTINCT + 13 * - COUNT ( 61 ) * - 38 * - 45 - + CAST ( NULL AS INTEGER ) / - - 51 * COALESCE ( - + 30, - 48 + ( - 54 ) + + + 94 ) + - + 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5541
SELECT - + COALESCE ( - 82, - 56 + - COALESCE ( - CASE 81 WHEN + CAST( NULL AS SIGNED ) + + + COALESCE ( + - 35, - ( + + 22 ) * COUNT( * ) ) * - 10 + - 49 + - 45 * 34 + 53 THEN - 46 * COUNT( * ) ELSE NULL END, - 92 * - 56 ) ) * + 24 AS col2
----
1968

skipif mysql # not compatible
query I rowsort label-5541
SELECT - + COALESCE ( - 82, - 56 + - COALESCE ( - CASE 81 WHEN + CAST ( NULL AS INTEGER ) + + + COALESCE ( + - 35, - ( + + 22 ) * COUNT ( * ) ) * - 10 + - 49 + - 45 * 34 + 53 THEN - 46 * COUNT ( * ) ELSE NULL END, - 92 * - 56 ) ) * + 24 AS col2
----
1968

query I rowsort
SELECT + 41 * + 14 + 78 col2
----
652

query I rowsort
SELECT - 11 + 99
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-5544
SELECT ALL + 14 * COALESCE ( + + ( 20 ), + + COUNT( DISTINCT 7 ) ) AS col1, 57 + 6 AS col0
----
280
63

skipif mysql # not compatible
query II rowsort label-5544
SELECT ALL + 14 * COALESCE ( + + ( 20 ), + + COUNT ( DISTINCT 7 ) ) AS col1, 57 + 6 AS col0
----
280
63

query I rowsort
SELECT - 88 + - ( - - ( + + 33 ) ) AS col0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT ALL + 83 * + 52 + + + COUNT( * ) * 67 AS col0
----
4383

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL + 83 * + 52 + + + COUNT ( * ) * 67 AS col0
----
4383

query I rowsort
SELECT DISTINCT + 5 * + 45 AS col2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT DISTINCT + 33 * - COUNT( * ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-5548
SELECT DISTINCT + 33 * - COUNT ( * ) AS col0
----
-33

query I rowsort
SELECT ALL + ( + 79 ) col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5550
SELECT DISTINCT CAST( NULL AS SIGNED ), 17 * + 16 * - 25 AS col1
----
NULL
-6800

skipif mysql # not compatible
query II rowsort label-5550
SELECT DISTINCT CAST ( NULL AS INTEGER ), 17 * + 16 * - 25 AS col1
----
NULL
-6800

query II rowsort
SELECT - 52 * + 84 * - + ( 89 ), + 15 AS col0
----
388752
15

query I rowsort
SELECT + 77 * 45 + + + 83
----
3548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5553
SELECT DISTINCT ( - - ( - 39 ) ) AS col2, CAST( COUNT( * ) AS SIGNED )
----
-39
1

skipif mysql # not compatible
query II rowsort label-5553
SELECT DISTINCT ( - - ( - 39 ) ) AS col2, CAST ( COUNT ( * ) AS INTEGER )
----
-39
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5554
SELECT - CASE + ( + CAST( NULL AS SIGNED ) ) WHEN - - 15 + + 59 THEN NULL WHEN + 62 * 20 + COUNT( * ) - + - SUM( ALL - + 21 ) + - 32 THEN + - 11 + - + 30 ELSE NULL END * 5 * 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5554
SELECT - CASE + ( + CAST ( NULL AS INTEGER ) ) WHEN - - 15 + + 59 THEN NULL WHEN + 62 * 20 + COUNT ( * ) - + - SUM ( ALL - + 21 ) + - 32 THEN + - 11 + - + 30 ELSE NULL END * 5 * 25 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5555
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) col2
----
1

query I rowsort
SELECT DISTINCT CASE - - 41 WHEN 4 THEN - 77 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT ALL COALESCE ( + 4, + 10, COUNT( + 71 ) )
----
4

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL COALESCE ( + 4, + 10, COUNT ( + 71 ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT ALL MIN( - 3 ) * - 23
----
69

skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL MIN ( - 3 ) * - 23
----
69

query I rowsort
SELECT ALL + 80 - - + 64
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-5560
SELECT DISTINCT + 71 DIV + - ( - 85 )
----
0

skipif mysql # not compatible
query I rowsort label-5560
SELECT DISTINCT + 71 / + - ( - 85 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5561
SELECT + CAST( NULL AS SIGNED ) * + 0 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5561
SELECT + CAST ( NULL AS INTEGER ) * + 0 col1
----
NULL

query I rowsort
SELECT - ( + 8 ) - + ( - - 1 )
----
-9

query I rowsort
SELECT - - 16 - + 42 + + + 14 * + + 6
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT ALL - COUNT( * ) * + 43 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL - COUNT ( * ) * + 43 AS col1
----
-43

query I rowsort
SELECT - + 41 + + + 0
----
-41

query I rowsort
SELECT + + 36 * - 95 AS col1
----
-3420

query I rowsort
SELECT DISTINCT 95 + - + 90
----
5

query II rowsort
SELECT + 36 AS col2, 12 AS col1
----
36
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT ALL + 44 * - + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL + 44 * - + COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT ALL ( + 91 ) + - 5 + - MIN( - + 71 ) + + COALESCE ( - 58, - 83 + - 91 ) + - + 53
----
46

skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL ( + 91 ) + - 5 + - MIN ( - + 71 ) + + COALESCE ( - 58, - 83 + - 91 ) + - + 53
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT + SUM( - - 84 ) - - 18
----
102

skipif mysql # not compatible
query I rowsort label-5571
SELECT + SUM ( - - 84 ) - - 18
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT ALL + MIN( DISTINCT - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL + MIN ( DISTINCT - 3 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT MAX( DISTINCT - + 75 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-5573
SELECT MAX ( DISTINCT - + 75 ) AS col1
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5574
SELECT DISTINCT MIN( - + ( + 74 ) ) DIV MIN( - + 81 ) + - 87 + - COUNT( * ) * + ( 9 )
----
-96

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT MIN ( - + ( + 74 ) ) / MIN ( - + 81 ) + - 87 + - COUNT ( * ) * + ( 9 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT ALL + 89 * + COUNT( * ) * + 79 * + 48 AS col0
----
337488

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL + 89 * + COUNT ( * ) * + 79 * + 48 AS col0
----
337488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5576
SELECT ALL + + COUNT( * ) / - 44 * CASE + - 83 WHEN + - 83 + - + 83 - 27 THEN MIN( ALL 7 ) * - + COUNT( * ) - - 62 END + + ( - - 37 ) + + + 34 - + - 90 / + + CAST( 30 AS SIGNED ) / COUNT( * ) + 26 - 1 * 96 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL + + COUNT ( * ) / - 44 * CASE + - 83 WHEN + - 83 + - + 83 - 27 THEN MIN ( ALL 7 ) * - + COUNT ( * ) - - 62 END + + ( - - 37 ) + + + 34 - + - 90 / + + CAST ( 30 AS INTEGER ) / COUNT ( * ) + 26 - 1 * 96 col0
----
NULL

query I rowsort
SELECT - - 14 + - 15 AS col1
----
-1

query I rowsort
SELECT - + 38 * 26 + + 66
----
-922

query I rowsort
SELECT + 32 * + 17
----
544

query I rowsort
SELECT ALL + 29 * - ( - - 39 ) * - 66 * + 97
----
7240662

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5581
SELECT 6 col0, - CAST( NULL AS DECIMAL ) AS col2
----
6
NULL

skipif mysql # not compatible
query II rowsort label-5581
SELECT 6 col0, - CAST ( NULL AS REAL ) AS col2
----
6
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5582
SELECT 33 DIV MIN( ALL 15 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5582
SELECT 33 / MIN ( ALL 15 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5583
SELECT 59 * 0 - + COUNT( * ), 55 AS col1
----
-1
55

skipif mysql # not compatible
query II rowsort label-5583
SELECT 59 * 0 - + COUNT ( * ), 55 AS col1
----
-1
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5584
SELECT + - 36 AS col1, 15 * + - COUNT( * ) - - CAST( - 24 AS SIGNED ) - - + CAST( + COALESCE ( - - COUNT( * ), + - 87 ) AS SIGNED ) + ( 39 ) * 59 AS col0
----
-36
2263

skipif mysql # not compatible
query II rowsort label-5584
SELECT + - 36 AS col1, 15 * + - COUNT ( * ) - - CAST ( - 24 AS INTEGER ) - - + CAST ( + COALESCE ( - - COUNT ( * ), + - 87 ) AS INTEGER ) + ( 39 ) * 59 AS col0
----
-36
2263

query II rowsort
SELECT ALL 24 + + 4 * 33 col1, - 18 AS col0
----
156
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT ALL COUNT( * ) + 33 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL COUNT ( * ) + 33 AS col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5587
SELECT - CAST( + 23 AS SIGNED ) * + 92
----
-2116

skipif mysql # not compatible
query I rowsort label-5587
SELECT - CAST ( + 23 AS INTEGER ) * + 92
----
-2116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5588
SELECT 12 DIV COUNT( * ) * + 24 + + + 13 * + COALESCE ( + 68, + 37 ) - + + ( - 41 )
----
1213

skipif mysql # not compatible
query I rowsort label-5588
SELECT 12 / COUNT ( * ) * + 24 + + + 13 * + COALESCE ( + 68, + 37 ) - + + ( - 41 )
----
1213

query I rowsort
SELECT 54 * 65 AS col2
----
3510

query I rowsort
SELECT 47 * + - 86 + + + 59 AS col1
----
-3983

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT NULLIF ( - 58, + - COUNT( * ) * - - 71 * + 43 ) + + 71 col0
----
13

skipif mysql # not compatible
query I rowsort label-5591
SELECT NULLIF ( - 58, + - COUNT ( * ) * - - 71 * + 43 ) + + 71 col0
----
13

query I rowsort
SELECT ALL 40 - 51
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-5593
SELECT ALL - 56 DIV - + 91
----
0

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL - 56 / - + 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT ALL + 84 * 45 * - + COUNT( DISTINCT - + 28 )
----
-3780

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL + 84 * 45 * - + COUNT ( DISTINCT - + 28 )
----
-3780

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5595
SELECT CAST( 32 AS SIGNED ) - + - 74 * - 44 * + 76 col0, 11
----
-247424
11

skipif mysql # not compatible
query II rowsort label-5595
SELECT CAST ( 32 AS INTEGER ) - + - 74 * - 44 * + 76 col0, 11
----
-247424
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5596
SELECT ALL 39 * - + MIN( ALL CAST( - - 0 AS SIGNED ) ) AS col1, COUNT( * ) + SUM( + + COALESCE ( - ( + + 95 ), + 11 ) ) AS col0
----
0
-94

skipif mysql # not compatible
query II rowsort label-5596
SELECT ALL 39 * - + MIN ( ALL CAST ( - - 0 AS INTEGER ) ) AS col1, COUNT ( * ) + SUM ( + + COALESCE ( - ( + + 95 ), + 11 ) ) AS col0
----
0
-94

query I rowsort
SELECT ALL + 57 * - 92 AS col0
----
-5244

query I rowsort
SELECT 79 + - 22 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT ALL + 84 * - - MIN( DISTINCT + 3 ) AS col2
----
252

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL + 84 * - - MIN ( DISTINCT + 3 ) AS col2
----
252

query I rowsort
SELECT 86 * - + 52 * - 4 * 64 col0
----
1144832

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT MAX( DISTINCT + ( - 59 ) ) + 87
----
28

skipif mysql # not compatible
query I rowsort label-5601
SELECT MAX ( DISTINCT + ( - 59 ) ) + 87
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT 69 + + CASE COUNT( * ) WHEN - 3 * + - 40 THEN - + 60 * - 75 - - COUNT( * ) WHEN + 50 THEN - 5 + - - ( + + ( + - 99 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5602
SELECT 69 + + CASE COUNT ( * ) WHEN - 3 * + - 40 THEN - + 60 * - 75 - - COUNT ( * ) WHEN + 50 THEN - 5 + - - ( + + ( + - 99 ) ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5603
SELECT 75 DIV 55 * ( + + ( - - 54 ) ) DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-5603
SELECT 75 / 55 * ( + + ( - - 54 ) ) / 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT 22 + - - COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-5604
SELECT 22 + - - COUNT ( * ) AS col2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5605
SELECT - 44 DIV + 6 - ( COUNT( * ) ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-5605
SELECT - 44 / + 6 - ( COUNT ( * ) ) AS col0
----
-8

query I rowsort
SELECT 2 + - 23 + 52
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT DISTINCT + + COUNT( * ) + 51 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-5607
SELECT DISTINCT + + COUNT ( * ) + 51 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT ALL - COALESCE ( + SUM( DISTINCT 25 ), 18 ) + + 94
----
69

skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL - COALESCE ( + SUM ( DISTINCT 25 ), 18 ) + + 94
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT + MIN( ALL - 77 ) + - - 46 - + 45 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-5609
SELECT + MIN ( ALL - 77 ) + - - 46 - + 45 AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT ALL + - MIN( ALL + 40 ) + - COALESCE ( + 68, + 25 ) AS col1
----
-108

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL + - MIN ( ALL + 40 ) + - COALESCE ( + 68, + 25 ) AS col1
----
-108

query I rowsort
SELECT 12 + 2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5612
SELECT + 47 DIV + 62 + - 35
----
-35

skipif mysql # not compatible
query I rowsort label-5612
SELECT + 47 / + 62 + - 35
----
-35

query I rowsort
SELECT 71 + - - 47
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT DISTINCT + - 4 * MIN( ( 25 ) ) AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT + - 4 * MIN ( ( 25 ) ) AS col2
----
-100

query I rowsort
SELECT ALL 13 - - - 83 AS col0
----
-70

query II rowsort
SELECT ALL - + ( - + 51 ) AS col0, + ( + 33 ) AS col2
----
51
33

query I rowsort
SELECT + 96 * 33 - - 44
----
3212

onlyif mysql # aggregate syntax: 
query II rowsort label-5618
SELECT - 70 * - 20 + + + COALESCE ( + 14, + 9 ) AS col0, + 82 * + 65 / + + ( 19 ) * + 45 * 93 + - 91 * + 35 / - + 20 * + NULLIF ( + - NULLIF ( + - COUNT( * ), + COUNT( * ) ), + COUNT( * ) ) - + 72
----
1414
NULL

skipif mysql # not compatible
query II rowsort label-5618
SELECT - 70 * - 20 + + + COALESCE ( + 14, + 9 ) AS col0, + 82 * + 65 / + + ( 19 ) * + 45 * 93 + - 91 * + 35 / - + 20 * + NULLIF ( + - NULLIF ( + - COUNT ( * ), + COUNT ( * ) ), + COUNT ( * ) ) - + 72
----
1414
NULL

query II rowsort
SELECT DISTINCT - 93, - 15 - + ( - 35 ) AS col1
----
-93
20

query II rowsort
SELECT 64 * ( 75 ) AS col2, 36 AS col2
----
4800
36

query I rowsort
SELECT 70 + - 25 + - 52
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT + SUM( DISTINCT - 62 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-5622
SELECT + SUM ( DISTINCT - 62 ) AS col2
----
-62

query I rowsort
SELECT DISTINCT 58 * + 8
----
464

onlyif mysql # aggregate syntax: 
query II rowsort label-5624
SELECT ALL 93 * + 48 * 18 * - + COUNT( DISTINCT 72 ) col0, - 85
----
-80352
-85

skipif mysql # not compatible
query II rowsort label-5624
SELECT ALL 93 * + 48 * 18 * - + COUNT ( DISTINCT 72 ) col0, - 85
----
-80352
-85

query I rowsort
SELECT 79 * + 39 AS col1
----
3081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5626
SELECT + 31 * + CAST( NULL AS SIGNED ) + - 73 - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5626
SELECT + 31 * + CAST ( NULL AS INTEGER ) + - 73 - + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5627
SELECT 98 DIV + 41 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5627
SELECT 98 / + 41 AS col2
----
2

query I rowsort
SELECT ALL 9 + 13 AS col1
----
22

query I rowsort
SELECT 69 * 60
----
4140

query I rowsort
SELECT 5 + 98 AS col0
----
103

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5631
SELECT CAST( 90 AS SIGNED ) * 72 + 80 DIV 81 * - 21
----
6480

skipif mysql # not compatible
query I rowsort label-5631
SELECT CAST ( 90 AS INTEGER ) * 72 + 80 / 81 * - 21
----
6480

onlyif mysql # DIV for integer division: 
query I rowsort label-5632
SELECT ALL COALESCE ( 94, + 81 - 54 DIV - 48 ) + + 43
----
137

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL COALESCE ( 94, + 81 - 54 / - 48 ) + + 43
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT - COUNT( + 12 )
----
-1

skipif mysql # not compatible
query I rowsort label-5633
SELECT - COUNT ( + 12 )
----
-1

query I rowsort
SELECT ALL + NULLIF ( + + 12, + - 7 ) + COALESCE ( - 2, NULLIF ( + 48, + ( - 70 ) ) ) AS col1
----
10

query I rowsort
SELECT DISTINCT + ( + CASE + + 16 WHEN + 8 THEN NULL ELSE + - 35 END ) AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5636
SELECT ALL - NULLIF ( + 69, 68 ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL - NULLIF ( + 69, 68 ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT ALL COALESCE ( - 30, - - 3 * - COUNT( * ) + COUNT( DISTINCT - 5 ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL COALESCE ( - 30, - - 3 * - COUNT ( * ) + COUNT ( DISTINCT - 5 ) ) AS col1
----
-30

query I rowsort
SELECT DISTINCT - + 81 + - 93 AS col0
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5639
SELECT - 17 - - 42 + + 68 + + + 47 / ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT - 17 - - 42 + + 68 + + + 47 / ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT - SUM( - - 1 ) * COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5640
SELECT - SUM ( - - 1 ) * COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT ALL - 62 * 15 col1
----
-930

query I rowsort
SELECT - - 76 + - 18 AS col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5643
SELECT DISTINCT COUNT( * ), - 70 * + 79 col2
----
1
-5530

skipif mysql # not compatible
query II rowsort label-5643
SELECT DISTINCT COUNT ( * ), - 70 * + 79 col2
----
1
-5530

query I rowsort
SELECT ALL - 12 - - - 32
----
-44

query I rowsort
SELECT ( + NULLIF ( + 99, + 57 + - 59 ) )
----
99

query I rowsort
SELECT ALL - + 39 * + 70 AS col1
----
-2730

onlyif mysql # DIV for integer division: 
query I rowsort label-5647
SELECT ALL - 35 DIV 40 * - 4
----
0

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL - 35 / 40 * - 4
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT DISTINCT 29 * - COUNT( * ) * + - 3 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-5648
SELECT DISTINCT 29 * - COUNT ( * ) * + - 3 AS col1
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5649
SELECT DISTINCT - COALESCE ( + 59, - + 84 ) DIV - - 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5649
SELECT DISTINCT - COALESCE ( + 59, - + 84 ) / - - 69 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5650
SELECT - COUNT( * ) + 70 + + + 91 * 57 * - 67 * + NULLIF ( + - 53, + COUNT( * ) ), 15 AS col1
----
18419106
15

skipif mysql # not compatible
query II rowsort label-5650
SELECT - COUNT ( * ) + 70 + + + 91 * 57 * - 67 * + NULLIF ( + - 53, + COUNT ( * ) ), 15 AS col1
----
18419106
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5651
SELECT ALL + 56 * COUNT( * ) DIV - MAX( - 66 )
----
0

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL + 56 * COUNT ( * ) / - MAX ( - 66 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT MAX( 18 ) * + 22 + + 0
----
396

skipif mysql # not compatible
query I rowsort label-5652
SELECT MAX ( 18 ) * + 22 + + 0
----
396

query I rowsort
SELECT + 93 - 97 col1
----
-4

query I rowsort
SELECT NULLIF ( + NULLIF ( - 30, + ( + + 14 ) ), 62 )
----
-30

query I rowsort
SELECT ALL - 84 * + ( - - 38 )
----
-3192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5656
SELECT ALL + CAST( + 21 AS SIGNED ) * 83
----
1743

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL + CAST ( + 21 AS INTEGER ) * 83
----
1743

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5657
SELECT DISTINCT 52 * + 54 + + CAST( NULL AS SIGNED ) + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT 52 * + 54 + + CAST ( NULL AS INTEGER ) + 15 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5658
SELECT ALL + 5 AS col0, MAX( + + 33 ) + + - CASE 91 WHEN + + 7 THEN NULL WHEN - + 36 THEN + - 72 END + + ( + COUNT( * ) ) * ( 40 ) * - 34
----
5
NULL

skipif mysql # not compatible
query II rowsort label-5658
SELECT ALL + 5 AS col0, MAX ( + + 33 ) + + - CASE 91 WHEN + + 7 THEN NULL WHEN - + 36 THEN + - 72 END + + ( + COUNT ( * ) ) * ( 40 ) * - 34
----
5
NULL

query II rowsort
SELECT ALL + 50 AS col2, - 98
----
50
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-5660
SELECT + 25 AS col0, 92 - - - MIN( DISTINCT - 50 ) - 77 + + 52 AS col2
----
25
117

skipif mysql # not compatible
query II rowsort label-5660
SELECT + 25 AS col0, 92 - - - MIN ( DISTINCT - 50 ) - 77 + + 52 AS col2
----
25
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT + 27 * - - CASE - - 45 WHEN COUNT( * ) THEN NULL WHEN + + NULLIF ( + SUM( DISTINCT - - 87 ), + - 56 ) * - 75 + COUNT( * ) THEN NULL ELSE + 8 END
----
216

skipif mysql # not compatible
query I rowsort label-5661
SELECT + 27 * - - CASE - - 45 WHEN COUNT ( * ) THEN NULL WHEN + + NULLIF ( + SUM ( DISTINCT - - 87 ), + - 56 ) * - 75 + COUNT ( * ) THEN NULL ELSE + 8 END
----
216

query I rowsort
SELECT 21 * 10 * - 39 + 55 AS col1
----
-8135

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT - ( - NULLIF ( - - ( - 44 ), - + COUNT( * ) ) ) + - 93 AS col0
----
-137

skipif mysql # not compatible
query I rowsort label-5663
SELECT - ( - NULLIF ( - - ( - 44 ), - + COUNT ( * ) ) ) + - 93 AS col0
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT + CASE + - 88 WHEN - 28 / + 80 + COUNT( ALL + 60 ) THEN - + 19 - + + COALESCE ( - - ( + 21 ), 84, + + 34 * 44 ) WHEN + + ( - 57 ) * + SUM( 36 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5664
SELECT + CASE + - 88 WHEN - 28 / + 80 + COUNT ( ALL + 60 ) THEN - + 19 - + + COALESCE ( - - ( + 21 ), 84, + + 34 * 44 ) WHEN + + ( - 57 ) * + SUM ( 36 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT MAX( - - 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-5665
SELECT MAX ( - - 51 ) AS col1
----
51

query I rowsort
SELECT + 97 * + - 49
----
-4753

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT ALL - 43 * - COUNT( * ) * + - 45 + - 22
----
-1957

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL - 43 * - COUNT ( * ) * + - 45 + - 22
----
-1957

onlyif mysql # DIV for integer division: 
query II rowsort label-5668
SELECT DISTINCT - 49 DIV + 39, - 74 AS col2
----
-1
-74

skipif mysql # not compatible
query II rowsort label-5668
SELECT DISTINCT - 49 / + 39, - 74 AS col2
----
-1
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT MIN( ALL - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-5669
SELECT MIN ( ALL - 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT ALL COUNT( ALL + 34 ) + - + ( + - COUNT( * ) ) * + - 5
----
-4

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL COUNT ( ALL + 34 ) + - + ( + - COUNT ( * ) ) * + - 5
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5671
SELECT - 83 * + 14 + - + 29 DIV - 47 * + COALESCE ( - 87, - 5 + 33 )
----
-1162

skipif mysql # not compatible
query I rowsort label-5671
SELECT - 83 * + 14 + - + 29 / - 47 * + COALESCE ( - 87, - 5 + 33 )
----
-1162

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT ALL COALESCE ( - COUNT( * ), 99 ) + + 82 + + 22
----
103

skipif mysql # not compatible
query I rowsort label-5672
SELECT ALL COALESCE ( - COUNT ( * ), 99 ) + + 82 + + 22
----
103

onlyif mysql # DIV for integer division: 
query II rowsort label-5673
SELECT + 49 + + 51 + 87 DIV + 45, ( - 41 ) col2
----
101
-41

skipif mysql # not compatible
query II rowsort label-5673
SELECT + 49 + + 51 + 87 / + 45, ( - 41 ) col2
----
101
-41

query I rowsort
SELECT ALL 88 + - 76 + 1 * + 77
----
89

query I rowsort
SELECT + 2 + + - 18 AS col0
----
-16

onlyif mysql # DIV for integer division: 
query II rowsort label-5676
SELECT + - 27 + + 28 - + - 18 DIV - 30, - 32 * + 24 * 97 AS col0
----
1
-74496

skipif mysql # not compatible
query II rowsort label-5676
SELECT + - 27 + + 28 - + - 18 / - 30, - 32 * + 24 * 97 AS col0
----
1
-74496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5677
SELECT DISTINCT 83 AS col1, CAST( - - COUNT( * ) AS SIGNED ) * 3 + 6 AS col2
----
83
9

skipif mysql # not compatible
query II rowsort label-5677
SELECT DISTINCT 83 AS col1, CAST ( - - COUNT ( * ) AS INTEGER ) * 3 + 6 AS col2
----
83
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT ALL - ( SUM( ALL - 12 ) ) - - 94 * 57
----
5370

skipif mysql # not compatible
query I rowsort label-5678
SELECT ALL - ( SUM ( ALL - 12 ) ) - - 94 * 57
----
5370

onlyif mysql # DIV for integer division: 
query I rowsort label-5679
SELECT ALL 7 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL 7 / 80
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5680
SELECT ALL COUNT( * ) col0, - 82 * + + 17
----
1
-1394

skipif mysql # not compatible
query II rowsort label-5680
SELECT ALL COUNT ( * ) col0, - 82 * + + 17
----
1
-1394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5681
SELECT + 65 + + 41 + + COUNT( * ) + - 7 DIV - + 21 * + - COUNT( * )
----
107

skipif mysql # not compatible
query I rowsort label-5681
SELECT + 65 + + 41 + + COUNT ( * ) + - 7 / - + 21 * + - COUNT ( * )
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5682
SELECT - CASE 53 WHEN - 86 THEN + COUNT( + 22 ) + + 18 * + 22 / + 62 WHEN + 66 + - 43 - 50 / 25 * - 47 THEN - - COUNT( ALL + - CAST( NULL AS SIGNED ) ) + SUM( ALL + - 1 ) ELSE NULL END + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5682
SELECT - CASE 53 WHEN - 86 THEN + COUNT ( + 22 ) + + 18 * + 22 / + 62 WHEN + 66 + - 43 - 50 / 25 * - 47 THEN - - COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) + SUM ( ALL + - 1 ) ELSE NULL END + 37 AS col2
----
NULL

query II rowsort
SELECT ALL 85 AS col0, + 42 AS col2
----
85
42

onlyif mysql # aggregate syntax: 
query II rowsort label-5684
SELECT ALL - COUNT( - 39 ) * - 52 + + - 7, - 44 AS col0
----
45
-44

skipif mysql # not compatible
query II rowsort label-5684
SELECT ALL - COUNT ( - 39 ) * - 52 + + - 7, - 44 AS col0
----
45
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-5685
SELECT - COUNT( * ) AS col0, + MIN( ALL + 67 ) AS col1
----
-1
67

skipif mysql # not compatible
query II rowsort label-5685
SELECT - COUNT ( * ) AS col0, + MIN ( ALL + 67 ) AS col1
----
-1
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5686
SELECT + + 9 + - 82 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5686
SELECT + + 9 + - 82 / - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 5 * - 0 * + 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT - COUNT( * ) * + 99 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-5688
SELECT - COUNT ( * ) * + 99 AS col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5689
SELECT - 70 + - 51, CAST( + - COUNT( * ) AS SIGNED ) col0
----
-121
-1

skipif mysql # not compatible
query II rowsort label-5689
SELECT - 70 + - 51, CAST ( + - COUNT ( * ) AS INTEGER ) col0
----
-121
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5690
SELECT DISTINCT - CASE - 89 WHEN + 29 THEN + 54 * - 42 ELSE NULL END / + - MIN( 63 ) + + AVG ( ALL 33 ) + - ( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) * - 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT DISTINCT - CASE - 89 WHEN + 29 THEN + 54 * - 42 ELSE NULL END / + - MIN ( 63 ) + + AVG ( ALL 33 ) + - ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - 90 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5691
SELECT ALL 23 DIV ( - 22 ) + 23 + 6 + + 19 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL 23 / ( - 22 ) + 23 + 6 + + 19 AS col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5692
SELECT + ( ( COUNT( * ) ) ) * + - COALESCE ( 37, + NULLIF ( - 78, - ( 82 ) * + - 39 + 34 + - + 3 + 29 * + 50 * - COUNT( * ) * - + 61 ) * 57 * SUM( + 24 ) - - 75 ) DIV 3 + 30 * 40
----
1188

skipif mysql # not compatible
query I rowsort label-5692
SELECT + ( ( COUNT ( * ) ) ) * + - COALESCE ( 37, + NULLIF ( - 78, - ( 82 ) * + - 39 + 34 + - + 3 + 29 * + 50 * - COUNT ( * ) * - + 61 ) * 57 * SUM ( + 24 ) - - 75 ) / 3 + 30 * 40
----
1188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5693
SELECT DISTINCT + COUNT( * ) DIV + SUM( DISTINCT - 48 ) + + COALESCE ( + 98, COUNT( * ) * 78, 67 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-5693
SELECT DISTINCT + COUNT ( * ) / + SUM ( DISTINCT - 48 ) + + COALESCE ( + 98, COUNT ( * ) * 78, 67 ) AS col2
----
98

query I rowsort
SELECT - COALESCE ( 54, - 32 ) * + - 61 AS col1
----
3294

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT ( - + MAX( ALL 32 ) ) col2
----
-32

skipif mysql # not compatible
query I rowsort label-5695
SELECT ( - + MAX ( ALL 32 ) ) col2
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5696
SELECT DISTINCT 35 DIV 73 * - COUNT( * ) + 31 * + COUNT( ALL + + 79 ) * 97
----
3007

skipif mysql # not compatible
query I rowsort label-5696
SELECT DISTINCT 35 / 73 * - COUNT ( * ) + 31 * + COUNT ( ALL + + 79 ) * 97
----
3007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5697
SELECT ALL 4 / 84 + + COUNT( * ) * CAST( NULL AS SIGNED ) / COALESCE ( 42, 13 / - + 14 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL 4 / 84 + + COUNT ( * ) * CAST ( NULL AS INTEGER ) / COALESCE ( 42, 13 / - + 14 ) AS col0
----
NULL

query I rowsort
SELECT - 98 * - + 78 + - - 8 AS col1
----
7652

query I rowsort
SELECT ALL - 99 * - 39 + + 6
----
3867

query I rowsort
SELECT ( - ( + 93 ) ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT ALL - 63 * + 53 * COUNT( * ) AS col2
----
-3339

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL - 63 * + 53 * COUNT ( * ) AS col2
----
-3339

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5702
SELECT DISTINCT 72 * + 29 * 9 + + 10 DIV 28 + - 58 + - COUNT( * )
----
18733

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT 72 * + 29 * 9 + + 10 / 28 + - 58 + - COUNT ( * )
----
18733

query I rowsort
SELECT ALL - - 15 * - 8 - 49
----
-169

onlyif mysql # aggregate syntax: 
query II rowsort label-5704
SELECT MIN( - 3 ) AS col2, 71
----
-3
71

skipif mysql # not compatible
query II rowsort label-5704
SELECT MIN ( - 3 ) AS col2, 71
----
-3
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5705
SELECT ALL 39 * 37 DIV 67 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL 39 * 37 / 67 AS col2
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-5706
SELECT + 83 + COUNT( * ) * - 46 AS col1, - 92 * COUNT( + 81 ) AS col2
----
37
-92

skipif mysql # not compatible
query II rowsort label-5706
SELECT + 83 + COUNT ( * ) * - 46 AS col1, - 92 * COUNT ( + 81 ) AS col2
----
37
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT DISTINCT + COALESCE ( + 46, - COUNT( * ) ) * 18
----
828

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT + COALESCE ( + 46, - COUNT ( * ) ) * 18
----
828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5708
SELECT CAST( NULL AS SIGNED ) * - - 56 * + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-5708
SELECT CAST ( NULL AS INTEGER ) * - - 56 * + + 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5709
SELECT 56 DIV - COUNT( * ) + - 8 * - 85 * + 60 AS col2
----
40744

skipif mysql # not compatible
query I rowsort label-5709
SELECT 56 / - COUNT ( * ) + - 8 * - 85 * + 60 AS col2
----
40744

onlyif mysql # aggregate syntax: 
query II rowsort label-5710
SELECT ALL - MIN( + 73 ) * - MIN( + 29 ) + - - 42 AS col1, + 15 * + 81 * + 55 + + 46
----
2159
66871

skipif mysql # not compatible
query II rowsort label-5710
SELECT ALL - MIN ( + 73 ) * - MIN ( + 29 ) + - - 42 AS col1, + 15 * + 81 * + 55 + + 46
----
2159
66871

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT DISTINCT SUM( DISTINCT - 88 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-5711
SELECT DISTINCT SUM ( DISTINCT - 88 ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT DISTINCT ( - COUNT( * ) ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT ( - COUNT ( * ) ) * - COUNT ( * )
----
1

query I rowsort
SELECT 35 - - - 23 col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5714
SELECT ALL CASE CAST( - 74 AS SIGNED ) WHEN SUM( - + 90 ) / + + COALESCE ( - - 37, ( + + 17 ) + ( 45 ), + 40 ) * 42 * + 93 THEN + - 12 * - 96 WHEN - - COUNT( * ) THEN 22 ELSE + SUM( ( - - 50 ) ) END
----
50

skipif mysql # not compatible
query I rowsort label-5714
SELECT ALL CASE CAST ( - 74 AS INTEGER ) WHEN SUM ( - + 90 ) / + + COALESCE ( - - 37, ( + + 17 ) + ( 45 ), + 40 ) * 42 * + 93 THEN + - 12 * - 96 WHEN - - COUNT ( * ) THEN 22 ELSE + SUM ( ( - - 50 ) ) END
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5715
SELECT + CAST( NULL AS SIGNED ) + NULLIF ( + 97, - 10 ) / + COUNT( * ) + ( - SUM( - 99 ) ) / - + COALESCE ( 51, - 71 ) + - 76, + 73 AS col0
----
NULL
73

skipif mysql # not compatible
query II rowsort label-5715
SELECT + CAST ( NULL AS INTEGER ) + NULLIF ( + 97, - 10 ) / + COUNT ( * ) + ( - SUM ( - 99 ) ) / - + COALESCE ( 51, - 71 ) + - 76, + 73 AS col0
----
NULL
73

onlyif mysql # aggregate syntax: 
query II rowsort label-5716
SELECT COUNT( * ) + + 7 AS col0, - 53 * - COUNT( * ) * - COUNT( * )
----
8
-53

skipif mysql # not compatible
query II rowsort label-5716
SELECT COUNT ( * ) + + 7 AS col0, - 53 * - COUNT ( * ) * - COUNT ( * )
----
8
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5717
SELECT ALL 68 DIV + COUNT( DISTINCT - + 27 ) + - 74
----
-6

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL 68 / + COUNT ( DISTINCT - + 27 ) + - 74
----
-6

query I rowsort
SELECT ALL 93 + NULLIF ( - ( 47 ), - + 89 + + + 78 ) - 40 AS col2
----
6

query II rowsort
SELECT DISTINCT 51 AS col2, 91 + 46 * 33 AS col2
----
51
1609

query I rowsort
SELECT ALL 70 + + 3 * - + 62 + + 9
----
-107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5721
SELECT ALL 34 + - + 14 + + COUNT( * ) + + - 64 * + 86 + - 89 DIV + 36
----
-5485

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL 34 + - + 14 + + COUNT ( * ) + + - 64 * + 86 + - 89 / + 36
----
-5485

query II rowsort
SELECT + 69 * - 67 + - 6 AS col1, - 71
----
-4629
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5723
SELECT 5 * - 44 * + + COALESCE ( COALESCE ( 99, + - 23 ), ( + 71 ) DIV + - 35 - COUNT( * ) + + 27 * + 10 ) * + 31 + 63 + - - 72 DIV COUNT( * ) col1
----
-675045

skipif mysql # not compatible
query I rowsort label-5723
SELECT 5 * - 44 * + + COALESCE ( COALESCE ( 99, + - 23 ), ( + 71 ) / + - 35 - COUNT ( * ) + + 27 * + 10 ) * + 31 + 63 + - - 72 / COUNT ( * ) col1
----
-675045

onlyif mysql # aggregate syntax: 
query II rowsort label-5724
SELECT DISTINCT COUNT( * ) + NULLIF ( - 61, + 57 ) - - + ( - 26 ) AS col1, + 43 AS col1
----
-86
43

skipif mysql # not compatible
query II rowsort label-5724
SELECT DISTINCT COUNT ( * ) + NULLIF ( - 61, + 57 ) - - + ( - 26 ) AS col1, + 43 AS col1
----
-86
43

onlyif mysql # DIV for integer division: 
query II rowsort label-5725
SELECT + 79 AS col0, + 47 DIV - 66 * - 32
----
79
0

skipif mysql # not compatible
query II rowsort label-5725
SELECT + 79 AS col0, + 47 / - 66 * - 32
----
79
0

query I rowsort
SELECT 95 * + + 76 AS col1
----
7220

query I rowsort
SELECT DISTINCT + 76 - 78
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT DISTINCT - SUM( + 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT - SUM ( + 28 ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-5729
SELECT DISTINCT - 46 AS col0, COUNT( * ) * + 62
----
-46
62

skipif mysql # not compatible
query II rowsort label-5729
SELECT DISTINCT - 46 AS col0, COUNT ( * ) * + 62
----
-46
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5730
SELECT + COALESCE ( + 97, - - CAST( + + 37 AS SIGNED ) * - 90 + + CASE CASE - MAX( + 65 ) WHEN + 18 + + 52 THEN NULL ELSE - 40 END WHEN + - 55 * + 19 - + - 11 THEN - 42 ELSE NULL END + + 57 + - - 11 * + 34 ) * - 2 * + 26 + COUNT( * )
----
-5043

skipif mysql # not compatible
query I rowsort label-5730
SELECT + COALESCE ( + 97, - - CAST ( + + 37 AS INTEGER ) * - 90 + + CASE CASE - MAX ( + 65 ) WHEN + 18 + + 52 THEN NULL ELSE - 40 END WHEN + - 55 * + 19 - + - 11 THEN - 42 ELSE NULL END + + 57 + - - 11 * + 34 ) * - 2 * + 26 + COUNT ( * )
----
-5043

query II rowsort
SELECT 15 * - 12 + - 55 AS col0, + 76 + + 21
----
-235
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5732
SELECT 2 + COUNT( * ) DIV - 80
----
2

skipif mysql # not compatible
query I rowsort label-5732
SELECT 2 + COUNT ( * ) / - 80
----
2

query I rowsort
SELECT ALL + - 45 * + 0
----
0

query I rowsort
SELECT - 6 * - 91
----
546

query I rowsort
SELECT 71 + ( + COALESCE ( 11, NULLIF ( - 4, + 13 ) ) ) AS col0
----
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5736
SELECT - CASE + + 19 WHEN + + 73 THEN NULL WHEN 21 * + CAST( + + 94 AS DECIMAL ) - - + 30 THEN 88 + + - 93 ELSE NULL END + - 28 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5736
SELECT - CASE + + 19 WHEN + + 73 THEN NULL WHEN 21 * + CAST ( + + 94 AS REAL ) - - + 30 THEN 88 + + - 93 ELSE NULL END + - 28 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5737
SELECT 42 * - CASE + 23 WHEN 47 * + COUNT( * ) - + 36 THEN 92 * - - 73 ELSE - CAST( 62 AS SIGNED ) END col2
----
2604

skipif mysql # not compatible
query I rowsort label-5737
SELECT 42 * - CASE + 23 WHEN 47 * + COUNT ( * ) - + 36 THEN 92 * - - 73 ELSE - CAST ( 62 AS INTEGER ) END col2
----
2604

query I rowsort
SELECT ALL 80 + + 58
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT 19 + + - 70 + COUNT( * ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-5739
SELECT 19 + + - 70 + COUNT ( * ) AS col0
----
-50

query I rowsort
SELECT ALL - 25 + 66 AS col1
----
41

query I rowsort
SELECT 63 * + 43
----
2709

query I rowsort
SELECT 69 + - 5 AS col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5743
SELECT 5 DIV COUNT( - + 76 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-5743
SELECT 5 / COUNT ( - + 76 ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query III rowsort label-5744
SELECT ALL 21 * 97 * - 65 + + + 31 col0, + 53 AS col1, COUNT( * ) col0
----
-132374
53
1

skipif mysql # not compatible
query III rowsort label-5744
SELECT ALL 21 * 97 * - 65 + + + 31 col0, + 53 AS col1, COUNT ( * ) col0
----
-132374
53
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5745
SELECT ALL 80 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL 80 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT 95 + + + 7 - 90 + - - COUNT( * ) * 1 * NULLIF ( 28, 66 ) + - 16 - - + 19
----
43

skipif mysql # not compatible
query I rowsort label-5746
SELECT 95 + + + 7 - 90 + - - COUNT ( * ) * 1 * NULLIF ( 28, 66 ) + - 16 - - + 19
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5747
SELECT DISTINCT CAST( - 22 AS SIGNED ) * - 95 - 62, - 19 AS col0
----
2028
-19

skipif mysql # not compatible
query II rowsort label-5747
SELECT DISTINCT CAST ( - 22 AS INTEGER ) * - 95 - 62, - 19 AS col0
----
2028
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-5748
SELECT 7 DIV + 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5748
SELECT 7 / + 15 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5749
SELECT 99 / + - COALESCE ( COUNT( * ), - 65 ) * - - CAST( NULL AS SIGNED ) + + 28 + - 58 + + + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5749
SELECT 99 / + - COALESCE ( COUNT ( * ), - 65 ) * - - CAST ( NULL AS INTEGER ) + + 28 + - 58 + + + 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT MAX( DISTINCT + + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5750
SELECT MAX ( DISTINCT + + 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT COUNT( - 87 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5751
SELECT COUNT ( - 87 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5752
SELECT COUNT( ALL + 2 ) AS col1, CASE 19 WHEN 18 THEN NULL WHEN - 54 THEN CAST( NULL AS SIGNED ) END + 40 + COALESCE ( - 41, 53, 68 - + + 93, - CAST( + - 23 AS SIGNED ) + - 19 ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5752
SELECT COUNT ( ALL + 2 ) AS col1, CASE 19 WHEN 18 THEN NULL WHEN - 54 THEN CAST ( NULL AS INTEGER ) END + 40 + COALESCE ( - 41, 53, 68 - + + 93, - CAST ( + - 23 AS INTEGER ) + - 19 ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT + 82 * - CASE + + COUNT( * ) WHEN COALESCE ( - 80, + - 99, + 75 + + 74 ) THEN + - 22 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT + 82 * - CASE + + COUNT ( * ) WHEN COALESCE ( - 80, + - 99, + 75 + + 74 ) THEN + - 22 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5754
SELECT CASE 11 WHEN + 67 + + 40 + 85 * 58 + - + 61 THEN + + CAST( NULL AS SIGNED ) WHEN - - 50 THEN + 89 + - CASE + MAX( - ( + 96 ) ) WHEN + 1 * - 12 - 63 THEN + + 38 * - 29 * - 66 WHEN - - 9 - + 1 THEN + 72 WHEN 16 THEN NULL ELSE NULLIF ( + SUM( + 95 ), 24 * - 8 + - 39 ) END + 95 * 35 * 51 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5754
SELECT CASE 11 WHEN + 67 + + 40 + 85 * 58 + - + 61 THEN + + CAST ( NULL AS INTEGER ) WHEN - - 50 THEN + 89 + - CASE + MAX ( - ( + 96 ) ) WHEN + 1 * - 12 - 63 THEN + + 38 * - 29 * - 66 WHEN - - 9 - + 1 THEN + 72 WHEN 16 THEN NULL ELSE NULLIF ( + SUM ( + 95 ), 24 * - 8 + - 39 ) END + 95 * 35 * 51 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5755
SELECT ALL + + COUNT( 28 ) AS col1, 26 * - 78 * - + 52
----
1
105456

skipif mysql # not compatible
query II rowsort label-5755
SELECT ALL + + COUNT ( 28 ) AS col1, 26 * - 78 * - + 52
----
1
105456

query I rowsort
SELECT ALL - 63 * - 32 * - 92
----
-185472

query I rowsort
SELECT DISTINCT + - 96 col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT + COUNT( DISTINCT - - 9 ) - 39
----
-38

skipif mysql # not compatible
query I rowsort label-5758
SELECT + COUNT ( DISTINCT - - 9 ) - 39
----
-38

query I rowsort
SELECT + 84 * COALESCE ( + + 52, + COALESCE ( 95, 95 ) * 26 ) AS col0
----
4368

onlyif mysql # aggregate syntax: 
query II rowsort label-5760
SELECT ALL - 2 * + MAX( ALL 49 ) - - - 7 AS col0, ( - - ( ( + 10 ) ) ) * 78 - - - 36 + 23
----
-105
767

skipif mysql # not compatible
query II rowsort label-5760
SELECT ALL - 2 * + MAX ( ALL 49 ) - - - 7 AS col0, ( - - ( ( + 10 ) ) ) * 78 - - - 36 + 23
----
-105
767

onlyif mysql # aggregate syntax: 
query II rowsort label-5761
SELECT ALL MIN( - 62 ) AS col0, 25 * 99 * + ( - 61 ) AS col2
----
-62
-150975

skipif mysql # not compatible
query II rowsort label-5761
SELECT ALL MIN ( - 62 ) AS col0, 25 * 99 * + ( - 61 ) AS col2
----
-62
-150975

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT DISTINCT - - 87 + + 67 * - COUNT( * ) col1
----
20

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT - - 87 + + 67 * - COUNT ( * ) col1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT ALL + - COALESCE ( + CASE 69 WHEN - 6 THEN + + 60 WHEN + 53 THEN - + 53 WHEN 97 THEN + ( + 32 ) ELSE - 86 END, - + 42 DIV + 26 ) + + + 30 + + ( + + 35 ) + + ( - COALESCE ( + + 13, - - 96 ) ) DIV + 81 col2
----
151

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL + - COALESCE ( + CASE 69 WHEN - 6 THEN + + 60 WHEN + 53 THEN - + 53 WHEN 97 THEN + ( + 32 ) ELSE - 86 END, - + 42 / + 26 ) + + + 30 + + ( + + 35 ) + + ( - COALESCE ( + + 13, - - 96 ) ) / + 81 col2
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT DISTINCT - + 62 + 77 + + COUNT( ALL + ( - 40 ) ) - - 17 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT - + 62 + 77 + + COUNT ( ALL + ( - 40 ) ) - - 17 AS col0
----
33

query I rowsort
SELECT DISTINCT ( - - 94 ) AS col1
----
94

query I rowsort
SELECT ALL + 39 + + 16
----
55

query I rowsort
SELECT - 23 + + 20 AS col1
----
-3

query I rowsort
SELECT - 75 + + 25
----
-50

query I rowsort
SELECT + 98 + - 27 AS col1
----
71

query I rowsort
SELECT DISTINCT - 94 * + - 28
----
2632

query I rowsort
SELECT DISTINCT NULLIF ( - 29, - 47 )
----
-29

query I rowsort
SELECT - 45 - 57 + + 6 * - 29 col1
----
-276

query I rowsort
SELECT ALL - 4 * + 18 * + 16 AS col0
----
-1152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5774
SELECT - 21 + - 47 + + - COUNT( * ) * 27 DIV + 29 + - - 22 + + 46 + - COUNT( * ) * - + 61
----
61

skipif mysql # not compatible
query I rowsort label-5774
SELECT - 21 + - 47 + + - COUNT ( * ) * 27 / + 29 + - - 22 + + 46 + - COUNT ( * ) * - + 61
----
61

query I rowsort
SELECT ALL - 77 * + 51
----
-3927

query I rowsort
SELECT - 9 * 17 AS col0
----
-153

onlyif mysql # aggregate syntax: 
query II rowsort label-5777
SELECT ALL + 68 AS col1, - COUNT( * ) AS col2
----
68
-1

skipif mysql # not compatible
query II rowsort label-5777
SELECT ALL + 68 AS col1, - COUNT ( * ) AS col2
----
68
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT ( + + CASE - MAX( ALL - 53 ) WHEN 45 THEN NULL ELSE 21 * + 43 END ) AS col0
----
903

skipif mysql # not compatible
query I rowsort label-5778
SELECT ( + + CASE - MAX ( ALL - 53 ) WHEN 45 THEN NULL ELSE 21 * + 43 END ) AS col0
----
903

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT - 79 * + COUNT( * ) * - - COUNT( * ) * 99 * + 12
----
-93852

skipif mysql # not compatible
query I rowsort label-5779
SELECT - 79 * + COUNT ( * ) * - - COUNT ( * ) * 99 * + 12
----
-93852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5780
SELECT + 85 * + CAST( - COUNT( * ) AS SIGNED ) col1
----
-85

skipif mysql # not compatible
query I rowsort label-5780
SELECT + 85 * + CAST ( - COUNT ( * ) AS INTEGER ) col1
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5781
SELECT ALL MAX( ALL - 82 ) DIV - 59 col0, COALESCE ( + 33, 12 ) * + 49 + - + 40 AS col2
----
1
1577

skipif mysql # not compatible
query II rowsort label-5781
SELECT ALL MAX ( ALL - 82 ) / - 59 col0, COALESCE ( + 33, 12 ) * + 49 + - + 40 AS col2
----
1
1577

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5782
SELECT 52 * + 39 + COUNT( * ) - + 74 + 20 DIV 21 DIV + MAX( - 25 ) AS col1
----
1955

skipif mysql # not compatible
query I rowsort label-5782
SELECT 52 * + 39 + COUNT ( * ) - + 74 + 20 / 21 / + MAX ( - 25 ) AS col1
----
1955

onlyif mysql # DIV for integer division: 
query I rowsort label-5783
SELECT ALL - 14 DIV + 56 * 17 + + 84 + - 11 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL - 14 / + 56 * 17 + + 84 + - 11 AS col1
----
73

query I rowsort
SELECT + 2 * - 76 + + 47
----
-105

query I rowsort
SELECT ALL 46 * - 82
----
-3772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5786
SELECT ALL - - 46 * - - 95 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL - - 46 * - - 95 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5787
SELECT + + ( 37 ) + - 66 - + MAX( - + CAST( NULL AS SIGNED ) ) * 98 * 9 * COALESCE ( 81, + 17 * + COUNT( * ) * - 55 * COUNT( * ) + + 7 ) * - 32 / - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5787
SELECT + + ( 37 ) + - 66 - + MAX ( - + CAST ( NULL AS INTEGER ) ) * 98 * 9 * COALESCE ( 81, + 17 * + COUNT ( * ) * - 55 * COUNT ( * ) + + 7 ) * - 32 / - 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT + 56 * - - COUNT( * ) - - - 60 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5788
SELECT + 56 * - - COUNT ( * ) - - - 60 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT ALL + + ( + + NULLIF ( MAX( - - 82 ), - 58 ) )
----
82

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL + + ( + + NULLIF ( MAX ( - - 82 ), - 58 ) )
----
82

query I rowsort
SELECT + - 67 + 93 AS col1
----
26

query II rowsort
SELECT 96, 56 AS col1
----
96
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5792
SELECT - + CAST( NULL AS SIGNED ) * - ( 50 ) / + 40 + 75 * + - 98 * - + 48 / 52 * - - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5792
SELECT - + CAST ( NULL AS INTEGER ) * - ( 50 ) / + 40 + 75 * + - 98 * - + 48 / 52 * - - 54 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT ALL - ( 15 ) * + + COUNT( * ) + - - 20
----
5

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL - ( 15 ) * + + COUNT ( * ) + - - 20
----
5

query I rowsort
SELECT + NULLIF ( + ( - ( - 67 ) ), + - 44 / + 52 ) AS col0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5795
SELECT 1 * - - 14 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5795
SELECT 1 * - - 14 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 57 * 68 AS col2
----
-3876

query I rowsort
SELECT - + COALESCE ( - 28, + 15 ) * 28 AS col0
----
784

query I rowsort
SELECT ALL NULLIF ( NULLIF ( - 23, + - 45 ), + + 64 + + - 46 + + 58 * + 34 )
----
-23

query I rowsort
SELECT ALL + 80 * 27 * + 12 AS col1
----
25920

query I rowsort
SELECT DISTINCT + 62 * 31 * - - 93 * + + 6
----
1072476

query II rowsort
SELECT 2, - 56 AS col0
----
2
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5802
SELECT ALL COUNT( * ), + 74 DIV - 43 AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-5802
SELECT ALL COUNT ( * ), + 74 / - 43 AS col2
----
1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5803
SELECT - ( 21 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT - ( 21 ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 10 * - 82 col0
----
-820

query I rowsort
SELECT 94 + + 62
----
156

query II rowsort
SELECT - 30 AS col1, + 91 AS col1
----
-30
91

query I rowsort
SELECT 33 * - - 27 AS col1
----
891

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5808
SELECT ALL 32 col2, CAST( - 4 AS SIGNED ) AS col2
----
32
-4

skipif mysql # not compatible
query II rowsort label-5808
SELECT ALL 32 col2, CAST ( - 4 AS INTEGER ) AS col2
----
32
-4

query I rowsort
SELECT 4 + - 47 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT COUNT( * ) + - 72
----
-71

skipif mysql # not compatible
query I rowsort label-5810
SELECT COUNT ( * ) + - 72
----
-71

query II rowsort
SELECT 18 AS col2, - 71
----
18
-71

query I rowsort
SELECT 23 * - 10 AS col2
----
-230

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT 0 * 72 + - - 3 + + COUNT( ALL - - 13 ) * - COUNT( * ) - - 63
----
65

skipif mysql # not compatible
query I rowsort label-5813
SELECT 0 * 72 + - - 3 + + COUNT ( ALL - - 13 ) * - COUNT ( * ) - - 63
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT ALL - 26 + - - SUM( + - 64 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL - 26 + - - SUM ( + - 64 ) AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT - 29 / CASE - AVG ( 25 ) WHEN + - 57 THEN - ( - ( - 5 ) ) + - - 87 * - 50 ELSE NULL END + 51 * - NULLIF ( - + COUNT( 26 ), - 25 ) + COUNT( 22 ) + + + 91 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT - 29 / CASE - AVG ( 25 ) WHEN + - 57 THEN - ( - ( - 5 ) ) + - - 87 * - 50 ELSE NULL END + 51 * - NULLIF ( - + COUNT ( 26 ), - 25 ) + COUNT ( 22 ) + + + 91 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5816
SELECT NULLIF ( 76, 86 ) * - + COUNT( * ) * + 43 + + COUNT( * ) DIV + 28
----
-3268

skipif mysql # not compatible
query I rowsort label-5816
SELECT NULLIF ( 76, 86 ) * - + COUNT ( * ) * + 43 + + COUNT ( * ) / + 28
----
-3268

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5817
SELECT - 92 AS col1, CAST( NULL AS SIGNED ) AS col1
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-5817
SELECT - 92 AS col1, CAST ( NULL AS INTEGER ) AS col1
----
-92
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5818
SELECT + COUNT( * ) AS col0, - 87 AS col2
----
1
-87

skipif mysql # not compatible
query II rowsort label-5818
SELECT + COUNT ( * ) AS col0, - 87 AS col2
----
1
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT ALL 19 + - COUNT( + 18 ) + 67 * 34 + + COUNT( * ) * - NULLIF ( + - 39, + ( - - 71 ) ) col2
----
2335

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL 19 + - COUNT ( + 18 ) + 67 * 34 + + COUNT ( * ) * - NULLIF ( + - 39, + ( - - 71 ) ) col2
----
2335

onlyif mysql # aggregate syntax: 
query II rowsort label-5820
SELECT + 49 AS col0, + 41 + + - 1 + - 98 * - 83 * - 15 * - COUNT( * )
----
49
122050

skipif mysql # not compatible
query II rowsort label-5820
SELECT + 49 AS col0, + 41 + + - 1 + - 98 * - 83 * - 15 * - COUNT ( * )
----
49
122050

query II rowsort
SELECT ALL - 38 AS col0, + 45 AS col1
----
-38
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5822
SELECT COUNT( * ) DIV 33 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5822
SELECT COUNT ( * ) / 33 AS col1
----
0

query I rowsort
SELECT DISTINCT - 19 * 89 AS col1
----
-1691

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT - COUNT( * ) * + - 1
----
1

skipif mysql # not compatible
query I rowsort label-5824
SELECT - COUNT ( * ) * + - 1
----
1

query I rowsort
SELECT ALL ( - - 89 ) * + 92 AS col1
----
8188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5826
SELECT 5 - + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5826
SELECT 5 - + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-5827
SELECT DISTINCT 29 * - COUNT( * ), 37 + + 79 * - 77 AS col2, - + 49 AS col1
----
-29
-6046
-49

skipif mysql # not compatible
query III rowsort label-5827
SELECT DISTINCT 29 * - COUNT ( * ), 37 + + 79 * - 77 AS col2, - + 49 AS col1
----
-29
-6046
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT SUM( + 68 ) * - 2 AS col2
----
-136

skipif mysql # not compatible
query I rowsort label-5828
SELECT SUM ( + 68 ) * - 2 AS col2
----
-136

query I rowsort
SELECT ALL 75 * 70 col2
----
5250

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT ( + - COUNT( * ) ) * - - NULLIF ( - 24, 88 * - 85 )
----
24

skipif mysql # not compatible
query I rowsort label-5830
SELECT ( + - COUNT ( * ) ) * - - NULLIF ( - 24, 88 * - 85 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT 88 + + 56 - - COUNT( * )
----
145

skipif mysql # not compatible
query I rowsort label-5831
SELECT 88 + + 56 - - COUNT ( * )
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5832
SELECT CASE - 48 WHEN + - 49 + MIN( ( + - 13 ) ) * COUNT( * ) + SUM( ALL 25 ) THEN CAST( NULL AS SIGNED ) WHEN - + 41 * 86 THEN - + ( - 86 ) END + COUNT( * ) + COALESCE ( - COALESCE ( + 9, 28 * - 13 * + NULLIF ( ( + 81 ), + - 7 ), - 11 ), + - 27 ) * - - 85 * + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-5832
SELECT CASE - 48 WHEN + - 49 + MIN ( ( + - 13 ) ) * COUNT ( * ) + SUM ( ALL 25 ) THEN CAST ( NULL AS INTEGER ) WHEN - + 41 * 86 THEN - + ( - 86 ) END + COUNT ( * ) + COALESCE ( - COALESCE ( + 9, 28 * - 13 * + NULLIF ( ( + 81 ), + - 7 ), - 11 ), + - 27 ) * - - 85 * + 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT ( - COUNT( * ) ) * + 87 col0
----
-87

skipif mysql # not compatible
query I rowsort label-5833
SELECT ( - COUNT ( * ) ) * + 87 col0
----
-87

query I rowsort
SELECT 39 + + 68 col2
----
107

query I rowsort
SELECT DISTINCT 20 + - - 15
----
35

query I rowsort
SELECT 32 + 51 AS col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5837
SELECT 39 * + COALESCE ( - COUNT( * ), + + COUNT( * ) DIV + 69 + 72 * 65 * - 59 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-5837
SELECT 39 * + COALESCE ( - COUNT ( * ), + + COUNT ( * ) / + 69 + 72 * 65 * - 59 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT ALL SUM( DISTINCT - + 7 ) + + - 36
----
-43

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL SUM ( DISTINCT - + 7 ) + + - 36
----
-43

query II rowsort
SELECT + ( - 11 ), 84 AS col1
----
-11
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5840
SELECT ALL - - CAST( + 21 AS SIGNED ) * + 32 + + 74
----
746

skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL - - CAST ( + 21 AS INTEGER ) * + 32 + + 74
----
746

query I rowsort
SELECT 25 * - ( - 13 ) AS col0
----
325

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT + 85 * 31 * - - 36 * + - 65 * - - ( - COUNT( * ) ) - + 40 col1
----
6165860

skipif mysql # not compatible
query I rowsort label-5842
SELECT + 85 * 31 * - - 36 * + - 65 * - - ( - COUNT ( * ) ) - + 40 col1
----
6165860

query I rowsort
SELECT DISTINCT + 23 * - 89 AS col0
----
-2047

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT DISTINCT + 12 + 21 - + 85 + - 29 * + NULLIF ( + ( - + COALESCE ( + 63, 95 ) ), + 64 - - 45 + - 84 / - 24 * + 71 + + COUNT( * ) + 64 * - - 93 )
----
1775

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT + 12 + 21 - + 85 + - 29 * + NULLIF ( + ( - + COALESCE ( + 63, 95 ) ), + 64 - - 45 + - 84 / - 24 * + 71 + + COUNT ( * ) + 64 * - - 93 )
----
1775

query I rowsort
SELECT DISTINCT 35 - + 16 + 37 + + ( + + 41 ) - + - 79 * + 94 AS col1
----
7523

onlyif mysql # aggregate syntax: 
query II rowsort label-5846
SELECT ALL - + MAX( 43 ) AS col0, 89
----
-43
89

skipif mysql # not compatible
query II rowsort label-5846
SELECT ALL - + MAX ( 43 ) AS col0, 89
----
-43
89

query II rowsort
SELECT + NULLIF ( - 24, - 4 ) * + 30 * 11 + + 33 + + 7 + - ( - + 1 ) * - - 19 col2, 8 col0
----
-7861
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5848
SELECT + CAST( + 88 AS SIGNED ) * + + 38
----
3344

skipif mysql # not compatible
query I rowsort label-5848
SELECT + CAST ( + 88 AS INTEGER ) * + + 38
----
3344

query I rowsort
SELECT 32 * 20
----
640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5850
SELECT 19 + + 71 + - CAST( NULL AS SIGNED ) * 61 + + 61 * - CAST( 92 AS SIGNED ) * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-5850
SELECT 19 + + 71 + - CAST ( NULL AS INTEGER ) * 61 + + 61 * - CAST ( 92 AS INTEGER ) * + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT + - 41 * + COUNT( * ) - + 95 * 26 * - - 13 col0
----
-32151

skipif mysql # not compatible
query I rowsort label-5851
SELECT + - 41 * + COUNT ( * ) - + 95 * 26 * - - 13 col0
----
-32151

query II rowsort
SELECT ALL - 38 - + 91 AS col1, 8 * + + 78 col0
----
-129
624

query I rowsort
SELECT + ( + - ( + 81 ) ) * + 64 * 26 + + 5
----
-134779

query I rowsort
SELECT + 61 * 22 + 80
----
1422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5855
SELECT + 22 + - 85 * - CAST( - COUNT( * ) AS SIGNED ) + + 87 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-5855
SELECT + 22 + - 85 * - CAST ( - COUNT ( * ) AS INTEGER ) + + 87 AS col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5856
SELECT ALL - 45 DIV + COUNT( * ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-5856
SELECT ALL - 45 / + COUNT ( * ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT + 98 + + NULLIF ( - NULLIF ( COUNT( * ), 79 ), - 66 ) + - - 68 + + - COUNT( * ) + - 25 * 25 * 40 * 67 AS col2
----
-1674836

skipif mysql # not compatible
query I rowsort label-5857
SELECT + 98 + + NULLIF ( - NULLIF ( COUNT ( * ), 79 ), - 66 ) + - - 68 + + - COUNT ( * ) + - 25 * 25 * 40 * 67 AS col2
----
-1674836

query I rowsort
SELECT + 16 * 74 AS col2
----
1184

query II rowsort
SELECT ALL 16 AS col2, 11 * - 32
----
16
-352

query I rowsort
SELECT + 92 + + + 55 AS col0
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5861
SELECT 57 AS col0, + CAST( NULL AS SIGNED ) * 5
----
57
NULL

skipif mysql # not compatible
query II rowsort label-5861
SELECT 57 AS col0, + CAST ( NULL AS INTEGER ) * 5
----
57
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT ALL + SUM( ALL - 35 ) * 45 + NULLIF ( - 13, - 29 ) + + ( 31 ) + + - 46
----
-1603

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL + SUM ( ALL - 35 ) * 45 + NULLIF ( - 13, - 29 ) + + ( 31 ) + + - 46
----
-1603

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT ALL SUM( ALL - 91 ) + - 11
----
-102

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL SUM ( ALL - 91 ) + - 11
----
-102

query I rowsort
SELECT DISTINCT 79 + - 8 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT + SUM( ALL - CASE - - 25 WHEN + 45 THEN 97 ELSE - 11 END ) * - 88 + COUNT( - 55 ) * - 98 * 14
----
-2340

skipif mysql # not compatible
query I rowsort label-5865
SELECT + SUM ( ALL - CASE - - 25 WHEN + 45 THEN 97 ELSE - 11 END ) * - 88 + COUNT ( - 55 ) * - 98 * 14
----
-2340

query I rowsort
SELECT DISTINCT 61 + - 61
----
0

query II rowsort
SELECT DISTINCT 90 AS col1, + 83 AS col1
----
90
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5868
SELECT ALL 51 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL 51 / + 93
----
0

query I rowsort
SELECT + 21 + - 16 AS col1
----
5

query I rowsort
SELECT - + 49 + - ( + + 97 ) AS col0
----
-146

query I rowsort
SELECT DISTINCT + 44 + - 2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5872
SELECT DISTINCT ( - NULLIF ( - + CAST( - - 31 AS SIGNED ), - + 98 * + MIN( ALL + 82 ) ) )
----
31

skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT ( - NULLIF ( - + CAST ( - - 31 AS INTEGER ), - + 98 * + MIN ( ALL + 82 ) ) )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5873
SELECT ALL - 74 / - + CAST( + 99 AS SIGNED ) * + + 39 + + + CAST( NULL AS DECIMAL ) + - + COUNT( + - CAST( - 37 AS SIGNED ) ) * 45 + + COUNT( * ) + - - COALESCE ( - 21, + 92 * - 6 + - 4, - NULLIF ( + COUNT( * ), - + 83 ) ) AS col0, - 95 * - - 46 - + 76 col2
----
NULL
-4446

skipif mysql # not compatible
query II rowsort label-5873
SELECT ALL - 74 / - + CAST ( + 99 AS INTEGER ) * + + 39 + + + CAST ( NULL AS REAL ) + - + COUNT ( + - CAST ( - 37 AS INTEGER ) ) * 45 + + COUNT ( * ) + - - COALESCE ( - 21, + 92 * - 6 + - 4, - NULLIF ( + COUNT ( * ), - + 83 ) ) AS col0, - 95 * - - 46 - + 76 col2
----
NULL
-4446

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5874
SELECT + CASE - - COUNT( * ) WHEN + 19 / - COALESCE ( + + 99, - 21 ) * - - CASE - 45 WHEN + 7 / - CAST( NULL AS SIGNED ) THEN 86 * - - 64 * - 63 END * + 41 + + 80 - - - 87 * - 87 THEN + CASE - 15 WHEN - 67 THEN - 26 + + CASE + CAST( COUNT( * ) AS SIGNED ) WHEN - 10 THEN NULL WHEN + 17 / 86 + - 33 * 73 THEN - 57 + - 52 END WHEN + COUNT( * ) THEN NULL ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-5874
SELECT + CASE - - COUNT ( * ) WHEN + 19 / - COALESCE ( + + 99, - 21 ) * - - CASE - 45 WHEN + 7 / - CAST ( NULL AS INTEGER ) THEN 86 * - - 64 * - 63 END * + 41 + + 80 - - - 87 * - 87 THEN + CASE - 15 WHEN - 67 THEN - 26 + + CASE + CAST ( COUNT ( * ) AS INTEGER ) WHEN - 10 THEN NULL WHEN + 17 / 86 + - 33 * 73 THEN - 57 + - 52 END WHEN + COUNT ( * ) THEN NULL ELSE NULL END END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5875
SELECT ALL - 59 * - + 23 - + 86 + + + 52 * - 66 + - 16 - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL - 59 * - + 23 - + 86 + + + 52 * - 66 + - 16 - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5876
SELECT DISTINCT + - 63 AS col0, - 60 + - 15 - 39 * - MIN( - 83 ) * + 46 * + COUNT( * ) + - 19 + + CASE SUM( DISTINCT CAST( NULL AS DECIMAL ) ) WHEN + 75 THEN + COUNT( * ) + 65 * 44 WHEN - 91 THEN + 39 * + - COUNT( * ) ELSE NULL END
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-5876
SELECT DISTINCT + - 63 AS col0, - 60 + - 15 - 39 * - MIN ( - 83 ) * + 46 * + COUNT ( * ) + - 19 + + CASE SUM ( DISTINCT CAST ( NULL AS REAL ) ) WHEN + 75 THEN + COUNT ( * ) + 65 * 44 WHEN - 91 THEN + 39 * + - COUNT ( * ) ELSE NULL END
----
-63
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5877
SELECT + - 94 DIV - 55 + - - 0 + - 35 * + 21 + + 97 AS col0
----
-637

skipif mysql # not compatible
query I rowsort label-5877
SELECT + - 94 / - 55 + - - 0 + - 35 * + 21 + + 97 AS col0
----
-637

onlyif mysql # aggregate syntax: 
query II rowsort label-5878
SELECT ALL + 44 col0, - 63 * - - ( COUNT( * ) ) * - 60 AS col2
----
44
3780

skipif mysql # not compatible
query II rowsort label-5878
SELECT ALL + 44 col0, - 63 * - - ( COUNT ( * ) ) * - 60 AS col2
----
44
3780

query I rowsort
SELECT + - 34 col1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5880
SELECT - + CASE - 1 WHEN + + 59 - - + 93 THEN + 49 ELSE ( - CAST( + - ( - 35 ) AS SIGNED ) ) END * + 6
----
210

skipif mysql # not compatible
query I rowsort label-5880
SELECT - + CASE - 1 WHEN + + 59 - - + 93 THEN + 49 ELSE ( - CAST ( + - ( - 35 ) AS INTEGER ) ) END * + 6
----
210

query I rowsort
SELECT DISTINCT + ( + ( + 27 ) )
----
27

query I rowsort
SELECT + ( - 58 ) AS col2
----
-58

query I rowsort
SELECT - - 29 * 45
----
1305

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT ALL + 49 * + MIN( DISTINCT - - 92 ) AS col2
----
4508

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL + 49 * + MIN ( DISTINCT - - 92 ) AS col2
----
4508

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT ALL + COALESCE ( COUNT( * ), - 84 * + + CASE - ( - + 88 ) WHEN 82 * 53 * + 61 * - 5 THEN + + COUNT( * ) * 91 + + 23 END + - 62, + - 24 * + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL + COALESCE ( COUNT ( * ), - 84 * + + CASE - ( - + 88 ) WHEN 82 * 53 * + 61 * - 5 THEN + + COUNT ( * ) * 91 + + 23 END + - 62, + - 24 * + - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT DISTINCT - ( - 92 ) * + + COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-5886
SELECT DISTINCT - ( - 92 ) * + + COUNT ( * ) AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5887
SELECT + CAST( + + 91 AS SIGNED ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-5887
SELECT + CAST ( + + 91 AS INTEGER ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT + 93 * - MIN( - + 84 )
----
7812

skipif mysql # not compatible
query I rowsort label-5888
SELECT + 93 * - MIN ( - + 84 )
----
7812

query II rowsort
SELECT - 99 * - 56 AS col0, - 33 + + 32
----
5544
-1

query I rowsort
SELECT - 63 * - 98
----
6174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5891
SELECT + 68 * + + 93 * + 16 * + + 60 AS col0, - CAST( 44 AS SIGNED )
----
6071040
-44

skipif mysql # not compatible
query II rowsort label-5891
SELECT + 68 * + + 93 * + 16 * + + 60 AS col0, - CAST ( 44 AS INTEGER )
----
6071040
-44

query I rowsort
SELECT ALL - CASE 24 WHEN 28 + + 64 * - 23 + + 16 THEN + 44 * + 68 + + 53 END * 43 + - - 46 * - - 70
----
NULL

query II rowsort
SELECT ALL ( + 53 ) + ( 42 ) col0, - 23 AS col2
----
95
-23

query II rowsort
SELECT - 33 - CASE WHEN NOT - 5 IS NOT NULL THEN + AVG ( + + 28 ) ELSE NULL END * + 15 * - + ( - + 58 ) + + 67 + - 1 * - + 43, + 20 AS col1
----
NULL
20

query I rowsort
SELECT - CASE - 69 WHEN + - 29 THEN NULL WHEN - - 13 + - 17 + + 58 * 60 - + + 65 THEN - 71 * 34 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5896
SELECT DISTINCT - ( + + 63 ) / - COUNT( * ) + - MIN( DISTINCT + 75 ) + - - 20 + - CAST( NULL AS SIGNED ) AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5896
SELECT DISTINCT - ( + + 63 ) / - COUNT ( * ) + - MIN ( DISTINCT + 75 ) + - - 20 + - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5897
SELECT ALL CAST( - + 22 AS SIGNED ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL CAST ( - + 22 AS INTEGER ) AS col1
----
-22

query I rowsort
SELECT - 97 + + 67
----
-30

query I rowsort
SELECT + 2 * 35 * + 95
----
6650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5900
SELECT CAST( + 34 AS SIGNED ) col1
----
34

skipif mysql # not compatible
query I rowsort label-5900
SELECT CAST ( + 34 AS INTEGER ) col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5901
SELECT + - CASE - + ( 63 ) WHEN + 4 - - 91 THEN - 28 + + COUNT( * ) + CAST( + + 74 AS SIGNED ) + + 28 ELSE + CASE 79 WHEN + 7 / - 15 + + + 80 * + NULLIF ( + - 54, - - 60 ) * 59 + - 77 THEN - ( + NULLIF ( 40, - COALESCE ( 18, + 85 ) * + 44 ) ) * + ( + + 74 ) WHEN 57 + - COUNT( * ) * - 14 THEN NULL ELSE NULL END + - CASE + NULLIF ( - COALESCE ( - CASE WHEN NOT ( + COUNT( * ) ) IN ( 59 ) THEN NULL ELSE + CASE WHEN NULL IN ( - 49 ) THEN 28 * 28 END + 44 END, COUNT( * ), ( NULLIF ( - 62, 14 ) ) ), + ( - 13 ) / + MAX( 76 * - 79 ) ) WHEN - 67 + + ( COUNT( * ) ) THEN + CASE 83 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + 91 THEN - COUNT( * ) * + SUM( DISTINCT CAST( 11 AS DECIMAL ) ) WHEN COUNT( 78 ) + 45 THEN NULL ELSE - COUNT( * ) END WHEN + 99 THEN - 49 ELSE NULL END END + 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5901
SELECT + - CASE - + ( 63 ) WHEN + 4 - - 91 THEN - 28 + + COUNT ( * ) + CAST ( + + 74 AS INTEGER ) + + 28 ELSE + CASE 79 WHEN + 7 / - 15 + + + 80 * + NULLIF ( + - 54, - - 60 ) * 59 + - 77 THEN - ( + NULLIF ( 40, - COALESCE ( 18, + 85 ) * + 44 ) ) * + ( + + 74 ) WHEN 57 + - COUNT ( * ) * - 14 THEN NULL ELSE NULL END + - CASE + NULLIF ( - COALESCE ( - CASE WHEN NOT ( + COUNT ( * ) ) IN ( 59 ) THEN NULL ELSE + CASE WHEN NULL IN ( - 49 ) THEN 28 * 28 END + 44 END, COUNT ( * ), ( NULLIF ( - 62, 14 ) ) ), + ( - 13 ) / + MAX ( 76 * - 79 ) ) WHEN - 67 + + ( COUNT ( * ) ) THEN + CASE 83 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 91 THEN - COUNT ( * ) * + SUM ( DISTINCT CAST ( 11 AS REAL ) ) WHEN COUNT ( 78 ) + 45 THEN NULL ELSE - COUNT ( * ) END WHEN + 99 THEN - 49 ELSE NULL END END + 22 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5902
SELECT + MAX( 8 ) - + 71 + - COUNT( * ) AS col2, + 75 DIV + 44
----
-64
1

skipif mysql # not compatible
query II rowsort label-5902
SELECT + MAX ( 8 ) - + 71 + - COUNT ( * ) AS col2, + 75 / + 44
----
-64
1

query I rowsort
SELECT - - ( 17 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5904
SELECT ALL + CAST( 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL + CAST ( 86 AS INTEGER )
----
86

query II rowsort
SELECT DISTINCT - 45 - - - 87, 72 AS col2
----
-132
72

query I rowsort
SELECT + - 34 * + 35 * 83 AS col1
----
-98770

query I rowsort
SELECT DISTINCT - + 10 - 74 - 19 + 56 * - ( + 33 ) AS col2
----
-1951

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT ALL CASE + + COUNT( ALL - - 35 ) WHEN MIN( DISTINCT 51 ) * + 91 + + + 68 / 61 THEN NULL WHEN + COUNT( * ) THEN - 30 + + 14 - 38 ELSE - 80 END AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL CASE + + COUNT ( ALL - - 35 ) WHEN MIN ( DISTINCT 51 ) * + 91 + + + 68 / 61 THEN NULL WHEN + COUNT ( * ) THEN - 30 + + 14 - 38 ELSE - 80 END AS col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5909
SELECT DISTINCT 8 - NULLIF ( + 29, - + NULLIF ( + 99, + ( CAST( NULL AS SIGNED ) ) ) ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT 8 - NULLIF ( + 29, - + NULLIF ( + 99, + ( CAST ( NULL AS INTEGER ) ) ) ) AS col0
----
-21

query I rowsort
SELECT + 82 * - ( - - 47 ) AS col1
----
-3854

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5911
SELECT - 26 DIV + COUNT( * ) * + - COUNT( DISTINCT - 56 ) - - 50
----
76

skipif mysql # not compatible
query I rowsort label-5911
SELECT - 26 / + COUNT ( * ) * + - COUNT ( DISTINCT - 56 ) - - 50
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5912
SELECT DISTINCT COALESCE ( 51, - - COUNT( * ) + ( 36 ), - COUNT( * ) ) DIV + 49 - + 15
----
-14

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT COALESCE ( 51, - - COUNT ( * ) + ( 36 ), - COUNT ( * ) ) / + 49 - + 15
----
-14

query II rowsort
SELECT + + 7 * + 74 AS col0, + 34 col0
----
518
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5914
SELECT DISTINCT 97 * - - 30 * 62 DIV - 31
----
-5820

skipif mysql # not compatible
query I rowsort label-5914
SELECT DISTINCT 97 * - - 30 * 62 / - 31
----
-5820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5915
SELECT DISTINCT + 69 DIV + - MIN( ALL + 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-5915
SELECT DISTINCT + 69 / + - MIN ( ALL + 63 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5916
SELECT + + CAST( COUNT( * ) AS SIGNED ) DIV 69 + 60
----
60

skipif mysql # not compatible
query I rowsort label-5916
SELECT + + CAST ( COUNT ( * ) AS INTEGER ) / 69 + 60
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5917
SELECT 41 DIV + - 75 - SUM( - 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-5917
SELECT 41 / + - 75 - SUM ( - 70 ) AS col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5918
SELECT COUNT( ALL - CASE 58 WHEN + + 75 THEN 86 + ( - 3 ) + + - 18 - - 79 ELSE NULL END ) DIV - 5 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5918
SELECT COUNT ( ALL - CASE 58 WHEN + + 75 THEN 86 + ( - 3 ) + + - 18 - - 79 ELSE NULL END ) / - 5 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5919
SELECT 17 DIV + + COALESCE ( 98, + 87 )
----
0

skipif mysql # not compatible
query I rowsort label-5919
SELECT 17 / + + COALESCE ( 98, + 87 )
----
0

query I rowsort
SELECT ALL 5 + 86 + + 93
----
184

query I rowsort
SELECT 98 + + - 69 + + + 50 + - 10 AS col1
----
69

query I rowsort
SELECT 43 - + - 58 AS col0
----
101

query I rowsort
SELECT 42 + + 50
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5924
SELECT ALL + CAST( - 41 AS SIGNED ) + + - 48 + 83 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL + CAST ( - 41 AS INTEGER ) + + - 48 + 83 AS col1
----
-6

query I rowsort
SELECT 29 + - + 72 AS col1
----
-43

query I rowsort
SELECT 32 * + 81 * 19
----
49248

query I rowsort
SELECT 68 + + 34 + + 98 AS col1
----
200

onlyif mysql # aggregate syntax: 
query II rowsort label-5928
SELECT NULLIF ( - 63, + + COUNT( * ) ), 33 AS col2
----
-63
33

skipif mysql # not compatible
query II rowsort label-5928
SELECT NULLIF ( - 63, + + COUNT ( * ) ), 33 AS col2
----
-63
33

query II rowsort
SELECT 0 + + - ( - 85 ) AS col1, - 33 AS col2
----
85
-33

query I rowsort
SELECT - 44 * - + 79
----
3476

query I rowsort
SELECT DISTINCT + ( - 68 ) AS col0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-5932
SELECT 48 DIV - - 22
----
2

skipif mysql # not compatible
query I rowsort label-5932
SELECT 48 / - - 22
----
2

query I rowsort
SELECT + 66 * - 40
----
-2640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5934
SELECT ALL + 92 DIV - + NULLIF ( + + COUNT( * ), + 57 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL + 92 / - + NULLIF ( + + COUNT ( * ), + 57 ) AS col1
----
-92

query II rowsort
SELECT + ( + + 97 ) - + - 12 AS col1, - 49 * + 0 AS col0
----
109
0

query I rowsort
SELECT COALESCE ( + 89, 54 ) * 26 AS col0
----
2314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5937
SELECT CAST( NULL AS SIGNED ) + - 72 * - 47 + 68 + - 26 * - + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5937
SELECT CAST ( NULL AS INTEGER ) + - 72 * - 47 + 68 + - 26 * - + 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT 69 + + - COUNT( * ) + - + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-5938
SELECT 69 + + - COUNT ( * ) + - + COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT DISTINCT - 0 * - + COUNT( ( - + 12 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT - 0 * - + COUNT ( ( - + 12 ) ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5940
SELECT 15 + ( ( - 0 ) ) - - ( + + 73 ) DIV + + 96 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5940
SELECT 15 + ( ( - 0 ) ) - - ( + + 73 ) / + + 96 AS col1
----
15

query III rowsort
SELECT DISTINCT - 76, + ( + - 42 ) AS col1, - + 70 AS col1
----
-76
-42
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT DISTINCT - 40 * + + 38 + + - MAX( ALL 81 ) + + + 35 * + + 98
----
1829

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT - 40 * + + 38 + + - MAX ( ALL 81 ) + + + 35 * + + 98
----
1829

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT DISTINCT + COUNT( * ) + - 92 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-5943
SELECT DISTINCT + COUNT ( * ) + - 92 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5944
SELECT ALL + 15 + + - ( - - 48 ) + - 89 + + 71 AS col0, COUNT( * ) - 11 AS col1
----
-51
-10

skipif mysql # not compatible
query II rowsort label-5944
SELECT ALL + 15 + + - ( - - 48 ) + - 89 + + 71 AS col0, COUNT ( * ) - 11 AS col1
----
-51
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5945
SELECT DISTINCT 64 + CAST( + - 51 AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT 64 + CAST ( + - 51 AS INTEGER )
----
13

query I rowsort
SELECT 98 * + 54 AS col2
----
5292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5947
SELECT ALL AVG ( - + ( - 91 ) ) / + ( + 70 ) * - - CAST( 9 AS DECIMAL ) + - + CASE + - CASE + 35 WHEN - ( 51 ) * - - 38 + - - 92 / - CAST( NULL AS SIGNED ) - 13 * + + 4 THEN + - 73 ELSE + 15 END WHEN + COUNT( * ) * 70 * - + 3 * - + COUNT( * ) THEN 69 WHEN - 54 THEN NULL WHEN + 35 THEN - 91 END + - - 25 * 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL AVG ( - + ( - 91 ) ) / + ( + 70 ) * - - CAST ( 9 AS REAL ) + - + CASE + - CASE + 35 WHEN - ( 51 ) * - - 38 + - - 92 / - CAST ( NULL AS INTEGER ) - 13 * + + 4 THEN + - 73 ELSE + 15 END WHEN + COUNT ( * ) * 70 * - + 3 * - + COUNT ( * ) THEN 69 WHEN - 54 THEN NULL WHEN + 35 THEN - 91 END + - - 25 * 88 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT DISTINCT + 32 + 97 + MIN( ( + 70 ) ) + - 52 * + 30
----
-1361

skipif mysql # not compatible
query I rowsort label-5948
SELECT DISTINCT + 32 + 97 + MIN ( ( + 70 ) ) + - 52 * + 30
----
-1361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5949
SELECT COALESCE ( - 65, ( + - COUNT( + 3 ) ), - COUNT( * ) ) * - 77 * - 35 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT COALESCE ( - 65, ( + - COUNT ( + 3 ) ), - COUNT ( * ) ) * - 77 * - 35 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5950
SELECT ALL AVG ( - CAST( NULL AS SIGNED ) ) / ( + + MIN( ( - 3 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL AVG ( - CAST ( NULL AS INTEGER ) ) / ( + + MIN ( ( - 3 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT COUNT( * ) - - - 21 col2
----
-20

skipif mysql # not compatible
query I rowsort label-5951
SELECT COUNT ( * ) - - - 21 col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT ( - - 13 ) * - COUNT( * ) + + - 87
----
-100

skipif mysql # not compatible
query I rowsort label-5952
SELECT ( - - 13 ) * - COUNT ( * ) + + - 87
----
-100

query II rowsort
SELECT 97, + 26 AS col0
----
97
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5954
SELECT 23 - + ( 77 ) DIV ( - SUM( ALL - 39 ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-5954
SELECT 23 - + ( 77 ) / ( - SUM ( ALL - 39 ) ) AS col0
----
22

query II rowsort
SELECT - 85 * 37 * + 62 - 87, 17 col1
----
-195077
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5956
SELECT 68 DIV + + 79
----
0

skipif mysql # not compatible
query I rowsort label-5956
SELECT 68 / + + 79
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5957
SELECT ALL 85 DIV - NULLIF ( - 49, 16 ) AS col2, + 96 * + 9 * - + 66 * - 65 * + ( - COUNT( 89 ) )
----
1
-3706560

skipif mysql # not compatible
query II rowsort label-5957
SELECT ALL 85 / - NULLIF ( - 49, 16 ) AS col2, + 96 * + 9 * - + 66 * - 65 * + ( - COUNT ( 89 ) )
----
1
-3706560

onlyif mysql # DIV for integer division: 
query II rowsort label-5958
SELECT DISTINCT 33, 51 DIV 12 AS col0
----
33
4

skipif mysql # not compatible
query II rowsort label-5958
SELECT DISTINCT 33, 51 / 12 AS col0
----
33
4

query II rowsort
SELECT ALL 92 AS col1, 19 * + 86 AS col1
----
92
1634

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT MAX( - 17 ) - - 49 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5960
SELECT MAX ( - 17 ) - - 49 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT ALL - COALESCE ( - - 79, COUNT( * ) + + + 87 + - + 99 + + 32 * + - 63 * + NULLIF ( 94, + + 88 * + 15 - + 71 * + 21 ) + - - COUNT( - 18 ) ) * + 54
----
-4266

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL - COALESCE ( - - 79, COUNT ( * ) + + + 87 + - + 99 + + 32 * + - 63 * + NULLIF ( 94, + + 88 * + 15 - + 71 * + 21 ) + - - COUNT ( - 18 ) ) * + 54
----
-4266

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5962
SELECT DISTINCT - 96 * - CAST( NULL AS DECIMAL ) * - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT DISTINCT - 96 * - CAST ( NULL AS REAL ) * - 22 AS col0
----
NULL

query II rowsort
SELECT 72 AS col0, - 46 AS col0
----
72
-46

query I rowsort
SELECT ALL + 62 * - - 3 AS col1
----
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5965
SELECT CAST( NULLIF ( + + 48, + - 87 + - COALESCE ( + 35, + - 39 ) / + COUNT( 10 ) * 29 ) AS SIGNED ) - - 47
----
95

skipif mysql # not compatible
query I rowsort label-5965
SELECT CAST ( NULLIF ( + + 48, + - 87 + - COALESCE ( + 35, + - 39 ) / + COUNT ( 10 ) * 29 ) AS INTEGER ) - - 47
----
95

query II rowsort
SELECT ALL + 96, 40 AS col1
----
96
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5967
SELECT ALL + + CASE + 72 WHEN - 98 - - CAST( + CASE + + 26 WHEN + 27 THEN - COALESCE ( - 58, + 64 ) * + 39 + 90 * - CAST( - + 72 AS SIGNED ) + - - 13 - - NULLIF ( COALESCE ( 18, - 71 * + 90 ), + - 21 + + 64 * - CASE + 60 WHEN + + COUNT( * ) THEN + + 64 + - SUM( + 4 ) WHEN - + 34 / 21 - 67 THEN NULL END ) + 6 WHEN 61 THEN NULL END AS DECIMAL ) THEN NULL WHEN 77 * + 53 THEN 31 * + ( + 96 ) + - 93 ELSE NULL END + + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL + + CASE + 72 WHEN - 98 - - CAST ( + CASE + + 26 WHEN + 27 THEN - COALESCE ( - 58, + 64 ) * + 39 + 90 * - CAST ( - + 72 AS INTEGER ) + - - 13 - - NULLIF ( COALESCE ( 18, - 71 * + 90 ), + - 21 + + 64 * - CASE + 60 WHEN + + COUNT ( * ) THEN + + 64 + - SUM ( + 4 ) WHEN - + 34 / 21 - 67 THEN NULL END ) + 6 WHEN 61 THEN NULL END AS REAL ) THEN NULL WHEN 77 * + 53 THEN 31 * + ( + 96 ) + - 93 ELSE NULL END + + 23 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5968
SELECT DISTINCT - CAST( 49 AS SIGNED ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-5968
SELECT DISTINCT - CAST ( 49 AS INTEGER ) AS col2
----
-49

query II rowsort
SELECT - 36 col2, - 44 * + 94 AS col1
----
-36
-4136

onlyif mysql # aggregate syntax: 
query II rowsort label-5970
SELECT - MIN( - 70 ) + + + ( + 70 ) AS col2, 7 + - - 1 + - - 91 + - + COUNT( * )
----
140
98

skipif mysql # not compatible
query II rowsort label-5970
SELECT - MIN ( - 70 ) + + + ( + 70 ) AS col2, 7 + - - 1 + - - 91 + - + COUNT ( * )
----
140
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5971
SELECT - + 25 DIV + + 31 - 10
----
-10

skipif mysql # not compatible
query I rowsort label-5971
SELECT - + 25 / + + 31 - 10
----
-10

query I rowsort
SELECT ALL + + 75 + + 39
----
114

query II rowsort
SELECT - 6 - + - NULLIF ( + + 90, 69 * AVG ( 22 ) ) AS col1, 43 AS col0
----
84
43

query I rowsort
SELECT - + 81 * 22
----
-1782

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5975
SELECT + - CAST( NULL AS DECIMAL ), 5 col1
----
NULL
5

skipif mysql # not compatible
query II rowsort label-5975
SELECT + - CAST ( NULL AS REAL ), 5 col1
----
NULL
5

query I rowsort
SELECT - 33 + - 21 * + 88
----
-1881

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5977
SELECT CASE - 95 WHEN + CAST( - ( - COALESCE ( + ( CAST( NULL AS SIGNED ) ), COUNT( + 56 ) ) ) AS SIGNED ) THEN 88 * - + 12 / - 98 ELSE - 2 * + 19 + + 21 END AS col1, COUNT( * ) AS col0
----
-17
1

skipif mysql # not compatible
query II rowsort label-5977
SELECT CASE - 95 WHEN + CAST ( - ( - COALESCE ( + ( CAST ( NULL AS INTEGER ) ), COUNT ( + 56 ) ) ) AS INTEGER ) THEN 88 * - + 12 / - 98 ELSE - 2 * + 19 + + 21 END AS col1, COUNT ( * ) AS col0
----
-17
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5978
SELECT DISTINCT - CASE - - 57 WHEN + 96 THEN + - 98 / + 89 * + - 95 ELSE NULL END * 9 + + 52, + ( - 85 ) * + 16 * 74 + + COUNT( * ) + + 13 AS col0
----
NULL
-100626

skipif mysql # not compatible
query II rowsort label-5978
SELECT DISTINCT - CASE - - 57 WHEN + 96 THEN + - 98 / + 89 * + - 95 ELSE NULL END * 9 + + 52, + ( - 85 ) * + 16 * 74 + + COUNT ( * ) + + 13 AS col0
----
NULL
-100626

query I rowsort
SELECT DISTINCT 1 * + 14 + - - 93 - - 97 * - 75 AS col1
----
-7168

query I rowsort
SELECT ALL + 32 * + - 53 + + 38
----
-1658

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT COALESCE ( - SUM( + - 66 ), + 35 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-5981
SELECT COALESCE ( - SUM ( + - 66 ), + 35 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT + 33 + - COUNT( * ) * - 38
----
71

skipif mysql # not compatible
query I rowsort label-5982
SELECT + 33 + - COUNT ( * ) * - 38
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-5983
SELECT + MIN( ALL - 94 ), 21 AS col2
----
-94
21

skipif mysql # not compatible
query II rowsort label-5983
SELECT + MIN ( ALL - 94 ), 21 AS col2
----
-94
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5984
SELECT - NULLIF ( COUNT( * ), - + 23 ) * + + NULLIF ( COUNT( * ), 5 - - 83 ) + CAST( NULL AS SIGNED ) + - 37 * ( + 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5984
SELECT - NULLIF ( COUNT ( * ), - + 23 ) * + + NULLIF ( COUNT ( * ), 5 - - 83 ) + CAST ( NULL AS INTEGER ) + - 37 * ( + 4 )
----
NULL

query I rowsort
SELECT + 19 * - 76 - + - 64
----
-1380

query I rowsort
SELECT + COALESCE ( - 17, + 61, - 10 )
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5987
SELECT ALL 44 DIV - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL 44 / - COUNT ( * )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5988
SELECT + MAX( - 67 ) + - + CAST( - 54 AS SIGNED ) * - 50 * - 59 - + + 53 AS col2
----
159180

skipif mysql # not compatible
query I rowsort label-5988
SELECT + MAX ( - 67 ) + - + CAST ( - 54 AS INTEGER ) * - 50 * - 59 - + + 53 AS col2
----
159180

onlyif mysql # aggregate syntax: 
query II rowsort label-5989
SELECT ALL + ( - + SUM( + 95 ) ), COUNT( * ) AS col1
----
-95
1

skipif mysql # not compatible
query II rowsort label-5989
SELECT ALL + ( - + SUM ( + 95 ) ), COUNT ( * ) AS col1
----
-95
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5990
SELECT DISTINCT - 45 * + + 37 - - 54 * + CAST( + - 25 AS SIGNED ) * + MAX( ALL + 41 ) AS col1, 26 col1
----
-57015
26

skipif mysql # not compatible
query II rowsort label-5990
SELECT DISTINCT - 45 * + + 37 - - 54 * + CAST ( + - 25 AS INTEGER ) * + MAX ( ALL + 41 ) AS col1, 26 col1
----
-57015
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5991
SELECT ALL + CAST( + + 18 AS SIGNED ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL + CAST ( + + 18 AS INTEGER ) AS col0
----
18

query I rowsort
SELECT 56 * - 22 + + - 53 AS col1
----
-1285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5993
SELECT ALL CAST( NULL AS SIGNED ) * 47 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL CAST ( NULL AS INTEGER ) * 47 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5994
SELECT + ( 7 ) + + + 14, 87 * - - 82 + + - ( + 26 ) + - COUNT( * ) AS col2
----
21
7107

skipif mysql # not compatible
query II rowsort label-5994
SELECT + ( 7 ) + + + 14, 87 * - - 82 + + - ( + 26 ) + - COUNT ( * ) AS col2
----
21
7107

query I rowsort
SELECT + ( 15 ) * - 4
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-5996
SELECT DISTINCT 91 * - COUNT( * ) * - 8 AS col1, + 24 AS col0
----
728
24

skipif mysql # not compatible
query II rowsort label-5996
SELECT DISTINCT 91 * - COUNT ( * ) * - 8 AS col1, + 24 AS col0
----
728
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5997
SELECT + 35 * - - 22 + - 82 DIV - 26
----
773

skipif mysql # not compatible
query I rowsort label-5997
SELECT + 35 * - - 22 + - 82 / - 26
----
773

query I rowsort
SELECT + + 97 + 53 AS col0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT ALL + SUM( DISTINCT + 61 ) + - 68 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5999
SELECT ALL + SUM ( DISTINCT + 61 ) + - 68 AS col0
----
-7

query II rowsort
SELECT - ( - 26 ) AS col1, + 66 AS col1
----
26
66

onlyif mysql # aggregate syntax: 
query II rowsort label-6001
SELECT ALL MIN( ALL - 60 ) AS col0, 70 * - 40 * 96 * - 86 AS col0
----
-60
23116800

skipif mysql # not compatible
query II rowsort label-6001
SELECT ALL MIN ( ALL - 60 ) AS col0, 70 * - 40 * 96 * - 86 AS col0
----
-60
23116800

onlyif mysql # DIV for integer division: 
query I rowsort label-6002
SELECT DISTINCT COALESCE ( 15, - 20 ) + - 96 + 34 DIV + 21 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT COALESCE ( 15, - 20 ) + - 96 + 34 / + 21 AS col2
----
-80

query I rowsort
SELECT DISTINCT 7 + - 66 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT - MIN( NULLIF ( - 42, - 28 - - - 6 ) ) + + 44
----
86

skipif mysql # not compatible
query I rowsort label-6004
SELECT - MIN ( NULLIF ( - 42, - 28 - - - 6 ) ) + + 44
----
86

query II rowsort
SELECT ALL 21 + - - 96 AS col2, 37
----
117
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6006
SELECT ALL + 90 + + CAST( NULL AS SIGNED ) AS col2, + 30 - + 87 - - 93 * - 78 AS col1
----
NULL
-7311

skipif mysql # not compatible
query II rowsort label-6006
SELECT ALL + 90 + + CAST ( NULL AS INTEGER ) AS col2, + 30 - + 87 - - 93 * - 78 AS col1
----
NULL
-7311

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6007
SELECT - + CAST( - NULLIF ( + - CAST( NULL AS SIGNED ), 56 ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT - + CAST ( - NULLIF ( + - CAST ( NULL AS INTEGER ), 56 ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6008
SELECT + 4 + 15, COUNT( * ) * + 71 col1
----
19
71

skipif mysql # not compatible
query II rowsort label-6008
SELECT + 4 + 15, COUNT ( * ) * + 71 col1
----
19
71

query I rowsort
SELECT + 8 - - + 94
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6010
SELECT - 58 + - - 27 DIV + 30 * - 86 * - - COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-6010
SELECT - 58 + - - 27 / + 30 * - 86 * - - COUNT ( * ) AS col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6011
SELECT ALL - 61 / - + ( COUNT( * ) ) - - - CAST( NULL AS SIGNED ) - + + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL - 61 / - + ( COUNT ( * ) ) - - - CAST ( NULL AS INTEGER ) - + + 17 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6012
SELECT ALL + NULLIF ( + 74, CAST( - 28 AS SIGNED ) ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL + NULLIF ( + 74, CAST ( - 28 AS INTEGER ) ) AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6013
SELECT CAST( + NULLIF ( 38, + - ( COALESCE ( - 56, - - 68 ) ) ) AS SIGNED ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-6013
SELECT CAST ( + NULLIF ( 38, + - ( COALESCE ( - 56, - - 68 ) ) ) AS INTEGER ) AS col0
----
38

query I rowsort
SELECT - 86 * - + 6 AS col2
----
516

query I rowsort
SELECT - 4 + + 73 + 42 * - 57 AS col1
----
-2325

query I rowsort
SELECT DISTINCT - 51 * + 12 * 93 col0
----
-56916

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT - 50 * - + COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-6017
SELECT - 50 * - + COUNT ( * ) AS col2
----
50

query I rowsort
SELECT DISTINCT + ( 14 ) * + + 11 * 43 AS col0
----
6622

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT - MAX( ALL 20 ) * - 38 + - 59 - + + 75 AS col0
----
626

skipif mysql # not compatible
query I rowsort label-6019
SELECT - MAX ( ALL 20 ) * - 38 + - 59 - + + 75 AS col0
----
626

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT - NULLIF ( + + 75, 24 * + + ( ( - 49 ) ) + - COALESCE ( + COUNT( * ), + 91, - 26 ) + + COALESCE ( - 43, + 49 + + + 67 ) ) - + + ( 70 ) + 44 AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-6020
SELECT - NULLIF ( + + 75, 24 * + + ( ( - 49 ) ) + - COALESCE ( + COUNT ( * ), + 91, - 26 ) + + COALESCE ( - 43, + 49 + + + 67 ) ) - + + ( 70 ) + 44 AS col1
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6021
SELECT + CAST( NULL AS SIGNED ) * + - 33 / - 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6021
SELECT + CAST ( NULL AS INTEGER ) * + - 33 / - 47 AS col2
----
NULL

query I rowsort
SELECT - 63 - CASE ( - 65 ) WHEN 47 THEN NULL ELSE + ( + 5 ) END
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT + COUNT( * ) * 53 + + 40 + - 31
----
62

skipif mysql # not compatible
query I rowsort label-6023
SELECT + COUNT ( * ) * 53 + + 40 + - 31
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6024
SELECT - - ( CAST( + 45 AS SIGNED ) ) DIV NULLIF ( COUNT( * ), - COUNT( * ) + - 10 + - - 74 + + + COUNT( - 77 ) DIV - 62 * 11 ) * 78 + + NULLIF ( - 2, 49 ) + - 46 AS col1
----
3462

skipif mysql # not compatible
query I rowsort label-6024
SELECT - - ( CAST ( + 45 AS INTEGER ) ) / NULLIF ( COUNT ( * ), - COUNT ( * ) + - 10 + - - 74 + + + COUNT ( - 77 ) / - 62 * 11 ) * 78 + + NULLIF ( - 2, 49 ) + - 46 AS col1
----
3462

onlyif mysql # DIV for integer division: 
query I rowsort label-6025
SELECT - - COALESCE ( - + 77, + 89 + 94 * - 11, - 27 DIV + + 70 )
----
-77

skipif mysql # not compatible
query I rowsort label-6025
SELECT - - COALESCE ( - + 77, + 89 + 94 * - 11, - 27 / + + 70 )
----
-77

query I rowsort
SELECT ALL - + ( - + 9 ) + - 9
----
0

query I rowsort
SELECT + 13 - + + 96 AS col2
----
-83

query I rowsort
SELECT ALL 52 * - + 59
----
-3068

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6029
SELECT DISTINCT 91 + 39 + - + 73 * + 63 * + CAST( - 55 AS SIGNED ) + - 12 + + - 44 AS col1, 56 AS col0
----
253019
56

skipif mysql # not compatible
query II rowsort label-6029
SELECT DISTINCT 91 + 39 + - + 73 * + 63 * + CAST ( - 55 AS INTEGER ) + - 12 + + - 44 AS col1, 56 AS col0
----
253019
56

query II rowsort
SELECT ALL 76 col0, 67
----
76
67

query I rowsort
SELECT 62 + + 62
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6032
SELECT ALL 9 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL 9 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6033
SELECT COALESCE ( - 86, + COUNT( * ) ) AS col1, 46 AS col1
----
-86
46

skipif mysql # not compatible
query II rowsort label-6033
SELECT COALESCE ( - 86, + COUNT ( * ) ) AS col1, 46 AS col1
----
-86
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT DISTINCT 36 + MAX( - 99 ) * + 30 * + 18 col1
----
-53424

skipif mysql # not compatible
query I rowsort label-6034
SELECT DISTINCT 36 + MAX ( - 99 ) * + 30 * + 18 col1
----
-53424

query I rowsort
SELECT 41 + - + 36 + ( + 53 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT + MIN( - 30 ) - 18 * COUNT( * ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-6036
SELECT + MIN ( - 30 ) - 18 * COUNT ( * ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-6037
SELECT DISTINCT + 46 AS col0, + 28 + - COUNT( * ) + 66 col0
----
46
93

skipif mysql # not compatible
query II rowsort label-6037
SELECT DISTINCT + 46 AS col0, + 28 + - COUNT ( * ) + 66 col0
----
46
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT 13 + + MAX( DISTINCT 97 ) AS col0
----
110

skipif mysql # not compatible
query I rowsort label-6038
SELECT 13 + + MAX ( DISTINCT 97 ) AS col0
----
110

query I rowsort
SELECT DISTINCT 34 * + + 2 * - 89
----
-6052

query I rowsort
SELECT 26 * - + 45 AS col0
----
-1170

query II rowsort
SELECT 61 * - + 12 AS col0, 35 AS col1
----
-732
35

query I rowsort
SELECT DISTINCT 98 * - 17 AS col2
----
-1666

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT - COUNT( * ) * + 88 - + - 52
----
-36

skipif mysql # not compatible
query I rowsort label-6043
SELECT - COUNT ( * ) * + 88 - + - 52
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6044
SELECT 51 * + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6044
SELECT 51 * + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 33 * + - 43
----
-1419

onlyif mysql # DIV for integer division: 
query I rowsort label-6046
SELECT 92 DIV 41 * + 95 - 55 AS col1
----
135

skipif mysql # not compatible
query I rowsort label-6046
SELECT 92 / 41 * + 95 - 55 AS col1
----
135

query I rowsort
SELECT 77 + NULLIF ( + 76, + 47 ) * + 33 AS col0
----
2585

query I rowsort
SELECT 93 * - - 47 + + 73 AS col0
----
4444

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6049
SELECT DISTINCT - 20 DIV + - COUNT( * ) col1, + COUNT( * ) + 91 * 23 * - 23
----
20
-48138

skipif mysql # not compatible
query II rowsort label-6049
SELECT DISTINCT - 20 / + - COUNT ( * ) col1, + COUNT ( * ) + 91 * 23 * - 23
----
20
-48138

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT + 61 + COUNT( * ) * 88 * - - COUNT( * ) AS col0
----
149

skipif mysql # not compatible
query I rowsort label-6050
SELECT + 61 + COUNT ( * ) * 88 * - - COUNT ( * ) AS col0
----
149

query I rowsort
SELECT ALL + 84 + - 52 * - 26 AS col1
----
1436

query I rowsort
SELECT ALL - - 36 col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6053
SELECT ALL 41 + - CAST( - 85 AS SIGNED ) * + - COUNT( * ) + ( + 27 )
----
-17

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL 41 + - CAST ( - 85 AS INTEGER ) * + - COUNT ( * ) + ( + 27 )
----
-17

query I rowsort
SELECT ALL - 23 + + 93 col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT 30 + + COUNT( * ) - 3
----
28

skipif mysql # not compatible
query I rowsort label-6055
SELECT 30 + + COUNT ( * ) - 3
----
28

query I rowsort
SELECT - - COALESCE ( + COALESCE ( + 9, - 68 * 53, - 6, 37 ), 39 * + + 81 ) AS col1
----
9

query I rowsort
SELECT + 77 * + - 63 + - 38 - + + ( 22 ) * - 6 + - 89
----
-4846

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT COUNT( * ) * 33 + + COUNT( DISTINCT - - 45 ) + 14
----
48

skipif mysql # not compatible
query I rowsort label-6058
SELECT COUNT ( * ) * 33 + + COUNT ( DISTINCT - - 45 ) + 14
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6059
SELECT + CAST( - - 51 AS SIGNED ) + - 86 - - + ( - ( + 53 ) ) + 59 * - - 31 * + 71 AS col2
----
129771

skipif mysql # not compatible
query I rowsort label-6059
SELECT + CAST ( - - 51 AS INTEGER ) + - 86 - - + ( - ( + 53 ) ) + 59 * - - 31 * + 71 AS col2
----
129771

query I rowsort
SELECT DISTINCT - + 56 - 48
----
-104

query II rowsort
SELECT ALL + 7 - - 90 AS col2, 53 AS col1
----
97
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT 87 * ( + 31 ) * COUNT( * ) * + 79
----
213063

skipif mysql # not compatible
query I rowsort label-6062
SELECT 87 * ( + 31 ) * COUNT ( * ) * + 79
----
213063

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT ALL MAX( ALL + + 6 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL MAX ( ALL + + 6 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT + COUNT( * ) + - 72
----
-71

skipif mysql # not compatible
query I rowsort label-6064
SELECT + COUNT ( * ) + - 72
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-6065
SELECT 79 DIV - 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6065
SELECT 79 / - 97 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT DISTINCT SUM( ALL + - 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-6066
SELECT DISTINCT SUM ( ALL + - 12 ) AS col0
----
-12

query II rowsort
SELECT - 97, 57 AS col0
----
-97
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT 58 + + ( 46 ) - - - COALESCE ( + + 74, - 0, - ( + CASE - 14 WHEN COUNT( + - 52 ) THEN NULL WHEN ( + + 89 ) + - - 57 + + 26 THEN NULL ELSE - 31 END ) ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-6068
SELECT 58 + + ( 46 ) - - - COALESCE ( + + 74, - 0, - ( + CASE - 14 WHEN COUNT ( + - 52 ) THEN NULL WHEN ( + + 89 ) + - - 57 + + 26 THEN NULL ELSE - 31 END ) ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT DISTINCT SUM( DISTINCT - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT SUM ( DISTINCT - 23 )
----
-23

query I rowsort
SELECT 48 + + 8 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT SUM( - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-6071
SELECT SUM ( - 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT SUM( - COALESCE ( - 50, - + 2 ) )
----
50

skipif mysql # not compatible
query I rowsort label-6072
SELECT SUM ( - COALESCE ( - 50, - + 2 ) )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6073
SELECT + CASE + 95 WHEN + + ( + + 4 ) * + 8 THEN - - ( - 47 ) * + 51 + - - 49 + 88 * - AVG ( + ( + + ( + ( - - 5 ) ) ) ) + + + 41 + - 55 * + COUNT( * ) * ( 42 ) WHEN + - COALESCE ( + + 12, + + 31 ) * - 40 + + - AVG ( ALL + + 88 ) THEN + + 85 ELSE + 3 DIV 16 + - 69 END AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-6073
SELECT + CASE + 95 WHEN + + ( + + 4 ) * + 8 THEN - - ( - 47 ) * + 51 + - - 49 + 88 * - AVG ( + ( + + ( + ( - - 5 ) ) ) ) + + + 41 + - 55 * + COUNT ( * ) * ( 42 ) WHEN + - COALESCE ( + + 12, + + 31 ) * - 40 + + - AVG ( ALL + + 88 ) THEN + + 85 ELSE + 3 / 16 + - 69 END AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT SUM( DISTINCT + 58 ) * - ( + - ( - - COUNT( * ) ) ) - - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-6074
SELECT SUM ( DISTINCT + 58 ) * - ( + - ( - - COUNT ( * ) ) ) - - COUNT ( * )
----
59

query I rowsort
SELECT ALL 75 * + 2 + + ( 2 ) AS col0
----
152

query I rowsort
SELECT 57 * + - 82
----
-4674

query I rowsort
SELECT 93 + - 31 * + - 82 AS col0
----
2635

onlyif mysql # aggregate syntax: 
query II rowsort label-6078
SELECT + 84 AS col2, 77 * + COUNT( * ) AS col2
----
84
77

skipif mysql # not compatible
query II rowsort label-6078
SELECT + 84 AS col2, 77 * + COUNT ( * ) AS col2
----
84
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT + SUM( ALL - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-6079
SELECT + SUM ( ALL - 35 )
----
-35

query I rowsort
SELECT - ( - 64 ) * - 19 + + - 59
----
-1275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6081
SELECT ALL NULLIF ( + CAST( - + COUNT( * ) AS SIGNED ), COUNT( * ) ) * + + SUM( ALL COALESCE ( - 11, 25 * - 48 DIV + 57, - 70, + + 18 ) ) * COUNT( * ) + + COUNT( * ) + - - 73 col1, + 92 AS col2
----
85
92

skipif mysql # not compatible
query II rowsort label-6081
SELECT ALL NULLIF ( + CAST ( - + COUNT ( * ) AS INTEGER ), COUNT ( * ) ) * + + SUM ( ALL COALESCE ( - 11, 25 * - 48 / + 57, - 70, + + 18 ) ) * COUNT ( * ) + + COUNT ( * ) + - - 73 col1, + 92 AS col2
----
85
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6082
SELECT + 59 DIV 16 * + 80 AS col1
----
240

skipif mysql # not compatible
query I rowsort label-6082
SELECT + 59 / 16 * + 80 AS col1
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT DISTINCT MAX( DISTINCT - 91 ) * + 17 * + COALESCE ( - 36, 65, + 79 ) + - + 57 col1
----
55635

skipif mysql # not compatible
query I rowsort label-6083
SELECT DISTINCT MAX ( DISTINCT - 91 ) * + 17 * + COALESCE ( - 36, 65, + 79 ) + - + 57 col1
----
55635

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT ALL - MAX( 29 ) * - - COALESCE ( - COUNT( * ), - COUNT( DISTINCT + + 90 ) ) + - 72 - + 96 + MAX( + - 98 ) * 83
----
-8273

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL - MAX ( 29 ) * - - COALESCE ( - COUNT ( * ), - COUNT ( DISTINCT + + 90 ) ) + - 72 - + 96 + MAX ( + - 98 ) * 83
----
-8273

query I rowsort
SELECT + + 47 * 80
----
3760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6086
SELECT + 10 AS col0, COUNT( DISTINCT + 68 ) * + MAX( DISTINCT 76 ) - - NULLIF ( + 93, - 71 * - COALESCE ( - + COALESCE ( - 95, 53 ), + COUNT( ALL + 27 ) * NULLIF ( - CAST( NULL AS SIGNED ), - - 94 + + 87 - + + 44 / - 52 ) + - SUM( ALL 93 ) * - 18 ) * + COUNT( * ) + 93 ) AS col2
----
10
169

skipif mysql # not compatible
query II rowsort label-6086
SELECT + 10 AS col0, COUNT ( DISTINCT + 68 ) * + MAX ( DISTINCT 76 ) - - NULLIF ( + 93, - 71 * - COALESCE ( - + COALESCE ( - 95, 53 ), + COUNT ( ALL + 27 ) * NULLIF ( - CAST ( NULL AS INTEGER ), - - 94 + + 87 - + + 44 / - 52 ) + - SUM ( ALL 93 ) * - 18 ) * + COUNT ( * ) + 93 ) AS col2
----
10
169

query I rowsort
SELECT - - 83 * - 44 col2
----
-3652

onlyif mysql # aggregate syntax: 
query II rowsort label-6088
SELECT ALL + 73 AS col0, 44 * ( - COUNT( * ) ) * + - 89 + - 0
----
73
3916

skipif mysql # not compatible
query II rowsort label-6088
SELECT ALL + 73 AS col0, 44 * ( - COUNT ( * ) ) * + - 89 + - 0
----
73
3916

onlyif mysql # DIV for integer division: 
query I rowsort label-6089
SELECT ALL + + 66 DIV - 64
----
-1

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL + + 66 / - 64
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT + + 97 - COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-6090
SELECT + + 97 - COUNT ( * ) AS col0
----
96

query I rowsort
SELECT - - 92 * + + 34 AS col0
----
3128

query I rowsort
SELECT - 44 * + 46 AS col2
----
-2024

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT ALL + - NULLIF ( - 81, + + 83 + + 69 * + 68 + - COUNT( * ) )
----
81

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL + - NULLIF ( - 81, + + 83 + + 69 * + 68 + - COUNT ( * ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT ALL - MIN( - 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL - MIN ( - 6 ) AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6095
SELECT ALL 58 DIV - 28 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL 58 / - 28 AS col2
----
-2

query I rowsort
SELECT DISTINCT + - 24 - 9
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT ALL - - MIN( ALL 55 ) * 81 AS col2
----
4455

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL - - MIN ( ALL 55 ) * 81 AS col2
----
4455

onlyif mysql # aggregate syntax: 
query II rowsort label-6098
SELECT DISTINCT - 4 col1, - MAX( 96 )
----
-4
-96

skipif mysql # not compatible
query II rowsort label-6098
SELECT DISTINCT - 4 col1, - MAX ( 96 )
----
-4
-96

query I rowsort
SELECT DISTINCT - - 11 * + 47 AS col2
----
517

query I rowsort
SELECT - 87 * + 65 col2
----
-5655

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6101
SELECT ALL COALESCE ( 21, 57 DIV - COUNT( - 83 ), - + 10 + - COUNT( * ) - - 3 * 95 * + COUNT( * ) )
----
21

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL COALESCE ( 21, 57 / - COUNT ( - 83 ), - + 10 + - COUNT ( * ) - - 3 * 95 * + COUNT ( * ) )
----
21

query I rowsort
SELECT - 57 + - - 70 - - - 94 * 95 * 45
----
-401837

query II rowsort
SELECT 52 AS col1, + 48 AS col2
----
52
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT - SUM( ALL - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-6104
SELECT - SUM ( ALL - 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT ALL ( - SUM( 5 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL ( - SUM ( 5 ) )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6106
SELECT - 51 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6106
SELECT - 51 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT - 7 AS col1, + 63 * + 80 - - NULLIF ( - - 0, 0 / 65 + ( + 94 ) )
----
-7
5040

query I rowsort
SELECT DISTINCT COALESCE ( - 14, - 88 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT + COALESCE ( - + 28, + + COUNT( * ) ) * 1 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-6109
SELECT + COALESCE ( - + 28, + + COUNT ( * ) ) * 1 AS col0
----
-28

query I rowsort
SELECT ALL ( 94 ) AS col1
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6111
SELECT - 17, - MIN( ALL - 67 ) DIV COUNT( ALL + 71 ) AS col2
----
-17
67

skipif mysql # not compatible
query II rowsort label-6111
SELECT - 17, - MIN ( ALL - 67 ) / COUNT ( ALL + 71 ) AS col2
----
-17
67

query II rowsort
SELECT 60, - 37 * + 54 AS col2
----
60
-1998

query I rowsort
SELECT - 9 + + 53 AS col1
----
44

query II rowsort
SELECT 33 AS col2, - 45
----
33
-45

query I rowsort
SELECT ALL 79 + + + 72 AS col2
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6116
SELECT + ( + 43 ) * + CAST( NULL AS SIGNED ) + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6116
SELECT + ( + 43 ) * + CAST ( NULL AS INTEGER ) + + 2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6117
SELECT DISTINCT + 28 AS col0, - 22 + - COUNT( * ) DIV - 31
----
28
-22

skipif mysql # not compatible
query II rowsort label-6117
SELECT DISTINCT + 28 AS col0, - 22 + - COUNT ( * ) / - 31
----
28
-22

query I rowsort
SELECT DISTINCT - 57 * + 5 AS col1
----
-285

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6119
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, + 25 AS col0
----
NULL
25

skipif mysql # not compatible
query II rowsort label-6119
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, + 25 AS col0
----
NULL
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6120
SELECT ALL + + 40 AS col1, - COUNT( DISTINCT + - 36 ) DIV 1, 46 * CAST( + 6 AS SIGNED ) col0
----
40
-1
276

skipif mysql # not compatible
query III rowsort label-6120
SELECT ALL + + 40 AS col1, - COUNT ( DISTINCT + - 36 ) / 1, 46 * CAST ( + 6 AS INTEGER ) col0
----
40
-1
276

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT DISTINCT + MIN( + - 34 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-6121
SELECT DISTINCT + MIN ( + - 34 ) AS col1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6122
SELECT + + NULLIF ( + 15, - 32 * - - 30 + - 3 + - 22 * CAST( + 79 AS SIGNED ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-6122
SELECT + + NULLIF ( + 15, - 32 * - - 30 + - 3 + - 22 * CAST ( + 79 AS INTEGER ) ) AS col1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6123
SELECT - + 75 * 25 * + COALESCE ( + 48, - ( + - 86 ) + - SUM( ALL - - 73 ) - - - 58 DIV + 7 ) + + 60 AS col1
----
-89940

skipif mysql # not compatible
query I rowsort label-6123
SELECT - + 75 * 25 * + COALESCE ( + 48, - ( + - 86 ) + - SUM ( ALL - - 73 ) - - - 58 / + 7 ) + + 60 AS col1
----
-89940

query I rowsort
SELECT + 1 * + + 23 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT 37 * COUNT( * ) + + 60
----
97

skipif mysql # not compatible
query I rowsort label-6125
SELECT 37 * COUNT ( * ) + + 60
----
97

query I rowsort
SELECT + 45 + - ( + 19 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT + + COALESCE ( - 30, - - COUNT( * ), - COUNT( * ) * 10 + - - 52 + - MAX( ALL - 98 ) * + 81 + 93 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-6127
SELECT + + COALESCE ( - 30, - - COUNT ( * ), - COUNT ( * ) * 10 + - - 52 + - MAX ( ALL - 98 ) * + 81 + 93 ) AS col1
----
-30

query I rowsort
SELECT ALL 98 * ( + 53 )
----
5194

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT ALL + 29 * - 66 - + + 70 * COUNT( * )
----
-1984

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL + 29 * - 66 - + + 70 * COUNT ( * )
----
-1984

query I rowsort
SELECT DISTINCT - 45 * + 62 + - 83 - - + 72
----
-2801

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT - + 59 * - - 92 * 17 + - SUM( - 85 ) AS col1
----
-92191

skipif mysql # not compatible
query I rowsort label-6131
SELECT - + 59 * - - 92 * 17 + - SUM ( - 85 ) AS col1
----
-92191

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6132
SELECT ALL + 80 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL + 80 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - + 10 + - + 1 AS col0
----
-11

query I rowsort
SELECT - - 36 + - - COALESCE ( - - 72, 4 * 10 + - + 21 - + 31 - + + 72 * 33, - NULLIF ( + 72, + 14 ) ) - + + 76 col2
----
32

query II rowsort
SELECT - - 49 AS col0, 32
----
49
32

onlyif mysql # DIV for integer division: 
query I rowsort label-6136
SELECT - ( + 12 ) DIV + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6136
SELECT - ( + 12 ) / + 67 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6137
SELECT + CAST( 29 AS SIGNED ) + + + 60 - 47 / - + COUNT( * ) + + ( + + 87 ) / COALESCE ( - 73, + 12, + 91 ) * - - CASE - COUNT( * ) WHEN + ( - - 19 ) * 7 + 53 - MAX( + 21 ) THEN - + 34 END + - + 73 + - COUNT( * ) + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6137
SELECT + CAST ( 29 AS INTEGER ) + + + 60 - 47 / - + COUNT ( * ) + + ( + + 87 ) / COALESCE ( - 73, + 12, + 91 ) * - - CASE - COUNT ( * ) WHEN + ( - - 19 ) * 7 + 53 - MAX ( + 21 ) THEN - + 34 END + - + 73 + - COUNT ( * ) + 82 AS col1
----
NULL

query I rowsort
SELECT 33 * 83 + 24 AS col1
----
2763

query II rowsort
SELECT ALL + 5 * 19 AS col2, 84 + 24
----
95
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6140
SELECT + SUM( DISTINCT 43 ) DIV 60 * 97 DIV - ( + 37 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6140
SELECT + SUM ( DISTINCT 43 ) / 60 * 97 / - ( + 37 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6141
SELECT ALL CAST( - + 99 AS SIGNED ) + - - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-6141
SELECT ALL CAST ( - + 99 AS INTEGER ) + - - COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT ALL COUNT( * ) + + 47
----
48

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL COUNT ( * ) + + 47
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6143
SELECT - COUNT( * ) + + 47 DIV + COUNT( DISTINCT + ( - 94 ) ) col2
----
46

skipif mysql # not compatible
query I rowsort label-6143
SELECT - COUNT ( * ) + + 47 / + COUNT ( DISTINCT + ( - 94 ) ) col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6144
SELECT ALL COALESCE ( - - 83, - 93 + + 17 * + 47 * - + 81 + + 65, + CASE - CAST( NULL AS DECIMAL ) WHEN + 56 THEN + - 38 WHEN + SUM( DISTINCT 5 ) THEN NULL WHEN - - 19 THEN NULL END, - 99 )
----
83

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL COALESCE ( - - 83, - 93 + + 17 * + 47 * - + 81 + + 65, + CASE - CAST ( NULL AS REAL ) WHEN + 56 THEN + - 38 WHEN + SUM ( DISTINCT 5 ) THEN NULL WHEN - - 19 THEN NULL END, - 99 )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6145
SELECT DISTINCT + 51 + + COALESCE ( - COUNT( * ), - - ( + - ( - 35 ) ) - - 89 ) + + + CASE + 38 WHEN - COALESCE ( - 39, 41 * - 47 + + 77 + - 44 ) * NULLIF ( - 75, + + 1 ) THEN NULL WHEN + 53 * + 47 THEN 94 WHEN - CASE 88 WHEN - - ( 19 ) / - 50 * + + 61 THEN NULL WHEN - 88 THEN + 12 END THEN NULL ELSE NULL END + + CAST( + CASE + 95 WHEN COUNT( * ) + - NULLIF ( - 20, + 53 ) / 61 THEN - 42 * ( + 44 * NULLIF ( - 78, COUNT( ALL - 41 ) ) ) END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT + 51 + + COALESCE ( - COUNT ( * ), - - ( + - ( - 35 ) ) - - 89 ) + + + CASE + 38 WHEN - COALESCE ( - 39, 41 * - 47 + + 77 + - 44 ) * NULLIF ( - 75, + + 1 ) THEN NULL WHEN + 53 * + 47 THEN 94 WHEN - CASE 88 WHEN - - ( 19 ) / - 50 * + + 61 THEN NULL WHEN - 88 THEN + 12 END THEN NULL ELSE NULL END + + CAST ( + CASE + 95 WHEN COUNT ( * ) + - NULLIF ( - 20, + 53 ) / 61 THEN - 42 * ( + 44 * NULLIF ( - 78, COUNT ( ALL - 41 ) ) ) END AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6146
SELECT DISTINCT ( + + 70 ), + MAX( + - 27 ) * - MAX( DISTINCT + 38 ) + - 95 col2
----
70
931

skipif mysql # not compatible
query II rowsort label-6146
SELECT DISTINCT ( + + 70 ), + MAX ( + - 27 ) * - MAX ( DISTINCT + 38 ) + - 95 col2
----
70
931

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT DISTINCT + 16 + + - 2 * - COUNT( * ) * - 79 AS col2
----
-142

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT + 16 + + - 2 * - COUNT ( * ) * - 79 AS col2
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6148
SELECT - CASE + + ( 65 ) WHEN - MIN( ALL CAST( NULL AS SIGNED ) ) THEN - CASE 92 WHEN COUNT( * ) + 77 + - 32 * + COALESCE ( + 96, 99 + + COUNT( * ) + 60, COUNT( * ) + - + MIN( + + 73 ) * + + 32 ) * 35 THEN NULL WHEN - 40 + - - 65 + - 91 THEN NULL ELSE + COUNT( - ( - 86 ) ) END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6148
SELECT - CASE + + ( 65 ) WHEN - MIN ( ALL CAST ( NULL AS INTEGER ) ) THEN - CASE 92 WHEN COUNT ( * ) + 77 + - 32 * + COALESCE ( + 96, 99 + + COUNT ( * ) + 60, COUNT ( * ) + - + MIN ( + + 73 ) * + + 32 ) * 35 THEN NULL WHEN - 40 + - - 65 + - 91 THEN NULL ELSE + COUNT ( - ( - 86 ) ) END END AS col1
----
NULL

query I rowsort
SELECT + 67 + 33 + 44 AS col0
----
144

query I rowsort
SELECT ALL COALESCE ( + 37, - 40 ) * + 94
----
3478

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT MAX( - 66 ) * 32 col2
----
-2112

skipif mysql # not compatible
query I rowsort label-6151
SELECT MAX ( - 66 ) * 32 col2
----
-2112

onlyif mysql # DIV for integer division: 
query II rowsort label-6152
SELECT DISTINCT + 89 DIV 23 AS col0, + 68 AS col0
----
3
68

skipif mysql # not compatible
query II rowsort label-6152
SELECT DISTINCT + 89 / 23 AS col0, + 68 AS col0
----
3
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT ALL + + 74 * + - COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL + + 74 * + - COUNT ( * ) AS col2
----
-74

query I rowsort
SELECT ALL - + 82 * ( + 43 ) * ( + 80 )
----
-282080

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT SUM( DISTINCT + + 7 ) * + - 45 AS col2
----
-315

skipif mysql # not compatible
query I rowsort label-6155
SELECT SUM ( DISTINCT + + 7 ) * + - 45 AS col2
----
-315

onlyif mysql # DIV for integer division: 
query I rowsort label-6156
SELECT 72 * 28 DIV + 37 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-6156
SELECT 72 * 28 / + 37 AS col0
----
54

query I rowsort
SELECT DISTINCT - + CASE + + 70 WHEN + 13 THEN - + COALESCE ( + 41, 63 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT - 46 - - COALESCE ( 80, 84 ) * - + CASE 51 WHEN ( + 19 ) THEN + 62 + 85 + - - 7 * + + ( 33 ) - - COUNT( * ) + + - 28 WHEN + 6 * - 58 + - 27 THEN + 97 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6158
SELECT - 46 - - COALESCE ( 80, 84 ) * - + CASE 51 WHEN ( + 19 ) THEN + 62 + 85 + - - 7 * + + ( 33 ) - - COUNT ( * ) + + - 28 WHEN + 6 * - 58 + - 27 THEN + 97 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT 95 * + - SUM( - 13 ) - ( + 77 ) + 13 * 99 * 16 * - - 29 AS col1
----
598326

skipif mysql # not compatible
query I rowsort label-6159
SELECT 95 * + - SUM ( - 13 ) - ( + 77 ) + 13 * 99 * 16 * - - 29 AS col1
----
598326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6160
SELECT 4 * - 96 / + 91 + + COUNT( ALL + 65 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6160
SELECT 4 * - 96 / + 91 + + COUNT ( ALL + 65 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 5 * 11 AS col2
----
55

query I rowsort
SELECT DISTINCT 63 + - 99 AS col0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6163
SELECT ALL CAST( NULL AS SIGNED ) * 4 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL CAST ( NULL AS INTEGER ) * 4 col0
----
NULL

query I rowsort
SELECT ALL - 47 + 67 * + - 13 AS col0
----
-918

query II rowsort
SELECT ALL 49 AS col0, - 14 AS col0
----
49
-14

query I rowsort
SELECT DISTINCT 69 + + + 41 + + ( + 18 ) AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT DISTINCT 27 + - COUNT( * ) col1
----
26

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT 27 + - COUNT ( * ) col1
----
26

query II rowsort
SELECT - 5, 3 + + 75 AS col2
----
-5
78

query I rowsort
SELECT ALL 4 + 65 AS col1
----
69

query I rowsort
SELECT ALL 62 + + - 17
----
45

query II rowsort
SELECT - 60 col1, 85
----
-60
85

query I rowsort
SELECT 61 + 19 AS col0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6173
SELECT ALL - 75 DIV - 35 col0
----
2

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL - 75 / - 35 col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6174
SELECT 85, 64 + COUNT( * ) * COALESCE ( - - 16, + 15 - - MAX( - + 32 ) ) AS col0
----
85
80

skipif mysql # not compatible
query II rowsort label-6174
SELECT 85, 64 + COUNT ( * ) * COALESCE ( - - 16, + 15 - - MAX ( - + 32 ) ) AS col0
----
85
80

query I rowsort
SELECT ALL 68 + - + 52 + + 72
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6176
SELECT ALL 26 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL 26 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT DISTINCT - MAX( + 68 ) * 39 * COUNT( * )
----
-2652

skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT - MAX ( + 68 ) * 39 * COUNT ( * )
----
-2652

query I rowsort
SELECT ALL + 3 + + 32
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6179
SELECT CAST( 93 AS SIGNED ) - - + 99 * SUM( - 81 )
----
-7926

skipif mysql # not compatible
query I rowsort label-6179
SELECT CAST ( 93 AS INTEGER ) - - + 99 * SUM ( - 81 )
----
-7926

query I rowsort
SELECT ALL 20 * - 96 AS col1
----
-1920

onlyif mysql # DIV for integer division: 
query I rowsort label-6181
SELECT 92 DIV 81 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6181
SELECT 92 / 81 AS col2
----
1

query I rowsort
SELECT 95 * - + 32
----
-3040

query I rowsort
SELECT ALL 96 * - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT ALL COUNT( * ) - - - 3 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL COUNT ( * ) - - - 3 AS col0
----
-2

query II rowsort
SELECT ALL 38, 27 AS col1
----
38
27

query I rowsort
SELECT 7 * + 42 AS col0
----
294

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6187
SELECT - - 51 col1, COUNT( * ) DIV + - 29 * + 24 + - 67 AS col0
----
51
-67

skipif mysql # not compatible
query II rowsort label-6187
SELECT - - 51 col1, COUNT ( * ) / + - 29 * + 24 + - 67 AS col0
----
51
-67

query I rowsort
SELECT + - ( - + 89 )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6189
SELECT 49 col0, - MIN( ALL + + 0 ) / + CAST( NULL AS SIGNED ) * + 5 * - CAST( NULL AS SIGNED ) + - + 79
----
49
NULL

skipif mysql # not compatible
query II rowsort label-6189
SELECT 49 col0, - MIN ( ALL + + 0 ) / + CAST ( NULL AS INTEGER ) * + 5 * - CAST ( NULL AS INTEGER ) + - + 79
----
49
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6190
SELECT - 64 DIV 13 + + 81 + + + 87
----
164

skipif mysql # not compatible
query I rowsort label-6190
SELECT - 64 / 13 + + 81 + + + 87
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT COUNT( * ) * 58 + + - 29
----
29

skipif mysql # not compatible
query I rowsort label-6191
SELECT COUNT ( * ) * 58 + + - 29
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-6192
SELECT - 51 DIV - + ( + + 95 ) - + 28 + + + 49 + - + 18 + - 51 + + + 16 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-6192
SELECT - 51 / - + ( + + 95 ) - + 28 + + + 49 + - + 18 + - 51 + + + 16 AS col2
----
-32

query I rowsort
SELECT ALL - - ( - 83 ) col0
----
-83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6194
SELECT DISTINCT - + CAST( NULL AS SIGNED ), + 85 + + 28 + + 34 DIV 82 col2
----
NULL
113

skipif mysql # not compatible
query II rowsort label-6194
SELECT DISTINCT - + CAST ( NULL AS INTEGER ), + 85 + + 28 + + 34 / 82 col2
----
NULL
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6195
SELECT - + CAST( NULL AS SIGNED ) * + 55 + + 26 + + COUNT( * ) * - ( - 35 ) + + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6195
SELECT - + CAST ( NULL AS INTEGER ) * + 55 + + 26 + + COUNT ( * ) * - ( - 35 ) + + 63 AS col1
----
NULL

query II rowsort
SELECT ALL - - 60 col0, - 39 AS col2
----
60
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6197
SELECT ALL - + CAST( + - ( 74 ) AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-6197
SELECT ALL - + CAST ( + - ( 74 ) AS INTEGER )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT 3 * + 14 + + - 89 * + COUNT( * ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-6198
SELECT 3 * + 14 + + - 89 * + COUNT ( * ) AS col2
----
-47

query I rowsort
SELECT ALL - COALESCE ( - 52, 35 )
----
52

query I rowsort
SELECT ALL 10 + - 34 * + + CASE + 73 WHEN + 48 THEN - 41 END * + NULLIF ( 56, + 11 ) * - + 53 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6201
SELECT ALL + CAST( 90 AS SIGNED ) + - + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL + CAST ( 90 AS INTEGER ) + - + COUNT ( * )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-6202
SELECT DISTINCT - 88 DIV 20 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT - 88 / 20 AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6203
SELECT DISTINCT + 33 + NULLIF ( - + 72, 48 ) + ( MIN( DISTINCT 33 ) ) * COUNT( * ) DIV + 79 col0
----
-39

skipif mysql # not compatible
query I rowsort label-6203
SELECT DISTINCT + 33 + NULLIF ( - + 72, 48 ) + ( MIN ( DISTINCT 33 ) ) * COUNT ( * ) / + 79 col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT ALL - 79 + + - 23 - 38 * - MAX( ALL - - ( - 58 ) ) AS col1
----
-2306

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL - 79 + + - 23 - 38 * - MAX ( ALL - - ( - 58 ) ) AS col1
----
-2306

query I rowsort
SELECT ALL 63 + 81 + - 79
----
65

query II rowsort
SELECT 57 + - 83 + + 56 * - 54, - 13 col0
----
-3050
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT - COUNT( DISTINCT - - 82 )
----
-1

skipif mysql # not compatible
query I rowsort label-6207
SELECT - COUNT ( DISTINCT - - 82 )
----
-1

query I rowsort
SELECT DISTINCT 74 - - 68
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-6209
SELECT ALL 50 * - + 1, + COUNT( * ) AS col2
----
-50
1

skipif mysql # not compatible
query II rowsort label-6209
SELECT ALL 50 * - + 1, + COUNT ( * ) AS col2
----
-50
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT ALL COUNT( * ) - + COUNT( - 53 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL COUNT ( * ) - + COUNT ( - 53 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT - COUNT( - - 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-6211
SELECT - COUNT ( - - 61 )
----
-1

query I rowsort
SELECT + 8 + 2
----
10

query I rowsort
SELECT - 61 * + 21 AS col0
----
-1281

onlyif mysql # DIV for integer division: 
query I rowsort label-6214
SELECT + 25 * - - 48 - - NULLIF ( + + 84, + 73 ) DIV 30 + + + 8
----
1210

skipif mysql # not compatible
query I rowsort label-6214
SELECT + 25 * - - 48 - - NULLIF ( + + 84, + 73 ) / 30 + + + 8
----
1210

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT ALL - CASE + MAX( + 6 ) WHEN - 15 THEN + MIN( + 71 ) / 61 + - 31 * 77 / - AVG ( + + ( - + 63 ) ) * - 81 + + COUNT( * ) END * - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL - CASE + MAX ( + 6 ) WHEN - 15 THEN + MIN ( + 71 ) / 61 + - 31 * 77 / - AVG ( + + ( - + 63 ) ) * - 81 + + COUNT ( * ) END * - 43 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT + COUNT( * ) * - - SUM( ALL ( + 97 ) ) + - + 5 + - 55 * + 93 * - COUNT( + 61 ) * - ( 6 ) AS col0
----
-30598

skipif mysql # not compatible
query I rowsort label-6216
SELECT + COUNT ( * ) * - - SUM ( ALL ( + 97 ) ) + - + 5 + - 55 * + 93 * - COUNT ( + 61 ) * - ( 6 ) AS col0
----
-30598

query I rowsort
SELECT DISTINCT - 25 * + + 50
----
-1250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6218
SELECT + AVG ( + - CAST( NULL AS SIGNED ) ) / - + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6218
SELECT + AVG ( + - CAST ( NULL AS INTEGER ) ) / - + 70
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6219
SELECT + + 87 - 46, MIN( + 78 ) * 91 + + 4 - - 64 AS col2
----
41
7166

skipif mysql # not compatible
query II rowsort label-6219
SELECT + + 87 - 46, MIN ( + 78 ) * 91 + + 4 - - 64 AS col2
----
41
7166

query I rowsort
SELECT + + 29 * + 9 AS col1
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT - - NULLIF ( MIN( ALL - 40 ), + 18 ) * 71
----
-2840

skipif mysql # not compatible
query I rowsort label-6221
SELECT - - NULLIF ( MIN ( ALL - 40 ), + 18 ) * 71
----
-2840

query I rowsort
SELECT DISTINCT + - 49 col2
----
-49

query I rowsort
SELECT ALL + - 54 * 1 + 61 AS col2
----
7

query I rowsort
SELECT - 41 * - 37 col1
----
1517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6225
SELECT ALL COUNT( * ) * COALESCE ( 77, - 48, CASE + 82 WHEN + COUNT( + - 70 ) THEN NULL WHEN + 3 THEN + 34 END * - 63 * 68 DIV 26 * - 21 * 74 + 1 ) + + 2
----
79

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL COUNT ( * ) * COALESCE ( 77, - 48, CASE + 82 WHEN + COUNT ( + - 70 ) THEN NULL WHEN + 3 THEN + 34 END * - 63 * 68 / 26 * - 21 * 74 + 1 ) + + 2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT ALL + COUNT( * ) * - COALESCE ( + + 84, - 91 ) * ( + 31 ) + + ( - 53 ) * + + 1
----
-2657

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL + COUNT ( * ) * - COALESCE ( + + 84, - 91 ) * ( + 31 ) + + ( - 53 ) * + + 1
----
-2657

query I rowsort
SELECT - 64 - - 31
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT ALL + 81 * 40 - 94 + + ( - COUNT( * ) ) + 80 AS col1
----
3225

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL + 81 * 40 - 94 + + ( - COUNT ( * ) ) + 80 AS col1
----
3225

query I rowsort
SELECT NULLIF ( - 17, - 9 )
----
-17

query I rowsort
SELECT DISTINCT 99 * ( 9 ) + + + 66 AS col0
----
957

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT NULLIF ( - 83, - 86 * + COUNT( * ) )
----
-83

skipif mysql # not compatible
query I rowsort label-6231
SELECT NULLIF ( - 83, - 86 * + COUNT ( * ) )
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6232
SELECT - 69 + + 76 * - + 39 DIV + COUNT( * ) + - + 77 * - 64 * - 6
----
-32601

skipif mysql # not compatible
query I rowsort label-6232
SELECT - 69 + + 76 * - + 39 / + COUNT ( * ) + - + 77 * - 64 * - 6
----
-32601

query I rowsort
SELECT ALL - 75 * 7
----
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT NULLIF ( + + 49, - - COUNT( * ) )
----
49

skipif mysql # not compatible
query I rowsort label-6234
SELECT NULLIF ( + + 49, - - COUNT ( * ) )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT DISTINCT + NULLIF ( + ( + 60 ), - COALESCE ( + + 23, - - 61 + - ( + MAX( 92 ) ) + - COUNT( * ) ) - - - 30 + + 62 )
----
60

skipif mysql # not compatible
query I rowsort label-6235
SELECT DISTINCT + NULLIF ( + ( + 60 ), - COALESCE ( + + 23, - - 61 + - ( + MAX ( 92 ) ) + - COUNT ( * ) ) - - - 30 + + 62 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT + 98 * - + 54 + - ( COUNT( * ) ) AS col0
----
-5293

skipif mysql # not compatible
query I rowsort label-6236
SELECT + 98 * - + 54 + - ( COUNT ( * ) ) AS col0
----
-5293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6237
SELECT ALL 11 * 15 * 46 * 27 / - 47 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL 11 * 15 * 46 * 27 / - 47 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT ALL + NULLIF ( + MIN( ALL 66 ), - 95 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-6238
SELECT ALL + NULLIF ( + MIN ( ALL 66 ), - 95 ) AS col1
----
66

query I rowsort
SELECT ALL - 61 * - ( - 80 ) - - + 78
----
-4802

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6240
SELECT DISTINCT MAX( DISTINCT + 43 ) DIV - 8 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-6240
SELECT DISTINCT MAX ( DISTINCT + 43 ) / - 8 AS col0
----
-5

query I rowsort
SELECT - ( - 89 ) + 90
----
179

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6242
SELECT ALL NULLIF ( - AVG ( ALL + + CAST( NULL AS DECIMAL ) ), 23 ) / 16
----
NULL

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL NULLIF ( - AVG ( ALL + + CAST ( NULL AS REAL ) ), 23 ) / 16
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6243
SELECT + 9 * + + MAX( DISTINCT + - 60 ) AS col0, + 19 AS col0
----
-540
19

skipif mysql # not compatible
query II rowsort label-6243
SELECT + 9 * + + MAX ( DISTINCT + - 60 ) AS col0, + 19 AS col0
----
-540
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT ALL - SUM( DISTINCT - 14 ) - + 24 + - + CASE 24 WHEN 65 + 29 THEN - - 59 * - MAX( + 88 ) - 78 WHEN - COUNT( * ) * + 83 THEN + ( 3 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL - SUM ( DISTINCT - 14 ) - + 24 + - + CASE 24 WHEN 65 + 29 THEN - - 59 * - MAX ( + 88 ) - 78 WHEN - COUNT ( * ) * + 83 THEN + ( 3 ) END AS col1
----
NULL

query I rowsort
SELECT - 79 * 47 * + - ( 58 ) * 83
----
17874382

onlyif mysql # aggregate syntax: 
query II rowsort label-6246
SELECT - NULLIF ( + COUNT( * ), - 17 ), + 70 AS col2
----
-1
70

skipif mysql # not compatible
query II rowsort label-6246
SELECT - NULLIF ( + COUNT ( * ), - 17 ), + 70 AS col2
----
-1
70

query I rowsort
SELECT - 96 - 38 AS col0
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT - CASE + 63 WHEN COUNT( * ) THEN NULL WHEN + + 94 + - COUNT( * ) + + - SUM( DISTINCT + 90 ) * - COUNT( * ) * 88 THEN - + 74 * + 91 * COUNT( * ) * + - 88 - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6248
SELECT - CASE + 63 WHEN COUNT ( * ) THEN NULL WHEN + + 94 + - COUNT ( * ) + + - SUM ( DISTINCT + 90 ) * - COUNT ( * ) * 88 THEN - + 74 * + 91 * COUNT ( * ) * + - 88 - 10 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT + 37 * - 86 * - COALESCE ( - 86, + COALESCE ( - COUNT( * ), + COUNT( * ) ) )
----
-273652

skipif mysql # not compatible
query I rowsort label-6249
SELECT + 37 * - 86 * - COALESCE ( - 86, + COALESCE ( - COUNT ( * ), + COUNT ( * ) ) )
----
-273652

query I rowsort
SELECT - 49 * + 38
----
-1862

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT ALL + 57 * - ( + NULLIF ( + 30, + 93 + 20 * + CASE - + 49 WHEN - + 33 THEN NULL ELSE + + COUNT( * ) END ) ) - - 5 AS col0
----
-1705

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL + 57 * - ( + NULLIF ( + 30, + 93 + 20 * + CASE - + 49 WHEN - + 33 THEN NULL ELSE + + COUNT ( * ) END ) ) - - 5 AS col0
----
-1705

query I rowsort
SELECT DISTINCT + ( - - 54 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6253
SELECT + - 77 - - 2 + 10 + 62 DIV + MIN( + 93 ) + - CAST( - 61 AS SIGNED ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-6253
SELECT + - 77 - - 2 + 10 + 62 / + MIN ( + 93 ) + - CAST ( - 61 AS INTEGER ) col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT DISTINCT + MIN( ALL + 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT + MIN ( ALL + 77 ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT ALL + 7 + + 74 + - COALESCE ( - 71, + + MIN( - - 83 ), - - SUM( - + 80 ) )
----
152

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL + 7 + + 74 + - COALESCE ( - 71, + + MIN ( - - 83 ), - - SUM ( - + 80 ) )
----
152

query II rowsort
SELECT - + 47 AS col2, 37 AS col0
----
-47
37

query I rowsort
SELECT ALL - 21 + - 45 + + NULLIF ( - - 74, + 87 ) + + 32 * - + 57 * + 48 * - - 88 AS col0
----
-7704568

query I rowsort
SELECT - 85 + 80 + + 56 col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT + + 52 * - - ( - COUNT( * ) ) + + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-6259
SELECT + + 52 * - - ( - COUNT ( * ) ) + + COUNT ( * )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT + ( - 18 ) - + ( - 77 ) * COUNT( * ) col2
----
59

skipif mysql # not compatible
query I rowsort label-6260
SELECT + ( - 18 ) - + ( - 77 ) * COUNT ( * ) col2
----
59

query I rowsort
SELECT ALL 42 + + + 35 AS col2
----
77

query I rowsort
SELECT + 82 - - - 32 * ( + + 99 ) AS col1
----
-3086

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6263
SELECT - 4 * + + 56 * 31 - + + CAST( NULL AS SIGNED ) + - 41 + - + 57 + - + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT - 4 * + + 56 * 31 - + + CAST ( NULL AS INTEGER ) + - 41 + - + 57 + - + 92
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6264
SELECT + COUNT( * ) AS col0, 71 AS col1
----
1
71

skipif mysql # not compatible
query II rowsort label-6264
SELECT + COUNT ( * ) AS col0, 71 AS col1
----
1
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6265
SELECT DISTINCT - + CAST( - 49 AS SIGNED ) * - 83 AS col2, - COUNT( * ) AS col2
----
-4067
-1

skipif mysql # not compatible
query II rowsort label-6265
SELECT DISTINCT - + CAST ( - 49 AS INTEGER ) * - 83 AS col2, - COUNT ( * ) AS col2
----
-4067
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6266
SELECT + 4 / + CAST( NULL AS DECIMAL ) + + - 27 - - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6266
SELECT + 4 / + CAST ( NULL AS REAL ) + + - 27 - - 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6267
SELECT ALL 8 DIV NULLIF ( + 26, 44 + ( COUNT( * ) ) * - + 68 * - 15 ) + + 40 * COALESCE ( + 61, NULLIF ( - + 55, + 1 ) DIV + + 72 ) AS col1
----
2440

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL 8 / NULLIF ( + 26, 44 + ( COUNT ( * ) ) * - + 68 * - 15 ) + + 40 * COALESCE ( + 61, NULLIF ( - + 55, + 1 ) / + + 72 ) AS col1
----
2440

query I rowsort
SELECT DISTINCT 5 * ( 68 ) AS col2
----
340

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6269
SELECT CAST( NULL AS DECIMAL ) AS col1, 8
----
NULL
8

skipif mysql # not compatible
query II rowsort label-6269
SELECT CAST ( NULL AS REAL ) AS col1, 8
----
NULL
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6270
SELECT NULLIF ( 25, COUNT( + 59 ) + + - 95 ) * + COUNT( * ) + - CAST( NULL AS SIGNED ) + - 52 + + 37 / + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6270
SELECT NULLIF ( 25, COUNT ( + 59 ) + + - 95 ) * + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - 52 + + 37 / + 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6271
SELECT DISTINCT - COUNT( * ) col1, 1 * - 1 + - 83
----
-1
-84

skipif mysql # not compatible
query II rowsort label-6271
SELECT DISTINCT - COUNT ( * ) col1, 1 * - 1 + - 83
----
-1
-84

query I rowsort
SELECT ALL - 16 - - 91 * ( - - NULLIF ( + 74, - - 24 ) )
----
6718

query II rowsort
SELECT 1, + 1 * - 93 AS col0
----
1
-93

query II rowsort
SELECT ALL - 15, 76 AS col2
----
-15
76

query II rowsort
SELECT 86 * - 88 AS col2, 87 + + 90 AS col1
----
-7568
177

query I rowsort
SELECT ALL + 44 * + + ( - - 25 )
----
1100

query II rowsort
SELECT + 11 AS col2, - 70 * 9 AS col2
----
11
-630

query II rowsort
SELECT ALL - 31 AS col2, 92 AS col1
----
-31
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6279
SELECT ALL + COUNT( - - 40 ) DIV - 16 * - - ( 9 ) * + 36
----
0

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL + COUNT ( - - 40 ) / - 16 * - - ( 9 ) * + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT ( - COUNT( * ) ) * + - 17 col2
----
17

skipif mysql # not compatible
query I rowsort label-6280
SELECT ( - COUNT ( * ) ) * + - 17 col2
----
17

query I rowsort
SELECT 11 * + - 74 AS col2
----
-814

query I rowsort
SELECT 92 + - - 38
----
130

query II rowsort
SELECT DISTINCT 29, - 86 * 47 AS col0
----
29
-4042

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT DISTINCT + COUNT( * ) * + 22 * + 73 AS col2
----
1606

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT + COUNT ( * ) * + 22 * + 73 AS col2
----
1606

query I rowsort
SELECT ALL - 81 * - 14
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT DISTINCT - COUNT( DISTINCT 83 ) + + 46 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT - COUNT ( DISTINCT 83 ) + + 46 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT DISTINCT - CASE 19 WHEN + 48 * - + AVG ( - 65 ) + - 38 THEN + 51 END + - COUNT( + 64 ) / + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-6287
SELECT DISTINCT - CASE 19 WHEN + 48 * - + AVG ( - 65 ) + - 38 THEN + 51 END + - COUNT ( + 64 ) / + 80
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6288
SELECT ( + 43 ) * 34 + - CASE CASE - 37 WHEN - CASE + 63 WHEN + + 7 + - 80 THEN ( NULLIF ( 80, + CAST( 11 AS SIGNED ) * - + 28 + 91 ) ) END * + 93 THEN + + 43 END WHEN + - ( + - 99 ) + - - 86 * + 75 THEN NULL ELSE - 57 END col2, 40
----
1519
40

skipif mysql # not compatible
query II rowsort label-6288
SELECT ( + 43 ) * 34 + - CASE CASE - 37 WHEN - CASE + 63 WHEN + + 7 + - 80 THEN ( NULLIF ( 80, + CAST ( 11 AS INTEGER ) * - + 28 + 91 ) ) END * + 93 THEN + + 43 END WHEN + - ( + - 99 ) + - - 86 * + 75 THEN NULL ELSE - 57 END col2, 40
----
1519
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT - COUNT( * ) + - 46
----
-47

skipif mysql # not compatible
query I rowsort label-6289
SELECT - COUNT ( * ) + - 46
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-6290
SELECT ALL + - 73 + + + 45, + 3 - + 24 * - 0 - COUNT( * ) AS col2
----
-28
2

skipif mysql # not compatible
query II rowsort label-6290
SELECT ALL + - 73 + + + 45, + 3 - + 24 * - 0 - COUNT ( * ) AS col2
----
-28
2

query I rowsort
SELECT ALL - 76 + - 63
----
-139

query I rowsort
SELECT ALL + + 61 + - ( 14 )
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6293
SELECT 82 + - ( - 28 ) * - - COUNT( * ) * - NULLIF ( 86, + 54 ) AS col1, 94
----
-2326
94

skipif mysql # not compatible
query II rowsort label-6293
SELECT 82 + - ( - 28 ) * - - COUNT ( * ) * - NULLIF ( 86, + 54 ) AS col1, 94
----
-2326
94

query I rowsort
SELECT ALL - 84 + - - 40 AS col2
----
-44

query I rowsort
SELECT - - ( + - 35 )
----
-35

query II rowsort
SELECT 61 AS col1, - 97
----
61
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT ALL + ( + 96 ) * - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL + ( + 96 ) * - COUNT ( * )
----
-96

query I rowsort
SELECT DISTINCT + - 18 + + 55
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT ALL - 91 * + - 79 + + + SUM( - + 66 ) + + 98 + + 7
----
7228

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL - 91 * + - 79 + + + SUM ( - + 66 ) + + 98 + + 7
----
7228

query II rowsort
SELECT + - 54 col1, - 79
----
-54
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-6301
SELECT 41 - 37 DIV + 78
----
41

skipif mysql # not compatible
query I rowsort label-6301
SELECT 41 - 37 / + 78
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT SUM( DISTINCT - 75 ) * + MAX( ALL - 89 ) * + - 72 col1
----
-480600

skipif mysql # not compatible
query I rowsort label-6302
SELECT SUM ( DISTINCT - 75 ) * + MAX ( ALL - 89 ) * + - 72 col1
----
-480600

query II rowsort
SELECT ALL - 43, - 87 AS col2
----
-43
-87

query I rowsort
SELECT 94 * - 7 - + + 32 + - - 47
----
-643

onlyif mysql # DIV for integer division: 
query I rowsort label-6305
SELECT - 86 * - 32 * 65 DIV + + CASE - + 31 WHEN - + 28 THEN NULL ELSE 2 END AS col0
----
89440

skipif mysql # not compatible
query I rowsort label-6305
SELECT - 86 * - 32 * 65 / + + CASE - + 31 WHEN - + 28 THEN NULL ELSE 2 END AS col0
----
89440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6306
SELECT ALL MIN( DISTINCT 72 ) DIV - - ( - 34 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL MIN ( DISTINCT 72 ) / - - ( - 34 ) AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6307
SELECT ALL 4 DIV + 8
----
0

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL 4 / + 8
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6308
SELECT 86 - + CAST( NULL AS SIGNED ) + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6308
SELECT 86 - + CAST ( NULL AS INTEGER ) + - 75
----
NULL

query II rowsort
SELECT ALL 27 * 89 AS col1, 46
----
2403
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6310
SELECT AVG ( - 74 ) * + CAST( NULL AS SIGNED ) + - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6310
SELECT AVG ( - 74 ) * + CAST ( NULL AS INTEGER ) + - 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT 70 + MAX( + 96 ) * + ( + 28 )
----
2758

skipif mysql # not compatible
query I rowsort label-6311
SELECT 70 + MAX ( + 96 ) * + ( + 28 )
----
2758

onlyif mysql # DIV for integer division: 
query I rowsort label-6312
SELECT 76 DIV + + 85
----
0

skipif mysql # not compatible
query I rowsort label-6312
SELECT 76 / + + 85
----
0

query I rowsort
SELECT ALL 91 * + ( - 34 ) AS col0
----
-3094

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT ALL MIN( - 55 ) * - 49
----
2695

skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL MIN ( - 55 ) * - 49
----
2695

query I rowsort
SELECT DISTINCT 97 * - 61
----
-5917

query I rowsort
SELECT ALL 55 + - + 3
----
52

query II rowsort
SELECT ALL - CASE 8 WHEN 1 THEN NULL WHEN + 47 THEN 75 * 20 * + + 74 * - - 23 + + 2 + - 83 * + 29 * - 45 END AS col1, + 56 * + 81 * - + 56 + - 40
----
NULL
-254056

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT ALL + COUNT( * ) + - 63 + + 33 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL + COUNT ( * ) + - 63 + + 33 AS col1
----
-29

query I rowsort
SELECT DISTINCT + - ( + + 78 ) * - + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT ( + 55 ) - COUNT( * ) + - 67 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-6320
SELECT ( + 55 ) - COUNT ( * ) + - 67 AS col1
----
-13

query I rowsort
SELECT - 71 * + 93 col0
----
-6603

onlyif mysql # DIV for integer division: 
query I rowsort label-6322
SELECT + 80 DIV + 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6322
SELECT + 80 / + 48 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6323
SELECT DISTINCT - + 96 + - - 10 + - 95 * + - 82 * - ( + 71 ) / + CAST( NULL AS SIGNED ) - - COUNT( * ) AS col2, 64 + 85 + - 52 * 81 * + 99
----
NULL
-416839

skipif mysql # not compatible
query II rowsort label-6323
SELECT DISTINCT - + 96 + - - 10 + - 95 * + - 82 * - ( + 71 ) / + CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col2, 64 + 85 + - 52 * 81 * + 99
----
NULL
-416839

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT ALL - ( - - MAX( 70 ) ) + - 0 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL - ( - - MAX ( 70 ) ) + - 0 AS col0
----
-70

query II rowsort
SELECT ALL COALESCE ( - + 48, 0 * + COALESCE ( + 24, + - 36 ), + 44 ) AS col2, 39 AS col1
----
-48
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6326
SELECT ALL - - NULLIF ( - 51, - 35 ) * - 91 * 33, COUNT( + 96 ) * - 53 col2
----
153153
-53

skipif mysql # not compatible
query II rowsort label-6326
SELECT ALL - - NULLIF ( - 51, - 35 ) * - 91 * 33, COUNT ( + 96 ) * - 53 col2
----
153153
-53

query I rowsort
SELECT 30 - + 98
----
-68

query I rowsort
SELECT - 30 - + 35 + 13
----
-52

query I rowsort
SELECT ALL + 78 - - - 43 AS col1
----
35

query I rowsort
SELECT 79 * - + 14
----
-1106

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT + MAX( + 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-6331
SELECT + MAX ( + 43 ) AS col1
----
43

onlyif mysql # DIV for integer division: 
query II rowsort label-6332
SELECT DISTINCT - 87 DIV - 75, + ( + 7 ) + + + 67 AS col1
----
1
74

skipif mysql # not compatible
query II rowsort label-6332
SELECT DISTINCT - 87 / - 75, + ( + 7 ) + + + 67 AS col1
----
1
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT + - COUNT( * ) - + 46 + - - 48
----
1

skipif mysql # not compatible
query I rowsort label-6333
SELECT + - COUNT ( * ) - + 46 + - - 48
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT ALL + MIN( + - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL + MIN ( + - 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT - ( 29 ) * + ( - - 46 ) * - + ( - MIN( ALL - ( + 56 ) ) )
----
74704

skipif mysql # not compatible
query I rowsort label-6335
SELECT - ( 29 ) * + ( - - 46 ) * - + ( - MIN ( ALL - ( + 56 ) ) )
----
74704

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT ALL + MIN( + 31 ) * 77 * MAX( 16 ) AS col1
----
38192

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL + MIN ( + 31 ) * 77 * MAX ( 16 ) AS col1
----
38192

query I rowsort
SELECT - 4 * - 37 * - 79 AS col1
----
-11692

query I rowsort
SELECT + 9 * + 37 * - 37 * 82 AS col2
----
-1010322

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT CASE - SUM( DISTINCT 31 ) WHEN + MIN( - 9 ) * - 49 + - 71 * - 5 + - - 40 * 20 THEN + 8 + + 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6339
SELECT CASE - SUM ( DISTINCT 31 ) WHEN + MIN ( - 9 ) * - 49 + - 71 * - 5 + - - 40 * 20 THEN + 8 + + 12 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6340
SELECT ALL + 47 col2, 18 DIV - 40 + + 26 + + COALESCE ( 10, - ( 92 ) ) * - 46
----
47
-434

skipif mysql # not compatible
query II rowsort label-6340
SELECT ALL + 47 col2, 18 / - 40 + + 26 + + COALESCE ( 10, - ( 92 ) ) * - 46
----
47
-434

query I rowsort
SELECT + NULLIF ( - 55, + 11 + 29 ) AS col0
----
-55

query I rowsort
SELECT - 74 * - ( - + 84 ) AS col2
----
-6216

query II rowsort
SELECT ALL + 66, COALESCE ( + ( 9 ), 47, + 90 * - 11 - + 69 ) + - ( + 70 ) AS col0
----
66
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT SUM( + 64 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-6344
SELECT SUM ( + 64 ) AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6345
SELECT ALL NULLIF ( - - COUNT( * ), + MIN( ALL + 76 ) * + CAST( NULL AS DECIMAL ) ) * + 50 + - 19 * - 20 * + 90 AS col1
----
34250

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL NULLIF ( - - COUNT ( * ), + MIN ( ALL + 76 ) * + CAST ( NULL AS REAL ) ) * + 50 + - 19 * - 20 * + 90 AS col1
----
34250

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT MAX( + - 57 ) col2
----
-57

skipif mysql # not compatible
query I rowsort label-6346
SELECT MAX ( + - 57 ) col2
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-6347
SELECT ALL + 86 * - 94 + 32, COUNT( * ) AS col2
----
-8052
1

skipif mysql # not compatible
query II rowsort label-6347
SELECT ALL + 86 * - 94 + 32, COUNT ( * ) AS col2
----
-8052
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6348
SELECT - 60 * - 57 * - + 25 / + 41 * 55 + - MIN( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6348
SELECT - 60 * - 57 * - + 25 / + 41 * 55 + - MIN ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6349
SELECT + 78 * CAST( NULL AS SIGNED ) * 35 * + 31 * 82 * - + MIN( ALL - + 79 ) * - 46 * 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6349
SELECT + 78 * CAST ( NULL AS INTEGER ) * 35 * + 31 * 82 * - + MIN ( ALL - + 79 ) * - 46 * 89 AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( - 17, 3 * - 89 * 38 * - + 62 ) col1
----
-17

query II rowsort
SELECT + + 99, - 18 AS col0
----
99
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6352
SELECT MAX( - CAST( - 13 AS SIGNED ) )
----
13

skipif mysql # not compatible
query I rowsort label-6352
SELECT MAX ( - CAST ( - 13 AS INTEGER ) )
----
13

query I rowsort
SELECT ALL - ( 81 ) * - 21 + + ( - 31 )
----
1670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6354
SELECT - CAST( + ( + 63 ) AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-6354
SELECT - CAST ( + ( + 63 ) AS INTEGER )
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6355
SELECT - 34 + - - COALESCE ( 75, 53 ) - + CAST( 84 AS SIGNED ) + - 40
----
-83

skipif mysql # not compatible
query I rowsort label-6355
SELECT - 34 + - - COALESCE ( 75, 53 ) - + CAST ( 84 AS INTEGER ) + - 40
----
-83

query I rowsort
SELECT DISTINCT 4 + 0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT ALL + NULLIF ( - ( + + 14 ), - - COUNT( * ) ) - + COUNT( * ) - - CASE WHEN NULL BETWEEN NULL AND 79 THEN - - 32 * + 43 * + - 31 + - 31 + - 16 + + - COUNT( * ) END * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL + NULLIF ( - ( + + 14 ), - - COUNT ( * ) ) - + COUNT ( * ) - - CASE WHEN NULL BETWEEN NULL AND 79 THEN - - 32 * + 43 * + - 31 + - 31 + - 16 + + - COUNT ( * ) END * + 56
----
NULL

query I rowsort
SELECT + - 88 + + ( - 61 ) * + - 65 AS col0
----
3877

query I rowsort
SELECT - 19 - - 82
----
63

query II rowsort
SELECT DISTINCT 33, 86 AS col2
----
33
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6361
SELECT CAST( - 7 AS SIGNED ) col1
----
-7

skipif mysql # not compatible
query I rowsort label-6361
SELECT CAST ( - 7 AS INTEGER ) col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT + + ( 27 ) * + SUM( - 36 ) - - - COUNT( * )
----
-973

skipif mysql # not compatible
query I rowsort label-6362
SELECT + + ( 27 ) * + SUM ( - 36 ) - - - COUNT ( * )
----
-973

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT - + 63 * - 98 * COUNT( * ) AS col2
----
6174

skipif mysql # not compatible
query I rowsort label-6363
SELECT - + 63 * - 98 * COUNT ( * ) AS col2
----
6174

query I rowsort
SELECT ALL - 58 * + 55 - - CASE - 40 WHEN - 53 + 25 THEN + 61 WHEN - 33 THEN NULL ELSE + - 11 - 61 END + - 74 * + 22 * - ( 11 )
----
14646

query II rowsort
SELECT + 12, + 52 - + 11 col2
----
12
41

query I rowsort
SELECT DISTINCT - 41 * - + 60
----
2460

query I rowsort
SELECT ALL + + 89 - 74 + + - 98 AS col2
----
-83

query I rowsort
SELECT ALL - 8 * 70 + - + 85 AS col2
----
-645

onlyif mysql # DIV for integer division: 
query I rowsort label-6369
SELECT - 8 * 50 DIV - 69
----
5

skipif mysql # not compatible
query I rowsort label-6369
SELECT - 8 * 50 / - 69
----
5

query I rowsort
SELECT DISTINCT - COALESCE ( - - 8, 6 ) AS col2
----
-8

query I rowsort
SELECT ALL + 84 * - - 87
----
7308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6372
SELECT ALL NULLIF ( - 71, + CAST( NULL AS SIGNED ) )
----
-71

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL NULLIF ( - 71, + CAST ( NULL AS INTEGER ) )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT - MIN( ALL - + 24 ) * + 87 * - 52 * + 1
----
-108576

skipif mysql # not compatible
query I rowsort label-6373
SELECT - MIN ( ALL - + 24 ) * + 87 * - 52 * + 1
----
-108576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6374
SELECT DISTINCT + ( - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6374
SELECT DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6375
SELECT CAST( - - 55 AS SIGNED ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-6375
SELECT CAST ( - - 55 AS INTEGER ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT ALL + ( ( - MIN( + 98 ) ) )
----
-98

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL + ( ( - MIN ( + 98 ) ) )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6377
SELECT - CAST( - - 37 AS SIGNED ) - - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6377
SELECT - CAST ( - - 37 AS INTEGER ) - - - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT + SUM( - 15 ) * - MIN( DISTINCT - 56 ) - - 36 + + 41 * - 33 + 58
----
-2099

skipif mysql # not compatible
query I rowsort label-6378
SELECT + SUM ( - 15 ) * - MIN ( DISTINCT - 56 ) - - 36 + + 41 * - 33 + 58
----
-2099

onlyif mysql # aggregate syntax: 
query II rowsort label-6379
SELECT ALL + CASE WHEN + COUNT( * ) IS NOT NULL THEN NULL ELSE 76 / 63 END AS col2, + 97 AS col1
----
NULL
97

skipif mysql # not compatible
query II rowsort label-6379
SELECT ALL + CASE WHEN + COUNT ( * ) IS NOT NULL THEN NULL ELSE 76 / 63 END AS col2, + 97 AS col1
----
NULL
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6380
SELECT DISTINCT - COUNT( * ) DIV + 66 + ( 87 ), + 84 col0
----
87
84

skipif mysql # not compatible
query II rowsort label-6380
SELECT DISTINCT - COUNT ( * ) / + 66 + ( 87 ), + 84 col0
----
87
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6381
SELECT ALL + COUNT( * ) DIV 3 + - 39
----
-39

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL + COUNT ( * ) / 3 + - 39
----
-39

query I rowsort
SELECT - 2 - + 4
----
-6

query I rowsort
SELECT DISTINCT - 49 * - 37 + 62 AS col1
----
1875

query I rowsort
SELECT - 67 * + ( + - 81 ) AS col1
----
5427

query I rowsort
SELECT + NULLIF ( + 34, + 74 ) AS col0
----
34

query I rowsort
SELECT ALL - 16 * + 3 + 93 AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6387
SELECT - 43 + + COUNT( * ) + - CAST( NULL AS SIGNED ) + + ( - - 20 ) / - 65 + - - 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT - 43 + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + ( - - 20 ) / - 65 + - - 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT COALESCE ( - COUNT( * ), - - 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-6388
SELECT COALESCE ( - COUNT ( * ), - - 66 )
----
-1

query II rowsort
SELECT ALL ( - 22 ) col0, 3 * 21 AS col0
----
-22
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT ALL 79 * 92 + + 96 * COUNT( * ) - + + 5 + - - 53 col2
----
7412

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL 79 * 92 + + 96 * COUNT ( * ) - + + 5 + - - 53 col2
----
7412

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT + 90 * + COUNT( * ) + - + COUNT( * ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-6391
SELECT + 90 * + COUNT ( * ) + - + COUNT ( * ) AS col2
----
89

query I rowsort
SELECT - + ( 87 ) AS col0
----
-87

query II rowsort
SELECT - 52 - - 42, - 35 - + 79 + + + 63 * - 13 col1
----
-10
-933

onlyif mysql # aggregate syntax: 
query II rowsort label-6394
SELECT + - 92 * + 23 AS col2, - 89 * + COUNT( * ) AS col1
----
-2116
-89

skipif mysql # not compatible
query II rowsort label-6394
SELECT + - 92 * + 23 AS col2, - 89 * + COUNT ( * ) AS col1
----
-2116
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6395
SELECT CAST( NULL AS SIGNED ) * - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6395
SELECT CAST ( NULL AS INTEGER ) * - 74 AS col1
----
NULL

query I rowsort
SELECT ALL 9 * + 77
----
693

query I rowsort
SELECT DISTINCT - ( - - 6 ) AS col2
----
-6

query I rowsort
SELECT + 1 - + 77 + - 17 * - 1
----
-59

query I rowsort
SELECT 70 * + + 18
----
1260

query I rowsort
SELECT 5 * + + CASE 40 WHEN 71 THEN - - 34 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT ALL 75 + + + ( + COUNT( * ) )
----
76

skipif mysql # not compatible
query I rowsort label-6401
SELECT ALL 75 + + + ( + COUNT ( * ) )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT COUNT( ALL 28 ) + - 26 + + 56 * - 6 / - CASE 83 WHEN - - 28 * + 53 THEN + NULLIF ( + - 83, + + 43 ) WHEN - COUNT( * ) + + 62 + + 98 THEN NULL END / COUNT( * ) + - + COUNT( * ) * - + 43 + + ( + - 26 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6402
SELECT COUNT ( ALL 28 ) + - 26 + + 56 * - 6 / - CASE 83 WHEN - - 28 * + 53 THEN + NULLIF ( + - 83, + + 43 ) WHEN - COUNT ( * ) + + 62 + + 98 THEN NULL END / COUNT ( * ) + - + COUNT ( * ) * - + 43 + + ( + - 26 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6403
SELECT 75 AS col1, CASE + - 19 WHEN - 85 + + 25 THEN NULL WHEN - - AVG ( DISTINCT 41 ) THEN + 97 + + COUNT( - 39 ) ELSE + ( + 6 ) END AS col2
----
75
6

skipif mysql # not compatible
query II rowsort label-6403
SELECT 75 AS col1, CASE + - 19 WHEN - 85 + + 25 THEN NULL WHEN - - AVG ( DISTINCT 41 ) THEN + 97 + + COUNT ( - 39 ) ELSE + ( + 6 ) END AS col2
----
75
6

query I rowsort
SELECT 21 - 71 + - 16 * - 97 * + 15 + - 16 * + ( - - 85 )
----
21870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6405
SELECT CASE - - CAST( NULL AS SIGNED ) WHEN 99 THEN - 48 WHEN 82 THEN + 54 * - + MAX( ALL 36 ) - - + COUNT( * ) * + 72 + - 4 WHEN + 6 + + 59 THEN NULL END + 46 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6405
SELECT CASE - - CAST ( NULL AS INTEGER ) WHEN 99 THEN - 48 WHEN 82 THEN + 54 * - + MAX ( ALL 36 ) - - + COUNT ( * ) * + 72 + - 4 WHEN + 6 + + 59 THEN NULL END + 46 * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL 39 + + + 11
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-6407
SELECT 99 * 32 + 68 + + 22 DIV - 63 AS col0
----
3236

skipif mysql # not compatible
query I rowsort label-6407
SELECT 99 * 32 + 68 + + 22 / - 63 AS col0
----
3236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6408
SELECT ALL - 26 + + - 28 + - 1 DIV - + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL - 26 + + - 28 + - 1 / - + COUNT ( * )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6409
SELECT ALL + CAST( 83 AS SIGNED ) + - 48 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL + CAST ( 83 AS INTEGER ) + - 48 AS col2
----
35

query I rowsort
SELECT ALL - CASE - 95 WHEN + 75 THEN - 2 END
----
NULL

query I rowsort
SELECT DISTINCT + 81 + - 26 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT - 89 * 1 + 96 + CASE + 6 WHEN + 26 THEN - COUNT( * ) WHEN - 71 THEN NULL ELSE NULL END - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-6412
SELECT - 89 * 1 + 96 + CASE + 6 WHEN + 26 THEN - COUNT ( * ) WHEN - 71 THEN NULL ELSE NULL END - + 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6413
SELECT ALL + CASE 99 WHEN - CAST( + + 93 AS SIGNED ) THEN NULL WHEN 40 * 96 THEN + - 87 * - + COUNT( ALL - 54 ) END + 8 + - 76 + + + 43 * + - 38 + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6413
SELECT ALL + CASE 99 WHEN - CAST ( + + 93 AS INTEGER ) THEN NULL WHEN 40 * 96 THEN + - 87 * - + COUNT ( ALL - 54 ) END + 8 + - 76 + + + 43 * + - 38 + + 43
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6414
SELECT CAST( NULL AS SIGNED ) * 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6414
SELECT CAST ( NULL AS INTEGER ) * 81 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6415
SELECT 46 * + - NULLIF ( + COUNT( * ), - 60 ) * ( + + ( + 92 ) ) * + 63 AS col0, + 66 + - 12
----
-266616
54

skipif mysql # not compatible
query II rowsort label-6415
SELECT 46 * + - NULLIF ( + COUNT ( * ), - 60 ) * ( + + ( + 92 ) ) * + 63 AS col0, + 66 + - 12
----
-266616
54

onlyif mysql # DIV for integer division: 
query I rowsort label-6416
SELECT 20 * 84 DIV ( + - 31 )
----
-54

skipif mysql # not compatible
query I rowsort label-6416
SELECT 20 * 84 / ( + - 31 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT ALL COALESCE ( 86, + 88 * - 17 ) - - COUNT( * ) * + 16 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL COALESCE ( 86, + 88 * - 17 ) - - COUNT ( * ) * + 16 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT SUM( ALL 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6418
SELECT SUM ( ALL 16 ) AS col0
----
16

query I rowsort
SELECT 85 * - 4 * 64 AS col2
----
-21760

query I rowsort
SELECT - 96 * - + 33
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT ALL + + ( + 34 ) * - - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-6421
SELECT ALL + + ( + 34 ) * - - COUNT ( * )
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-6422
SELECT + 49 + - COUNT( + 32 ), COUNT( * ) * + 46 * + - ( - 5 ) + - 18 * + 55 + + COUNT( * ) col1
----
48
-759

skipif mysql # not compatible
query II rowsort label-6422
SELECT + 49 + - COUNT ( + 32 ), COUNT ( * ) * + 46 * + - ( - 5 ) + - 18 * + 55 + + COUNT ( * ) col1
----
48
-759

query I rowsort
SELECT 77 - + - CASE - 39 WHEN + ( 28 ) * + ( + 44 ) THEN - 89 WHEN 65 * - + 56 THEN NULL WHEN + 19 THEN 93 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6424
SELECT - 23 DIV COUNT( * ) col2
----
-23

skipif mysql # not compatible
query I rowsort label-6424
SELECT - 23 / COUNT ( * ) col2
----
-23

query I rowsort
SELECT + 63 * + COALESCE ( 60, + 86 ) AS col2
----
3780

query I rowsort
SELECT ALL + + 18 * 81
----
1458

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT ALL NULLIF ( - + 10, 37 + - 78 + + 77 + - AVG ( ALL + 83 ) * - + 61 * - 11 * + NULLIF ( + COUNT( * ), - 92 ) - - - 26 )
----
-10

skipif mysql # not compatible
query I rowsort label-6427
SELECT ALL NULLIF ( - + 10, 37 + - 78 + + 77 + - AVG ( ALL + 83 ) * - + 61 * - 11 * + NULLIF ( + COUNT ( * ), - 92 ) - - - 26 )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6428
SELECT ALL + 92 DIV - 97 * + + 5 * - 87 * + COUNT( DISTINCT + + 58 ) + + + 3 col1
----
3

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL + 92 / - 97 * + + 5 * - 87 * + COUNT ( DISTINCT + + 58 ) + + + 3 col1
----
3

query I rowsort
SELECT - 99 + + 63 col0
----
-36

query I rowsort
SELECT DISTINCT 38 * - - 59
----
2242

query I rowsort
SELECT ALL 43 + - 61
----
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6432
SELECT ALL - - CAST( NULL AS DECIMAL ) + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL - - CAST ( NULL AS REAL ) + COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6433
SELECT - CAST( 56 AS SIGNED ) DIV - + 57
----
0

skipif mysql # not compatible
query I rowsort label-6433
SELECT - CAST ( 56 AS INTEGER ) / - + 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT ALL COUNT( 91 ) + + - 2
----
-1

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL COUNT ( 91 ) + + - 2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6435
SELECT COUNT( ALL + 98 ) * + - 29 * - + 90 * - - 61 + - CASE + 34 WHEN - 80 / ( - 35 ) THEN NULL WHEN + + 92 * - 0 THEN - NULLIF ( - + CAST( + - 86 AS SIGNED ), - + 86 / + 85 ) END + 82 + + + CAST( NULL AS SIGNED ) * + 85 + + 66 + + 59 * + 29 * - 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6435
SELECT COUNT ( ALL + 98 ) * + - 29 * - + 90 * - - 61 + - CASE + 34 WHEN - 80 / ( - 35 ) THEN NULL WHEN + + 92 * - 0 THEN - NULLIF ( - + CAST ( + - 86 AS INTEGER ), - + 86 / + 85 ) END + 82 + + + CAST ( NULL AS INTEGER ) * + 85 + + 66 + + 59 * + 29 * - 28 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT DISTINCT COUNT( DISTINCT - + 97 ) * + 18 - + - 68 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-6436
SELECT DISTINCT COUNT ( DISTINCT - + 97 ) * + 18 - + - 68 AS col1
----
86

query II rowsort
SELECT - 40 col1, 4 * - 88 * + + 91 + - + 52 + - + 45 AS col2
----
-40
-32129

query I rowsort
SELECT DISTINCT 69 * 61
----
4209

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT ALL + 94 + - ( + 67 ) + - 57 + + 81 * COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL + 94 + - ( + 67 ) + - 57 + + 81 * COUNT ( * )
----
51

query II rowsort
SELECT DISTINCT 33 * - 80 AS col0, - 30 * + ( - 68 )
----
-2640
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT DISTINCT 26 + - COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-6441
SELECT DISTINCT 26 + - COUNT ( * ) AS col1
----
25

query I rowsort
SELECT ALL + 77 * - - 1 - ( 77 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT 11 - COUNT( * ) * 50
----
-39

skipif mysql # not compatible
query I rowsort label-6443
SELECT 11 - COUNT ( * ) * 50
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6444
SELECT - 48 * - ( - 54 ) * COUNT( * ) - + 58 + + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6444
SELECT - 48 * - ( - 54 ) * COUNT ( * ) - + 58 + + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL ( + 34 ) * + 71 col0
----
2414

onlyif mysql # DIV for integer division: 
query I rowsort label-6446
SELECT ALL - 0 * - 17 DIV - 74 - - 24 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL - 0 * - 17 / - 74 - - 24 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT ALL 85 * - 74 - + COUNT( * ) * - 5 * 85 - + - 72 + COUNT( DISTINCT + - 35 ) AS col2
----
-5792

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL 85 * - 74 - + COUNT ( * ) * - 5 * 85 - + - 72 + COUNT ( DISTINCT + - 35 ) AS col2
----
-5792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6448
SELECT CAST( NULL AS SIGNED ) * + + 78 / + ( - - 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6448
SELECT CAST ( NULL AS INTEGER ) * + + 78 / + ( - - 62 )
----
NULL

query I rowsort
SELECT ALL 14 * + + 6
----
84

query I rowsort
SELECT 20 - + - 5
----
25

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6451
SELECT - 57 AS col1, NULLIF ( - 75, + 9 * - - 80 + - - CAST( NULL AS DECIMAL ) * + - 73 * + - 50 ) AS col2
----
-57
-75

skipif mysql # not compatible
query II rowsort label-6451
SELECT - 57 AS col1, NULLIF ( - 75, + 9 * - - 80 + - - CAST ( NULL AS REAL ) * + - 73 * + - 50 ) AS col2
----
-57
-75

query II rowsort
SELECT DISTINCT - + ( + 49 ), + 90 AS col2
----
-49
90

query II rowsort
SELECT ALL - 10, + 3 + + ( + - 51 ) + + 41 AS col0
----
-10
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6454
SELECT - NULLIF ( + 95, - - 70 * + 20 ) DIV - 16 * + + COUNT( * ) AS col2, 1 - 74 AS col2
----
5
-73

skipif mysql # not compatible
query II rowsort label-6454
SELECT - NULLIF ( + 95, - - 70 * + 20 ) / - 16 * + + COUNT ( * ) AS col2, 1 - 74 AS col2
----
5
-73

query II rowsort
SELECT ALL - - 55 AS col2, + 89 AS col0
----
55
89

onlyif mysql # aggregate syntax: 
query II rowsort label-6456
SELECT DISTINCT + CASE + AVG ( 23 ) WHEN - - 9 + 42 THEN NULL WHEN + COUNT( * ) THEN + - 91 * + 39 WHEN + 67 THEN NULL END AS col0, - 91 * - 51 * - 47 + COUNT( * )
----
NULL
-218126

skipif mysql # not compatible
query II rowsort label-6456
SELECT DISTINCT + CASE + AVG ( 23 ) WHEN - - 9 + 42 THEN NULL WHEN + COUNT ( * ) THEN + - 91 * + 39 WHEN + 67 THEN NULL END AS col0, - 91 * - 51 * - 47 + COUNT ( * )
----
NULL
-218126

query II rowsort
SELECT - 7 AS col0, - 14
----
-7
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT ALL - 70 DIV - 65 + 26 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL - 70 / - 65 + 26 AS col2
----
27

query I rowsort
SELECT - + 90 * - 24 AS col1
----
2160

query I rowsort
SELECT ALL + 79 + ( 46 ) AS col1
----
125

query II rowsort
SELECT DISTINCT + 62 * + 69 AS col0, 79 + + ( - 82 ) + - 17
----
4278
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT DISTINCT + - 40 + - 90 * + + SUM( ALL + 98 )
----
-8860

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT + - 40 + - 90 * + + SUM ( ALL + 98 )
----
-8860

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT + 27 * MIN( + - 3 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-6463
SELECT + 27 * MIN ( + - 3 ) AS col0
----
-81

query I rowsort
SELECT ALL + ( - + 65 ) + - + 81 AS col2
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT - + COUNT( * ) + - 12 * - COALESCE ( - - 88, - 93 * + - 33 )
----
1055

skipif mysql # not compatible
query I rowsort label-6465
SELECT - + COUNT ( * ) + - 12 * - COALESCE ( - - 88, - 93 * + - 33 )
----
1055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6466
SELECT ALL + CAST( - + ( - - 91 ) AS SIGNED ) + + 16 col0
----
-75

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL + CAST ( - + ( - - 91 ) AS INTEGER ) + + 16 col0
----
-75

query I rowsort
SELECT + 63 * + ( - 60 ) AS col2
----
-3780

query I rowsort
SELECT ALL COALESCE ( 17, + 90 * - 87 ) AS col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6469
SELECT - COUNT( * ) + + - 43 / + + 44 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6469
SELECT - COUNT ( * ) + + - 43 / + + 44 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6470
SELECT ALL CAST( NULL AS SIGNED ) + ( + 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL CAST ( NULL AS INTEGER ) + ( + 16 )
----
NULL

query I rowsort
SELECT - 27 - - 55 - - 85
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6472
SELECT DISTINCT CAST( NULL AS SIGNED ) / - - CASE + + 3 WHEN 53 THEN NULL WHEN - 9 THEN + 49 * - COUNT( * ) WHEN 90 + + 76 + + + 41 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - - CASE + + 3 WHEN 53 THEN NULL WHEN - 9 THEN + 49 * - COUNT ( * ) WHEN 90 + + 76 + + + 41 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 81 + CASE 50 WHEN 73 THEN + 55 END + - 32 / - 53 - - + 47 - + - 61
----
NULL

query I rowsort
SELECT + 56 + 59 + + 56 AS col1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT - 67 + + 83 * - - COUNT( * ) * + COUNT( + - 50 ) * - 52 AS col1
----
-4383

skipif mysql # not compatible
query I rowsort label-6475
SELECT - 67 + + 83 * - - COUNT ( * ) * + COUNT ( + - 50 ) * - 52 AS col1
----
-4383

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT ALL 38 * - COUNT( DISTINCT 94 ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL 38 * - COUNT ( DISTINCT 94 ) col0
----
-38

query I rowsort
SELECT + 49 - + + 65 * 23
----
-1446

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6478
SELECT ALL ( + 79 ) * - CASE COUNT( * ) WHEN 56 THEN - + 52 + + - AVG ( ALL + 19 ) + ( CASE 37 WHEN + CAST( NULL AS SIGNED ) THEN + CASE + COALESCE ( 6, + - 0 ) WHEN + 41 * COUNT( * ) THEN 30 * - - 80 - CASE - 85 WHEN 43 THEN 61 * + 58 END + - CAST( NULL AS SIGNED ) END ELSE 57 END ) WHEN 0 + + 2 - COUNT( * ) THEN NULL ELSE - 4 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL ( + 79 ) * - CASE COUNT ( * ) WHEN 56 THEN - + 52 + + - AVG ( ALL + 19 ) + ( CASE 37 WHEN + CAST ( NULL AS INTEGER ) THEN + CASE + COALESCE ( 6, + - 0 ) WHEN + 41 * COUNT ( * ) THEN 30 * - - 80 - CASE - 85 WHEN 43 THEN 61 * + 58 END + - CAST ( NULL AS INTEGER ) END ELSE 57 END ) WHEN 0 + + 2 - COUNT ( * ) THEN NULL ELSE - 4 END AS col2
----
NULL

query I rowsort
SELECT + 20 + + 24
----
44

query I rowsort
SELECT ALL 31 - + ( + - 36 )
----
67

query I rowsort
SELECT + 37 * - 48
----
-1776

query I rowsort
SELECT + NULLIF ( + ( - + 64 ), - 58 )
----
-64

query I rowsort
SELECT ALL ( 40 ) * 78 AS col1
----
3120

query I rowsort
SELECT + 56 + + 29 * 28
----
868

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6485
SELECT + + CAST( 96 AS SIGNED ) * + + 94 * ( - ( - COALESCE ( - COUNT( * ), 93 ) ) ) - - + 28 + - + 22, + 63 * + SUM( - 94 ) * 84 col2
----
-9018
-497448

skipif mysql # not compatible
query II rowsort label-6485
SELECT + + CAST ( 96 AS INTEGER ) * + + 94 * ( - ( - COALESCE ( - COUNT ( * ), 93 ) ) ) - - + 28 + - + 22, + 63 * + SUM ( - 94 ) * 84 col2
----
-9018
-497448

query I rowsort
SELECT + - 36 * + + 41 AS col1
----
-1476

query I rowsort
SELECT ALL 75 * 87 * + 31
----
202275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6488
SELECT + COUNT( * ) DIV + 96 + + 31 + 52
----
83

skipif mysql # not compatible
query I rowsort label-6488
SELECT + COUNT ( * ) / + 96 + + 31 + 52
----
83

query I rowsort
SELECT ALL 50 * - 40 + - 49 + - 95
----
-2144

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT ALL - - MIN( 91 ) * 3 + - 72
----
201

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL - - MIN ( 91 ) * 3 + - 72
----
201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6491
SELECT DISTINCT 38 * - 51 + - - 64 + + - 38 - COUNT( * ) DIV - + 40
----
-1912

skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT 38 * - 51 + - - 64 + + - 38 - COUNT ( * ) / - + 40
----
-1912

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT + SUM( - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-6492
SELECT + SUM ( - 9 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT + + 9 * - - COUNT( * ) * 14 + + 99 + 28 * + 66 * + ( + 27 ) AS col1
----
50121

skipif mysql # not compatible
query I rowsort label-6493
SELECT + + 9 * - - COUNT ( * ) * 14 + + 99 + 28 * + 66 * + ( + 27 ) AS col1
----
50121

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT ALL + + COUNT( ALL + 12 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL + + COUNT ( ALL + 12 ) AS col2
----
1

query I rowsort
SELECT ALL - 40 * 0 AS col0
----
0

query I rowsort
SELECT - 27 + - - 72 + 93 * + + ( + 59 ) + - 66 AS col2
----
5466

query II rowsort
SELECT - 90, - 14 AS col0
----
-90
-14

query I rowsort
SELECT - 4 + + 72 + + 17
----
85

query I rowsort
SELECT ALL + 95 - 97 * + 75
----
-7180

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT MIN( DISTINCT - + 63 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-6500
SELECT MIN ( DISTINCT - + 63 ) AS col1
----
-63

query II rowsort
SELECT 96 AS col2, + 50 + + 28
----
96
78

query I rowsort
SELECT DISTINCT ( + - 92 )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6503
SELECT ALL CAST( + ( 15 ) AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-6503
SELECT ALL CAST ( + ( 15 ) AS INTEGER )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT ALL - 77 * + - COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL - 77 * + - COUNT ( * ) AS col1
----
77

query I rowsort
SELECT ALL 84 * - 66
----
-5544

query II rowsort
SELECT 42, 34 AS col1
----
42
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6507
SELECT - 2 DIV + 34 * 51 * + MAX( 62 )
----
0

skipif mysql # not compatible
query I rowsort label-6507
SELECT - 2 / + 34 * 51 * + MAX ( 62 )
----
0

query I rowsort
SELECT - 60 + + + 39 AS col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-6509
SELECT DISTINCT - 15 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT - 15 / + 74
----
0

query I rowsort
SELECT + 93 - - NULLIF ( - 23, 89 * 50 ) AS col2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6511
SELECT + CAST( - 11 AS SIGNED ) * - - 93 * + 9 AS col1
----
-9207

skipif mysql # not compatible
query I rowsort label-6511
SELECT + CAST ( - 11 AS INTEGER ) * - - 93 * + 9 AS col1
----
-9207

query I rowsort
SELECT ALL + 45 + - 62
----
-17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6513
SELECT - 44 DIV 20 + + CAST( + 13 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-6513
SELECT - 44 / 20 + + CAST ( + 13 AS INTEGER )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT DISTINCT - - MAX( DISTINCT + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT - - MAX ( DISTINCT + 78 )
----
78

query I rowsort
SELECT ALL 87 + - 11 AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6516
SELECT ALL - + 26 AS col2, + 2 + 12 + - NULLIF ( CAST( - 66 AS SIGNED ), ( - 81 ) ) AS col0
----
-26
80

skipif mysql # not compatible
query II rowsort label-6516
SELECT ALL - + 26 AS col2, + 2 + 12 + - NULLIF ( CAST ( - 66 AS INTEGER ), ( - 81 ) ) AS col0
----
-26
80

query I rowsort
SELECT + + ( - - 35 )
----
35

query I rowsort
SELECT ALL ( - - 93 ) + 33 AS col1
----
126

query I rowsort
SELECT DISTINCT + 69 + + 86
----
155

query I rowsort
SELECT + 64 * + + 42 + - 94 AS col0
----
2594

query I rowsort
SELECT 21 * 83 col2
----
1743

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6522
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-6522
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - 96
----
NULL

query II rowsort
SELECT ALL - 11 AS col1, + 62
----
-11
62

query I rowsort
SELECT DISTINCT 33 - 58 AS col1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6525
SELECT CAST( NULL AS SIGNED ) + + ( - 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6525
SELECT CAST ( NULL AS INTEGER ) + + ( - 24 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6526
SELECT COUNT( * ) * - COALESCE ( - NULLIF ( - + 76, + + 22 / + AVG ( + + 3 ) ), - 72, + + CAST( - + 81 AS SIGNED ) * - - 37 )
----
-76

skipif mysql # not compatible
query I rowsort label-6526
SELECT COUNT ( * ) * - COALESCE ( - NULLIF ( - + 76, + + 22 / + AVG ( + + 3 ) ), - 72, + + CAST ( - + 81 AS INTEGER ) * - - 37 )
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-6527
SELECT 40 * + 24 AS col2, 66 * + COUNT( * ) AS col2
----
960
66

skipif mysql # not compatible
query II rowsort label-6527
SELECT 40 * + 24 AS col2, 66 * + COUNT ( * ) AS col2
----
960
66

query I rowsort
SELECT 0 * 95 + 7 AS col2
----
7

query I rowsort
SELECT 20 + + 8 AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6530
SELECT ALL + 0 DIV + + 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL + 0 / + + 31 AS col1
----
0

query I rowsort
SELECT DISTINCT + 91 * - + 32 AS col0
----
-2912

query I rowsort
SELECT 46 - - ( 25 ) - + 45
----
26

query I rowsort
SELECT 55 + - 89 * + 36 col0
----
-3149

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT 29 * - CASE MIN( ALL - - 31 ) WHEN + 4 THEN + + 50 WHEN - - COUNT( * ) THEN - 86 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6534
SELECT 29 * - CASE MIN ( ALL - - 31 ) WHEN + 4 THEN + + 50 WHEN - - COUNT ( * ) THEN - 86 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 28 * + 59 AS col2
----
-1652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6536
SELECT CAST( NULL AS SIGNED ) + - COALESCE ( ( - 84 ), - 40 * - AVG ( + 65 ) + + + 53 ) + + 58 + + - 34 * 86 + + 8 + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-6536
SELECT CAST ( NULL AS INTEGER ) + - COALESCE ( ( - 84 ), - 40 * - AVG ( + 65 ) + + + 53 ) + + 58 + + - 34 * 86 + + 8 + 7
----
NULL

query I rowsort
SELECT 64 * + 91 AS col1
----
5824

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT - SUM( DISTINCT - 69 ) + + - 79 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-6538
SELECT - SUM ( DISTINCT - 69 ) + + - 79 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT SUM( DISTINCT + - 97 ) - - 56 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-6539
SELECT SUM ( DISTINCT + - 97 ) - - 56 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT DISTINCT - 47 + COUNT( - 62 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-6540
SELECT DISTINCT - 47 + COUNT ( - 62 ) AS col1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-6541
SELECT 44 DIV - 60 col2
----
0

skipif mysql # not compatible
query I rowsort label-6541
SELECT 44 / - 60 col2
----
0

query II rowsort
SELECT ALL - NULLIF ( + - 2, - 16 ) + + COALESCE ( 94, 41 ) * 76 AS col1, 6 + 41 AS col0
----
7146
47

query II rowsort
SELECT ALL - ( 16 ), 21 AS col0
----
-16
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6544
SELECT ( 29 ) DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-6544
SELECT ( 29 ) / - 73
----
0

query I rowsort
SELECT 54 * - - 16 col1
----
864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6546
SELECT ALL + 31 DIV - + CASE - + 1 WHEN + 33 - + - 43 THEN - 37 + + - 21 WHEN + COUNT( * ) * 5 THEN 85 WHEN - 73 - + 26 * 36 - + + 66 THEN NULL ELSE - SUM( DISTINCT 94 ) END + + + COALESCE ( + 23, - 1 ) + - 22
----
1

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL + 31 / - + CASE - + 1 WHEN + 33 - + - 43 THEN - 37 + + - 21 WHEN + COUNT ( * ) * 5 THEN 85 WHEN - 73 - + 26 * 36 - + + 66 THEN NULL ELSE - SUM ( DISTINCT 94 ) END + + + COALESCE ( + 23, - 1 ) + - 22
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT 51 * + - COUNT( * ) + - COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-6547
SELECT 51 * + - COUNT ( * ) + - COUNT ( * ) AS col1
----
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-6548
SELECT 46 DIV 86, 53 * - 55 AS col2
----
0
-2915

skipif mysql # not compatible
query II rowsort label-6548
SELECT 46 / 86, 53 * - 55 AS col2
----
0
-2915

query I rowsort
SELECT ALL - 81 * - 91 * + 5
----
36855

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT MAX( ALL + - 47 ) + 3 + - 74
----
-118

skipif mysql # not compatible
query I rowsort label-6550
SELECT MAX ( ALL + - 47 ) + 3 + - 74
----
-118

query I rowsort
SELECT ALL + - ( - 17 ) * + 20
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT ALL + ( + COUNT( * ) ) * - 80 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6552
SELECT ALL + ( + COUNT ( * ) ) * - 80 AS col0
----
-80

query I rowsort
SELECT ALL + 37 * + 47 + - - 27 AS col1
----
1766

onlyif mysql # aggregate syntax: 
query II rowsort label-6554
SELECT DISTINCT - + 79 * + COUNT( * ) col0, + 3
----
-79
3

skipif mysql # not compatible
query II rowsort label-6554
SELECT DISTINCT - + 79 * + COUNT ( * ) col0, + 3
----
-79
3

query I rowsort
SELECT - 99 * - + 31 + - + 16
----
3053

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT 24 * - - COUNT( * ) col2
----
24

skipif mysql # not compatible
query I rowsort label-6556
SELECT 24 * - - COUNT ( * ) col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT ALL - SUM( DISTINCT + - 24 )
----
24

skipif mysql # not compatible
query I rowsort label-6557
SELECT ALL - SUM ( DISTINCT + - 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT 4 * COUNT( * ) + 9 * - 14
----
-122

skipif mysql # not compatible
query I rowsort label-6558
SELECT 4 * COUNT ( * ) + 9 * - 14
----
-122

onlyif mysql # aggregate syntax: 
query II rowsort label-6559
SELECT 67 AS col1, 66 + - - ( CASE + 97 WHEN NULLIF ( + - COUNT( * ), - 34 + - - 57 * + 79 * - COUNT( * ) ) THEN + 64 END ) col0
----
67
NULL

skipif mysql # not compatible
query II rowsort label-6559
SELECT 67 AS col1, 66 + - - ( CASE + 97 WHEN NULLIF ( + - COUNT ( * ), - 34 + - - 57 * + 79 * - COUNT ( * ) ) THEN + 64 END ) col0
----
67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT 14 * COUNT( * ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-6560
SELECT 14 * COUNT ( * ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT MIN( DISTINCT - 28 ) + + COALESCE ( + - 12, + + COUNT( * ), + 43 * MAX( - COALESCE ( + - 87, - 24 ) ) - 74 + + 57 * - + 54 + + COUNT( * ) )
----
-40

skipif mysql # not compatible
query I rowsort label-6561
SELECT MIN ( DISTINCT - 28 ) + + COALESCE ( + - 12, + + COUNT ( * ), + 43 * MAX ( - COALESCE ( + - 87, - 24 ) ) - 74 + + 57 * - + 54 + + COUNT ( * ) )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT DISTINCT SUM( DISTINCT - - 83 ) col2
----
83

skipif mysql # not compatible
query I rowsort label-6562
SELECT DISTINCT SUM ( DISTINCT - - 83 ) col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT ALL 91 * COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL 91 * COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT COUNT( * ) * + 28 col2
----
28

skipif mysql # not compatible
query I rowsort label-6564
SELECT COUNT ( * ) * + 28 col2
----
28

query I rowsort
SELECT ALL 9 * 7
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-6566
SELECT COUNT( * ) + + CASE - ( + 71 ) WHEN 38 + + COUNT( * ) THEN + - MAX( 83 ) * + 82 * + - 81 WHEN + 91 * 60 - AVG ( 69 ) * 33 + - 94 + + COUNT( * ) THEN NULL END + + NULLIF ( - + 96, - + 18 ) AS col1, - 17 AS col1
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-6566
SELECT COUNT ( * ) + + CASE - ( + 71 ) WHEN 38 + + COUNT ( * ) THEN + - MAX ( 83 ) * + 82 * + - 81 WHEN + 91 * 60 - AVG ( 69 ) * 33 + - 94 + + COUNT ( * ) THEN NULL END + + NULLIF ( - + 96, - + 18 ) AS col1, - 17 AS col1
----
NULL
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6567
SELECT DISTINCT NULLIF ( - 71, CASE + - ( - - COUNT( * ) ) WHEN + 84 + 14 * COUNT( * ) THEN NULL WHEN - 41 THEN - ( 1 ) * - COUNT( 22 ) ELSE COUNT( * ) * + 85 + CASE + 16 WHEN - - CASE - + COALESCE ( + 45, - COUNT( * ) + 8 ) WHEN - COALESCE ( + - CAST( NULL AS SIGNED ), - 61 ) * - - NULLIF ( - + 42, - - 33 ) - - CASE - + 90 WHEN + 37 + + 6 - - - 72 + - 46 + + CAST( + + AVG ( - + 1 ) AS SIGNED ) * - - CAST( - + 74 AS SIGNED ) THEN NULL WHEN - 1 THEN NULL WHEN - 5 * - 80 * 11 + + 4 THEN NULL ELSE - 11 END THEN - + 20 ELSE + 62 * + 23 END - 76 THEN 21 WHEN COALESCE ( + 86, + 36, + 5 ) THEN 57 * 84 ELSE + 50 END + 9 END ) * 64
----
-4544

skipif mysql # not compatible
query I rowsort label-6567
SELECT DISTINCT NULLIF ( - 71, CASE + - ( - - COUNT ( * ) ) WHEN + 84 + 14 * COUNT ( * ) THEN NULL WHEN - 41 THEN - ( 1 ) * - COUNT ( 22 ) ELSE COUNT ( * ) * + 85 + CASE + 16 WHEN - - CASE - + COALESCE ( + 45, - COUNT ( * ) + 8 ) WHEN - COALESCE ( + - CAST ( NULL AS INTEGER ), - 61 ) * - - NULLIF ( - + 42, - - 33 ) - - CASE - + 90 WHEN + 37 + + 6 - - - 72 + - 46 + + CAST ( + + AVG ( - + 1 ) AS INTEGER ) * - - CAST ( - + 74 AS INTEGER ) THEN NULL WHEN - 1 THEN NULL WHEN - 5 * - 80 * 11 + + 4 THEN NULL ELSE - 11 END THEN - + 20 ELSE + 62 * + 23 END - 76 THEN 21 WHEN COALESCE ( + 86, + 36, + 5 ) THEN 57 * 84 ELSE + 50 END + 9 END ) * 64
----
-4544

query I rowsort
SELECT ALL 85 + 14
----
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6569
SELECT 55 + + 53 + - CAST( NULL AS DECIMAL ), 31 - NULLIF ( 4, 35 + - MAX( ALL - 42 ) * COUNT( * ) ) + + MIN( + NULLIF ( 47, 97 ) ) AS col1
----
NULL
74

skipif mysql # not compatible
query II rowsort label-6569
SELECT 55 + + 53 + - CAST ( NULL AS REAL ), 31 - NULLIF ( 4, 35 + - MAX ( ALL - 42 ) * COUNT ( * ) ) + + MIN ( + NULLIF ( 47, 97 ) ) AS col1
----
NULL
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6570
SELECT COUNT( * ) DIV + - 91 * - 10 col0, 86 * - ( 9 ) + ( + + 43 ) AS col1
----
0
-731

skipif mysql # not compatible
query II rowsort label-6570
SELECT COUNT ( * ) / + - 91 * - 10 col0, 86 * - ( 9 ) + ( + + 43 ) AS col1
----
0
-731

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT ALL 49 + - COUNT( * ) - - - CASE - + 14 WHEN + 53 * 37 * + COALESCE ( + 66, - - 9, + 60 * - 97 ) THEN + MAX( - + ( - - 72 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL 49 + - COUNT ( * ) - - - CASE - + 14 WHEN + 53 * 37 * + COALESCE ( + 66, - - 9, + 60 * - 97 ) THEN + MAX ( - + ( - - 72 ) ) END
----
NULL

query I rowsort
SELECT DISTINCT 8 + - 95 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT + NULLIF ( - + 64, COUNT( * ) - - 9 - - 29 ) * ( + 17 ) - - 51
----
-1037

skipif mysql # not compatible
query I rowsort label-6573
SELECT + NULLIF ( - + 64, COUNT ( * ) - - 9 - - 29 ) * ( + 17 ) - - 51
----
-1037

onlyif mysql # DIV for integer division: 
query I rowsort label-6574
SELECT ALL 43 DIV + CASE + 20 WHEN - 88 THEN + - 22 ELSE - 74 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL 43 / + CASE + 20 WHEN - 88 THEN + - 22 ELSE - 74 END AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6575
SELECT DISTINCT CAST( - 7 AS SIGNED ) + 35 * 71
----
2478

skipif mysql # not compatible
query I rowsort label-6575
SELECT DISTINCT CAST ( - 7 AS INTEGER ) + 35 * 71
----
2478

query I rowsort
SELECT DISTINCT - 97 + - 14
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6577
SELECT + CAST( NULL AS SIGNED ) * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-6577
SELECT + CAST ( NULL AS INTEGER ) * - 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT ALL - COUNT( ALL + 26 ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL - COUNT ( ALL + 26 ) + - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT - MIN( 6 ) * - 51 col1
----
306

skipif mysql # not compatible
query I rowsort label-6579
SELECT - MIN ( 6 ) * - 51 col1
----
306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6580
SELECT + ( + CASE WHEN NOT ( 84 ) <= 96 * 22 THEN NULL WHEN NOT + 25 * 6 + CAST( COUNT( * ) + - NULLIF ( AVG ( DISTINCT + 4 ), - 63 ) AS SIGNED ) * - 51 > NULL THEN + 7 + 78 END ) + - 6 * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-6580
SELECT + ( + CASE WHEN NOT ( 84 ) <= 96 * 22 THEN NULL WHEN NOT + 25 * 6 + CAST ( COUNT ( * ) + - NULLIF ( AVG ( DISTINCT + 4 ), - 63 ) AS INTEGER ) * - 51 > NULL THEN + 7 + 78 END ) + - 6 * + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT ALL COUNT( * ) * 2 - 95 * 48 AS col0
----
-4558

skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL COUNT ( * ) * 2 - 95 * 48 AS col0
----
-4558

query I rowsort
SELECT - 47 * 12 col0
----
-564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6583
SELECT 80 * + 21 + 79 * COALESCE ( - MAX( ALL - 44 ) * + CAST( 22 AS SIGNED ) + 71, NULLIF ( 86, COUNT( * ) ) + 95 ) col2
----
83761

skipif mysql # not compatible
query I rowsort label-6583
SELECT 80 * + 21 + 79 * COALESCE ( - MAX ( ALL - 44 ) * + CAST ( 22 AS INTEGER ) + 71, NULLIF ( 86, COUNT ( * ) ) + 95 ) col2
----
83761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6584
SELECT DISTINCT + CASE 33 WHEN - CAST( + 88 AS SIGNED ) THEN 7 + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6584
SELECT DISTINCT + CASE 33 WHEN - CAST ( + 88 AS INTEGER ) THEN 7 + COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6585
SELECT - ( CASE 49 WHEN + ( + 22 ) THEN - CAST( COUNT( * ) AS SIGNED ) WHEN 55 THEN NULL END ) + - ( 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6585
SELECT - ( CASE 49 WHEN + ( + 22 ) THEN - CAST ( COUNT ( * ) AS INTEGER ) WHEN 55 THEN NULL END ) + - ( 57 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6586
SELECT ALL CAST( 37 AS DECIMAL ) * - MIN( ALL + CAST( NULL AS SIGNED ) ) - 39 / + MAX( - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6586
SELECT ALL CAST ( 37 AS REAL ) * - MIN ( ALL + CAST ( NULL AS INTEGER ) ) - 39 / + MAX ( - 87 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6587
SELECT - 11 * ( + 49 DIV 74 )
----
0

skipif mysql # not compatible
query I rowsort label-6587
SELECT - 11 * ( + 49 / 74 )
----
0

query I rowsort
SELECT DISTINCT + ( + 84 ) AS col2
----
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6589
SELECT ALL + CAST( NULL AS DECIMAL ) * + 39 - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-6589
SELECT ALL + CAST ( NULL AS REAL ) * + 39 - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT NULLIF ( 85, + COUNT( * ) ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-6590
SELECT NULLIF ( 85, + COUNT ( * ) ) AS col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6591
SELECT - COALESCE ( 75, ( 85 ) * CAST( NULL AS SIGNED ) - 6 ) * + MIN( DISTINCT + 38 ) - - 78 AS col0
----
-2772

skipif mysql # not compatible
query I rowsort label-6591
SELECT - COALESCE ( 75, ( 85 ) * CAST ( NULL AS INTEGER ) - 6 ) * + MIN ( DISTINCT + 38 ) - - 78 AS col0
----
-2772

query I rowsort
SELECT - 81 * - 63 AS col2
----
5103

query I rowsort
SELECT NULLIF ( 93, 22 + 81 )
----
93

query I rowsort
SELECT ALL + 18 * 51
----
918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6595
SELECT - 27 + 55 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6595
SELECT - 27 + 55 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 45 * + 30
----
-1350

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT 18 * - 45 + + COUNT( * ) col0
----
-809

skipif mysql # not compatible
query I rowsort label-6597
SELECT 18 * - 45 + + COUNT ( * ) col0
----
-809

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6598
SELECT ALL - 45 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL - 45 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6599
SELECT ALL + ( - ( + CAST( NULL AS SIGNED ) ) ) * CASE - ( - 56 ) + COALESCE ( + 52 - ( + 83 - 28 * + 99 ) / + COUNT( * ), + CAST( NULL AS SIGNED ), 46 - 95 ) * SUM( 52 ) WHEN 40 + + 33 THEN NULL WHEN NULLIF ( COUNT( * ), + ( 32 ) - - ( - 40 ) ) * - 80 + CAST( - 13 AS SIGNED ) THEN - COUNT( * ) - - COUNT( DISTINCT 10 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6599
SELECT ALL + ( - ( + CAST ( NULL AS INTEGER ) ) ) * CASE - ( - 56 ) + COALESCE ( + 52 - ( + 83 - 28 * + 99 ) / + COUNT ( * ), + CAST ( NULL AS INTEGER ), 46 - 95 ) * SUM ( 52 ) WHEN 40 + + 33 THEN NULL WHEN NULLIF ( COUNT ( * ), + ( 32 ) - - ( - 40 ) ) * - 80 + CAST ( - 13 AS INTEGER ) THEN - COUNT ( * ) - - COUNT ( DISTINCT 10 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6600
SELECT ALL 22 * ( CAST( NULL AS SIGNED ) ) + + AVG ( DISTINCT - 74 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL 22 * ( CAST ( NULL AS INTEGER ) ) + + AVG ( DISTINCT - 74 ) AS col2
----
NULL

query I rowsort
SELECT - 15 * 17 AS col2
----
-255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6602
SELECT ALL + ( - 34 ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL + ( - 34 ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT MIN( DISTINCT + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-6603
SELECT MIN ( DISTINCT + 69 )
----
69

query I rowsort
SELECT + 50 + ( 14 )
----
64

query I rowsort
SELECT 46 * 23 + 90 AS col1
----
1148

query I rowsort
SELECT - 79 + + 88 AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6607
SELECT + NULLIF ( 77, - 56 ) * + ( - 19 DIV - 28 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6607
SELECT + NULLIF ( 77, - 56 ) * + ( - 19 / - 28 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6608
SELECT + CASE ( - COUNT( * ) ) WHEN + 65 + + 62 THEN 42 * 63 WHEN CAST( 8 AS DECIMAL ) + - 74 THEN 91 ELSE 81 / 93 END - ( COUNT( * ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6608
SELECT + CASE ( - COUNT ( * ) ) WHEN + 65 + + 62 THEN 42 * 63 WHEN CAST ( 8 AS REAL ) + - 74 THEN 91 ELSE 81 / 93 END - ( COUNT ( * ) ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 31 + + 13 AS col1
----
-18

query I rowsort
SELECT ALL 2 * + 3 AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6611
SELECT + NULLIF ( 19, + 67 ) + COALESCE ( 32, COUNT( * ) ) DIV 60
----
19

skipif mysql # not compatible
query I rowsort label-6611
SELECT + NULLIF ( 19, + 67 ) + COALESCE ( 32, COUNT ( * ) ) / 60
----
19

query I rowsort
SELECT ALL + 11 + - 88 col1
----
-77

query I rowsort
SELECT DISTINCT - 56 + + 88 * - 85
----
-7536

onlyif mysql # DIV for integer division: 
query I rowsort label-6614
SELECT + 84 + + 3 DIV 11 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-6614
SELECT + 84 + + 3 / 11 AS col1
----
84

query I rowsort
SELECT ALL ( + 24 ) + 14 AS col1
----
38

query I rowsort
SELECT + 95 + + 7 AS col1
----
102

query I rowsort
SELECT ALL 70 * - ( 98 ) AS col0
----
-6860

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT + COUNT( * ) + + SUM( - 66 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-6618
SELECT + COUNT ( * ) + + SUM ( - 66 ) AS col1
----
-65

query I rowsort
SELECT - + 75 * 64 col1
----
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT DISTINCT - COUNT( 42 ) * 94
----
-94

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT - COUNT ( 42 ) * 94
----
-94

query I rowsort
SELECT + 66 * 85 AS col1
----
5610

query I rowsort
SELECT + + 36 + - NULLIF ( + 62, - 60 )
----
-26

query I rowsort
SELECT + + 25 + + 39 AS col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6624
SELECT + - CAST( 43 AS SIGNED ) + - 33 * - 28 AS col0
----
881

skipif mysql # not compatible
query I rowsort label-6624
SELECT + - CAST ( 43 AS INTEGER ) + - 33 * - 28 AS col0
----
881

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6625
SELECT ALL + SUM( DISTINCT 95 ) DIV - NULLIF ( - MAX( ALL 30 ) + 96, + 97 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL + SUM ( DISTINCT 95 ) / - NULLIF ( - MAX ( ALL 30 ) + 96, + 97 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6626
SELECT + 12 DIV - 81 col2
----
0

skipif mysql # not compatible
query I rowsort label-6626
SELECT + 12 / - 81 col2
----
0

query I rowsort
SELECT + 39 + 58 AS col1
----
97

query I rowsort
SELECT + NULLIF ( 42, - 93 * 49 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT + - MIN( ALL 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-6629
SELECT + - MIN ( ALL 57 ) AS col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6630
SELECT DISTINCT + NULLIF ( + COALESCE ( - SUM( DISTINCT + 88 ), - COUNT( * ) * + 21 ), - 65 / CAST( NULL AS SIGNED ) )
----
-88

skipif mysql # not compatible
query I rowsort label-6630
SELECT DISTINCT + NULLIF ( + COALESCE ( - SUM ( DISTINCT + 88 ), - COUNT ( * ) * + 21 ), - 65 / CAST ( NULL AS INTEGER ) )
----
-88

query I rowsort
SELECT ALL + 29 * + 74
----
2146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6632
SELECT + + CAST( NULL AS SIGNED ) * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-6632
SELECT + + CAST ( NULL AS INTEGER ) * 31
----
NULL

query I rowsort
SELECT - - 18 * CASE COALESCE ( 57, - 84 * 33 ) WHEN + 78 THEN + 22 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( - 56 ) * - 18 AS col1
----
1008

onlyif mysql # DIV for integer division: 
query I rowsort label-6635
SELECT 41 * 34 + 33 DIV + 98
----
1394

skipif mysql # not compatible
query I rowsort label-6635
SELECT 41 * 34 + 33 / + 98
----
1394

query I rowsort
SELECT + 21 * - - 64
----
1344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6637
SELECT DISTINCT 43 DIV COUNT( * ) + 66 AS col0
----
109

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT 43 / COUNT ( * ) + 66 AS col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT DISTINCT ( COUNT( DISTINCT 89 ) ) * - 58
----
-58

skipif mysql # not compatible
query I rowsort label-6638
SELECT DISTINCT ( COUNT ( DISTINCT 89 ) ) * - 58
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ALL + CASE + - COUNT( * ) WHEN + 97 THEN - 60 + 64 * - AVG ( ALL 46 ) WHEN + 62 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL + CASE + - COUNT ( * ) WHEN + 97 THEN - 60 + 64 * - AVG ( ALL 46 ) WHEN + 62 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 53 * - ( 21 ) + + 44 AS col1
----
1157

query I rowsort
SELECT ALL + 42 + 98
----
140

query I rowsort
SELECT ALL - 87 + - 7 AS col0
----
-94

query I rowsort
SELECT 45 * - 23 AS col1
----
-1035

query I rowsort
SELECT DISTINCT - 69 * 25
----
-1725

query I rowsort
SELECT ALL - NULLIF ( + ( 65 ), - 37 / - 18 - CASE + 58 WHEN - 70 THEN NULL WHEN 39 * + 22 - - ( - 8 ) THEN 50 END )
----
-65

query I rowsort
SELECT ALL ( + 38 ) + 31
----
69

query I rowsort
SELECT DISTINCT + 97 * + 91
----
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT DISTINCT - 70 * - + MIN( ALL 32 )
----
2240

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT - 70 * - + MIN ( ALL 32 )
----
2240

query I rowsort
SELECT 80 * - 2 * 7 AS col1
----
-1120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6650
SELECT 83 * + - 61 DIV COUNT( * ) AS col0
----
-5063

skipif mysql # not compatible
query I rowsort label-6650
SELECT 83 * + - 61 / COUNT ( * ) AS col0
----
-5063

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT DISTINCT + MAX( DISTINCT + 46 ) * - CASE + COUNT( 64 ) WHEN + 92 + - 73 THEN NULL ELSE - 14 * - 71 + - COUNT( * ) END
----
-45678

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT + MAX ( DISTINCT + 46 ) * - CASE + COUNT ( 64 ) WHEN + 92 + - 73 THEN NULL ELSE - 14 * - 71 + - COUNT ( * ) END
----
-45678

query I rowsort
SELECT - - CASE 69 WHEN 39 * - 75 THEN NULL ELSE + ( - ( 40 ) ) END
----
-40

query I rowsort
SELECT 83 * + + 10 - + 92 AS col0
----
738

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT DISTINCT - 52 * + - CASE - SUM( + 91 ) WHEN 35 / - 82 - 26 THEN 63 * 16 + 98 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6654
SELECT DISTINCT - 52 * + - CASE - SUM ( + 91 ) WHEN 35 / - 82 - 26 THEN 63 * 16 + 98 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT ALL COUNT( - 28 )
----
1

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL COUNT ( - 28 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6656
SELECT - COUNT( * ) * 94 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6656
SELECT - COUNT ( * ) * 94 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6657
SELECT CAST( - + ( COUNT( * ) ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6657
SELECT CAST ( - + ( COUNT ( * ) ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT ALL - COUNT( * ) * + 39
----
-39

skipif mysql # not compatible
query I rowsort label-6658
SELECT ALL - COUNT ( * ) * + 39
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT - - NULLIF ( + 47, SUM( - 38 ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-6659
SELECT - - NULLIF ( + 47, SUM ( - 38 ) ) AS col2
----
47

query I rowsort
SELECT + 67 + + 55
----
122

query I rowsort
SELECT + 36 * - 58
----
-2088

query I rowsort
SELECT ALL - 58 * 77 AS col2
----
-4466

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT MIN( DISTINCT - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-6663
SELECT MIN ( DISTINCT - 95 )
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-6664
SELECT 3 DIV 60 + 81 * - 22 col0
----
-1782

skipif mysql # not compatible
query I rowsort label-6664
SELECT 3 / 60 + 81 * - 22 col0
----
-1782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6665
SELECT ALL - + CAST( NULL AS SIGNED ) * + 9 * 88 + + 35 / 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL - + CAST ( NULL AS INTEGER ) * + 9 * 88 + + 35 / 28 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6666
SELECT 30 / ( + ( 96 ) ) * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6666
SELECT 30 / ( + ( 96 ) ) * CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6667
SELECT ALL - COUNT( * ) AS col0, - ( + 24 )
----
-1
-24

skipif mysql # not compatible
query II rowsort label-6667
SELECT ALL - COUNT ( * ) AS col0, - ( + 24 )
----
-1
-24

query II rowsort
SELECT + 86, + 94 AS col0
----
86
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL ( - + 16 ) + - - COUNT( * ) * 52 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL ( - + 16 ) + - - COUNT ( * ) * 52 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT ALL - 46 + + + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL - 46 + + + COUNT ( * )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6671
SELECT COUNT( 35 ) DIV + - 56 col2
----
0

skipif mysql # not compatible
query I rowsort label-6671
SELECT COUNT ( 35 ) / + - 56 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6672
SELECT + 97, CASE + - 99 WHEN + 44 * - 68 THEN 57 * + 24 ELSE - COUNT( * ) * - 8 + + 41 END AS col0
----
97
49

skipif mysql # not compatible
query II rowsort label-6672
SELECT + 97, CASE + - 99 WHEN + 44 * - 68 THEN 57 * + 24 ELSE - COUNT ( * ) * - 8 + + 41 END AS col0
----
97
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6673
SELECT ALL 32 + + 99 + - ( 10 ) * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6673
SELECT ALL 32 + + 99 + - ( 10 ) * - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL 26 * - - 29 * + 6
----
4524

onlyif mysql # DIV for integer division: 
query I rowsort label-6675
SELECT DISTINCT + 29 + 60 + + 77 DIV 97 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT + 29 + 60 + + 77 / 97 AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6676
SELECT + CAST( NULL AS SIGNED ) * - CASE + 62 WHEN NULLIF ( + 24, - CAST( NULL AS SIGNED ) ) THEN NULL WHEN 95 THEN + COUNT( * ) ELSE + ( - 75 ) * + 2 END + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6676
SELECT + CAST ( NULL AS INTEGER ) * - CASE + 62 WHEN NULLIF ( + 24, - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 95 THEN + COUNT ( * ) ELSE + ( - 75 ) * + 2 END + - 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT ALL + 11 - - + COUNT( * ) * 59
----
70

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL + 11 - - + COUNT ( * ) * 59
----
70

query II rowsort
SELECT ALL - 38 AS col2, + 47 + + COALESCE ( 5, + NULLIF ( - 85, 68 ) * 40, 46 ) AS col0
----
-38
52

query I rowsort
SELECT ALL 90 * + + 32
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT ( - COUNT( * ) ) + + + 60
----
59

skipif mysql # not compatible
query I rowsort label-6680
SELECT ( - COUNT ( * ) ) + + + 60
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-6681
SELECT 12 col1, + ( - SUM( ALL + 63 ) ) AS col1
----
12
-63

skipif mysql # not compatible
query II rowsort label-6681
SELECT 12 col1, + ( - SUM ( ALL + 63 ) ) AS col1
----
12
-63

query I rowsort
SELECT ALL 84 - - 66 AS col1
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6683
SELECT 64 * NULLIF ( + + ( 37 ), CAST( NULL AS SIGNED ) )
----
2368

skipif mysql # not compatible
query I rowsort label-6683
SELECT 64 * NULLIF ( + + ( 37 ), CAST ( NULL AS INTEGER ) )
----
2368

query II rowsort
SELECT 21, COALESCE ( - - 95, 42 + + 52, - 56 ) * 2 AS col2
----
21
190

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT 28 + COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-6685
SELECT 28 + COUNT ( * ) AS col2
----
29

query I rowsort
SELECT + - COALESCE ( + 86, 49 ) * 40 + 27 AS col0
----
-3413

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT 18 - SUM( ALL 9 ) + + 99 AS col0
----
108

skipif mysql # not compatible
query I rowsort label-6687
SELECT 18 - SUM ( ALL 9 ) + + 99 AS col0
----
108

query I rowsort
SELECT - 18 * 4 AS col0
----
-72

query I rowsort
SELECT - 57 + 24 AS col0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6690
SELECT DISTINCT + 79, 12 DIV - ( COUNT( * ) ) AS col2
----
79
-12

skipif mysql # not compatible
query II rowsort label-6690
SELECT DISTINCT + 79, 12 / - ( COUNT ( * ) ) AS col2
----
79
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT SUM( - 66 ) + - NULLIF ( 3, COUNT( * ) * - 24 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-6691
SELECT SUM ( - 66 ) + - NULLIF ( 3, COUNT ( * ) * - 24 ) AS col1
----
-69

query I rowsort
SELECT ALL + 23 * + 34 + - + 23 col2
----
759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6693
SELECT 97 * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6693
SELECT 97 * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( + 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT ALL + + MIN( ALL 85 ) * + + 79 AS col1
----
6715

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL + + MIN ( ALL 85 ) * + + 79 AS col1
----
6715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6696
SELECT ( - 98 ) + + 84 + - CAST( - 53 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-6696
SELECT ( - 98 ) + + 84 + - CAST ( - 53 AS INTEGER )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT + 7 + - 16 + + 34 * + COALESCE ( 23 + MIN( DISTINCT 70 ), + 35 )
----
3153

skipif mysql # not compatible
query I rowsort label-6697
SELECT + 7 + - 16 + + 34 * + COALESCE ( 23 + MIN ( DISTINCT 70 ), + 35 )
----
3153

query I rowsort
SELECT ALL - 62 * + ( + 99 ) * - 76
----
466488

query I rowsort
SELECT - CASE - + 60 WHEN - + 83 THEN NULL WHEN - CASE 22 WHEN + AVG ( 80 ) THEN 59 * ( 12 / + 59 ) ELSE - 82 * 39 END THEN NULL ELSE - 96 END AS col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6700
SELECT CAST( NULL AS SIGNED ) + + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-6700
SELECT CAST ( NULL AS INTEGER ) + + - 14
----
NULL

query II rowsort
SELECT - - 23 col0, 31 col0
----
23
31

query I rowsort
SELECT - 34 + - 1 + - 63 AS col2
----
-98

query II rowsort
SELECT - 53 AS col2, - 94 col1
----
-53
-94

query I rowsort
SELECT ALL + + 7 + - 96 AS col2
----
-89

query I rowsort
SELECT DISTINCT - 80 + - 16 AS col2
----
-96

query II rowsort
SELECT DISTINCT - 74 AS col2, 38
----
-74
38

query I rowsort
SELECT ALL + 47 + - 73 - 96 + + 72 * 41 * - 79 AS col1
----
-233330

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT ALL + COUNT( * ) * + + 78 + - 61 - - + ( - 59 ) + - 22 * 76
----
-1714

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL + COUNT ( * ) * + + 78 + - 61 - - + ( - 59 ) + - 22 * 76
----
-1714

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT COALESCE ( - COUNT( * ), + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6709
SELECT COALESCE ( - COUNT ( * ), + COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT - 45 * + 1 * + 24 AS col2
----
-1080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6711
SELECT + 51 + + 87 + - + COUNT( * ) DIV + - 74 + COUNT( DISTINCT 22 )
----
139

skipif mysql # not compatible
query I rowsort label-6711
SELECT + 51 + + 87 + - + COUNT ( * ) / + - 74 + COUNT ( DISTINCT 22 )
----
139

query I rowsort
SELECT NULLIF ( + 21, - 75 * 73 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT DISTINCT 91 * + + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT 91 * + + COUNT ( * )
----
91

query I rowsort
SELECT - 15 * 2
----
-30

query I rowsort
SELECT + COALESCE ( 13, - 57 ) * COALESCE ( + 7, 10, - 42 - 81 * + 35 ) AS col1
----
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6716
SELECT + 65 DIV + 9 + CAST( 75 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-6716
SELECT + 65 / + 9 + CAST ( 75 AS INTEGER )
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6717
SELECT ALL + 72 * + - COUNT( * ) DIV - 83 - + 62 + 30
----
-32

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL + 72 * + - COUNT ( * ) / - 83 - + 62 + 30
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-6718
SELECT ALL 79 DIV - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL 79 / - 91 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT ( - + COUNT( * ) ) * - 30 + 16 * + COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-6719
SELECT ( - + COUNT ( * ) ) * - 30 + 16 * + COUNT ( * ) AS col0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6720
SELECT ALL 43 DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL 43 / 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT SUM( ALL 17 )
----
17

skipif mysql # not compatible
query I rowsort label-6721
SELECT SUM ( ALL 17 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT + COUNT( * ) * - COUNT( * ) + 7 - ( + 70 ) + - 8
----
-72

skipif mysql # not compatible
query I rowsort label-6722
SELECT + COUNT ( * ) * - COUNT ( * ) + 7 - ( + 70 ) + - 8
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT SUM( DISTINCT - CASE + 87 WHEN 53 THEN + 77 / 61 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6723
SELECT SUM ( DISTINCT - CASE + 87 WHEN 53 THEN + 77 / 61 ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT + 25 * 53
----
1325

onlyif mysql # aggregate syntax: 
query II rowsort label-6725
SELECT MAX( - 1 ), + 55 AS col0
----
-1
55

skipif mysql # not compatible
query II rowsort label-6725
SELECT MAX ( - 1 ), + 55 AS col0
----
-1
55

query I rowsort
SELECT ALL 36 * - 39 col0
----
-1404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6727
SELECT - + CAST( NULL AS SIGNED ) + + SUM( 64 ) - - 11 + 69 * - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-6727
SELECT - + CAST ( NULL AS INTEGER ) + + SUM ( 64 ) - - 11 + 69 * - 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT DISTINCT 77 * + - NULLIF ( - 78, - - COUNT( * ) ) + + 18 AS col2
----
6024

skipif mysql # not compatible
query I rowsort label-6728
SELECT DISTINCT 77 * + - NULLIF ( - 78, - - COUNT ( * ) ) + + 18 AS col2
----
6024

query I rowsort
SELECT ALL 16 * + + 38
----
608

query I rowsort
SELECT + + 63 * + 96
----
6048

query I rowsort
SELECT DISTINCT - 25 * + 54 + 52 AS col0
----
-1298

query I rowsort
SELECT + 22 * NULLIF ( - 94, + 37 ) AS col2
----
-2068

query I rowsort
SELECT - + NULLIF ( 65, + 2 + 66 * 52 ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT DISTINCT - ( + - MIN( 55 ) ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-6734
SELECT DISTINCT - ( + - MIN ( 55 ) ) AS col1
----
55

query I rowsort
SELECT + - 36 * 63 * - - COALESCE ( - 50, 39 )
----
113400

query I rowsort
SELECT DISTINCT + + 5 + 50 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT ALL - SUM( DISTINCT + 6 ) + - 81 + + 22 col2
----
-65

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL - SUM ( DISTINCT + 6 ) + - 81 + + 22 col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT MIN( DISTINCT 4 )
----
4

skipif mysql # not compatible
query I rowsort label-6738
SELECT MIN ( DISTINCT 4 )
----
4

query I rowsort
SELECT ALL - - 75 + + 22 * - 48
----
-981

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT DISTINCT + - COUNT( * ) + 77 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT + - COUNT ( * ) + 77 AS col2
----
76

query I rowsort
SELECT + 45 + + 4
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6742
SELECT - CASE - 49 WHEN + CAST( - 71 AS DECIMAL ) THEN - NULLIF ( 9, + ( COUNT( * ) ) + - CAST( - ( + 67 ) - + ( - 77 + 30 ) * - COUNT( * ) AS SIGNED ) ) END / 48 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6742
SELECT - CASE - 49 WHEN + CAST ( - 71 AS REAL ) THEN - NULLIF ( 9, + ( COUNT ( * ) ) + - CAST ( - ( + 67 ) - + ( - 77 + 30 ) * - COUNT ( * ) AS INTEGER ) ) END / 48 col1
----
NULL

query I rowsort
SELECT - 63 * 22
----
-1386

query II rowsort
SELECT - 85 col1, - 79 AS col1
----
-85
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT - 27 * MIN( + 75 ) * 50
----
-101250

skipif mysql # not compatible
query I rowsort label-6745
SELECT - 27 * MIN ( + 75 ) * 50
----
-101250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6746
SELECT ALL 43 DIV + - ( - - NULLIF ( 65, COUNT( * ) + 45 * COUNT( * ) ) ) * COUNT( * ) - - COUNT( * ) DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL 43 / + - ( - - NULLIF ( 65, COUNT ( * ) + 45 * COUNT ( * ) ) ) * COUNT ( * ) - - COUNT ( * ) / + 88
----
0

query I rowsort
SELECT - 55 * - 10 + 50 - 66 * 31 AS col1
----
-1446

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6748
SELECT CAST( + COALESCE ( - CAST( NULL AS SIGNED ), + 2 ) AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-6748
SELECT CAST ( + COALESCE ( - CAST ( NULL AS INTEGER ), + 2 ) AS INTEGER )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT DISTINCT - ( - + 14 ) * + 59 + + COUNT( DISTINCT 76 ) * 91
----
917

skipif mysql # not compatible
query I rowsort label-6749
SELECT DISTINCT - ( - + 14 ) * + 59 + + COUNT ( DISTINCT 76 ) * 91
----
917

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6750
SELECT COALESCE ( 72, COUNT( * ) + + 95 ) DIV - COUNT( * ) + 45 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-6750
SELECT COALESCE ( 72, COUNT ( * ) + + 95 ) / - COUNT ( * ) + 45 AS col2
----
-27

query I rowsort
SELECT ALL + NULLIF ( + - 30, - - ( - - 43 ) ) col1
----
-30

query II rowsort
SELECT ALL + 3 AS col2, 8 AS col2
----
3
8

query I rowsort
SELECT DISTINCT 38 * 39 AS col2
----
1482

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT DISTINCT + NULLIF ( 17, COUNT( * ) * + 27 )
----
17

skipif mysql # not compatible
query I rowsort label-6754
SELECT DISTINCT + NULLIF ( 17, COUNT ( * ) * + 27 )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6755
SELECT DISTINCT 54 DIV + 19 - 79
----
-77

skipif mysql # not compatible
query I rowsort label-6755
SELECT DISTINCT 54 / + 19 - 79
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-6756
SELECT COUNT( * ) * 44 + + 71, - ( + 5 ) + - 5 AS col2
----
115
-10

skipif mysql # not compatible
query II rowsort label-6756
SELECT COUNT ( * ) * 44 + + 71, - ( + 5 ) + - 5 AS col2
----
115
-10

query I rowsort
SELECT DISTINCT + 39 * - 78 AS col1
----
-3042

onlyif mysql # DIV for integer division: 
query I rowsort label-6758
SELECT - COALESCE ( + 39, + NULLIF ( - + ( - 72 ), 31 + + 74 ) + AVG ( ALL - 59 + - 89 ) ) DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-6758
SELECT - COALESCE ( + 39, + NULLIF ( - + ( - 72 ), 31 + + 74 ) + AVG ( ALL - 59 + - 89 ) ) / + 50
----
0

query I rowsort
SELECT + 31 * + + 72 * - - 27 * 4 * - 7 AS col2
----
-1687392

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT ALL COUNT( * ) * ( + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL COUNT ( * ) * ( + 56 )
----
56

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6761
SELECT 30 * - + CAST( NULL AS DECIMAL ) + - CAST( 56 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6761
SELECT 30 * - + CAST ( NULL AS REAL ) + - CAST ( 56 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6762
SELECT ALL + 18, 49 * + + ( - - COUNT( * ) ) * NULLIF ( 92, ( - 72 ) ) + + 36 DIV + 86 - 74 col0
----
18
4434

skipif mysql # not compatible
query II rowsort label-6762
SELECT ALL + 18, 49 * + + ( - - COUNT ( * ) ) * NULLIF ( 92, ( - 72 ) ) + + 36 / + 86 - 74 col0
----
18
4434

query I rowsort
SELECT DISTINCT + 39 * 55
----
2145

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT + - 92 * + COUNT( ALL + 96 ) + - 41 AS col2
----
-133

skipif mysql # not compatible
query I rowsort label-6764
SELECT + - 92 * + COUNT ( ALL + 96 ) + - 41 AS col2
----
-133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6765
SELECT ALL + 47, COUNT( DISTINCT + + 19 ) * 63 * + CAST( NULL AS SIGNED ) + 35 AS col2
----
47
NULL

skipif mysql # not compatible
query II rowsort label-6765
SELECT ALL + 47, COUNT ( DISTINCT + + 19 ) * 63 * + CAST ( NULL AS INTEGER ) + 35 AS col2
----
47
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6766
SELECT ALL + - CAST( NULL AS SIGNED ) * - 19 + - MIN( ALL 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL + - CAST ( NULL AS INTEGER ) * - 19 + - MIN ( ALL 29 )
----
NULL

query I rowsort
SELECT - 6 + - + 16 AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6768
SELECT - 20 * - COALESCE ( CASE - 41 WHEN 56 THEN - 50 + + CASE MAX( ALL 12 ) WHEN + 29 THEN - COUNT( * ) WHEN 15 THEN NULL ELSE CAST( NULL AS SIGNED ) - 58 END * - 97 WHEN 77 THEN NULL ELSE NULL END, 41 ) AS col2
----
820

skipif mysql # not compatible
query I rowsort label-6768
SELECT - 20 * - COALESCE ( CASE - 41 WHEN 56 THEN - 50 + + CASE MAX ( ALL 12 ) WHEN + 29 THEN - COUNT ( * ) WHEN 15 THEN NULL ELSE CAST ( NULL AS INTEGER ) - 58 END * - 97 WHEN 77 THEN NULL ELSE NULL END, 41 ) AS col2
----
820

query I rowsort
SELECT - NULLIF ( 86, - 19 )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6770
SELECT + + 66 + - - NULLIF ( - COUNT( * ), + 84 + + 95 ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6770
SELECT + + 66 + - - NULLIF ( - COUNT ( * ), + 84 + + 95 ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + + 60 - - + NULLIF ( + + 28, - 10 ) - + 42 AS col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6772
SELECT DISTINCT + MIN( - + 54 ) * NULLIF ( - + 53, CAST( NULL AS SIGNED ) ) + 26 * + CASE 34 WHEN + CASE - 12 WHEN COUNT( * ) + 8 * CAST( NULL AS SIGNED ) THEN + NULLIF ( - 50, - 47 ) + 44 WHEN 82 THEN NULL WHEN - 38 + 27 * - AVG ( - 38 + - 66 ) THEN NULL END * + 47 THEN + CAST( SUM( DISTINCT - 98 ) AS SIGNED ) * 77 + - 22 WHEN 48 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6772
SELECT DISTINCT + MIN ( - + 54 ) * NULLIF ( - + 53, CAST ( NULL AS INTEGER ) ) + 26 * + CASE 34 WHEN + CASE - 12 WHEN COUNT ( * ) + 8 * CAST ( NULL AS INTEGER ) THEN + NULLIF ( - 50, - 47 ) + 44 WHEN 82 THEN NULL WHEN - 38 + 27 * - AVG ( - 38 + - 66 ) THEN NULL END * + 47 THEN + CAST ( SUM ( DISTINCT - 98 ) AS INTEGER ) * 77 + - 22 WHEN 48 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + + ( 44 ) + + - 55 * 92 AS col1
----
-5016

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT ALL COUNT( * ) + - 49 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL COUNT ( * ) + - 49 AS col1
----
-48

query I rowsort
SELECT ALL + 30 + + 41 + - 63
----
8

query I rowsort
SELECT 75 + ( + 73 ) + + - 47 + + CASE CASE 48 WHEN + 55 THEN 65 ELSE NULL END WHEN - 67 * - 64 THEN NULL ELSE 82 END AS col2
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT ALL + 19 * - ( MIN( DISTINCT - 18 ) )
----
342

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL + 19 * - ( MIN ( DISTINCT - 18 ) )
----
342

query I rowsort
SELECT CASE + 72 WHEN - + AVG ( DISTINCT - 94 ) - + 12 THEN NULL WHEN 51 THEN - 86 WHEN 82 THEN ( + 60 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT - SUM( - - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-6779
SELECT - SUM ( - - 77 )
----
-77

query II rowsort
SELECT 4, 65 AS col2
----
4
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT ( + 23 ) * COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-6781
SELECT ( + 23 ) * COUNT ( * )
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6782
SELECT 75 * 69 DIV + COUNT( * ) AS col0
----
5175

skipif mysql # not compatible
query I rowsort label-6782
SELECT 75 * 69 / + COUNT ( * ) AS col0
----
5175

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT 78 + - + COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6783
SELECT 78 + - + COUNT ( * ) AS col0
----
77

query II rowsort
SELECT DISTINCT 89 col1, + 32 + + 29 AS col0
----
89
61

query II rowsort
SELECT DISTINCT 41 AS col0, 69
----
41
69

query I rowsort
SELECT ALL + 24 * 44 col2
----
1056

onlyif mysql # DIV for integer division: 
query II rowsort label-6787
SELECT ALL 15 DIV - 68 * 11 * - 81 AS col2, 6 AS col0
----
0
6

skipif mysql # not compatible
query II rowsort label-6787
SELECT ALL 15 / - 68 * 11 * - 81 AS col2, 6 AS col0
----
0
6

query II rowsort
SELECT ALL 50, + 21 AS col2
----
50
21

query II rowsort
SELECT DISTINCT - 16, + 74 AS col2
----
-16
74

query I rowsort
SELECT ALL - 25 * - 88 AS col2
----
2200

query II rowsort
SELECT + 56 AS col0, 59
----
56
59

query III rowsort
SELECT 23 AS col2, ( - 57 ) + 72 AS col0, - 52 * + - ( 35 ) AS col1
----
23
15
1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6793
SELECT CASE 77 WHEN + 22 THEN NULL WHEN + 65 + COUNT( * ) - - + 28 * NULLIF ( 98, 8 * + COUNT( * ) ) THEN NULL WHEN - COALESCE ( + CAST( 67 AS SIGNED ), + CAST( + CAST( 28 AS SIGNED ) AS SIGNED ) ) THEN NULL ELSE - COUNT( * ) * ( + 38 ) + 31 END * - CASE - COALESCE ( + 27, + 50 ) / - 21 WHEN - COUNT( * ) THEN 78 WHEN 6 - + MAX( 9 ) * + 84 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6793
SELECT CASE 77 WHEN + 22 THEN NULL WHEN + 65 + COUNT ( * ) - - + 28 * NULLIF ( 98, 8 * + COUNT ( * ) ) THEN NULL WHEN - COALESCE ( + CAST ( 67 AS INTEGER ), + CAST ( + CAST ( 28 AS INTEGER ) AS INTEGER ) ) THEN NULL ELSE - COUNT ( * ) * ( + 38 ) + 31 END * - CASE - COALESCE ( + 27, + 50 ) / - 21 WHEN - COUNT ( * ) THEN 78 WHEN 6 - + MAX ( 9 ) * + 84 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6794
SELECT 28 col2, SUM( DISTINCT 79 ) DIV + 82
----
28
0

skipif mysql # not compatible
query II rowsort label-6794
SELECT 28 col2, SUM ( DISTINCT 79 ) / + 82
----
28
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6795
SELECT 3 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6795
SELECT 3 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6796
SELECT AVG ( DISTINCT + 33 ) * - 50 + + 30 - 78 + + 77 / 70 / + ( CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6796
SELECT AVG ( DISTINCT + 33 ) * - 50 + + 30 - 78 + + 77 / 70 / + ( CAST ( NULL AS INTEGER ) ) col0
----
NULL

query II rowsort
SELECT 9 AS col2, + 52
----
9
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT ALL 7 * + + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL 7 * + + COUNT ( * )
----
7

query II rowsort
SELECT DISTINCT - 22 AS col0, + 39 * - - 10 col1
----
-22
390

query II rowsort
SELECT 18, - 60 AS col0
----
18
-60

query I rowsort
SELECT ALL - 89 + - ( - + 25 )
----
-64

query II rowsort
SELECT ALL - 31 col1, + 47 + - 56 AS col2
----
-31
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-6803
SELECT DISTINCT - + 3 AS col0, + COUNT( * ) + + - 27 AS col2
----
-3
-26

skipif mysql # not compatible
query II rowsort label-6803
SELECT DISTINCT - + 3 AS col0, + COUNT ( * ) + + - 27 AS col2
----
-3
-26

query I rowsort
SELECT ALL - 36 + + 44
----
8

query I rowsort
SELECT + 46 + - 16
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6806
SELECT DISTINCT - CASE 20 WHEN + 87 THEN NULL WHEN - NULLIF ( + AVG ( + - 7 ), - 5 ) * + SUM( 68 * - 19 ) THEN - 93 DIV 70 ELSE 84 + + 11 * - 95 END
----
961

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT - CASE 20 WHEN + 87 THEN NULL WHEN - NULLIF ( + AVG ( + - 7 ), - 5 ) * + SUM ( 68 * - 19 ) THEN - 93 / 70 ELSE 84 + + 11 * - 95 END
----
961

query I rowsort
SELECT ALL - - 21 col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6808
SELECT - COALESCE ( + CASE - 15 WHEN - + 41 * + - 54 * 8 * ( 81 ) THEN 91 + - CASE + 66 WHEN COUNT( * ) + + 36 THEN 70 * 63 + 63 * MIN( + CAST( NULL AS SIGNED ) * 20 ) WHEN - 59 THEN - NULLIF ( 88, ( + COUNT( * ) ) * 38 ) END * 32 ELSE + 59 END, - 50 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-6808
SELECT - COALESCE ( + CASE - 15 WHEN - + 41 * + - 54 * 8 * ( 81 ) THEN 91 + - CASE + 66 WHEN COUNT ( * ) + + 36 THEN 70 * 63 + 63 * MIN ( + CAST ( NULL AS INTEGER ) * 20 ) WHEN - 59 THEN - NULLIF ( 88, ( + COUNT ( * ) ) * 38 ) END * 32 ELSE + 59 END, - 50 ) AS col2
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6809
SELECT COUNT( * ) + 93 - - CAST( + 3 AS SIGNED ) * 6 - - + 93 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6809
SELECT COUNT ( * ) + 93 - - CAST ( + 3 AS INTEGER ) * 6 - - + 93 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT - 13 * + COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-6810
SELECT - 13 * + COUNT ( * ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT DISTINCT + COUNT( * ) + + 12 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-6811
SELECT DISTINCT + COUNT ( * ) + + 12 AS col2
----
13

query III rowsort
SELECT DISTINCT - 62 AS col0, 86, - 2 AS col1
----
-62
86
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6813
SELECT 21 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-6813
SELECT 21 / 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT NULLIF ( + 47, COUNT( 24 ) * + 44 + + 34 - + ( - 64 ) ) col1
----
47

skipif mysql # not compatible
query I rowsort label-6814
SELECT NULLIF ( + 47, COUNT ( 24 ) * + 44 + + 34 - + ( - 64 ) ) col1
----
47

query I rowsort
SELECT ALL + 40 + 78 * 56 AS col1
----
4408

query I rowsort
SELECT DISTINCT - 81 + - 39
----
-120

query II rowsort
SELECT ALL + 87, 90 * - 43 col0
----
87
-3870

query II rowsort
SELECT ALL 33, - NULLIF ( 67, + 87 + + 71 ) AS col2
----
33
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6819
SELECT - + CAST( - AVG ( - - 52 ) AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-6819
SELECT - + CAST ( - AVG ( - - 52 ) AS INTEGER )
----
52

query I rowsort
SELECT ( + 80 ) * 99 AS col0
----
7920

query I rowsort
SELECT - NULLIF ( - 56, - 46 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT ALL - ( + + ( COUNT( 43 ) ) ) * 41 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-6822
SELECT ALL - ( + + ( COUNT ( 43 ) ) ) * 41 AS col1
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6823
SELECT - 42 - - + COALESCE ( + 45, + 79 ) + - - 47 * - 30 - 30 DIV COALESCE ( + CASE - COUNT( * ) WHEN + 20 * 58 THEN ( - SUM( + 76 ) ) WHEN + 85 THEN - 43 ELSE 67 END * COALESCE ( + 15, + 90, + 84 ) + - COUNT( * ), 38 - 55 )
----
-1407

skipif mysql # not compatible
query I rowsort label-6823
SELECT - 42 - - + COALESCE ( + 45, + 79 ) + - - 47 * - 30 - 30 / COALESCE ( + CASE - COUNT ( * ) WHEN + 20 * 58 THEN ( - SUM ( + 76 ) ) WHEN + 85 THEN - 43 ELSE 67 END * COALESCE ( + 15, + 90, + 84 ) + - COUNT ( * ), 38 - 55 )
----
-1407

query II rowsort
SELECT - 39 AS col2, 80 AS col0
----
-39
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6825
SELECT NULLIF ( 29, - 40 + + 2 - + + MIN( DISTINCT CAST( NULL AS DECIMAL ) ) * ( NULLIF ( ( CAST( NULL AS SIGNED ) ), + MAX( DISTINCT 69 ) ) ) / ( - 72 + - 27 ) + + 44 ) - 78 * - 41
----
3227

skipif mysql # not compatible
query I rowsort label-6825
SELECT NULLIF ( 29, - 40 + + 2 - + + MIN ( DISTINCT CAST ( NULL AS REAL ) ) * ( NULLIF ( ( CAST ( NULL AS INTEGER ) ), + MAX ( DISTINCT 69 ) ) ) / ( - 72 + - 27 ) + + 44 ) - 78 * - 41
----
3227

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT DISTINCT COUNT( + 60 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT COUNT ( + 60 ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6827
SELECT DISTINCT MAX( - 35 ) * COUNT( * ) AS col2, + 93
----
-35
93

skipif mysql # not compatible
query II rowsort label-6827
SELECT DISTINCT MAX ( - 35 ) * COUNT ( * ) AS col2, + 93
----
-35
93

query I rowsort
SELECT DISTINCT 32 - + ( - 3 ) AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6829
SELECT SUM( + CAST( NULL AS SIGNED ) ) - - 53 + 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6829
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) - - 53 + 1 AS col2
----
NULL

query II rowsort
SELECT 64 * + 20, 20 col2
----
1280
20

query I rowsort
SELECT 0 * + + 4
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT 66 * COUNT( * ) * - 72 + 71 AS col1
----
-4681

skipif mysql # not compatible
query I rowsort label-6832
SELECT 66 * COUNT ( * ) * - 72 + 71 AS col1
----
-4681

onlyif mysql # DIV for integer division: 
query I rowsort label-6833
SELECT ALL 14 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL 14 / - 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT DISTINCT 58 * - - 46 * - 11 + + 49 + - 81 / + - CASE - ( + 35 ) WHEN COUNT( * ) * - COUNT( * ) + - 9 THEN NULL WHEN - 0 * - MAX( 37 ) THEN 67 * 92 + COUNT( 1 ) * 12 WHEN 31 THEN 47 - 15 * - 0 END * - 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT 58 * - - 46 * - 11 + + 49 + - 81 / + - CASE - ( + 35 ) WHEN COUNT ( * ) * - COUNT ( * ) + - 9 THEN NULL WHEN - 0 * - MAX ( 37 ) THEN 67 * 92 + COUNT ( 1 ) * 12 WHEN 31 THEN 47 - 15 * - 0 END * - 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT + COUNT( DISTINCT + 70 )
----
1

skipif mysql # not compatible
query I rowsort label-6835
SELECT + COUNT ( DISTINCT + 70 )
----
1

query I rowsort
SELECT DISTINCT - 42 * + 93 + + 26 * + 3 * COALESCE ( 60, + 54 ) col2
----
774

query I rowsort
SELECT ALL 78 * + - 6 * ( - 7 ) AS col1
----
3276

query I rowsort
SELECT 15 * - - 56
----
840

onlyif mysql # aggregate syntax: 
query II rowsort label-6839
SELECT + SUM( ALL 99 ), + 0 - 75 AS col1
----
99
-75

skipif mysql # not compatible
query II rowsort label-6839
SELECT + SUM ( ALL 99 ), + 0 - 75 AS col1
----
99
-75

query I rowsort
SELECT ALL - 40 * - 5 + 67
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT - COUNT( * ) + - 69 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-6841
SELECT - COUNT ( * ) + - 69 AS col2
----
-70

query II rowsort
SELECT DISTINCT - 2 * - 96 - + 12 + + - 43 + + - 18, 32 + + 98 col2
----
119
130

query I rowsort
SELECT ALL - - NULLIF ( - - 81, 11 ) - - 7
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6844
SELECT MAX( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6844
SELECT MAX ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT - + 25 * - - COUNT( * ) col0
----
-25

skipif mysql # not compatible
query I rowsort label-6845
SELECT - + 25 * - - COUNT ( * ) col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT ALL + + ( - + MAX( 15 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL + + ( - + MAX ( 15 ) )
----
-15

query I rowsort
SELECT 14 * - + 70 + - 99
----
-1079

query I rowsort
SELECT - 13 * - + 79 + - - 69 AS col1
----
1096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6849
SELECT - ( + CAST( 96 AS SIGNED ) )
----
-96

skipif mysql # not compatible
query I rowsort label-6849
SELECT - ( + CAST ( 96 AS INTEGER ) )
----
-96

query I rowsort
SELECT - 31 * + 63 AS col1
----
-1953

query I rowsort
SELECT + 1 * + 81
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT - 40 + ( - + 58 ) + - + COUNT( * ) - - 16 * 56 * - 77 AS col1
----
-69091

skipif mysql # not compatible
query I rowsort label-6852
SELECT - 40 + ( - + 58 ) + - + COUNT ( * ) - - 16 * 56 * - 77 AS col1
----
-69091

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL COUNT( DISTINCT + + 58 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL COUNT ( DISTINCT + + 58 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT DISTINCT - NULLIF ( + COUNT( - - 98 ), 57 ) * 3 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6854
SELECT DISTINCT - NULLIF ( + COUNT ( - - 98 ), 57 ) * 3 AS col2
----
-3

query I rowsort
SELECT - 68 + + - 83 * 34 AS col2
----
-2890

query II rowsort
SELECT ALL 35, 96 * - - 45 AS col1
----
35
4320

query II rowsort
SELECT ALL NULLIF ( 18, + 94 ) AS col1, ( - 38 )
----
18
-38

query I rowsort
SELECT ALL CASE + 84 WHEN + AVG ( - 22 ) + ( - 33 ) THEN NULL ELSE - + 67 END
----
-67

query I rowsort
SELECT - 32 * + - 94
----
3008

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT + COUNT( * ) + - 99 * COUNT( * ) + 50
----
-48

skipif mysql # not compatible
query I rowsort label-6860
SELECT + COUNT ( * ) + - 99 * COUNT ( * ) + 50
----
-48

query II rowsort
SELECT - 47 AS col0, - 39
----
-47
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-6862
SELECT + 56 DIV COALESCE ( - - ( + ( - 8 ) ), + 26, + + 93 - 21 )
----
-7

skipif mysql # not compatible
query I rowsort label-6862
SELECT + 56 / COALESCE ( - - ( + ( - 8 ) ), + 26, + + 93 - 21 )
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6863
SELECT + 14 + COALESCE ( - 11, - 63 + + 96 - - - COALESCE ( - 95, MAX( DISTINCT 29 ) * NULLIF ( + 21 * + COUNT( * ) + + 73, 54 ) ) - 22 * - COALESCE ( 74, - 63 DIV 91 + - 3 DIV - 88 ), ( - 4 ) + + 33 * - 11 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6863
SELECT + 14 + COALESCE ( - 11, - 63 + + 96 - - - COALESCE ( - 95, MAX ( DISTINCT 29 ) * NULLIF ( + 21 * + COUNT ( * ) + + 73, 54 ) ) - 22 * - COALESCE ( 74, - 63 / 91 + - 3 / - 88 ), ( - 4 ) + + 33 * - 11 ) AS col1
----
3

query II rowsort
SELECT - 1 AS col0, + 22
----
-1
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6865
SELECT DISTINCT - 52 + 29 + - - 3 DIV - MIN( + 40 )
----
-23

skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT - 52 + 29 + - - 3 / - MIN ( + 40 )
----
-23

query I rowsort
SELECT DISTINCT 73 + + 89 AS col1
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6867
SELECT ALL - 35 + + 5 + - - NULLIF ( + - 48, - ( CAST( NULL AS SIGNED ) ) + - - ( - 58 ) ) + 25 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL - 35 + + 5 + - - NULLIF ( + - 48, - ( CAST ( NULL AS INTEGER ) ) + - - ( - 58 ) ) + 25 AS col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6868
SELECT DISTINCT 7 + + + CAST( - 59 AS SIGNED ) col2
----
-52

skipif mysql # not compatible
query I rowsort label-6868
SELECT DISTINCT 7 + + + CAST ( - 59 AS INTEGER ) col2
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6869
SELECT DISTINCT 37 + - ( ( - COUNT( 26 ) ) ) + - NULLIF ( + 98, 36 ) DIV - 91
----
39

skipif mysql # not compatible
query I rowsort label-6869
SELECT DISTINCT 37 + - ( ( - COUNT ( 26 ) ) ) + - NULLIF ( + 98, 36 ) / - 91
----
39

query I rowsort
SELECT - 42 * + 68 AS col2
----
-2856

query I rowsort
SELECT + NULLIF ( 84, ( + - 25 ) ) AS col0
----
84

query II rowsort
SELECT ( - ( + 59 ) ), - 54 AS col1
----
-59
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6873
SELECT 26 DIV + COUNT( DISTINCT - 3 ) + + + 41 * - + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-6873
SELECT 26 / + COUNT ( DISTINCT - 3 ) + + + 41 * - + COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-6874
SELECT ALL - 58 * 81 + COUNT( * ) AS col0, 59
----
-4697
59

skipif mysql # not compatible
query II rowsort label-6874
SELECT ALL - 58 * 81 + COUNT ( * ) AS col0, 59
----
-4697
59

onlyif mysql # aggregate syntax: 
query II rowsort label-6875
SELECT 35 AS col1, 67 * 25 * + 9 + - - 20 + 49 - - COUNT( * ) * COALESCE ( - COUNT( * ), 44 ) + - COUNT( * ) AS col2
----
35
15142

skipif mysql # not compatible
query II rowsort label-6875
SELECT 35 AS col1, 67 * 25 * + 9 + - - 20 + 49 - - COUNT ( * ) * COALESCE ( - COUNT ( * ), 44 ) + - COUNT ( * ) AS col2
----
35
15142

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6876
SELECT + CAST( 24 AS SIGNED ) * - 94, + 91 AS col0
----
-2256
91

skipif mysql # not compatible
query II rowsort label-6876
SELECT + CAST ( 24 AS INTEGER ) * - 94, + 91 AS col0
----
-2256
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT 53 * - - 49 + + - SUM( 67 ) * ( + - 69 ) + + + 4 + + 7 * 68 AS col0
----
7700

skipif mysql # not compatible
query I rowsort label-6877
SELECT 53 * - - 49 + + - SUM ( 67 ) * ( + - 69 ) + + + 4 + + 7 * 68 AS col0
----
7700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6878
SELECT DISTINCT - - CASE + COUNT( * ) WHEN CAST( + 89 AS SIGNED ) THEN + - 34 + COUNT( * ) + + ( + + ( 93 ) ) - 2 / 15 * CAST( NULL AS DECIMAL ) ELSE NULL END * 37 + - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT - - CASE + COUNT ( * ) WHEN CAST ( + 89 AS INTEGER ) THEN + - 34 + COUNT ( * ) + + ( + + ( 93 ) ) - 2 / 15 * CAST ( NULL AS REAL ) ELSE NULL END * 37 + - 16 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6879
SELECT ALL + - 87 * - 6 - + ( - CAST( NULL AS SIGNED ) ) + + 12 / + + COUNT( * ) - 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL + - 87 * - 6 - + ( - CAST ( NULL AS INTEGER ) ) + + 12 / + + COUNT ( * ) - 62 AS col1
----
NULL

query I rowsort
SELECT ALL - + ( 86 ) * - 16 * + 59 * - 66
----
-5358144

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT ALL 33 * + SUM( + 91 ) - + ( - + COUNT( * ) )
----
3004

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL 33 * + SUM ( + 91 ) - + ( - + COUNT ( * ) )
----
3004

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT DISTINCT - 65 * - + 80 + - 64 * - + ( COUNT( * ) ) AS col2
----
5264

skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT - 65 * - + 80 + - 64 * - + ( COUNT ( * ) ) AS col2
----
5264

query I rowsort
SELECT - - CASE - 5 WHEN - 8 THEN NULL WHEN + 28 THEN - - 55 END / - + 33 / - - 26 AS col0
----
NULL

query I rowsort
SELECT + CASE + 80 WHEN + 79 * + 73 THEN 60 + + 20 END * 9 - + 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT ALL NULLIF ( + MIN( + + 51 ), + - 29 ) * - 36 AS col1
----
-1836

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL NULLIF ( + MIN ( + + 51 ), + - 29 ) * - 36 AS col1
----
-1836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6886
SELECT ALL CAST( NULL AS SIGNED ) * CAST( + 38 AS SIGNED ) * - 46 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6886
SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( + 38 AS INTEGER ) * - 46 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT DISTINCT CASE - COUNT( * ) WHEN 40 / - 54 * 52 / - - 93 - + - 11 THEN NULL WHEN ( + COUNT( * ) ) THEN 49 + 18 WHEN MIN( 48 ) + 50 * COUNT( * ) THEN NULL ELSE NULL END * 56 - - 10 * 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT DISTINCT CASE - COUNT ( * ) WHEN 40 / - 54 * 52 / - - 93 - + - 11 THEN NULL WHEN ( + COUNT ( * ) ) THEN 49 + 18 WHEN MIN ( 48 ) + 50 * COUNT ( * ) THEN NULL ELSE NULL END * 56 - - 10 * 10 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6888
SELECT + COALESCE ( + COUNT( * ), - 89 * + 39 / - + ( - - 91 ), COUNT( - 24 ), ( + COUNT( * ) ) + 56 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6888
SELECT + COALESCE ( + COUNT ( * ), - 89 * + 39 / - + ( - - 91 ), COUNT ( - 24 ), ( + COUNT ( * ) ) + 56 ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6889
SELECT + - MAX( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6889
SELECT + - MAX ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 96 * - 66 AS col2
----
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT DISTINCT - 11 * - - SUM( DISTINCT ( 79 ) ) * - + 62
----
53878

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT - 11 * - - SUM ( DISTINCT ( 79 ) ) * - + 62
----
53878

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6892
SELECT - 45 * + 80 * 74 / + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6892
SELECT - 45 * + 80 * 74 / + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT COUNT( ALL + 15 )
----
1

skipif mysql # not compatible
query I rowsort label-6893
SELECT COUNT ( ALL + 15 )
----
1

query I rowsort
SELECT DISTINCT - 11 * 85 * 79
----
-73865

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6895
SELECT - 15 * + CAST( 50 AS SIGNED ) AS col0
----
-750

skipif mysql # not compatible
query I rowsort label-6895
SELECT - 15 * + CAST ( 50 AS INTEGER ) AS col0
----
-750

query I rowsort
SELECT ALL - 93 * - - 88 AS col1
----
-8184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6897
SELECT - CASE + - 55 WHEN - 59 THEN COUNT( * ) WHEN + + COUNT( * ) THEN NULL ELSE - - COUNT( * ) + + - 0 * 33 DIV - - 87 + + 68 END * + 6
----
-414

skipif mysql # not compatible
query I rowsort label-6897
SELECT - CASE + - 55 WHEN - 59 THEN COUNT ( * ) WHEN + + COUNT ( * ) THEN NULL ELSE - - COUNT ( * ) + + - 0 * 33 / - - 87 + + 68 END * + 6
----
-414

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6898
SELECT ALL + 3 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL + 3 + - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 94 * 75 col2, 63 - 10
----
7050
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6900
SELECT ALL 67 + + COUNT( * ), - COALESCE ( 26, - 43, 21 ) DIV 47 + - 64 + 54 + 76 * - 70 AS col2
----
68
-5330

skipif mysql # not compatible
query II rowsort label-6900
SELECT ALL 67 + + COUNT ( * ), - COALESCE ( 26, - 43, 21 ) / 47 + - 64 + 54 + 76 * - 70 AS col2
----
68
-5330

onlyif mysql # DIV for integer division: 
query I rowsort label-6901
SELECT DISTINCT NULLIF ( + CASE - - ( - 70 ) WHEN + - 5 THEN 47 WHEN + 73 THEN NULL ELSE ( 25 ) END, 55 ) DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT NULLIF ( + CASE - - ( - 70 ) WHEN + - 5 THEN 47 WHEN + 73 THEN NULL ELSE ( 25 ) END, 55 ) / 89
----
0

query I rowsort
SELECT ALL + 76 + + - 55 + 97
----
118

query I rowsort
SELECT - 49 - - 99
----
50

query I rowsort
SELECT + 25 - - 52
----
77

query I rowsort
SELECT ALL - 3 + + + 23 * 39 * + ( - 11 ) AS col1
----
-9870

onlyif mysql # DIV for integer division: 
query I rowsort label-6906
SELECT DISTINCT + ( 50 ) DIV - - 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT + ( 50 ) / - - 56 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT - + SUM( - 59 ) + - ( - + COUNT( + ( - + 22 ) ) )
----
60

skipif mysql # not compatible
query I rowsort label-6907
SELECT - + SUM ( - 59 ) + - ( - + COUNT ( + ( - + 22 ) ) )
----
60

query I rowsort
SELECT ALL + 88 * - + 56 * + 19 - + + 50
----
-93682

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT COUNT( DISTINCT 75 )
----
1

skipif mysql # not compatible
query I rowsort label-6909
SELECT COUNT ( DISTINCT 75 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6910
SELECT DISTINCT - COUNT( * ) DIV - 94 - + 18 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-6910
SELECT DISTINCT - COUNT ( * ) / - 94 - + 18 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT ALL + - ( - + COUNT( + 86 ) ) / - COALESCE ( + COALESCE ( 86, - COUNT( * ) + - + 8 + 64 ), 34 + - ( 22 ), 18 * 75 ) * + 86 - CASE - 71 WHEN 86 * + 34 THEN - 36 * + 27 WHEN ( MAX( ALL 3 ) ) * + 81 THEN 54 / 26 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL + - ( - + COUNT ( + 86 ) ) / - COALESCE ( + COALESCE ( 86, - COUNT ( * ) + - + 8 + 64 ), 34 + - ( 22 ), 18 * 75 ) * + 86 - CASE - 71 WHEN 86 * + 34 THEN - 36 * + 27 WHEN ( MAX ( ALL 3 ) ) * + 81 THEN 54 / 26 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT ALL - COUNT( - 93 ) - + COUNT( * ) * + 68 + 4 col2
----
-65

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL - COUNT ( - 93 ) - + COUNT ( * ) * + 68 + 4 col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT - 68 * COUNT( * ) + + - 14 * - 99 AS col1
----
1318

skipif mysql # not compatible
query I rowsort label-6913
SELECT - 68 * COUNT ( * ) + + - 14 * - 99 AS col1
----
1318

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT + COUNT( DISTINCT + 56 ) * + 33 * + 55 + + NULLIF ( MAX( 72 ), - + 25 ) + MIN( CASE WHEN NOT + 61 NOT IN ( + 25 + - 71 ) THEN 46 * + 88 WHEN NOT + 63 IS NULL THEN NULL END ) + COUNT( * ) * - 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6914
SELECT + COUNT ( DISTINCT + 56 ) * + 33 * + 55 + + NULLIF ( MAX ( 72 ), - + 25 ) + MIN ( CASE WHEN NOT + 61 NOT IN ( + 25 + - 71 ) THEN 46 * + 88 WHEN NOT + 63 IS NULL THEN NULL END ) + COUNT ( * ) * - 22 AS col1
----
NULL

query I rowsort
SELECT + 22 * + 62
----
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT ALL 62 * COUNT( * ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL 62 * COUNT ( * ) AS col2
----
62

query I rowsort
SELECT ALL - - 5 col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6918
SELECT + 80 * - - CAST( NULL AS SIGNED ) - - 49 + - 50 + + CAST( - - 7 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6918
SELECT + 80 * - - CAST ( NULL AS INTEGER ) - - 49 + - 50 + + CAST ( - - 7 AS INTEGER )
----
NULL

query I rowsort
SELECT COALESCE ( - + 47, - 98 * + - 35 ) + + ( - 96 )
----
-143

query I rowsort
SELECT ALL 68 * + + 50 AS col0
----
3400

query I rowsort
SELECT DISTINCT 3 * - 6
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6922
SELECT ( - + MAX( - 47 ) ) DIV - 81 * MAX( + 27 ) - - 32 + 35 + + - 22 - + 11 DIV 30
----
45

skipif mysql # not compatible
query I rowsort label-6922
SELECT ( - + MAX ( - 47 ) ) / - 81 * MAX ( + 27 ) - - 32 + 35 + + - 22 - + 11 / 30
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6923
SELECT 3 DIV - 11
----
0

skipif mysql # not compatible
query I rowsort label-6923
SELECT 3 / - 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT ALL - COALESCE ( - - COALESCE ( + 66, - 35 ), - + 3 + - + 94 + MAX( + 20 ) ) + - CASE 20 WHEN + NULLIF ( COUNT( * ), + ( COUNT( * ) ) * 97 + + 47 / - ( 8 ) ) * 70 THEN + 92 END / - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL - COALESCE ( - - COALESCE ( + 66, - 35 ), - + 3 + - + 94 + MAX ( + 20 ) ) + - CASE 20 WHEN + NULLIF ( COUNT ( * ), + ( COUNT ( * ) ) * 97 + + 47 / - ( 8 ) ) * 70 THEN + 92 END / - 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT ALL 9 + + COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL 9 + + COUNT ( * ) AS col0
----
10

query II rowsort
SELECT DISTINCT 95, 61 col0
----
95
61

query II rowsort
SELECT 0, + 62 + + 58 AS col1
----
0
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6928
SELECT DISTINCT COUNT( DISTINCT + 95 ) + + SUM( + 66 ) - + 34 * 34 * + 97 + CASE COALESCE ( + + 23, 77 ) WHEN 23 THEN COUNT( * ) WHEN - 72 THEN 0 * CAST( - 30 * 53 AS SIGNED ) END AS col1
----
-112064

skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT COUNT ( DISTINCT + 95 ) + + SUM ( + 66 ) - + 34 * 34 * + 97 + CASE COALESCE ( + + 23, 77 ) WHEN 23 THEN COUNT ( * ) WHEN - 72 THEN 0 * CAST ( - 30 * 53 AS INTEGER ) END AS col1
----
-112064

query II rowsort
SELECT ALL 10 AS col1, 61 AS col0
----
10
61

query I rowsort
SELECT 28 + - ( + - ( + 0 ) ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-6931
SELECT ALL + 72 + + NULLIF ( + 29, MAX( + - 97 ) ), NULLIF ( + 20, - - MIN( DISTINCT - - 61 ) ) + - COALESCE ( 5, ( + 38 ) - 29 ) AS col0
----
101
15

skipif mysql # not compatible
query II rowsort label-6931
SELECT ALL + 72 + + NULLIF ( + 29, MAX ( + - 97 ) ), NULLIF ( + 20, - - MIN ( DISTINCT - - 61 ) ) + - COALESCE ( 5, ( + 38 ) - 29 ) AS col0
----
101
15

query I rowsort
SELECT ( - 7 ) * + ( + + 15 ) + 94
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6933
SELECT 18 DIV - - MIN( DISTINCT - 87 ) * + 82
----
0

skipif mysql # not compatible
query I rowsort label-6933
SELECT 18 / - - MIN ( DISTINCT - 87 ) * + 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6934
SELECT ALL SUM( ( - 90 ) ) - NULLIF ( - 20, - CASE - + COUNT( - + CAST( NULL AS SIGNED ) ) WHEN - ( - AVG ( + 59 ) ) * - 44 + 20 THEN - ( COUNT( * ) ) * NULLIF ( - 22 * - 94, + 76 * 16 + + 81 * - 97 ) ELSE - 82 END ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-6934
SELECT ALL SUM ( ( - 90 ) ) - NULLIF ( - 20, - CASE - + COUNT ( - + CAST ( NULL AS INTEGER ) ) WHEN - ( - AVG ( + 59 ) ) * - 44 + 20 THEN - ( COUNT ( * ) ) * NULLIF ( - 22 * - 94, + 76 * 16 + + 81 * - 97 ) ELSE - 82 END ) AS col1
----
-70

query I rowsort
SELECT DISTINCT - ( - - 35 )
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-6936
SELECT DISTINCT 17 AS col0, - COUNT( * ) + - 4 * 72 + + + 85
----
17
-204

skipif mysql # not compatible
query II rowsort label-6936
SELECT DISTINCT 17 AS col0, - COUNT ( * ) + - 4 * 72 + + + 85
----
17
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT DISTINCT + COUNT( * ) * + - 97
----
-97

skipif mysql # not compatible
query I rowsort label-6937
SELECT DISTINCT + COUNT ( * ) * + - 97
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6938
SELECT - CAST( NULL AS SIGNED ) * - - ( + + ( + 15 ) ) * - ( 47 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6938
SELECT - CAST ( NULL AS INTEGER ) * - - ( + + ( + 15 ) ) * - ( 47 ) AS col0
----
NULL

query I rowsort
SELECT 34 * - 18 AS col2
----
-612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6940
SELECT ALL + 32 DIV - - COALESCE ( 43, + + 81 * + + CASE 75 WHEN - - 1 + 94 - + - ( + 0 ) THEN - 34 ELSE NULL END * + AVG ( DISTINCT 69 ) - MIN( + CAST( 41 AS SIGNED ) ), 63 * 29 ) * - 28
----
0

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL + 32 / - - COALESCE ( 43, + + 81 * + + CASE 75 WHEN - - 1 + 94 - + - ( + 0 ) THEN - 34 ELSE NULL END * + AVG ( DISTINCT 69 ) - MIN ( + CAST ( 41 AS INTEGER ) ), 63 * 29 ) * - 28
----
0

query I rowsort
SELECT 11 * - 51 AS col2
----
-561

onlyif mysql # DIV for integer division: 
query I rowsort label-6942
SELECT ALL + 15 DIV 69 * 26 + - 66 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL + 15 / 69 * 26 + - 66 AS col2
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6943
SELECT 59 - + 76 + - 20 DIV 29 DIV - 65 - + 7 + MIN( - 33 )
----
-57

skipif mysql # not compatible
query I rowsort label-6943
SELECT 59 - + 76 + - 20 / 29 / - 65 - + 7 + MIN ( - 33 )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6944
SELECT ALL CAST( + 24 AS SIGNED ) * COUNT( * ) + - 16
----
8

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL CAST ( + 24 AS INTEGER ) * COUNT ( * ) + - 16
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT DISTINCT - + MIN( - + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-6945
SELECT DISTINCT - + MIN ( - + 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT - COUNT( + 67 ) * + + 42 + 64 col0
----
22

skipif mysql # not compatible
query I rowsort label-6946
SELECT - COUNT ( + 67 ) * + + 42 + 64 col0
----
22

query I rowsort
SELECT ALL - + 44 + - 76 - 24 - - + NULLIF ( 61, - 90 ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT ALL + 30 * + + 21 + 31 + - 95 * - + NULLIF ( - 95, 63 * COUNT( * ) + 11 - + ( + COUNT( * ) ) )
----
-8364

skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL + 30 * + + 21 + 31 + - 95 * - + NULLIF ( - 95, 63 * COUNT ( * ) + 11 - + ( + COUNT ( * ) ) )
----
-8364

query I rowsort
SELECT + 86 * - 77
----
-6622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6950
SELECT + 81 * - 40 + + - MAX( + 94 ) DIV 59 AS col2
----
-3241

skipif mysql # not compatible
query I rowsort label-6950
SELECT + 81 * - 40 + + - MAX ( + 94 ) / 59 AS col2
----
-3241

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6951
SELECT ALL - 32, CASE 40 WHEN - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) THEN + 82 WHEN + ( + 46 ) - - - 82 THEN NULL ELSE NULL END / + 98 + CASE 37 WHEN 17 + - 57 THEN 56 END col2
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-6951
SELECT ALL - 32, CASE 40 WHEN - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN + 82 WHEN + ( + 46 ) - - - 82 THEN NULL ELSE NULL END / + 98 + CASE 37 WHEN 17 + - 57 THEN 56 END col2
----
-32
NULL

query II rowsort
SELECT + 29 AS col2, + 59
----
29
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT ALL SUM( 38 ) + - ( 74 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL SUM ( 38 ) + - ( 74 ) AS col1
----
-36

query I rowsort
SELECT ALL + 2 + + 15 + - - 51 AS col0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6955
SELECT ALL - COUNT( * ) AS col2, - 90
----
-1
-90

skipif mysql # not compatible
query II rowsort label-6955
SELECT ALL - COUNT ( * ) AS col2, - 90
----
-1
-90

query II rowsort
SELECT 64, - 11 AS col2
----
64
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT ALL 91 + + ( + 69 ) + - - COUNT( * )
----
161

skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL 91 + + ( + 69 ) + - - COUNT ( * )
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT ALL ( - + 43 ) * + + 83 - ( - COUNT( * ) )
----
-3568

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL ( - + 43 ) * + + 83 - ( - COUNT ( * ) )
----
-3568

query I rowsort
SELECT DISTINCT 20 + + 2 AS col1
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6960
SELECT + MAX( ALL - 4 ) * - - 26 * - - 4 + 87 * - 56 AS col2, 66 + - 30 + - 45 DIV + 8
----
-5288
31

skipif mysql # not compatible
query II rowsort label-6960
SELECT + MAX ( ALL - 4 ) * - - 26 * - - 4 + 87 * - 56 AS col2, 66 + - 30 + - 45 / + 8
----
-5288
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT ALL AVG ( DISTINCT - 65 ) + + - CASE + 97 WHEN - 5 THEN NULL WHEN + 30 THEN - 7 WHEN + 91 / 80 - - - 49 + - 82 * + SUM( DISTINCT 94 ) / + 24 THEN 53 END + 38 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL AVG ( DISTINCT - 65 ) + + - CASE + 97 WHEN - 5 THEN NULL WHEN + 30 THEN - 7 WHEN + 91 / 80 - - - 49 + - 82 * + SUM ( DISTINCT 94 ) / + 24 THEN 53 END + 38 col2
----
NULL

query II rowsort
SELECT - 55 AS col2, 43
----
-55
43

query I rowsort
SELECT - NULLIF ( - + 81, + ( + 84 ) )
----
81

query I rowsort
SELECT 99 * 38 AS col1
----
3762

query I rowsort
SELECT 34 * - ( 40 )
----
-1360

query I rowsort
SELECT DISTINCT 49 * 41
----
2009

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT NULLIF ( + COUNT( * ), 30 ) - ( 71 ) col0
----
-70

skipif mysql # not compatible
query I rowsort label-6967
SELECT NULLIF ( + COUNT ( * ), 30 ) - ( 71 ) col0
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-6968
SELECT 18 - + 83 + + - 5 * 67 DIV - 57
----
-60

skipif mysql # not compatible
query I rowsort label-6968
SELECT 18 - + 83 + + - 5 * 67 / - 57
----
-60

query I rowsort
SELECT ALL 95 - + 64 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT DISTINCT COUNT( ALL + 33 ) * + 96
----
96

skipif mysql # not compatible
query I rowsort label-6970
SELECT DISTINCT COUNT ( ALL + 33 ) * + 96
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6971
SELECT ALL + CAST( NULL AS SIGNED ) - - 2, 0 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6971
SELECT ALL + CAST ( NULL AS INTEGER ) - - 2, 0 AS col1
----
NULL
0

query I rowsort
SELECT + - 91 * - + 75
----
6825

onlyif mysql # aggregate syntax: 
query II rowsort label-6973
SELECT ALL 28 AS col0, ( COUNT( * ) ) * - COALESCE ( - + 64, CASE WHEN 85 IS NOT NULL THEN NULL WHEN NOT ( NULL ) < NULL THEN ( - 62 ) + - 50 END, 93 )
----
28
64

skipif mysql # not compatible
query II rowsort label-6973
SELECT ALL 28 AS col0, ( COUNT ( * ) ) * - COALESCE ( - + 64, CASE WHEN 85 IS NOT NULL THEN NULL WHEN NOT ( NULL ) < NULL THEN ( - 62 ) + - 50 END, 93 )
----
28
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT + + 47 + + CASE + + 76 WHEN - + COUNT( * ) THEN NULL WHEN + 48 * - + 93 + - 40 * COUNT( * ) - + 19 * + 57 THEN - 26 * COUNT( * ) + + 98 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6974
SELECT + + 47 + + CASE + + 76 WHEN - + COUNT ( * ) THEN NULL WHEN + 48 * - + 93 + - 40 * COUNT ( * ) - + 19 * + 57 THEN - 26 * COUNT ( * ) + + 98 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - - 41 - + 31 AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-6976
SELECT ALL COUNT( * ), - 25 AS col2
----
1
-25

skipif mysql # not compatible
query II rowsort label-6976
SELECT ALL COUNT ( * ), - 25 AS col2
----
1
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT + - COUNT( * ) * 10 * - 76 * + 41 * + - CASE - 40 WHEN - 61 THEN NULL WHEN + 91 / + 4 THEN - COUNT( * ) / - 21 * 79 + - COUNT( * ) WHEN - 48 + - 57 THEN NULL ELSE NULL END * 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6977
SELECT + - COUNT ( * ) * 10 * - 76 * + 41 * + - CASE - 40 WHEN - 61 THEN NULL WHEN + 91 / + 4 THEN - COUNT ( * ) / - 21 * 79 + - COUNT ( * ) WHEN - 48 + - 57 THEN NULL ELSE NULL END * 41 AS col2
----
NULL

query I rowsort
SELECT - 11 * 11 + + 88 AS col2
----
-33

query I rowsort
SELECT - + 66 - 23
----
-89

query I rowsort
SELECT DISTINCT + - 59 * - 35
----
2065

query I rowsort
SELECT - 77 * - 31 * 47 AS col1
----
112189

query I rowsort
SELECT ALL + - ( + 62 )
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-6983
SELECT ALL + - COUNT( * ), + 43 * + 66 + 99 AS col2
----
-1
2937

skipif mysql # not compatible
query II rowsort label-6983
SELECT ALL + - COUNT ( * ), + 43 * + 66 + 99 AS col2
----
-1
2937

onlyif mysql # DIV for integer division: 
query I rowsort label-6984
SELECT - + 14 DIV 6 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6984
SELECT - + 14 / 6 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6985
SELECT DISTINCT - ( 98 ) * 78 DIV + 1 AS col1, - 70 * + CASE - 86 WHEN + + 39 THEN 97 - - ( + + 47 ) + 14 END * + CAST( + 26 + + 94 AS SIGNED ) - 57 AS col0
----
-7644
NULL

skipif mysql # not compatible
query II rowsort label-6985
SELECT DISTINCT - ( 98 ) * 78 / + 1 AS col1, - 70 * + CASE - 86 WHEN + + 39 THEN 97 - - ( + + 47 ) + 14 END * + CAST ( + 26 + + 94 AS INTEGER ) - 57 AS col0
----
-7644
NULL

query I rowsort
SELECT - 21 * + 49 + - 66 * - 36
----
1347

query I rowsort
SELECT DISTINCT 5 * - - ( 65 ) * - NULLIF ( + + CASE + 54 WHEN + - 60 THEN + + 94 + + AVG ( 65 ) END, - 23 * - 82 ) + + 27 AS col0
----
NULL

query II rowsort
SELECT - 3 + - 49, 40 AS col1
----
-52
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6989
SELECT DISTINCT - 62 DIV + + 51 AS col2, + COUNT( * ) + - 90 DIV 52 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-6989
SELECT DISTINCT - 62 / + + 51 AS col2, + COUNT ( * ) + - 90 / 52 AS col0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT DISTINCT ( + - 2 ) * + + 76 + + 35 - + MAX( - - 16 ) AS col1
----
-133

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT ( + - 2 ) * + + 76 + + 35 - + MAX ( - - 16 ) AS col1
----
-133

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6991
SELECT DISTINCT 38 * 34 * + CAST( NULL AS DECIMAL ) - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6991
SELECT DISTINCT 38 * 34 * + CAST ( NULL AS REAL ) - 48 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT COUNT( 56 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6992
SELECT COUNT ( 56 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6993
SELECT - CAST( NULL AS SIGNED ) + + - 69 + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-6993
SELECT - CAST ( NULL AS INTEGER ) + + - 69 + + 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT + 49 + + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-6994
SELECT + 49 + + COUNT ( * )
----
50

query I rowsort
SELECT ALL + 11 * - 0 - - + 84 * + 10
----
840

query I rowsort
SELECT + 32 * - 61 * - 95 + + 24 col0
----
185464

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT MIN( + ( + 77 ) ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6997
SELECT MIN ( + ( + 77 ) ) AS col0
----
77

query I rowsort
SELECT - NULLIF ( + 72, + + ( + ( + 17 ) ) )
----
-72

query I rowsort
SELECT ALL ( - 65 ) AS col0
----
-65

query II rowsort
SELECT DISTINCT ( - 18 ), 39 + + 91 AS col1
----
-18
130

query I rowsort
SELECT + 83 * + + 54
----
4482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7002
SELECT - CASE + - 48 WHEN - 68 THEN - CAST( + + COUNT( * ) AS SIGNED ) WHEN - 56 + 0 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7002
SELECT - CASE + - 48 WHEN - 68 THEN - CAST ( + + COUNT ( * ) AS INTEGER ) WHEN - 56 + 0 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7003
SELECT DISTINCT 7 DIV - 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7003
SELECT DISTINCT 7 / - 72 AS col0
----
0

query I rowsort
SELECT - 12 + - + 94 + 83 col0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7005
SELECT - - 76 * - 87 AS col2, ( CAST( NULL AS SIGNED ) ) + - - 63 * - 61 AS col0
----
-6612
NULL

skipif mysql # not compatible
query II rowsort label-7005
SELECT - - 76 * - 87 AS col2, ( CAST ( NULL AS INTEGER ) ) + - - 63 * - 61 AS col0
----
-6612
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT ALL 56 * + - 22 * - 22 * + 61 * - + CASE WHEN - 55 > NULL THEN NULL WHEN NOT - CASE - 52 WHEN + - 39 - + 12 + 92 THEN 73 / + COUNT( * ) - 30 * 75 END - 80 > + ( 48 ) + - 24 * MIN( + COALESCE ( 93, + 60, 66 ) * - 65 ) THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL 56 * + - 22 * - 22 * + 61 * - + CASE WHEN - 55 > NULL THEN NULL WHEN NOT - CASE - 52 WHEN + - 39 - + 12 + 92 THEN 73 / + COUNT ( * ) - 30 * 75 END - 80 > + ( 48 ) + - 24 * MIN ( + COALESCE ( 93, + 60, 66 ) * - 65 ) THEN + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7007
SELECT - COALESCE ( 58, - + 88 ) DIV + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7007
SELECT - COALESCE ( 58, - + 88 ) / + 86 AS col1
----
0

query I rowsort
SELECT + 95 * + 71
----
6745

query I rowsort
SELECT DISTINCT 65 * 31 AS col2
----
2015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7010
SELECT ALL + CAST( - 58 AS SIGNED ) * + CAST( NULL AS SIGNED ) / + - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL + CAST ( - 58 AS INTEGER ) * + CAST ( NULL AS INTEGER ) / + - 51 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT + + 18 + COUNT( * ) * COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-7011
SELECT + + 18 + COUNT ( * ) * COUNT ( * )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7012
SELECT ALL + CASE - 56 WHEN 62 THEN - 44 * + AVG ( + - 72 ) + - COUNT( * ) WHEN + + 65 * + CAST( NULL AS SIGNED ) * ( - + CASE + 78 WHEN - CAST( NULL AS SIGNED ) * 94 THEN NULL WHEN 87 * - 52 THEN + 79 WHEN 30 THEN 64 + ( 15 ) ELSE COUNT( * ) * 78 - 52 END ) * + 4 THEN - NULLIF ( 55, 47 + SUM( 76 + 11 ) ) / 29 ELSE NULL END + 0 * - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL + CASE - 56 WHEN 62 THEN - 44 * + AVG ( + - 72 ) + - COUNT ( * ) WHEN + + 65 * + CAST ( NULL AS INTEGER ) * ( - + CASE + 78 WHEN - CAST ( NULL AS INTEGER ) * 94 THEN NULL WHEN 87 * - 52 THEN + 79 WHEN 30 THEN 64 + ( 15 ) ELSE COUNT ( * ) * 78 - 52 END ) * + 4 THEN - NULLIF ( 55, 47 + SUM ( 76 + 11 ) ) / 29 ELSE NULL END + 0 * - 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7013
SELECT ALL + 32 + + - 8 AS col2, + CASE + 18 WHEN + 52 / + - 8 + + NULLIF ( + CASE - 31 WHEN + 73 * + 85 * COALESCE ( + 21, + 25 ) THEN CASE + NULLIF ( ( 54 ), NULLIF ( + COUNT( * ), - ( - 21 ) ) * 18 ) WHEN 0 THEN COUNT( * ) * + 69 END + + COUNT( * ) END, 9 ) * + 1 THEN NULL WHEN COUNT( * ) THEN MIN( + 88 ) + - 32 END * SUM( ALL 62 / - 12 ) + - 87 AS col1
----
24
NULL

skipif mysql # not compatible
query II rowsort label-7013
SELECT ALL + 32 + + - 8 AS col2, + CASE + 18 WHEN + 52 / + - 8 + + NULLIF ( + CASE - 31 WHEN + 73 * + 85 * COALESCE ( + 21, + 25 ) THEN CASE + NULLIF ( ( 54 ), NULLIF ( + COUNT ( * ), - ( - 21 ) ) * 18 ) WHEN 0 THEN COUNT ( * ) * + 69 END + + COUNT ( * ) END, 9 ) * + 1 THEN NULL WHEN COUNT ( * ) THEN MIN ( + 88 ) + - 32 END * SUM ( ALL 62 / - 12 ) + - 87 AS col1
----
24
NULL

query II rowsort
SELECT DISTINCT 67 + 99 AS col1, 73
----
166
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT - COALESCE ( + - 24, + 9 ) + - - ( CASE + 34 WHEN - NULLIF ( - - 52, - + 12 + - 48 ) * + COUNT( * ) THEN NULL ELSE - - 46 END ) + 36 * 47
----
1762

skipif mysql # not compatible
query I rowsort label-7015
SELECT - COALESCE ( + - 24, + 9 ) + - - ( CASE + 34 WHEN - NULLIF ( - - 52, - + 12 + - 48 ) * + COUNT ( * ) THEN NULL ELSE - - 46 END ) + 36 * 47
----
1762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7016
SELECT ALL ( 83 ) DIV ( + + 75 ) DIV + NULLIF ( 77, + - 46 * - 49 * + 1 + - - 53 * - 5 * COUNT( + 88 ) - COUNT( * ) * CAST( NULL AS SIGNED ) ) + 65 + 2
----
67

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL ( 83 ) / ( + + 75 ) / + NULLIF ( 77, + - 46 * - 49 * + 1 + - - 53 * - 5 * COUNT ( + 88 ) - COUNT ( * ) * CAST ( NULL AS INTEGER ) ) + 65 + 2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7017
SELECT 91 * + CAST( + CAST( + 13 AS SIGNED ) AS SIGNED ) + - 74 + COUNT( * ) DIV - - 86
----
1109

skipif mysql # not compatible
query I rowsort label-7017
SELECT 91 * + CAST ( + CAST ( + 13 AS INTEGER ) AS INTEGER ) + - 74 + COUNT ( * ) / - - 86
----
1109

query I rowsort
SELECT DISTINCT - 80 * - 27 AS col0
----
2160

onlyif mysql # aggregate syntax: 
query II rowsort label-7019
SELECT ALL - COALESCE ( + - 36, - + COUNT( * ) ) * NULLIF ( + 27, + 52 ), 30 * + 91 + 83 AS col1
----
972
2813

skipif mysql # not compatible
query II rowsort label-7019
SELECT ALL - COALESCE ( + - 36, - + COUNT ( * ) ) * NULLIF ( + 27, + 52 ), 30 * + 91 + 83 AS col1
----
972
2813

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT DISTINCT + CASE + AVG ( ALL - 47 ) WHEN + - COALESCE ( 79, 2 ) * + 40 THEN NULL WHEN - MAX( DISTINCT 49 ) THEN NULL ELSE - 46 * SUM( ALL + 41 ) * - + COUNT( * ) + - 43 END
----
1843

skipif mysql # not compatible
query I rowsort label-7020
SELECT DISTINCT + CASE + AVG ( ALL - 47 ) WHEN + - COALESCE ( 79, 2 ) * + 40 THEN NULL WHEN - MAX ( DISTINCT 49 ) THEN NULL ELSE - 46 * SUM ( ALL + 41 ) * - + COUNT ( * ) + - 43 END
----
1843

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7021
SELECT DISTINCT 60 / CAST( NULL AS SIGNED ) - + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT 60 / CAST ( NULL AS INTEGER ) - + 26
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7022
SELECT DISTINCT 66 DIV - + 97 - - - 7 * 24
----
-168

skipif mysql # not compatible
query I rowsort label-7022
SELECT DISTINCT 66 / - + 97 - - - 7 * 24
----
-168

query II rowsort
SELECT 76 * 29 + + 96, 11 AS col1
----
2300
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7024
SELECT ALL + ( + CASE - ( + + 41 ) WHEN - - 57 / COALESCE ( - 26, + - NULLIF ( - - 31, + 41 * ( + + 96 ) + + 2 + COUNT( * ) * COUNT( * ) ), - CAST( NULL AS SIGNED ) * - COUNT( * ) ) * - 6 THEN - MAX( ( + CAST( + 32 AS SIGNED ) ) ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL + ( + CASE - ( + + 41 ) WHEN - - 57 / COALESCE ( - 26, + - NULLIF ( - - 31, + 41 * ( + + 96 ) + + 2 + COUNT ( * ) * COUNT ( * ) ), - CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) * - 6 THEN - MAX ( ( + CAST ( + 32 AS INTEGER ) ) ) END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT DISTINCT + SUM( - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT + SUM ( - 95 )
----
-95

query I rowsort
SELECT ALL + ( 64 )
----
64

query I rowsort
SELECT - 2 * 31
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-7028
SELECT ALL + 13 DIV + - 16
----
0

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL + 13 / + - 16
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7029
SELECT DISTINCT + 4 DIV - 44
----
0

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT + 4 / - 44
----
0

query II rowsort
SELECT ALL - 89, - 70 AS col2
----
-89
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT ALL + CASE - 59 WHEN + 55 * - 56 + - - 95 THEN - 78 + 98 * CASE - COUNT( * ) WHEN NULLIF ( - AVG ( DISTINCT - + NULLIF ( + - ( 11 ), 89 / ( 0 ) ) ), - COUNT( * ) ) + 62 THEN 37 + + COUNT( DISTINCT + 77 ) / 61 ELSE + 26 / 10 - + 14 * - 10 END / 79 END * 60 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7031
SELECT ALL + CASE - 59 WHEN + 55 * - 56 + - - 95 THEN - 78 + 98 * CASE - COUNT ( * ) WHEN NULLIF ( - AVG ( DISTINCT - + NULLIF ( + - ( 11 ), 89 / ( 0 ) ) ), - COUNT ( * ) ) + 62 THEN 37 + + COUNT ( DISTINCT + 77 ) / 61 ELSE + 26 / 10 - + 14 * - 10 END / 79 END * 60 col2
----
NULL

query I rowsort
SELECT 27 * - - 78 AS col2
----
2106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7033
SELECT 37 * NULLIF ( - 94, + CAST( NULL AS SIGNED ) )
----
-3478

skipif mysql # not compatible
query I rowsort label-7033
SELECT 37 * NULLIF ( - 94, + CAST ( NULL AS INTEGER ) )
----
-3478

query I rowsort
SELECT ALL 54 * + 75 * + 4 * - 81
----
-1312200

query II rowsort
SELECT ALL 70 AS col0, - 10
----
70
-10

query I rowsort
SELECT - 14 * + 28 + + 29 * - 46
----
-1726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7037
SELECT DISTINCT - COALESCE ( + ( + ( + + 12 ) ), - COALESCE ( - 54, - COUNT( DISTINCT + - CAST( - + 58 AS SIGNED ) ), - + 10 DIV - - 52 * - 83 + CASE + COUNT( * ) WHEN - 90 THEN 86 WHEN 87 + - 63 * + 15 THEN - 59 END ) ) * - 21
----
252

skipif mysql # not compatible
query I rowsort label-7037
SELECT DISTINCT - COALESCE ( + ( + ( + + 12 ) ), - COALESCE ( - 54, - COUNT ( DISTINCT + - CAST ( - + 58 AS INTEGER ) ), - + 10 / - - 52 * - 83 + CASE + COUNT ( * ) WHEN - 90 THEN 86 WHEN 87 + - 63 * + 15 THEN - 59 END ) ) * - 21
----
252

onlyif mysql # aggregate syntax: 
query II rowsort label-7038
SELECT + COUNT( * ), NULLIF ( + - ( - ( + ( - 0 ) ) ), + 73 + COUNT( * ) ) - - COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-7038
SELECT + COUNT ( * ), NULLIF ( + - ( - ( + ( - 0 ) ) ), + 73 + COUNT ( * ) ) - - COUNT ( * ) AS col2
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7039
SELECT ALL + COALESCE ( - 3, 82 * - 99 * + COUNT( * ) + 53 + 2 + + 9, + + 65 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL + COALESCE ( - 3, 82 * - 99 * + COUNT ( * ) + 53 + 2 + + 9, + + 65 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 19 - - 27 + + 68
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-7041
SELECT DISTINCT + + 13 + MIN( ALL + 74 ) AS col0, 31
----
87
31

skipif mysql # not compatible
query II rowsort label-7041
SELECT DISTINCT + + 13 + MIN ( ALL + 74 ) AS col0, 31
----
87
31

query I rowsort
SELECT DISTINCT - ( - ( + 56 ) ) + + - 91
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7043
SELECT + 64 + 39 * - - CAST( 80 AS SIGNED ) + + 65
----
3249

skipif mysql # not compatible
query I rowsort label-7043
SELECT + 64 + 39 * - - CAST ( 80 AS INTEGER ) + + 65
----
3249

query I rowsort
SELECT ALL + 84 + - 96
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT DISTINCT 12 + - 34 + - COUNT( - 50 ) - - 59
----
36

skipif mysql # not compatible
query I rowsort label-7045
SELECT DISTINCT 12 + - 34 + - COUNT ( - 50 ) - - 59
----
36

query I rowsort
SELECT ALL + 92 / - - ( CASE AVG ( ALL 18 ) WHEN + 97 THEN 27 END )
----
NULL

query I rowsort
SELECT - 0 - - 92 + - 90 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT - MAX( - 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-7048
SELECT - MAX ( - 35 ) AS col2
----
35

query I rowsort
SELECT ALL 83 + 45 col0
----
128

query I rowsort
SELECT - CASE - - 33 WHEN - 98 THEN + 38 ELSE 22 + + 60 END
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-7051
SELECT ALL - 57, + COALESCE ( + NULLIF ( - - 37, + - ( - ( - 17 ) ) / + - 76 + COUNT( * ) / + 48 + - 40 * + AVG ( ALL 52 ) ), 40 ) col1
----
-57
37

skipif mysql # not compatible
query II rowsort label-7051
SELECT ALL - 57, + COALESCE ( + NULLIF ( - - 37, + - ( - ( - 17 ) ) / + - 76 + COUNT ( * ) / + 48 + - 40 * + AVG ( ALL 52 ) ), 40 ) col1
----
-57
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT ALL - COUNT( * ) - + 78
----
-79

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL - COUNT ( * ) - + 78
----
-79

query II rowsort
SELECT + + 90 AS col2, 2 AS col2
----
90
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7054
SELECT ALL - 34 AS col0, + 55 DIV + - 82 - COUNT( * ) - 62 - - ( - - 17 ) DIV COUNT( * ) DIV + 13 - + ( - ( + 26 ) ) + - 4 * ( 43 + ( + 1 ) * 57 ) * 54
----
-34
-21636

skipif mysql # not compatible
query II rowsort label-7054
SELECT ALL - 34 AS col0, + 55 / + - 82 - COUNT ( * ) - 62 - - ( - - 17 ) / COUNT ( * ) / + 13 - + ( - ( + 26 ) ) + - 4 * ( 43 + ( + 1 ) * 57 ) * 54
----
-34
-21636

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT ALL CASE + 75 WHEN - + MAX( - 69 ) + - 27 * + ( + 7 ) THEN 26 + COUNT( * ) END - - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL CASE + 75 WHEN - + MAX ( - 69 ) + - 27 * + ( + 7 ) THEN 26 + COUNT ( * ) END - - 23 AS col2
----
NULL

query I rowsort
SELECT 9 * - + 3 col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT DISTINCT 80 - + + 28 * + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-7057
SELECT DISTINCT 80 - + + 28 * + COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT + COUNT( * ) * + 13 + - 95
----
-82

skipif mysql # not compatible
query I rowsort label-7058
SELECT + COUNT ( * ) * + 13 + - 95
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT 89 * NULLIF ( - - COALESCE ( - - 34, - - ( + 53 ), + 70 ), + 77 ) + + COUNT( * ) + - + 62
----
2965

skipif mysql # not compatible
query I rowsort label-7059
SELECT 89 * NULLIF ( - - COALESCE ( - - 34, - - ( + 53 ), + 70 ), + 77 ) + + COUNT ( * ) + - + 62
----
2965

onlyif mysql # aggregate syntax: 
query II rowsort label-7060
SELECT DISTINCT - SUM( ALL - + NULLIF ( - 0, + 90 ) ), + 80 col1
----
0
80

skipif mysql # not compatible
query II rowsort label-7060
SELECT DISTINCT - SUM ( ALL - + NULLIF ( - 0, + 90 ) ), + 80 col1
----
0
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT COUNT( * ) * + - SUM( ALL + 32 ) + + 70 * - MAX( - + 68 ) col2
----
4728

skipif mysql # not compatible
query I rowsort label-7061
SELECT COUNT ( * ) * + - SUM ( ALL + 32 ) + + 70 * - MAX ( - + 68 ) col2
----
4728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7062
SELECT CAST( NULL AS SIGNED ) + + 93 + 2 * - MIN( + 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7062
SELECT CAST ( NULL AS INTEGER ) + + 93 + 2 * - MIN ( + 89 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7063
SELECT DISTINCT - CASE + + 30 WHEN 68 + - 57 THEN + + 29 * 93 + + ( CAST( - - COALESCE ( - - 83, 73 * - 54 * - 11 * + COUNT( * ) + + SUM( ALL 80 ) ) AS SIGNED ) ) * - 93 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT - CASE + + 30 WHEN 68 + - 57 THEN + + 29 * 93 + + ( CAST ( - - COALESCE ( - - 83, 73 * - 54 * - 11 * + COUNT ( * ) + + SUM ( ALL 80 ) ) AS INTEGER ) ) * - 93 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7064
SELECT ALL 96 DIV 89 * + COALESCE ( 86, + 37 - 53 * + CASE 7 WHEN 65 THEN NULL WHEN - 15 - + 19 THEN - 90 + 0 WHEN - - COUNT( DISTINCT 29 ) * 77 + 61 THEN NULL END, + 82 )
----
86

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL 96 / 89 * + COALESCE ( 86, + 37 - 53 * + CASE 7 WHEN 65 THEN NULL WHEN - 15 - + 19 THEN - 90 + 0 WHEN - - COUNT ( DISTINCT 29 ) * 77 + 61 THEN NULL END, + 82 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT 18 * + 44 + + COUNT( * ) col1
----
793

skipif mysql # not compatible
query I rowsort label-7065
SELECT 18 * + 44 + + COUNT ( * ) col1
----
793

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT DISTINCT COUNT( * ) * + 76 * 4 col2
----
304

skipif mysql # not compatible
query I rowsort label-7066
SELECT DISTINCT COUNT ( * ) * + 76 * 4 col2
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT - 48 * - 79 + - - COALESCE ( - 94, + + 37 ) + - 55 * - COUNT( * )
----
3753

skipif mysql # not compatible
query I rowsort label-7067
SELECT - 48 * - 79 + - - COALESCE ( - 94, + + 37 ) + - 55 * - COUNT ( * )
----
3753

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT ALL CASE 47 WHEN 75 + + 50 * + - 1 * - - 43 / - 58 THEN NULL WHEN + 57 + + 32 THEN 44 WHEN + 91 THEN - + 83 + 97 / - + 4 / COUNT( * ) END * COALESCE ( + 53 * 84, + 63 * - 9, - 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL CASE 47 WHEN 75 + + 50 * + - 1 * - - 43 / - 58 THEN NULL WHEN + 57 + + 32 THEN 44 WHEN + 91 THEN - + 83 + 97 / - + 4 / COUNT ( * ) END * COALESCE ( + 53 * 84, + 63 * - 9, - 97 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7069
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + + ( AVG ( ALL 52 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7069
SELECT DISTINCT + CAST ( NULL AS REAL ) + + + ( AVG ( ALL 52 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7070
SELECT 62 + - + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7070
SELECT 62 + - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + 82 + - 53
----
29

query I rowsort
SELECT - 85 * COALESCE ( - - 23, 95 * - ( - 57 ) ) * - + 31 * + 42 + 70 AS col0
----
2545480

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT - ( 73 ) * COUNT( DISTINCT + 48 ) + 62
----
-11

skipif mysql # not compatible
query I rowsort label-7073
SELECT - ( 73 ) * COUNT ( DISTINCT + 48 ) + 62
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-7074
SELECT ALL + ( + - 5 ) + + + 64 * + COUNT( * ) AS col2, 19 - COUNT( * ) AS col2
----
59
18

skipif mysql # not compatible
query II rowsort label-7074
SELECT ALL + ( + - 5 ) + + + 64 * + COUNT ( * ) AS col2, 19 - COUNT ( * ) AS col2
----
59
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT ALL COUNT( * ) + + 41 + + 2 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL COUNT ( * ) + + 41 + + 2 AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7076
SELECT - CAST( NULL AS SIGNED ) + MAX( DISTINCT - - 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7076
SELECT - CAST ( NULL AS INTEGER ) + MAX ( DISTINCT - - 72 )
----
NULL

query I rowsort
SELECT ALL - 13 + + - 28 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT ALL - ( - COUNT( DISTINCT - + 16 ) ) + + 4 * 57 - + + 48 * - 51
----
2677

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL - ( - COUNT ( DISTINCT - + 16 ) ) + + 4 * 57 - + + 48 * - 51
----
2677

query I rowsort
SELECT - CASE + 55 WHEN + 70 THEN + - 36 / - 43 * - ( + + 6 ) ELSE NULL END + + ( 42 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7080
SELECT ALL - NULLIF ( + 16, - + 10 / - CAST( - + AVG ( + - 47 ) AS SIGNED ) ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-7080
SELECT ALL - NULLIF ( + 16, - + 10 / - CAST ( - + AVG ( + - 47 ) AS INTEGER ) ) AS col1
----
-16

query I rowsort
SELECT DISTINCT - 63 * - ( + 51 ) + + 86 * + 1 col2
----
3299

query I rowsort
SELECT DISTINCT + + 98 * 85 * + - CASE ( + 56 ) WHEN ( + - 85 ) + 13 THEN 66 END * - 52 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - ( 5 ), - AVG ( DISTINCT + 31 ) ) AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7084
SELECT + NULLIF ( + CAST( - + 41 AS SIGNED ), - MAX( - 43 ) ) col0
----
-41

skipif mysql # not compatible
query I rowsort label-7084
SELECT + NULLIF ( + CAST ( - + 41 AS INTEGER ), - MAX ( - 43 ) ) col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7085
SELECT ALL NULLIF ( - 1, - - 66 + - 99 + 22 * - + 55 + - - COUNT( * ) ) - - CAST( - 66 AS SIGNED ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL NULLIF ( - 1, - - 66 + - 99 + 22 * - + 55 + - - COUNT ( * ) ) - - CAST ( - 66 AS INTEGER ) AS col2
----
-67

query I rowsort
SELECT - 87 * + ( + 79 )
----
-6873

query I rowsort
SELECT 77 - + 14
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7088
SELECT DISTINCT + NULLIF ( + 17, - - 87 ) DIV - - 46 * + + 56 + - + COUNT( 87 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT + NULLIF ( + 17, - - 87 ) / - - 46 * + + 56 + - + COUNT ( 87 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7089
SELECT MAX( DISTINCT + + 95 ) * - 41 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7089
SELECT MAX ( DISTINCT + + 95 ) * - 41 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ( + 4 ) + + 98, - 21 AS col2
----
102
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT ALL NULLIF ( + 71, + 44 / 11 / 87 * + 60 * ( MAX( + - 28 ) ) - + + 60 * - 50 / 61 + ( - - COALESCE ( 4, + NULLIF ( 66, 93 ) + 45 / 97 ) ) ) * - 2
----
-142

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL NULLIF ( + 71, + 44 / 11 / 87 * + 60 * ( MAX ( + - 28 ) ) - + + 60 * - 50 / 61 + ( - - COALESCE ( 4, + NULLIF ( 66, 93 ) + 45 / 97 ) ) ) * - 2
----
-142

onlyif mysql # aggregate syntax: 
query II rowsort label-7092
SELECT ALL - 67 AS col1, + COUNT( * ) + - - 47 - + 98 * + SUM( ALL + COALESCE ( + 94, - 18 ) ) AS col2
----
-67
-9164

skipif mysql # not compatible
query II rowsort label-7092
SELECT ALL - 67 AS col1, + COUNT ( * ) + - - 47 - + 98 * + SUM ( ALL + COALESCE ( + 94, - 18 ) ) AS col2
----
-67
-9164

query I rowsort
SELECT ALL + NULLIF ( - - ( + 53 ), - - 20 + - ( - 35 ) ) * 95
----
5035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7094
SELECT CASE 50 WHEN + SUM( - 81 ) + + CAST( NULL AS SIGNED ) THEN NULL WHEN + ( + 5 ) THEN - - 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7094
SELECT CASE 50 WHEN + SUM ( - 81 ) + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + ( + 5 ) THEN - - 33 ELSE NULL END
----
NULL

query I rowsort
SELECT + 61 + - 82
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT + 31 * + NULLIF ( + + 7, + 83 + 7 + + 88 + + CASE - 13 WHEN ( - 22 ) + - MAX( DISTINCT 26 ) - + - 20 * + 43 THEN + 7 + - 70 END ) * 19 AS col0
----
4123

skipif mysql # not compatible
query I rowsort label-7096
SELECT + 31 * + NULLIF ( + + 7, + 83 + 7 + + 88 + + CASE - 13 WHEN ( - 22 ) + - MAX ( DISTINCT 26 ) - + - 20 * + 43 THEN + 7 + - 70 END ) * 19 AS col0
----
4123

query I rowsort
SELECT ALL - 36 * 35 + - 75 col1
----
-1335

query II rowsort
SELECT ALL - 86 * - 17 + - 31, 71 * - - 11 + 75 AS col1
----
1431
856

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT + MAX( DISTINCT + - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-7099
SELECT + MAX ( DISTINCT + - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-7100
SELECT - CASE - COUNT( * ) WHEN + 15 THEN - 65 END * - 86 col2, + 66 + + COUNT( * ) col0
----
NULL
67

skipif mysql # not compatible
query II rowsort label-7100
SELECT - CASE - COUNT ( * ) WHEN + 15 THEN - 65 END * - 86 col2, + 66 + + COUNT ( * ) col0
----
NULL
67

onlyif mysql # aggregate syntax: 
query II rowsort label-7101
SELECT DISTINCT - COALESCE ( + 18, - 71 * COUNT( * ) - 98 ) * 41 + - 33 - + 67 + 59 * - 82 AS col2, 26 AS col1
----
-5676
26

skipif mysql # not compatible
query II rowsort label-7101
SELECT DISTINCT - COALESCE ( + 18, - 71 * COUNT ( * ) - 98 ) * 41 + - 33 - + 67 + 59 * - 82 AS col2, 26 AS col1
----
-5676
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7102
SELECT ALL 12 * - - MAX( - 8 ) * + COUNT( ALL 89 ) col0, + 65 AS col2
----
-96
65

skipif mysql # not compatible
query II rowsort label-7102
SELECT ALL 12 * - - MAX ( - 8 ) * + COUNT ( ALL 89 ) col0, + 65 AS col2
----
-96
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT ALL - 34 * - 65 * + + COUNT( * ) * + 43 + COALESCE ( 93, + 58 )
----
95123

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL - 34 * - 65 * + + COUNT ( * ) * + 43 + COALESCE ( 93, + 58 )
----
95123

query I rowsort
SELECT DISTINCT + 99 * - 53 + + 54 + 74
----
-5119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7105
SELECT + 32 DIV + 46 * - NULLIF ( - + ( + MAX( - 6 ) ), - - COUNT( ALL - ( + 93 ) ) ) + - + 80 DIV + 47 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7105
SELECT + 32 / + 46 * - NULLIF ( - + ( + MAX ( - 6 ) ), - - COUNT ( ALL - ( + 93 ) ) ) + - + 80 / + 47 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT ( 49 ) * - ( + 89 ) + + 36 + - - 90 * 39 * - CASE + - 7 WHEN - + 20 * - + 8 - + 4 * - 53 THEN 42 * + - 43 WHEN + ( SUM( DISTINCT 80 ) ) THEN NULL END - + 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT ( 49 ) * - ( + 89 ) + + 36 + - - 90 * 39 * - CASE + - 7 WHEN - + 20 * - + 8 - + 4 * - 53 THEN 42 * + - 43 WHEN + ( SUM ( DISTINCT 80 ) ) THEN NULL END - + 25 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7107
SELECT - + COALESCE ( + CAST( NULL AS SIGNED ), 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-7107
SELECT - + COALESCE ( + CAST ( NULL AS INTEGER ), 31 )
----
-31

query I rowsort
SELECT + + 87 + - + 36
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7109
SELECT ALL + 76 + + - 23 + - 90 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7109
SELECT ALL + 76 + + - 23 + - 90 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7110
SELECT - 16, COUNT( * ) AS col2
----
-16
1

skipif mysql # not compatible
query II rowsort label-7110
SELECT - 16, COUNT ( * ) AS col2
----
-16
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT ALL - COUNT( * ) - + - COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL - COUNT ( * ) - + - COUNT ( * ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT DISTINCT - MIN( + - ( - 86 ) ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-7112
SELECT DISTINCT - MIN ( + - ( - 86 ) ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT ALL COUNT( DISTINCT 55 )
----
1

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL COUNT ( DISTINCT 55 )
----
1

query I rowsort
SELECT DISTINCT - 73 - + ( + 69 ) AS col1
----
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7115
SELECT ALL - COUNT( * ) DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL - COUNT ( * ) / - 95
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7116
SELECT - COALESCE ( + CAST( 93 AS SIGNED ), - 34 )
----
-93

skipif mysql # not compatible
query I rowsort label-7116
SELECT - COALESCE ( + CAST ( 93 AS INTEGER ), - 34 )
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7117
SELECT DISTINCT - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) - 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7118
SELECT DISTINCT COALESCE ( - CAST( NULL AS SIGNED ), + - SUM( + - 43 ), + + AVG ( ALL - 28 ) ) DIV - + 65 * 41 col2, 40 DIV + 66
----
0
0

skipif mysql # not compatible
query II rowsort label-7118
SELECT DISTINCT COALESCE ( - CAST ( NULL AS INTEGER ), + - SUM ( + - 43 ), + + AVG ( ALL - 28 ) ) / - + 65 * 41 col2, 40 / + 66
----
0
0

query I rowsort
SELECT - 62 + + 9 + + 50 * 99
----
4897

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7120
SELECT ALL - - 91 DIV 59 * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL - - 91 / 59 * COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT ALL MAX( - + 30 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL MAX ( - + 30 ) AS col2
----
-30

query I rowsort
SELECT + + 85 + + 52
----
137

query I rowsort
SELECT - + 80 - ( + ( - 14 ) ) AS col1
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7124
SELECT - - 10 + 99 - - 71 + - COUNT( * ) + - 47 DIV 16
----
177

skipif mysql # not compatible
query I rowsort label-7124
SELECT - - 10 + 99 - - 71 + - COUNT ( * ) + - 47 / 16
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT - - ( 7 ) - + COALESCE ( + COUNT( * ), + - COUNT( * ) * + ( - SUM( DISTINCT 72 ) ), + 64 + 94 )
----
6

skipif mysql # not compatible
query I rowsort label-7125
SELECT - - ( 7 ) - + COALESCE ( + COUNT ( * ), + - COUNT ( * ) * + ( - SUM ( DISTINCT 72 ) ), + 64 + 94 )
----
6

query II rowsort
SELECT - 24 AS col0, + 18
----
-24
18

query I rowsort
SELECT - 86 + - 29 * - + 12
----
262

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT ALL + ( 54 ) * + AVG ( + - 6 ) * - - 34 * - - 31 + CASE + + 38 WHEN + + COUNT( * ) THEN + 33 - + 50 + COUNT( * ) ELSE NULL END * + 71 * + ( - 38 ) - - - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL + ( 54 ) * + AVG ( + - 6 ) * - - 34 * - - 31 + CASE + + 38 WHEN + + COUNT ( * ) THEN + 33 - + 50 + COUNT ( * ) ELSE NULL END * + 71 * + ( - 38 ) - - - 88 AS col0
----
NULL

query I rowsort
SELECT - 97 * - 4 AS col2
----
388

onlyif mysql # aggregate syntax: 
query II rowsort label-7130
SELECT DISTINCT COUNT( * ), 90 AS col1
----
1
90

skipif mysql # not compatible
query II rowsort label-7130
SELECT DISTINCT COUNT ( * ), 90 AS col1
----
1
90

query I rowsort
SELECT ALL ( - - 78 ) AS col0
----
78

query I rowsort
SELECT - 67 * + - 13 * - 99 AS col0
----
-86229

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7133
SELECT DISTINCT + CAST( - 69 AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT + CAST ( - 69 AS INTEGER )
----
-69

query I rowsort
SELECT DISTINCT 96 * - + 76
----
-7296

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT - 55 + COUNT( 51 )
----
-54

skipif mysql # not compatible
query I rowsort label-7135
SELECT - 55 + COUNT ( 51 )
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-7136
SELECT + COUNT( * ), - 85 AS col0
----
1
-85

skipif mysql # not compatible
query II rowsort label-7136
SELECT + COUNT ( * ), - 85 AS col0
----
1
-85

query II rowsort
SELECT ( - 96 ), + 99 * ( - 93 ) col0
----
-96
-9207

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT + 37 * - COUNT( * ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-7138
SELECT + 37 * - COUNT ( * ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT ALL + CASE + ( - COUNT( * ) ) WHEN - 68 + COUNT( DISTINCT - 45 ) THEN - - 17 + + ( - + 81 ) + 30 WHEN 33 THEN NULL WHEN + - 17 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL + CASE + ( - COUNT ( * ) ) WHEN - 68 + COUNT ( DISTINCT - 45 ) THEN - - 17 + + ( - + 81 ) + 30 WHEN 33 THEN NULL WHEN + - 17 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 40 * + 91 + - + 48
----
-3688

query I rowsort
SELECT + ( - - 94 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT ALL COALESCE ( 66, 75 ) * - 53 * + CASE 73 WHEN - 98 * COUNT( * ) * + 15 THEN NULL WHEN - 48 THEN + + COALESCE ( + 0, + - COUNT( * ) ) WHEN COUNT( DISTINCT - 42 ) THEN NULL ELSE NULL END * + 53 + 77 * - 11 + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL COALESCE ( 66, 75 ) * - 53 * + CASE 73 WHEN - 98 * COUNT ( * ) * + 15 THEN NULL WHEN - 48 THEN + + COALESCE ( + 0, + - COUNT ( * ) ) WHEN COUNT ( DISTINCT - 42 ) THEN NULL ELSE NULL END * + 53 + 77 * - 11 + 15
----
NULL

query I rowsort
SELECT - 1 + 17
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7144
SELECT + MIN( DISTINCT - 36 ) + + + 69 DIV - 31, CASE + 78 WHEN + - 46 THEN + 82 * - 45 + 99 + 27 END AS col2
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-7144
SELECT + MIN ( DISTINCT - 36 ) + + + 69 / - 31, CASE + 78 WHEN + - 46 THEN + 82 * - 45 + 99 + 27 END AS col2
----
-38
NULL

query II rowsort
SELECT DISTINCT + 91 AS col2, 45 * + 15
----
91
675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7146
SELECT - + MIN( ALL 75 ) * - + 5 + COUNT( * ) DIV + ( + 10 ) AS col0
----
375

skipif mysql # not compatible
query I rowsort label-7146
SELECT - + MIN ( ALL 75 ) * - + 5 + COUNT ( * ) / + ( + 10 ) AS col0
----
375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7147
SELECT + - COUNT( * ) * CAST( NULL AS SIGNED ) * - ( + 8 ) * 30 + + 23 * + + 6 + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7147
SELECT + - COUNT ( * ) * CAST ( NULL AS INTEGER ) * - ( + 8 ) * 30 + + 23 * + + 6 + 57
----
NULL

query II rowsort
SELECT DISTINCT + + 18 AS col1, + 62 * 88
----
18
5456

onlyif mysql # aggregate syntax: 
query II rowsort label-7149
SELECT - 61, ( COUNT( * ) ) col0
----
-61
1

skipif mysql # not compatible
query II rowsort label-7149
SELECT - 61, ( COUNT ( * ) ) col0
----
-61
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7150
SELECT + CAST( - 23 AS SIGNED ) + - 21
----
-44

skipif mysql # not compatible
query I rowsort label-7150
SELECT + CAST ( - 23 AS INTEGER ) + - 21
----
-44

query I rowsort
SELECT + 19 + - 72 AS col1
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-7152
SELECT ALL 63 * + + NULLIF ( - 99, + 35 - + + 14 + + + NULLIF ( - 34, 38 - + 98 * 63 ) ) + - - 84 DIV 88 + - + 20 col0
----
-6257

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL 63 * + + NULLIF ( - 99, + 35 - + + 14 + + + NULLIF ( - 34, 38 - + 98 * 63 ) ) + - - 84 / 88 + - + 20 col0
----
-6257

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7153
SELECT + - 75 + - + 91 DIV + COUNT( * ) AS col0
----
-166

skipif mysql # not compatible
query I rowsort label-7153
SELECT + - 75 + - + 91 / + COUNT ( * ) AS col0
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT ALL - MIN( DISTINCT 17 ) * - 55 * + + 43 + - + 8 col2
----
40197

skipif mysql # not compatible
query I rowsort label-7154
SELECT ALL - MIN ( DISTINCT 17 ) * - 55 * + + 43 + - + 8 col2
----
40197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7155
SELECT + - MIN( - 45 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7155
SELECT + - MIN ( - 45 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 11 * - ( 68 )
----
-748

query II rowsort
SELECT DISTINCT 1, - 14 - - + 39 * + - 1 AS col1
----
1
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-7158
SELECT + COALESCE ( COUNT( * ), + 48, 64 ) * + ( + + 34 ), 0 AS col0
----
34
0

skipif mysql # not compatible
query II rowsort label-7158
SELECT + COALESCE ( COUNT ( * ), + 48, 64 ) * + ( + + 34 ), 0 AS col0
----
34
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT - MAX( ALL 85 ) + - 9
----
-94

skipif mysql # not compatible
query I rowsort label-7159
SELECT - MAX ( ALL 85 ) + - 9
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT ALL COALESCE ( - 85, + NULLIF ( 93, - 25 + - 61 ) * 41 + SUM( ALL - 18 ) + + ( + ( - 53 ) ), - 60, 91 )
----
-85

skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL COALESCE ( - 85, + NULLIF ( 93, - 25 + - 61 ) * 41 + SUM ( ALL - 18 ) + + ( + ( - 53 ) ), - 60, 91 )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7161
SELECT CAST( NULL AS DECIMAL ) + + - NULLIF ( + 2, COUNT( * ) ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7161
SELECT CAST ( NULL AS REAL ) + + - NULLIF ( + 2, COUNT ( * ) ) * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT COUNT( * ) * - - 32 * + + 78 * COUNT( * )
----
2496

skipif mysql # not compatible
query I rowsort label-7162
SELECT COUNT ( * ) * - - 32 * + + 78 * COUNT ( * )
----
2496

query I rowsort
SELECT ALL - ( + 32 ) * - 68 AS col1
----
2176

onlyif mysql # DIV for integer division: 
query I rowsort label-7164
SELECT 27 DIV - - 33 * - 30
----
0

skipif mysql # not compatible
query I rowsort label-7164
SELECT 27 / - - 33 * - 30
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7165
SELECT ALL 73 + 69 + - COUNT( * ) DIV + + 72 * - COUNT( ALL - 89 ) + NULLIF ( 99, + + COUNT( * ) )
----
241

skipif mysql # not compatible
query I rowsort label-7165
SELECT ALL 73 + 69 + - COUNT ( * ) / + + 72 * - COUNT ( ALL - 89 ) + NULLIF ( 99, + + COUNT ( * ) )
----
241

query I rowsort
SELECT ALL + 95 * - 71 col0
----
-6745

onlyif mysql # aggregate syntax: 
query III rowsort label-7167
SELECT DISTINCT - 40 * 30 AS col1, 3 * + + MAX( ALL 37 ), - MIN( + 8 ) AS col0
----
-1200
111
-8

skipif mysql # not compatible
query III rowsort label-7167
SELECT DISTINCT - 40 * 30 AS col1, 3 * + + MAX ( ALL 37 ), - MIN ( + 8 ) AS col0
----
-1200
111
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7168
SELECT CAST( NULL AS SIGNED ) * + 61 AS col2, 39
----
NULL
39

skipif mysql # not compatible
query II rowsort label-7168
SELECT CAST ( NULL AS INTEGER ) * + 61 AS col2, 39
----
NULL
39

query I rowsort
SELECT DISTINCT + NULLIF ( + - 88, - 96 ) + + 78
----
-10

query I rowsort
SELECT 53 + - 76
----
-23

query II rowsort
SELECT ALL + 95 * + 62 * 41, + 48 AS col0
----
241490
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT DISTINCT - SUM( 44 ) col2
----
-44

skipif mysql # not compatible
query I rowsort label-7172
SELECT DISTINCT - SUM ( 44 ) col2
----
-44

query I rowsort
SELECT 33 * - ( 75 ) col2
----
-2475

query I rowsort
SELECT DISTINCT - 78 * - - ( + 77 )
----
-6006

query II rowsort
SELECT DISTINCT - 69 + - + 53 AS col1, + 89 + + 81
----
-122
170

query I rowsort
SELECT ALL - 51 + COALESCE ( - 64, - 22 )
----
-115

query I rowsort
SELECT ALL - ( + 68 ) AS col2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-7178
SELECT ALL 24 DIV ( + 83 ) * + 21
----
0

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL 24 / ( + 83 ) * + 21
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT + SUM( 73 )
----
73

skipif mysql # not compatible
query I rowsort label-7179
SELECT + SUM ( 73 )
----
73

query I rowsort
SELECT ALL + 34 - 57
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7181
SELECT + 90 DIV - 76
----
-1

skipif mysql # not compatible
query I rowsort label-7181
SELECT + 90 / - 76
----
-1

query I rowsort
SELECT + ( - - 35 ) * - - 83
----
2905

query I rowsort
SELECT DISTINCT - - 91 * + 95 AS col2
----
8645

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7184
SELECT ALL - COUNT( * ) * - 80 DIV + - 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7184
SELECT ALL - COUNT ( * ) * - 80 / + - 94 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT + + NULLIF ( - + CASE - AVG ( - 68 ) WHEN + - 0 THEN - 12 ELSE NULL END, - - 63 + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7185
SELECT + + NULLIF ( - + CASE - AVG ( - 68 ) WHEN + - 0 THEN - 12 ELSE NULL END, - - 63 + COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 56 - + 91 + + + ( 8 ) col0
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7187
SELECT - 26 / - CAST( NULL AS DECIMAL ) + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-7187
SELECT - 26 / - CAST ( NULL AS REAL ) + + 80
----
NULL

query I rowsort
SELECT ALL + 24 * 58 - + + 76 * COALESCE ( + - 25, - ( 77 ) ) AS col2
----
3292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7189
SELECT ( - COUNT( * ) ) DIV 59 - + 65
----
-65

skipif mysql # not compatible
query I rowsort label-7189
SELECT ( - COUNT ( * ) ) / 59 - + 65
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7190
SELECT + 92 DIV - CASE - 62 WHEN 54 * - 30 THEN + + 41 + COUNT( * ) + 24 ELSE + - ( 81 ) + + - 18 * - ( - 73 ) + - COUNT( * ) + - + 77 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7190
SELECT + 92 / - CASE - 62 WHEN 54 * - 30 THEN + + 41 + COUNT ( * ) + 24 ELSE + - ( 81 ) + + - 18 * - ( - 73 ) + - COUNT ( * ) + - + 77 END AS col1
----
0

query I rowsort
SELECT - CASE + + 8 WHEN - - 55 * - AVG ( - 43 ) THEN + + 74 ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7192
SELECT DISTINCT + COUNT( * ) + - 11 AS col0, ( 5 ) DIV - 63 * - CAST( + + 97 AS SIGNED ) AS col0
----
-10
0

skipif mysql # not compatible
query II rowsort label-7192
SELECT DISTINCT + COUNT ( * ) + - 11 AS col0, ( 5 ) / - 63 * - CAST ( + + 97 AS INTEGER ) AS col0
----
-10
0

query II rowsort
SELECT 37 + 62 AS col1, - 23 * - - 52
----
99
-1196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7194
SELECT - ( - CAST( NULL AS SIGNED ) ) AS col2, + 74 + - ( 99 ) + - SUM( + 99 ) + ( - 46 ) AS col2
----
NULL
-170

skipif mysql # not compatible
query II rowsort label-7194
SELECT - ( - CAST ( NULL AS INTEGER ) ) AS col2, + 74 + - ( 99 ) + - SUM ( + 99 ) + ( - 46 ) AS col2
----
NULL
-170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7195
SELECT ALL NULLIF ( - 80, + CAST( - - 57 AS SIGNED ) - - + 99 )
----
-80

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL NULLIF ( - 80, + CAST ( - - 57 AS INTEGER ) - - + 99 )
----
-80

query I rowsort
SELECT ALL + 8 + 42 * - 72
----
-3016

query I rowsort
SELECT + ( - 51 ) + + 18
----
-33

query I rowsort
SELECT 18 * + - 67
----
-1206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7199
SELECT COALESCE ( 13, + - CAST( 23 AS SIGNED ) ) + ( - 80 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-7199
SELECT COALESCE ( 13, + - CAST ( 23 AS INTEGER ) ) + ( - 80 ) AS col2
----
-67

query II rowsort
SELECT - 78, - 87 + + - 49 + + + 97 * 98 AS col2
----
-78
9370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7201
SELECT ALL 32 + + 38 + + COUNT( * ) * - 17 DIV ( - COUNT( * ) ) + - COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL 32 + + 38 + + COUNT ( * ) * - 17 / ( - COUNT ( * ) ) + - COUNT ( * ) AS col2
----
86

query I rowsort
SELECT 8 * + 5
----
40

query I rowsort
SELECT NULLIF ( + 28, + 13 ) + + + 99 AS col2
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-7204
SELECT 95 AS col1, ( + - 24 ) * - + 14 * 24 * + COUNT( * )
----
95
8064

skipif mysql # not compatible
query II rowsort label-7204
SELECT 95 AS col1, ( + - 24 ) * - + 14 * 24 * + COUNT ( * )
----
95
8064

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT COUNT( - + 14 ) + + 2 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7205
SELECT COUNT ( - + 14 ) + + 2 AS col1
----
3

query II rowsort
SELECT 76 AS col1, 61 AS col2
----
76
61

query I rowsort
SELECT DISTINCT 55 + 62 AS col0
----
117

query I rowsort
SELECT COALESCE ( - 30, - - ( 60 ) ) + + 66 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT - MIN( DISTINCT - 63 )
----
63

skipif mysql # not compatible
query I rowsort label-7209
SELECT - MIN ( DISTINCT - 63 )
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-7210
SELECT DISTINCT + 19 - - 22 + 74 AS col0, - COALESCE ( 33, + + SUM( - 25 ), + 63 ) AS col0
----
115
-33

skipif mysql # not compatible
query II rowsort label-7210
SELECT DISTINCT + 19 - - 22 + 74 AS col0, - COALESCE ( 33, + + SUM ( - 25 ), + 63 ) AS col0
----
115
-33

query I rowsort
SELECT DISTINCT + 10 * - 33
----
-330

query I rowsort
SELECT DISTINCT 94 * 93 - - 45 AS col1
----
8787

query I rowsort
SELECT 71 * + 79
----
5609

query I rowsort
SELECT DISTINCT 69 * - 9 - - 10 AS col2
----
-611

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT 29 * - + COUNT( * ) * + - SUM( - 10 ) + - - 12 * - SUM( DISTINCT - 59 ) + 67 * + 92 AS col1
----
6582

skipif mysql # not compatible
query I rowsort label-7215
SELECT 29 * - + COUNT ( * ) * + - SUM ( - 10 ) + - - 12 * - SUM ( DISTINCT - 59 ) + 67 * + 92 AS col1
----
6582

query I rowsort
SELECT - ( CASE 79 WHEN 17 THEN - 23 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7217
SELECT + ( - 49 ) DIV + 20 + - COUNT( * ) + 55 * + 92
----
5057

skipif mysql # not compatible
query I rowsort label-7217
SELECT + ( - 49 ) / + 20 + - COUNT ( * ) + 55 * + 92
----
5057

onlyif mysql # aggregate syntax: 
query II rowsort label-7218
SELECT ALL - NULLIF ( + 51, COUNT( * ) ) AS col0, + ( + 72 ) AS col1
----
-51
72

skipif mysql # not compatible
query II rowsort label-7218
SELECT ALL - NULLIF ( + 51, COUNT ( * ) ) AS col0, + ( + 72 ) AS col1
----
-51
72

query I rowsort
SELECT DISTINCT 66 * - 83 + - 35 AS col2
----
-5513

query I rowsort
SELECT - 5 * - + 34 + - ( + 83 ) * - 60
----
5150

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT DISTINCT - CASE + 6 WHEN 95 * - 22 / 98 THEN + + MIN( ALL + 19 ) * - 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7221
SELECT DISTINCT - CASE + 6 WHEN 95 * - 22 / 98 THEN + + MIN ( ALL + 19 ) * - 55 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT ALL - + COALESCE ( 1, + 37, 26 - COUNT( * ) - - NULLIF ( - 1, - + ( - 67 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL - + COALESCE ( 1, + 37, 26 - COUNT ( * ) - - NULLIF ( - 1, - + ( - 67 ) ) ) AS col1
----
-1

query I rowsort
SELECT - 81 * - - 91
----
-7371

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7224
SELECT COUNT( * ) DIV + + 29
----
0

skipif mysql # not compatible
query I rowsort label-7224
SELECT COUNT ( * ) / + + 29
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7225
SELECT ALL - + 9 + - CAST( - 3 AS SIGNED ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL - + 9 + - CAST ( - 3 AS INTEGER ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT ALL + - CASE + 94 WHEN - 11 * - + MAX( - + CASE + 36 WHEN 21 THEN 9 * 35 END ) + + 13 THEN 38 - + ( + 82 ) * + ( - 8 ) + - - 71 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL + - CASE + 94 WHEN - 11 * - + MAX ( - + CASE + 36 WHEN 21 THEN 9 * 35 END ) + + 13 THEN 38 - + ( + 82 ) * + ( - 8 ) + - - 71 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT ALL + 37 + + + ( + 79 ) - + + COUNT( * )
----
115

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL + 37 + + + ( + 79 ) - + + COUNT ( * )
----
115

query I rowsort
SELECT DISTINCT + - 80 + 52 + 79 AS col0
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-7229
SELECT ALL + 85 AS col1, - 94 DIV 9
----
85
-10

skipif mysql # not compatible
query II rowsort label-7229
SELECT ALL + 85 AS col1, - 94 / 9
----
85
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7230
SELECT - 27 DIV - COUNT( DISTINCT - - 91 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-7230
SELECT - 27 / - COUNT ( DISTINCT - - 91 ) AS col1
----
27

query I rowsort
SELECT ALL + 68 + - 57 AS col0
----
11

query I rowsort
SELECT DISTINCT - ( 42 ) + 86
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7233
SELECT - 56 + + 53 + - + 66 + - 2 * 70 - + 97 - - NULLIF ( - 37, + 69 - 48 - - COUNT( * ) + + 74 * + 31 * 47 + - + 71 / - + COUNT( * ) ) * + CAST( ( - + COUNT( * ) ) AS SIGNED )
----
-269

skipif mysql # not compatible
query I rowsort label-7233
SELECT - 56 + + 53 + - + 66 + - 2 * 70 - + 97 - - NULLIF ( - 37, + 69 - 48 - - COUNT ( * ) + + 74 * + 31 * 47 + - + 71 / - + COUNT ( * ) ) * + CAST ( ( - + COUNT ( * ) ) AS INTEGER )
----
-269

onlyif mysql # DIV for integer division: 
query I rowsort label-7234
SELECT - 91 DIV 62 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7234
SELECT - 91 / 62 AS col2
----
-1

query II rowsort
SELECT + 73 * 53 AS col0, 15 AS col2
----
3869
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT ALL 79 + - - COUNT( * ) + - 81 + - 47 * - 67 * - 45
----
-141706

skipif mysql # not compatible
query I rowsort label-7236
SELECT ALL 79 + - - COUNT ( * ) + - 81 + - 47 * - 67 * - 45
----
-141706

query I rowsort
SELECT - 85 * 31 AS col0
----
-2635

query I rowsort
SELECT + 2 + - - NULLIF ( + 64, - 58 + + - 94 )
----
66

query II rowsort
SELECT DISTINCT 14 - - - 30 AS col0, + ( - 23 ) * + - 45 AS col2
----
-16
1035

query I rowsort
SELECT DISTINCT COALESCE ( - 4, + 24 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT ALL ( ( - - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL ( ( - - COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7242
SELECT ALL 66 * - COUNT( * ), + 5 - - 66 AS col1
----
-66
71

skipif mysql # not compatible
query II rowsort label-7242
SELECT ALL 66 * - COUNT ( * ), + 5 - - 66 AS col1
----
-66
71

query II rowsort
SELECT DISTINCT 78 * + 79 AS col0, 12 AS col0
----
6162
12

query I rowsort
SELECT + 48 + - 59 - - 74
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT + COUNT( * ) * + 52 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-7245
SELECT + COUNT ( * ) * + 52 AS col2
----
52

query I rowsort
SELECT + ( 88 ) + - + 39
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-7247
SELECT + 0 + 63 DIV - 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7247
SELECT + 0 + 63 / - 77 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7248
SELECT + + ( + 3 ) DIV + + 34 + + + 41 + + 80 * 83 * 27
----
179321

skipif mysql # not compatible
query I rowsort label-7248
SELECT + + ( + 3 ) / + + 34 + + + 41 + + 80 * 83 * 27
----
179321

onlyif mysql # DIV for integer division: 
query II rowsort label-7249
SELECT DISTINCT + 26 DIV + 60, + 69 AS col1
----
0
69

skipif mysql # not compatible
query II rowsort label-7249
SELECT DISTINCT + 26 / + 60, + 69 AS col1
----
0
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7250
SELECT DISTINCT + COALESCE ( + ( + 22 ), - ( 62 ) ), SUM( ALL 49 ) AS col1
----
22
49

skipif mysql # not compatible
query II rowsort label-7250
SELECT DISTINCT + COALESCE ( + ( + 22 ), - ( 62 ) ), SUM ( ALL 49 ) AS col1
----
22
49

onlyif mysql # DIV for integer division: 
query I rowsort label-7251
SELECT + 99 DIV + - 63
----
-1

skipif mysql # not compatible
query I rowsort label-7251
SELECT + 99 / + - 63
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT ALL + - COUNT( * ) * 82 * 41 AS col0
----
-3362

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL + - COUNT ( * ) * 82 * 41 AS col0
----
-3362

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT + COALESCE ( + COUNT( * ), 70 * + - COALESCE ( CASE - 34 WHEN + CASE - ( + 13 ) WHEN + 29 THEN NULL ELSE 68 END * - 76 * + 29 - 38 THEN - COUNT( * ) + - 0 * - + 65 END, COUNT( * ), + CASE 7 WHEN 5 THEN NULL WHEN + 0 * NULLIF ( 29, 57 ) THEN - 78 * 35 WHEN + 9 THEN + 74 ELSE - 28 END * 53, 88 * + 57 ) * - 45, 13 * 33 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7253
SELECT + COALESCE ( + COUNT ( * ), 70 * + - COALESCE ( CASE - 34 WHEN + CASE - ( + 13 ) WHEN + 29 THEN NULL ELSE 68 END * - 76 * + 29 - 38 THEN - COUNT ( * ) + - 0 * - + 65 END, COUNT ( * ), + CASE 7 WHEN 5 THEN NULL WHEN + 0 * NULLIF ( 29, 57 ) THEN - 78 * 35 WHEN + 9 THEN + 74 ELSE - 28 END * 53, 88 * + 57 ) * - 45, 13 * 33 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT ALL - COALESCE ( 30, - ( + 50 ), ( ( + 67 ) ) ) * - 13 + - 77 + 35 * 67 + + + 54 * - - COUNT( * )
----
2712

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL - COALESCE ( 30, - ( + 50 ), ( ( + 67 ) ) ) * - 13 + - 77 + 35 * 67 + + + 54 * - - COUNT ( * )
----
2712

onlyif mysql # DIV for integer division: 
query I rowsort label-7255
SELECT + + ( + + 42 ) DIV - - 54
----
0

skipif mysql # not compatible
query I rowsort label-7255
SELECT + + ( + + 42 ) / - - 54
----
0

query I rowsort
SELECT + 88 - 50
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7257
SELECT ALL CASE + - ( AVG ( - + 26 ) ) WHEN - 80 THEN + COALESCE ( + 57, + - 87 ) + 88 * + 36 WHEN - 91 + CASE - + 28 WHEN + 70 + - 72 + + - CAST( 17 AS SIGNED ) THEN COUNT( * ) * + - 82 END * - 12 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE NULL END * CASE - 90 WHEN - COUNT( * ) THEN NULL WHEN + 46 THEN - 49 + COUNT( * ) / + 20 END + ( 31 ) * 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL CASE + - ( AVG ( - + 26 ) ) WHEN - 80 THEN + COALESCE ( + 57, + - 87 ) + 88 * + 36 WHEN - 91 + CASE - + 28 WHEN + 70 + - 72 + + - CAST ( 17 AS INTEGER ) THEN COUNT ( * ) * + - 82 END * - 12 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE NULL END * CASE - 90 WHEN - COUNT ( * ) THEN NULL WHEN + 46 THEN - 49 + COUNT ( * ) / + 20 END + ( 31 ) * 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT DISTINCT - 30 * - COUNT( * ) + - - 14 + - + COUNT( * ) + + 47 * + + 27 * + 83 * + - 12 AS col2
----
-1263881

skipif mysql # not compatible
query I rowsort label-7258
SELECT DISTINCT - 30 * - COUNT ( * ) + - - 14 + - + COUNT ( * ) + + 47 * + + 27 * + 83 * + - 12 AS col2
----
-1263881

onlyif mysql # DIV for integer division: 
query I rowsort label-7259
SELECT + - CASE 60 WHEN 74 * + 72 THEN + 30 ELSE - 46 DIV 50 + - 77 - - + ( + 5 ) + + 65 END AS col2
----
7

skipif mysql # not compatible
query I rowsort label-7259
SELECT + - CASE 60 WHEN 74 * + 72 THEN + 30 ELSE - 46 / 50 + - 77 - - + ( + 5 ) + + 65 END AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT ALL + 79 * + 31 + + + ( + - CASE - 70 WHEN + - 11 + 20 * + 37 THEN - 97 * MIN( ALL - 22 ) END ) + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL + 79 * + 31 + + + ( + - CASE - 70 WHEN + - 11 + 20 * + 37 THEN - 97 * MIN ( ALL - 22 ) END ) + 54
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7261
SELECT - 68 * - 98 / - - CAST( NULL AS SIGNED ) / 14 + - 60 + + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-7261
SELECT - 68 * - 98 / - - CAST ( NULL AS INTEGER ) / 14 + - 60 + + - 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT - COUNT( * ) * 57 * ( + + 28 ) AS col0
----
-1596

skipif mysql # not compatible
query I rowsort label-7262
SELECT - COUNT ( * ) * 57 * ( + + 28 ) AS col0
----
-1596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7263
SELECT - CAST( + - 71 AS SIGNED ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-7263
SELECT - CAST ( + - 71 AS INTEGER ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT - 91 + + SUM( 11 ) * + - 58 AS col2
----
-729

skipif mysql # not compatible
query I rowsort label-7264
SELECT - 91 + + SUM ( 11 ) * + - 58 AS col2
----
-729

onlyif mysql # aggregate syntax: 
query II rowsort label-7265
SELECT COUNT( * ) AS col2, 66
----
1
66

skipif mysql # not compatible
query II rowsort label-7265
SELECT COUNT ( * ) AS col2, 66
----
1
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT ALL SUM( DISTINCT - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL SUM ( DISTINCT - 7 )
----
-7

query I rowsort
SELECT - 61 + + ( 4 ) AS col0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7268
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 90
----
NULL
90

skipif mysql # not compatible
query II rowsort label-7268
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 90
----
NULL
90

query I rowsort
SELECT DISTINCT + 10 * 18
----
180

query I rowsort
SELECT - COALESCE ( - 39, + 57 ) + + + 3 AS col1
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-7271
SELECT ALL 99, 42 - - + 43 - + COUNT( * ) AS col1
----
99
84

skipif mysql # not compatible
query II rowsort label-7271
SELECT ALL 99, 42 - - + 43 - + COUNT ( * ) AS col1
----
99
84

query II rowsort
SELECT 44 AS col0, - 44
----
44
-44

query I rowsort
SELECT ALL + 65 * + 64
----
4160

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT + 7 + - COALESCE ( + 42, + MIN( + + 47 ), 99, 45 * + 36 * 42 + - - 82 ) - - - COUNT( * ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-7274
SELECT + 7 + - COALESCE ( + 42, + MIN ( + + 47 ), 99, 45 * + 36 * 42 + - - 82 ) - - - COUNT ( * ) AS col1
----
-36

query I rowsort
SELECT - 19 * - 30 col1
----
570

query I rowsort
SELECT + 25 * 93 AS col1
----
2325

query I rowsort
SELECT ALL ( - - ( + 83 ) ) col2
----
83

query I rowsort
SELECT - 61 + 87
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7279
SELECT ALL 0 * - - 39 DIV 16 DIV 26 * + 19
----
0

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL 0 * - - 39 / 16 / 26 * + 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT ALL - MAX( ALL - + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL - MAX ( ALL - + 54 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT ALL COUNT( + 58 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL COUNT ( + 58 ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7282
SELECT ALL + 55 DIV + 26 + + 43 + - - 84
----
129

skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL + 55 / + 26 + + 43 + - - 84
----
129

query I rowsort
SELECT + 22 * 90 * + 75 + - - 79 + 16 AS col0
----
148595

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT + NULLIF ( COUNT( DISTINCT + 76 ), 30 ) - + 16 + - 77
----
-92

skipif mysql # not compatible
query I rowsort label-7284
SELECT + NULLIF ( COUNT ( DISTINCT + 76 ), 30 ) - + 16 + - 77
----
-92

query I rowsort
SELECT + + ( + - 15 ) AS col0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-7286
SELECT ALL - - 34 DIV - 53 * 43 + 39
----
39

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL - - 34 / - 53 * 43 + 39
----
39

query II rowsort
SELECT + 59, NULLIF ( 29, + - 3 ) + + 73 - - 21 + - 36 AS col1
----
59
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7288
SELECT 55 DIV 18 * + 21 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-7288
SELECT 55 / 18 * + 21 AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7289
SELECT ALL CAST( NULL AS SIGNED ) + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL CAST ( NULL AS INTEGER ) + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT NULLIF ( + - COUNT( * ), - ( - 51 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7290
SELECT NULLIF ( + - COUNT ( * ), - ( - 51 ) )
----
-1

query I rowsort
SELECT DISTINCT - 43 + + COALESCE ( + - 3, + 98 ) AS col1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7292
SELECT ALL - + COALESCE ( + 4, 98 + + 87 * + - 28 - + 32 * CAST( NULL AS SIGNED ) )
----
-4

skipif mysql # not compatible
query I rowsort label-7292
SELECT ALL - + COALESCE ( + 4, 98 + + 87 * + - 28 - + 32 * CAST ( NULL AS INTEGER ) )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7293
SELECT ALL CAST( NULL AS SIGNED ) / + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL CAST ( NULL AS INTEGER ) / + 31 AS col0
----
NULL

query I rowsort
SELECT - 46 * 20 * 11 + + 32 AS col0
----
-10088

query I rowsort
SELECT + 8 * - + ( 21 ) - + 79 + - + 30 - + - 4
----
-273

query I rowsort
SELECT - - 39 * 99 + + + 97
----
3958

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT ALL + + 42 + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL + + 42 + COUNT ( * )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7298
SELECT - 33 * + COUNT( 90 ) + - 95 * - ( + NULLIF ( + + MIN( DISTINCT - + 73 ), + - ( + ( - 35 ) ) - - CAST( NULL AS DECIMAL ) * - 6 ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7298
SELECT - 33 * + COUNT ( 90 ) + - 95 * - ( + NULLIF ( + + MIN ( DISTINCT - + 73 ), + - ( + ( - 35 ) ) - - CAST ( NULL AS REAL ) * - 6 ) ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7299
SELECT 14 DIV + 55
----
0

skipif mysql # not compatible
query I rowsort label-7299
SELECT 14 / + 55
----
0

query I rowsort
SELECT - 35 + + - 3
----
-38

query I rowsort
SELECT 18 * - 74
----
-1332

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7302
SELECT + 71, - 15 + + 89 + 79 - + COUNT( * ) DIV - - 72 DIV + 23 AS col2
----
71
153

skipif mysql # not compatible
query II rowsort label-7302
SELECT + 71, - 15 + + 89 + 79 - + COUNT ( * ) / - - 72 / + 23 AS col2
----
71
153

query I rowsort
SELECT 56 + + 33
----
89

query I rowsort
SELECT ALL ( + 64 ) - 76
----
-12

query I rowsort
SELECT NULLIF ( 11, + - 10 * - 91 / - ( - 43 ) ) * + - 61 + - + 88
----
-759

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7306
SELECT ALL - 1 AS col1, ( ( - + 76 ) ) * + + COALESCE ( - - SUM( - ( 58 ) ), - + 12 + 1, - MIN( DISTINCT - 53 ) DIV + - ( + 74 ) + - 13 ) - - 9 AS col2
----
-1
4417

skipif mysql # not compatible
query II rowsort label-7306
SELECT ALL - 1 AS col1, ( ( - + 76 ) ) * + + COALESCE ( - - SUM ( - ( 58 ) ), - + 12 + 1, - MIN ( DISTINCT - 53 ) / + - ( + 74 ) + - 13 ) - - 9 AS col2
----
-1
4417

query I rowsort
SELECT DISTINCT ( - 59 ) * + + 36 AS col1
----
-2124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7308
SELECT ALL 39 AS col2, 0 * + - 7 + - CASE - COUNT( * ) WHEN + 85 THEN - + COALESCE ( - 93, - - 38 * + - CASE - - COALESCE ( - 60, 15 + - 33 ) WHEN + 35 * - + CASE - - CAST( 33 AS SIGNED ) WHEN - - COUNT( * ) THEN COUNT( * ) * + ( 13 ) ELSE NULL END THEN - 63 * 15 ELSE + 51 * 52 + 45 * 29 END + + 93 * - 23, + 31 * + 4 ) - - MIN( + ( - 31 ) ) * + 63 ELSE 72 * 5 END + - 63 AS col1
----
39
-423

skipif mysql # not compatible
query II rowsort label-7308
SELECT ALL 39 AS col2, 0 * + - 7 + - CASE - COUNT ( * ) WHEN + 85 THEN - + COALESCE ( - 93, - - 38 * + - CASE - - COALESCE ( - 60, 15 + - 33 ) WHEN + 35 * - + CASE - - CAST ( 33 AS INTEGER ) WHEN - - COUNT ( * ) THEN COUNT ( * ) * + ( 13 ) ELSE NULL END THEN - 63 * 15 ELSE + 51 * 52 + 45 * 29 END + + 93 * - 23, + 31 * + 4 ) - - MIN ( + ( - 31 ) ) * + 63 ELSE 72 * 5 END + - 63 AS col1
----
39
-423

query I rowsort
SELECT 72 * - 47 AS col1
----
-3384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7310
SELECT CAST( NULL AS SIGNED ) * 16 * + COALESCE ( - - 29, 97 + - + 1, + - NULLIF ( 27, - CAST( - + 84 AS SIGNED ) + 5 ) + + NULLIF ( COUNT( * ), - 25 * + ( + + 97 ) + + 71 ) - + + 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7310
SELECT CAST ( NULL AS INTEGER ) * 16 * + COALESCE ( - - 29, 97 + - + 1, + - NULLIF ( 27, - CAST ( - + 84 AS INTEGER ) + 5 ) + + NULLIF ( COUNT ( * ), - 25 * + ( + + 97 ) + + 71 ) - + + 68 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7311
SELECT ALL - 6 DIV 21 * - - COALESCE ( - COUNT( * ), - 39 * 33 * - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL - 6 / 21 * - - COALESCE ( - COUNT ( * ), - 39 * 33 * - COUNT ( * ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7312
SELECT 62 DIV + + 13 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-7312
SELECT 62 / + + 13 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7313
SELECT 97 * + COUNT( * ) AS col2, NULLIF ( CASE + ( CASE + 21 WHEN - 94 + 26 * 41 THEN NULL WHEN + 26 + + + COUNT( * ) * - 55 THEN - 11 / 9 WHEN 44 THEN NULL END ) WHEN - SUM( 47 ) THEN - + ( + + 22 ) * CAST( NULL AS SIGNED ) * + ( - 36 ) ELSE - MIN( 60 ) * - COUNT( * ) END, - 28 )
----
97
60

skipif mysql # not compatible
query II rowsort label-7313
SELECT 97 * + COUNT ( * ) AS col2, NULLIF ( CASE + ( CASE + 21 WHEN - 94 + 26 * 41 THEN NULL WHEN + 26 + + + COUNT ( * ) * - 55 THEN - 11 / 9 WHEN 44 THEN NULL END ) WHEN - SUM ( 47 ) THEN - + ( + + 22 ) * CAST ( NULL AS INTEGER ) * + ( - 36 ) ELSE - MIN ( 60 ) * - COUNT ( * ) END, - 28 )
----
97
60

query I rowsort
SELECT 87 * - 97
----
-8439

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT DISTINCT - 99 * - ( + + 35 ) + + - COUNT( * ) col2
----
3464

skipif mysql # not compatible
query I rowsort label-7315
SELECT DISTINCT - 99 * - ( + + 35 ) + + - COUNT ( * ) col2
----
3464

query I rowsort
SELECT ALL + - 69 + + + 6 + 50
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT ( - 87 ) + COUNT( * ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-7317
SELECT ( - 87 ) + COUNT ( * ) AS col1
----
-86

query II rowsort
SELECT - 92, 26 AS col1
----
-92
26

query I rowsort
SELECT - 90 + - 79 * ( + + 3 ) + - + 72 * - COALESCE ( - 77, - + 81 ) AS col0
----
-5871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7320
SELECT ALL - COUNT( * ) DIV 12
----
0

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL - COUNT ( * ) / 12
----
0

query II rowsort
SELECT + - 26 AS col2, 17
----
-26
17

query I rowsort
SELECT DISTINCT - + 48 + - 2 AS col0
----
-50

query I rowsort
SELECT ALL + 13 + 64 * + 78 AS col0
----
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT MIN( + + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-7324
SELECT MIN ( + + 56 )
----
56

query I rowsort
SELECT ALL ( + 60 ) + 58 AS col0
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-7326
SELECT DISTINCT - SUM( + 71 ) AS col2, - 0
----
-71
0

skipif mysql # not compatible
query II rowsort label-7326
SELECT DISTINCT - SUM ( + 71 ) AS col2, - 0
----
-71
0

query I rowsort
SELECT 58 * 69 - - + 84
----
4086

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT - 6 * + + COALESCE ( COUNT( * ), - - 39 ) * + SUM( DISTINCT - - 91 ) + + 98 - + 20 * - - COUNT( * ) * + + ( - 49 ) * + - 40 AS col0
----
-39648

skipif mysql # not compatible
query I rowsort label-7328
SELECT - 6 * + + COALESCE ( COUNT ( * ), - - 39 ) * + SUM ( DISTINCT - - 91 ) + + 98 - + 20 * - - COUNT ( * ) * + + ( - 49 ) * + - 40 AS col0
----
-39648

query I rowsort
SELECT + COALESCE ( - - 83, - + ( - 73 ) )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT DISTINCT - + 60 * + + COUNT( ALL + 53 ) * + 31 + + 4 * - + 47
----
-2048

skipif mysql # not compatible
query I rowsort label-7330
SELECT DISTINCT - + 60 * + + COUNT ( ALL + 53 ) * + 31 + + 4 * - + 47
----
-2048

onlyif mysql # aggregate syntax: 
query II rowsort label-7331
SELECT + COUNT( * ), 52 * - 54 AS col0
----
1
-2808

skipif mysql # not compatible
query II rowsort label-7331
SELECT + COUNT ( * ), 52 * - 54 AS col0
----
1
-2808

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT ALL - 98 - - 15 + + - SUM( - 92 ) * 84 - + 40 + + 64 * + 66 col0
----
11829

skipif mysql # not compatible
query I rowsort label-7332
SELECT ALL - 98 - - 15 + + - SUM ( - 92 ) * 84 - + 40 + + 64 * + 66 col0
----
11829

query I rowsort
SELECT + 42 * + 7
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT COUNT( * ) - - + 59
----
60

skipif mysql # not compatible
query I rowsort label-7334
SELECT COUNT ( * ) - - + 59
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7335
SELECT DISTINCT - CAST( + + 45 AS SIGNED ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-7335
SELECT DISTINCT - CAST ( + + 45 AS INTEGER ) AS col1
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7336
SELECT ALL 49 - + ( 42 ) + 19 DIV - + 43 * - 65 * - COUNT( * ) + COUNT( * ) - COUNT( * ) * + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL 49 - + ( 42 ) + 19 / - + 43 * - 65 * - COUNT ( * ) + COUNT ( * ) - COUNT ( * ) * + COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT 65 * CASE + COUNT( * ) WHEN + - SUM( 43 ) THEN 83 WHEN - - 84 THEN 23 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7337
SELECT 65 * CASE + COUNT ( * ) WHEN + - SUM ( 43 ) THEN 83 WHEN - - 84 THEN 23 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 74 * + 61 * 50 + + 38 AS col1
----
225738

query I rowsort
SELECT 43 * + 48 AS col1
----
2064

query I rowsort
SELECT - 22 * ( - 69 ) + - + 82 col2
----
1436

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7341
SELECT CAST( - ( + 33 ) AS SIGNED ) - + 20 - 57
----
-110

skipif mysql # not compatible
query I rowsort label-7341
SELECT CAST ( - ( + 33 ) AS INTEGER ) - + 20 - 57
----
-110

query I rowsort
SELECT ALL 90 * + 24
----
2160

query I rowsort
SELECT 77 * + 19 AS col1
----
1463

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7344
SELECT DISTINCT 95 + + 85 - - CAST( - + 33 AS SIGNED ) AS col2
----
147

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT 95 + + 85 - - CAST ( - + 33 AS INTEGER ) AS col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT - COUNT( ALL 95 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7345
SELECT - COUNT ( ALL 95 ) AS col0
----
-1

query I rowsort
SELECT - COALESCE ( + + 77, + 35 )
----
-77

query I rowsort
SELECT ALL 47 + 21 AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7348
SELECT 67 + + 14 + - 17 - + 54 * + NULLIF ( + NULLIF ( CAST( + 23 AS SIGNED ), + 57 ), 39 ) * + - 54
----
67132

skipif mysql # not compatible
query I rowsort label-7348
SELECT 67 + + 14 + - 17 - + 54 * + NULLIF ( + NULLIF ( CAST ( + 23 AS INTEGER ), + 57 ), 39 ) * + - 54
----
67132

query I rowsort
SELECT DISTINCT 39 + - - 70 AS col0
----
109

query I rowsort
SELECT 72 * 87 AS col0
----
6264

onlyif mysql # aggregate syntax: 
query II rowsort label-7351
SELECT COUNT( * ) + - 98, - 50 - - + 61 AS col0
----
-97
11

skipif mysql # not compatible
query II rowsort label-7351
SELECT COUNT ( * ) + - 98, - 50 - - + 61 AS col0
----
-97
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT - MIN( ALL - 11 ) + 96 * + + COUNT( * ) + - 62 - - COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-7352
SELECT - MIN ( ALL - 11 ) + 96 * + + COUNT ( * ) + - 62 - - COUNT ( * ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT ALL + - 75 + + ( COUNT( ALL + - 76 ) ) + 47 + - ( MAX( ALL + - 22 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL + - 75 + + ( COUNT ( ALL + - 76 ) ) + 47 + - ( MAX ( ALL + - 22 ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT - - ( - + COUNT( ALL 63 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7354
SELECT - - ( - + COUNT ( ALL 63 ) ) AS col2
----
-1

query II rowsort
SELECT - 54 + - 83 + + 66 AS col0, 76
----
-71
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7356
SELECT ALL NULLIF ( + 63, COUNT( * ) ) + - 50 DIV - + 59 * + 27 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL NULLIF ( + 63, COUNT ( * ) ) + - 50 / - + 59 * + 27 AS col0
----
63

query I rowsort
SELECT DISTINCT - 21 * - ( + 21 ) AS col0
----
441

query II rowsort
SELECT ALL + 62 - + 2 AS col2, 24 * + + 88
----
60
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT ALL - + CASE + + 80 WHEN - - COUNT( * ) THEN NULL ELSE - ( - - 48 ) END * + 21 AS col1
----
1008

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL - + CASE + + 80 WHEN - - COUNT ( * ) THEN NULL ELSE - ( - - 48 ) END * + 21 AS col1
----
1008

query I rowsort
SELECT + 21 + 9 * - ( 75 ) + - 31 * - ( 89 ) AS col0
----
2105

query I rowsort
SELECT - - 7 - 68 * + - 4 AS col0
----
279

onlyif mysql # DIV for integer division: 
query I rowsort label-7362
SELECT DISTINCT + 10 DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-7362
SELECT DISTINCT + 10 / 57
----
0

query I rowsort
SELECT ALL + ( - - 99 ) AS col1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7364
SELECT 78 * 67 DIV 8 + + 20 DIV + 41
----
653

skipif mysql # not compatible
query I rowsort label-7364
SELECT 78 * 67 / 8 + + 20 / + 41
----
653

query I rowsort
SELECT ALL 50 * + 56 AS col0
----
2800

query I rowsort
SELECT - 56 * - - 20 AS col0
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT + SUM( 44 ) col0
----
44

skipif mysql # not compatible
query I rowsort label-7367
SELECT + SUM ( 44 ) col0
----
44

query I rowsort
SELECT ALL + ( + - 68 ) AS col2
----
-68

query I rowsort
SELECT + 55 * 5 + 25
----
300

onlyif mysql # aggregate syntax: 
query II rowsort label-7370
SELECT + COUNT( * ) + + - ( - + 12 ), SUM( + - ( + NULLIF ( 36, + - 81 ) ) ) AS col0
----
13
-36

skipif mysql # not compatible
query II rowsort label-7370
SELECT + COUNT ( * ) + + - ( - + 12 ), SUM ( + - ( + NULLIF ( 36, + - 81 ) ) ) AS col0
----
13
-36

query I rowsort
SELECT ALL - 6 * - + 74
----
444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7372
SELECT + CAST( - 69 AS SIGNED ) + + 28 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-7372
SELECT + CAST ( - 69 AS INTEGER ) + + 28 AS col0
----
-41

query I rowsort
SELECT DISTINCT 49 * - 3
----
-147

query I rowsort
SELECT DISTINCT 42 * - 29 + - + 32 AS col0
----
-1250

query I rowsort
SELECT ALL 17 * + - 67 + - + 0
----
-1139

query I rowsort
SELECT - CASE + 8 WHEN - + 47 THEN + - 0 WHEN + + 60 THEN + 82 * ( + 26 ) + 19 + - NULLIF ( + 76, - ( - - 80 ) + + 41 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7377
SELECT ALL 60, - 63 DIV 3 AS col2
----
60
-21

skipif mysql # not compatible
query II rowsort label-7377
SELECT ALL 60, - 63 / 3 AS col2
----
60
-21

query I rowsort
SELECT ALL 7 + + + 16
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT - 12 - - SUM( DISTINCT - - 89 ) * - - 31 - - 55 AS col1
----
2802

skipif mysql # not compatible
query I rowsort label-7379
SELECT - 12 - - SUM ( DISTINCT - - 89 ) * - - 31 - - 55 AS col1
----
2802

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT + 36 + + 72 + COUNT( * ) + + - 55 * + 27 * + 8
----
-11771

skipif mysql # not compatible
query I rowsort label-7380
SELECT + 36 + + 72 + COUNT ( * ) + + - 55 * + 27 * + 8
----
-11771

onlyif mysql # DIV for integer division: 
query I rowsort label-7381
SELECT ALL + 49 DIV + 76 * - 19
----
0

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL + 49 / + 76 * - 19
----
0

query I rowsort
SELECT ALL 55 * - 72 * - + ( - 88 ) * 8 AS col1
----
-2787840

onlyif mysql # DIV for integer division: 
query I rowsort label-7383
SELECT DISTINCT ( - 30 ) + + 80 + - + 29 DIV - ( 45 ) + - - 38
----
88

skipif mysql # not compatible
query I rowsort label-7383
SELECT DISTINCT ( - 30 ) + + 80 + - + 29 / - ( 45 ) + - - 38
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT + 38 + + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-7384
SELECT + 38 + + COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT + 43 * + CASE WHEN NULL BETWEEN CASE - - 79 WHEN - - 2 THEN NULL WHEN + - 27 / 57 * - 53 THEN NULL WHEN + - 82 THEN - + MAX( + - 20 ) END AND - 35 + - 52 + - 79 THEN + + 76 * 69 - COUNT( * ) WHEN NOT ( ( + - MIN( + 46 ) ) * - - 3 ) BETWEEN 70 AND ( - 59 * + 34 ) THEN 76 END AS col0
----
3268

skipif mysql # not compatible
query I rowsort label-7385
SELECT + 43 * + CASE WHEN NULL BETWEEN CASE - - 79 WHEN - - 2 THEN NULL WHEN + - 27 / 57 * - 53 THEN NULL WHEN + - 82 THEN - + MAX ( + - 20 ) END AND - 35 + - 52 + - 79 THEN + + 76 * 69 - COUNT ( * ) WHEN NOT ( ( + - MIN ( + 46 ) ) * - - 3 ) BETWEEN 70 AND ( - 59 * + 34 ) THEN 76 END AS col0
----
3268

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7386
SELECT ALL - - CAST( NULL AS DECIMAL ) - + 17 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL - - CAST ( NULL AS REAL ) - + 17 col0
----
NULL

query I rowsort
SELECT + - 11 + - 0
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-7388
SELECT - - 62 + 82 * + 17 AS col2, - COUNT( * ) + + + 83 AS col2
----
1456
82

skipif mysql # not compatible
query II rowsort label-7388
SELECT - - 62 + 82 * + 17 AS col2, - COUNT ( * ) + + + 83 AS col2
----
1456
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT + + 92 * - + 60 - - - MIN( 55 ) AS col2
----
-5575

skipif mysql # not compatible
query I rowsort label-7389
SELECT + + 92 * - + 60 - - - MIN ( 55 ) AS col2
----
-5575

query II rowsort
SELECT + - 89 AS col1, - 37
----
-89
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7391
SELECT - COUNT( * ) * COUNT( * ) AS col2, 80 * + + ( CAST( NULL AS SIGNED ) ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7391
SELECT - COUNT ( * ) * COUNT ( * ) AS col2, 80 * + + ( CAST ( NULL AS INTEGER ) ) AS col1
----
-1
NULL

query I rowsort
SELECT ALL + 73 * - 80 AS col1
----
-5840

query I rowsort
SELECT 10 * + 65 - - 35 + - + 62 AS col2
----
623

onlyif mysql # DIV for integer division: 
query I rowsort label-7394
SELECT - ( ( - 51 ) ) DIV - + 67 * - 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7394
SELECT - ( ( - 51 ) ) / - + 67 * - 73 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT + COUNT( * ) * + 42 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7395
SELECT + COUNT ( * ) * + 42 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT - 79 * + 28 * - SUM( DISTINCT - - 36 )
----
79632

skipif mysql # not compatible
query I rowsort label-7396
SELECT - 79 * + 28 * - SUM ( DISTINCT - - 36 )
----
79632

query I rowsort
SELECT DISTINCT 45 * ( - 64 ) + + 9 + + 92
----
-2779

query I rowsort
SELECT + 26 * - + 95 - + ( - 42 ) AS col2
----
-2428

query I rowsort
SELECT ALL + COALESCE ( + + 1, 85 - - 10 ) AS col0
----
1

query I rowsort
SELECT DISTINCT 82 * + - 14 + + - ( - 63 ) * + + 45 * + 19
----
52717

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7401
SELECT ALL - 98 * + SUM( 10 ) + - - 13 + 64 + + COUNT( * ) DIV 23 + + 9
----
-894

skipif mysql # not compatible
query I rowsort label-7401
SELECT ALL - 98 * + SUM ( 10 ) + - - 13 + 64 + + COUNT ( * ) / 23 + + 9
----
-894

query I rowsort
SELECT NULLIF ( - + 96, - 25 ) AS col2
----
-96

query II rowsort
SELECT + 69 * - 32 * + 38 + 65 AS col0, + 55
----
-83839
55

query I rowsort
SELECT - 18 - - + 2 AS col0
----
-16

query I rowsort
SELECT 86 * 23 - - - 16
----
1962

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT ALL 40 * + ( MAX( ALL + 79 ) ) AS col1
----
3160

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL 40 * + ( MAX ( ALL + 79 ) ) AS col1
----
3160

query I rowsort
SELECT ALL 44 - + + 23
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT SUM( ALL - + 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-7408
SELECT SUM ( ALL - + 21 )
----
-21

query I rowsort
SELECT - ( + 98 ) + + + 75 * - - 67 + + - 86 col2
----
4841

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7410
SELECT 1 DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7410
SELECT 1 / + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7411
SELECT - COUNT( * ) * + - CAST( + 30 AS SIGNED ) * - 93 AS col0
----
-2790

skipif mysql # not compatible
query I rowsort label-7411
SELECT - COUNT ( * ) * + - CAST ( + 30 AS INTEGER ) * - 93 AS col0
----
-2790

query I rowsort
SELECT DISTINCT + 43 * - 69 + - - 12
----
-2955

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7413
SELECT - COUNT( * ) DIV + 9, - 88 AS col1
----
0
-88

skipif mysql # not compatible
query II rowsort label-7413
SELECT - COUNT ( * ) / + 9, - 88 AS col1
----
0
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT COUNT( * ) + - - 11 + 29 * 96
----
2796

skipif mysql # not compatible
query I rowsort label-7414
SELECT COUNT ( * ) + - - 11 + 29 * 96
----
2796

query I rowsort
SELECT + 52 + 74 + + - 12 * + + 38 * - 70 AS col2
----
32046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7416
SELECT DISTINCT - COUNT( * ) * + CAST( - + 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7416
SELECT DISTINCT - COUNT ( * ) * + CAST ( - + 1 AS INTEGER )
----
1

query I rowsort
SELECT DISTINCT 31 * 31 + + 21
----
982

query I rowsort
SELECT ALL NULLIF ( - 64, - - 72 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT + 79 * - - CASE WHEN 57 IS NOT NULL THEN NULL WHEN - 59 >= NULL THEN - + 83 + - SUM( ALL 79 ) END + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7419
SELECT + 79 * - - CASE WHEN 57 IS NOT NULL THEN NULL WHEN - 59 >= NULL THEN - + 83 + - SUM ( ALL 79 ) END + + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT COUNT( * ) + - - 26 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-7420
SELECT COUNT ( * ) + - - 26 AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7421
SELECT + 10 / + CAST( NULL AS SIGNED ) - - + 31 * - + MAX( ALL + - 75 ), ( - 0 ) AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7421
SELECT + 10 / + CAST ( NULL AS INTEGER ) - - + 31 * - + MAX ( ALL + - 75 ), ( - 0 ) AS col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT 15 * COUNT( * ) + 17 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-7422
SELECT 15 * COUNT ( * ) + 17 AS col1
----
32

query I rowsort
SELECT 81 + 88 col2
----
169

query II rowsort
SELECT 12 AS col0, - 25 AS col1
----
12
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7425
SELECT ALL - 15 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL - 15 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7426
SELECT SUM( DISTINCT - + 91 ) + - 60, + 91 col1
----
-151
91

skipif mysql # not compatible
query II rowsort label-7426
SELECT SUM ( DISTINCT - + 91 ) + - 60, + 91 col1
----
-151
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7427
SELECT CAST( + - 33 AS SIGNED ) + - 90 * 80 + + COUNT( * ) + + - COUNT( * ) * + - 90 DIV - 1 AS col2
----
-7322

skipif mysql # not compatible
query I rowsort label-7427
SELECT CAST ( + - 33 AS INTEGER ) + - 90 * 80 + + COUNT ( * ) + + - COUNT ( * ) * + - 90 / - 1 AS col2
----
-7322

onlyif mysql # aggregate syntax: 
query II rowsort label-7428
SELECT 52 * - ( + 74 ) * - 94 + + - SUM( 30 ) + + SUM( + 4 ), - 74 AS col1
----
361686
-74

skipif mysql # not compatible
query II rowsort label-7428
SELECT 52 * - ( + 74 ) * - 94 + + - SUM ( 30 ) + + SUM ( + 4 ), - 74 AS col1
----
361686
-74

query I rowsort
SELECT ALL 31 + 2 AS col1
----
33

query II rowsort
SELECT 9 AS col2, 82
----
9
82

onlyif mysql # DIV for integer division: 
query II rowsort label-7431
SELECT 71 DIV NULLIF ( + COALESCE ( - 82, 49 ), - 43 * 72 * - 81 DIV 29 DIV - 3 ) AS col0, - 38
----
0
-38

skipif mysql # not compatible
query II rowsort label-7431
SELECT 71 / NULLIF ( + COALESCE ( - 82, 49 ), - 43 * 72 * - 81 / 29 / - 3 ) AS col0, - 38
----
0
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7432
SELECT 80 * CAST( NULL AS SIGNED ) + + + CAST( 94 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7432
SELECT 80 * CAST ( NULL AS INTEGER ) + + + CAST ( 94 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7433
SELECT ALL - 43 * - COUNT( * ) DIV + COALESCE ( - COUNT( - - ( - 34 ) ), + 49 DIV 67 - + - COUNT( * ), ( + NULLIF ( - - 43, - 94 ) ) + + - SUM( ALL + - 36 ), 7 )
----
-43

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL - 43 * - COUNT ( * ) / + COALESCE ( - COUNT ( - - ( - 34 ) ), + 49 / 67 - + - COUNT ( * ), ( + NULLIF ( - - 43, - 94 ) ) + + - SUM ( ALL + - 36 ), 7 )
----
-43

query I rowsort
SELECT 16 + + COALESCE ( - 1, + 52 + + 14 )
----
15

query II rowsort
SELECT 28 AS col0, - 47 AS col1
----
28
-47

query I rowsort
SELECT 96 * + + ( - - 24 ) * + - 36
----
-82944

onlyif mysql # aggregate syntax: 
query II rowsort label-7437
SELECT 6 * - + SUM( 71 ), + COALESCE ( + - 65, - COUNT( * ), + NULLIF ( - 25, 22 ) ) AS col2
----
-426
-65

skipif mysql # not compatible
query II rowsort label-7437
SELECT 6 * - + SUM ( 71 ), + COALESCE ( + - 65, - COUNT ( * ), + NULLIF ( - 25, 22 ) ) AS col2
----
-426
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-7438
SELECT ALL - + 68, COUNT( ALL 90 ) * + + 89 AS col0
----
-68
89

skipif mysql # not compatible
query II rowsort label-7438
SELECT ALL - + 68, COUNT ( ALL 90 ) * + + 89 AS col0
----
-68
89

query II rowsort
SELECT DISTINCT 78 AS col2, 3 AS col1
----
78
3

query I rowsort
SELECT - 34 * + 56
----
-1904

query I rowsort
SELECT + 78 - + 73
----
5

query I rowsort
SELECT 1 + + 75 * 78
----
5851

query I rowsort
SELECT - 1 * - 58 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT COUNT( * ) + + - ( + + 61 )
----
-60

skipif mysql # not compatible
query I rowsort label-7444
SELECT COUNT ( * ) + + - ( + + 61 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT + COALESCE ( - 71, - 41 + 60 ) - + 51 - - CASE - 85 WHEN 41 * + 14 + + 38 + + ( + 94 ) + - + 28 THEN 42 WHEN + 35 + - 9 - + - CASE + + 90 WHEN + 45 + + + 92 + + - 30 * + + 36 THEN 67 - - - CASE - + 98 WHEN - COUNT( * ) / 13 THEN NULL ELSE COUNT( * ) * 32 END WHEN 30 * ( + 19 ) THEN NULL WHEN 99 * - 10 THEN COUNT( * ) ELSE NULL END THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7445
SELECT + COALESCE ( - 71, - 41 + 60 ) - + 51 - - CASE - 85 WHEN 41 * + 14 + + 38 + + ( + 94 ) + - + 28 THEN 42 WHEN + 35 + - 9 - + - CASE + + 90 WHEN + 45 + + + 92 + + - 30 * + + 36 THEN 67 - - - CASE - + 98 WHEN - COUNT ( * ) / 13 THEN NULL ELSE COUNT ( * ) * 32 END WHEN 30 * ( + 19 ) THEN NULL WHEN 99 * - 10 THEN COUNT ( * ) ELSE NULL END THEN NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7446
SELECT ALL + - ( + 84 ) * - CASE - 55 WHEN 16 + - + 23 + + - CAST( NULL AS DECIMAL ) * + 68 THEN - 95 WHEN - 10 THEN NULL END * - 34 - + COALESCE ( - + 90, + COUNT( * ), + + 16 + + - 40 ) * - - 1 * - 78 * + COUNT( * ) * - + 31 + - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7446
SELECT ALL + - ( + 84 ) * - CASE - 55 WHEN 16 + - + 23 + + - CAST ( NULL AS REAL ) * + 68 THEN - 95 WHEN - 10 THEN NULL END * - 34 - + COALESCE ( - + 90, + COUNT ( * ), + + 16 + + - 40 ) * - - 1 * - 78 * + COUNT ( * ) * - + 31 + - 92 AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( - - 7 ) AS col2
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7448
SELECT 6 * + 35 * + 32 - + COUNT( * ) DIV + - 7 - - MAX( + + 91 ) - + 69
----
6742

skipif mysql # not compatible
query I rowsort label-7448
SELECT 6 * + 35 * + 32 - + COUNT ( * ) / + - 7 - - MAX ( + + 91 ) - + 69
----
6742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7449
SELECT 49 + + + COALESCE ( COUNT( * ), CAST( NULL AS SIGNED ) ) / + + 2 * - COUNT( * ) - - + CASE - - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) WHEN - 67 * - CASE - + 17 WHEN - - 50 + + - SUM( - ( NULLIF ( 2, - CASE WHEN NOT ( - 11 NOT IN ( + 2, 2 ) ) THEN NULL ELSE + + 94 / 16 + 90 END ) ) ) THEN COUNT( * ) * + 83 WHEN + 26 + CASE ( + 67 ) + - CAST( NULL AS SIGNED ) WHEN COALESCE ( 18, CASE 34 WHEN COALESCE ( + 79, - 8 / + CAST( NULL AS SIGNED ) + + 24 / + 8 ) THEN + 90 WHEN + COUNT( * ) THEN NULL ELSE NULL END, 49 ) + + 67 * 77 THEN NULL WHEN 43 THEN NULL WHEN 42 THEN 87 ELSE NULL END * 16 THEN 79 ELSE NULL END * + 73 THEN 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7449
SELECT 49 + + + COALESCE ( COUNT ( * ), CAST ( NULL AS INTEGER ) ) / + + 2 * - COUNT ( * ) - - + CASE - - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN - 67 * - CASE - + 17 WHEN - - 50 + + - SUM ( - ( NULLIF ( 2, - CASE WHEN NOT ( - 11 NOT IN ( + 2, 2 ) ) THEN NULL ELSE + + 94 / 16 + 90 END ) ) ) THEN COUNT ( * ) * + 83 WHEN + 26 + CASE ( + 67 ) + - CAST ( NULL AS INTEGER ) WHEN COALESCE ( 18, CASE 34 WHEN COALESCE ( + 79, - 8 / + CAST ( NULL AS INTEGER ) + + 24 / + 8 ) THEN + 90 WHEN + COUNT ( * ) THEN NULL ELSE NULL END, 49 ) + + 67 * 77 THEN NULL WHEN 43 THEN NULL WHEN 42 THEN 87 ELSE NULL END * 16 THEN 79 ELSE NULL END * + 73 THEN 69 END
----
NULL

query II rowsort
SELECT - + 65 AS col0, + 71 + - - 60 col1
----
-65
131

query I rowsort
SELECT ALL 91 + 87 + - 23 col1
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-7452
SELECT DISTINCT - 74 DIV - - 36
----
-2

skipif mysql # not compatible
query I rowsort label-7452
SELECT DISTINCT - 74 / - - 36
----
-2

query II rowsort
SELECT + 78 AS col2, + 81 AS col0
----
78
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT DISTINCT SUM( 12 ) * - 37
----
-444

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT SUM ( 12 ) * - 37
----
-444

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7455
SELECT DISTINCT 30 * CAST( NULL AS DECIMAL ) + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7455
SELECT DISTINCT 30 * CAST ( NULL AS REAL ) + - 75
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7456
SELECT ALL - MAX( DISTINCT + 49 ) col1, 16 AS col1
----
-49
16

skipif mysql # not compatible
query II rowsort label-7456
SELECT ALL - MAX ( DISTINCT + 49 ) col1, 16 AS col1
----
-49
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT DISTINCT 74 * ( + 37 ) + - + ( COALESCE ( 31, + - MAX( + 60 ), + 72 * - 50 * + - MAX( + 28 ) + + - 78 + - - 82 + + + 50 + 24 ) ) AS col1
----
2707

skipif mysql # not compatible
query I rowsort label-7457
SELECT DISTINCT 74 * ( + 37 ) + - + ( COALESCE ( 31, + - MAX ( + 60 ), + 72 * - 50 * + - MAX ( + 28 ) + + - 78 + - - 82 + + + 50 + 24 ) ) AS col1
----
2707

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7458
SELECT + CAST( - 47 AS SIGNED ) + - 30 - - - 57 + 4 * - 15 - - 18 * + 62
----
922

skipif mysql # not compatible
query I rowsort label-7458
SELECT + CAST ( - 47 AS INTEGER ) + - 30 - - - 57 + 4 * - 15 - - 18 * + 62
----
922

query I rowsort
SELECT + 95 * - 26
----
-2470

query I rowsort
SELECT + 7 * ( 64 ) * - 52 AS col0
----
-23296

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT MIN( DISTINCT - - 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-7461
SELECT MIN ( DISTINCT - - 15 ) AS col1
----
15

query I rowsort
SELECT ALL 71 * - ( + 70 )
----
-4970

query I rowsort
SELECT DISTINCT - 37 * - + 70
----
2590

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7464
SELECT DISTINCT + 34, MAX( DISTINCT 63 ) * 57 DIV - - COUNT( * ) AS col2
----
34
3591

skipif mysql # not compatible
query II rowsort label-7464
SELECT DISTINCT + 34, MAX ( DISTINCT 63 ) * 57 / - - COUNT ( * ) AS col2
----
34
3591

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7465
SELECT - CAST( NULL AS SIGNED ) / - 62 + + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7465
SELECT - CAST ( NULL AS INTEGER ) / - 62 + + 86 AS col1
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 44, - 86 ) * + 51 - 96
----
2148

query I rowsort
SELECT + 76 + ( 29 ) * 50 AS col1
----
1526

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7468
SELECT + COUNT( * ) * + COUNT( * ) + - 47 - 49 DIV + 18 col0
----
-48

skipif mysql # not compatible
query I rowsort label-7468
SELECT + COUNT ( * ) * + COUNT ( * ) + - 47 - 49 / + 18 col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7469
SELECT + - ( - COUNT( * ) ) DIV 9
----
0

skipif mysql # not compatible
query I rowsort label-7469
SELECT + - ( - COUNT ( * ) ) / 9
----
0

query I rowsort
SELECT ALL ( - 16 ) col2
----
-16

query I rowsort
SELECT - - 5 + 26 * - 44 AS col2
----
-1139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7472
SELECT ALL - 94 DIV ( 65 ) * - + MAX( DISTINCT 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL - 94 / ( 65 ) * - + MAX ( DISTINCT 21 ) AS col1
----
21

query I rowsort
SELECT ALL 91 + + 51 AS col0
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7474
SELECT - COUNT( * ) * + 38 DIV + 7 + - 39
----
-44

skipif mysql # not compatible
query I rowsort label-7474
SELECT - COUNT ( * ) * + 38 / + 7 + - 39
----
-44

query II rowsort
SELECT 15, + 98 * 10 AS col1
----
15
980

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT + + ( 41 ) + + 49 + - COUNT( * ) + - + 53
----
36

skipif mysql # not compatible
query I rowsort label-7476
SELECT + + ( 41 ) + + 49 + - COUNT ( * ) + - + 53
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-7477
SELECT - CASE - - 45 WHEN + 49 - - - 84 THEN 65 WHEN - 55 THEN + 11 / - 73 / - - 74 + + 60 + + ( + 16 ) ELSE NULL END col0, + 51 * - - COUNT( * )
----
NULL
51

skipif mysql # not compatible
query II rowsort label-7477
SELECT - CASE - - 45 WHEN + 49 - - - 84 THEN 65 WHEN - 55 THEN + 11 / - 73 / - - 74 + + 60 + + ( + 16 ) ELSE NULL END col0, + 51 * - - COUNT ( * )
----
NULL
51

query II rowsort
SELECT + 86, - 12 * + 42 AS col1
----
86
-504

query I rowsort
SELECT - - 53 + + + ( + ( 82 ) ) AS col2
----
135

query I rowsort
SELECT - + COALESCE ( 24, + 64, + 21 * + 99 * + 7 + ( COALESCE ( + 43, - - 74 ) ) )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7481
SELECT ALL + 15 + - NULLIF ( - 91, - - ( - SUM( ALL 58 ) ) * - - 97 ) DIV - 3
----
-15

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL + 15 + - NULLIF ( - 91, - - ( - SUM ( ALL 58 ) ) * - - 97 ) / - 3
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT - SUM( + 21 ) + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-7482
SELECT - SUM ( + 21 ) + COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-7483
SELECT DISTINCT + 33 + - - 14, 94 * MAX( ALL - 33 ) AS col2
----
47
-3102

skipif mysql # not compatible
query II rowsort label-7483
SELECT DISTINCT + 33 + - - 14, 94 * MAX ( ALL - 33 ) AS col2
----
47
-3102

query II rowsort
SELECT ALL ( - - 0 ), + 55 * + 56 * 43 AS col1
----
0
132440

query I rowsort
SELECT - ( - - 94 ) + - + 58 + - + 61 col2
----
-213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7486
SELECT - 63 DIV - 51 - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7486
SELECT - 63 / - 51 - - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT - ( + COUNT( * ) ) * + - 85 - - 72 + 49 * NULLIF ( - COUNT( * ), + 9 * - 82 + + ( 63 ) )
----
108

skipif mysql # not compatible
query I rowsort label-7487
SELECT - ( + COUNT ( * ) ) * + - 85 - - 72 + 49 * NULLIF ( - COUNT ( * ), + 9 * - 82 + + ( 63 ) )
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-7488
SELECT + 1 DIV + + ( + 15 ) * + 83 + 42 + - 50 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-7488
SELECT + 1 / + + ( + 15 ) * + 83 + 42 + - 50 AS col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7489
SELECT - COALESCE ( COALESCE ( ( + 94 ), + NULLIF ( 85, - COALESCE ( + NULLIF ( + ( 76 ), + + 36 + - MAX( NULLIF ( + - 79, + + 93 ) ) ), COUNT( * ) ) * + 10 + + COUNT( * ) + - 22 * - + CAST( NULL AS SIGNED ) - + 45 + - + 46 ), - - CASE + 20 WHEN + - 99 THEN + 13 * - 82 + - COUNT( * ) + COUNT( * ) * 71 ELSE NULL END * 96 ), + 82 + - 64 ) * - 72 AS col1
----
6768

skipif mysql # not compatible
query I rowsort label-7489
SELECT - COALESCE ( COALESCE ( ( + 94 ), + NULLIF ( 85, - COALESCE ( + NULLIF ( + ( 76 ), + + 36 + - MAX ( NULLIF ( + - 79, + + 93 ) ) ), COUNT ( * ) ) * + 10 + + COUNT ( * ) + - 22 * - + CAST ( NULL AS INTEGER ) - + 45 + - + 46 ), - - CASE + 20 WHEN + - 99 THEN + 13 * - 82 + - COUNT ( * ) + COUNT ( * ) * 71 ELSE NULL END * 96 ), + 82 + - 64 ) * - 72 AS col1
----
6768

onlyif mysql # DIV for integer division: 
query I rowsort label-7490
SELECT ALL + 26 DIV + - 8
----
-3

skipif mysql # not compatible
query I rowsort label-7490
SELECT ALL + 26 / + - 8
----
-3

query I rowsort
SELECT - 60 + 44
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT ALL CASE - 95 WHEN 93 * - COUNT( * ) THEN 58 + + + 11 + - - 71 ELSE - 31 END * COALESCE ( 50, - COUNT( * ) )
----
-1550

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL CASE - 95 WHEN 93 * - COUNT ( * ) THEN 58 + + + 11 + - - 71 ELSE - 31 END * COALESCE ( 50, - COUNT ( * ) )
----
-1550

query II rowsort
SELECT ALL 30 * 29 AS col1, ( - 71 )
----
870
-71

query I rowsort
SELECT - 19 * 15 + + + 63
----
-222

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7495
SELECT - - CASE - + 86 WHEN + 36 / - + CAST( NULL AS SIGNED ) THEN - COALESCE ( - + COALESCE ( + 14, 76 ), - 32, - - 14, - NULLIF ( 50, + 69 - - 56 ) ) END * 33, + 59 col0
----
NULL
59

skipif mysql # not compatible
query II rowsort label-7495
SELECT - - CASE - + 86 WHEN + 36 / - + CAST ( NULL AS INTEGER ) THEN - COALESCE ( - + COALESCE ( + 14, 76 ), - 32, - - 14, - NULLIF ( 50, + 69 - - 56 ) ) END * 33, + 59 col0
----
NULL
59

query I rowsort
SELECT + - 95 + + + 62 AS col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7497
SELECT + - COALESCE ( CAST( + 78 AS SIGNED ), + + CASE 90 WHEN - 30 THEN NULLIF ( COUNT( * ), + 18 ) WHEN - - 83 THEN NULL END, 46 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-7497
SELECT + - COALESCE ( CAST ( + 78 AS INTEGER ), + + CASE 90 WHEN - 30 THEN NULLIF ( COUNT ( * ), + 18 ) WHEN - - 83 THEN NULL END, 46 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT DISTINCT - - 91 * - - 60 * + ( 50 ) + - - COUNT( * ) AS col2
----
273001

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT - - 91 * - - 60 * + ( 50 ) + - - COUNT ( * ) AS col2
----
273001

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7499
SELECT DISTINCT + + ( + - ( - 74 ) ) * COUNT( DISTINCT - 26 ) + - ( - 73 ) * 1 + 12 + + 87 DIV + + 33 AS col1
----
161

skipif mysql # not compatible
query I rowsort label-7499
SELECT DISTINCT + + ( + - ( - 74 ) ) * COUNT ( DISTINCT - 26 ) + - ( - 73 ) * 1 + 12 + + 87 / + + 33 AS col1
----
161

query I rowsort
SELECT ALL - + 59 * - 48 + - 32
----
2800

query II rowsort
SELECT + 63 - + 81, + 30 AS col2
----
-18
30

query I rowsort
SELECT + 76 - - 30 * 4 AS col0
----
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7503
SELECT - - 93 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7503
SELECT - - 93 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 68 + - 87 AS col1
----
-155

query I rowsort
SELECT ALL + - 42 + + ( + 51 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT + + 32 * + COUNT( * ) * COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-7506
SELECT + + 32 * + COUNT ( * ) * COUNT ( * )
----
32

query II rowsort
SELECT ALL 82 * 85, 29 AS col1
----
6970
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT DISTINCT + SUM( - 31 ) * - + MIN( DISTINCT 14 ) AS col0
----
434

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT + SUM ( - 31 ) * - + MIN ( DISTINCT 14 ) AS col0
----
434

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT DISTINCT 79 + 11 + + - ( + + 57 ) * - - 39 + - MAX( DISTINCT 57 ) AS col2
----
-2190

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT 79 + 11 + + - ( + + 57 ) * - - 39 + - MAX ( DISTINCT 57 ) AS col2
----
-2190

query II rowsort
SELECT 1, 70 AS col2
----
1
70

onlyif mysql # aggregate syntax: 
query II rowsort label-7511
SELECT ALL 14 - - SUM( - - 33 ), ( + - 7 ) AS col2
----
47
-7

skipif mysql # not compatible
query II rowsort label-7511
SELECT ALL 14 - - SUM ( - - 33 ), ( + - 7 ) AS col2
----
47
-7

query I rowsort
SELECT + 96 * + 10 AS col2
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT ALL NULLIF ( COUNT( * ), - COUNT( * ) * 34 - - NULLIF ( + + 43, - 64 + 1 * - 30 * 3 ) + - 66 + 24 * + 56 / 73 )
----
1

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL NULLIF ( COUNT ( * ), - COUNT ( * ) * 34 - - NULLIF ( + + 43, - 64 + 1 * - 30 * 3 ) + - 66 + 24 * + 56 / 73 )
----
1

query I rowsort
SELECT 16 + - NULLIF ( - - 39, + - 43 + + - 69 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT 90 * + MAX( DISTINCT 96 )
----
8640

skipif mysql # not compatible
query I rowsort label-7515
SELECT 90 * + MAX ( DISTINCT 96 )
----
8640

query II rowsort
SELECT 9, 22 AS col1
----
9
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT DISTINCT - ( COUNT( * ) ) * - - 25 * - - 79 * - COUNT( * )
----
1975

skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT - ( COUNT ( * ) ) * - - 25 * - - 79 * - COUNT ( * )
----
1975

query I rowsort
SELECT DISTINCT 7 * + ( - 46 ) AS col1
----
-322

query I rowsort
SELECT ALL - COALESCE ( - 47, - 56 )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7520
SELECT ALL - CASE - COALESCE ( 13, - + CAST( + - 40 AS SIGNED ) - + + 82 ) WHEN 47 THEN NULL WHEN + 93 THEN - ( - 76 ) * CAST( + 38 AS SIGNED ) - CAST( + 79 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL - CASE - COALESCE ( 13, - + CAST ( + - 40 AS INTEGER ) - + + 82 ) WHEN 47 THEN NULL WHEN + 93 THEN - ( - 76 ) * CAST ( + 38 AS INTEGER ) - CAST ( + 79 AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-7521
SELECT 22 * - 10 * + - 73, - MIN( DISTINCT 68 ) * 53 AS col0, + 5 AS col0
----
16060
-3604
5

skipif mysql # not compatible
query III rowsort label-7521
SELECT 22 * - 10 * + - 73, - MIN ( DISTINCT 68 ) * 53 AS col0, + 5 AS col0
----
16060
-3604
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7522
SELECT CAST( NULL AS SIGNED ) AS col2, 83
----
NULL
83

skipif mysql # not compatible
query II rowsort label-7522
SELECT CAST ( NULL AS INTEGER ) AS col2, 83
----
NULL
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7523
SELECT 24 DIV + + 43 + - 89 * + - COUNT( * ) * + ( - 57 ) col0, 86 * + + ( - 36 ) + - + 84 AS col0
----
-5073
-3180

skipif mysql # not compatible
query II rowsort label-7523
SELECT 24 / + + 43 + - 89 * + - COUNT ( * ) * + ( - 57 ) col0, 86 * + + ( - 36 ) + - + 84 AS col0
----
-5073
-3180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7524
SELECT - COUNT( * ) * + 76 * - 7 * - + CAST( - COUNT( * ) AS SIGNED ) - 84 + 6
----
454

skipif mysql # not compatible
query I rowsort label-7524
SELECT - COUNT ( * ) * + 76 * - 7 * - + CAST ( - COUNT ( * ) AS INTEGER ) - 84 + 6
----
454

query I rowsort
SELECT DISTINCT + 16 + 39 AS col0
----
55

query II rowsort
SELECT ALL - 45 AS col0, + 41
----
-45
41

query II rowsort
SELECT 94 + - + 53 - + - 43 col2, - ( + + 11 ) + - - 94 AS col2
----
84
83

query I rowsort
SELECT - 56 * + 72 AS col2
----
-4032

query I rowsort
SELECT + ( 30 ) - - + 14 * - 92 * - 8 AS col2
----
10334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7530
SELECT ALL + 37, + CASE WHEN NULLIF ( - 43, - 4 / 29 ) < + - 88 * + CAST( NULL AS SIGNED ) + - COALESCE ( 85, - 90 / - - ( + 0 ) * + COUNT( * ), + + 2 * + 28 ) - 11 * + AVG ( DISTINCT ( - 62 ) ) THEN 46 / + CASE + 81 WHEN + ( + + 94 ) / - + CASE - ( 66 ) WHEN - 72 THEN 84 ELSE 21 + + 29 END THEN COUNT( * ) ELSE NULL END END * - MAX( 29 * - 40 ) AS col1
----
37
NULL

skipif mysql # not compatible
query II rowsort label-7530
SELECT ALL + 37, + CASE WHEN NULLIF ( - 43, - 4 / 29 ) < + - 88 * + CAST ( NULL AS INTEGER ) + - COALESCE ( 85, - 90 / - - ( + 0 ) * + COUNT ( * ), + + 2 * + 28 ) - 11 * + AVG ( DISTINCT ( - 62 ) ) THEN 46 / + CASE + 81 WHEN + ( + + 94 ) / - + CASE - ( 66 ) WHEN - 72 THEN 84 ELSE 21 + + 29 END THEN COUNT ( * ) ELSE NULL END END * - MAX ( 29 * - 40 ) AS col1
----
37
NULL

query I rowsort
SELECT 33 * 49 + - 66 AS col1
----
1551

query I rowsort
SELECT ALL 15 - - - 2 * + 24 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT 61 + + 85 + + + SUM( 18 ) + + 71 * + MAX( ALL - 87 ) * + + 45
----
-277801

skipif mysql # not compatible
query I rowsort label-7533
SELECT 61 + + 85 + + + SUM ( 18 ) + + 71 * + MAX ( ALL - 87 ) * + + 45
----
-277801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7534
SELECT COUNT( DISTINCT - 37 ) * - ( - + 30 ) + - + 51 + - - 14 - - COUNT( * ) * - + 21 DIV 97 * - 67 col1
----
-7

skipif mysql # not compatible
query I rowsort label-7534
SELECT COUNT ( DISTINCT - 37 ) * - ( - + 30 ) + - + 51 + - - 14 - - COUNT ( * ) * - + 21 / 97 * - 67 col1
----
-7

query I rowsort
SELECT ( 55 ) * 80 AS col2
----
4400

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT CASE - - 92 WHEN - 73 THEN NULL WHEN + 28 + - - COUNT( * ) THEN + 49 * + - 62 - 49 ELSE NULL END + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-7536
SELECT CASE - - 92 WHEN - 73 THEN NULL WHEN + 28 + - - COUNT ( * ) THEN + 49 * + - 62 - 49 ELSE NULL END + 7
----
NULL

query I rowsort
SELECT ALL CASE - 73 WHEN 46 THEN + - 85 * + 17 END * 67 AS col2
----
NULL

query I rowsort
SELECT ( - 91 ) + - + 72 AS col1
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT COUNT( * ) + - 66 * + ( 80 ) + - - 56 + - 10 + 33 * - - COUNT( * ) * 37 + 46 AS col2
----
-3966

skipif mysql # not compatible
query I rowsort label-7539
SELECT COUNT ( * ) + - 66 * + ( 80 ) + - - 56 + - 10 + 33 * - - COUNT ( * ) * 37 + 46 AS col2
----
-3966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7540
SELECT 31 - 22 + 37 * + + CAST( - 12 AS SIGNED ) + - CAST( 32 AS SIGNED )
----
-467

skipif mysql # not compatible
query I rowsort label-7540
SELECT 31 - 22 + 37 * + + CAST ( - 12 AS INTEGER ) + - CAST ( 32 AS INTEGER )
----
-467

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT ALL + ( + - 27 ) * 38 - + 51 + 26 * COUNT( * ) AS col1
----
-1051

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL + ( + - 27 ) * 38 - + 51 + 26 * COUNT ( * ) AS col1
----
-1051

query I rowsort
SELECT 26 * 51 + - 32
----
1294

query I rowsort
SELECT 41 + 74 + + 43 + - 19
----
139

query I rowsort
SELECT 50 + 27 + - - 58 * 48 - + + 67 + - 24 * + 37
----
1906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7545
SELECT ALL + MAX( ALL - 88 ) * + - CASE - - 64 WHEN + CAST( NULL AS SIGNED ) * + COUNT( * ) THEN 37 + 53 END - - + 37 + - 86 - - ( + ( + 55 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL + MAX ( ALL - 88 ) * + - CASE - - 64 WHEN + CAST ( NULL AS INTEGER ) * + COUNT ( * ) THEN 37 + 53 END - - + 37 + - 86 - - ( + ( + 55 ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT + MAX( DISTINCT 81 )
----
81

skipif mysql # not compatible
query I rowsort label-7546
SELECT + MAX ( DISTINCT 81 )
----
81

query I rowsort
SELECT COALESCE ( 79, + - 24 ) col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7548
SELECT DISTINCT - 20 + CAST( - 65 AS SIGNED ) DIV + COUNT( * ) * - + COUNT( * ) * - COUNT( * ) * COUNT( DISTINCT + 43 )
----
-85

skipif mysql # not compatible
query I rowsort label-7548
SELECT DISTINCT - 20 + CAST ( - 65 AS INTEGER ) / + COUNT ( * ) * - + COUNT ( * ) * - COUNT ( * ) * COUNT ( DISTINCT + 43 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT SUM( ALL - 10 ) + 56 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-7549
SELECT SUM ( ALL - 10 ) + 56 AS col2
----
46

query I rowsort
SELECT ALL + 87 + + 32
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT 17 * 99 * + - 27 + + COALESCE ( + 10, - COUNT( * ), 46 ) * - + 86 AS col0
----
-46301

skipif mysql # not compatible
query I rowsort label-7551
SELECT 17 * 99 * + - 27 + + COALESCE ( + 10, - COUNT ( * ), 46 ) * - + 86 AS col0
----
-46301

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT DISTINCT + SUM( + 70 ) * - 40
----
-2800

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT + SUM ( + 70 ) * - 40
----
-2800

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT - 1 * COUNT( * ) * 75 col0
----
-75

skipif mysql # not compatible
query I rowsort label-7553
SELECT - 1 * COUNT ( * ) * 75 col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT NULLIF ( - COUNT( * ), + 12 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7554
SELECT NULLIF ( - COUNT ( * ), + 12 ) AS col0
----
-1

query I rowsort
SELECT + - 42 col1
----
-42

query I rowsort
SELECT - 28 + - + ( + 51 ) + + 30 * ( 22 )
----
581

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT - 67 * - COUNT( DISTINCT 22 ) + COUNT( * ) + 84 AS col1
----
152

skipif mysql # not compatible
query I rowsort label-7557
SELECT - 67 * - COUNT ( DISTINCT 22 ) + COUNT ( * ) + 84 AS col1
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT DISTINCT + CASE - - 79 WHEN + + 65 + - SUM( DISTINCT NULLIF ( + + 73, + + 35 + + 75 ) ) * - 98 THEN + + 82 END - - + 15 / - - AVG ( ALL 14 ) / - ( + - 7 ) + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT + CASE - - 79 WHEN + + 65 + - SUM ( DISTINCT NULLIF ( + + 73, + + 35 + + 75 ) ) * - 98 THEN + + 82 END - - + 15 / - - AVG ( ALL 14 ) / - ( + - 7 ) + 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7559
SELECT ALL - 10 DIV - - 77 + + 21 + 96 AS col2, + COUNT( + - 6 )
----
117
1

skipif mysql # not compatible
query II rowsort label-7559
SELECT ALL - 10 / - - 77 + + 21 + 96 AS col2, + COUNT ( + - 6 )
----
117
1

query II rowsort
SELECT DISTINCT - - ( + + 48 ) AS col2, + ( 39 ) * - - ( 81 ) AS col0
----
48
3159

query I rowsort
SELECT ALL - COALESCE ( - - 51, + 34 * 74, - 13 ) * 64 * + + 32 AS col2
----
-104448

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT - 97 - + 32 + + ( + + 93 ) * + + COUNT( * ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-7562
SELECT - 97 - + 32 + + ( + + 93 ) * + + COUNT ( * ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query III rowsort label-7563
SELECT - 18 AS col1, - 84 * + - COUNT( * ) + + + 76 + CASE 0 WHEN 20 THEN - 71 * 21 WHEN + + 6 + - 83 * - + 10 THEN NULL WHEN - + ( + COUNT( * ) ) THEN NULL END + 25 + - + 95, + 63 AS col0
----
-18
NULL
63

skipif mysql # not compatible
query III rowsort label-7563
SELECT - 18 AS col1, - 84 * + - COUNT ( * ) + + + 76 + CASE 0 WHEN 20 THEN - 71 * 21 WHEN + + 6 + - 83 * - + 10 THEN NULL WHEN - + ( + COUNT ( * ) ) THEN NULL END + 25 + - + 95, + 63 AS col0
----
-18
NULL
63

query I rowsort
SELECT DISTINCT NULLIF ( 45, + 32 ) AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7565
SELECT - 27 AS col1, + CASE - + COUNT( + 61 ) WHEN - - 56 + + ( + + CAST( + 40 AS SIGNED ) ) THEN - - 99 - - COUNT( - 98 ) END + - 37
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-7565
SELECT - 27 AS col1, + CASE - + COUNT ( + 61 ) WHEN - - 56 + + ( + + CAST ( + 40 AS INTEGER ) ) THEN - - 99 - - COUNT ( - 98 ) END + - 37
----
-27
NULL

query I rowsort
SELECT + 73 + + + 72 * 32 + + + 8
----
2385

query I rowsort
SELECT DISTINCT + 39 * 45 AS col0
----
1755

query I rowsort
SELECT DISTINCT NULLIF ( + + 27, - NULLIF ( + 2, + 19 ) * 68 * 75 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT ALL NULLIF ( - ( 96 ), + MAX( - 70 ) * COUNT( 7 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL NULLIF ( - ( 96 ), + MAX ( - 70 ) * COUNT ( 7 ) )
----
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7570
SELECT ALL CAST( NULL AS DECIMAL ) * + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL CAST ( NULL AS REAL ) * + - 17
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-7571
SELECT + 13 * ( + - ( + - SUM( DISTINCT - + 31 ) ) ) AS col1, + 33, + + 31 + COUNT( * ) + COALESCE ( - NULLIF ( - 3, + - 60 ), - + NULLIF ( + 26, + 52 ) ) AS col1
----
-403
33
35

skipif mysql # not compatible
query III rowsort label-7571
SELECT + 13 * ( + - ( + - SUM ( DISTINCT - + 31 ) ) ) AS col1, + 33, + + 31 + COUNT ( * ) + COALESCE ( - NULLIF ( - 3, + - 60 ), - + NULLIF ( + 26, + 52 ) ) AS col1
----
-403
33
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT - NULLIF ( + + 38, + COALESCE ( SUM( - 66 ), - 40 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-7572
SELECT - NULLIF ( + + 38, + COALESCE ( SUM ( - 66 ), - 40 ) )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7573
SELECT - CASE + - CAST( + 25 AS SIGNED ) WHEN - COUNT( DISTINCT + 35 ) THEN + NULLIF ( 0, + - 32 ) - + 29 / + 40 + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT - CASE + - CAST ( + 25 AS INTEGER ) WHEN - COUNT ( DISTINCT + 35 ) THEN + NULLIF ( 0, + - 32 ) - + 29 / + 40 + + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7574
SELECT + 77 DIV + 33
----
2

skipif mysql # not compatible
query I rowsort label-7574
SELECT + 77 / + 33
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT DISTINCT 6 + - COALESCE ( - + 15, - CASE + + 33 WHEN + - ( + + 13 ) THEN COUNT( * ) ELSE - - 71 END, 5 * + 33 )
----
21

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT 6 + - COALESCE ( - + 15, - CASE + + 33 WHEN + - ( + + 13 ) THEN COUNT ( * ) ELSE - - 71 END, 5 * + 33 )
----
21

query I rowsort
SELECT DISTINCT 18 + - - 76 AS col0
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-7577
SELECT - NULLIF ( MAX( + - 49 ), - - COUNT( * ) * 14 ), - MAX( ALL + 47 ) * + + NULLIF ( - 34, - 74 + - 78 ) - 97 AS col0
----
49
1501

skipif mysql # not compatible
query II rowsort label-7577
SELECT - NULLIF ( MAX ( + - 49 ), - - COUNT ( * ) * 14 ), - MAX ( ALL + 47 ) * + + NULLIF ( - 34, - 74 + - 78 ) - 97 AS col0
----
49
1501

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7578
SELECT ALL + 12 * - CAST( NULL AS DECIMAL ) * - + 69 + + COUNT( * ) + - - 41, ( + SUM( + - 88 ) ) AS col2
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-7578
SELECT ALL + 12 * - CAST ( NULL AS REAL ) * - + 69 + + COUNT ( * ) + - - 41, ( + SUM ( + - 88 ) ) AS col2
----
NULL
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT ALL + 97 * 36 + - 20 + - COUNT( * ) + + - MAX( + 7 )
----
3464

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL + 97 * 36 + - 20 + - COUNT ( * ) + + - MAX ( + 7 )
----
3464

query II rowsort
SELECT ALL + 58 * 64 + - - 86, 98 AS col0
----
3798
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT + + NULLIF ( + 76, + ( 81 ) + 25 ) * MIN( ALL - + 83 )
----
-6308

skipif mysql # not compatible
query I rowsort label-7581
SELECT + + NULLIF ( + 76, + ( 81 ) + 25 ) * MIN ( ALL - + 83 )
----
-6308

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7582
SELECT ALL - COUNT( * ) * 35 DIV ( 43 ) + 90 - ( 84 ) * + - MAX( DISTINCT - + 83 ) - + COUNT( * )
----
-6883

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL - COUNT ( * ) * 35 / ( 43 ) + 90 - ( 84 ) * + - MAX ( DISTINCT - + 83 ) - + COUNT ( * )
----
-6883

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT ALL - 77 / 32 + - - 92 * + CASE - NULLIF ( + COALESCE ( 21, 83, 20 ), 33 ) WHEN + 48 THEN 7 END * - - COUNT( * ) * - COUNT( * ) + + - NULLIF ( + 80, 12 / - 28 ) * + 8 + + - COUNT( * ) + + 44 * - - COUNT( * ) + - 0 * - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL - 77 / 32 + - - 92 * + CASE - NULLIF ( + COALESCE ( 21, 83, 20 ), 33 ) WHEN + 48 THEN 7 END * - - COUNT ( * ) * - COUNT ( * ) + + - NULLIF ( + 80, 12 / - 28 ) * + 8 + + - COUNT ( * ) + + 44 * - - COUNT ( * ) + - 0 * - 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT ALL - 83 * - 2 * 71 + + 77 + + 26 * ( COUNT( * ) ) * + - 16 * 68
----
-16425

skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL - 83 * - 2 * 71 + + 77 + + 26 * ( COUNT ( * ) ) * + - 16 * 68
----
-16425

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT - 99 * - + COALESCE ( + 78, + ( - + MIN( - 2 ) ) - + 71, 30 )
----
7722

skipif mysql # not compatible
query I rowsort label-7585
SELECT - 99 * - + COALESCE ( + 78, + ( - + MIN ( - 2 ) ) - + 71, 30 )
----
7722

query I rowsort
SELECT + 42 + 56 AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7587
SELECT + - CAST( + + 89 AS SIGNED ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-7587
SELECT + - CAST ( + + 89 AS INTEGER ) AS col2
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7588
SELECT DISTINCT - NULLIF ( + COUNT( * ), ( - + 15 ) ) * - 37 + CAST( NULL AS SIGNED ) * 44 - + + 15 + - COUNT( * ) + + 75 * - 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT - NULLIF ( + COUNT ( * ), ( - + 15 ) ) * - 37 + CAST ( NULL AS INTEGER ) * 44 - + + 15 + - COUNT ( * ) + + 75 * - 79 AS col0
----
NULL

query I rowsort
SELECT ALL + + ( ( + - 93 ) )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT ALL - 67 * + + 14 + + 45 - - COUNT( * ) AS col0
----
-892

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL - 67 * + + 14 + + 45 - - COUNT ( * ) AS col0
----
-892

query I rowsort
SELECT - 1 * - 0 AS col0
----
0

query I rowsort
SELECT ALL + - ( - - 43 )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-7593
SELECT + COUNT( * ) * + + 59 + + 51 AS col2, 56 * 15
----
110
840

skipif mysql # not compatible
query II rowsort label-7593
SELECT + COUNT ( * ) * + + 59 + + 51 AS col2, 56 * 15
----
110
840

query I rowsort
SELECT + 47 * + 90 + - + 51 * - 98 + 33
----
9261

query I rowsort
SELECT - 79 - - - 39
----
-118

query I rowsort
SELECT - 91 * + 14 * + + 27
----
-34398

query I rowsort
SELECT - 97 * - 19 AS col0
----
1843

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT - COUNT( * ) * 70 - + 97 col1
----
-167

skipif mysql # not compatible
query I rowsort label-7598
SELECT - COUNT ( * ) * 70 - + 97 col1
----
-167

onlyif mysql # aggregate syntax: 
query II rowsort label-7599
SELECT COUNT( * ) col2, - 56 AS col1
----
1
-56

skipif mysql # not compatible
query II rowsort label-7599
SELECT COUNT ( * ) col2, - 56 AS col1
----
1
-56

query I rowsort
SELECT - 61 * 8 AS col2
----
-488

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7601
SELECT ALL CASE + - 61 WHEN - MAX( DISTINCT + 77 ) THEN + - ( + 90 ) END col2, + 61 + - - 58 + 37 + + 19 * - ( 0 ) * + - CASE 92 WHEN - 25 * + 36 + - - 49 + 35 - - 81 THEN - + 63 + + 74 END / 19 * COUNT( - CAST( - + 26 AS DECIMAL ) ) * - + 91 * + + CASE - 90 WHEN - 99 THEN + 74 WHEN + 46 THEN NULL ELSE 10 END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7601
SELECT ALL CASE + - 61 WHEN - MAX ( DISTINCT + 77 ) THEN + - ( + 90 ) END col2, + 61 + - - 58 + 37 + + 19 * - ( 0 ) * + - CASE 92 WHEN - 25 * + 36 + - - 49 + 35 - - 81 THEN - + 63 + + 74 END / 19 * COUNT ( - CAST ( - + 26 AS REAL ) ) * - + 91 * + + CASE - 90 WHEN - 99 THEN + 74 WHEN + 46 THEN NULL ELSE 10 END AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7602
SELECT DISTINCT - SUM( DISTINCT + 28 ) DIV 16 col1
----
-1

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT - SUM ( DISTINCT + 28 ) / 16 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT ALL + 26 + 73 + - 30 - MAX( DISTINCT + - 91 ) col1
----
160

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL + 26 + 73 + - 30 - MAX ( DISTINCT + - 91 ) col1
----
160

onlyif mysql # DIV for integer division: 
query I rowsort label-7604
SELECT - 13 DIV - 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7604
SELECT - 13 / - 69 AS col0
----
0

query I rowsort
SELECT ALL - 62 + - 3
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT DISTINCT - 53 * + + COUNT( * ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-7606
SELECT DISTINCT - 53 * + + COUNT ( * ) AS col0
----
-53

query I rowsort
SELECT DISTINCT + 90 + - ( + + NULLIF ( 17, - - 19 ) )
----
73

query I rowsort
SELECT ALL 65 + - 58 + + 25 * + 2
----
57

query I rowsort
SELECT - 71 + 83 AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7610
SELECT DISTINCT - CASE 89 WHEN + - 51 + 73 THEN + + CAST( NULL AS SIGNED ) + - ( - - 62 ) ELSE NULL END * + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7610
SELECT DISTINCT - CASE 89 WHEN + - 51 + 73 THEN + + CAST ( NULL AS INTEGER ) + - ( - - 62 ) ELSE NULL END * + 0
----
NULL

query I rowsort
SELECT - 47 + - - 45 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7612
SELECT + 47 + + COUNT( * ) + + 6 * - + 9 + 75 * + 95 AS col1, + COUNT( * )
----
7119
1

skipif mysql # not compatible
query II rowsort label-7612
SELECT + 47 + + COUNT ( * ) + + 6 * - + 9 + 75 * + 95 AS col1, + COUNT ( * )
----
7119
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7613
SELECT ALL - 70 + + - MIN( 71 ) - + COALESCE ( CASE - 37 WHEN - 41 - - - 27 THEN 33 WHEN + 16 * + - MAX( 66 ) + + COUNT( * ) + + MAX( DISTINCT + 7 ) * CASE + MIN( DISTINCT + - 79 ) WHEN - 36 + - COUNT( * ) THEN NULL ELSE + - 26 END THEN + 36 END, - 93 * + COUNT( * ), - - COUNT( * ) * - 67 ) - 33 DIV COUNT( * ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL - 70 + + - MIN ( 71 ) - + COALESCE ( CASE - 37 WHEN - 41 - - - 27 THEN 33 WHEN + 16 * + - MAX ( 66 ) + + COUNT ( * ) + + MAX ( DISTINCT + 7 ) * CASE + MIN ( DISTINCT + - 79 ) WHEN - 36 + - COUNT ( * ) THEN NULL ELSE + - 26 END THEN + 36 END, - 93 * + COUNT ( * ), - - COUNT ( * ) * - 67 ) - 33 / COUNT ( * ) AS col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7614
SELECT + CAST( COUNT( * ) AS SIGNED ) + - + 30 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-7614
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + - + 30 AS col0
----
-29

query II rowsort
SELECT ALL 93, + 41 + 75 AS col2
----
93
116

onlyif mysql # aggregate syntax: 
query II rowsort label-7616
SELECT + + ( + 86 ) + + + 39 + - - 87 + 15 * - 38 AS col0, + ( COUNT( * ) )
----
-358
1

skipif mysql # not compatible
query II rowsort label-7616
SELECT + + ( + 86 ) + + + 39 + - - 87 + 15 * - 38 AS col0, + ( COUNT ( * ) )
----
-358
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT ALL + 4 * + 90 * + + NULLIF ( + - 35, - 87 * COUNT( * ) * + + 33 + 38 ) AS col1
----
-12600

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL + 4 * + 90 * + + NULLIF ( + - 35, - 87 * COUNT ( * ) * + + 33 + 38 ) AS col1
----
-12600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7618
SELECT - + 98 * + COUNT( * ) / + - 23 * - + CAST( NULL AS SIGNED ) * 3 / + MAX( DISTINCT - + 62 ) * - 88 * - ( - - AVG ( ALL 53 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7618
SELECT - + 98 * + COUNT ( * ) / + - 23 * - + CAST ( NULL AS INTEGER ) * 3 / + MAX ( DISTINCT - + 62 ) * - 88 * - ( - - AVG ( ALL 53 ) ) col0
----
NULL

query I rowsort
SELECT + + 65 * 70 * - 5
----
-22750

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT DISTINCT + + ( COUNT( + - 56 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7620
SELECT DISTINCT + + ( COUNT ( + - 56 ) )
----
1

query I rowsort
SELECT ALL 19 * - 30
----
-570

query II rowsort
SELECT ALL + 89, 78 AS col0
----
89
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT DISTINCT + + ( + CASE - 60 WHEN - SUM( - + 36 ) * + 73 THEN + - COUNT( * ) WHEN 56 + - 68 * - + 99 THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7623
SELECT DISTINCT + + ( + CASE - 60 WHEN - SUM ( - + 36 ) * + 73 THEN + - COUNT ( * ) WHEN 56 + - 68 * - + 99 THEN NULL END ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7624
SELECT 79 DIV + + 45 - - 98 - 38 DIV - 37 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-7624
SELECT 79 / + + 45 - - 98 - 38 / - 37 AS col2
----
100

query II rowsort
SELECT + 62 AS col2, - 82 + - + 16 AS col1
----
62
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT + 99 * 50 * ( - - 30 ) * - MIN( DISTINCT 69 ) + + - ( + COUNT( DISTINCT - COALESCE ( + 95, - - 62 * - 30 ) ) ) - - 14 AS col0
----
-10246487

skipif mysql # not compatible
query I rowsort label-7626
SELECT + 99 * 50 * ( - - 30 ) * - MIN ( DISTINCT 69 ) + + - ( + COUNT ( DISTINCT - COALESCE ( + 95, - - 62 * - 30 ) ) ) - - 14 AS col0
----
-10246487

onlyif mysql # DIV for integer division: 
query I rowsort label-7627
SELECT + 38 + - ( - - 27 ) DIV + 4 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-7627
SELECT + 38 + - ( - - 27 ) / + 4 AS col2
----
32

query I rowsort
SELECT 71 + + - 7 - - 59
----
123

query II rowsort
SELECT + 46 AS col2, + 11
----
46
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7630
SELECT + + MIN( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT + + MIN ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT ALL - CASE + 91 WHEN - 78 / COALESCE ( - 49, 90, - + 63 ) * 94 * + + CASE - COUNT( * ) WHEN - CASE ( + 21 ) WHEN 52 THEN - 22 WHEN 17 + + + 49 - + - 75 + - 76 * - - CASE - COALESCE ( COUNT( * ), + 78 ) WHEN + MIN( ALL - COALESCE ( + 85, - 58 ) ) THEN + 36 + - ( + 60 ) END + 92 * - - 6 THEN 8 * 45 + + 67 ELSE 44 + + 91 END * + COUNT( * ) + + COUNT( * ) THEN NULL ELSE + 23 END + - 13 THEN + COUNT( 2 ) - 18 * + 88 ELSE NULL END + ( + 80 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL - CASE + 91 WHEN - 78 / COALESCE ( - 49, 90, - + 63 ) * 94 * + + CASE - COUNT ( * ) WHEN - CASE ( + 21 ) WHEN 52 THEN - 22 WHEN 17 + + + 49 - + - 75 + - 76 * - - CASE - COALESCE ( COUNT ( * ), + 78 ) WHEN + MIN ( ALL - COALESCE ( + 85, - 58 ) ) THEN + 36 + - ( + 60 ) END + 92 * - - 6 THEN 8 * 45 + + 67 ELSE 44 + + 91 END * + COUNT ( * ) + + COUNT ( * ) THEN NULL ELSE + 23 END + - 13 THEN + COUNT ( 2 ) - 18 * + 88 ELSE NULL END + ( + 80 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT ALL - MAX( 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL - MAX ( 79 )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7633
SELECT DISTINCT 8 + - - 27 AS col1, - 83 + + CASE - CASE + 19 WHEN - - 76 * + ( - CAST( + 69 AS SIGNED ) ) THEN + CASE 79 WHEN - ( - 91 ) THEN - 50 * - 31 + - - 60 - + + 80 / 62 ELSE NULL END ELSE + - 17 + + 17 END WHEN + 48 THEN NULL WHEN - 37 + + ( 11 ) THEN - 34 END AS col1
----
35
NULL

skipif mysql # not compatible
query II rowsort label-7633
SELECT DISTINCT 8 + - - 27 AS col1, - 83 + + CASE - CASE + 19 WHEN - - 76 * + ( - CAST ( + 69 AS INTEGER ) ) THEN + CASE 79 WHEN - ( - 91 ) THEN - 50 * - 31 + - - 60 - + + 80 / 62 ELSE NULL END ELSE + - 17 + + 17 END WHEN + 48 THEN NULL WHEN - 37 + + ( 11 ) THEN - 34 END AS col1
----
35
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7634
SELECT DISTINCT - CASE + + CAST( - COUNT( * ) AS SIGNED ) WHEN + ( - 19 ) THEN NULL ELSE - 56 END
----
56

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT - CASE + + CAST ( - COUNT ( * ) AS INTEGER ) WHEN + ( - 19 ) THEN NULL ELSE - 56 END
----
56

query I rowsort
SELECT ALL - 67 * 76 col2
----
-5092

query I rowsort
SELECT 16 + + 82 AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7637
SELECT ALL 43 + + CAST( NULL AS SIGNED ) * - - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL 43 + + CAST ( NULL AS INTEGER ) * - - 28
----
NULL

query II rowsort
SELECT ALL 78 + + 80 AS col0, 65
----
158
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT COUNT( - 43 ) - - 41
----
42

skipif mysql # not compatible
query I rowsort label-7639
SELECT COUNT ( - 43 ) - - 41
----
42

query I rowsort
SELECT 41 + + - 83 col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT + 5 * - 35 + + COUNT( * ) + - MIN( - - NULLIF ( - 34, - - 51 ) ) AS col2
----
-140

skipif mysql # not compatible
query I rowsort label-7641
SELECT + 5 * - 35 + + COUNT ( * ) + - MIN ( - - NULLIF ( - 34, - - 51 ) ) AS col2
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT DISTINCT MIN( + + 28 ) + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT MIN ( + + 28 ) + + COUNT ( * )
----
29

query I rowsort
SELECT 40 * 46 AS col1
----
1840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7644
SELECT + CAST( 83 AS SIGNED ) * - + 61 * - + 53
----
268339

skipif mysql # not compatible
query I rowsort label-7644
SELECT + CAST ( 83 AS INTEGER ) * - + 61 * - + 53
----
268339

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT DISTINCT - - 6 * COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT - - 6 * COUNT ( * )
----
6

query I rowsort
SELECT ALL + 50 * 55 + 56 + - - 11 AS col2
----
2817

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT ALL - - SUM( DISTINCT 10 ) * 28
----
280

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL - - SUM ( DISTINCT 10 ) * 28
----
280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7648
SELECT - CAST( NULL AS SIGNED ) * COALESCE ( - 56, - - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7648
SELECT - CAST ( NULL AS INTEGER ) * COALESCE ( - 56, - - 90 )
----
NULL

query II rowsort
SELECT DISTINCT - 47 * + 55 AS col1, 14 * + - 36 AS col1
----
-2585
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT DISTINCT + ( - 29 ) - - - SUM( 24 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT + ( - 29 ) - - - SUM ( 24 ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT ALL - + 64 * - ( 56 ) * + COUNT( * ) AS col2
----
3584

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL - + 64 * - ( 56 ) * + COUNT ( * ) AS col2
----
3584

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT + SUM( - 96 ) col0
----
-96

skipif mysql # not compatible
query I rowsort label-7652
SELECT + SUM ( - 96 ) col0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7653
SELECT - CAST( SUM( ALL - 69 ) AS SIGNED ) AS col1, - 12 AS col0
----
69
-12

skipif mysql # not compatible
query II rowsort label-7653
SELECT - CAST ( SUM ( ALL - 69 ) AS INTEGER ) AS col1, - 12 AS col0
----
69
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7654
SELECT CASE - 86 WHEN + 13 * - NULLIF ( - 16, + + COUNT( * ) * + 31 * + 49 ) - + NULLIF ( CASE 95 WHEN - + 90 THEN - 12 END, 68 ) THEN 54 ELSE MAX( + + 61 ) * - 16 * - 16 END * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7654
SELECT CASE - 86 WHEN + 13 * - NULLIF ( - 16, + + COUNT ( * ) * + 31 * + 49 ) - + NULLIF ( CASE 95 WHEN - + 90 THEN - 12 END, 68 ) THEN 54 ELSE MAX ( + + 61 ) * - 16 * - 16 END * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 93 - + 35 AS col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7656
SELECT ALL - 32 DIV - 91 * + 92 - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL - 32 / - 91 * + 92 - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ( 61 ) + + - 49
----
12

query II rowsort
SELECT DISTINCT - ( + + 11 ) * + 94 AS col0, - 46
----
-1034
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT 42 + + COUNT( * ) * 14 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-7659
SELECT 42 + + COUNT ( * ) * 14 AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7660
SELECT 86 * 28 * - - 49 + - COALESCE ( + MAX( ALL + 21 ), 87 * + - 56, + CAST( + 69 AS SIGNED ) ) AS col1
----
117971

skipif mysql # not compatible
query I rowsort label-7660
SELECT 86 * 28 * - - 49 + - COALESCE ( + MAX ( ALL + 21 ), 87 * + - 56, + CAST ( + 69 AS INTEGER ) ) AS col1
----
117971

query II rowsort
SELECT ALL ( 61 ) + - ( - ( - 64 ) ), 51 AS col0
----
-3
51

query I rowsort
SELECT 71 * + 97 + 51 AS col2
----
6938

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7663
SELECT DISTINCT + 80 + - + COUNT( + CAST( 17 AS DECIMAL ) ) + 31 col2
----
110

skipif mysql # not compatible
query I rowsort label-7663
SELECT DISTINCT + 80 + - + COUNT ( + CAST ( 17 AS REAL ) ) + 31 col2
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7664
SELECT DISTINCT - 25 + - 2 * - + NULLIF ( CAST( NULL AS SIGNED ), + 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7664
SELECT DISTINCT - 25 + - 2 * - + NULLIF ( CAST ( NULL AS INTEGER ), + 59 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT ALL 2 + + 75 + - NULLIF ( 98, 56 + + - COUNT( * ) * - 94 + - 17 ) col0
----
-21

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL 2 + + 75 + - NULLIF ( 98, 56 + + - COUNT ( * ) * - 94 + - 17 ) col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7666
SELECT DISTINCT - 57 AS col0, - 23 DIV + - 51 * + COUNT( 58 )
----
-57
0

skipif mysql # not compatible
query II rowsort label-7666
SELECT DISTINCT - 57 AS col0, - 23 / + - 51 * + COUNT ( 58 )
----
-57
0

query I rowsort
SELECT 96 * 93
----
8928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7668
SELECT ( - COUNT( * ) ) * - 16 + - CAST( NULL AS SIGNED ) / + + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7668
SELECT ( - COUNT ( * ) ) * - 16 + - CAST ( NULL AS INTEGER ) / + + 9 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 57, - 85 AS col2
----
-57
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT COUNT( * ) * - 38 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7670
SELECT COUNT ( * ) * - 38 AS col2
----
-38

query II rowsort
SELECT ALL 45 AS col1, - 33 col2
----
45
-33

query II rowsort
SELECT DISTINCT 97 AS col0, + 60 AS col1
----
97
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7673
SELECT - COUNT( * ) AS col2, - 98 * - - 45 - - 61 + 74 + + 86 DIV - 96
----
-1
-4275

skipif mysql # not compatible
query II rowsort label-7673
SELECT - COUNT ( * ) AS col2, - 98 * - - 45 - - 61 + 74 + + 86 / - 96
----
-1
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT COUNT( * ) * - 89 * COALESCE ( - - 95, + 74 + + MIN( ALL - 95 ) ) AS col1
----
-8455

skipif mysql # not compatible
query I rowsort label-7674
SELECT COUNT ( * ) * - 89 * COALESCE ( - - 95, + 74 + + MIN ( ALL - 95 ) ) AS col1
----
-8455

query II rowsort
SELECT 4 AS col2, - 5
----
4
-5

query I rowsort
SELECT NULLIF ( + 71, - + 87 / + 61 + + 47 * - 89 ) + 3
----
74

query I rowsort
SELECT 66 - - ( + + 51 )
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7678
SELECT + 78, + 97 - - + COUNT( 47 ) * + 9 + + CASE 93 WHEN + + 11 * + + 95 / + 3 + - + 32 THEN NULL WHEN + + SUM( DISTINCT - 58 ) THEN - ( - - 32 ) + COUNT( * ) + 32 * 14 + + + ( - + 31 ) * COUNT( * ) + + CAST( - + 96 AS SIGNED ) ELSE - 98 * + - COUNT( * ) + 93 * + NULLIF ( + + CAST( - COUNT( * ) AS SIGNED ), + 6 + - 96 ) * - 32 END - - + 0 * + 92 col0
----
78
3180

skipif mysql # not compatible
query II rowsort label-7678
SELECT + 78, + 97 - - + COUNT ( 47 ) * + 9 + + CASE 93 WHEN + + 11 * + + 95 / + 3 + - + 32 THEN NULL WHEN + + SUM ( DISTINCT - 58 ) THEN - ( - - 32 ) + COUNT ( * ) + 32 * 14 + + + ( - + 31 ) * COUNT ( * ) + + CAST ( - + 96 AS INTEGER ) ELSE - 98 * + - COUNT ( * ) + 93 * + NULLIF ( + + CAST ( - COUNT ( * ) AS INTEGER ), + 6 + - 96 ) * - 32 END - - + 0 * + 92 col0
----
78
3180

query I rowsort
SELECT - 95 + + 58 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-7680
SELECT + 28 col0, 20 * COUNT( * )
----
28
20

skipif mysql # not compatible
query II rowsort label-7680
SELECT + 28 col0, 20 * COUNT ( * )
----
28
20

query II rowsort
SELECT ALL - 3, ( COALESCE ( + 24, - 99, - 76 - - 16 ) ) AS col0
----
-3
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7682
SELECT + 4 + - 0 DIV - MIN( DISTINCT - - 8 ) + - 57 col1
----
-53

skipif mysql # not compatible
query I rowsort label-7682
SELECT + 4 + - 0 / - MIN ( DISTINCT - - 8 ) + - 57 col1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7683
SELECT 93 + + - CAST( + 17 AS SIGNED ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7683
SELECT 93 + + - CAST ( + 17 AS INTEGER ) AS col2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-7684
SELECT 8 DIV 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7684
SELECT 8 / 41 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7685
SELECT ALL + 27 DIV - + 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL + 27 / - + 63 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7686
SELECT ALL + - 99 * CAST( - 76 AS SIGNED )
----
7524

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL + - 99 * CAST ( - 76 AS INTEGER )
----
7524

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT ALL - 2 * - 11 + SUM( - - 32 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL - 2 * - 11 + SUM ( - - 32 ) AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7688
SELECT DISTINCT 74 * 47 * - 18 DIV ( - COUNT( * ) ) + - - COUNT( * ) * - - CASE + 50 WHEN 35 THEN NULL WHEN - 68 THEN + 99 ELSE - - 98 * + 58 * + 46 END AS col1
----
324068

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT 74 * 47 * - 18 / ( - COUNT ( * ) ) + - - COUNT ( * ) * - - CASE + 50 WHEN 35 THEN NULL WHEN - 68 THEN + 99 ELSE - - 98 * + 58 * + 46 END AS col1
----
324068

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT DISTINCT - + MAX( ALL + + 90 ) * + 12 * + 13 * - 70 * - 85 + 69
----
-83537931

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT - + MAX ( ALL + + 90 ) * + 12 * + 13 * - 70 * - 85 + 69
----
-83537931

query I rowsort
SELECT - 97 * 57 * + 16 AS col2
----
-88464

query I rowsort
SELECT ALL - ( - 66 ) * + ( 37 ) + + ( 19 )
----
2461

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT + MAX( - 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-7692
SELECT + MAX ( - 79 ) AS col1
----
-79

query I rowsort
SELECT NULLIF ( - 47, 37 ) col0
----
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7694
SELECT NULLIF ( - CAST( NULL AS DECIMAL ), 66 + - 11 ) AS col0, - 32
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-7694
SELECT NULLIF ( - CAST ( NULL AS REAL ), 66 + - 11 ) AS col0, - 32
----
NULL
-32

query I rowsort
SELECT - 61 * ( - 61 ) AS col0
----
3721

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT + SUM( - 2 ) * 17 * + + 19
----
-646

skipif mysql # not compatible
query I rowsort label-7696
SELECT + SUM ( - 2 ) * 17 * + + 19
----
-646

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7697
SELECT DISTINCT + 38 * + - 99 + COUNT( * ) + + 12, - 46 + - CAST( - 75 AS SIGNED ) AS col1, + 26 AS col2
----
-3749
29
26

skipif mysql # not compatible
query III rowsort label-7697
SELECT DISTINCT + 38 * + - 99 + COUNT ( * ) + + 12, - 46 + - CAST ( - 75 AS INTEGER ) AS col1, + 26 AS col2
----
-3749
29
26

query I rowsort
SELECT DISTINCT + 49 * - 89
----
-4361

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT + COUNT( * ) * + + 53 * - - 11 AS col1
----
583

skipif mysql # not compatible
query I rowsort label-7699
SELECT + COUNT ( * ) * + + 53 * - - 11 AS col1
----
583

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7700
SELECT DISTINCT + COUNT( ALL CAST( - 52 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT + COUNT ( ALL CAST ( - 52 AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT DISTINCT + COUNT( * ) * 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-7701
SELECT DISTINCT + COUNT ( * ) * 24 AS col2
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-7702
SELECT MIN( ALL - 83 ), - 42 + - + 99 AS col2
----
-83
-141

skipif mysql # not compatible
query II rowsort label-7702
SELECT MIN ( ALL - 83 ), - 42 + - + 99 AS col2
----
-83
-141

query II rowsort
SELECT + 1 * + 64, + 72 AS col1
----
64
72

query I rowsort
SELECT - 71 + - 4 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT MIN( - - ( + ( - 32 ) ) ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-7705
SELECT MIN ( - - ( + ( - 32 ) ) ) AS col2
----
-32

query I rowsort
SELECT + + 22 + + 58 + - 48
----
32

query I rowsort
SELECT ALL + ( - NULLIF ( + 74, + 27 / + - 23 + - - 91 ) )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT + - COUNT( ALL 65 ) * 49 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-7708
SELECT + - COUNT ( ALL 65 ) * 49 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT DISTINCT COUNT( DISTINCT + + 20 )
----
1

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT COUNT ( DISTINCT + + 20 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT ALL SUM( + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL SUM ( + 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT + COUNT( * ) * + CASE + 35 WHEN - 46 * - - COUNT( * ) THEN NULL ELSE 59 END AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7711
SELECT + COUNT ( * ) * + CASE + 35 WHEN - 46 * - - COUNT ( * ) THEN NULL ELSE 59 END AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT + SUM( DISTINCT 80 ) - 29 * - CASE - 58 WHEN - 49 * + MIN( 17 ) + - 91 THEN + CASE + 47 WHEN MIN( DISTINCT + 35 ) * + 20 THEN NULL WHEN AVG ( - - 5 ) * - 22 THEN - 5 END WHEN - ( + AVG ( 73 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7712
SELECT + SUM ( DISTINCT 80 ) - 29 * - CASE - 58 WHEN - 49 * + MIN ( 17 ) + - 91 THEN + CASE + 47 WHEN MIN ( DISTINCT + 35 ) * + 20 THEN NULL WHEN AVG ( - - 5 ) * - 22 THEN - 5 END WHEN - ( + AVG ( 73 ) ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7713
SELECT ALL 12 + + 83 - - 79 * 68 DIV + 29 AS col1
----
280

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL 12 + + 83 - - 79 * 68 / + 29 AS col1
----
280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7714
SELECT ALL - + 84 + - CAST( NULL AS DECIMAL ) + - - 5 * + 31 * CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL - + 84 + - CAST ( NULL AS REAL ) + - - 5 * + 31 * CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7715
SELECT + + 35 - + + 17 - - - 10 DIV - + 59 * - ( CAST( + 98 AS SIGNED ) ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-7715
SELECT + + 35 - + + 17 - - - 10 / - + 59 * - ( CAST ( + 98 AS INTEGER ) ) AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7716
SELECT ALL - COUNT( * ) DIV + + 21
----
0

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL - COUNT ( * ) / + + 21
----
0

query I rowsort
SELECT ALL + + ( + 33 ) + ( + 43 )
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-7718
SELECT DISTINCT + 21 DIV 46 + + + 38 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-7718
SELECT DISTINCT + 21 / 46 + + + 38 AS col0
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-7719
SELECT COUNT( ALL - 61 ) * + ( - - 38 ) + 86 + + 95 * + ( + 33 ) + + + 70 + + + COUNT( * ) * - 6 * + MAX( NULLIF ( - + 31, 44 ) ) AS col0, - 22
----
3515
-22

skipif mysql # not compatible
query II rowsort label-7719
SELECT COUNT ( ALL - 61 ) * + ( - - 38 ) + 86 + + 95 * + ( + 33 ) + + + 70 + + + COUNT ( * ) * - 6 * + MAX ( NULLIF ( - + 31, 44 ) ) AS col0, - 22
----
3515
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT - 14 * - COUNT( * ) * - 16 * + 93
----
-20832

skipif mysql # not compatible
query I rowsort label-7720
SELECT - 14 * - COUNT ( * ) * - 16 * + 93
----
-20832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7721
SELECT ALL + 76 DIV MIN( DISTINCT - 9 ) + - 57 DIV - 15 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL + 76 / MIN ( DISTINCT - 9 ) + - 57 / - 15 AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7722
SELECT + COUNT( * ) DIV + 89 + - - 64
----
64

skipif mysql # not compatible
query I rowsort label-7722
SELECT + COUNT ( * ) / + 89 + - - 64
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7723
SELECT - 44 * - 90 - + COUNT( * ) DIV + 85
----
3960

skipif mysql # not compatible
query I rowsort label-7723
SELECT - 44 * - 90 - + COUNT ( * ) / + 85
----
3960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7724
SELECT + CAST( - CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ), 88 * 71 * + 59 * 26 col1
----
-1
9584432

skipif mysql # not compatible
query II rowsort label-7724
SELECT + CAST ( - CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ), 88 * 71 * + 59 * 26 col1
----
-1
9584432

query I rowsort
SELECT + 61 + 78
----
139

query I rowsort
SELECT - 79 * + + 69
----
-5451

query I rowsort
SELECT - 37 + + 94 AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7728
SELECT ALL - COUNT( * ) / + - CAST( NULL AS SIGNED ) - 33, + SUM( ALL - 72 ) AS col2
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-7728
SELECT ALL - COUNT ( * ) / + - CAST ( NULL AS INTEGER ) - 33, + SUM ( ALL - 72 ) AS col2
----
NULL
-72

query I rowsort
SELECT ALL - 33 * - 53 - - + 2
----
1751

query I rowsort
SELECT - 83 + - - 66
----
-17

query I rowsort
SELECT - 89 * + 82
----
-7298

query I rowsort
SELECT CASE 6 WHEN 64 THEN NULL WHEN 91 THEN NULL WHEN ( 9 ) + - 96 THEN 14 END
----
NULL

query I rowsort
SELECT DISTINCT - 0 * - 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT ALL 35 * + COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL 35 * + COUNT ( * ) AS col0
----
35

query I rowsort
SELECT ALL 53 * - 24 AS col2
----
-1272

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT - 86 - - COUNT( 74 ) col1
----
-85

skipif mysql # not compatible
query I rowsort label-7736
SELECT - 86 - - COUNT ( 74 ) col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT DISTINCT 74 * - 91 + - 32 / + CASE - 88 WHEN + + 84 + - 53 THEN 45 WHEN - 85 * + - 66 + ( - + ( - COUNT( * ) ) ) THEN + + 81 * - + 16 * ( + - COUNT( * ) ) WHEN - - COUNT( * ) THEN + - 62 * - 56 + + - 11 * 15 + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT 74 * - 91 + - 32 / + CASE - 88 WHEN + + 84 + - 53 THEN 45 WHEN - 85 * + - 66 + ( - + ( - COUNT ( * ) ) ) THEN + + 81 * - + 16 * ( + - COUNT ( * ) ) WHEN - - COUNT ( * ) THEN + - 62 * - 56 + + - 11 * 15 + + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT 10 + COALESCE ( + + SUM( DISTINCT ( + - 29 ) ), COALESCE ( 69, COUNT( - ( 12 ) ) ) ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-7738
SELECT 10 + COALESCE ( + + SUM ( DISTINCT ( + - 29 ) ), COALESCE ( 69, COUNT ( - ( 12 ) ) ) ) AS col2
----
-19

query II rowsort
SELECT ( - 87 ) - - 42, 49 AS col1
----
-45
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7740
SELECT NULLIF ( + 23, + 30 - + 75 / CAST( - - 80 AS DECIMAL ) * - - 85 / + - COUNT( * ) )
----
23

skipif mysql # not compatible
query I rowsort label-7740
SELECT NULLIF ( + 23, + 30 - + 75 / CAST ( - - 80 AS REAL ) * - - 85 / + - COUNT ( * ) )
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-7741
SELECT 2 + - COUNT( * ) * 92 AS col0, + ( + ( 67 ) ) * 17 * - 8 AS col2
----
-90
-9112

skipif mysql # not compatible
query II rowsort label-7741
SELECT 2 + - COUNT ( * ) * 92 AS col0, + ( + ( 67 ) ) * 17 * - 8 AS col2
----
-90
-9112

query I rowsort
SELECT + 49 * - 51 + - - 4
----
-2495

query I rowsort
SELECT ALL + 44 + + 51
----
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7744
SELECT ALL CASE + + CASE - 56 WHEN 72 * + + 70 + - + 96 + + MIN( ALL - 58 ) THEN - 94 ELSE NULL END WHEN 76 / + CASE CAST( - 43 AS DECIMAL ) WHEN 57 + - AVG ( DISTINCT - + 25 ) + ( - 99 ) * - 77 THEN + COUNT( * ) ELSE - 29 + - - 94 - + 25 END + + - 86 + + + ( + 4 ) + 61 THEN NULL ELSE + + 75 END
----
75

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL CASE + + CASE - 56 WHEN 72 * + + 70 + - + 96 + + MIN ( ALL - 58 ) THEN - 94 ELSE NULL END WHEN 76 / + CASE CAST ( - 43 AS REAL ) WHEN 57 + - AVG ( DISTINCT - + 25 ) + ( - 99 ) * - 77 THEN + COUNT ( * ) ELSE - 29 + - - 94 - + 25 END + + - 86 + + + ( + 4 ) + 61 THEN NULL ELSE + + 75 END
----
75

query I rowsort
SELECT - - ( - - 91 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7746
SELECT CAST( 0 AS SIGNED ) * + + COUNT( DISTINCT 35 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7746
SELECT CAST ( 0 AS INTEGER ) * + + COUNT ( DISTINCT 35 ) AS col1
----
0

query II rowsort
SELECT DISTINCT 26 AS col2, - ( + 7 )
----
26
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT ALL NULLIF ( + 86, + - COALESCE ( 12, - - NULLIF ( + COUNT( * ), + 4 * - 38 + + + 95 ) ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7748
SELECT ALL NULLIF ( + 86, + - COALESCE ( 12, - - NULLIF ( + COUNT ( * ), + 4 * - 38 + + + 95 ) ) ) AS col2
----
86

query I rowsort
SELECT - 16 + + 3 * + - 53 * + NULLIF ( + 44, - 66 ) AS col0
----
-7012

query I rowsort
SELECT 71 + - 89 AS col1
----
-18

query I rowsort
SELECT ALL 99 + - - 84 AS col2
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT DISTINCT + 92 * - NULLIF ( 67, - 3 * - COUNT( * ) )
----
-6164

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT + 92 * - NULLIF ( 67, - 3 * - COUNT ( * ) )
----
-6164

query I rowsort
SELECT ALL 26 * + - 79
----
-2054

query I rowsort
SELECT 44 + - 99
----
-55

query II rowsort
SELECT DISTINCT - 96 AS col0, + 51 - 42 * - ( - + 29 ) AS col0
----
-96
-1167

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT ALL - MAX( + NULLIF ( + - 24, - - 82 / + 3 ) ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL - MAX ( + NULLIF ( + - 24, - - 82 / + 3 ) ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT ALL - 86 * COUNT( * ) * - 89 AS col1
----
7654

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL - 86 * COUNT ( * ) * - 89 AS col1
----
7654

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT DISTINCT - COALESCE ( - + 82, - CASE - 78 WHEN - 17 THEN + 74 + 69 - + + COUNT( * ) ELSE NULL END ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT - COALESCE ( - + 82, - CASE - 78 WHEN - 17 THEN + 74 + 69 - + + COUNT ( * ) ELSE NULL END ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT DISTINCT - SUM( ALL 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT - SUM ( ALL 40 )
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7760
SELECT DISTINCT COUNT( * ) DIV COUNT( 60 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7760
SELECT DISTINCT COUNT ( * ) / COUNT ( 60 ) AS col2
----
1

query II rowsort
SELECT + 87 AS col1, + 27 AS col1
----
87
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7762
SELECT - 88 DIV - + COUNT( * ) + + 89 + - - 99 AS col1
----
276

skipif mysql # not compatible
query I rowsort label-7762
SELECT - 88 / - + COUNT ( * ) + + 89 + - - 99 AS col1
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT COUNT( * ) * - + CASE - 75 WHEN - - COUNT( * ) THEN - 28 + - 67 WHEN - + 65 THEN - 0 * + 74 / + - 4 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7763
SELECT COUNT ( * ) * - + CASE - 75 WHEN - - COUNT ( * ) THEN - 28 + - 67 WHEN - + 65 THEN - 0 * + 74 / + - 4 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7764
SELECT CAST( NULL AS SIGNED ) * 12 + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT CAST ( NULL AS INTEGER ) * 12 + + 99
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7765
SELECT ALL COALESCE ( 74, - 41, - - 93 ) * CAST( NULL AS SIGNED ) * + - 55 * - + 43 / + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL COALESCE ( 74, - 41, - - 93 ) * CAST ( NULL AS INTEGER ) * + - 55 * - + 43 / + 83 AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 27 col1, + 49 AS col2
----
-27
49

query I rowsort
SELECT DISTINCT 6 + - - 11
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT 69 - COUNT( ALL - 42 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-7768
SELECT 69 - COUNT ( ALL - 42 ) AS col0
----
68

query I rowsort
SELECT ALL 23 * 48
----
1104

query I rowsort
SELECT 42 * - 82 + - 57 AS col2
----
-3501

query II rowsort
SELECT + 36 col0, 16
----
36
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7772
SELECT ALL + - 93 + COUNT( * ), + MAX( ALL - 38 ) * - 80 + 95 + - 59 * - SUM( ALL - 98 ) * COUNT( * ) AS col2
----
-92
-2647

skipif mysql # not compatible
query II rowsort label-7772
SELECT ALL + - 93 + COUNT ( * ), + MAX ( ALL - 38 ) * - 80 + 95 + - 59 * - SUM ( ALL - 98 ) * COUNT ( * ) AS col2
----
-92
-2647

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT COUNT( * ) * + - COUNT( * ) - + + 56
----
-57

skipif mysql # not compatible
query I rowsort label-7773
SELECT COUNT ( * ) * + - COUNT ( * ) - + + 56
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7774
SELECT 68 + - - 52 - CAST( - + 24 AS SIGNED )
----
144

skipif mysql # not compatible
query I rowsort label-7774
SELECT 68 + - - 52 - CAST ( - + 24 AS INTEGER )
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT - 1 * + 39 - - 8 + + - COUNT( * ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-7775
SELECT - 1 * + 39 - - 8 + + - COUNT ( * ) AS col1
----
-32

query I rowsort
SELECT ALL - 15 * + 3 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT DISTINCT COALESCE ( - - SUM( - 2 ), + 78 * - 28, 70 + + 82 + 1 )
----
-2

skipif mysql # not compatible
query I rowsort label-7777
SELECT DISTINCT COALESCE ( - - SUM ( - 2 ), + 78 * - 28, 70 + + 82 + 1 )
----
-2

query I rowsort
SELECT DISTINCT + + 50 + - + ( 6 ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT DISTINCT - - 80 * + - COUNT( * ) * COUNT( ALL - + 80 ) col1
----
-80

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT - - 80 * + - COUNT ( * ) * COUNT ( ALL - + 80 ) col1
----
-80

query II rowsort
SELECT - 26 AS col0, - 16 + + 76 AS col1
----
-26
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7781
SELECT - COUNT( * ) DIV ( 92 )
----
0

skipif mysql # not compatible
query I rowsort label-7781
SELECT - COUNT ( * ) / ( 92 )
----
0

query I rowsort
SELECT ALL + 32 + + - COALESCE ( 72, - NULLIF ( + + 83, 76 * 36 * 35 * + - 53 ) ) AS col2
----
-40

query I rowsort
SELECT ALL NULLIF ( ( 83 ), - ( - - 52 ) + + 84 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT + 41 * - SUM( ALL + 72 ) + - + COUNT( + 32 ) * - 98 col2
----
-2854

skipif mysql # not compatible
query I rowsort label-7784
SELECT + 41 * - SUM ( ALL + 72 ) + - + COUNT ( + 32 ) * - 98 col2
----
-2854

onlyif mysql # aggregate syntax: 
query II rowsort label-7785
SELECT ALL COUNT( * ) - COALESCE ( 98, - + 59 ), 97 AS col1
----
-97
97

skipif mysql # not compatible
query II rowsort label-7785
SELECT ALL COUNT ( * ) - COALESCE ( 98, - + 59 ), 97 AS col1
----
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT COUNT( * ) * 26 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-7786
SELECT COUNT ( * ) * 26 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT ALL MIN( - 19 ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL MIN ( - 19 ) col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT DISTINCT - 63 - + - 83 + - 30 - - 21 + 75 * COUNT( * ) * + 57 AS col2
----
4286

skipif mysql # not compatible
query I rowsort label-7788
SELECT DISTINCT - 63 - + - 83 + - 30 - - 21 + 75 * COUNT ( * ) * + 57 AS col2
----
4286

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT DISTINCT SUM( DISTINCT - 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT SUM ( DISTINCT - 63 )
----
-63

query II rowsort
SELECT DISTINCT 61 * ( - 59 ), 7 * - + 99 * - 23 AS col0
----
-3599
15939

onlyif mysql # aggregate syntax: 
query II rowsort label-7791
SELECT + MIN( - 76 ) AS col0, 21 + 11
----
-76
32

skipif mysql # not compatible
query II rowsort label-7791
SELECT + MIN ( - 76 ) AS col0, 21 + 11
----
-76
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT 82 * - COUNT( * ) * + 27 + - 98 AS col0
----
-2312

skipif mysql # not compatible
query I rowsort label-7792
SELECT 82 * - COUNT ( * ) * + 27 + - 98 AS col0
----
-2312

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7793
SELECT 60 * + 99, + 40 * 29 * + + CAST( + 56 AS SIGNED ) + + 31 col2
----
5940
64991

skipif mysql # not compatible
query II rowsort label-7793
SELECT 60 * + 99, + 40 * 29 * + + CAST ( + 56 AS INTEGER ) + + 31 col2
----
5940
64991

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7794
SELECT - 84 DIV - 13 + - + COUNT( * ) * - 82
----
88

skipif mysql # not compatible
query I rowsort label-7794
SELECT - 84 / - 13 + - + COUNT ( * ) * - 82
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT + ( + + 46 ) * + - 40 * - COUNT( * ) - 25 AS col1
----
1815

skipif mysql # not compatible
query I rowsort label-7795
SELECT + ( + + 46 ) * + - 40 * - COUNT ( * ) - 25 AS col1
----
1815

query I rowsort
SELECT 43 + - 21 AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7797
SELECT NULLIF ( 37, - COALESCE ( 30, + COALESCE ( - 20, + COUNT( * ) * - - 99, - CAST( NULL AS SIGNED ) / 0 - + + 79 + CAST( + 66 AS SIGNED ) ), - - 25 ) + - 88 ) * + + 40 - - 79 AS col2
----
1559

skipif mysql # not compatible
query I rowsort label-7797
SELECT NULLIF ( 37, - COALESCE ( 30, + COALESCE ( - 20, + COUNT ( * ) * - - 99, - CAST ( NULL AS INTEGER ) / 0 - + + 79 + CAST ( + 66 AS INTEGER ) ), - - 25 ) + - 88 ) * + + 40 - - 79 AS col2
----
1559

onlyif mysql # DIV for integer division: 
query I rowsort label-7798
SELECT 50 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-7798
SELECT 50 / - 79
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7799
SELECT DISTINCT ( + CASE 15 WHEN - 95 THEN NULL WHEN - 89 THEN + + 20 WHEN + - 29 THEN - - 3 END ) * + + 16 * + 83 + + 23 - + COUNT( * ) / - 32 + - + 65 + + CASE 2 WHEN - ( - MAX( DISTINCT 43 ) ) THEN - CAST( NULL AS SIGNED ) * + SUM( - - ( 30 ) ) WHEN + 73 THEN NULL ELSE NULL END - + 26 + 72 / + 78 AS col1, COUNT( * ) - - 36 + COUNT( * )
----
NULL
38

skipif mysql # not compatible
query II rowsort label-7799
SELECT DISTINCT ( + CASE 15 WHEN - 95 THEN NULL WHEN - 89 THEN + + 20 WHEN + - 29 THEN - - 3 END ) * + + 16 * + 83 + + 23 - + COUNT ( * ) / - 32 + - + 65 + + CASE 2 WHEN - ( - MAX ( DISTINCT 43 ) ) THEN - CAST ( NULL AS INTEGER ) * + SUM ( - - ( 30 ) ) WHEN + 73 THEN NULL ELSE NULL END - + 26 + 72 / + 78 AS col1, COUNT ( * ) - - 36 + COUNT ( * )
----
NULL
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT ALL 59 * CASE - - 52 WHEN 79 + 47 THEN NULL WHEN + - 75 * ( - 18 ) THEN - AVG ( ALL + 43 ) + - 28 - + ( + ( + + 22 ) ) + COUNT( * ) END + - + 5 - 11 * 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL 59 * CASE - - 52 WHEN 79 + 47 THEN NULL WHEN + - 75 * ( - 18 ) THEN - AVG ( ALL + 43 ) + - 28 - + ( + ( + + 22 ) ) + COUNT ( * ) END + - + 5 - 11 * 70 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT ALL 28 * + 0 * MAX( DISTINCT + + 8 ) + 40 * + 90 AS col0
----
3600

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL 28 * + 0 * MAX ( DISTINCT + + 8 ) + 40 * + 90 AS col0
----
3600

onlyif mysql # aggregate syntax: 
query II rowsort label-7802
SELECT + 40 * + ( - + 39 ) * - 48 + ( COUNT( + - 61 ) ) AS col1, 56
----
74881
56

skipif mysql # not compatible
query II rowsort label-7802
SELECT + 40 * + ( - + 39 ) * - 48 + ( COUNT ( + - 61 ) ) AS col1, 56
----
74881
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT DISTINCT 21 * - 24 + + - 65 - + MIN( ( + 26 ) )
----
-595

skipif mysql # not compatible
query I rowsort label-7803
SELECT DISTINCT 21 * - 24 + + - 65 - + MIN ( ( + 26 ) )
----
-595

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7804
SELECT CAST( - + 46 AS SIGNED ) DIV - 57 + + 92 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-7804
SELECT CAST ( - + 46 AS INTEGER ) / - 57 + + 92 AS col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7805
SELECT ALL 90 * 71 * 90 / - + 81 * CAST( NULL AS SIGNED ) + - 61 * + ( - 29 ) + + 5 + + SUM( DISTINCT - 79 ) / + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL 90 * 71 * 90 / - + 81 * CAST ( NULL AS INTEGER ) + - 61 * + ( - 29 ) + + 5 + + SUM ( DISTINCT - 79 ) / + 28 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT + + 5 * + - 2 * - - COUNT( * ) + - 6
----
-16

skipif mysql # not compatible
query I rowsort label-7806
SELECT + + 5 * + - 2 * - - COUNT ( * ) + - 6
----
-16

query I rowsort
SELECT ALL + 28 + + 99 * - - 96
----
9532

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT DISTINCT - 17 * 77 * - - COUNT( * ) + - COUNT( * ) AS col0
----
-1310

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT - 17 * 77 * - - COUNT ( * ) + - COUNT ( * ) AS col0
----
-1310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7809
SELECT - + COALESCE ( - + 66, - 5 * + 27 + - 96, + COUNT( * ) * - 75 ) + CAST( - 35 AS SIGNED ) * + 97
----
-3329

skipif mysql # not compatible
query I rowsort label-7809
SELECT - + COALESCE ( - + 66, - 5 * + 27 + - 96, + COUNT ( * ) * - 75 ) + CAST ( - 35 AS INTEGER ) * + 97
----
-3329

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT DISTINCT + 42 + - COUNT( * ) * + 74
----
-32

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT + 42 + - COUNT ( * ) * + 74
----
-32

query I rowsort
SELECT DISTINCT 63 * 7 + - - 66 + - - 0 * 32 col2
----
507

query I rowsort
SELECT ALL - NULLIF ( - 90, + 25 - - CASE WHEN 99 NOT BETWEEN - 12 AND NULL THEN NULL ELSE - 48 * - + 2 END )
----
90

query I rowsort
SELECT + CASE 41 WHEN 58 THEN + 69 + - + 64 + - 68 END + - - 12
----
NULL

query I rowsort
SELECT - 34 - + 60 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT - 78 + + MAX( 85 )
----
7

skipif mysql # not compatible
query I rowsort label-7815
SELECT - 78 + + MAX ( 85 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT DISTINCT + + 60 * - 61 * + 41 * - COUNT( 2 )
----
150060

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT + + 60 * - 61 * + 41 * - COUNT ( 2 )
----
150060

query I rowsort
SELECT - + 46 + + - 32
----
-78

query I rowsort
SELECT ALL + 86 * - + 57
----
-4902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7819
SELECT ALL + 13 * + 69 * + CAST( NULL AS SIGNED ) * 41 * + + 49 * + COUNT( * ) * + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL + 13 * + 69 * + CAST ( NULL AS INTEGER ) * 41 * + + 49 * + COUNT ( * ) * + - 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT ALL + 77 * + COUNT( * ) * - + 48
----
-3696

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL + 77 * + COUNT ( * ) * - + 48
----
-3696

onlyif mysql # aggregate syntax: 
query II rowsort label-7821
SELECT DISTINCT + COUNT( * ) * 59 * + + 73 AS col2, + 65 * - NULLIF ( - ( + NULLIF ( ( 87 ), - 94 ) ), - + 92 + + MAX( - - 16 ) )
----
4307
5655

skipif mysql # not compatible
query II rowsort label-7821
SELECT DISTINCT + COUNT ( * ) * 59 * + + 73 AS col2, + 65 * - NULLIF ( - ( + NULLIF ( ( 87 ), - 94 ) ), - + 92 + + MAX ( - - 16 ) )
----
4307
5655

query I rowsort
SELECT - 78 * + 8 col2
----
-624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7823
SELECT ALL + CAST( - 9 AS SIGNED ) * + ( + ( 28 ) ) col2
----
-252

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL + CAST ( - 9 AS INTEGER ) * + ( + ( 28 ) ) col2
----
-252

query I rowsort
SELECT - 90 * - + 16
----
1440

query I rowsort
SELECT + ( + ( - 65 ) ) + - 32 + + 66 + + 16 + + NULLIF ( 61, + 11 )
----
46

query II rowsort
SELECT + 85 AS col1, 63 AS col0
----
85
63

query I rowsort
SELECT - 25 * - 22 AS col1
----
550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7828
SELECT ALL COUNT( * ) DIV 57 + + + 98
----
98

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL COUNT ( * ) / 57 + + + 98
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT ALL + MIN( 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL + MIN ( 91 ) AS col0
----
91

query I rowsort
SELECT ( + - 75 ) AS col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7831
SELECT + CAST( NULL AS SIGNED ) + + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-7831
SELECT + CAST ( NULL AS INTEGER ) + + + 10
----
NULL

query I rowsort
SELECT ( ( - NULLIF ( - 83, - 32 ) ) ) col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT ALL 23 * + - 79 + + ( - COUNT( * ) ) AS col1
----
-1818

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL 23 * + - 79 + + ( - COUNT ( * ) ) AS col1
----
-1818

onlyif mysql # aggregate syntax: 
query II rowsort label-7834
SELECT + COUNT( * ) AS col1, 54 * - 87 AS col2
----
1
-4698

skipif mysql # not compatible
query II rowsort label-7834
SELECT + COUNT ( * ) AS col1, 54 * - 87 AS col2
----
1
-4698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7835
SELECT - COALESCE ( COUNT( * ), 5 * CAST( NULL AS SIGNED ) ) - + ( + + 31 )
----
-32

skipif mysql # not compatible
query I rowsort label-7835
SELECT - COALESCE ( COUNT ( * ), 5 * CAST ( NULL AS INTEGER ) ) - + ( + + 31 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT + 93 * - NULLIF ( 62, - 97 ) + - COUNT( * )
----
-5767

skipif mysql # not compatible
query I rowsort label-7836
SELECT + 93 * - NULLIF ( 62, - 97 ) + - COUNT ( * )
----
-5767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7837
SELECT ALL ( - CAST( - - 44 AS SIGNED ) ) * - ( - 16 ) + + COALESCE ( - COALESCE ( 82, COUNT( * ), - 64 ), + 36 )
----
-786

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL ( - CAST ( - - 44 AS INTEGER ) ) * - ( - 16 ) + + COALESCE ( - COALESCE ( 82, COUNT ( * ), - 64 ), + 36 )
----
-786

query I rowsort
SELECT DISTINCT + - 67 col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT + + MIN( ALL - + 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-7839
SELECT + + MIN ( ALL - + 98 ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT ALL + + MIN( + - 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL + + MIN ( + - 54 ) AS col2
----
-54

query I rowsort
SELECT + - 93 * - + 57 + ( 72 ) col2
----
5373

query I rowsort
SELECT ALL - 87 * 66 * ( COALESCE ( + 7, 6 ) ) * 44 + - - 77 - - 37
----
-1768422

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT + + COUNT( * ) - + 59
----
-58

skipif mysql # not compatible
query I rowsort label-7843
SELECT + + COUNT ( * ) - + 59
----
-58

query I rowsort
SELECT ALL + + ( + 53 ) AS col2
----
53

query I rowsort
SELECT + - 32 * - - ( 20 ) * - 7 AS col0
----
4480

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT + 96 * SUM( - 45 ) AS col1
----
-4320

skipif mysql # not compatible
query I rowsort label-7846
SELECT + 96 * SUM ( - 45 ) AS col1
----
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT ALL MAX( + 33 ) / - - CASE - + 19 WHEN + 27 * - 62 THEN + 88 END * 6 * NULLIF ( - CASE 63 WHEN + - 22 THEN NULL ELSE + 15 END, 20 + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL MAX ( + 33 ) / - - CASE - + 19 WHEN + 27 * - 62 THEN + 88 END * 6 * NULLIF ( - CASE 63 WHEN + - 22 THEN NULL ELSE + 15 END, 20 + 78 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7848
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + + ( + 27 ), 3 + - - 98 + CAST( NULL AS SIGNED ) * SUM( - 94 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7848
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + + ( + 27 ), 3 + - - 98 + CAST ( NULL AS INTEGER ) * SUM ( - 94 )
----
NULL
NULL

query I rowsort
SELECT - - 35 + - 14 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT ALL SUM( DISTINCT 84 ) * - 49 AS col2
----
-4116

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL SUM ( DISTINCT 84 ) * - 49 AS col2
----
-4116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7851
SELECT - 54 * + + CAST( NULL AS SIGNED ) + - 76 + - 34 + 86 * 80 * - COALESCE ( - CASE + - 55 WHEN + MIN( ALL + 92 ) THEN NULL ELSE + - 97 / - + 75 + - 10 * CASE - 6 WHEN + 22 + + - 33 + CAST( + - 6 AS SIGNED ) THEN NULL WHEN - 39 / - - 79 + 54 THEN - 17 + - CASE 70 WHEN 95 * 73 * + - 91 * + 73 THEN NULL WHEN 71 + 43 THEN NULL WHEN 24 * + COUNT( ALL 55 ) THEN 55 + + COALESCE ( + 9, 21 ) + - 76 * 55 END * + 28 ELSE NULL END * + 73 END, - COUNT( * ), 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7851
SELECT - 54 * + + CAST ( NULL AS INTEGER ) + - 76 + - 34 + 86 * 80 * - COALESCE ( - CASE + - 55 WHEN + MIN ( ALL + 92 ) THEN NULL ELSE + - 97 / - + 75 + - 10 * CASE - 6 WHEN + 22 + + - 33 + CAST ( + - 6 AS INTEGER ) THEN NULL WHEN - 39 / - - 79 + 54 THEN - 17 + - CASE 70 WHEN 95 * 73 * + - 91 * + 73 THEN NULL WHEN 71 + 43 THEN NULL WHEN 24 * + COUNT ( ALL 55 ) THEN 55 + + COALESCE ( + 9, 21 ) + - 76 * 55 END * + 28 ELSE NULL END * + 73 END, - COUNT ( * ), 94 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT ALL + 11 * + - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL + 11 * + - COUNT ( * )
----
-11

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7853
SELECT DISTINCT 18, ( + CAST( NULL AS DECIMAL ) ) + 68 AS col1
----
18
NULL

skipif mysql # not compatible
query II rowsort label-7853
SELECT DISTINCT 18, ( + CAST ( NULL AS REAL ) ) + 68 AS col1
----
18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT ALL COALESCE ( - COALESCE ( - - 35, 77 ), - 18 + - 39, - 66, CASE 41 WHEN - - 14 THEN + 3 * 97 WHEN - 46 * - MAX( ALL + 85 ) THEN NULL ELSE NULL END )
----
-35

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL COALESCE ( - COALESCE ( - - 35, 77 ), - 18 + - 39, - 66, CASE 41 WHEN - - 14 THEN + 3 * 97 WHEN - 46 * - MAX ( ALL + 85 ) THEN NULL ELSE NULL END )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT DISTINCT COALESCE ( ( + - 36 ), + COUNT( * ) )
----
-36

skipif mysql # not compatible
query I rowsort label-7855
SELECT DISTINCT COALESCE ( ( + - 36 ), + COUNT ( * ) )
----
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-7856
SELECT ALL + 55 + + 66 - + 30 + + - 4 + + - 71 DIV + + 45 + + 35 AS col1, + 11 + - 17
----
121
-6

skipif mysql # not compatible
query II rowsort label-7856
SELECT ALL + 55 + + 66 - + 30 + + - 4 + + - 71 / + + 45 + + 35 AS col1, + 11 + - 17
----
121
-6

query I rowsort
SELECT - NULLIF ( - 58, + 48 ) - + 43 * + 53 AS col0
----
-2221

query I rowsort
SELECT 69 - + 63 AS col2
----
6

query I rowsort
SELECT 78 * + 28
----
2184

query I rowsort
SELECT ALL + 56 + ( 78 ) col0
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT ALL - 92 + - + SUM( + 7 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL - 92 + - + SUM ( + 7 ) AS col1
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7862
SELECT MAX( + 3 ) DIV - 57 + 61 + ( - 69 ) * + + COUNT( * ) * - COUNT( * )
----
130

skipif mysql # not compatible
query I rowsort label-7862
SELECT MAX ( + 3 ) / - 57 + 61 + ( - 69 ) * + + COUNT ( * ) * - COUNT ( * )
----
130

query I rowsort
SELECT 56 * - 8 - + 57
----
-505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7864
SELECT DISTINCT - NULLIF ( CAST( NULL AS SIGNED ), - 60 + CAST( - 34 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7864
SELECT DISTINCT - NULLIF ( CAST ( NULL AS INTEGER ), - 60 + CAST ( - 34 AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL - 28 - + + 76 AS col1, 63
----
-104
63

query I rowsort
SELECT ALL 97 * + ( + 88 ) AS col1
----
8536

query I rowsort
SELECT ALL - - 31 - + 66 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT + - COUNT( ALL + 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-7868
SELECT + - COUNT ( ALL + 40 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7869
SELECT - COUNT( * ) * - COUNT( ALL + + CAST( 27 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-7869
SELECT - COUNT ( * ) * - COUNT ( ALL + + CAST ( 27 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT + 33 + - - COUNT( + + ( 39 ) )
----
34

skipif mysql # not compatible
query I rowsort label-7870
SELECT + 33 + - - COUNT ( + + ( 39 ) )
----
34

query I rowsort
SELECT + 60 * 83 AS col0
----
4980

query I rowsort
SELECT - 10 * + - 75 - + + 65
----
685

query I rowsort
SELECT DISTINCT - - 8 col2
----
8

query I rowsort
SELECT DISTINCT - 82 * + 3 + ( - + 26 ) AS col0
----
-272

query II rowsort
SELECT DISTINCT 63 AS col2, + 69 AS col2
----
63
69

query I rowsort
SELECT ALL 67 + 20 - + - 64 AS col2
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT NULLIF ( + 97, - - COUNT( * ) ) + + 65
----
162

skipif mysql # not compatible
query I rowsort label-7877
SELECT NULLIF ( + 97, - - COUNT ( * ) ) + + 65
----
162

query I rowsort
SELECT 79 + + + 75
----
154

query I rowsort
SELECT ALL 37 + 38
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7880
SELECT 86 AS col0, 14 * 31 DIV 32 + 7 + - COUNT( * ) * + COALESCE ( - - 85, - 2 ) * + - 79
----
86
6735

skipif mysql # not compatible
query II rowsort label-7880
SELECT 86 AS col0, 14 * 31 / 32 + 7 + - COUNT ( * ) * + COALESCE ( - - 85, - 2 ) * + - 79
----
86
6735

query I rowsort
SELECT DISTINCT 66 + 88
----
154

onlyif mysql # aggregate syntax: 
query II rowsort label-7882
SELECT COUNT( ALL + 52 ) + + 64 col1, 53
----
65
53

skipif mysql # not compatible
query II rowsort label-7882
SELECT COUNT ( ALL + 52 ) + + 64 col1, 53
----
65
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7883
SELECT 88 + - - COUNT( * ) / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7883
SELECT 88 + - - COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7884
SELECT CAST( + + COUNT( * ) AS SIGNED ) * 10 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-7884
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) * 10 AS col0
----
10

query II rowsort
SELECT ALL 46, - 39 AS col0
----
46
-39

query I rowsort
SELECT ALL - 25 - 68 - 98 * 86 * - + 55 + - 27
----
463420

query I rowsort
SELECT 84 * + 99
----
8316

onlyif mysql # DIV for integer division: 
query I rowsort label-7888
SELECT DISTINCT - 98 * - 0 DIV + + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT - 98 * - 0 / + + 67 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7889
SELECT + 51 + - NULLIF ( - 27, - + 25 / + + 35 / - ( + 18 ) + - - 55 * + + 82 * + + 7 ) * - - 4 * COUNT( DISTINCT - 56 ), - 73 AS col2
----
159
-73

skipif mysql # not compatible
query II rowsort label-7889
SELECT + 51 + - NULLIF ( - 27, - + 25 / + + 35 / - ( + 18 ) + - - 55 * + + 82 * + + 7 ) * - - 4 * COUNT ( DISTINCT - 56 ), - 73 AS col2
----
159
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7890
SELECT DISTINCT - 54 * + + ( + CAST( - ( 34 ) AS SIGNED ) ) AS col2
----
1836

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT - 54 * + + ( + CAST ( - ( 34 ) AS INTEGER ) ) AS col2
----
1836

query II rowsort
SELECT + - 17 col0, 98
----
-17
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7892
SELECT 6 DIV - + 10 + + 8
----
8

skipif mysql # not compatible
query I rowsort label-7892
SELECT 6 / - + 10 + + 8
----
8

query I rowsort
SELECT + 17 * + 60 AS col0
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT MIN( DISTINCT + - 29 ) col2
----
-29

skipif mysql # not compatible
query I rowsort label-7894
SELECT MIN ( DISTINCT + - 29 ) col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7895
SELECT COALESCE ( + COUNT( * ), + 88 DIV 13 * - + 34 - 7 * - - 29 - + 13 * - 46, + 22 * - CAST( NULL AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-7895
SELECT COALESCE ( + COUNT ( * ), + 88 / 13 * - + 34 - 7 * - - 29 - + 13 * - 46, + 22 * - CAST ( NULL AS INTEGER ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7896
SELECT 86 DIV 24 + 37 + 59
----
99

skipif mysql # not compatible
query I rowsort label-7896
SELECT 86 / 24 + 37 + 59
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7897
SELECT ALL - - CASE + - 72 WHEN + + COUNT( + + CAST( - CAST( + 23 AS DECIMAL ) AS SIGNED ) ) THEN - 8 ELSE + CASE + + 86 WHEN - CAST( NULL AS SIGNED ) * 7 * + CASE + - NULLIF ( + 23, - 16 ) WHEN + COUNT( * ) THEN - 94 WHEN + 46 + - 58 THEN NULL ELSE + + 38 END - + 95 THEN NULL WHEN - 90 THEN - COALESCE ( 71, - MIN( 68 ) ) + - 23 ELSE + 28 + 50 + - + 55 END + NULLIF ( ( 14 ), - - MIN( - 70 ) ) END AS col0, - MAX( ALL - 27 ) + - 64
----
37
-37

skipif mysql # not compatible
query II rowsort label-7897
SELECT ALL - - CASE + - 72 WHEN + + COUNT ( + + CAST ( - CAST ( + 23 AS REAL ) AS INTEGER ) ) THEN - 8 ELSE + CASE + + 86 WHEN - CAST ( NULL AS INTEGER ) * 7 * + CASE + - NULLIF ( + 23, - 16 ) WHEN + COUNT ( * ) THEN - 94 WHEN + 46 + - 58 THEN NULL ELSE + + 38 END - + 95 THEN NULL WHEN - 90 THEN - COALESCE ( 71, - MIN ( 68 ) ) + - 23 ELSE + 28 + 50 + - + 55 END + NULLIF ( ( 14 ), - - MIN ( - 70 ) ) END AS col0, - MAX ( ALL - 27 ) + - 64
----
37
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7898
SELECT DISTINCT - - 53 DIV NULLIF ( + COUNT( * ), - ( - CAST( NULL AS SIGNED ) ) + + + 21 * + - 26 ) + 5 * - CAST( 21 AS SIGNED ) + 36 + - - 87 col2
----
71

skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT - - 53 / NULLIF ( + COUNT ( * ), - ( - CAST ( NULL AS INTEGER ) ) + + + 21 * + - 26 ) + 5 * - CAST ( 21 AS INTEGER ) + 36 + - - 87 col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT DISTINCT - COUNT( * ) + + - 44
----
-45

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT - COUNT ( * ) + + - 44
----
-45

query I rowsort
SELECT - 71 - + + 51 AS col2
----
-122

query I rowsort
SELECT DISTINCT NULLIF ( - 68, ( + 7 ) * - ( 65 ) ) + + - 68 AS col1
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT ALL - MIN( - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL - MIN ( - 93 )
----
93

query I rowsort
SELECT ALL + - 11 + + - ( 3 ) AS col2
----
-14

query II rowsort
SELECT 31 AS col2, + 3
----
31
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT SUM( ALL 22 ) + + MAX( - 97 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-7905
SELECT SUM ( ALL 22 ) + + MAX ( - 97 ) AS col0
----
-75

query I rowsort
SELECT 43 * - 3 col0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT ALL 61 + - + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL 61 + - + COUNT ( * )
----
60

query I rowsort
SELECT DISTINCT 96 + 23 AS col2
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-7909
SELECT DISTINCT 73, - COUNT( * ) * 62 * - + 11 AS col0
----
73
682

skipif mysql # not compatible
query II rowsort label-7909
SELECT DISTINCT 73, - COUNT ( * ) * 62 * - + 11 AS col0
----
73
682

query II rowsort
SELECT ALL 78, + 36 AS col2
----
78
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7911
SELECT DISTINCT 48 + CAST( - COUNT( * ) AS SIGNED ) + + 32 + - 78 * + ( 81 )
----
-6239

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT 48 + CAST ( - COUNT ( * ) AS INTEGER ) + + 32 + - 78 * + ( 81 )
----
-6239

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7912
SELECT - COUNT( * ) - COUNT( * ) * + - 32 DIV + 59 + + 2 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7912
SELECT - COUNT ( * ) - COUNT ( * ) * + - 32 / + 59 + + 2 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT - COUNT( - 85 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7913
SELECT - COUNT ( - 85 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7914
SELECT - 83 - - + 49 DIV COUNT( * ) col2
----
-34

skipif mysql # not compatible
query I rowsort label-7914
SELECT - 83 - - + 49 / COUNT ( * ) col2
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-7915
SELECT ALL 95 DIV 31
----
3

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL 95 / 31
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7916
SELECT + ( - - CAST( NULL AS SIGNED ) ) + - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7916
SELECT + ( - - CAST ( NULL AS INTEGER ) ) + - 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT - SUM( ALL CASE - 87 WHEN + 31 * - 40 + + 14 THEN NULL WHEN - 45 THEN 76 / - 19 / - - 63 + + 38 - + - 82 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT - SUM ( ALL CASE - 87 WHEN + 31 * - 40 + + 14 THEN NULL WHEN - 45 THEN 76 / - 19 / - - 63 + + 38 - + - 82 END ) AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( + + 33, + - 83 )
----
-33

query I rowsort
SELECT ALL 47 - 5 col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7920
SELECT ALL 59 DIV - 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL 59 / - 84 AS col1
----
0

query I rowsort
SELECT + 29 - 29 * + 47
----
-1334

query II rowsort
SELECT ALL 4 AS col2, + 88
----
4
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT ALL SUM( - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL SUM ( - 16 )
----
-16

query I rowsort
SELECT + 5 - - 2
----
7

query I rowsort
SELECT ALL + 25 * - 59 AS col1
----
-1475

query I rowsort
SELECT + + ( + + 89 ) * + 96
----
8544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7927
SELECT + - 14 * 35 * 66 / + 13 - - CAST( + - CASE + + 78 WHEN - COUNT( + 0 ) THEN NULL WHEN - - 44 - 9 THEN - 50 * 47 - 60 - + + NULLIF ( 93, - 13 ) + + + ( + 91 ) + - + 87 + 79 * + 30 * + 64 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7927
SELECT + - 14 * 35 * 66 / + 13 - - CAST ( + - CASE + + 78 WHEN - COUNT ( + 0 ) THEN NULL WHEN - - 44 - 9 THEN - 50 * 47 - 60 - + + NULLIF ( 93, - 13 ) + + + ( + 91 ) + - + 87 + 79 * + 30 * + 64 END AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT + MIN( - 90 ) * - COUNT( * ) - - - 86 + + + 62 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7928
SELECT + MIN ( - 90 ) * - COUNT ( * ) - - - 86 + + + 62 AS col2
----
66

query II rowsort
SELECT ( 54 ) AS col0, + 45 AS col0
----
54
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7930
SELECT + 68 DIV 49 + COUNT( ALL - 2 ) * + 28 * - 31 AS col1
----
-867

skipif mysql # not compatible
query I rowsort label-7930
SELECT + 68 / 49 + COUNT ( ALL - 2 ) * + 28 * - 31 AS col1
----
-867

query I rowsort
SELECT 65 * + 52 + + 92 - - 3
----
3475

query I rowsort
SELECT + 15 * - 98 + + 24 AS col2
----
-1446

query I rowsort
SELECT - 85 * ( + 50 )
----
-4250

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT DISTINCT + + CASE + 8 WHEN + 18 + - + MIN( ALL - - 69 ) + 76 THEN 70 * + 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT + + CASE + 8 WHEN + 18 + - + MIN ( ALL - - 69 ) + 76 THEN 70 * + 53 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7935
SELECT COUNT( * ) AS col2, - ( + + COUNT( * ) ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-7935
SELECT COUNT ( * ) AS col2, - ( + + COUNT ( * ) ) AS col1
----
1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7936
SELECT ALL - + CAST( - COUNT( - 77 ) AS SIGNED ) * + 18 * 83 AS col1
----
1494

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL - + CAST ( - COUNT ( - 77 ) AS INTEGER ) * + 18 * 83 AS col1
----
1494

query II rowsort
SELECT - + 87 * - 40 * - + 25 + + + 44, 37 AS col0
----
-86956
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT DISTINCT - COUNT( * ) * - 7 + NULLIF ( - 72, - 47 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT - COUNT ( * ) * - 7 + NULLIF ( - 72, - 47 ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT + COALESCE ( + - 4, + SUM( + 54 ), COUNT( * ) )
----
-4

skipif mysql # not compatible
query I rowsort label-7939
SELECT + COALESCE ( + - 4, + SUM ( + 54 ), COUNT ( * ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT + + ( + COUNT( ALL 54 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7940
SELECT + + ( + COUNT ( ALL 54 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT ALL + 5 * 16 * - COUNT( * ) + + 34 * MAX( ALL - + 10 ) + - + ( + 33 )
----
-453

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL + 5 * 16 * - COUNT ( * ) + + 34 * MAX ( ALL - + 10 ) + - + ( + 33 )
----
-453

query I rowsort
SELECT + 17 + 4 AS col1
----
21

query II rowsort
SELECT ALL + - 61 col1, 73 AS col1
----
-61
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT DISTINCT COUNT( * ) * 42 + 83
----
125

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT COUNT ( * ) * 42 + 83
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7945
SELECT - CASE - CAST( NULL AS SIGNED ) WHEN COUNT( ALL + 53 ) THEN NULL ELSE + 90 + + COUNT( * ) END DIV + ( - 10 )
----
9

skipif mysql # not compatible
query I rowsort label-7945
SELECT - CASE - CAST ( NULL AS INTEGER ) WHEN COUNT ( ALL + 53 ) THEN NULL ELSE + 90 + + COUNT ( * ) END / + ( - 10 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7946
SELECT DISTINCT + 65 * 84 + + CAST( 12 AS SIGNED )
----
5472

skipif mysql # not compatible
query I rowsort label-7946
SELECT DISTINCT + 65 * 84 + + CAST ( 12 AS INTEGER )
----
5472

onlyif mysql # aggregate syntax: 
query II rowsort label-7947
SELECT - COUNT( * ) * - 40, COUNT( * ) col0
----
40
1

skipif mysql # not compatible
query II rowsort label-7947
SELECT - COUNT ( * ) * - 40, COUNT ( * ) col0
----
40
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7948
SELECT ALL NULLIF ( - - 25, + + MAX( + 90 ) + + - CAST( + 71 AS DECIMAL ) ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL NULLIF ( - - 25, + + MAX ( + 90 ) + + - CAST ( + 71 AS REAL ) ) AS col1
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-7949
SELECT - 96 + - + ( - - ( - - 12 ) ) + - 92 DIV 1 AS col0
----
-200

skipif mysql # not compatible
query I rowsort label-7949
SELECT - 96 + - + ( - - ( - - 12 ) ) + - 92 / 1 AS col0
----
-200

onlyif mysql # aggregate syntax: 
query II rowsort label-7950
SELECT 24 * - ( + - COUNT( + + 0 ) ) + - 33 AS col0, 43 * 11 * + + COUNT( * ) * + - 11
----
-9
-5203

skipif mysql # not compatible
query II rowsort label-7950
SELECT 24 * - ( + - COUNT ( + + 0 ) ) + - 33 AS col0, 43 * 11 * + + COUNT ( * ) * + - 11
----
-9
-5203

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT - CASE + 75 WHEN + 98 THEN + ( + 60 ) * - 76 + + - 26 * 4 + - COUNT( * ) - - 71 + + 71 / - + COUNT( * ) WHEN - 50 THEN NULL END + + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7951
SELECT - CASE + 75 WHEN + 98 THEN + ( + 60 ) * - 76 + + - 26 * 4 + - COUNT ( * ) - - 71 + + 71 / - + COUNT ( * ) WHEN - 50 THEN NULL END + + + 1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7952
SELECT + CAST( + 99 AS SIGNED ) - + 50 + 80 * 71, 40 AS col1
----
5729
40

skipif mysql # not compatible
query II rowsort label-7952
SELECT + CAST ( + 99 AS INTEGER ) - + 50 + 80 * 71, 40 AS col1
----
5729
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7953
SELECT - 60 + + - 63 + - CASE + CAST( + - CASE 51 WHEN 47 THEN - - NULLIF ( CAST( NULL AS SIGNED ), + 49 + 39 - - 0 * - - 28 * + 48 * - COUNT( * ) * 82 - + + CAST( COUNT( * ) AS SIGNED ) ) END AS SIGNED ) WHEN + ( MIN( ALL - 76 ) ) + + 70 + 62 THEN 11 * CASE + - NULLIF ( - + 99, + SUM( ALL - 52 ) + - 95 + + COUNT( * ) ) WHEN 49 * - NULLIF ( 41, + 14 ) THEN NULL ELSE - MIN( 46 ) - + 55 END * + - 29 * - - 5 * - - 18 END + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-7953
SELECT - 60 + + - 63 + - CASE + CAST ( + - CASE 51 WHEN 47 THEN - - NULLIF ( CAST ( NULL AS INTEGER ), + 49 + 39 - - 0 * - - 28 * + 48 * - COUNT ( * ) * 82 - + + CAST ( COUNT ( * ) AS INTEGER ) ) END AS INTEGER ) WHEN + ( MIN ( ALL - 76 ) ) + + 70 + 62 THEN 11 * CASE + - NULLIF ( - + 99, + SUM ( ALL - 52 ) + - 95 + + COUNT ( * ) ) WHEN 49 * - NULLIF ( 41, + 14 ) THEN NULL ELSE - MIN ( 46 ) - + 55 END * + - 29 * - - 5 * - - 18 END + - 86
----
NULL

query I rowsort
SELECT ALL - 24 - - 83 col0
----
59

onlyif mysql # aggregate syntax: 
query III rowsort label-7955
SELECT - COUNT( ALL - 80 ) col2, 51 + - COALESCE ( - 73, - 20, - 19 * 13 + 21, - + 21 + - 26 ) - - 15 * 60 + 42 + - 13 AS col1, + + 92
----
-1
1053
92

skipif mysql # not compatible
query III rowsort label-7955
SELECT - COUNT ( ALL - 80 ) col2, 51 + - COALESCE ( - 73, - 20, - 19 * 13 + 21, - + 21 + - 26 ) - - 15 * 60 + 42 + - 13 AS col1, + + 92
----
-1
1053
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7956
SELECT - COUNT( * ) * - CAST( - - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7956
SELECT - COUNT ( * ) * - CAST ( - - COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT ALL - 34 * 64 AS col2
----
-2176

query II rowsort
SELECT DISTINCT ( 45 ), NULLIF ( + + 0, - 59 ) AS col1
----
45
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7959
SELECT DISTINCT CAST( + - 6 AS SIGNED ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT CAST ( + - 6 AS INTEGER ) AS col0
----
-6

query I rowsort
SELECT + 82 + 81 AS col1
----
163

onlyif mysql # DIV for integer division: 
query I rowsort label-7961
SELECT + ( 74 ) DIV + + 28 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7961
SELECT + ( 74 ) / + + 28 AS col0
----
2

query I rowsort
SELECT - + ( 25 )
----
-25

query II rowsort
SELECT - 90 * - - 41 AS col2, 48
----
-3690
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7964
SELECT + + CAST( + COUNT( * ) AS SIGNED ) DIV - 8
----
0

skipif mysql # not compatible
query I rowsort label-7964
SELECT + + CAST ( + COUNT ( * ) AS INTEGER ) / - 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT DISTINCT COUNT( * ) * + ( + 90 ) * 29 AS col2
----
2610

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT COUNT ( * ) * + ( + 90 ) * 29 AS col2
----
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT MAX( + + 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-7966
SELECT MAX ( + + 64 ) AS col1
----
64

query I rowsort
SELECT ALL - 53 * 69 col0
----
-3657

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7968
SELECT + + MIN( ALL 34 ) DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-7968
SELECT + + MIN ( ALL 34 ) / + 80
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7969
SELECT + COALESCE ( 75, + 8 + - + ( + CAST( 36 AS SIGNED ) ) ) - - - 14 col1
----
61

skipif mysql # not compatible
query I rowsort label-7969
SELECT + COALESCE ( 75, + 8 + - + ( + CAST ( 36 AS INTEGER ) ) ) - - - 14 col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7970
SELECT - 61 * + + COALESCE ( + - 9, - 66, + COUNT( * ) * + CAST( NULL AS SIGNED ) * - 80 * - 22 + NULLIF ( + 67, + 10 - + 22 * - - 67 + + 69 ) * 83 DIV - 64 ) * + 89 - + 42
----
48819

skipif mysql # not compatible
query I rowsort label-7970
SELECT - 61 * + + COALESCE ( + - 9, - 66, + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - 80 * - 22 + NULLIF ( + 67, + 10 - + 22 * - - 67 + + 69 ) * 83 / - 64 ) * + 89 - + 42
----
48819

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT MIN( ALL + - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-7971
SELECT MIN ( ALL + - 27 )
----
-27

query I rowsort
SELECT ALL + 28 * - - 36
----
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT + MAX( 1 ) * - 54 + - 33 - + COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-7973
SELECT + MAX ( 1 ) * - 54 + - 33 - + COUNT ( * ) AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7974
SELECT DISTINCT COALESCE ( 46, - + 19 ) + + 67 + 3 * + 39, 55 * COUNT( DISTINCT - CAST( + 30 AS SIGNED ) ) AS col1
----
230
55

skipif mysql # not compatible
query II rowsort label-7974
SELECT DISTINCT COALESCE ( 46, - + 19 ) + + 67 + 3 * + 39, 55 * COUNT ( DISTINCT - CAST ( + 30 AS INTEGER ) ) AS col1
----
230
55

onlyif mysql # DIV for integer division: 
query II rowsort label-7975
SELECT ALL - 33, + 91 + + 39 DIV 87 * + - 70 + - - 51 AS col1
----
-33
142

skipif mysql # not compatible
query II rowsort label-7975
SELECT ALL - 33, + 91 + + 39 / 87 * + - 70 + - - 51 AS col1
----
-33
142

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT 72 - MAX( ALL 14 ) + - 42 * + 78 AS col2
----
-3218

skipif mysql # not compatible
query I rowsort label-7976
SELECT 72 - MAX ( ALL 14 ) + - 42 * + 78 AS col2
----
-3218

onlyif mysql # DIV for integer division: 
query I rowsort label-7977
SELECT ALL 84 DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL 84 / + 90
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7978
SELECT DISTINCT - 11, + COUNT( * ) AS col0
----
-11
1

skipif mysql # not compatible
query II rowsort label-7978
SELECT DISTINCT - 11, + COUNT ( * ) AS col0
----
-11
1

query I rowsort
SELECT NULLIF ( - ( + ( - + 38 ) ), 81 ) * + + 57
----
2166

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7980
SELECT + 21 AS col0, + 87 DIV 80 + - MAX( - ( ( + - 41 ) ) ) + COUNT( * ) + MIN( ALL 61 ) DIV + + ( - + 82 ) * + 34
----
21
-39

skipif mysql # not compatible
query II rowsort label-7980
SELECT + 21 AS col0, + 87 / 80 + - MAX ( - ( ( + - 41 ) ) ) + COUNT ( * ) + MIN ( ALL 61 ) / + + ( - + 82 ) * + 34
----
21
-39

query I rowsort
SELECT DISTINCT + 10 * - - 46 AS col2
----
460

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT ( - + 27 ) + 82 + - + 99 * ( COUNT( * ) ) * + - 92
----
9163

skipif mysql # not compatible
query I rowsort label-7982
SELECT ( - + 27 ) + 82 + - + 99 * ( COUNT ( * ) ) * + - 92
----
9163

query I rowsort
SELECT 98 * 71
----
6958

query I rowsort
SELECT 84 * + + 2 * - 27
----
-4536

query II rowsort
SELECT DISTINCT 37 AS col0, - 68
----
37
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-7986
SELECT ALL + 66 DIV + 71 col2
----
0

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL + 66 / + 71 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT DISTINCT + COUNT( * ) * - - 58 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT + COUNT ( * ) * - - 58 AS col2
----
58

query II rowsort
SELECT ALL 46 AS col0, 2
----
46
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT COUNT( * ) * - + SUM( ALL - 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-7989
SELECT COUNT ( * ) * - + SUM ( ALL - 69 ) AS col0
----
69

query I rowsort
SELECT 84 - - 31 AS col0
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7991
SELECT 93 + + 2 * - 59 * - - 35 DIV + - COUNT( * ) + - COALESCE ( MIN( - NULLIF ( + - 97, 41 ) ), - + 16 )
----
4126

skipif mysql # not compatible
query I rowsort label-7991
SELECT 93 + + 2 * - 59 * - - 35 / + - COUNT ( * ) + - COALESCE ( MIN ( - NULLIF ( + - 97, 41 ) ), - + 16 )
----
4126

query I rowsort
SELECT 15 + - + 13 AS col2
----
2

query I rowsort
SELECT ALL + - 93 + - 49 AS col1
----
-142

query II rowsort
SELECT 89 col1, COALESCE ( + 77, + + 84 ) AS col0
----
89
77

query I rowsort
SELECT DISTINCT 36 + + 82 - - 53 * - ( - 88 )
----
4782

query I rowsort
SELECT ALL + 93 + 31 AS col2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT 84 + SUM( - 95 )
----
-11

skipif mysql # not compatible
query I rowsort label-7997
SELECT 84 + SUM ( - 95 )
----
-11

query II rowsort
SELECT + 76 AS col2, 51
----
76
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT ALL + 32 + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL + 32 + + COUNT ( * )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8000
SELECT - + 4 DIV + 12 + + + 25 + + 81
----
106

skipif mysql # not compatible
query I rowsort label-8000
SELECT - + 4 / + 12 + + + 25 + + 81
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-8001
SELECT + 60 * 9 * + 27 col1, + COUNT( * ) AS col0
----
14580
1

skipif mysql # not compatible
query II rowsort label-8001
SELECT + 60 * 9 * + 27 col1, + COUNT ( * ) AS col0
----
14580
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT + + COUNT( 87 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8002
SELECT + + COUNT ( 87 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8003
SELECT COUNT( * ) + - MAX( ALL + CAST( 99 AS SIGNED ) )
----
-98

skipif mysql # not compatible
query I rowsort label-8003
SELECT COUNT ( * ) + - MAX ( ALL + CAST ( 99 AS INTEGER ) )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8004
SELECT ALL - + CAST( NULL AS SIGNED ) AS col0, - 24 col2
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-8004
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0, - 24 col2
----
NULL
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8005
SELECT + - CAST( NULL AS SIGNED ) AS col2, ( - 97 ) * - 12 AS col0
----
NULL
1164

skipif mysql # not compatible
query II rowsort label-8005
SELECT + - CAST ( NULL AS INTEGER ) AS col2, ( - 97 ) * - 12 AS col0
----
NULL
1164

onlyif mysql # DIV for integer division: 
query II rowsort label-8006
SELECT ALL - + 83, - 26 - - 36 DIV + 72 AS col1
----
-83
-26

skipif mysql # not compatible
query II rowsort label-8006
SELECT ALL - + 83, - 26 - - 36 / + 72 AS col1
----
-83
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT + COUNT( * ) * - - 64 * + 86 * 80 AS col2
----
440320

skipif mysql # not compatible
query I rowsort label-8007
SELECT + COUNT ( * ) * - - 64 * + 86 * 80 AS col2
----
440320

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT + COUNT( * ) * + 26 * - COUNT( * ) - + 84 + - 85 - + + 43 - - 95 - - 33 * + COUNT( * ) AS col2
----
-110

skipif mysql # not compatible
query I rowsort label-8008
SELECT + COUNT ( * ) * + 26 * - COUNT ( * ) - + 84 + - 85 - + + 43 - - 95 - - 33 * + COUNT ( * ) AS col2
----
-110

query I rowsort
SELECT ( 16 ) * + - 6 + 83 * 34 AS col2
----
2726

query I rowsort
SELECT DISTINCT 43 * + - ( 61 ) AS col2
----
-2623

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT SUM( - 27 ) * + + ( + 76 ) * + 3
----
-6156

skipif mysql # not compatible
query I rowsort label-8011
SELECT SUM ( - 27 ) * + + ( + 76 ) * + 3
----
-6156

onlyif mysql # aggregate syntax: 
query II rowsort label-8012
SELECT COUNT( * ) * - 30 + - - COUNT( * ) * 35 AS col2, 28 + - + COUNT( * ) - - + 46 + - - COUNT( * ) * + ( - 98 ) AS col0
----
5
-25

skipif mysql # not compatible
query II rowsort label-8012
SELECT COUNT ( * ) * - 30 + - - COUNT ( * ) * 35 AS col2, 28 + - + COUNT ( * ) - - + 46 + - - COUNT ( * ) * + ( - 98 ) AS col0
----
5
-25

query I rowsort
SELECT - 56 * 56 + + 5
----
-3131

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT + 81 * - 4 + - COUNT( * )
----
-325

skipif mysql # not compatible
query I rowsort label-8014
SELECT + 81 * - 4 + - COUNT ( * )
----
-325

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT DISTINCT - SUM( ALL - 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8015
SELECT DISTINCT - SUM ( ALL - 35 ) AS col2
----
35

query I rowsort
SELECT 94 + 56 AS col1
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8017
SELECT CAST( - - 72 AS SIGNED ) * + 82 AS col2
----
5904

skipif mysql # not compatible
query I rowsort label-8017
SELECT CAST ( - - 72 AS INTEGER ) * + 82 AS col2
----
5904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8018
SELECT CAST( NULL AS SIGNED ) + + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT CAST ( NULL AS INTEGER ) + + + 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * - 3
----
-3

skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * - 3
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT 22 + + 43 + + - 90 + 33 + + + 82 + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-8020
SELECT 22 + + 43 + + - 90 + 33 + + + 82 + COUNT ( * )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8021
SELECT CAST( 65 AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8021
SELECT CAST ( 65 AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT ALL 82 * + COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL 82 * + COUNT ( * ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT 38 + + COALESCE ( + SUM( + 36 ), + MAX( ALL + - 51 ) )
----
74

skipif mysql # not compatible
query I rowsort label-8023
SELECT 38 + + COALESCE ( + SUM ( + 36 ), + MAX ( ALL + - 51 ) )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT ALL - MIN( - 83 ) + NULLIF ( - 14, + 99 )
----
69

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL - MIN ( - 83 ) + NULLIF ( - 14, + 99 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT CASE + 54 WHEN 61 + - NULLIF ( + 62, - - COUNT( * ) + + 23 ) * - 3 THEN NULL WHEN 98 + + 44 THEN + 42 WHEN + + 35 * - 8 * + 63 / - 69 / + 37 - + 70 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT CASE + 54 WHEN 61 + - NULLIF ( + 62, - - COUNT ( * ) + + 23 ) * - 3 THEN NULL WHEN 98 + + 44 THEN + 42 WHEN + + 35 * - 8 * + 63 / - 69 / + 37 - + 70 THEN NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT ALL + + 57 + COUNT( * ) col2
----
58

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL + + 57 + COUNT ( * ) col2
----
58

query II rowsort
SELECT - 8 + - - 88 AS col1, ( + + 81 ) AS col2
----
80
81

query I rowsort
SELECT ALL - - 44 * - 82 + 12 + - - ( + 22 )
----
-3574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8029
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / + 17 / - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / + 17 / - 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8030
SELECT ALL + COUNT( * ) + - MAX( - - CAST( + - 46 AS SIGNED ) ) + + MIN( ALL + 2 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL + COUNT ( * ) + - MAX ( - - CAST ( + - 46 AS INTEGER ) ) + + MIN ( ALL + 2 ) AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8031
SELECT SUM( + + 48 ), 42 + 5 + - COUNT( * ) + - - COUNT( * ) + + + COUNT( * ) * + NULLIF ( - COUNT( * ), CAST( - + 36 AS DECIMAL ) * - 18 ) + 38 + 79 AS col2
----
48
163

skipif mysql # not compatible
query II rowsort label-8031
SELECT SUM ( + + 48 ), 42 + 5 + - COUNT ( * ) + - - COUNT ( * ) + + + COUNT ( * ) * + NULLIF ( - COUNT ( * ), CAST ( - + 36 AS REAL ) * - 18 ) + 38 + 79 AS col2
----
48
163

query I rowsort
SELECT - - ( - 72 ) AS col1
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8033
SELECT NULLIF ( + + MAX( - NULLIF ( 35, + + 18 * + CAST( - 10 AS SIGNED ) * NULLIF ( + ( + 16 ), 74 ) - 58 + - 24 ) ), + 28 )
----
-35

skipif mysql # not compatible
query I rowsort label-8033
SELECT NULLIF ( + + MAX ( - NULLIF ( 35, + + 18 * + CAST ( - 10 AS INTEGER ) * NULLIF ( + ( + 16 ), 74 ) - 58 + - 24 ) ), + 28 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT 78 * + + 43 * 15 + + COUNT( * ) AS col1
----
50311

skipif mysql # not compatible
query I rowsort label-8034
SELECT 78 * + + 43 * 15 + + COUNT ( * ) AS col1
----
50311

onlyif mysql # aggregate syntax: 
query II rowsort label-8035
SELECT + 58 + + 74 - - 43 + COUNT( * ) * 60 * - COUNT( * ) * + + 1 * + 45 * 6 AS col1, + 33 * + COUNT( * ) + + COUNT( * )
----
-16025
34

skipif mysql # not compatible
query II rowsort label-8035
SELECT + 58 + + 74 - - 43 + COUNT ( * ) * 60 * - COUNT ( * ) * + + 1 * + 45 * 6 AS col1, + 33 * + COUNT ( * ) + + COUNT ( * )
----
-16025
34

query I rowsort
SELECT ALL + 70 * - 9
----
-630

onlyif mysql # aggregate syntax: 
query II rowsort label-8037
SELECT - MAX( 30 ) AS col1, ( - 42 ) * + 59 + + COALESCE ( + - 37, + 62 - + CASE + 12 WHEN + + 61 THEN 72 WHEN - + 61 * + 46 / - 94 + + - 81 THEN NULL ELSE + 23 * + ( + + 6 ) * 62 * - 45 - - + 50 END ) + + + 86 + - 43 * + 13 * - 81 * COALESCE ( + SUM( + + 30 ), + 46, - - 36 ) + 66 * - + 71
----
-30
1351255

skipif mysql # not compatible
query II rowsort label-8037
SELECT - MAX ( 30 ) AS col1, ( - 42 ) * + 59 + + COALESCE ( + - 37, + 62 - + CASE + 12 WHEN + + 61 THEN 72 WHEN - + 61 * + 46 / - 94 + + - 81 THEN NULL ELSE + 23 * + ( + + 6 ) * 62 * - 45 - - + 50 END ) + + + 86 + - 43 * + 13 * - 81 * COALESCE ( + SUM ( + + 30 ), + 46, - - 36 ) + 66 * - + 71
----
-30
1351255

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT ALL - + 86 - + COUNT( * ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL - + 86 - + COUNT ( * ) AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT DISTINCT + + COUNT( * ) * COUNT( * ) * ( - + 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT + + COUNT ( * ) * COUNT ( * ) * ( - + 37 )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8040
SELECT DISTINCT + - CASE - COUNT( * ) WHEN 52 THEN - - 79 * + 70 + + 15 + - 69 / - COUNT( * ) + - - COUNT( * ) + - CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8040
SELECT DISTINCT + - CASE - COUNT ( * ) WHEN 52 THEN - - 79 * + 70 + + 15 + - 69 / - COUNT ( * ) + - - COUNT ( * ) + - CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8041
SELECT DISTINCT ( - + CASE WHEN NOT AVG ( + - 84 ) > COUNT( * ) + - 87 * - + 84 * - NULLIF ( + - COUNT( * ), MAX( DISTINCT CAST( - + 2 AS SIGNED ) ) ) THEN NULL ELSE + - 30 END ) * + + COUNT( * ) - - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT ( - + CASE WHEN NOT AVG ( + - 84 ) > COUNT ( * ) + - 87 * - + 84 * - NULLIF ( + - COUNT ( * ), MAX ( DISTINCT CAST ( - + 2 AS INTEGER ) ) ) THEN NULL ELSE + - 30 END ) * + + COUNT ( * ) - - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT - - COUNT( * ) + - + 68 + - + MIN( 96 ) * + + COUNT( + 87 ) AS col0
----
-163

skipif mysql # not compatible
query I rowsort label-8042
SELECT - - COUNT ( * ) + - + 68 + - + MIN ( 96 ) * + + COUNT ( + 87 ) AS col0
----
-163

query I rowsort
SELECT - 67 * + - 94 * - 66 AS col2
----
-415668

query II rowsort
SELECT + 73 * ( 40 ) AS col1, 80 * - - 54 AS col1
----
2920
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT - COUNT( * ) - 31 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-8045
SELECT - COUNT ( * ) - 31 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT + COUNT( + - 28 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8046
SELECT + COUNT ( + - 28 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8047
SELECT COALESCE ( - 52, 75, - ( MAX( ALL + 86 ) ) + - CAST( NULL AS SIGNED ), - + 71 )
----
-52

skipif mysql # not compatible
query I rowsort label-8047
SELECT COALESCE ( - 52, 75, - ( MAX ( ALL + 86 ) ) + - CAST ( NULL AS INTEGER ), - + 71 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT - COALESCE ( 48, + 46 + + ( - 55 ) ) * 77 + ( - + 57 ) + + SUM( ALL 93 ) col1
----
-3660

skipif mysql # not compatible
query I rowsort label-8048
SELECT - COALESCE ( 48, + 46 + + ( - 55 ) ) * 77 + ( - + 57 ) + + SUM ( ALL 93 ) col1
----
-3660

onlyif mysql # DIV for integer division: 
query I rowsort label-8049
SELECT ALL 31 DIV + + 65 * - ( + + 43 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL 31 / + + 65 * - ( + + 43 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT + COUNT( + + 34 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8050
SELECT + COUNT ( + + 34 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8051
SELECT DISTINCT COALESCE ( - 92, + 1 * 15 + - 75 ) * 66 DIV 79 * + + 26 * - - 7 AS col0
----
-13832

skipif mysql # not compatible
query I rowsort label-8051
SELECT DISTINCT COALESCE ( - 92, + 1 * 15 + - 75 ) * 66 / 79 * + + 26 * - - 7 AS col0
----
-13832

query I rowsort
SELECT DISTINCT 1 * 2 + - 23 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT - ( - NULLIF ( + + 1, 40 ) ) * - NULLIF ( - + COUNT( * ), + 24 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8053
SELECT - ( - NULLIF ( + + 1, 40 ) ) * - NULLIF ( - + COUNT ( * ), + 24 ) AS col2
----
1

query I rowsort
SELECT + 83 * 52 * - - 58 * + 65 AS col0
----
16271320

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT MIN( + 61 ) col2
----
61

skipif mysql # not compatible
query I rowsort label-8055
SELECT MIN ( + 61 ) col2
----
61

query I rowsort
SELECT + 47 * - 84 AS col2
----
-3948

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT MIN( - - COALESCE ( 22, - - 98 * 98 ) ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-8057
SELECT MIN ( - - COALESCE ( 22, - - 98 * 98 ) ) AS col2
----
22

query I rowsort
SELECT ALL NULLIF ( 61, - 28 ) + 84 + + - 31
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-8059
SELECT - - 44 AS col0, COUNT( * ) AS col1
----
44
1

skipif mysql # not compatible
query II rowsort label-8059
SELECT - - 44 AS col0, COUNT ( * ) AS col1
----
44
1

query I rowsort
SELECT ALL 9 + + - 59 AS col2
----
-50

query I rowsort
SELECT + + ( - 9 ) * + 93
----
-837

query I rowsort
SELECT DISTINCT + 9 * - - 74
----
666

query I rowsort
SELECT ALL NULLIF ( - 8, + 14 / - 42 )
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-8064
SELECT ALL + 65 + + + 21 + - 75 DIV - + 4
----
104

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL + 65 + + + 21 + - 75 / - + 4
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT + + 60 + + COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-8065
SELECT + + 60 + + COUNT ( * ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT + - 85 + COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-8066
SELECT + - 85 + COUNT ( * )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8067
SELECT - CAST( NULL AS SIGNED ) / ( + + 68 ) / - COUNT( * ) + - 83 + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-8067
SELECT - CAST ( NULL AS INTEGER ) / ( + + 68 ) / - COUNT ( * ) + - 83 + 95
----
NULL

query I rowsort
SELECT + 86 + + 87 AS col0
----
173

query I rowsort
SELECT ALL + + 37 - + + CASE + + 16 WHEN + + 0 THEN NULL WHEN - ( + + 43 ) THEN - + 30 + - 13 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT - 9 - + NULLIF ( + - COUNT( * ), - 72 )
----
-8

skipif mysql # not compatible
query I rowsort label-8070
SELECT - 9 - + NULLIF ( + - COUNT ( * ), - 72 )
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8071
SELECT ALL - 33 DIV MIN( ALL + - 19 ) - - + 12 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL - 33 / MIN ( ALL + - 19 ) - - + 12 AS col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-8072
SELECT - - 28 * 80 * + COUNT( * ), 11 AS col2
----
2240
11

skipif mysql # not compatible
query II rowsort label-8072
SELECT - - 28 * 80 * + COUNT ( * ), 11 AS col2
----
2240
11

query II rowsort
SELECT - + 69 + - 14 * - 47 AS col1, 9 AS col0
----
589
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8074
SELECT ALL + 89 DIV - - 75
----
1

skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL + 89 / - - 75
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8075
SELECT + - MIN( DISTINCT - 94 ) + - NULLIF ( - 82, + 67 + 19 ), + 18 + 3 * + 81 + 2 * + 50 DIV + 50 AS col0
----
176
263

skipif mysql # not compatible
query II rowsort label-8075
SELECT + - MIN ( DISTINCT - 94 ) + - NULLIF ( - 82, + 67 + 19 ), + 18 + 3 * + 81 + 2 * + 50 / + 50 AS col0
----
176
263

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8076
SELECT - - MIN( + - 50 ) DIV 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8076
SELECT - - MIN ( + - 50 ) / 70 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT - NULLIF ( + 71, + 80 * + 27 ) + + COUNT( * ) - - 72 + - - 31 * + 29 * + 61 * + 84 AS col1
----
4606478

skipif mysql # not compatible
query I rowsort label-8077
SELECT - NULLIF ( + 71, + 80 * + 27 ) + + COUNT ( * ) - - 72 + - - 31 * + 29 * + 61 * + 84 AS col1
----
4606478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8078
SELECT - 10 DIV ( + MAX( ALL - 81 ) ) - + 82
----
-82

skipif mysql # not compatible
query I rowsort label-8078
SELECT - 10 / ( + MAX ( ALL - 81 ) ) - + 82
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT ALL - 79 * - SUM( 54 )
----
4266

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL - 79 * - SUM ( 54 )
----
4266

query I rowsort
SELECT ALL - 6 * - COALESCE ( + 92, 86 * + - ( - + 60 ) )
----
552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8081
SELECT + CAST( NULL AS SIGNED ) * 34 * - COALESCE ( - 38, + + CASE - 51 WHEN 56 * 48 THEN - CASE - 23 WHEN - - 19 / 40 + + - 11 THEN NULL ELSE + 23 END WHEN ( - 17 ) * + 7 * 63 + - 47 THEN - 29 WHEN + 3 / - 67 THEN NULL ELSE NULL END + 86 ) + + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8081
SELECT + CAST ( NULL AS INTEGER ) * 34 * - COALESCE ( - 38, + + CASE - 51 WHEN 56 * 48 THEN - CASE - 23 WHEN - - 19 / 40 + + - 11 THEN NULL ELSE + 23 END WHEN ( - 17 ) * + 7 * 63 + - 47 THEN - 29 WHEN + 3 / - 67 THEN NULL ELSE NULL END + 86 ) + + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8082
SELECT ALL 97 DIV 87 + - - 72 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL 97 / 87 + - - 72 AS col1
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-8083
SELECT - 83 * + COUNT( * ), 72 - 16 AS col2
----
-83
56

skipif mysql # not compatible
query II rowsort label-8083
SELECT - 83 * + COUNT ( * ), 72 - 16 AS col2
----
-83
56

query I rowsort
SELECT - 95 + - 70
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT ( + MAX( + 72 ) ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-8085
SELECT ( + MAX ( + 72 ) ) AS col0
----
72

query I rowsort
SELECT ( - - 21 ) AS col2
----
21

query I rowsort
SELECT + CASE - 8 WHEN 87 + 19 THEN - - 73 ELSE NULL END
----
NULL

query I rowsort
SELECT ( + 13 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT ALL + MIN( - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL + MIN ( - 77 )
----
-77

query I rowsort
SELECT + 53 * - - 3 AS col2
----
159

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8091
SELECT ALL - COUNT( * ) * + MIN( DISTINCT - 48 ) * - CAST( NULL AS DECIMAL ) + - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL - COUNT ( * ) * + MIN ( DISTINCT - 48 ) * - CAST ( NULL AS REAL ) + - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8092
SELECT + NULLIF ( + COUNT( * ), + + COUNT( * ) DIV + 77 * + 93 + - - COUNT( 73 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8092
SELECT + NULLIF ( + COUNT ( * ), + + COUNT ( * ) / + 77 * + 93 + - - COUNT ( 73 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT ALL - 80 * - NULLIF ( 83, - COUNT( * ) ) AS col2
----
6640

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL - 80 * - NULLIF ( 83, - COUNT ( * ) ) AS col2
----
6640

query I rowsort
SELECT + + ( 18 ) + 4 + + 62 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT - 94 * + 5 * + - 36 + 14 + 78 * - - NULLIF ( - 84, - 59 * + + 22 / - ( - 57 ) + - SUM( + 91 ) * + - 72 ) col1
----
10382

skipif mysql # not compatible
query I rowsort label-8095
SELECT - 94 * + 5 * + - 36 + 14 + 78 * - - NULLIF ( - 84, - 59 * + + 22 / - ( - 57 ) + - SUM ( + 91 ) * + - 72 ) col1
----
10382

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8096
SELECT - 30 DIV + + 56 * - ( 55 ) + + ( CASE + 52 WHEN 30 + - 87 DIV + 24 - - COUNT( * ) THEN NULL WHEN - 36 THEN NULL ELSE + SUM( - 50 ) END ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-8096
SELECT - 30 / + + 56 * - ( 55 ) + + ( CASE + 52 WHEN 30 + - 87 / + 24 - - COUNT ( * ) THEN NULL WHEN - 36 THEN NULL ELSE + SUM ( - 50 ) END ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT + COUNT( DISTINCT 50 ) * + - 41 * 66 + + + 31 + + 1 * + ( - - 56 )
----
-2619

skipif mysql # not compatible
query I rowsort label-8097
SELECT + COUNT ( DISTINCT 50 ) * + - 41 * 66 + + + 31 + + 1 * + ( - - 56 )
----
-2619

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8098
SELECT - CAST( + CAST( + + 11 AS SIGNED ) AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-8098
SELECT - CAST ( + CAST ( + + 11 AS INTEGER ) AS INTEGER )
----
-11

query II rowsort
SELECT 20 AS col0, + 76 * 5 AS col2
----
20
380

query I rowsort
SELECT - 81 * + - 12 - 15 + 33
----
990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8101
SELECT ALL 22 AS col0, CAST( NULL AS SIGNED ) + + - MIN( DISTINCT - 39 ) + - - 60 * + 16
----
22
NULL

skipif mysql # not compatible
query II rowsort label-8101
SELECT ALL 22 AS col0, CAST ( NULL AS INTEGER ) + + - MIN ( DISTINCT - 39 ) + - - 60 * + 16
----
22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT DISTINCT - COUNT( ALL + + 20 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8102
SELECT DISTINCT - COUNT ( ALL + + 20 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8103
SELECT DISTINCT - + 31 * + MAX( DISTINCT - 84 ) * 90 - 16 DIV + 6 col2, + 66 col0
----
234358
66

skipif mysql # not compatible
query II rowsort label-8103
SELECT DISTINCT - + 31 * + MAX ( DISTINCT - 84 ) * 90 - 16 / + 6 col2, + 66 col0
----
234358
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT + 79 * + 77 + COUNT( * ) AS col0
----
6084

skipif mysql # not compatible
query I rowsort label-8104
SELECT + 79 * + 77 + COUNT ( * ) AS col0
----
6084

query II rowsort
SELECT ALL + 51 AS col1, + 58 col0
----
51
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8106
SELECT COALESCE ( + + CAST( + 25 AS SIGNED ), 64 + - 24 ) + - 14 + - 20 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-8106
SELECT COALESCE ( + + CAST ( + 25 AS INTEGER ), 64 + - 24 ) + - 14 + - 20 AS col2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8107
SELECT - COUNT( * ) * + - COUNT( * ), COALESCE ( - + 70, + + 62 DIV + 56, - + 81 + + 47 ) col1
----
1
-70

skipif mysql # not compatible
query II rowsort label-8107
SELECT - COUNT ( * ) * + - COUNT ( * ), COALESCE ( - + 70, + + 62 / + 56, - + 81 + + 47 ) col1
----
1
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT 15 * - 50 - - + COUNT( * ) * - 98 AS col2
----
-848

skipif mysql # not compatible
query I rowsort label-8108
SELECT 15 * - 50 - - + COUNT ( * ) * - 98 AS col2
----
-848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8109
SELECT DISTINCT + CAST( + - 80 AS SIGNED ) * + 44 AS col0
----
-3520

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT + CAST ( + - 80 AS INTEGER ) * + 44 AS col0
----
-3520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8110
SELECT COUNT( + + 65 ) * - 8 DIV COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-8110
SELECT COUNT ( + + 65 ) * - 8 / COUNT ( * ) AS col0
----
-8

query I rowsort
SELECT 7 + 50
----
57

query I rowsort
SELECT DISTINCT 84 * - 62 * ( + + 10 ) * - 28 + - 21
----
1458219

query I rowsort
SELECT ALL 19 * + + 89 * - 50 * + ( - - 23 ) AS col1
----
-1944650

onlyif mysql # DIV for integer division: 
query II rowsort label-8114
SELECT DISTINCT 78 + + 62 + 8 + - - 45 + + 4 DIV - 74 DIV - 9 col0, 0 AS col0
----
193
0

skipif mysql # not compatible
query II rowsort label-8114
SELECT DISTINCT 78 + + 62 + 8 + - - 45 + + 4 / - 74 / - 9 col0, 0 AS col0
----
193
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8115
SELECT DISTINCT + 29 DIV - 22 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8115
SELECT DISTINCT + 29 / - 22 AS col2
----
-1

query I rowsort
SELECT DISTINCT 13 + - + 47
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8117
SELECT DISTINCT COUNT( * ) DIV + 69 AS col1, + 63 col2
----
0
63

skipif mysql # not compatible
query II rowsort label-8117
SELECT DISTINCT COUNT ( * ) / + 69 AS col1, + 63 col2
----
0
63

query I rowsort
SELECT 93 * - 78 * + 60 AS col1
----
-435240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8119
SELECT CAST( NULLIF ( - COUNT( * ), 98 + + ( + 22 ) + + + ( + - 32 ) / + 70 + CAST( NULL AS SIGNED ) ) AS SIGNED ) - - 32
----
31

skipif mysql # not compatible
query I rowsort label-8119
SELECT CAST ( NULLIF ( - COUNT ( * ), 98 + + ( + 22 ) + + + ( + - 32 ) / + 70 + CAST ( NULL AS INTEGER ) ) AS INTEGER ) - - 32
----
31

query I rowsort
SELECT 32 * + 64
----
2048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8121
SELECT ALL + CAST( + 29 AS SIGNED ) + - 17
----
12

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL + CAST ( + 29 AS INTEGER ) + - 17
----
12

query I rowsort
SELECT DISTINCT 64 + - - 33
----
97

query I rowsort
SELECT 32 * + ( + + 21 ) AS col1
----
672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8124
SELECT DISTINCT - 58 - + 15 + - 49 DIV SUM( - 57 ) + + - 48 + + 93 + - - 9 + + + 75 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8124
SELECT DISTINCT - 58 - + 15 + - 49 / SUM ( - 57 ) + + - 48 + + 93 + - - 9 + + + 75 AS col2
----
56

query I rowsort
SELECT - 18 * + + 47 * 59 AS col1
----
-49914

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8126
SELECT 50 * + - CAST( + 17 AS SIGNED ) AS col0, 70 * - + 54 + + + 38 * 37
----
-850
-2374

skipif mysql # not compatible
query II rowsort label-8126
SELECT 50 * + - CAST ( + 17 AS INTEGER ) AS col0, 70 * - + 54 + + + 38 * 37
----
-850
-2374

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8127
SELECT COUNT( + 74 ) DIV - 49 DIV 12
----
0

skipif mysql # not compatible
query I rowsort label-8127
SELECT COUNT ( + 74 ) / - 49 / 12
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8128
SELECT DISTINCT - - CASE 25 WHEN + 19 THEN NULL ELSE + ( 58 ) + + CAST( + COUNT( * ) AS SIGNED ) END col0
----
59

skipif mysql # not compatible
query I rowsort label-8128
SELECT DISTINCT - - CASE 25 WHEN + 19 THEN NULL ELSE + ( 58 ) + + CAST ( + COUNT ( * ) AS INTEGER ) END col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8129
SELECT ALL - ( + 3 ) - + 0 * - - CAST( NULL AS SIGNED ) + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL - ( + 3 ) - + 0 * - - CAST ( NULL AS INTEGER ) + + 50
----
NULL

query I rowsort
SELECT + 55 * + + 31 - + - 59 + + 35
----
1799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8131
SELECT CAST( 2 AS SIGNED ) - + 23
----
-21

skipif mysql # not compatible
query I rowsort label-8131
SELECT CAST ( 2 AS INTEGER ) - + 23
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8132
SELECT DISTINCT + 55 DIV + 9 AS col0, + COUNT( * )
----
6
1

skipif mysql # not compatible
query II rowsort label-8132
SELECT DISTINCT + 55 / + 9 AS col0, + COUNT ( * )
----
6
1

query I rowsort
SELECT ALL COALESCE ( - 94, - + 69 ) * - NULLIF ( - 5, - - 40 + + ( + 61 ) ) * - 51 + 39 * + 82 + + 99
----
27267

onlyif mysql # DIV for integer division: 
query II rowsort label-8134
SELECT DISTINCT ( 18 ), 71 DIV - + 33 AS col2
----
18
-2

skipif mysql # not compatible
query II rowsort label-8134
SELECT DISTINCT ( 18 ), 71 / - + 33 AS col2
----
18
-2

query I rowsort
SELECT + 27 - 98 * 52 - - 56 + + ( 19 )
----
-4994

onlyif mysql # aggregate syntax: 
query II rowsort label-8136
SELECT ALL ( - 66 ) AS col1, + COUNT( * ) AS col1
----
-66
1

skipif mysql # not compatible
query II rowsort label-8136
SELECT ALL ( - 66 ) AS col1, + COUNT ( * ) AS col1
----
-66
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT ALL + + MAX( 53 ) * 84 - + + 98 * 11 + - + COUNT( * )
----
3373

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL + + MAX ( 53 ) * 84 - + + 98 * 11 + - + COUNT ( * )
----
3373

query I rowsort
SELECT ALL 26 + - - 14 AS col0
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-8139
SELECT DISTINCT - 34 + - - 37 * + - COUNT( * ) AS col1, 3 * - - 10 AS col2
----
-71
30

skipif mysql # not compatible
query II rowsort label-8139
SELECT DISTINCT - 34 + - - 37 * + - COUNT ( * ) AS col1, 3 * - - 10 AS col2
----
-71
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT ALL COUNT( * ) * + 21 * - + 44 * - ( - 94 ) AS col1
----
-86856

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL COUNT ( * ) * + 21 * - + 44 * - ( - 94 ) AS col1
----
-86856

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT NULLIF ( 41, - 8 + + 1 ) * COUNT( * ) + + 18 + - ( COUNT( * ) ) + 60
----
118

skipif mysql # not compatible
query I rowsort label-8141
SELECT NULLIF ( 41, - 8 + + 1 ) * COUNT ( * ) + + 18 + - ( COUNT ( * ) ) + 60
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-8142
SELECT 7 + 73 * 2 DIV + 11
----
20

skipif mysql # not compatible
query I rowsort label-8142
SELECT 7 + 73 * 2 / + 11
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8143
SELECT ALL 72 + COALESCE ( 13, - COALESCE ( - NULLIF ( - + 52, - 13 ), - ( - - 32 ), - ( + 15 ) ) ) - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL 72 + COALESCE ( 13, - COALESCE ( - NULLIF ( - + 52, - 13 ), - ( - - 32 ), - ( + 15 ) ) ) - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 43, - 93 AS col0
----
43
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8145
SELECT NULLIF ( - 60, + 24 + - 30 + + 98 ) + - 0 * + + CAST( ( + - 97 ) AS SIGNED ) + + + 71
----
11

skipif mysql # not compatible
query I rowsort label-8145
SELECT NULLIF ( - 60, + 24 + - 30 + + 98 ) + - 0 * + + CAST ( ( + - 97 ) AS INTEGER ) + + + 71
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT MIN( 97 ) + + + 31
----
128

skipif mysql # not compatible
query I rowsort label-8146
SELECT MIN ( 97 ) + + + 31
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT SUM( - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-8147
SELECT SUM ( - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT ALL MIN( ALL - 72 ) * + - ( + NULLIF ( ( SUM( - 43 ) ), 53 * 77 + + 49 ) )
----
-3096

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL MIN ( ALL - 72 ) * + - ( + NULLIF ( ( SUM ( - 43 ) ), 53 * 77 + + 49 ) )
----
-3096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8149
SELECT SUM( + 8 ) DIV + COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-8149
SELECT SUM ( + 8 ) / + COUNT ( * ) AS col1
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8150
SELECT MIN( ALL - 61 ) DIV 3 + - - COUNT( * ) + + + 44 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-8150
SELECT MIN ( ALL - 61 ) / 3 + - - COUNT ( * ) + + + 44 AS col0
----
25

query I rowsort
SELECT DISTINCT + 10 * 82 + - CASE - 28 WHEN - ( 71 ) THEN - 6 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8152
SELECT ALL COUNT( * ) * + ( + COUNT( + + 78 ) ) * + ( - CAST( + MAX( 22 ) AS SIGNED ) ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL COUNT ( * ) * + ( + COUNT ( + + 78 ) ) * + ( - CAST ( + MAX ( 22 ) AS INTEGER ) ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT MAX( 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-8153
SELECT MAX ( 44 ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT DISTINCT CASE - MIN( + 18 ) WHEN 77 + + 34 / 54 * 48 THEN 3 END * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8154
SELECT DISTINCT CASE - MIN ( + 18 ) WHEN 77 + + 34 / 54 * 48 THEN 3 END * + 86
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8155
SELECT ALL + 81 DIV 66 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL + 81 / 66 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT + CASE 23 WHEN + 80 THEN NULL ELSE + COUNT( 21 ) END
----
1

skipif mysql # not compatible
query I rowsort label-8156
SELECT + CASE 23 WHEN + 80 THEN NULL ELSE + COUNT ( 21 ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT MIN( + + 1 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8157
SELECT MIN ( + + 1 ) col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8158
SELECT 22 DIV 73 * ( - 69 )
----
0

skipif mysql # not compatible
query I rowsort label-8158
SELECT 22 / 73 * ( - 69 )
----
0

query I rowsort
SELECT 57 * + 38
----
2166

onlyif mysql # DIV for integer division: 
query I rowsort label-8160
SELECT ALL + 78 DIV 20
----
3

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL + 78 / 20
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8161
SELECT CAST( NULL AS SIGNED ) + - 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8161
SELECT CAST ( NULL AS INTEGER ) + - 52 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8162
SELECT 50 - COUNT( * ) * 43 * + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * + 0 + 2 + + 90 + - CAST( NULL AS SIGNED ) * 95 * CAST( NULL AS SIGNED ) * + + 35 * + ( - COUNT( * ) ) * - 82 + 81 + - + 83 / - + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-8162
SELECT 50 - COUNT ( * ) * 43 * + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 0 + 2 + + 90 + - CAST ( NULL AS INTEGER ) * 95 * CAST ( NULL AS INTEGER ) * + + 35 * + ( - COUNT ( * ) ) * - 82 + 81 + - + 83 / - + 40
----
NULL

query I rowsort
SELECT + 86 * + 84 AS col0
----
7224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8164
SELECT - - 26 * 49 * - 57 * - - ( 91 ) + + CAST( NULL AS DECIMAL ) - - 87 + COALESCE ( - - MAX( ALL + ( - 89 ) ), + SUM( + 71 ) + + CAST( - 41 AS SIGNED ) + 5 * + 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8164
SELECT - - 26 * 49 * - 57 * - - ( 91 ) + + CAST ( NULL AS REAL ) - - 87 + COALESCE ( - - MAX ( ALL + ( - 89 ) ), + SUM ( + 71 ) + + CAST ( - 41 AS INTEGER ) + 5 * + 63 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT ALL + - COUNT( * ) * + 45 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL + - COUNT ( * ) * + 45 AS col1
----
-45

query II rowsort
SELECT - ( + - 59 ) + 72 AS col2, 0 AS col2
----
131
0

query II rowsort
SELECT - 75 + 49 - - COALESCE ( - - 19, + 72 ) + + 34 * + ( 45 ) AS col1, - 59 * 2
----
1523
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT DISTINCT + + CASE + 94 WHEN + 29 * - 81 THEN 77 WHEN + - 20 * - 25 * + NULLIF ( + ( + - 22 ), - 99 ) THEN NULL WHEN - NULLIF ( - + 10, 5 ) THEN NULL END * + + 60 * 84 * + SUM( ALL - + 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8168
SELECT DISTINCT + + CASE + 94 WHEN + 29 * - 81 THEN 77 WHEN + - 20 * - 25 * + NULLIF ( + ( + - 22 ), - 99 ) THEN NULL WHEN - NULLIF ( - + 10, 5 ) THEN NULL END * + + 60 * 84 * + SUM ( ALL - + 22 )
----
NULL

query I rowsort
SELECT + 19 * + 87 AS col0
----
1653

onlyif mysql # aggregate syntax: 
query II rowsort label-8170
SELECT - - 98 AS col1, - COUNT( * )
----
98
-1

skipif mysql # not compatible
query II rowsort label-8170
SELECT - - 98 AS col1, - COUNT ( * )
----
98
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT DISTINCT + + MAX( 70 ) + + 88 + - - 78 * - 37 * + + 2 + - COALESCE ( + 99, - - 59 ) AS col2
----
-5713

skipif mysql # not compatible
query I rowsort label-8171
SELECT DISTINCT + + MAX ( 70 ) + + 88 + - - 78 * - 37 * + + 2 + - COALESCE ( + 99, - - 59 ) AS col2
----
-5713

query I rowsort
SELECT - - 21 * + - 31 AS col0
----
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ALL + COUNT( * ) + - 96
----
-95

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL + COUNT ( * ) + - 96
----
-95

query I rowsort
SELECT ALL - - 59 + - 74 + + 47
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-8175
SELECT ALL - 61 + + 8 * + 56 - + 36 AS col0, - 73 * ( + COUNT( * ) ) + + 33 AS col2
----
351
-40

skipif mysql # not compatible
query II rowsort label-8175
SELECT ALL - 61 + + 8 * + 56 - + 36 AS col0, - 73 * ( + COUNT ( * ) ) + + 33 AS col2
----
351
-40

query I rowsort
SELECT - 91 * + 26 AS col0
----
-2366

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8177
SELECT ALL - COUNT( * ) DIV 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL - COUNT ( * ) / 17 AS col1
----
0

query I rowsort
SELECT + 60 * + 59 AS col0
----
3540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8179
SELECT - 72 + + - ( - COUNT( * ) ) + - NULLIF ( + - 90, - CAST( NULL AS SIGNED ) ) * + - 84 + + 87 AS col0
----
-7544

skipif mysql # not compatible
query I rowsort label-8179
SELECT - 72 + + - ( - COUNT ( * ) ) + - NULLIF ( + - 90, - CAST ( NULL AS INTEGER ) ) * + - 84 + + 87 AS col0
----
-7544

onlyif mysql # DIV for integer division: 
query I rowsort label-8180
SELECT - 59 DIV - - 91 + 52
----
52

skipif mysql # not compatible
query I rowsort label-8180
SELECT - 59 / - - 91 + 52
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8181
SELECT DISTINCT - COUNT( ALL + 51 ) DIV 66 - 6
----
-6

skipif mysql # not compatible
query I rowsort label-8181
SELECT DISTINCT - COUNT ( ALL + 51 ) / 66 - 6
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT ALL + COUNT( ALL 50 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL + COUNT ( ALL 50 ) AS col1
----
1

query II rowsort
SELECT + 94 + 90, + 98 AS col0
----
184
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT 59 * + COUNT( * ) + - 45 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-8184
SELECT 59 * + COUNT ( * ) + - 45 AS col0
----
14

query I rowsort
SELECT + 10 * 8 + + - 47 * 92 AS col0
----
-4244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8186
SELECT ALL - COALESCE ( - + 57, + COUNT( * ) * + ( - 72 ) * - 86 - 39 + - + 52 - + 60, - MIN( - 29 ) ) DIV - 79 * + - 52 col1
----
0

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL - COALESCE ( - + 57, + COUNT ( * ) * + ( - 72 ) * - 86 - 39 + - + 52 - + 60, - MIN ( - 29 ) ) / - 79 * + - 52 col1
----
0

query I rowsort
SELECT DISTINCT + 88 * + 92 + + 40 AS col0
----
8136

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT ALL - 55 * - + 82 + + + MAX( ALL 67 ) * 11
----
5247

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL - 55 * - + 82 + + + MAX ( ALL 67 ) * 11
----
5247

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT + COUNT( DISTINCT - + ( + 32 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8189
SELECT + COUNT ( DISTINCT - + ( + 32 ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8190
SELECT + - CAST( - + 36 AS SIGNED ) - + 10
----
26

skipif mysql # not compatible
query I rowsort label-8190
SELECT + - CAST ( - + 36 AS INTEGER ) - + 10
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8191
SELECT + - 17 DIV COUNT( * ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-8191
SELECT + - 17 / COUNT ( * ) AS col1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-8192
SELECT + - 11 DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-8192
SELECT + - 11 / 36
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8193
SELECT ALL - 14 * 16 + ( - 71 ), COUNT( * ) + - 72 - 62 * COALESCE ( + 74, 78 - + + 8 + + 82 ) AS col1
----
-295
-4659

skipif mysql # not compatible
query II rowsort label-8193
SELECT ALL - 14 * 16 + ( - 71 ), COUNT ( * ) + - 72 - 62 * COALESCE ( + 74, 78 - + + 8 + + 82 ) AS col1
----
-295
-4659

onlyif mysql # aggregate syntax: 
query II rowsort label-8194
SELECT - 91 * + + 3 - - MIN( - 49 ) AS col1, + 93
----
-322
93

skipif mysql # not compatible
query II rowsort label-8194
SELECT - 91 * + + 3 - - MIN ( - 49 ) AS col1, + 93
----
-322
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT - MAX( + 94 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-8195
SELECT - MAX ( + 94 ) AS col0
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8196
SELECT DISTINCT COALESCE ( + - 96, + COALESCE ( - 4, - + 66, - 15 * + COUNT( * ) * + + 91 ) * + CASE + - COUNT( * ) WHEN 99 + - 67 THEN - ( 34 ) WHEN - 86 THEN NULL END, MAX( DISTINCT - - 47 ) ) * CAST( + 10 AS SIGNED ) * + 71 + - + 65 + - 4 + 89 + + 70 + 88 * 57 AS col1
----
-63054

skipif mysql # not compatible
query I rowsort label-8196
SELECT DISTINCT COALESCE ( + - 96, + COALESCE ( - 4, - + 66, - 15 * + COUNT ( * ) * + + 91 ) * + CASE + - COUNT ( * ) WHEN 99 + - 67 THEN - ( 34 ) WHEN - 86 THEN NULL END, MAX ( DISTINCT - - 47 ) ) * CAST ( + 10 AS INTEGER ) * + 71 + - + 65 + - 4 + 89 + + 70 + 88 * 57 AS col1
----
-63054

onlyif mysql # DIV for integer division: 
query I rowsort label-8197
SELECT + 39 DIV - - 16 + + - 19
----
-17

skipif mysql # not compatible
query I rowsort label-8197
SELECT + 39 / - - 16 + + - 19
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT ALL - 85 * + + COUNT( * ) + 87 + 16
----
18

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL - 85 * + + COUNT ( * ) + 87 + 16
----
18

query I rowsort
SELECT DISTINCT 74 * - 91 + + 8 + + + 51 AS col0
----
-6675

query I rowsort
SELECT DISTINCT 57 * + 61 + + 98
----
3575

query I rowsort
SELECT ALL + 13 * + 43 + ( - 54 ) AS col2
----
505

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT ALL - 99 * + - COUNT( * ) + 47 AS col1
----
146

skipif mysql # not compatible
query I rowsort label-8202
SELECT ALL - 99 * + - COUNT ( * ) + 47 AS col1
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8203
SELECT - - CAST( NULL AS SIGNED ) * - NULLIF ( - NULLIF ( 24, + CAST( NULL AS DECIMAL ) ), + - ( 82 ) + - + 98 / + + NULLIF ( - - 21, + 47 ) + - MAX( ALL - 66 ) + COUNT( * ) + 44 + + NULLIF ( + - 97, - COUNT( * ) * + 1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8203
SELECT - - CAST ( NULL AS INTEGER ) * - NULLIF ( - NULLIF ( 24, + CAST ( NULL AS REAL ) ), + - ( 82 ) + - + 98 / + + NULLIF ( - - 21, + 47 ) + - MAX ( ALL - 66 ) + COUNT ( * ) + 44 + + NULLIF ( + - 97, - COUNT ( * ) * + 1 ) )
----
NULL

query II rowsort
SELECT - 4, - 80 AS col1
----
-4
-80

query I rowsort
SELECT DISTINCT - NULLIF ( 81, + + 2 ) * + 49
----
-3969

query I rowsort
SELECT ALL + 89 + + 4
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT + 31 + + MAX( 31 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-8207
SELECT + 31 + + MAX ( 31 ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT - 7 + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-8208
SELECT - 7 + COUNT ( * )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8209
SELECT DISTINCT - ( + 88 ) / ( + AVG ( ALL CAST( NULL AS SIGNED ) ) ) - 21 + - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT DISTINCT - ( + 88 ) / ( + AVG ( ALL CAST ( NULL AS INTEGER ) ) ) - 21 + - 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8210
SELECT ALL COALESCE ( + CASE + - ( - COUNT( * ) ) WHEN 90 * + 26 THEN - + 30 ELSE + COUNT( DISTINCT - + 48 ) DIV + + 46 + + + 56 + + 3 * + COUNT( * ) - + COUNT( * ) END, + - 28, - COUNT( * ) ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL COALESCE ( + CASE + - ( - COUNT ( * ) ) WHEN 90 * + 26 THEN - + 30 ELSE + COUNT ( DISTINCT - + 48 ) / + + 46 + + + 56 + + 3 * + COUNT ( * ) - + COUNT ( * ) END, + - 28, - COUNT ( * ) ) AS col2
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8211
SELECT DISTINCT + 71 - 43 DIV + - 60
----
71

skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT + 71 - 43 / + - 60
----
71

query I rowsort
SELECT - 77 + + 65 * - 41
----
-2742

query I rowsort
SELECT - 53 + 76 AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8214
SELECT - 65 DIV + 26
----
-2

skipif mysql # not compatible
query I rowsort label-8214
SELECT - 65 / + 26
----
-2

query I rowsort
SELECT - 71 * 82 col0
----
-5822

query I rowsort
SELECT ALL - ( + 99 ) * - 92
----
9108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8217
SELECT ALL CAST( - + 9 AS SIGNED ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL CAST ( - + 9 AS INTEGER ) col2
----
-9

query I rowsort
SELECT DISTINCT + ( + 36 ) * + - 95
----
-3420

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT ALL - MIN( ALL 84 ) * + ( + - 89 ) * + 58 * 72 + + 58 * 32
----
31221632

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL - MIN ( ALL 84 ) * + ( + - 89 ) * + 58 * 72 + + 58 * 32
----
31221632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8220
SELECT ALL + CAST( NULL AS SIGNED ) * - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL + CAST ( NULL AS INTEGER ) * - 27 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8221
SELECT 47 * COALESCE ( + NULLIF ( 93, - 16 * + CAST( NULL AS DECIMAL ) ), - 88 DIV - CASE - - COUNT( * ) WHEN + 3 THEN + 39 ELSE - - NULLIF ( + + COUNT( * ), - + 77 ) END DIV 78 - - 19 )
----
4371

skipif mysql # not compatible
query I rowsort label-8221
SELECT 47 * COALESCE ( + NULLIF ( 93, - 16 * + CAST ( NULL AS REAL ) ), - 88 / - CASE - - COUNT ( * ) WHEN + 3 THEN + 39 ELSE - - NULLIF ( + + COUNT ( * ), - + 77 ) END / 78 - - 19 )
----
4371

query I rowsort
SELECT DISTINCT + 37 + - 3 AS col0
----
34

query I rowsort
SELECT ALL + 19 + 59 AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8224
SELECT 53 + + 3 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT 53 + + 3 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT + COUNT( * ) * 24 - 18
----
6

skipif mysql # not compatible
query I rowsort label-8225
SELECT + COUNT ( * ) * 24 - 18
----
6

query I rowsort
SELECT 98 - + 38 * 70
----
-2562

query I rowsort
SELECT ALL 57 + - 47 AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8228
SELECT + 35 * 79 + - 68 DIV 64 AS col1
----
2764

skipif mysql # not compatible
query I rowsort label-8228
SELECT + 35 * 79 + - 68 / 64 AS col1
----
2764

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT ALL + 19 + ( ( + SUM( DISTINCT 39 ) ) ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-8229
SELECT ALL + 19 + ( ( + SUM ( DISTINCT 39 ) ) ) AS col1
----
58

query I rowsort
SELECT DISTINCT - 65 + 5 AS col2
----
-60

query I rowsort
SELECT ALL - 47 * - 83 AS col2
----
3901

query I rowsort
SELECT ( 75 ) + 58
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT COUNT( * ) + + COUNT( - 36 ) * - 96 col1
----
-95

skipif mysql # not compatible
query I rowsort label-8233
SELECT COUNT ( * ) + + COUNT ( - 36 ) * - 96 col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT DISTINCT COUNT( * ) - + 29 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT COUNT ( * ) - + 29 AS col0
----
-28

query I rowsort
SELECT 32 + 9 AS col1
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8236
SELECT ALL COUNT( * ) DIV + 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL COUNT ( * ) / + 79 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8237
SELECT COUNT( * ) * SUM( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT COUNT ( * ) * SUM ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8238
SELECT DISTINCT 72 DIV 38
----
1

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT 72 / 38
----
1

query I rowsort
SELECT DISTINCT 48 - + 50 AS col0
----
-2

query I rowsort
SELECT DISTINCT 1 * 76 AS col1
----
76

query I rowsort
SELECT ALL 36 * - 86 AS col0
----
-3096

query I rowsort
SELECT 22 - 56 AS col0
----
-34

query I rowsort
SELECT 57 * 40
----
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT COUNT( * ) * - 74 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-8244
SELECT COUNT ( * ) * - 74 AS col0
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-8245
SELECT 47 DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-8245
SELECT 47 / 63
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8246
SELECT ALL - 50 + + 54 DIV 33
----
-49

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL - 50 + + 54 / 33
----
-49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8247
SELECT 19 DIV NULLIF ( 67, - 49 * + 84 + CAST( NULL AS SIGNED ) * 44 ) + - 54 * 1
----
-54

skipif mysql # not compatible
query I rowsort label-8247
SELECT 19 / NULLIF ( 67, - 49 * + 84 + CAST ( NULL AS INTEGER ) * 44 ) + - 54 * 1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8248
SELECT + ( 61 ) - CASE 43 WHEN - CAST( 69 AS DECIMAL ) * ( - COUNT( DISTINCT - 8 ) / - COUNT( * ) ) THEN 6 * ( + 23 ) WHEN 10 + 44 THEN + COUNT( * ) + - 38 WHEN + 3 / COUNT( * ) THEN NULL ELSE + 50 * 31 + 9 END AS col1
----
-1498

skipif mysql # not compatible
query I rowsort label-8248
SELECT + ( 61 ) - CASE 43 WHEN - CAST ( 69 AS REAL ) * ( - COUNT ( DISTINCT - 8 ) / - COUNT ( * ) ) THEN 6 * ( + 23 ) WHEN 10 + 44 THEN + COUNT ( * ) + - 38 WHEN + 3 / COUNT ( * ) THEN NULL ELSE + 50 * 31 + 9 END AS col1
----
-1498

query I rowsort
SELECT ALL + ( + 34 ) + 81
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-8250
SELECT + 94 DIV - 71 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8250
SELECT + 94 / - 71 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT + + 84 * SUM( ALL 37 ) + - 36
----
3072

skipif mysql # not compatible
query I rowsort label-8251
SELECT + + 84 * SUM ( ALL 37 ) + - 36
----
3072

query I rowsort
SELECT DISTINCT + - 82 + - 83 * + 69 AS col2
----
-5809

query I rowsort
SELECT DISTINCT - 87 * 45 AS col0
----
-3915

query I rowsort
SELECT DISTINCT + 65 + - 46 * - 41 AS col2
----
1951

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT + + NULLIF ( 26, + 58 * CASE - 29 WHEN 30 * - 27 THEN + 19 * + 85 ELSE + MAX( DISTINCT - 41 ) - NULLIF ( + 94, - 31 ) END )
----
26

skipif mysql # not compatible
query I rowsort label-8255
SELECT + + NULLIF ( 26, + 58 * CASE - 29 WHEN 30 * - 27 THEN + 19 * + 85 ELSE + MAX ( DISTINCT - 41 ) - NULLIF ( + 94, - 31 ) END )
----
26

query I rowsort
SELECT - 44 * 7 AS col0
----
-308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8257
SELECT DISTINCT - MAX( ( + NULLIF ( + 28, - CAST( NULL AS SIGNED ) ) ) )
----
-28

skipif mysql # not compatible
query I rowsort label-8257
SELECT DISTINCT - MAX ( ( + NULLIF ( + 28, - CAST ( NULL AS INTEGER ) ) ) )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-8258
SELECT ALL + + 40 - + 76 DIV 64 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL + + 40 - + 76 / 64 AS col2
----
39

query I rowsort
SELECT - 97 - 55 AS col1
----
-152

query I rowsort
SELECT 82 * 27 - + 92 AS col1
----
2122

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT + SUM( + 77 ) * + 50 AS col0
----
3850

skipif mysql # not compatible
query I rowsort label-8261
SELECT + SUM ( + 77 ) * + 50 AS col0
----
3850

query I rowsort
SELECT DISTINCT - 71 * 62
----
-4402

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT + ( + CASE - 0 WHEN - COUNT( * ) THEN NULL WHEN + 86 + 22 / - NULLIF ( COUNT( * ) * CASE + 21 WHEN 57 THEN - COUNT( * ) * 29 ELSE NULL END, 10 * 6 ) THEN 50 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8263
SELECT + ( + CASE - 0 WHEN - COUNT ( * ) THEN NULL WHEN + 86 + 22 / - NULLIF ( COUNT ( * ) * CASE + 21 WHEN 57 THEN - COUNT ( * ) * 29 ELSE NULL END, 10 * 6 ) THEN 50 END ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8264
SELECT ALL + 25 DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL + 25 / - 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT DISTINCT - MIN( ALL NULLIF ( 21, + ( 3 ) ) ) - 6 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT - MIN ( ALL NULLIF ( 21, + ( 3 ) ) ) - 6 AS col0
----
-27

query I rowsort
SELECT 22 - - 86 AS col0
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8267
SELECT ALL COALESCE ( 60, ( 84 ) + CAST( NULL AS SIGNED ) ) col1
----
60

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL COALESCE ( 60, ( 84 ) + CAST ( NULL AS INTEGER ) ) col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT ALL + COUNT( - - 36 ) * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL + COUNT ( - - 36 ) * + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT 6 + - 69 - 33 * 57 * COUNT( * ) AS col2
----
-1944

skipif mysql # not compatible
query I rowsort label-8269
SELECT 6 + - 69 - 33 * 57 * COUNT ( * ) AS col2
----
-1944

query I rowsort
SELECT ( - - 0 ) * + 26 AS col2
----
0

query I rowsort
SELECT + 42 + + 56
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8272
SELECT ALL CAST( + + CASE - 30 WHEN COUNT( * ) THEN NULL WHEN 67 + - 5 * 52 THEN 65 END AS SIGNED ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL CAST ( + + CASE - 30 WHEN COUNT ( * ) THEN NULL WHEN 67 + - 5 * 52 THEN 65 END AS INTEGER ) / COUNT ( * )
----
NULL

query I rowsort
SELECT + 59 * 92 * - 1 col1
----
-5428

query I rowsort
SELECT + 18 + - 95 - 14 * - 84
----
1099

query I rowsort
SELECT + 24 - 17
----
7

query I rowsort
SELECT + 35 * + - 77
----
-2695

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT ALL ( - COUNT( - 45 ) ) + + 87 * ( + 50 ) col2
----
4349

skipif mysql # not compatible
query I rowsort label-8277
SELECT ALL ( - COUNT ( - 45 ) ) + + 87 * ( + 50 ) col2
----
4349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8278
SELECT ALL CAST( NULL AS SIGNED ) / ( - AVG ( + 25 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL CAST ( NULL AS INTEGER ) / ( - AVG ( + 25 ) )
----
NULL

query I rowsort
SELECT + 88 + - 2 + 27 AS col2
----
113

query I rowsort
SELECT + ( 25 ) + 16 * - 82 col1
----
-1287

query I rowsort
SELECT - COALESCE ( 8, 92 + 54, 79 ) AS col0
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8282
SELECT ALL + SUM( DISTINCT - - 96 ) + - 25 DIV COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL + SUM ( DISTINCT - - 96 ) + - 25 / COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT + NULLIF ( MAX( - 32 ), NULLIF ( - 44, + 7 + - 33 * COUNT( * ) ) ) col0
----
-32

skipif mysql # not compatible
query I rowsort label-8283
SELECT + NULLIF ( MAX ( - 32 ), NULLIF ( - 44, + 7 + - 33 * COUNT ( * ) ) ) col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8284
SELECT + - 87 + - 14 / CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8284
SELECT + - 87 + - 14 / CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + 84 * + 30 * + 89 + - 8 AS col0
----
224272

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT - 13 * + NULLIF ( COUNT( * ), - 97 + SUM( 82 ) ) + - 43 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-8286
SELECT - 13 * + NULLIF ( COUNT ( * ), - 97 + SUM ( 82 ) ) + - 43 AS col0
----
-56

query I rowsort
SELECT ALL 80 * - - 25 - 1 + 54
----
2053

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT - 14 - - - 81 * COUNT( DISTINCT + 91 )
----
-95

skipif mysql # not compatible
query I rowsort label-8288
SELECT - 14 - - - 81 * COUNT ( DISTINCT + 91 )
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8289
SELECT ( - 92 ) DIV + COUNT( * ) + - 98 AS col0
----
-190

skipif mysql # not compatible
query I rowsort label-8289
SELECT ( - 92 ) / + COUNT ( * ) + - 98 AS col0
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT + CASE + + 6 WHEN ( 81 ) THEN NULL WHEN + 26 THEN NULL WHEN SUM( - 61 ) THEN + 17 ELSE NULL END * - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8290
SELECT + CASE + + 6 WHEN ( 81 ) THEN NULL WHEN + 26 THEN NULL WHEN SUM ( - 61 ) THEN + 17 ELSE NULL END * - 60
----
NULL

query I rowsort
SELECT - + 22 * - 16 * + 34 AS col1
----
11968

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT + + 11 + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-8292
SELECT + + 11 + COUNT ( * )
----
12

query I rowsort
SELECT - + 7 * + - 14 - 1 AS col1
----
97

query I rowsort
SELECT DISTINCT + 0 * + - 62 * 96 + + 69
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT ALL - 42 * - 79 * - COUNT( ALL - 54 * 82 )
----
-3318

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL - 42 * - 79 * - COUNT ( ALL - 54 * 82 )
----
-3318

query I rowsort
SELECT - - 31 - + 11 + 39 AS col2
----
59

query I rowsort
SELECT - + 61 * 16
----
-976

query I rowsort
SELECT DISTINCT - 85 * - ( - 41 )
----
-3485

query I rowsort
SELECT ALL + NULLIF ( - 60, - 84 ) * + 23
----
-1380

query I rowsort
SELECT - 2 + + - 63 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT DISTINCT + CASE 90 WHEN 30 THEN NULL WHEN 46 THEN NULL ELSE + COUNT( * ) * - 80 + - 54 END AS col2
----
-134

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT + CASE 90 WHEN 30 THEN NULL WHEN 46 THEN NULL ELSE + COUNT ( * ) * - 80 + - 54 END AS col2
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT DISTINCT + MAX( - 22 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT + MAX ( - 22 ) AS col2
----
-22

query I rowsort
SELECT - 48 * - 60
----
2880

query I rowsort
SELECT - 43 * + - 12 + + - 6 col1
----
510

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT - COALESCE ( - COUNT( * ), 42 * 18 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8305
SELECT - COALESCE ( - COUNT ( * ), 42 * 18 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8306
SELECT ALL + 67 + + 46 + + 29 * - AVG ( ALL CAST( NULL AS SIGNED ) + - ( + 1 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL + 67 + + 46 + + 29 * - AVG ( ALL CAST ( NULL AS INTEGER ) + - ( + 1 ) ) AS col2
----
NULL

query I rowsort
SELECT - 18 * - 69 AS col2
----
1242

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT DISTINCT COALESCE ( 35, 31, + MAX( 96 ) + 94, + NULLIF ( 81, - 33 / 5 ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT COALESCE ( 35, 31, + MAX ( 96 ) + 94, + NULLIF ( 81, - 33 / 5 ) ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-8309
SELECT - COUNT( * ), + COUNT( * ) * COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-8309
SELECT - COUNT ( * ), + COUNT ( * ) * COUNT ( * ) AS col1
----
-1
1

query I rowsort
SELECT ALL + ( - 3 ) + - + 14 + 6 * - 52 AS col2
----
-329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8311
SELECT DISTINCT + 50 + - COUNT( * ) * + - CAST( NULL AS SIGNED ) + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT + 50 + - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + - 51
----
NULL

query I rowsort
SELECT ALL - 96 + - 19 + 29 * + 68
----
1857

query II rowsort
SELECT - 43, 83 AS col1
----
-43
83

query I rowsort
SELECT ALL 46 + - 23
----
23

query I rowsort
SELECT - + 58 - - 76
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8316
SELECT - CAST( NULL AS SIGNED ) AS col0, COALESCE ( 80, - 59 * - 85 + + 7, + 19, + 61 ) * COUNT( * ) AS col1
----
NULL
80

skipif mysql # not compatible
query II rowsort label-8316
SELECT - CAST ( NULL AS INTEGER ) AS col0, COALESCE ( 80, - 59 * - 85 + + 7, + 19, + 61 ) * COUNT ( * ) AS col1
----
NULL
80

onlyif mysql # DIV for integer division: 
query I rowsort label-8317
SELECT ALL ( + COALESCE ( 29, + 7 DIV 90 ) )
----
29

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL ( + COALESCE ( 29, + 7 / 90 ) )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8318
SELECT + - COUNT( ALL CAST( NULL AS SIGNED ) ) DIV + + 37
----
0

skipif mysql # not compatible
query I rowsort label-8318
SELECT + - COUNT ( ALL CAST ( NULL AS INTEGER ) ) / + + 37
----
0

query I rowsort
SELECT + + 78 * - + 37
----
-2886

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8320
SELECT DISTINCT + NULLIF ( + + CAST( NULL AS DECIMAL ), + 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8320
SELECT DISTINCT + NULLIF ( + + CAST ( NULL AS REAL ), + 85 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8321
SELECT ALL 20 + + - 49 DIV - 41
----
21

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL 20 + + - 49 / - 41
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8322
SELECT + ( CASE - - 8 WHEN NULLIF ( 47, - 40 ) + - 95 * 19 THEN - 73 - + 37 WHEN MIN( - 96 ) THEN NULL ELSE + MIN( 24 ) END ) DIV - 17
----
-1

skipif mysql # not compatible
query I rowsort label-8322
SELECT + ( CASE - - 8 WHEN NULLIF ( 47, - 40 ) + - 95 * 19 THEN - 73 - + 37 WHEN MIN ( - 96 ) THEN NULL ELSE + MIN ( 24 ) END ) / - 17
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT ALL MAX( ALL 38 ) * - 38 + 27
----
-1417

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL MAX ( ALL 38 ) * - 38 + 27
----
-1417

onlyif mysql # aggregate syntax: 
query II rowsort label-8324
SELECT + + COUNT( * ) AS col2, 52
----
1
52

skipif mysql # not compatible
query II rowsort label-8324
SELECT + + COUNT ( * ) AS col2, 52
----
1
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8325
SELECT ALL 98 DIV + 22 - - 17 * NULLIF ( 43, NULLIF ( MIN( DISTINCT + 30 ), COUNT( * ) DIV 11 - ( 38 ) ) ) AS col1
----
735

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL 98 / + 22 - - 17 * NULLIF ( 43, NULLIF ( MIN ( DISTINCT + 30 ), COUNT ( * ) / 11 - ( 38 ) ) ) AS col1
----
735

query II rowsort
SELECT + 5 AS col2, - 16 AS col1
----
5
-16

query I rowsort
SELECT + + 82 + + CASE WHEN 65 = + 67 THEN - 34 * 19 END
----
NULL

query I rowsort
SELECT - + 76 * - ( - 1 ) * + 87
----
-6612

onlyif mysql # aggregate syntax: 
query II rowsort label-8329
SELECT - 89, - COUNT( * ) AS col2
----
-89
-1

skipif mysql # not compatible
query II rowsort label-8329
SELECT - 89, - COUNT ( * ) AS col2
----
-89
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8330
SELECT - + COUNT( * ) * - 47 * - - 87 + + CAST( NULL AS SIGNED ) * - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-8330
SELECT - + COUNT ( * ) * - 47 * - - 87 + + CAST ( NULL AS INTEGER ) * - 33
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8331
SELECT DISTINCT - 43 * + NULLIF ( SUM( 0 ), + 41 + NULLIF ( COUNT( ALL ( 18 ) ), 43 * 72 ) * + MIN( DISTINCT NULLIF ( 2, - CAST( NULL AS SIGNED ) ) ) ) * COUNT( * ) - - 47
----
47

skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT - 43 * + NULLIF ( SUM ( 0 ), + 41 + NULLIF ( COUNT ( ALL ( 18 ) ), 43 * 72 ) * + MIN ( DISTINCT NULLIF ( 2, - CAST ( NULL AS INTEGER ) ) ) ) * COUNT ( * ) - - 47
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8332
SELECT ALL + 72, + 3 * + + CAST( 80 AS SIGNED ) * 63 AS col1
----
72
15120

skipif mysql # not compatible
query II rowsort label-8332
SELECT ALL + 72, + 3 * + + CAST ( 80 AS INTEGER ) * 63 AS col1
----
72
15120

query I rowsort
SELECT ALL + - ( 26 ) col2
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-8334
SELECT ALL 43 DIV - 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL 43 / - 71 AS col0
----
0

query I rowsort
SELECT + 49 * - 38
----
-1862

query I rowsort
SELECT + 66 - 97 + - 89 col2
----
-120

query I rowsort
SELECT DISTINCT - ( - 23 ) * + ( 8 ) * NULLIF ( 95, 47 * 56 )
----
17480

query I rowsort
SELECT ALL - 36 + - 32 * - 48
----
1500

query I rowsort
SELECT 31 + ( + + 43 )
----
74

query I rowsort
SELECT DISTINCT 42 + - 16 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT ALL - ( - COUNT( * ) ) + + + 38 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL - ( - COUNT ( * ) ) + + + 38 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT ALL + 36 + - + ( + - COUNT( 94 ) ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL + 36 + - + ( + - COUNT ( 94 ) ) AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8343
SELECT + 63 * + 73 - + - 11 + - CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED ) * - 28 * NULLIF ( ( + ( - NULLIF ( - CAST( - SUM( ALL - 46 ) AS SIGNED ), - 18 ) ) ), ( 44 ) ) * - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8343
SELECT + 63 * + 73 - + - 11 + - CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER ) * - 28 * NULLIF ( ( + ( - NULLIF ( - CAST ( - SUM ( ALL - 46 ) AS INTEGER ), - 18 ) ) ), ( 44 ) ) * - 47 AS col0
----
NULL

query I rowsort
SELECT ALL + 64 + 74
----
138

query I rowsort
SELECT 47 + 27 * 93 + + + 19 AS col0
----
2577

query I rowsort
SELECT 56 + 79 + - 37
----
98

query I rowsort
SELECT 66 + 8
----
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8348
SELECT ALL + 7 - CASE + NULLIF ( 65, - 77 - + SUM( - 45 ) * 66 ) WHEN 30 THEN + 30 END + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL + 7 - CASE + NULLIF ( 65, - 77 - + SUM ( - 45 ) * 66 ) WHEN 30 THEN + 30 END + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT DISTINCT - MAX( + 14 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT - MAX ( + 14 ) AS col2
----
-14

query I rowsort
SELECT ALL NULLIF ( + 78, - - 92 ) col2
----
78

query I rowsort
SELECT + 74 * COALESCE ( + CASE - + 57 WHEN 27 * - 5 THEN + 33 ELSE CASE 59 WHEN + 35 THEN NULL WHEN + 48 * 6 THEN - 46 END * + 52 END, - 63 ) AS col0
----
-4662

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT ALL - - 21 * - 65 - - + ( + + COUNT( * ) ) * + 79
----
-1286

skipif mysql # not compatible
query I rowsort label-8352
SELECT ALL - - 21 * - 65 - - + ( + + COUNT ( * ) ) * + 79
----
-1286

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT DISTINCT - COUNT( - 66 ) - - 29 - - + CASE 90 WHEN + 43 * - 61 THEN NULL WHEN 99 + 16 THEN 12 + COUNT( * ) ELSE NULL END * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT - COUNT ( - 66 ) - - 29 - - + CASE 90 WHEN + 43 * - 61 THEN NULL WHEN 99 + 16 THEN 12 + COUNT ( * ) ELSE NULL END * 64
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - - 58, + ( - 93 ) ) col0
----
-58

query I rowsort
SELECT CASE - 89 WHEN 66 * 24 + + 44 THEN 29 * 93 WHEN + 54 / 25 THEN NULL ELSE NULL END + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT ALL - MIN( DISTINCT + 49 ) * - COUNT( * ) + + + 69 + 75 * - 83 * SUM( 3 ) AS col2
----
-18557

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL - MIN ( DISTINCT + 49 ) * - COUNT ( * ) + + + 69 + 75 * - 83 * SUM ( 3 ) AS col2
----
-18557

query I rowsort
SELECT + 40 * - - 92 AS col2
----
3680

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT 28 * + COUNT( * ) * + NULLIF ( - - 68, 56 )
----
1904

skipif mysql # not compatible
query I rowsort label-8358
SELECT 28 * + COUNT ( * ) * + NULLIF ( - - 68, 56 )
----
1904

query I rowsort
SELECT - ( - + ( - + 98 ) ) + - + 83 - + 93
----
-274

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8360
SELECT DISTINCT + 83 DIV COUNT( * ) AS col1, COUNT( * ) * 89 AS col0
----
83
89

skipif mysql # not compatible
query II rowsort label-8360
SELECT DISTINCT + 83 / COUNT ( * ) AS col1, COUNT ( * ) * 89 AS col0
----
83
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8361
SELECT DISTINCT - + CAST( - 59 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-8361
SELECT DISTINCT - + CAST ( - 59 AS INTEGER )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT ALL 34 * + - CASE + + COUNT( * ) WHEN + 87 / 76 THEN NULL WHEN 58 + 89 / NULLIF ( + 48, 19 ) THEN 19 * + 65 END + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL 34 * + - CASE + + COUNT ( * ) WHEN + 87 / 76 THEN NULL WHEN 58 + 89 / NULLIF ( + 48, 19 ) THEN 19 * + 65 END + 54 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8363
SELECT 99 DIV + 21 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-8363
SELECT 99 / + 21 AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8364
SELECT ALL - - SUM( - + 76 ) DIV COUNT( * ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-8364
SELECT ALL - - SUM ( - + 76 ) / COUNT ( * ) AS col1
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-8365
SELECT DISTINCT + ( - - NULLIF ( 55, + 97 ) ) DIV - 48 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT + ( - - NULLIF ( 55, + 97 ) ) / - 48 AS col2
----
-1

query I rowsort
SELECT ALL - 59 * - 40 AS col1
----
2360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8367
SELECT - - 55 * - MIN( ALL + 43 ) * 71 * - ( 89 * COUNT( * ) ) + 1 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT - - 55 * - MIN ( ALL + 43 ) * 71 * - ( 89 * COUNT ( * ) ) + 1 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8368
SELECT - COUNT( - + 22 ) * 35 + CAST( NULL AS SIGNED ) + COUNT( * ) + + 49 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT - COUNT ( - + 22 ) * 35 + CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 49 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8369
SELECT 12 + - COUNT( * ) + 46 * + 82 + - - 72 DIV - ( 64 )
----
3782

skipif mysql # not compatible
query I rowsort label-8369
SELECT 12 + - COUNT ( * ) + 46 * + 82 + - - 72 / - ( 64 )
----
3782

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT 51 * - COUNT( * ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-8370
SELECT 51 * - COUNT ( * ) AS col0
----
-51

query I rowsort
SELECT ALL 37 + - 64 col1
----
-27

query I rowsort
SELECT 22 + - 73 AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8373
SELECT 95 DIV + 97 * 95 - + COUNT( * ) + - + NULLIF ( 92, 45 ) + 78 * + 68 col1
----
5211

skipif mysql # not compatible
query I rowsort label-8373
SELECT 95 / + 97 * 95 - + COUNT ( * ) + - + NULLIF ( 92, 45 ) + 78 * + 68 col1
----
5211

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT - 35 * 58 + + ( + + COUNT( * ) )
----
-2029

skipif mysql # not compatible
query I rowsort label-8374
SELECT - 35 * 58 + + ( + + COUNT ( * ) )
----
-2029

query I rowsort
SELECT ALL 30 + - 31 * NULLIF ( 74, - + 5 / 13 ) AS col2
----
-2264

query I rowsort
SELECT 41 * - 10
----
-410

query I rowsort
SELECT 95 * + 34 + - 27 * + - 21 * 87
----
52559

query I rowsort
SELECT ALL ( 20 ) + + - 17 - 79
----
-76

query I rowsort
SELECT DISTINCT 36 + 54 AS col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8380
SELECT ALL - 5 * + + COUNT( * ) DIV + + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL - 5 * + + COUNT ( * ) / + + 86 AS col1
----
0

query I rowsort
SELECT ALL 71 + - - 77 AS col2
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8382
SELECT DISTINCT 88 DIV - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-8382
SELECT DISTINCT 88 / - COUNT ( * )
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8383
SELECT ALL 23 * CASE + 15 WHEN + + CAST( NULL AS SIGNED ) * 3 THEN 60 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL 23 * CASE + 15 WHEN + + CAST ( NULL AS INTEGER ) * 3 THEN 60 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8384
SELECT MAX( ALL + 39 ) DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-8384
SELECT MAX ( ALL + 39 ) / - 68
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8385
SELECT COUNT( * ) * - 65 + ( - 88 ) * + - CAST( COALESCE ( 89, MIN( DISTINCT 53 ) ) AS SIGNED ) * - 52
----
-407329

skipif mysql # not compatible
query I rowsort label-8385
SELECT COUNT ( * ) * - 65 + ( - 88 ) * + - CAST ( COALESCE ( 89, MIN ( DISTINCT 53 ) ) AS INTEGER ) * - 52
----
-407329

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT - SUM( 64 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-8386
SELECT - SUM ( 64 ) AS col1
----
-64

query I rowsort
SELECT ALL + 33 * + - 36 AS col1
----
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT - SUM( 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-8388
SELECT - SUM ( 37 )
----
-37

query I rowsort
SELECT ALL 87 * - 58
----
-5046

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8390
SELECT MIN( DISTINCT 62 ) DIV + - 97 * + 24 DIV + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8390
SELECT MIN ( DISTINCT 62 ) / + - 97 * + 24 / + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ALL + 87 * 51 AS col1
----
4437

query I rowsort
SELECT ALL - 70 * - + 27 col0
----
1890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8393
SELECT - 81 + + CASE + 62 WHEN NULLIF ( 79, - CAST( NULL AS SIGNED ) ) * 49 THEN + ( - 54 ) WHEN 7 / 87 + - 68 * - 36 THEN NULL END + 74 * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8393
SELECT - 81 + + CASE + 62 WHEN NULLIF ( 79, - CAST ( NULL AS INTEGER ) ) * 49 THEN + ( - 54 ) WHEN 7 / 87 + - 68 * - 36 THEN NULL END + 74 * 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT ALL + - NULLIF ( - 75, - 56 ) - - - COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL + - NULLIF ( - 75, - 56 ) - - - COUNT ( * ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8395
SELECT - CAST( + - 13 AS SIGNED ) + - - 97 col1
----
110

skipif mysql # not compatible
query I rowsort label-8395
SELECT - CAST ( + - 13 AS INTEGER ) + - - 97 col1
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-8396
SELECT ALL + COUNT( * ) col2, + 25 AS col2
----
1
25

skipif mysql # not compatible
query II rowsort label-8396
SELECT ALL + COUNT ( * ) col2, + 25 AS col2
----
1
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT - 38 * COUNT( * ) col1
----
-38

skipif mysql # not compatible
query I rowsort label-8397
SELECT - 38 * COUNT ( * ) col1
----
-38

query I rowsort
SELECT 43 * 26 AS col1
----
1118

query II rowsort
SELECT ALL + 86 AS col1, - ( + 31 ) * - + 12 * - - 39 + - ( 86 )
----
86
14422

onlyif mysql # aggregate syntax: 
query II rowsort label-8400
SELECT - + COUNT( * ), - 33 col0
----
-1
-33

skipif mysql # not compatible
query II rowsort label-8400
SELECT - + COUNT ( * ), - 33 col0
----
-1
-33

query I rowsort
SELECT - ( + - 39 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT COUNT( * ) * - - 98 * - 15
----
-1470

skipif mysql # not compatible
query I rowsort label-8402
SELECT COUNT ( * ) * - - 98 * - 15
----
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT ALL - MIN( ALL 38 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL - MIN ( ALL 38 ) AS col0
----
-38

query I rowsort
SELECT DISTINCT - 21 * - 57
----
1197

query I rowsort
SELECT ALL 27 + + 51 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT - MIN( ALL - 74 ) + + 38 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-8406
SELECT - MIN ( ALL - 74 ) + + 38 AS col1
----
112

query I rowsort
SELECT ALL - + ( - 32 ) * 35
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT - COUNT( * ) * - - 60
----
-60

skipif mysql # not compatible
query I rowsort label-8408
SELECT - COUNT ( * ) * - - 60
----
-60

query I rowsort
SELECT ALL + - 40 * + 27 * 6 + + 75 + 9 * 87 * 2 AS col2
----
-4839

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT + + SUM( ALL 39 )
----
39

skipif mysql # not compatible
query I rowsort label-8410
SELECT + + SUM ( ALL 39 )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8411
SELECT ALL - 97 * - 38 + + 32 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL - 97 * - 38 + + 32 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 43 * + 1 col2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8413
SELECT + COUNT( * ) AS col1, + 66 + - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8413
SELECT + COUNT ( * ) AS col1, + 66 + - CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT NULLIF ( + 74, COUNT( * ) )
----
74

skipif mysql # not compatible
query I rowsort label-8414
SELECT NULLIF ( + 74, COUNT ( * ) )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8415
SELECT ALL 87 * + 21 + COUNT( ALL + 97 ) + - 91 / 29 + ( ( CASE ( CAST( 48 AS SIGNED ) ) WHEN + CASE 19 WHEN COUNT( 44 ) THEN COUNT( * ) + - 2 WHEN - 33 * COALESCE ( 67 * CAST( NULL AS SIGNED ), NULLIF ( 59, 51 ) ) THEN + CAST( - 42 AS SIGNED ) - NULLIF ( 75, - 53 ) ELSE - COUNT( - 6 ) * + COUNT( * ) + COUNT( * ) END * - 90 THEN + 11 WHEN - 31 * NULLIF ( 44, 70 ) THEN + 69 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL 87 * + 21 + COUNT ( ALL + 97 ) + - 91 / 29 + ( ( CASE ( CAST ( 48 AS INTEGER ) ) WHEN + CASE 19 WHEN COUNT ( 44 ) THEN COUNT ( * ) + - 2 WHEN - 33 * COALESCE ( 67 * CAST ( NULL AS INTEGER ), NULLIF ( 59, 51 ) ) THEN + CAST ( - 42 AS INTEGER ) - NULLIF ( 75, - 53 ) ELSE - COUNT ( - 6 ) * + COUNT ( * ) + COUNT ( * ) END * - 90 THEN + 11 WHEN - 31 * NULLIF ( 44, 70 ) THEN + 69 END ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8416
SELECT ALL 89 DIV + 41, ( + 66 ) AS col0, + 18 DIV 88 + - 26 DIV COALESCE ( + 70, 22 + + ( - 45 + COUNT( * ) * + 49 ) ) AS col2
----
2
66
0

skipif mysql # not compatible
query III rowsort label-8416
SELECT ALL 89 / + 41, ( + 66 ) AS col0, + 18 / 88 + - 26 / COALESCE ( + 70, 22 + + ( - 45 + COUNT ( * ) * + 49 ) ) AS col2
----
2
66
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8417
SELECT ALL - COUNT( * ) * + + 24 + AVG ( + CAST( NULL AS SIGNED ) ) AS col1, + 64 + + 67 AS col2
----
NULL
131

skipif mysql # not compatible
query II rowsort label-8417
SELECT ALL - COUNT ( * ) * + + 24 + AVG ( + CAST ( NULL AS INTEGER ) ) AS col1, + 64 + + 67 AS col2
----
NULL
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT DISTINCT + COUNT( * ) * + 41 * - - 66 + - COUNT( * ) * + COUNT( ALL + 99 ) + 89 AS col0
----
2794

skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT + COUNT ( * ) * + 41 * - - 66 + - COUNT ( * ) * + COUNT ( ALL + 99 ) + 89 AS col0
----
2794

onlyif mysql # aggregate syntax: 
query II rowsort label-8419
SELECT + COUNT( * ) AS col2, 60 AS col2
----
1
60

skipif mysql # not compatible
query II rowsort label-8419
SELECT + COUNT ( * ) AS col2, 60 AS col2
----
1
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ALL COUNT( * ) * + COUNT( * ) + - 80 + - 36
----
-115

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL COUNT ( * ) * + COUNT ( * ) + - 80 + - 36
----
-115

query I rowsort
SELECT + 89 * - 15
----
-1335

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8422
SELECT ALL + COALESCE ( - 69, ( COALESCE ( 98, - 60 + COUNT( * ) * 11, ( + 79 ) ) ), + 31 ) DIV 16 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL + COALESCE ( - 69, ( COALESCE ( 98, - 60 + COUNT ( * ) * 11, ( + 79 ) ) ), + 31 ) / 16 AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8423
SELECT + CASE - - MAX( 46 ) WHEN + + COUNT( + 45 ) * - + 52 - + 88 * CAST( NULL AS SIGNED ) THEN + SUM( DISTINCT + 51 ) WHEN 61 THEN 8 / - 66 + + 23 ELSE NULL END / + MAX( DISTINCT ( 75 ) / + 82 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8423
SELECT + CASE - - MAX ( 46 ) WHEN + + COUNT ( + 45 ) * - + 52 - + 88 * CAST ( NULL AS INTEGER ) THEN + SUM ( DISTINCT + 51 ) WHEN 61 THEN 8 / - 66 + + 23 ELSE NULL END / + MAX ( DISTINCT ( 75 ) / + 82 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8424
SELECT ALL 37 * CAST( NULL AS SIGNED ) - - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL 37 * CAST ( NULL AS INTEGER ) - - 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT MAX( DISTINCT - 52 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-8425
SELECT MAX ( DISTINCT - 52 ) AS col0
----
-52

query II rowsort
SELECT + 55 * - + 51 + 85 + - 75, + 8 col1
----
-2795
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT COUNT( ALL + 35 )
----
1

skipif mysql # not compatible
query I rowsort label-8427
SELECT COUNT ( ALL + 35 )
----
1

query I rowsort
SELECT ALL 86 * 71 - - + 8
----
6114

query I rowsort
SELECT DISTINCT 29 * 31 * - 4 AS col0
----
-3596

query I rowsort
SELECT DISTINCT 46 - + 42 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT DISTINCT MIN( - - 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT MIN ( - - 14 ) AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8432
SELECT 30 * - 76 + - 25 * + 98 - + - CASE - + 34 WHEN + CAST( + 49 AS SIGNED ) + - COUNT( * ) THEN NULL ELSE ( - 34 ) + - 31 * COUNT( - 6 / + COALESCE ( 95, 89 ) + - 34 ) END + + 71 * COUNT( * )
----
-4724

skipif mysql # not compatible
query I rowsort label-8432
SELECT 30 * - 76 + - 25 * + 98 - + - CASE - + 34 WHEN + CAST ( + 49 AS INTEGER ) + - COUNT ( * ) THEN NULL ELSE ( - 34 ) + - 31 * COUNT ( - 6 / + COALESCE ( 95, 89 ) + - 34 ) END + + 71 * COUNT ( * )
----
-4724

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT + MIN( ALL - 14 ) + + 21 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-8433
SELECT + MIN ( ALL - 14 ) + + 21 AS col0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8434
SELECT ALL 53 DIV + 79 * 39 + - 84 * - NULLIF ( + + 10, 45 )
----
840

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL 53 / + 79 * 39 + - 84 * - NULLIF ( + + 10, 45 )
----
840

query I rowsort
SELECT + NULLIF ( - + 71, + 73 ) + + + 20 AS col1
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8436
SELECT - + 39 DIV + - MIN( ALL 88 )
----
0

skipif mysql # not compatible
query I rowsort label-8436
SELECT - + 39 / + - MIN ( ALL 88 )
----
0

query II rowsort
SELECT ALL 12 col2, 66 col2
----
12
66

query II rowsort
SELECT - ( - 51 ) col1, 60 * - 79 AS col0
----
51
-4740

query II rowsort
SELECT DISTINCT 68 AS col1, - 55
----
68
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8440
SELECT ALL + - CAST( + - CAST( - 98 AS SIGNED ) AS SIGNED ) * + + 10 AS col2
----
-980

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL + - CAST ( + - CAST ( - 98 AS INTEGER ) AS INTEGER ) * + + 10 AS col2
----
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL - 14 + - COUNT( * ) * MAX( + + 20 ) + - - 38
----
4

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL - 14 + - COUNT ( * ) * MAX ( + + 20 ) + - - 38
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8442
SELECT DISTINCT COUNT( * ) * - - 8 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-8442
SELECT DISTINCT COUNT ( * ) * - - 8 / 79
----
0

query I rowsort
SELECT ALL - - 66 + - 89 AS col2
----
-23

query I rowsort
SELECT ALL + - 3 + - 51 AS col0
----
-54

query I rowsort
SELECT - 86 + 65 col1
----
-21

query II rowsort
SELECT 40 AS col1, 13 AS col2
----
40
13

query I rowsort
SELECT - + 37 * - - 36 col0
----
-1332

query I rowsort
SELECT ALL - 31 + - 86 * + 83 * - + 11 AS col0
----
78487

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT ALL + 73 + - + COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL + 73 + - + COUNT ( * ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-8450
SELECT - COUNT( * ) AS col0, COUNT( * ) + + 12 AS col1
----
-1
13

skipif mysql # not compatible
query II rowsort label-8450
SELECT - COUNT ( * ) AS col0, COUNT ( * ) + + 12 AS col1
----
-1
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT + + ( + + COUNT( + 18 ) ) + + 56 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-8451
SELECT + + ( + + COUNT ( + 18 ) ) + + 56 AS col2
----
57

query I rowsort
SELECT - 19 + NULLIF ( + 24, + 19 )
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8453
SELECT ALL - 26 DIV - + 22 + + 92 * 11 col2
----
1013

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL - 26 / - + 22 + + 92 * 11 col2
----
1013

query I rowsort
SELECT DISTINCT + 22 * + 89
----
1958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8455
SELECT DISTINCT + MIN( ALL + 26 ) DIV + 36 + - 25 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-8455
SELECT DISTINCT + MIN ( ALL + 26 ) / + 36 + - 25 AS col1
----
-25

query I rowsort
SELECT ALL + 4 * + 70
----
280

query I rowsort
SELECT DISTINCT + 23 * + - 89 * - 23
----
47081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8458
SELECT COUNT( * ) * - 45 + - NULLIF ( - COUNT( * ), - CAST( - + CASE + + 75 WHEN 56 THEN 71 WHEN - 8 THEN 87 * - 19 END AS SIGNED ) - 62 ) * + COUNT( + CAST( NULL AS SIGNED ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-8458
SELECT COUNT ( * ) * - 45 + - NULLIF ( - COUNT ( * ), - CAST ( - + CASE + + 75 WHEN 56 THEN 71 WHEN - 8 THEN 87 * - 19 END AS INTEGER ) - 62 ) * + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8459
SELECT + 52 DIV 70 + 23 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-8459
SELECT + 52 / 70 + 23 AS col2
----
23

query I rowsort
SELECT ALL + 5 * + - 35 AS col2
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT - SUM( DISTINCT + 7 ) + + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-8461
SELECT - SUM ( DISTINCT + 7 ) + + COUNT ( * )
----
-6

query I rowsort
SELECT ( - 55 ) col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT + 35 - + ( COUNT( DISTINCT + 61 ) ) * - COUNT( * ) * - 29 * - 27 + - COUNT( * )
----
817

skipif mysql # not compatible
query I rowsort label-8463
SELECT + 35 - + ( COUNT ( DISTINCT + 61 ) ) * - COUNT ( * ) * - 29 * - 27 + - COUNT ( * )
----
817

query I rowsort
SELECT ALL + NULLIF ( - 48, + 42 + + - 92 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT - ( MIN( DISTINCT + - 56 ) ) * - 14 + 93 AS col2
----
-691

skipif mysql # not compatible
query I rowsort label-8465
SELECT - ( MIN ( DISTINCT + - 56 ) ) * - 14 + 93 AS col2
----
-691

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT ( - - SUM( 89 ) )
----
89

skipif mysql # not compatible
query I rowsort label-8466
SELECT ( - - SUM ( 89 ) )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8467
SELECT + CAST( - 49 AS SIGNED ) + + ( - 34 ) + - 67 + 50 + - - MAX( - 48 ) - + 50 * 47
----
-2498

skipif mysql # not compatible
query I rowsort label-8467
SELECT + CAST ( - 49 AS INTEGER ) + + ( - 34 ) + - 67 + 50 + - - MAX ( - 48 ) - + 50 * 47
----
-2498

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8468
SELECT ALL + 69 DIV - 92, 60 + + - COUNT( * ) AS col2
----
0
59

skipif mysql # not compatible
query II rowsort label-8468
SELECT ALL + 69 / - 92, 60 + + - COUNT ( * ) AS col2
----
0
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8469
SELECT DISTINCT + COUNT( ALL 31 ) DIV - + 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT + COUNT ( ALL 31 ) / - + 41 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8470
SELECT - + CAST( NULL AS SIGNED ) * + + 26 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8470
SELECT - + CAST ( NULL AS INTEGER ) * + + 26 col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8471
SELECT + + 42 * 87 AS col1, 57 + + + 91 DIV 84 + - 33
----
3654
25

skipif mysql # not compatible
query II rowsort label-8471
SELECT + + 42 * 87 AS col1, 57 + + + 91 / 84 + - 33
----
3654
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT DISTINCT 42 * 11 - + COUNT( * )
----
461

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT 42 * 11 - + COUNT ( * )
----
461

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT - COUNT( - 24 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8473
SELECT - COUNT ( - 24 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT + + 93 + COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-8474
SELECT + + 93 + COUNT ( * ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT ALL 60 * - CASE - + 19 WHEN + - COUNT( * ) THEN + ( + 48 ) WHEN + MAX( ALL + 78 ) * + 5 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL 60 * - CASE - + 19 WHEN + - COUNT ( * ) THEN + ( + 48 ) WHEN + MAX ( ALL + 78 ) * + 5 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT DISTINCT + 29 * COALESCE ( - + 38, + - COUNT( * ) ) - - ( + COUNT( * ) ) + + - NULLIF ( COUNT( * ), 66 * + 64 )
----
-1102

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT + 29 * COALESCE ( - + 38, + - COUNT ( * ) ) - - ( + COUNT ( * ) ) + + - NULLIF ( COUNT ( * ), 66 * + 64 )
----
-1102

query I rowsort
SELECT DISTINCT + COALESCE ( - ( + 90 ), - + ( 6 ) ) AS col1
----
-90

query II rowsort
SELECT ALL 26 * - 71, 24 AS col0
----
-1846
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8479
SELECT ALL 0 + CASE 15 WHEN - 52 DIV + 39 * + + AVG ( 65 ) THEN NULL ELSE - 91 DIV 71 END + 79 * - 90 AS col0
----
-7111

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL 0 + CASE 15 WHEN - 52 / + 39 * + + AVG ( 65 ) THEN NULL ELSE - 91 / 71 END + 79 * - 90 AS col0
----
-7111

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT ALL - MIN( ALL + 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL - MIN ( ALL + 99 )
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8481
SELECT DISTINCT 44 + - - 70 DIV 49
----
45

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT 44 + - - 70 / 49
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8482
SELECT - 14 + + 65 DIV - 64
----
-15

skipif mysql # not compatible
query I rowsort label-8482
SELECT - 14 + + 65 / - 64
----
-15

query I rowsort
SELECT + 83 * + 18
----
1494

query I rowsort
SELECT ALL + CASE 25 WHEN 76 THEN 36 ELSE - 94 END + + 3 * + 40 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT + MAX( ALL - + 83 ) - + ( + 72 )
----
-155

skipif mysql # not compatible
query I rowsort label-8485
SELECT + MAX ( ALL - + 83 ) - + ( + 72 )
----
-155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8486
SELECT NULLIF ( - 57, + 69 * + 41 + 22 + CAST( - + MAX( 4 ) AS SIGNED ) + + COUNT( - 45 ) / 96 ) * - 13 AS col0
----
741

skipif mysql # not compatible
query I rowsort label-8486
SELECT NULLIF ( - 57, + 69 * + 41 + 22 + CAST ( - + MAX ( 4 ) AS INTEGER ) + + COUNT ( - 45 ) / 96 ) * - 13 AS col0
----
741

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL + 42 + + - COUNT( + 70 ) + - 76 * + 25 * 96
----
-182359

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL + 42 + + - COUNT ( + 70 ) + - 76 * + 25 * 96
----
-182359

query I rowsort
SELECT DISTINCT + 78 * 66 AS col0
----
5148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8489
SELECT 57 DIV - COUNT( * ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-8489
SELECT 57 / - COUNT ( * ) AS col1
----
-57

query I rowsort
SELECT 60 - + 22 - - 42 - + - 77 * 41 * - + 53 * + 17 - + NULLIF ( + 18, ( 87 ) * + 34 ) * + 94 AS col1
----
-2846069

query I rowsort
SELECT 76 * ( + + 2 )
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8492
SELECT DISTINCT + 18 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT + 18 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT + 68 AS col2, 34 * - 32 + - 39 AS col0
----
68
-1127

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT + 22 * - COUNT( * ) * - - 86 + + 89
----
-1803

skipif mysql # not compatible
query I rowsort label-8494
SELECT + 22 * - COUNT ( * ) * - - 86 + + 89
----
-1803

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT DISTINCT - NULLIF ( + - 48, + 6 + - - MIN( NULLIF ( 64, 40 - 65 * + 31 ) ) ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT - NULLIF ( + - 48, + 6 + - - MIN ( NULLIF ( 64, 40 - 65 * + 31 ) ) ) AS col1
----
48

query I rowsort
SELECT 75 * - + 26 AS col2
----
-1950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8497
SELECT ALL + CASE 80 WHEN - 92 * - CAST( 31 AS SIGNED ) - 36 / + CAST( - 3 AS SIGNED ) THEN + 23 WHEN + AVG ( ALL 59 ) THEN NULL WHEN - 31 THEN NULL ELSE COUNT( * ) END * 60
----
60

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL + CASE 80 WHEN - 92 * - CAST ( 31 AS INTEGER ) - 36 / + CAST ( - 3 AS INTEGER ) THEN + 23 WHEN + AVG ( ALL 59 ) THEN NULL WHEN - 31 THEN NULL ELSE COUNT ( * ) END * 60
----
60

query I rowsort
SELECT DISTINCT + 56 * 66
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT DISTINCT - COUNT( - 77 )
----
-1

skipif mysql # not compatible
query I rowsort label-8499
SELECT DISTINCT - COUNT ( - 77 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8500
SELECT CAST( + 66 AS SIGNED ) + - 54 * + - MIN( DISTINCT - 9 ) + + 92
----
-328

skipif mysql # not compatible
query I rowsort label-8500
SELECT CAST ( + 66 AS INTEGER ) + - 54 * + - MIN ( DISTINCT - 9 ) + + 92
----
-328

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8501
SELECT 0 AS col1, ( - ( - - 69 ) ) DIV SUM( + + 91 ) + + NULLIF ( - + 96, 72 DIV SUM( 58 * - 16 ) ) * 6
----
0
-576

skipif mysql # not compatible
query II rowsort label-8501
SELECT 0 AS col1, ( - ( - - 69 ) ) / SUM ( + + 91 ) + + NULLIF ( - + 96, 72 / SUM ( 58 * - 16 ) ) * 6
----
0
-576

query II rowsort
SELECT + 44 AS col1, + 27 AS col0
----
44
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8503
SELECT 15 AS col2, NULLIF ( 50, + CAST( NULL AS SIGNED ) )
----
15
50

skipif mysql # not compatible
query II rowsort label-8503
SELECT 15 AS col2, NULLIF ( 50, + CAST ( NULL AS INTEGER ) )
----
15
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT ALL + + COUNT( * ) + - 14 * COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL + + COUNT ( * ) + - 14 * COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT ALL + - COUNT( * ) + 15 + + 7 + - 79 * + ( - - 23 ) + - 81
----
-1877

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL + - COUNT ( * ) + 15 + + 7 + - 79 * + ( - - 23 ) + - 81
----
-1877

query II rowsort
SELECT DISTINCT - + 92 AS col0, + 13 AS col1
----
-92
13

onlyif mysql # DIV for integer division: 
query I rowsort label-8507
SELECT - 32 + + - 87 + + 45 DIV + 50 * + 31 AS col1
----
-119

skipif mysql # not compatible
query I rowsort label-8507
SELECT - 32 + + - 87 + + 45 / + 50 * + 31 AS col1
----
-119

query I rowsort
SELECT ALL 71 + + 1 AS col0
----
72

query I rowsort
SELECT ALL + - 32 + + + COALESCE ( - 10, + 70 * - 28 ) AS col2
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-8510
SELECT DISTINCT - 23 DIV 12 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT - 23 / 12 AS col2
----
-1

query I rowsort
SELECT ALL - - 19 + - - 82
----
101

query I rowsort
SELECT + NULLIF ( 74, + ( - 80 ) ) * + 63 AS col2
----
4662

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT ALL + COUNT( * ) + + 31 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL + COUNT ( * ) + + 31 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT 46 + MIN( DISTINCT + - 14 )
----
32

skipif mysql # not compatible
query I rowsort label-8514
SELECT 46 + MIN ( DISTINCT + - 14 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT - COUNT( * ) + 1 * + 41 * + 60
----
2459

skipif mysql # not compatible
query I rowsort label-8515
SELECT - COUNT ( * ) + 1 * + 41 * + 60
----
2459

query II rowsort
SELECT ALL 99, ( - 33 ) + - 4 AS col1
----
99
-37

query I rowsort
SELECT ALL 1 - + - 12 * + ( 46 )
----
553

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT ( COUNT( DISTINCT + - 32 ) ) + - + 73 + + + 36 * - COUNT( * ) AS col2
----
-108

skipif mysql # not compatible
query I rowsort label-8518
SELECT ( COUNT ( DISTINCT + - 32 ) ) + - + 73 + + + 36 * - COUNT ( * ) AS col2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT - SUM( - 90 )
----
90

skipif mysql # not compatible
query I rowsort label-8519
SELECT - SUM ( - 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT 50 * + COUNT( - 74 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8520
SELECT 50 * + COUNT ( - 74 ) AS col0
----
50

query I rowsort
SELECT 86 * 94 AS col2
----
8084

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT 56 + COUNT( ALL + 63 )
----
57

skipif mysql # not compatible
query I rowsort label-8522
SELECT 56 + COUNT ( ALL + 63 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8523
SELECT - COUNT( DISTINCT + - 93 ) AS col2, - CAST( + - 60 AS SIGNED ) col1
----
-1
60

skipif mysql # not compatible
query II rowsort label-8523
SELECT - COUNT ( DISTINCT + - 93 ) AS col2, - CAST ( + - 60 AS INTEGER ) col1
----
-1
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT 76 * - + COUNT( * ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-8524
SELECT 76 * - + COUNT ( * ) col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT DISTINCT 6 * + ( - + 66 ) * - COUNT( * )
----
396

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT 6 * + ( - + 66 ) * - COUNT ( * )
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT DISTINCT 23 * - + 18 * + COUNT( * ) * - 12 * + 14
----
69552

skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT 23 * - + 18 * + COUNT ( * ) * - 12 * + 14
----
69552

onlyif mysql # DIV for integer division: 
query I rowsort label-8527
SELECT 65 DIV - 97 * + 84 * - - 71
----
0

skipif mysql # not compatible
query I rowsort label-8527
SELECT 65 / - 97 * + 84 * - - 71
----
0

query I rowsort
SELECT 79 * + - 6 + + 55 + - 7 + - COALESCE ( - 83, + 13 ) * - 51 AS col1
----
-4659

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT ( MAX( DISTINCT + - 20 ) ) * 71 * + + 77 + 42 AS col1
----
-109298

skipif mysql # not compatible
query I rowsort label-8529
SELECT ( MAX ( DISTINCT + - 20 ) ) * 71 * + + 77 + 42 AS col1
----
-109298

query I rowsort
SELECT ( + + 56 ) + + 52 + 49 * ( + COALESCE ( - 41, - + 62 + - - 80 * - 38, 64 ) ) * 25
----
-50117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8531
SELECT DISTINCT - CASE - 87 WHEN + 0 THEN + + 75 - + - 26 ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8531
SELECT DISTINCT - CASE - 87 WHEN + 0 THEN + + 75 - + - 26 ELSE CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT 79 * COUNT( * ) * - + 19 + - - 51
----
-1450

skipif mysql # not compatible
query I rowsort label-8532
SELECT 79 * COUNT ( * ) * - + 19 + - - 51
----
-1450

query I rowsort
SELECT 26 + + 88
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8534
SELECT ALL + CAST( NULL AS SIGNED ) * + 68 + - 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL + CAST ( NULL AS INTEGER ) * + 68 + - 64 AS col0
----
NULL

query I rowsort
SELECT 66 * + ( - 68 ) + - 80 AS col1
----
-4568

query I rowsort
SELECT ALL + 76 + + + 25 * + 52 AS col1
----
1376

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT ALL - + MAX( DISTINCT 91 ) + COUNT( * ) + 10
----
-80

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL - + MAX ( DISTINCT 91 ) + COUNT ( * ) + 10
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT DISTINCT - + SUM( 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-8538
SELECT DISTINCT - + SUM ( 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT ALL - COUNT( DISTINCT - + 82 )
----
-1

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL - COUNT ( DISTINCT - + 82 )
----
-1

query I rowsort
SELECT DISTINCT 4 + - ( + 40 ) AS col2
----
-36

query I rowsort
SELECT ALL + 35 + NULLIF ( - NULLIF ( + + 47, 47 ), 35 + - - 69 ) / + + 17 - + - 35
----
NULL

query II rowsort
SELECT DISTINCT - + 17 * + 99 AS col1, 81 AS col0
----
-1683
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT - ( + 29 ) * - MAX( 58 ) AS col2
----
1682

skipif mysql # not compatible
query I rowsort label-8543
SELECT - ( + 29 ) * - MAX ( 58 ) AS col2
----
1682

query I rowsort
SELECT - 74 * + - 79 * 64 AS col1
----
374144

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8545
SELECT - SUM( DISTINCT 76 ) + - MIN( ALL 96 ) col2, CASE + - AVG ( ALL - 18 ) WHEN - 20 THEN 45 * + CAST( NULL AS DECIMAL ) + COUNT( * ) WHEN - 88 THEN NULL WHEN - 29 THEN NULL END
----
-172
NULL

skipif mysql # not compatible
query II rowsort label-8545
SELECT - SUM ( DISTINCT 76 ) + - MIN ( ALL 96 ) col2, CASE + - AVG ( ALL - 18 ) WHEN - 20 THEN 45 * + CAST ( NULL AS REAL ) + COUNT ( * ) WHEN - 88 THEN NULL WHEN - 29 THEN NULL END
----
-172
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT - + MAX( - 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-8546
SELECT - + MAX ( - 14 ) AS col1
----
14

query I rowsort
SELECT ALL + + 4 - + + 48 AS col0
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-8548
SELECT DISTINCT - - COALESCE ( - 63, - 7 + - 30 ) DIV - 48 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT - - COALESCE ( - 63, - 7 + - 30 ) / - 48 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8549
SELECT - - ( + 4 ) DIV + ( ( - - MAX( ALL + 12 ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8549
SELECT - - ( + 4 ) / + ( ( - - MAX ( ALL + 12 ) ) ) AS col2
----
0

query I rowsort
SELECT - 77 + + 80 AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8551
SELECT DISTINCT - 73 DIV + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8551
SELECT DISTINCT - 73 / + 86 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT ALL + 18 - + MAX( DISTINCT 58 )
----
-40

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL + 18 - + MAX ( DISTINCT 58 )
----
-40

query I rowsort
SELECT - 37 * - 69
----
2553

query I rowsort
SELECT - 13 - + ( - - 51 )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8555
SELECT ALL ( + - COALESCE ( - ( + CAST( NULL AS SIGNED ) ), 79, - COUNT( * ), + 20 * 55 + + 58 ) )
----
-79

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL ( + - COALESCE ( - ( + CAST ( NULL AS INTEGER ) ), 79, - COUNT ( * ), + 20 * 55 + + 58 ) )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT ALL COALESCE ( 59, ( + ( - + NULLIF ( - 24, 33 * - COUNT( * ) ) ) ) * 66 + + COUNT( * ) - 1 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL COALESCE ( 59, ( + ( - + NULLIF ( - 24, 33 * - COUNT ( * ) ) ) ) * 66 + + COUNT ( * ) - 1 ) AS col2
----
59

query I rowsort
SELECT - 7 * - 79 AS col1
----
553

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT - SUM( DISTINCT 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-8558
SELECT - SUM ( DISTINCT 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT DISTINCT + 28 + + ( - 31 ) * + COALESCE ( 89, 64, + COUNT( - 8 ) )
----
-2731

skipif mysql # not compatible
query I rowsort label-8559
SELECT DISTINCT + 28 + + ( - 31 ) * + COALESCE ( 89, 64, + COUNT ( - 8 ) )
----
-2731

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8560
SELECT ALL ( - SUM( DISTINCT - 32 ) ) AS col1, 42 * ( - CAST( NULL AS SIGNED ) ) * 18 * COUNT( * ) AS col2
----
32
NULL

skipif mysql # not compatible
query II rowsort label-8560
SELECT ALL ( - SUM ( DISTINCT - 32 ) ) AS col1, 42 * ( - CAST ( NULL AS INTEGER ) ) * 18 * COUNT ( * ) AS col2
----
32
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8561
SELECT ALL 39 DIV - COUNT( * ) + 81 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL 39 / - COUNT ( * ) + 81 AS col0
----
42

query II rowsort
SELECT DISTINCT + 43 AS col2, 98 AS col0
----
43
98

query I rowsort
SELECT - 41 * - 31 col0
----
1271

onlyif mysql # DIV for integer division: 
query I rowsort label-8564
SELECT DISTINCT 52 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-8564
SELECT DISTINCT 52 / + 66
----
0

query I rowsort
SELECT ALL - NULLIF ( - + ( + 4 ), + 65 ) * - 38 + + 67
----
-85

query I rowsort
SELECT DISTINCT + 53 * - - ( + 11 ) + + 90 col0
----
673

onlyif mysql # DIV for integer division: 
query I rowsort label-8567
SELECT + 93 DIV + 39
----
2

skipif mysql # not compatible
query I rowsort label-8567
SELECT + 93 / + 39
----
2

query I rowsort
SELECT ALL 40 * - 87 + + - 51
----
-3531

query I rowsort
SELECT ALL - ( + 15 ) * - 96 * - - 84 * - 69
----
-8346240

onlyif mysql # DIV for integer division: 
query I rowsort label-8570
SELECT + 23 DIV - 39 * + 69 * + 78
----
0

skipif mysql # not compatible
query I rowsort label-8570
SELECT + 23 / - 39 * + 69 * + 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT + 62 * + ( + + 25 ) * + + COUNT( * ) + - ( + COUNT( * ) )
----
1549

skipif mysql # not compatible
query I rowsort label-8571
SELECT + 62 * + ( + + 25 ) * + + COUNT ( * ) + - ( + COUNT ( * ) )
----
1549

query I rowsort
SELECT + CASE + + 71 WHEN 55 * - + 61 + + 46 * - 47 THEN + + 63 * + 5 WHEN 40 THEN NULL WHEN + 58 THEN NULL END * - ( - 37 ) + - 2
----
NULL

query I rowsort
SELECT + 36 * - - 36 - 86 AS col2
----
1210

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT ALL - 38 * - 93 + 37 + + SUM( + 18 ) AS col2
----
3589

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL - 38 * - 93 + 37 + + SUM ( + 18 ) AS col2
----
3589

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8575
SELECT 50, MIN( ALL + 87 ) + - + 32 + 28 + + + 86 - - ( - - 49 ) + - 56 DIV + SUM( DISTINCT + 2 ) DIV - COUNT( * ) AS col1
----
50
246

skipif mysql # not compatible
query II rowsort label-8575
SELECT 50, MIN ( ALL + 87 ) + - + 32 + 28 + + + 86 - - ( - - 49 ) + - 56 / + SUM ( DISTINCT + 2 ) / - COUNT ( * ) AS col1
----
50
246

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT + + SUM( - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-8576
SELECT + + SUM ( - 18 )
----
-18

query I rowsort
SELECT ALL + NULLIF ( - - 30, 62 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT + + 35 + + 37 * + + COALESCE ( + + NULLIF ( + + 34, 68 * - ( 6 ) * 62 - + + COUNT( * ) ), 6, + 91 ) + - 64 AS col0
----
1229

skipif mysql # not compatible
query I rowsort label-8578
SELECT + + 35 + + 37 * + + COALESCE ( + + NULLIF ( + + 34, 68 * - ( 6 ) * 62 - + + COUNT ( * ) ), 6, + 91 ) + - 64 AS col0
----
1229

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT DISTINCT + + SUM( ALL + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-8579
SELECT DISTINCT + + SUM ( ALL + 78 )
----
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8580
SELECT 60 * + + ( + AVG ( CAST( NULL AS DECIMAL ) ) ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT 60 * + + ( + AVG ( CAST ( NULL AS REAL ) ) ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT - 39 - - 77
----
38

query I rowsort
SELECT ALL - + 39 * - + 61 AS col1
----
2379

query II rowsort
SELECT ALL 78, + 75 AS col1
----
78
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8584
SELECT + + CASE + - 70 WHEN 49 THEN CASE - 83 WHEN + COALESCE ( + - 87, - + 16 DIV + 57 ) DIV + 76 + + COUNT( * ) * - ( - COALESCE ( - 49, NULLIF ( - COALESCE ( + 9, - ( - 7 ) - 80 * - ( COALESCE ( NULLIF ( - 13, 27 * - 50 ), 51 ) ) ), - 94 DIV ( + CAST( NULL AS SIGNED ) ) + 10 ) * CASE - COUNT( + 60 ) WHEN 93 - COUNT( * ) THEN NULL WHEN + ( 19 ) THEN + 73 WHEN + 64 THEN - 62 * + 11 ELSE - 84 END, + 0 + ( + 82 ) ) * + 75 ) THEN + 82 DIV + 87 WHEN 68 DIV ( COALESCE ( + 40, ( + SUM( - 18 ) ) * 79 + - 58 ) ) + - 0 THEN NULL ELSE NULL END + COUNT( * ) DIV - 97 ELSE + 64 + + 33 END * - 32 + 34
----
-3070

skipif mysql # not compatible
query I rowsort label-8584
SELECT + + CASE + - 70 WHEN 49 THEN CASE - 83 WHEN + COALESCE ( + - 87, - + 16 / + 57 ) / + 76 + + COUNT ( * ) * - ( - COALESCE ( - 49, NULLIF ( - COALESCE ( + 9, - ( - 7 ) - 80 * - ( COALESCE ( NULLIF ( - 13, 27 * - 50 ), 51 ) ) ), - 94 / ( + CAST ( NULL AS INTEGER ) ) + 10 ) * CASE - COUNT ( + 60 ) WHEN 93 - COUNT ( * ) THEN NULL WHEN + ( 19 ) THEN + 73 WHEN + 64 THEN - 62 * + 11 ELSE - 84 END, + 0 + ( + 82 ) ) * + 75 ) THEN + 82 / + 87 WHEN 68 / ( COALESCE ( + 40, ( + SUM ( - 18 ) ) * 79 + - 58 ) ) + - 0 THEN NULL ELSE NULL END + COUNT ( * ) / - 97 ELSE + 64 + + 33 END * - 32 + 34
----
-3070

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT - COUNT( DISTINCT + 41 ) + + 68 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-8585
SELECT - COUNT ( DISTINCT + 41 ) + + 68 AS col0
----
67

query I rowsort
SELECT + COALESCE ( 88, 93 * + + 85 + - 67 + + ( + 76 ) * + - 7 + + + 29 ) * - - 55 + - ( - 89 - 22 * 1 )
----
4951

query I rowsort
SELECT - + 77 * + - 98
----
7546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8588
SELECT ALL - + COUNT( * ) * CASE WHEN 16 <= NULL THEN NULL ELSE + 57 END AS col2, + 64 * + COUNT( * ) * + SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) + + 76 + 19 * - 98
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-8588
SELECT ALL - + COUNT ( * ) * CASE WHEN 16 <= NULL THEN NULL ELSE + 57 END AS col2, + 64 * + COUNT ( * ) * + SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + + 76 + 19 * - 98
----
-57
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8589
SELECT + COALESCE ( - + 95, - SUM( + 61 ) - MIN( CAST( NULL AS SIGNED ) ) + + 64 - - 67 + 43 + - 89 * - 17 + CAST( 29 + 71 * 68 AS SIGNED ) ) + + COUNT( * ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-8589
SELECT + COALESCE ( - + 95, - SUM ( + 61 ) - MIN ( CAST ( NULL AS INTEGER ) ) + + 64 - - 67 + 43 + - 89 * - 17 + CAST ( 29 + 71 * 68 AS INTEGER ) ) + + COUNT ( * ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT ALL NULLIF ( + 26, - COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL NULLIF ( + 26, - COUNT ( * ) )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT - MAX( DISTINCT ( - 88 ) ) + + + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-8591
SELECT - MAX ( DISTINCT ( - 88 ) ) + + + COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query III rowsort label-8592
SELECT DISTINCT COUNT( * ) AS col1, - 44 col2, 22
----
1
-44
22

skipif mysql # not compatible
query III rowsort label-8592
SELECT DISTINCT COUNT ( * ) AS col1, - 44 col2, 22
----
1
-44
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8593
SELECT ALL CAST( NULL AS SIGNED ) AS col0, - 31
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-8593
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - 31
----
NULL
-31

query I rowsort
SELECT ALL NULLIF ( 80, 85 ) AS col1
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8595
SELECT DISTINCT + 60 + - + ( + CAST( NULL AS DECIMAL ) ) * - - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-8595
SELECT DISTINCT + 60 + - + ( + CAST ( NULL AS REAL ) ) * - - 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT - 36 + - 90 + + + COUNT( * ) - + ( + - 72 ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-8596
SELECT - 36 + - 90 + + + COUNT ( * ) - + ( + - 72 ) col0
----
-53

query I rowsort
SELECT - 47 * - - 78
----
-3666

query I rowsort
SELECT ALL + 24 + - 3 AS col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8599
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, + 76 AS col1
----
NULL
76

skipif mysql # not compatible
query II rowsort label-8599
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + 76 AS col1
----
NULL
76

query I rowsort
SELECT ALL + 15 + + + 83 - 97
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8601
SELECT - ( COUNT( * ) ) + - - 11 * + 51 + + + 20 / - - 42 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8601
SELECT - ( COUNT ( * ) ) + - - 11 * + 51 + + + 20 / - - 42 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 52 * + + 17 AS col1
----
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT - COUNT( * ) + 39
----
38

skipif mysql # not compatible
query I rowsort label-8603
SELECT - COUNT ( * ) + 39
----
38

query I rowsort
SELECT DISTINCT - 43 + NULLIF ( + 4, + 42 ) AS col0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-8605
SELECT ALL - 76 DIV - + 41 + 61 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL - 76 / - + 41 + 61 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT DISTINCT + MAX( + 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-8606
SELECT DISTINCT + MAX ( + 3 ) AS col0
----
3

query I rowsort
SELECT ALL - - ( + + 43 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8608
SELECT ALL - + CASE + ( - COUNT( * ) ) WHEN + 12 THEN NULL WHEN - 49 * + CAST( + 51 AS SIGNED ) - - 23 * + 6 * - 86 THEN ( 18 ) * 54 WHEN + MAX( DISTINCT 18 ) + 22 * + 74 THEN NULL WHEN COUNT( * ) THEN NULL END + - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL - + CASE + ( - COUNT ( * ) ) WHEN + 12 THEN NULL WHEN - 49 * + CAST ( + 51 AS INTEGER ) - - 23 * + 6 * - 86 THEN ( 18 ) * 54 WHEN + MAX ( DISTINCT 18 ) + 22 * + 74 THEN NULL WHEN COUNT ( * ) THEN NULL END + - 47 AS col0
----
NULL

query I rowsort
SELECT - - 41 * 57 + + 9 * - 29 AS col1
----
2076

onlyif mysql # aggregate syntax: 
query III rowsort label-8610
SELECT 46 AS col0, COUNT( * ) AS col1, - + 2 * 39 * + - 24
----
46
1
1872

skipif mysql # not compatible
query III rowsort label-8610
SELECT 46 AS col0, COUNT ( * ) AS col1, - + 2 * 39 * + - 24
----
46
1
1872

query I rowsort
SELECT ALL - + ( 34 ) AS col0
----
-34

query I rowsort
SELECT 64 * 51 AS col0
----
3264

onlyif mysql # DIV for integer division: 
query I rowsort label-8613
SELECT ALL + 44 DIV 25 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL + 44 / 25 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT ALL COUNT( * ) * - ( + 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL COUNT ( * ) * - ( + 51 )
----
-51

query II rowsort
SELECT DISTINCT - 26 AS col2, 77 AS col0
----
-26
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT DISTINCT + 94 * + - CASE + 70 WHEN + 96 THEN 77 * + - MAX( + 50 ) * + 32 - 81 / - NULLIF ( - COUNT( * ), 74 * - 96 ) + 89 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8616
SELECT DISTINCT + 94 * + - CASE + 70 WHEN + 96 THEN 77 * + - MAX ( + 50 ) * + 32 - 81 / - NULLIF ( - COUNT ( * ), 74 * - 96 ) + 89 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8617
SELECT ALL + + ( COUNT( * ) ) * - + COUNT( * ) * - + 23 * 17 + 89 DIV - 35 AS col2
----
389

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL + + ( COUNT ( * ) ) * - + COUNT ( * ) * - + 23 * 17 + 89 / - 35 AS col2
----
389

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8618
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, 34
----
NULL
34

skipif mysql # not compatible
query II rowsort label-8618
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, 34
----
NULL
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT ALL + 92 * + 68 * 33 + + NULLIF ( + 30, - COUNT( * ) ) AS col0
----
206478

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL + 92 * + 68 * 33 + + NULLIF ( + 30, - COUNT ( * ) ) AS col0
----
206478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8620
SELECT + ( - CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED ) + 53 - - ( - + ( - 70 ) ) + + ( + 41 ) * - COUNT( * ) * + 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8620
SELECT + ( - CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS INTEGER ) + 53 - - ( - + ( - 70 ) ) + + ( + 41 ) * - COUNT ( * ) * + 44 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8621
SELECT + 18 AS col0, 38 * - - 36 + - 82 + - 5 * - 92 * + COALESCE ( - 24, 48 * - 79 * + 90 * CAST( NULL AS SIGNED ) + MIN( ALL - 88 ) ) + + 49 col1
----
18
-9705

skipif mysql # not compatible
query II rowsort label-8621
SELECT + 18 AS col0, 38 * - - 36 + - 82 + - 5 * - 92 * + COALESCE ( - 24, 48 * - 79 * + 90 * CAST ( NULL AS INTEGER ) + MIN ( ALL - 88 ) ) + + 49 col1
----
18
-9705

query II rowsort
SELECT + 46, 0 - + 53 AS col2
----
46
-53

query I rowsort
SELECT 31 + 2 col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT ( - COUNT( * ) ) * - - SUM( + 83 ) col2
----
-83

skipif mysql # not compatible
query I rowsort label-8624
SELECT ( - COUNT ( * ) ) * - - SUM ( + 83 ) col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT ALL 13 + - + ( COALESCE ( + COUNT( * ), - 7 ) ) + - COUNT( * ) + + 97 + COUNT( * ) col2
----
109

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL 13 + - + ( COALESCE ( + COUNT ( * ), - 7 ) ) + - COUNT ( * ) + + 97 + COUNT ( * ) col2
----
109

query I rowsort
SELECT DISTINCT 7 + 27 * + 11
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT ALL - SUM( DISTINCT + - 38 ) + - 5 - - MAX( ALL + 0 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL - SUM ( DISTINCT + - 38 ) + - 5 - - MAX ( ALL + 0 ) AS col1
----
33

query I rowsort
SELECT DISTINCT 83 + - - 1 AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8629
SELECT DISTINCT MAX( - NULLIF ( + CAST( NULL AS SIGNED ), - - 61 ) ) * + 66, - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8629
SELECT DISTINCT MAX ( - NULLIF ( + CAST ( NULL AS INTEGER ), - - 61 ) ) * + 66, - COUNT ( * ) AS col1
----
NULL
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8630
SELECT ALL - 83 + COUNT( * ) DIV + MIN( + 33 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-8630
SELECT ALL - 83 + COUNT ( * ) / + MIN ( + 33 ) AS col2
----
-83

query I rowsort
SELECT ALL + COALESCE ( 68, 45 ) + + + 69
----
137

query I rowsort
SELECT ( - - 16 ) - - + 32
----
48

query I rowsort
SELECT 94 + + - 71 AS col2
----
23

query II rowsort
SELECT DISTINCT 41 * 28 AS col0, + 36 * + + 91
----
1148
3276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8635
SELECT 16 DIV - 90 * COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8635
SELECT 16 / - 90 * COUNT ( * ) col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8636
SELECT ALL - COALESCE ( + 95, - CAST( COUNT( * ) AS SIGNED ), 75 ) - ( - 20 ) * + CAST( NULL AS DECIMAL ) + - 43 - - 58 / + 35 * + 97 / 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL - COALESCE ( + 95, - CAST ( COUNT ( * ) AS INTEGER ), 75 ) - ( - 20 ) * + CAST ( NULL AS REAL ) + - 43 - - 58 / + 35 * + 97 / 87 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8637
SELECT + CAST( NULL AS SIGNED ) * AVG ( - 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8637
SELECT + CAST ( NULL AS INTEGER ) * AVG ( - 13 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT - 52 * - - COUNT( * ) - - NULLIF ( 72, - - 63 + + + COUNT( * ) )
----
20

skipif mysql # not compatible
query I rowsort label-8638
SELECT - 52 * - - COUNT ( * ) - - NULLIF ( 72, - - 63 + + + COUNT ( * ) )
----
20

query I rowsort
SELECT DISTINCT - 6 * 32 * 75 AS col0
----
-14400

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8640
SELECT ALL - COALESCE ( + + 45, + + CAST( NULL AS SIGNED ) * 88 DIV 65 * - 82, - - 49 DIV 21 + + 99 + + 93 DIV + - 50 * + + 72 )
----
-45

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL - COALESCE ( + + 45, + + CAST ( NULL AS INTEGER ) * 88 / 65 * - 82, - - 49 / 21 + + 99 + + 93 / + - 50 * + + 72 )
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8641
SELECT ( + 61 ) DIV + + 45
----
1

skipif mysql # not compatible
query I rowsort label-8641
SELECT ( + 61 ) / + + 45
----
1

query II rowsort
SELECT DISTINCT + 15 * + 42 * - 0 + + + NULLIF ( 97, + + 17 * 3 ) + - 28 AS col0, 28
----
69
28

query I rowsort
SELECT ALL - 57 - + 30 + - 18 AS col1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT ALL + - 98 * 81 * - COUNT( * ) AS col0
----
7938

skipif mysql # not compatible
query I rowsort label-8644
SELECT ALL + - 98 * 81 * - COUNT ( * ) AS col0
----
7938

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT 97 * + NULLIF ( 74, 20 * + - COUNT( * ) + - - ( + CASE - 92 WHEN + 24 THEN - + 69 / 71 + + 61 + 29 END ) ) * + 55 + - 91 AS col0
----
394699

skipif mysql # not compatible
query I rowsort label-8645
SELECT 97 * + NULLIF ( 74, 20 * + - COUNT ( * ) + - - ( + CASE - 92 WHEN + 24 THEN - + 69 / 71 + + 61 + 29 END ) ) * + 55 + - 91 AS col0
----
394699

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8646
SELECT DISTINCT + CASE COUNT( * ) WHEN - ( COUNT( * ) ) THEN - 74 * + 53 / + COUNT( * ) * + - 79 + 8 * - 69 ELSE + + CASE - CAST( NULL AS SIGNED ) WHEN + 19 * - 10 + 17 THEN NULL WHEN + 80 THEN NULL WHEN - COUNT( * ) THEN 52 - ( + 89 ) / + 63 ELSE NULL END END * - CASE WHEN 76 IS NOT NULL THEN 98 * - 77 ELSE + 19 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT + CASE COUNT ( * ) WHEN - ( COUNT ( * ) ) THEN - 74 * + 53 / + COUNT ( * ) * + - 79 + 8 * - 69 ELSE + + CASE - CAST ( NULL AS INTEGER ) WHEN + 19 * - 10 + 17 THEN NULL WHEN + 80 THEN NULL WHEN - COUNT ( * ) THEN 52 - ( + 89 ) / + 63 ELSE NULL END END * - CASE WHEN 76 IS NOT NULL THEN 98 * - 77 ELSE + 19 END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8647
SELECT + 60 * 36 DIV + - COUNT( * ) + + + 40
----
-2120

skipif mysql # not compatible
query I rowsort label-8647
SELECT + 60 * 36 / + - COUNT ( * ) + + + 40
----
-2120

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT - CASE 68 WHEN + + 67 THEN - 33 * + - 48 + - - COUNT( * ) - + - 30 + - 67 / - - 62 WHEN 61 * - COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8648
SELECT - CASE 68 WHEN + + 67 THEN - 33 * + - 48 + - - COUNT ( * ) - + - 30 + - 67 / - - 62 WHEN 61 * - COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 48 * - 96 + 0
----
-4608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8650
SELECT ALL + 72 + - - CAST( + 36 AS SIGNED ) AS col0
----
108

skipif mysql # not compatible
query I rowsort label-8650
SELECT ALL + 72 + - - CAST ( + 36 AS INTEGER ) AS col0
----
108

query I rowsort
SELECT - 1 + + 48 col0
----
47

query I rowsort
SELECT - 14 + - 31 AS col2
----
-45

query II rowsort
SELECT 54 col2, 46 AS col2
----
54
46

query I rowsort
SELECT 59 * + 57 AS col1
----
3363

query I rowsort
SELECT ALL 42 * 35 AS col1
----
1470

query I rowsort
SELECT DISTINCT 1 * + - ( + 95 ) AS col1
----
-95

query I rowsort
SELECT DISTINCT 59 + 19
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-8658
SELECT ALL 94 + 45 + - 1 DIV 34, + 11 + - 95 - + 48 + - - 7 AS col2
----
139
-125

skipif mysql # not compatible
query II rowsort label-8658
SELECT ALL 94 + 45 + - 1 / 34, + 11 + - 95 - + 48 + - - 7 AS col2
----
139
-125

query I rowsort
SELECT 20 * + 16
----
320

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8660
SELECT CASE WHEN 42 <> + 5 THEN + ( - - 92 ) * - NULLIF ( + + ( - CASE + - NULLIF ( + - COUNT( * ), CAST( + 73 AS DECIMAL ) ) WHEN COUNT( * ) / 2 THEN 11 + 49 ELSE NULL END ), - COUNT( * ) ) END + + 59 / 15
----
NULL

skipif mysql # not compatible
query I rowsort label-8660
SELECT CASE WHEN 42 <> + 5 THEN + ( - - 92 ) * - NULLIF ( + + ( - CASE + - NULLIF ( + - COUNT ( * ), CAST ( + 73 AS REAL ) ) WHEN COUNT ( * ) / 2 THEN 11 + 49 ELSE NULL END ), - COUNT ( * ) ) END + + 59 / 15
----
NULL

query I rowsort
SELECT ALL 58 - + 27 AS col2
----
31

query I rowsort
SELECT + 46 * + 82 col0
----
3772

query I rowsort
SELECT + 52 + + 36 AS col1
----
88

query I rowsort
SELECT + 10 * - + 6 AS col2
----
-60

query I rowsort
SELECT + 42 + 23 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT - - 66 - - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-8666
SELECT - - 66 - - COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT DISTINCT + 50 * + + COUNT( * ) col2
----
50

skipif mysql # not compatible
query I rowsort label-8667
SELECT DISTINCT + 50 * + + COUNT ( * ) col2
----
50

query II rowsort
SELECT ALL + 91 AS col1, 49 * - - 94 AS col1
----
91
4606

query II rowsort
SELECT DISTINCT + 94, 58 AS col2
----
94
58

query I rowsort
SELECT - - 31 + 83 AS col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT + - 61 * + COALESCE ( 62, + 29 + + 15 * + 49 * - 49 + 42 + - 67 + COUNT( ALL + + ( - 24 ) ) * - 41, - ( + 71 ) ) AS col2
----
-3782

skipif mysql # not compatible
query I rowsort label-8671
SELECT + - 61 * + COALESCE ( 62, + 29 + + 15 * + 49 * - 49 + 42 + - 67 + COUNT ( ALL + + ( - 24 ) ) * - 41, - ( + 71 ) ) AS col2
----
-3782

query I rowsort
SELECT ALL + ( + COALESCE ( - COALESCE ( - 93, + - 39 * + 57 * + 19 ), - 36 + + 73 ) ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-8673
SELECT 93 AS col2, - 37 * SUM( 25 ) * + COALESCE ( + - MAX( ALL 22 ), 17 ) + - COUNT( * ) + + + 36 * + 42 AS col2
----
93
21861

skipif mysql # not compatible
query II rowsort label-8673
SELECT 93 AS col2, - 37 * SUM ( 25 ) * + COALESCE ( + - MAX ( ALL 22 ), 17 ) + - COUNT ( * ) + + + 36 * + 42 AS col2
----
93
21861

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8674
SELECT + 62 * - 48 + - 2 + + + 58 + - 58 / - CAST( NULL AS SIGNED ) + + 47 - 67 * 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT + 62 * - 48 + - 2 + + + 58 + - 58 / - CAST ( NULL AS INTEGER ) + + 47 - 67 * 57 AS col0
----
NULL

query II rowsort
SELECT + 30 AS col1, - 96 AS col2
----
30
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8676
SELECT + - 12 DIV + + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-8676
SELECT + - 12 / + + COUNT ( * )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8677
SELECT ALL - 38 * 16 + - COALESCE ( - CAST( + 62 AS SIGNED ), + - 38 )
----
-546

skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL - 38 * 16 + - COALESCE ( - CAST ( + 62 AS INTEGER ), + - 38 )
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT - COUNT( DISTINCT - - 38 ) * + 92 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-8678
SELECT - COUNT ( DISTINCT - - 38 ) * + 92 AS col1
----
-92

query II rowsort
SELECT ALL - 84 * - 97 + - NULLIF ( + - 42, + + 1 + 72 ) AS col2, 12 + NULLIF ( 89, + + ( - ( + 80 ) ) + 69 ) + 86 AS col1
----
8190
187

query II rowsort
SELECT DISTINCT - + 54 * + 95 * + 48 + 24 AS col1, ( 75 ) * + ( 93 ) AS col2
----
-246216
6975

query II rowsort
SELECT ALL + + 53 * + + 7 * - 63 AS col2, 85 * + + 28
----
-23373
2380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8682
SELECT ALL + COUNT( * ) * + + ( + ( - 5 ) ) DIV 6 + - 3
----
-3

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL + COUNT ( * ) * + + ( + ( - 5 ) ) / 6 + - 3
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT DISTINCT + 73 * ( + + 76 ) + - COUNT( * ) + + 15
----
5562

skipif mysql # not compatible
query I rowsort label-8683
SELECT DISTINCT + 73 * ( + + 76 ) + - COUNT ( * ) + + 15
----
5562

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT ALL + + MAX( DISTINCT + 96 ) * + CASE - COUNT( * ) WHEN - 49 * + 95 THEN + + ( + + COUNT( * ) ) END * + 51 + - AVG ( ALL + 56 ) - + NULLIF ( + - 78, - 10 + 87 ) / 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL + + MAX ( DISTINCT + 96 ) * + CASE - COUNT ( * ) WHEN - 49 * + 95 THEN + + ( + + COUNT ( * ) ) END * + 51 + - AVG ( ALL + 56 ) - + NULLIF ( + - 78, - 10 + 87 ) / 2 AS col0
----
NULL

query I rowsort
SELECT COALESCE ( - 85, - 91 )
----
-85

query I rowsort
SELECT ALL + 55 * + 46 * - 35
----
-88550

query I rowsort
SELECT ALL 17 * - + 94 + + 4 * + 4 * - 54
----
-2462

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8688
SELECT MIN( - - 58 ), - ( - COALESCE ( + 58, - AVG ( ALL + - 4 ) ) ) DIV + 19 AS col0
----
58
3

skipif mysql # not compatible
query II rowsort label-8688
SELECT MIN ( - - 58 ), - ( - COALESCE ( + 58, - AVG ( ALL + - 4 ) ) ) / + 19 AS col0
----
58
3

query I rowsort
SELECT ALL + ( ( - - 46 ) )
----
46

query I rowsort
SELECT ALL 88 * + - 65 AS col0
----
-5720

query I rowsort
SELECT ALL 41 - + ( + 40 ) * + - 46 AS col1
----
1881

query I rowsort
SELECT + 47 * - 60 AS col2
----
-2820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8693
SELECT 21 * + COALESCE ( - COUNT( * ), + COUNT( * ) ) * - CASE + 60 WHEN + 56 THEN 60 WHEN + CAST( NULL AS SIGNED ) * - - 17 * + 85 + - - COUNT( * ) / + 57 * 51 - - 50 THEN 85 * NULLIF ( 7, COUNT( * ) * 61 ) ELSE COUNT( * ) * 75 END + 55
----
1630

skipif mysql # not compatible
query I rowsort label-8693
SELECT 21 * + COALESCE ( - COUNT ( * ), + COUNT ( * ) ) * - CASE + 60 WHEN + 56 THEN 60 WHEN + CAST ( NULL AS INTEGER ) * - - 17 * + 85 + - - COUNT ( * ) / + 57 * 51 - - 50 THEN 85 * NULLIF ( 7, COUNT ( * ) * 61 ) ELSE COUNT ( * ) * 75 END + 55
----
1630

query I rowsort
SELECT DISTINCT 87 * + 33 col1
----
2871

query I rowsort
SELECT ALL ( 55 ) * + 39 AS col2
----
2145

query I rowsort
SELECT ALL 5 - - 89
----
94

query I rowsort
SELECT + 17 * - ( - 71 )
----
1207

query I rowsort
SELECT + 87 + - 42 AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8699
SELECT + CASE + COUNT( * ) WHEN - CASE 77 WHEN - + CASE + 42 WHEN - COUNT( * ) THEN - 87 END + - CAST( NULL AS SIGNED ) THEN - 40 WHEN - 69 THEN NULL END + + 67 + + + 58 THEN NULL WHEN + - 47 * 9 + - AVG ( CAST( - 68 AS SIGNED ) ) * + 14 THEN - 72 - + 36 ELSE COUNT( * ) END * + 81 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-8699
SELECT + CASE + COUNT ( * ) WHEN - CASE 77 WHEN - + CASE + 42 WHEN - COUNT ( * ) THEN - 87 END + - CAST ( NULL AS INTEGER ) THEN - 40 WHEN - 69 THEN NULL END + + 67 + + + 58 THEN NULL WHEN + - 47 * 9 + - AVG ( CAST ( - 68 AS INTEGER ) ) * + 14 THEN - 72 - + 36 ELSE COUNT ( * ) END * + 81 AS col2
----
81

query I rowsort
SELECT DISTINCT - 79 * - 30 AS col0
----
2370

query I rowsort
SELECT ALL + 20 * + - CASE + 21 WHEN + 80 THEN - - 92 + - 96 END + 49 * + + 79 AS col2
----
NULL

query I rowsort
SELECT + + 51 * - 75 AS col2
----
-3825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8703
SELECT + - MAX( CASE - CAST( + 50 AS SIGNED ) WHEN - - 48 THEN NULL WHEN + + 99 - - ( - + CAST( + - 30 AS SIGNED ) ) THEN - 92 END ) * + + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT + - MAX ( CASE - CAST ( + 50 AS INTEGER ) WHEN - - 48 THEN NULL WHEN + + 99 - - ( - + CAST ( + - 30 AS INTEGER ) ) THEN - 92 END ) * + + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT NULLIF ( + 33, + 6 - 28 * - + COUNT( + 4 ) * - - 98 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8704
SELECT NULLIF ( + 33, + 6 - 28 * - + COUNT ( + 4 ) * - - 98 ) AS col1
----
33

query I rowsort
SELECT + 33 * + ( - - 40 )
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT + NULLIF ( - - 1, 94 - - 94 + + + 66 * + - ( CASE + 59 WHEN + - 82 * - + 15 THEN NULL ELSE - - 54 / + 72 + - - 69 END ) * + - COALESCE ( COUNT( * ), 33 ) + 34 * - 71 ) * - 49
----
-49

skipif mysql # not compatible
query I rowsort label-8706
SELECT + NULLIF ( - - 1, 94 - - 94 + + + 66 * + - ( CASE + 59 WHEN + - 82 * - + 15 THEN NULL ELSE - - 54 / + 72 + - - 69 END ) * + - COALESCE ( COUNT ( * ), 33 ) + 34 * - 71 ) * - 49
----
-49

query I rowsort
SELECT ALL 73 + - 68 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT + + MAX( - + 92 ) * - 30
----
2760

skipif mysql # not compatible
query I rowsort label-8708
SELECT + + MAX ( - + 92 ) * - 30
----
2760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8709
SELECT DISTINCT - 33 DIV - 19 + + + 46 + 66 + - MIN( DISTINCT - 49 )
----
162

skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT - 33 / - 19 + + + 46 + 66 + - MIN ( DISTINCT - 49 )
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8710
SELECT ALL - 98 DIV - NULLIF ( 35, - COUNT( * ) ) + - 5 * - 24 + + ( - - 36 ) - + 87 * 92 * - NULLIF ( - 55, - + 50 * 68 ) * - MIN( 88 * 5 ) AS col1
----
193696958

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL - 98 / - NULLIF ( 35, - COUNT ( * ) ) + - 5 * - 24 + + ( - - 36 ) - + 87 * 92 * - NULLIF ( - 55, - + 50 * 68 ) * - MIN ( 88 * 5 ) AS col1
----
193696958

query I rowsort
SELECT 69 * + 35 + + - ( + 36 )
----
2379

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8712
SELECT ( - CAST( - 8 AS SIGNED ) )
----
8

skipif mysql # not compatible
query I rowsort label-8712
SELECT ( - CAST ( - 8 AS INTEGER ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT 60 * - 25 + - COUNT( * ) + + - 89 AS col2
----
-1590

skipif mysql # not compatible
query I rowsort label-8713
SELECT 60 * - 25 + - COUNT ( * ) + + - 89 AS col2
----
-1590

query I rowsort
SELECT ( - ( 63 ) ) AS col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8715
SELECT ALL + MIN( + - CASE - 55 WHEN + 34 * 42 - 31 + + NULLIF ( + 40, ( + 79 ) ) THEN - 98 WHEN 22 THEN 65 WHEN 66 THEN + 29 * + 29 ELSE + 62 END ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL + MIN ( + - CASE - 55 WHEN + 34 * 42 - 31 + + NULLIF ( + 40, ( + 79 ) ) THEN - 98 WHEN 22 THEN 65 WHEN 66 THEN + 29 * + 29 ELSE + 62 END ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8716
SELECT ALL CAST( 80 AS SIGNED ) * + - 4 - 28 + + 74 * + - CASE - + 47 WHEN - + 81 + - CAST( - MAX( ALL 1 ) AS SIGNED ) THEN - - MAX( DISTINCT + 48 ) END, + 77 + + 29 AS col1
----
NULL
106

skipif mysql # not compatible
query II rowsort label-8716
SELECT ALL CAST ( 80 AS INTEGER ) * + - 4 - 28 + + 74 * + - CASE - + 47 WHEN - + 81 + - CAST ( - MAX ( ALL 1 ) AS INTEGER ) THEN - - MAX ( DISTINCT + 48 ) END, + 77 + + 29 AS col1
----
NULL
106

query I rowsort
SELECT - 95 * - 31 AS col0
----
2945

query I rowsort
SELECT - 53 + 90 - + 66 * 96 AS col0
----
-6299

onlyif mysql # aggregate syntax: 
query II rowsort label-8719
SELECT ALL + 16 * + COUNT( * ) * + 4 * - 38 - 77 AS col0, 24
----
-2509
24

skipif mysql # not compatible
query II rowsort label-8719
SELECT ALL + 16 * + COUNT ( * ) * + 4 * - 38 - 77 AS col0, 24
----
-2509
24

query I rowsort
SELECT - 71 * - - 71
----
-5041

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT - COALESCE ( 60, + 16 + 62 + + 74 * - 55 * + - CASE + 68 WHEN - 89 THEN NULL ELSE + COUNT( ALL - 20 ) + - NULLIF ( + 19, COUNT( * ) / - 19 * 46 ) END, - 23 * - 93 ) * - 84 + - 18 AS col0
----
5022

skipif mysql # not compatible
query I rowsort label-8721
SELECT - COALESCE ( 60, + 16 + 62 + + 74 * - 55 * + - CASE + 68 WHEN - 89 THEN NULL ELSE + COUNT ( ALL - 20 ) + - NULLIF ( + 19, COUNT ( * ) / - 19 * 46 ) END, - 23 * - 93 ) * - 84 + - 18 AS col0
----
5022

query I rowsort
SELECT 34 * + 42 + + ( 67 ) col0
----
1495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8723
SELECT 0 * - COALESCE ( 75, - 45 * + CAST( NULL AS SIGNED ) + - 11 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8723
SELECT 0 * - COALESCE ( 75, - 45 * + CAST ( NULL AS INTEGER ) + - 11 ) AS col0
----
0

query I rowsort
SELECT 36 * - 11
----
-396

query II rowsort
SELECT ALL 29 AS col2, - 83 col2
----
29
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8726
SELECT 16 + - CAST( - COUNT( * ) AS SIGNED ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-8726
SELECT 16 + - CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT 55 * + 2 * - COUNT( * ) AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-8727
SELECT 55 * + 2 * - COUNT ( * ) AS col0
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8728
SELECT ALL 38 col2, - 48 + - CAST( NULL AS SIGNED ) * 74
----
38
NULL

skipif mysql # not compatible
query II rowsort label-8728
SELECT ALL 38 col2, - 48 + - CAST ( NULL AS INTEGER ) * 74
----
38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT 26 * COUNT( DISTINCT 18 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-8729
SELECT 26 * COUNT ( DISTINCT 18 ) AS col2
----
26

query II rowsort
SELECT ALL 40 AS col0, + 18 * + - 76
----
40
-1368

onlyif mysql # aggregate syntax: 
query II rowsort label-8731
SELECT ALL + ( 40 ) * + 8 * - - ( - 99 ), + ( + MAX( - 47 ) ) AS col1
----
-31680
-47

skipif mysql # not compatible
query II rowsort label-8731
SELECT ALL + ( 40 ) * + 8 * - - ( - 99 ), + ( + MAX ( - 47 ) ) AS col1
----
-31680
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8732
SELECT - 51 DIV + 98 - + 32
----
-32

skipif mysql # not compatible
query I rowsort label-8732
SELECT - 51 / + 98 - + 32
----
-32

query I rowsort
SELECT - 60 - - 73 * - 79 + + 36 AS col2
----
-5791

query I rowsort
SELECT DISTINCT + - 24 + - + 25 AS col0
----
-49

query I rowsort
SELECT ALL - - 62 + - 68
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-8736
SELECT ALL + COALESCE ( + + MIN( + - 85 ), + - ( - - 9 ) + + + 66 ) + - 13 + + 86 AS col2, + 53 AS col0
----
-12
53

skipif mysql # not compatible
query II rowsort label-8736
SELECT ALL + COALESCE ( + + MIN ( + - 85 ), + - ( - - 9 ) + + + 66 ) + - 13 + + 86 AS col2, + 53 AS col0
----
-12
53

query II rowsort
SELECT - 69 AS col2, - 48 AS col1
----
-69
-48

query I rowsort
SELECT - 10 - + 58 * - ( + 74 )
----
4282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8739
SELECT + 54 + - COUNT( * ) / + CAST( NULL AS SIGNED ) * - ( 50 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8739
SELECT + 54 + - COUNT ( * ) / + CAST ( NULL AS INTEGER ) * - ( 50 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8740
SELECT ALL + + 82 + 87 + - - CASE - ( ( 32 ) ) WHEN + 57 + 30 DIV - - 49 + - - ( 69 ) THEN NULL WHEN - 34 THEN NULL ELSE + 57 * - - 57 + - + 22 END DIV 50
----
233

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL + + 82 + 87 + - - CASE - ( ( 32 ) ) WHEN + 57 + 30 / - - 49 + - - ( 69 ) THEN NULL WHEN - 34 THEN NULL ELSE + 57 * - - 57 + - + 22 END / 50
----
233

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT ALL - + 20 * + MIN( ( - 32 ) )
----
640

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL - + 20 * + MIN ( ( - 32 ) )
----
640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8742
SELECT ALL 6 + + - COUNT( * ) DIV + - 53
----
6

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL 6 + + - COUNT ( * ) / + - 53
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT COUNT( * ) + + 62 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-8743
SELECT COUNT ( * ) + + 62 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT 38 * + 48 * 76 + - 2 * + 24 + COUNT( * ) AS col0
----
138577

skipif mysql # not compatible
query I rowsort label-8744
SELECT 38 * + 48 * 76 + - 2 * + 24 + COUNT ( * ) AS col0
----
138577

query I rowsort
SELECT ALL - 32 + NULLIF ( + + 59, - - 99 * 72 + + 61 + + 72 * 34 - + - 56 ) AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8746
SELECT 20 + CAST( + + 50 AS SIGNED ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-8746
SELECT 20 + CAST ( + + 50 AS INTEGER ) AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8747
SELECT ALL 13 * - - MAX( DISTINCT - - COALESCE ( + 3, + CAST( - CAST( - 99 AS DECIMAL ) AS SIGNED ) ) )
----
39

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL 13 * - - MAX ( DISTINCT - - COALESCE ( + 3, + CAST ( - CAST ( - 99 AS REAL ) AS INTEGER ) ) )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT DISTINCT COUNT( * ) * + + 51
----
51

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT COUNT ( * ) * + + 51
----
51

query II rowsort
SELECT DISTINCT 42 * 11 * - 18 * 15 AS col0, 85 AS col1
----
-124740
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT ALL 77 * + CASE - NULLIF ( - 41, - + AVG ( + + 77 ) ) WHEN + COALESCE ( + COUNT( * ), - CASE + 26 WHEN + + 84 THEN + 37 * NULLIF ( 75, + COUNT( * ) * + COUNT( * ) ) + NULLIF ( 44, 4 / - 89 ) * 17 END ) * - 31 THEN + COUNT( * ) + ( + 40 + 6 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL 77 * + CASE - NULLIF ( - 41, - + AVG ( + + 77 ) ) WHEN + COALESCE ( + COUNT ( * ), - CASE + 26 WHEN + + 84 THEN + 37 * NULLIF ( 75, + COUNT ( * ) * + COUNT ( * ) ) + NULLIF ( 44, 4 / - 89 ) * 17 END ) * - 31 THEN + COUNT ( * ) + ( + 40 + 6 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8751
SELECT DISTINCT + 48 DIV 40 * + - 98 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT + 48 / 40 * + - 98 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-8752
SELECT + 67 AS col1, - 93 + - MIN( - 44 ) + ( - 8 ) * - - 84 * + + 64 + + - 30 - - + 49 + + 34 * 64 * MAX( DISTINCT + ( + 56 ) ) + + 69 * + COUNT( + 8 )
----
67
78887

skipif mysql # not compatible
query II rowsort label-8752
SELECT + 67 AS col1, - 93 + - MIN ( - 44 ) + ( - 8 ) * - - 84 * + + 64 + + - 30 - - + 49 + + 34 * 64 * MAX ( DISTINCT + ( + 56 ) ) + + 69 * + COUNT ( + 8 )
----
67
78887

query II rowsort
SELECT 2 AS col0, 38 AS col2
----
2
38

query II rowsort
SELECT ALL - 65, + 99 AS col1
----
-65
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8755
SELECT NULLIF ( - 78, + + 12 + + 44 ) DIV - - 61 + + ( + ( + - 50 ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-8755
SELECT NULLIF ( - 78, + + 12 + + 44 ) / - - 61 + + ( + ( + - 50 ) ) AS col1
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8756
SELECT DISTINCT ( - COUNT( * ) ) DIV + NULLIF ( COALESCE ( - 74, + 25 DIV - COUNT( * ) ), 96 ) + + - ( 21 ) * + 6 * COUNT( * ) + - 39 AS col2
----
-165

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT ( - COUNT ( * ) ) / + NULLIF ( COALESCE ( - 74, + 25 / - COUNT ( * ) ), 96 ) + + - ( 21 ) * + 6 * COUNT ( * ) + - 39 AS col2
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT ( + + 29 ) - - + NULLIF ( - 6, 43 - - 45 * + + CASE 92 WHEN + MIN( 10 ) * - + CASE - CASE ( 26 ) WHEN - 32 THEN + + MAX( 5 ) END WHEN COUNT( * ) THEN 73 WHEN 3 THEN NULL END * - 65 + NULLIF ( - COUNT( * ), 32 ) THEN - 43 + 69 END + - 97 * 55 ) * + 62 AS col2
----
-343

skipif mysql # not compatible
query I rowsort label-8757
SELECT ( + + 29 ) - - + NULLIF ( - 6, 43 - - 45 * + + CASE 92 WHEN + MIN ( 10 ) * - + CASE - CASE ( 26 ) WHEN - 32 THEN + + MAX ( 5 ) END WHEN COUNT ( * ) THEN 73 WHEN 3 THEN NULL END * - 65 + NULLIF ( - COUNT ( * ), 32 ) THEN - 43 + 69 END + - 97 * 55 ) * + 62 AS col2
----
-343

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8758
SELECT CAST( NULL AS SIGNED ) * 66 AS col0, 64
----
NULL
64

skipif mysql # not compatible
query II rowsort label-8758
SELECT CAST ( NULL AS INTEGER ) * 66 AS col0, 64
----
NULL
64

query II rowsort
SELECT ALL 35 AS col0, - 43
----
35
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-8760
SELECT DISTINCT ( + + 71 ) DIV - - 77
----
0

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT ( + + 71 ) / - - 77
----
0

query I rowsort
SELECT DISTINCT - 58 + - 16 + - 69 AS col2
----
-143

query II rowsort
SELECT - 91, 23 AS col1
----
-91
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8763
SELECT COUNT( * ) - - COUNT( * ), 96 + - CAST( NULL AS SIGNED ) AS col2
----
2
NULL

skipif mysql # not compatible
query II rowsort label-8763
SELECT COUNT ( * ) - - COUNT ( * ), 96 + - CAST ( NULL AS INTEGER ) AS col2
----
2
NULL

query I rowsort
SELECT 20 * - - 81 AS col2
----
1620

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8765
SELECT + 58 + 59 - + 31 + 19 + - 2 * + 4 * + AVG ( ALL - ( CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT + 58 + 59 - + 31 + 19 + - 2 * + 4 * + AVG ( ALL - ( CAST ( NULL AS REAL ) ) )
----
NULL

query I rowsort
SELECT DISTINCT - 38 + - 16 AS col2
----
-54

query II rowsort
SELECT ALL 53, + 84 AS col2
----
53
84

query I rowsort
SELECT - CASE + - 8 WHEN + + ( NULLIF ( 40, - 5 ) ) THEN - ( ( - 8 ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT ALL + COUNT( * ) + COUNT( * ) * + 74 + - 21 * - 5
----
180

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL + COUNT ( * ) + COUNT ( * ) * + 74 + - 21 * - 5
----
180

onlyif mysql # aggregate syntax: 
query II rowsort label-8770
SELECT ALL + CASE + + 3 WHEN - 6 THEN - 76 + 34 WHEN + ( - COUNT( * ) ) - 98 THEN NULL ELSE + + 39 + 55 - - + 38 * 7 * + 87 END + 20, 73 + 66 AS col1
----
23256
139

skipif mysql # not compatible
query II rowsort label-8770
SELECT ALL + CASE + + 3 WHEN - 6 THEN - 76 + 34 WHEN + ( - COUNT ( * ) ) - 98 THEN NULL ELSE + + 39 + 55 - - + 38 * 7 * + 87 END + 20, 73 + 66 AS col1
----
23256
139

query I rowsort
SELECT - 24 * - 1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8772
SELECT ALL + 46 AS col2, - 67 + 69 * - NULLIF ( - 56, 70 * + 37 + + CAST( - 19 AS SIGNED ) ) * + 81 + - 99
----
46
312818

skipif mysql # not compatible
query II rowsort label-8772
SELECT ALL + 46 AS col2, - 67 + 69 * - NULLIF ( - 56, 70 * + 37 + + CAST ( - 19 AS INTEGER ) ) * + 81 + - 99
----
46
312818

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8773
SELECT DISTINCT + CASE 43 WHEN - - 50 THEN - ( - 76 ) * 79 * - SUM( DISTINCT + 82 ) + + 32 WHEN - 81 * - 81 / - CASE + 30 WHEN - 38 * 85 * + + CAST( CASE - 84 WHEN + 19 THEN MAX( DISTINCT + 33 ) ELSE + 43 END AS SIGNED ) THEN - 11 END * + 63 THEN NULL END + COUNT( * ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT + CASE 43 WHEN - - 50 THEN - ( - 76 ) * 79 * - SUM ( DISTINCT + 82 ) + + 32 WHEN - 81 * - 81 / - CASE + 30 WHEN - 38 * 85 * + + CAST ( CASE - 84 WHEN + 19 THEN MAX ( DISTINCT + 33 ) ELSE + 43 END AS INTEGER ) THEN - 11 END * + 63 THEN NULL END + COUNT ( * ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT ALL - ( + - 84 ) + + COUNT( * ) + - - ( + 69 ) * - 89 - + 50 AS col0
----
-6106

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL - ( + - 84 ) + + COUNT ( * ) + - - ( + 69 ) * - 89 - + 50 AS col0
----
-6106

query I rowsort
SELECT DISTINCT ( - + 20 ) AS col1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-8776
SELECT ALL + - 46 + + 77 + 62 * + 58 + - NULLIF ( + CASE - 12 WHEN - 96 * + + 66 + 67 * + NULLIF ( - + 61, + 1 ) THEN NULL ELSE + 85 END, 41 ) + + 74 DIV 91
----
3542

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL + - 46 + + 77 + 62 * + 58 + - NULLIF ( + CASE - 12 WHEN - 96 * + + 66 + 67 * + NULLIF ( - + 61, + 1 ) THEN NULL ELSE + 85 END, 41 ) + + 74 / 91
----
3542

query I rowsort
SELECT DISTINCT + 94 + - + ( + 15 ) AS col2
----
79

query I rowsort
SELECT 28 * + + 37 - 36 col0
----
1000

query I rowsort
SELECT - 27 * - ( + - 12 ) AS col0
----
-324

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8780
SELECT - 21 AS col2, - COUNT( * ) DIV - + 68 + 44 AS col0
----
-21
44

skipif mysql # not compatible
query II rowsort label-8780
SELECT - 21 AS col2, - COUNT ( * ) / - + 68 + 44 AS col0
----
-21
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT - COALESCE ( - 47, 48 * COUNT( * ) * + - ( NULLIF ( - - 96, + 40 ) ) * - 92 ) - - + 4 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-8781
SELECT - COALESCE ( - 47, 48 * COUNT ( * ) * + - ( NULLIF ( - - 96, + 40 ) ) * - 92 ) - - + 4 AS col1
----
51

query II rowsort
SELECT ( + NULLIF ( - - 60, AVG ( ALL - - 88 ) ) ) * 1 AS col1, + 5 * + 4 AS col2
----
60
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT CAST( + NULLIF ( - ( + 30 ), - 88 + + 83 + - 74 * + 85 ) AS SIGNED ) * + 76 * 78 * 5
----
-889200

skipif mysql # not compatible
query I rowsort label-8783
SELECT CAST ( + NULLIF ( - ( + 30 ), - 88 + + 83 + - 74 * + 85 ) AS INTEGER ) * + 76 * 78 * 5
----
-889200

query I rowsort
SELECT + 71 / - - 9 - - 18 - + - CASE 20 WHEN + - 82 THEN - + ( + + 37 ) WHEN + ( 10 ) THEN 64 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8785
SELECT - 24 DIV 29
----
0

skipif mysql # not compatible
query I rowsort label-8785
SELECT - 24 / 29
----
0

query I rowsort
SELECT NULLIF ( + ( + 14 ), + 19 )
----
14

query I rowsort
SELECT 4 * - + 90 AS col0
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT ALL + NULLIF ( - - 24, - MIN( ALL - 20 ) / - 5 )
----
24

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL + NULLIF ( - - 24, - MIN ( ALL - 20 ) / - 5 )
----
24

query I rowsort
SELECT - 94 * 77 * - + 44
----
318472

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT SUM( 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8790
SELECT SUM ( 77 ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT ALL + 52 * - - 62 + + - MAX( DISTINCT - - 20 ) + + 6
----
3210

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL + 52 * - - 62 + + - MAX ( DISTINCT - - 20 ) + + 6
----
3210

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT 71 * COUNT( * ) + + SUM( + ( + + 6 ) ) + - COALESCE ( + - 17, - 63, 83 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-8792
SELECT 71 * COUNT ( * ) + + SUM ( + ( + + 6 ) ) + - COALESCE ( + - 17, - 63, 83 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT ALL + CASE - + 12 WHEN 53 + - + 20 * COUNT( * ) * COUNT( * ) + + + 79 / + 16 * - - 82 - + 76 THEN NULL WHEN - 80 + - 14 THEN NULL ELSE - + 91 END * - 26 + - 1 + + COUNT( * ) AS col1
----
2366

skipif mysql # not compatible
query I rowsort label-8793
SELECT ALL + CASE - + 12 WHEN 53 + - + 20 * COUNT ( * ) * COUNT ( * ) + + + 79 / + 16 * - - 82 - + 76 THEN NULL WHEN - 80 + - 14 THEN NULL ELSE - + 91 END * - 26 + - 1 + + COUNT ( * ) AS col1
----
2366

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT MAX( - 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-8794
SELECT MAX ( - 80 ) AS col0
----
-80

query I rowsort
SELECT ALL - 63 + ( 6 ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT + MAX( + 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8796
SELECT + MAX ( + 12 ) AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8797
SELECT + CASE - COUNT( * ) WHEN - 9 + 54 / SUM( + 48 ) THEN + 20 * + 26 + - 46 - + CAST( NULL AS SIGNED ) * - 49 + AVG ( - 21 ) * + 28 ELSE NULL END / + - 40 * - 80 * ( 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8797
SELECT + CASE - COUNT ( * ) WHEN - 9 + 54 / SUM ( + 48 ) THEN + 20 * + 26 + - 46 - + CAST ( NULL AS INTEGER ) * - 49 + AVG ( - 21 ) * + 28 ELSE NULL END / + - 40 * - 80 * ( 38 )
----
NULL

query I rowsort
SELECT + + 14 + - 81 + 66
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8799
SELECT ALL ( CASE - 14 WHEN + 60 THEN + 90 ELSE NULL END ) / 10 * - - 24, COUNT( * ) + + 37 + + 59 col2
----
NULL
97

skipif mysql # not compatible
query II rowsort label-8799
SELECT ALL ( CASE - 14 WHEN + 60 THEN + 90 ELSE NULL END ) / 10 * - - 24, COUNT ( * ) + + 37 + + 59 col2
----
NULL
97

query I rowsort
SELECT + 8 + + - 20
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8801
SELECT ALL - + NULLIF ( + CAST( NULL AS SIGNED ), - - COUNT( * ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL - + NULLIF ( + CAST ( NULL AS INTEGER ), - - COUNT ( * ) ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( - 53 ) col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT DISTINCT 28 - + 97 + - - MAX( ALL 38 )
----
-31

skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT 28 - + 97 + - - MAX ( ALL 38 )
----
-31

query I rowsort
SELECT - 72 + + - 17 AS col2
----
-89

query I rowsort
SELECT ALL + + 52 * + 46 - + 56
----
2336

query I rowsort
SELECT DISTINCT + COALESCE ( - - 2, - - 55 + - 23 ) AS col2
----
2

query I rowsort
SELECT + 25 + 64 AS col2
----
89

query II rowsort
SELECT ( 81 ) AS col1, 72
----
81
72

query II rowsort
SELECT - 38 + + 63, + 59 * - 9 AS col1
----
25
-531

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT ALL MIN( - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL MIN ( - 37 )
----
-37

query I rowsort
SELECT - - 61 + 53 + - 88 AS col0
----
26

query I rowsort
SELECT ALL ( + - 73 ) col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT - 30 * COUNT( * ) * - - 16 col2
----
-480

skipif mysql # not compatible
query I rowsort label-8813
SELECT - 30 * COUNT ( * ) * - - 16 col2
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ALL - COUNT( * ) * - - 95
----
-95

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL - COUNT ( * ) * - - 95
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8815
SELECT + 55 AS col2, - COALESCE ( + 10, + + 55 * 42 DIV + 71 - + ( - COALESCE ( 90, + - COUNT( * ) ) ) - - CAST( - 85 AS SIGNED ) DIV 70, 33 + + 72 ) * - 41 + + 21 + - + COUNT( * ) AS col0
----
55
430

skipif mysql # not compatible
query II rowsort label-8815
SELECT + 55 AS col2, - COALESCE ( + 10, + + 55 * 42 / + 71 - + ( - COALESCE ( 90, + - COUNT ( * ) ) ) - - CAST ( - 85 AS INTEGER ) / 70, 33 + + 72 ) * - 41 + + 21 + - + COUNT ( * ) AS col0
----
55
430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8816
SELECT - 6 * - 48 + CAST( - + 39 AS SIGNED ) * 26 AS col0
----
-726

skipif mysql # not compatible
query I rowsort label-8816
SELECT - 6 * - 48 + CAST ( - + 39 AS INTEGER ) * 26 AS col0
----
-726

query I rowsort
SELECT - 94 * + 14 AS col0
----
-1316

onlyif mysql # DIV for integer division: 
query I rowsort label-8818
SELECT 75 DIV - 98 + 18
----
18

skipif mysql # not compatible
query I rowsort label-8818
SELECT 75 / - 98 + 18
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-8819
SELECT + NULLIF ( + 9, 44 ) AS col1, + 19 - 74 + + - COUNT( * ) AS col0
----
9
-56

skipif mysql # not compatible
query II rowsort label-8819
SELECT + NULLIF ( + 9, 44 ) AS col1, + 19 - 74 + + - COUNT ( * ) AS col0
----
9
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8820
SELECT ALL + 7 DIV + - COUNT( * ) + - 43 - - COALESCE ( + ( 68 ), 0 ) * 54 + - 50 + + 77 + + + 6 * + 41 * + + 1
----
3895

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL + 7 / + - COUNT ( * ) + - 43 - - COALESCE ( + ( 68 ), 0 ) * 54 + - 50 + + 77 + + + 6 * + 41 * + + 1
----
3895

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT DISTINCT - 24 * - - 6 + MIN( + + 72 ) + - + 76 AS col2
----
-148

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT - 24 * - - 6 + MIN ( + + 72 ) + - + 76 AS col2
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT DISTINCT - COUNT( * ) * ( + - COUNT( * ) ) * 77
----
77

skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT - COUNT ( * ) * ( + - COUNT ( * ) ) * 77
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8823
SELECT + COUNT( * ), 94 - + 61 AS col0
----
1
33

skipif mysql # not compatible
query II rowsort label-8823
SELECT + COUNT ( * ), 94 - + 61 AS col0
----
1
33

onlyif mysql # aggregate syntax: 
query II rowsort label-8824
SELECT ALL + COUNT( * ) * + 55 + - - MAX( ALL - 30 ) col2, COUNT( * ) * - + 18 - COUNT( * )
----
25
-19

skipif mysql # not compatible
query II rowsort label-8824
SELECT ALL + COUNT ( * ) * + 55 + - - MAX ( ALL - 30 ) col2, COUNT ( * ) * - + 18 - COUNT ( * )
----
25
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT + MIN( ALL - - 4 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8825
SELECT + MIN ( ALL - - 4 ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT ALL 18 * - COUNT( DISTINCT - CASE - 13 WHEN - 23 THEN - 73 ELSE + 9 END ) + - CASE + - 16 WHEN - 38 THEN NULL ELSE - 8 END + - + 41 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL 18 * - COUNT ( DISTINCT - CASE - 13 WHEN - 23 THEN - 73 ELSE + 9 END ) + - CASE + - 16 WHEN - 38 THEN NULL ELSE - 8 END + - + 41 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-8827
SELECT ALL 86 * - - ( + + COUNT( * ) ) * - - ( NULLIF ( 20, + + 36 ) ) + - 54 AS col0, 75 * - - 59 - + 8 col1
----
1666
4417

skipif mysql # not compatible
query II rowsort label-8827
SELECT ALL 86 * - - ( + + COUNT ( * ) ) * - - ( NULLIF ( 20, + + 36 ) ) + - 54 AS col0, 75 * - - 59 - + 8 col1
----
1666
4417

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT ALL + MIN( + 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL + MIN ( + 30 ) AS col1
----
30

query I rowsort
SELECT + 52 + 79
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8830
SELECT - 84 - - 5 * - - COALESCE ( + 76, - 76 * - - 90 * + 4 + - - 44 + - + CAST( NULL AS SIGNED ) ) + - 86 + - + NULLIF ( + COUNT( ALL + 10 ), + 84 / - 79 ) col2
----
209

skipif mysql # not compatible
query I rowsort label-8830
SELECT - 84 - - 5 * - - COALESCE ( + 76, - 76 * - - 90 * + 4 + - - 44 + - + CAST ( NULL AS INTEGER ) ) + - 86 + - + NULLIF ( + COUNT ( ALL + 10 ), + 84 / - 79 ) col2
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT ALL + COALESCE ( COUNT( * ), - - 27, - 48 - - 66 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL + COALESCE ( COUNT ( * ), - - 27, - 48 - - 66 ) AS col1
----
1

query I rowsort
SELECT + NULLIF ( + + 4, + 75 + 9 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT - - CASE 67 WHEN COUNT( * ) + + 98 THEN + 26 + + + 50 + + + 73 + 81 ELSE + 88 END AS col0
----
88

skipif mysql # not compatible
query I rowsort label-8833
SELECT - - CASE 67 WHEN COUNT ( * ) + + 98 THEN + 26 + + + 50 + + + 73 + 81 ELSE + 88 END AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT + - 16 * + 74 * - - COALESCE ( ( 85 ), - - 15 + + 46, - CASE + - 80 WHEN - + 40 + - 14 - + 11 + + COUNT( * ) / - 12 THEN NULL WHEN - 78 THEN 97 * - - MIN( ALL + 7 ) * 67 + - 22 ELSE 58 END + - 14 ) AS col0
----
-100640

skipif mysql # not compatible
query I rowsort label-8834
SELECT + - 16 * + 74 * - - COALESCE ( ( 85 ), - - 15 + + 46, - CASE + - 80 WHEN - + 40 + - 14 - + 11 + + COUNT ( * ) / - 12 THEN NULL WHEN - 78 THEN 97 * - - MIN ( ALL + 7 ) * 67 + - 22 ELSE 58 END + - 14 ) AS col0
----
-100640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8835
SELECT + 60 - - CAST( - ( + ( - + COUNT( DISTINCT + ( + - 87 ) ) ) ) AS SIGNED ) + + MIN( - 56 ) + ( + - 83 ) * ( - - 98 ) AS col1
----
-8129

skipif mysql # not compatible
query I rowsort label-8835
SELECT + 60 - - CAST ( - ( + ( - + COUNT ( DISTINCT + ( + - 87 ) ) ) ) AS INTEGER ) + + MIN ( - 56 ) + ( + - 83 ) * ( - - 98 ) AS col1
----
-8129

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8836
SELECT + COUNT( * ) * - + 42 / + CAST( NULL AS DECIMAL ) + + AVG ( 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8836
SELECT + COUNT ( * ) * - + 42 / + CAST ( NULL AS REAL ) + + AVG ( 62 )
----
NULL

query I rowsort
SELECT + 69 * + + 97
----
6693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8838
SELECT - COALESCE ( COUNT( DISTINCT CAST( 25 AS SIGNED ) ), 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-8838
SELECT - COALESCE ( COUNT ( DISTINCT CAST ( 25 AS INTEGER ) ), 45 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8839
SELECT + COUNT( * ) + - 55 + 11 * + + CAST( + 11 AS SIGNED ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-8839
SELECT + COUNT ( * ) + - 55 + 11 * + + CAST ( + 11 AS INTEGER ) AS col0
----
67

query I rowsort
SELECT + + 90 * - 84 + + - ( + 80 ) * - 59
----
-2840

query I rowsort
SELECT ALL + 20 * 96 AS col1
----
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT DISTINCT - SUM( ALL ( - + 50 ) ) * - + 86
----
-4300

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT - SUM ( ALL ( - + 50 ) ) * - + 86
----
-4300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8843
SELECT COUNT( * ) DIV - 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8843
SELECT COUNT ( * ) / - 66 AS col2
----
0

query I rowsort
SELECT ALL ( 8 ) * + 77 AS col0
----
616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8845
SELECT CAST( + COUNT( * ) AS SIGNED ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8845
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * - COUNT ( * )
----
-1

query I rowsort
SELECT ALL + 7 + + 65
----
72

query II rowsort
SELECT NULLIF ( - 53, 89 + ( 32 ) * 19 ) - 31, - 51 col0
----
-84
-51

query I rowsort
SELECT 48 * + - 64 AS col1
----
-3072

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT DISTINCT 12 + CASE + 93 WHEN + - ( - 96 ) * 41 THEN NULL WHEN + - 45 + + 94 THEN + MIN( - - 29 ) - - 52 + + 69 * + COUNT( * ) + 90 * 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT 12 + CASE + 93 WHEN + - ( - 96 ) * 41 THEN NULL WHEN + - 45 + + 94 THEN + MIN ( - - 29 ) - - 52 + + 69 * + COUNT ( * ) + 90 * 6 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT DISTINCT - 17 * + - COUNT( DISTINCT - CASE - 53 WHEN - + 89 THEN NULL WHEN 89 - - - 31 * - + 6 THEN NULL ELSE - 64 END )
----
17

skipif mysql # not compatible
query I rowsort label-8850
SELECT DISTINCT - 17 * + - COUNT ( DISTINCT - CASE - 53 WHEN - + 89 THEN NULL WHEN 89 - - - 31 * - + 6 THEN NULL ELSE - 64 END )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8851
SELECT 38 DIV 7 * 29 AS col2
----
145

skipif mysql # not compatible
query I rowsort label-8851
SELECT 38 / 7 * 29 AS col2
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8852
SELECT ALL 47 + - 46 * - MIN( + + 98 ) + + 45 * + COALESCE ( + 34, 48 + - 14 DIV 68 + - COUNT( * ) )
----
6085

skipif mysql # not compatible
query I rowsort label-8852
SELECT ALL 47 + - 46 * - MIN ( + + 98 ) + + 45 * + COALESCE ( + 34, 48 + - 14 / 68 + - COUNT ( * ) )
----
6085

query I rowsort
SELECT DISTINCT + 90 + 33 + - - 71 AS col2
----
194

onlyif mysql # aggregate syntax: 
query II rowsort label-8854
SELECT DISTINCT - 99 * COUNT( * ) AS col1, COUNT( * )
----
-99
1

skipif mysql # not compatible
query II rowsort label-8854
SELECT DISTINCT - 99 * COUNT ( * ) AS col1, COUNT ( * )
----
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT ( - 46 ) + - COUNT( * ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-8855
SELECT ( - 46 ) + - COUNT ( * ) AS col0
----
-47

query I rowsort
SELECT + 26 * - - 7 - - 65 + + 22
----
269

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT ALL - CASE CASE 83 WHEN - ( + COUNT( * ) ) THEN NULL WHEN + 5 THEN + 95 ELSE NULL END WHEN COALESCE ( - + COUNT( * ), + COUNT( * ) + + + 80 + - 24 * 74, - - MIN( ALL + 42 ) ) THEN NULL WHEN + + 0 THEN NULL ELSE - - ( - 62 ) * 21 END AS col0
----
1302

skipif mysql # not compatible
query I rowsort label-8857
SELECT ALL - CASE CASE 83 WHEN - ( + COUNT ( * ) ) THEN NULL WHEN + 5 THEN + 95 ELSE NULL END WHEN COALESCE ( - + COUNT ( * ), + COUNT ( * ) + + + 80 + - 24 * 74, - - MIN ( ALL + 42 ) ) THEN NULL WHEN + + 0 THEN NULL ELSE - - ( - 62 ) * 21 END AS col0
----
1302

query II rowsort
SELECT 81 * - 20 * - - 99 + - 74 AS col0, 38
----
-160454
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT 64 - COALESCE ( 14, + 91, + + NULLIF ( - ( - MIN( DISTINCT + 66 ) ), - 12 + ( + 68 ) ), - 61 )
----
50

skipif mysql # not compatible
query I rowsort label-8859
SELECT 64 - COALESCE ( 14, + 91, + + NULLIF ( - ( - MIN ( DISTINCT + 66 ) ), - 12 + ( + 68 ) ), - 61 )
----
50

query II rowsort
SELECT 35 * + 65 AS col0, + 30 AS col0
----
2275
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT DISTINCT - 0 * + SUM( - - 4 )
----
0

skipif mysql # not compatible
query I rowsort label-8861
SELECT DISTINCT - 0 * + SUM ( - - 4 )
----
0

query I rowsort
SELECT - 63 * - + 78 + 12 col2
----
4926

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8863
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - 71, 15 + - 27 AS col2
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-8863
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - 71, 15 + - 27 AS col2
----
NULL
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-8864
SELECT ALL ( + 33 ) DIV + 19 col0
----
1

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL ( + 33 ) / + 19 col0
----
1

query I rowsort
SELECT - NULLIF ( - + 70, + 82 ) AS col2
----
70

query I rowsort
SELECT 13 * - 40 - - 9 AS col1
----
-511

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8867
SELECT SUM( + 36 ) * + CAST( 32 AS SIGNED ) col2
----
1152

skipif mysql # not compatible
query I rowsort label-8867
SELECT SUM ( + 36 ) * + CAST ( 32 AS INTEGER ) col2
----
1152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8868
SELECT CAST( NULL AS SIGNED ) + - - 19, CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8868
SELECT CAST ( NULL AS INTEGER ) + - - 19, CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

query I rowsort
SELECT - + ( - 47 ) AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8870
SELECT DISTINCT NULLIF ( + COUNT( - 74 ), + 5 * + 2 ) AS col0, - 14 * + 88 + 38 + 40 + ( 11 ) + - 2 / + - NULLIF ( + + CAST( NULL AS SIGNED ), + - 92 + 74 - 22 ) * + 74 * 53
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8870
SELECT DISTINCT NULLIF ( + COUNT ( - 74 ), + 5 * + 2 ) AS col0, - 14 * + 88 + 38 + 40 + ( 11 ) + - 2 / + - NULLIF ( + + CAST ( NULL AS INTEGER ), + - 92 + 74 - 22 ) * + 74 * 53
----
1
NULL

query I rowsort
SELECT 36 * ( - 52 ) + + 44 AS col2
----
-1828

query I rowsort
SELECT 67 - - 75 AS col0
----
142

query I rowsort
SELECT DISTINCT - 22 * - 53 + + 27
----
1193

query I rowsort
SELECT 94 * ( + 41 )
----
3854

query I rowsort
SELECT 0 + - 54 AS col0
----
-54

query II rowsort
SELECT - 51, + 58 AS col2
----
-51
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8877
SELECT ALL NULLIF ( + - 24, + CAST( + 69 AS SIGNED ) + + 82 ) * - 20 + + + 88 + 3
----
571

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL NULLIF ( + - 24, + CAST ( + 69 AS INTEGER ) + + 82 ) * - 20 + + + 88 + 3
----
571

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT DISTINCT COUNT( * ) + - - 8 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT COUNT ( * ) + - - 8 AS col2
----
9

query I rowsort
SELECT ALL 71 + - 13
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT ALL 35 * + - MIN( - + 2 ) / 68 * CASE + 13 WHEN ( - 90 ) THEN + + 25 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL 35 * + - MIN ( - + 2 ) / 68 * CASE + 13 WHEN ( - 90 ) THEN + + 25 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 31 * - 60
----
1860

query I rowsort
SELECT ALL + 76 + 66
----
142

query I rowsort
SELECT 54 + - 70
----
-16

query I rowsort
SELECT ALL ( - + 14 ) * 51
----
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT + MAX( + + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-8885
SELECT + MAX ( + + 23 )
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-8886
SELECT + 77 AS col2, 52 DIV - - 95 AS col2
----
77
0

skipif mysql # not compatible
query II rowsort label-8886
SELECT + 77 AS col2, 52 / - - 95 AS col2
----
77
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8887
SELECT ( 32 ) DIV + ( 7 ) + 78 DIV - 32 * COUNT( * ) + + 53 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-8887
SELECT ( 32 ) / + ( 7 ) + 78 / - 32 * COUNT ( * ) + + 53 AS col0
----
55

query I rowsort
SELECT ALL 78 * 71 - + COALESCE ( + 47, - 87 + + 54 ) AS col1
----
5491

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8889
SELECT 44 * + + 25 * + 40 AS col1, NULLIF ( + + AVG ( ALL - CAST( NULL AS SIGNED ) ), + 29 )
----
44000
NULL

skipif mysql # not compatible
query II rowsort label-8889
SELECT 44 * + + 25 * + 40 AS col1, NULLIF ( + + AVG ( ALL - CAST ( NULL AS INTEGER ) ), + 29 )
----
44000
NULL

query I rowsort
SELECT 80 * 16 AS col0
----
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT + MIN( ALL - 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-8891
SELECT + MIN ( ALL - 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT COUNT( DISTINCT + 7 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8892
SELECT COUNT ( DISTINCT + 7 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - COALESCE ( + 76, - 95 ) - + + 91 AS col1
----
-167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8894
SELECT CAST( + - COUNT( DISTINCT - 31 ) AS SIGNED ) * COUNT( * ) * + 57 * CASE + 16 WHEN 16 * + - 43 - - 70 + 44 + + 70 + 54 THEN NULL WHEN 67 + 7 * 30 THEN 18 + - + ( 38 ) END / + 1 + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8894
SELECT CAST ( + - COUNT ( DISTINCT - 31 ) AS INTEGER ) * COUNT ( * ) * + 57 * CASE + 16 WHEN 16 * + - 43 - - 70 + 44 + + 70 + 54 THEN NULL WHEN 67 + 7 * 30 THEN 18 + - + ( 38 ) END / + 1 + 58 AS col2
----
NULL

query I rowsort
SELECT 33 + 9 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8896
SELECT DISTINCT + CAST( NULLIF ( + 10, 74 * + 50 + + 82 / + + 86 ) AS SIGNED ) * - 99 - + + 92 AS col0
----
-1082

skipif mysql # not compatible
query I rowsort label-8896
SELECT DISTINCT + CAST ( NULLIF ( + 10, 74 * + 50 + + 82 / + + 86 ) AS INTEGER ) * - 99 - + + 92 AS col0
----
-1082

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT + SUM( - 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-8897
SELECT + SUM ( - 6 ) AS col2
----
-6

query I rowsort
SELECT ALL + - 46 * 2
----
-92

query I rowsort
SELECT 12 * - - 11
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT + 95 - 82 + + - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-8900
SELECT + 95 - 82 + + - COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8901
SELECT ALL - COUNT( * ) AS col0, 9
----
-1
9

skipif mysql # not compatible
query II rowsort label-8901
SELECT ALL - COUNT ( * ) AS col0, 9
----
-1
9

query I rowsort
SELECT ALL + 84 * + 22 AS col2
----
1848

query I rowsort
SELECT DISTINCT - ( + ( + - 73 ) )
----
73

query I rowsort
SELECT - - 87 * 95
----
8265

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8905
SELECT - + CAST( NULL AS SIGNED ) / - + ( + 56 ) AS col2, + 14 * - 30 AS col0
----
NULL
-420

skipif mysql # not compatible
query II rowsort label-8905
SELECT - + CAST ( NULL AS INTEGER ) / - + ( + 56 ) AS col2, + 14 * - 30 AS col0
----
NULL
-420

onlyif mysql # DIV for integer division: 
query I rowsort label-8906
SELECT - + 7 DIV 54 + - 1 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8906
SELECT - + 7 / 54 + - 1 AS col2
----
-1

query I rowsort
SELECT ALL + + 28 + - - 76
----
104

query I rowsort
SELECT + 1 * + COALESCE ( - NULLIF ( - 20, - 23 ), 76 )
----
20

query I rowsort
SELECT - 13 * 60 AS col1
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT DISTINCT 18 + - + 88 * - + COUNT( * )
----
106

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT 18 + - + 88 * - + COUNT ( * )
----
106

query I rowsort
SELECT DISTINCT - 90 + - 55 AS col2
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT ALL 53 + - ( - 83 ) - - 94 + - + COUNT( * ) AS col0
----
229

skipif mysql # not compatible
query I rowsort label-8912
SELECT ALL 53 + - ( - 83 ) - - 94 + - + COUNT ( * ) AS col0
----
229

query I rowsort
SELECT DISTINCT 12 + + 19 AS col1
----
31

query I rowsort
SELECT ALL + 17 * - + 21
----
-357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8915
SELECT - 29 + 73 * + CAST( NULL AS SIGNED ) * - - 92 + ( + 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT - 29 + 73 * + CAST ( NULL AS INTEGER ) * - - 92 + ( + 34 )
----
NULL

query II rowsort
SELECT ALL 17 - - + 60 + + 97 * - 57, 89 AS col1
----
-5452
89

query I rowsort
SELECT - 23 - 6 AS col0
----
-29

query I rowsort
SELECT - 82 * + + 1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8919
SELECT 81 col0, CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + 47 + + 83 / + 54 / 17 AS col2
----
81
NULL

skipif mysql # not compatible
query II rowsort label-8919
SELECT 81 col0, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 47 + + 83 / + 54 / 17 AS col2
----
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT + MIN( 94 ) - + 36
----
58

skipif mysql # not compatible
query I rowsort label-8920
SELECT + MIN ( 94 ) - + 36
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT + ( - 63 ) * 19 * + COUNT( * ) AS col2
----
-1197

skipif mysql # not compatible
query I rowsort label-8921
SELECT + ( - 63 ) * 19 * + COUNT ( * ) AS col2
----
-1197

onlyif mysql # DIV for integer division: 
query I rowsort label-8922
SELECT DISTINCT 11 DIV - 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT 11 / - 47 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8923
SELECT DISTINCT + CAST( - 37 AS SIGNED ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT + CAST ( - 37 AS INTEGER ) AS col1
----
-37

query I rowsort
SELECT ALL 46 * - + 32
----
-1472

query II rowsort
SELECT + 30 * - 33 + + 58 - + 90 AS col2, + 64 + 47
----
-1022
111

query I rowsort
SELECT + COALESCE ( - 19, + 44 * - + 75, - + ( + ( + + 78 ) ), + 69 )
----
-19

query I rowsort
SELECT - 77 * 23 - - 90
----
-1681

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8928
SELECT ALL + CAST( + - 31 AS SIGNED ) AS col1, ( - CAST( NULL AS SIGNED ) )
----
-31
NULL

skipif mysql # not compatible
query II rowsort label-8928
SELECT ALL + CAST ( + - 31 AS INTEGER ) AS col1, ( - CAST ( NULL AS INTEGER ) )
----
-31
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8929
SELECT + - 35 + - 11 DIV - 83 col2
----
-35

skipif mysql # not compatible
query I rowsort label-8929
SELECT + - 35 + - 11 / - 83 col2
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8930
SELECT + COUNT( * ) DIV 62 * + 84 * + - 47 * + 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8930
SELECT + COUNT ( * ) / 62 * + 84 * + - 47 * + 79 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8931
SELECT + 9 * COUNT( * ), 90 - + 52 * + - 71 * - + 28 * COUNT( * ) * + + 60 AS col1
----
9
-6202470

skipif mysql # not compatible
query II rowsort label-8931
SELECT + 9 * COUNT ( * ), 90 - + 52 * + - 71 * - + 28 * COUNT ( * ) * + + 60 AS col1
----
9
-6202470

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT - 22 * + COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-8932
SELECT - 22 * + COUNT ( * ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT MAX( ALL - + 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-8933
SELECT MAX ( ALL - + 70 )
----
-70

query I rowsort
SELECT COALESCE ( - 67, 69 )
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-8935
SELECT ALL + COUNT( * ), - 98 * 49 * - 90 * + + 32 AS col0
----
1
13829760

skipif mysql # not compatible
query II rowsort label-8935
SELECT ALL + COUNT ( * ), - 98 * 49 * - 90 * + + 32 AS col0
----
1
13829760

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT + COUNT( DISTINCT ( 57 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8936
SELECT + COUNT ( DISTINCT ( 57 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8937
SELECT DISTINCT + ( 88 ), COALESCE ( + - 83, 0 + + - 20, + COUNT( * ) ) AS col2
----
88
-83

skipif mysql # not compatible
query II rowsort label-8937
SELECT DISTINCT + ( 88 ), COALESCE ( + - 83, 0 + + - 20, + COUNT ( * ) ) AS col2
----
88
-83

query I rowsort
SELECT + - 77 * - 90 col1
----
6930

query I rowsort
SELECT + 93 + + NULLIF ( - ( - + 41 ), + + 65 - ( + + ( 91 ) ) )
----
134

query I rowsort
SELECT ALL - 53 * 66 + + 93
----
-3405

query I rowsort
SELECT + 93 * - 21 + - 38
----
-1991

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT - MAX( DISTINCT + 46 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-8942
SELECT - MAX ( DISTINCT + 46 ) AS col1
----
-46

query I rowsort
SELECT ALL + 24 * 15 + + 87 + - CASE - - 32 WHEN - 86 THEN - 94 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT + 91 + 97 * - 53 + + COUNT( * ) AS col1
----
-5049

skipif mysql # not compatible
query I rowsort label-8944
SELECT + 91 + 97 * - 53 + + COUNT ( * ) AS col1
----
-5049

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8945
SELECT DISTINCT + 39 * + - 64 + COALESCE ( + 47, + - 23, 37 ) - - - 81 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT + 39 * + - 64 + COALESCE ( + 47, + - 23, 37 ) - - - 81 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( ( 62 ) ) AS col1
----
62

query I rowsort
SELECT - 89 + + 65 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT ALL 95 + + COUNT( * ) * 92 AS col1
----
187

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL 95 + + COUNT ( * ) * 92 AS col1
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT - COUNT( 10 ) * + 22 * + 72 - 81 + 9
----
-1656

skipif mysql # not compatible
query I rowsort label-8949
SELECT - COUNT ( 10 ) * + 22 * + 72 - 81 + 9
----
-1656

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8950
SELECT ALL + 76 + - CAST( NULL AS DECIMAL ) + - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL + 76 + - CAST ( NULL AS REAL ) + - 83 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8951
SELECT DISTINCT + ( + 83 ) * COUNT( * ) * + + 6 * CAST( 56 AS SIGNED ) * 37 AS col1, 61
----
1031856
61

skipif mysql # not compatible
query II rowsort label-8951
SELECT DISTINCT + ( + 83 ) * COUNT ( * ) * + + 6 * CAST ( 56 AS INTEGER ) * 37 AS col1, 61
----
1031856
61

query I rowsort
SELECT - 18 * - ( + 61 )
----
1098

query I rowsort
SELECT ALL COALESCE ( 76, - 94 + 27 + - - 43 * + 23 ) AS col2
----
76

query II rowsort
SELECT - 35 + + 25 AS col2, 80
----
-10
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8955
SELECT - 23 + + CAST( ( + 46 ) AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-8955
SELECT - 23 + + CAST ( ( + 46 ) AS INTEGER )
----
23

query II rowsort
SELECT + 88 + + 30, + 88 AS col1
----
118
88

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8957
SELECT - 99 + - CAST( NULL AS DECIMAL ), NULLIF ( ( + - 13 ), + - 21 - 42 - 54 + - - 58 ) AS col1
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-8957
SELECT - 99 + - CAST ( NULL AS REAL ), NULLIF ( ( + - 13 ), + - 21 - 42 - 54 + - - 58 ) AS col1
----
NULL
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT + 5 - + 21 * - + COUNT( - - 90 ) + + ( + 6 ) col2
----
32

skipif mysql # not compatible
query I rowsort label-8958
SELECT + 5 - + 21 * - + COUNT ( - - 90 ) + + ( + 6 ) col2
----
32

query I rowsort
SELECT DISTINCT 5 * - - 49 * - 98 col0
----
-24010

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8960
SELECT DISTINCT + 96 - - + 69 + - + NULLIF ( 38, CAST( NULL AS SIGNED ) ) AS col1
----
127

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT + 96 - - + 69 + - + NULLIF ( 38, CAST ( NULL AS INTEGER ) ) AS col1
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-8961
SELECT - 28 * + + COUNT( * ), 16 AS col1
----
-28
16

skipif mysql # not compatible
query II rowsort label-8961
SELECT - 28 * + + COUNT ( * ), 16 AS col1
----
-28
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8962
SELECT DISTINCT 12 + COALESCE ( - - 2, + + 61 DIV 18 * + 73 DIV + SUM( 21 ) * 56 + 49 * - 66 + + NULLIF ( - 98, - + COALESCE ( + 10, + - 17, + 88 - - SUM( - - 2 ) ) * CAST( NULL AS SIGNED ) ) ) AS col0, COUNT( * ) AS col2
----
14
1

skipif mysql # not compatible
query II rowsort label-8962
SELECT DISTINCT 12 + COALESCE ( - - 2, + + 61 / 18 * + 73 / + SUM ( 21 ) * 56 + 49 * - 66 + + NULLIF ( - 98, - + COALESCE ( + 10, + - 17, + 88 - - SUM ( - - 2 ) ) * CAST ( NULL AS INTEGER ) ) ) AS col0, COUNT ( * ) AS col2
----
14
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT DISTINCT - COUNT( 81 ) + + 67
----
66

skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT - COUNT ( 81 ) + + 67
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT - COALESCE ( + COUNT( ALL - 14 ), - - 43 ) + + - 45 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-8964
SELECT - COALESCE ( + COUNT ( ALL - 14 ), - - 43 ) + + - 45 AS col1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-8965
SELECT 80 DIV + 51 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8965
SELECT 80 / + 51 AS col1
----
1

query I rowsort
SELECT - 66 * + 21 AS col1
----
-1386

query I rowsort
SELECT - 80 - + 4 AS col2
----
-84

query II rowsort
SELECT ALL - ( 74 ) AS col0, 94
----
-74
94

query I rowsort
SELECT DISTINCT 24 + + + 17
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8970
SELECT 59 - 87 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8970
SELECT 59 - 87 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 44 - - - 42 AS col1
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-8972
SELECT 35 DIV + 56 col1
----
0

skipif mysql # not compatible
query I rowsort label-8972
SELECT 35 / + 56 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8973
SELECT 48 DIV - 91 col0
----
0

skipif mysql # not compatible
query I rowsort label-8973
SELECT 48 / - 91 col0
----
0

query I rowsort
SELECT ALL - 54 * - + 86
----
4644

onlyif mysql # aggregate syntax: 
query II rowsort label-8975
SELECT 98, - CASE - 36 WHEN 29 / + + 33 * + 22 * 14 + + NULLIF ( + 78, - 62 ) + - 94 + - 68 / - 56 + + - 72 * - - MAX( 15 ) THEN NULL ELSE 73 END AS col0
----
98
-73

skipif mysql # not compatible
query II rowsort label-8975
SELECT 98, - CASE - 36 WHEN 29 / + + 33 * + 22 * 14 + + NULLIF ( + 78, - 62 ) + - 94 + - 68 / - 56 + + - 72 * - - MAX ( 15 ) THEN NULL ELSE 73 END AS col0
----
98
-73

query I rowsort
SELECT ALL 82 * + - 87 AS col1
----
-7134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8977
SELECT ALL 69 AS col1, - CAST( - + 73 AS SIGNED ) * + 79
----
69
5767

skipif mysql # not compatible
query II rowsort label-8977
SELECT ALL 69 AS col1, - CAST ( - + 73 AS INTEGER ) * + 79
----
69
5767

onlyif mysql # aggregate syntax: 
query II rowsort label-8978
SELECT ALL 73, 4 + - COUNT( * ) AS col0
----
73
3

skipif mysql # not compatible
query II rowsort label-8978
SELECT ALL 73, 4 + - COUNT ( * ) AS col0
----
73
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT DISTINCT 75 * NULLIF ( - - 5, - - 6 + + + SUM( ALL + + 22 ) ) col1
----
375

skipif mysql # not compatible
query I rowsort label-8979
SELECT DISTINCT 75 * NULLIF ( - - 5, - - 6 + + + SUM ( ALL + + 22 ) ) col1
----
375

query I rowsort
SELECT ALL 34 * - 48 AS col1
----
-1632

onlyif mysql # aggregate syntax: 
query II rowsort label-8981
SELECT - 28 AS col0, COUNT( * ) AS col1
----
-28
1

skipif mysql # not compatible
query II rowsort label-8981
SELECT - 28 AS col0, COUNT ( * ) AS col1
----
-28
1

query II rowsort
SELECT 98 AS col1, 84 - - 60
----
98
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8983
SELECT 63 + 97 DIV MIN( DISTINCT + + 58 ) col0
----
64

skipif mysql # not compatible
query I rowsort label-8983
SELECT 63 + 97 / MIN ( DISTINCT + + 58 ) col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT 98 * + 88 * + MIN( + - 33 ) * + 9 + 94 + - 28 * + 65 + + + 34
----
-2563020

skipif mysql # not compatible
query I rowsort label-8984
SELECT 98 * + 88 * + MIN ( + - 33 ) * + 9 + 94 + - 28 * + 65 + + + 34
----
-2563020

query I rowsort
SELECT + 21 - - + 72
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8986
SELECT DISTINCT - 90 DIV + 86 + ( NULLIF ( ( 97 ), + CASE 46 WHEN + + 59 * - 77 THEN NULL WHEN - - 85 THEN + 43 ELSE - - 44 + + COUNT( * ) DIV - 51 * + 77 END ) ) - + + COUNT( * ) * - - COUNT( * ) + + - COALESCE ( + 45, - - CASE WHEN NOT + NULLIF ( - COUNT( * ), 86 ) IS NULL THEN - 46 * + 18 ELSE - 75 END + ( 83 ) ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8986
SELECT DISTINCT - 90 / + 86 + ( NULLIF ( ( 97 ), + CASE 46 WHEN + + 59 * - 77 THEN NULL WHEN - - 85 THEN + 43 ELSE - - 44 + + COUNT ( * ) / - 51 * + 77 END ) ) - + + COUNT ( * ) * - - COUNT ( * ) + + - COALESCE ( + 45, - - CASE WHEN NOT + NULLIF ( - COUNT ( * ), 86 ) IS NULL THEN - 46 * + 18 ELSE - 75 END + ( 83 ) ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT CASE + - ( - 89 ) WHEN + AVG ( ALL + + 68 ) THEN COUNT( + ( 50 ) ) WHEN - 83 THEN NULL ELSE NULL END + 29 * 28 * - - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT CASE + - ( - 89 ) WHEN + AVG ( ALL + + 68 ) THEN COUNT ( + ( 50 ) ) WHEN - 83 THEN NULL ELSE NULL END + 29 * 28 * - - 6
----
NULL

query I rowsort
SELECT ALL + ( + - 8 ) col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT ALL - ( - 58 ) + + - MIN( DISTINCT + - ( 1 ) ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL - ( - 58 ) + + - MIN ( DISTINCT + - ( 1 ) ) AS col2
----
59

query I rowsort
SELECT + 48 + - - 85 AS col1
----
133

query I rowsort
SELECT ALL - 46 + 86
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8992
SELECT + COALESCE ( - COUNT( * ), - CAST( - - CAST( CASE 23 WHEN + 97 / + + 47 THEN NULL ELSE + 19 END AS SIGNED ) AS SIGNED ) * 40 ) * 10 + + - 40 + 4 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-8992
SELECT + COALESCE ( - COUNT ( * ), - CAST ( - - CAST ( CASE 23 WHEN + 97 / + + 47 THEN NULL ELSE + 19 END AS INTEGER ) AS INTEGER ) * 40 ) * 10 + + - 40 + 4 AS col2
----
-46

query I rowsort
SELECT ALL ( + 90 ) + 83 AS col2
----
173

query I rowsort
SELECT COALESCE ( - + 98, - 60 )
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-8995
SELECT ALL - 55 * + CASE 13 WHEN 12 THEN NULL WHEN - COALESCE ( 47, - SUM( DISTINCT 66 ) * + 50 / - 2, - 69 * + - 45 ) THEN NULL WHEN - 95 * 17 THEN + - 0 + - 55 ELSE NULL END AS col1, ( - 95 ) AS col2
----
NULL
-95

skipif mysql # not compatible
query II rowsort label-8995
SELECT ALL - 55 * + CASE 13 WHEN 12 THEN NULL WHEN - COALESCE ( 47, - SUM ( DISTINCT 66 ) * + 50 / - 2, - 69 * + - 45 ) THEN NULL WHEN - 95 * 17 THEN + - 0 + - 55 ELSE NULL END AS col1, ( - 95 ) AS col2
----
NULL
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-8996
SELECT - 43 DIV + 72 * - 63 + + + 42 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-8996
SELECT - 43 / + 72 * - 63 + + + 42 AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8997
SELECT - COALESCE ( - + CAST( NULL AS SIGNED ), - 84 DIV + - ( + 55 ) * - COUNT( * ), + 20 * + 81 DIV - 86 * + - COUNT( DISTINCT 44 ) + + - 94 * - 90 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8997
SELECT - COALESCE ( - + CAST ( NULL AS INTEGER ), - 84 / + - ( + 55 ) * - COUNT ( * ), + 20 * + 81 / - 86 * + - COUNT ( DISTINCT 44 ) + + - 94 * - 90 ) AS col1
----
1

query I rowsort
SELECT - 11 + + 87 AS col2
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8999
SELECT ALL - 45 * - COUNT( * ) DIV - - 82 + - 10 * + 78
----
-780

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL - 45 * - COUNT ( * ) / - - 82 + - 10 * + 78
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT ALL + + COUNT( DISTINCT 68 ) - 73 + + - 1 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL + + COUNT ( DISTINCT 68 ) - 73 + + - 1 AS col0
----
-73

query I rowsort
SELECT DISTINCT - ( + - 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT CASE 25 WHEN 16 THEN 93 WHEN + 94 THEN NULL ELSE NULL END * + + 0 + + - 56 + + 39 * + ( + COUNT( * ) ) * 12 - - NULLIF ( ( + 23 ), + + 73 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9002
SELECT CASE 25 WHEN 16 THEN 93 WHEN + 94 THEN NULL ELSE NULL END * + + 0 + + - 56 + + 39 * + ( + COUNT ( * ) ) * 12 - - NULLIF ( ( + 23 ), + + 73 ) AS col0
----
NULL

query I rowsort
SELECT 29 * - 87 * - 56 AS col0
----
141288

query I rowsort
SELECT 38 * + 13
----
494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9005
SELECT ALL 94 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL 94 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT 44 + - 97 + - 13 + - SUM( ( + ( + 31 ) ) )
----
-97

skipif mysql # not compatible
query I rowsort label-9006
SELECT 44 + - 97 + - 13 + - SUM ( ( + ( + 31 ) ) )
----
-97

query I rowsort
SELECT DISTINCT - 13 * 15 AS col1
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT ALL COUNT( DISTINCT + 91 )
----
1

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL COUNT ( DISTINCT + 91 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT SUM( ALL + + 96 ) + + 41 AS col2
----
137

skipif mysql # not compatible
query I rowsort label-9009
SELECT SUM ( ALL + + 96 ) + + 41 AS col2
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9010
SELECT ( + 3 ) + - - 27 * COUNT( * ) DIV + - 98
----
3

skipif mysql # not compatible
query I rowsort label-9010
SELECT ( + 3 ) + - - 27 * COUNT ( * ) / + - 98
----
3

query I rowsort
SELECT 53 * - 63 AS col0
----
-3339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9012
SELECT COUNT( DISTINCT CAST( - 82 AS SIGNED ) ) + - 0 * + + ( - 74 ) DIV - 65 * + 62 * 75 + + + 2 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9012
SELECT COUNT ( DISTINCT CAST ( - 82 AS INTEGER ) ) + - 0 * + + ( - 74 ) / - 65 * + 62 * 75 + + + 2 AS col0
----
3

query I rowsort
SELECT ALL 92 + + 18 - - 38
----
148

query I rowsort
SELECT DISTINCT + 17 * + 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9015
SELECT + 46 DIV + 44 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9015
SELECT + 46 / + 44 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT - COUNT( ALL + 44 ) * + + 45 + 53
----
8

skipif mysql # not compatible
query I rowsort label-9016
SELECT - COUNT ( ALL + 44 ) * + + 45 + 53
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9017
SELECT DISTINCT + 68 + + + 58 AS col1, + CAST( NULL AS SIGNED )
----
126
NULL

skipif mysql # not compatible
query II rowsort label-9017
SELECT DISTINCT + 68 + + + 58 AS col1, + CAST ( NULL AS INTEGER )
----
126
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9018
SELECT + 12 DIV CASE - 40 WHEN 22 THEN - COUNT( * ) ELSE + 95 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9018
SELECT + 12 / CASE - 40 WHEN 22 THEN - COUNT ( * ) ELSE + 95 END AS col1
----
0

query I rowsort
SELECT - + 26 * 39 + - 33
----
-1047

query I rowsort
SELECT ALL - - ( 13 ) * - 31 + - 17
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT + + 29 * - 23 + + MIN( DISTINCT - ( - - 58 ) ) + - 44 * - + 81
----
2839

skipif mysql # not compatible
query I rowsort label-9021
SELECT + + 29 * - 23 + + MIN ( DISTINCT - ( - - 58 ) ) + - 44 * - + 81
----
2839

onlyif mysql # DIV for integer division: 
query I rowsort label-9022
SELECT 65 DIV 46 + 70
----
71

skipif mysql # not compatible
query I rowsort label-9022
SELECT 65 / 46 + 70
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9023
SELECT ALL + - ( - + SUM( - 9 ) ) DIV - 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL + - ( - + SUM ( - 9 ) ) / - 39 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9024
SELECT - 58 + + 91 + + + 98 DIV COUNT( * ) * - COUNT( * ) + + + 90 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-9024
SELECT - 58 + + 91 + + + 98 / COUNT ( * ) * - COUNT ( * ) + + + 90 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT DISTINCT - + 30 * + 30 - - COALESCE ( - 30, - COUNT( * ) )
----
-930

skipif mysql # not compatible
query I rowsort label-9025
SELECT DISTINCT - + 30 * + 30 - - COALESCE ( - 30, - COUNT ( * ) )
----
-930

query I rowsort
SELECT ALL - 94 * + 56 + 70 - + + 56
----
-5250

query I rowsort
SELECT + + 27 col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT ALL + MIN( DISTINCT - ( + + 2 ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL + MIN ( DISTINCT - ( + + 2 ) ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9029
SELECT DISTINCT - 60 * - - COUNT( * ) AS col0, 68
----
-60
68

skipif mysql # not compatible
query II rowsort label-9029
SELECT DISTINCT - 60 * - - COUNT ( * ) AS col0, 68
----
-60
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT ALL - 49 * - 12 * - - MIN( 51 ) col0
----
29988

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL - 49 * - 12 * - - MIN ( 51 ) col0
----
29988

query I rowsort
SELECT - + 38 * 68 AS col2
----
-2584

query I rowsort
SELECT - + 27 * 4
----
-108

query I rowsort
SELECT - 36 + + 33 AS col1
----
-3

query I rowsort
SELECT COALESCE ( - - ( + - 13 ), 67 + - 31 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT + COUNT( 2 ) * - 87 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-9035
SELECT + COUNT ( 2 ) * - 87 AS col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9036
SELECT ALL + COALESCE ( - NULLIF ( + CAST( - COUNT( * ) AS SIGNED ), - + 54 ), COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL + COALESCE ( - NULLIF ( + CAST ( - COUNT ( * ) AS INTEGER ), - + 54 ), COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT DISTINCT + MAX( DISTINCT + + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT + MAX ( DISTINCT + + 52 )
----
52

query I rowsort
SELECT + 2 * + 17 * - 83 - + 38 AS col0
----
-2860

onlyif mysql # DIV for integer division: 
query I rowsort label-9039
SELECT ALL 47 DIV 16 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL 47 / 16 AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9040
SELECT - COUNT( - + 37 ) * - - 41, 13 AS col2
----
-41
13

skipif mysql # not compatible
query II rowsort label-9040
SELECT - COUNT ( - + 37 ) * - - 41, 13 AS col2
----
-41
13

query I rowsort
SELECT ALL + CASE 7 WHEN 78 THEN NULL ELSE 54 END
----
54

query I rowsort
SELECT DISTINCT 82 * + 71 AS col0
----
5822

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT SUM( ALL + 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9043
SELECT SUM ( ALL + 54 ) AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9044
SELECT - COUNT( * ) / + + 80 * + - 61 * + + 41 * 79 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT - COUNT ( * ) / + + 80 * + - 61 * + + 41 * 79 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9045
SELECT + 81 - + - 36 + - 94 * ( 23 ) DIV - - 81 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-9045
SELECT + 81 - + - 36 + - 94 * ( 23 ) / - - 81 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT - 93 * + COUNT( * ) * - 2 * - 70 AS col0
----
-13020

skipif mysql # not compatible
query I rowsort label-9046
SELECT - 93 * + COUNT ( * ) * - 2 * - 70 AS col0
----
-13020

query II rowsort
SELECT + 99 * + - 16 * 24 AS col0, - 95 col0
----
-38016
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT + ( - 51 ) * + 1 - + 9 + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-9048
SELECT + ( - 51 ) * + 1 - + 9 + COUNT ( * )
----
-59

query I rowsort
SELECT ALL + 19 + - + 17 * - + 25 AS col2
----
444

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9050
SELECT ALL - 65 * + NULLIF ( 60, - 1 + 25 ) col1, CAST( + 75 AS SIGNED ) * 60 * + 60 + 87
----
-3900
270087

skipif mysql # not compatible
query II rowsort label-9050
SELECT ALL - 65 * + NULLIF ( 60, - 1 + 25 ) col1, CAST ( + 75 AS INTEGER ) * 60 * + 60 + 87
----
-3900
270087

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT DISTINCT + 10 + + - COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-9051
SELECT DISTINCT + 10 + + - COUNT ( * ) AS col2
----
9

query I rowsort
SELECT ALL 75 + - 11
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT ALL - COUNT( * ) + + 80
----
79

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL - COUNT ( * ) + + 80
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9054
SELECT + - 0 + COUNT( 69 ) col2, 60 + - 90 * + 72 AS col1
----
1
-6420

skipif mysql # not compatible
query II rowsort label-9054
SELECT + - 0 + COUNT ( 69 ) col2, 60 + - 90 * + 72 AS col1
----
1
-6420

onlyif mysql # aggregate syntax: 
query II rowsort label-9055
SELECT + ( 64 ) + + COUNT( * ) AS col2, 48 AS col0
----
65
48

skipif mysql # not compatible
query II rowsort label-9055
SELECT + ( 64 ) + + COUNT ( * ) AS col2, 48 AS col0
----
65
48

query I rowsort
SELECT - 89 * + - 21 - - - 73 + + ( 53 ) + 33
----
1882

query I rowsort
SELECT + 33 + - 10 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT ALL 2 - + - NULLIF ( - + 84, - COUNT( * ) ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL 2 - + - NULLIF ( - + 84, - COUNT ( * ) ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT + - COALESCE ( 33, - COUNT( * ) + COUNT( * ) * 50 ) * + + NULLIF ( + 77, - 62 )
----
-2541

skipif mysql # not compatible
query I rowsort label-9059
SELECT + - COALESCE ( 33, - COUNT ( * ) + COUNT ( * ) * 50 ) * + + NULLIF ( + 77, - 62 )
----
-2541

query I rowsort
SELECT DISTINCT - 12 * - + 32
----
384

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9061
SELECT DISTINCT + 36 DIV - 75 - - CAST( - - 64 AS SIGNED ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-9061
SELECT DISTINCT + 36 / - 75 - - CAST ( - - 64 AS INTEGER ) AS col0
----
64

query I rowsort
SELECT + - 73 + + - 93 AS col2
----
-166

query I rowsort
SELECT ALL + + 52 col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9064
SELECT + COUNT( * ) * + 83 DIV - 95 * + ( - - 89 ) * 59
----
0

skipif mysql # not compatible
query I rowsort label-9064
SELECT + COUNT ( * ) * + 83 / - 95 * + ( - - 89 ) * 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT - + COUNT( - 31 ) + - 71 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-9065
SELECT - + COUNT ( - 31 ) + - 71 AS col0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9066
SELECT - ( + 6 ) + + - NULLIF ( + COUNT( * ), 35 * - - 25 + + 48 ) - COALESCE ( - 75, + CAST( NULL AS SIGNED ) + CASE - + 33 WHEN - 68 * + - 38 + - CASE + - 18 WHEN - COALESCE ( 76, + 63, - 13 + - + 20 + - + 70 + + 43 DIV - 2 ) THEN + + 74 + - - 50 + 92 * 19 WHEN - COUNT( * ) THEN - CAST( - COALESCE ( 20, + CAST( 19 AS SIGNED ) + + 72 ) AS SIGNED ) ELSE NULL END + + 21 * 68 THEN NULL WHEN MIN( 46 ) THEN + 17 WHEN + 64 + - 32 THEN NULL ELSE + NULLIF ( 65, - 13 DIV - MIN( ALL + 54 ) + - 16 ) - + AVG ( 66 ) DIV + 73 END ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-9066
SELECT - ( + 6 ) + + - NULLIF ( + COUNT ( * ), 35 * - - 25 + + 48 ) - COALESCE ( - 75, + CAST ( NULL AS INTEGER ) + CASE - + 33 WHEN - 68 * + - 38 + - CASE + - 18 WHEN - COALESCE ( 76, + 63, - 13 + - + 20 + - + 70 + + 43 / - 2 ) THEN + + 74 + - - 50 + 92 * 19 WHEN - COUNT ( * ) THEN - CAST ( - COALESCE ( 20, + CAST ( 19 AS INTEGER ) + + 72 ) AS INTEGER ) ELSE NULL END + + 21 * 68 THEN NULL WHEN MIN ( 46 ) THEN + 17 WHEN + 64 + - 32 THEN NULL ELSE + NULLIF ( 65, - 13 / - MIN ( ALL + 54 ) + - 16 ) - + AVG ( 66 ) / + 73 END ) AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9067
SELECT + CAST( - 41 AS SIGNED ) AS col2, 85 + 24
----
-41
109

skipif mysql # not compatible
query II rowsort label-9067
SELECT + CAST ( - 41 AS INTEGER ) AS col2, 85 + 24
----
-41
109

onlyif mysql # DIV for integer division: 
query I rowsort label-9068
SELECT - ( + 79 ) DIV + 48
----
-1

skipif mysql # not compatible
query I rowsort label-9068
SELECT - ( + 79 ) / + 48
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9069
SELECT ALL + COUNT( * ) AS col2, 70 * 70 + + - COUNT( * ) AS col0
----
1
4899

skipif mysql # not compatible
query II rowsort label-9069
SELECT ALL + COUNT ( * ) AS col2, 70 * 70 + + - COUNT ( * ) AS col0
----
1
4899

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT COUNT( * ) * 6 + - 41 * - 20 col0
----
826

skipif mysql # not compatible
query I rowsort label-9070
SELECT COUNT ( * ) * 6 + - 41 * - 20 col0
----
826

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT DISTINCT + MAX( 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-9071
SELECT DISTINCT + MAX ( 28 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT DISTINCT + 41 * COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT + 41 * COUNT ( * ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT ALL 48 * COUNT( * ) + + + 92 AS col0
----
140

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL 48 * COUNT ( * ) + + + 92 AS col0
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-9074
SELECT DISTINCT + 5 AS col0, - COUNT( * )
----
5
-1

skipif mysql # not compatible
query II rowsort label-9074
SELECT DISTINCT + 5 AS col0, - COUNT ( * )
----
5
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9075
SELECT ALL 98 * + 56 * - 63 DIV - 21 + + 59 AS col0
----
16523

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL 98 * + 56 * - 63 / - 21 + + 59 AS col0
----
16523

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT ( + - SUM( 23 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-9076
SELECT ( + - SUM ( 23 ) )
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-9077
SELECT + COUNT( * ) AS col2, + 85 AS col1
----
1
85

skipif mysql # not compatible
query II rowsort label-9077
SELECT + COUNT ( * ) AS col2, + 85 AS col1
----
1
85

query I rowsort
SELECT - ( 79 ) * 64 * 82
----
-414592

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT - COALESCE ( - MIN( DISTINCT - - 17 ), - 91 * ( COUNT( * ) ) ) + 70 - 99
----
-12

skipif mysql # not compatible
query I rowsort label-9079
SELECT - COALESCE ( - MIN ( DISTINCT - - 17 ), - 91 * ( COUNT ( * ) ) ) + 70 - 99
----
-12

query II rowsort
SELECT - 21 AS col0, COALESCE ( - 96, + 21 ) AS col1
----
-21
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT 79 + - - NULLIF ( + COUNT( * ), + COUNT( * ) ) - - SUM( ALL - - 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9081
SELECT 79 + - - NULLIF ( + COUNT ( * ), + COUNT ( * ) ) - - SUM ( ALL - - 16 )
----
NULL

query I rowsort
SELECT ALL + 33 * 34
----
1122

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT 89 + + 50 * - 48 * - 37 * COUNT( * )
----
88889

skipif mysql # not compatible
query I rowsort label-9083
SELECT 89 + + 50 * - 48 * - 37 * COUNT ( * )
----
88889

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9084
SELECT ALL + 24 + 94 DIV 98 * + + COUNT( * ) DIV NULLIF ( - 52, - MIN( ALL 95 ) ) - COUNT( * ) + - COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-9084
SELECT ALL + 24 + 94 / 98 * + + COUNT ( * ) / NULLIF ( - 52, - MIN ( ALL 95 ) ) - COUNT ( * ) + - COUNT ( * ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9085
SELECT 98 + - + 29 * 25 + - ( + + COUNT( * ) ) * + 11, 14 AS col2
----
-638
14

skipif mysql # not compatible
query II rowsort label-9085
SELECT 98 + - + 29 * 25 + - ( + + COUNT ( * ) ) * + 11, 14 AS col2
----
-638
14

query I rowsort
SELECT ALL - 60 + - + 69 * + 23 * - 87
----
138009

query I rowsort
SELECT DISTINCT + 6 + 17 AS col1
----
23

query II rowsort
SELECT 62 + NULLIF ( 1, - 42 ) AS col2, - 76 AS col0
----
63
-76

query II rowsort
SELECT - 54 AS col0, 74 - + 26 AS col1
----
-54
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT - COUNT( DISTINCT + + 79 )
----
-1

skipif mysql # not compatible
query I rowsort label-9090
SELECT - COUNT ( DISTINCT + + 79 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT 11 * - - MIN( + - 93 ) col0
----
-1023

skipif mysql # not compatible
query I rowsort label-9091
SELECT 11 * - - MIN ( + - 93 ) col0
----
-1023

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT - 64 + ( 17 ) + + ( - - 22 ) - - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-9092
SELECT - 64 + ( 17 ) + + ( - - 22 ) - - COUNT ( * )
----
-24

query I rowsort
SELECT ALL 34 * - 27 AS col1
----
-918

onlyif mysql # DIV for integer division: 
query I rowsort label-9094
SELECT 42 DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-9094
SELECT 42 / 53
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9095
SELECT - + ( - + ( + + MAX( - 37 ) ) ) AS col0, MAX( + 63 ) + COUNT( * )
----
-37
64

skipif mysql # not compatible
query II rowsort label-9095
SELECT - + ( - + ( + + MAX ( - 37 ) ) ) AS col0, MAX ( + 63 ) + COUNT ( * )
----
-37
64

query II rowsort
SELECT 64 AS col2, + 16 AS col1
----
64
16

query I rowsort
SELECT ALL + 83 * - 98 AS col1
----
-8134

query I rowsort
SELECT 11 * + + 65 * - 27
----
-19305

query II rowsort
SELECT ALL 34 AS col0, + 31 AS col0
----
34
31

query II rowsort
SELECT 8 AS col2, 95
----
8
95

onlyif mysql # aggregate syntax: 
query III rowsort label-9101
SELECT ALL 84, + COUNT( * ) AS col1, - 98 AS col1
----
84
1
-98

skipif mysql # not compatible
query III rowsort label-9101
SELECT ALL 84, + COUNT ( * ) AS col1, - 98 AS col1
----
84
1
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT 90 * - 75 * - CASE - 9 WHEN + 52 * - 94 + - COUNT( * ) THEN - 74 + + 96 + - 32 * - - 15 + + 42 * + 70 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT 90 * - 75 * - CASE - 9 WHEN + 52 * - 94 + - COUNT ( * ) THEN - 74 + + 96 + - 32 * - - 15 + + 42 * + 70 END AS col2
----
NULL

query I rowsort
SELECT + 89 * + ( + 96 ) col2
----
8544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9104
SELECT ALL - - CAST( ( - 84 ) AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL - - CAST ( ( - 84 ) AS INTEGER )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT - COUNT( * ) - + + 13 + - - 10
----
-4

skipif mysql # not compatible
query I rowsort label-9105
SELECT - COUNT ( * ) - + + 13 + - - 10
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT ( 98 ) * - SUM( + 34 )
----
-3332

skipif mysql # not compatible
query I rowsort label-9106
SELECT ( 98 ) * - SUM ( + 34 )
----
-3332

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT DISTINCT - NULLIF ( - CASE 49 WHEN + + 2 + + 52 - + + 91 THEN NULL WHEN 4 THEN - MAX( + 12 ) / - + 42 ELSE NULL END, - 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT - NULLIF ( - CASE 49 WHEN + + 2 + + 52 - + + 91 THEN NULL WHEN 4 THEN - MAX ( + 12 ) / - + 42 ELSE NULL END, - 69 )
----
NULL

query I rowsort
SELECT DISTINCT - 54 + 51 AS col1
----
-3

query I rowsort
SELECT ALL 35 * + 62
----
2170

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT - 94 * 44 + 2 + + ( - - 29 ) * - MIN( DISTINCT + 20 ) + - NULLIF ( + 17, - 67 * - - NULLIF ( + - 24, - 16 ) + 39 + - + COUNT( * ) )
----
-4731

skipif mysql # not compatible
query I rowsort label-9110
SELECT - 94 * 44 + 2 + + ( - - 29 ) * - MIN ( DISTINCT + 20 ) + - NULLIF ( + 17, - 67 * - - NULLIF ( + - 24, - 16 ) + 39 + - + COUNT ( * ) )
----
-4731

query I rowsort
SELECT DISTINCT 70 + - 36 + - + 46 + + 16 * - 50 + + 12 * - 71 AS col0
----
-1664

query I rowsort
SELECT 92 * - CASE - - 2 WHEN ( - 72 ) THEN 76 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 5 + - - 71 * + + 66 AS col1
----
4691

query I rowsort
SELECT DISTINCT 34 + + 5 + 95 AS col2
----
134

query I rowsort
SELECT 82 - - 90
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9116
SELECT ALL - SUM( 57 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL - SUM ( 57 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9117
SELECT ALL 69 + + 51 DIV + - 64, COUNT( * ) + ( + + 43 ) + + 64 AS col0
----
69
108

skipif mysql # not compatible
query II rowsort label-9117
SELECT ALL 69 + + 51 / + - 64, COUNT ( * ) + ( + + 43 ) + + 64 AS col0
----
69
108

query I rowsort
SELECT ALL 28 + + 67 AS col2
----
95

query I rowsort
SELECT 17 * - 5 AS col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9120
SELECT ALL + + COUNT( * ) * + CAST( + + 22 AS SIGNED ) DIV 46 + - 4 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL + + COUNT ( * ) * + CAST ( + + 22 AS INTEGER ) / 46 + - 4 AS col2
----
-4

query I rowsort
SELECT 26 * + + 3
----
78

query I rowsort
SELECT 69 * + - 10 * 21 * - 41
----
594090

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT DISTINCT COALESCE ( + COUNT( * ), 86 * + + 69 * - COUNT( * ) * - 94 )
----
1

skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT COALESCE ( + COUNT ( * ), 86 * + + 69 * - COUNT ( * ) * - 94 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT COUNT( * ) * 40 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9124
SELECT COUNT ( * ) * 40 AS col1
----
40

query I rowsort
SELECT ALL 68 * + 60
----
4080

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT - 81 + - + COUNT( * ) + - - 20 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-9126
SELECT - 81 + - + COUNT ( * ) + - - 20 AS col1
----
-62

query I rowsort
SELECT - ( 35 ) * 85 AS col2
----
-2975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9128
SELECT + 73 DIV + 65 DIV - COUNT( DISTINCT - - 13 ) + - + 1 + + - 63
----
-65

skipif mysql # not compatible
query I rowsort label-9128
SELECT + 73 / + 65 / - COUNT ( DISTINCT - - 13 ) + - + 1 + + - 63
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9129
SELECT + CAST( - + 52 AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-9129
SELECT + CAST ( - + 52 AS INTEGER )
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9130
SELECT - COUNT( * ) DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-9130
SELECT - COUNT ( * ) / + 99
----
0

query I rowsort
SELECT 41 * - - ( + + 63 ) + 94 AS col2
----
2677

query I rowsort
SELECT ALL 15 * + 5 + 28 AS col0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT MIN( ALL - 64 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-9133
SELECT MIN ( ALL - 64 ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT ALL - NULLIF ( 47, COUNT( - 72 ) ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL - NULLIF ( 47, COUNT ( - 72 ) ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT ALL COUNT( * ) * - - 28 + - 95
----
-67

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL COUNT ( * ) * - - 28 + - 95
----
-67

query II rowsort
SELECT DISTINCT - 21 AS col0, + 45 * + - 71 AS col0
----
-21
-3195

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT DISTINCT 83 * - COUNT( ALL - + 62 ) + + 80 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT 83 * - COUNT ( ALL - + 62 ) + + 80 AS col1
----
-3

query I rowsort
SELECT + 58 + - + 98
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9139
SELECT ALL 58 * + + MAX( + 28 ) + - 74 + + CAST( NULL AS SIGNED ) * + 68 + 85 / + CASE + + COUNT( * ) WHEN + 31 THEN 7 * + COUNT( * ) * - - 45 WHEN + 51 THEN NULL ELSE NULL END * - + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL 58 * + + MAX ( + 28 ) + - 74 + + CAST ( NULL AS INTEGER ) * + 68 + 85 / + CASE + + COUNT ( * ) WHEN + 31 THEN 7 * + COUNT ( * ) * - - 45 WHEN + 51 THEN NULL ELSE NULL END * - + 63
----
NULL

query I rowsort
SELECT + 70 * + - ( - - 93 ) * 18 col1
----
-117180

query I rowsort
SELECT DISTINCT + ( - - 63 ) col2
----
63

query I rowsort
SELECT DISTINCT 20 * + 67 + 9 - - + 38 AS col0
----
1387

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT MAX( ALL + 68 )
----
68

skipif mysql # not compatible
query I rowsort label-9143
SELECT MAX ( ALL + 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT SUM( - 4 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9144
SELECT SUM ( - 4 ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT + 34 - 10 * - 30 - + COUNT( * ) AS col0
----
333

skipif mysql # not compatible
query I rowsort label-9145
SELECT + 34 - 10 * - 30 - + COUNT ( * ) AS col0
----
333

query I rowsort
SELECT + 4 * + 72 AS col0
----
288

query I rowsort
SELECT + NULLIF ( 84, + - 16 + + - 80 ) AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9148
SELECT COUNT( DISTINCT + CAST( 12 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9148
SELECT COUNT ( DISTINCT + CAST ( 12 AS INTEGER ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT + SUM( - 37 ) + - 45 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-9149
SELECT + SUM ( - 37 ) + - 45 AS col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9150
SELECT + + CAST( NULL AS SIGNED ) / 70 + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9150
SELECT + + CAST ( NULL AS INTEGER ) / 70 + + 59
----
NULL

query I rowsort
SELECT ALL + ( - - 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT ALL NULLIF ( - 85, - COUNT( ALL + 31 ) ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL NULLIF ( - 85, - COUNT ( ALL + 31 ) ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT DISTINCT - COUNT( - 60 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9153
SELECT DISTINCT - COUNT ( - 60 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9154
SELECT - + SUM( ALL - 7 ) + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9154
SELECT - + SUM ( ALL - 7 ) + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT + + COUNT( * ) * - 51 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-9155
SELECT + + COUNT ( * ) * - 51 AS col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9156
SELECT CAST( - COUNT( DISTINCT + + CASE 26 WHEN - 84 + + - 45 * - - 40 THEN NULL ELSE 78 END ) AS SIGNED ) AS col2, 76 AS col1
----
-1
76

skipif mysql # not compatible
query II rowsort label-9156
SELECT CAST ( - COUNT ( DISTINCT + + CASE 26 WHEN - 84 + + - 45 * - - 40 THEN NULL ELSE 78 END ) AS INTEGER ) AS col2, 76 AS col1
----
-1
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT ALL - - COUNT( * ) + + - 21
----
-20

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL - - COUNT ( * ) + + - 21
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-9158
SELECT - 1 * - 60 DIV - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9158
SELECT - 1 * - 60 / - 79 AS col0
----
0

query I rowsort
SELECT DISTINCT - 82 * 28 AS col0
----
-2296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9160
SELECT - MAX( DISTINCT + + 33 ) - - 97 + + 61 + - CAST( NULL AS SIGNED ) - CAST( NULL AS DECIMAL ) * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-9160
SELECT - MAX ( DISTINCT + + 33 ) - - 97 + + 61 + - CAST ( NULL AS INTEGER ) - CAST ( NULL AS REAL ) * - 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT DISTINCT + ( + + MAX( + 17 ) )
----
17

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT + ( + + MAX ( + 17 ) )
----
17

query I rowsort
SELECT + 47 * - - ( + - 92 ) + 33
----
-4291

query I rowsort
SELECT + 93 - - COALESCE ( ( + 20 ), - - 63, + - 41 - + + 25 + ( + 38 ) ) * + 89
----
1873

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT + 10 + 48 * - COUNT( * ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-9164
SELECT + 10 + 48 * - COUNT ( * ) AS col1
----
-38

query I rowsort
SELECT + 86 * 19
----
1634

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT COALESCE ( + COUNT( * ), + 14 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9166
SELECT COALESCE ( + COUNT ( * ), + 14 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT + 74 + - + COUNT( * ) * 30 * ( - 23 )
----
764

skipif mysql # not compatible
query I rowsort label-9167
SELECT + 74 + - + COUNT ( * ) * 30 * ( - 23 )
----
764

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT ALL + - COALESCE ( - 13, 40, 97 * - COUNT( * ) * - COUNT( * ) )
----
13

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL + - COALESCE ( - 13, 40, 97 * - COUNT ( * ) * - COUNT ( * ) )
----
13

query I rowsort
SELECT + 83 * - 2 AS col0
----
-166

query I rowsort
SELECT DISTINCT + 28 * + 78 AS col2
----
2184

onlyif mysql # DIV for integer division: 
query I rowsort label-9171
SELECT + - 1 DIV 98 DIV - 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9171
SELECT + - 1 / 98 / - 19 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9172
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) * 62
----
NULL

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) * 62
----
NULL

query I rowsort
SELECT - - 90 * - COALESCE ( + - 9, - - 7 ) - - 93
----
903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9174
SELECT + - 84 * 53 * - + COUNT( * ) * + - ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9174
SELECT + - 84 * 53 * - + COUNT ( * ) * + - ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - - ( - + 85 ) AS col2
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9176
SELECT ALL - 69 * - 66 - 96 + + 74 + - - 95 DIV + + MIN( ALL 18 )
----
4537

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL - 69 * - 66 - 96 + + 74 + - - 95 / + + MIN ( ALL 18 )
----
4537

query I rowsort
SELECT + 72 - 49
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT DISTINCT - 97 * 96 * - 50 + - - COUNT( * ) * + 31 + - 93 + + 50 * - - 71 AS col2
----
469088

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT - 97 * 96 * - 50 + - - COUNT ( * ) * + 31 + - 93 + + 50 * - - 71 AS col2
----
469088

query I rowsort
SELECT + 86 - + 89
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9180
SELECT ALL + - COUNT( * ) + - + 19 + + + 18 + - ( + 40 ) + - ( - 64 ), - 19 + - - CAST( NULL AS SIGNED ) + 72 AS col2
----
22
NULL

skipif mysql # not compatible
query II rowsort label-9180
SELECT ALL + - COUNT ( * ) + - + 19 + + + 18 + - ( + 40 ) + - ( - 64 ), - 19 + - - CAST ( NULL AS INTEGER ) + 72 AS col2
----
22
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9181
SELECT DISTINCT - 52 DIV + 6 AS col0, 63 + - 87
----
-8
-24

skipif mysql # not compatible
query II rowsort label-9181
SELECT DISTINCT - 52 / + 6 AS col0, 63 + - 87
----
-8
-24

query I rowsort
SELECT ALL - 94 + + 1 AS col0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9183
SELECT + + 13 + ( 35 ) * + COALESCE ( 88, - - CAST( NULL AS SIGNED ) + 15 + - CAST( NULL AS SIGNED ) * - + CASE - CAST( NULL AS DECIMAL ) WHEN + + ( - 61 ) + + MAX( ALL + 86 ) THEN NULL WHEN - + NULLIF ( 6, - 46 + + 76 ) * - COUNT( * ) - + 58 - - 60 + COUNT( * ) + - 75 * + ( - + 97 ) * + ( + CASE COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE ( + COUNT( * ) ) END ) + - 84 + - 15 THEN NULL WHEN 12 + SUM( ALL 97 ) * 74 THEN 22 DIV + 15 ELSE NULL END * COUNT( * ) ) AS col1
----
3093

skipif mysql # not compatible
query I rowsort label-9183
SELECT + + 13 + ( 35 ) * + COALESCE ( 88, - - CAST ( NULL AS INTEGER ) + 15 + - CAST ( NULL AS INTEGER ) * - + CASE - CAST ( NULL AS REAL ) WHEN + + ( - 61 ) + + MAX ( ALL + 86 ) THEN NULL WHEN - + NULLIF ( 6, - 46 + + 76 ) * - COUNT ( * ) - + 58 - - 60 + COUNT ( * ) + - 75 * + ( - + 97 ) * + ( + CASE COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE ( + COUNT ( * ) ) END ) + - 84 + - 15 THEN NULL WHEN 12 + SUM ( ALL 97 ) * 74 THEN 22 / + 15 ELSE NULL END * COUNT ( * ) ) AS col1
----
3093

onlyif mysql # aggregate syntax: 
query II rowsort label-9184
SELECT - + COUNT( * ) - - COUNT( * ) AS col1, + 18
----
0
18

skipif mysql # not compatible
query II rowsort label-9184
SELECT - + COUNT ( * ) - - COUNT ( * ) AS col1, + 18
----
0
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT - MIN( ALL + 27 ) * - MAX( DISTINCT 89 )
----
2403

skipif mysql # not compatible
query I rowsort label-9185
SELECT - MIN ( ALL + 27 ) * - MAX ( DISTINCT 89 )
----
2403

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT COUNT( ALL - 27 ) * + 69 - + MIN( ( + 95 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-9186
SELECT COUNT ( ALL - 27 ) * + 69 - + MIN ( ( + 95 ) )
----
-26

query II rowsort
SELECT DISTINCT 0, 96 col2
----
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT ALL 53 - - - COALESCE ( + 65, 31 ) - - COUNT( * ) - + + 69
----
-80

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL 53 - - - COALESCE ( + 65, 31 ) - - COUNT ( * ) - + + 69
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT 78 * COUNT( DISTINCT + 92 ) * 15 + - + MAX( DISTINCT + 25 ) AS col2
----
1145

skipif mysql # not compatible
query I rowsort label-9189
SELECT 78 * COUNT ( DISTINCT + 92 ) * 15 + - + MAX ( DISTINCT + 25 ) AS col2
----
1145

onlyif mysql # aggregate syntax: 
query II rowsort label-9190
SELECT 8 * - ( 50 ), - COUNT( * ) * - 43 * - + 14 * - + COUNT( * ) AS col0
----
-400
602

skipif mysql # not compatible
query II rowsort label-9190
SELECT 8 * - ( 50 ), - COUNT ( * ) * - 43 * - + 14 * - + COUNT ( * ) AS col0
----
-400
602

query II rowsort
SELECT 96, - 77 AS col2
----
96
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9192
SELECT 43 DIV + + 82 + + - ( COUNT( * ) ) + + + MAX( + + 90 ) + - 16 + + + 7 + + - 37 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-9192
SELECT 43 / + + 82 + + - ( COUNT ( * ) ) + + + MAX ( + + 90 ) + - 16 + + + 7 + + - 37 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT COUNT( * ) + + + 40 * - + 72 + - 77 AS col1
----
-2956

skipif mysql # not compatible
query I rowsort label-9193
SELECT COUNT ( * ) + + + 40 * - + 72 + - 77 AS col1
----
-2956

query I rowsort
SELECT ALL + ( 37 ) * + - 23 AS col2
----
-851

query I rowsort
SELECT ALL - CASE - 85 WHEN + 39 THEN 98 + 36 END * 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT ALL + 43 * COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL + 43 * COUNT ( * ) AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9197
SELECT + 68 DIV + COALESCE ( + - 80, 90 + + 26, + - 8 )
----
0

skipif mysql # not compatible
query I rowsort label-9197
SELECT + 68 / + COALESCE ( + - 80, 90 + + 26, + - 8 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT DISTINCT + 41 + + COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT + 41 + + COUNT ( * ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT - - 8 * 25 * + 16 + - COUNT( * ) - - 11
----
3210

skipif mysql # not compatible
query I rowsort label-9199
SELECT - - 8 * 25 * + 16 + - COUNT ( * ) - - 11
----
3210

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9200
SELECT - - 36 * - 55 + + 37 * 91 + + SUM( + - 92 ) + 53 * 75 AS col1, + ( - + 85 ) DIV + - COUNT( * ) + - 52 AS col1
----
5270
33

skipif mysql # not compatible
query II rowsort label-9200
SELECT - - 36 * - 55 + + 37 * 91 + + SUM ( + - 92 ) + 53 * 75 AS col1, + ( - + 85 ) / + - COUNT ( * ) + - 52 AS col1
----
5270
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT DISTINCT + COALESCE ( + MAX( ALL + 64 ), + - 35, - 98 * - ( - 69 ) ) + + - 76
----
-12

skipif mysql # not compatible
query I rowsort label-9201
SELECT DISTINCT + COALESCE ( + MAX ( ALL + 64 ), + - 35, - 98 * - ( - 69 ) ) + + - 76
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9202
SELECT - COUNT( * ) * - MAX( - - CAST( NULL AS SIGNED ) ) - + 85 * - + 77 * COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9202
SELECT - COUNT ( * ) * - MAX ( - - CAST ( NULL AS INTEGER ) ) - + 85 * - + 77 * COUNT ( * ) col2
----
NULL

query I rowsort
SELECT DISTINCT - ( 11 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT ALL 0 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL 0 + - COUNT ( * )
----
-1

query I rowsort
SELECT 11 + + - 23 * - + 93 AS col2
----
2150

query I rowsort
SELECT ALL 14 + + 21
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT 3 * - 81 + COUNT( * ) * 77 AS col1
----
-166

skipif mysql # not compatible
query I rowsort label-9207
SELECT 3 * - 81 + COUNT ( * ) * 77 AS col1
----
-166

onlyif mysql # aggregate syntax: 
query II rowsort label-9208
SELECT ALL + 34 * + COUNT( * ) - - 12 - + - 21 * + + 65, + 44 AS col1
----
1411
44

skipif mysql # not compatible
query II rowsort label-9208
SELECT ALL + 34 * + COUNT ( * ) - - 12 - + - 21 * + + 65, + 44 AS col1
----
1411
44

onlyif mysql # aggregate syntax: 
query II rowsort label-9209
SELECT ALL + + 22 * + + COUNT( * ) - COUNT( * ), 75 col2
----
21
75

skipif mysql # not compatible
query II rowsort label-9209
SELECT ALL + + 22 * + + COUNT ( * ) - COUNT ( * ), 75 col2
----
21
75

query I rowsort
SELECT DISTINCT + 64 + + + 14 + 10
----
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9211
SELECT DISTINCT - CASE - + 56 WHEN + CASE - SUM( DISTINCT - 94 ) WHEN 49 THEN 76 * - 98 * - + 63 + + SUM( DISTINCT + 20 ) ELSE + + 69 END THEN - + CAST( NULL AS DECIMAL ) END + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-9211
SELECT DISTINCT - CASE - + 56 WHEN + CASE - SUM ( DISTINCT - 94 ) WHEN 49 THEN 76 * - 98 * - + 63 + + SUM ( DISTINCT + 20 ) ELSE + + 69 END THEN - + CAST ( NULL AS REAL ) END + 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT ALL NULLIF ( - 89, + - 44 ) + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL NULLIF ( - 89, + - 44 ) + COUNT ( * )
----
-88

query I rowsort
SELECT ALL + 73 * + 48 + - - 74 * - 51 AS col0
----
-270

query I rowsort
SELECT 72 + 22
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT CASE 58 WHEN + + COUNT( * ) * + 87 + - + 34 THEN + SUM( ALL + 35 ) END * 33 + + COALESCE ( + 94, 34 + + 31 ) - + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9215
SELECT CASE 58 WHEN + + COUNT ( * ) * + 87 + - + 34 THEN + SUM ( ALL + 35 ) END * 33 + + COALESCE ( + 94, 34 + + 31 ) - + 89 AS col1
----
NULL

query I rowsort
SELECT 73 * + - 55 AS col0
----
-4015

query I rowsort
SELECT ALL - 37 * + - 73 AS col2
----
2701

onlyif mysql # DIV for integer division: 
query I rowsort label-9218
SELECT ALL NULLIF ( 5, + 25 * + - 96 ) DIV - 25 * + ( - ( - + 16 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL NULLIF ( 5, + 25 * + - 96 ) / - 25 * + ( - ( - + 16 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9219
SELECT DISTINCT 0 - ( + + COALESCE ( + 83, ( + 92 ) * - 85, + 77, - + CAST( NULL AS SIGNED ) + + - 37 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT 0 - ( + + COALESCE ( + 83, ( + 92 ) * - 85, + 77, - + CAST ( NULL AS INTEGER ) + + - 37 ) )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9220
SELECT CAST( - 58 AS SIGNED ) * + + 18 + 23 * + COUNT( * ) * + - 59
----
-2401

skipif mysql # not compatible
query I rowsort label-9220
SELECT CAST ( - 58 AS INTEGER ) * + + 18 + 23 * + COUNT ( * ) * + - 59
----
-2401

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT 1 * MAX( ALL - - 32 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-9221
SELECT 1 * MAX ( ALL - - 32 ) AS col2
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9222
SELECT ALL 5 DIV 16
----
0

skipif mysql # not compatible
query I rowsort label-9222
SELECT ALL 5 / 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT ALL SUM( + - 35 ) * - + 86
----
3010

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL SUM ( + - 35 ) * - + 86
----
3010

query I rowsort
SELECT 24 * - 63 col2
----
-1512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9225
SELECT + 18, + 71 - + - 34 + - CAST( MAX( 77 ) AS SIGNED ) AS col0
----
18
28

skipif mysql # not compatible
query II rowsort label-9225
SELECT + 18, + 71 - + - 34 + - CAST ( MAX ( 77 ) AS INTEGER ) AS col0
----
18
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9226
SELECT + 69, CAST( + - COUNT( * ) AS SIGNED ) AS col0
----
69
-1

skipif mysql # not compatible
query II rowsort label-9226
SELECT + 69, CAST ( + - COUNT ( * ) AS INTEGER ) AS col0
----
69
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT ALL + COUNT( * ) * - COUNT( - ( + 91 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL + COUNT ( * ) * - COUNT ( - ( + 91 ) )
----
-1

query I rowsort
SELECT ( - 63 ) - + 32 col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT ALL SUM( ALL + 62 ) * - 38 AS col0
----
-2356

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL SUM ( ALL + 62 ) * - 38 AS col0
----
-2356

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT ALL 57 + - COUNT( * ) col2
----
56

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL 57 + - COUNT ( * ) col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT ALL - ( + + MAX( ALL - 83 ) ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL - ( + + MAX ( ALL - 83 ) ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT ALL + COUNT( 46 ) + + 1 + + 63 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL + COUNT ( 46 ) + + 1 + + 63 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT 64 * + ( 6 ) + - 8 + + - COUNT( * ) * + - 46 - + 22 + 78 * + 84 + 24 AS col1
----
6976

skipif mysql # not compatible
query I rowsort label-9233
SELECT 64 * + ( 6 ) + - 8 + + - COUNT ( * ) * + - 46 - + 22 + 78 * + 84 + 24 AS col1
----
6976

query I rowsort
SELECT DISTINCT - - 37 + + 68 AS col2
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9235
SELECT ALL + + CASE + 65 WHEN 73 THEN NULL WHEN + 22 DIV - ( - 95 ) THEN - 83 WHEN - 19 THEN + - ( - CAST( + - ( - SUM( 30 ) ) AS SIGNED ) ) * 38 * 56 ELSE ( 76 ) + COUNT( + 19 ) END DIV - - 20 + 32 + + 66 * - - 20
----
1355

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL + + CASE + 65 WHEN 73 THEN NULL WHEN + 22 / - ( - 95 ) THEN - 83 WHEN - 19 THEN + - ( - CAST ( + - ( - SUM ( 30 ) ) AS INTEGER ) ) * 38 * 56 ELSE ( 76 ) + COUNT ( + 19 ) END / - - 20 + 32 + + 66 * - - 20
----
1355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9236
SELECT 46 + - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9236
SELECT 46 + - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9237
SELECT ALL + - CAST( + 99 AS SIGNED ) + + 6 * + 31 AS col0, 54
----
87
54

skipif mysql # not compatible
query II rowsort label-9237
SELECT ALL + - CAST ( + 99 AS INTEGER ) + + 6 * + 31 AS col0, 54
----
87
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9238
SELECT DISTINCT + 76 + - 50 AS col1, 41 * - + 36 + CAST( NULL AS SIGNED ) * + ( 54 ) * + - 24 + - 40 + + + COUNT( * ) * 29 * ( - 22 ) * - 88 - + - 72 col1
----
26
NULL

skipif mysql # not compatible
query II rowsort label-9238
SELECT DISTINCT + 76 + - 50 AS col1, 41 * - + 36 + CAST ( NULL AS INTEGER ) * + ( 54 ) * + - 24 + - 40 + + + COUNT ( * ) * 29 * ( - 22 ) * - 88 - + - 72 col1
----
26
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9239
SELECT ALL - 18 DIV - - 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL - 18 / - - 72 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT DISTINCT - - COUNT( * ) * + - 27 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT - - COUNT ( * ) * + - 27 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT ALL - COUNT( ( 77 ) ) * + 44 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL - COUNT ( ( 77 ) ) * + 44 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT DISTINCT COUNT( ALL 53 )
----
1

skipif mysql # not compatible
query I rowsort label-9242
SELECT DISTINCT COUNT ( ALL 53 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9243
SELECT 30 AS col2, 52 * - 42 - + 26 + + NULLIF ( COUNT( * ), 75 ) * - 24
----
30
-2234

skipif mysql # not compatible
query II rowsort label-9243
SELECT 30 AS col2, 52 * - 42 - + 26 + + NULLIF ( COUNT ( * ), 75 ) * - 24
----
30
-2234

query II rowsort
SELECT ALL + 54 AS col0, + 93
----
54
93

query I rowsort
SELECT - - 97 col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT + MIN( 9 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-9246
SELECT + MIN ( 9 ) AS col2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9247
SELECT - COUNT( * ) + - - 63 + + 42 DIV - 41 + + - 85 * COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-9247
SELECT - COUNT ( * ) + - - 63 + + 42 / - 41 + + - 85 * COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT DISTINCT NULLIF ( - - COUNT( * ), 3 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT NULLIF ( - - COUNT ( * ), 3 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9249
SELECT ALL CASE - + 30 WHEN - 33 THEN 17 - + 53 END, - CAST( NULL AS SIGNED ) * 61 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9249
SELECT ALL CASE - + 30 WHEN - 33 THEN 17 - + 53 END, - CAST ( NULL AS INTEGER ) * 61 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT DISTINCT ( - + 28 ) * - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT ( - + 28 ) * - COUNT ( * )
----
28

query I rowsort
SELECT DISTINCT + 60 * - + 85 AS col0
----
-5100

query I rowsort
SELECT - 88 + - + ( + 25 ) - + 67 + 61 AS col0
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT + 94 - + CASE - 22 WHEN - AVG ( DISTINCT - 34 ) + 52 + + + ( - 83 ) THEN - ( + 72 ) WHEN + + 68 THEN NULL WHEN - 63 THEN NULL END * + + MIN( ALL + - 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9253
SELECT + 94 - + CASE - 22 WHEN - AVG ( DISTINCT - 34 ) + 52 + + + ( - 83 ) THEN - ( + 72 ) WHEN + + 68 THEN NULL WHEN - 63 THEN NULL END * + + MIN ( ALL + - 26 )
----
NULL

query I rowsort
SELECT ALL 99 * - 18
----
-1782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9255
SELECT - CASE - 63 WHEN + - ( - 99 ) THEN NULL WHEN ( - + CASE - - 94 WHEN - + COUNT( * ) THEN - 69 WHEN 40 THEN NULL END ) THEN 49 + - 71 * - ( - 42 ) / - CAST( NULL AS SIGNED ) ELSE NULL END + - + 14 * - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9255
SELECT - CASE - 63 WHEN + - ( - 99 ) THEN NULL WHEN ( - + CASE - - 94 WHEN - + COUNT ( * ) THEN - 69 WHEN 40 THEN NULL END ) THEN 49 + - 71 * - ( - 42 ) / - CAST ( NULL AS INTEGER ) ELSE NULL END + - + 14 * - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + 46 * + 58 AS col0
----
2668

query I rowsort
SELECT ALL 52 + - 93 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT ALL - 43 * - + COUNT( DISTINCT + 95 )
----
43

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL - 43 * - + COUNT ( DISTINCT + 95 )
----
43

query I rowsort
SELECT + 34 + 4
----
38

query I rowsort
SELECT ALL - 2 * + 37 + + - 97 AS col0
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9261
SELECT DISTINCT 53 * 40 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT 53 * 40 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9262
SELECT ( - - 65 ) DIV - 94 + - 27 * COALESCE ( - 11, - 22, - 97 * - ( + COUNT( * ) ), - - 57 ) AS col0
----
297

skipif mysql # not compatible
query I rowsort label-9262
SELECT ( - - 65 ) / - 94 + - 27 * COALESCE ( - 11, - 22, - 97 * - ( + COUNT ( * ) ), - - 57 ) AS col0
----
297

query I rowsort
SELECT + - COALESCE ( - 83, + 11, 13 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT DISTINCT - + 27 * + - CASE + 36 WHEN - + ( 97 ) - + COUNT( 94 ) THEN NULL WHEN + AVG ( ALL + 37 ) + + 48 * + - 78 * 57 THEN - 3 END + - 63 + + - 33 + - 55 / + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-9264
SELECT DISTINCT - + 27 * + - CASE + 36 WHEN - + ( 97 ) - + COUNT ( 94 ) THEN NULL WHEN + AVG ( ALL + 37 ) + + 48 * + - 78 * 57 THEN - 3 END + - 63 + + - 33 + - 55 / + - 50
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9265
SELECT CASE - 51 WHEN - - COALESCE ( 36, + 96 ) THEN NULL ELSE + + 59 DIV - ( 92 ) END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9265
SELECT CASE - 51 WHEN - - COALESCE ( 36, + 96 ) THEN NULL ELSE + + 59 / - ( 92 ) END AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9266
SELECT ALL - 16 * CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9266
SELECT ALL - 16 * CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT ALL CASE 14 WHEN + 72 + 97 THEN NULL WHEN + COUNT( * ) * + 98 + 22 + 12 + + 33 * - - CASE - 9 WHEN + 65 THEN + + ( 99 ) * 13 + + + 93 + + + 22 - 79 - + NULLIF ( - ( + 78 ), + 96 ) + - 90 * 10 ELSE - 65 / - + 40 + + 49 END THEN + ( + 78 ) * 76 * + 74 / - + 95 + + 80 END * - 66 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL CASE 14 WHEN + 72 + 97 THEN NULL WHEN + COUNT ( * ) * + 98 + 22 + 12 + + 33 * - - CASE - 9 WHEN + 65 THEN + + ( 99 ) * 13 + + + 93 + + + 22 - 79 - + NULLIF ( - ( + 78 ), + 96 ) + - 90 * 10 ELSE - 65 / - + 40 + + 49 END THEN + ( + 78 ) * 76 * + 74 / - + 95 + + 80 END * - 66 + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9268
SELECT DISTINCT 78 * 61 DIV - + 85
----
-55

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT 78 * 61 / - + 85
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9269
SELECT DISTINCT + 89 * - NULLIF ( + 30, 1 / - - ( 34 ) * - ( 89 ) + + ( - COUNT( * ) ) + + ( + 96 ) + - 57 * COUNT( * ) + NULLIF ( - MIN( + 84 ), - COUNT( * ) + + + CASE - CAST( + 3 AS SIGNED ) WHEN + MAX( ALL 71 ) THEN + + 59 + + 10 - + - AVG ( DISTINCT + + 40 ) + - - COUNT( * ) END ) + - 22 + - 3 ) AS col0
----
-2670

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT + 89 * - NULLIF ( + 30, 1 / - - ( 34 ) * - ( 89 ) + + ( - COUNT ( * ) ) + + ( + 96 ) + - 57 * COUNT ( * ) + NULLIF ( - MIN ( + 84 ), - COUNT ( * ) + + + CASE - CAST ( + 3 AS INTEGER ) WHEN + MAX ( ALL 71 ) THEN + + 59 + + 10 - + - AVG ( DISTINCT + + 40 ) + - - COUNT ( * ) END ) + - 22 + - 3 ) AS col0
----
-2670

query I rowsort
SELECT + + 78 * + 69 * 4 * + 16 AS col0
----
344448

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT ALL - ( + 34 ) * 69 - SUM( DISTINCT 41 ) - 5
----
-2392

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL - ( + 34 ) * 69 - SUM ( DISTINCT 41 ) - 5
----
-2392

query I rowsort
SELECT DISTINCT + + NULLIF ( - 60, 57 ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT - - 5 * + 61 + + COUNT( * )
----
306

skipif mysql # not compatible
query I rowsort label-9273
SELECT - - 5 * + 61 + + COUNT ( * )
----
306

onlyif mysql # aggregate syntax: 
query II rowsort label-9274
SELECT - - 70 - + COUNT( * ) col1, - COUNT( * )
----
69
-1

skipif mysql # not compatible
query II rowsort label-9274
SELECT - - 70 - + COUNT ( * ) col1, - COUNT ( * )
----
69
-1

query I rowsort
SELECT - 46 * - ( 85 ) + + 77 AS col0
----
3987

query II rowsort
SELECT ALL + COALESCE ( 19, + 89 * - + 80, - COALESCE ( 99, + 11 ) ) AS col1, - 1
----
19
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9277
SELECT + COALESCE ( + ( + 49 ), - COUNT( * ), ( + 45 ), CAST( NULL AS SIGNED ) ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-9277
SELECT + COALESCE ( + ( + 49 ), - COUNT ( * ), ( + 45 ), CAST ( NULL AS INTEGER ) ) AS col0
----
49

query I rowsort
SELECT + + 51 * + 80 * 96 AS col2
----
391680

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT - + 46 * - + 23 - - 43 * - 65 + - CASE - + 55 WHEN - + 88 THEN + COUNT( * ) WHEN ( - 41 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9279
SELECT - + 46 * - + 23 - - 43 * - 65 + - CASE - + 55 WHEN - + 88 THEN + COUNT ( * ) WHEN ( - 41 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT - MAX( - ( + - 1 ) ) + + + 10
----
9

skipif mysql # not compatible
query I rowsort label-9280
SELECT - MAX ( - ( + - 1 ) ) + + + 10
----
9

query I rowsort
SELECT ALL - 55 * + 63 + - 88 - - ( - COALESCE ( + 27, - - ( + - 72 ) * - 54 * ( 24 ) ) )
----
-3580

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT ALL + + 42 * - + COUNT( * ) + 37 - + COUNT( * ) * - 45 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL + + 42 * - + COUNT ( * ) + 37 - + COUNT ( * ) * - 45 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT DISTINCT MAX( ALL ( - 72 ) ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-9283
SELECT DISTINCT MAX ( ALL ( - 72 ) ) AS col2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9284
SELECT DISTINCT CAST( NULL AS SIGNED ), + CAST( + - 58 AS SIGNED ) AS col0
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-9284
SELECT DISTINCT CAST ( NULL AS INTEGER ), + CAST ( + - 58 AS INTEGER ) AS col0
----
NULL
-58

query I rowsort
SELECT - 18 + - 38
----
-56

query I rowsort
SELECT ALL + 74 * + - 18 * 84 AS col2
----
-111888

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9287
SELECT ALL ( ( - 41 ) ) AS col2, 47 * - 87 * - 32 * CAST( + 86 AS SIGNED )
----
-41
11252928

skipif mysql # not compatible
query II rowsort label-9287
SELECT ALL ( ( - 41 ) ) AS col2, 47 * - 87 * - 32 * CAST ( + 86 AS INTEGER )
----
-41
11252928

query I rowsort
SELECT - 94 + 79 AS col2
----
-15

query I rowsort
SELECT ALL ( - + 73 ) AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9290
SELECT - 64 * + 42 * + CAST( 66 AS SIGNED ) / CASE - - 21 WHEN - 18 * 87 THEN - 11 ELSE NULL END + + + ( + 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9290
SELECT - 64 * + 42 * + CAST ( 66 AS INTEGER ) / CASE - - 21 WHEN - 18 * 87 THEN - 11 ELSE NULL END + + + ( + 23 ) AS col1
----
NULL

query I rowsort
SELECT ALL ( - 44 ) AS col1
----
-44

query I rowsort
SELECT + 46 + - 95 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT ALL + COUNT( + 17 ) + - 7 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL + COUNT ( + 17 ) + - 7 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT ALL CASE + + 89 WHEN - 60 THEN + 69 WHEN 81 * - 24 + 72 + + 13 * - COUNT( DISTINCT 63 ) * + + ( + + 58 ) + - 9 * 51 - - + 18 THEN NULL ELSE 47 END AS col1
----
47

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL CASE + + 89 WHEN - 60 THEN + 69 WHEN 81 * - 24 + 72 + + 13 * - COUNT ( DISTINCT 63 ) * + + ( + + 58 ) + - 9 * 51 - - + 18 THEN NULL ELSE 47 END AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT DISTINCT + COUNT( * ) + COUNT( * ) * + 86 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) * + 86 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT DISTINCT - COUNT( * ) + + - MIN( + 6 ) + + 23
----
16

skipif mysql # not compatible
query I rowsort label-9296
SELECT DISTINCT - COUNT ( * ) + + - MIN ( + 6 ) + + 23
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-9297
SELECT DISTINCT 63 + - COUNT( * ) + - 42 * + - COUNT( * ) AS col0, - COUNT( * ) + - COUNT( * ) + 46 AS col1
----
104
44

skipif mysql # not compatible
query II rowsort label-9297
SELECT DISTINCT 63 + - COUNT ( * ) + - 42 * + - COUNT ( * ) AS col0, - COUNT ( * ) + - COUNT ( * ) + 46 AS col1
----
104
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9298
SELECT + 87 DIV - 83 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9298
SELECT + 87 / - 83 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9299
SELECT + 4 * CAST( + + MAX( DISTINCT 24 ) AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-9299
SELECT + 4 * CAST ( + + MAX ( DISTINCT 24 ) AS INTEGER )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9300
SELECT DISTINCT CAST( - + 86 AS SIGNED ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT CAST ( - + 86 AS INTEGER ) AS col1
----
-86

onlyif mysql # DIV for integer division: 
query II rowsort label-9301
SELECT 63 AS col2, 73 DIV - + 1 AS col2
----
63
-73

skipif mysql # not compatible
query II rowsort label-9301
SELECT 63 AS col2, 73 / - + 1 AS col2
----
63
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT - MAX( ALL + + 92 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-9302
SELECT - MAX ( ALL + + 92 ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-9303
SELECT - + 57 * + - ( - 4 ) * 97 col1, - COUNT( * )
----
-22116
-1

skipif mysql # not compatible
query II rowsort label-9303
SELECT - + 57 * + - ( - 4 ) * 97 col1, - COUNT ( * )
----
-22116
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9304
SELECT + - 29 AS col0, - CAST( NULL AS DECIMAL )
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-9304
SELECT + - 29 AS col0, - CAST ( NULL AS REAL )
----
-29
NULL

query I rowsort
SELECT + 27 - + ( + + 90 ) AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9306
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) * CASE - 20 WHEN 82 THEN + 79 * - 94 - - COUNT( * ) * + 76 END * - COUNT( * ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) * CASE - 20 WHEN 82 THEN + 79 * - 94 - - COUNT ( * ) * + 76 END * - COUNT ( * ) + + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL + 19 col1, - 39 + 26
----
19
-13

query II rowsort
SELECT NULLIF ( - 68, + 50 ) AS col1, + 85 AS col0
----
-68
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9309
SELECT DISTINCT + NULLIF ( 95, - + 65 + - 79 + + - 26 * + - 95 + + 54 ) DIV + - COUNT( * ) + - + COUNT( * ) - - 50
----
-46

skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT + NULLIF ( 95, - + 65 + - 79 + + - 26 * + - 95 + + 54 ) / + - COUNT ( * ) + - + COUNT ( * ) - - 50
----
-46

query II rowsort
SELECT + 88, 55 col2
----
88
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9311
SELECT 79 AS col0, CAST( NULL AS SIGNED ) * - - 38 AS col0
----
79
NULL

skipif mysql # not compatible
query II rowsort label-9311
SELECT 79 AS col0, CAST ( NULL AS INTEGER ) * - - 38 AS col0
----
79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT - - 16 * + 84 * SUM( 92 ) + 32 + 45 + + - 53
----
123672

skipif mysql # not compatible
query I rowsort label-9312
SELECT - - 16 * + 84 * SUM ( 92 ) + 32 + 45 + + - 53
----
123672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9313
SELECT + + 41 DIV - COALESCE ( CASE + 70 WHEN + ( + 16 ) * - + 89 THEN NULL ELSE - - 32 * + NULLIF ( - - COUNT( * ), + 58 ) + NULLIF ( 10, 79 DIV - - 9 DIV - 9 ) END, + + CASE - 4 WHEN 35 THEN 13 * + 73 + - + 55 + - COUNT( * ) * + 61 + + 88 WHEN COALESCE ( + 33, 73, + 88 + + - 43 ) - 45 * 28 + - 98 * + 25 THEN ( CAST( NULL AS SIGNED ) ) WHEN 57 THEN NULL END, CAST( + 36 AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9313
SELECT + + 41 / - COALESCE ( CASE + 70 WHEN + ( + 16 ) * - + 89 THEN NULL ELSE - - 32 * + NULLIF ( - - COUNT ( * ), + 58 ) + NULLIF ( 10, 79 / - - 9 / - 9 ) END, + + CASE - 4 WHEN 35 THEN 13 * + 73 + - + 55 + - COUNT ( * ) * + 61 + + 88 WHEN COALESCE ( + 33, 73, + 88 + + - 43 ) - 45 * 28 + - 98 * + 25 THEN ( CAST ( NULL AS INTEGER ) ) WHEN 57 THEN NULL END, CAST ( + 36 AS INTEGER ) ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT ALL - 35 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL - 35 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 88 * + NULLIF ( 83, - 66 )
----
7304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9316
SELECT + 98 DIV - 15 + COUNT( * ) * + 87
----
81

skipif mysql # not compatible
query I rowsort label-9316
SELECT + 98 / - 15 + COUNT ( * ) * + 87
----
81

query I rowsort
SELECT + + NULLIF ( - 68, - 25 / 96 ) AS col1
----
-68

query I rowsort
SELECT ALL 69 * 14
----
966

query II rowsort
SELECT + + 11 AS col1, + 72
----
11
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT ALL NULLIF ( + COUNT( * ), + COUNT( * ) ) * + 45 + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL NULLIF ( + COUNT ( * ), + COUNT ( * ) ) * + 45 + + 84
----
NULL

query I rowsort
SELECT ALL 96 * - 97 AS col1
----
-9312

query I rowsort
SELECT ALL - 83 * - 48 - - - 14 * - 64 + - + 84 AS col1
----
4796

query II rowsort
SELECT DISTINCT - 75, - 76 AS col0
----
-75
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL - + ( COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL - + ( COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT 72 + - 54
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT ( - COUNT( * ) ) + 11 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9326
SELECT ( - COUNT ( * ) ) + 11 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT 27 * + - COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-9327
SELECT 27 * + - COUNT ( * ) AS col2
----
-27

query I rowsort
SELECT ALL - NULLIF ( + - 45, - 59 * + 92 * + 77 ) + - 26
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT COUNT( ALL - 89 ) - - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9329
SELECT COUNT ( ALL - 89 ) - - COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9330
SELECT ALL 47 + - COUNT( * ) + - 47 DIV - COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL 47 + - COUNT ( * ) + - 47 / - COUNT ( * )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9331
SELECT ALL 23 DIV 25 * - 0 * 4 DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL 23 / 25 * - 0 * 4 / 65
----
0

query I rowsort
SELECT 17 + - 85 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT ALL COUNT( * ) + + 53 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL COUNT ( * ) + + 53 AS col1
----
54

query I rowsort
SELECT ALL - 25 * + NULLIF ( + 98, + + 11 ) AS col0
----
-2450

query I rowsort
SELECT ALL 17 + 65 + - 46
----
36

query I rowsort
SELECT ALL - 16 + - - 48
----
32

query II rowsort
SELECT ALL - 44 * - - 7, + 40 AS col1
----
-308
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT ( 58 ) + 19 + + 36 + + COUNT( * ) * - 96 * - 0 col1
----
113

skipif mysql # not compatible
query I rowsort label-9338
SELECT ( 58 ) + 19 + + 36 + + COUNT ( * ) * - 96 * - 0 col1
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9339
SELECT 42 - + 46 AS col0, COUNT( * ) / - CAST( NULL AS SIGNED )
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-9339
SELECT 42 - + 46 AS col0, COUNT ( * ) / - CAST ( NULL AS INTEGER )
----
-4
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9340
SELECT ALL - COALESCE ( COUNT( * ), - + COUNT( * ) * - 63 + - 83 DIV + 21 DIV + 54 + + CASE - 15 WHEN - ( - 12 ) * 28 THEN - NULLIF ( + - 1, + CAST( + + 48 AS SIGNED ) ) END * COUNT( * ) DIV - + CASE + - 73 WHEN + COUNT( * ) * - 15 * + + COUNT( * ) THEN NULL WHEN 65 * 77 * - 63 + + AVG ( - + 41 ) THEN - 43 ELSE 43 END * 82 ) * - 77
----
77

skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL - COALESCE ( COUNT ( * ), - + COUNT ( * ) * - 63 + - 83 / + 21 / + 54 + + CASE - 15 WHEN - ( - 12 ) * 28 THEN - NULLIF ( + - 1, + CAST ( + + 48 AS INTEGER ) ) END * COUNT ( * ) / - + CASE + - 73 WHEN + COUNT ( * ) * - 15 * + + COUNT ( * ) THEN NULL WHEN 65 * 77 * - 63 + + AVG ( - + 41 ) THEN - 43 ELSE 43 END * 82 ) * - 77
----
77

query I rowsort
SELECT 26 + + - 63
----
-37

query I rowsort
SELECT ALL + ( + + 70 ) + - - 92 col0
----
162

query I rowsort
SELECT ALL 33 * 18 AS col2
----
594

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9344
SELECT - 12 + + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9344
SELECT - 12 + + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9345
SELECT ALL + CASE - 0 WHEN MIN( - 78 ) / - 2 THEN NULL WHEN - + ( + COUNT( * ) ) * + COALESCE ( - - 69, + 78 / - 71 ) THEN NULL ELSE 47 * - CAST( NULL AS SIGNED ) + COUNT( * ) * MIN( DISTINCT CAST( NULL AS SIGNED ) ) * + - 10 + + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL + CASE - 0 WHEN MIN ( - 78 ) / - 2 THEN NULL WHEN - + ( + COUNT ( * ) ) * + COALESCE ( - - 69, + 78 / - 71 ) THEN NULL ELSE 47 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) * MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * + - 10 + + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT - - ( - + 16 ) AS col0
----
-16

query I rowsort
SELECT + 96 * + + 44 + - 43
----
4181

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9348
SELECT ALL - 39 / + + CAST( NULL AS DECIMAL ) / + - 59 + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL - 39 / + + CAST ( NULL AS REAL ) / + - 59 + - 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9349
SELECT CAST( + + 65 AS SIGNED ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9349
SELECT CAST ( + + 65 AS INTEGER ) AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9350
SELECT + CAST( + - 12 AS SIGNED ) DIV - + 79 * + 17 + + + 11 * + NULLIF ( + - 77, + - 57 * + 42 + - CASE + 56 WHEN 81 THEN 47 WHEN - + 48 THEN NULL ELSE NULL END )
----
-847

skipif mysql # not compatible
query I rowsort label-9350
SELECT + CAST ( + - 12 AS INTEGER ) / - + 79 * + 17 + + + 11 * + NULLIF ( + - 77, + - 57 * + 42 + - CASE + 56 WHEN 81 THEN 47 WHEN - + 48 THEN NULL ELSE NULL END )
----
-847

query I rowsort
SELECT 3 * 48 * - 87 - 7 + 26 * - NULLIF ( - 67, 71 + + 75 + - - 31 ) * - + 43 AS col1
----
-87441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9352
SELECT - 84 * + COUNT( * ) AS col2, + CAST( + 14 AS SIGNED ) AS col1
----
-84
14

skipif mysql # not compatible
query II rowsort label-9352
SELECT - 84 * + COUNT ( * ) AS col2, + CAST ( + 14 AS INTEGER ) AS col1
----
-84
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT ALL + CASE + + 13 WHEN 25 THEN NULL ELSE + 72 END * MAX( - 33 ) AS col2
----
-2376

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL + CASE + + 13 WHEN 25 THEN NULL ELSE + 72 END * MAX ( - 33 ) AS col2
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT DISTINCT - ( - ( - ( - COUNT( - - 49 ) ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT - ( - ( - ( - COUNT ( - - 49 ) ) ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT + - 21 * + + 41
----
-861

query I rowsort
SELECT ALL - - ( - 49 ) AS col2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-9357
SELECT DISTINCT 99 DIV - 38
----
-2

skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT 99 / - 38
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9358
SELECT ALL - 74 * 93, SUM( 39 ) AS col0
----
-6882
39

skipif mysql # not compatible
query II rowsort label-9358
SELECT ALL - 74 * 93, SUM ( 39 ) AS col0
----
-6882
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9359
SELECT ALL + COUNT( - 82 ) DIV SUM( DISTINCT + 65 )
----
0

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL + COUNT ( - 82 ) / SUM ( DISTINCT + 65 )
----
0

query I rowsort
SELECT + 87 * + - 52 + - 48 AS col0
----
-4572

query I rowsort
SELECT 49 + + - 77 * + 30 AS col0
----
-2261

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT 82 * - + ( - COUNT( * ) ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-9362
SELECT 82 * - + ( - COUNT ( * ) ) AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9363
SELECT 17 + - - COUNT( * ) - + - 48 / COUNT( * ) + 41 - + - CAST( + 43 AS DECIMAL ) - 81 + - 81 * - - CAST( NULL AS SIGNED ) + + - ( 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9363
SELECT 17 + - - COUNT ( * ) - + - 48 / COUNT ( * ) + 41 - + - CAST ( + 43 AS REAL ) - 81 + - 81 * - - CAST ( NULL AS INTEGER ) + + - ( 2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT ALL 0 + COUNT( + - 63 )
----
1

skipif mysql # not compatible
query I rowsort label-9364
SELECT ALL 0 + COUNT ( + - 63 )
----
1

query II rowsort
SELECT - 30 * - + 22 + + 52 AS col1, - 72 - + 69 AS col1
----
712
-141

query I rowsort
SELECT ALL - 56 + - - 88
----
32

query I rowsort
SELECT DISTINCT + 2 + 52 AS col2
----
54

query II rowsort
SELECT ALL 99 AS col1, 94 * + 25
----
99
2350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9369
SELECT 20 * - + 55 + - - 19 DIV + COUNT( - + 11 ) AS col1
----
-1081

skipif mysql # not compatible
query I rowsort label-9369
SELECT 20 * - + 55 + - - 19 / + COUNT ( - + 11 ) AS col1
----
-1081

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9370
SELECT ALL 41 + - COUNT( * ) DIV + 82 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL 41 + - COUNT ( * ) / + 82 AS col2
----
41

query I rowsort
SELECT DISTINCT 64 + - 58 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT - MAX( + 70 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-9372
SELECT - MAX ( + 70 ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT DISTINCT COUNT( * ) * 26
----
26

skipif mysql # not compatible
query I rowsort label-9373
SELECT DISTINCT COUNT ( * ) * 26
----
26

query I rowsort
SELECT 52 + 14 - - - 31 * - + 23 AS col1
----
779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9375
SELECT COALESCE ( - 72, CAST( COUNT( * ) AS SIGNED ) + - NULLIF ( - COUNT( * ), - 18 ), - CAST( - - CASE + - 41 WHEN - 20 * + 4 + 37 + 67 + - 38 THEN 31 * 40 ELSE NULL END AS SIGNED ) * + - 18 + - 23 * 6, + - 35 ) * + ( - 65 )
----
4680

skipif mysql # not compatible
query I rowsort label-9375
SELECT COALESCE ( - 72, CAST ( COUNT ( * ) AS INTEGER ) + - NULLIF ( - COUNT ( * ), - 18 ), - CAST ( - - CASE + - 41 WHEN - 20 * + 4 + 37 + 67 + - 38 THEN 31 * 40 ELSE NULL END AS INTEGER ) * + - 18 + - 23 * 6, + - 35 ) * + ( - 65 )
----
4680

query I rowsort
SELECT ALL 63 - + 67
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9377
SELECT DISTINCT 22 DIV - + 32
----
0

skipif mysql # not compatible
query I rowsort label-9377
SELECT DISTINCT 22 / - + 32
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9378
SELECT ALL 75 AS col1, - COUNT( * )
----
75
-1

skipif mysql # not compatible
query II rowsort label-9378
SELECT ALL 75 AS col1, - COUNT ( * )
----
75
-1

query I rowsort
SELECT ALL + 49 * - 12
----
-588

onlyif mysql # DIV for integer division: 
query I rowsort label-9380
SELECT DISTINCT ( - - 10 ) DIV + - 13 + ( + + 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT ( - - 10 ) / + - 13 + ( + + 64 ) AS col0
----
64

query I rowsort
SELECT DISTINCT + + 90 * + 52 col0
----
4680

query I rowsort
SELECT + ( 31 ) col1
----
31

query I rowsort
SELECT ALL + 10 * + - 60
----
-600

query I rowsort
SELECT + 89 + - 28
----
61

query I rowsort
SELECT - + 8 + - + 15
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-9386
SELECT DISTINCT + 89, - COUNT( * ) - 60 AS col1
----
89
-61

skipif mysql # not compatible
query II rowsort label-9386
SELECT DISTINCT + 89, - COUNT ( * ) - 60 AS col1
----
89
-61

query I rowsort
SELECT DISTINCT + - ( 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT - 48 * + SUM( ALL + - 28 ) * + MAX( + 23 ) AS col0
----
30912

skipif mysql # not compatible
query I rowsort label-9388
SELECT - 48 * + SUM ( ALL + - 28 ) * + MAX ( + 23 ) AS col0
----
30912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9389
SELECT ALL - + 18 * - - CAST( NULL AS SIGNED ) / + 7 * 75 * 43 * + 60 + + 12 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL - + 18 * - - CAST ( NULL AS INTEGER ) / + 7 * 75 * 43 * + 60 + + 12 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT + - 77 * + ( + - 15 ) + NULLIF ( - COUNT( * ), + - 89 + 16 + - SUM( ALL 39 ) ) - 84 AS col1
----
1070

skipif mysql # not compatible
query I rowsort label-9390
SELECT + - 77 * + ( + - 15 ) + NULLIF ( - COUNT ( * ), + - 89 + 16 + - SUM ( ALL 39 ) ) - 84 AS col1
----
1070

query I rowsort
SELECT - 14 * COALESCE ( + - 63, - - 97 ) AS col2
----
882

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT - + COALESCE ( + 72, 67 ) * - + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-9392
SELECT - + COALESCE ( + 72, 67 ) * - + COUNT ( * )
----
72

query II rowsort
SELECT + 35 AS col2, + 99 AS col2
----
35
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9394
SELECT COUNT( * ) AS col1, 26 + - 37 * - 27 col2
----
1
1025

skipif mysql # not compatible
query II rowsort label-9394
SELECT COUNT ( * ) AS col1, 26 + - 37 * - 27 col2
----
1
1025

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT ALL + ( - + 20 ) * - 82 + + + COUNT( + 98 ) * 95
----
1735

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL + ( - + 20 ) * - 82 + + + COUNT ( + 98 ) * 95
----
1735

query I rowsort
SELECT ALL 0 * + 6 + NULLIF ( + + 8, + 26 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT DISTINCT + SUM( ALL + 7 ) * 76 + - 75 + + - 34 * + + 31 + - 19 - 88
----
-704

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT + SUM ( ALL + 7 ) * 76 + - 75 + + - 34 * + + 31 + - 19 - 88
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT + MAX( + 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-9398
SELECT + MAX ( + 46 ) AS col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9399
SELECT ALL - 37 * 63 * + - 85 + - - SUM( ALL + 95 ) - + - 3 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL - 37 * 63 * + - 85 + - - SUM ( ALL + 95 ) - + - 3 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 29 * 41 * + 95 AS col2
----
112955

query I rowsort
SELECT ALL + CASE - + 74 WHEN - 94 THEN NULL ELSE 51 END
----
51

query I rowsort
SELECT - 99 + + + ( 32 )
----
-67

query I rowsort
SELECT + 5 * - - 26 AS col2
----
130

query I rowsort
SELECT - 93 * 40 AS col2
----
-3720

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT - MAX( DISTINCT + 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-9405
SELECT - MAX ( DISTINCT + 94 )
----
-94

query I rowsort
SELECT DISTINCT 81 * - + 17 col0
----
-1377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9407
SELECT DISTINCT ( + - NULLIF ( - - 1, - CAST( + MAX( DISTINCT - + 19 ) AS DECIMAL ) + - - 32 + - COUNT( * ) * + 45 * + ( + NULLIF ( - CAST( NULL AS SIGNED ), - 30 * - + 50 + CASE - - 23 WHEN + SUM( ALL - 42 ) THEN - + 47 / 95 ELSE NULL END ) ) * - COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT ( + - NULLIF ( - - 1, - CAST ( + MAX ( DISTINCT - + 19 ) AS REAL ) + - - 32 + - COUNT ( * ) * + 45 * + ( + NULLIF ( - CAST ( NULL AS INTEGER ), - 30 * - + 50 + CASE - - 23 WHEN + SUM ( ALL - 42 ) THEN - + 47 / 95 ELSE NULL END ) ) * - COUNT ( * ) ) ) AS col0
----
-1

query I rowsort
SELECT ALL 16 * + 3 AS col0
----
48

query I rowsort
SELECT + NULLIF ( - - 0, 92 * + 23 ) * - 36 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9410
SELECT DISTINCT CAST( NULL AS SIGNED ) * + COUNT( * ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9410
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL 17, 39 AS col1
----
17
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT + MAX( - 57 ) + 1
----
-56

skipif mysql # not compatible
query I rowsort label-9412
SELECT + MAX ( - 57 ) + 1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT + 30 - - + 29 - + 77 + + - COUNT( * ) + + 69 - + 53 + - ( - 4 )
----
1

skipif mysql # not compatible
query I rowsort label-9413
SELECT + 30 - - + 29 - + 77 + + - COUNT ( * ) + + 69 - + 53 + - ( - 4 )
----
1

query I rowsort
SELECT + 74 + + 63
----
137

query I rowsort
SELECT + 43 - - - 93 + - - 95 AS col1
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-9416
SELECT - - MIN( 68 ), ( + 48 ) AS col1
----
68
48

skipif mysql # not compatible
query II rowsort label-9416
SELECT - - MIN ( 68 ), ( + 48 ) AS col1
----
68
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT - + ( + 56 ) + - COUNT( * ) * 91 AS col0
----
-147

skipif mysql # not compatible
query I rowsort label-9417
SELECT - + ( + 56 ) + - COUNT ( * ) * 91 AS col0
----
-147

query II rowsort
SELECT - + ( - - 20 ), 93 * ( - 65 ) * - 32 AS col0
----
-20
193440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9419
SELECT ALL 36 / + 71 + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL 36 / + 71 + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT + - 93 + - + 7
----
-100

query I rowsort
SELECT + + 18 + - - ( NULLIF ( + 74, + 56 + + 34 ) ) - - NULLIF ( - 86, - 75 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT ALL - COUNT( * ) * + NULLIF ( + - 4, - - 39 )
----
4

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL - COUNT ( * ) * + NULLIF ( + - 4, - - 39 )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9423
SELECT + 32 DIV + MIN( - 59 )
----
0

skipif mysql # not compatible
query I rowsort label-9423
SELECT + 32 / + MIN ( - 59 )
----
0

query I rowsort
SELECT ALL 2 + 87
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9425
SELECT ALL + - 74 DIV - 97 + - - 59 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL + - 74 / - 97 + - - 59 AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9426
SELECT + 8 * - 74 + - + CASE 29 WHEN 85 * ( - ( - 81 ) ) + - 31 THEN NULL WHEN + 97 THEN + CAST( 49 AS SIGNED ) WHEN - - 55 * + 31 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9426
SELECT + 8 * - 74 + - + CASE 29 WHEN 85 * ( - ( - 81 ) ) + - 31 THEN NULL WHEN + 97 THEN + CAST ( 49 AS INTEGER ) WHEN - - 55 * + 31 THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9427
SELECT - - 35 DIV ( 1 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-9427
SELECT - - 35 / ( 1 ) AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9428
SELECT DISTINCT - 37 DIV 26 + 77
----
76

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT - 37 / 26 + 77
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9429
SELECT + + CAST( + 4 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-9429
SELECT + + CAST ( + 4 AS INTEGER )
----
4

query I rowsort
SELECT 20 * 86 + 30 col1
----
1750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9431
SELECT DISTINCT - COUNT( * ) DIV - 43 + - 29 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT - COUNT ( * ) / - 43 + - 29 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT - 12 + - COUNT( * ) col2
----
-13

skipif mysql # not compatible
query I rowsort label-9432
SELECT - 12 + - COUNT ( * ) col2
----
-13

query I rowsort
SELECT + 82 * - - 97 AS col1
----
7954

query II rowsort
SELECT ALL + ( - + 57 ) AS col2, 3 + - 78 AS col0
----
-57
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT DISTINCT - ( 82 ) * + COUNT( * ) - + - 54 + SUM( - + 51 ) * 31
----
-1609

skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT - ( 82 ) * + COUNT ( * ) - + - 54 + SUM ( - + 51 ) * 31
----
-1609

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT ALL + 16 * + - 90 - COUNT( * ) + - 53 AS col1
----
-1494

skipif mysql # not compatible
query I rowsort label-9436
SELECT ALL + 16 * + - 90 - COUNT ( * ) + - 53 AS col1
----
-1494

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ALL - MIN( - COALESCE ( + 51, + - 52, - + 2 ) ) * 99
----
5049

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL - MIN ( - COALESCE ( + 51, + - 52, - + 2 ) ) * 99
----
5049

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9438
SELECT - 52 * + 39 AS col0, 98 + - COUNT( * ) + COUNT( * ) DIV - + 26 * - - 93 DIV ( - ( - - 25 ) ) AS col1
----
-2028
97

skipif mysql # not compatible
query II rowsort label-9438
SELECT - 52 * + 39 AS col0, 98 + - COUNT ( * ) + COUNT ( * ) / - + 26 * - - 93 / ( - ( - - 25 ) ) AS col1
----
-2028
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT COUNT( DISTINCT - 67 ) * + ( + ( + 90 ) ) + + - 95
----
-5

skipif mysql # not compatible
query I rowsort label-9439
SELECT COUNT ( DISTINCT - 67 ) * + ( + ( + 90 ) ) + + - 95
----
-5

query I rowsort
SELECT - 69 + + 74 + - 38
----
-33

query I rowsort
SELECT ALL + ( + - 10 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT ALL + 39 * - COUNT( * ) * + 34 * - 61 * - 84 * + 22 - 11 AS col2
----
-149477339

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL + 39 * - COUNT ( * ) * + 34 * - 61 * - 84 * + 22 - 11 AS col2
----
-149477339

query I rowsort
SELECT ALL - 67 * + 58 AS col1
----
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9444
SELECT ALL 45 * COUNT( ALL + 79 ) - + - CAST( ( + 3 ) AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL 45 * COUNT ( ALL + 79 ) - + - CAST ( ( + 3 ) AS INTEGER )
----
48

query I rowsort
SELECT COALESCE ( + - 54, + ( 88 ) )
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-9446
SELECT + 14 + + - 65 * 29 AS col1, 32 * + COUNT( * ) * + 69 AS col2
----
-1871
2208

skipif mysql # not compatible
query II rowsort label-9446
SELECT + 14 + + - 65 * 29 AS col1, 32 * + COUNT ( * ) * + 69 AS col2
----
-1871
2208

onlyif mysql # DIV for integer division: 
query I rowsort label-9447
SELECT ALL - 52 DIV + - 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL - 52 / + - 86 AS col1
----
0

query I rowsort
SELECT ALL + ( - ( + - 46 ) ) col0
----
46

query I rowsort
SELECT DISTINCT + 19 * - 85 AS col0
----
-1615

onlyif mysql # DIV for integer division: 
query I rowsort label-9450
SELECT + 71 DIV + 81 - - 49 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-9450
SELECT + 71 / + 81 - - 49 AS col1
----
49

query II rowsort
SELECT 68 + - - 66, + ( 15 ) + 8 + 90 col0
----
134
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9452
SELECT ALL NULLIF ( 48, + CAST( + COUNT( DISTINCT + 92 ) AS SIGNED ) ) + - 44
----
4

skipif mysql # not compatible
query I rowsort label-9452
SELECT ALL NULLIF ( 48, + CAST ( + COUNT ( DISTINCT + 92 ) AS INTEGER ) ) + - 44
----
4

query II rowsort
SELECT DISTINCT + ( - - 87 ), - 71 AS col1
----
87
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-9454
SELECT + 3 + SUM( - + 44 ) AS col1, 11 * 80 + - 61 col0
----
-41
819

skipif mysql # not compatible
query II rowsort label-9454
SELECT + 3 + SUM ( - + 44 ) AS col1, 11 * 80 + - 61 col0
----
-41
819

query I rowsort
SELECT DISTINCT - 94 + - - 74 AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9456
SELECT ALL + 25 + + COUNT( * ) - - - CAST( NULL AS SIGNED ) / + MAX( DISTINCT - 30 ) * + COUNT( * ) + + + 33 - + + MAX( ALL + 37 ) + - - 11 - 4 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL + 25 + + COUNT ( * ) - - - CAST ( NULL AS INTEGER ) / + MAX ( DISTINCT - 30 ) * + COUNT ( * ) + + + 33 - + + MAX ( ALL + 37 ) + - - 11 - 4 * + COUNT ( * )
----
NULL

query I rowsort
SELECT + 69 * 57
----
3933

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9458
SELECT COUNT( * ) + + + COUNT( * ) * CAST( - 69 AS SIGNED ) * MAX( ALL - + 45 ) * + 47 * + 99
----
14447566

skipif mysql # not compatible
query I rowsort label-9458
SELECT COUNT ( * ) + + + COUNT ( * ) * CAST ( - 69 AS INTEGER ) * MAX ( ALL - + 45 ) * + 47 * + 99
----
14447566

onlyif mysql # DIV for integer division: 
query II rowsort label-9459
SELECT ALL + ( + 5 ), - 41 + - + 83 DIV + 43 AS col2
----
5
-42

skipif mysql # not compatible
query II rowsort label-9459
SELECT ALL + ( + 5 ), - 41 + - + 83 / + 43 AS col2
----
5
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9460
SELECT - 53 + CAST( NULL AS SIGNED ) * + - 97 / + - 53 - 54 + - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT - 53 + CAST ( NULL AS INTEGER ) * + - 97 / + - 53 - 54 + - 9 AS col2
----
NULL

query I rowsort
SELECT 16 * - 28 AS col1
----
-448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9462
SELECT DISTINCT - + CASE + + 1 WHEN - 46 / - + 58 THEN + 20 + - - 18 END + - 8 * - + 33 + ( - 15 ) / - 51 * - CAST( + 42 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT - + CASE + + 1 WHEN - 46 / - + 58 THEN + 20 + - - 18 END + - 8 * - + 33 + ( - 15 ) / - 51 * - CAST ( + 42 AS INTEGER )
----
NULL

query I rowsort
SELECT NULLIF ( 12, + CASE + 87 WHEN 36 THEN 23 END ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-9464
SELECT DISTINCT - 49 AS col2, 52 - - 28 * 28 + + COUNT( * ) col0
----
-49
837

skipif mysql # not compatible
query II rowsort label-9464
SELECT DISTINCT - 49 AS col2, 52 - - 28 * 28 + + COUNT ( * ) col0
----
-49
837

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9465
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) * - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) * - 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT DISTINCT - MIN( 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT - MIN ( 36 ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ALL - SUM( - 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL - SUM ( - 35 ) AS col2
----
35

query II rowsort
SELECT + 54, + 76 AS col1
----
54
76

onlyif mysql # aggregate syntax: 
query II rowsort label-9469
SELECT DISTINCT - COUNT( * ) AS col2, - 47 * - 85 AS col1
----
-1
3995

skipif mysql # not compatible
query II rowsort label-9469
SELECT DISTINCT - COUNT ( * ) AS col2, - 47 * - 85 AS col1
----
-1
3995

onlyif mysql # aggregate syntax: 
query II rowsort label-9470
SELECT DISTINCT - 13 AS col0, 3 + MAX( DISTINCT + 4 )
----
-13
7

skipif mysql # not compatible
query II rowsort label-9470
SELECT DISTINCT - 13 AS col0, 3 + MAX ( DISTINCT + 4 )
----
-13
7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9471
SELECT ALL - NULLIF ( + 48, - 36 / - 7 - - - 7 / - NULLIF ( - 47, 1 - + 42 + - NULLIF ( - - 65, - 45 * ( - - 75 ) ) ) ), + CAST( NULL AS DECIMAL ) AS col2
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-9471
SELECT ALL - NULLIF ( + 48, - 36 / - 7 - - - 7 / - NULLIF ( - 47, 1 - + 42 + - NULLIF ( - - 65, - 45 * ( - - 75 ) ) ) ), + CAST ( NULL AS REAL ) AS col2
----
-48
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT 27 * - + COUNT( * ) + + NULLIF ( + - 28, + 56 * + 28 ) + - 78
----
-133

skipif mysql # not compatible
query I rowsort label-9472
SELECT 27 * - + COUNT ( * ) + + NULLIF ( + - 28, + 56 * + 28 ) + - 78
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT ALL - COALESCE ( - - COUNT( * ), - 14 + - + 92 + 27, - + 19 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL - COALESCE ( - - COUNT ( * ), - 14 + - + 92 + 27, - + 19 ) AS col1
----
-1

query I rowsort
SELECT ALL - 36 * + + 40
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT 51 + - NULLIF ( 37, + - 84 * + + SUM( DISTINCT 75 ) )
----
14

skipif mysql # not compatible
query I rowsort label-9475
SELECT 51 + - NULLIF ( 37, + - 84 * + + SUM ( DISTINCT 75 ) )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT 86 * + MIN( ALL + 1 )
----
86

skipif mysql # not compatible
query I rowsort label-9476
SELECT 86 * + MIN ( ALL + 1 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT DISTINCT ( + COALESCE ( - 60, + + COUNT( * ) + - 37, ( 49 ), + 69 * + 92 * + + 82 + COALESCE ( + 10, + 19 * + 16 ) * + + SUM( ALL 25 ) ) )
----
-60

skipif mysql # not compatible
query I rowsort label-9477
SELECT DISTINCT ( + COALESCE ( - 60, + + COUNT ( * ) + - 37, ( 49 ), + 69 * + 92 * + + 82 + COALESCE ( + 10, + 19 * + 16 ) * + + SUM ( ALL 25 ) ) )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT - COUNT( ALL + 25 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9478
SELECT - COUNT ( ALL + 25 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT COUNT( * ) + - 92 col0
----
-91

skipif mysql # not compatible
query I rowsort label-9479
SELECT COUNT ( * ) + - 92 col0
----
-91

query I rowsort
SELECT ALL - 57 + - - 51 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT - MIN( + 17 ) + + 49 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-9481
SELECT - MIN ( + 17 ) + + 49 AS col2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-9482
SELECT DISTINCT + 29 col1, - COUNT( * ) * SUM( + 34 ) + + 36 * + 26 + - - 30 col0
----
29
932

skipif mysql # not compatible
query II rowsort label-9482
SELECT DISTINCT + 29 col1, - COUNT ( * ) * SUM ( + 34 ) + + 36 * + 26 + - - 30 col0
----
29
932

query I rowsort
SELECT DISTINCT - - 12 + - + 44 AS col1
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9484
SELECT - CAST( NULL AS SIGNED ) AS col0, 93 * 65 AS col2
----
NULL
6045

skipif mysql # not compatible
query II rowsort label-9484
SELECT - CAST ( NULL AS INTEGER ) AS col0, 93 * 65 AS col2
----
NULL
6045

query I rowsort
SELECT 62 + - - 34 + - - 51 col2
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9486
SELECT + COUNT( * ) + CAST( NULL AS SIGNED ) * - 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9486
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER ) * - 9 AS col1
----
NULL

query I rowsort
SELECT + 28 - - 57 AS col0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9488
SELECT ALL - 82 AS col0, - COUNT( DISTINCT 98 ) + 4 + + 78 DIV + 14 AS col0
----
-82
8

skipif mysql # not compatible
query II rowsort label-9488
SELECT ALL - 82 AS col0, - COUNT ( DISTINCT 98 ) + 4 + + 78 / + 14 AS col0
----
-82
8

onlyif mysql # aggregate syntax: 
query II rowsort label-9489
SELECT + 48, MAX( DISTINCT + ( 16 ) ) AS col1
----
48
16

skipif mysql # not compatible
query II rowsort label-9489
SELECT + 48, MAX ( DISTINCT + ( 16 ) ) AS col1
----
48
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ( + COUNT( * ) ) + + + COUNT( ALL 64 )
----
2

skipif mysql # not compatible
query I rowsort label-9490
SELECT ( + COUNT ( * ) ) + + + COUNT ( ALL 64 )
----
2

query I rowsort
SELECT 85 + + + 39 AS col2
----
124

query I rowsort
SELECT 72 * - 40 * 43 AS col0
----
-123840

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9493
SELECT DISTINCT + 13 * - ( + NULLIF ( - 77, CAST( - - 81 AS SIGNED ) - + AVG ( + 47 ) - + 93 ) ) AS col2, 72 * 87 AS col2, - 33 * - + ( 73 ) - 47 col0
----
1001
6264
2362

skipif mysql # not compatible
query III rowsort label-9493
SELECT DISTINCT + 13 * - ( + NULLIF ( - 77, CAST ( - - 81 AS INTEGER ) - + AVG ( + 47 ) - + 93 ) ) AS col2, 72 * 87 AS col2, - 33 * - + ( 73 ) - 47 col0
----
1001
6264
2362

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9494
SELECT ALL 25 + - - 62 * - 3 AS col2, + CAST( + 6 AS SIGNED ) * - - ( 51 ) + + 2
----
-161
308

skipif mysql # not compatible
query II rowsort label-9494
SELECT ALL 25 + - - 62 * - 3 AS col2, + CAST ( + 6 AS INTEGER ) * - - ( 51 ) + + 2
----
-161
308

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT - 94 + 9 + - COUNT( * ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-9495
SELECT - 94 + 9 + - COUNT ( * ) AS col1
----
-86

query II rowsort
SELECT ALL 60 AS col1, NULLIF ( 75, 88 + - 30 + 32 ) col1
----
60
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9497
SELECT DISTINCT NULLIF ( - 55, + CAST( NULL AS SIGNED ) )
----
-55

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT NULLIF ( - 55, + CAST ( NULL AS INTEGER ) )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9498
SELECT ALL SUM( ALL + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL SUM ( ALL + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 84 * 20
----
-1680

onlyif mysql # DIV for integer division: 
query I rowsort label-9500
SELECT - 13 DIV + ( - + 79 ) + - - 88 * + 28 * 21 + 48 + + 36
----
51828

skipif mysql # not compatible
query I rowsort label-9500
SELECT - 13 / + ( - + 79 ) + - - 88 * + 28 * 21 + 48 + + 36
----
51828

onlyif mysql # aggregate syntax: 
query II rowsort label-9501
SELECT COUNT( + + 76 ), COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-9501
SELECT COUNT ( + + 76 ), COUNT ( * ) AS col0
----
1
1

query I rowsort
SELECT DISTINCT - 78 * - 41 - 24 + + - 40 + 57 + - + COALESCE ( - + 27, - 86, - 34 ) * + 83 AS col0
----
5432

query I rowsort
SELECT 17 * - 40 AS col2
----
-680

onlyif mysql # aggregate syntax: 
query II rowsort label-9504
SELECT COALESCE ( SUM( DISTINCT + 53 ), + 79, + 65 + + 66 ) + + 93 + + - 68 * - - 39 AS col0, + 51 * - - 92 * - 10
----
-2506
-46920

skipif mysql # not compatible
query II rowsort label-9504
SELECT COALESCE ( SUM ( DISTINCT + 53 ), + 79, + 65 + + 66 ) + + 93 + + - 68 * - - 39 AS col0, + 51 * - - 92 * - 10
----
-2506
-46920

query I rowsort
SELECT DISTINCT 58 * 88
----
5104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9506
SELECT 31 / + CAST( NULL AS SIGNED ) / - 21 + + COUNT( * ) - - - 57 * 0 + 82 - + 8 * + 8 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9506
SELECT 31 / + CAST ( NULL AS INTEGER ) / - 21 + + COUNT ( * ) - - - 57 * 0 + 82 - + 8 * + 8 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9507
SELECT ALL 93 * - 36 DIV + 4 AS col1
----
-837

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL 93 * - 36 / + 4 AS col1
----
-837

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9508
SELECT + 10 * - - 96 DIV MAX( DISTINCT + 12 )
----
80

skipif mysql # not compatible
query I rowsort label-9508
SELECT + 10 * - - 96 / MAX ( DISTINCT + 12 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9509
SELECT DISTINCT 22 * + ( - - CAST( + 26 AS SIGNED ) ) AS col1
----
572

skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT 22 * + ( - - CAST ( + 26 AS INTEGER ) ) AS col1
----
572

query II rowsort
SELECT + 92 + 59 AS col1, + 79 AS col1
----
151
79

query I rowsort
SELECT ALL 98 * - + ( + - 45 )
----
4410

query I rowsort
SELECT ALL 57 * 85 * + 42
----
203490

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9513
SELECT + SUM( + 69 ) DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-9513
SELECT + SUM ( + 69 ) / + 70
----
0

query I rowsort
SELECT + 30 * + - 6 + + 37
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT + MIN( DISTINCT - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-9515
SELECT + MIN ( DISTINCT - 3 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT MAX( ALL - - 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9516
SELECT MAX ( ALL - - 96 ) AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9517
SELECT CASE - 6 WHEN + - 18 THEN - + 85 WHEN - - 61 THEN NULL END * - 56 * 72 * + CAST( - 37 AS DECIMAL ) + - - COUNT( * ) / + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9517
SELECT CASE - 6 WHEN + - 18 THEN - + 85 WHEN - - 61 THEN NULL END * - 56 * 72 * + CAST ( - 37 AS REAL ) + - - COUNT ( * ) / + 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT MAX( DISTINCT + - CASE - 89 WHEN + 34 THEN 5 * + 23 WHEN 3 * 92 - + - 85 THEN + 51 WHEN + 98 THEN NULL ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9518
SELECT MAX ( DISTINCT + - CASE - 89 WHEN + 34 THEN 5 * + 23 WHEN 3 * 92 - + - 85 THEN + 51 WHEN + 98 THEN NULL ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT ALL + 49 * - + 91 AS col1
----
-4459

query I rowsort
SELECT DISTINCT - 27 + 40 + - 20 + + 63
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT ALL + 0 + - COUNT( DISTINCT + 90 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL + 0 + - COUNT ( DISTINCT + 90 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT ALL - ( - + ( - SUM( + - ( + 40 ) ) ) )
----
40

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL - ( - + ( - SUM ( + - ( + 40 ) ) ) )
----
40

query I rowsort
SELECT DISTINCT - 78 + 97
----
19

query I rowsort
SELECT ALL + + 9 * 22 col2
----
198

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9525
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT DISTINCT + CAST ( NULL AS REAL ) * - 44
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9526
SELECT - + CASE - + 12 WHEN - + 44 THEN NULL ELSE COALESCE ( - 60, - - CAST( NULL AS SIGNED ) ) END
----
60

skipif mysql # not compatible
query I rowsort label-9526
SELECT - + CASE - + 12 WHEN - + 44 THEN NULL ELSE COALESCE ( - 60, - - CAST ( NULL AS INTEGER ) ) END
----
60

query I rowsort
SELECT DISTINCT - ( + 51 ) AS col2
----
-51

query I rowsort
SELECT - - ( - 90 ) * - 12 + + 65
----
1145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9529
SELECT ALL - 73 * + 0 DIV + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9529
SELECT ALL - 73 * + 0 / + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9530
SELECT - CASE - 53 WHEN - - 52 THEN - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) WHEN - - COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9530
SELECT - CASE - 53 WHEN - - 52 THEN - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN - - COUNT ( * ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - 25, 57 )
----
25

query I rowsort
SELECT ALL + 23 - 44 + + CASE 30 WHEN ( - 38 ) THEN + 44 END - - 31 AS col2
----
NULL

query I rowsort
SELECT - 59 - 76 + - 18 col2
----
-153

query I rowsort
SELECT - 59 + + 41 + + 53 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT - 77 * - + 57 * 14 * 57 * - MIN( ALL + ( + + 97 ) )
----
-339734934

skipif mysql # not compatible
query I rowsort label-9535
SELECT - 77 * - + 57 * 14 * 57 * - MIN ( ALL + ( + + 97 ) )
----
-339734934

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9536
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT + CAST ( NULL AS REAL ) / - 79 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9537
SELECT - 53 * + 80 * + 62 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9537
SELECT - 53 * + 80 * + 62 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 8 * - 84
----
-672

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9539
SELECT ( + NULLIF ( - CAST( NULL AS DECIMAL ), + 37 * + 88 / - + 32 * + 30 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9539
SELECT ( + NULLIF ( - CAST ( NULL AS REAL ), + 37 * + 88 / - + 32 * + 30 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9540
SELECT ALL + 35 DIV + 67 * + COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL + 35 / + 67 * + COUNT ( * ) col1
----
0

query I rowsort
SELECT ALL 17 * 45
----
765

query I rowsort
SELECT - 23 * - 85 col2
----
1955

onlyif mysql # DIV for integer division: 
query I rowsort label-9543
SELECT ALL - 57 DIV 88 + - + 37 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL - 57 / 88 + - + 37 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT - 2 * 51 * - COUNT( * ) + - - 4 + - 64
----
42

skipif mysql # not compatible
query I rowsort label-9544
SELECT - 2 * 51 * - COUNT ( * ) + - - 4 + - 64
----
42

query I rowsort
SELECT ALL + 36 * + 90 AS col1
----
3240

query I rowsort
SELECT - 87 * - 93 * - ( + 11 ) AS col1
----
-89001

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT DISTINCT 1 * + CASE - MAX( DISTINCT - 18 ) WHEN 93 - + + 47 THEN + 35 * - 79 WHEN 42 + 59 + + 30 * + 48 + - - COUNT( * ) THEN NULL END + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT DISTINCT 1 * + CASE - MAX ( DISTINCT - 18 ) WHEN 93 - + + 47 THEN + 35 * - 79 WHEN 42 + 59 + + 30 * + 48 + - - COUNT ( * ) THEN NULL END + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT + SUM( + COALESCE ( + + 14, + 75 ) )
----
14

skipif mysql # not compatible
query I rowsort label-9548
SELECT + SUM ( + COALESCE ( + + 14, + 75 ) )
----
14

query II rowsort
SELECT ALL + 6, 40 * 13 * 9 col1
----
6
4680

query I rowsort
SELECT ALL + 40 * + 10 - 43 + + + 28 - - - 16 * - 29 + + ( + ( + - ( 44 ) ) ) AS col2
----
805

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9551
SELECT + 60 DIV COUNT( * ) * + ( - 98 ) AS col2
----
-5880

skipif mysql # not compatible
query I rowsort label-9551
SELECT + 60 / COUNT ( * ) * + ( - 98 ) AS col2
----
-5880

onlyif mysql # DIV for integer division: 
query I rowsort label-9552
SELECT + 74 * + COALESCE ( + 72, - + 52 * + + 88 + 52, + + 61, - - 72 * 12 ) + + 66 + 68 * + 1 DIV 58 * 0 + COALESCE ( + 56, 4, + 99 ) * + 35
----
7354

skipif mysql # not compatible
query I rowsort label-9552
SELECT + 74 * + COALESCE ( + 72, - + 52 * + + 88 + 52, + + 61, - - 72 * 12 ) + + 66 + 68 * + 1 / 58 * 0 + COALESCE ( + 56, 4, + 99 ) * + 35
----
7354

query I rowsort
SELECT + 83 - + + 44
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9554
SELECT + 27 + + - CAST( NULL AS DECIMAL ) * + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-9554
SELECT + 27 + + - CAST ( NULL AS REAL ) * + 29
----
NULL

query I rowsort
SELECT + + 57 * - + 97 AS col0
----
-5529

query I rowsort
SELECT + ( + 77 ) + 87 * 52
----
4601

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT + - 33 + + SUM( DISTINCT + ( - + 34 ) ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-9557
SELECT + - 33 + + SUM ( DISTINCT + ( - + 34 ) ) AS col1
----
-67

query I rowsort
SELECT + 3 + - - 97
----
100

query I rowsort
SELECT + 43 + - 80
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT - 12 * + - COALESCE ( + - COUNT( * ), - + 79 * - 12, - 59 )
----
-12

skipif mysql # not compatible
query I rowsort label-9560
SELECT - 12 * + - COALESCE ( + - COUNT ( * ), - + 79 * - 12, - 59 )
----
-12

query II rowsort
SELECT - - 1, - 45 AS col0
----
1
-45

query I rowsort
SELECT DISTINCT COALESCE ( + 21, - 19 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT ALL + COALESCE ( + 16, - COUNT( * ), - + 15 ) * + - 75
----
-1200

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL + COALESCE ( + 16, - COUNT ( * ), - + 15 ) * + - 75
----
-1200

query I rowsort
SELECT + 53 * 87 AS col2
----
4611

query I rowsort
SELECT ALL ( + ( - - ( - 39 ) ) ) col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9566
SELECT - COUNT( * ) + + MIN( + CAST( NULL AS SIGNED ) ) / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9566
SELECT - COUNT ( * ) + + MIN ( + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9567
SELECT ALL CAST( - - ( - - 10 ) AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL CAST ( - - ( - - 10 ) AS INTEGER )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9568
SELECT - COALESCE ( - 99, + 97 * 25 + - 78, - 48 ) * ( - - COUNT( * ) ) * + - ( - - 89 ) * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9568
SELECT - COALESCE ( - 99, + 97 * 25 + - 78, - 48 ) * ( - - COUNT ( * ) ) * + - ( - - 89 ) * - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT - 82 + + NULLIF ( CASE + - NULLIF ( SUM( ALL - 24 ), + 43 ) WHEN - 80 THEN - - 57 + - COUNT( * ) * + 70 * + COUNT( * ) * 58 * COALESCE ( + 16, - COALESCE ( 43, + NULLIF ( + SUM( ALL 66 ), - - 87 + + 31 + - ( + + 22 ) ) + - - 20 ) * + 72 ) + 10 ELSE + + COUNT( * ) * - 32 END, + - 0 ) AS col2
----
-114

skipif mysql # not compatible
query I rowsort label-9569
SELECT - 82 + + NULLIF ( CASE + - NULLIF ( SUM ( ALL - 24 ), + 43 ) WHEN - 80 THEN - - 57 + - COUNT ( * ) * + 70 * + COUNT ( * ) * 58 * COALESCE ( + 16, - COALESCE ( 43, + NULLIF ( + SUM ( ALL 66 ), - - 87 + + 31 + - ( + + 22 ) ) + - - 20 ) * + 72 ) + 10 ELSE + + COUNT ( * ) * - 32 END, + - 0 ) AS col2
----
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-9570
SELECT ALL 46 col0, COUNT( * ) AS col2
----
46
1

skipif mysql # not compatible
query II rowsort label-9570
SELECT ALL 46 col0, COUNT ( * ) AS col2
----
46
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9571
SELECT 87 * + 25 * MAX( DISTINCT - 7 ) AS col1, 92 AS col2
----
-15225
92

skipif mysql # not compatible
query II rowsort label-9571
SELECT 87 * + 25 * MAX ( DISTINCT - 7 ) AS col1, 92 AS col2
----
-15225
92

query I rowsort
SELECT 67 + 16 AS col2
----
83

query II rowsort
SELECT + 68 AS col2, + 53 AS col0
----
68
53

query I rowsort
SELECT ALL + 5 * 52
----
260

query I rowsort
SELECT + 22 * - 55 + + 45
----
-1165

onlyif mysql # DIV for integer division: 
query I rowsort label-9576
SELECT 5 DIV 23 + - 66
----
-66

skipif mysql # not compatible
query I rowsort label-9576
SELECT 5 / 23 + - 66
----
-66

query I rowsort
SELECT ALL 21 + - 55 + 92
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT SUM( ALL - 92 ) + - - 17 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-9578
SELECT SUM ( ALL - 92 ) + - - 17 AS col2
----
-75

query I rowsort
SELECT ALL + 17 - - 48
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9580
SELECT + 67 AS col1, NULLIF ( ( - 46 ), - CAST( - AVG ( ALL + 91 ) AS SIGNED ) * + 96 ) * + - 54 + - 67 * - 43 * 68 * 43
----
67
8426528

skipif mysql # not compatible
query II rowsort label-9580
SELECT + 67 AS col1, NULLIF ( ( - 46 ), - CAST ( - AVG ( ALL + 91 ) AS INTEGER ) * + 96 ) * + - 54 + - 67 * - 43 * 68 * 43
----
67
8426528

query II rowsort
SELECT ALL + 73, + 68 AS col1
----
73
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9582
SELECT DISTINCT - COUNT( * ) DIV + 69 * - ( - - 56 ) + 2
----
2

skipif mysql # not compatible
query I rowsort label-9582
SELECT DISTINCT - COUNT ( * ) / + 69 * - ( - - 56 ) + 2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9583
SELECT DISTINCT CAST( + 53 AS SIGNED ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT CAST ( + 53 AS INTEGER ) AS col2
----
53

query II rowsort
SELECT ALL + 52 AS col2, ( + 8 ) AS col1
----
52
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9585
SELECT + MIN( ALL + 60 ) * 66 * + - CASE NULLIF ( - - 4, + 21 - - 96 + 77 ) WHEN - 25 * + + 53 + + + 42 + + 50 THEN - 73 + + - 27 WHEN - + 74 * - 82 * + + 55 + + 7 * - 2 THEN NULL WHEN + 4 + + + 26 THEN NULL WHEN COUNT( * ) * 95 + - 51 * 30 THEN NULL END AS col2, 10 * + COUNT( * ) - - CAST( MIN( ALL 59 ) AS SIGNED ) * + - 73 + - 44 + CAST( 36 AS SIGNED ) - + - 34 + - + 41
----
NULL
-4312

skipif mysql # not compatible
query II rowsort label-9585
SELECT + MIN ( ALL + 60 ) * 66 * + - CASE NULLIF ( - - 4, + 21 - - 96 + 77 ) WHEN - 25 * + + 53 + + + 42 + + 50 THEN - 73 + + - 27 WHEN - + 74 * - 82 * + + 55 + + 7 * - 2 THEN NULL WHEN + 4 + + + 26 THEN NULL WHEN COUNT ( * ) * 95 + - 51 * 30 THEN NULL END AS col2, 10 * + COUNT ( * ) - - CAST ( MIN ( ALL 59 ) AS INTEGER ) * + - 73 + - 44 + CAST ( 36 AS INTEGER ) - + - 34 + - + 41
----
NULL
-4312

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9586
SELECT ALL 12, - MIN( DISTINCT 38 ) DIV + COUNT( * ) AS col0
----
12
-38

skipif mysql # not compatible
query II rowsort label-9586
SELECT ALL 12, - MIN ( DISTINCT 38 ) / + COUNT ( * ) AS col0
----
12
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT ALL 0 + - MIN( DISTINCT + - 96 )
----
96

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL 0 + - MIN ( DISTINCT + - 96 )
----
96

query II rowsort
SELECT 45 * + 12, + 95 AS col2
----
540
95

query I rowsort
SELECT DISTINCT 76 + + 43
----
119

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9590
SELECT COUNT( * ) + - CAST( NULL AS DECIMAL ) AS col1, 11 * 16 col2
----
NULL
176

skipif mysql # not compatible
query II rowsort label-9590
SELECT COUNT ( * ) + - CAST ( NULL AS REAL ) AS col1, 11 * 16 col2
----
NULL
176

query I rowsort
SELECT DISTINCT 40 + - 49 AS col2
----
-9

query I rowsort
SELECT 45 + + + 38 * - - 22 AS col0
----
881

query I rowsort
SELECT 87 + + 16 AS col1
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9594
SELECT ALL 34 + 50 * CAST( + 20 AS SIGNED ) * + 65 + - 29 + + - 71
----
64934

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL 34 + 50 * CAST ( + 20 AS INTEGER ) * + 65 + - 29 + + - 71
----
64934

query II rowsort
SELECT 70 * 7 col1, 87 AS col2
----
490
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9596
SELECT ALL + 0 - + 58 - - CAST( NULL AS SIGNED ) * + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL + 0 - + 58 - - CAST ( NULL AS INTEGER ) * + 90 AS col1
----
NULL

query II rowsort
SELECT + ( - 12 ) AS col1, 87 AS col2
----
-12
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9598
SELECT ALL + + 90 - + CASE - - 25 WHEN - - COUNT( * ) / - - 10 * - ( + 30 ) * - - CAST( NULL AS DECIMAL ) - + - 43 THEN + 21 ELSE NULL END / + + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL + + 90 - + CASE - - 25 WHEN - - COUNT ( * ) / - - 10 * - ( + 30 ) * - - CAST ( NULL AS REAL ) - + - 43 THEN + 21 ELSE NULL END / + + 94 AS col0
----
NULL

query I rowsort
SELECT 41 * - - 50 * - 71 + + 30 - + 16 * - - ( 88 )
----
-146928

onlyif mysql # DIV for integer division: 
query I rowsort label-9600
SELECT DISTINCT - 30 DIV - + 71 + - - 79 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-9600
SELECT DISTINCT - 30 / - + 71 + - - 79 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT - - 12 * + 46 - - COUNT( * ) * COUNT( * )
----
553

skipif mysql # not compatible
query I rowsort label-9601
SELECT - - 12 * + 46 - - COUNT ( * ) * COUNT ( * )
----
553

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT DISTINCT - - CASE 26 WHEN COUNT( * ) + + 21 THEN + - 97 * + + 12 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT - - CASE 26 WHEN COUNT ( * ) + + 21 THEN + - 97 * + + 12 END AS col2
----
NULL

query I rowsort
SELECT ALL + ( - + 45 ) * - 89 + - - 50
----
4055

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT ALL - COUNT( * ) * - 0 * + ( - - 6 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL - COUNT ( * ) * - 0 * + ( - - 6 ) AS col2
----
0

query I rowsort
SELECT 95 * 48 AS col2
----
4560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9606
SELECT NULLIF ( 92, - - CAST( NULL AS SIGNED ) ) + 15 AS col0
----
107

skipif mysql # not compatible
query I rowsort label-9606
SELECT NULLIF ( 92, - - CAST ( NULL AS INTEGER ) ) + 15 AS col0
----
107

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9607
SELECT DISTINCT + 42 + + 8 + 76 * 23 + ( - CASE - 50 WHEN + - 61 / + CAST( + + 91 AS DECIMAL ) + + COALESCE ( 93, + COUNT( * ) + 51 ) / 26 / + 15 THEN - - 22 WHEN - 88 / + 14 THEN + 46 + - ( + + 89 ) ELSE NULL END ), - ( - 78 ) AS col0
----
NULL
78

skipif mysql # not compatible
query II rowsort label-9607
SELECT DISTINCT + 42 + + 8 + 76 * 23 + ( - CASE - 50 WHEN + - 61 / + CAST ( + + 91 AS REAL ) + + COALESCE ( 93, + COUNT ( * ) + 51 ) / 26 / + 15 THEN - - 22 WHEN - 88 / + 14 THEN + 46 + - ( + + 89 ) ELSE NULL END ), - ( - 78 ) AS col0
----
NULL
78

query I rowsort
SELECT ALL ( - + 11 ) + - 52 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT COUNT( * ) + + 70 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-9609
SELECT COUNT ( * ) + + 70 AS col0
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9610
SELECT ALL + 76 + MAX( - 22 ) * - 90 + - + CAST( + 6 AS SIGNED ) + + 99 AS col0
----
2149

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL + 76 + MAX ( - 22 ) * - 90 + - + CAST ( + 6 AS INTEGER ) + + 99 AS col0
----
2149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9611
SELECT ALL + 49 + + 94 * + ( + - 45 ) + - CASE - 6 WHEN - 90 THEN + 38 * + 5 WHEN 12 THEN 70 / 83 + + + 89 * 17 - + + 19 + + - 87 END + CAST( + ( + + ( - 22 ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL + 49 + + 94 * + ( + - 45 ) + - CASE - 6 WHEN - 90 THEN + 38 * + 5 WHEN 12 THEN 70 / 83 + + + 89 * 17 - + + 19 + + - 87 END + CAST ( + ( + + ( - 22 ) ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT - SUM( DISTINCT + 42 ) col0
----
-42

skipif mysql # not compatible
query I rowsort label-9612
SELECT - SUM ( DISTINCT + 42 ) col0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9613
SELECT - 46 DIV + 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9613
SELECT - 46 / + 64 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9614
SELECT ALL 58 * - + 39 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL 58 * - + 39 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - COALESCE ( 61, + - 68 + + 43 ) AS col2
----
-61

query I rowsort
SELECT DISTINCT + 86 * + 87 AS col2
----
7482

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9617
SELECT DISTINCT - 32 + - 6 DIV - + COALESCE ( + 12, - 4 - + - ( COUNT( * ) ) * - 95 + + + SUM( + 28 ) ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-9617
SELECT DISTINCT - 32 + - 6 / - + COALESCE ( + 12, - 4 - + - ( COUNT ( * ) ) * - 95 + + + SUM ( + 28 ) ) AS col2
----
-32

query I rowsort
SELECT + 92 * - - ( + 60 ) col2
----
5520

query I rowsort
SELECT DISTINCT 22 - - 15
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT - SUM( ALL - 61 )
----
61

skipif mysql # not compatible
query I rowsort label-9620
SELECT - SUM ( ALL - 61 )
----
61

query I rowsort
SELECT + 57 * + - 95 * 16
----
-86640

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT + 62 * + COUNT( + 4 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9622
SELECT + 62 * + COUNT ( + 4 ) AS col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9623
SELECT NULLIF ( + 48, - 39 ) DIV - 68 + NULLIF ( - 40, + COUNT( * ) ) + - 36 * - 42
----
1472

skipif mysql # not compatible
query I rowsort label-9623
SELECT NULLIF ( + 48, - 39 ) / - 68 + NULLIF ( - 40, + COUNT ( * ) ) + - 36 * - 42
----
1472

onlyif mysql # aggregate syntax: 
query II rowsort label-9624
SELECT DISTINCT + + 41 AS col2, + COUNT( 45 )
----
41
1

skipif mysql # not compatible
query II rowsort label-9624
SELECT DISTINCT + + 41 AS col2, + COUNT ( 45 )
----
41
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT ALL - 1 * - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL - 1 * - COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT + - 95 + + COALESCE ( + 93, + 95 * + - 91, - COUNT( * ) - + - MAX( + 94 ) + + COUNT( * ) + + 88 + + + 49 * + - 68 ) * 95 AS col0
----
8740

skipif mysql # not compatible
query I rowsort label-9626
SELECT + - 95 + + COALESCE ( + 93, + 95 * + - 91, - COUNT ( * ) - + - MAX ( + 94 ) + + COUNT ( * ) + + 88 + + + 49 * + - 68 ) * 95 AS col0
----
8740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9627
SELECT ALL + + CASE 37 WHEN + + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) THEN NULL WHEN 43 / 22 + + - 46 + - 83 + 50 THEN + 45 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL + + CASE 37 WHEN + + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 43 / 22 + + - 46 + - 83 + 50 THEN + 45 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 56 * 2 col0
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-9629
SELECT ALL + 41 AS col0, - 65 + + ( - - ( 10 ) ) * CASE - 61 WHEN + COUNT( * ) THEN NULL ELSE + 70 END * 53
----
41
37035

skipif mysql # not compatible
query II rowsort label-9629
SELECT ALL + 41 AS col0, - 65 + + ( - - ( 10 ) ) * CASE - 61 WHEN + COUNT ( * ) THEN NULL ELSE + 70 END * 53
----
41
37035

query II rowsort
SELECT + - 87 col0, 63 * - + 82 AS col1
----
-87
-5166

query I rowsort
SELECT + 9 * - 40 AS col0
----
-360

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9632
SELECT - + CAST( + + 31 AS SIGNED ) * + - NULLIF ( 22, ( - - CAST( NULL AS DECIMAL ) ) ) + 94 AS col2
----
776

skipif mysql # not compatible
query I rowsort label-9632
SELECT - + CAST ( + + 31 AS INTEGER ) * + - NULLIF ( 22, ( - - CAST ( NULL AS REAL ) ) ) + 94 AS col2
----
776

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9633
SELECT 5 * - 28 * + 16 + - + COUNT( * ) DIV + 72 + - + 35 AS col1, + 25
----
-2275
25

skipif mysql # not compatible
query II rowsort label-9633
SELECT 5 * - 28 * + 16 + - + COUNT ( * ) / + 72 + - + 35 AS col1, + 25
----
-2275
25

onlyif mysql # aggregate syntax: 
query II rowsort label-9634
SELECT ALL 8 * + COUNT( * ) + + + 82 AS col2, + ( + COUNT( DISTINCT - 82 ) ) * + - 70 + - + 83
----
90
-153

skipif mysql # not compatible
query II rowsort label-9634
SELECT ALL 8 * + COUNT ( * ) + + + 82 AS col2, + ( + COUNT ( DISTINCT - 82 ) ) * + - 70 + - + 83
----
90
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-9635
SELECT ALL + 13 DIV + ( + ( - 91 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL + 13 / + ( + ( - 91 ) ) AS col2
----
0

query I rowsort
SELECT DISTINCT - 92 * 50 + + 65 + + 85
----
-4450

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT ALL COUNT( * ) * - 51 + - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL COUNT ( * ) * - 51 + - COUNT ( * )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT DISTINCT 67 * + + COUNT( * ) + - + 12 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT 67 * + + COUNT ( * ) + - + 12 AS col0
----
55

query I rowsort
SELECT - 40 * 7
----
-280

query I rowsort
SELECT ALL + 18 - 62 AS col0
----
-44

query I rowsort
SELECT - ( - 46 ) - 5 AS col1
----
41

query I rowsort
SELECT - 34 + + + 96
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT ALL COUNT( * ) * - ( + + 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL COUNT ( * ) * - ( + + 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT - COALESCE ( + COUNT( * ), 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-9644
SELECT - COALESCE ( + COUNT ( * ), 9 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9645
SELECT + 63 DIV - 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9645
SELECT + 63 / - 66 AS col2
----
0

query I rowsort
SELECT + 80 + + 73 * ( - - 78 ) + + - 15 col0
----
5759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9647
SELECT - CAST( NULL AS SIGNED ) / + 68 * - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9647
SELECT - CAST ( NULL AS INTEGER ) / + 68 * - 15 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9648
SELECT - CAST( 3 AS SIGNED ) AS col2, 17 AS col1
----
-3
17

skipif mysql # not compatible
query II rowsort label-9648
SELECT - CAST ( 3 AS INTEGER ) AS col2, 17 AS col1
----
-3
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9649
SELECT DISTINCT + + 19 * 97 AS col1, - COUNT( 92 ) AS col0
----
1843
-1

skipif mysql # not compatible
query II rowsort label-9649
SELECT DISTINCT + + 19 * 97 AS col1, - COUNT ( 92 ) AS col0
----
1843
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9650
SELECT + 27 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-9650
SELECT + 27 / + 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT + 41 * - 55 * - 11 + - CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE COUNT( * ) END
----
24804

skipif mysql # not compatible
query I rowsort label-9651
SELECT + 41 * - 55 * - 11 + - CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE COUNT ( * ) END
----
24804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9652
SELECT DISTINCT + NULLIF ( + + 98, + CAST( 91 AS SIGNED ) * 33 + MIN( + 0 ) + - 24 * + ( - 74 ) * - + NULLIF ( + + 31, - 88 ) + + + 76 + + - 9 * + 70 + - 6 + + 11 * - CASE + 98 WHEN + - 28 + 21 THEN 91 WHEN 64 THEN NULL END + + COUNT( * ) ), + 50 * + 91 AS col1
----
98
4550

skipif mysql # not compatible
query II rowsort label-9652
SELECT DISTINCT + NULLIF ( + + 98, + CAST ( 91 AS INTEGER ) * 33 + MIN ( + 0 ) + - 24 * + ( - 74 ) * - + NULLIF ( + + 31, - 88 ) + + + 76 + + - 9 * + 70 + - 6 + + 11 * - CASE + 98 WHEN + - 28 + 21 THEN 91 WHEN 64 THEN NULL END + + COUNT ( * ) ), + 50 * + 91 AS col1
----
98
4550

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9653
SELECT + + ( + 64 ) * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9653
SELECT + + ( + 64 ) * + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9654
SELECT DISTINCT - + 33 DIV + COALESCE ( SUM( ALL - 21 ), 55 ) + - - 17
----
18

skipif mysql # not compatible
query I rowsort label-9654
SELECT DISTINCT - + 33 / + COALESCE ( SUM ( ALL - 21 ), 55 ) + - - 17
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-9655
SELECT ALL - - 68 DIV ( - 91 ) + - - 4 + - 19
----
-15

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL - - 68 / ( - 91 ) + - - 4 + - 19
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT 71 * + 44 * + COALESCE ( COUNT( * ), - 51 * - 69 + 65 + - 55 ) + 71 col0
----
3195

skipif mysql # not compatible
query I rowsort label-9656
SELECT 71 * + 44 * + COALESCE ( COUNT ( * ), - 51 * - 69 + 65 + - 55 ) + 71 col0
----
3195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9657
SELECT - CAST( + 51 AS SIGNED ) * + 16 + - 55 * + 99 * + 5 + - + 9 + 48 AS col1
----
-28002

skipif mysql # not compatible
query I rowsort label-9657
SELECT - CAST ( + 51 AS INTEGER ) * + 16 + - 55 * + 99 * + 5 + - + 9 + 48 AS col1
----
-28002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9658
SELECT 50 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9658
SELECT 50 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT + 51 * + 7 - - - COUNT( * )
----
356

skipif mysql # not compatible
query I rowsort label-9659
SELECT + 51 * + 7 - - - COUNT ( * )
----
356

query II rowsort
SELECT 80 - + + 36 + + 95 AS col1, 71 * - 31
----
139
-2201

query I rowsort
SELECT DISTINCT - NULLIF ( - 21, + 19 )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9662
SELECT 80 + + 51 DIV + COUNT( * ) AS col1
----
131

skipif mysql # not compatible
query I rowsort label-9662
SELECT 80 + + 51 / + COUNT ( * ) AS col1
----
131

query I rowsort
SELECT ALL + 14 * - 73
----
-1022

onlyif mysql # DIV for integer division: 
query I rowsort label-9664
SELECT DISTINCT 16 DIV + 5
----
3

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT 16 / + 5
----
3

query II rowsort
SELECT ALL 52, - 71 AS col0
----
52
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT 15 + MIN( - ( - + 61 ) ) * 23
----
1418

skipif mysql # not compatible
query I rowsort label-9666
SELECT 15 + MIN ( - ( - + 61 ) ) * 23
----
1418

query I rowsort
SELECT 86 * - 81 AS col2
----
-6966

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT COUNT( * ) * + ( - + 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-9668
SELECT COUNT ( * ) * + ( - + 29 )
----
-29

query I rowsort
SELECT DISTINCT 74 * - - 39 AS col2
----
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT 2 + + COUNT( * ) + ( - 57 ) * + 77
----
-4386

skipif mysql # not compatible
query I rowsort label-9670
SELECT 2 + + COUNT ( * ) + ( - 57 ) * + 77
----
-4386

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT MIN( DISTINCT - 69 ) + + - 39 + 34 * 89 * + 38 AS col0
----
114880

skipif mysql # not compatible
query I rowsort label-9671
SELECT MIN ( DISTINCT - 69 ) + + - 39 + 34 * 89 * + 38 AS col0
----
114880

query I rowsort
SELECT + 64 + - 56 col1
----
8

query I rowsort
SELECT 68 - + 88
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-9674
SELECT DISTINCT + 7 DIV + - 14 * + - 32 * + + 15
----
0

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT + 7 / + - 14 * + - 32 * + + 15
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9675
SELECT + COUNT( * ) DIV 89 * - 86 DIV + 5 + 83 * - 2 col1
----
-166

skipif mysql # not compatible
query I rowsort label-9675
SELECT + COUNT ( * ) / 89 * - 86 / + 5 + 83 * - 2 col1
----
-166

query I rowsort
SELECT - 12 * 69 + - + 43 AS col0
----
-871

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT COALESCE ( + NULLIF ( - 21, + COUNT( * ) ), - 5 ) * + - 52
----
1092

skipif mysql # not compatible
query I rowsort label-9677
SELECT COALESCE ( + NULLIF ( - 21, + COUNT ( * ) ), - 5 ) * + - 52
----
1092

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9678
SELECT ALL 31 + - - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL 31 + - - CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT 47 + - 7 col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT DISTINCT - + SUM( ALL 57 ) * - CASE 52 WHEN - 80 THEN 80 * + - 41 / - + 32 * - + 38 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT - + SUM ( ALL 57 ) * - CASE 52 WHEN - 80 THEN 80 * + - 41 / - + 32 * - + 38 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9681
SELECT - - 20 * + ( ( 18 ) ) * ( + - CAST( - ( + - 65 ) AS SIGNED ) ) + + COALESCE ( + 2, - 88 ) + - + CASE 93 WHEN 47 * + - 43 + + 58 THEN NULL WHEN - 4 THEN NULL ELSE + 39 - - 49 END + MIN( DISTINCT - 18 ) AS col1
----
-23504

skipif mysql # not compatible
query I rowsort label-9681
SELECT - - 20 * + ( ( 18 ) ) * ( + - CAST ( - ( + - 65 ) AS INTEGER ) ) + + COALESCE ( + 2, - 88 ) + - + CASE 93 WHEN 47 * + - 43 + + 58 THEN NULL WHEN - 4 THEN NULL ELSE + 39 - - 49 END + MIN ( DISTINCT - 18 ) AS col1
----
-23504

query I rowsort
SELECT 8 * + 67
----
536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9683
SELECT ALL - NULLIF ( + 32, 12 * 18 / - COUNT( * ) - - CASE - 13 WHEN + CASE - 16 WHEN 47 THEN - CAST( 3 AS SIGNED ) / - 96 WHEN - 82 + + COUNT( * ) * + 10 + - + 46 THEN NULL END THEN NULL WHEN CAST( NULL AS SIGNED ) + - 51 THEN NULL ELSE - - 95 END ) * + + 43 AS col1
----
-1376

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL - NULLIF ( + 32, 12 * 18 / - COUNT ( * ) - - CASE - 13 WHEN + CASE - 16 WHEN 47 THEN - CAST ( 3 AS INTEGER ) / - 96 WHEN - 82 + + COUNT ( * ) * + 10 + - + 46 THEN NULL END THEN NULL WHEN CAST ( NULL AS INTEGER ) + - 51 THEN NULL ELSE - - 95 END ) * + + 43 AS col1
----
-1376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9684
SELECT - CAST( NULL AS SIGNED ) + - 57 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9684
SELECT - CAST ( NULL AS INTEGER ) + - 57 col2
----
NULL

query I rowsort
SELECT ALL + 22 + - 42 col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT + - COALESCE ( - - 60, - COUNT( * ) )
----
-60

skipif mysql # not compatible
query I rowsort label-9686
SELECT + - COALESCE ( - - 60, - COUNT ( * ) )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-9687
SELECT + COUNT( * ) AS col1, COUNT( * ) * + - COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-9687
SELECT + COUNT ( * ) AS col1, COUNT ( * ) * + - COUNT ( * )
----
1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9688
SELECT DISTINCT - 22 AS col2, - CAST( NULL AS DECIMAL ) AS col0
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-9688
SELECT DISTINCT - 22 AS col2, - CAST ( NULL AS REAL ) AS col0
----
-22
NULL

query I rowsort
SELECT ALL 35 - + 78 + 76
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT ALL - MIN( 43 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL - MIN ( 43 ) AS col2
----
-43

query I rowsort
SELECT DISTINCT 70 - + - 17 + - + 62 + 70 AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT ALL 75 * - - COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL 75 * - - COUNT ( * ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT MIN( DISTINCT - + 29 ) - + - COUNT( * ) + 19 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-9693
SELECT MIN ( DISTINCT - + 29 ) - + - COUNT ( * ) + 19 AS col1
----
-9

query II rowsort
SELECT 99 AS col0, 10 + + 60 + + 22 + 99 * 74 AS col1
----
99
7418

query I rowsort
SELECT 21 * - + 30
----
-630

onlyif mysql # DIV for integer division: 
query II rowsort label-9696
SELECT DISTINCT 11 AS col1, + 6 DIV 82 DIV + - 68
----
11
0

skipif mysql # not compatible
query II rowsort label-9696
SELECT DISTINCT 11 AS col1, + 6 / 82 / + - 68
----
11
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9697
SELECT ALL 62 AS col0, - MAX( + 6 ) AS col2
----
62
-6

skipif mysql # not compatible
query II rowsort label-9697
SELECT ALL 62 AS col0, - MAX ( + 6 ) AS col2
----
62
-6

query I rowsort
SELECT 5 - + 80 AS col2
----
-75

query I rowsort
SELECT ALL - 83 * - 40 AS col0
----
3320

query I rowsort
SELECT DISTINCT 27 + + - 36
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT 21 * + + COUNT( * ) * + + COUNT( * ) * - COUNT( * ) * 74
----
-1554

skipif mysql # not compatible
query I rowsort label-9701
SELECT 21 * + + COUNT ( * ) * + + COUNT ( * ) * - COUNT ( * ) * 74
----
-1554

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT + 39 + + 99 * MAX( 16 )
----
1623

skipif mysql # not compatible
query I rowsort label-9702
SELECT + 39 + + 99 * MAX ( 16 )
----
1623

onlyif mysql # DIV for integer division: 
query I rowsort label-9703
SELECT ( - + 24 ) DIV 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9703
SELECT ( - + 24 ) / 78 AS col0
----
0

query I rowsort
SELECT + 53 + NULLIF ( - + 45, + - 61 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT COUNT( ALL - 97 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9705
SELECT COUNT ( ALL - 97 ) AS col2
----
1

query I rowsort
SELECT - 62 * + 32
----
-1984

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT + NULLIF ( + NULLIF ( COUNT( * ), - COUNT( * ) ), 5 + 58 * - COUNT( * ) - - + ( - 54 ) ) - + 52
----
-51

skipif mysql # not compatible
query I rowsort label-9707
SELECT + NULLIF ( + NULLIF ( COUNT ( * ), - COUNT ( * ) ), 5 + 58 * - COUNT ( * ) - - + ( - 54 ) ) - + 52
----
-51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9708
SELECT - 81, 86 + + CASE + 52 WHEN + 92 * 91 THEN - 87 * + 97 - - CAST( - COUNT( * ) AS DECIMAL ) - + 93 WHEN + ( 73 ) THEN NULL ELSE NULL END - + COUNT( * ) AS col0
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-9708
SELECT - 81, 86 + + CASE + 52 WHEN + 92 * 91 THEN - 87 * + 97 - - CAST ( - COUNT ( * ) AS REAL ) - + 93 WHEN + ( 73 ) THEN NULL ELSE NULL END - + COUNT ( * ) AS col0
----
-81
NULL

query II rowsort
SELECT ALL - + 76 + - - 28 AS col1, + 18 * - - 4
----
-48
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT ALL + 28 + + + CASE - 47 WHEN + - 14 + - 21 * - 60 * 94 THEN + 39 * + 90 WHEN 53 * - 23 / + 60 THEN 72 * - - 43 * - 41 WHEN + 73 - MAX( + 82 ) + + 77 * - 18 * + AVG ( - 76 ) * + 74 + 77 + - 37 THEN NULL WHEN - - 34 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL + 28 + + + CASE - 47 WHEN + - 14 + - 21 * - 60 * 94 THEN + 39 * + 90 WHEN 53 * - 23 / + 60 THEN 72 * - - 43 * - 41 WHEN + 73 - MAX ( + 82 ) + + 77 * - 18 * + AVG ( - 76 ) * + 74 + 77 + - 37 THEN NULL WHEN - - 34 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT ALL 59 * 93 * - 79 - - COUNT( * ) + + 79
----
-433393

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL 59 * 93 * - 79 - - COUNT ( * ) + + 79
----
-433393

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL - - 15 * + NULLIF ( + 88, + 90 + COUNT( * ) ) + SUM( ALL - - ( + 66 ) )
----
1386

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL - - 15 * + NULLIF ( + 88, + 90 + COUNT ( * ) ) + SUM ( ALL - - ( + 66 ) )
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT + - MAX( ALL 64 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-9713
SELECT + - MAX ( ALL 64 ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-9714
SELECT + - 31, + MAX( ALL - 13 ) * 88 * - ( + 28 ) + + 39 + 35 + + + 24 AS col0
----
-31
32130

skipif mysql # not compatible
query II rowsort label-9714
SELECT + - 31, + MAX ( ALL - 13 ) * 88 * - ( + 28 ) + + 39 + 35 + + + 24 AS col0
----
-31
32130

onlyif mysql # aggregate syntax: 
query II rowsort label-9715
SELECT - + 7 * + 32 * - + COUNT( * ) * - 10, COUNT( * ) AS col0
----
-2240
1

skipif mysql # not compatible
query II rowsort label-9715
SELECT - + 7 * + 32 * - + COUNT ( * ) * - 10, COUNT ( * ) AS col0
----
-2240
1

query I rowsort
SELECT ALL - + 21 * - 10 AS col2
----
210

query I rowsort
SELECT DISTINCT + NULLIF ( 28, 28 * - - 26 ) AS col1
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT + 43 * - + 30 - - 40 + + - 13 * - 42 * - 55 + 88 DIV 91 * - 45 AS col1
----
-31280

skipif mysql # not compatible
query I rowsort label-9718
SELECT + 43 * - + 30 - - 40 + + - 13 * - 42 * - 55 + 88 / 91 * - 45 AS col1
----
-31280

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT ALL - 59 * + SUM( - 22 ) * - 13
----
-16874

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL - 59 * + SUM ( - 22 ) * - 13
----
-16874

onlyif mysql # DIV for integer division: 
query I rowsort label-9720
SELECT 86 DIV 88 - 53 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-9720
SELECT 86 / 88 - 53 AS col2
----
-53

query I rowsort
SELECT DISTINCT - 41 * + 28 AS col0
----
-1148

query I rowsort
SELECT ALL + 86 * + + 24
----
2064

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9723
SELECT + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col0, - 89
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-9723
SELECT + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col0, - 89
----
NULL
-89

query I rowsort
SELECT - ( 50 ) + 74 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT - COALESCE ( - 20, + COUNT( + 26 ) ) * - - 47 + - + MIN( DISTINCT 2 ) + - 58 * + - 85 + 26 - + 93 + 76 + + ( 3 )
----
5880

skipif mysql # not compatible
query I rowsort label-9725
SELECT - COALESCE ( - 20, + COUNT ( + 26 ) ) * - - 47 + - + MIN ( DISTINCT 2 ) + - 58 * + - 85 + 26 - + 93 + 76 + + ( 3 )
----
5880

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT - COUNT( * ) + 24 * 56
----
1343

skipif mysql # not compatible
query I rowsort label-9726
SELECT - COUNT ( * ) + 24 * 56
----
1343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9727
SELECT + 28 + MIN( + + 46 ) * - ( COUNT( * ) ) - + + CAST( NULL AS SIGNED ) * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9727
SELECT + 28 + MIN ( + + 46 ) * - ( COUNT ( * ) ) - + + CAST ( NULL AS INTEGER ) * + 38
----
NULL

query II rowsort
SELECT ALL ( - 37 ), + 11 AS col1
----
-37
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT ALL + MAX( - + 19 ) + - 91
----
-110

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL + MAX ( - + 19 ) + - 91
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9730
SELECT - CASE + MAX( ALL - CAST( + + 68 AS SIGNED ) ) WHEN + 99 THEN NULL ELSE - 83 * ( + - 98 ) END AS col1
----
-8134

skipif mysql # not compatible
query I rowsort label-9730
SELECT - CASE + MAX ( ALL - CAST ( + + 68 AS INTEGER ) ) WHEN + 99 THEN NULL ELSE - 83 * ( + - 98 ) END AS col1
----
-8134

query II rowsort
SELECT ALL 86 + 85, 86 AS col0
----
171
86

onlyif mysql # aggregate syntax: 
query II rowsort label-9732
SELECT - COUNT( ALL + 55 ) AS col2, 53
----
-1
53

skipif mysql # not compatible
query II rowsort label-9732
SELECT - COUNT ( ALL + 55 ) AS col2, 53
----
-1
53

query I rowsort
SELECT + 33 + - 51 - 58 AS col1
----
-76

query I rowsort
SELECT + 7 + 43 + - - 22 col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9735
SELECT DISTINCT + CAST( - + 70 AS SIGNED ) + 97 + 37 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-9735
SELECT DISTINCT + CAST ( - + 70 AS INTEGER ) + 97 + 37 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT ALL COUNT( * ) + NULLIF ( - 56, - + 20 ) * + - 2
----
113

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL COUNT ( * ) + NULLIF ( - 56, - + 20 ) * + - 2
----
113

query I rowsort
SELECT + - 35 + + 41
----
6

query I rowsort
SELECT ALL + 97 - + 40 AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9739
SELECT - - 86 * + - 95 AS col1, + 92 + 65 + COALESCE ( - ( - 17 ), + COUNT( * ), 98 + + COUNT( * ) DIV + CAST( - ( + 15 ) AS SIGNED ) + - COUNT( * ) ) * 2 col1
----
-8170
191

skipif mysql # not compatible
query II rowsort label-9739
SELECT - - 86 * + - 95 AS col1, + 92 + 65 + COALESCE ( - ( - 17 ), + COUNT ( * ), 98 + + COUNT ( * ) / + CAST ( - ( + 15 ) AS INTEGER ) + - COUNT ( * ) ) * 2 col1
----
-8170
191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9740
SELECT + 49 + + 75 + + + NULLIF ( + 7, - - 65 / - - ( COUNT( * ) ) + + + CAST( NULL AS SIGNED ) + + 97 ) * 76 * + - 69 - CAST( NULL AS SIGNED ), - COUNT( + - 43 ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-9740
SELECT + 49 + + 75 + + + NULLIF ( + 7, - - 65 / - - ( COUNT ( * ) ) + + + CAST ( NULL AS INTEGER ) + + 97 ) * 76 * + - 69 - CAST ( NULL AS INTEGER ), - COUNT ( + - 43 ) AS col0
----
NULL
-1

query I rowsort
SELECT + - 16 * - + 92
----
1472

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT + 65 * + 9 * - - 14 + - COUNT( * )
----
8189

skipif mysql # not compatible
query I rowsort label-9742
SELECT + 65 * + 9 * - - 14 + - COUNT ( * )
----
8189

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9743
SELECT - - CAST( NULL AS DECIMAL ) + - CAST( NULL AS DECIMAL ) * + 95, + 6 AS col1
----
NULL
6

skipif mysql # not compatible
query II rowsort label-9743
SELECT - - CAST ( NULL AS REAL ) + - CAST ( NULL AS REAL ) * + 95, + 6 AS col1
----
NULL
6

query I rowsort
SELECT DISTINCT + COALESCE ( + + 76, + 42 * 76 )
----
76

query I rowsort
SELECT - 58 * - - 14
----
-812

query I rowsort
SELECT - 64 + + + 74
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT ALL 44 * + + 23 + - COUNT( * ) + - - 18 * + + COUNT( * ) col1
----
1029

skipif mysql # not compatible
query I rowsort label-9747
SELECT ALL 44 * + + 23 + - COUNT ( * ) + - - 18 * + + COUNT ( * ) col1
----
1029

query I rowsort
SELECT ( + + 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT - 80 * 46 * + MAX( 63 ) AS col0
----
-231840

skipif mysql # not compatible
query I rowsort label-9749
SELECT - 80 * 46 * + MAX ( 63 ) AS col0
----
-231840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9750
SELECT DISTINCT - 38 * - + ( + CAST( + 64 AS SIGNED ) )
----
2432

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT - 38 * - + ( + CAST ( + 64 AS INTEGER ) )
----
2432

query I rowsort
SELECT - 57 * + 34
----
-1938

query I rowsort
SELECT - 68 - 91 AS col1
----
-159

query I rowsort
SELECT ALL - 87 * 50 + - 88 AS col2
----
-4438

query II rowsort
SELECT + 5 * - - 84 * 34 AS col2, 85 AS col2
----
14280
85

query I rowsort
SELECT ALL - + 12 * 25 * 38 + - 34 AS col2
----
-11434

query I rowsort
SELECT DISTINCT + - 92 - + + 48
----
-140

onlyif mysql # aggregate syntax: 
query II rowsort label-9757
SELECT 11, COUNT( * ) + + 42 * - 48 AS col2
----
11
-2015

skipif mysql # not compatible
query II rowsort label-9757
SELECT 11, COUNT ( * ) + + 42 * - 48 AS col2
----
11
-2015

query I rowsort
SELECT + 85 - 36 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT ALL + 26 - + MAX( ALL + 98 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL + 26 - + MAX ( ALL + 98 ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT 94 + COUNT( * ) - + + 58 col1
----
37

skipif mysql # not compatible
query I rowsort label-9760
SELECT 94 + COUNT ( * ) - + + 58 col1
----
37

onlyif mysql # DIV for integer division: 
query II rowsort label-9761
SELECT - 7 * 3 DIV 69 * + 77, 48 * - 51 AS col1
----
0
-2448

skipif mysql # not compatible
query II rowsort label-9761
SELECT - 7 * 3 / 69 * + 77, 48 * - 51 AS col1
----
0
-2448

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9762
SELECT ALL 77 * + 98 * - - CAST( + 76 AS SIGNED ), - 89 AS col0
----
573496
-89

skipif mysql # not compatible
query II rowsort label-9762
SELECT ALL 77 * + 98 * - - CAST ( + 76 AS INTEGER ), - 89 AS col0
----
573496
-89

query II rowsort
SELECT DISTINCT 44 col2, + 32 + - 29
----
44
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT - 51 + 44 * COALESCE ( - CASE - + 44 WHEN 54 THEN 8 * - 10 + - - 62 * + 22 END, + COUNT( * ) + - 48 ) AS col1
----
-2119

skipif mysql # not compatible
query I rowsort label-9764
SELECT - 51 + 44 * COALESCE ( - CASE - + 44 WHEN 54 THEN 8 * - 10 + - - 62 * + 22 END, + COUNT ( * ) + - 48 ) AS col1
----
-2119

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT - SUM( DISTINCT - 74 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-9765
SELECT - SUM ( DISTINCT - 74 ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9766
SELECT ALL 28 AS col1, - 59 * - CAST( NULL AS SIGNED )
----
28
NULL

skipif mysql # not compatible
query II rowsort label-9766
SELECT ALL 28 AS col1, - 59 * - CAST ( NULL AS INTEGER )
----
28
NULL

query I rowsort
SELECT + 74 * - 63
----
-4662

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT ALL + + COUNT( * ) * - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL + + COUNT ( * ) * - COUNT ( * ) AS col1
----
-1

query II rowsort
SELECT - 89 AS col1, 87 + - 28 + 44 AS col0
----
-89
103

query II rowsort
SELECT ALL COALESCE ( + - 5, + 55 ), ( ( + + 71 ) ) AS col2
----
-5
71

query II rowsort
SELECT ALL 34, + 71 AS col1
----
34
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT - COUNT( * ) * - 83 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9772
SELECT - COUNT ( * ) * - 83 AS col0
----
83

query I rowsort
SELECT ALL + - 29 * 28
----
-812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9774
SELECT DISTINCT 18 / - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9774
SELECT DISTINCT 18 / - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9775
SELECT 99 DIV NULLIF ( + 77, - 44 * - - 13 - + 85 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9775
SELECT 99 / NULLIF ( + 77, - 44 * - - 13 - + 85 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9776
SELECT ( 35 ) + + COUNT( * ) * - 38 DIV - 59 - + 24 + + 63 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-9776
SELECT ( 35 ) + + COUNT ( * ) * - 38 / - 59 - + 24 + + 63 AS col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9777
SELECT ALL - 24 + - - 52 + - 25 * - COALESCE ( CAST( + COALESCE ( 32, - COUNT( * ) ) AS SIGNED ), COALESCE ( COUNT( * ), + + COUNT( + NULLIF ( + 72, + 14 ) ) ) + + - 22 + + 65 * CAST( - + 7 AS SIGNED ) ) * + ( - 0 ) * - 42 * + - COUNT( * ) + + - 77 * - - 3
----
-203

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL - 24 + - - 52 + - 25 * - COALESCE ( CAST ( + COALESCE ( 32, - COUNT ( * ) ) AS INTEGER ), COALESCE ( COUNT ( * ), + + COUNT ( + NULLIF ( + 72, + 14 ) ) ) + + - 22 + + 65 * CAST ( - + 7 AS INTEGER ) ) * + ( - 0 ) * - 42 * + - COUNT ( * ) + + - 77 * - - 3
----
-203

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9778
SELECT DISTINCT 75 + - CAST( + - 39 AS SIGNED ) + 20
----
134

skipif mysql # not compatible
query I rowsort label-9778
SELECT DISTINCT 75 + - CAST ( + - 39 AS INTEGER ) + 20
----
134

query II rowsort
SELECT ALL - ( 92 ) + - - 62 * + - 53 AS col2, + 6 AS col2
----
-3378
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT 4 + + COUNT( * ) * - 79 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-9780
SELECT 4 + + COUNT ( * ) * - 79 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT 14 + - + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-9781
SELECT 14 + - + COUNT ( * )
----
13

query I rowsort
SELECT 49 - - - 6 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT 20 * + 42 * - COUNT( * ) col1
----
-840

skipif mysql # not compatible
query I rowsort label-9783
SELECT 20 * + 42 * - COUNT ( * ) col1
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT ALL - CASE - 46 WHEN - 35 THEN + AVG ( DISTINCT 47 ) - + 67 + + - SUM( ALL + ( - 99 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL - CASE - 46 WHEN - 35 THEN + AVG ( DISTINCT 47 ) - + 67 + + - SUM ( ALL + ( - 99 ) ) END
----
NULL

query I rowsort
SELECT DISTINCT + + 40 - 20 * + 30 col1
----
-560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9786
SELECT ALL + COUNT( * ) * + 88 DIV 11
----
8

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL + COUNT ( * ) * + 88 / 11
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT - MAX( DISTINCT + - 59 ) + + 99 + 42 AS col1
----
200

skipif mysql # not compatible
query I rowsort label-9787
SELECT - MAX ( DISTINCT + - 59 ) + + 99 + 42 AS col1
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT ALL + 30 * - - ( + + NULLIF ( - - NULLIF ( - + MAX( DISTINCT 23 ), + - 19 ), + 25 ) )
----
-690

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL + 30 * - - ( + + NULLIF ( - - NULLIF ( - + MAX ( DISTINCT 23 ), + - 19 ), + 25 ) )
----
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT DISTINCT - NULLIF ( - 60, - - 92 / COUNT( * ) * 14 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-9789
SELECT DISTINCT - NULLIF ( - 60, - - 92 / COUNT ( * ) * 14 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT DISTINCT + MIN( DISTINCT 36 ) * + 84
----
3024

skipif mysql # not compatible
query I rowsort label-9790
SELECT DISTINCT + MIN ( DISTINCT 36 ) * + 84
----
3024

query I rowsort
SELECT ALL - 38 * - + 50 AS col1
----
1900

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9792
SELECT - COUNT( * ) DIV - 74 AS col1, 75 col1
----
0
75

skipif mysql # not compatible
query II rowsort label-9792
SELECT - COUNT ( * ) / - 74 AS col1, 75 col1
----
0
75

query I rowsort
SELECT + 5 + + - 47 + 73
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT COUNT( * ) + - 49 * - + COUNT( * ) + + 55 AS col2
----
105

skipif mysql # not compatible
query I rowsort label-9794
SELECT COUNT ( * ) + - 49 * - + COUNT ( * ) + + 55 AS col2
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9795
SELECT - + CASE - 72 WHEN ( + + NULLIF ( 77, + CAST( + 13 AS SIGNED ) ) ) * 47 + - - 69 THEN + 45 * + - 97 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT - + CASE - 72 WHEN ( + + NULLIF ( 77, + CAST ( + 13 AS INTEGER ) ) ) * 47 + - - 69 THEN + 45 * + - 97 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT CASE 10 WHEN + 54 THEN + 0 * + - 20 + 57 END + - 71
----
NULL

query I rowsort
SELECT ALL 11 * 69
----
759

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT - CASE + - 93 WHEN + 78 * + 3 THEN + 14 END + COUNT( * ) - + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9798
SELECT - CASE + - 93 WHEN + 78 * + 3 THEN + 14 END + COUNT ( * ) - + - 95
----
NULL

query I rowsort
SELECT + 47 + + 56 AS col1
----
103

query I rowsort
SELECT 6 + 39 * 17
----
669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9801
SELECT MAX( DISTINCT CAST( - 81 AS SIGNED ) ) DIV + 77 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9801
SELECT MAX ( DISTINCT CAST ( - 81 AS INTEGER ) ) / + 77 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9802
SELECT - 92 DIV - 91 + + 97
----
98

skipif mysql # not compatible
query I rowsort label-9802
SELECT - 92 / - 91 + + 97
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT ALL 98 * - COALESCE ( 89, - COUNT( * ) + 94 ) + 39 AS col0
----
-8683

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL 98 * - COALESCE ( 89, - COUNT ( * ) + 94 ) + 39 AS col0
----
-8683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9804
SELECT ALL + 25 * 97 + + - CASE + + 48 WHEN + NULLIF ( CAST( NULL AS SIGNED ), 20 ) THEN + - 2 * + ( - 23 ) ELSE NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL + 25 * 97 + + - CASE + + 48 WHEN + NULLIF ( CAST ( NULL AS INTEGER ), 20 ) THEN + - 2 * + ( - 23 ) ELSE NULL END * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9805
SELECT - 29 * CAST( NULL AS SIGNED ) + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9805
SELECT - 29 * CAST ( NULL AS INTEGER ) + 3 AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 47, + 91 AS col2
----
-47
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT + MAX( DISTINCT - 77 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-9807
SELECT + MAX ( DISTINCT - 77 ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT ALL + COUNT( * ) * - 0 * + - 90 * + + 78 + + 86 + - - 95 AS col0
----
181

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL + COUNT ( * ) * - 0 * + - 90 * + + 78 + + 86 + - - 95 AS col0
----
181

onlyif mysql # DIV for integer division: 
query I rowsort label-9809
SELECT 95 DIV - - 26 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9809
SELECT 95 / - - 26 AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9810
SELECT DISTINCT + 15 * - - 65 - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT + 15 * - - 65 - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT 66 * + 72 + - ( NULLIF ( - - 4, 10 * COALESCE ( 69, - COUNT( * ) ) ) ) AS col2
----
4748

skipif mysql # not compatible
query I rowsort label-9811
SELECT 66 * + 72 + - ( NULLIF ( - - 4, 10 * COALESCE ( 69, - COUNT ( * ) ) ) ) AS col2
----
4748

query I rowsort
SELECT DISTINCT 62 - 53
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9813
SELECT ALL COALESCE ( + 86, - 84 ) * + + SUM( + - 65 ) - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL COALESCE ( + 86, - 84 ) * + + SUM ( + - 65 ) - + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT + NULLIF ( COUNT( * ), - 79 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9814
SELECT + NULLIF ( COUNT ( * ), - 79 ) AS col0
----
1

query I rowsort
SELECT ALL 97 - 59 AS col0
----
38

query I rowsort
SELECT DISTINCT ( 21 ) * - 51 AS col2
----
-1071

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT ALL + COUNT( DISTINCT - 70 )
----
1

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL + COUNT ( DISTINCT - 70 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT + 55 - 85 * COUNT( * ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9818
SELECT + 55 - 85 * COUNT ( * ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT - 71 * + 79 - - COUNT( - 81 )
----
-5608

skipif mysql # not compatible
query I rowsort label-9819
SELECT - 71 * + 79 - - COUNT ( - 81 )
----
-5608

query I rowsort
SELECT DISTINCT + 13 * + 85
----
1105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9821
SELECT ALL NULLIF ( - MAX( ALL 27 ), CAST( NULL AS SIGNED ) * 79 + + 70 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL NULLIF ( - MAX ( ALL 27 ), CAST ( NULL AS INTEGER ) * 79 + + 70 ) AS col1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-9822
SELECT ALL 7 DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL 7 / 44
----
0

query I rowsort
SELECT DISTINCT - 13 * 43
----
-559

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9824
SELECT ALL + 59 + + COUNT( 65 ) DIV NULLIF ( 77 + + COUNT( * ), - 66 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL + 59 + + COUNT ( 65 ) / NULLIF ( 77 + + COUNT ( * ), - 66 ) AS col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9825
SELECT - 71 DIV 23 col0
----
-3

skipif mysql # not compatible
query I rowsort label-9825
SELECT - 71 / 23 col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT ALL - 96 + + SUM( DISTINCT + 13 ) * - COALESCE ( 93 - - COUNT( * ), 48 ) AS col1
----
-1318

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL - 96 + + SUM ( DISTINCT + 13 ) * - COALESCE ( 93 - - COUNT ( * ), 48 ) AS col1
----
-1318

query I rowsort
SELECT - 83 * + 31 col1
----
-2573

query I rowsort
SELECT - 65 + 5 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT DISTINCT + COUNT( * ) + 58 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9829
SELECT DISTINCT + COUNT ( * ) + 58 AS col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9830
SELECT + 41 DIV - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-9830
SELECT + 41 / - COUNT ( * )
----
-41

query I rowsort
SELECT ALL + 96 + 82 AS col0
----
178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9832
SELECT - CAST( NULL AS SIGNED ) * ( 72 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9832
SELECT - CAST ( NULL AS INTEGER ) * ( 72 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT DISTINCT + 24 + 8 * COUNT( ALL 12 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9833
SELECT DISTINCT + 24 + 8 * COUNT ( ALL 12 ) AS col0
----
32

query I rowsort
SELECT ALL NULLIF ( + 42, 27 - 58 * + 60 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9835
SELECT ALL CASE 43 WHEN + 29 THEN NULL WHEN - 29 + COUNT( ALL 8 ) * + 90 THEN CAST( NULL AS DECIMAL ) WHEN AVG ( 86 ) - + COALESCE ( + CAST( + ( 67 ) AS DECIMAL ), - 69 * - 53, 85 ) / COUNT( * ) THEN 57 / ( + 43 * - COUNT( ALL ( - 40 ) * - 65 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL CASE 43 WHEN + 29 THEN NULL WHEN - 29 + COUNT ( ALL 8 ) * + 90 THEN CAST ( NULL AS REAL ) WHEN AVG ( 86 ) - + COALESCE ( + CAST ( + ( 67 ) AS REAL ), - 69 * - 53, 85 ) / COUNT ( * ) THEN 57 / ( + 43 * - COUNT ( ALL ( - 40 ) * - 65 ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9836
SELECT ALL + CAST( 54 AS SIGNED ) DIV 54 + + 67
----
68

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL + CAST ( 54 AS INTEGER ) / 54 + + 67
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9837
SELECT + CASE COUNT( * ) WHEN + 62 THEN NULL ELSE + 4 END DIV COUNT( * ) + + 55 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9837
SELECT + CASE COUNT ( * ) WHEN + 62 THEN NULL ELSE + 4 END / COUNT ( * ) + + 55 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT ALL + SUM( 37 )
----
37

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL + SUM ( 37 )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9839
SELECT + NULLIF ( 3, CAST( NULL AS SIGNED ) - - 21 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9839
SELECT + NULLIF ( 3, CAST ( NULL AS INTEGER ) - - 21 ) AS col0
----
3

query I rowsort
SELECT - 45 + + 7 AS col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9841
SELECT + 51 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9841
SELECT + 51 * - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL + 88 * 90 - 78
----
7842

query I rowsort
SELECT + 98 * 43
----
4214

query I rowsort
SELECT ALL - 62 * - 63 AS col2
----
3906

query I rowsort
SELECT ALL + ( 36 ) col1
----
36

query I rowsort
SELECT + 91 + - 19 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT + 68 + 52 * - COALESCE ( COUNT( * ), 64 - - 70 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-9847
SELECT + 68 + 52 * - COALESCE ( COUNT ( * ), 64 - - 70 ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT COUNT( * ) * 61 + - MAX( 35 )
----
26

skipif mysql # not compatible
query I rowsort label-9848
SELECT COUNT ( * ) * 61 + - MAX ( 35 )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9849
SELECT + - NULLIF ( MAX( ALL - 58 ), + COUNT( * ) - + COUNT( * ) ) DIV 40
----
1

skipif mysql # not compatible
query I rowsort label-9849
SELECT + - NULLIF ( MAX ( ALL - 58 ), + COUNT ( * ) - + COUNT ( * ) ) / 40
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT - COUNT( * ) * COUNT( * ) + - 41 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-9850
SELECT - COUNT ( * ) * COUNT ( * ) + - 41 AS col0
----
-42

query I rowsort
SELECT + - 58 + + 8
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9852
SELECT ( CASE + AVG ( DISTINCT 45 ) WHEN + COUNT( * ) THEN NULL ELSE 13 END ) * + 98 - COALESCE ( 21, 40, COALESCE ( 23, 13, - 43 ), + 83 + CAST( NULL AS SIGNED ) ) AS col1
----
1253

skipif mysql # not compatible
query I rowsort label-9852
SELECT ( CASE + AVG ( DISTINCT 45 ) WHEN + COUNT ( * ) THEN NULL ELSE 13 END ) * + 98 - COALESCE ( 21, 40, COALESCE ( 23, 13, - 43 ), + 83 + CAST ( NULL AS INTEGER ) ) AS col1
----
1253

query I rowsort
SELECT ALL 43 * 32
----
1376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9854
SELECT + NULLIF ( + 16, COUNT( * ) ) DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9854
SELECT + NULLIF ( + 16, COUNT ( * ) ) / + 82 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT - - COALESCE ( 53, + 10 + MIN( + 97 + - 94 * + 86 ), 96 - 8, 97 ) * 42 + 53 * 73
----
6095

skipif mysql # not compatible
query I rowsort label-9855
SELECT - - COALESCE ( 53, + 10 + MIN ( + 97 + - 94 * + 86 ), 96 - 8, 97 ) * 42 + 53 * 73
----
6095

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT - SUM( 38 ) + + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-9856
SELECT - SUM ( 38 ) + + COUNT ( * )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9857
SELECT DISTINCT - COALESCE ( 32, - SUM( DISTINCT + 38 ) + + CAST( NULL AS SIGNED ) DIV + 82, + 16 ) DIV - 6 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-9857
SELECT DISTINCT - COALESCE ( 32, - SUM ( DISTINCT + 38 ) + + CAST ( NULL AS INTEGER ) / + 82, + 16 ) / - 6 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT DISTINCT COUNT( * ) * 45 + NULLIF ( - 40, 65 )
----
5

skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT COUNT ( * ) * 45 + NULLIF ( - 40, 65 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9859
SELECT + COUNT( * ) * 70 + - 30 * CAST( 20 AS SIGNED )
----
-530

skipif mysql # not compatible
query I rowsort label-9859
SELECT + COUNT ( * ) * 70 + - 30 * CAST ( 20 AS INTEGER )
----
-530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9860
SELECT DISTINCT 68 * 95 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9860
SELECT DISTINCT 68 * 95 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 17 + NULLIF ( + 17, + 36 * - 61 + 40 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT + - COUNT( * ) * CASE - 1 + ( 51 ) * 84 WHEN - COUNT( + 21 ) THEN + 24 / - 15 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9862
SELECT + - COUNT ( * ) * CASE - 1 + ( 51 ) * 84 WHEN - COUNT ( + 21 ) THEN + 24 / - 15 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT ALL - 1 * + COUNT( DISTINCT 50 ) + - 45 * - 28 AS col0
----
1259

skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL - 1 * + COUNT ( DISTINCT 50 ) + - 45 * - 28 AS col0
----
1259

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ALL 56 * - MIN( ALL - 43 ) + - 11 AS col0
----
2397

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL 56 * - MIN ( ALL - 43 ) + - 11 AS col0
----
2397

query I rowsort
SELECT + 15 + 91 col2
----
106

query I rowsort
SELECT + 29 + 76
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9867
SELECT - CAST( NULL AS SIGNED ) + - 86 * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9867
SELECT - CAST ( NULL AS INTEGER ) + - 86 * 60
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9868
SELECT DISTINCT - COUNT( * ) DIV - 26
----
0

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT - COUNT ( * ) / - 26
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9869
SELECT DISTINCT + NULLIF ( + CAST( NULL AS SIGNED ), + COUNT( 95 ) * - CASE - 62 + - 80 WHEN + COALESCE ( - ( COUNT( * ) ), + 7 ) + COUNT( * ) THEN 32 WHEN + COALESCE ( MIN( ALL - 12 ), - CASE COALESCE ( 0, - COUNT( * ) * + 88 ) WHEN 54 THEN + 6 - 31 ELSE COALESCE ( 81, - 86 ) * + 81 END / - COALESCE ( 35 * + ( - NULLIF ( 80, COALESCE ( + 55, CASE 80 WHEN + 48 THEN 85 END, - 17 + + SUM( - 84 ) * - COUNT( * ) ) * COUNT( * ) ) / ( 69 ) ) + - 47 * SUM( DISTINCT 31 ), + 97 ) ) THEN + 42 * + CAST( NULL AS SIGNED ) WHEN - 1 THEN COUNT( * ) + ( - 74 ) ELSE ( + 31 ) + - 37 * 44 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT + NULLIF ( + CAST ( NULL AS INTEGER ), + COUNT ( 95 ) * - CASE - 62 + - 80 WHEN + COALESCE ( - ( COUNT ( * ) ), + 7 ) + COUNT ( * ) THEN 32 WHEN + COALESCE ( MIN ( ALL - 12 ), - CASE COALESCE ( 0, - COUNT ( * ) * + 88 ) WHEN 54 THEN + 6 - 31 ELSE COALESCE ( 81, - 86 ) * + 81 END / - COALESCE ( 35 * + ( - NULLIF ( 80, COALESCE ( + 55, CASE 80 WHEN + 48 THEN 85 END, - 17 + + SUM ( - 84 ) * - COUNT ( * ) ) * COUNT ( * ) ) / ( 69 ) ) + - 47 * SUM ( DISTINCT 31 ), + 97 ) ) THEN + 42 * + CAST ( NULL AS INTEGER ) WHEN - 1 THEN COUNT ( * ) + ( - 74 ) ELSE ( + 31 ) + - 37 * 44 END )
----
NULL

query I rowsort
SELECT - 29 + - 30 + 83
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9871
SELECT DISTINCT 35 + MIN( 23 ) DIV 23 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT 35 + MIN ( 23 ) / 23 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT ALL MAX( ALL + - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL MAX ( ALL + - 42 )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9873
SELECT DISTINCT 52 DIV - 7 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-9873
SELECT DISTINCT 52 / - 7 AS col0
----
-7

query I rowsort
SELECT DISTINCT + 92 + - + 39
----
53

query I rowsort
SELECT DISTINCT - 47 - - + 76 * - 27 AS col1
----
-2099

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT + COUNT( * ) - + 45 + + 40 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9876
SELECT + COUNT ( * ) - + 45 + + 40 AS col1
----
-4

query I rowsort
SELECT - 34 * - - 78 col0
----
-2652

query I rowsort
SELECT - 51 + 68 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT - COUNT( * ) * 47 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-9879
SELECT - COUNT ( * ) * 47 AS col2
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9880
SELECT ALL CAST( 14 AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL CAST ( 14 AS INTEGER )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9881
SELECT DISTINCT + NULLIF ( - + 57, 72 + CAST( NULL AS SIGNED ) ) - 50
----
-107

skipif mysql # not compatible
query I rowsort label-9881
SELECT DISTINCT + NULLIF ( - + 57, 72 + CAST ( NULL AS INTEGER ) ) - 50
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9882
SELECT 24 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9882
SELECT 24 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT 30 + + + COUNT( * ) + 10 * 47
----
501

skipif mysql # not compatible
query I rowsort label-9883
SELECT 30 + + + COUNT ( * ) + 10 * 47
----
501

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT ALL - MAX( + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-9884
SELECT ALL - MAX ( + 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT DISTINCT - MAX( + 56 ) col2
----
-56

skipif mysql # not compatible
query I rowsort label-9885
SELECT DISTINCT - MAX ( + 56 ) col2
----
-56

query I rowsort
SELECT ALL 3 * + 22 * 78
----
5148

query I rowsort
SELECT 23 * 41 * 67
----
63181

query I rowsort
SELECT 59 * 91 AS col0
----
5369

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9889
SELECT ALL - + 71 * + - MIN( ALL - 15 ) + 10 DIV 93
----
-1065

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL - + 71 * + - MIN ( ALL - 15 ) + 10 / 93
----
-1065

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9890
SELECT ALL - - COALESCE ( - CAST( - COUNT( * ) AS SIGNED ), 13 DIV CAST( - 27 AS SIGNED ), COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL - - COALESCE ( - CAST ( - COUNT ( * ) AS INTEGER ), 13 / CAST ( - 27 AS INTEGER ), COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9891
SELECT + + CAST( NULL AS SIGNED ) * 16 + + 74 * + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9891
SELECT + + CAST ( NULL AS INTEGER ) * 16 + + 74 * + 57 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9892
SELECT ALL 32 * - 48 DIV COUNT( * ) AS col1
----
-1536

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL 32 * - 48 / COUNT ( * ) AS col1
----
-1536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9893
SELECT - 2 * 0 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT - 2 * 0 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 7 + - - 3
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9895
SELECT ALL - - CAST( + CAST( 77 AS SIGNED ) AS SIGNED ) * COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL - - CAST ( + CAST ( 77 AS INTEGER ) AS INTEGER ) * COUNT ( * ) AS col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9896
SELECT ALL - NULLIF ( CAST( NULL AS SIGNED ), 85 ) + - 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL - NULLIF ( CAST ( NULL AS INTEGER ), 85 ) + - 71 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT DISTINCT + - 66 + COUNT( * ) - 67 AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT + - 66 + COUNT ( * ) - 67 AS col1
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-9898
SELECT ALL ( - 10 ) DIV 14 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL ( - 10 ) / 14 AS col1
----
0

query I rowsort
SELECT DISTINCT - ( 72 ) + + 81 AS col1
----
9

query I rowsort
SELECT ALL 21 + 58
----
79

query I rowsort
SELECT 63 - 53 col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT COUNT( * ) * + 46 col1
----
46

skipif mysql # not compatible
query I rowsort label-9902
SELECT COUNT ( * ) * + 46 col1
----
46

query I rowsort
SELECT ALL 43 / - CASE 63 WHEN 10 THEN + 25 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 48 + - - 48 AS col2
----
96

query I rowsort
SELECT ( + 32 ) + 17 AS col0
----
49

query I rowsort
SELECT DISTINCT + 83 + + 64 * 72 AS col0
----
4691

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT 86 * + 16 * ( + MIN( + 86 ) )
----
118336

skipif mysql # not compatible
query I rowsort label-9907
SELECT 86 * + 16 * ( + MIN ( + 86 ) )
----
118336

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT ALL - 14 * MAX( ALL + 55 ) * COUNT( * ) col2
----
-770

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL - 14 * MAX ( ALL + 55 ) * COUNT ( * ) col2
----
-770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9909
SELECT ALL + CAST( 15 AS SIGNED ) + + 93
----
108

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL + CAST ( 15 AS INTEGER ) + + 93
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT COALESCE ( + ( + 8 ), - ( - 28 ) * 70 ) - COUNT( * ) * 47 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-9910
SELECT COALESCE ( + ( + 8 ), - ( - 28 ) * 70 ) - COUNT ( * ) * 47 AS col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9911
SELECT ALL + 39 * + 45 - - COUNT( * ) DIV 29
----
1755

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL + 39 * + 45 - - COUNT ( * ) / 29
----
1755

query I rowsort
SELECT DISTINCT 11 - NULLIF ( 75, NULLIF ( 72, + 99 * 19 ) )
----
-64

query II rowsort
SELECT ALL 79 AS col0, - 15 * - 80 col1
----
79
1200

query I rowsort
SELECT 89 * - - 59 AS col1
----
5251

query I rowsort
SELECT ( - - 3 ) + NULLIF ( ( 85 ), 72 + + 14 * 89 ) * + 91 AS col2
----
7738

onlyif mysql # aggregate syntax: 
query II rowsort label-9916
SELECT 8 AS col1, COUNT( * )
----
8
1

skipif mysql # not compatible
query II rowsort label-9916
SELECT 8 AS col1, COUNT ( * )
----
8
1

query I rowsort
SELECT 43 - + 53
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT COUNT( * ) * - 48 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-9918
SELECT COUNT ( * ) * - 48 AS col1
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9919
SELECT ALL - COUNT( * ) DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL - COUNT ( * ) / + 74
----
0

query II rowsort
SELECT 89 AS col1, + 96 AS col0
----
89
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9921
SELECT COALESCE ( + 41, + 2 ) DIV - ( 8 * 73 + COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9921
SELECT COALESCE ( + 41, + 2 ) / - ( 8 * 73 + COUNT ( * ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9922
SELECT DISTINCT 4 AS col1, + COUNT( * ) * + 72 AS col0
----
4
72

skipif mysql # not compatible
query II rowsort label-9922
SELECT DISTINCT 4 AS col1, + COUNT ( * ) * + 72 AS col0
----
4
72

query II rowsort
SELECT ALL - 85 AS col0, 36 * + 86
----
-85
3096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9924
SELECT 35 DIV COUNT( * ) + - + 86
----
-51

skipif mysql # not compatible
query I rowsort label-9924
SELECT 35 / COUNT ( * ) + - + 86
----
-51

query II rowsort
SELECT DISTINCT - 91 AS col1, + 17 * + 45
----
-91
765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9926
SELECT ( - 61 ) + 15 DIV - NULLIF ( + SUM( 14 ) + + ( - COUNT( DISTINCT - 65 ) ), - 24 * 70 )
----
-62

skipif mysql # not compatible
query I rowsort label-9926
SELECT ( - 61 ) + 15 / - NULLIF ( + SUM ( 14 ) + + ( - COUNT ( DISTINCT - 65 ) ), - 24 * 70 )
----
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-9927
SELECT + 67 AS col1, 60 DIV + 19
----
67
3

skipif mysql # not compatible
query II rowsort label-9927
SELECT + 67 AS col1, 60 / + 19
----
67
3

query I rowsort
SELECT 68 * 30
----
2040

query I rowsort
SELECT 8 * - 90 + + + 40 col2
----
-680

query I rowsort
SELECT ALL + 30 + - 47 * + 31 * + 5 AS col0
----
-7255

query I rowsort
SELECT ALL - 61 + + 18 * - - 93
----
1613

onlyif mysql # DIV for integer division: 
query I rowsort label-9932
SELECT - 60 DIV 99 * 96 * 69 + + 91
----
91

skipif mysql # not compatible
query I rowsort label-9932
SELECT - 60 / 99 * 96 * 69 + + 91
----
91

query I rowsort
SELECT DISTINCT - ( + 70 ) + - + 74 AS col2
----
-144

query I rowsort
SELECT ALL - + 93 * + + NULLIF ( + - 85, 87 ) - 89
----
7816

query II rowsort
SELECT + 3, - 27 AS col1
----
3
-27

query II rowsort
SELECT ALL - 73, 40 * + - ( 73 ) AS col1
----
-73
-2920

query I rowsort
SELECT 31 + + + 10 + - + 32
----
9

query I rowsort
SELECT + CASE - 69 WHEN + 42 THEN 22 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT ALL - NULLIF ( COALESCE ( COUNT( * ), 27, ( 23 ) ), MIN( - 9 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL - NULLIF ( COALESCE ( COUNT ( * ), 27, ( 23 ) ), MIN ( - 9 ) )
----
-1

query I rowsort
SELECT ALL + - 1 * 10
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT ALL - - SUM( + 61 ) - - 2 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL - - SUM ( + 61 ) - - 2 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT DISTINCT - CASE + 48 WHEN - 91 * - 2 + - 54 THEN - MIN( 56 ) + + 49 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT - CASE + 48 WHEN - 91 * - 2 + - 54 THEN - MIN ( 56 ) + + 49 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT 47 + - 7 - - - COUNT( + NULLIF ( 97, 55 ) ) + - 62 * 19 * 32 AS col0
----
-37657

skipif mysql # not compatible
query I rowsort label-9943
SELECT 47 + - 7 - - - COUNT ( + NULLIF ( 97, 55 ) ) + - 62 * 19 * 32 AS col0
----
-37657

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9944
SELECT ALL - + 96 - - + CAST( NULL AS SIGNED ) + + 68 - 89 * SUM( DISTINCT 58 * 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL - + 96 - - + CAST ( NULL AS INTEGER ) + + 68 - 89 * SUM ( DISTINCT 58 * 76 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9945
SELECT 89 DIV - 1
----
-89

skipif mysql # not compatible
query I rowsort label-9945
SELECT 89 / - 1
----
-89

query I rowsort
SELECT COALESCE ( - 6, - 71 + - 48 ) * 33
----
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9947
SELECT ALL + COUNT( * ) DIV + + 15
----
0

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL + COUNT ( * ) / + + 15
----
0

query I rowsort
SELECT 95 + + + 15 AS col2
----
110

query I rowsort
SELECT 98 * 63
----
6174

query I rowsort
SELECT 5 + - + 68
----
-63

query I rowsort
SELECT ( - 0 ) + - + 98
----
-98

query I rowsort
SELECT + 22 * + ( - 31 ) AS col2
----
-682

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9953
SELECT ALL CAST( NULL AS SIGNED ) * - NULLIF ( 80, + 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL CAST ( NULL AS INTEGER ) * - NULLIF ( 80, + 43 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT ALL MIN( ALL + - ( CASE + 39 WHEN 27 THEN - 48 ELSE 64 END ) ) * COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL MIN ( ALL + - ( CASE + 39 WHEN 27 THEN - 48 ELSE 64 END ) ) * COUNT ( * )
----
-64

query I rowsort
SELECT ALL COALESCE ( 58, - + 4 + + ( 9 ) )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT DISTINCT + COUNT( * ) * + + 24
----
24

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT + COUNT ( * ) * + + 24
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT DISTINCT COUNT( * ) * + + 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9957
SELECT DISTINCT COUNT ( * ) * + + 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9958
SELECT ALL MIN( CAST( NULL AS SIGNED ) ) * - ( SUM( + 21 ) ) - MAX( - ( 61 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) ) * - ( SUM ( + 21 ) ) - MAX ( - ( 61 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT ALL 51 + - - 10 * + MAX( DISTINCT + - 12 ) + ( + COUNT( ( ( 2 ) ) ) )
----
-68

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL 51 + - - 10 * + MAX ( DISTINCT + - 12 ) + ( + COUNT ( ( ( 2 ) ) ) )
----
-68

query I rowsort
SELECT + 62 + - 34 AS col1
----
28

query I rowsort
SELECT + 33 * + 4 col0
----
132

query I rowsort
SELECT - NULLIF ( + 32, - 22 ) + 58
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT ALL 44 + COUNT( * ) + + - 8 + - ( 54 )
----
-17

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL 44 + COUNT ( * ) + + - 8 + - ( 54 )
----
-17

query I rowsort
SELECT ( - - 38 ) col2
----
38

query I rowsort
SELECT ALL 12 * + 39 + - 4 AS col1
----
464

query I rowsort
SELECT DISTINCT + 1 * - - 1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ALL + + COUNT( * ) * + 76 * + + 52 * + 68 + 48
----
268784

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL + + COUNT ( * ) * + 76 * + + 52 * + 68 + 48
----
268784

query I rowsort
SELECT DISTINCT + 68 * 76 * 19 + + 62 * 91
----
103834

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT ALL - 25 * - 57 * 81 + 85 + ( 14 - COUNT( * ) )
----
115523

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL - 25 * - 57 * 81 + 85 + ( 14 - COUNT ( * ) )
----
115523

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT DISTINCT 80 * + 17 * + 71 + - MIN( + 28 ) * - 72 AS col0
----
98576

skipif mysql # not compatible
query I rowsort label-9970
SELECT DISTINCT 80 * + 17 * + 71 + - MIN ( + 28 ) * - 72 AS col0
----
98576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9971
SELECT - 20 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9971
SELECT - 20 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT - + COUNT( * ) * + 41 * + MAX( - - 54 ) + 20
----
-2194

skipif mysql # not compatible
query I rowsort label-9972
SELECT - + COUNT ( * ) * + 41 * + MAX ( - - 54 ) + 20
----
-2194

onlyif mysql # aggregate syntax: 
query II rowsort label-9973
SELECT DISTINCT + COUNT( * ) * 69, - 61 AS col1
----
69
-61

skipif mysql # not compatible
query II rowsort label-9973
SELECT DISTINCT + COUNT ( * ) * 69, - 61 AS col1
----
69
-61

query I rowsort
SELECT ALL + 49 * 74 - + 78 + 57
----
3605

onlyif mysql # DIV for integer division: 
query I rowsort label-9975
SELECT + ( - COALESCE ( - + NULLIF ( 90, 20 + - 80 ), 65 DIV 68, - 20 ) ) * 74 AS col0
----
6660

skipif mysql # not compatible
query I rowsort label-9975
SELECT + ( - COALESCE ( - + NULLIF ( 90, 20 + - 80 ), 65 / 68, - 20 ) ) * 74 AS col0
----
6660

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT ALL - COUNT( * ) * - + 33 + 87 - 89 + 17 * 99 - - COUNT( * ) col0
----
1715

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL - COUNT ( * ) * - + 33 + 87 - 89 + 17 * 99 - - COUNT ( * ) col0
----
1715

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9977
SELECT DISTINCT - COUNT( * ) DIV + MAX( - 27 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT - COUNT ( * ) / + MAX ( - 27 ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9978
SELECT ALL - 80 * - 20 - + - CAST( NULL AS SIGNED ) + - ( + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL - 80 * - 20 - + - CAST ( NULL AS INTEGER ) + - ( + 44 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT + - NULLIF ( + 19, - + SUM( DISTINCT 76 ) * + 54 )
----
-19

skipif mysql # not compatible
query I rowsort label-9979
SELECT + - NULLIF ( + 19, - + SUM ( DISTINCT 76 ) * + 54 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT ALL + 52 * - + CASE - 50 WHEN - 10 THEN + 96 + 61 ELSE + CASE NULLIF ( 92, - 23 ) WHEN 50 THEN NULL ELSE - ( - 42 ) * + 35 END * + 24 - CASE 9 WHEN 35 + 6 * - 45 THEN 56 * - 69 WHEN - 66 THEN - COUNT( * ) END END * - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL + 52 * - + CASE - 50 WHEN - 10 THEN + 96 + 61 ELSE + CASE NULLIF ( 92, - 23 ) WHEN 50 THEN NULL ELSE - ( - 42 ) * + 35 END * + 24 - CASE 9 WHEN 35 + 6 * - 45 THEN 56 * - 69 WHEN - 66 THEN - COUNT ( * ) END END * - 85 AS col1
----
NULL

query I rowsort
SELECT - 35 * + CASE 52 WHEN + + 40 THEN - 0 END * 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT - SUM( + ( + + 94 ) ) + - - 42
----
-52

skipif mysql # not compatible
query I rowsort label-9982
SELECT - SUM ( + ( + + 94 ) ) + - - 42
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT DISTINCT + NULLIF ( COUNT( * ), + 57 ) * - + COALESCE ( 44, 35 ) + 83
----
39

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT + NULLIF ( COUNT ( * ), + 57 ) * - + COALESCE ( 44, 35 ) + 83
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT ALL ( + COUNT( ALL 94 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL ( + COUNT ( ALL 94 ) ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9985
SELECT - 99 DIV - - SUM( ALL - 9 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-9985
SELECT - 99 / - - SUM ( ALL - 9 ) AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9986
SELECT ALL + 43 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL + 43 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 34 * - + 78
----
-2652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9988
SELECT DISTINCT 45 + + COUNT( * ) + + CASE CAST( NULL AS SIGNED ) WHEN + 92 THEN 61 ELSE NULL END * + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT 45 + + COUNT ( * ) + + CASE CAST ( NULL AS INTEGER ) WHEN + 92 THEN 61 ELSE NULL END * + 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT - MIN( 88 ) - + + 43 * - - 3
----
-217

skipif mysql # not compatible
query I rowsort label-9989
SELECT - MIN ( 88 ) - + + 43 * - - 3
----
-217

query I rowsort
SELECT ALL ( + 81 ) AS col0
----
81

query I rowsort
SELECT DISTINCT - 89 + + 68 + + 75
----
54

query I rowsort
SELECT - 15 + + ( + - 9 ) * 76 + - - 3 + 2 * 66 * + 37 AS col1
----
4188

onlyif mysql # DIV for integer division: 
query I rowsort label-9993
SELECT - 33 DIV + 82 col2
----
0

skipif mysql # not compatible
query I rowsort label-9993
SELECT - 33 / + 82 col2
----
0

query I rowsort
SELECT + 39 * + 50
----
1950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9995
SELECT ALL 44 + - CAST( NULL AS SIGNED ) + CAST( + + 68 AS SIGNED ) + MAX( DISTINCT 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL 44 + - CAST ( NULL AS INTEGER ) + CAST ( + + 68 AS INTEGER ) + MAX ( DISTINCT 30 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT - COUNT( * ) - + 6 * + 88 + 43
----
-486

skipif mysql # not compatible
query I rowsort label-9996
SELECT - COUNT ( * ) - + 6 * + 88 + 43
----
-486

query I rowsort
SELECT ALL 97 + - 95
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT ALL - + 72 + + ( + MIN( + + 11 ) ) + + - 28
----
-89

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL - + 72 + + ( + MIN ( + + 11 ) ) + + - 28
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9999
SELECT + - CAST( NULL AS SIGNED ) * CASE + + 63 WHEN - 20 + + SUM( 27 ) THEN + 34 + 82 ELSE NULL END * ( + 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT + - CAST ( NULL AS INTEGER ) * CASE + + 63 WHEN - 20 + + SUM ( 27 ) THEN + 34 + 82 ELSE NULL END * ( + 64 )
----
NULL

