sqllogictest
Artifact Content
Not logged in

Artifact 2a28663f4431318ad2221e86e6d60ac6f0c3188d:


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-49