hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT ALL 28 * 99 * - - NULLIF ( COUNT( * ), COUNT( DISTINCT 38 ) * 95 )
----
2772

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL 28 * 99 * - - NULLIF ( COUNT ( * ), COUNT ( DISTINCT 38 ) * 95 )
----
2772

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1
SELECT 93 * - CASE COUNT( CAST( NULL AS DECIMAL ) ) WHEN - 86 / 50 THEN - COUNT( * ) WHEN - 18 - - 73 THEN NULL WHEN 17 * 31 + - 49 * 1 THEN NULL WHEN 57 THEN - COUNT( * ) + 74 ELSE + 35 END
----
-3255

skipif mysql # not compatible
query I rowsort label-1
SELECT 93 * - CASE COUNT ( CAST ( NULL AS REAL ) ) WHEN - 86 / 50 THEN - COUNT ( * ) WHEN - 18 - - 73 THEN NULL WHEN 17 * 31 + - 49 * 1 THEN NULL WHEN 57 THEN - COUNT ( * ) + 74 ELSE + 35 END
----
-3255

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT COUNT( ALL 11 ) + + 8 * 65
----
521

skipif mysql # not compatible
query I rowsort label-2
SELECT COUNT ( ALL 11 ) + + 8 * 65
----
521

query I rowsort
SELECT ALL 92 * ( 60 )
----
5520

query II rowsort
SELECT DISTINCT 2, 5 AS col1
----
2
5

query I rowsort
SELECT 89 - + - 4 AS col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6
SELECT DISTINCT 79 + CAST( MIN( ALL + 2 ) AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT 79 + CAST ( MIN ( ALL + 2 ) AS INTEGER )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7
SELECT ALL + 60 + + 11 * 72 DIV + ( - 60 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL + 60 + + 11 * 72 / + ( - 60 ) AS col2
----
47

query I rowsort
SELECT ( + + 67 ) + + 76 AS col2
----
143

query I rowsort
SELECT 18 * - 16 * + + 5
----
-1440

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-10
SELECT 89 + CASE + CAST( NULL AS SIGNED ) WHEN 17 THEN NULL ELSE + 80 DIV 80 END * 11
----
100

skipif mysql # not compatible
query I rowsort label-10
SELECT 89 + CASE + CAST ( NULL AS INTEGER ) WHEN 17 THEN NULL ELSE + 80 / 80 END * 11
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-11
SELECT ALL + MIN( 66 ) * + COUNT( ALL ( 64 ) ) + - CAST( - 47 - 65 AS SIGNED ) * 47 + MAX( DISTINCT + 14 + + 79 * - 4 )
----
5028

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL + MIN ( 66 ) * + COUNT ( ALL ( 64 ) ) + - CAST ( - 47 - 65 AS INTEGER ) * 47 + MAX ( DISTINCT + 14 + + 79 * - 4 )
----
5028

onlyif mysql # DIV for integer division: 
query I rowsort label-12
SELECT 98 + - + 87 DIV - 28 AS col1
----
101

skipif mysql # not compatible
query I rowsort label-12
SELECT 98 + - + 87 / - 28 AS col1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT - COUNT( * ) * 73 - + 32 + 92 + ( 76 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-13
SELECT - COUNT ( * ) * 73 - + 32 + 92 + ( 76 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT ALL - 2 * + NULLIF ( 51, 15 / - ( + COUNT( ALL - 58 ) ) )
----
-102

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL - 2 * + NULLIF ( 51, 15 / - ( + COUNT ( ALL - 58 ) ) )
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-15
SELECT DISTINCT + MAX( ALL - - 72 ) * + + 38 * CASE + CAST( 46 AS SIGNED ) WHEN 25 + 11 THEN - MAX( ALL 76 ) * - 98 END + 20 + + CAST( 80 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT + MAX ( ALL - - 72 ) * + + 38 * CASE + CAST ( 46 AS INTEGER ) WHEN 25 + 11 THEN - MAX ( ALL 76 ) * - 98 END + 20 + + CAST ( 80 AS INTEGER )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-17
SELECT ALL - - 70 * - + 36 - + - 9 DIV 33 AS col0
----
-2520

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL - - 70 * - + 36 - + - 9 / 33 AS col0
----
-2520

onlyif mysql # DIV for integer division: 
query I rowsort label-18
SELECT + + 1 * + + 28 + - 20 + - 87 DIV + 88
----
8

skipif mysql # not compatible
query I rowsort label-18
SELECT + + 1 * + + 28 + - 20 + - 87 / + 88
----
8

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

skipif mysql # not compatible
query I rowsort label-19
SELECT + CAST ( NULL AS INTEGER ) * 63 * + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT - - 15 * + ( - - SUM( + 28 ) ) + - 75 * 82
----
-5730

skipif mysql # not compatible
query I rowsort label-20
SELECT - - 15 * + ( - - SUM ( + 28 ) ) + - 75 * 82
----
-5730

query II rowsort
SELECT 14 AS col2, - 24
----
14
-24

query I rowsort
SELECT - - CASE 47 WHEN 26 * 1 THEN - AVG ( ALL - 85 ) WHEN 7 THEN NULL END * + 75 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-23
SELECT ALL + 59 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL + 59 / - 64
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-25
SELECT + - MAX( - CAST( NULL AS SIGNED ) ) + 4 * + 69 AS col2
----
NULL

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

query I rowsort
SELECT - - 4 * + 54 AS col0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT + 1 * + + COALESCE ( + 70, + MAX( DISTINCT + 94 ) ) + - 39 * 29 AS col2
----
-1061

skipif mysql # not compatible
query I rowsort label-27
SELECT + 1 * + + COALESCE ( + 70, + MAX ( DISTINCT + 94 ) ) + - 39 * 29 AS col2
----
-1061

query I rowsort
SELECT ALL 87 * 84 * + 86 AS col0
----
628488

query I rowsort
SELECT - 93 * - 46 * 99
----
423522

query I rowsort
SELECT - 10 + + 48
----
38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-31
SELECT + CAST( ( + 37 ) AS SIGNED ) DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-31
SELECT + CAST ( ( + 37 ) AS INTEGER ) / - 81
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-32
SELECT - CASE + - 0 WHEN COALESCE ( 76, 29 ) * CAST( - COUNT( * ) + 68 * 29 AS SIGNED ) + - ( + 2 ) THEN + 12 + + 53 WHEN 59 * - 41 THEN + 73 END + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-32
SELECT - CASE + - 0 WHEN COALESCE ( 76, 29 ) * CAST ( - COUNT ( * ) + 68 * 29 AS INTEGER ) + - ( + 2 ) THEN + 12 + + 53 WHEN 59 * - 41 THEN + 73 END + - 7
----
NULL

query I rowsort
SELECT ALL CASE 88 WHEN + + 76 THEN NULL ELSE - 48 * 73 END col1
----
-3504

query I rowsort
SELECT ALL - 37 * 52 * - 76
----
146224

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT + SUM( + 97 ) * - 37
----
-3589

skipif mysql # not compatible
query I rowsort label-35
SELECT + SUM ( + 97 ) * - 37
----
-3589

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

query I rowsort
SELECT ALL 45 + + - 22 * + 14 AS col2
----
-263

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT ALL COUNT( * ) + - 92 * + ( 97 )
----
-8923

skipif mysql # not compatible
query I rowsort label-38
SELECT ALL COUNT ( * ) + - 92 * + ( 97 )
----
-8923

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT + NULLIF ( + - 17, 4 ) + - COUNT( * ) * - ( 1 * + 62 + 54 )
----
99

skipif mysql # not compatible
query I rowsort label-39
SELECT + NULLIF ( + - 17, 4 ) + - COUNT ( * ) * - ( 1 * + 62 + 54 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-40
SELECT ALL 38 + + + 59 - - CASE + 32 WHEN 68 + ( + 8 ) * COUNT( * ) THEN + 37 / + 24 - CASE 35 WHEN - 19 * - 22 THEN NULL WHEN 0 * CASE 80 WHEN - COALESCE ( 39, 32 ) THEN - 61 WHEN - COUNT( * ) * 89 + + 12 * CAST( + 46 * - 98 AS SIGNED ) THEN - 8 ELSE - 66 END THEN + 23 / 82 WHEN - 70 THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-40
SELECT ALL 38 + + + 59 - - CASE + 32 WHEN 68 + ( + 8 ) * COUNT ( * ) THEN + 37 / + 24 - CASE 35 WHEN - 19 * - 22 THEN NULL WHEN 0 * CASE 80 WHEN - COALESCE ( 39, 32 ) THEN - 61 WHEN - COUNT ( * ) * 89 + + 12 * CAST ( + 46 * - 98 AS INTEGER ) THEN - 8 ELSE - 66 END THEN + 23 / 82 WHEN - 70 THEN NULL END END
----
NULL

query I rowsort
SELECT + 9 + + 12 AS col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-42
SELECT + 85 DIV ( - 75 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-42
SELECT + 85 / ( - 75 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-43
SELECT + ( - + COALESCE ( - + 92, SUM( + NULLIF ( ( 74 ), 41 ) ) DIV + NULLIF ( 85, ( + CAST( NULL AS SIGNED ) ) DIV COUNT( * ) ) - + 87 ) ) * 43
----
3956

skipif mysql # not compatible
query I rowsort label-43
SELECT + ( - + COALESCE ( - + 92, SUM ( + NULLIF ( ( 74 ), 41 ) ) / + NULLIF ( 85, ( + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) ) - + 87 ) ) * 43
----
3956

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT - 2 + - + 61 * - 91 * - - 6 * - COUNT( * ) AS col0
----
-33308

skipif mysql # not compatible
query I rowsort label-44
SELECT - 2 + - + 61 * - 91 * - - 6 * - COUNT ( * ) AS col0
----
-33308

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-46
SELECT ALL + CASE - + SUM( + 48 ) WHEN + 90 THEN NULL WHEN 52 THEN COALESCE ( + 84, 5 ) DIV - AVG ( ALL 95 * 9 ) ELSE NULLIF ( - 24, + COUNT( * ) ) - COUNT( DISTINCT + 35 ) END + - 50 * ( 77 * - COUNT( * ) )
----
3825

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL + CASE - + SUM ( + 48 ) WHEN + 90 THEN NULL WHEN 52 THEN COALESCE ( + 84, 5 ) / - AVG ( ALL 95 * 9 ) ELSE NULLIF ( - 24, + COUNT ( * ) ) - COUNT ( DISTINCT + 35 ) END + - 50 * ( 77 * - COUNT ( * ) )
----
3825

query I rowsort
SELECT + - 70 * + + ( + + 78 ) AS col1
----
-5460

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

onlyif mysql # DIV for integer division: 
query I rowsort label-49
SELECT ALL - 4 DIV - 71 - + 16 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL - 4 / - 71 - + 16 AS col0
----
-16

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-51
SELECT + - ( - 20 ) AS col2, + ( - NULLIF ( 53, + MAX( ALL - 99 ) ) ) col2
----
20
-53

skipif mysql # not compatible
query II rowsort label-51
SELECT + - ( - 20 ) AS col2, + ( - NULLIF ( 53, + MAX ( ALL - 99 ) ) ) col2
----
20
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-52
SELECT DISTINCT + 82 DIV + MAX( 93 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-52
SELECT DISTINCT + 82 / + MAX ( 93 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-53
SELECT + 19 - ( MAX( DISTINCT + CAST( 11 AS SIGNED ) ) ) * + 11
----
-102

skipif mysql # not compatible
query I rowsort label-53
SELECT + 19 - ( MAX ( DISTINCT + CAST ( 11 AS INTEGER ) ) ) * + 11
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-54
SELECT - 88 / + ( - CAST( NULL AS SIGNED ) ) * + 68 + COALESCE ( 95, - ( + 54 ) + COUNT( * ), - COUNT( * ) ) + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-54
SELECT - 88 / + ( - CAST ( NULL AS INTEGER ) ) * + 68 + COALESCE ( 95, - ( + 54 ) + COUNT ( * ), - COUNT ( * ) ) + 87
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-55
SELECT ALL + - ( + CASE - 28 WHEN - CASE + 2 WHEN CASE 18 WHEN 82 + 6 THEN CASE 29 WHEN 13 + - 40 / 33 THEN NULL WHEN + 77 THEN NULL WHEN + 2 THEN + 85 END + 98 END THEN 89 * + COALESCE ( + 54, 59 / - 12 ) ELSE - 15 END * - 33 THEN + 18 * + CAST( 28 / - 40 AS SIGNED ) WHEN - 36 THEN NULL END ) * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL + - ( + CASE - 28 WHEN - CASE + 2 WHEN CASE 18 WHEN 82 + 6 THEN CASE 29 WHEN 13 + - 40 / 33 THEN NULL WHEN + 77 THEN NULL WHEN + 2 THEN + 85 END + 98 END THEN 89 * + COALESCE ( + 54, 59 / - 12 ) ELSE - 15 END * - 33 THEN + 18 * + CAST ( 28 / - 40 AS INTEGER ) WHEN - 36 THEN NULL END ) * - 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT - - 25 * - COUNT( * ) - + - COUNT( + + ( 65 ) ) * 99 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-56
SELECT - - 25 * - COUNT ( * ) - + - COUNT ( + + ( 65 ) ) * 99 AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-57
SELECT ALL + CAST( - - CAST( MAX( DISTINCT 48 ) AS SIGNED ) AS SIGNED ) DIV 72 - + 90
----
-90

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL + CAST ( - - CAST ( MAX ( DISTINCT 48 ) AS INTEGER ) AS INTEGER ) / 72 - + 90
----
-90

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

query I rowsort
SELECT ALL + + ( - + ( + 70 ) ) col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT ALL - 30 * 46 * - 47 + - MAX( - 49 )
----
64909

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL - 30 * 46 * - 47 + - MAX ( - 49 )
----
64909

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

skipif mysql # not compatible
query I rowsort label-61
SELECT - + 44 - - - COUNT ( * ) + 72 + + 60 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT ALL + - ( + MIN( + - NULLIF ( - 74, 39 + 61 ) ) )
----
-74

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL + - ( + MIN ( + - NULLIF ( - 74, 39 + 61 ) ) )
----
-74

query I rowsort
SELECT + + 24 * - + 36 - - 29 AS col1
----
-835

query II rowsort
SELECT - 4 * - 51 AS col1, + ( ( - 20 ) )
----
204
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-65
SELECT + 77 AS col1, - 77 * - + 80 + - CAST( - 11 AS SIGNED ) + 54 * + 76 AS col0
----
77
10275

skipif mysql # not compatible
query II rowsort label-65
SELECT + 77 AS col1, - 77 * - + 80 + - CAST ( - 11 AS INTEGER ) + 54 * + 76 AS col0
----
77
10275

query I rowsort
SELECT - 69 + 90
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT NULLIF ( ( - ( - 93 ) ), - COALESCE ( - 38, + 43, + 5 * + 24, + 8 ) + COUNT( * ) ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-67
SELECT NULLIF ( ( - ( - 93 ) ), - COALESCE ( - 38, + 43, + 5 * + 24, + 8 ) + COUNT ( * ) ) AS col2
----
93

query I rowsort
SELECT - NULLIF ( - 87, - + 8 ) + ( - ( 69 ) ) AS col0
----
18

query I rowsort
SELECT ALL + COALESCE ( 32, + + 65 )
----
32

query I rowsort
SELECT - ( + + 52 ) * - 63 AS col0
----
3276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-71
SELECT DISTINCT CASE 19 WHEN + 12 - + 59 + - CAST( 12 AS SIGNED ) THEN + COUNT( * ) WHEN + 54 * + 18 THEN MIN( ALL - 48 ) END * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-71
SELECT DISTINCT CASE 19 WHEN + 12 - + 59 + - CAST ( 12 AS INTEGER ) THEN + COUNT ( * ) WHEN + 54 * + 18 THEN MIN ( ALL - 48 ) END * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT DISTINCT 59 * + MIN( DISTINCT 27 ) + + - COALESCE ( - - 1, - 0 * 9 + - 16 * - 85 )
----
1592

skipif mysql # not compatible
query I rowsort label-72
SELECT DISTINCT 59 * + MIN ( DISTINCT 27 ) + + - COALESCE ( - - 1, - 0 * 9 + - 16 * - 85 )
----
1592

query I rowsort
SELECT - ( ( - 33 ) ) + + 75 * + + 34 + - 45
----
2538

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT ALL - NULLIF ( + 3, + COALESCE ( + 57, - - 64 + + 72, 25, MIN( - 25 ) ) ) + - 75 * 78
----
-5853

skipif mysql # not compatible
query I rowsort label-74
SELECT ALL - NULLIF ( + 3, + COALESCE ( + 57, - - 64 + + 72, 25, MIN ( - 25 ) ) ) + - 75 * 78
----
-5853

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT - 97 + + + 73 * + MIN( DISTINCT - - 48 ) + - 27 * 65
----
1652

skipif mysql # not compatible
query I rowsort label-75
SELECT - 97 + + + 73 * + MIN ( DISTINCT - - 48 ) + - 27 * 65
----
1652

query I rowsort
SELECT + 3 * + 98 col2
----
294

query I rowsort
SELECT - ( - + 78 ) AS col0
----
78

query I rowsort
SELECT - ( + 3 ) + + - 45 AS col2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-79
SELECT DISTINCT CAST( 23 AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT CAST ( 23 AS INTEGER )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT ALL - 34 + + MAX( - ( - - 1 ) ) * - 0 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL - 34 + + MAX ( - ( - - 1 ) ) * - 0 AS col2
----
-34

query II rowsort
SELECT DISTINCT 22 col0, + ( - 78 )
----
22
-78

query I rowsort
SELECT DISTINCT - COALESCE ( + 48, - - 31, - COALESCE ( + CASE + 54 WHEN + 10 THEN + 61 - - 54 ELSE 86 END, - 57, 65 ) ) - 9 AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT ALL COUNT( * ) - - + NULLIF ( CASE + 80 WHEN 66 - 98 * - 62 THEN NULL WHEN - 87 THEN NULL ELSE + 34 END, - CASE 96 WHEN 27 - + SUM( ALL 73 ) / + ( - 58 * 25 ) THEN + ( + CASE 76 WHEN + 13 THEN - 46 + + 41 * - 4 END ) + - 21 ELSE NULL END / 34 )
----
35

skipif mysql # not compatible
query I rowsort label-83
SELECT ALL COUNT ( * ) - - + NULLIF ( CASE + 80 WHEN 66 - 98 * - 62 THEN NULL WHEN - 87 THEN NULL ELSE + 34 END, - CASE 96 WHEN 27 - + SUM ( ALL 73 ) / + ( - 58 * 25 ) THEN + ( + CASE 76 WHEN + 13 THEN - 46 + + 41 * - 4 END ) + - 21 ELSE NULL END / 34 )
----
35

query II rowsort
SELECT DISTINCT - 56, - ( ( - 12 ) ) AS col1
----
-56
12

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT - 50 + + COUNT( * ) * 93 + - MAX( DISTINCT - + 51 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-85
SELECT - 50 + + COUNT ( * ) * 93 + - MAX ( DISTINCT - + 51 ) AS col2
----
94

query I rowsort
SELECT + 89 + - + 68
----
21

query I rowsort
SELECT DISTINCT + 52 * 96 + + 61
----
5053

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT + ( COUNT( + ( - 36 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-88
SELECT + ( COUNT ( + ( - 36 ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-89
SELECT + 16 + - - CASE CAST( NULL AS DECIMAL ) WHEN - 97 THEN NULL WHEN + 8 / + COUNT( * ) THEN - MIN( DISTINCT NULLIF ( + NULLIF ( + 91, - 33 + - 7 ), - 35 * 94 ) ) * - MAX( ALL + CAST( NULL AS SIGNED ) - - 40 ) WHEN - 86 + 11 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-89
SELECT + 16 + - - CASE CAST ( NULL AS REAL ) WHEN - 97 THEN NULL WHEN + 8 / + COUNT ( * ) THEN - MIN ( DISTINCT NULLIF ( + NULLIF ( + 91, - 33 + - 7 ), - 35 * 94 ) ) * - MAX ( ALL + CAST ( NULL AS INTEGER ) - - 40 ) WHEN - 86 + 11 THEN NULL END
----
NULL

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

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

query I rowsort
SELECT NULLIF ( - - 2, + 50 ) AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-92
SELECT ALL - CASE COUNT( * ) WHEN - + 25 THEN - ( 25 ) * 74 ELSE + 79 DIV 75 END
----
-1

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL - CASE COUNT ( * ) WHEN - + 25 THEN - ( 25 ) * 74 ELSE + 79 / 75 END
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-94
SELECT COUNT( * ) DIV + 56 + + + CAST( + - 27 AS SIGNED ) + - 34 * COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-94
SELECT COUNT ( * ) / + 56 + + + CAST ( + - 27 AS INTEGER ) + - 34 * COUNT ( * )
----
-61

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-96
SELECT 38 + - CASE COUNT( * ) WHEN + 77 THEN NULL ELSE + 35 END DIV - 91 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-96
SELECT 38 + - CASE COUNT ( * ) WHEN + 77 THEN NULL ELSE + 35 END / - 91 AS col2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-97
SELECT ALL - 76 DIV - + 17
----
4

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL - 76 / - + 17
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT ALL 63 + COUNT( * ) + + 49
----
113

skipif mysql # not compatible
query I rowsort label-98
SELECT ALL 63 + COUNT ( * ) + + 49
----
113

query I rowsort
SELECT DISTINCT 7 + + 42 AS col1
----
49

query I rowsort
SELECT 67 * 41 AS col1
----
2747

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT 74 + - - COUNT( + 91 )
----
75

skipif mysql # not compatible
query I rowsort label-102
SELECT 74 + - - COUNT ( + 91 )
----
75

query I rowsort
SELECT ALL 69 + + 59
----
128

query I rowsort
SELECT ALL + 64 + - - 47
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-105
SELECT 99 + + 19 + 3 + + 13 + 95 - CASE 22 WHEN + NULLIF ( 80, + 63 + COUNT( * ) ) + + 32 * 60 THEN NULL WHEN 24 THEN NULL ELSE + CAST( NULL AS SIGNED ) END * + 59 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-105
SELECT 99 + + 19 + 3 + + 13 + 95 - CASE 22 WHEN + NULLIF ( 80, + 63 + COUNT ( * ) ) + + 32 * 60 THEN NULL WHEN 24 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END * + 59 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-106
SELECT 2 * - 11 DIV COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-106
SELECT 2 * - 11 / COUNT ( * ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT ALL + MAX( 0 ) * - 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL + MAX ( 0 ) * - 87 AS col0
----
0

query II rowsort
SELECT DISTINCT - 41 AS col0, + 30
----
-41
30

query II rowsort
SELECT 89 + + + 33 - + - 37 * + 8 AS col1, + ( + 1 ) - + 19 AS col1
----
418
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-110
SELECT COALESCE ( + 51, + - 90 * - 94 DIV + + 80 ) * + 4 - - 60 * + 2
----
324

skipif mysql # not compatible
query I rowsort label-110
SELECT COALESCE ( + 51, + - 90 * - 94 / + + 80 ) * + 4 - - 60 * + 2
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT DISTINCT - ( - 23 ) + - CASE 69 WHEN + MAX( DISTINCT - 36 ) * 17 THEN NULL WHEN 46 THEN + 6 * ( - ( 29 ) ) - - 33 WHEN 16 + 68 THEN NULL END - 45 * + 27 * MIN( ALL - 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT - ( - 23 ) + - CASE 69 WHEN + MAX ( DISTINCT - 36 ) * 17 THEN NULL WHEN 46 THEN + 6 * ( - ( 29 ) ) - - 33 WHEN 16 + 68 THEN NULL END - 45 * + 27 * MIN ( ALL - 86 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-112
SELECT ALL 60 AS col2, + COUNT( * ) * 67 AS col0
----
60
67

skipif mysql # not compatible
query II rowsort label-112
SELECT ALL 60 AS col2, + COUNT ( * ) * 67 AS col0
----
60
67

query II rowsort
SELECT 20 AS col1, 38
----
20
38

query I rowsort
SELECT DISTINCT - 48 - 31 + 10
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-115
SELECT 18 * 20 * 79 * + + 70, - COUNT( * ) AS col2
----
1990800
-1

skipif mysql # not compatible
query II rowsort label-115
SELECT 18 * 20 * 79 * + + 70, - COUNT ( * ) AS col2
----
1990800
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT ALL - COUNT( * ) * 55 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL - COUNT ( * ) * 55 AS col0
----
-55

query II rowsort
SELECT 24 + + 93, 9 AS col2
----
117
9

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT ALL - COUNT( * ) * + - 78 * 2 AS col2
----
156

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL - COUNT ( * ) * + - 78 * 2 AS col2
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT COUNT( * ) + 27 col0
----
28

skipif mysql # not compatible
query I rowsort label-119
SELECT COUNT ( * ) + 27 col0
----
28

query I rowsort
SELECT ALL - - 37 * + 21 AS col0
----
777

query I rowsort
SELECT NULLIF ( - + 29, - 73 ) + + 61 * 63 AS col1
----
3814

onlyif mysql # DIV for integer division: 
query I rowsort label-122
SELECT + 74 DIV - 8 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-122
SELECT + 74 / - 8 AS col1
----
-9

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

skipif mysql # not compatible
query I rowsort label-123
SELECT 43 / 26 - + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-124
SELECT + COALESCE ( - ( - - 40 ), - COALESCE ( ( ( + CAST( SUM( 95 ) AS SIGNED ) ) ), CAST( NULL AS SIGNED ), 27 ) )
----
-40

skipif mysql # not compatible
query I rowsort label-124
SELECT + COALESCE ( - ( - - 40 ), - COALESCE ( ( ( + CAST ( SUM ( 95 ) AS INTEGER ) ) ), CAST ( NULL AS INTEGER ), 27 ) )
----
-40

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-126
SELECT ALL 40 DIV - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-126
SELECT ALL 40 / - COUNT ( * )
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-127
SELECT 22 DIV 28 * 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-127
SELECT 22 / 28 * 76 AS col1
----
0

query II rowsort
SELECT DISTINCT + 66 AS col2, - 17
----
66
-17

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-130
SELECT - 48 DIV - + 49 + + 71 * + + 56 * + ( - 27 ) AS col0
----
-107352

skipif mysql # not compatible
query I rowsort label-130
SELECT - 48 / - + 49 + + 71 * + + 56 * + ( - 27 ) AS col0
----
-107352

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

query I rowsort
SELECT 91 * + 57 * + + 8 AS col2
----
41496

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT DISTINCT 7 * + COUNT( * ) * ( - - 56 ) + - 79 + + + 0 + - 9 * - ( - 95 ) AS col1
----
-542

skipif mysql # not compatible
query I rowsort label-133
SELECT DISTINCT 7 * + COUNT ( * ) * ( - - 56 ) + - 79 + + + 0 + - 9 * - ( - 95 ) AS col1
----
-542

query I rowsort
SELECT ALL - 51 * + + ( - - 86 ) + 98 AS col2
----
-4288

query I rowsort
SELECT 40 - + ( + 58 ) - + 9 + 58 AS col0
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-136
SELECT + - 83 AS col1, 81 * - 61 + - - ( + 55 ) + - COUNT( * ) - + CASE - 64 + COUNT( * ) WHEN - 38 THEN 59 + ( 78 + + 17 * 94 ) WHEN 44 + COUNT( * ) THEN 98 END
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-136
SELECT + - 83 AS col1, 81 * - 61 + - - ( + 55 ) + - COUNT ( * ) - + CASE - 64 + COUNT ( * ) WHEN - 38 THEN 59 + ( 78 + + 17 * 94 ) WHEN 44 + COUNT ( * ) THEN 98 END
----
-83
NULL

query I rowsort
SELECT DISTINCT - + 3 * + 63 + + + 0 col1
----
-189

onlyif mysql # DIV for integer division: 
query I rowsort label-138
SELECT DISTINCT 15 * - 25 - 81 + - 38 + - 40 DIV 21 - + 30 * 29 DIV + 95
----
-504

skipif mysql # not compatible
query I rowsort label-138
SELECT DISTINCT 15 * - 25 - 81 + - 38 + - 40 / 21 - + 30 * 29 / + 95
----
-504

onlyif mysql # aggregate syntax: 
query II rowsort label-139
SELECT ALL - 73 AS col2, + COUNT( + 15 ) + 15 * - NULLIF ( + 21, ( COUNT( * ) ) * 97 - + 30 ) AS col0
----
-73
-314

skipif mysql # not compatible
query II rowsort label-139
SELECT ALL - 73 AS col2, + COUNT ( + 15 ) + 15 * - NULLIF ( + 21, ( COUNT ( * ) ) * 97 - + 30 ) AS col0
----
-73
-314

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-140
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * SUM( 90 ) + - 0 + 86 * + - 2 + 96 * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT + CAST ( NULL AS REAL ) * SUM ( 90 ) + - 0 + 86 * + - 2 + 96 * 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT 77 * ( NULLIF ( - - COALESCE ( - 7, - 87, COUNT( * ) ), COUNT( * ) + 16 ) ) AS col2
----
-539

skipif mysql # not compatible
query I rowsort label-141
SELECT 77 * ( NULLIF ( - - COALESCE ( - 7, - 87, COUNT ( * ) ), COUNT ( * ) + 16 ) ) AS col2
----
-539

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-142
SELECT ALL 8 * 3 * + 81 + - 9 DIV - 17, COUNT( * ) AS col2
----
1944
1

skipif mysql # not compatible
query II rowsort label-142
SELECT ALL 8 * 3 * + 81 + - 9 / - 17, COUNT ( * ) AS col2
----
1944
1

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT ( - 99 ) - COALESCE ( - 89, + - MAX( 12 ) * - 37 + 25, - 61, 29 * + 87 + 16 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-143
SELECT ( - 99 ) - COALESCE ( - 89, + - MAX ( 12 ) * - 37 + 25, - 61, 29 * + 87 + 16 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-144
SELECT COUNT( ALL - - 76 ), - 72 AS col2
----
1
-72

skipif mysql # not compatible
query II rowsort label-144
SELECT COUNT ( ALL - - 76 ), - 72 AS col2
----
1
-72

query I rowsort
SELECT ( - 43 ) * + 98 * 35 + + 9 + + 16 * + + 12 * 62 col2
----
-135577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-146
SELECT 78 * + 2 - + CAST( NULL AS SIGNED ) + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-146
SELECT 78 * + 2 - + CAST ( NULL AS INTEGER ) + 53 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-147
SELECT ALL 15 + - 21, 32 + - + 36 + + 35 + + + CAST( NULL AS DECIMAL ) + 50 * 1 / - 83 AS col0
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-147
SELECT ALL 15 + - 21, 32 + - + 36 + + 35 + + + CAST ( NULL AS REAL ) + 50 * 1 / - 83 AS col0
----
-6
NULL

query I rowsort
SELECT ( + 53 ) * - + 6 AS col0
----
-318

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT MIN( DISTINCT - 86 ) + - CASE - COUNT( * ) WHEN - 75 THEN + 16 * + + ( + 43 ) - 83 END + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-149
SELECT MIN ( DISTINCT - 86 ) + - CASE - COUNT ( * ) WHEN - 75 THEN + 16 * + + ( + 43 ) - 83 END + 66
----
NULL

query II rowsort
SELECT 28 * - + 56 AS col2, + 93 + 76 + + + 94 AS col1
----
-1568
263

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-151
SELECT ALL - COUNT( * ) * 79 DIV + COUNT( * ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-151
SELECT ALL - COUNT ( * ) * 79 / + COUNT ( * ) AS col1
----
-79

query I rowsort
SELECT + NULLIF ( + 78, 99 )
----
78

query I rowsort
SELECT DISTINCT 14 - + 31 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-154
SELECT - 2 * - + 78 col1, + CASE - NULLIF ( - 32, + + 9 ) WHEN MIN( ALL - 57 ) THEN NULL ELSE 36 END AS col1
----
156
36

skipif mysql # not compatible
query II rowsort label-154
SELECT - 2 * - + 78 col1, + CASE - NULLIF ( - 32, + + 9 ) WHEN MIN ( ALL - 57 ) THEN NULL ELSE 36 END AS col1
----
156
36

query I rowsort
SELECT ALL 8 * 92 AS col0
----
736

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT + 14 + + - MIN( - 63 )
----
77

skipif mysql # not compatible
query I rowsort label-156
SELECT + 14 + + - MIN ( - 63 )
----
77

query II rowsort
SELECT + 7 + + - 30 AS col2, 69
----
-23
69

query I rowsort
SELECT - + 58 * + + 39 * + 56 AS col0
----
-126672

query I rowsort
SELECT + 71 + - 96 - - - 33 * + 5
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT ALL - 3 * ( + - 89 ) * - ( + - SUM( + - 33 ) ) AS col1
----
-8811

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL - 3 * ( + - 89 ) * - ( + - SUM ( + - 33 ) ) AS col1
----
-8811

query I rowsort
SELECT ALL + - 96 + - + 10 AS col0
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-162
SELECT - + 6 - + 2 / CAST( NULL AS SIGNED ) * + 13 * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-162
SELECT - + 6 - + 2 / CAST ( NULL AS INTEGER ) * + 13 * - 42
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-163
SELECT + - NULLIF ( - AVG ( ALL - 76 ), + 1 + + - 12 ) + + ( + 20 ) + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-163
SELECT + - NULLIF ( - AVG ( ALL - 76 ), + 1 + + - 12 ) + + ( + 20 ) + - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT + - 67 + + 61
----
-6

query I rowsort
SELECT ALL - 51 + 32
----
-19

query I rowsort
SELECT - 87 + 13 + 41 - + - 11 * - 78 * 62 AS col1
----
-53229

onlyif mysql # DIV for integer division: 
query I rowsort label-167
SELECT + - 82 DIV 71
----
-1

skipif mysql # not compatible
query I rowsort label-167
SELECT + - 82 / 71
----
-1

query II rowsort
SELECT - 1 + - 0 AS col2, - 45 * 86
----
-1
-3870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-169
SELECT + SUM( 11 ) * + 60 * + 45 * CAST( + 29 AS SIGNED ) + - 61 * 57
----
857823

skipif mysql # not compatible
query I rowsort label-169
SELECT + SUM ( 11 ) * + 60 * + 45 * CAST ( + 29 AS INTEGER ) + - 61 * 57
----
857823

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT ALL 25 * + 23 * 16 + - 95 + - + 6 * - + COUNT( * ) AS col0
----
9111

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL 25 * + 23 * 16 + - 95 + - + 6 * - + COUNT ( * ) AS col0
----
9111

query I rowsort
SELECT DISTINCT + - ( + + CASE + 53 WHEN 42 / - 11 THEN 47 WHEN - ( 62 ) THEN 57 END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-172
SELECT ALL - 41 * + COALESCE ( + 50, + + 0 + - - 75 - + 68 DIV ( + - 42 ) ) + 1
----
-2049

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL - 41 * + COALESCE ( + 50, + + 0 + - - 75 - + 68 / ( + - 42 ) ) + 1
----
-2049

query II rowsort
SELECT ALL + 28, + 24 AS col2
----
28
24

query II rowsort
SELECT + 27 AS col2, + 46 col0
----
27
46

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

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

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

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

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

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

query II rowsort
SELECT ALL + 63 AS col1, 30 AS col2
----
63
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-179
SELECT CASE - ( + + 65 ) WHEN + 33 THEN NULL WHEN + 22 THEN - - ( COALESCE ( - 11, 11 * + NULLIF ( - COUNT( * ) * + COALESCE ( + 18, - 8, - 53 ), + COALESCE ( 59, - MIN( + 74 ) * + COUNT( * ) + CASE 28 WHEN + 84 THEN - 78 + + CAST( NULL AS SIGNED ) END ) * + 20 ) ) ) / - 2 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-179
SELECT CASE - ( + + 65 ) WHEN + 33 THEN NULL WHEN + 22 THEN - - ( COALESCE ( - 11, 11 * + NULLIF ( - COUNT ( * ) * + COALESCE ( + 18, - 8, - 53 ), + COALESCE ( 59, - MIN ( + 74 ) * + COUNT ( * ) + CASE 28 WHEN + 84 THEN - 78 + + CAST ( NULL AS INTEGER ) END ) * + 20 ) ) ) / - 2 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-180
SELECT ALL 28 * + 81 - + + 80 + 26 * + 13 * + - NULLIF ( - MAX( ALL COALESCE ( 96, 62 ) ), ( - COUNT( * ) ) ) * 12 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL 28 * + 81 - + + 80 + 26 * + 13 * + - NULLIF ( - MAX ( ALL COALESCE ( 96, 62 ) ), ( - COUNT ( * ) ) ) * 12 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 50 * + 74 col1
----
3700

query II rowsort
SELECT ALL + 79 AS col0, + ( 40 ) AS col1
----
79
40

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT CASE - - COUNT( * ) WHEN + 77 THEN - 6 + 66 WHEN - 24 THEN NULL ELSE 64 END
----
64

skipif mysql # not compatible
query I rowsort label-183
SELECT CASE - - COUNT ( * ) WHEN + 77 THEN - 6 + 66 WHEN - 24 THEN NULL ELSE 64 END
----
64

query I rowsort
SELECT + 44 + + + 23 AS col2
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-185
SELECT + 2 DIV 69 * - + 31 AS col1, - NULLIF ( + 57, - 38 ) AS col2
----
0
-57

skipif mysql # not compatible
query II rowsort label-185
SELECT + 2 / 69 * - + 31 AS col1, - NULLIF ( + 57, - 38 ) AS col2
----
0
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-186
SELECT - ( 37 ) * NULLIF ( 58, COUNT( * ) DIV + 14 ) DIV ( + 76 ) DIV - 91 + - 78 * + 1 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-186
SELECT - ( 37 ) * NULLIF ( 58, COUNT ( * ) / + 14 ) / ( + 76 ) / - 91 + - 78 * + 1 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT CASE + - 78 WHEN 62 THEN - 41 ELSE + COUNT( * ) END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-187
SELECT CASE + - 78 WHEN 62 THEN - 41 ELSE + COUNT ( * ) END AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-188
SELECT + 67 DIV + 24 col0
----
2

skipif mysql # not compatible
query I rowsort label-188
SELECT + 67 / + 24 col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-189
SELECT - CASE + CASE COALESCE ( - COUNT( * ), + MAX( + - 10 ) + + + 39 ) WHEN - 63 THEN NULL WHEN 26 / 80 THEN 16 * 76 END WHEN - 42 THEN + COALESCE ( NULLIF ( - 0, + COUNT( * ) + + 85 ), 55, - 24 * + 52, + 61 - - 84 * COUNT( * ) ) WHEN - COUNT( * ) * - 99 THEN + MIN( ALL - COALESCE ( + 19, + 21 * 5 ) ) END + MAX( ALL - CAST( 68 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-189
SELECT - CASE + CASE COALESCE ( - COUNT ( * ), + MAX ( + - 10 ) + + + 39 ) WHEN - 63 THEN NULL WHEN 26 / 80 THEN 16 * 76 END WHEN - 42 THEN + COALESCE ( NULLIF ( - 0, + COUNT ( * ) + + 85 ), 55, - 24 * + 52, + 61 - - 84 * COUNT ( * ) ) WHEN - COUNT ( * ) * - 99 THEN + MIN ( ALL - COALESCE ( + 19, + 21 * 5 ) ) END + MAX ( ALL - CAST ( 68 AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-190
SELECT DISTINCT - 54 DIV - 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT - 54 / - 60 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-191
SELECT ALL - 72, + COALESCE ( - COALESCE ( - 85, - 90, + 28 * - COUNT( * ) ), - ( - 91 ) ) AS col2
----
-72
85

skipif mysql # not compatible
query II rowsort label-191
SELECT ALL - 72, + COALESCE ( - COALESCE ( - 85, - 90, + 28 * - COUNT ( * ) ), - ( - 91 ) ) AS col2
----
-72
85

query I rowsort
SELECT + + ( - + CASE - + 0 WHEN 30 THEN - 59 WHEN - 18 + + 59 THEN 27 ELSE NULL END ) / + 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-193
SELECT DISTINCT 95, - CAST( NULL AS SIGNED ) * - + MIN( + 72 ) AS col0
----
95
NULL

skipif mysql # not compatible
query II rowsort label-193
SELECT DISTINCT 95, - CAST ( NULL AS INTEGER ) * - + MIN ( + 72 ) AS col0
----
95
NULL

query I rowsort
SELECT DISTINCT 61 * - 90
----
-5490

query I rowsort
SELECT + + 35 + + 68 AS col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT ALL - ( - MAX( - ( + - ( 72 ) ) ) ) col0
----
72

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL - ( - MAX ( - ( + - ( 72 ) ) ) ) col0
----
72

query II rowsort
SELECT - 90 AS col2, 46
----
-90
46

query I rowsort
SELECT - 19 + 74 * - 21 AS col1
----
-1573

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

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

query I rowsort
SELECT - 32 * + - 33 AS col1
----
1056

onlyif mysql # aggregate syntax: 
query II rowsort label-201
SELECT COUNT( * ) AS col2, + 58 * - 65 + - 71 * COUNT( * ) - 4 * + 19 AS col2
----
1
-3917

skipif mysql # not compatible
query II rowsort label-201
SELECT COUNT ( * ) AS col2, + 58 * - 65 + - 71 * COUNT ( * ) - 4 * + 19 AS col2
----
1
-3917

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT ALL - MAX( DISTINCT ( + + 8 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-202
SELECT ALL - MAX ( DISTINCT ( + + 8 ) )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT DISTINCT + MAX( DISTINCT - 60 ) + 76 + + 72 - + - SUM( - - 9 ) * - 6
----
34

skipif mysql # not compatible
query I rowsort label-203
SELECT DISTINCT + MAX ( DISTINCT - 60 ) + 76 + + 72 - + - SUM ( - - 9 ) * - 6
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT ALL + COALESCE ( + COUNT( * ), - 43 * + 88 ) + + 7 col1
----
8

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL + COALESCE ( + COUNT ( * ), - 43 * + 88 ) + + 7 col1
----
8

query II rowsort
SELECT DISTINCT 2 AS col0, 72 * + - 64
----
2
-4608

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT DISTINCT + 97 + + ( + 68 ) * COUNT( * ) AS col1
----
165

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT + 97 + + ( + 68 ) * COUNT ( * ) AS col1
----
165

onlyif mysql # aggregate syntax: 
query II rowsort label-207
SELECT - 31, + 47 * - + 22 * - - 28 * - 51 * COUNT( * ) AS col1
----
-31
1476552

skipif mysql # not compatible
query II rowsort label-207
SELECT - 31, + 47 * - + 22 * - - 28 * - 51 * COUNT ( * ) AS col1
----
-31
1476552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-208
SELECT ALL CAST( NULL AS SIGNED ) / - 16 - CASE - 63 WHEN + 37 THEN - 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL CAST ( NULL AS INTEGER ) / - 16 - CASE - 63 WHEN + 37 THEN - 55 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-209
SELECT ALL 18 DIV ( + - NULLIF ( - + 36, + MAX( + 82 ) * 35 ) ) - - COALESCE ( - 67, - 78 * 55 + - ( COUNT( + 54 ) ) ) * MIN( ALL 41 )
----
-2747

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL 18 / ( + - NULLIF ( - + 36, + MAX ( + 82 ) * 35 ) ) - - COALESCE ( - 67, - 78 * 55 + - ( COUNT ( + 54 ) ) ) * MIN ( ALL 41 )
----
-2747

onlyif mysql # aggregate syntax: 
query II rowsort label-210
SELECT - ( 98 ) - MIN( 66 ) AS col0, 17 AS col2
----
-164
17

skipif mysql # not compatible
query II rowsort label-210
SELECT - ( 98 ) - MIN ( 66 ) AS col0, 17 AS col2
----
-164
17

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

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT - CAST ( + + CAST ( - 55 AS INTEGER ) AS INTEGER ) AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-212
SELECT - 42 * COUNT( - 30 ) + + 90 + - - CAST( ( - 42 ) AS SIGNED ) - + + 90 + + + NULLIF ( + 44, - 71 ) DIV - 25
----
-85

skipif mysql # not compatible
query I rowsort label-212
SELECT - 42 * COUNT ( - 30 ) + + 90 + - - CAST ( ( - 42 ) AS INTEGER ) - + + 90 + + + NULLIF ( + 44, - 71 ) / - 25
----
-85

query I rowsort
SELECT ALL + 15 - + 8
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT ALL COUNT( * ) - - 29 + + - 82 + 92 + - 34 - + + 31 * 93 * - COUNT( * ) + - 35 col1
----
2854

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL COUNT ( * ) - - 29 + + - 82 + 92 + - 34 - + + 31 * 93 * - COUNT ( * ) + - 35 col1
----
2854

query I rowsort
SELECT 18 * + 48 AS col0
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT 27 - + - SUM( 41 )
----
68

skipif mysql # not compatible
query I rowsort label-216
SELECT 27 - + - SUM ( 41 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-217
SELECT ALL - CASE 27 WHEN + 98 - + + 59 + - + 40 * + - 53 THEN 7 * + CASE + 44 WHEN - 89 THEN NULL WHEN COUNT( * ) + 48 THEN 45 ELSE NULL END ELSE - CAST( - 78 AS SIGNED ) + 38 END AS col1
----
-116

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL - CASE 27 WHEN + 98 - + + 59 + - + 40 * + - 53 THEN 7 * + CASE + 44 WHEN - 89 THEN NULL WHEN COUNT ( * ) + 48 THEN 45 ELSE NULL END ELSE - CAST ( - 78 AS INTEGER ) + 38 END AS col1
----
-116

query II rowsort
SELECT 8 * + - 98, - 72 * - - 21 AS col1
----
-784
-1512

query I rowsort
SELECT DISTINCT + 98 * + 80 * 82 AS col2
----
642880

query I rowsort
SELECT 27 + 6 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT ALL ( - 91 ) * - COUNT( * ) + - - 12 * - 43 - - 99 AS col0
----
-326

skipif mysql # not compatible
query I rowsort label-221
SELECT ALL ( - 91 ) * - COUNT ( * ) + - - 12 * - 43 - - 99 AS col0
----
-326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-222
SELECT COUNT( * ) * - + 50 * ( CAST( + - 70 AS SIGNED ) )
----
3500

skipif mysql # not compatible
query I rowsort label-222
SELECT COUNT ( * ) * - + 50 * ( CAST ( + - 70 AS INTEGER ) )
----
3500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-223
SELECT ALL + COALESCE ( + COUNT( * ), - 99 DIV + CAST( NULL AS SIGNED ) - 58 * MIN( 77 ) ) + 52
----
53

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL + COALESCE ( + COUNT ( * ), - 99 / + CAST ( NULL AS INTEGER ) - 58 * MIN ( 77 ) ) + 52
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT ALL MIN( 61 )
----
61

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL MIN ( 61 )
----
61

query I rowsort
SELECT DISTINCT - 17 + - 79 + + + 39 col1
----
-57

query I rowsort
SELECT + NULLIF ( COALESCE ( - ( + 94 ), - 60 ), - 84 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT - 33 + - 73 + + + COUNT( * ) + 55 - 29
----
-79

skipif mysql # not compatible
query I rowsort label-227
SELECT - 33 + - 73 + + + COUNT ( * ) + 55 - 29
----
-79

query II rowsort
SELECT ALL 73 + + 89 + + 96 + 98 col0, NULLIF ( - - 2, - 16 ) - + ( + 30 ) + 3
----
356
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT - 17 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-229
SELECT - 17 / + 50
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-230
SELECT 0 + - ( - CAST( + 51 AS SIGNED ) )
----
51

skipif mysql # not compatible
query I rowsort label-230
SELECT 0 + - ( - CAST ( + 51 AS INTEGER ) )
----
51

query I rowsort
SELECT + 26 * - + 12 col2
----
-312

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-232
SELECT DISTINCT + CAST( - 38 AS SIGNED ) DIV 33 * 10 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT + CAST ( - 38 AS INTEGER ) / 33 * 10 AS col2
----
-10

query I rowsort
SELECT ALL - 60 * + 85 * - - 8 AS col0
----
-40800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-234
SELECT ALL - 49 + COALESCE ( CAST( 27 AS SIGNED ), + - 46 * - ( + 79 ) + 79 )
----
-22

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL - 49 + COALESCE ( CAST ( 27 AS INTEGER ), + - 46 * - ( + 79 ) + 79 )
----
-22

query I rowsort
SELECT DISTINCT CASE - - 57 WHEN 94 + - 4 + + 72 * + 21 THEN + 45 + - - 37 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-236
SELECT DISTINCT CASE + ( + 23 ) WHEN - NULLIF ( + ( - 52 ), + + 28 * + 61 * - + 71 + - 86 * ( - COUNT( * ) ) ) THEN - CAST( NULL AS SIGNED ) ELSE NULL END / 57
----
NULL

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT CASE + ( + 23 ) WHEN - NULLIF ( + ( - 52 ), + + 28 * + 61 * - + 71 + - 86 * ( - COUNT ( * ) ) ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END / 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT ALL 36 + - ( - + CASE NULLIF ( - 96, ( 36 ) + - + COUNT( * ) ) WHEN + - COUNT( * ) * 69 THEN 36 WHEN - COALESCE ( COUNT( * ), 45 + 9 ) + 20 THEN - COUNT( * ) + 88 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL 36 + - ( - + CASE NULLIF ( - 96, ( 36 ) + - + COUNT ( * ) ) WHEN + - COUNT ( * ) * 69 THEN 36 WHEN - COALESCE ( COUNT ( * ), 45 + 9 ) + 20 THEN - COUNT ( * ) + 88 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT + 10 * 5 * - COUNT( * ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-238
SELECT + 10 * 5 * - COUNT ( * ) AS col0
----
-50

query I rowsort
SELECT ALL - 99 * + - 3
----
297

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

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

query I rowsort
SELECT ALL 2 - - + 89 AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-242
SELECT - COALESCE ( + - 55, 38 * + MAX( NULLIF ( + 3, - 52 ) ) + - + 72 * 70 * ( NULLIF ( + ( - ( + CAST( NULL AS SIGNED ) ) ), + COUNT( * ) ) ) + 33 ) col0
----
55

skipif mysql # not compatible
query I rowsort label-242
SELECT - COALESCE ( + - 55, 38 * + MAX ( NULLIF ( + 3, - 52 ) ) + - + 72 * 70 * ( NULLIF ( + ( - ( + CAST ( NULL AS INTEGER ) ) ), + COUNT ( * ) ) ) + 33 ) col0
----
55

query I rowsort
SELECT 7 + - 53
----
-46

query I rowsort
SELECT 83 + + 62 * + 93 col1
----
5849

query I rowsort
SELECT 22 + - 43
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-246
SELECT ( 34 ) + + 61 + - 97 + - - COUNT( * ) DIV COALESCE ( - COUNT( * ), - 0 )
----
-3

skipif mysql # not compatible
query I rowsort label-246
SELECT ( 34 ) + + 61 + - 97 + - - COUNT ( * ) / COALESCE ( - COUNT ( * ), - 0 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT ALL 63 - - COUNT( * ) * - 65 * - 60
----
3963

skipif mysql # not compatible
query I rowsort label-247
SELECT ALL 63 - - COUNT ( * ) * - 65 * - 60
----
3963

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

skipif mysql # not compatible
query I rowsort label-248
SELECT CAST ( COUNT ( * ) AS INTEGER ) * - - 71 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT COUNT( * ) + + - 86
----
-85

skipif mysql # not compatible
query I rowsort label-249
SELECT COUNT ( * ) + + - 86
----
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-250
SELECT ALL - 37, - 59 DIV 85 * 1 + 79 + - 58 + + 44 DIV + + 2 AS col1
----
-37
43

skipif mysql # not compatible
query II rowsort label-250
SELECT ALL - 37, - 59 / 85 * 1 + 79 + - 58 + + 44 / + + 2 AS col1
----
-37
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-251
SELECT ALL - 44 AS col0, - COALESCE ( - + MIN( + + 3 ), - NULLIF ( - 40, + - 29 ), 9 ) * - 37 + + - 8 + + COUNT( * ) DIV 25
----
-44
-119

skipif mysql # not compatible
query II rowsort label-251
SELECT ALL - 44 AS col0, - COALESCE ( - + MIN ( + + 3 ), - NULLIF ( - 40, + - 29 ), 9 ) * - 37 + + - 8 + + COUNT ( * ) / 25
----
-44
-119

query II rowsort
SELECT ALL + 84 * + 7 * + 27, - 85 AS col1
----
15876
-85

query I rowsort
SELECT 18 * - 64 * 94
----
-108288

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

skipif mysql # not compatible
query II rowsort label-254
SELECT 78, + ( - SUM ( - 42 ) ) AS col2
----
78
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-255
SELECT CAST( NULL AS SIGNED ) * + 56 * 11 / 7 / - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-255
SELECT CAST ( NULL AS INTEGER ) * + 56 * 11 / 7 / - 72 AS col2
----
NULL

query I rowsort
SELECT 37 + - 17 + 32 + - 25 AS col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-257
SELECT ALL - ( - CASE 59 WHEN + 1 THEN NULL WHEN + 33 THEN + COALESCE ( - 95, + - 0 / - 64 / - AVG ( + CAST( NULL AS SIGNED ) ) / - COALESCE ( 27, - 98 ) ) END ) * + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL - ( - CASE 59 WHEN + 1 THEN NULL WHEN + 33 THEN + COALESCE ( - 95, + - 0 / - 64 / - AVG ( + CAST ( NULL AS INTEGER ) ) / - COALESCE ( 27, - 98 ) ) END ) * + 4 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-258
SELECT 8 DIV - ( + SUM( - + 74 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-258
SELECT 8 / - ( + SUM ( - + 74 ) ) AS col2
----
0

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

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

query I rowsort
SELECT 53 * - 41
----
-2173

query I rowsort
SELECT - ( - - 85 ) * - 94 * 22 * - 91 + ( + 37 ) + - COALESCE ( + 61, - 99 + ( 98 ), ( - 54 ) ) + - 28 col2
----
-15996032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-262
SELECT DISTINCT MAX( - 70 ) + 52 + - - CAST( - + COUNT( * ) AS SIGNED ) col1
----
-19

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT MAX ( - 70 ) + 52 + - - CAST ( - + COUNT ( * ) AS INTEGER ) col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-263
SELECT 12 * - 56 + - CASE - COALESCE ( - 87, - CAST( + COUNT( * ) AS DECIMAL ) * - ( + 6 ) + - 80 * - 10 ) WHEN + 54 THEN NULL ELSE 34 END + 36 * CASE + 40 + 7 WHEN MAX( DISTINCT 10 ) THEN + ( + 57 ) + 15 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-263
SELECT 12 * - 56 + - CASE - COALESCE ( - 87, - CAST ( + COUNT ( * ) AS REAL ) * - ( + 6 ) + - 80 * - 10 ) WHEN + 54 THEN NULL ELSE 34 END + 36 * CASE + 40 + 7 WHEN MAX ( DISTINCT 10 ) THEN + ( + 57 ) + 15 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 40 + + 93
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-265
SELECT ALL + COUNT( * ) + - 97 + - 94, - CASE 9 WHEN + COALESCE ( 88, - 80, + ( + NULLIF ( + CAST( - CASE - COUNT( ALL 30 ) WHEN - 6 THEN CASE CASE - 2 WHEN 40 THEN 0 + - 26 * - 54 ELSE NULL END WHEN + COUNT( + 3 ) THEN + 75 / 97 WHEN 85 * 93 THEN NULL END WHEN - 90 THEN NULL END AS SIGNED ), 44 ) ) * - 74 + MIN( 27 + 85 / 18 ), + ( COUNT( * ) ) ) + - 59 THEN NULL WHEN ( 91 ) * - ( 72 ) THEN + MIN( ALL - 26 ) + 0 / 12 END AS col2
----
-190
NULL

skipif mysql # not compatible
query II rowsort label-265
SELECT ALL + COUNT ( * ) + - 97 + - 94, - CASE 9 WHEN + COALESCE ( 88, - 80, + ( + NULLIF ( + CAST ( - CASE - COUNT ( ALL 30 ) WHEN - 6 THEN CASE CASE - 2 WHEN 40 THEN 0 + - 26 * - 54 ELSE NULL END WHEN + COUNT ( + 3 ) THEN + 75 / 97 WHEN 85 * 93 THEN NULL END WHEN - 90 THEN NULL END AS INTEGER ), 44 ) ) * - 74 + MIN ( 27 + 85 / 18 ), + ( COUNT ( * ) ) ) + - 59 THEN NULL WHEN ( 91 ) * - ( 72 ) THEN + MIN ( ALL - 26 ) + 0 / 12 END AS col2
----
-190
NULL

query I rowsort
SELECT ALL - 22 + 58 AS col1
----
36

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

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT DISTINCT + - 23 + COUNT( * ) * - 95 AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT + - 23 + COUNT ( * ) * - 95 AS col2
----
-118

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

query I rowsort
SELECT ALL + ( 90 ) * - 66 * + COALESCE ( + 45, - 2 ) col2
----
-267300

onlyif mysql # aggregate syntax: 
query II rowsort label-271
SELECT COUNT( * ) * + 55 - + 15 AS col2, 97 * + 57
----
40
5529

skipif mysql # not compatible
query II rowsort label-271
SELECT COUNT ( * ) * + 55 - + 15 AS col2, 97 * + 57
----
40
5529

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-273
SELECT ALL 64 AS col0, - CASE WHEN ( 81 ) >= + ( 41 ) THEN + 29 WHEN NOT ( MIN( ALL 79 ) * - NULLIF ( AVG ( DISTINCT - 77 ) * COALESCE ( - COALESCE ( 70, + SUM( - 82 ), - 59 ) + 13 / + 42, + 57 + - 79 * MAX( 75 ) ), 41 + 41 * - 0 ) + COUNT( * ) ) IS NULL THEN NULL WHEN NOT NULL NOT IN ( 7 - NULLIF ( + 50 + 68, + 71 + 98 ) ) THEN - COUNT( * ) + 76 ELSE NULL END
----
64
-29

skipif mysql # not compatible
query II rowsort label-273
SELECT ALL 64 AS col0, - CASE WHEN ( 81 ) >= + ( 41 ) THEN + 29 WHEN NOT ( MIN ( ALL 79 ) * - NULLIF ( AVG ( DISTINCT - 77 ) * COALESCE ( - COALESCE ( 70, + SUM ( - 82 ), - 59 ) + 13 / + 42, + 57 + - 79 * MAX ( 75 ) ), 41 + 41 * - 0 ) + COUNT ( * ) ) IS NULL THEN NULL WHEN NOT NULL NOT IN ( 7 - NULLIF ( + 50 + 68, + 71 + 98 ) ) THEN - COUNT ( * ) + 76 ELSE NULL END
----
64
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT - CASE ( - 50 ) WHEN 35 * + 28 + COUNT( * ) THEN - COALESCE ( - ( 5 ), - - ( - 79 ), + COUNT( * ) * + ( 95 ), 75 / + 70 ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-274
SELECT - CASE ( - 50 ) WHEN 35 * + 28 + COUNT ( * ) THEN - COALESCE ( - ( 5 ), - - ( - 79 ), + COUNT ( * ) * + ( 95 ), 75 / + 70 ) ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL - 3 * 83
----
-249

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-276
SELECT - 90 * + - 53 + MIN( ALL 38 ) DIV - - 91, + 94 AS col1
----
4770
94

skipif mysql # not compatible
query II rowsort label-276
SELECT - 90 * + - 53 + MIN ( ALL 38 ) / - - 91, + 94 AS col1
----
4770
94

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

skipif mysql # not compatible
query I rowsort label-277
SELECT DISTINCT - 70 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 12 - - 17 AS col0
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-279
SELECT - + NULLIF ( 82, + - 72 ) AS col0, MIN( NULLIF ( 45, + 69 ) ) * - + 48
----
-82
-2160

skipif mysql # not compatible
query II rowsort label-279
SELECT - + NULLIF ( 82, + - 72 ) AS col0, MIN ( NULLIF ( 45, + 69 ) ) * - + 48
----
-82
-2160

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

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

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

query I rowsort
SELECT + 10 * 26
----
260

onlyif mysql # DIV for integer division: 
query II rowsort label-283
SELECT ALL 16 DIV - 78 AS col0, 6 * 55 * + + ( 4 )
----
0
1320

skipif mysql # not compatible
query II rowsort label-283
SELECT ALL 16 / - 78 AS col0, 6 * 55 * + + ( 4 )
----
0
1320

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-284
SELECT ALL 86 AS col0, + COUNT( * ) DIV - NULLIF ( - NULLIF ( + 65, + - CASE 81 WHEN + 67 DIV + 38 THEN NULL ELSE + + ( + 65 ) + 30 * 38 END * + CASE 1 WHEN 93 + 81 THEN 42 END ), + 62 ) + - 15 * 10 col0
----
86
-150

skipif mysql # not compatible
query II rowsort label-284
SELECT ALL 86 AS col0, + COUNT ( * ) / - NULLIF ( - NULLIF ( + 65, + - CASE 81 WHEN + 67 / + 38 THEN NULL ELSE + + ( + 65 ) + 30 * 38 END * + CASE 1 WHEN 93 + 81 THEN 42 END ), + 62 ) + - 15 * 10 col0
----
86
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-285
SELECT 82 AS col1, - 11 * COUNT( * ) * CASE 29 WHEN + COUNT( DISTINCT - - 8 ) THEN - 25 ELSE NULL END col1
----
82
NULL

skipif mysql # not compatible
query II rowsort label-285
SELECT 82 AS col1, - 11 * COUNT ( * ) * CASE 29 WHEN + COUNT ( DISTINCT - - 8 ) THEN - 25 ELSE NULL END col1
----
82
NULL

query I rowsort
SELECT ALL NULLIF ( + 40, + 29 * 21 + 36 ) * - ( 81 ) AS col2
----
-3240

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT + NULLIF ( 81, - MAX( - 42 ) + - - 97 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-287
SELECT + NULLIF ( 81, - MAX ( - 42 ) + - - 97 ) AS col1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-288
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - 17 * + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-288
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - 17 * + 50 AS col1
----
NULL

query I rowsort
SELECT ALL - 73 * - - 86 + - + 89
----
-6367

query I rowsort
SELECT ALL - 40 * - + 82 * + 31 + - 4 AS col1
----
101676

query I rowsort
SELECT DISTINCT 8 * + - 4 * - 25
----
800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-292
SELECT 26 DIV - NULLIF ( - 7, + MAX( DISTINCT - 57 ) + - + 16 DIV - + 73 - 91 + - COUNT( * ) * - COUNT( * ) + + 40 ) + + COUNT( * ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-292
SELECT 26 / - NULLIF ( - 7, + MAX ( DISTINCT - 57 ) + - + 16 / - + 73 - 91 + - COUNT ( * ) * - COUNT ( * ) + + 40 ) + + COUNT ( * ) AS col0
----
4

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-294
SELECT 26 * - 97 * + CASE MIN( ALL CAST( + 7 AS DECIMAL ) ) WHEN - 82 + + 2 + - ( + 22 ) THEN NULL ELSE + 51 + 12 END + - 74 DIV 44 AS col0
----
-158887

skipif mysql # not compatible
query I rowsort label-294
SELECT 26 * - 97 * + CASE MIN ( ALL CAST ( + 7 AS REAL ) ) WHEN - 82 + + 2 + - ( + 22 ) THEN NULL ELSE + 51 + 12 END + - 74 / 44 AS col0
----
-158887

query I rowsort
SELECT - 90 - + 10 * - + 23
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-296
SELECT ALL 96 DIV + + 32
----
3

skipif mysql # not compatible
query I rowsort label-296
SELECT ALL 96 / + + 32
----
3

query II rowsort
SELECT ALL + + ( - 4 ) AS col2, - 76 AS col2
----
-4
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-298
SELECT ALL + AVG ( ALL - + 94 ) * - - 72 * - 54 - - 76 + + CAST( NULL AS SIGNED ) + - COALESCE ( 14, COUNT( * ), 64 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL + AVG ( ALL - + 94 ) * - - 72 * - 54 - - 76 + + CAST ( NULL AS INTEGER ) + - COALESCE ( 14, COUNT ( * ), 64 ) AS col2
----
NULL

query I rowsort
SELECT + + 4 * + ( - ( - - 58 ) ) AS col0
----
-232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-300
SELECT + + ( CAST( - 60 AS SIGNED ) ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-300
SELECT + + ( CAST ( - 60 AS INTEGER ) ) AS col2
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-301
SELECT - - COUNT( * ) + 87 DIV 12 + - + ( COALESCE ( - 58, - 88 * 82 DIV + + ( - - 98 ) * - 55 ) ) + 96
----
162

skipif mysql # not compatible
query I rowsort label-301
SELECT - - COUNT ( * ) + 87 / 12 + - + ( COALESCE ( - 58, - 88 * 82 / + + ( - - 98 ) * - 55 ) ) + 96
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-302
SELECT DISTINCT - 65 * - COALESCE ( - 64, - + 47 + - - ( + COALESCE ( 19, + COUNT( * ) DIV 2 ) ), - - ( - 32 ) ) + - CAST( MAX( COALESCE ( + 64, + 73 ) ) AS SIGNED )
----
-4224

skipif mysql # not compatible
query I rowsort label-302
SELECT DISTINCT - 65 * - COALESCE ( - 64, - + 47 + - - ( + COALESCE ( 19, + COUNT ( * ) / 2 ) ), - - ( - 32 ) ) + - CAST ( MAX ( COALESCE ( + 64, + 73 ) ) AS INTEGER )
----
-4224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-303
SELECT ALL 45 * + 28 + + + 46 - CASE - COUNT( * ) WHEN MAX( - CASE + 54 WHEN 92 THEN 68 WHEN 52 THEN CAST( NULL AS SIGNED ) ELSE NULL END ) THEN + COUNT( * ) WHEN 85 THEN - 81 * ( 57 * - ( - CASE - 79 WHEN AVG ( ALL + 72 ) THEN NULL WHEN - COALESCE ( - 12, ( NULLIF ( - COUNT( * ), - ( 64 ) - 27 ) ), + CAST( - 93 AS SIGNED ) - - 26 * - 78 ) * 93 THEN 27 / - 96 ELSE 53 * 52 END * COUNT( * ) ) ) WHEN + CAST( MIN( ALL - 4 ) AS SIGNED ) * COUNT( * ) + 83 THEN - 34 + ( COALESCE ( + 14, - 89 / + 84 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL 45 * + 28 + + + 46 - CASE - COUNT ( * ) WHEN MAX ( - CASE + 54 WHEN 92 THEN 68 WHEN 52 THEN CAST ( NULL AS INTEGER ) ELSE NULL END ) THEN + COUNT ( * ) WHEN 85 THEN - 81 * ( 57 * - ( - CASE - 79 WHEN AVG ( ALL + 72 ) THEN NULL WHEN - COALESCE ( - 12, ( NULLIF ( - COUNT ( * ), - ( 64 ) - 27 ) ), + CAST ( - 93 AS INTEGER ) - - 26 * - 78 ) * 93 THEN 27 / - 96 ELSE 53 * 52 END * COUNT ( * ) ) ) WHEN + CAST ( MIN ( ALL - 4 ) AS INTEGER ) * COUNT ( * ) + 83 THEN - 34 + ( COALESCE ( + 14, - 89 / + 84 ) ) ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT ALL + - 95, + 90 AS col0
----
-95
90

query I rowsort
SELECT - ( - 98 ) * + ( + - 84 ) + + - 30 * - - 89 - + - 69
----
-10833

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT DISTINCT COUNT( * ) * COUNT( * ) - - + 66
----
67

skipif mysql # not compatible
query I rowsort label-306
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) - - + 66
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-307
SELECT + + 52 + 35 + + AVG ( ALL + 78 ) - 33 + CAST( NULL AS SIGNED ) * 71 * + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-307
SELECT + + 52 + 35 + + AVG ( ALL + 78 ) - 33 + CAST ( NULL AS INTEGER ) * 71 * + 34 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-308
SELECT ALL - + 53 - + - COALESCE ( + 61, + COUNT( * ), + 36 * + 78 * + 77 - - 11 * SUM( DISTINCT 35 ) + CAST( 34 AS SIGNED ) ) * 54
----
3241

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL - + 53 - + - COALESCE ( + 61, + COUNT ( * ), + 36 * + 78 * + 77 - - 11 * SUM ( DISTINCT 35 ) + CAST ( 34 AS INTEGER ) ) * 54
----
3241

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-309
SELECT ALL + 82 DIV - - CAST( 13 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL + 82 / - - CAST ( 13 AS INTEGER )
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-310
SELECT - - 77 + 89 DIV + + 14
----
83

skipif mysql # not compatible
query I rowsort label-310
SELECT - - 77 + 89 / + + 14
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT - COUNT( * ) + - 13 * 41 AS col2
----
-534

skipif mysql # not compatible
query I rowsort label-311
SELECT - COUNT ( * ) + - 13 * 41 AS col2
----
-534

query I rowsort
SELECT - + 2 * + - 76 + + + 75 col0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT SUM( - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-313
SELECT SUM ( - 84 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT - 81 + + 99 + + - COUNT( DISTINCT - 25 ) + + + COUNT( * ) * - - 56
----
73

skipif mysql # not compatible
query I rowsort label-314
SELECT - 81 + + 99 + + - COUNT ( DISTINCT - 25 ) + + + COUNT ( * ) * - - 56
----
73

query I rowsort
SELECT ALL 45 * - + 30 AS col1
----
-1350

onlyif mysql # DIV for integer division: 
query II rowsort label-316
SELECT ALL ( - COALESCE ( + 85, 48 DIV + 81 ) ), + ( - 43 ) - + 45 AS col2
----
-85
-88

skipif mysql # not compatible
query II rowsort label-316
SELECT ALL ( - COALESCE ( + 85, 48 / + 81 ) ), + ( - 43 ) - + 45 AS col2
----
-85
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-317
SELECT DISTINCT - COUNT( * ) * + CAST( - 99 AS SIGNED ) DIV + - 68
----
-1

skipif mysql # not compatible
query I rowsort label-317
SELECT DISTINCT - COUNT ( * ) * + CAST ( - 99 AS INTEGER ) / + - 68
----
-1

query I rowsort
SELECT + 4 + 30 col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT ALL - 84 * - + COUNT( * ) * + 3 * 3 AS col1
----
756

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL - 84 * - + COUNT ( * ) * + 3 * 3 AS col1
----
756

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT + MIN( DISTINCT 47 ) + - 21 + - COALESCE ( + - 55, COALESCE ( 9, - 46, + 42 ) )
----
81

skipif mysql # not compatible
query I rowsort label-321
SELECT + MIN ( DISTINCT 47 ) + - 21 + - COALESCE ( + - 55, COALESCE ( 9, - 46, + 42 ) )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-322
SELECT ALL MIN( ALL 15 ) + + 89 + - COUNT( * ) + COALESCE ( - - 87, - COUNT( * ) - 29, - - 26 ) + + CAST( NULL AS SIGNED ) + 66 + - 68 + 85 * - COUNT( * ) / COUNT( * ) * 77 * 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-322
SELECT ALL MIN ( ALL 15 ) + + 89 + - COUNT ( * ) + COALESCE ( - - 87, - COUNT ( * ) - 29, - - 26 ) + + CAST ( NULL AS INTEGER ) + 66 + - 68 + 85 * - COUNT ( * ) / COUNT ( * ) * 77 * 70 AS col1
----
NULL

query I rowsort
SELECT - 44 + 15 - + 9 + + 61
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-324
SELECT ALL + COUNT( * ) + - CASE + 41 WHEN + 56 - + 92 * + 96 * - 74 + - CAST( + 49 AS DECIMAL ) - + + COUNT( * ) / - CAST( - + 33 AS SIGNED ) * + 36 * + 6 THEN + MIN( - 62 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL + COUNT ( * ) + - CASE + 41 WHEN + 56 - + 92 * + 96 * - 74 + - CAST ( + 49 AS REAL ) - + + COUNT ( * ) / - CAST ( - + 33 AS INTEGER ) * + 36 * + 6 THEN + MIN ( - 62 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 32 * 78 AS col0
----
2496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-326
SELECT CAST( - - 73 AS SIGNED ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-326
SELECT CAST ( - - 73 AS INTEGER ) AS col1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-327
SELECT ALL - COUNT( * ) DIV - COUNT( * ) + - 99 * + 95 + - 58 + - + 66 - - 60 * 73
----
-5148

skipif mysql # not compatible
query I rowsort label-327
SELECT ALL - COUNT ( * ) / - COUNT ( * ) + - 99 * + 95 + - 58 + - + 66 - - 60 * 73
----
-5148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-328
SELECT DISTINCT + 35 DIV 46 * - 90 * - 73 + - + MIN( ALL + 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT + 35 / 46 * - 90 * - 73 + - + MIN ( ALL + 48 )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-329
SELECT ALL ( 83 ) * - - 86 * 88 + 10 + - 48 * - COUNT( DISTINCT + + 3 ) + - 25 + 92 + - - 79 + + 84 DIV 66 AS col2
----
628349

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL ( 83 ) * - - 86 * 88 + 10 + - 48 * - COUNT ( DISTINCT + + 3 ) + - 25 + 92 + - - 79 + + 84 / 66 AS col2
----
628349

onlyif mysql # aggregate syntax: 
query II rowsort label-330
SELECT DISTINCT 55 * + + 17 col1, + 92 + - + 15 + - 94 + NULLIF ( + 13, COUNT( * ) ) AS col0
----
935
-4

skipif mysql # not compatible
query II rowsort label-330
SELECT DISTINCT 55 * + + 17 col1, + 92 + - + 15 + - 94 + NULLIF ( + 13, COUNT ( * ) ) AS col0
----
935
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-331
SELECT + 66 + - + 88 DIV COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-331
SELECT + 66 + - + 88 / COUNT ( * )
----
-22

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

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

query II rowsort
SELECT ALL COALESCE ( - + 77, - + 52 - + 45 ) * + 82 AS col2, - 92 + - + 39 - ( - ( + ( + - 39 ) ) ) AS col1
----
-6314
-170

query I rowsort
SELECT + - 70 * 76 + - + 75 AS col0
----
-5395

onlyif mysql # DIV for integer division: 
query III rowsort label-335
SELECT ALL 96 * - - 60 AS col1, 20, + + 41 DIV - 44 * + 96 AS col2
----
5760
20
0

skipif mysql # not compatible
query III rowsort label-335
SELECT ALL 96 * - - 60 AS col1, 20, + + 41 / - 44 * + 96 AS col2
----
5760
20
0

query I rowsort
SELECT + 22 * - 38 * - 30 + - 47
----
25033

query I rowsort
SELECT ALL - 36 * - ( + + 61 ) AS col0
----
2196

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT ALL + + COALESCE ( 77, COUNT( + 17 ) * 78 * 36 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL + + COALESCE ( 77, COUNT ( + 17 ) * 78 * 36 ) AS col1
----
77

query I rowsort
SELECT + 72 + + + NULLIF ( + - 29, + 50 ) AS col1
----
43

query I rowsort
SELECT ALL + + NULLIF ( - 65, - 65 ) AS col2
----
NULL

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

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

query I rowsort
SELECT - 99 + + - 41
----
-140

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

query I rowsort
SELECT DISTINCT + 87 * + - 68 * - 50
----
295800

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT ALL CASE + 34 WHEN + 89 + - - SUM( - 41 ) + - 23 * - 96 * - + 35 + - COUNT( * ) THEN + - 67 WHEN + 65 THEN NULL WHEN + 0 THEN - 52 * - 36 ELSE - CASE - COUNT( 82 ) WHEN 17 * + 56 + + 52 THEN + 92 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL CASE + 34 WHEN + 89 + - - SUM ( - 41 ) + - 23 * - 96 * - + 35 + - COUNT ( * ) THEN + - 67 WHEN + 65 THEN NULL WHEN + 0 THEN - 52 * - 36 ELSE - CASE - COUNT ( 82 ) WHEN 17 * + 56 + + 52 THEN + 92 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT ALL - MIN( DISTINCT 22 ) + - 31 * - 95
----
2923

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL - MIN ( DISTINCT 22 ) + - 31 * - 95
----
2923

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-347
SELECT ( - 73 ) * + 76 AS col2, - CAST( NULL AS SIGNED )
----
-5548
NULL

skipif mysql # not compatible
query II rowsort label-347
SELECT ( - 73 ) * + 76 AS col2, - CAST ( NULL AS INTEGER )
----
-5548
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-348
SELECT 28 * NULLIF ( + 38, + 79 * + + CAST( NULL AS SIGNED ) ) AS col2
----
1064

skipif mysql # not compatible
query I rowsort label-348
SELECT 28 * NULLIF ( + 38, + 79 * + + CAST ( NULL AS INTEGER ) ) AS col2
----
1064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-349
SELECT 2 * + CAST( ( + 75 ) AS SIGNED )
----
150

skipif mysql # not compatible
query I rowsort label-349
SELECT 2 * + CAST ( ( + 75 ) AS INTEGER )
----
150

query II rowsort
SELECT - 32, 66 AS col2
----
-32
66

query I rowsort
SELECT DISTINCT - 71 + - - 75 col1
----
4

query I rowsort
SELECT 27 * + 21
----
567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-353
SELECT ALL - CASE WHEN NULL >= - 51 THEN NULL ELSE + 42 - 22 + + - 29 END * + CASE - 40 WHEN + 8 DIV - 29 * + - 42 THEN + - 87 DIV - + 37 DIV 50 + + ( - ( 18 ) ) WHEN 36 - - 6 THEN NULL ELSE + 58 END * COUNT( * ) AS col0
----
522

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL - CASE WHEN NULL >= - 51 THEN NULL ELSE + 42 - 22 + + - 29 END * + CASE - 40 WHEN + 8 / - 29 * + - 42 THEN + - 87 / - + 37 / 50 + + ( - ( 18 ) ) WHEN 36 - - 6 THEN NULL ELSE + 58 END * COUNT ( * ) AS col0
----
522

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT ALL + 26 + - 35 + 53 - COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL + 26 + - 35 + 53 - COUNT ( * ) AS col2
----
43

query I rowsort
SELECT DISTINCT - 35 * 60 AS col2
----
-2100

query I rowsort
SELECT DISTINCT + 36 * + 8 AS col2
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-357
SELECT 61, - 34 * - NULLIF ( - 76, ( + 33 ) + + 28 ) / 8 + CAST( NULL AS SIGNED ) + + 5 AS col1
----
61
NULL

skipif mysql # not compatible
query II rowsort label-357
SELECT 61, - 34 * - NULLIF ( - 76, ( + 33 ) + + 28 ) / 8 + CAST ( NULL AS INTEGER ) + + 5 AS col1
----
61
NULL

query I rowsort
SELECT ALL - 63 - - 95 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT 52 + + 56 + 10 * 89 / - + SUM( - + 39 ) * CASE AVG ( 53 ) WHEN 67 THEN + 15 * - 38 + - 36 - 46 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-359
SELECT 52 + + 56 + 10 * 89 / - + SUM ( - + 39 ) * CASE AVG ( 53 ) WHEN 67 THEN + 15 * - 38 + - 36 - 46 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT DISTINCT - CASE - 64 WHEN + + 60 * - 61 * - + 61 THEN + SUM( ALL ( - 66 ) ) WHEN + 42 THEN + 28 * + 31 + CASE - - ( - 66 ) WHEN + 51 THEN + 26 * 31 + - 99 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-360
SELECT DISTINCT - CASE - 64 WHEN + + 60 * - 61 * - + 61 THEN + SUM ( ALL ( - 66 ) ) WHEN + 42 THEN + 28 * + 31 + CASE - - ( - 66 ) WHEN + 51 THEN + 26 * 31 + - 99 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT ALL - 76 / + + 56 * + COALESCE ( - SUM( - - 96 ), CASE - - 74 WHEN - - COUNT( * ) + - ( 18 ) THEN + 24 ELSE NULL END ) * CASE 68 WHEN SUM( - 28 ) THEN 43 / - 24 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL - 76 / + + 56 * + COALESCE ( - SUM ( - - 96 ), CASE - - 74 WHEN - - COUNT ( * ) + - ( 18 ) THEN + 24 ELSE NULL END ) * CASE 68 WHEN SUM ( - 28 ) THEN 43 / - 24 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-362
SELECT + COUNT( * ) * + 94 DIV + ( 86 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-362
SELECT + COUNT ( * ) * + 94 / + ( 86 ) AS col0
----
1

query I rowsort
SELECT ALL - - 12 - - 35
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-364
SELECT DISTINCT + 32 DIV - 78 * 92
----
0

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT + 32 / - 78 * 92
----
0

query I rowsort
SELECT DISTINCT - 74 - - 89 * - - 97 + - 92 + + 71 * 69 AS col0
----
13366

query I rowsort
SELECT + 61 - - - 48 + + - 28
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-367
SELECT ALL COUNT( * ) * - ( - 46 ) + + NULLIF ( - 12, + 82 ), + NULLIF ( + + COUNT( * ), - ( + - COUNT( * ) ) * - 65 ) * - 12 AS col2
----
34
-12

skipif mysql # not compatible
query II rowsort label-367
SELECT ALL COUNT ( * ) * - ( - 46 ) + + NULLIF ( - 12, + 82 ), + NULLIF ( + + COUNT ( * ), - ( + - COUNT ( * ) ) * - 65 ) * - 12 AS col2
----
34
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-368
SELECT ALL - + 53, COUNT( * ) * 0 * COUNT( * ) + + 5 AS col2
----
-53
5

skipif mysql # not compatible
query II rowsort label-368
SELECT ALL - + 53, COUNT ( * ) * 0 * COUNT ( * ) + + 5 AS col2
----
-53
5

onlyif mysql # aggregate syntax: 
query II rowsort label-369
SELECT DISTINCT - - 1, - COUNT( * ) * + 31 * - + 65 AS col0
----
1
2015

skipif mysql # not compatible
query II rowsort label-369
SELECT DISTINCT - - 1, - COUNT ( * ) * + 31 * - + 65 AS col0
----
1
2015

query I rowsort
SELECT DISTINCT - + 75 col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT DISTINCT 15 * + 73 * + 96 * - ( + 68 ) * + COUNT( * ) + ( - 11 ) - - ( + MAX( DISTINCT - + 76 ) )
----
-7148247

skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT 15 * + 73 * + 96 * - ( + 68 ) * + COUNT ( * ) + ( - 11 ) - - ( + MAX ( DISTINCT - + 76 ) )
----
-7148247

query I rowsort
SELECT DISTINCT 85 + + 57 col2
----
142

query II rowsort
SELECT 38 - 52 + + 42, + 4 * + + 8 + - 18 AS col0
----
28
14

query I rowsort
SELECT ALL 46 + + 65 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT - 16 + + 17 + - - CASE - + COUNT( * ) WHEN + 11 THEN 96 END + - 28 + COALESCE ( - 24, - 31 ) / - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-375
SELECT - 16 + + 17 + - - CASE - + COUNT ( * ) WHEN + 11 THEN 96 END + - 28 + COALESCE ( - 24, - 31 ) / - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT - 46 AS col0, - 2
----
-46
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-377
SELECT COALESCE ( - - 37, + - 96 + - + CAST( NULL AS SIGNED ), + + 19, - COALESCE ( + + COUNT( * ), 49, 60 ) ) + + CASE + 24 WHEN - 40 THEN - - 69 END - + + 96 - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-377
SELECT COALESCE ( - - 37, + - 96 + - + CAST ( NULL AS INTEGER ), + + 19, - COALESCE ( + + COUNT ( * ), 49, 60 ) ) + + CASE + 24 WHEN - 40 THEN - - 69 END - + + 96 - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-378
SELECT ALL 63 + + 46 * + 66 + - CAST( 90 AS SIGNED ) DIV + 6 * + COUNT( * ) AS col2
----
3084

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL 63 + + 46 * + 66 + - CAST ( 90 AS INTEGER ) / + 6 * + COUNT ( * ) AS col2
----
3084

query I rowsort
SELECT 18 + + - 71 * - + 95 AS col0
----
6763

query I rowsort
SELECT DISTINCT 92 + ( 71 ) col2
----
163

query I rowsort
SELECT DISTINCT ( - ( 61 ) ) * - 35 * + - 89
----
-190015

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-382
SELECT DISTINCT ( + COALESCE ( - 94, - - 86 DIV - 61 * + + MIN( 96 ) ) ) * - 61 AS col2
----
5734

skipif mysql # not compatible
query I rowsort label-382
SELECT DISTINCT ( + COALESCE ( - 94, - - 86 / - 61 * + + MIN ( 96 ) ) ) * - 61 AS col2
----
5734

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-383
SELECT ALL + 94 + - COUNT( * ) AS col2, ( + 8 ) DIV 20 * + - 89 * + 21 - + - 93 * - 66 + - 53
----
93
-6191

skipif mysql # not compatible
query II rowsort label-383
SELECT ALL + 94 + - COUNT ( * ) AS col2, ( + 8 ) / 20 * + - 89 * + 21 - + - 93 * - 66 + - 53
----
93
-6191

query I rowsort
SELECT 52 + 8 col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-385
SELECT 62 + - 49 DIV + 39
----
61

skipif mysql # not compatible
query I rowsort label-385
SELECT 62 + - 49 / + 39
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-386
SELECT DISTINCT - 4 DIV CAST( MIN( ALL - 54 ) AS SIGNED ) DIV - - 9 * + 95 + - 97 + - ( - + 56 ) * - + 24 AS col2
----
-1441

skipif mysql # not compatible
query I rowsort label-386
SELECT DISTINCT - 4 / CAST ( MIN ( ALL - 54 ) AS INTEGER ) / - - 9 * + 95 + - 97 + - ( - + 56 ) * - + 24 AS col2
----
-1441

query II rowsort
SELECT 72 + + 58 AS col1, + 10 AS col1
----
130
10

query I rowsort
SELECT 81 + - 43
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT - COALESCE ( + + 81, - + COALESCE ( + COUNT( * ), 5 + + COUNT( * ) + + - 92 + - + 5 + + 92 * - 40 + - 23 ), - + 52 * + 87 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-389
SELECT - COALESCE ( + + 81, - + COALESCE ( + COUNT ( * ), 5 + + COUNT ( * ) + + - 92 + - + 5 + + 92 * - 40 + - 23 ), - + 52 * + 87 ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT ALL - SUM( 73 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL - SUM ( 73 ) AS col1
----
-73

query I rowsort
SELECT - + 73 + 85
----
12

query I rowsort
SELECT + - 3 * - 95 * - + 40 * + - 84 - 63 AS col1
----
957537

query I rowsort
SELECT ALL + + 80 * + 50 * + - 95 col0
----
-380000

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT DISTINCT NULLIF ( ( - - 38 ), - COUNT( * ) - ( 29 ) ) * + SUM( DISTINCT + 64 ) + + + ( + + 20 )
----
2452

skipif mysql # not compatible
query I rowsort label-394
SELECT DISTINCT NULLIF ( ( - - 38 ), - COUNT ( * ) - ( 29 ) ) * + SUM ( DISTINCT + 64 ) + + + ( + + 20 )
----
2452

query I rowsort
SELECT DISTINCT + + 60 * - + 31 + - 99 AS col1
----
-1959

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT ALL - - 94 * - - COUNT( * ) + + 85
----
179

skipif mysql # not compatible
query I rowsort label-396
SELECT ALL - - 94 * - - COUNT ( * ) + + 85
----
179

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-398
SELECT + - SUM( - 86 ) + COALESCE ( 36, + + 87 DIV 13 - + MAX( + 31 ) ) * + 64 AS col0
----
2390

skipif mysql # not compatible
query I rowsort label-398
SELECT + - SUM ( - 86 ) + COALESCE ( 36, + + 87 / 13 - + MAX ( + 31 ) ) * + 64 AS col0
----
2390

query I rowsort
SELECT + 75 * - + 70 AS col0
----
-5250

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-400
SELECT CAST( + + 70 AS SIGNED ) col1, + 51 * 87 * - 34 col2
----
70
-150858

skipif mysql # not compatible
query II rowsort label-400
SELECT CAST ( + + 70 AS INTEGER ) col1, + 51 * 87 * - 34 col2
----
70
-150858

query I rowsort
SELECT + ( - 63 ) * + 90 + + 14 col0
----
-5656

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT - + 71 * - 85 * - 66 + + CASE - 2 WHEN - 77 THEN - - 43 WHEN 17 * + 8 * + + 13 * - - COUNT( * ) THEN 41 / - 2 WHEN + 1 THEN - 76 + 11 WHEN SUM( 51 ) * COUNT( * ) THEN 44 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-402
SELECT - + 71 * - 85 * - 66 + + CASE - 2 WHEN - 77 THEN - - 43 WHEN 17 * + 8 * + + 13 * - - COUNT ( * ) THEN 41 / - 2 WHEN + 1 THEN - 76 + 11 WHEN SUM ( 51 ) * COUNT ( * ) THEN 44 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-403
SELECT COUNT( * ) AS col1, 59 DIV 92
----
1
0

skipif mysql # not compatible
query II rowsort label-403
SELECT COUNT ( * ) AS col1, 59 / 92
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT SUM( - - 77 )
----
77

skipif mysql # not compatible
query I rowsort label-404
SELECT SUM ( - - 77 )
----
77

query I rowsort
SELECT - 69 * + 73
----
-5037

query I rowsort
SELECT + ( + + 90 ) * 28 * 46 + + + NULLIF ( + 22, + 87 )
----
115942

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT - MAX( 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-407
SELECT - MAX ( 48 ) AS col1
----
-48

query I rowsort
SELECT ALL + 62 + - 42 col1
----
20

query I rowsort
SELECT DISTINCT 86 + + - 33 AS col2
----
53

query II rowsort
SELECT DISTINCT 86 AS col1, 73 + + 39 AS col0
----
86
112

query I rowsort
SELECT ALL 9 - + 72 col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT - MAX( DISTINCT 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-412
SELECT - MAX ( DISTINCT 80 ) AS col0
----
-80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-413
SELECT DISTINCT 14 DIV + CAST( + AVG ( DISTINCT + 58 ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-413
SELECT DISTINCT 14 / + CAST ( + AVG ( DISTINCT + 58 ) AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-414
SELECT ALL 73 - - + 99 * - 82 col1, MIN( DISTINCT - + 11 )
----
-8045
-11

skipif mysql # not compatible
query II rowsort label-414
SELECT ALL 73 - - + 99 * - 82 col1, MIN ( DISTINCT - + 11 )
----
-8045
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT DISTINCT 32 * MAX( - - 14 ) * + 8 AS col0
----
3584

skipif mysql # not compatible
query I rowsort label-415
SELECT DISTINCT 32 * MAX ( - - 14 ) * + 8 AS col0
----
3584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-416
SELECT + 55 - - - 0 * COALESCE ( - 26, - 32 DIV - MIN( DISTINCT 59 ) ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-416
SELECT + 55 - - - 0 * COALESCE ( - 26, - 32 / - MIN ( DISTINCT 59 ) ) AS col2
----
55

query I rowsort
SELECT ALL 67 * - + ( + 44 ) AS col0
----
-2948

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

query I rowsort
SELECT + 7 * - 41 AS col0
----
-287

onlyif mysql # DIV for integer division: 
query II rowsort label-420
SELECT ALL 13 * 95 * - 72 AS col0, 36 DIV - 30
----
-88920
-1

skipif mysql # not compatible
query II rowsort label-420
SELECT ALL 13 * 95 * - 72 AS col0, 36 / - 30
----
-88920
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-421
SELECT + 25 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-421
SELECT + 25 / - CAST ( NULL AS INTEGER )
----
NULL

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

query I rowsort
SELECT + 60 + ( - - ( 75 ) ) AS col2
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-424
SELECT DISTINCT 8 DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT 8 / - 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT - - 13 * - 44 + + + COUNT( * ) * - COUNT( * )
----
-573

skipif mysql # not compatible
query I rowsort label-425
SELECT - - 13 * - 44 + + + COUNT ( * ) * - COUNT ( * )
----
-573

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-426
SELECT + - 44 + + + CASE - + 84 WHEN - 22 THEN + COUNT( * ) WHEN - 52 * 66 + 35 + CAST( + COUNT( DISTINCT - - ( - NULLIF ( 40, 41 ) ) ) AS SIGNED ) THEN + - 65 ELSE COALESCE ( - 92, - COUNT( + 24 ) + 95 ) END AS col1
----
-136

skipif mysql # not compatible
query I rowsort label-426
SELECT + - 44 + + + CASE - + 84 WHEN - 22 THEN + COUNT ( * ) WHEN - 52 * 66 + 35 + CAST ( + COUNT ( DISTINCT - - ( - NULLIF ( 40, 41 ) ) ) AS INTEGER ) THEN + - 65 ELSE COALESCE ( - 92, - COUNT ( + 24 ) + 95 ) END AS col1
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT + - COUNT( * ) * + - 55 + + NULLIF ( - 42, - 83 + 98 + - COALESCE ( + - MAX( + 13 ), + 50, - 59 ) - + + 69 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-427
SELECT + - COUNT ( * ) * + - 55 + + NULLIF ( - 42, - 83 + 98 + - COALESCE ( + - MAX ( + 13 ), + 50, - 59 ) - + + 69 ) AS col1
----
13

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

query I rowsort
SELECT ALL - 97 * + 10
----
-970

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

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

query I rowsort
SELECT - + 86 * 43 AS col2
----
-3698

query II rowsort
SELECT DISTINCT - 27 * + - ( + 43 ) * - - 28 + + 67 AS col2, 89 AS col1
----
32575
89

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT ALL - MAX( ALL 58 ) * - - COUNT( * ) + - 68 * + + 21 + - - COALESCE ( + 17, - 50 ) + - 33 AS col1
----
-1502

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL - MAX ( ALL 58 ) * - - COUNT ( * ) + - 68 * + + 21 + - - COALESCE ( + 17, - 50 ) + - 33 AS col1
----
-1502

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-434
SELECT DISTINCT + - 47 AS col1, + 44 / 67 * - COALESCE ( - 71, 93 ) * + 4 + + ( 30 ) + 22 - - 97 + - 65 + + + ( + 35 ) * - SUM( ALL 66 ) + - CAST( NULL AS SIGNED ) * - 34
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-434
SELECT DISTINCT + - 47 AS col1, + 44 / 67 * - COALESCE ( - 71, 93 ) * + 4 + + ( 30 ) + 22 - - 97 + - 65 + + + ( + 35 ) * - SUM ( ALL 66 ) + - CAST ( NULL AS INTEGER ) * - 34
----
-47
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-435
SELECT DISTINCT + 89 AS col0, COUNT( * ) DIV + 93 * - - COUNT( * ) AS col1
----
89
0

skipif mysql # not compatible
query II rowsort label-435
SELECT DISTINCT + 89 AS col0, COUNT ( * ) / + 93 * - - COUNT ( * ) AS col1
----
89
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-437
SELECT COALESCE ( + 70, + + 76, - 6, + + CAST( 68 AS SIGNED ) + - 17 )
----
70

skipif mysql # not compatible
query I rowsort label-437
SELECT COALESCE ( + 70, + + 76, - 6, + + CAST ( 68 AS INTEGER ) + - 17 )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-438
SELECT ALL + COUNT( * ) * - - AVG ( - 8 ) / + CASE 4 WHEN - - CAST( NULL AS SIGNED ) * - 16 - + NULLIF ( - - NULLIF ( - + 65, 79 * - + ( CAST( NULL AS SIGNED ) ) + + 65 + 28 + - 65 + ( + 12 ) * + 15 ), - 29 ) THEN - 45 ELSE - CASE 59 WHEN + 87 * 53 + 85 THEN - CASE - 56 WHEN + COALESCE ( 50, 95 - 31 / CAST( NULL AS SIGNED ), + 2 / - 71 ) * 71 THEN CAST( NULL AS DECIMAL ) ELSE + 97 END WHEN 73 THEN NULL ELSE NULL END + + 22 END * + 8 - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL + COUNT ( * ) * - - AVG ( - 8 ) / + CASE 4 WHEN - - CAST ( NULL AS INTEGER ) * - 16 - + NULLIF ( - - NULLIF ( - + 65, 79 * - + ( CAST ( NULL AS INTEGER ) ) + + 65 + 28 + - 65 + ( + 12 ) * + 15 ), - 29 ) THEN - 45 ELSE - CASE 59 WHEN + 87 * 53 + 85 THEN - CASE - 56 WHEN + COALESCE ( 50, 95 - 31 / CAST ( NULL AS INTEGER ), + 2 / - 71 ) * 71 THEN CAST ( NULL AS REAL ) ELSE + 97 END WHEN 73 THEN NULL ELSE NULL END + + 22 END * + 8 - 49
----
NULL

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

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

query I rowsort
SELECT ALL + ( - 80 ) AS col2
----
-80

query I rowsort
SELECT - 74 * ( + 47 ) * - - 27 + COALESCE ( 1, 57 + 5, + 8 ) AS col1
----
-93905

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-442
SELECT ALL - CAST( NULL AS DECIMAL ) / - 92 * + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-442
SELECT ALL - CAST ( NULL AS REAL ) / - 92 * + 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT - 85 + 16 * - SUM( - + 58 )
----
843

skipif mysql # not compatible
query I rowsort label-443
SELECT - 85 + 16 * - SUM ( - + 58 )
----
843

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-445
SELECT - 3 DIV - - 14
----
0

skipif mysql # not compatible
query I rowsort label-445
SELECT - 3 / - - 14
----
0

query I rowsort
SELECT ALL + 31 * + 69 AS col0
----
2139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-447
SELECT - COUNT( - 79 ) + - + CASE - COUNT( * ) WHEN - MIN( - - 91 ) / - + ( CASE + 97 WHEN 66 THEN + ( - - 13 ) - 10 + - 6 END ) THEN NULL ELSE CAST( NULL AS SIGNED ) END - + - 20 * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-447
SELECT - COUNT ( - 79 ) + - + CASE - COUNT ( * ) WHEN - MIN ( - - 91 ) / - + ( CASE + 97 WHEN 66 THEN + ( - - 13 ) - 10 + - 6 END ) THEN NULL ELSE CAST ( NULL AS INTEGER ) END - + - 20 * + 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-448
SELECT + CAST( COUNT( * ) AS SIGNED ) * + - 41 * - - CASE + ( + 55 ) WHEN 4 * + 42 THEN NULL WHEN COALESCE ( - + COALESCE ( - 43, 6 ), COALESCE ( - 84, - ( 93 ), - 12 ) * - COUNT( * ) ) - 80 THEN - 5 * - 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-448
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * + - 41 * - - CASE + ( + 55 ) WHEN 4 * + 42 THEN NULL WHEN COALESCE ( - + COALESCE ( - 43, 6 ), COALESCE ( - 84, - ( 93 ), - 12 ) * - COUNT ( * ) ) - 80 THEN - 5 * - 16 END
----
NULL

query I rowsort
SELECT DISTINCT 91 * 18
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT - 55 + COUNT( * ) + 27 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-450
SELECT - 55 + COUNT ( * ) + 27 AS col1
----
-27

query I rowsort
SELECT - 31 + - + 13 + + + 99 * - 57 AS col1
----
-5687

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-453
SELECT DISTINCT CAST( + MAX( ALL CASE - + 62 WHEN + - 82 THEN + 32 / + 15 END ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT CAST ( + MAX ( ALL CASE - + 62 WHEN + - 82 THEN + 32 / + 15 END ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 14 * 88 AS col2
----
-1232

query I rowsort
SELECT + 84 * 44
----
3696

query I rowsort
SELECT + 1 + 30 AS col0
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-457
SELECT 42 AS col0, + COUNT( DISTINCT - 62 ) AS col0
----
42
1

skipif mysql # not compatible
query II rowsort label-457
SELECT 42 AS col0, + COUNT ( DISTINCT - 62 ) AS col0
----
42
1

onlyif mysql # aggregate syntax: 
query II rowsort label-458
SELECT + + 34 + - 1, 33 * COUNT( * ) + - - NULLIF ( MIN( - + 73 ), COUNT( 12 ) + + ( + MIN( + NULLIF ( - 95, - - 43 + + 18 ) ) ) + 64 ) AS col2
----
33
-40

skipif mysql # not compatible
query II rowsort label-458
SELECT + + 34 + - 1, 33 * COUNT ( * ) + - - NULLIF ( MIN ( - + 73 ), COUNT ( 12 ) + + ( + MIN ( + NULLIF ( - 95, - - 43 + + 18 ) ) ) + 64 ) AS col2
----
33
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-459
SELECT ALL - CAST( - - 48 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL - CAST ( - - 48 AS INTEGER )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT + - 64 * ( - COUNT( * ) ) * 5 AS col0
----
320

skipif mysql # not compatible
query I rowsort label-460
SELECT + - 64 * ( - COUNT ( * ) ) * 5 AS col0
----
320

query I rowsort
SELECT + - 59 + 30
----
-29

query II rowsort
SELECT - - 44 AS col0, 4 AS col1
----
44
4

query I rowsort
SELECT ALL 6 + + 70
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT DISTINCT - - 63 + 81 + 81 + + 54 * - - COUNT( * ) * 17 * - COUNT( * ) AS col2
----
-693

skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT - - 63 + 81 + 81 + + 54 * - - COUNT ( * ) * 17 * - COUNT ( * ) AS col2
----
-693

query II rowsort
SELECT - + 21 AS col0, 43 AS col1
----
-21
43

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT + NULLIF ( - 40, ( + + 83 ) * 69 * + 77 - - 33 + - - 98 * - 45 * 82 * NULLIF ( 98, - ( + + 26 ) ) + - - 5 / + 22 ) * + MIN( + 94 ) AS col1
----
-3760

skipif mysql # not compatible
query I rowsort label-466
SELECT + NULLIF ( - 40, ( + + 83 ) * 69 * + 77 - - 33 + - - 98 * - 45 * 82 * NULLIF ( 98, - ( + + 26 ) ) + - - 5 / + 22 ) * + MIN ( + 94 ) AS col1
----
-3760

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

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

query I rowsort
SELECT ALL + 77 + + 88 AS col1
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-469
SELECT - 96 * - COALESCE ( CAST( - 40 AS SIGNED ), COUNT( * ) )
----
-3840

skipif mysql # not compatible
query I rowsort label-469
SELECT - 96 * - COALESCE ( CAST ( - 40 AS INTEGER ), COUNT ( * ) )
----
-3840

query II rowsort
SELECT 23, - 2 * - + 2 AS col2
----
23
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-471
SELECT ALL 35 DIV - MIN( ALL - 62 ) * - 86 + + + 28 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL 35 / - MIN ( ALL - 62 ) * - 86 + + + 28 AS col1
----
28

query I rowsort
SELECT - - 1 * ( + 86 ) + - + 47 * - - 68
----
-3110

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT - 16 * - + 85 + + 50 + - - COUNT( * ) + - 0 + - + 16 AS col2
----
1395

skipif mysql # not compatible
query I rowsort label-473
SELECT - 16 * - + 85 + + 50 + - - COUNT ( * ) + - 0 + - + 16 AS col2
----
1395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-474
SELECT DISTINCT - 69 - + COUNT( + 43 ) DIV + COUNT( * ) DIV + - 1
----
-68

skipif mysql # not compatible
query I rowsort label-474
SELECT DISTINCT - 69 - + COUNT ( + 43 ) / + COUNT ( * ) / + - 1
----
-68

query II rowsort
SELECT ALL - 8 * + 39 AS col0, + 60 AS col0
----
-312
60

query II rowsort
SELECT DISTINCT - ( + - 86 ), 29 AS col1
----
86
29

query I rowsort
SELECT 53 + 44 col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT ALL - 8 * + ( 97 ) * 58 + - 69 + + + COUNT( * ) + + - COUNT( * ) AS col0
----
-45077

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL - 8 * + ( 97 ) * 58 + - 69 + + + COUNT ( * ) + + - COUNT ( * ) AS col0
----
-45077

onlyif mysql # DIV for integer division: 
query I rowsort label-479
SELECT ALL - 63 DIV + 20 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL - 63 / + 20 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT DISTINCT + COUNT( * ) * - 74 * + + 22
----
-1628

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT + COUNT ( * ) * - 74 * + + 22
----
-1628

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-481
SELECT 81 DIV - + COUNT( * ), + MAX( ALL + 1 ) AS col1
----
-81
1

skipif mysql # not compatible
query II rowsort label-481
SELECT 81 / - + COUNT ( * ), + MAX ( ALL + 1 ) AS col1
----
-81
1

onlyif mysql # aggregate syntax: 
query III rowsort label-482
SELECT COUNT( * ) * + + 11 AS col2, - 52 AS col0, - + MIN( ALL + 73 ) + 4 AS col0
----
11
-52
-69

skipif mysql # not compatible
query III rowsort label-482
SELECT COUNT ( * ) * + + 11 AS col2, - 52 AS col0, - + MIN ( ALL + 73 ) + 4 AS col0
----
11
-52
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-483
SELECT 12 - COUNT( * ) * - 90, - 32 + 30 AS col2
----
102
-2

skipif mysql # not compatible
query II rowsort label-483
SELECT 12 - COUNT ( * ) * - 90, - 32 + 30 AS col2
----
102
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-484
SELECT DISTINCT + 66 + + 70 AS col0, - CAST( + + 21 AS SIGNED )
----
136
-21

skipif mysql # not compatible
query II rowsort label-484
SELECT DISTINCT + 66 + + 70 AS col0, - CAST ( + + 21 AS INTEGER )
----
136
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-485
SELECT ALL - 8 + 13 / CASE + + 79 WHEN + + 76 / ( + CAST( NULL AS SIGNED ) ) + - - ( 16 ) THEN - - 70 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL - 8 + 13 / CASE + + 79 WHEN + + 76 / ( + CAST ( NULL AS INTEGER ) ) + - - ( 16 ) THEN - - 70 ELSE NULL END
----
NULL

query I rowsort
SELECT 58 - - - 18 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-487
SELECT ( + 33 ) * - 53 + - MIN( - CAST( + 40 AS SIGNED ) ) + 65 - - SUM( DISTINCT 2 ) - 35 + + 69 + 15 * 59 * + - 14 * - 87 * - NULLIF ( 94, + 17 + - 55 ) + + 0 * 81
----
-101327028

skipif mysql # not compatible
query I rowsort label-487
SELECT ( + 33 ) * - 53 + - MIN ( - CAST ( + 40 AS INTEGER ) ) + 65 - - SUM ( DISTINCT 2 ) - 35 + + 69 + 15 * 59 * + - 14 * - 87 * - NULLIF ( 94, + 17 + - 55 ) + + 0 * 81
----
-101327028

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT DISTINCT 13 + + - COUNT( + 19 ) - - COUNT( * ) + + 43 col2
----
56

skipif mysql # not compatible
query I rowsort label-488
SELECT DISTINCT 13 + + - COUNT ( + 19 ) - - COUNT ( * ) + + 43 col2
----
56

query I rowsort
SELECT ALL + 41 + + + 57 + + 2
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-490
SELECT DISTINCT + CASE - 76 WHEN + - 35 + - 0 + CASE - ( - CAST( NULL AS SIGNED ) ) WHEN - + 76 / - COUNT( * ) + - 19 + + 82 + + 62 / + 93 + + 7 THEN + 28 WHEN - 84 THEN NULL END - + AVG ( DISTINCT - 29 ) * 58 THEN 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-490
SELECT DISTINCT + CASE - 76 WHEN + - 35 + - 0 + CASE - ( - CAST ( NULL AS INTEGER ) ) WHEN - + 76 / - COUNT ( * ) + - 19 + + 82 + + 62 / + 93 + + 7 THEN + 28 WHEN - 84 THEN NULL END - + AVG ( DISTINCT - 29 ) * 58 THEN 80 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT + 44 + + SUM( + + 25 ) * - + ( 56 ) + + 28 AS col1
----
-1328

skipif mysql # not compatible
query I rowsort label-491
SELECT + 44 + + SUM ( + + 25 ) * - + ( 56 ) + + 28 AS col1
----
-1328

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT 28 - - + 6 + - COUNT( * ) col2
----
33

skipif mysql # not compatible
query I rowsort label-492
SELECT 28 - - + 6 + - COUNT ( * ) col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT 58 + + COUNT( * ) + - 50 col0
----
9

skipif mysql # not compatible
query I rowsort label-493
SELECT 58 + + COUNT ( * ) + - 50 col0
----
9

query I rowsort
SELECT NULLIF ( + - 18, 43 )
----
-18

query I rowsort
SELECT + - ( 11 ) AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-496
SELECT DISTINCT + + COALESCE ( + 76, - ( - 91 ) * + 72, + 15 DIV + 5 + + - 53 - + - 12 DIV + 25, + + 33 + - - SUM( - 40 ) DIV - 12 + + + 26 * 29 ) * - 22 - 21 * + 9 AS col0
----
-1861

skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT + + COALESCE ( + 76, - ( - 91 ) * + 72, + 15 / + 5 + + - 53 - + - 12 / + 25, + + 33 + - - SUM ( - 40 ) / - 12 + + + 26 * 29 ) * - 22 - 21 * + 9 AS col0
----
-1861

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

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

query I rowsort
SELECT ALL - ( + 6 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-499
SELECT COUNT( * ) + 81 + + + 3, 98 + - - 9 - + 78 + + ( - COUNT( * ) ) * - 54 AS col2
----
85
83

skipif mysql # not compatible
query II rowsort label-499
SELECT COUNT ( * ) + 81 + + + 3, 98 + - - 9 - + 78 + + ( - COUNT ( * ) ) * - 54 AS col2
----
85
83

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-500
SELECT DISTINCT ( + CAST( - 14 AS DECIMAL ) ) - + + 18 + - CAST( NULL AS SIGNED ) / + - 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-500
SELECT DISTINCT ( + CAST ( - 14 AS REAL ) ) - + + 18 + - CAST ( NULL AS INTEGER ) / + - 61 AS col0
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-503
SELECT + 5 * 30 + - COUNT( DISTINCT 16 ) + - ( + 53 ) DIV + - 58 - + 66 AS col0, + ( COUNT( + 32 ) ) col0
----
83
1

skipif mysql # not compatible
query II rowsort label-503
SELECT + 5 * 30 + - COUNT ( DISTINCT 16 ) + - ( + 53 ) / + - 58 - + 66 AS col0, + ( COUNT ( + 32 ) ) col0
----
83
1

query I rowsort
SELECT 46 * 88
----
4048

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-505
SELECT ALL - 88 AS col1, 17 + - CAST( 90 AS SIGNED )
----
-88
-73

skipif mysql # not compatible
query II rowsort label-505
SELECT ALL - 88 AS col1, 17 + - CAST ( 90 AS INTEGER )
----
-88
-73

query II rowsort
SELECT ALL - 91, + 38 + + - 10 AS col2
----
-91
28

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT ALL - NULLIF ( ( - - 29 ), - 36 + + COUNT( * ) ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL - NULLIF ( ( - - 29 ), - 36 + + COUNT ( * ) ) AS col2
----
-29

query I rowsort
SELECT ALL - 77 * - + 45 AS col0
----
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT ALL 14 + + - MAX( DISTINCT + - 97 ) AS col0
----
111

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL 14 + + - MAX ( DISTINCT + - 97 ) AS col0
----
111

query I rowsort
SELECT CASE - 46 WHEN - 15 THEN + 32 + - 44 ELSE 49 + ( 30 ) END - + 2 AS col0
----
77

query I rowsort
SELECT DISTINCT + 59 * - 86
----
-5074

query I rowsort
SELECT 68 * + 81 * + 72 - + 25 + 58
----
396609

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT CASE + MAX( - 25 ) WHEN + COALESCE ( + 59, + - 8 ) THEN NULL WHEN 43 * - ( ( + 19 ) ) - COUNT( * ) - 48 THEN - 21 END + + 19 + 85 + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-513
SELECT CASE + MAX ( - 25 ) WHEN + COALESCE ( + 59, + - 8 ) THEN NULL WHEN 43 * - ( ( + 19 ) ) - COUNT ( * ) - 48 THEN - 21 END + + 19 + 85 + - 20
----
NULL

query III rowsort
SELECT ALL + 69 + - - 36 * - 16 AS col1, + 19 col1, - 38 * 68 * + 12 AS col0
----
-507
19
-31008

query I rowsort
SELECT - COALESCE ( 69, - 91 ) AS col1
----
-69

query I rowsort
SELECT + 66 + 52 * + ( + 30 ) * 14 + 86
----
21992

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-517
SELECT DISTINCT COUNT( * ), - 53 + - CASE - 73 WHEN + 61 THEN NULL WHEN + 57 THEN NULL ELSE - + 59 DIV + 85 END AS col2
----
1
-53

skipif mysql # not compatible
query II rowsort label-517
SELECT DISTINCT COUNT ( * ), - 53 + - CASE - 73 WHEN + 61 THEN NULL WHEN + 57 THEN NULL ELSE - + 59 / + 85 END AS col2
----
1
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT ALL + 42 + + 60 * + COUNT( * ) * - + 23 AS col1
----
-1338

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL + 42 + + 60 * + COUNT ( * ) * - + 23 AS col1
----
-1338

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT + 29 * - + 97 + SUM( - - 74 )
----
-2739

skipif mysql # not compatible
query I rowsort label-519
SELECT + 29 * - + 97 + SUM ( - - 74 )
----
-2739

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-520
SELECT ALL - 26 + - COUNT( * ) + NULLIF ( + 45, CAST( ( + CASE + ( - - 95 ) WHEN - - 11 THEN NULL ELSE - 71 END ) AS SIGNED ) * 38 * + COUNT( * ) * + 77 )
----
18

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL - 26 + - COUNT ( * ) + NULLIF ( + 45, CAST ( ( + CASE + ( - - 95 ) WHEN - - 11 THEN NULL ELSE - 71 END ) AS INTEGER ) * 38 * + COUNT ( * ) * + 77 )
----
18

query II rowsort
SELECT DISTINCT 35 AS col1, ( - ( 39 ) )
----
35
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT ALL + MIN( 39 ) + - 60 * - - 85 AS col0
----
-5061

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL + MIN ( 39 ) + - 60 * - - 85 AS col0
----
-5061

query II rowsort
SELECT - 14 AS col0, 49 AS col0
----
-14
49

query I rowsort
SELECT - 12 + - + 93
----
-105

query I rowsort
SELECT ALL + + 45 - 62 + 15 * - 41 AS col1
----
-632

onlyif mysql # DIV for integer division: 
query II rowsort label-526
SELECT - - 76 AS col1, 1 * - 23 * 37 DIV - ( + 27 ) AS col2
----
76
31

skipif mysql # not compatible
query II rowsort label-526
SELECT - - 76 AS col1, 1 * - 23 * 37 / - ( + 27 ) AS col2
----
76
31

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT DISTINCT + MAX( + + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT + MAX ( + + 45 )
----
45

query II rowsort
SELECT + 21, 61 AS col2
----
21
61

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT + NULLIF ( - COALESCE ( - 88, - 18 ), + + CASE 13 WHEN + 91 * 9 + - COUNT( * ) - + 7 + COUNT( * ) * 0 THEN + 39 + 93 END * - 36 ) * - 22 AS col0
----
-1936

skipif mysql # not compatible
query I rowsort label-529
SELECT + NULLIF ( - COALESCE ( - 88, - 18 ), + + CASE 13 WHEN + 91 * 9 + - COUNT ( * ) - + 7 + COUNT ( * ) * 0 THEN + 39 + 93 END * - 36 ) * - 22 AS col0
----
-1936

query II rowsort
SELECT ALL + 34 AS col0, + 26
----
34
26

query I rowsort
SELECT - 86 * + - 95
----
8170

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT + COUNT( 81 ) * ( + 98 ) + + 32 + + COUNT( * ) * + 24 * 57 + - - ( CASE + - 89 WHEN + - 73 THEN NULL WHEN - SUM( ALL + + 70 ) THEN NULL WHEN + + 20 THEN + - COUNT( * ) END ) / - - ( + 48 ) * - 59 / 57 - - COUNT( * ) * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-532
SELECT + COUNT ( 81 ) * ( + 98 ) + + 32 + + COUNT ( * ) * + 24 * 57 + - - ( CASE + - 89 WHEN + - 73 THEN NULL WHEN - SUM ( ALL + + 70 ) THEN NULL WHEN + + 20 THEN + - COUNT ( * ) END ) / - - ( + 48 ) * - 59 / 57 - - COUNT ( * ) * 48
----
NULL

query II rowsort
SELECT ( + 20 ) AS col1, 65 AS col2
----
20
65

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT + ( - - 87 ) * - 21 * - COUNT( * ) - 24
----
1803

skipif mysql # not compatible
query I rowsort label-536
SELECT + ( - - 87 ) * - 21 * - COUNT ( * ) - 24
----
1803

query I rowsort
SELECT ALL 50 * + - 25
----
-1250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-538
SELECT DISTINCT + CAST( - - AVG ( + 57 ) AS SIGNED ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-538
SELECT DISTINCT + CAST ( - - AVG ( + 57 ) AS INTEGER ) AS col1
----
57

query I rowsort
SELECT DISTINCT 94 * - 99 + 73 col1
----
-9233

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT + COUNT( * ) + + 94 + + COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-540
SELECT + COUNT ( * ) + + 94 + + COUNT ( * ) AS col2
----
96

query I rowsort
SELECT ALL 69 * 6 * 85 + - - 55
----
35245

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-542
SELECT + ( - + 90 ) DIV + COUNT( * ) + 66 - 62 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-542
SELECT + ( - + 90 ) / + COUNT ( * ) + 66 - 62 AS col2
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-543
SELECT CAST( + 98 AS SIGNED ) * + ( + CAST( NULL AS SIGNED ) ) + 19 + + - 69 * - COUNT( * ) / + 22 + - 1 AS col1, + 25 col2
----
NULL
25

skipif mysql # not compatible
query II rowsort label-543
SELECT CAST ( + 98 AS INTEGER ) * + ( + CAST ( NULL AS INTEGER ) ) + 19 + + - 69 * - COUNT ( * ) / + 22 + - 1 AS col1, + 25 col2
----
NULL
25

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT CASE 33 WHEN + COUNT( * ) THEN + 13 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-544
SELECT CASE 33 WHEN + COUNT ( * ) THEN + 13 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-545
SELECT ALL CASE 68 WHEN + 26 + - + 93 + - - CAST( - - 62 AS SIGNED ) * - COUNT( * ) THEN + 25 * + 80 + + 3 + - 32 + - 75 * - - 73 * + 52 END * + 44 + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL CASE 68 WHEN + 26 + - + 93 + - - CAST ( - - 62 AS INTEGER ) * - COUNT ( * ) THEN + 25 * + 80 + + 3 + - 32 + - 75 * - - 73 * + 52 END * + 44 + 36 AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-547
SELECT + 43 DIV - - 17 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-547
SELECT + 43 / - - 17 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-548
SELECT ALL 54 DIV 77 * - - 20 * - 31 * + - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL 54 / 77 * - - 20 * - 31 * + - 83 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-549
SELECT DISTINCT 66 DIV 17 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT 66 / 17 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT ALL - + 40 * 51 + - - COUNT( * )
----
-2039

skipif mysql # not compatible
query I rowsort label-550
SELECT ALL - + 40 * 51 + - - COUNT ( * )
----
-2039

query I rowsort
SELECT ALL + COALESCE ( + + 91, - 84 ) AS col2
----
91

query I rowsort
SELECT COALESCE ( - + 48, + 55 ) AS col2
----
-48

query I rowsort
SELECT ALL 6 * + + 1 + + 30 * 31
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT DISTINCT 43 * - 35 * + COUNT( * ) - COUNT( * ) + - ( + 44 ) * + 87 * + 56 * - 43
----
9216318

skipif mysql # not compatible
query I rowsort label-554
SELECT DISTINCT 43 * - 35 * + COUNT ( * ) - COUNT ( * ) + - ( + 44 ) * + 87 * + 56 * - 43
----
9216318

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

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

query II rowsort
SELECT + 13 + - + 64 AS col2, - 36 AS col0
----
-51
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-557
SELECT - - NULLIF ( + - CAST( NULL AS SIGNED ), + ( - 80 ) + + ( - COUNT( * ) ) ) * - COUNT( + 20 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-557
SELECT - - NULLIF ( + - CAST ( NULL AS INTEGER ), + ( - 80 ) + + ( - COUNT ( * ) ) ) * - COUNT ( + 20 ) col2
----
NULL

query I rowsort
SELECT ALL + 14 * + - 76 AS col0
----
-1064

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT MAX( - + 78 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-559
SELECT MAX ( - + 78 ) AS col1
----
-78

query I rowsort
SELECT + + 59 - - 54 + 1
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-561
SELECT - CAST( NULL AS SIGNED ) * - - 5 AS col2, + 56 - + + 7 * 35 + + - 1
----
NULL
-190

skipif mysql # not compatible
query II rowsort label-561
SELECT - CAST ( NULL AS INTEGER ) * - - 5 AS col2, + 56 - + + 7 * 35 + + - 1
----
NULL
-190

query I rowsort
SELECT + - CASE 68 WHEN + 64 THEN - 67 WHEN - 89 THEN - 93 * + - 32 ELSE NULL END - + - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT DISTINCT - 20 * - - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT - 20 * - - COUNT ( * )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-564
SELECT - 85 * - 47 * + MIN( + 29 ) / - - CASE + - CAST( - 70 AS SIGNED ) WHEN ( - 56 ) THEN 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-564
SELECT - 85 * - 47 * + MIN ( + 29 ) / - - CASE + - CAST ( - 70 AS INTEGER ) WHEN ( - 56 ) THEN 75 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT - 82 / - ( COUNT ( * ) )
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-566
SELECT + 42 + + COUNT( * ) AS col2, + COUNT( * ) * + 86 col0
----
43
86

skipif mysql # not compatible
query II rowsort label-566
SELECT + 42 + + COUNT ( * ) AS col2, + COUNT ( * ) * + 86 col0
----
43
86

query I rowsort
SELECT - - 43 - + + 22 AS col0
----
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-568
SELECT ALL - 37 / - 1 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL - 37 / - 1 + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + - 32 * 82 + - 40 AS col1
----
-2664

query I rowsort
SELECT - - 26 * 53 AS col1
----
1378

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-571
SELECT - + 68 - + + NULLIF ( + + 83, + CAST( - 11 AS DECIMAL ) * - + 5 * + 12 ) AS col1
----
-151

skipif mysql # not compatible
query I rowsort label-571
SELECT - + 68 - + + NULLIF ( + + 83, + CAST ( - 11 AS REAL ) * - + 5 * + 12 ) AS col1
----
-151

query I rowsort
SELECT - + ( + + 81 ) * + 93
----
-7533

query II rowsort
SELECT 38 AS col1, - 90
----
38
-90

query I rowsort
SELECT ALL - 49 * - - 1 * + ( + 18 ) col2
----
-882

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-575
SELECT ALL 45 DIV - + MIN( - - 91 ) * 98 - - - 95 + + 76 - + + 74 * 28 * + + 92
----
-190643

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL 45 / - + MIN ( - - 91 ) * 98 - - - 95 + + 76 - + + 74 * 28 * + + 92
----
-190643

query I rowsort
SELECT ALL + 77 * 62
----
4774

query I rowsort
SELECT - NULLIF ( + 61, - 7 ) * - 95 + - + 45 AS col2
----
5750

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-579
SELECT 54, COUNT( - 35 ) - + ( 39 ) AS col0
----
54
-38

skipif mysql # not compatible
query II rowsort label-579
SELECT 54, COUNT ( - 35 ) - + ( 39 ) AS col0
----
54
-38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-580
SELECT DISTINCT - NULLIF ( + 12, - CAST( 98 AS DECIMAL ) )
----
-12

skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT - NULLIF ( + 12, - CAST ( 98 AS REAL ) )
----
-12

query I rowsort
SELECT ALL + 42 + - 19 AS col1
----
23

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

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

query II rowsort
SELECT ALL 13 * 63 * 84, + 53 AS col1
----
68796
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-584
SELECT 96 + + CAST( - NULLIF ( + + 17, - 76 ) AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-584
SELECT 96 + + CAST ( - NULLIF ( + + 17, - 76 ) AS INTEGER )
----
79

query I rowsort
SELECT ALL - 42 + 64 * - 20 AS col0
----
-1322

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT MIN( + 27 ) - - 2
----
29

skipif mysql # not compatible
query I rowsort label-586
SELECT MIN ( + 27 ) - - 2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT COUNT( * ) + - + 24
----
-23

skipif mysql # not compatible
query I rowsort label-587
SELECT COUNT ( * ) + - + 24
----
-23

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

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

query I rowsort
SELECT 13 + + 57 col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-590
SELECT ALL + + 99 * + + MIN( ALL + - CAST( NULL AS SIGNED ) ) / 25 * - 44 * COUNT( * ) * + COUNT( * ) * 82 * - - NULLIF ( 69, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL + + 99 * + + MIN ( ALL + - CAST ( NULL AS INTEGER ) ) / 25 * - 44 * COUNT ( * ) * + COUNT ( * ) * 82 * - - NULLIF ( 69, COUNT ( * ) )
----
NULL

query I rowsort
SELECT 5 + - - 27 AS col1
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-592
SELECT ALL 30 DIV 47 - - 58, - 18 AS col1
----
58
-18

skipif mysql # not compatible
query II rowsort label-592
SELECT ALL 30 / 47 - - 58, - 18 AS col1
----
58
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-593
SELECT - SUM( + CAST( NULL AS SIGNED ) ) + 60 AS col0, - ( - 48 )
----
NULL
48

skipif mysql # not compatible
query II rowsort label-593
SELECT - SUM ( + CAST ( NULL AS INTEGER ) ) + 60 AS col0, - ( - 48 )
----
NULL
48

query I rowsort
SELECT ALL + 52 * - - 79
----
4108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-595
SELECT + 96 + - - COUNT( * ) / - - 80 * CAST( NULL AS SIGNED ) + + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + + 45 - + 20 - - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-595
SELECT + 96 + - - COUNT ( * ) / - - 80 * CAST ( NULL AS INTEGER ) + + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 45 - + 20 - - 32 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT DISTINCT + ( + 0 ) * - NULLIF ( COUNT( * ), - 84 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT + ( + 0 ) * - NULLIF ( COUNT ( * ), - 84 ) AS col2
----
0

query I rowsort
SELECT + 40 * + 93
----
3720

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT 5 * 85 * + + 56 * 17 - NULLIF ( - 98, 28 * 59 * 4 * - + COUNT( * ) + - COALESCE ( + 44, - 17 * - + 85 * - 61 ) ) + + 90
----
404788

skipif mysql # not compatible
query I rowsort label-598
SELECT 5 * 85 * + + 56 * 17 - NULLIF ( - 98, 28 * 59 * 4 * - + COUNT ( * ) + - COALESCE ( + 44, - 17 * - + 85 * - 61 ) ) + + 90
----
404788

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT ALL 88 + + 68 * + COUNT( * ) + + 91 AS col1
----
247

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL 88 + + 68 * + COUNT ( * ) + + 91 AS col1
----
247

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

query I rowsort
SELECT 62 + + 41 - - 6 + + 98 + + 18 + - - 59 col1
----
284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-602
SELECT ALL 98 + - NULLIF ( + CAST( NULL AS SIGNED ), - + CAST( - 45 AS SIGNED ) + - 42 ) + + ( MIN( + 96 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-602
SELECT ALL 98 + - NULLIF ( + CAST ( NULL AS INTEGER ), - + CAST ( - 45 AS INTEGER ) + - 42 ) + + ( MIN ( + 96 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 73 + + 87 * + 29 AS col1
----
2596

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT ALL - COUNT( * ) + - 0 + 7 * 98 AS col0
----
685

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL - COUNT ( * ) + - 0 + 7 * 98 AS col0
----
685

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-605
SELECT 73 * + 82 + CASE WHEN NOT + 38 IS NULL THEN + NULLIF ( - + CASE + + 68 WHEN - 78 THEN 45 + + + 76 WHEN + 28 THEN NULL ELSE NULL END, 37 ) - + + COALESCE ( CAST( CAST( 86 AS DECIMAL ) AS SIGNED ), 76 + + + 18 - + 17 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-605
SELECT 73 * + 82 + CASE WHEN NOT + 38 IS NULL THEN + NULLIF ( - + CASE + + 68 WHEN - 78 THEN 45 + + + 76 WHEN + 28 THEN NULL ELSE NULL END, 37 ) - + + COALESCE ( CAST ( CAST ( 86 AS REAL ) AS INTEGER ), 76 + + + 18 - + 17 ) END col0
----
NULL

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

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

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

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

query I rowsort
SELECT 6 + 25 AS col0
----
31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT 77 + + MAX( DISTINCT - - 69 ) - - + 5 * - ( - 31 ) * - 81 col2
----
-12409

skipif mysql # not compatible
query I rowsort label-610
SELECT 77 + + MAX ( DISTINCT - - 69 ) - - + 5 * - ( - 31 ) * - 81 col2
----
-12409

onlyif mysql # DIV for integer division: 
query I rowsort label-611
SELECT DISTINCT 90 DIV 33 * 52 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-611
SELECT DISTINCT 90 / 33 * 52 AS col2
----
104

query I rowsort
SELECT 90 - ( - - 55 ) + - 55 AS col2
----
-20

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

skipif mysql # not compatible
query II rowsort label-613
SELECT DISTINCT - 64 AS col0, - COUNT ( * ) col0
----
-64
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-614
SELECT DISTINCT - CASE - - 66 WHEN 50 + - + 51 THEN - 15 WHEN + + 16 DIV 11 - + 86 THEN + - 51 DIV - 76 ELSE 58 END AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT - CASE - - 66 WHEN 50 + - + 51 THEN - 15 WHEN + + 16 / 11 - + 86 THEN + - 51 / - 76 ELSE 58 END AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT 12 + MIN( DISTINCT + COALESCE ( 4, + 84 ) )
----
16

skipif mysql # not compatible
query I rowsort label-615
SELECT 12 + MIN ( DISTINCT + COALESCE ( 4, + 84 ) )
----
16

query II rowsort
SELECT + 64 AS col2, 66 AS col0
----
64
66

query I rowsort
SELECT 22 + 78
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-618
SELECT + 55 * 22 + - + 11 - 79 + - 62 * - + 92 * 55 * + 19 + - CAST( NULL AS SIGNED ) / - + MAX( DISTINCT - + 99 ) * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-618
SELECT + 55 * 22 + - + 11 - 79 + - 62 * - + 92 * 55 * + 19 + - CAST ( NULL AS INTEGER ) / - + MAX ( DISTINCT - + 99 ) * + 59
----
NULL

query II rowsort
SELECT DISTINCT - + 30 AS col1, - 53 + 53
----
-30
0

query II rowsort
SELECT ALL - 92, 7 * - 0 AS col2
----
-92
0

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT DISTINCT - + MAX( - 66 ) - + 57 + - - 40 * 82 * 95 AS col0
----
311609

skipif mysql # not compatible
query I rowsort label-621
SELECT DISTINCT - + MAX ( - 66 ) - + 57 + - - 40 * 82 * 95 AS col0
----
311609

onlyif mysql # aggregate syntax: 
query II rowsort label-622
SELECT ALL - 40 AS col0, - SUM( ALL + + 80 ) + 3 * + - 75 AS col1
----
-40
-305

skipif mysql # not compatible
query II rowsort label-622
SELECT ALL - 40 AS col0, - SUM ( ALL + + 80 ) + 3 * + - 75 AS col1
----
-40
-305

query I rowsort
SELECT ALL + 31 * + ( - + 97 )
----
-3007

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-624
SELECT - CASE 76 WHEN - 30 THEN + CASE ( + 27 ) WHEN - ( - + 75 ) THEN + 15 + - COUNT( * ) WHEN - + 91 THEN + + 25 WHEN + + 55 + - + 60 THEN + + 58 + - MIN( DISTINCT - 33 ) + + 56 * + - 15 * - COUNT( * ) * + 52 END DIV MIN( + CASE + 14 WHEN + 87 THEN NULL ELSE COALESCE ( 44, 25 * ( 4 ) + + 28 ) END ) WHEN MIN( ALL 40 ) + + 88 THEN NULL WHEN 68 THEN - 4 * 41 ELSE 54 + 41 END AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-624
SELECT - CASE 76 WHEN - 30 THEN + CASE ( + 27 ) WHEN - ( - + 75 ) THEN + 15 + - COUNT ( * ) WHEN - + 91 THEN + + 25 WHEN + + 55 + - + 60 THEN + + 58 + - MIN ( DISTINCT - 33 ) + + 56 * + - 15 * - COUNT ( * ) * + 52 END / MIN ( + CASE + 14 WHEN + 87 THEN NULL ELSE COALESCE ( 44, 25 * ( 4 ) + + 28 ) END ) WHEN MIN ( ALL 40 ) + + 88 THEN NULL WHEN 68 THEN - 4 * 41 ELSE 54 + 41 END AS col2
----
-95

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

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

query I rowsort
SELECT 20 * + 89 + - 3 AS col0
----
1777

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT ALL - + 34 * - CASE - + 22 WHEN - + 79 * - - MIN( - 46 ) THEN + 27 ELSE NULL END * - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL - + 34 * - CASE - + 22 WHEN - + 79 * - - MIN ( - 46 ) THEN + 27 ELSE NULL END * - 81
----
NULL

query I rowsort
SELECT 99 + + - 80 AS col0
----
19

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

skipif mysql # not compatible
query I rowsort label-629
SELECT - MAX ( DISTINCT - 10 ) * + COUNT ( * ) AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-630
SELECT + 3 DIV 25 * 86 * 32 * COUNT( * ) * + - NULLIF ( + 97, + + 56 )
----
0

skipif mysql # not compatible
query I rowsort label-630
SELECT + 3 / 25 * 86 * 32 * COUNT ( * ) * + - NULLIF ( + 97, + + 56 )
----
0

query II rowsort
SELECT - 18 AS col2, 49 col1
----
-18
49

onlyif mysql # aggregate syntax: 
query II rowsort label-632
SELECT ALL 77 + 83 * + COUNT( * ) + - 26 AS col1, 35 AS col0
----
134
35

skipif mysql # not compatible
query II rowsort label-632
SELECT ALL 77 + 83 * + COUNT ( * ) + - 26 AS col1, 35 AS col0
----
134
35

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

query I rowsort
SELECT DISTINCT - + 29 + + + 80 + 26
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-635
SELECT ALL - 55 DIV + COUNT( * ) AS col0, - COUNT( * ) + CAST( NULL AS SIGNED )
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-635
SELECT ALL - 55 / + COUNT ( * ) AS col0, - COUNT ( * ) + CAST ( NULL AS INTEGER )
----
-55
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-637
SELECT 65 + - - CASE - - 81 WHEN - 42 * - 38 * - COUNT( * ) + + 32 + - - 74 + - + 35 THEN NULL WHEN + 18 + + - 66 THEN NULL WHEN - - ( CAST( NULL AS SIGNED ) ) THEN NULL ELSE 89 END + - 17 AS col0, + COUNT( * )
----
137
1

skipif mysql # not compatible
query II rowsort label-637
SELECT 65 + - - CASE - - 81 WHEN - 42 * - 38 * - COUNT ( * ) + + 32 + - - 74 + - + 35 THEN NULL WHEN + 18 + + - 66 THEN NULL WHEN - - ( CAST ( NULL AS INTEGER ) ) THEN NULL ELSE 89 END + - 17 AS col0, + COUNT ( * )
----
137
1

onlyif mysql # aggregate syntax: 
query II rowsort label-638
SELECT DISTINCT 21 + + - COUNT( * ) AS col0, - 67 * - + COUNT( * ) * - COUNT( * ) * 90
----
20
-6030

skipif mysql # not compatible
query II rowsort label-638
SELECT DISTINCT 21 + + - COUNT ( * ) AS col0, - 67 * - + COUNT ( * ) * - COUNT ( * ) * 90
----
20
-6030

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT ALL COUNT( ALL - 73 ) + MAX( + + 6 )
----
7

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL COUNT ( ALL - 73 ) + MAX ( + + 6 )
----
7

query I rowsort
SELECT DISTINCT 50 + - 5 * 22
----
-60

query I rowsort
SELECT + 56 + - - 67
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT ALL COUNT( * ) + + 38 - + 22 * + 57
----
-1215

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL COUNT ( * ) + + 38 - + 22 * + 57
----
-1215

query I rowsort
SELECT ALL 20 - - + COALESCE ( - 79, + - 58 )
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-644
SELECT + COUNT( * ) * - - ( - + 40 ) * - 26 * - + 60 * - + MIN( - - 6 ) AS col0, 55
----
374400
55

skipif mysql # not compatible
query II rowsort label-644
SELECT + COUNT ( * ) * - - ( - + 40 ) * - 26 * - + 60 * - + MIN ( - - 6 ) AS col0, 55
----
374400
55

query II rowsort
SELECT DISTINCT - 4 * 23 - 51 AS col1, 12 col2
----
-143
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-646
SELECT ALL + 79 DIV 76 * + CAST( 89 AS SIGNED ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL + 79 / 76 * + CAST ( 89 AS INTEGER ) AS col1
----
89

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

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

query I rowsort
SELECT NULLIF ( 27, - ( - 68 ) + - + 22 * + 82 * - 34 ) AS col1
----
27

query I rowsort
SELECT + 84 + 4
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-650
SELECT - 48 DIV 30 * + - SUM( - 7 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-650
SELECT - 48 / 30 * + - SUM ( - 7 ) AS col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-651
SELECT + COUNT( * ) * + CAST( - COUNT( + 27 ) AS SIGNED ) + - - 8
----
7

skipif mysql # not compatible
query I rowsort label-651
SELECT + COUNT ( * ) * + CAST ( - COUNT ( + 27 ) AS INTEGER ) + - - 8
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-652
SELECT COALESCE ( 81, 63, 29 DIV + COUNT( * ) * - + 85 + CAST( COUNT( * ) AS SIGNED ) )
----
81

skipif mysql # not compatible
query I rowsort label-652
SELECT COALESCE ( 81, 63, 29 / + COUNT ( * ) * - + 85 + CAST ( COUNT ( * ) AS INTEGER ) )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-653
SELECT - COUNT( + - 98 ) * - 98 - + 88 DIV - 48
----
99

skipif mysql # not compatible
query I rowsort label-653
SELECT - COUNT ( + - 98 ) * - 98 - + 88 / - 48
----
99

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

skipif mysql # not compatible
query I rowsort label-654
SELECT + COUNT ( * ) / - + 33 col1
----
0

query I rowsort
SELECT - + 71 + - 26 + + 98 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-656
SELECT ALL - COUNT( DISTINCT 92 ) DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL - COUNT ( DISTINCT 92 ) / 55
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-657
SELECT ALL - ( - 97 ) * - 97 * 52 + + CAST( 85 AS SIGNED ) + + - CAST( NULL AS SIGNED ) * 4 * - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL - ( - 97 ) * - 97 * 52 + + CAST ( 85 AS INTEGER ) + + - CAST ( NULL AS INTEGER ) * 4 * - 87
----
NULL

query I rowsort
SELECT - - 96 + - - ( 55 )
----
151

query I rowsort
SELECT DISTINCT + 33 * 10 * + - 31
----
-10230

query I rowsort
SELECT DISTINCT - - 82 * - 37 AS col1
----
-3034

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

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

query I rowsort
SELECT ALL + 61 * + + 85 + + 10
----
5195

query II rowsort
SELECT + 95 + - 32 AS col1, 31 AS col2
----
63
31

onlyif mysql # aggregate syntax: 
query II rowsort label-664
SELECT + 15 * - 1 * + 17 + - 51 + COUNT( * ), 15 AS col1
----
-305
15

skipif mysql # not compatible
query II rowsort label-664
SELECT + 15 * - 1 * + 17 + - 51 + COUNT ( * ), 15 AS col1
----
-305
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT - 78 + ( - MAX( ALL - 74 ) ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-666
SELECT - 78 + ( - MAX ( ALL - 74 ) ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT CASE - + 40 WHEN + 24 + + - 33 + + + 55 * + COUNT( * ) * + 53 THEN + + COUNT( * ) - - + 7 + + 75 * COALESCE ( - ( + 89 ), + CASE WHEN NOT NULL IS NOT NULL THEN AVG ( DISTINCT + 84 ) ELSE - 47 * + 24 + + COUNT( * ) * - MAX( ALL - + 26 ) END ) / - 8 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-667
SELECT CASE - + 40 WHEN + 24 + + - 33 + + + 55 * + COUNT ( * ) * + 53 THEN + + COUNT ( * ) - - + 7 + + 75 * COALESCE ( - ( + 89 ), + CASE WHEN NOT NULL IS NOT NULL THEN AVG ( DISTINCT + 84 ) ELSE - 47 * + 24 + + COUNT ( * ) * - MAX ( ALL - + 26 ) END ) / - 8 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT ALL - COUNT( * ) + 70 - NULLIF ( + 27, + ( 22 ) )
----
42

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL - COUNT ( * ) + 70 - NULLIF ( + 27, + ( 22 ) )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT - - MAX( + + 56 ) + 45
----
101

skipif mysql # not compatible
query I rowsort label-670
SELECT - - MAX ( + + 56 ) + 45
----
101

query I rowsort
SELECT ALL - - 27 + + 87 col2
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-672
SELECT ALL + CAST( NULL AS SIGNED ) * 95 * + 85 - - 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL + CAST ( NULL AS INTEGER ) * 95 * + 85 - - 73 AS col2
----
NULL

query I rowsort
SELECT - + 20 + 66 + + - 85 AS col2
----
-39

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

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

query I rowsort
SELECT ALL + 98 * 58 - + ( + - 3 )
----
5687

query II rowsort
SELECT - 16, - 11 AS col2
----
-16
-11

query I rowsort
SELECT - 98 + 33
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-678
SELECT + ( + + 77 ) + + - 83 AS col2, COUNT( * ) AS col2
----
-6
1

skipif mysql # not compatible
query II rowsort label-678
SELECT + ( + + 77 ) + + - 83 AS col2, COUNT ( * ) AS col2
----
-6
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-679
SELECT ALL 44 - + - 77 + 1 + - 37 - 65 + + 58 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL 44 - + - 77 + 1 + - 37 - 65 + + 58 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

skipif mysql # not compatible
query II rowsort label-680
SELECT 35, CAST ( NULL AS INTEGER ) AS col0
----
35
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-681
SELECT - CAST( NULL AS SIGNED ) + - 83 * NULLIF ( - 26, + - 51 ) + - - CASE + COALESCE ( + 44, - 52 ) WHEN - 21 THEN + 91 WHEN + 83 + - - MAX( DISTINCT 24 ) THEN NULL ELSE CAST( - 34 AS DECIMAL ) END + 24 * + + 2 * - 12 * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-681
SELECT - CAST ( NULL AS INTEGER ) + - 83 * NULLIF ( - 26, + - 51 ) + - - CASE + COALESCE ( + 44, - 52 ) WHEN - 21 THEN + 91 WHEN + 83 + - - MAX ( DISTINCT 24 ) THEN NULL ELSE CAST ( - 34 AS REAL ) END + 24 * + + 2 * - 12 * 60
----
NULL

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

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

query I rowsort
SELECT ALL ( ( + ( + 9 ) ) ) AS col0
----
9

query I rowsort
SELECT ALL ( - 49 ) * - 77
----
3773

query I rowsort
SELECT + 96 * 49 * + 62 * 86 AS col2
----
25081728

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

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL COUNT ( * ) / - 96 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT - COUNT( + ( COALESCE ( - 46, 89 * + 7 + + + 83 ) ) ) - - - 33 col0
----
-34

skipif mysql # not compatible
query I rowsort label-687
SELECT - COUNT ( + ( COALESCE ( - 46, 89 * + 7 + + + 83 ) ) ) - - - 33 col0
----
-34

query I rowsort
SELECT + 72 * - + 35
----
-2520

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

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

query II rowsort
SELECT DISTINCT + 57 AS col2, 53
----
57
53

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-693
SELECT + 42 + - - 0 + + COUNT( * ) + - NULLIF ( + + 52, ( + MIN( ALL - - 73 ) ) + + CASE - 77 WHEN + 33 DIV - + 31 + + 70 + + COALESCE ( + - CAST( 35 AS SIGNED ), - 58, + 10 ) THEN - + 4 END ) DIV 81
----
43

skipif mysql # not compatible
query I rowsort label-693
SELECT + 42 + - - 0 + + COUNT ( * ) + - NULLIF ( + + 52, ( + MIN ( ALL - - 73 ) ) + + CASE - 77 WHEN + 33 / - + 31 + + 70 + + COALESCE ( + - CAST ( 35 AS INTEGER ), - 58, + 10 ) THEN - + 4 END ) / 81
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-694
SELECT CAST( - NULLIF ( + 36, + 77 + + + 17 ) AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-694
SELECT CAST ( - NULLIF ( + 36, + 77 + + + 17 ) AS INTEGER )
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-695
SELECT ALL + 8 col0, + 33 + - + 37 * + COUNT( * ) AS col1
----
8
-4

skipif mysql # not compatible
query II rowsort label-695
SELECT ALL + 8 col0, + 33 + - + 37 * + COUNT ( * ) AS col1
----
8
-4

query I rowsort
SELECT ALL + 37 * + - 62 AS col2
----
-2294

query I rowsort
SELECT + 13 * + 32 + + 6
----
422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-698
SELECT + + COUNT( * ) + + MIN( DISTINCT - CAST( NULL AS SIGNED ) ), MIN( + - 36 ) + + 54 AS col2
----
NULL
18

skipif mysql # not compatible
query II rowsort label-698
SELECT + + COUNT ( * ) + + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ), MIN ( + - 36 ) + + 54 AS col2
----
NULL
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-699
SELECT + - CAST( - 29 AS SIGNED ) * - + CASE + - NULLIF ( 87, - CASE - 77 WHEN - 22 THEN NULL WHEN + - MAX( ALL - 18 ) * + + 91 THEN - + CAST( NULL AS SIGNED ) - CASE 33 WHEN - 10 * - 18 * 35 THEN - + 42 + + + 15 WHEN + - AVG ( + + 92 ) THEN NULL END + 90 + - 76 + 84 * 70 / + 57 END ) WHEN + COUNT( * ) THEN + 22 WHEN 98 THEN - 13 ELSE NULL END * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-699
SELECT + - CAST ( - 29 AS INTEGER ) * - + CASE + - NULLIF ( 87, - CASE - 77 WHEN - 22 THEN NULL WHEN + - MAX ( ALL - 18 ) * + + 91 THEN - + CAST ( NULL AS INTEGER ) - CASE 33 WHEN - 10 * - 18 * 35 THEN - + 42 + + + 15 WHEN + - AVG ( + + 92 ) THEN NULL END + 90 + - 76 + 84 * 70 / + 57 END ) WHEN + COUNT ( * ) THEN + 22 WHEN 98 THEN - 13 ELSE NULL END * 77
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-700
SELECT ALL + COUNT( * ) * + 39 + + 2 + + 39 - 3 DIV + ( + 99 )
----
80

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL + COUNT ( * ) * + 39 + + 2 + + 39 - 3 / + ( + 99 )
----
80

query II rowsort
SELECT 57 AS col2, + 6
----
57
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-702
SELECT DISTINCT - 21 DIV + 80 - + + 65 * + COUNT( * ) + 37
----
-28

skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT - 21 / + 80 - + + 65 * + COUNT ( * ) + 37
----
-28

query II rowsort
SELECT DISTINCT + - 41 AS col0, - 77 + - 57 * + - 28 + 48 * 8 AS col2
----
-41
1903

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-704
SELECT DISTINCT + + 10 * 43 * + - 7 * - - 64 + - + ( + COUNT( * ) ) DIV - 30
----
-192640

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT + + 10 * 43 * + - 7 * - - 64 + - + ( + COUNT ( * ) ) / - 30
----
-192640

onlyif mysql # DIV for integer division: 
query I rowsort label-705
SELECT - 42 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-705
SELECT - 42 / + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT ALL + COUNT( * ) * - 50 + - 2 + - + NULLIF ( + ( + 1 ), + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL + COUNT ( * ) * - 50 + - 2 + - + NULLIF ( + ( + 1 ), + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT - + 33 * + 92 * - MAX( + 46 )
----
139656

skipif mysql # not compatible
query I rowsort label-707
SELECT - + 33 * + 92 * - MAX ( + 46 )
----
139656

query I rowsort
SELECT DISTINCT + 27 * - + 93
----
-2511

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-709
SELECT ALL - 84 * + 85 + - 60 AS col0, ( CAST( 40 AS SIGNED ) ) AS col0
----
-7200
40

skipif mysql # not compatible
query II rowsort label-709
SELECT ALL - 84 * + 85 + - 60 AS col0, ( CAST ( 40 AS INTEGER ) ) AS col0
----
-7200
40

query I rowsort
SELECT + 95 + 58
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-711
SELECT + COALESCE ( + + 6, + ( - CASE + + 8 WHEN + - COUNT( * ) / CASE - 93 WHEN + 74 + + 89 - + SUM( + CAST( + 46 AS SIGNED ) ) + + - 85 * - + ( + ( - - 1 ) ) THEN - 19 * + 49 * - COUNT( * ) * + - 52 WHEN + 75 * 31 THEN NULL END + 10 * - 32 THEN 51 WHEN - 27 * + SUM( DISTINCT 62 * 38 ) THEN NULL ELSE NULL END ), 72 * - 62 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-711
SELECT + COALESCE ( + + 6, + ( - CASE + + 8 WHEN + - COUNT ( * ) / CASE - 93 WHEN + 74 + + 89 - + SUM ( + CAST ( + 46 AS INTEGER ) ) + + - 85 * - + ( + ( - - 1 ) ) THEN - 19 * + 49 * - COUNT ( * ) * + - 52 WHEN + 75 * 31 THEN NULL END + 10 * - 32 THEN 51 WHEN - 27 * + SUM ( DISTINCT 62 * 38 ) THEN NULL ELSE NULL END ), 72 * - 62 ) AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-712
SELECT 55 + - - ( + + 52 ) * 33 DIV - 27
----
-8

skipif mysql # not compatible
query I rowsort label-712
SELECT 55 + - - ( + + 52 ) * 33 / - 27
----
-8

query I rowsort
SELECT 71 * + - 93 AS col2
----
-6603

onlyif mysql # aggregate syntax: 
query II rowsort label-714
SELECT DISTINCT 74 - COUNT( * ), 60 * - 52 + COALESCE ( + NULLIF ( + + MAX( + + 82 ), - + COUNT( * ) * - SUM( DISTINCT - + 20 ) ), - 79 ) AS col1
----
73
-3038

skipif mysql # not compatible
query II rowsort label-714
SELECT DISTINCT 74 - COUNT ( * ), 60 * - 52 + COALESCE ( + NULLIF ( + + MAX ( + + 82 ), - + COUNT ( * ) * - SUM ( DISTINCT - + 20 ) ), - 79 ) AS col1
----
73
-3038

query II rowsort
SELECT 90 + 1 AS col2, - 18
----
91
-18

query II rowsort
SELECT ALL + 24 - - + 22, + 16 AS col0
----
46
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-717
SELECT 96 * COUNT( * ) DIV - 20 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-717
SELECT 96 * COUNT ( * ) / - 20 AS col2
----
-4

query I rowsort
SELECT DISTINCT ( 89 ) * - - 67
----
5963

query I rowsort
SELECT ALL + 97 * + 11 * + 73 AS col0
----
77891

query II rowsort
SELECT 86 * + - 46 AS col1, + 83
----
-3956
83

query II rowsort
SELECT 89 + - ( - - 18 ) * + 61, - 89 AS col1
----
-1009
-89

query II rowsort
SELECT 25 - - 10 AS col2, 31 AS col2
----
35
31

query I rowsort
SELECT 34 - + 96
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-724
SELECT 5 DIV - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-724
SELECT 5 / - 58 AS col0
----
0

query I rowsort
SELECT 12 * - 46 * 34 AS col1
----
-18768

onlyif mysql # aggregate syntax: 
query II rowsort label-726
SELECT DISTINCT - MIN( ALL + ( + 83 ) ) * - - COUNT( * ) AS col0, 0 AS col0
----
-83
0

skipif mysql # not compatible
query II rowsort label-726
SELECT DISTINCT - MIN ( ALL + ( + 83 ) ) * - - COUNT ( * ) AS col0, 0 AS col0
----
-83
0

query I rowsort
SELECT DISTINCT 45 + 28 AS col0
----
73

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-729
SELECT - 54 * COUNT( * ) + + - 2 - + + COALESCE ( + 2, - 50 + 22 * - 0 * + + 85 DIV - 52 - COUNT( * ) * 33, - + 39 ) + - 61 * + 10 * - 2 * + COUNT( * ) - - 13 * - 34 AS col2, 70 * - + COUNT( DISTINCT - 9 )
----
720
-70

skipif mysql # not compatible
query II rowsort label-729
SELECT - 54 * COUNT ( * ) + + - 2 - + + COALESCE ( + 2, - 50 + 22 * - 0 * + + 85 / - 52 - COUNT ( * ) * 33, - + 39 ) + - 61 * + 10 * - 2 * + COUNT ( * ) - - 13 * - 34 AS col2, 70 * - + COUNT ( DISTINCT - 9 )
----
720
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT + SUM( + 89 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-730
SELECT + SUM ( + 89 ) AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-731
SELECT ALL COALESCE ( - + 84, + 65 * 37 + + + COUNT( * ), + + 60 - + 15 + + CAST( NULL AS SIGNED ) ) + 57 / - - 37 + CAST( NULL AS SIGNED ) * + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL COALESCE ( - + 84, + 65 * 37 + + + COUNT ( * ), + + 60 - + 15 + + CAST ( NULL AS INTEGER ) ) + 57 / - - 37 + CAST ( NULL AS INTEGER ) * + 53
----
NULL

query I rowsort
SELECT - 56 * - - ( + 48 ) + 57 AS col2
----
-2631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-733
SELECT - 31 * + NULLIF ( - 27, + COALESCE ( ( + COUNT( * ) ), - 53 - CAST( 28 AS SIGNED ) ) ) + + MIN( - 80 ) + - 64
----
693

skipif mysql # not compatible
query I rowsort label-733
SELECT - 31 * + NULLIF ( - 27, + COALESCE ( ( + COUNT ( * ) ), - 53 - CAST ( 28 AS INTEGER ) ) ) + + MIN ( - 80 ) + - 64
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT 28 * - 50 + - 86 + - + COUNT( * )
----
-1487

skipif mysql # not compatible
query I rowsort label-734
SELECT 28 * - 50 + - 86 + - + COUNT ( * )
----
-1487

query I rowsort
SELECT - 13 + 31
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT ALL - COALESCE ( - + 47, 2 * - + COUNT( * ) + + NULLIF ( - 3, + 97 ), + - 29 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL - COALESCE ( - + 47, 2 * - + COUNT ( * ) + + NULLIF ( - 3, + 97 ), + - 29 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT ALL - MIN( DISTINCT + 27 ) - - 48 - COUNT( * ) * 47 + - CASE 23 WHEN - 97 + - - 10 THEN ( - + 44 ) WHEN - 45 + + 7 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL - MIN ( DISTINCT + 27 ) - - 48 - COUNT ( * ) * 47 + - CASE 23 WHEN - 97 + - - 10 THEN ( - + 44 ) WHEN - 45 + + 7 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-738
SELECT + 80 + - - 50 * - CAST( + + 26 AS SIGNED ) + + 49 AS col1
----
-1171

skipif mysql # not compatible
query I rowsort label-738
SELECT + 80 + - - 50 * - CAST ( + + 26 AS INTEGER ) + + 49 AS col1
----
-1171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-739
SELECT + CASE + + 3 WHEN - 40 THEN NULL WHEN 34 * - + 21 THEN + 15 ELSE 53 - - 85 + 10 * - - 23 * 2 * COUNT( * ) END * MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) + + 68 + + CAST( - 25 AS SIGNED ) + + + 46 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-739
SELECT + CASE + + 3 WHEN - 40 THEN NULL WHEN 34 * - + 21 THEN + 15 ELSE 53 - - 85 + 10 * - - 23 * 2 * COUNT ( * ) END * MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + + 68 + + CAST ( - 25 AS INTEGER ) + + + 46 col1
----
NULL

query I rowsort
SELECT + + 8 * 9 + + 36
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-741
SELECT ALL 32 - - + CAST( - 71 AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL 32 - - + CAST ( - 71 AS INTEGER )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-742
SELECT DISTINCT - CASE 85 WHEN + CAST( NULL AS SIGNED ) THEN + + 24 WHEN + 30 THEN 18 * 73 ELSE NULL END AS col1, + 76 AS col2
----
NULL
76

skipif mysql # not compatible
query II rowsort label-742
SELECT DISTINCT - CASE 85 WHEN + CAST ( NULL AS INTEGER ) THEN + + 24 WHEN + 30 THEN 18 * 73 ELSE NULL END AS col1, + 76 AS col2
----
NULL
76

onlyif mysql # aggregate syntax: 
query II rowsort label-743
SELECT 71 * + COALESCE ( + COUNT( * ), - + 40, MAX( + 49 ) + + - ( 91 ) * - 4 - - 17 ) AS col2, + 6 - 97 * - CASE + 63 WHEN - - 9 THEN + 44 / + + ( - + 35 ) + - CASE - 32 WHEN + 96 THEN NULL ELSE NULLIF ( COUNT( * ), 24 ) END WHEN - + 0 THEN NULL END + + 62
----
71
NULL

skipif mysql # not compatible
query II rowsort label-743
SELECT 71 * + COALESCE ( + COUNT ( * ), - + 40, MAX ( + 49 ) + + - ( 91 ) * - 4 - - 17 ) AS col2, + 6 - 97 * - CASE + 63 WHEN - - 9 THEN + 44 / + + ( - + 35 ) + - CASE - 32 WHEN + 96 THEN NULL ELSE NULLIF ( COUNT ( * ), 24 ) END WHEN - + 0 THEN NULL END + + 62
----
71
NULL

query I rowsort
SELECT 6 * - 14 * 45
----
-3780

query I rowsort
SELECT DISTINCT 62 * - 7
----
-434

query I rowsort
SELECT 90 + + 55
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-747
SELECT ALL - 55 * - 87 * COUNT( * ) DIV + COUNT( * )
----
4785

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL - 55 * - 87 * COUNT ( * ) / + COUNT ( * )
----
4785

query I rowsort
SELECT 96 * + 98 AS col1
----
9408

onlyif mysql # aggregate syntax: 
query II rowsort label-749
SELECT ALL 81 col1, + COUNT( ALL - 25 ) + CASE - + 99 WHEN - 6 THEN 0 + - - ( + 42 ) END + NULLIF ( + - 70, + 54 * 24 * + 72 + - 44 ) * - 64
----
81
NULL

skipif mysql # not compatible
query II rowsort label-749
SELECT ALL 81 col1, + COUNT ( ALL - 25 ) + CASE - + 99 WHEN - 6 THEN 0 + - - ( + 42 ) END + NULLIF ( + - 70, + 54 * 24 * + 72 + - 44 ) * - 64
----
81
NULL

query I rowsort
SELECT ALL 61 * + 54 AS col2
----
3294

query II rowsort
SELECT 84 AS col1, ( + 0 ) AS col1
----
84
0

query I rowsort
SELECT 25 + - - ( - 73 ) - - + 62 + - 89 - + 87 * 45 - + 97 AS col2
----
-4087

query I rowsort
SELECT 31 * - 69 col1
----
-2139

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT ALL - COUNT( * ) + + ( - 21 ) + - MAX( ALL + + ( + + 19 ) ) + - + 65 + ( 14 ) / + + 33 + + - CASE + 26 WHEN + + 32 THEN 34 * - 82 WHEN - 87 THEN - 18 ELSE NULL END * - ( 47 ) + - + ( 21 ) * - + 0 + 9 + - 8 * - - 21 + COUNT( * ) * 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL - COUNT ( * ) + + ( - 21 ) + - MAX ( ALL + + ( + + 19 ) ) + - + 65 + ( 14 ) / + + 33 + + - CASE + 26 WHEN + + 32 THEN 34 * - 82 WHEN - 87 THEN - 18 ELSE NULL END * - ( 47 ) + - + ( 21 ) * - + 0 + 9 + - 8 * - - 21 + COUNT ( * ) * 43 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-756
SELECT ALL - 66 + CAST( + 66 AS SIGNED ) - - - 90 * COUNT( 60 ) + + - ( 28 ) * COUNT( * ) * - + ( 51 )
----
1338

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL - 66 + CAST ( + 66 AS INTEGER ) - - - 90 * COUNT ( 60 ) + + - ( 28 ) * COUNT ( * ) * - + ( 51 )
----
1338

query I rowsort
SELECT 21 + + - 96
----
-75

query I rowsort
SELECT 31 + - 99 + - - ( + 1 ) + + 98
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-759
SELECT ALL + 21 + + 82 - CAST( - 61 AS SIGNED ) - - - 2
----
162

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL + 21 + + 82 - CAST ( - 61 AS INTEGER ) - - - 2
----
162

query I rowsort
SELECT ALL - 30 * - CASE + 44 WHEN + - ( + - 25 ) + - 29 THEN NULL ELSE 45 END
----
1350

onlyif mysql # DIV for integer division: 
query I rowsort label-761
SELECT - 4 + 44 DIV - + 7
----
-10

skipif mysql # not compatible
query I rowsort label-761
SELECT - 4 + 44 / - + 7
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT DISTINCT - CASE - 51 WHEN + COUNT( 77 ) THEN NULL WHEN - ( - 49 ) THEN - 80 * ( + 51 ) + - 19 ELSE + 31 END * 75 * COUNT( * ) * + NULLIF ( - COALESCE ( + + ( + - 28 ), + - 53 + - 76 + + 73 * + MIN( DISTINCT - + 0 ) ), 98 * + - COUNT( * ) ) * 50 * - 43
----
139965000

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT - CASE - 51 WHEN + COUNT ( 77 ) THEN NULL WHEN - ( - 49 ) THEN - 80 * ( + 51 ) + - 19 ELSE + 31 END * 75 * COUNT ( * ) * + NULLIF ( - COALESCE ( + + ( + - 28 ), + - 53 + - 76 + + 73 * + MIN ( DISTINCT - + 0 ) ), 98 * + - COUNT ( * ) ) * 50 * - 43
----
139965000

query I rowsort
SELECT + - 84 * 80 + - - 51 + - - 41 + + 58 AS col2
----
-6570

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

skipif mysql # not compatible
query I rowsort label-764
SELECT + COALESCE ( + COUNT ( * ), COUNT ( * ) + 70 + + 90 ) * + 77
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT ALL - - COALESCE ( + 18, 37 * + 12 + - 25 - - + COUNT( * ) - - 19 ) * 51 AS col0
----
918

skipif mysql # not compatible
query I rowsort label-765
SELECT ALL - - COALESCE ( + 18, 37 * + 12 + - 25 - - + COUNT ( * ) - - 19 ) * 51 AS col0
----
918

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-766
SELECT COALESCE ( COUNT( * ), 20 * + - COUNT( * ) * COUNT( * ) DIV + 36 + + 75 )
----
1

skipif mysql # not compatible
query I rowsort label-766
SELECT COALESCE ( COUNT ( * ), 20 * + - COUNT ( * ) * COUNT ( * ) / + 36 + + 75 )
----
1

query II rowsort
SELECT - 70 * 61 + - ( + + COALESCE ( - 34, + 53, - + 75 ) ) * - ( - + ( 36 ) ), 22 AS col0
----
-3046
22

query I rowsort
SELECT DISTINCT 50 * - 1 + 63
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT ALL - MIN( + 52 ) col2
----
-52

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL - MIN ( + 52 ) col2
----
-52

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

query I rowsort
SELECT ALL - 38 * + - 21
----
798

query I rowsort
SELECT 89 * 26 AS col0
----
2314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-773
SELECT ALL - + 8 DIV 70 * + 3 + COUNT( * ) + - - 97 + CAST( + 9 AS SIGNED ) * - 78 AS col2
----
-604

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL - + 8 / 70 * + 3 + COUNT ( * ) + - - 97 + CAST ( + 9 AS INTEGER ) * - 78 AS col2
----
-604

query I rowsort
SELECT - 86 * + 6
----
-516

query I rowsort
SELECT - ( + + CASE - 74 WHEN - 92 + - - 11 THEN + 77 * 5 + + 0 - + 31 / - 91 * - 15 END ) - 29 AS col2
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT MAX( - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-778
SELECT MAX ( - 73 )
----
-73

query I rowsort
SELECT ALL 85 * + + 60 col1
----
5100

query I rowsort
SELECT + 97 * 21 * + - 85 AS col0
----
-173145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-781
SELECT 75 AS col2, 18 + + COALESCE ( + 38, + ( + + 17 ), + + 10 + + + 69 ) + - 42 + - - CAST( - 56 AS SIGNED ) + + 19 * - - CAST( + 59 AS SIGNED ) * - 12 AS col0
----
75
-13494

skipif mysql # not compatible
query II rowsort label-781
SELECT 75 AS col2, 18 + + COALESCE ( + 38, + ( + + 17 ), + + 10 + + + 69 ) + - 42 + - - CAST ( - 56 AS INTEGER ) + + 19 * - - CAST ( + 59 AS INTEGER ) * - 12 AS col0
----
75
-13494

onlyif mysql # aggregate syntax: 
query II rowsort label-782
SELECT - NULLIF ( + + 55, + COUNT( * ) + + - ( - 36 ) + - - ( 74 ) ), 31 * - - 4 * + - 76 + - 97 AS col2
----
-55
-9521

skipif mysql # not compatible
query II rowsort label-782
SELECT - NULLIF ( + + 55, + COUNT ( * ) + + - ( - 36 ) + - - ( 74 ) ), 31 * - - 4 * + - 76 + - 97 AS col2
----
-55
-9521

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

skipif mysql # not compatible
query I rowsort label-783
SELECT + 67 * + + CAST ( NULL AS INTEGER ) * - - 52 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-784
SELECT DISTINCT 73 + - CAST( + + 65 AS SIGNED ) * + 54
----
-3437

skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT 73 + - CAST ( + + 65 AS INTEGER ) * + 54
----
-3437

onlyif mysql # DIV for integer division: 
query II rowsort label-785
SELECT ALL 46 AS col1, + 85 DIV - ( - + 79 )
----
46
1

skipif mysql # not compatible
query II rowsort label-785
SELECT ALL 46 AS col1, + 85 / - ( - + 79 )
----
46
1

query II rowsort
SELECT DISTINCT CASE - 13 WHEN + 8 + + 83 THEN NULL ELSE - + 19 END + 48, - 4 + 22 AS col0
----
29
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-787
SELECT + 90 + 80 + - 68 + + + 53 + COUNT( * ) + + COUNT( * ) DIV COUNT( * ) * + 68
----
224

skipif mysql # not compatible
query I rowsort label-787
SELECT + 90 + 80 + - 68 + + + 53 + COUNT ( * ) + + COUNT ( * ) / COUNT ( * ) * + 68
----
224

query I rowsort
SELECT ALL 13 + + + 24 AS col0
----
37

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

skipif mysql # not compatible
query I rowsort label-789
SELECT + 95 / - + COUNT ( * )
----
-95

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-791
SELECT - 6 - 20 DIV - - 66
----
-6

skipif mysql # not compatible
query I rowsort label-791
SELECT - 6 - 20 / - - 66
----
-6

query I rowsort
SELECT ALL + - ( 92 ) + - 69 AS col2
----
-161

onlyif mysql # aggregate syntax: 
query II rowsort label-793
SELECT 45 col0, COUNT( ALL + 10 ) + + + 6
----
45
7

skipif mysql # not compatible
query II rowsort label-793
SELECT 45 col0, COUNT ( ALL + 10 ) + + + 6
----
45
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT + - 86 * - COUNT( * ) * - - 1 * - + ( - 23 ) AS col0
----
1978

skipif mysql # not compatible
query I rowsort label-795
SELECT + - 86 * - COUNT ( * ) * - - 1 * - + ( - 23 ) AS col0
----
1978

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT + COUNT( * ) + - 75 * - ( + SUM( ALL + + 47 ) ) AS col2
----
3526

skipif mysql # not compatible
query I rowsort label-796
SELECT + COUNT ( * ) + - 75 * - ( + SUM ( ALL + + 47 ) ) AS col2
----
3526

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT + - COUNT( * ) * + - 44 * + + 27 - - 58
----
1246

skipif mysql # not compatible
query I rowsort label-797
SELECT + - COUNT ( * ) * + - 44 * + + 27 - - 58
----
1246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-798
SELECT ALL - CASE + + 82 WHEN - + 39 THEN NULL WHEN + - COUNT( * ) * + 15 + COUNT( - 63 ) * - - 15 - CAST( + - 49 AS SIGNED ) THEN - 80 * + + 35 + - 19 END * + 34 * - - 7 * + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL - CASE + + 82 WHEN - + 39 THEN NULL WHEN + - COUNT ( * ) * + 15 + COUNT ( - 63 ) * - - 15 - CAST ( + - 49 AS INTEGER ) THEN - 80 * + + 35 + - 19 END * + 34 * - - 7 * + 7 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-799
SELECT - 10 * - + CAST( - COUNT( * ) AS SIGNED ) + 92 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-799
SELECT - 10 * - + CAST ( - COUNT ( * ) AS INTEGER ) + 92 AS col2
----
82

query II rowsort
SELECT ALL + 24, 47 AS col2
----
24
47

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT - MAX( - 23 ) * 20
----
460

skipif mysql # not compatible
query I rowsort label-801
SELECT - MAX ( - 23 ) * 20
----
460

query I rowsort
SELECT ALL + - 14 * + 13 * + 38 - 34 + 48 AS col2
----
-6902

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT DISTINCT + ( + + CASE - 93 WHEN - 37 THEN MIN( ALL - 79 ) WHEN - COUNT( * ) + 68 THEN NULL WHEN + 40 + 4 + - 54 - 57 * - COUNT( - 5 ) * + 90 THEN - 1 ELSE 63 * ( - 13 ) / 61 * - - 94 * + 40 * - CASE - - 82 WHEN + 33 THEN NULL WHEN + COUNT( * ) THEN 72 ELSE NULL END * - COALESCE ( 57 + COALESCE ( - 78 - - 69, + 81 - 12, 88 + - 60 ), ( 97 ) ) END ) * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-803
SELECT DISTINCT + ( + + CASE - 93 WHEN - 37 THEN MIN ( ALL - 79 ) WHEN - COUNT ( * ) + 68 THEN NULL WHEN + 40 + 4 + - 54 - 57 * - COUNT ( - 5 ) * + 90 THEN - 1 ELSE 63 * ( - 13 ) / 61 * - - 94 * + 40 * - CASE - - 82 WHEN + 33 THEN NULL WHEN + COUNT ( * ) THEN 72 ELSE NULL END * - COALESCE ( 57 + COALESCE ( - 78 - - 69, + 81 - 12, 88 + - 60 ), ( 97 ) ) END ) * - 44
----
NULL

query I rowsort
SELECT - 93 * - - 67 + 68 + - + 78 col2
----
-6241

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT 37 * - COUNT( * ) + - - 42 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-805
SELECT 37 * - COUNT ( * ) + - - 42 AS col1
----
5

query I rowsort
SELECT NULLIF ( + 63, 22 + - 40 ) col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT 29 * COUNT( * ) + - 7 * - + COUNT( 98 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-807
SELECT 29 * COUNT ( * ) + - 7 * - + COUNT ( 98 ) AS col1
----
36

query II rowsort
SELECT - 85 * + NULLIF ( - + 67, + 21 ) * - 20, - 41 AS col2
----
-113900
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT - ( - + MIN( - 56 ) ) * - COUNT( - 32 ) * + 68 AS col2
----
3808

skipif mysql # not compatible
query I rowsort label-809
SELECT - ( - + MIN ( - 56 ) ) * - COUNT ( - 32 ) * + 68 AS col2
----
3808

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT DISTINCT + 57 * COUNT( * ) * + + 70 * 95 + - + COUNT( * ) AS col1
----
379049

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT + 57 * COUNT ( * ) * + + 70 * 95 + - + COUNT ( * ) AS col1
----
379049

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-811
SELECT ALL 55 * - MIN( 15 ) + - 12 DIV 75 * + + 43
----
-825

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL 55 * - MIN ( 15 ) + - 12 / 75 * + + 43
----
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT DISTINCT - SUM( DISTINCT - 94 ) * + 90 + 16 + - 61 + 98 AS col2
----
8513

skipif mysql # not compatible
query I rowsort label-812
SELECT DISTINCT - SUM ( DISTINCT - 94 ) * + 90 + 16 + - 61 + 98 AS col2
----
8513

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-813
SELECT DISTINCT - 79 * - - 90 + + + CASE + 45 WHEN - - 14 THEN NULL ELSE + + 89 + + 89 + + NULLIF ( + 7, 93 ) - + 1 DIV CAST( 45 AS SIGNED ) END + - - 20 * + - 30 AS col1
----
-7525

skipif mysql # not compatible
query I rowsort label-813
SELECT DISTINCT - 79 * - - 90 + + + CASE + 45 WHEN - - 14 THEN NULL ELSE + + 89 + + 89 + + NULLIF ( + 7, 93 ) - + 1 / CAST ( 45 AS INTEGER ) END + - - 20 * + - 30 AS col1
----
-7525

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT - CASE + 53 WHEN + COUNT( * ) + - COUNT( * ) THEN - 73 + 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-815
SELECT - CASE + 53 WHEN + COUNT ( * ) + - COUNT ( * ) THEN - 73 + 32 ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT + 48 * + COUNT ( * ) AS col2
----
48

query I rowsort
SELECT - 54 * + 39
----
-2106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-818
SELECT - CAST( - AVG ( + - 94 ) AS SIGNED ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-818
SELECT - CAST ( - AVG ( + - 94 ) AS INTEGER ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT + ( + 24 ) + - - SUM( ALL 35 )
----
59

skipif mysql # not compatible
query I rowsort label-819
SELECT + ( + 24 ) + - - SUM ( ALL 35 )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-820
SELECT DISTINCT CAST( + 68 AS SIGNED ) * + - 21 AS col0
----
-1428

skipif mysql # not compatible
query I rowsort label-820
SELECT DISTINCT CAST ( + 68 AS INTEGER ) * + - 21 AS col0
----
-1428

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-822
SELECT 72 DIV - 27 AS col2, + 40 * + 79 * ( + CASE - - 45 WHEN COUNT( * ) THEN NULL WHEN 84 + + 33 THEN NULL WHEN - COUNT( * ) THEN 95 WHEN + - 23 * 63 * COUNT( * ) + + 49 * + NULLIF ( - COUNT( ALL NULLIF ( 47, + + 30 * - - 4 * 13 ) ), + COUNT( * ) ) * + 23 * 51 THEN 98 END ) AS col2
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-822
SELECT 72 / - 27 AS col2, + 40 * + 79 * ( + CASE - - 45 WHEN COUNT ( * ) THEN NULL WHEN 84 + + 33 THEN NULL WHEN - COUNT ( * ) THEN 95 WHEN + - 23 * 63 * COUNT ( * ) + + 49 * + NULLIF ( - COUNT ( ALL NULLIF ( 47, + + 30 * - - 4 * 13 ) ), + COUNT ( * ) ) * + 23 * 51 THEN 98 END ) AS col2
----
-2
NULL

query I rowsort
SELECT ALL 76 * + 80 * 93 * - COALESCE ( + 60, - + 97 ) + + + 82
----
-33926318

query I rowsort
SELECT ( - 85 ) * - - 48 + 34 AS col2
----
-4046

query I rowsort
SELECT + 49 * 33 + - + CASE - 31 WHEN + 78 THEN - 0 ELSE NULL END + 88 / 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-826
SELECT ALL - NULLIF ( 54, CAST( NULL AS SIGNED ) ) AS col0, 84 * NULLIF ( - 8, - MAX( ALL - + 36 ) ) - + 25
----
-54
-697

skipif mysql # not compatible
query II rowsort label-826
SELECT ALL - NULLIF ( 54, CAST ( NULL AS INTEGER ) ) AS col0, 84 * NULLIF ( - 8, - MAX ( ALL - + 36 ) ) - + 25
----
-54
-697

query I rowsort
SELECT DISTINCT - 92 * 7 + + ( 14 ) AS col0
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT + - COUNT( DISTINCT + 90 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-828
SELECT + - COUNT ( DISTINCT + 90 ) col1
----
-1

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

skipif mysql # not compatible
query II rowsort label-829
SELECT ALL - - ( - 65 ) AS col0, COUNT ( * )
----
-65
1

query I rowsort
SELECT NULLIF ( + 82, 31 )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-831
SELECT + 24 AS col2, CAST( NULL AS SIGNED )
----
24
NULL

skipif mysql # not compatible
query II rowsort label-831
SELECT + 24 AS col2, CAST ( NULL AS INTEGER )
----
24
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-832
SELECT 99 DIV + 82 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-832
SELECT 99 / + 82 AS col2
----
1

query I rowsort
SELECT 35 * - 71
----
-2485

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT ALL + 33 + - + 71 + - - COUNT( * ) + - 9 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL + 33 + - + 71 + - - COUNT ( * ) + - 9 AS col1
----
-46

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-837
SELECT ALL + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * - COUNT( * ) col1, - 6 + - + 19 col0
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-837
SELECT ALL + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * - COUNT ( * ) col1, - 6 + - + 19 col0
----
NULL
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-838
SELECT 25 DIV + - COUNT( ALL 76 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-838
SELECT 25 / + - COUNT ( ALL 76 ) AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-839
SELECT ALL + ( + + 90 ) + + CAST( - + 15 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL + ( + + 90 ) + + CAST ( - + 15 AS INTEGER )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-840
SELECT DISTINCT + 89 + + 78 - + 43 - + 60 * - + ( + COUNT( * ) ) + - - 52 DIV 77 AS col0, - 88
----
184
-88

skipif mysql # not compatible
query II rowsort label-840
SELECT DISTINCT + 89 + + 78 - + 43 - + 60 * - + ( + COUNT ( * ) ) + - - 52 / 77 AS col0, - 88
----
184
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-841
SELECT - 45, + 43 DIV 66 * - COUNT( * ) AS col1
----
-45
0

skipif mysql # not compatible
query II rowsort label-841
SELECT - 45, + 43 / 66 * - COUNT ( * ) AS col1
----
-45
0

query I rowsort
SELECT 14 + 62 * + 31 AS col0
----
1936

query II rowsort
SELECT - 1, + 63 AS col2
----
-1
63

query I rowsort
SELECT - 56 * 4 + - ( + - 97 ) + ( - - 13 ) AS col0
----
-114

query I rowsort
SELECT 59 * - 22 AS col0
----
-1298

query II rowsort
SELECT - 55, 36 * 57 AS col2
----
-55
2052

onlyif mysql # DIV for integer division: 
query I rowsort label-847
SELECT ALL - 71 - - + 99 DIV + 50 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-847
SELECT ALL - 71 - - + 99 / + 50 AS col1
----
-70

query I rowsort
SELECT DISTINCT + 17 * - - 19
----
323

query II rowsort
SELECT DISTINCT - 85, + 1 AS col1
----
-85
1

query I rowsort
SELECT DISTINCT - 39 - + 12 - 98
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT ALL SUM( 52 ) * + 43 AS col1
----
2236

skipif mysql # not compatible
query I rowsort label-851
SELECT ALL SUM ( 52 ) * + 43 AS col1
----
2236

query I rowsort
SELECT DISTINCT + - 89 * 25
----
-2225

query I rowsort
SELECT ALL - 6 - - + 96 + - + 2 * + 72
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT - COUNT( * ) * - 26 * 55
----
1430

skipif mysql # not compatible
query I rowsort label-854
SELECT - COUNT ( * ) * - 26 * 55
----
1430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-855
SELECT CASE 11 WHEN - - 57 THEN - CAST( NULL AS SIGNED ) WHEN + 95 - + 45 THEN + CAST( COUNT( * ) AS SIGNED ) END * + - SUM( + + 16 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-855
SELECT CASE 11 WHEN - - 57 THEN - CAST ( NULL AS INTEGER ) WHEN + 95 - + 45 THEN + CAST ( COUNT ( * ) AS INTEGER ) END * + - SUM ( + + 16 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT ALL + - 14 * - MIN( + 8 )
----
112

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL + - 14 * - MIN ( + 8 )
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT CASE + 27 WHEN + - COALESCE ( + + 43, + 63, 17 ) * + COUNT( * ) * + - 50 THEN - 3 - + - 56 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-857
SELECT CASE + 27 WHEN + - COALESCE ( + + 43, + 63, 17 ) * + COUNT ( * ) * + - 50 THEN - 3 - + - 56 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 97 + - NULLIF ( + - COALESCE ( + 96, + 72 * - 86 ), 87 ) AS col0
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT - NULLIF ( COUNT( * ), 91 / - 27 + - - 35 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-859
SELECT - NULLIF ( COUNT ( * ), 91 / - 27 + - - 35 ) AS col1
----
-1

query I rowsort
SELECT - - NULLIF ( + - 59, 50 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT CASE - SUM( + 15 ) WHEN - 35 THEN + ( + COUNT( * ) ) WHEN + COUNT( * ) * - 46 THEN NULL END + - 74 - + - 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-861
SELECT CASE - SUM ( + 15 ) WHEN - 35 THEN + ( + COUNT ( * ) ) WHEN + COUNT ( * ) * - 46 THEN NULL END + - 74 - + - 34 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-862
SELECT 74 * + MAX( ALL + 91 ) AS col0, 18 * COUNT( * ) - 46 * + - COUNT( ALL + - 41 )
----
6734
64

skipif mysql # not compatible
query II rowsort label-862
SELECT 74 * + MAX ( ALL + 91 ) AS col0, 18 * COUNT ( * ) - 46 * + - COUNT ( ALL + - 41 )
----
6734
64

query II rowsort
SELECT 18 * 44 * 53, 96 AS col1
----
41976
96

query I rowsort
SELECT 5 - CASE + ( ( 29 ) ) WHEN 39 THEN + 99 + 12 ELSE NULL END AS col1
----
NULL

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

query I rowsort
SELECT 66 + - - 75 + - 80
----
61

query I rowsort
SELECT 97 * + 86
----
8342

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT ALL + 88 + SUM( - - 64 ) col1
----
152

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL + 88 + SUM ( - - 64 ) col1
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT + - COALESCE ( 87, COUNT( * ) ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-869
SELECT + - COALESCE ( 87, COUNT ( * ) ) AS col0
----
-87

query I rowsort
SELECT ALL - 7 + + 30
----
23

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-872
SELECT SUM( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-872
SELECT SUM ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT + 85 * 32 + 38 + - 81 * + - 32 AS col0
----
5350

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT SUM( 26 )
----
26

skipif mysql # not compatible
query I rowsort label-874
SELECT SUM ( 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT SUM( DISTINCT 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-875
SELECT SUM ( DISTINCT 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT 65 * - 23 * - COUNT( * ) + 38 - - 32 AS col2
----
1565

skipif mysql # not compatible
query I rowsort label-876
SELECT 65 * - 23 * - COUNT ( * ) + 38 - - 32 AS col2
----
1565

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT SUM( - 35 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-877
SELECT SUM ( - 35 ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-878
SELECT ALL COUNT( * ) * - - 33, + 59 AS col0
----
33
59

skipif mysql # not compatible
query II rowsort label-878
SELECT ALL COUNT ( * ) * - - 33, + 59 AS col0
----
33
59

query I rowsort
SELECT DISTINCT 62 + 67 + COALESCE ( - 44, + 65 * - - 87 ) AS col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-880
SELECT ALL COUNT( * ) + + 32 + + CAST( NULL AS SIGNED ) - + - 17 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL COUNT ( * ) + + 32 + + CAST ( NULL AS INTEGER ) - + - 17 + - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-881
SELECT 25 + - + MAX( DISTINCT - - 37 ) * 74 AS col0, + 43 AS col2
----
-2713
43

skipif mysql # not compatible
query II rowsort label-881
SELECT 25 + - + MAX ( DISTINCT - - 37 ) * 74 AS col0, + 43 AS col2
----
-2713
43

query I rowsort
SELECT - NULLIF ( + 39, - + 67 ) * 72 + - CASE + 44 WHEN + + 0 THEN - 66 + - 56 WHEN - 37 THEN + 38 END AS col2
----
NULL

query I rowsort
SELECT 40 * + 42 AS col0
----
1680

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT COUNT( * ) * - 39 + + - 83 col2
----
-122

skipif mysql # not compatible
query I rowsort label-885
SELECT COUNT ( * ) * - 39 + + - 83 col2
----
-122

query I rowsort
SELECT 60 + + - 21 + - - 76
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT ALL + COUNT( * ) - 18
----
-17

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL + COUNT ( * ) - 18
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-888
SELECT ALL 7 * 85 DIV 36
----
16

skipif mysql # not compatible
query I rowsort label-888
SELECT ALL 7 * 85 / 36
----
16

query I rowsort
SELECT 56 * ( 51 ) AS col2
----
2856

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT + COUNT( - 7 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-890
SELECT + COUNT ( - 7 ) col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-891
SELECT + CASE + 83 WHEN + NULLIF ( 98, 3 ) THEN NULL WHEN - 75 THEN CAST( - 89 AS DECIMAL ) WHEN AVG ( ALL + 61 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-891
SELECT + CASE + 83 WHEN + NULLIF ( 98, 3 ) THEN NULL WHEN - 75 THEN CAST ( - 89 AS REAL ) WHEN AVG ( ALL + 61 ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-892
SELECT + - 55 - - + 51 DIV + 94
----
-55

skipif mysql # not compatible
query I rowsort label-892
SELECT + - 55 - - + 51 / + 94
----
-55

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

skipif mysql # not compatible
query I rowsort label-893
SELECT - - COUNT ( * ) / - + 47
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-895
SELECT + COUNT ( * ) + - 54 + + COUNT ( * ) AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT ALL - + CASE + COUNT( * ) WHEN + 93 / - + 94 THEN NULL WHEN 87 - - + 57 THEN - 12 END / + ( COUNT( * ) ) + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL - + CASE + COUNT ( * ) WHEN + 93 / - + 94 THEN NULL WHEN 87 - - + 57 THEN - 12 END / + ( COUNT ( * ) ) + 50
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-897
SELECT + ( + 36 ) DIV - + 51 * + 54 * + CAST( + + 27 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-897
SELECT + ( + 36 ) / - + 51 * + 54 * + CAST ( + + 27 AS INTEGER )
----
0

query II rowsort
SELECT - - 97 + + 38, - 23 AS col0
----
135
-23

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

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

query I rowsort
SELECT DISTINCT - 11 + - + 77 * + + 94 AS col1
----
-7249

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

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

query II rowsort
SELECT ALL + 67 + + 14, - 52 AS col1
----
81
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-903
SELECT DISTINCT - 9 + + COUNT( DISTINCT - 15 ) * - + 31, - 49 AS col1
----
-40
-49

skipif mysql # not compatible
query II rowsort label-903
SELECT DISTINCT - 9 + + COUNT ( DISTINCT - 15 ) * - + 31, - 49 AS col1
----
-40
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-904
SELECT - ( - 4 ) DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-904
SELECT - ( - 4 ) / 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT - 2 * + COUNT( * ) + 68 AS col0
----
66

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

query I rowsort
SELECT ALL + + COALESCE ( + - 11, - + 39 ) * NULLIF ( + 36, 50 ) + + - 96 AS col1
----
-492

onlyif mysql # aggregate syntax: 
query II rowsort label-907
SELECT + COUNT( * ), 78 + + COUNT( * ) - - 5 * 62 AS col0
----
1
389

skipif mysql # not compatible
query II rowsort label-907
SELECT + COUNT ( * ), 78 + + COUNT ( * ) - - 5 * 62 AS col0
----
1
389

onlyif mysql # DIV for integer division: 
query I rowsort label-908
SELECT ALL 9 DIV 6 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL 9 / 6 AS col0
----
1

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-911
SELECT ALL - MIN( CAST( NULL AS DECIMAL ) ) * + + 24 + + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL - MIN ( CAST ( NULL AS REAL ) ) * + + 24 + + 77
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-912
SELECT CASE 10 WHEN + + COALESCE ( + 71, - 10 * - 29 / + CASE + CAST( NULL AS DECIMAL ) WHEN + COUNT( * ) THEN + 41 / - + 29 WHEN + + 31 * COUNT( * ) + + - ( - + 71 ) + + COUNT( * ) * + COUNT( * ) THEN NULL END ) * - 25 THEN 19 WHEN + 33 - ( + 29 ) THEN + SUM( ALL - 40 ) + - + ( - - 66 ) WHEN - ( - 5 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-912
SELECT CASE 10 WHEN + + COALESCE ( + 71, - 10 * - 29 / + CASE + CAST ( NULL AS REAL ) WHEN + COUNT ( * ) THEN + 41 / - + 29 WHEN + + 31 * COUNT ( * ) + + - ( - + 71 ) + + COUNT ( * ) * + COUNT ( * ) THEN NULL END ) * - 25 THEN 19 WHEN + 33 - ( + 29 ) THEN + SUM ( ALL - 40 ) + - + ( - - 66 ) WHEN - ( - 5 ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-913
SELECT ALL 73 DIV 84 * + 88 * - 90 * + NULLIF ( - 91, + CAST( + COUNT( * ) AS SIGNED ) ), COUNT( * ) * - 77 col1
----
0
-77

skipif mysql # not compatible
query II rowsort label-913
SELECT ALL 73 / 84 * + 88 * - 90 * + NULLIF ( - 91, + CAST ( + COUNT ( * ) AS INTEGER ) ), COUNT ( * ) * - 77 col1
----
0
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-914
SELECT - 79 - - 34 DIV + 81 - + 87
----
-166

skipif mysql # not compatible
query I rowsort label-914
SELECT - 79 - - 34 / + 81 - + 87
----
-166

query I rowsort
SELECT + 85 * - ( 44 )
----
-3740

query II rowsort
SELECT ALL - 48 * - 3 - + 59, + 55 * ( + 12 ) col0
----
85
660

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-917
SELECT + 49 DIV - SUM( + 1 ) AS col0, 59
----
-49
59

skipif mysql # not compatible
query II rowsort label-917
SELECT + 49 / - SUM ( + 1 ) AS col0, 59
----
-49
59

onlyif mysql # aggregate syntax: 
query II rowsort label-918
SELECT ALL + COUNT( * ), 75 AS col2
----
1
75

skipif mysql # not compatible
query II rowsort label-918
SELECT ALL + COUNT ( * ), 75 AS col2
----
1
75

query I rowsort
SELECT DISTINCT 48 * + 54 col2
----
2592

onlyif mysql # aggregate syntax: 
query II rowsort label-920
SELECT ALL + 85, COUNT( * ) col0
----
85
1

skipif mysql # not compatible
query II rowsort label-920
SELECT ALL + 85, COUNT ( * ) col0
----
85
1

query II rowsort
SELECT DISTINCT + 88 AS col2, ( + 47 ) * + 28 + - + 18
----
88
1298

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-922
SELECT + ( COALESCE ( + + 77, COUNT( * ) DIV + - 78 + - 50 ) ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-922
SELECT + ( COALESCE ( + + 77, COUNT ( * ) / + - 78 + - 50 ) ) AS col1
----
77

query I rowsort
SELECT + 95 * - 94
----
-8930

query I rowsort
SELECT + + ( - - NULLIF ( + + 48, + + 67 + + 34 + 6 ) ) + + 34
----
82

query I rowsort
SELECT + CASE + 36 WHEN 29 THEN 1 ELSE NULL END * + + 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT - + 87 + - COUNT( * ) - 35 AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-926
SELECT - + 87 + - COUNT ( * ) - 35 AS col0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT - MIN( ALL 20 ) * - 66 + COUNT( * ) + + 45 * + 27
----
2536

skipif mysql # not compatible
query I rowsort label-927
SELECT - MIN ( ALL 20 ) * - 66 + COUNT ( * ) + + 45 * + 27
----
2536

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

query I rowsort
SELECT ALL - - 46 + + + 41 AS col2
----
87

query I rowsort
SELECT DISTINCT 4 + + - 29 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT - + 93 + 15 + - - 82 * - MAX( DISTINCT + 54 )
----
-4506

skipif mysql # not compatible
query I rowsort label-931
SELECT - + 93 + 15 + - - 82 * - MAX ( DISTINCT + 54 )
----
-4506

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-932
SELECT ALL - CAST( NULL AS DECIMAL ) col2, - NULLIF ( + + ( MIN( DISTINCT 15 ) ), - MAX( + - 24 ) * MIN( 85 ) / + + 91 + - - ( + 33 ) + - + 65 + 2 * - 45 ) + - 87 col2
----
NULL
-102

skipif mysql # not compatible
query II rowsort label-932
SELECT ALL - CAST ( NULL AS REAL ) col2, - NULLIF ( + + ( MIN ( DISTINCT 15 ) ), - MAX ( + - 24 ) * MIN ( 85 ) / + + 91 + - - ( + 33 ) + - + 65 + 2 * - 45 ) + - 87 col2
----
NULL
-102

query I rowsort
SELECT ALL 32 + 42 * - 12 AS col2
----
-472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-934
SELECT + COALESCE ( - 18, + + 47 DIV + 65, - + 58 DIV 60 * - 16 + + + CAST( COUNT( * ) AS SIGNED ) ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-934
SELECT + COALESCE ( - 18, + + 47 / + 65, - + 58 / 60 * - 16 + + + CAST ( COUNT ( * ) AS INTEGER ) ) AS col1
----
-18

query I rowsort
SELECT + 15 * + - 26 AS col0
----
-390

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-937
SELECT - - 11 DIV + + 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-937
SELECT - - 11 / + + 40 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT - 2 + 4 + - COUNT( * ) + + - 41
----
-40

skipif mysql # not compatible
query I rowsort label-938
SELECT - 2 + 4 + - COUNT ( * ) + + - 41
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-939
SELECT DISTINCT + + ( + 95 ) / CASE - CAST( NULL AS SIGNED ) WHEN - 40 THEN COUNT( * ) WHEN 18 * + CAST( NULL AS SIGNED ) THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT + + ( + 95 ) / CASE - CAST ( NULL AS INTEGER ) WHEN - 40 THEN COUNT ( * ) WHEN 18 * + CAST ( NULL AS INTEGER ) THEN NULL END col1
----
NULL

query I rowsort
SELECT DISTINCT ( - - 46 ) AS col0
----
46

query I rowsort
SELECT ALL + 2 - 12 AS col2
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-942
SELECT ALL - 31 DIV - 21 - - - 82 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL - 31 / - 21 - - - 82 AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-943
SELECT DISTINCT - 29 * + ( + COALESCE ( + 72, 6, + MIN( - 68 ) * CAST( 47 AS SIGNED ), - - ( 66 ) ) ) AS col2, + 79
----
-2088
79

skipif mysql # not compatible
query II rowsort label-943
SELECT DISTINCT - 29 * + ( + COALESCE ( + 72, 6, + MIN ( - 68 ) * CAST ( 47 AS INTEGER ), - - ( 66 ) ) ) AS col2, + 79
----
-2088
79

query I rowsort
SELECT - 44 * 22
----
-968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-945
SELECT COUNT( * ) / - 20 - - - 16 + + - ( - 60 ) - + 0 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-945
SELECT COUNT ( * ) / - 20 - - - 16 + + - ( - 60 ) - + 0 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( + 32 ) * 52
----
-1664

query I rowsort
SELECT - 38 * + NULLIF ( - + 96, - ( - + 10 ) + - + 73 ) + + 17 AS col0
----
3665

query I rowsort
SELECT - 8 * - 60 AS col2
----
480

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-951
SELECT - COALESCE ( 97, + CASE + + 45 WHEN + + 46 * - ( + 98 ) * - - 19 - + 0 THEN NULL ELSE + + 35 END DIV - 7 ) + + 68 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-951
SELECT - COALESCE ( 97, + CASE + + 45 WHEN + + 46 * - ( + 98 ) * - - 19 - + 0 THEN NULL ELSE + + 35 END / - 7 ) + + 68 AS col1
----
-29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT DISTINCT + SUM( DISTINCT 5 )
----
5

skipif mysql # not compatible
query I rowsort label-953
SELECT DISTINCT + SUM ( DISTINCT 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT ALL 89 * + COUNT( * ) col0
----
89

skipif mysql # not compatible
query I rowsort label-954
SELECT ALL 89 * + COUNT ( * ) col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-955
SELECT COUNT( - 50 ) DIV + 84 * 13
----
0

skipif mysql # not compatible
query I rowsort label-955
SELECT COUNT ( - 50 ) / + 84 * 13
----
0

query I rowsort
SELECT ALL - 27 * - 40 col2
----
1080

query II rowsort
SELECT DISTINCT - 52, 35 + 80 AS col0
----
-52
115

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT DISTINCT + 36 + - COUNT( * ) * + 34
----
2

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT + 36 + - COUNT ( * ) * + 34
----
2

query I rowsort
SELECT ALL + CASE - - 21 WHEN - - 21 + + 8 THEN - 66 * - - ( + COALESCE ( + 22, 53 ) ) + - - 41 WHEN + - ( 65 ) THEN 63 END * ( - + 3 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT ALL + 3 + - SUM( ALL 37 ) + + 77 + 56 + + 27 + 70 + + 30 - 30 AS col0
----
196

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL + 3 + - SUM ( ALL 37 ) + + 77 + 56 + + 27 + 70 + + 30 - 30 AS col0
----
196

query II rowsort
SELECT DISTINCT - 31 AS col2, 63 - + + 4
----
-31
59

query II rowsort
SELECT DISTINCT 63, 43 AS col2
----
63
43

query I rowsort
SELECT ALL 20 + - 68
----
-48

query II rowsort
SELECT - + 95 AS col2, + 74 + + 43
----
-95
117

query I rowsort
SELECT DISTINCT + 9 + + ( + + 13 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT ALL CASE - NULLIF ( + MAX( DISTINCT + - ( 92 ) ), - 9 * - NULLIF ( + COUNT( * ), - ( - - 30 ) ) + + 87 ) WHEN - 48 - + 25 - + + 8 THEN - 6 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL CASE - NULLIF ( + MAX ( DISTINCT + - ( 92 ) ), - 9 * - NULLIF ( + COUNT ( * ), - ( - - 30 ) ) + + 87 ) WHEN - 48 - + 25 - + + 8 THEN - 6 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-967
SELECT CAST( 3 AS SIGNED ) + + ( - - COUNT( 47 ) )
----
4

skipif mysql # not compatible
query I rowsort label-967
SELECT CAST ( 3 AS INTEGER ) + + ( - - COUNT ( 47 ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT - 87 * + + 38 + + COUNT( * )
----
-3305

skipif mysql # not compatible
query I rowsort label-968
SELECT - 87 * + + 38 + + COUNT ( * )
----
-3305

query II rowsort
SELECT - ( + 73 ) AS col2, 96
----
-73
96

query I rowsort
SELECT - 35 + - - 47 + - 2 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-971
SELECT DISTINCT COUNT( * ) - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT COUNT ( * ) - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-972
SELECT + 53 - - 17 + - 32 DIV - - 99 * - 57 DIV 10 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-972
SELECT + 53 - - 17 + - 32 / - - 99 * - 57 / 10 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT ALL AVG ( ALL + + 26 ) * - CASE + - 3 WHEN + + 85 * + 71 - + - 37 - + 7 * - - 80 THEN + - COUNT( * ) * 79 WHEN + 28 THEN - ( 57 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-973
SELECT ALL AVG ( ALL + + 26 ) * - CASE + - 3 WHEN + + 85 * + 71 - + - 37 - + 7 * - - 80 THEN + - COUNT ( * ) * 79 WHEN + 28 THEN - ( 57 ) ELSE NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT 41 + + - 74 * + 55 AS col2
----
-4029

query I rowsort
SELECT 50 + + - 74 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT ALL + ( SUM( + + 60 ) ) - 74 * 92
----
-6748

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL + ( SUM ( + + 60 ) ) - 74 * 92
----
-6748

onlyif mysql # DIV for integer division: 
query I rowsort label-978
SELECT 44 DIV - 69 * - 78 + + ( - + 76 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-978
SELECT 44 / - 69 * - 78 + + ( - + 76 ) AS col1
----
-76

query I rowsort
SELECT 34 * - 50 * + - 47 AS col0
----
79900

query I rowsort
SELECT ALL + 44 * - - 78 * - 54 AS col2
----
-185328

onlyif mysql # DIV for integer division: 
query I rowsort label-981
SELECT ALL ( ( + 81 ) ) DIV 38
----
2

skipif mysql # not compatible
query I rowsort label-981
SELECT ALL ( ( + 81 ) ) / 38
----
2

query I rowsort
SELECT ALL - 72 * 80 AS col0
----
-5760

query I rowsort
SELECT ALL - 54 * + 66
----
-3564

query II rowsort
SELECT 69 * - + 53 AS col2, 77 - 30
----
-3657
47

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT ALL - 81 + - 82 + + 96 * + COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-985
SELECT ALL - 81 + - 82 + + 96 * + COUNT ( * ) AS col1
----
-67

query I rowsort
SELECT ALL - NULLIF ( - 76, 6 / + + 41 )
----
76

query I rowsort
SELECT + 41 * + - 49 * + 89 AS col2
----
-178801

query I rowsort
SELECT DISTINCT + - 55 + + 84 + - 0 * 54
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT ALL - + 92 + + COUNT( * ) * - 40
----
-132

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL - + 92 + + COUNT ( * ) * - 40
----
-132

query I rowsort
SELECT 95 - - 22 col0
----
117

query I rowsort
SELECT + 96 * 76 * + + 26 - 14 AS col1
----
189682

query II rowsort
SELECT DISTINCT + - 63 + - 14 AS col2, 3
----
-77
3

query I rowsort
SELECT DISTINCT 65 * - + 34
----
-2210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-994
SELECT ALL + 71 + - COUNT( * ) - 81 DIV + 95 * - - 89 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL + 71 + - COUNT ( * ) - 81 / + 95 * - - 89 AS col2
----
70

query I rowsort
SELECT + 74 + - 88
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT MIN( DISTINCT + 47 ) * 53
----
2491

skipif mysql # not compatible
query I rowsort label-996
SELECT MIN ( DISTINCT + 47 ) * 53
----
2491

query I rowsort
SELECT ALL + - 87 * - + 88 + 71 col2
----
7727

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

query I rowsort
SELECT + 57 - + 56 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT DISTINCT - 22 * MIN( + - 44 ) * + 57 AS col2
----
55176

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT - 22 * MIN ( + - 44 ) * + 57 AS col2
----
55176

query I rowsort
SELECT CASE + + 99 WHEN - 62 THEN 0 + + 68 ELSE NULL END - 36 + 9 + 32 / - 45 AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 86 * + - 86 AS col0
----
7396

query I rowsort
SELECT ALL 21 - - 41 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT - MAX( ALL 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-1005
SELECT - MAX ( ALL 38 ) AS col1
----
-38

query I rowsort
SELECT 15 + - - 76 AS col1
----
91

query II rowsort
SELECT ALL 70 AS col2, 3
----
70
3

query I rowsort
SELECT NULLIF ( - 39, - 6 * + + 99 ) * + 44 * + 40
----
-68640

query I rowsort
SELECT 40 - 83 + + 86 - - 38 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT ALL ( + 71 ) * MIN( ALL + 40 ) AS col2
----
2840

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL ( + 71 ) * MIN ( ALL + 40 ) AS col2
----
2840

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

skipif mysql # not compatible
query II rowsort label-1011
SELECT ALL COUNT ( * ), 72 AS col0
----
1
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1012
SELECT CASE + ( 21 ) WHEN - + 86 THEN NULL WHEN CAST( - 55 AS SIGNED ) THEN NULL ELSE + - COUNT( * ) * + 78 * - COUNT( * ) END col0
----
78

skipif mysql # not compatible
query I rowsort label-1012
SELECT CASE + ( 21 ) WHEN - + 86 THEN NULL WHEN CAST ( - 55 AS INTEGER ) THEN NULL ELSE + - COUNT ( * ) * + 78 * - COUNT ( * ) END col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT ALL COUNT( DISTINCT 13 ) * - 82 + + ( + 3 )
----
-79

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL COUNT ( DISTINCT 13 ) * - 82 + + ( + 3 )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1014
SELECT 86 * + CAST( NULL AS SIGNED ) + SUM( - 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1014
SELECT 86 * + CAST ( NULL AS INTEGER ) + SUM ( - 56 )
----
NULL

query I rowsort
SELECT - 24 + - - 85
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1016
SELECT + 36 * - CASE - 71 WHEN CAST( + 47 AS SIGNED ) THEN 26 * + 37 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1016
SELECT + 36 * - CASE - 71 WHEN CAST ( + 47 AS INTEGER ) THEN 26 * + 37 + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1017
SELECT ALL 52 * 84 + - NULLIF ( + 34, - 32 ) + + + 73 * - 0 + COUNT( * ) DIV + - 93 AS col2
----
4334

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL 52 * 84 + - NULLIF ( + 34, - 32 ) + + + 73 * - 0 + COUNT ( * ) / + - 93 AS col2
----
4334

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT + + 64 * + 66 * + NULLIF ( + 66, 96 * + 49 + - - COUNT( * ) + 68 ) + 21 AS col2
----
278805

skipif mysql # not compatible
query I rowsort label-1018
SELECT + + 64 * + 66 * + NULLIF ( + 66, 96 * + 49 + - - COUNT ( * ) + 68 ) + 21 AS col2
----
278805

onlyif mysql # DIV for integer division: 
query I rowsort label-1019
SELECT ALL 53 DIV + - 96 + - + 91 * - ( - 94 ) * + - 93 - - - 40 + + 61 + - + 86
----
795457

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL 53 / + - 96 + - + 91 * - ( - 94 ) * + - 93 - - - 40 + + 61 + - + 86
----
795457

query I rowsort
SELECT DISTINCT 11 * 29 + - 38 + - 17 AS col2
----
264

query I rowsort
SELECT ALL + 86 * - - 86 AS col0
----
7396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1022
SELECT - 6 + + + 93 * 9 DIV - + MIN( DISTINCT 22 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1022
SELECT - 6 + + + 93 * 9 / - + MIN ( DISTINCT 22 ) AS col2
----
-44

query I rowsort
SELECT DISTINCT + 49 * + + 52 + - - 79 AS col0
----
2627

query I rowsort
SELECT 78 * - 0 + - 67
----
-67

query I rowsort
SELECT - + 20 * - 93
----
1860

onlyif mysql # DIV for integer division: 
query I rowsort label-1026
SELECT - - 63 * - 0 + - + 26 DIV - - 43 * + 95 DIV - 18 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1026
SELECT - - 63 * - 0 + - + 26 / - - 43 * + 95 / - 18 AS col2
----
0

query I rowsort
SELECT - 55 + - 74
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL + - MAX( DISTINCT + 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL + - MAX ( DISTINCT + 92 )
----
-92

query I rowsort
SELECT ALL + - 38 col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1030
SELECT - COALESCE ( 7, + 96, 12 DIV + 21 + CASE - NULLIF ( - - MAX( DISTINCT - + 36 ), - 89 * - 93 ) WHEN - 66 THEN - - 98 END ) * + + CASE - - CASE 27 WHEN - 6 + - 94 THEN NULLIF ( + 10, + 57 ) * - + 94 + 39 * 40 * + NULLIF ( - 18, + 48 ) * + + 50 + 84 ELSE - 18 * COUNT( * ) + 4 + - - 65 + - 78 END WHEN 59 - - 0 THEN NULL WHEN - ( - 71 ) + - 47 THEN NULL ELSE 7 END * CASE 67 WHEN + CASE - 11 WHEN + COALESCE ( - 83, 56 ) DIV 60 + 66 * + 8 THEN - 74 * - CASE - 92 * + COUNT( * ) WHEN 71 * 94 THEN - 24 - 0 END END * 13 THEN NULL WHEN 78 THEN NULL ELSE 70 END
----
-3430

skipif mysql # not compatible
query I rowsort label-1030
SELECT - COALESCE ( 7, + 96, 12 / + 21 + CASE - NULLIF ( - - MAX ( DISTINCT - + 36 ), - 89 * - 93 ) WHEN - 66 THEN - - 98 END ) * + + CASE - - CASE 27 WHEN - 6 + - 94 THEN NULLIF ( + 10, + 57 ) * - + 94 + 39 * 40 * + NULLIF ( - 18, + 48 ) * + + 50 + 84 ELSE - 18 * COUNT ( * ) + 4 + - - 65 + - 78 END WHEN 59 - - 0 THEN NULL WHEN - ( - 71 ) + - 47 THEN NULL ELSE 7 END * CASE 67 WHEN + CASE - 11 WHEN + COALESCE ( - 83, 56 ) / 60 + 66 * + 8 THEN - 74 * - CASE - 92 * + COUNT ( * ) WHEN 71 * 94 THEN - 24 - 0 END END * 13 THEN NULL WHEN 78 THEN NULL ELSE 70 END
----
-3430

query II rowsort
SELECT ALL 4, - COALESCE ( + 40, + + 77 ) AS col2
----
4
-40

query I rowsort
SELECT - - 37 + - 98
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1033
SELECT ALL - CAST( 61 AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL - CAST ( 61 AS INTEGER )
----
-61

query II rowsort
SELECT ALL + 94, - 97 AS col2
----
94
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT - - SUM( - 25 ) * 80
----
-2000

skipif mysql # not compatible
query I rowsort label-1035
SELECT - - SUM ( - 25 ) * 80
----
-2000

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT - SUM( ALL - + 13 ) + COUNT( * ) + - 64 + - 80
----
-130

skipif mysql # not compatible
query I rowsort label-1036
SELECT - SUM ( ALL - + 13 ) + COUNT ( * ) + - 64 + - 80
----
-130

query II rowsort
SELECT DISTINCT - 62 * - 26, 89 AS col1
----
1612
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT - COALESCE ( - - 34, + + ( - + 13 ) * - COUNT( * ) ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-1038
SELECT - COALESCE ( - - 34, + + ( - + 13 ) * - COUNT ( * ) ) AS col2
----
-34

query II rowsort
SELECT - 32 * 69 AS col1, - 77 AS col2
----
-2208
-77

query I rowsort
SELECT ALL 44 * 47
----
2068

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1041
SELECT ALL ( + COUNT( * ) ) * 38 + + 93 AS col0, + 43 DIV 5 DIV SUM( ALL + - 82 ) * - COUNT( * ) AS col2
----
131
0

skipif mysql # not compatible
query II rowsort label-1041
SELECT ALL ( + COUNT ( * ) ) * 38 + + 93 AS col0, + 43 / 5 / SUM ( ALL + - 82 ) * - COUNT ( * ) AS col2
----
131
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1043
SELECT ALL - CAST( 53 AS SIGNED ) * 11 AS col0
----
-583

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL - CAST ( 53 AS INTEGER ) * 11 AS col0
----
-583

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1044
SELECT ALL - 44 + + 8 DIV + 99 * + 95 * - 10 + ( COUNT( * ) )
----
-43

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL - 44 + + 8 / + 99 * + 95 * - 10 + ( COUNT ( * ) )
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1045
SELECT + CASE 37 WHEN - + 22 - 54 THEN + 78 DIV - 19 + - + 91 WHEN + 67 * - - NULLIF ( - 48, - - AVG ( + 19 ) ) DIV + COUNT( * ) + + - COALESCE ( + 10, + + CASE + - 72 WHEN - COUNT( * ) THEN NULL WHEN - - CASE - + 2 WHEN - COUNT( * ) * + + 64 THEN - - MAX( DISTINCT + ( + - 91 ) ) + - 67 WHEN + 78 THEN NULL ELSE NULL END * - - 35 * + AVG ( 76 ) * + - 95 * 35 THEN + 21 * 34 ELSE - NULLIF ( - 34, + 75 * 97 ) + 96 END, 81 * 25 ) THEN COUNT( * ) + - 37 ELSE 85 * - MAX( DISTINCT + 4 ) END * 13 AS col2
----
-4420

skipif mysql # not compatible
query I rowsort label-1045
SELECT + CASE 37 WHEN - + 22 - 54 THEN + 78 / - 19 + - + 91 WHEN + 67 * - - NULLIF ( - 48, - - AVG ( + 19 ) ) / + COUNT ( * ) + + - COALESCE ( + 10, + + CASE + - 72 WHEN - COUNT ( * ) THEN NULL WHEN - - CASE - + 2 WHEN - COUNT ( * ) * + + 64 THEN - - MAX ( DISTINCT + ( + - 91 ) ) + - 67 WHEN + 78 THEN NULL ELSE NULL END * - - 35 * + AVG ( 76 ) * + - 95 * 35 THEN + 21 * 34 ELSE - NULLIF ( - 34, + 75 * 97 ) + 96 END, 81 * 25 ) THEN COUNT ( * ) + - 37 ELSE 85 * - MAX ( DISTINCT + 4 ) END * 13 AS col2
----
-4420

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT + MIN( 5 ) + - + COUNT( + 84 ) + - 92 - + CASE - COUNT( * ) WHEN - + 66 THEN - 84 WHEN - MAX( + - 53 ) / + + 84 THEN NULL WHEN + MAX( DISTINCT + - 71 ) + - 46 / MAX( DISTINCT + ( 88 ) ) * + 22 - + + 50 THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1046
SELECT + MIN ( 5 ) + - + COUNT ( + 84 ) + - 92 - + CASE - COUNT ( * ) WHEN - + 66 THEN - 84 WHEN - MAX ( + - 53 ) / + + 84 THEN NULL WHEN + MAX ( DISTINCT + - 71 ) + - 46 / MAX ( DISTINCT + ( 88 ) ) * + 22 - + + 50 THEN NULL ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1047
SELECT - ( 62 ) col1, ( - - 26 ) * - 65 - - COUNT( * )
----
-62
-1689

skipif mysql # not compatible
query II rowsort label-1047
SELECT - ( 62 ) col1, ( - - 26 ) * - 65 - - COUNT ( * )
----
-62
-1689

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1049
SELECT 18 DIV 20 + - 27 - + COUNT( * ) DIV - 25
----
-27

skipif mysql # not compatible
query I rowsort label-1049
SELECT 18 / 20 + - 27 - + COUNT ( * ) / - 25
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1050
SELECT ALL 44 / + ( + + CAST( NULL AS SIGNED ) ) + - + 48 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1050
SELECT ALL 44 / + ( + + CAST ( NULL AS INTEGER ) ) + - + 48 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1051
SELECT CAST( CASE - + ( + 15 ) WHEN + + 41 THEN NULL WHEN + 34 THEN NULL WHEN 27 THEN - 90 + + + ( - - 88 ) END AS SIGNED ) col1, 72
----
NULL
72

skipif mysql # not compatible
query II rowsort label-1051
SELECT CAST ( CASE - + ( + 15 ) WHEN + + 41 THEN NULL WHEN + 34 THEN NULL WHEN 27 THEN - 90 + + + ( - - 88 ) END AS INTEGER ) col1, 72
----
NULL
72

query I rowsort
SELECT + 12 * + + 45 * 52
----
28080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1053
SELECT DISTINCT 24 * CAST( - 96 AS SIGNED ) col1
----
-2304

skipif mysql # not compatible
query I rowsort label-1053
SELECT DISTINCT 24 * CAST ( - 96 AS INTEGER ) col1
----
-2304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1054
SELECT ALL COUNT( * ) DIV - 42 * + 79 + + 91
----
91

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL COUNT ( * ) / - 42 * + 79 + + 91
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT DISTINCT COUNT( DISTINCT + 99 ) * NULLIF ( + + 2, 99 )
----
2

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT COUNT ( DISTINCT + 99 ) * NULLIF ( + + 2, 99 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1058
SELECT + - 74 * - + 81 + COUNT( * ) + + COUNT( * ) - + COUNT( * ) + - ( + CAST( - 85 AS SIGNED ) ) + - 53 - 71 + - 18 * - - COUNT( * ), + 44 AS col1
----
5938
44

skipif mysql # not compatible
query II rowsort label-1058
SELECT + - 74 * - + 81 + COUNT ( * ) + + COUNT ( * ) - + COUNT ( * ) + - ( + CAST ( - 85 AS INTEGER ) ) + - 53 - 71 + - 18 * - - COUNT ( * ), + 44 AS col1
----
5938
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1059
SELECT COALESCE ( + - 32, - MIN( ALL - 16 ) * - - 64 - + 75, + + 42 + - + 40 DIV + 39, - + 82 * + 68 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-1059
SELECT COALESCE ( + - 32, - MIN ( ALL - 16 ) * - - 64 - + 75, + + 42 + - + 40 / + 39, - + 82 * + 68 ) AS col1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-1060
SELECT - 26 DIV 13 * 50
----
-100

skipif mysql # not compatible
query I rowsort label-1060
SELECT - 26 / 13 * 50
----
-100

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1062
SELECT DISTINCT + 22 DIV + - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT + 22 / + - 66 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1063
SELECT + - 83 - + 61, 38 + 95 + CASE - 69 WHEN + - 38 THEN COUNT( * ) - - + 75 + - 16 WHEN - 69 + + 40 / + COALESCE ( - 72, - 10 ) + + 86 THEN - ( COALESCE ( COUNT( * ), + 1 - - - 32, + 13, - + 23 ) ) + + + 2 END * AVG ( DISTINCT - 58 ) AS col1
----
-144
NULL

skipif mysql # not compatible
query II rowsort label-1063
SELECT + - 83 - + 61, 38 + 95 + CASE - 69 WHEN + - 38 THEN COUNT ( * ) - - + 75 + - 16 WHEN - 69 + + 40 / + COALESCE ( - 72, - 10 ) + + 86 THEN - ( COALESCE ( COUNT ( * ), + 1 - - - 32, + 13, - + 23 ) ) + + + 2 END * AVG ( DISTINCT - 58 ) AS col1
----
-144
NULL

query I rowsort
SELECT ALL + - 32 * + 57 * + + 12 - + 15
----
-21903

query I rowsort
SELECT 33 * + 94 + + 56 AS col0
----
3158

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

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

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

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

query I rowsort
SELECT + 72 + 32 col0
----
104

query I rowsort
SELECT ALL - 37 * + 90
----
-3330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1070
SELECT - + NULLIF ( - CAST( + 39 AS SIGNED ), + 32 ) * + CAST( + 80 AS SIGNED ) + + 10 + 85 + - + COUNT( * ) DIV + + ( 20 ) + + - CAST( + 48 AS SIGNED ) + - 10 * + 17 * + ( - 19 ) * + + 79
----
258337

skipif mysql # not compatible
query I rowsort label-1070
SELECT - + NULLIF ( - CAST ( + 39 AS INTEGER ), + 32 ) * + CAST ( + 80 AS INTEGER ) + + 10 + 85 + - + COUNT ( * ) / + + ( 20 ) + + - CAST ( + 48 AS INTEGER ) + - 10 * + 17 * + ( - 19 ) * + + 79
----
258337

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT - SUM( DISTINCT + + 6 ) - + 6 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-1071
SELECT - SUM ( DISTINCT + + 6 ) - + 6 AS col2
----
-12

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1074
SELECT DISTINCT CAST( 37 AS SIGNED ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-1074
SELECT DISTINCT CAST ( 37 AS INTEGER ) AS col1
----
37

query I rowsort
SELECT DISTINCT + 84 * 14 * 42 * - 24 + + + ( + 55 ) col1
----
-1185353

query I rowsort
SELECT ALL + 85 + - 3 + + 92 AS col0
----
174

query I rowsort
SELECT ALL + 12 + - 92 AS col0
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1078
SELECT 59 DIV + + ( 94 ) * COUNT( * ) - + 77 AS col2, 6 + - + 76 * - 10 AS col1
----
-77
766

skipif mysql # not compatible
query II rowsort label-1078
SELECT 59 / + + ( 94 ) * COUNT ( * ) - + 77 AS col2, 6 + - + 76 * - 10 AS col1
----
-77
766

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1079
SELECT ALL 90 + COUNT( * ) - + + MAX( - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL 90 + COUNT ( * ) - + + MAX ( - CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT ALL + 85 + - + 80
----
5

query I rowsort
SELECT 40 + 47 * + 83 * - 59 AS col2
----
-230119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1082
SELECT - 82 AS col1, - MAX( DISTINCT + ( + 96 ) ) + + CAST( - + 85 AS SIGNED ) - + 64 * 3 col0
----
-82
-373

skipif mysql # not compatible
query II rowsort label-1082
SELECT - 82 AS col1, - MAX ( DISTINCT + ( + 96 ) ) + + CAST ( - + 85 AS INTEGER ) - + 64 * 3 col0
----
-82
-373

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

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL - 22 * + COUNT ( - ( - + 42 ) ) AS col0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1084
SELECT 49 + - NULLIF ( 27, - 3 * - 30 ) + - 32 * - - 98 * 26 * + + 89 * + 24 * ( - + 2 ) * + CAST( NULL AS SIGNED ) + - + 85 + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1084
SELECT 49 + - NULLIF ( 27, - 3 * - 30 ) + - 32 * - - 98 * 26 * + + 89 * + 24 * ( - + 2 ) * + CAST ( NULL AS INTEGER ) + - + 85 + 3 AS col0
----
NULL

query I rowsort
SELECT 85 * - COALESCE ( - ( + 3 ), - 68, + - 3 )
----
255

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT CASE + 57 WHEN - - 30 - - - 22 THEN - COALESCE ( + 36, ( - 2 ) + 82 - - 66 ) END * MIN( + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1087
SELECT CASE + 57 WHEN - - 30 - - - 22 THEN - COALESCE ( + 36, ( - 2 ) + 82 - - 66 ) END * MIN ( + 1 )
----
NULL

query I rowsort
SELECT ALL + 50 + + + 86 * - 57
----
-4852

query I rowsort
SELECT ALL - 23 * - - 5 AS col1
----
-115

query I rowsort
SELECT DISTINCT + 68 + - 78 AS col1
----
-10

query I rowsort
SELECT DISTINCT + 5 * 7 AS col1
----
35

query I rowsort
SELECT + 2 * 58 * + - AVG ( + 25 ) * + - CASE - 0 WHEN - 94 THEN + AVG ( ALL - - 67 ) + 87 WHEN 38 THEN NULL WHEN + 40 THEN NULL ELSE NULL END + - AVG ( ALL - 87 ) + - 33 + + 34
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1094
SELECT ( CASE 83 WHEN 40 - AVG ( - - 44 ) + - 88 THEN NULL ELSE + + 85 * + 16 END ) DIV - 71 - + MAX( + 86 ) * ( + - 26 ) - 14 + - + 19 + 32 * - 80 * 40 DIV - 4 AS col2
----
27784

skipif mysql # not compatible
query I rowsort label-1094
SELECT ( CASE 83 WHEN 40 - AVG ( - - 44 ) + - 88 THEN NULL ELSE + + 85 * + 16 END ) / - 71 - + MAX ( + 86 ) * ( + - 26 ) - 14 + - + 19 + 32 * - 80 * 40 / - 4 AS col2
----
27784

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1095
SELECT + - CAST( NULL AS DECIMAL ) * - 13 / 85 + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-1095
SELECT + - CAST ( NULL AS REAL ) * - 13 / 85 + + 17
----
NULL

query I rowsort
SELECT + 10 - - COALESCE ( - + 34, 10 ) * - + 47 - + + 87
----
1521

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1097
SELECT 62 + CAST( NULL AS SIGNED ) + + + 45 + 49 + + 57 * + NULLIF ( - NULLIF ( + 91, - COUNT( DISTINCT - 74 ) ), - - 37 + 77 + - ( - 72 ) * + 76 * + 10 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1097
SELECT 62 + CAST ( NULL AS INTEGER ) + + + 45 + 49 + + 57 * + NULLIF ( - NULLIF ( + 91, - COUNT ( DISTINCT - 74 ) ), - - 37 + 77 + - ( - 72 ) * + 76 * + 10 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 92 * + 14
----
-1288

onlyif mysql # DIV for integer division: 
query I rowsort label-1099
SELECT - + 26 DIV + 96 + - + 63 + 73 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-1099
SELECT - + 26 / + 96 + - + 63 + 73 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT ALL - 43 * + 51 * 62 * - COUNT( * ) * + COUNT( * ) + + 3 AS col2
----
135969

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL - 43 * + 51 * 62 * - COUNT ( * ) * + COUNT ( * ) + + 3 AS col2
----
135969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1101
SELECT COALESCE ( 23, + CASE - 34 WHEN - 44 DIV - CAST( NULL AS SIGNED ) + - + COUNT( * ) * 0 THEN NULL WHEN + - 55 THEN - 10 + + + 92 END DIV 67, - 80 DIV 72 + + COUNT( * ) ) + + COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-1101
SELECT COALESCE ( 23, + CASE - 34 WHEN - 44 / - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * 0 THEN NULL WHEN + - 55 THEN - 10 + + + 92 END / 67, - 80 / 72 + + COUNT ( * ) ) + + COUNT ( * ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT COUNT( - - 41 ) * + - 9 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-1102
SELECT COUNT ( - - 41 ) * + - 9 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT - - 11 * - + 10 + - + 80 + - SUM( ALL - 96 )
----
-94

skipif mysql # not compatible
query I rowsort label-1103
SELECT - - 11 * - + 10 + - + 80 + - SUM ( ALL - 96 )
----
-94

query I rowsort
SELECT - 17 * - + 65
----
1105

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT + SUM( + 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-1105
SELECT + SUM ( + 46 ) AS col1
----
46

query I rowsort
SELECT 11 + + 92 * 12 * + 3 AS col2
----
3323

onlyif mysql # aggregate syntax: 
query II rowsort label-1107
SELECT ALL - + 9 AS col0, 86 * - COALESCE ( - 33, - 3 * - 19 - COUNT( * ) * 75 + - + 59 + 34, + 63, - 68 - + - 84 ) col0
----
-9
2838

skipif mysql # not compatible
query II rowsort label-1107
SELECT ALL - + 9 AS col0, 86 * - COALESCE ( - 33, - 3 * - 19 - COUNT ( * ) * 75 + - + 59 + 34, + 63, - 68 - + - 84 ) col0
----
-9
2838

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1108
SELECT ALL - 16 DIV MIN( + - 76 ) DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL - 16 / MIN ( + - 76 ) / 83
----
0

query II rowsort
SELECT DISTINCT - - 28 AS col1, + 53 col0
----
28
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1110
SELECT DISTINCT NULLIF ( + + CAST( + ( 9 ) AS SIGNED ), - 11 + 71 ) + + AVG ( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1110
SELECT DISTINCT NULLIF ( + + CAST ( + ( 9 ) AS INTEGER ), - 11 + 71 ) + + AVG ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1111
SELECT ALL 12, 34 DIV 29 + - - COALESCE ( + 69, + 63, - - 10, - 4 ) AS col1
----
12
70

skipif mysql # not compatible
query II rowsort label-1111
SELECT ALL 12, 34 / 29 + - - COALESCE ( + 69, + 63, - - 10, - 4 ) AS col1
----
12
70

query I rowsort
SELECT 17 * 59 + - + 99 + - COALESCE ( + 19, - + 95 + - + 47 ) * 21 AS col1
----
505

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT DISTINCT 9 + 56 + + COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-1113
SELECT DISTINCT 9 + 56 + + COUNT ( * ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT ALL ( + COALESCE ( 10, + 51, - - CASE 30 WHEN - + 86 + CASE + 28 WHEN + 42 * + + 5 THEN ( 70 ) ELSE NULL END * - 78 THEN NULL ELSE - 84 END ) ) + - + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL ( + COALESCE ( 10, + 51, - - CASE 30 WHEN - + 86 + CASE + 28 WHEN + 42 * + + 5 THEN ( 70 ) ELSE NULL END * - 78 THEN NULL ELSE - 84 END ) ) + - + COUNT ( * )
----
9

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-1115
SELECT DISTINCT 17 AS col2, 55 - + - CASE + 1 WHEN - 44 THEN NULL WHEN - 66 THEN + NULLIF ( + NULLIF ( + ( + 98 ), + 1 ), 97 * 4 DIV 63 ) DIV - 43 + + ( 31 ) ELSE NULL END + - CAST( + 72 AS DECIMAL ) AS col2, - 95 + + ( + 85 ) + + - 5 DIV + 83 + - - ( - - 93 ) + 75 + - ( - CASE 49 WHEN 56 + 35 DIV - 99 + - 86 DIV - 55 THEN - 56 ELSE 48 * + 38 + 34 END ) col0
----
17
NULL
2016

skipif mysql # not compatible
query III rowsort label-1115
SELECT DISTINCT 17 AS col2, 55 - + - CASE + 1 WHEN - 44 THEN NULL WHEN - 66 THEN + NULLIF ( + NULLIF ( + ( + 98 ), + 1 ), 97 * 4 / 63 ) / - 43 + + ( 31 ) ELSE NULL END + - CAST ( + 72 AS REAL ) AS col2, - 95 + + ( + 85 ) + + - 5 / + 83 + - - ( - - 93 ) + 75 + - ( - CASE 49 WHEN 56 + 35 / - 99 + - 86 / - 55 THEN - 56 ELSE 48 * + 38 + 34 END ) col0
----
17
NULL
2016

query II rowsort
SELECT 8, 67 AS col0
----
8
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT 40 * - - ( + + CASE + 35 WHEN - 69 THEN NULL WHEN + + COUNT( * ) THEN NULL ELSE - 39 END )
----
-1560

skipif mysql # not compatible
query I rowsort label-1117
SELECT 40 * - - ( + + CASE + 35 WHEN - 69 THEN NULL WHEN + + COUNT ( * ) THEN NULL ELSE - 39 END )
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT ( - 58 ) - + 60 - + CASE + - 97 WHEN + COUNT( * ) THEN - 2 END + - 11 / - - 39 + - - 38 * - 0 * - 60 * 43 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1118
SELECT ( - 58 ) - + 60 - + CASE + - 97 WHEN + COUNT ( * ) THEN - 2 END + - 11 / - - 39 + - - 38 * - 0 * - 60 * 43 + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 36 + 53 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT ALL - 27 * - MIN( DISTINCT 53 )
----
1431

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL - 27 * - MIN ( DISTINCT 53 )
----
1431

onlyif mysql # aggregate syntax: 
query II rowsort label-1121
SELECT - 88 AS col2, - 56 + - + SUM( + - 94 )
----
-88
38

skipif mysql # not compatible
query II rowsort label-1121
SELECT - 88 AS col2, - 56 + - + SUM ( + - 94 )
----
-88
38

query I rowsort
SELECT DISTINCT 19 - 94
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-1123
SELECT ALL 44, - CASE + SUM( ALL + 96 ) WHEN - + 11 THEN - - 17 + - + COUNT( * ) * - + COUNT( DISTINCT - 97 ) WHEN - MAX( 24 ) + - 85 THEN NULL END + - 56 * 73 * - ( 41 ) AS col0
----
44
NULL

skipif mysql # not compatible
query II rowsort label-1123
SELECT ALL 44, - CASE + SUM ( ALL + 96 ) WHEN - + 11 THEN - - 17 + - + COUNT ( * ) * - + COUNT ( DISTINCT - 97 ) WHEN - MAX ( 24 ) + - 85 THEN NULL END + - 56 * 73 * - ( 41 ) AS col0
----
44
NULL

query I rowsort
SELECT ALL - 18 - - + 99 col2
----
81

query II rowsort
SELECT ALL 98, + 86 * + 84 AS col0
----
98
7224

onlyif mysql # aggregate syntax: 
query II rowsort label-1126
SELECT 24, 14 * ( - + 68 ) * - COUNT( * ) AS col2
----
24
952

skipif mysql # not compatible
query II rowsort label-1126
SELECT 24, 14 * ( - + 68 ) * - COUNT ( * ) AS col2
----
24
952

query I rowsort
SELECT 3 * + NULLIF ( ( 65 ), + - 72 ) AS col1
----
195

query II rowsort
SELECT - 56 AS col1, + 39 AS col2
----
-56
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT ( + 97 ) + - + 32 * + COALESCE ( 10, + + MAX( ALL - + 82 ) )
----
-223

skipif mysql # not compatible
query I rowsort label-1129
SELECT ( + 97 ) + - + 32 * + COALESCE ( 10, + + MAX ( ALL - + 82 ) )
----
-223

query II rowsort
SELECT - 4 AS col2, 84 * + 39
----
-4
3276

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1131
SELECT DISTINCT + 55 * - 25 + - CAST( NULL AS SIGNED ) + 29 AS col2, - 9
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-1131
SELECT DISTINCT + 55 * - 25 + - CAST ( NULL AS INTEGER ) + 29 AS col2, - 9
----
NULL
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT ALL + - 78 * COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL + - 78 * COUNT ( * )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-1133
SELECT - 62 DIV - - ( 73 ) + - + 29 + 59 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-1133
SELECT - 62 / - - ( 73 ) + - + 29 + 59 AS col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1134
SELECT DISTINCT - CAST( - 9 AS SIGNED ) * ( + + 1 ) + - - 5 * - COUNT( * ) AS col1, + 44
----
4
44

skipif mysql # not compatible
query II rowsort label-1134
SELECT DISTINCT - CAST ( - 9 AS INTEGER ) * ( + + 1 ) + - - 5 * - COUNT ( * ) AS col1, + 44
----
4
44

query II rowsort
SELECT ALL - 66, 29 AS col0
----
-66
29

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1138
SELECT CASE - 64 WHEN - 2 THEN CAST( - - 67 AS SIGNED ) * - MIN( ALL - 31 ) * + + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1138
SELECT CASE - 64 WHEN - 2 THEN CAST ( - - 67 AS INTEGER ) * - MIN ( ALL - 31 ) * + + COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT - 90 DIV 95 + - 50 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-1139
SELECT - 90 / 95 + - 50 AS col1
----
-50

query II rowsort
SELECT DISTINCT - 38 AS col2, 68 * + + 53 AS col2
----
-38
3604

query II rowsort
SELECT 8 AS col1, NULLIF ( - + 21, 94 )
----
8
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT + 90 - + 61 + COUNT( * ) * 44 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1142
SELECT + 90 - + 61 + COUNT ( * ) * 44 AS col0
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1143
SELECT COUNT( * ) * 39 - 33 DIV + COUNT( 20 )
----
6

skipif mysql # not compatible
query I rowsort label-1143
SELECT COUNT ( * ) * 39 - 33 / + COUNT ( 20 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT ALL - ( + - 53 ) + COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL - ( + - 53 ) + COUNT ( * ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT ALL 85 + + - MIN( DISTINCT - 98 ) * - 25
----
-2365

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL 85 + + - MIN ( DISTINCT - 98 ) * - 25
----
-2365

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1146
SELECT - 50 + - 47 * 38 DIV - - 23 + + COUNT( ALL - 5 )
----
-126

skipif mysql # not compatible
query I rowsort label-1146
SELECT - 50 + - 47 * 38 / - - 23 + + COUNT ( ALL - 5 )
----
-126

query I rowsort
SELECT + 26 + + 4
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1148
SELECT + 64 * - CAST( + COALESCE ( + 94, + + 93 - + 67 * - 98 ) AS SIGNED ) + - + ( - + 30 ) AS col2
----
-5986

skipif mysql # not compatible
query I rowsort label-1148
SELECT + 64 * - CAST ( + COALESCE ( + 94, + + 93 - + 67 * - 98 ) AS INTEGER ) + - + ( - + 30 ) AS col2
----
-5986

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT ALL SUM( ALL + 56 ) - + 91 * 83 AS col0
----
-7497

skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL SUM ( ALL + 56 ) - + 91 * 83 AS col0
----
-7497

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1151
SELECT - COALESCE ( + 73, CASE 54 WHEN + - 61 + 19 THEN + 53 ELSE NULL END ) AS col2, CAST( NULL AS SIGNED ) * - 13
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-1151
SELECT - COALESCE ( + 73, CASE 54 WHEN + - 61 + 19 THEN + 53 ELSE NULL END ) AS col2, CAST ( NULL AS INTEGER ) * - 13
----
-73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT + COUNT( * ) + - 19 + + + 44 * ( - 23 )
----
-1030

skipif mysql # not compatible
query I rowsort label-1152
SELECT + COUNT ( * ) + - 19 + + + 44 * ( - 23 )
----
-1030

onlyif mysql # DIV for integer division: 
query II rowsort label-1153
SELECT DISTINCT 13 DIV - - 60 AS col1, 32 * + 66
----
0
2112

skipif mysql # not compatible
query II rowsort label-1153
SELECT DISTINCT 13 / - - 60 AS col1, 32 * + 66
----
0
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT + ( - + 15 ) / - - CASE - + 48 WHEN + COUNT( * ) THEN + + 35 + - 28 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1154
SELECT + ( - + 15 ) / - - CASE - + 48 WHEN + COUNT ( * ) THEN + + 35 + - 28 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1155
SELECT + 54 + CASE - 90 WHEN - 9 * COUNT( * ) THEN NULL WHEN + 74 * - COUNT( * ) * MAX( 80 ) + + + 82 * 13 THEN - + ( + MAX( COALESCE ( - 5, 24 ) ) ) * + 85 END + 41 AS col0, 91 DIV - 67 + COUNT( * ) * + 54 DIV 57
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-1155
SELECT + 54 + CASE - 90 WHEN - 9 * COUNT ( * ) THEN NULL WHEN + 74 * - COUNT ( * ) * MAX ( 80 ) + + + 82 * 13 THEN - + ( + MAX ( COALESCE ( - 5, 24 ) ) ) * + 85 END + 41 AS col0, 91 / - 67 + COUNT ( * ) * + 54 / 57
----
NULL
-1

query I rowsort
SELECT - 18 * 62
----
-1116

query I rowsort
SELECT ALL + 87 * 79
----
6873

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1158
SELECT + 36 * - - 94 + - 63 + - + ( - + 51 ) * + 28 - + - CAST( NULL AS SIGNED ) / - ( + CASE - SUM( + 37 ) WHEN - 15 + - 15 * + COUNT( * ) + + 14 * MAX( ( - 45 ) ) THEN + 87 + - 59 + - 98 * - - CASE - - 50 WHEN - 88 THEN NULL ELSE ( - - 96 ) + - + ( - + 18 ) * 22 * - COUNT( - 27 ) * + 28 * - - 29 - - MAX( + + 70 ) + + - NULLIF ( + 31, COUNT( * ) ) + + 61 END + - COALESCE ( - 12 + - COUNT( * ) * 78, 39 ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1158
SELECT + 36 * - - 94 + - 63 + - + ( - + 51 ) * + 28 - + - CAST ( NULL AS INTEGER ) / - ( + CASE - SUM ( + 37 ) WHEN - 15 + - 15 * + COUNT ( * ) + + 14 * MAX ( ( - 45 ) ) THEN + 87 + - 59 + - 98 * - - CASE - - 50 WHEN - 88 THEN NULL ELSE ( - - 96 ) + - + ( - + 18 ) * 22 * - COUNT ( - 27 ) * + 28 * - - 29 - - MAX ( + + 70 ) + + - NULLIF ( + 31, COUNT ( * ) ) + + 61 END + - COALESCE ( - 12 + - COUNT ( * ) * 78, 39 ) ELSE NULL END ) AS col2
----
NULL

query II rowsort
SELECT - 45 + + 67 AS col1, + 76
----
22
76

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1161
SELECT ALL + 26 DIV + + 47, - 22 AS col0
----
0
-22

skipif mysql # not compatible
query II rowsort label-1161
SELECT ALL + 26 / + + 47, - 22 AS col0
----
0
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-1162
SELECT ALL + 46 DIV - 71 * - ( - 20 ) + - ( + ( + 2 ) ), 78 - + - NULLIF ( + + 93, - ( ( - 45 ) ) ) AS col1
----
-2
171

skipif mysql # not compatible
query II rowsort label-1162
SELECT ALL + 46 / - 71 * - ( - 20 ) + - ( + ( + 2 ) ), 78 - + - NULLIF ( + + 93, - ( ( - 45 ) ) ) AS col1
----
-2
171

query II rowsort
SELECT ( 92 ) AS col2, 93 AS col1
----
92
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1164
SELECT + + 35 + - - CAST( + + 43 AS SIGNED ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-1164
SELECT + + 35 + - - CAST ( + + 43 AS INTEGER ) AS col0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1165
SELECT 29 DIV 70 * + + 63 - + 33 + + + 96 * + MAX( + 49 ) AS col0, 40
----
4671
40

skipif mysql # not compatible
query II rowsort label-1165
SELECT 29 / 70 * + + 63 - + 33 + + + 96 * + MAX ( + 49 ) AS col0, 40
----
4671
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1166
SELECT - 8 + - COUNT( COALESCE ( + 18, + 34, + - 80 * - - CAST( ( + 2 ) AS SIGNED ) + + 40 + - 49 * + 42 * + 42 ) ) + 92 * + 4 col1
----
359

skipif mysql # not compatible
query I rowsort label-1166
SELECT - 8 + - COUNT ( COALESCE ( + 18, + 34, + - 80 * - - CAST ( ( + 2 ) AS INTEGER ) + + 40 + - 49 * + 42 * + 42 ) ) + 92 * + 4 col1
----
359

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT ALL - - 71 * + 69 * - + 50 * + CASE 19 WHEN + COUNT( * ) + + 40 / - + COUNT( * ) THEN 74 + - NULLIF ( 56, - 17 ) END + + 95 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL - - 71 * + 69 * - + 50 * + CASE 19 WHEN + COUNT ( * ) + + 40 / - + COUNT ( * ) THEN 74 + - NULLIF ( 56, - 17 ) END + + 95 + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 58 * + 12 col0
----
-696

query I rowsort
SELECT ALL - 45 * - 31 + + 75
----
1470

query I rowsort
SELECT - 88 + + - 94
----
-182

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

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

query I rowsort
SELECT ALL - ( + 38 ) * - - 0 + 26
----
26

query I rowsort
SELECT - 50 * + + 9 AS col1
----
-450

query I rowsort
SELECT - 56 * 32
----
-1792

query I rowsort
SELECT ALL + NULLIF ( + 24, + AVG ( DISTINCT 21 ) ) col1
----
24

query I rowsort
SELECT - 26 * + + 94
----
-2444

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT ALL + ( NULLIF ( - MAX( DISTINCT + 32 ), - MIN( + 26 ) * 97 / + 88 ) ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL + ( NULLIF ( - MAX ( DISTINCT + 32 ), - MIN ( + 26 ) * 97 / + 88 ) ) AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1178
SELECT COALESCE ( + + 37, - + CAST( NULL AS SIGNED ) + - 90 + - + MAX( DISTINCT + 87 ) * 47 * + 72 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1178
SELECT COALESCE ( + + 37, - + CAST ( NULL AS INTEGER ) + - 90 + - + MAX ( DISTINCT + 87 ) * 47 * + 72 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT NULLIF ( + + COUNT( * ), - ( + 27 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1179
SELECT NULLIF ( + + COUNT ( * ), - ( + 27 ) ) col1
----
1

query I rowsort
SELECT + 8 + - 60
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT + COALESCE ( ( - + SUM( + - 92 ) ), + - NULLIF ( 47, + 12 ) * - 20 )
----
92

skipif mysql # not compatible
query I rowsort label-1181
SELECT + COALESCE ( ( - + SUM ( + - 92 ) ), + - NULLIF ( 47, + 12 ) * - 20 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT ALL COUNT( * ) * + + 15
----
15

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL COUNT ( * ) * + + 15
----
15

query I rowsort
SELECT DISTINCT 84 * 75 - - 37 + 4
----
6341

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT DISTINCT COUNT( * ) * + NULLIF ( + - 33, + MIN( ALL + + 11 ) ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT COUNT ( * ) * + NULLIF ( + - 33, + MIN ( ALL + + 11 ) ) AS col0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1185
SELECT DISTINCT CAST( + 44 AS SIGNED ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-1185
SELECT DISTINCT CAST ( + 44 AS INTEGER ) AS col2
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1186
SELECT DISTINCT - 87 * - ( + - 51 ) - 42 - + 88 * - CAST( MAX( ALL 0 ) AS SIGNED ) + - 71 * 69 * 73 AS col0
----
-362106

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT - 87 * - ( + - 51 ) - 42 - + 88 * - CAST ( MAX ( ALL 0 ) AS INTEGER ) + - 71 * 69 * 73 AS col0
----
-362106

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT ALL CASE - 61 WHEN 8 THEN + + SUM( ALL - + 37 ) * 97 END * + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL CASE - 61 WHEN 8 THEN + + SUM ( ALL - + 37 ) * 97 END * + + 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1188
SELECT + CAST( 50 AS SIGNED ) + 57 + + 13 * COUNT( DISTINCT - 93 ) * + - 92 AS col2
----
-1089

skipif mysql # not compatible
query I rowsort label-1188
SELECT + CAST ( 50 AS INTEGER ) + 57 + + 13 * COUNT ( DISTINCT - 93 ) * + - 92 AS col2
----
-1089

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1191
SELECT + 18 / + CAST( NULL AS DECIMAL ) * 4, 1 * - 64 + COUNT( * ) AS col0
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-1191
SELECT + 18 / + CAST ( NULL AS REAL ) * 4, 1 * - 64 + COUNT ( * ) AS col0
----
NULL
-63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT + 36 + + ( + + MIN( + ( + + 64 ) ) )
----
100

skipif mysql # not compatible
query I rowsort label-1193
SELECT + 36 + + ( + + MIN ( + ( + + 64 ) ) )
----
100

query II rowsort
SELECT ALL 51 AS col0, 1 * + - 40
----
51
-40

query II rowsort
SELECT DISTINCT 3 AS col2, - 75 AS col1
----
3
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1196
SELECT + 20 DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-1196
SELECT + 20 / 39
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1197
SELECT ALL + COUNT( * ) DIV - + ( - 50 ) AS col2, + COUNT( * ) AS col0, - 73
----
0
1
-73

skipif mysql # not compatible
query III rowsort label-1197
SELECT ALL + COUNT ( * ) / - + ( - 50 ) AS col2, + COUNT ( * ) AS col0, - 73
----
0
1
-73

query I rowsort
SELECT + + 0 * + - 2 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1199
SELECT ALL CASE COALESCE ( + 92, - + NULLIF ( - MAX( ALL + + 46 ), ( - 85 ) + + COALESCE ( 54, + COUNT( * ) * + - 42 ) ) * ( + - COUNT( * ) ), + + 66 - + 75 * - COUNT( * ) + ( 64 ) * + - COUNT( * ), + 91 + COUNT( * ) + + COALESCE ( + 2, - CAST( NULL AS SIGNED ) * + - 21 + 39 ) / + 0 * - - 85 ) WHEN - 23 THEN NULL WHEN + - 51 THEN + COUNT( * ) ELSE - 84 END
----
-84

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL CASE COALESCE ( + 92, - + NULLIF ( - MAX ( ALL + + 46 ), ( - 85 ) + + COALESCE ( 54, + COUNT ( * ) * + - 42 ) ) * ( + - COUNT ( * ) ), + + 66 - + 75 * - COUNT ( * ) + ( 64 ) * + - COUNT ( * ), + 91 + COUNT ( * ) + + COALESCE ( + 2, - CAST ( NULL AS INTEGER ) * + - 21 + 39 ) / + 0 * - - 85 ) WHEN - 23 THEN NULL WHEN + - 51 THEN + COUNT ( * ) ELSE - 84 END
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-1200
SELECT DISTINCT + ( - - 56 ) DIV + 89 + ( + 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT + ( - - 56 ) / + 89 + ( + 38 ) AS col0
----
38

query I rowsort
SELECT DISTINCT 8 + - 48 * + + 39 * 2
----
-3736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1202
SELECT ALL - + NULLIF ( - 18, + 64 * CAST( NULL AS SIGNED ) - + - ( - + 44 ) ) * ( - COALESCE ( 26, - 67 ) )
----
-468

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL - + NULLIF ( - 18, + 64 * CAST ( NULL AS INTEGER ) - + - ( - + 44 ) ) * ( - COALESCE ( 26, - 67 ) )
----
-468

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

skipif mysql # not compatible
query II rowsort label-1203
SELECT - COUNT ( * ) AS col0, COUNT ( ALL 37 )
----
-1
1

query I rowsort
SELECT ALL 49 * + - 55 AS col1
----
-2695

query II rowsort
SELECT ALL 85, - 71 * + 89 AS col1
----
85
-6319

query I rowsort
SELECT - 93 + - 88 AS col2
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT ALL 67 * + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL 67 * + COUNT ( * )
----
67

query I rowsort
SELECT DISTINCT + ( - 86 ) + - - 90 + - - 30 * - 96
----
-2876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1209
SELECT ALL + 92 * + CAST( - 0 AS SIGNED ) * 52 + 60 - + - 12 DIV 96 + 4 - - NULLIF ( - 51, - COUNT( * ) ) + - + 70
----
-57

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL + 92 * + CAST ( - 0 AS INTEGER ) * 52 + 60 - + - 12 / 96 + 4 - - NULLIF ( - 51, - COUNT ( * ) ) + - + 70
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT ALL - NULLIF ( + 77, NULLIF ( 62, + 68 * + 24 + + 69 + - + 74 ) ) + + - 50 + + 92 - 94 * - 18 * + 72 * + - 33 + + - COUNT( ALL - ( + 55 ) ) AS col0
----
-4020228

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL - NULLIF ( + 77, NULLIF ( 62, + 68 * + 24 + + 69 + - + 74 ) ) + + - 50 + + 92 - 94 * - 18 * + 72 * + - 33 + + - COUNT ( ALL - ( + 55 ) ) AS col0
----
-4020228

query II rowsort
SELECT + - 96 AS col1, 29
----
-96
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1212
SELECT DISTINCT NULLIF ( - - CAST( + 58 AS SIGNED ), - + 99 ) + + 88 AS col0
----
146

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT NULLIF ( - - CAST ( + 58 AS INTEGER ), - + 99 ) + + 88 AS col0
----
146

query II rowsort
SELECT + + 73 AS col1, + ( + 3 )
----
73
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1214
SELECT ALL - 68 + + + COUNT( DISTINCT - 17 ) + CASE 2 WHEN - CASE + + 74 WHEN - NULLIF ( 80, + + 55 * + 67 * - - 70 ) THEN COUNT( * ) WHEN - 34 - - + NULLIF ( - 42, - 26 + + + 15 ) THEN NULL ELSE NULL END THEN - 67 WHEN ( + - 48 ) THEN + 80 + - + 92 - 78 ELSE ( 67 ) * - NULLIF ( + CAST( - + 99 AS SIGNED ), - COUNT( * ) ) + - - 88 * + CASE - - ( + - COUNT( ALL - + ( - ( - 25 ) ) ) ) WHEN + + 70 + CAST( NULL AS SIGNED ) THEN 46 + 45 END / 70 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL - 68 + + + COUNT ( DISTINCT - 17 ) + CASE 2 WHEN - CASE + + 74 WHEN - NULLIF ( 80, + + 55 * + 67 * - - 70 ) THEN COUNT ( * ) WHEN - 34 - - + NULLIF ( - 42, - 26 + + + 15 ) THEN NULL ELSE NULL END THEN - 67 WHEN ( + - 48 ) THEN + 80 + - + 92 - 78 ELSE ( 67 ) * - NULLIF ( + CAST ( - + 99 AS INTEGER ), - COUNT ( * ) ) + - - 88 * + CASE - - ( + - COUNT ( ALL - + ( - ( - 25 ) ) ) ) WHEN + + 70 + CAST ( NULL AS INTEGER ) THEN 46 + 45 END / 70 END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1215
SELECT - MAX ( + 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT 67 * - 49 * - 22 + + CASE + 66 WHEN 39 THEN - 62 * - COUNT( * ) + + 1 END * + SUM( DISTINCT 79 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1216
SELECT 67 * - 49 * - 22 + + CASE + 66 WHEN 39 THEN - 62 * - COUNT ( * ) + + 1 END * + SUM ( DISTINCT 79 ) AS col2
----
NULL

query I rowsort
SELECT 78 * 40 AS col0
----
3120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1218
SELECT ALL - 95 DIV COUNT( * ) * + + 78
----
-7410

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL - 95 / COUNT ( * ) * + + 78
----
-7410

query I rowsort
SELECT DISTINCT - 77 * + 37 * 23
----
-65527

onlyif mysql # DIV for integer division: 
query I rowsort label-1220
SELECT ALL 2 DIV + 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1220
SELECT ALL 2 / + 16 AS col1
----
0

query II rowsort
SELECT ALL - ( 68 ) AS col0, - ( + - 77 ) AS col2
----
-68
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT 78 - + - SUM( ALL - + 13 ) * + 10 - + 34 * - + COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-1222
SELECT 78 - + - SUM ( ALL - + 13 ) * + 10 - + 34 * - + COUNT ( * ) AS col2
----
-18

query I rowsort
SELECT ALL - ( - + NULLIF ( + 91, - 29 * + 94 - - 99 + COALESCE ( - - 80, - 4 ) ) )
----
91

query I rowsort
SELECT 94 * + - 58
----
-5452

query II rowsort
SELECT 68 + + 61 AS col2, - 17 + - 29 AS col0
----
129
-46

query I rowsort
SELECT 5 * + 46 + 27
----
257

query I rowsort
SELECT 93 * + 22 * + - 53
----
-108438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1228
SELECT ALL + 60 + + ( - COUNT( * ) ) * + NULLIF ( 28, - CAST( NULL AS SIGNED ) ) - - - 34 col1
----
-2

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL + 60 + + ( - COUNT ( * ) ) * + NULLIF ( 28, - CAST ( NULL AS INTEGER ) ) - - - 34 col1
----
-2

query II rowsort
SELECT DISTINCT 53 + 62 AS col1, 98
----
115
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT ALL + MIN( DISTINCT - + 85 ) * + 1
----
-85

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL + MIN ( DISTINCT - + 85 ) * + 1
----
-85

query I rowsort
SELECT - 27 * + + 70
----
-1890

query I rowsort
SELECT ALL + 74 + + 43 - 37 AS col0
----
80

query II rowsort
SELECT - 80 + - 73 AS col1, 21 + - ( 67 ) + + 66 * 13 * - + 28
----
-153
-24070

query I rowsort
SELECT - 94 + - - 74 + 17 * 77 AS col0
----
1289

query I rowsort
SELECT + 63 * + - 18
----
-1134

onlyif mysql # DIV for integer division: 
query I rowsort label-1236
SELECT DISTINCT - 82 * 25 DIV - 20 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT - 82 * 25 / - 20 AS col2
----
102

query I rowsort
SELECT 41 + + 69
----
110

query I rowsort
SELECT ALL - COALESCE ( - 92, 98 + - - 73 ) + - 51
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT ALL - ( + 37 ) * - + MIN( + + ( + 96 ) )
----
3552

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL - ( + 37 ) * - + MIN ( + + ( + 96 ) )
----
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT 10 + - ( - 40 ) + + 97 + + 47 * - COUNT( * ) * + 83 * 80
----
-311933

skipif mysql # not compatible
query I rowsort label-1241
SELECT 10 + - ( - 40 ) + + 97 + + 47 * - COUNT ( * ) * + 83 * 80
----
-311933

query I rowsort
SELECT ALL 26 - 20 * 98
----
-1934

query II rowsort
SELECT 3 * - 31 AS col2, - 72
----
-93
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1244
SELECT + 83 DIV + 61 + - 81 + + CAST( - COUNT( * ) AS SIGNED ) + - 94 * - + NULLIF ( 49, - ( - 34 ) * - - 87 + SUM( - + 67 ) ) AS col1
----
4525

skipif mysql # not compatible
query I rowsort label-1244
SELECT + 83 / + 61 + - 81 + + CAST ( - COUNT ( * ) AS INTEGER ) + - 94 * - + NULLIF ( 49, - ( - 34 ) * - - 87 + SUM ( - + 67 ) ) AS col1
----
4525

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

query I rowsort
SELECT 59 * 64 AS col2
----
3776

query I rowsort
SELECT DISTINCT 32 * - + 10 col2
----
-320

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

skipif mysql # not compatible
query II rowsort label-1248
SELECT ALL - 33 AS col2, COUNT ( * )
----
-33
1

query I rowsort
SELECT + 89 * - 73 * ( 73 ) * 79 + 85
----
-37468114

query I rowsort
SELECT 78 + - 19 + 13 + 99
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1251
SELECT 84 * - - 73 / + CASE 55 WHEN + 79 * 10 THEN + 88 * ( - + 22 ) + CAST( NULL AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1251
SELECT 84 * - - 73 / + CASE 55 WHEN + 79 * 10 THEN + 88 * ( - + 22 ) + CAST ( NULL AS INTEGER ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 96 * - - 41 AS col2
----
3936

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

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

query I rowsort
SELECT ALL - NULLIF ( - 27, - 74 * 32 * - 61 )
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1255
SELECT COUNT( - 26 ) * - + COUNT( * ) DIV + + COALESCE ( - + 42, + ( + 43 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1255
SELECT COUNT ( - 26 ) * - + COUNT ( * ) / + + COALESCE ( - + 42, + ( + 43 ) )
----
0

query I rowsort
SELECT DISTINCT - 19 * - 62 AS col0
----
1178

query I rowsort
SELECT DISTINCT 48 + + 88
----
136

query I rowsort
SELECT 12 * + 12 col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT ALL COUNT( ALL + 32 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL COUNT ( ALL + 32 ) AS col0
----
1

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1262
SELECT - 69 * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + 15 + + 50 + + 38 * + 88 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1262
SELECT - 69 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + 15 + + 50 + + 38 * + 88 + COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1263
SELECT - MAX ( DISTINCT 15 )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-1264
SELECT ALL 97 AS col1, NULLIF ( - COUNT( * ), - 70 )
----
97
-1

skipif mysql # not compatible
query II rowsort label-1264
SELECT ALL 97 AS col1, NULLIF ( - COUNT ( * ), - 70 )
----
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT MIN( ALL - - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-1265
SELECT MIN ( ALL - - 10 )
----
10

query I rowsort
SELECT ALL + - 27 + 46 * + 32 * - 70 * - 88
----
9067493

query I rowsort
SELECT ALL - + 65 + + + 8 * - 87 + + 80 AS col1
----
-681

query I rowsort
SELECT DISTINCT ( 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1269
SELECT - 85 * - MAX( 27 ) * - 10 + + 90 + - COUNT( * ) DIV + 54 * - 18 + + COUNT( * ) AS col2
----
-22859

skipif mysql # not compatible
query I rowsort label-1269
SELECT - 85 * - MAX ( 27 ) * - 10 + + 90 + - COUNT ( * ) / + 54 * - 18 + + COUNT ( * ) AS col2
----
-22859

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1271
SELECT DISTINCT - - 22 * + CAST( - SUM( 62 ) AS SIGNED )
----
-1364

skipif mysql # not compatible
query I rowsort label-1271
SELECT DISTINCT - - 22 * + CAST ( - SUM ( 62 ) AS INTEGER )
----
-1364

onlyif mysql # aggregate syntax: 
query II rowsort label-1272
SELECT ALL + SUM( + 2 ) * + + 56, 92 AS col1
----
112
92

skipif mysql # not compatible
query II rowsort label-1272
SELECT ALL + SUM ( + 2 ) * + + 56, 92 AS col1
----
112
92

onlyif mysql # aggregate syntax: 
query II rowsort label-1273
SELECT - 76, 87 * ( ( + COUNT( * ) ) ) * - 97 * - CASE - - 73 WHEN + 21 THEN NULL WHEN 2 * 94 + - 17 THEN + COUNT( * ) END AS col0
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-1273
SELECT - 76, 87 * ( ( + COUNT ( * ) ) ) * - 97 * - CASE - - 73 WHEN + 21 THEN NULL WHEN 2 * 94 + - 17 THEN + COUNT ( * ) END AS col0
----
-76
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1274
SELECT DISTINCT + 49 * 28 DIV 1 + - 91 DIV + 6 + - + 33
----
1324

skipif mysql # not compatible
query I rowsort label-1274
SELECT DISTINCT + 49 * 28 / 1 + - 91 / + 6 + - + 33
----
1324

query I rowsort
SELECT - 97 - 8 + - 23
----
-128

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1277
SELECT + COUNT( * ) AS col0, + 97 - + 73 + - 66
----
1
-42

skipif mysql # not compatible
query II rowsort label-1277
SELECT + COUNT ( * ) AS col0, + 97 - + 73 + - 66
----
1
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT DISTINCT 14 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT 14 / - 82
----
0

query I rowsort
SELECT + ( + + 2 ) * + - 10 AS col1
----
-20

query I rowsort
SELECT + 60 * + 81 + - 21
----
4839

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT ALL 53 * - + COUNT( - - 51 ) + 3 + - - COUNT( * ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL 53 * - + COUNT ( - - 51 ) + 3 + - - COUNT ( * ) AS col2
----
-49

query I rowsort
SELECT + ( + 79 ) + - 47 AS col2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1283
SELECT CASE - - 41 WHEN + COUNT( * ) THEN NULL WHEN + COALESCE ( + CAST( - - MIN( + ( + 38 ) ) AS SIGNED ), 68 ) * + + 79 THEN - 90 + + ( 29 ) * + COALESCE ( COUNT( * ), + 82 + 49, + 14 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1283
SELECT CASE - - 41 WHEN + COUNT ( * ) THEN NULL WHEN + COALESCE ( + CAST ( - - MIN ( + ( + 38 ) ) AS INTEGER ), 68 ) * + + 79 THEN - 90 + + ( 29 ) * + COALESCE ( COUNT ( * ), + 82 + 49, + 14 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1284
SELECT ALL + 29 * - 82 + - 46 * + 30 * + CASE + 4 WHEN + - COUNT( * ) THEN NULL WHEN + - 27 THEN - + ( - SUM( DISTINCT 13 ) ) WHEN + CAST( + + 52 AS SIGNED ) / + 35 THEN 87 - - - 42 + - 8 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL + 29 * - 82 + - 46 * + 30 * + CASE + 4 WHEN + - COUNT ( * ) THEN NULL WHEN + - 27 THEN - + ( - SUM ( DISTINCT 13 ) ) WHEN + CAST ( + + 52 AS INTEGER ) / + 35 THEN 87 - - - 42 + - 8 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT DISTINCT 65 * + - 4 + 35 + 77 + COUNT( * ) AS col2
----
-147

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT 65 * + - 4 + 35 + 77 + COUNT ( * ) AS col2
----
-147

query I rowsort
SELECT 79 * 73 + 64 AS col0
----
5831

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT ALL - 18 * COUNT( * ) + 10 * + 21 * 0
----
-18

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL - 18 * COUNT ( * ) + 10 * + 21 * 0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT MIN( ALL 81 )
----
81

skipif mysql # not compatible
query I rowsort label-1288
SELECT MIN ( ALL 81 )
----
81

query I rowsort
SELECT + 24 + - 40 + + - 49 + + ( - 79 ) + + 88
----
-56

query I rowsort
SELECT DISTINCT + + 27 * - 26 + + 38 + + - ( + 79 ) * + 31 + 4 * + ( + 1 ) + - - 4 col0
----
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT ALL - COALESCE ( - + 34, + COUNT( * ) ) * + - 29 - - ( - + 81 ) * - 39 + + 40
----
2213

skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL - COALESCE ( - + 34, + COUNT ( * ) ) * + - 29 - - ( - + 81 ) * - 39 + + 40
----
2213

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT + NULLIF ( - - MAX( DISTINCT + + 13 ), - 77 ) * - 38 AS col0
----
-494

skipif mysql # not compatible
query I rowsort label-1292
SELECT + NULLIF ( - - MAX ( DISTINCT + + 13 ), - 77 ) * - 38 AS col0
----
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT ALL - COUNT( * ) - 65 - - 28
----
-38

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL - COUNT ( * ) - 65 - - 28
----
-38

query II rowsort
SELECT ALL - 4 AS col0, 9
----
-4
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT ALL - - 87 - + COUNT( DISTINCT - + 14 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1295
SELECT ALL - - 87 - + COUNT ( DISTINCT - + 14 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT + + MAX( - + 99 ) * + 58 AS col2
----
-5742

skipif mysql # not compatible
query I rowsort label-1296
SELECT + + MAX ( - + 99 ) * + 58 AS col2
----
-5742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1297
SELECT + - ( + + 28 ) + - - ( + CASE - - 66 WHEN + 19 * + - 17 * - 28 * - 24 + + 64 THEN NULL WHEN - 70 * - 65 THEN 42 WHEN CASE + + 11 WHEN - - 9 * - 34 + - - 23 + + 39 * - + CAST( - - COUNT( * ) AS SIGNED ) * 34 THEN + + 8 WHEN 24 * + + 90 + + CAST( NULL AS DECIMAL ) THEN NULL END + + 47 THEN SUM( ALL - 53 ) ELSE - 91 * + 2 END ) + - + 94 AS col2
----
-304

skipif mysql # not compatible
query I rowsort label-1297
SELECT + - ( + + 28 ) + - - ( + CASE - - 66 WHEN + 19 * + - 17 * - 28 * - 24 + + 64 THEN NULL WHEN - 70 * - 65 THEN 42 WHEN CASE + + 11 WHEN - - 9 * - 34 + - - 23 + + 39 * - + CAST ( - - COUNT ( * ) AS INTEGER ) * 34 THEN + + 8 WHEN 24 * + + 90 + + CAST ( NULL AS REAL ) THEN NULL END + + 47 THEN SUM ( ALL - 53 ) ELSE - 91 * + 2 END ) + - + 94 AS col2
----
-304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1298
SELECT - 48 - 9 * - CAST( 83 AS SIGNED ) col2
----
699

skipif mysql # not compatible
query I rowsort label-1298
SELECT - 48 - 9 * - CAST ( 83 AS INTEGER ) col2
----
699

onlyif mysql # aggregate syntax: 
query III rowsort label-1299
SELECT DISTINCT + 68, - COUNT( * ) * - MIN( DISTINCT 33 ) AS col2, + 61 AS col2
----
68
33
61

skipif mysql # not compatible
query III rowsort label-1299
SELECT DISTINCT + 68, - COUNT ( * ) * - MIN ( DISTINCT 33 ) AS col2, + 61 AS col2
----
68
33
61

onlyif mysql # aggregate syntax: 
query II rowsort label-1300
SELECT ALL 60 AS col0, 72 * COUNT( * ) col1
----
60
72

skipif mysql # not compatible
query II rowsort label-1300
SELECT ALL 60 AS col0, 72 * COUNT ( * ) col1
----
60
72

query I rowsort
SELECT - 5 + 80
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT - 28 + + MIN( - 45 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-1302
SELECT - 28 + + MIN ( - 45 ) AS col2
----
-73

query I rowsort
SELECT DISTINCT ( 12 ) AS col2
----
12

query I rowsort
SELECT DISTINCT + 64 * 61
----
3904

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT + NULLIF ( + + SUM( ALL + + 18 ), + 58 )
----
18

skipif mysql # not compatible
query I rowsort label-1305
SELECT + NULLIF ( + + SUM ( ALL + + 18 ), + 58 )
----
18

query I rowsort
SELECT + 2 * + - 57
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT - NULLIF ( ( + CASE 27 WHEN + + 28 THEN NULL ELSE 38 + - ( - 81 ) END ), + COUNT( * ) ) * 94
----
-11186

skipif mysql # not compatible
query I rowsort label-1307
SELECT - NULLIF ( ( + CASE 27 WHEN + + 28 THEN NULL ELSE 38 + - ( - 81 ) END ), + COUNT ( * ) ) * 94
----
-11186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1308
SELECT - 5 / 53 * CASE + COUNT( DISTINCT 6 ) WHEN + 76 + 61 / - 90 / - COALESCE ( - - 43, ( + - AVG ( + 26 ) ) ) - + + COALESCE ( - 19, - 30 + COUNT( * ), + + 10 * + 77 / + 51 ) + - - 24 THEN NULL ELSE - ( - 70 ) END + 82 * + 85 + + 86 + + MIN( ALL - - 26 ) * + - CASE CAST( ( - 65 ) AS DECIMAL ) WHEN - CAST( NULL AS SIGNED ) + - 28 THEN - 73 WHEN - - ( - 83 ) THEN + 66 + + 85 - + - 94 + - - 42 * - 58 WHEN - COALESCE ( + NULLIF ( 40, 85 * - 79 ), - 14 * + 35, - 86 * 65 + + 84 ) + - 33 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1308
SELECT - 5 / 53 * CASE + COUNT ( DISTINCT 6 ) WHEN + 76 + 61 / - 90 / - COALESCE ( - - 43, ( + - AVG ( + 26 ) ) ) - + + COALESCE ( - 19, - 30 + COUNT ( * ), + + 10 * + 77 / + 51 ) + - - 24 THEN NULL ELSE - ( - 70 ) END + 82 * + 85 + + 86 + + MIN ( ALL - - 26 ) * + - CASE CAST ( ( - 65 ) AS REAL ) WHEN - CAST ( NULL AS INTEGER ) + - 28 THEN - 73 WHEN - - ( - 83 ) THEN + 66 + + 85 - + - 94 + - - 42 * - 58 WHEN - COALESCE ( + NULLIF ( 40, 85 * - 79 ), - 14 * + 35, - 86 * 65 + + 84 ) + - 33 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1309
SELECT - 84 * - 44 AS col2, + CAST( NULL AS SIGNED ) + + - 74
----
3696
NULL

skipif mysql # not compatible
query II rowsort label-1309
SELECT - 84 * - 44 AS col2, + CAST ( NULL AS INTEGER ) + + - 74
----
3696
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1310
SELECT ALL + 2 DIV COUNT( * ) * CAST( 69 AS SIGNED ) + + NULLIF ( ( + ( + - COUNT( * ) ) ), - + 31 )
----
137

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL + 2 / COUNT ( * ) * CAST ( 69 AS INTEGER ) + + NULLIF ( ( + ( + - COUNT ( * ) ) ), - + 31 )
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT + NULLIF ( - + 9, - NULLIF ( - - MAX( DISTINCT + 56 ), - + 7 * - SUM( - 42 ) * 43 ) ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-1311
SELECT + NULLIF ( - + 9, - NULLIF ( - - MAX ( DISTINCT + 56 ), - + 7 * - SUM ( - 42 ) * 43 ) ) AS col1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1312
SELECT + 36 DIV + 51, - 18 * + + COUNT( + 4 ) col2
----
0
-18

skipif mysql # not compatible
query II rowsort label-1312
SELECT + 36 / + 51, - 18 * + + COUNT ( + 4 ) col2
----
0
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1313
SELECT - 0 DIV ( - + 38 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1313
SELECT - 0 / ( - + 38 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1314
SELECT ALL COUNT( * ) * MIN( - - 3 ) + + 18 * - - 97 + - 54 DIV + 80
----
1749

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL COUNT ( * ) * MIN ( - - 3 ) + + 18 * - - 97 + - 54 / + 80
----
1749

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

skipif mysql # not compatible
query I rowsort label-1315
SELECT ( + ( + ( - SUM ( + 72 ) ) ) )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1316
SELECT DISTINCT - - COALESCE ( + - 7, - + CAST( - COUNT( * ) AS SIGNED ) + + - 71 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-1316
SELECT DISTINCT - - COALESCE ( + - 7, - + CAST ( - COUNT ( * ) AS INTEGER ) + + - 71 ) AS col1
----
-7

query II rowsort
SELECT DISTINCT - 3 * 67 AS col0, 55
----
-201
55

query I rowsort
SELECT DISTINCT + 34 - + 65 + - + 99
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1319
SELECT + 64 * CAST( ( + 17 ) AS SIGNED ) + + - 70 * - + 21
----
2558

skipif mysql # not compatible
query I rowsort label-1319
SELECT + 64 * CAST ( ( + 17 ) AS INTEGER ) + + - 70 * - + 21
----
2558

onlyif mysql # aggregate syntax: 
query II rowsort label-1320
SELECT - ( MAX( DISTINCT - + 7 ) ) AS col0, + 42
----
7
42

skipif mysql # not compatible
query II rowsort label-1320
SELECT - ( MAX ( DISTINCT - + 7 ) ) AS col0, + 42
----
7
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1321
SELECT - + 52 * + 22 - + CAST( + 69 AS SIGNED )
----
-1213

skipif mysql # not compatible
query I rowsort label-1321
SELECT - + 52 * + 22 - + CAST ( + 69 AS INTEGER )
----
-1213

onlyif mysql # DIV for integer division: 
query I rowsort label-1322
SELECT 9 * 60 DIV 9
----
60

skipif mysql # not compatible
query I rowsort label-1322
SELECT 9 * 60 / 9
----
60

query I rowsort
SELECT 39 + - 49 * - 90 col2
----
4449

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT MIN( - + 78 ) + + + 19
----
-59

skipif mysql # not compatible
query I rowsort label-1324
SELECT MIN ( - + 78 ) + + + 19
----
-59

query I rowsort
SELECT DISTINCT + 11 * 8 AS col0
----
88

query I rowsort
SELECT ALL - 0 * 97 + - - 13
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT + 39 * + + 89 * - 19 * - COUNT( * ) AS col0
----
65949

skipif mysql # not compatible
query I rowsort label-1327
SELECT + 39 * + + 89 * - 19 * - COUNT ( * ) AS col0
----
65949

onlyif mysql # aggregate syntax: 
query II rowsort label-1328
SELECT 59 - 34 - + 86, - MAX( + ( - 23 ) ) AS col1
----
-61
23

skipif mysql # not compatible
query II rowsort label-1328
SELECT 59 - 34 - + 86, - MAX ( + ( - 23 ) ) AS col1
----
-61
23

query I rowsort
SELECT ALL 32 + 92 AS col2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT ALL - 14 + COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL - 14 + COUNT ( * ) AS col2
----
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-1331
SELECT 78 * 12 DIV 24 col2, + 57 AS col2
----
39
57

skipif mysql # not compatible
query II rowsort label-1331
SELECT 78 * 12 / 24 col2, + 57 AS col2
----
39
57

query II rowsort
SELECT ( 92 ) * - 30 + 57 * + - ( 24 ) AS col2, 54 * + 24 AS col0
----
-4128
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT ALL + 42 + + CASE - - 65 WHEN COUNT( * ) THEN NULL WHEN 86 * + 65 / + - 65 + 64 + COUNT( * ) THEN NULL ELSE + + 4 * + - COUNT( * ) * + - 7 END
----
70

skipif mysql # not compatible
query I rowsort label-1333
SELECT ALL + 42 + + CASE - - 65 WHEN COUNT ( * ) THEN NULL WHEN 86 * + 65 / + - 65 + 64 + COUNT ( * ) THEN NULL ELSE + + 4 * + - COUNT ( * ) * + - 7 END
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1334
SELECT 4 AS col0, - 87 + - - CAST( NULL AS SIGNED ) - - 85 * + 39 AS col1
----
4
NULL

skipif mysql # not compatible
query II rowsort label-1334
SELECT 4 AS col0, - 87 + - - CAST ( NULL AS INTEGER ) - - 85 * + 39 AS col1
----
4
NULL

query I rowsort
SELECT ALL 72 + - 45 col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT DISTINCT 31 + COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT 31 + COUNT ( * ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT ALL + COUNT( * ) + - - COUNT( * ) * 50 * 90
----
4501

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) * 50 * 90
----
4501

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1338
SELECT DISTINCT - 51, CAST( + COALESCE ( - 47, - AVG ( 79 ), + - 50 * 37 ) AS SIGNED ) AS col1
----
-51
-47

skipif mysql # not compatible
query II rowsort label-1338
SELECT DISTINCT - 51, CAST ( + COALESCE ( - 47, - AVG ( 79 ), + - 50 * 37 ) AS INTEGER ) AS col1
----
-51
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1339
SELECT 98, + CASE - + 60 WHEN + 75 THEN - 50 + 45 + - COUNT( * ) + + 95 WHEN - - 83 THEN 35 * - 0 - - 80 END + + 0 * 68 + - ( + 87 ) + 36 * + - ( + 78 ) + + MAX( + CAST( NULL AS SIGNED ) ) AS col0
----
98
NULL

skipif mysql # not compatible
query II rowsort label-1339
SELECT 98, + CASE - + 60 WHEN + 75 THEN - 50 + 45 + - COUNT ( * ) + + 95 WHEN - - 83 THEN 35 * - 0 - - 80 END + + 0 * 68 + - ( + 87 ) + 36 * + - ( + 78 ) + + MAX ( + CAST ( NULL AS INTEGER ) ) AS col0
----
98
NULL

query II rowsort
SELECT ALL - 64 AS col1, + 44
----
-64
44

query I rowsort
SELECT ALL + 15 + + 72
----
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT 79 * COUNT( * ) - - - 98 - - - 13
----
-32

skipif mysql # not compatible
query I rowsort label-1343
SELECT 79 * COUNT ( * ) - - - 98 - - - 13
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT 28 * - 45 * - ( - COUNT( * ) )
----
-1260

skipif mysql # not compatible
query I rowsort label-1344
SELECT 28 * - 45 * - ( - COUNT ( * ) )
----
-1260

onlyif mysql # aggregate syntax: 
query II rowsort label-1345
SELECT ALL - - 32 AS col1, COUNT( DISTINCT - 67 ) col2
----
32
1

skipif mysql # not compatible
query II rowsort label-1345
SELECT ALL - - 32 AS col1, COUNT ( DISTINCT - 67 ) col2
----
32
1

query I rowsort
SELECT DISTINCT - - 91 - - 31
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1347
SELECT NULLIF ( ( MAX( + + 99 ) ), - COALESCE ( - - SUM( ALL - CAST( ( 8 ) AS SIGNED ) ), + - 94 * + 5, 80 * - COUNT( * ) ) * + CASE - - 31 WHEN 43 THEN NULL WHEN - NULLIF ( + 2, - 47 ) THEN - + 41 ELSE NULL END + - 53 * 14 ) * + 87 + - + 10 + - NULLIF ( - 83, 10 + + 2 ) AS col1, + 7 - 50 DIV + - 7 AS col1
----
8686
14

skipif mysql # not compatible
query II rowsort label-1347
SELECT NULLIF ( ( MAX ( + + 99 ) ), - COALESCE ( - - SUM ( ALL - CAST ( ( 8 ) AS INTEGER ) ), + - 94 * + 5, 80 * - COUNT ( * ) ) * + CASE - - 31 WHEN 43 THEN NULL WHEN - NULLIF ( + 2, - 47 ) THEN - + 41 ELSE NULL END + - 53 * 14 ) * + 87 + - + 10 + - NULLIF ( - 83, 10 + + 2 ) AS col1, + 7 - 50 / + - 7 AS col1
----
8686
14

query I rowsort
SELECT 85 * + 42
----
3570

onlyif mysql # aggregate syntax: 
query II rowsort label-1349
SELECT ALL - 75 AS col2, ( - - MIN( ALL 18 ) ) AS col1
----
-75
18

skipif mysql # not compatible
query II rowsort label-1349
SELECT ALL - 75 AS col2, ( - - MIN ( ALL 18 ) ) AS col1
----
-75
18

query I rowsort
SELECT - 47 + + 34
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1351
SELECT - NULLIF ( 1, - 34 ) DIV + 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1351
SELECT - NULLIF ( 1, - 34 ) / + 57 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1352
SELECT SUM( 84 ) * - COALESCE ( 95, ( - 79 ) ) * + - 31 DIV - + COUNT( * ) AS col0
----
-247380

skipif mysql # not compatible
query I rowsort label-1352
SELECT SUM ( 84 ) * - COALESCE ( 95, ( - 79 ) ) * + - 31 / - + COUNT ( * ) AS col0
----
-247380

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT DISTINCT - 22 * + COUNT( * ) * + 82 * - 60
----
108240

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT - 22 * + COUNT ( * ) * + 82 * - 60
----
108240

onlyif mysql # aggregate syntax: 
query II rowsort label-1354
SELECT ALL - - 4 AS col2, 31 * COUNT( * ) + + 12 col1
----
4
43

skipif mysql # not compatible
query II rowsort label-1354
SELECT ALL - - 4 AS col2, 31 * COUNT ( * ) + + 12 col1
----
4
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1355
SELECT - 44 AS col1, + CAST( NULL AS SIGNED ) AS col1
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-1355
SELECT - 44 AS col1, + CAST ( NULL AS INTEGER ) AS col1
----
-44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT ALL 18 * + 97 + + COUNT( * ) * - 71
----
1675

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL 18 * + 97 + + COUNT ( * ) * - 71
----
1675

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1357
SELECT ALL - 73 + - + CAST( - 67 AS SIGNED ) * + 3 AS col0, - 35 AS col1
----
128
-35

skipif mysql # not compatible
query II rowsort label-1357
SELECT ALL - 73 + - + CAST ( - 67 AS INTEGER ) * + 3 AS col0, - 35 AS col1
----
128
-35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT ALL + MIN( DISTINCT + 79 ) + + 0 * - NULLIF ( + 28, COALESCE ( + 73, + COUNT( * ) * 94 + - + COUNT( * ) ) )
----
79

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL + MIN ( DISTINCT + 79 ) + + 0 * - NULLIF ( + 28, COALESCE ( + 73, + COUNT ( * ) * 94 + - + COUNT ( * ) ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT + COUNT( * ) + + 35 + + 88 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-1360
SELECT + COUNT ( * ) + + 35 + + 88 AS col0
----
124

query I rowsort
SELECT DISTINCT - 70 + - 45
----
-115

query I rowsort
SELECT - 63 + + 72
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-1363
SELECT - 57 AS col2, - CASE - 72 WHEN 77 * + 72 * - + 88 THEN SUM( ALL 68 ) END + - 64 * - COUNT( * ) * - - COUNT( * ) * - 85 AS col1
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-1363
SELECT - 57 AS col2, - CASE - 72 WHEN 77 * + 72 * - + 88 THEN SUM ( ALL 68 ) END + - 64 * - COUNT ( * ) * - - COUNT ( * ) * - 85 AS col1
----
-57
NULL

query I rowsort
SELECT - 37 * + 95 AS col1
----
-3515

query I rowsort
SELECT NULLIF ( + 32, + - 56 ) - + - 90 AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT 23 * - 13 * + COUNT( * )
----
-299

skipif mysql # not compatible
query I rowsort label-1366
SELECT 23 * - 13 * + COUNT ( * )
----
-299

onlyif mysql # aggregate syntax: 
query II rowsort label-1367
SELECT 94 * COUNT( * ), + 2 * 72 * + 75 AS col2
----
94
10800

skipif mysql # not compatible
query II rowsort label-1367
SELECT 94 * COUNT ( * ), + 2 * 72 * + 75 AS col2
----
94
10800

onlyif mysql # aggregate syntax: 
query II rowsort label-1368
SELECT DISTINCT 20 * - 32, ( - COUNT( * ) ) AS col1
----
-640
-1

skipif mysql # not compatible
query II rowsort label-1368
SELECT DISTINCT 20 * - 32, ( - COUNT ( * ) ) AS col1
----
-640
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1369
SELECT ALL - CASE 56 WHEN - COUNT( DISTINCT - + 3 ) + 79 THEN + 70 * + - 48 ELSE - 16 END * CASE COUNT( * ) WHEN + - 53 THEN NULL WHEN + 65 * + 22 + 49 THEN + 50 END * + 30 + 56 + COUNT( + 14 ) AS col2, COUNT( * ) + + - 13 - + CASE + 54 WHEN MAX( 86 ) THEN + 60 ELSE - 8 + - 7 * + 42 END col2
----
NULL
290

skipif mysql # not compatible
query II rowsort label-1369
SELECT ALL - CASE 56 WHEN - COUNT ( DISTINCT - + 3 ) + 79 THEN + 70 * + - 48 ELSE - 16 END * CASE COUNT ( * ) WHEN + - 53 THEN NULL WHEN + 65 * + 22 + 49 THEN + 50 END * + 30 + 56 + COUNT ( + 14 ) AS col2, COUNT ( * ) + + - 13 - + CASE + 54 WHEN MAX ( 86 ) THEN + 60 ELSE - 8 + - 7 * + 42 END col2
----
NULL
290

query I rowsort
SELECT 13 + - 44
----
-31

query I rowsort
SELECT ALL - ( 94 ) * + 93 * - ( 44 ) AS col2
----
384648

query I rowsort
SELECT 32 + 12
----
44

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-1374
SELECT 3 DIV CASE + + 23 WHEN COUNT( * ) THEN + - ( 8 ) WHEN 68 DIV - - 57 THEN + NULLIF ( - 25, - 53 ) - + 77 WHEN - 67 * - CAST( NULL AS DECIMAL ) THEN + 75 * - 10 + - 17 * - - 44 ELSE CAST( NULL AS SIGNED ) END AS col1, CAST( + + 25 AS SIGNED ) DIV + - 82
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1374
SELECT 3 / CASE + + 23 WHEN COUNT ( * ) THEN + - ( 8 ) WHEN 68 / - - 57 THEN + NULLIF ( - 25, - 53 ) - + 77 WHEN - 67 * - CAST ( NULL AS REAL ) THEN + 75 * - 10 + - 17 * - - 44 ELSE CAST ( NULL AS INTEGER ) END AS col1, CAST ( + + 25 AS INTEGER ) / + - 82
----
NULL
0

query I rowsort
SELECT 38 * + 72
----
2736

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

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

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

query I rowsort
SELECT DISTINCT - + 56 * - 53 - + 75 + + ( ( - + 83 ) ) + 31
----
2841

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1380
SELECT - 92 * COUNT( * ) * - 26 * CAST( NULL AS DECIMAL ) * + + 0 - 8 + 25 + 5 + + 80 + - + 20 - ( + - 41 ) + - 72 * + 63 + + 78 + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1380
SELECT - 92 * COUNT ( * ) * - 26 * CAST ( NULL AS REAL ) * + + 0 - 8 + 25 + 5 + + 80 + - + 20 - ( + - 41 ) + - 72 * + 63 + + 78 + 9 AS col0
----
NULL

query I rowsort
SELECT - 36 - 86 col1
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1382
SELECT - + CASE CAST( COALESCE ( - 54, - 15 * + 13 - + NULLIF ( 38, - 8 * - 64 * - 71 ) - + 93, MIN( + 2 ) ) AS SIGNED ) WHEN 20 * - + 4 + - 99 + 86 THEN + + 32 / 43 * + 11 + 19 + + COUNT( * ) * + 38 WHEN - - CAST( NULL AS SIGNED ) THEN 23 END * + MIN( 89 ) + - 30 - - + COUNT( DISTINCT NULLIF ( - 16, 77 ) ) + 8 / + 69 * + 62 + - + 49 + - COUNT( 18 ) AS col1, MAX( ALL + 39 )
----
NULL
39

skipif mysql # not compatible
query II rowsort label-1382
SELECT - + CASE CAST ( COALESCE ( - 54, - 15 * + 13 - + NULLIF ( 38, - 8 * - 64 * - 71 ) - + 93, MIN ( + 2 ) ) AS INTEGER ) WHEN 20 * - + 4 + - 99 + 86 THEN + + 32 / 43 * + 11 + 19 + + COUNT ( * ) * + 38 WHEN - - CAST ( NULL AS INTEGER ) THEN 23 END * + MIN ( 89 ) + - 30 - - + COUNT ( DISTINCT NULLIF ( - 16, 77 ) ) + 8 / + 69 * + 62 + - + 49 + - COUNT ( 18 ) AS col1, MAX ( ALL + 39 )
----
NULL
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1383
SELECT ALL 1 * + CAST( NULL AS SIGNED ) + 75 + + - 44 * COALESCE ( - 24, - 38 ) * - 14 + - ( MAX( - 2 ) ) + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL 1 * + CAST ( NULL AS INTEGER ) + 75 + + - 44 * COALESCE ( - 24, - 38 ) * - 14 + - ( MAX ( - 2 ) ) + 53 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT ALL - 33 * - COUNT( * ) - 49 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL - 33 * - COUNT ( * ) - 49 AS col0
----
-16

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

skipif mysql # not compatible
query I rowsort label-1386
SELECT DISTINCT - COUNT ( * ) / + + ( + 87 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT DISTINCT - + 71 + + - NULLIF ( - SUM( ALL + 25 ), COUNT( * ) * - + 56 ) - + 10 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT - + 71 + + - NULLIF ( - SUM ( ALL + 25 ), COUNT ( * ) * - + 56 ) - + 10 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT ALL + + COUNT( * ) + + 95
----
96

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL + + COUNT ( * ) + + 95
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT + + 55 + MAX( DISTINCT + + 64 ) AS col1
----
119

skipif mysql # not compatible
query I rowsort label-1389
SELECT + + 55 + MAX ( DISTINCT + + 64 ) AS col1
----
119

query I rowsort
SELECT - + 86 * - 84 * + 85 * CASE WHEN ( - 30 IS NULL ) THEN - 15 ELSE NULL END * - 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT + 79 * + 96 * - MAX( + 97 ) AS col2
----
-735648

skipif mysql # not compatible
query I rowsort label-1391
SELECT + 79 * + 96 * - MAX ( + 97 ) AS col2
----
-735648

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT ALL 85 * + ( ( + ( COUNT( * ) ) ) ) col1
----
85

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL 85 * + ( ( + ( COUNT ( * ) ) ) ) col1
----
85

query II rowsort
SELECT ALL + 14 + 34 * 80 * 67 * + 6 AS col2, 94
----
1093454
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT DISTINCT COUNT( * ) * - - 24
----
24

skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT COUNT ( * ) * - - 24
----
24

query I rowsort
SELECT ALL 79 + 19 AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1396
SELECT DISTINCT COALESCE ( + 14, - + CAST( + ( 53 ) AS SIGNED ), + ( + NULLIF ( 42, + 65 + - - 22 ) ) ) + + 47, 21 col1
----
61
21

skipif mysql # not compatible
query II rowsort label-1396
SELECT DISTINCT COALESCE ( + 14, - + CAST ( + ( 53 ) AS INTEGER ), + ( + NULLIF ( 42, + 65 + - - 22 ) ) ) + + 47, 21 col1
----
61
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1397
SELECT DISTINCT CAST( - + 1 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-1397
SELECT DISTINCT CAST ( - + 1 AS INTEGER )
----
-1

query I rowsort
SELECT ALL 43 - - 57
----
100

query I rowsort
SELECT - 49 - + + 66 * - + 50 + + 49 AS col1
----
3300

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT + 55 * + 58 * + MAX( + + 57 )
----
181830

skipif mysql # not compatible
query I rowsort label-1400
SELECT + 55 * + 58 * + MAX ( + + 57 )
----
181830

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT - 25 - 60 - 90 * + - COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-1401
SELECT - 25 - 60 - 90 * + - COUNT ( * ) AS col1
----
5

query I rowsort
SELECT + 89 * 29 col0
----
2581

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT - ( + + CASE - - COALESCE ( - SUM( 78 ), + 31 ) WHEN + + 98 - NULLIF ( - CASE - NULLIF ( CASE COALESCE ( + 2, 82 ) WHEN - 52 * - ( 40 ) THEN - - COALESCE ( + 57, - 67, - - 71 ) ELSE 73 END, - + ( + 8 ) ) WHEN - 51 * + 96 THEN + AVG ( - 63 ) END, + 46 ) + - 2 THEN NULL ELSE + 22 END )
----
-22

skipif mysql # not compatible
query I rowsort label-1403
SELECT - ( + + CASE - - COALESCE ( - SUM ( 78 ), + 31 ) WHEN + + 98 - NULLIF ( - CASE - NULLIF ( CASE COALESCE ( + 2, 82 ) WHEN - 52 * - ( 40 ) THEN - - COALESCE ( + 57, - 67, - - 71 ) ELSE 73 END, - + ( + 8 ) ) WHEN - 51 * + 96 THEN + AVG ( - 63 ) END, + 46 ) + - 2 THEN NULL ELSE + 22 END )
----
-22

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

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

query I rowsort
SELECT + 54 * + 37
----
1998

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1406
SELECT ALL 65 * - + NULLIF ( + COUNT( * ), - ( - NULLIF ( - COUNT( * ), NULLIF ( - 3, + + CAST( NULL AS SIGNED ) * + 78 * - CAST( NULL AS SIGNED ) + + - 7 + - + 12 ) - 27 ) ) * 21 + NULLIF ( - COALESCE ( - + 61, ( + 65 ) ), + CAST( - - 62 AS SIGNED ) ) + COUNT( * ) ) * - 82
----
5330

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL 65 * - + NULLIF ( + COUNT ( * ), - ( - NULLIF ( - COUNT ( * ), NULLIF ( - 3, + + CAST ( NULL AS INTEGER ) * + 78 * - CAST ( NULL AS INTEGER ) + + - 7 + - + 12 ) - 27 ) ) * 21 + NULLIF ( - COALESCE ( - + 61, ( + 65 ) ), + CAST ( - - 62 AS INTEGER ) ) + COUNT ( * ) ) * - 82
----
5330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1407
SELECT ALL + 26 * + CAST( - 22 AS SIGNED )
----
-572

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL + 26 * + CAST ( - 22 AS INTEGER )
----
-572

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT + COUNT( ALL 99 ) * 76
----
76

skipif mysql # not compatible
query I rowsort label-1408
SELECT + COUNT ( ALL 99 ) * 76
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1409
SELECT + - CASE 49 WHEN 23 THEN + 75 ELSE - 74 END DIV 27 * - 78 AS col0
----
-156

skipif mysql # not compatible
query I rowsort label-1409
SELECT + - CASE 49 WHEN 23 THEN + 75 ELSE - 74 END / 27 * - 78 AS col0
----
-156

query I rowsort
SELECT + 78 * + - 25 + - - 92 AS col2
----
-1858

query I rowsort
SELECT + - 26 * - 36 * - ( + - ( - 92 ) ) * - 45 - + 89
----
3874951

onlyif mysql # DIV for integer division: 
query II rowsort label-1412
SELECT + 42 DIV ( + 93 ) AS col0, + 99 * - 37
----
0
-3663

skipif mysql # not compatible
query II rowsort label-1412
SELECT + 42 / ( + 93 ) AS col0, + 99 * - 37
----
0
-3663

query I rowsort
SELECT DISTINCT + NULLIF ( - 88, + 52 ) AS col2
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-1414
SELECT + 69 + + 1 * + 87 DIV + 91 col0
----
69

skipif mysql # not compatible
query I rowsort label-1414
SELECT + 69 + + 1 * + 87 / + 91 col0
----
69

query I rowsort
SELECT ALL - 81 * + 45 AS col2
----
-3645

query I rowsort
SELECT + + 17 col0
----
17

query II rowsort
SELECT ALL + 25 * + ( - + 92 ) + 51 + - 67, 72 + + 20 AS col0
----
-2316
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT + - COUNT( * ) * 53 * 4 AS col2
----
-212

skipif mysql # not compatible
query I rowsort label-1418
SELECT + - COUNT ( * ) * 53 * 4 AS col2
----
-212

query II rowsort
SELECT ALL - COALESCE ( + - 76, 80 ) * 86 + - 85, 62 * + COALESCE ( 69, - 3 ) * 68 AS col1
----
6451
290904

query II rowsort
SELECT - 52 AS col2, - 98
----
-52
-98

query I rowsort
SELECT - 28 * 32 AS col2
----
-896

query I rowsort
SELECT - + 52 + 21
----
-31

query I rowsort
SELECT DISTINCT - 88 * + 38
----
-3344

query I rowsort
SELECT ALL - 67 * + - 6 + + 61 + 44
----
507

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT DISTINCT NULLIF ( - - COALESCE ( - 70, 58 ), - - 0 - COUNT( * ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-1425
SELECT DISTINCT NULLIF ( - - COALESCE ( - 70, 58 ), - - 0 - COUNT ( * ) ) AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1426
SELECT - COUNT( - 2 ) * 65 * - COUNT( * ) * + CAST( NULL AS SIGNED ) + 36 + AVG ( ALL 21 ) / 57 * + ( - 46 ) - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1426
SELECT - COUNT ( - 2 ) * 65 * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + 36 + AVG ( ALL 21 ) / 57 * + ( - 46 ) - 12 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 1 * + 60 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT - MAX( 20 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1428
SELECT - MAX ( 20 ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-1429
SELECT ALL ( + 60 ) AS col0, SUM( ALL 4 ) AS col1
----
60
4

skipif mysql # not compatible
query II rowsort label-1429
SELECT ALL ( + 60 ) AS col0, SUM ( ALL 4 ) AS col1
----
60
4

query I rowsort
SELECT - 31 - + ( 86 ) AS col0
----
-117

query II rowsort
SELECT DISTINCT 23 AS col0, 99 + + + 24
----
23
123

query II rowsort
SELECT 12 + 8, 99 AS col0
----
20
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT NULLIF ( + 80, COUNT( * ) ) - - 58 AS col1
----
138

skipif mysql # not compatible
query I rowsort label-1433
SELECT NULLIF ( + 80, COUNT ( * ) ) - - 58 AS col1
----
138

query I rowsort
SELECT 22 + 18 * - - 24
----
454

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1435
SELECT DISTINCT + 66 DIV + + MAX( DISTINCT 17 )
----
3

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT + 66 / + + MAX ( DISTINCT 17 )
----
3

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

skipif mysql # not compatible
query I rowsort label-1436
SELECT COUNT ( * ) / + - 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT COUNT( * ) + - 31 * + 53 * - 41 + + 75 col1
----
67439

skipif mysql # not compatible
query I rowsort label-1437
SELECT COUNT ( * ) + - 31 * + 53 * - 41 + + 75 col1
----
67439

query II rowsort
SELECT ALL 40 AS col0, + 62 + - 79 AS col0
----
40
-17

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1440
SELECT ALL 97 AS col2, 59 / - CASE CAST( NULL AS SIGNED ) WHEN - 98 * 51 * COUNT( * ) * + 97 * COUNT( * ) * - 79 * - - 19 - + ( + 10 ) THEN + 68 WHEN + - NULLIF ( + 75, ( + 80 ) + COUNT( * ) * - 36 * + 63 + - - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) + - 28 ) + + + 5 THEN + 22 ELSE NULL END
----
97
NULL

skipif mysql # not compatible
query II rowsort label-1440
SELECT ALL 97 AS col2, 59 / - CASE CAST ( NULL AS INTEGER ) WHEN - 98 * 51 * COUNT ( * ) * + 97 * COUNT ( * ) * - 79 * - - 19 - + ( + 10 ) THEN + 68 WHEN + - NULLIF ( + 75, ( + 80 ) + COUNT ( * ) * - 36 * + 63 + - - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) + - 28 ) + + + 5 THEN + 22 ELSE NULL END
----
97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1441
SELECT + + 79 DIV - + 50 + - 75 + + 1 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-1441
SELECT + + 79 / - + 50 + - 75 + + 1 AS col0
----
-75

query I rowsort
SELECT 70 * - 84
----
-5880

query I rowsort
SELECT COALESCE ( + 65, - 21 ) AS col2
----
65

query I rowsort
SELECT 29 + - + 37 * - 7 col1
----
288

query I rowsort
SELECT - 31 * + 32 * - + 86
----
85312

onlyif mysql # aggregate syntax: 
query II rowsort label-1446
SELECT + + 62, COUNT( * ) + - SUM( ALL 74 ) AS col0
----
62
-73

skipif mysql # not compatible
query II rowsort label-1446
SELECT + + 62, COUNT ( * ) + - SUM ( ALL 74 ) AS col0
----
62
-73

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

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

query II rowsort
SELECT + - 9 AS col1, - 45 * + 34 + - 6 AS col2
----
-9
-1536

onlyif mysql # aggregate syntax: 
query II rowsort label-1449
SELECT DISTINCT - 68, SUM( - 68 ) + + 68 + - 3 AS col1
----
-68
-3

skipif mysql # not compatible
query II rowsort label-1449
SELECT DISTINCT - 68, SUM ( - 68 ) + + 68 + - 3 AS col1
----
-68
-3

query I rowsort
SELECT DISTINCT - 74 + 60 + 29
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT ALL + 11 * ( MAX( DISTINCT - ( - - 73 ) ) ) AS col0
----
-803

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL + 11 * ( MAX ( DISTINCT - ( - - 73 ) ) ) AS col0
----
-803

onlyif mysql # DIV for integer division: 
query I rowsort label-1452
SELECT - 33 * 47 DIV + 19 + + - 68 * + ( + - 34 ) AS col0
----
2231

skipif mysql # not compatible
query I rowsort label-1452
SELECT - 33 * 47 / + 19 + + - 68 * + ( + - 34 ) AS col0
----
2231

query II rowsort
SELECT DISTINCT - 37 col1, - 21 AS col1
----
-37
-21

query I rowsort
SELECT NULLIF ( + 45, + 81 )
----
45

query I rowsort
SELECT ALL 0 - - + 9 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT 57 * + SUM( - 68 ) AS col1
----
-3876

skipif mysql # not compatible
query I rowsort label-1456
SELECT 57 * + SUM ( - 68 ) AS col1
----
-3876

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT SUM( ALL 65 ) + COALESCE ( - 77, - COUNT( * ) ) * + ( - 35 )
----
2760

skipif mysql # not compatible
query I rowsort label-1457
SELECT SUM ( ALL 65 ) + COALESCE ( - 77, - COUNT ( * ) ) * + ( - 35 )
----
2760

query I rowsort
SELECT - 83 * 45 AS col2
----
-3735

query I rowsort
SELECT 16 - - 9 + 41 + + 66 AS col0
----
132

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

skipif mysql # not compatible
query I rowsort label-1460
SELECT ALL COUNT ( * ) - + COUNT ( * ) + - 47 / 48
----
0

query I rowsort
SELECT 38 + + 76
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT 22 * - + CASE + MAX( DISTINCT 96 ) WHEN + 2 THEN - MIN( + 98 ) * - ( 57 ) + + 56 - + 79 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1462
SELECT 22 * - + CASE + MAX ( DISTINCT 96 ) WHEN + 2 THEN - MIN ( + 98 ) * - ( 57 ) + + 56 - + 79 * + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1463
SELECT DISTINCT COALESCE ( + - 87, - CAST( - 9 AS SIGNED ), - - COUNT( * ) ) * - 31
----
2697

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT COALESCE ( + - 87, - CAST ( - 9 AS INTEGER ), - - COUNT ( * ) ) * - 31
----
2697

query I rowsort
SELECT 47 * 11
----
517

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT COUNT( * ) - + 22 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-1465
SELECT COUNT ( * ) - + 22 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT DISTINCT - 39 + - 41 + + 75 * + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT - 39 + - 41 + + 75 * + COUNT ( * )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1467
SELECT - 15 / - CAST( + CASE + 90 WHEN - 31 * + + 51 THEN + + 0 WHEN - - 33 THEN - 87 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1467
SELECT - 15 / - CAST ( + CASE + 90 WHEN - 31 * + + 51 THEN + + 0 WHEN - - 33 THEN - 87 END AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT ALL - + 7 + 64 * - COALESCE ( + + MAX( ALL - 16 ), 81 ) * + - CASE COUNT( * ) WHEN + ( + ( + MIN( DISTINCT 97 ) ) ) - + ( + 23 ) THEN - 7 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL - + 7 + 64 * - COALESCE ( + + MAX ( ALL - 16 ), 81 ) * + - CASE COUNT ( * ) WHEN + ( + ( + MIN ( DISTINCT 97 ) ) ) - + ( + 23 ) THEN - 7 END
----
NULL

query I rowsort
SELECT + 24 * + 23 - + 86 * + - 58 AS col0
----
5540

onlyif mysql # DIV for integer division: 
query I rowsort label-1470
SELECT ALL - ( - 48 ) DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL - ( - 48 ) / + 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT ALL + 38 * + 91 * COUNT( * ) * MIN( DISTINCT 20 ) + - + 67
----
69093

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL + 38 * + 91 * COUNT ( * ) * MIN ( DISTINCT 20 ) + - + 67
----
69093

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1472
SELECT 51 DIV + ( - + COUNT( * ) ) + 18 * + 77 * + + 44 + + 97 - + - 55 * COUNT( * ) * - + 89 AS col1, 90 * - 60 AS col2
----
56135
-5400

skipif mysql # not compatible
query II rowsort label-1472
SELECT 51 / + ( - + COUNT ( * ) ) + 18 * + 77 * + + 44 + + 97 - + - 55 * COUNT ( * ) * - + 89 AS col1, 90 * - 60 AS col2
----
56135
-5400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1473
SELECT ALL - 24 * - CAST( NULL AS SIGNED ) + 50 + 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL - 24 * - CAST ( NULL AS INTEGER ) + 50 + 19 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT - COALESCE ( - 6, + 18 * - 22 * + 82 + + 47 ) + - COUNT( * ) * + MAX( ALL - 57 ) + + + 87 + - COUNT( * ) * + COUNT( * ) - + - 24 AS col0
----
173

skipif mysql # not compatible
query I rowsort label-1474
SELECT - COALESCE ( - 6, + 18 * - 22 * + 82 + + 47 ) + - COUNT ( * ) * + MAX ( ALL - 57 ) + + + 87 + - COUNT ( * ) * + COUNT ( * ) - + - 24 AS col0
----
173

query I rowsort
SELECT ALL + 54 * 37 AS col1
----
1998

onlyif mysql # DIV for integer division: 
query I rowsort label-1476
SELECT + 44 DIV - NULLIF ( + - ( + ( - - 91 ) ), 95 ) + + 26
----
26

skipif mysql # not compatible
query I rowsort label-1476
SELECT + 44 / - NULLIF ( + - ( + ( - - 91 ) ), 95 ) + + 26
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT - - 87 * + 50 + + + 6 - - 41 + - 63 * + COUNT( * ) + 29 * + 81
----
6683

skipif mysql # not compatible
query I rowsort label-1477
SELECT - - 87 * + 50 + + + 6 - - 41 + - 63 * + COUNT ( * ) + 29 * + 81
----
6683

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT ALL + - 36 * - 22 - CASE - 7 WHEN - 15 THEN - 86 WHEN 33 + 86 THEN 47 + + 46 + - - 32 + + + 63 * COUNT( DISTINCT - 14 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL + - 36 * - 22 - CASE - 7 WHEN - 15 THEN - 86 WHEN 33 + 86 THEN 47 + + 46 + - - 32 + + + 63 * COUNT ( DISTINCT - 14 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT ALL - + NULLIF ( + - 81, + - 47 / - COUNT( * ) ) col2
----
81

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL - + NULLIF ( + - 81, + - 47 / - COUNT ( * ) ) col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT - + 58 * 26 + + - 57 + - 65 + + COUNT( * ) + - 15 * + 86
----
-2919

skipif mysql # not compatible
query I rowsort label-1480
SELECT - + 58 * 26 + + - 57 + - 65 + + COUNT ( * ) + - 15 * + 86
----
-2919

onlyif mysql # aggregate syntax: 
query II rowsort label-1481
SELECT ALL 7 * - 22 AS col1, NULLIF ( + ( + 8 ), - 33 * COUNT( * ) ) + + - COUNT( * ) AS col1
----
-154
7

skipif mysql # not compatible
query II rowsort label-1481
SELECT ALL 7 * - 22 AS col1, NULLIF ( + ( + 8 ), - 33 * COUNT ( * ) ) + + - COUNT ( * ) AS col1
----
-154
7

query I rowsort
SELECT - ( + 26 ) * 89 + + 21 + + 59 AS col1
----
-2234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1483
SELECT ALL - CAST( - ( + - ( ( - - COUNT( * ) ) ) ) AS SIGNED ) AS col2, + 63 + 93 AS col0
----
-1
156

skipif mysql # not compatible
query II rowsort label-1483
SELECT ALL - CAST ( - ( + - ( ( - - COUNT ( * ) ) ) ) AS INTEGER ) AS col2, + 63 + 93 AS col0
----
-1
156

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT + COUNT( * ) * + SUM( DISTINCT + 3 ) + + 78
----
81

skipif mysql # not compatible
query I rowsort label-1485
SELECT + COUNT ( * ) * + SUM ( DISTINCT + 3 ) + + 78
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1486
SELECT 96 DIV NULLIF ( - ( + - 84 ), 34 * - + CASE - 7 WHEN - - 21 THEN NULL ELSE - MAX( ALL + 19 ) END )
----
1

skipif mysql # not compatible
query I rowsort label-1486
SELECT 96 / NULLIF ( - ( + - 84 ), 34 * - + CASE - 7 WHEN - - 21 THEN NULL ELSE - MAX ( ALL + 19 ) END )
----
1

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

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

query I rowsort
SELECT + 26 + + + 52
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT + NULLIF ( 13, - COUNT( * ) )
----
13

skipif mysql # not compatible
query I rowsort label-1489
SELECT + NULLIF ( 13, - COUNT ( * ) )
----
13

query I rowsort
SELECT + 2 + + 71
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1491
SELECT + 78 DIV + - NULLIF ( 19, - 7 * AVG ( ALL + 82 ) * + - ( COALESCE ( NULLIF ( - 32, 7 * - 48 ), - + 9 * - + 28 ) ) )
----
-4

skipif mysql # not compatible
query I rowsort label-1491
SELECT + 78 / + - NULLIF ( 19, - 7 * AVG ( ALL + 82 ) * + - ( COALESCE ( NULLIF ( - 32, 7 * - 48 ), - + 9 * - + 28 ) ) )
----
-4

query I rowsort
SELECT + 54 * 78 col2
----
4212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1493
SELECT DISTINCT 24 AS col1, 87 + - COUNT( * ) + + CAST( NULL AS SIGNED ) * - 69 * - - 3 + 60 col1
----
24
NULL

skipif mysql # not compatible
query II rowsort label-1493
SELECT DISTINCT 24 AS col1, 87 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - 69 * - - 3 + 60 col1
----
24
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1494
SELECT ALL - 93 + + 8 DIV 56 DIV - + ( + CAST( + 80 AS SIGNED ) ), - 38 AS col0
----
-93
-38

skipif mysql # not compatible
query II rowsort label-1494
SELECT ALL - 93 + + 8 / 56 / - + ( + CAST ( + 80 AS INTEGER ) ), - 38 AS col0
----
-93
-38

query I rowsort
SELECT ALL 54 + 98
----
152

query I rowsort
SELECT + 18 * + 15
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT + 36 + - 66 + - NULLIF ( ( - 19 ), + COALESCE ( 23, - 53, + - ( COUNT( * ) ) ) )
----
-11

skipif mysql # not compatible
query I rowsort label-1497
SELECT + 36 + - 66 + - NULLIF ( ( - 19 ), + COALESCE ( 23, - 53, + - ( COUNT ( * ) ) ) )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1498
SELECT - 86 AS col1, CAST( - COALESCE ( - - 75, - COUNT( * ), + 80 * ( - COALESCE ( - COUNT( * ), CAST( + + 50 AS DECIMAL ), 84 ) ) ) AS SIGNED )
----
-86
-75

skipif mysql # not compatible
query II rowsort label-1498
SELECT - 86 AS col1, CAST ( - COALESCE ( - - 75, - COUNT ( * ), + 80 * ( - COALESCE ( - COUNT ( * ), CAST ( + + 50 AS REAL ), 84 ) ) ) AS INTEGER )
----
-86
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT + 12 + COUNT( * ) + - CASE - - 45 WHEN + 11 THEN + - COALESCE ( 40, + - ( + 17 ) * + 55 - - ( 65 ) + COUNT( * ) + + + 33 * + 56 ) ELSE + + 13 END
----
0

skipif mysql # not compatible
query I rowsort label-1499
SELECT + 12 + COUNT ( * ) + - CASE - - 45 WHEN + 11 THEN + - COALESCE ( 40, + - ( + 17 ) * + 55 - - ( 65 ) + COUNT ( * ) + + + 33 * + 56 ) ELSE + + 13 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT - COUNT( * ) - - 37 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1500
SELECT - COUNT ( * ) - - 37 AS col2
----
36

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

skipif mysql # not compatible
query I rowsort label-1501
SELECT - CAST ( COUNT ( * ) AS INTEGER ) - - 78
----
77

query I rowsort
SELECT ALL + 22 + 90
----
112

query I rowsort
SELECT + + 29 + - 11 col0
----
18

query I rowsort
SELECT DISTINCT 87 + - 98
----
-11

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1506
SELECT ALL + - 75 + ( + - 5 ) * 47 * + + COALESCE ( + 46, - - 3 DIV + COUNT( * ) DIV + - 41 ) AS col2
----
-10885

skipif mysql # not compatible
query I rowsort label-1506
SELECT ALL + - 75 + ( + - 5 ) * 47 * + + COALESCE ( + 46, - - 3 / + COUNT ( * ) / + - 41 ) AS col2
----
-10885

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT + 89 * + MIN( DISTINCT + ( 97 ) ) * - 47
----
-405751

skipif mysql # not compatible
query I rowsort label-1507
SELECT + 89 * + MIN ( DISTINCT + ( 97 ) ) * - 47
----
-405751

query I rowsort
SELECT ALL ( + + 58 ) AS col2
----
58

query II rowsort
SELECT - - 3 + - 6 + 87 AS col0, + 31
----
84
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1510
SELECT - - COALESCE ( + + 98, 59, - 66 ) + + 56 + + 32 * - 9 * - CAST( + + MIN( - 43 ) AS SIGNED ) AS col0
----
-12230

skipif mysql # not compatible
query I rowsort label-1510
SELECT - - COALESCE ( + + 98, 59, - 66 ) + + 56 + + 32 * - 9 * - CAST ( + + MIN ( - 43 ) AS INTEGER ) AS col0
----
-12230

onlyif mysql # DIV for integer division: 
query I rowsort label-1511
SELECT ALL - - 87 DIV + 11 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL - - 87 / + 11 AS col0
----
7

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT - 2 * + 74 * + COUNT( * )
----
-148

skipif mysql # not compatible
query I rowsort label-1515
SELECT - 2 * + 74 * + COUNT ( * )
----
-148

query I rowsort
SELECT DISTINCT - 79 * + 32 AS col0
----
-2528

query I rowsort
SELECT ALL + CASE 55 WHEN 47 * - 95 THEN - 31 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1518
SELECT ALL 20 * + SUM( - + CAST( + 93 AS SIGNED ) ) + + 30 - - - ( + + 7 ), 1 * 73 AS col1
----
-1837
73

skipif mysql # not compatible
query II rowsort label-1518
SELECT ALL 20 * + SUM ( - + CAST ( + 93 AS INTEGER ) ) + + 30 - - - ( + + 7 ), 1 * 73 AS col1
----
-1837
73

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

skipif mysql # not compatible
query I rowsort label-1519
SELECT - 39 * + + 96 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1520
SELECT ALL - 34 DIV 26 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL - 34 / 26 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT + 25 DIV - ( + 42 )
----
0

skipif mysql # not compatible
query I rowsort label-1521
SELECT + 25 / - ( + 42 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1522
SELECT - MAX( ALL 3 ) AS col2, 97
----
-3
97

skipif mysql # not compatible
query II rowsort label-1522
SELECT - MAX ( ALL 3 ) AS col2, 97
----
-3
97

query I rowsort
SELECT ALL 63 * - - 6 + 45 col1
----
423

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT + ( - 8 ) + + 16 * + + 14 + - + 16 + COUNT( * )
----
201

skipif mysql # not compatible
query I rowsort label-1525
SELECT + ( - 8 ) + + 16 * + + 14 + - + 16 + COUNT ( * )
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT + MAX( ALL + 25 ) + 15
----
40

skipif mysql # not compatible
query I rowsort label-1526
SELECT + MAX ( ALL + 25 ) + 15
----
40

query I rowsort
SELECT ALL 0 + + 93 col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-1528
SELECT DISTINCT - 17 * - 94 AS col0, + SUM( COALESCE ( + + 0, - + 5 * - ( + 42 ) + + 12, - - 64 ) ) AS col2
----
1598
0

skipif mysql # not compatible
query II rowsort label-1528
SELECT DISTINCT - 17 * - 94 AS col0, + SUM ( COALESCE ( + + 0, - + 5 * - ( + 42 ) + + 12, - - 64 ) ) AS col2
----
1598
0

query I rowsort
SELECT ALL 53 + + 12 + + 65
----
130

onlyif mysql # DIV for integer division: 
query II rowsort label-1530
SELECT + 6 DIV - + 71 AS col2, + 5 AS col2
----
0
5

skipif mysql # not compatible
query II rowsort label-1530
SELECT + 6 / - + 71 AS col2, + 5 AS col2
----
0
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1531
SELECT ALL CASE 52 WHEN + 7 THEN - COUNT( * ) ELSE NULL END + - CAST( NULL AS SIGNED ) + + 70 + - 39 AS col2, 46 * + 94 + 71
----
NULL
4395

skipif mysql # not compatible
query II rowsort label-1531
SELECT ALL CASE 52 WHEN + 7 THEN - COUNT ( * ) ELSE NULL END + - CAST ( NULL AS INTEGER ) + + 70 + - 39 AS col2, 46 * + 94 + 71
----
NULL
4395

query I rowsort
SELECT - NULLIF ( + 10, - - 49 ) AS col1
----
-10

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT + - COUNT( * ) - - ( + + 61 )
----
60

skipif mysql # not compatible
query I rowsort label-1535
SELECT + - COUNT ( * ) - - ( + + 61 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT - + NULLIF ( + + COUNT( * ), + COUNT( * ) ) * + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1536
SELECT - + NULLIF ( + + COUNT ( * ), + COUNT ( * ) ) * + COUNT ( * ) col1
----
NULL

query I rowsort
SELECT + + 74 + 76 AS col2
----
150

query I rowsort
SELECT ALL 39 - - 87 - 33
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT ALL + ( + MIN( 76 ) ) * + SUM( ALL 75 )
----
5700

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL + ( + MIN ( 76 ) ) * + SUM ( ALL 75 )
----
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT ALL + CASE + + 47 WHEN - COUNT( * ) THEN 25 * + COUNT( ALL - - 12 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1540
SELECT ALL + CASE + + 47 WHEN - COUNT ( * ) THEN 25 * + COUNT ( ALL - - 12 ) END
----
NULL

query I rowsort
SELECT DISTINCT - 60 * + 35 AS col1
----
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT SUM( + + COALESCE ( + 74, 61 * + 89 ) ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-1542
SELECT SUM ( + + COALESCE ( + 74, 61 * + 89 ) ) AS col2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1543
SELECT + 76 DIV ( - - 11 ) + - - COUNT( * ) - - 41
----
48

skipif mysql # not compatible
query I rowsort label-1543
SELECT + 76 / ( - - 11 ) + - - COUNT ( * ) - - 41
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT - - COALESCE ( + + COUNT( + 24 ), + COUNT( * ), - NULLIF ( - 16, 15 * + - 86 + 79 ) + 79 ) * + 34
----
34

skipif mysql # not compatible
query I rowsort label-1544
SELECT - - COALESCE ( + + COUNT ( + 24 ), + COUNT ( * ), - NULLIF ( - 16, 15 * + - 86 + 79 ) + 79 ) * + 34
----
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT 72 * - - COUNT( * ) + + 43 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-1546
SELECT 72 * - - COUNT ( * ) + + 43 AS col2
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-1547
SELECT ( + COUNT( * ) ), + 7 * - 47 AS col0
----
1
-329

skipif mysql # not compatible
query II rowsort label-1547
SELECT ( + COUNT ( * ) ), + 7 * - 47 AS col0
----
1
-329

query I rowsort
SELECT 48 * + COALESCE ( + COALESCE ( - 40, 31 ), - 20 )
----
-1920

query I rowsort
SELECT 22 * - + 25 AS col2
----
-550

query I rowsort
SELECT ALL 85 + + 30 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT ALL COUNT( * ) + - ( - 61 ) * + 45 AS col2
----
2746

skipif mysql # not compatible
query I rowsort label-1551
SELECT ALL COUNT ( * ) + - ( - 61 ) * + 45 AS col2
----
2746

query I rowsort
SELECT ALL + 93 + 89 - ( - - 87 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT 47 * - MAX( + 92 ) col1
----
-4324

skipif mysql # not compatible
query I rowsort label-1553
SELECT 47 * - MAX ( + 92 ) col1
----
-4324

query II rowsort
SELECT DISTINCT - ( - 61 ) * 21 AS col2, 0 + - + 65 + - + 51
----
1281
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT ALL + COUNT( ALL - 52 ) + - 42 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL + COUNT ( ALL - 52 ) + - 42 AS col2
----
-41

query I rowsort
SELECT 37 + - CASE 98 WHEN + 32 + - + 9 THEN NULL WHEN - 70 THEN 43 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 21 + 90 + - - 36 col2
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-1558
SELECT ALL - COUNT( * ) AS col0, 88 + - 84 + NULLIF ( 91, + COUNT( * ) + - MIN( + 39 ) + + 91 )
----
-1
95

skipif mysql # not compatible
query II rowsort label-1558
SELECT ALL - COUNT ( * ) AS col0, 88 + - 84 + NULLIF ( 91, + COUNT ( * ) + - MIN ( + 39 ) + + 91 )
----
-1
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT ALL - ( + MAX( DISTINCT + 9 ) ) * + 50 AS col1
----
-450

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL - ( + MAX ( DISTINCT + 9 ) ) * + 50 AS col1
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT DISTINCT + COUNT( DISTINCT + 92 ) + + 99 * 89 AS col1
----
8812

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT + COUNT ( DISTINCT + 92 ) + + 99 * 89 AS col1
----
8812

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT 82 + + COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-1562
SELECT 82 + + COUNT ( * ) AS col2
----
83

query I rowsort
SELECT 53 + + 27 AS col0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1564
SELECT DISTINCT + 86 DIV 83
----
1

skipif mysql # not compatible
query I rowsort label-1564
SELECT DISTINCT + 86 / 83
----
1

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

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

query I rowsort
SELECT 72 + 71 AS col0
----
143

query I rowsort
SELECT ALL 11 * - 10 col0
----
-110

query I rowsort
SELECT 81 + + 82 * 13 AS col1
----
1147

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT MIN( 45 ) * 43
----
1935

skipif mysql # not compatible
query I rowsort label-1569
SELECT MIN ( 45 ) * 43
----
1935

query I rowsort
SELECT ALL + 69 * 67
----
4623

query I rowsort
SELECT 7 + + 37
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-1572
SELECT ( 37 ) + + 72 DIV 33 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-1572
SELECT ( 37 ) + + 72 / 33 AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1573
SELECT ( - 17 ) DIV + NULLIF ( + COUNT( * ) + 55 * - 48, 79 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1573
SELECT ( - 17 ) / + NULLIF ( + COUNT ( * ) + 55 * - 48, 79 ) AS col0
----
0

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1576
SELECT DISTINCT - CASE - COUNT( * ) WHEN 9 THEN NULL WHEN 38 + COUNT( * ) THEN CASE COUNT( * ) WHEN - MIN( ALL - 72 ) THEN + COUNT( * ) * + 67 WHEN - CAST( + 43 AS SIGNED ) * 79 THEN + 32 * 75 ELSE - 54 END * + CASE - COUNT( * ) WHEN - 84 THEN + 83 ELSE + 24 END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT - CASE - COUNT ( * ) WHEN 9 THEN NULL WHEN 38 + COUNT ( * ) THEN CASE COUNT ( * ) WHEN - MIN ( ALL - 72 ) THEN + COUNT ( * ) * + 67 WHEN - CAST ( + 43 AS INTEGER ) * 79 THEN + 32 * 75 ELSE - 54 END * + CASE - COUNT ( * ) WHEN - 84 THEN + 83 ELSE + 24 END END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT DISTINCT CASE - 34 WHEN - MIN( - 22 ) THEN NULL WHEN + 80 THEN ( 30 ) * 57 ELSE NULL END + + 44 * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1577
SELECT DISTINCT CASE - 34 WHEN - MIN ( - 22 ) THEN NULL WHEN + 80 THEN ( 30 ) * 57 ELSE NULL END + + 44 * 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT NULLIF ( + COUNT( * ), 28 * COUNT( * ) ) * 10 col0
----
10

skipif mysql # not compatible
query I rowsort label-1578
SELECT NULLIF ( + COUNT ( * ), 28 * COUNT ( * ) ) * 10 col0
----
10

query I rowsort
SELECT ALL NULLIF ( 79, + 3 / 52 ) * 72 AS col2
----
5688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1580
SELECT - SUM( 24 ) DIV 8 + + COALESCE ( - 85 + 54, 58 * - 83, 66 * 32 )
----
-34

skipif mysql # not compatible
query I rowsort label-1580
SELECT - SUM ( 24 ) / 8 + + COALESCE ( - 85 + 54, 58 * - 83, 66 * 32 )
----
-34

query I rowsort
SELECT ALL ( 94 ) + - 3 * 54 col1
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-1582
SELECT - ( - 79 ) DIV 65 - 89 * COALESCE ( 80, 41 DIV - 39 )
----
-7119

skipif mysql # not compatible
query I rowsort label-1582
SELECT - ( - 79 ) / 65 - 89 * COALESCE ( 80, 41 / - 39 )
----
-7119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1583
SELECT ( - COUNT( DISTINCT 97 ) ) DIV ( ( 89 ) + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-1583
SELECT ( - COUNT ( DISTINCT 97 ) ) / ( ( 89 ) + 53 )
----
0

query I rowsort
SELECT 73 + 95 AS col2
----
168

query I rowsort
SELECT DISTINCT + 89 + + 51 AS col1
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-1586
SELECT ALL + 63 * - ( + 78 DIV + 7 ) AS col0
----
-693

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL + 63 * - ( + 78 / + 7 ) AS col0
----
-693

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1588
SELECT DISTINCT CAST( 53 AS SIGNED ) DIV + 3
----
17

skipif mysql # not compatible
query I rowsort label-1588
SELECT DISTINCT CAST ( 53 AS INTEGER ) / + 3
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1589
SELECT 75 - + CASE 74 WHEN 65 THEN - ( 98 ) WHEN - 65 THEN NULL ELSE CAST( 4 AS SIGNED ) END
----
71

skipif mysql # not compatible
query I rowsort label-1589
SELECT 75 - + CASE 74 WHEN 65 THEN - ( 98 ) WHEN - 65 THEN NULL ELSE CAST ( 4 AS INTEGER ) END
----
71

query I rowsort
SELECT ALL + 72 * - 78 col1
----
-5616

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

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

query I rowsort
SELECT DISTINCT + 29 - - 3 AS col0
----
32

query I rowsort
SELECT 36 * 42 AS col0
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT ALL + 26 * + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL + 26 * + COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT + SUM( DISTINCT + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-1595
SELECT + SUM ( DISTINCT + 15 )
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1596
SELECT ALL - CASE - 73 WHEN ( - 11 ) * - 59 THEN CAST( - 82 AS DECIMAL ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL - CASE - 73 WHEN ( - 11 ) * - 59 THEN CAST ( - 82 AS REAL ) END AS col2
----
NULL

query I rowsort
SELECT 16 * + 50
----
800

query I rowsort
SELECT ALL 44 * + 65
----
2860

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

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

query I rowsort
SELECT - - ( 29 ) * - 88
----
-2552

query I rowsort
SELECT + - 16 * 38
----
-608

query I rowsort
SELECT ALL + + 1 + 63 col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1603
SELECT - 71 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1603
SELECT - 71 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT ALL COUNT( * ) + - 33
----
-32

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL COUNT ( * ) + - 33
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT ALL + + COUNT( * ) + 93 * + COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL + + COUNT ( * ) + 93 * + COUNT ( * ) AS col1
----
94

query I rowsort
SELECT - + ( + 56 ) AS col0
----
-56

query I rowsort
SELECT DISTINCT - 28 + 36 AS col0
----
8

query I rowsort
SELECT ALL - 70 + - 69
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT + - 64 - + COALESCE ( + COUNT( * ), 9 + - 75, - ( - MIN( ALL 26 ) ), - SUM( ALL + 63 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-1609
SELECT + - 64 - + COALESCE ( + COUNT ( * ), 9 + - 75, - ( - MIN ( ALL 26 ) ), - SUM ( ALL + 63 ) )
----
-65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT CASE - MIN( ALL 25 ) WHEN - 70 THEN NULL ELSE + 28 END col0
----
28

skipif mysql # not compatible
query I rowsort label-1611
SELECT CASE - MIN ( ALL 25 ) WHEN - 70 THEN NULL ELSE + 28 END col0
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1612
SELECT DISTINCT + COUNT( * ) * - 68 DIV 18 + 9
----
6

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT + COUNT ( * ) * - 68 / 18 + 9
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1613
SELECT COALESCE ( + CAST( NULL AS SIGNED ), + 27 - 77 * - MAX( 72 * + 72 ) ) col2
----
399195

skipif mysql # not compatible
query I rowsort label-1613
SELECT COALESCE ( + CAST ( NULL AS INTEGER ), + 27 - 77 * - MAX ( 72 * + 72 ) ) col2
----
399195

query I rowsort
SELECT ALL + 8 * - - 59 + 66
----
538

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1616
SELECT CASE - 8 WHEN COUNT( * ) + CAST( NULL AS SIGNED ) THEN NULL ELSE - ( 31 ) END
----
-31

skipif mysql # not compatible
query I rowsort label-1616
SELECT CASE - 8 WHEN COUNT ( * ) + CAST ( NULL AS INTEGER ) THEN NULL ELSE - ( 31 ) END
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT CASE MIN( ALL - 62 ) WHEN - 62 THEN NULL ELSE - 83 / + 45 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1617
SELECT CASE MIN ( ALL - 62 ) WHEN - 62 THEN NULL ELSE - 83 / + 45 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT + COUNT( * ) * - 0 - - CASE + COUNT( * ) + - 23 WHEN + MIN( 6 ) THEN - COUNT( * ) + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT + COUNT ( * ) * - 0 - - CASE + COUNT ( * ) + - 23 WHEN + MIN ( 6 ) THEN - COUNT ( * ) + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT + MIN( DISTINCT 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-1619
SELECT + MIN ( DISTINCT 33 ) AS col2
----
33

query I rowsort
SELECT ALL + ( 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT ALL + COUNT( * ) * + MAX( ALL - 86 ) - - 80
----
-6

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL + COUNT ( * ) * + MAX ( ALL - 86 ) - - 80
----
-6

query I rowsort
SELECT + COALESCE ( 7, - 44 + + 16 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT ALL 63 * - ( 32 ) - - NULLIF ( - COUNT( * ), - 36 ) AS col0
----
-2017

skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL 63 * - ( 32 ) - - NULLIF ( - COUNT ( * ), - 36 ) AS col0
----
-2017

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT + NULLIF ( MIN( + NULLIF ( 90, + 96 ) ), + COUNT( DISTINCT 9 ) ) * COUNT( * ) col0
----
90

skipif mysql # not compatible
query I rowsort label-1624
SELECT + NULLIF ( MIN ( + NULLIF ( 90, + 96 ) ), + COUNT ( DISTINCT 9 ) ) * COUNT ( * ) col0
----
90

query I rowsort
SELECT ALL 48 * - 14
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT 76 * + - 58 + CASE NULLIF ( - 51, - 42 * 80 + - COUNT( * ) ) WHEN + 9 THEN COUNT( * ) * 11 END * - 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1626
SELECT 76 * + - 58 + CASE NULLIF ( - 51, - 42 * 80 + - COUNT ( * ) ) WHEN + 9 THEN COUNT ( * ) * 11 END * - 78 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 83 * + + 26
----
2158

query I rowsort
SELECT + NULLIF ( 0, - ( 88 ) ) * - 41 col1
----
0

query I rowsort
SELECT + ( - 79 ) + - 82 * 94 AS col0
----
-7787

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1630
SELECT - 13 DIV + + 80 - COALESCE ( COUNT( * ), CAST( + 94 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1630
SELECT - 13 / + + 80 - COALESCE ( COUNT ( * ), CAST ( + 94 AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT + COUNT( * ) * + - 94 + 31 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-1631
SELECT + COUNT ( * ) * + - 94 + 31 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT DISTINCT + MAX( DISTINCT - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT + MAX ( DISTINCT - 36 )
----
-36

query I rowsort
SELECT + + 95 * COALESCE ( 6, - 48 ) + 14 col2
----
584

onlyif mysql # DIV for integer division: 
query I rowsort label-1634
SELECT - + ( - 66 ) DIV + 28 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1634
SELECT - + ( - 66 ) / + 28 AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1635
SELECT ALL + 6 DIV - 58 * + 23 + COUNT( + 69 ) * - NULLIF ( NULLIF ( 93, + COUNT( * ) * + 69 + COUNT( * ) * + 99 ) * 86, 2 + 11 )
----
-7998

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL + 6 / - 58 * + 23 + COUNT ( + 69 ) * - NULLIF ( NULLIF ( 93, + COUNT ( * ) * + 69 + COUNT ( * ) * + 99 ) * 86, 2 + 11 )
----
-7998

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT DISTINCT + 48 + CASE COALESCE ( 21, 93 - + COUNT( - 85 ) * ( 63 * + 83 ), - 2 - 84, - 60 ) WHEN 33 * 55 THEN NULL WHEN - 40 THEN NULL ELSE 88 END + - 1 * - COUNT( * ) * + 62
----
198

skipif mysql # not compatible
query I rowsort label-1636
SELECT DISTINCT + 48 + CASE COALESCE ( 21, 93 - + COUNT ( - 85 ) * ( 63 * + 83 ), - 2 - 84, - 60 ) WHEN 33 * 55 THEN NULL WHEN - 40 THEN NULL ELSE 88 END + - 1 * - COUNT ( * ) * + 62
----
198

query I rowsort
SELECT DISTINCT - 84 * 76
----
-6384

query I rowsort
SELECT ALL + 25 * - 25
----
-625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1639
SELECT - 2 + - - CASE 85 WHEN MAX( - 66 ) + + COUNT( * ) THEN 29 * CAST( NULL AS SIGNED ) + - 96 WHEN + 87 THEN - 50 ELSE CAST( NULL AS SIGNED ) - - 85 * - 76 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1639
SELECT - 2 + - - CASE 85 WHEN MAX ( - 66 ) + + COUNT ( * ) THEN 29 * CAST ( NULL AS INTEGER ) + - 96 WHEN + 87 THEN - 50 ELSE CAST ( NULL AS INTEGER ) - - 85 * - 76 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT SUM( ALL 60 ) col2
----
60

skipif mysql # not compatible
query I rowsort label-1640
SELECT SUM ( ALL 60 ) col2
----
60

query I rowsort
SELECT - 16 + - 67 AS col0
----
-83

query I rowsort
SELECT + 55 + - - 53 + + 99 AS col2
----
207

query I rowsort
SELECT ( + ( + 45 ) ) AS col0
----
45

query I rowsort
SELECT - + 59 + + 16 * - 35 AS col1
----
-619

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

skipif mysql # not compatible
query I rowsort label-1645
SELECT - + MIN ( ALL 30 ) + - 10 AS col0
----
-40

query I rowsort
SELECT - - 87 col1
----
87

query I rowsort
SELECT ALL - 79 + - + 62 * + 45 AS col2
----
-2869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1648
SELECT DISTINCT 56 * + CAST( - AVG ( + 43 ) AS SIGNED )
----
-2408

skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT 56 * + CAST ( - AVG ( + 43 ) AS INTEGER )
----
-2408

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT - CASE + - 5 WHEN - 8 THEN NULL WHEN + ( 97 ) * + ( 67 * 91 ) THEN - COUNT( 43 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1649
SELECT - CASE + - 5 WHEN - 8 THEN NULL WHEN + ( 97 ) * + ( 67 * 91 ) THEN - COUNT ( 43 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT ALL + - MAX( 10 ) + - 89 * - COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1650
SELECT ALL + - MAX ( 10 ) + - 89 * - COUNT ( * ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT ALL ( - COUNT( DISTINCT + 98 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL ( - COUNT ( DISTINCT + 98 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1652
SELECT COALESCE ( + + ( MAX( ALL + CAST( NULL AS SIGNED ) ) ), 86 + 92 * - 99 )
----
-9022

skipif mysql # not compatible
query I rowsort label-1652
SELECT COALESCE ( + + ( MAX ( ALL + CAST ( NULL AS INTEGER ) ) ), 86 + 92 * - 99 )
----
-9022

query I rowsort
SELECT ALL - 7 + - COALESCE ( 11, - 39 )
----
-18

query I rowsort
SELECT - 20 * - - 75 col1
----
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT - SUM( DISTINCT 90 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-1655
SELECT - SUM ( DISTINCT 90 ) AS col2
----
-90

query II rowsort
SELECT 18 AS col0, 27 + + 5
----
18
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1657
SELECT - 14 + - 8 + MIN( + 18 ) + 53 DIV CAST( - 92 DIV - SUM( 63 ) AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-1657
SELECT - 14 + - 8 + MIN ( + 18 ) + 53 / CAST ( - 92 / - SUM ( 63 ) AS INTEGER )
----
49

query I rowsort
SELECT + 78 + + 26 + + 46 - - 47
----
197

query I rowsort
SELECT DISTINCT - 90 * + 41 * - ( 62 ) col0
----
228780

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

skipif mysql # not compatible
query I rowsort label-1660
SELECT - 42 / COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT ALL - 72 * + COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL - 72 * + COUNT ( * )
----
-72

query I rowsort
SELECT DISTINCT + 17 * + ( + 99 ) AS col2
----
1683

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT + ( - + 67 ) + + + ( + MAX( 1 ) ) col0
----
-66

skipif mysql # not compatible
query I rowsort label-1663
SELECT + ( - + 67 ) + + + ( + MAX ( 1 ) ) col0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-1664
SELECT - 6 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-1664
SELECT - 6 / - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT + COUNT( * ) * + 15 * + + 68
----
1020

skipif mysql # not compatible
query I rowsort label-1665
SELECT + COUNT ( * ) * + 15 * + + 68
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT - ( - ( - 59 ) ) - CASE MIN( 62 ) WHEN - 77 / COUNT( DISTINCT 84 ) THEN - COUNT( * ) * 43 WHEN 95 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1666
SELECT - ( - ( - 59 ) ) - CASE MIN ( 62 ) WHEN - 77 / COUNT ( DISTINCT 84 ) THEN - COUNT ( * ) * 43 WHEN 95 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 88 * - 38 AS col1
----
-3344

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT - 96 * + 21 * + - COUNT( * ) + 85 * 72
----
8136

skipif mysql # not compatible
query I rowsort label-1669
SELECT - 96 * + 21 * + - COUNT ( * ) + 85 * 72
----
8136

query II rowsort
SELECT ALL + 52 AS col1, 87 AS col2
----
52
87

query I rowsort
SELECT DISTINCT - 88 * - 42
----
3696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1672
SELECT DISTINCT AVG ( - + ( + - 57 ) ) * - 28 + CAST( NULL AS SIGNED ) * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT AVG ( - + ( + - 57 ) ) * - 28 + CAST ( NULL AS INTEGER ) * - 30
----
NULL

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

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

query I rowsort
SELECT - 87 * - 20 * 83 * + 9 col1
----
1299780

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT ALL - COUNT( * ) + + COALESCE ( + 86, CASE + 77 WHEN + SUM( 61 ) THEN NULL WHEN + COUNT( 69 ) THEN NULL WHEN COUNT( * ) + 30 THEN + 23 END ) + + 10 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL - COUNT ( * ) + + COALESCE ( + 86, CASE + 77 WHEN + SUM ( 61 ) THEN NULL WHEN + COUNT ( 69 ) THEN NULL WHEN COUNT ( * ) + 30 THEN + 23 END ) + + 10 AS col0
----
95

query II rowsort
SELECT DISTINCT - - 61 AS col2, 72
----
61
72

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

skipif mysql # not compatible
query I rowsort label-1677
SELECT - SUM ( - - ( + 81 ) )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT + 53 * - + COUNT( * ) + - - 54 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1678
SELECT + 53 * - + COUNT ( * ) + - - 54 AS col2
----
1

query II rowsort
SELECT 88 AS col0, 52
----
88
52

query I rowsort
SELECT ALL + - 21 + - 56
----
-77

query I rowsort
SELECT ALL 50 + 55
----
105

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1683
SELECT DISTINCT - 0 + + COALESCE ( - 7, 65 + - 86 * 32 ) DIV - 5 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT - 0 + + COALESCE ( - 7, 65 + - 86 * 32 ) / - 5 AS col1
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT 81 + COALESCE ( 66, - COUNT( * ) ) + 39 * 42
----
1785

skipif mysql # not compatible
query I rowsort label-1685
SELECT 81 + COALESCE ( 66, - COUNT ( * ) ) + 39 * 42
----
1785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1686
SELECT ALL + ( 33 ) - - - 41 * - NULLIF ( - 13 * - 56 + + CASE - CAST( + 90 AS SIGNED ) + - 53 WHEN 21 DIV 52 + - MIN( + 64 ) THEN NULL WHEN - 62 THEN + ( - 29 ) WHEN + COUNT( * ) THEN + 95 ELSE - 72 * + 77 END DIV 52, + 58 )
----
25535

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL + ( 33 ) - - - 41 * - NULLIF ( - 13 * - 56 + + CASE - CAST ( + 90 AS INTEGER ) + - 53 WHEN 21 / 52 + - MIN ( + 64 ) THEN NULL WHEN - 62 THEN + ( - 29 ) WHEN + COUNT ( * ) THEN + 95 ELSE - 72 * + 77 END / 52, + 58 )
----
25535

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1687
SELECT CAST( + + 58 AS SIGNED ) * CAST( 52 AS SIGNED )
----
3016

skipif mysql # not compatible
query I rowsort label-1687
SELECT CAST ( + + 58 AS INTEGER ) * CAST ( 52 AS INTEGER )
----
3016

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

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

query I rowsort
SELECT ALL - 3 * NULLIF ( + + 30, + - ( - 16 ) * 64 ) AS col1
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-1690
SELECT COALESCE ( 59, 93 DIV 6, + COALESCE ( - ( 44 ), - 4 * 24, 48 DIV + 25 ) ) + 30
----
89

skipif mysql # not compatible
query I rowsort label-1690
SELECT COALESCE ( 59, 93 / 6, + COALESCE ( - ( 44 ), - 4 * 24, 48 / + 25 ) ) + 30
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT 50 + - - COUNT( * ) + + + 63 AS col0
----
114

skipif mysql # not compatible
query I rowsort label-1691
SELECT 50 + - - COUNT ( * ) + + + 63 AS col0
----
114

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

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

query I rowsort
SELECT ALL 72 * 54 AS col2
----
3888

query I rowsort
SELECT 66 - + 96
----
-30

query I rowsort
SELECT 76 + - CASE + - 21 WHEN 28 + - 7 * ( + 28 * 72 ) THEN 30 * 64 ELSE NULL END + - 37 * 68
----
NULL

query I rowsort
SELECT 46 * + 42 * - 55 * 51 col1
----
-5419260

query I rowsort
SELECT 82 * 2
----
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1698
SELECT 85 + - COUNT( * ) + + + 45 * 0 DIV - 24
----
84

skipif mysql # not compatible
query I rowsort label-1698
SELECT 85 + - COUNT ( * ) + + + 45 * 0 / - 24
----
84

query I rowsort
SELECT ALL - NULLIF ( + 43, - - 20 ) AS col2
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1700
SELECT 1 DIV + - 71 * - 86 DIV + COUNT( * ) * + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1700
SELECT 1 / + - 71 * - 86 / + COUNT ( * ) * + 78 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1701
SELECT ALL - COUNT( * ) * - 72 AS col2, COALESCE ( + 14, NULLIF ( COUNT( * ), - ( 87 ) ), - CAST( 24 AS SIGNED ) ) AS col0
----
72
14

skipif mysql # not compatible
query II rowsort label-1701
SELECT ALL - COUNT ( * ) * - 72 AS col2, COALESCE ( + 14, NULLIF ( COUNT ( * ), - ( 87 ) ), - CAST ( 24 AS INTEGER ) ) AS col0
----
72
14

query I rowsort
SELECT 7 * + 4
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1703
SELECT DISTINCT - 59 DIV + 23 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT - 59 / + 23 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT ALL + CASE + 77 WHEN 94 * + 7 + 85 * COUNT( * ) THEN + COUNT( * ) WHEN + 66 THEN NULL ELSE NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL + CASE + 77 WHEN 94 * + 7 + 85 * COUNT ( * ) THEN + COUNT ( * ) WHEN + 66 THEN NULL ELSE NULL END + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 14 * - 43 AS col1
----
602

query I rowsort
SELECT ALL - 41 * - 3 AS col2
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1707
SELECT ALL + 59 + + - CAST( - 56 AS SIGNED )
----
115

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL + 59 + + - CAST ( - 56 AS INTEGER )
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1708
SELECT ALL - 48 + - NULLIF ( - - COUNT( * ), + 14 - CAST( - 40 AS SIGNED ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL - 48 + - NULLIF ( - - COUNT ( * ), + 14 - CAST ( - 40 AS INTEGER ) ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT + COALESCE ( - ( - 8 ), + 29 * COUNT( * ) - SUM( ALL - 58 ) ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-1709
SELECT + COALESCE ( - ( - 8 ), + 29 * COUNT ( * ) - SUM ( ALL - 58 ) ) AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1710
SELECT SUM( DISTINCT + 87 ) DIV + 37
----
2

skipif mysql # not compatible
query I rowsort label-1710
SELECT SUM ( DISTINCT + 87 ) / + 37
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1711
SELECT + - SUM( - - 79 ) * - COUNT( * ) * + 81 + CAST( - 91 AS SIGNED )
----
6308

skipif mysql # not compatible
query I rowsort label-1711
SELECT + - SUM ( - - 79 ) * - COUNT ( * ) * + 81 + CAST ( - 91 AS INTEGER )
----
6308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1712
SELECT 32 + + 75, COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
107
0

skipif mysql # not compatible
query II rowsort label-1712
SELECT 32 + + 75, COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
107
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1713
SELECT ( COUNT( * ) ) * - CAST( + - 71 AS SIGNED ) * AVG ( - 41 * CASE 90 WHEN 9 THEN NULL WHEN - 42 + 28 THEN 61 + 95 END ) - - SUM( - ( + 99 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1713
SELECT ( COUNT ( * ) ) * - CAST ( + - 71 AS INTEGER ) * AVG ( - 41 * CASE 90 WHEN 9 THEN NULL WHEN - 42 + 28 THEN 61 + 95 END ) - - SUM ( - ( + 99 ) )
----
NULL

query I rowsort
SELECT 43 * - + 73 + - 24 * - 82 + - 64
----
-1235

query I rowsort
SELECT ALL 90 + - 43
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT DISTINCT - CASE 20 WHEN - 43 THEN + COUNT( DISTINCT 39 ) * 55 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT - CASE 20 WHEN - 43 THEN + COUNT ( DISTINCT 39 ) * 55 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 4 + + - ( - 73 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT + COUNT( * ) * + 63 * + + 3
----
189

skipif mysql # not compatible
query I rowsort label-1718
SELECT + COUNT ( * ) * + 63 * + + 3
----
189

onlyif mysql # aggregate syntax: 
query II rowsort label-1719
SELECT DISTINCT - COUNT( * ) * - 88 AS col2, + 87 AS col0
----
88
87

skipif mysql # not compatible
query II rowsort label-1719
SELECT DISTINCT - COUNT ( * ) * - 88 AS col2, + 87 AS col0
----
88
87

query I rowsort
SELECT + NULLIF ( + 71, - 1 ) * + 32 * 11 col0
----
24992

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT NULLIF ( + + MAX( DISTINCT - + 61 ), - ( + 24 ) * COALESCE ( 28, - COUNT( * ), 62 * + 2 ) ) + 48 * 80
----
3779

skipif mysql # not compatible
query I rowsort label-1721
SELECT NULLIF ( + + MAX ( DISTINCT - + 61 ), - ( + 24 ) * COALESCE ( 28, - COUNT ( * ), 62 * + 2 ) ) + 48 * 80
----
3779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1722
SELECT 70 + + 33, + 55 * - NULLIF ( + 18, CASE + 27 WHEN + 95 THEN 77 WHEN + NULLIF ( 15, - 94 - + SUM( + 94 + 17 ) ) THEN NULL ELSE NULL END ) - - CAST( NULL AS SIGNED ) * 77 AS col2
----
103
NULL

skipif mysql # not compatible
query II rowsort label-1722
SELECT 70 + + 33, + 55 * - NULLIF ( + 18, CASE + 27 WHEN + 95 THEN 77 WHEN + NULLIF ( 15, - 94 - + SUM ( + 94 + 17 ) ) THEN NULL ELSE NULL END ) - - CAST ( NULL AS INTEGER ) * 77 AS col2
----
103
NULL

query I rowsort
SELECT + COALESCE ( 89, + 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT DISTINCT COUNT( * ) * + 40 col0
----
40

skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT COUNT ( * ) * + 40 col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1725
SELECT CASE + 52 WHEN - 28 + + 27 THEN NULL ELSE + COUNT( * ) DIV + 67 END DIV + 54 col0
----
0

skipif mysql # not compatible
query I rowsort label-1725
SELECT CASE + 52 WHEN - 28 + + 27 THEN NULL ELSE + COUNT ( * ) / + 67 END / + 54 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1726
SELECT 66 + + CAST( - CASE - + 77 WHEN CAST( NULL AS SIGNED ) * + ( ( 38 ) ) THEN ( NULLIF ( + AVG ( - 58 ), + 16 / 96 ) ) WHEN 47 + - 50 THEN NULL END AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT 66 + + CAST ( - CASE - + 77 WHEN CAST ( NULL AS INTEGER ) * + ( ( 38 ) ) THEN ( NULLIF ( + AVG ( - 58 ), + 16 / 96 ) ) WHEN 47 + - 50 THEN NULL END AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL + 17 * - - 66 AS col2
----
1122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1728
SELECT ( + COALESCE ( + ( 90 ), + NULLIF ( + CAST( NULL AS SIGNED ), - 18 ) + - 57 ) ) + - 93 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1728
SELECT ( + COALESCE ( + ( 90 ), + NULLIF ( + CAST ( NULL AS INTEGER ), - 18 ) + - 57 ) ) + - 93 AS col0
----
-3

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

skipif mysql # not compatible
query I rowsort label-1729
SELECT COUNT ( * ) / + 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT 82 * 88 * + + COUNT( * )
----
7216

skipif mysql # not compatible
query I rowsort label-1730
SELECT 82 * 88 * + + COUNT ( * )
----
7216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1731
SELECT 85 + + CAST( - + 63 AS SIGNED ) col0
----
22

skipif mysql # not compatible
query I rowsort label-1731
SELECT 85 + + CAST ( - + 63 AS INTEGER ) col0
----
22

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

skipif mysql # not compatible
query II rowsort label-1732
SELECT - COUNT ( * ) AS col2, 79 AS col0
----
-1
79

query I rowsort
SELECT 10 + 23 + 49 * 83
----
4100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1734
SELECT SUM( COALESCE ( CAST( NULL AS SIGNED ), + 93 ) ) * 41 * 23
----
87699

skipif mysql # not compatible
query I rowsort label-1734
SELECT SUM ( COALESCE ( CAST ( NULL AS INTEGER ), + 93 ) ) * 41 * 23
----
87699

onlyif mysql # aggregate syntax: 
query II rowsort label-1735
SELECT ALL - COUNT( * ) AS col2, - 9 AS col0
----
-1
-9

skipif mysql # not compatible
query II rowsort label-1735
SELECT ALL - COUNT ( * ) AS col2, - 9 AS col0
----
-1
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1736
SELECT DISTINCT 32 * 88 + + CAST( 92 AS SIGNED )
----
2908

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT 32 * 88 + + CAST ( 92 AS INTEGER )
----
2908

query I rowsort
SELECT DISTINCT 0 * + 82 + + 19 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT ALL - 51 * + - 40 + SUM( + 52 ) AS col2
----
2092

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL - 51 * + - 40 + SUM ( + 52 ) AS col2
----
2092

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1739
SELECT 73 DIV + 39 + - + 12 AS col2, CAST( - 32 AS SIGNED ) AS col0
----
-11
-32

skipif mysql # not compatible
query II rowsort label-1739
SELECT 73 / + 39 + - + 12 AS col2, CAST ( - 32 AS INTEGER ) AS col0
----
-11
-32

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

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

query I rowsort
SELECT COALESCE ( + 94, 51 )
----
94

query II rowsort
SELECT ALL - 54 * 58 + + 25 AS col1, 96 AS col0
----
-3107
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1743
SELECT - 13 - + COUNT( * ) + SUM( 35 ) * + 0 DIV + 43
----
-14

skipif mysql # not compatible
query I rowsort label-1743
SELECT - 13 - + COUNT ( * ) + SUM ( 35 ) * + 0 / + 43
----
-14

query I rowsort
SELECT DISTINCT - + 34 * + 56 * - 42 + 23 + + 75 AS col2
----
80066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1745
SELECT DISTINCT + - 68 * - 22 + + + CAST( NULL AS SIGNED ) - - MIN( DISTINCT - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT + - 68 * - 22 + + + CAST ( NULL AS INTEGER ) - - MIN ( DISTINCT - 29 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT DISTINCT + COUNT( * ) * 31 - 64 col0
----
-33

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT + COUNT ( * ) * 31 - 64 col0
----
-33

query I rowsort
SELECT DISTINCT - 17 * 71 - + 37 * + 50 * 42 * 28 - 96 AS col1
----
-2176903

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT - NULLIF ( - COUNT( * ), 4 * + COUNT( * ) * - 22 ) - - 42 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-1749
SELECT - NULLIF ( - COUNT ( * ), 4 * + COUNT ( * ) * - 22 ) - - 42 AS col0
----
43

query I rowsort
SELECT - - 62 * - 8
----
-496

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT + 98 * + + COUNT( * ) + - 82 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1751
SELECT + 98 * + + COUNT ( * ) + - 82 AS col1
----
16

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1753
SELECT 47 AS col2, 84 * CASE - 4 WHEN 97 * - - 39 + - 49 THEN ( + COUNT( * ) ) + + 91 WHEN + 52 THEN - CAST( COUNT( * ) AS SIGNED ) ELSE 23 DIV 68 END * 66 + 99 AS col2
----
47
99

skipif mysql # not compatible
query II rowsort label-1753
SELECT 47 AS col2, 84 * CASE - 4 WHEN 97 * - - 39 + - 49 THEN ( + COUNT ( * ) ) + + 91 WHEN + 52 THEN - CAST ( COUNT ( * ) AS INTEGER ) ELSE 23 / 68 END * 66 + 99 AS col2
----
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1754
SELECT + COUNT( * ) * 44 AS col1, 24 * + - 12 AS col1
----
44
-288

skipif mysql # not compatible
query II rowsort label-1754
SELECT + COUNT ( * ) * 44 AS col1, 24 * + - 12 AS col1
----
44
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT ALL CASE 19 WHEN + + COUNT( * ) * + 34 - 14 THEN + 78 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL CASE 19 WHEN + + COUNT ( * ) * + 34 - 14 THEN + 78 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT DISTINCT 84 * + COUNT( * ) * - 55 AS col1
----
-4620

skipif mysql # not compatible
query I rowsort label-1757
SELECT DISTINCT 84 * + COUNT ( * ) * - 55 AS col1
----
-4620

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT - MAX( ALL + 77 ) + - 7 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-1758
SELECT - MAX ( ALL + 77 ) + - 7 AS col0
----
-84

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

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

query I rowsort
SELECT ALL 19 * 70
----
1330

query I rowsort
SELECT ALL 78 + - + 87 - - 86 + 27 * ( + + COALESCE ( - 90, 46, 53, + 53 * - 5 ) ) + - 93
----
-2446

query II rowsort
SELECT 71, + 54 AS col0
----
71
54

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

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL 65 + - COUNT ( * ) + + - 39 AS col1
----
25

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1765
SELECT + 6 + 63 DIV - 92 * + - 84 AS col1, 37
----
6
37

skipif mysql # not compatible
query II rowsort label-1765
SELECT + 6 + 63 / - 92 * + - 84 AS col1, 37
----
6
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1766
SELECT ALL - 80 DIV - - 7 + 47 + - MAX( + - 42 ) DIV - 5 + - ( + 81 )
----
-53

skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL - 80 / - - 7 + 47 + - MAX ( + - 42 ) / - 5 + - ( + 81 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT ALL 23 * - NULLIF ( COUNT( * ), - 63 + - - MAX( ALL 27 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL 23 * - NULLIF ( COUNT ( * ), - 63 + - - MAX ( ALL 27 ) )
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1768
SELECT + - ( - - CASE ( COUNT( * ) ) WHEN - 28 * MIN( DISTINCT - 17 ) THEN - ( 29 ) ELSE 57 END ) DIV 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1768
SELECT + - ( - - CASE ( COUNT ( * ) ) WHEN - 28 * MIN ( DISTINCT - 17 ) THEN - ( 29 ) ELSE 57 END ) / 98 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1769
SELECT ALL - - 36 DIV - 89 - + - COUNT( * ) + - 3
----
-2

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL - - 36 / - 89 - + - COUNT ( * ) + - 3
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT DISTINCT + SUM( DISTINCT - + COALESCE ( + 26, 69, 62 ) ) col0
----
-26

skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT + SUM ( DISTINCT - + COALESCE ( + 26, 69, 62 ) ) col0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1771
SELECT ALL + + NULLIF ( - 17, + + 93 + - 76 - - 28 + + + CAST( NULL AS SIGNED ) / 77 * - 20 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL + + NULLIF ( - 17, + + 93 + - 76 - - 28 + + + CAST ( NULL AS INTEGER ) / 77 * - 20 ) AS col0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-1772
SELECT + 99 * - 61 - - - 17 DIV - 60 * NULLIF ( - + 16, 25 + 8 * - 15 ) * 38
----
-6039

skipif mysql # not compatible
query I rowsort label-1772
SELECT + 99 * - 61 - - - 17 / - 60 * NULLIF ( - + 16, 25 + 8 * - 15 ) * 38
----
-6039

query I rowsort
SELECT - 14 * 6 + 71
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1774
SELECT ALL + COUNT( * ) AS col2, 46 AS col0, - - 30 DIV - - CASE + + 25 WHEN 88 + + 80 THEN NULL ELSE + 56 END
----
1
46
0

skipif mysql # not compatible
query III rowsort label-1774
SELECT ALL + COUNT ( * ) AS col2, 46 AS col0, - - 30 / - - CASE + + 25 WHEN 88 + + 80 THEN NULL ELSE + 56 END
----
1
46
0

query I rowsort
SELECT + + 74 + - + ( + 41 ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT 69 * + 22 * + 8 * 44 / - CASE - 13 WHEN 7 - - 27 * - 68 THEN - SUM( - 78 ) END - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1776
SELECT 69 * + 22 * + 8 * 44 / - CASE - 13 WHEN 7 - - 27 * - 68 THEN - SUM ( - 78 ) END - 82 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT + ( SUM( + - 11 ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-1777
SELECT + ( SUM ( + - 11 ) ) AS col2
----
-11

query I rowsort
SELECT ALL + + ( + 62 ) * - 31
----
-1922

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT + 51 * + - COUNT( DISTINCT + ( + 37 ) ) + + 45 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-1779
SELECT + 51 * + - COUNT ( DISTINCT + ( + 37 ) ) + + 45 AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1780
SELECT DISTINCT - 61 DIV - - CASE - 37 WHEN + 67 + + 6 THEN NULL WHEN + CAST( NULL AS SIGNED ) + 78 THEN 24 ELSE - 98 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT - 61 / - - CASE - 37 WHEN + 67 + + 6 THEN NULL WHEN + CAST ( NULL AS INTEGER ) + 78 THEN 24 ELSE - 98 END AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1781
SELECT - + 50 * + NULLIF ( - NULLIF ( + + 38, 42 - 29 + 8 / - 71 ), + CAST( NULL AS SIGNED ) * COALESCE ( 1, ( NULLIF ( ( COUNT( ALL 93 ) ), 93 ) ) + 25 ) + 66 )
----
1900

skipif mysql # not compatible
query I rowsort label-1781
SELECT - + 50 * + NULLIF ( - NULLIF ( + + 38, 42 - 29 + 8 / - 71 ), + CAST ( NULL AS INTEGER ) * COALESCE ( 1, ( NULLIF ( ( COUNT ( ALL 93 ) ), 93 ) ) + 25 ) + 66 )
----
1900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1782
SELECT - COUNT( * ) + COUNT( + 65 ) - - 44 * COALESCE ( + 77, - ( 17 ), COUNT( * ) DIV + 16 ) * 98 AS col2
----
332024

skipif mysql # not compatible
query I rowsort label-1782
SELECT - COUNT ( * ) + COUNT ( + 65 ) - - 44 * COALESCE ( + 77, - ( 17 ), COUNT ( * ) / + 16 ) * 98 AS col2
----
332024

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

skipif mysql # not compatible
query I rowsort label-1783
SELECT - 90 / - + COUNT ( * )
----
90

query I rowsort
SELECT - 96 + - 45 - + NULLIF ( + + 8, - AVG ( - 0 ) + + 83 ) AS col0
----
-149

query I rowsort
SELECT ALL 37 * + 26 + 76
----
1038

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1786
SELECT ALL COUNT( * ) * 53 + - - 88 DIV 77 * - 12
----
41

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL COUNT ( * ) * 53 + - - 88 / 77 * - 12
----
41

query I rowsort
SELECT DISTINCT 12 * - - 77 + + - 43 AS col1
----
881

onlyif mysql # DIV for integer division: 
query I rowsort label-1788
SELECT - 60 DIV + + 69
----
0

skipif mysql # not compatible
query I rowsort label-1788
SELECT - 60 / + + 69
----
0

query I rowsort
SELECT DISTINCT - 9 + - + 12 AS col0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1790
SELECT DISTINCT - 0 + - COUNT( * ) * + CASE WHEN NOT ( + 85 ) BETWEEN ( NULL ) AND ( MAX( DISTINCT - 50 ) * - 30 + 20 ) THEN NULL ELSE - COALESCE ( CAST( + 6 AS SIGNED ), - 16 ) DIV 87 END
----
0

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT - 0 + - COUNT ( * ) * + CASE WHEN NOT ( + 85 ) BETWEEN ( NULL ) AND ( MAX ( DISTINCT - 50 ) * - 30 + 20 ) THEN NULL ELSE - COALESCE ( CAST ( + 6 AS INTEGER ), - 16 ) / 87 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT - NULLIF ( - 7, - ( + 70 ) * - COALESCE ( 47, - 78 ) * NULLIF ( COUNT( * ), - 74 ) )
----
7

skipif mysql # not compatible
query I rowsort label-1791
SELECT - NULLIF ( - 7, - ( + 70 ) * - COALESCE ( 47, - 78 ) * NULLIF ( COUNT ( * ), - 74 ) )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT NULLIF ( + - 24, + COALESCE ( - SUM( ALL - 78 ), 11 ) + + 7 * + 31 ) * - CASE 73 + 27 / + COUNT( * ) WHEN - CASE + 10 WHEN - ( + CASE 7 WHEN ( - 57 ) THEN NULL ELSE 74 * - 9 END ) THEN NULL WHEN - 7 THEN 45 * 58 ELSE NULL END THEN 22 WHEN + 65 THEN + 5 * - 28 ELSE 70 * + COUNT( * ) END AS col1
----
1680

skipif mysql # not compatible
query I rowsort label-1792
SELECT NULLIF ( + - 24, + COALESCE ( - SUM ( ALL - 78 ), 11 ) + + 7 * + 31 ) * - CASE 73 + 27 / + COUNT ( * ) WHEN - CASE + 10 WHEN - ( + CASE 7 WHEN ( - 57 ) THEN NULL ELSE 74 * - 9 END ) THEN NULL WHEN - 7 THEN 45 * 58 ELSE NULL END THEN 22 WHEN + 65 THEN + 5 * - 28 ELSE 70 * + COUNT ( * ) END AS col1
----
1680

query I rowsort
SELECT DISTINCT + 10 * - - 93 col1
----
930

query I rowsort
SELECT ALL 88 + + + 62 AS col2
----
150

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT COUNT( * ) * + + 97 * - 28
----
-2716

skipif mysql # not compatible
query I rowsort label-1796
SELECT COUNT ( * ) * + + 97 * - 28
----
-2716

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

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

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

skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) - - MIN ( ALL + 38 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT 76 * 43 + - 31 * + 94 - - COUNT( * ) AS col2
----
355

skipif mysql # not compatible
query I rowsort label-1799
SELECT 76 * 43 + - 31 * + 94 - - COUNT ( * ) AS col2
----
355

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT - 66 * - - COUNT( * ) + - 36 * - 61 + - - 20 + 33
----
2183

skipif mysql # not compatible
query I rowsort label-1800
SELECT - 66 * - - COUNT ( * ) + - 36 * - 61 + - - 20 + 33
----
2183

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT COUNT( ALL 72 ) * + 19 + + ( - - 34 )
----
53

skipif mysql # not compatible
query I rowsort label-1801
SELECT COUNT ( ALL 72 ) * + 19 + + ( - - 34 )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1802
SELECT + CAST( - + 85 AS SIGNED ) + - - 93 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-1802
SELECT + CAST ( - + 85 AS INTEGER ) + - - 93 AS col0
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1803
SELECT ALL + 84 DIV - SUM( - - 13 ), - COUNT( * ) AS col2
----
-6
-1

skipif mysql # not compatible
query II rowsort label-1803
SELECT ALL + 84 / - SUM ( - - 13 ), - COUNT ( * ) AS col2
----
-6
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1804
SELECT - 97 * CASE + 51 WHEN + - COALESCE ( - 60, - CAST( + 40 AS SIGNED ) * 10 ) + - 71 THEN - COUNT( * ) / 16 - CASE - 80 WHEN 82 * 85 THEN NULL WHEN 85 THEN + 84 * 73 + 15 ELSE + COUNT( 81 ) * + SUM( ALL 71 ) END END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1804
SELECT - 97 * CASE + 51 WHEN + - COALESCE ( - 60, - CAST ( + 40 AS INTEGER ) * 10 ) + - 71 THEN - COUNT ( * ) / 16 - CASE - 80 WHEN 82 * 85 THEN NULL WHEN 85 THEN + 84 * 73 + 15 ELSE + COUNT ( 81 ) * + SUM ( ALL 71 ) END END col2
----
NULL

query I rowsort
SELECT + - NULLIF ( - 74, + 77 + + 76 ) AS col2
----
74

query I rowsort
SELECT ( + 57 ) + + - 22
----
35

query I rowsort
SELECT DISTINCT 45 * + + 36
----
1620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1808
SELECT + 20 * ( 76 ) + - ( + 58 ) DIV CASE - ( COALESCE ( - MAX( ALL 46 ), COUNT( * ), + 11 ) ) WHEN 43 THEN ( + 12 ) * - COALESCE ( - 64, 76, - COUNT( * ) + + 67 ) + + 32 ELSE + 36 END AS col2
----
1519

skipif mysql # not compatible
query I rowsort label-1808
SELECT + 20 * ( 76 ) + - ( + 58 ) / CASE - ( COALESCE ( - MAX ( ALL 46 ), COUNT ( * ), + 11 ) ) WHEN 43 THEN ( + 12 ) * - COALESCE ( - 64, 76, - COUNT ( * ) + + 67 ) + + 32 ELSE + 36 END AS col2
----
1519

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1809
SELECT ALL 89 * - CAST( NULL AS SIGNED ) - AVG ( DISTINCT - - 59 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL 89 * - CAST ( NULL AS INTEGER ) - AVG ( DISTINCT - - 59 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1810
SELECT DISTINCT - ( + 5 ) AS col1, NULLIF ( + + 49, - 94 + - 24 / + - 20 ) + - COUNT( * ) * + 27
----
-5
22

skipif mysql # not compatible
query II rowsort label-1810
SELECT DISTINCT - ( + 5 ) AS col1, NULLIF ( + + 49, - 94 + - 24 / + - 20 ) + - COUNT ( * ) * + 27
----
-5
22

query I rowsort
SELECT DISTINCT 12 * - 40 * 95 AS col1
----
-45600

onlyif mysql # aggregate syntax: 
query II rowsort label-1812
SELECT ALL COUNT( * ) * - - 82 + 44 AS col1, - 23
----
126
-23

skipif mysql # not compatible
query II rowsort label-1812
SELECT ALL COUNT ( * ) * - - 82 + 44 AS col1, - 23
----
126
-23

query I rowsort
SELECT DISTINCT + 40 + 52 - + - 21 col0
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1814
SELECT DISTINCT 43 + + 3 + 34 + + MAX( + + 48 ) * + 59 * + - 22 * + - 4 DIV COUNT( * ) * 4 col1
----
996944

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT 43 + + 3 + 34 + + MAX ( + + 48 ) * + 59 * + - 22 * + - 4 / COUNT ( * ) * 4 col1
----
996944

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT ALL 2 + - - 67 * + + COUNT( * ) * 74
----
4960

skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL 2 + - - 67 * + + COUNT ( * ) * 74
----
4960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT 95 * + 14 * + COUNT( * ) * 64 AS col0
----
85120

skipif mysql # not compatible
query I rowsort label-1817
SELECT 95 * + 14 * + COUNT ( * ) * 64 AS col0
----
85120

query I rowsort
SELECT 66 * + 39 col0
----
2574

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1820
SELECT 97 AS col0, + MIN( ALL - + 72 ) AS col0
----
97
-72

skipif mysql # not compatible
query II rowsort label-1820
SELECT 97 AS col0, + MIN ( ALL - + 72 ) AS col0
----
97
-72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT DISTINCT 1 + 11 * 91 - + + COUNT( 79 ) * - + 43
----
1045

skipif mysql # not compatible
query I rowsort label-1822
SELECT DISTINCT 1 + 11 * 91 - + + COUNT ( 79 ) * - + 43
----
1045

query I rowsort
SELECT ALL 60 * + 89 * 34 * + - 70
----
-12709200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1824
SELECT ALL + 23 + - 51 + + - 8 + 25 * + + 9 * + MIN( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL + 23 + - 51 + + - 8 + 25 * + + 9 * + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 1 - 41 - - - 58 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT DISTINCT + 41 + + COUNT( * ) * + - MAX( 23 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT + 41 + + COUNT ( * ) * + - MAX ( 23 ) AS col1
----
18

query I rowsort
SELECT 81 * 13 AS col2
----
1053

onlyif mysql # aggregate syntax: 
query II rowsort label-1828
SELECT 34 AS col1, + MAX( ALL + - 21 ) AS col0
----
34
-21

skipif mysql # not compatible
query II rowsort label-1828
SELECT 34 AS col1, + MAX ( ALL + - 21 ) AS col0
----
34
-21

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1830
SELECT 36 DIV + 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1830
SELECT 36 / + 80 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1831
SELECT ALL - ( - COUNT( 85 ) ) / 4 / - - CAST( NULL AS SIGNED ) + - + 9 + - + 23 * 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL - ( - COUNT ( 85 ) ) / 4 / - - CAST ( NULL AS INTEGER ) + - + 9 + - + 23 * 21 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 41, 27 * - + 79 + - + 33 col2
----
41
-2166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1833
SELECT ALL + 24 - + CAST( 52 AS SIGNED ) + + NULLIF ( - 47, + 58 + + 11 / + 16 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL + 24 - + CAST ( 52 AS INTEGER ) + + NULLIF ( - 47, + 58 + + 11 / + 16 ) AS col2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1834
SELECT DISTINCT - + 85 DIV + 56
----
-1

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT - + 85 / + 56
----
-1

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

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

query I rowsort
SELECT DISTINCT + + 6 - - 4 AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1837
SELECT 90 + - - MAX( + 60 ), - 89 AS col1
----
150
-89

skipif mysql # not compatible
query II rowsort label-1837
SELECT 90 + - - MAX ( + 60 ), - 89 AS col1
----
150
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL CASE + COALESCE ( - + 17, + 12 * + COUNT( * ) - - 1, + + ( - 45 ) ) WHEN + 69 - 31 THEN 60 * 23 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL CASE + COALESCE ( - + 17, + 12 * + COUNT ( * ) - - 1, + + ( - 45 ) ) WHEN + 69 - 31 THEN 60 * 23 ELSE NULL END col1
----
NULL

query I rowsort
SELECT DISTINCT ( - 19 ) col0
----
-19

query II rowsort
SELECT ALL - - 81 * 6 * - 99 AS col0, - 6 AS col2
----
-48114
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1841
SELECT ( COALESCE ( - COUNT( * ), - ( + NULLIF ( + + 44, 0 * + 83 ) ) + 36 ) ) * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1841
SELECT ( COALESCE ( - COUNT ( * ), - ( + NULLIF ( + + 44, 0 * + 83 ) ) + 36 ) ) * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + 51 * 39 AS col0
----
1989

query II rowsort
SELECT + + 16 col2, + 71 col0
----
16
71

onlyif mysql # aggregate syntax: 
query II rowsort label-1844
SELECT ALL - 90 AS col1, 4 * + + MIN( - 93 ) + - 9 - - 52 AS col2
----
-90
-329

skipif mysql # not compatible
query II rowsort label-1844
SELECT ALL - 90 AS col1, 4 * + + MIN ( - 93 ) + - 9 - - 52 AS col2
----
-90
-329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1845
SELECT ALL - - CAST( 40 AS SIGNED ) * + - MAX( - - 20 ) AS col0, + MAX( 56 ) * 34 - - + 28 DIV 79 AS col2
----
-800
1904

skipif mysql # not compatible
query II rowsort label-1845
SELECT ALL - - CAST ( 40 AS INTEGER ) * + - MAX ( - - 20 ) AS col0, + MAX ( 56 ) * 34 - - + 28 / 79 AS col2
----
-800
1904

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT - 17 * + 35 * + COUNT( * ) AS col1
----
-595

skipif mysql # not compatible
query I rowsort label-1846
SELECT - 17 * + 35 * + COUNT ( * ) AS col1
----
-595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1847
SELECT ALL + COUNT( - - 54 ) * - 49 * + 37 + + 27 + + 11 + 50 + + COALESCE ( 38, + 75 * - 74 ) - + CAST( + 74 AS SIGNED ) * + 69 + ( + 60 )
----
-6733

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL + COUNT ( - - 54 ) * - 49 * + 37 + + 27 + + 11 + 50 + + COALESCE ( 38, + 75 * - 74 ) - + CAST ( + 74 AS INTEGER ) * + 69 + ( + 60 )
----
-6733

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT DISTINCT - COUNT( ALL + 52 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT - COUNT ( ALL + 52 ) AS col1
----
-1

query I rowsort
SELECT ALL - - ( + 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ( + ( - SUM( DISTINCT + 65 ) ) ) - 83
----
-148

skipif mysql # not compatible
query I rowsort label-1850
SELECT ( + ( - SUM ( DISTINCT + 65 ) ) ) - 83
----
-148

onlyif mysql # aggregate syntax: 
query II rowsort label-1851
SELECT DISTINCT 19 + - 79 + + + COUNT( * ) AS col2, 45 col1
----
-59
45

skipif mysql # not compatible
query II rowsort label-1851
SELECT DISTINCT 19 + - 79 + + + COUNT ( * ) AS col2, 45 col1
----
-59
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT ALL + 11 + + COUNT( * ) + + 10 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL + 11 + + COUNT ( * ) + + 10 AS col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-1853
SELECT + 84, - COUNT( * ) + + 32 col1
----
84
31

skipif mysql # not compatible
query II rowsort label-1853
SELECT + 84, - COUNT ( * ) + + 32 col1
----
84
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1854
SELECT + + CAST( + 20 AS SIGNED ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-1854
SELECT + + CAST ( + 20 AS INTEGER ) AS col2
----
20

query I rowsort
SELECT ALL - 36 + + + 28 col1
----
-8

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1857
SELECT - 23 * - - CAST( NULL AS SIGNED ) - 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1857
SELECT - 23 * - - CAST ( NULL AS INTEGER ) - 28 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1858
SELECT DISTINCT 96 * - + COUNT( * ) AS col1, + 86
----
-96
86

skipif mysql # not compatible
query II rowsort label-1858
SELECT DISTINCT 96 * - + COUNT ( * ) AS col1, + 86
----
-96
86

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

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

query I rowsort
SELECT ALL 66 + 79
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-1861
SELECT + COUNT( 89 ) AS col2, 96 + - 62
----
1
34

skipif mysql # not compatible
query II rowsort label-1861
SELECT + COUNT ( 89 ) AS col2, 96 + - 62
----
1
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT ALL COUNT( * ) - - 7 * - 76 col0
----
-531

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL COUNT ( * ) - - 7 * - 76 col0
----
-531

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

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

query I rowsort
SELECT + 95 * - 98
----
-9310

query I rowsort
SELECT - 59 + + 2 * 11 * 30
----
601

onlyif mysql # aggregate syntax: 
query II rowsort label-1866
SELECT ALL SUM( ALL - 83 ) AS col2, - 73 + + 48 * 27 * - 55 col2
----
-83
-71353

skipif mysql # not compatible
query II rowsort label-1866
SELECT ALL SUM ( ALL - 83 ) AS col2, - 73 + + 48 * 27 * - 55 col2
----
-83
-71353

query I rowsort
SELECT + 64 * + 57 * + - 16
----
-58368

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ALL ( - - MAX( + 0 ) ) * - + 78 + - 92 * 12
----
-1104

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL ( - - MAX ( + 0 ) ) * - + 78 + - 92 * 12
----
-1104

query I rowsort
SELECT DISTINCT + 86 - 26 * + + 70
----
-1734

onlyif mysql # aggregate syntax: 
query II rowsort label-1871
SELECT - COUNT( * ) * COUNT( * ) * - 47 - - 84 col2, 45
----
131
45

skipif mysql # not compatible
query II rowsort label-1871
SELECT - COUNT ( * ) * COUNT ( * ) * - 47 - - 84 col2, 45
----
131
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT DISTINCT + - 91 * + NULLIF ( - + COUNT( * ), - - 21 + + + 84 ) + 31
----
122

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT + - 91 * + NULLIF ( - + COUNT ( * ), - - 21 + + + 84 ) + 31
----
122

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

query I rowsort
SELECT - - 89 * + 15 AS col2
----
1335

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT + 66 - + CASE + ( - + 58 ) WHEN - 46 + + - 68 THEN + NULLIF ( 15, - CASE - 97 WHEN - 68 THEN NULL WHEN + 61 THEN COUNT( * ) / - 10 + 49 END + 75 ) END + + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1875
SELECT + 66 - + CASE + ( - + 58 ) WHEN - 46 + + - 68 THEN + NULLIF ( 15, - CASE - 97 WHEN - 68 THEN NULL WHEN + 61 THEN COUNT ( * ) / - 10 + 49 END + 75 ) END + + 33 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1876
SELECT - CASE - - 59 WHEN 28 * + - CAST( NULL AS DECIMAL ) THEN NULL WHEN + + 78 THEN - 39 WHEN + - 83 * + 63 + COUNT( * ) THEN 84 + COUNT( * ) ELSE NULL END + - 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1876
SELECT - CASE - - 59 WHEN 28 * + - CAST ( NULL AS REAL ) THEN NULL WHEN + + 78 THEN - 39 WHEN + - 83 * + 63 + COUNT ( * ) THEN 84 + COUNT ( * ) ELSE NULL END + - 32 AS col1
----
NULL

query I rowsort
SELECT - 93 * + 15 * 4
----
-5580

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT DISTINCT 86 * 5 + + 66 * - COUNT( * ) AS col0
----
364

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT 86 * 5 + + 66 * - COUNT ( * ) AS col0
----
364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1880
SELECT ALL 24 * + - CAST( NULL AS SIGNED ) + - 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL 24 * + - CAST ( NULL AS INTEGER ) + - 13 AS col1
----
NULL

query I rowsort
SELECT ALL - 82 * + CASE 99 WHEN 85 THEN 52 END AS col2
----
NULL

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

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

query I rowsort
SELECT - 91 * - NULLIF ( - + ( - 41 ), + 76 )
----
3731

query I rowsort
SELECT DISTINCT - - 11 * - COALESCE ( + 37, - - 24 )
----
-407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1885
SELECT + 90 + + + NULLIF ( CAST( NULLIF ( - 5, - + SUM( ALL - - 97 ) + - - COALESCE ( ( - 83 ), - 3 ) ) AS SIGNED ), 33 * AVG ( DISTINCT - 9 ) ) * + SUM( + 91 * + 1 - 47 ) AS col0
----
-130

skipif mysql # not compatible
query I rowsort label-1885
SELECT + 90 + + + NULLIF ( CAST ( NULLIF ( - 5, - + SUM ( ALL - - 97 ) + - - COALESCE ( ( - 83 ), - 3 ) ) AS INTEGER ), 33 * AVG ( DISTINCT - 9 ) ) * + SUM ( + 91 * + 1 - 47 ) AS col0
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT NULLIF ( - 12, COUNT( * ) ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-1886
SELECT NULLIF ( - 12, COUNT ( * ) ) AS col1
----
-12

query I rowsort
SELECT ALL ( 48 ) * 29 + + 79 col1
----
1471

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT DISTINCT + 13 * - - ( COUNT( * ) ) col1
----
13

skipif mysql # not compatible
query I rowsort label-1888
SELECT DISTINCT + 13 * - - ( COUNT ( * ) ) col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT NULLIF ( - 69, - - CASE + - MAX( ALL - - 38 ) WHEN + 35 THEN - 87 ELSE NULL END * - 81 )
----
-69

skipif mysql # not compatible
query I rowsort label-1889
SELECT NULLIF ( - 69, - - CASE + - MAX ( ALL - - 38 ) WHEN + 35 THEN - 87 ELSE NULL END * - 81 )
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-1890
SELECT DISTINCT + 62 AS col2, + 89 * + COUNT( ALL + 88 ) AS col2
----
62
89

skipif mysql # not compatible
query II rowsort label-1890
SELECT DISTINCT + 62 AS col2, + 89 * + COUNT ( ALL + 88 ) AS col2
----
62
89

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

skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT COUNT ( * ) * 35 - + 0 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1892
SELECT DISTINCT COALESCE ( 68, - - COALESCE ( + COUNT( ALL 97 ), + 44 DIV - + NULLIF ( - - 63, + + 14 * - 8 ) * - CAST( + CASE 12 WHEN 44 THEN NULL ELSE CAST( NULL AS SIGNED ) + 31 END + - MAX( - 94 ) AS SIGNED ) ) * - 98, - ( 53 ) ) DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT COALESCE ( 68, - - COALESCE ( + COUNT ( ALL 97 ), + 44 / - + NULLIF ( - - 63, + + 14 * - 8 ) * - CAST ( + CASE 12 WHEN 44 THEN NULL ELSE CAST ( NULL AS INTEGER ) + 31 END + - MAX ( - 94 ) AS INTEGER ) ) * - 98, - ( 53 ) ) / - 70
----
0

query I rowsort
SELECT + NULLIF ( + + 14, - 8 )
----
14

query I rowsort
SELECT NULLIF ( - - 89, + - 0 + 25 * - - 19 * - 0 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT - CASE + + 38 WHEN + COUNT( + + 68 ) THEN 67 ELSE + 82 + + 94 + + - 87 END * - 38 - - 89 * 47 AS col0
----
7565

skipif mysql # not compatible
query I rowsort label-1895
SELECT - CASE + + 38 WHEN + COUNT ( + + 68 ) THEN 67 ELSE + 82 + + 94 + + - 87 END * - 38 - - 89 * 47 AS col0
----
7565

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1897
SELECT + 1 * - 53 DIV + COALESCE ( + 50, - COALESCE ( 61, - - 56 ) DIV + 14 ) AS col0, + 38
----
-1
38

skipif mysql # not compatible
query II rowsort label-1897
SELECT + 1 * - 53 / + COALESCE ( + 50, - COALESCE ( 61, - - 56 ) / + 14 ) AS col0, + 38
----
-1
38

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1899
SELECT ALL + 60 DIV - 32 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL + 60 / - 32 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1900
SELECT + 65 DIV + - 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1900
SELECT + 65 / + - 92 AS col1
----
0

query I rowsort
SELECT + 41 - + 2 + + + 58 AS col1
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1902
SELECT ALL 47 * + - NULLIF ( - + COUNT( * ), + - 87 + + 80 ) AS col1, 6 DIV + MIN( DISTINCT 88 )
----
47
0

skipif mysql # not compatible
query II rowsort label-1902
SELECT ALL 47 * + - NULLIF ( - + COUNT ( * ), + - 87 + + 80 ) AS col1, 6 / + MIN ( DISTINCT 88 )
----
47
0

query I rowsort
SELECT ALL CASE + - 3 WHEN + 13 + - 24 THEN - - 23 * + 77 WHEN 71 THEN NULL END AS col2
----
NULL

query II rowsort
SELECT ALL + 17 col0, ( 67 ) col2
----
17
67

query I rowsort
SELECT ALL 94 + - ( 87 ) - + NULLIF ( + ( 2 ), - 18 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT + 63 + + - COUNT( * ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-1906
SELECT + 63 + + - COUNT ( * ) AS col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1907
SELECT - NULLIF ( + CASE - + 43 WHEN 36 THEN NULL ELSE + MIN( ALL - - 43 ) * 28 + + - 56 * + 67 END, - 44 / - COALESCE ( - 74 + - ( + COUNT( * ) ), + COALESCE ( SUM( CAST( NULL AS SIGNED ) ), 43, 71 ) * - COUNT( + 52 ) ) ) - + 97 * + 63
----
-3563

skipif mysql # not compatible
query I rowsort label-1907
SELECT - NULLIF ( + CASE - + 43 WHEN 36 THEN NULL ELSE + MIN ( ALL - - 43 ) * 28 + + - 56 * + 67 END, - 44 / - COALESCE ( - 74 + - ( + COUNT ( * ) ), + COALESCE ( SUM ( CAST ( NULL AS INTEGER ) ), 43, 71 ) * - COUNT ( + 52 ) ) ) - + 97 * + 63
----
-3563

query I rowsort
SELECT ALL - 52 + - 26 - - + ( - - 38 ) AS col0
----
-40

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1910
SELECT - CASE + 74 WHEN - - 31 THEN + + 66 * + + 51 WHEN - - CAST( - 71 AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1910
SELECT - CASE + 74 WHEN - - 31 THEN + + 66 * + + 51 WHEN - - CAST ( - 71 AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT ALL + 61 DIV - 22 col1
----
-2

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL + 61 / - 22 col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-1912
SELECT - 9 * + COUNT( - + 22 ) AS col0, + 5 + - 87
----
-9
-82

skipif mysql # not compatible
query II rowsort label-1912
SELECT - 9 * + COUNT ( - + 22 ) AS col0, + 5 + - 87
----
-9
-82

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

skipif mysql # not compatible
query I rowsort label-1913
SELECT DISTINCT 78 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 96 + - 38 col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT + - ( - - CASE 69 WHEN + 10 THEN - + COUNT( * ) * - COUNT( * ) ELSE NULL END ) + ( ( + 65 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT + - ( - - CASE 69 WHEN + 10 THEN - + COUNT ( * ) * - COUNT ( * ) ELSE NULL END ) + ( ( + 65 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT + + COUNT( * ) + + 24 + + SUM( 50 )
----
75

skipif mysql # not compatible
query I rowsort label-1916
SELECT + + COUNT ( * ) + + 24 + + SUM ( 50 )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1917
SELECT + + CAST( + AVG ( 34 ) AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-1917
SELECT + + CAST ( + AVG ( 34 ) AS INTEGER )
----
34

query I rowsort
SELECT - 63 * - - 18 * 61 AS col2
----
-69174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1919
SELECT 1 - COALESCE ( - + 26, 80, - 39 * + 2 * + CASE - 61 WHEN - + CASE - + 51 WHEN + ( 37 ) / CAST( NULL AS SIGNED ) THEN MAX( 98 ) * 63 + - 13 * - 79 WHEN 11 THEN NULL WHEN 85 + 12 THEN COUNT( * ) + 59 ELSE - 67 + - 80 END THEN + 82 END * + 70 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1919
SELECT 1 - COALESCE ( - + 26, 80, - 39 * + 2 * + CASE - 61 WHEN - + CASE - + 51 WHEN + ( 37 ) / CAST ( NULL AS INTEGER ) THEN MAX ( 98 ) * 63 + - 13 * - 79 WHEN 11 THEN NULL WHEN 85 + 12 THEN COUNT ( * ) + 59 ELSE - 67 + - 80 END THEN + 82 END * + 70 ) AS col2
----
27

query I rowsort
SELECT + 52 * + 3 + - 45 AS col1
----
111

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

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

skipif mysql # not compatible
query I rowsort label-1922
SELECT COUNT ( * ) * - 81
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT 65 * + SUM( - 65 ) + + + 56 + + COUNT( * ) AS col1
----
-4168

skipif mysql # not compatible
query I rowsort label-1923
SELECT 65 * + SUM ( - 65 ) + + + 56 + + COUNT ( * ) AS col1
----
-4168

query II rowsort
SELECT ALL - 81 col0, + 70 * - 17 AS col2
----
-81
-1190

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1925
SELECT + 25, - CASE 93 WHEN CAST( - - 62 AS SIGNED ) * - 6 * + - 85 THEN NULL ELSE + 49 END col1
----
25
-49

skipif mysql # not compatible
query II rowsort label-1925
SELECT + 25, - CASE 93 WHEN CAST ( - - 62 AS INTEGER ) * - 6 * + - 85 THEN NULL ELSE + 49 END col1
----
25
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1926
SELECT 19 * COALESCE ( - 36, - COUNT( * ) * 85 DIV - 36 + + + 64 * - + COUNT( * ) ) AS col0
----
-684

skipif mysql # not compatible
query I rowsort label-1926
SELECT 19 * COALESCE ( - 36, - COUNT ( * ) * 85 / - 36 + + + 64 * - + COUNT ( * ) ) AS col0
----
-684

query II rowsort
SELECT DISTINCT - 96 AS col2, 3
----
-96
3

query I rowsort
SELECT 35 + 73 AS col0
----
108

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1929
SELECT 9 * - ( - NULLIF ( CAST( NULL AS DECIMAL ), + + CAST( NULL AS SIGNED ) * - - 98 ) ), 87 AS col2
----
NULL
87

skipif mysql # not compatible
query II rowsort label-1929
SELECT 9 * - ( - NULLIF ( CAST ( NULL AS REAL ), + + CAST ( NULL AS INTEGER ) * - - 98 ) ), 87 AS col2
----
NULL
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1930
SELECT DISTINCT + 0 DIV ( - 3 )
----
0

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT + 0 / ( - 3 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1931
SELECT 56, - CASE - - CAST( NULL AS SIGNED ) WHEN COUNT( ALL - CAST( NULL AS DECIMAL ) ) / - 57 THEN 17 * 39 ELSE NULL END AS col0
----
56
NULL

skipif mysql # not compatible
query II rowsort label-1931
SELECT 56, - CASE - - CAST ( NULL AS INTEGER ) WHEN COUNT ( ALL - CAST ( NULL AS REAL ) ) / - 57 THEN 17 * 39 ELSE NULL END AS col0
----
56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT ALL + CASE + - 56 WHEN - + 54 THEN + 23 * 31 + + - COUNT( * ) - + - 26 + + 65 * - 10 + + + COALESCE ( 89, SUM( + 58 ) - - CASE + MIN( 25 ) + - 41 WHEN + 58 THEN NULL WHEN + COUNT( * ) * COUNT( * ) + - COUNT( * ) THEN + 90 END * 17, 81 ) - + 95 * + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL + CASE + - 56 WHEN - + 54 THEN + 23 * 31 + + - COUNT ( * ) - + - 26 + + 65 * - 10 + + + COALESCE ( 89, SUM ( + 58 ) - - CASE + MIN ( 25 ) + - 41 WHEN + 58 THEN NULL WHEN + COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) THEN + 90 END * 17, 81 ) - + 95 * + COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 83 + 1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1934
SELECT - 57 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-1934
SELECT - 57 / - 87
----
0

query I rowsort
SELECT DISTINCT 96 + 81
----
177

query I rowsort
SELECT ALL + 76 + + 54 * 55
----
3046

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT DISTINCT CASE + 42 WHEN - + COUNT( * ) / + + NULLIF ( - + 90, + 3 + - 92 ) THEN + 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT CASE + 42 WHEN - + COUNT ( * ) / + + NULLIF ( - + 90, + 3 + - 92 ) THEN + 91 END
----
NULL

query I rowsort
SELECT ALL - 7 + 84 + + 15 + 3
----
95

query I rowsort
SELECT 45 * + 41 AS col1
----
1845

query I rowsort
SELECT DISTINCT + 32 + 71 + + + 77 AS col2
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT ALL COUNT( * ) + + 79 + - MAX( + 9 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL COUNT ( * ) + + 79 + - MAX ( + 9 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT + 6 + + CASE + 36 WHEN 13 THEN + 98 * + COUNT( * ) * 58 + 79 + - - COUNT( DISTINCT 30 ) ELSE - 30 END
----
-24

skipif mysql # not compatible
query I rowsort label-1942
SELECT + 6 + + CASE + 36 WHEN 13 THEN + 98 * + COUNT ( * ) * 58 + 79 + - - COUNT ( DISTINCT 30 ) ELSE - 30 END
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT ALL MIN( ALL - 98 ) + - 30
----
-128

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL MIN ( ALL - 98 ) + - 30
----
-128

query II rowsort
SELECT - - 24 AS col2, + 16 AS col2
----
24
16

query II rowsort
SELECT - - 14, 86 * + 86 AS col1
----
14
7396

query I rowsort
SELECT + 73 + - ( 84 )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1947
SELECT COUNT( * ) - + 96 / - CAST( NULL AS SIGNED ) * + 21 * - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1947
SELECT COUNT ( * ) - + 96 / - CAST ( NULL AS INTEGER ) * + 21 * - 7 AS col0
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1948
SELECT DISTINCT 81 AS col0, - COUNT ( * ) AS col0
----
81
-1

query I rowsort
SELECT DISTINCT 26 - - - 81
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1950
SELECT ALL - 99 * + 16 DIV + + COUNT( * )
----
-1584

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL - 99 * + 16 / + + COUNT ( * )
----
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT DISTINCT + SUM( ALL ( 86 ) ) * + 60 * - + COUNT( * ) - + - 42 AS col0
----
-5118

skipif mysql # not compatible
query I rowsort label-1951
SELECT DISTINCT + SUM ( ALL ( 86 ) ) * + 60 * - + COUNT ( * ) - + - 42 AS col0
----
-5118

query I rowsort
SELECT DISTINCT + ( - 2 ) * - 42 AS col2
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-1953
SELECT ALL SUM( 22 ) * + 88 AS col1, 19 AS col1
----
1936
19

skipif mysql # not compatible
query II rowsort label-1953
SELECT ALL SUM ( 22 ) * + 88 AS col1, 19 AS col1
----
1936
19

query I rowsort
SELECT 29 * + - 2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1955
SELECT DISTINCT - MAX( ALL CAST( 26 AS SIGNED ) )
----
-26

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT - MAX ( ALL CAST ( 26 AS INTEGER ) )
----
-26

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1957
SELECT 19 DIV COALESCE ( + - 77, - + 33 DIV + + 18, - 53 ) DIV + 18 * + + 38 - + 4
----
-4

skipif mysql # not compatible
query I rowsort label-1957
SELECT 19 / COALESCE ( + - 77, - + 33 / + + 18, - 53 ) / + 18 * + + 38 - + 4
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1958
SELECT DISTINCT - COUNT( DISTINCT - + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0, + COALESCE ( 47, - ( - - 82 ) ) DIV 89 * - 23 + + + 24 * - COUNT( * ) col2
----
0
-24

skipif mysql # not compatible
query II rowsort label-1958
SELECT DISTINCT - COUNT ( DISTINCT - + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0, + COALESCE ( 47, - ( - - 82 ) ) / 89 * - 23 + + + 24 * - COUNT ( * ) col2
----
0
-24

query I rowsort
SELECT 29 * 60 AS col2
----
1740

query I rowsort
SELECT ALL + 33 + + 62 col1
----
95

query I rowsort
SELECT 19 * - - 91 AS col2
----
1729

query I rowsort
SELECT ALL + ( - - 18 ) + - 99 + - - ( 52 ) + 71
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT 25 - ( - + 27 ) / + CASE + 55 WHEN + 52 - 41 - + + COUNT( * ) + 16 * 44 * + 43 THEN NULL WHEN - ( COALESCE ( COUNT( 78 ), 34 ) ) THEN NULL WHEN - 69 THEN ( 47 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1963
SELECT 25 - ( - + 27 ) / + CASE + 55 WHEN + 52 - 41 - + + COUNT ( * ) + 16 * 44 * + 43 THEN NULL WHEN - ( COALESCE ( COUNT ( 78 ), 34 ) ) THEN NULL WHEN - 69 THEN ( 47 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT ALL - MAX( - - ( + 12 ) ) + + - 44 * + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL - MAX ( - - ( + 12 ) ) + + - 44 * + COUNT ( * )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1965
SELECT + COUNT( * ) * - 28 + - CASE + + CASE - 29 WHEN COUNT( * ) THEN NULL WHEN + 22 THEN + 23 END WHEN 53 + + 5 THEN NULL WHEN - 63 + 10 * - 87 THEN CAST( NULL AS SIGNED ) WHEN 83 THEN NULL ELSE NULL END - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1965
SELECT + COUNT ( * ) * - 28 + - CASE + + CASE - 29 WHEN COUNT ( * ) THEN NULL WHEN + 22 THEN + 23 END WHEN 53 + + 5 THEN NULL WHEN - 63 + 10 * - 87 THEN CAST ( NULL AS INTEGER ) WHEN 83 THEN NULL ELSE NULL END - 9 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1966
SELECT ALL + 5 + CASE - - ( + CAST( NULL AS SIGNED ) ) WHEN + 75 THEN NULL ELSE - 83 * - 9 - + + 40 + - 82 END col2
----
630

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL + 5 + CASE - - ( + CAST ( NULL AS INTEGER ) ) WHEN + 75 THEN NULL ELSE - 83 * - 9 - + + 40 + - 82 END col2
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT ALL - 94 * - 41 * ( 57 ) * CASE - 31 WHEN + + COUNT( * ) * 80 + + - 38 * + ( + - 69 ) * - 53 THEN 81 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL - 94 * - 41 * ( 57 ) * CASE - 31 WHEN + + COUNT ( * ) * 80 + + - 38 * + ( + - 69 ) * - 53 THEN 81 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1968
SELECT DISTINCT - + CAST( + 49 AS SIGNED ) + + + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - + CAST ( + 49 AS INTEGER ) + + + COUNT ( * )
----
-48

query I rowsort
SELECT ALL 12 + 27 AS col0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-1970
SELECT ALL ( ( 90 ) ) AS col2, - 45 - + 66 * 16 + - - 46 * COUNT( * ) AS col1
----
90
-1055

skipif mysql # not compatible
query II rowsort label-1970
SELECT ALL ( ( 90 ) ) AS col2, - 45 - + 66 * 16 + - - 46 * COUNT ( * ) AS col1
----
90
-1055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1971
SELECT NULLIF ( + 20, COUNT( * ) + + + CAST( NULL AS SIGNED ) * - 27 / - MAX( ALL 76 ) + + + 88 - + - 33 * - 21 - 15 * - COUNT( * ) ) + + 72
----
92

skipif mysql # not compatible
query I rowsort label-1971
SELECT NULLIF ( + 20, COUNT ( * ) + + + CAST ( NULL AS INTEGER ) * - 27 / - MAX ( ALL 76 ) + + + 88 - + - 33 * - 21 - 15 * - COUNT ( * ) ) + + 72
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1972
SELECT + ( - NULLIF ( + + CAST( NULL AS DECIMAL ), + 4 ) ) * ( - 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1972
SELECT + ( - NULLIF ( + + CAST ( NULL AS REAL ), + 4 ) ) * ( - 50 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1973
SELECT DISTINCT - 51 DIV - + 62 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1973
SELECT DISTINCT - 51 / - + 62 * - COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1974
SELECT COALESCE ( 78, CAST( + 83 AS SIGNED ) ) + + 25 + - 40
----
63

skipif mysql # not compatible
query I rowsort label-1974
SELECT COALESCE ( 78, CAST ( + 83 AS INTEGER ) ) + + 25 + - 40
----
63

query I rowsort
SELECT ALL 14 * ( + 24 ) * + 55
----
18480

query I rowsort
SELECT + ( + 3 ) * 35
----
105

query I rowsort
SELECT ALL - 18 * 81 + - 35
----
-1493

onlyif mysql # aggregate syntax: 
query II rowsort label-1978
SELECT DISTINCT - 1 - 36, COUNT( * ) AS col1
----
-37
1

skipif mysql # not compatible
query II rowsort label-1978
SELECT DISTINCT - 1 - 36, COUNT ( * ) AS col1
----
-37
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1979
SELECT ALL COUNT( - 71 ) AS col1, - 29 + - 64 - - COUNT( ( + - 48 ) ) AS col2
----
1
-92

skipif mysql # not compatible
query II rowsort label-1979
SELECT ALL COUNT ( - 71 ) AS col1, - 29 + - 64 - - COUNT ( ( + - 48 ) ) AS col2
----
1
-92

query I rowsort
SELECT DISTINCT + ( 23 ) * - + 95 + 2 AS col2
----
-2183

onlyif mysql # aggregate syntax: 
query II rowsort label-1981
SELECT DISTINCT COUNT( + 74 ) * 9 AS col0, - 63
----
9
-63

skipif mysql # not compatible
query II rowsort label-1981
SELECT DISTINCT COUNT ( + 74 ) * 9 AS col0, - 63
----
9
-63

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

skipif mysql # not compatible
query I rowsort label-1982
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) * + 12
----
12

query I rowsort
SELECT + 84 * + 77
----
6468

query I rowsort
SELECT + 96 + - 22 + - 33
----
41

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1986
SELECT - NULLIF ( - COALESCE ( + - CASE 34 WHEN COUNT( * ) THEN COUNT( * ) END, - 28 + - 38 ), - + CASE + 50 WHEN + - COUNT( * ) THEN + 54 WHEN + - 28 + + ( + 38 + 46 ) * - 75 THEN 85 * 65 ELSE CAST( NULL AS SIGNED ) END * - 63 ) * 6 + 30
----
-366

skipif mysql # not compatible
query I rowsort label-1986
SELECT - NULLIF ( - COALESCE ( + - CASE 34 WHEN COUNT ( * ) THEN COUNT ( * ) END, - 28 + - 38 ), - + CASE + 50 WHEN + - COUNT ( * ) THEN + 54 WHEN + - 28 + + ( + 38 + 46 ) * - 75 THEN 85 * 65 ELSE CAST ( NULL AS INTEGER ) END * - 63 ) * 6 + 30
----
-366

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT CASE + 6 WHEN + + 82 THEN - CASE + 22 WHEN - + 2 THEN + 67 / - 6 * + 17 + AVG ( ALL + - 67 ) END * 15 + + - 62 + - 22 * - COUNT( * ) WHEN MIN( ( - 20 ) ) THEN + ( + 30 ) * 13 ELSE - MIN( ALL - 82 ) - - 15 END AS col1
----
97

skipif mysql # not compatible
query I rowsort label-1987
SELECT CASE + 6 WHEN + + 82 THEN - CASE + 22 WHEN - + 2 THEN + 67 / - 6 * + 17 + AVG ( ALL + - 67 ) END * 15 + + - 62 + - 22 * - COUNT ( * ) WHEN MIN ( ( - 20 ) ) THEN + ( + 30 ) * 13 ELSE - MIN ( ALL - 82 ) - - 15 END AS col1
----
97

query I rowsort
SELECT + 48 * 5
----
240

onlyif mysql # DIV for integer division: 
query II rowsort label-1989
SELECT ALL + 45 AS col0, - 81 + + 35 + + 87 DIV + 77
----
45
-45

skipif mysql # not compatible
query II rowsort label-1989
SELECT ALL + 45 AS col0, - 81 + + 35 + + 87 / + 77
----
45
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-1990
SELECT - 68 DIV + - 12 - 15
----
-10

skipif mysql # not compatible
query I rowsort label-1990
SELECT - 68 / + - 12 - 15
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1991
SELECT DISTINCT + 61, - CAST( NULL AS SIGNED ) * + - 69 AS col2
----
61
NULL

skipif mysql # not compatible
query II rowsort label-1991
SELECT DISTINCT + 61, - CAST ( NULL AS INTEGER ) * + - 69 AS col2
----
61
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1992
SELECT ALL 62 * - 10 * + + 10 + - + CAST( NULL AS SIGNED ) + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL 62 * - 10 * + + 10 + - + CAST ( NULL AS INTEGER ) + + 85
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1993
SELECT ALL 24 * + CASE + 26 WHEN - MIN( + 19 ) * + CASE + 97 WHEN - 76 + + COUNT( * ) THEN NULL ELSE + + 14 END THEN NULL WHEN - 90 * + - 80 THEN NULL WHEN - + COALESCE ( + 92, + 88, 53 + COUNT( * ) * + ( - CAST( + CASE - 64 WHEN - 0 * COUNT( * ) - + 77 THEN + 75 END AS SIGNED ) ) ) THEN NULL ELSE COUNT( * ) END
----
24

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL 24 * + CASE + 26 WHEN - MIN ( + 19 ) * + CASE + 97 WHEN - 76 + + COUNT ( * ) THEN NULL ELSE + + 14 END THEN NULL WHEN - 90 * + - 80 THEN NULL WHEN - + COALESCE ( + 92, + 88, 53 + COUNT ( * ) * + ( - CAST ( + CASE - 64 WHEN - 0 * COUNT ( * ) - + 77 THEN + 75 END AS INTEGER ) ) ) THEN NULL ELSE COUNT ( * ) END
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1994
SELECT - 80 * + - 61 + + CAST( - 47 AS SIGNED ) + - - CAST( 20 AS SIGNED ) + + NULLIF ( + 75, + 30 ) + - 25 DIV - SUM( DISTINCT - + 31 ) AS col0
----
4928

skipif mysql # not compatible
query I rowsort label-1994
SELECT - 80 * + - 61 + + CAST ( - 47 AS INTEGER ) + - - CAST ( 20 AS INTEGER ) + + NULLIF ( + 75, + 30 ) + - 25 / - SUM ( DISTINCT - + 31 ) AS col0
----
4928

onlyif mysql # DIV for integer division: 
query I rowsort label-1995
SELECT - 70 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-1995
SELECT - 70 / 77
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1996
SELECT + 82 + - + CASE 28 WHEN 87 THEN NULLIF ( - + 91, - 28 + - - CAST( NULL AS SIGNED ) + + COALESCE ( - 99, 7 + - 34 ) * + 17 ) * + ( 31 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1996
SELECT + 82 + - + CASE 28 WHEN 87 THEN NULLIF ( - + 91, - 28 + - - CAST ( NULL AS INTEGER ) + + COALESCE ( - 99, 7 + - 34 ) * + 17 ) * + ( 31 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT COALESCE ( + 10, - 40 * - COUNT( * ) * 43, + 46 * 91 * + - 22 )
----
10

skipif mysql # not compatible
query I rowsort label-1997
SELECT COALESCE ( + 10, - 40 * - COUNT ( * ) * 43, + 46 * 91 * + - 22 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT ALL + COALESCE ( 12, + 55 + + + COALESCE ( MAX( ALL - 1 ), + 13 * + ( - + 51 ) ) + + MAX( ALL 14 ) + COUNT( 84 ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL + COALESCE ( 12, + 55 + + + COALESCE ( MAX ( ALL - 1 ), + 13 * + ( - + 51 ) ) + + MAX ( ALL 14 ) + COUNT ( 84 ) ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT ALL - - COUNT( * ) * 34 + SUM( ALL - 30 ) + + 26
----
30

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL - - COUNT ( * ) * 34 + SUM ( ALL - 30 ) + + 26
----
30

query I rowsort
SELECT + + 29 * - + 10
----
-290

query II rowsort
SELECT - 7 AS col0, - 98 * + 69
----
-7
-6762

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT ALL - 26 * 23 + - + 26 + + 13 * - COUNT( * )
----
-637

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL - 26 * 23 + - + 26 + + 13 * - COUNT ( * )
----
-637

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT - + 79 + 40 - SUM( DISTINCT 58 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-2003
SELECT - + 79 + 40 - SUM ( DISTINCT 58 ) AS col0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2004
SELECT ALL - ( - 8 ) * + + COALESCE ( + 65, 76 ) + - 39 + + ( + 18 ) * + CAST( 50 AS SIGNED ) AS col0
----
1381

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL - ( - 8 ) * + + COALESCE ( + 65, 76 ) + - 39 + + ( + 18 ) * + CAST ( 50 AS INTEGER ) AS col0
----
1381

query I rowsort
SELECT + - 68 * + 45 * - 18 AS col0
----
55080

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT + COUNT( * ) * + 16 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-2006
SELECT + COUNT ( * ) * + 16 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT ALL - - 2 * + NULLIF ( + ( + 13 ), + + MAX( - 10 ) + - - COUNT( * ) ) + - 13 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL - - 2 * + NULLIF ( + ( + 13 ), + + MAX ( - 10 ) + - - COUNT ( * ) ) + - 13 AS col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2008
SELECT + 98 AS col2, COUNT( * ) + + NULLIF ( 51, 13 ) AS col0
----
98
52

skipif mysql # not compatible
query II rowsort label-2008
SELECT + 98 AS col2, COUNT ( * ) + + NULLIF ( 51, 13 ) AS col0
----
98
52

query II rowsort
SELECT - 15, - 76 AS col1
----
-15
-76

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

query I rowsort
SELECT ALL - 72 * + 24 AS col0
----
-1728

onlyif mysql # aggregate syntax: 
query II rowsort label-2012
SELECT - 91 + - SUM( ALL 56 ) + 18 * + 31 * - 71 AS col1, + 67 + - + ( + COUNT( * ) ) AS col2
----
-39765
66

skipif mysql # not compatible
query II rowsort label-2012
SELECT - 91 + - SUM ( ALL 56 ) + 18 * + 31 * - 71 AS col1, + 67 + - + ( + COUNT ( * ) ) AS col2
----
-39765
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT MIN( + COALESCE ( 67, - 18 ) )
----
67

skipif mysql # not compatible
query I rowsort label-2013
SELECT MIN ( + COALESCE ( 67, - 18 ) )
----
67

query I rowsort
SELECT - 31 - + 26 + + 75 * 66 AS col2
----
4893

onlyif mysql # aggregate syntax: 
query II rowsort label-2015
SELECT ALL COUNT( * ) * - 31, 10 AS col1
----
-31
10

skipif mysql # not compatible
query II rowsort label-2015
SELECT ALL COUNT ( * ) * - 31, 10 AS col1
----
-31
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2016
SELECT - 48 DIV + ( + 29 ) * - COUNT( * ) + - COUNT( + 45 ) * 30 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-2016
SELECT - 48 / + ( + 29 ) * - COUNT ( * ) + - COUNT ( + 45 ) * 30 AS col2
----
-29

query I rowsort
SELECT - 25 * - 2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT ALL - 28 DIV 23 + - 66 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL - 28 / 23 + - 66 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT 97 * - + 24 + - COUNT( * )
----
-2329

skipif mysql # not compatible
query I rowsort label-2019
SELECT 97 * - + 24 + - COUNT ( * )
----
-2329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2020
SELECT + CASE COALESCE ( + CAST( COUNT( * ) AS SIGNED ), - - 91, - 82 * + - 37 ) WHEN - COUNT( * ) THEN NULL WHEN + + 94 THEN - + CASE - COUNT( * ) WHEN 23 THEN + 45 - SUM( ALL 24 ) + MAX( - 37 + + 56 ) * - 58 ELSE 68 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT + CASE COALESCE ( + CAST ( COUNT ( * ) AS INTEGER ), - - 91, - 82 * + - 37 ) WHEN - COUNT ( * ) THEN NULL WHEN + + 94 THEN - + CASE - COUNT ( * ) WHEN 23 THEN + 45 - SUM ( ALL 24 ) + MAX ( - 37 + + 56 ) * - 58 ELSE 68 END END AS col0
----
NULL

query I rowsort
SELECT ALL + 6 * + + 44 * + 59
----
15576

onlyif mysql # DIV for integer division: 
query I rowsort label-2022
SELECT - 1 DIV - - 51 + + 95 * 16 * + 49
----
74480

skipif mysql # not compatible
query I rowsort label-2022
SELECT - 1 / - - 51 + + 95 * 16 * + 49
----
74480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2023
SELECT + 77 - 42 * + - 24 * + CAST( - + 16 AS SIGNED )
----
-16051

skipif mysql # not compatible
query I rowsort label-2023
SELECT + 77 - 42 * + - 24 * + CAST ( - + 16 AS INTEGER )
----
-16051

query I rowsort
SELECT ALL - ( 4 ) * - 7
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2025
SELECT ALL - 51 DIV - - 77 + - - SUM( DISTINCT + + ( + - 13 ) ) - + 27 * COUNT( ALL 46 )
----
-40

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL - 51 / - - 77 + - - SUM ( DISTINCT + + ( + - 13 ) ) - + 27 * COUNT ( ALL 46 )
----
-40

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2027
SELECT CAST( + 81 AS SIGNED ), + 98 AS col2
----
81
98

skipif mysql # not compatible
query II rowsort label-2027
SELECT CAST ( + 81 AS INTEGER ), + 98 AS col2
----
81
98

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

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL + 1 / + 61 + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT ( - COALESCE ( + - 34, - + SUM( - - 61 ) ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-2029
SELECT ( - COALESCE ( + - 34, - + SUM ( - - 61 ) ) ) AS col1
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-2030
SELECT + ( - + 45 ), 76 DIV - 95 AS col0
----
-45
0

skipif mysql # not compatible
query II rowsort label-2030
SELECT + ( - + 45 ), 76 / - 95 AS col0
----
-45
0

query II rowsort
SELECT ALL ( 26 ) * 80 + - 55 AS col0, 62 + - 66 + - 94
----
2025
-98

query I rowsort
SELECT + + 83 * 45 AS col2
----
3735

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT + 3 - + COUNT( ALL + 44 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2033
SELECT + 3 - + COUNT ( ALL + 44 ) AS col0
----
2

query I rowsort
SELECT + 73 * - 65
----
-4745

query I rowsort
SELECT + 67 * - 46 - ( + 41 ) * 86 col2
----
-6608

onlyif mysql # aggregate syntax: 
query II rowsort label-2036
SELECT ALL + + ( - 73 ) AS col0, COUNT( + ( 98 ) ) AS col2
----
-73
1

skipif mysql # not compatible
query II rowsort label-2036
SELECT ALL + + ( - 73 ) AS col0, COUNT ( + ( 98 ) ) AS col2
----
-73
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2037
SELECT + 79 * 38 + + 91 + - - CAST( NULL AS SIGNED ), + ( - 64 ) AS col0
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-2037
SELECT + 79 * 38 + + 91 + - - CAST ( NULL AS INTEGER ), + ( - 64 ) AS col0
----
NULL
-64

query I rowsort
SELECT + + 56 * - - ( + + 25 ) * - 94 AS col2
----
-131600

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT ALL + 12 DIV + 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL + 12 / + 57 AS col2
----
0

query I rowsort
SELECT + 66 - + 49 AS col1
----
17

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2042
SELECT CAST( NULL AS SIGNED ) + 21 / ( 52 ), - 22 AS col2
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-2042
SELECT CAST ( NULL AS INTEGER ) + 21 / ( 52 ), - 22 AS col2
----
NULL
-22

query I rowsort
SELECT 79 * - 4 AS col0
----
-316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2044
SELECT 38 + COALESCE ( 88, - + 3, + - 73 DIV - 50 + + + 27 * - + COUNT( ALL COALESCE ( + 79, + CAST( NULL AS SIGNED ) ) ) ) * 2 - - 6 AS col0
----
220

skipif mysql # not compatible
query I rowsort label-2044
SELECT 38 + COALESCE ( 88, - + 3, + - 73 / - 50 + + + 27 * - + COUNT ( ALL COALESCE ( + 79, + CAST ( NULL AS INTEGER ) ) ) ) * 2 - - 6 AS col0
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT ALL - 77 * CASE - 62 WHEN + + 47 THEN - SUM( DISTINCT - 78 ) ELSE NULL END + COUNT( * ) + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL - 77 * CASE - 62 WHEN + + 47 THEN - SUM ( DISTINCT - 78 ) ELSE NULL END + COUNT ( * ) + + + COUNT ( * )
----
NULL

query I rowsort
SELECT 71 + + ( - - 35 ) * - 38
----
-1259

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT DISTINCT 78 + 69 * - MAX( + + 0 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT 78 + 69 * - MAX ( + + 0 ) AS col2
----
78

query I rowsort
SELECT DISTINCT - 19 + - 13
----
-32

query II rowsort
SELECT 14 AS col2, - 17
----
14
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2051
SELECT DISTINCT + COALESCE ( + 83, 27 * - + 74 + 59 DIV + - 25 DIV + + 29 ) + 29
----
112

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT + COALESCE ( + 83, 27 * - + 74 + 59 / + - 25 / + + 29 ) + 29
----
112

query II rowsort
SELECT - 62, 28 + - 30 AS col0
----
-62
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2053
SELECT 45 DIV - 22 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2053
SELECT 45 / - 22 AS col2
----
-2

query I rowsort
SELECT ALL + 2 + + - 35 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT 28 * 30 * SUM( + 19 )
----
15960

skipif mysql # not compatible
query I rowsort label-2055
SELECT 28 * 30 * SUM ( + 19 )
----
15960

onlyif mysql # DIV for integer division: 
query I rowsort label-2056
SELECT 75 DIV + - 90 + 73 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-2056
SELECT 75 / + - 90 + 73 AS col1
----
73

query II rowsort
SELECT 46, 44 col1
----
46
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT ALL - COUNT( - 72 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL - COUNT ( - 72 ) col1
----
-1

query I rowsort
SELECT 65 + 46 - - 82
----
193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2060
SELECT + COUNT( * ) * + - 6 + - 15 + - - COALESCE ( + - 17, - CAST( - NULLIF ( + 66, - 79 + 29 * CAST( + 52 AS SIGNED ) + - + ( - 65 ) * ( 9 ) * - 79 ) AS SIGNED ), - 12 ) + 78 * - 55 * + 84
----
-360398

skipif mysql # not compatible
query I rowsort label-2060
SELECT + COUNT ( * ) * + - 6 + - 15 + - - COALESCE ( + - 17, - CAST ( - NULLIF ( + 66, - 79 + 29 * CAST ( + 52 AS INTEGER ) + - + ( - 65 ) * ( 9 ) * - 79 ) AS INTEGER ), - 12 ) + 78 * - 55 * + 84
----
-360398

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT + CASE + + 72 WHEN 4 THEN + 7 * - COALESCE ( + - 92, + - COUNT( * ) + - 58 + - 65 ) + - 20 + + SUM( - 14 ) WHEN - + 0 THEN + 50 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2061
SELECT + CASE + + 72 WHEN 4 THEN + 7 * - COALESCE ( + - 92, + - COUNT ( * ) + - 58 + - 65 ) + - 20 + + SUM ( - 14 ) WHEN - + 0 THEN + 50 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT + + 10 * ( 48 ) - + 54 + - 67 * + + 23 * - CASE + 64 WHEN - + 67 * - - 75 + - 26 + - COUNT( * ) - - 38 * 44 - 31 + NULLIF ( - COUNT( * ) + - 65, + 82 + COUNT( * ) ) * - 66 * - 78 + 48 * - 57 THEN - 51 * COUNT( * ) END / 74 * COUNT( DISTINCT + NULLIF ( - COALESCE ( 4, - 65 ), - 75 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2062
SELECT + + 10 * ( 48 ) - + 54 + - 67 * + + 23 * - CASE + 64 WHEN - + 67 * - - 75 + - 26 + - COUNT ( * ) - - 38 * 44 - 31 + NULLIF ( - COUNT ( * ) + - 65, + 82 + COUNT ( * ) ) * - 66 * - 78 + 48 * - 57 THEN - 51 * COUNT ( * ) END / 74 * COUNT ( DISTINCT + NULLIF ( - COALESCE ( 4, - 65 ), - 75 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2063
SELECT DISTINCT + - CASE + 66 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE COUNT( * ) + - CASE + COUNT( * ) WHEN - 69 - + - 28 THEN - + MIN( + 92 ) WHEN - COUNT( 32 ) THEN + ( + 23 ) * + 17 * - 37 WHEN 63 THEN NULL ELSE + 67 * - 34 - 64 END - 31 END * - 94 AS col2
----
217328

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT + - CASE + 66 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE COUNT ( * ) + - CASE + COUNT ( * ) WHEN - 69 - + - 28 THEN - + MIN ( + 92 ) WHEN - COUNT ( 32 ) THEN + ( + 23 ) * + 17 * - 37 WHEN 63 THEN NULL ELSE + 67 * - 34 - 64 END - 31 END * - 94 AS col2
----
217328

query I rowsort
SELECT DISTINCT - - 63 col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT + COUNT( + 20 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2065
SELECT + COUNT ( + 20 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2066
SELECT 36 * - COUNT( - 4 ) + - CASE + - AVG ( - 17 ) WHEN - + 81 THEN - COUNT( - 79 ) ELSE - CAST( NULL AS DECIMAL ) END + - + 22 - + 2 / - - 6 * + 92 * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT 36 * - COUNT ( - 4 ) + - CASE + - AVG ( - 17 ) WHEN - + 81 THEN - COUNT ( - 79 ) ELSE - CAST ( NULL AS REAL ) END + - + 22 - + 2 / - - 6 * + 92 * 34
----
NULL

query I rowsort
SELECT DISTINCT 52 * ( + ( + 19 ) ) + + + CASE 22 WHEN - 5 THEN - + 45 / - + 12 + - + 41 ELSE NULL END + 11
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2068
SELECT - AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) * + - 52 col2, 70 - - 95 + - 68
----
NULL
97

skipif mysql # not compatible
query II rowsort label-2068
SELECT - AVG ( DISTINCT CAST ( NULL AS REAL ) ) * + - 52 col2, 70 - - 95 + - 68
----
NULL
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2069
SELECT - - CAST( - 55 AS SIGNED ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-2069
SELECT - - CAST ( - 55 AS INTEGER ) AS col1
----
-55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT - 39 + + - COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-2071
SELECT - 39 + + - COUNT ( * ) AS col1
----
-40

query I rowsort
SELECT DISTINCT 9 + 93
----
102

query I rowsort
SELECT ALL - 20 + + - 86 * + 11 AS col2
----
-966

query I rowsort
SELECT DISTINCT ( + 77 ) + - 14 AS col1
----
63

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

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

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

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

query I rowsort
SELECT DISTINCT - CASE WHEN ( NULL ) BETWEEN + - 30 AND - CASE - - 62 WHEN 3 THEN + - 4 ELSE + + 4 END THEN - - ( - + 12 ) ELSE NULL END / 27 AS col2
----
NULL

query I rowsort
SELECT 45 + + - ( 47 ) AS col2
----
-2

query I rowsort
SELECT COALESCE ( + - 12, - + 20 ) * + 87 AS col0
----
-1044

query I rowsort
SELECT 28 - - 30
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2081
SELECT - 15 AS col2, NULLIF ( - 49, - ( 18 ) + + COUNT( * ) ) + - - 90
----
-15
41

skipif mysql # not compatible
query II rowsort label-2081
SELECT - 15 AS col2, NULLIF ( - 49, - ( 18 ) + + COUNT ( * ) ) + - - 90
----
-15
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT DISTINCT + 89 * + + MIN( DISTINCT + + 48 ) AS col1
----
4272

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT + 89 * + + MIN ( DISTINCT + + 48 ) AS col1
----
4272

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2083
SELECT ALL NULLIF ( - - 91, + CAST( NULL AS DECIMAL ) ) + - 84 + + 21 + - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL NULLIF ( - - 91, + CAST ( NULL AS REAL ) ) + - 84 + + 21 + - COUNT ( * )
----
27

query I rowsort
SELECT ALL + 71 - - + 45
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT DISTINCT ( - MIN( ALL - 50 ) ) * 51 AS col1
----
2550

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT ( - MIN ( ALL - 50 ) ) * 51 AS col1
----
2550

query I rowsort
SELECT 71 * - 81 + 22
----
-5729

query I rowsort
SELECT 63 * - - 23 AS col0
----
1449

onlyif mysql # aggregate syntax: 
query II rowsort label-2088
SELECT ALL 67 * + - 7 * + 95 * + + 91 * - NULLIF ( + SUM( - ( - 12 ) ), + - 99 ) - - 27 - - 14 AS col1, ( + - 26 )
----
48654101
-26

skipif mysql # not compatible
query II rowsort label-2088
SELECT ALL 67 * + - 7 * + 95 * + + 91 * - NULLIF ( + SUM ( - ( - 12 ) ), + - 99 ) - - 27 - - 14 AS col1, ( + - 26 )
----
48654101
-26

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

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

query I rowsort
SELECT 83 * - 85
----
-7055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2091
SELECT + 46 * 9 AS col1, CAST( - COUNT( * ) AS SIGNED ) col2
----
414
-1

skipif mysql # not compatible
query II rowsort label-2091
SELECT + 46 * 9 AS col1, CAST ( - COUNT ( * ) AS INTEGER ) col2
----
414
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2092
SELECT - CASE + 0 WHEN - - CASE 59 WHEN + + 76 THEN NULL WHEN 87 + + 49 THEN + COUNT( * ) WHEN ( - + 97 ) THEN NULL ELSE NULL END THEN - - 57 ELSE NULL END + - CAST( - - ( + CAST( - 71 AS SIGNED ) ) AS SIGNED ) * - COUNT( * ) * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2092
SELECT - CASE + 0 WHEN - - CASE 59 WHEN + + 76 THEN NULL WHEN 87 + + 49 THEN + COUNT ( * ) WHEN ( - + 97 ) THEN NULL ELSE NULL END THEN - - 57 ELSE NULL END + - CAST ( - - ( + CAST ( - 71 AS INTEGER ) ) AS INTEGER ) * - COUNT ( * ) * 99
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2093
SELECT DISTINCT + 95 DIV + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT + 95 / + 98 AS col1
----
0

query II rowsort
SELECT ALL + 3 AS col1, 76 * - 51
----
3
-3876

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL - COALESCE ( - COUNT( * ), - + COALESCE ( - - COUNT( * ), COUNT( * ) ) - 12, - + 87 ) * + 0 + - 50 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL - COALESCE ( - COUNT ( * ), - + COALESCE ( - - COUNT ( * ), COUNT ( * ) ) - 12, - + 87 ) * + 0 + - 50 AS col1
----
-50

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

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

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

query I rowsort
SELECT - 79 + + 17
----
-62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT ALL - 84 * SUM( ALL - 23 ) AS col0
----
1932

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL - 84 * SUM ( ALL - 23 ) AS col0
----
1932

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

query I rowsort
SELECT - 92 * + 39
----
-3588

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT ALL 16 * SUM( + 91 ) + + 75 - - 63
----
1594

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL 16 * SUM ( + 91 ) + + 75 - - 63
----
1594

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT - + 4 - + CASE - 14 WHEN + 83 + + - MAX( - 7 ) THEN - ( 99 ) * - 3 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2104
SELECT - + 4 - + CASE - 14 WHEN + 83 + + - MAX ( - 7 ) THEN - ( 99 ) * - 3 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT + 49, 25 AS col2
----
49
25

query I rowsort
SELECT ALL + - ( - 89 ) AS col0
----
89

query I rowsort
SELECT ALL + 60 + - 34 AS col2
----
26

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2109
SELECT - 42 + 97 * MIN( - 89 ) AS col2, 81 AS col1
----
-8675
81

skipif mysql # not compatible
query II rowsort label-2109
SELECT - 42 + 97 * MIN ( - 89 ) AS col2, 81 AS col1
----
-8675
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT ALL + NULLIF ( 39, - ( 68 ) / - COUNT( * ) ) + + 21 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL + NULLIF ( 39, - ( 68 ) / - COUNT ( * ) ) + + 21 AS col1
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2111
SELECT + 2 - 59 + + 2 DIV 75 + - 84 AS col0
----
-141

skipif mysql # not compatible
query I rowsort label-2111
SELECT + 2 - 59 + + 2 / 75 + - 84 AS col0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT - 72 + + COALESCE ( 68, - + COUNT( * ), + - COALESCE ( - + 10, + 37 * 37 + + - 17 ), + COUNT( * ) )
----
-4

skipif mysql # not compatible
query I rowsort label-2112
SELECT - 72 + + COALESCE ( 68, - + COUNT ( * ), + - COALESCE ( - + 10, + 37 * 37 + + - 17 ), + COUNT ( * ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT ALL MIN( DISTINCT - - 53 ) + 16 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL MIN ( DISTINCT - - 53 ) + 16 AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2114
SELECT - CASE - 16 WHEN + 38 THEN NULL ELSE 54 DIV + 82 - - 66 END AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-2114
SELECT - CASE - 16 WHEN + 38 THEN NULL ELSE 54 / + 82 - - 66 END AS col0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2115
SELECT ALL 60 + - ( + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) * - + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL 60 + - ( + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - + 42
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2116
SELECT - 66 * 79 AS col0, COALESCE ( 5, COUNT( * ) ) * 41 + + - 40 + - 85 + + - 11 + + - 87 * - - 93 + - 48 AS col2
----
-5214
-8070

skipif mysql # not compatible
query II rowsort label-2116
SELECT - 66 * 79 AS col0, COALESCE ( 5, COUNT ( * ) ) * 41 + + - 40 + - 85 + + - 11 + + - 87 * - - 93 + - 48 AS col2
----
-5214
-8070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2117
SELECT - COALESCE ( + CAST( + - 84 AS SIGNED ), + 61 * - 69 + + + COUNT( * ) ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-2117
SELECT - COALESCE ( + CAST ( + - 84 AS INTEGER ), + 61 * - 69 + + + COUNT ( * ) ) AS col1
----
84

query I rowsort
SELECT ALL 77 * - 19 AS col0
----
-1463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2119
SELECT - MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT ALL - 84 - - - 7 + - COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL - 84 - - - 7 + - COUNT ( * )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2122
SELECT + 88 DIV - + 67
----
-1

skipif mysql # not compatible
query I rowsort label-2122
SELECT + 88 / - + 67
----
-1

query I rowsort
SELECT + 0 + 27
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2124
SELECT ALL 11 DIV 87 * 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL 11 / 87 * 82 AS col0
----
0

query II rowsort
SELECT - ( - 55 ) AS col2, 25
----
55
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT - MIN( ALL + ( + ( 85 ) ) ) * + 28 AS col1
----
-2380

skipif mysql # not compatible
query I rowsort label-2126
SELECT - MIN ( ALL + ( + ( 85 ) ) ) * + 28 AS col1
----
-2380

query I rowsort
SELECT ALL 64 * 9 AS col0
----
576

query I rowsort
SELECT - 43 * + - 54 AS col2
----
2322

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

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL ( - - 73 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 49 * + 70
----
3430

query I rowsort
SELECT - 10 * ( + 44 )
----
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT ALL - COALESCE ( - ( - 5 ), 26 * - 71 + - + 32 * - 29 + + - 96 ) * - 97 * - MIN( ALL + 31 ) AS col1
----
-15035

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL - COALESCE ( - ( - 5 ), 26 * - 71 + - + 32 * - 29 + + - 96 ) * - 97 * - MIN ( ALL + 31 ) AS col1
----
-15035

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2133
SELECT + + SUM( - 38 ) AS col2, 41 DIV 26 DIV - COUNT( * ) col1
----
-38
-1

skipif mysql # not compatible
query II rowsort label-2133
SELECT + + SUM ( - 38 ) AS col2, 41 / 26 / - COUNT ( * ) col1
----
-38
-1

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

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

query I rowsort
SELECT + - 50 * - + 88 * 80
----
352000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2136
SELECT 33 / - CAST( NULL AS SIGNED ) * + 9 + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT 33 / - CAST ( NULL AS INTEGER ) * + 9 + 49 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2137
SELECT ALL + ( + + CAST( + 23 AS SIGNED ) ) * - CAST( NULL AS SIGNED ) + + 9 + 58 + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL + ( + + CAST ( + 23 AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) + + 9 + 58 + + 36
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2138
SELECT ALL - 79 * - - CASE + 79 WHEN ( ( 56 ) ) THEN + CAST( - 30 AS DECIMAL ) END + - 45 + - ( + - 4 ) + + 9 + - 86 * + + CASE + 71 WHEN + - ( - 0 ) THEN + ( - 33 ) / 92 WHEN - CASE - COUNT( * ) WHEN - 74 THEN - 77 * - COUNT( + 88 ) + + 86 WHEN SUM( - 40 ) + COUNT( * ) THEN + 51 * - MIN( ALL 9 ) ELSE + 44 * + 21 END THEN 87 ELSE NULL END * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL - 79 * - - CASE + 79 WHEN ( ( 56 ) ) THEN + CAST ( - 30 AS REAL ) END + - 45 + - ( + - 4 ) + + 9 + - 86 * + + CASE + 71 WHEN + - ( - 0 ) THEN + ( - 33 ) / 92 WHEN - CASE - COUNT ( * ) WHEN - 74 THEN - 77 * - COUNT ( + 88 ) + + 86 WHEN SUM ( - 40 ) + COUNT ( * ) THEN + 51 * - MIN ( ALL 9 ) ELSE + 44 * + 21 END THEN 87 ELSE NULL END * + 45
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2139
SELECT ALL - + 30 * 90 - + 50 - - 7 + + COUNT( * ) DIV + 59
----
-2743

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL - + 30 * 90 - + 50 - - 7 + + COUNT ( * ) / + 59
----
-2743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2140
SELECT DISTINCT + ( + CASE - + 26 WHEN CAST( NULL AS SIGNED ) * - 53 + ( - + CAST( NULL AS SIGNED ) ) * - + COUNT( * ) + + + 68 * - - 7 + 72 * + - COUNT( * ) * + 97 * + 7 * + 48 + 26 / + - 92 THEN - COUNT( * ) WHEN + COUNT( * ) * NULLIF ( + 82, - MIN( + 32 ) ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT + ( + CASE - + 26 WHEN CAST ( NULL AS INTEGER ) * - 53 + ( - + CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) + + + 68 * - - 7 + 72 * + - COUNT ( * ) * + 97 * + 7 * + 48 + 26 / + - 92 THEN - COUNT ( * ) WHEN + COUNT ( * ) * NULLIF ( + 82, - MIN ( + 32 ) ) THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT ALL - + 31 * MAX( ALL - 33 ) * 65 + + - 32 AS col0
----
66463

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL - + 31 * MAX ( ALL - 33 ) * 65 + + - 32 AS col0
----
66463

query I rowsort
SELECT + NULLIF ( 2, + 24 )
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT - 54 + + + CASE + NULLIF ( - 83, + + COUNT( * ) ) WHEN + 7 * - 9 - + 70 - - 43 / 33 * - 49 / - - 57 + + + CASE 90 WHEN + 66 THEN NULL ELSE NULLIF ( - 48, - 90 * COUNT( * ) ) * 68 + 98 END THEN NULL WHEN - 75 + - 27 THEN 59 ELSE NULL END / 87
----
NULL

skipif mysql # not compatible
query I rowsort label-2144
SELECT - 54 + + + CASE + NULLIF ( - 83, + + COUNT ( * ) ) WHEN + 7 * - 9 - + 70 - - 43 / 33 * - 49 / - - 57 + + + CASE 90 WHEN + 66 THEN NULL ELSE NULLIF ( - 48, - 90 * COUNT ( * ) ) * 68 + 98 END THEN NULL WHEN - 75 + - 27 THEN 59 ELSE NULL END / 87
----
NULL

query I rowsort
SELECT - 66 * - 62
----
4092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT + 72 * - - CASE - 2 WHEN + CAST( NULL AS SIGNED ) * ( + ( + 68 ) ) + - 26 THEN - 60 ELSE NULL END * + CAST( NULL AS SIGNED ) * - + 93 / - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2146
SELECT + 72 * - - CASE - 2 WHEN + CAST ( NULL AS INTEGER ) * ( + ( + 68 ) ) + - 26 THEN - 60 ELSE NULL END * + CAST ( NULL AS INTEGER ) * - + 93 / - 23
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2147
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 54 * + 31 AS col0
----
NULL
1674

skipif mysql # not compatible
query II rowsort label-2147
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 54 * + 31 AS col0
----
NULL
1674

query I rowsort
SELECT - 42 * - 66
----
2772

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

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

query I rowsort
SELECT - 60 + - + 51 AS col1
----
-111

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

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

query I rowsort
SELECT ALL 6 - + - 39
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2153
SELECT 24 AS col2, CAST( NULL AS DECIMAL ) * 39
----
24
NULL

skipif mysql # not compatible
query II rowsort label-2153
SELECT 24 AS col2, CAST ( NULL AS REAL ) * 39
----
24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT ALL - 53 * + MIN( - 52 ) AS col1
----
2756

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL - 53 * + MIN ( - 52 ) AS col1
----
2756

query I rowsort
SELECT - 76 * - NULLIF ( - 4, - 39 )
----
-304

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT + 82 + COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-2156
SELECT + 82 + COUNT ( * ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT - MIN( DISTINCT 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-2157
SELECT - MIN ( DISTINCT 97 )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2158
SELECT - CAST( - - 25 AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-2158
SELECT - CAST ( - - 25 AS INTEGER )
----
-25

query II rowsort
SELECT ALL 81, - 11 AS col2
----
81
-11

query I rowsort
SELECT 69 * 28 * + - 29 AS col2
----
-56028

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT DISTINCT - + SUM( DISTINCT - 52 ) * - 67 * - 41 * + 72
----
10284768

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT - + SUM ( DISTINCT - 52 ) * - 67 * - 41 * + 72
----
10284768

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT - + COUNT( + 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-2162
SELECT - + COUNT ( + 42 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2163
SELECT ALL + 29 + 40 - + - CAST( NULL AS DECIMAL ) AS col0, 99 * + CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2163
SELECT ALL + 29 + 40 - + - CAST ( NULL AS REAL ) AS col0, 99 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

query I rowsort
SELECT 22 * + 62
----
1364

query II rowsort
SELECT + 29 AS col1, - 95
----
29
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-2166
SELECT - 83 * - - 53 + + - SUM( - 95 ) AS col2, 57 AS col1
----
-4304
57

skipif mysql # not compatible
query II rowsort label-2166
SELECT - 83 * - - 53 + + - SUM ( - 95 ) AS col2, 57 AS col1
----
-4304
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT SUM( DISTINCT - - 87 ) col0
----
87

skipif mysql # not compatible
query I rowsort label-2167
SELECT SUM ( DISTINCT - - 87 ) col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT ALL - COUNT( * ) + - + 56 - - MAX( ALL ( + ( - - 38 ) ) ) + - - 17 * + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL - COUNT ( * ) + - + 56 - - MAX ( ALL ( + ( - - 38 ) ) ) + - - 17 * + COUNT ( * )
----
-2

query II rowsort
SELECT 57 AS col1, 66 AS col0
----
57
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2170
SELECT CAST( - - 81 AS SIGNED ) - - 73 * + - 12 - 87
----
-882

skipif mysql # not compatible
query I rowsort label-2170
SELECT CAST ( - - 81 AS INTEGER ) - - 73 * + - 12 - 87
----
-882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2171
SELECT ALL + CASE - + CASE + - 77 WHEN - SUM( DISTINCT + NULLIF ( ( - 35 ), - 85 * 86 ) ) * + 9 * + COUNT( * ) * 96 THEN + + 38 + 36 / + - 53 * + 58 WHEN 27 + 20 THEN NULL END WHEN - CAST( NULL AS SIGNED ) THEN 50 + COALESCE ( 28, - ( - 55 ) * + 85, + 20 + - ( + 33 + 87 ) ) END + 78 * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL + CASE - + CASE + - 77 WHEN - SUM ( DISTINCT + NULLIF ( ( - 35 ), - 85 * 86 ) ) * + 9 * + COUNT ( * ) * 96 THEN + + 38 + 36 / + - 53 * + 58 WHEN 27 + 20 THEN NULL END WHEN - CAST ( NULL AS INTEGER ) THEN 50 + COALESCE ( 28, - ( - 55 ) * + 85, + 20 + - ( + 33 + 87 ) ) END + 78 * - 50
----
NULL

query I rowsort
SELECT + 77 + 92 * - 48
----
-4339

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT 48 * + COUNT( * ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-2173
SELECT 48 * + COUNT ( * ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT 20 * - 1 + - COUNT( * ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-2174
SELECT 20 * - 1 + - COUNT ( * ) col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2175
SELECT ALL COUNT( * ) - - + 14 + + COUNT( * ) * + 48 * - CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL COUNT ( * ) - - + 14 + + COUNT ( * ) * + 48 * - CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT 38 + + 87
----
125

query I rowsort
SELECT ALL + 12 * - ( - 0 )
----
0

query I rowsort
SELECT 64 - + + 7
----
57

query I rowsort
SELECT ( 59 ) + + 93 AS col2
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-2180
SELECT 44 DIV + + 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2180
SELECT 44 / + + 97 AS col2
----
0

query I rowsort
SELECT 63 + 4 col0
----
67

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

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

query I rowsort
SELECT DISTINCT - 67 * 73 AS col0
----
-4891

query I rowsort
SELECT 73 + 8
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2185
SELECT DISTINCT + MIN( DISTINCT - 17 ) + + + 91 DIV - + 94 AS col2, + 52
----
-17
52

skipif mysql # not compatible
query II rowsort label-2185
SELECT DISTINCT + MIN ( DISTINCT - 17 ) + + + 91 / - + 94 AS col2, + 52
----
-17
52

query I rowsort
SELECT DISTINCT - 99 + + - 29
----
-128

query I rowsort
SELECT - + COALESCE ( NULLIF ( ( + + 80 ), + AVG ( DISTINCT + 8 ) ), 14 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT - ( + - 12 ) + - MIN( + COALESCE ( + 47, + 47 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-2188
SELECT - ( + - 12 ) + - MIN ( + COALESCE ( + 47, + 47 ) )
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-2189
SELECT - COUNT( * ) * + MAX( - ( + 87 ) ), - 29 AS col2
----
87
-29

skipif mysql # not compatible
query II rowsort label-2189
SELECT - COUNT ( * ) * + MAX ( - ( + 87 ) ), - 29 AS col2
----
87
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2190
SELECT ALL - 97 + 57 DIV + - ( - 38 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL - 97 + 57 / + - ( - 38 ) AS col2
----
-96

query I rowsort
SELECT 58 * 88 * - 50 col0
----
-255200

query I rowsort
SELECT DISTINCT - 6 * - 98 * - + 7 - - 28 + 20
----
-4068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2193
SELECT DISTINCT + + CASE - CAST( 18 AS SIGNED ) WHEN 49 THEN 65 * - 7 * - MIN( DISTINCT - + 77 ) + - + 62 * COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) * 79 END * + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT + + CASE - CAST ( 18 AS INTEGER ) WHEN 49 THEN 65 * - 7 * - MIN ( DISTINCT - + 77 ) + - + 62 * COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 79 END * + 67 AS col0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2196
SELECT - ( 42 ) DIV - COUNT( * ) + - + 10 - + 7 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-2196
SELECT - ( 42 ) / - COUNT ( * ) + - + 10 - + 7 AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2197
SELECT - CAST( NULL AS SIGNED ) + + - NULLIF ( - 87, + 43 ) + - SUM( ALL + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2197
SELECT - CAST ( NULL AS INTEGER ) + + - NULLIF ( - 87, + 43 ) + - SUM ( ALL + 23 )
----
NULL

query I rowsort
SELECT + 83 * 34 col0
----
2822

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT - 58 + 97 + + 91 DIV 20 * 22 AS col0
----
127

skipif mysql # not compatible
query I rowsort label-2199
SELECT - 58 + 97 + + 91 / 20 * 22 AS col0
----
127

query II rowsort
SELECT DISTINCT - 70 AS col0, - 87
----
-70
-87

query I rowsort
SELECT ALL 31 - - 4 AS col0
----
35

query I rowsort
SELECT DISTINCT 48 * + 6 * + ( 49 )
----
14112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2203
SELECT COUNT( * ) * CAST( - + 72 AS SIGNED ) * 63 - - 79 * - 20 AS col0, NULLIF ( + - 19, - MAX( - 71 ) / + CASE + MAX( DISTINCT 30 ) WHEN + 66 * + 80 * - - COUNT( * ) + COUNT( * ) * + 39 THEN NULL WHEN + + 14 * 62 + + COALESCE ( 76, + 58 * 35 + 49 ) * + 22 THEN - MAX( DISTINCT 49 ) WHEN + MAX( 47 ) + + 15 * + 33 THEN NULL END * 63 ) AS col1
----
-6116
-19

skipif mysql # not compatible
query II rowsort label-2203
SELECT COUNT ( * ) * CAST ( - + 72 AS INTEGER ) * 63 - - 79 * - 20 AS col0, NULLIF ( + - 19, - MAX ( - 71 ) / + CASE + MAX ( DISTINCT 30 ) WHEN + 66 * + 80 * - - COUNT ( * ) + COUNT ( * ) * + 39 THEN NULL WHEN + + 14 * 62 + + COALESCE ( 76, + 58 * 35 + 49 ) * + 22 THEN - MAX ( DISTINCT 49 ) WHEN + MAX ( 47 ) + + 15 * + 33 THEN NULL END * 63 ) AS col1
----
-6116
-19

query I rowsort
SELECT 73 + + 23 AS col1
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT + ( NULLIF ( - + COUNT( * ), - - 4 ) ) * 9 * + 40 + + COUNT( - 56 ) AS col0
----
-359

skipif mysql # not compatible
query I rowsort label-2206
SELECT + ( NULLIF ( - + COUNT ( * ), - - 4 ) ) * 9 * + 40 + + COUNT ( - 56 ) AS col0
----
-359

query I rowsort
SELECT ALL 53 + + + CASE - 99 WHEN - 51 THEN NULL WHEN - 91 THEN NULL ELSE + + 4 - 82 END
----
-25

query I rowsort
SELECT ALL + 90 * - 44 * + 98 * 2
----
-776160

query I rowsort
SELECT ALL + 81 + + 27 AS col2
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-2210
SELECT DISTINCT 46 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-2210
SELECT DISTINCT 46 / - 59
----
0

query I rowsort
SELECT ALL - 18 + - - 5 * - - 75 - - 74
----
431

query I rowsort
SELECT ALL + 18 * - + ( + 43 ) + + 74
----
-700

query I rowsort
SELECT DISTINCT - 59 + + + 34
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2214
SELECT - + NULLIF ( - COUNT( * ), 75 ), 10 DIV - 71 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-2214
SELECT - + NULLIF ( - COUNT ( * ), 75 ), 10 / - 71 AS col0
----
1
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2215
SELECT - - 62 * - NULLIF ( - 7, + MAX( - NULLIF ( 29, - CAST( NULL AS DECIMAL ) ) ) ) AS col1
----
434

skipif mysql # not compatible
query I rowsort label-2215
SELECT - - 62 * - NULLIF ( - 7, + MAX ( - NULLIF ( 29, - CAST ( NULL AS REAL ) ) ) ) AS col1
----
434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2216
SELECT - ( - NULLIF ( 65, + - COUNT( * ) * - CAST( + - 74 AS SIGNED ) ) )
----
65

skipif mysql # not compatible
query I rowsort label-2216
SELECT - ( - NULLIF ( 65, + - COUNT ( * ) * - CAST ( + - 74 AS INTEGER ) ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT DISTINCT - 24 * MIN( - 8 ) AS col0
----
192

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT - 24 * MIN ( - 8 ) AS col0
----
192

query I rowsort
SELECT ALL + 66 + - 85 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT DISTINCT + NULLIF ( + - 65, - + ( - COUNT( * ) ) + - 40 )
----
-65

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT + NULLIF ( + - 65, - + ( - COUNT ( * ) ) + - 40 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT ALL - + 69 - COUNT( ALL 72 ) * ( + 62 ) * 12 AS col1
----
-813

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL - + 69 - COUNT ( ALL 72 ) * ( + 62 ) * 12 AS col1
----
-813

query I rowsort
SELECT + + ( + - 51 ) AS col0
----
-51

query I rowsort
SELECT - - 61 * - 95 AS col1
----
-5795

query I rowsort
SELECT CASE - 38 WHEN 34 THEN + 76 * + 25 * - 1 + 46 + + + 86 * + 94 * - 77 + + 15 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT + COALESCE ( + COALESCE ( 16, + + 82 ), COUNT( DISTINCT - - 9 ) ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-2225
SELECT + COALESCE ( + COALESCE ( 16, + + 82 ), COUNT ( DISTINCT - - 9 ) ) AS col0
----
16

query I rowsort
SELECT COALESCE ( - 34, + 66 + + 65 + - + 18 )
----
-34

query I rowsort
SELECT ALL + 57 * + 95 * 84 AS col2
----
454860

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

skipif mysql # not compatible
query I rowsort label-2228
SELECT - COUNT ( * ) / - + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT NULLIF ( - COUNT( * ), + 40 * - 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-2229
SELECT NULLIF ( - COUNT ( * ), + 40 * - 96 )
----
-1

query I rowsort
SELECT DISTINCT + COALESCE ( + CASE - NULLIF ( + 30, 85 + - 60 ) WHEN - 94 - + 23 THEN + - 24 ELSE NULL END, 85 ) * - ( 15 ) * + + 28 + - + ( + 4 )
----
-35704

query I rowsort
SELECT + CASE WHEN NOT + 14 <> NULL THEN - + 92 + + + 92 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2232
SELECT - 1 DIV + - 88
----
0

skipif mysql # not compatible
query I rowsort label-2232
SELECT - 1 / + - 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT - 60 + + COALESCE ( + 71, - + 83, + 9 + 47 ) + + MAX( DISTINCT 33 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-2233
SELECT - 60 + + COALESCE ( + 71, - + 83, + 9 + 47 ) + + MAX ( DISTINCT 33 ) AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2234
SELECT COALESCE ( + + COUNT( * ), + CAST( NULL AS SIGNED ), - + 37 * + 61 + + 91 + - 82 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2234
SELECT COALESCE ( + + COUNT ( * ), + CAST ( NULL AS INTEGER ), - + 37 * + 61 + + 91 + - 82 ) AS col1
----
1

query I rowsort
SELECT + 42 * - 23 AS col0
----
-966

query I rowsort
SELECT - 53 + + - 90 * - 75 AS col0
----
6697

query I rowsort
SELECT + 97 * + 71 + + 68 AS col1
----
6955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2238
SELECT DISTINCT 47 * CASE - COALESCE ( - + 19, COUNT( ALL + 28 ), - - 74 * 78 * + 67 / + - 2 ) WHEN 72 + - 17 + - + 40 * 53 THEN + 36 + + COUNT( * ) + 11 END * + 79 * - CAST( COUNT( * ) AS SIGNED ) + + 84 + - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT 47 * CASE - COALESCE ( - + 19, COUNT ( ALL + 28 ), - - 74 * 78 * + 67 / + - 2 ) WHEN 72 + - 17 + - + 40 * 53 THEN + 36 + + COUNT ( * ) + 11 END * + 79 * - CAST ( COUNT ( * ) AS INTEGER ) + + 84 + - 95 AS col0
----
NULL

query I rowsort
SELECT ALL 16 * 59 + + 58 AS col1
----
1002

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

skipif mysql # not compatible
query I rowsort label-2240
SELECT MAX ( ALL 67 )
----
67

query I rowsort
SELECT ALL 5 * 82
----
410

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT + COUNT( DISTINCT + - 90 ) + + 41 + + 35 + + + 79 + 19 * 93 AS col1
----
1923

skipif mysql # not compatible
query I rowsort label-2242
SELECT + COUNT ( DISTINCT + - 90 ) + + 41 + + 35 + + + 79 + 19 * 93 AS col1
----
1923

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2243
SELECT - CAST( NULL AS SIGNED ) col2, 29 + - 10 AS col0
----
NULL
19

skipif mysql # not compatible
query II rowsort label-2243
SELECT - CAST ( NULL AS INTEGER ) col2, 29 + - 10 AS col0
----
NULL
19

onlyif mysql # DIV for integer division: 
query II rowsort label-2244
SELECT DISTINCT 99 + + 33 AS col1, 13 DIV - - 36 * 21 AS col1
----
132
0

skipif mysql # not compatible
query II rowsort label-2244
SELECT DISTINCT 99 + + 33 AS col1, 13 / - - 36 * 21 AS col1
----
132
0

query I rowsort
SELECT ALL - - 67 - - 57 col0
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2246
SELECT - ( + CASE + NULLIF ( + COUNT( * ), - 62 * CASE COUNT( 35 ) WHEN - - 59 + + 5 THEN - - 39 WHEN + ( + 68 ) THEN - + 64 * - - COUNT( * ) * + 38 ELSE NULL END - - 63 ) WHEN - CAST( + ( + 47 ) AS SIGNED ) - 1 THEN COUNT( * ) ELSE NULL END ) * MAX( ALL 53 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2246
SELECT - ( + CASE + NULLIF ( + COUNT ( * ), - 62 * CASE COUNT ( 35 ) WHEN - - 59 + + 5 THEN - - 39 WHEN + ( + 68 ) THEN - + 64 * - - COUNT ( * ) * + 38 ELSE NULL END - - 63 ) WHEN - CAST ( + ( + 47 ) AS INTEGER ) - 1 THEN COUNT ( * ) ELSE NULL END ) * MAX ( ALL 53 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2247
SELECT ALL + 45 DIV - + 74 + + - 11
----
-11

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL + 45 / - + 74 + + - 11
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT - - SUM( ALL - - 7 ) + - COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2248
SELECT - - SUM ( ALL - - 7 ) + - COUNT ( * ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2249
SELECT - + COUNT( * ), 69 * + 42 AS col0
----
-1
2898

skipif mysql # not compatible
query II rowsort label-2249
SELECT - + COUNT ( * ), 69 * + 42 AS col0
----
-1
2898

query I rowsort
SELECT - - 84 * - 15 AS col2
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT + - 15 * + + 43 * + + COALESCE ( + 70, - 42, - + 87 * + - 75 + COUNT( * ) ) col2
----
-45150

skipif mysql # not compatible
query I rowsort label-2251
SELECT + - 15 * + + 43 * + + COALESCE ( + 70, - 42, - + 87 * + - 75 + COUNT ( * ) ) col2
----
-45150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2252
SELECT DISTINCT + 51 * COALESCE ( - + 83, - 2, + 14 + COUNT( * ) DIV - 35 )
----
-4233

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT + 51 * COALESCE ( - + 83, - 2, + 14 + COUNT ( * ) / - 35 )
----
-4233

query I rowsort
SELECT DISTINCT 53 * + - 78 * - 29
----
119886

query II rowsort
SELECT - 90 + - + 29 AS col1, - 29
----
-119
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2255
SELECT - COUNT( ALL - - 32 ) * + - 89 AS col2, 9 DIV + 18 * ( - 65 ) AS col0
----
89
0

skipif mysql # not compatible
query II rowsort label-2255
SELECT - COUNT ( ALL - - 32 ) * + - 89 AS col2, 9 / + 18 * ( - 65 ) AS col0
----
89
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT + SUM( - 27 ) * 34 + + 16 AS col0
----
-902

skipif mysql # not compatible
query I rowsort label-2256
SELECT + SUM ( - 27 ) * 34 + + 16 AS col0
----
-902

onlyif mysql # aggregate syntax: 
query II rowsort label-2257
SELECT DISTINCT - 8 * + + 72, + NULLIF ( 1, - CASE - 77 WHEN + 43 THEN - 45 ELSE NULL END + + COUNT( * ) ) - 98 + + 27 AS col1
----
-576
-70

skipif mysql # not compatible
query II rowsort label-2257
SELECT DISTINCT - 8 * + + 72, + NULLIF ( 1, - CASE - 77 WHEN + 43 THEN - 45 ELSE NULL END + + COUNT ( * ) ) - 98 + + 27 AS col1
----
-576
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT DISTINCT + CAST( 94 AS SIGNED ) + - 46 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT + CAST ( 94 AS INTEGER ) + - 46 AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2259
SELECT DISTINCT 59 + + 27 + - - 15 + NULLIF ( - 57, 89 ) DIV ( - 15 ) * 97 - 50 DIV 90
----
392

skipif mysql # not compatible
query I rowsort label-2259
SELECT DISTINCT 59 + + 27 + - - 15 + NULLIF ( - 57, 89 ) / ( - 15 ) * 97 - 50 / 90
----
392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2260
SELECT DISTINCT - 8 * - COUNT( * ) DIV - 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT - 8 * - COUNT ( * ) / - 41 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2261
SELECT ALL 94 + + + 5 * - NULLIF ( + + COUNT( * ), 52 * - 19 * - 54 * CAST( NULL AS SIGNED ) * + ( 65 ) )
----
89

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL 94 + + + 5 * - NULLIF ( + + COUNT ( * ), 52 * - 19 * - 54 * CAST ( NULL AS INTEGER ) * + ( 65 ) )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT 89 * + 95 * - - ( - + COUNT( * ) ) AS col1
----
-8455

skipif mysql # not compatible
query I rowsort label-2262
SELECT 89 * + 95 * - - ( - + COUNT ( * ) ) AS col1
----
-8455

query I rowsort
SELECT ALL - 90 * + 68 * ( - 29 )
----
177480

query II rowsort
SELECT ALL - ( 32 ) col1, 14 * + 71
----
-32
994

onlyif mysql # aggregate syntax: 
query II rowsort label-2265
SELECT DISTINCT + COUNT( * ) + - 79 + 19, ( + - 4 ) col2
----
-59
-4

skipif mysql # not compatible
query II rowsort label-2265
SELECT DISTINCT + COUNT ( * ) + - 79 + 19, ( + - 4 ) col2
----
-59
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2266
SELECT ALL - 64 + + 6 DIV 86 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL - 64 + + 6 / 86 AS col0
----
-64

query I rowsort
SELECT + 81 * + + 90 + 41 + + 7
----
7338

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT DISTINCT - COUNT( * ) * - + 35 * + 59
----
2065

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT - COUNT ( * ) * - + 35 * + 59
----
2065

query I rowsort
SELECT DISTINCT + 16 * + 2 + + 0 * - 24 + + ( 25 ) AS col2
----
57

query I rowsort
SELECT ( - - 79 ) * - 81
----
-6399

query II rowsort
SELECT 91 * 55 AS col1, ( - 83 ) col1
----
5005
-83

query II rowsort
SELECT - 83 + - - 87, 16 AS col0
----
4
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT ALL - NULLIF ( - - 55, + COUNT( * ) ) - 23
----
-78

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL - NULLIF ( - - 55, + COUNT ( * ) ) - 23
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-2274
SELECT - + MAX( - 62 ), 46 * COUNT( * ) * 95 AS col1
----
62
4370

skipif mysql # not compatible
query II rowsort label-2274
SELECT - + MAX ( - 62 ), 46 * COUNT ( * ) * 95 AS col1
----
62
4370

query II rowsort
SELECT 84 * + 94 AS col1, 44 * - 8 AS col2
----
7896
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT ALL NULLIF ( - - COUNT( * ), - 7 + - 25 - + 73 * + 98 )
----
1

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL NULLIF ( - - COUNT ( * ), - 7 + - 25 - + 73 * + 98 )
----
1

query I rowsort
SELECT + 77 * - - 6
----
462

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

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

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

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT COUNT ( * ) + 44 AS col1
----
45

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

skipif mysql # not compatible
query I rowsort label-2280
SELECT COUNT ( * ) / + + 70 * + 77 AS col0
----
0

query I rowsort
SELECT 73 * - 88 col2
----
-6424

query I rowsort
SELECT ALL 72 + + - 29
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT COUNT( * ) - - MAX( ALL - 24 ) * - 42
----
1009

skipif mysql # not compatible
query I rowsort label-2283
SELECT COUNT ( * ) - - MAX ( ALL - 24 ) * - 42
----
1009

query I rowsort
SELECT 83 * 20 col0
----
1660

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT + NULLIF ( - + 70, - COUNT( * ) ) * + 1 * + - 53 - + 41
----
3669

skipif mysql # not compatible
query I rowsort label-2285
SELECT + NULLIF ( - + 70, - COUNT ( * ) ) * + 1 * + - 53 - + 41
----
3669

query I rowsort
SELECT DISTINCT + 21 * + - 26 AS col1
----
-546

query I rowsort
SELECT ALL + 67 + - + ( 9 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT ALL COALESCE ( - COUNT( * ), - 35 ) + - - 95
----
94

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL COALESCE ( - COUNT ( * ), - 35 ) + - - 95
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT 73 * + CASE - 32 WHEN - - 0 THEN - 68 * + - COALESCE ( - SUM( - 95 ), + - ( + + ( + 89 ) ), - COALESCE ( - 54, 88 ) * - 44 * 24 * NULLIF ( + 44, - COUNT( * ) + + + COUNT( - 92 ) ) + - 32 + + + 65 ) * 3 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2289
SELECT 73 * + CASE - 32 WHEN - - 0 THEN - 68 * + - COALESCE ( - SUM ( - 95 ), + - ( + + ( + 89 ) ), - COALESCE ( - 54, 88 ) * - 44 * 24 * NULLIF ( + 44, - COUNT ( * ) + + + COUNT ( - 92 ) ) + - 32 + + + 65 ) * 3 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2290
SELECT ALL - 95 + - + 57 + 20 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL - 95 + - + 57 + 20 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 30 * - 92
----
-2760

query I rowsort
SELECT 89 - 28 col1
----
61

query II rowsort
SELECT ALL - 27 AS col1, 0
----
-27
0

query I rowsort
SELECT 63 + + 84 * - - 35
----
3003

query I rowsort
SELECT 98 * - 39
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT ( + - NULLIF ( - 97, 51 ) ) + + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-2296
SELECT ( + - NULLIF ( - 97, 51 ) ) + + COUNT ( * )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2297
SELECT ALL + 32 - - CAST( + 79 AS SIGNED ) AS col2
----
111

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL + 32 - - CAST ( + 79 AS INTEGER ) AS col2
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-2298
SELECT DISTINCT - 46, - SUM( ALL + COALESCE ( + 89, 60, + 53 ) ) AS col2
----
-46
-89

skipif mysql # not compatible
query II rowsort label-2298
SELECT DISTINCT - 46, - SUM ( ALL + COALESCE ( + 89, 60, + 53 ) ) AS col2
----
-46
-89

query I rowsort
SELECT 24 * - 9
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT ALL - SUM( - + ( + 31 ) ) * + 87 AS col0
----
2697

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL - SUM ( - + ( + 31 ) ) * + 87 AS col0
----
2697

query I rowsort
SELECT ALL - ( - NULLIF ( - - 28, - 11 ) ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT ALL + 32 - + + 30 * - MIN( - 25 ) col0
----
-718

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL + 32 - + + 30 * - MIN ( - 25 ) col0
----
-718

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT ALL - 89 - - 94 + + MAX( + - 25 ) * - + SUM( + ( - 18 ) ) AS col2
----
-445

skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL - 89 - - 94 + + MAX ( + - 25 ) * - + SUM ( + ( - 18 ) ) AS col2
----
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT ALL - 78 * - + COUNT( * ) + - - 61
----
139

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL - 78 * - + COUNT ( * ) + - - 61
----
139

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

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

query I rowsort
SELECT DISTINCT - 45 * ( + 17 ) * 84 + - - 98 AS col1
----
-64162

query I rowsort
SELECT - 59 + + - 50
----
-109

query I rowsort
SELECT - 68 * + 69 * 20 * - 32
----
3002880

query II rowsort
SELECT 19 + + 56 * + 34 AS col2, 5 * + 81 AS col1
----
1923
405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2310
SELECT ALL + 62 DIV - - 12 + + SUM( ALL - ( - ( - 82 ) ) )
----
-77

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL + 62 / - - 12 + + SUM ( ALL - ( - ( - 82 ) ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT DISTINCT - SUM( 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT - SUM ( 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT ALL NULLIF ( 40, + COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL NULLIF ( 40, + COUNT ( * ) )
----
40

query I rowsort
SELECT + 48 * + 62
----
2976

onlyif mysql # aggregate syntax: 
query II rowsort label-2314
SELECT ALL 61, MIN( ALL 15 ) AS col1
----
61
15

skipif mysql # not compatible
query II rowsort label-2314
SELECT ALL 61, MIN ( ALL 15 ) AS col1
----
61
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2315
SELECT ALL + COUNT( * ) * 85 DIV + 62 col1
----
1

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL + COUNT ( * ) * 85 / + 62 col1
----
1

query I rowsort
SELECT ALL + 2 + + 18
----
20

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

skipif mysql # not compatible
query I rowsort label-2317
SELECT 6 - CAST ( NULL AS INTEGER ) * 1 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2318
SELECT DISTINCT COUNT( * ) AS col1, COALESCE ( + ( - 67 ), - 18 ) AS col1
----
1
-67

skipif mysql # not compatible
query II rowsort label-2318
SELECT DISTINCT COUNT ( * ) AS col1, COALESCE ( + ( - 67 ), - 18 ) AS col1
----
1
-67

query I rowsort
SELECT - 14 + + 23 col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2320
SELECT - AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) - + NULLIF ( - 62, - + 15 ) + 11 col2, 41
----
NULL
41

skipif mysql # not compatible
query II rowsort label-2320
SELECT - AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) - + NULLIF ( - 62, - + 15 ) + 11 col2, 41
----
NULL
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT COUNT( * ) + - + MIN( ALL - 32 )
----
33

skipif mysql # not compatible
query I rowsort label-2321
SELECT COUNT ( * ) + - + MIN ( ALL - 32 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT + MAX( ALL + 22 ) - + - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-2322
SELECT + MAX ( ALL + 22 ) - + - COUNT ( * )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2323
SELECT + ( + 7 ) + - 87 * + COUNT( * ) * - CAST( 58 AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col2, 46 * - - 57 + - 17 DIV 1 * - - 31 AS col0
----
NULL
2095

skipif mysql # not compatible
query II rowsort label-2323
SELECT + ( + 7 ) + - 87 * + COUNT ( * ) * - CAST ( 58 AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col2, 46 * - - 57 + - 17 / 1 * - - 31 AS col0
----
NULL
2095

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

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

query I rowsort
SELECT ALL 95 * 14 AS col1
----
1330

onlyif mysql # DIV for integer division: 
query I rowsort label-2326
SELECT + 85 DIV - - 77 + - 95 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-2326
SELECT + 85 / - - 77 + - 95 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT ALL 10 * 61 + COUNT( * ) - - + 93 * 46 AS col0
----
4889

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL 10 * 61 + COUNT ( * ) - - + 93 * 46 AS col0
----
4889

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT + COUNT( * ) * + 34 * - + 37
----
-1258

skipif mysql # not compatible
query I rowsort label-2328
SELECT + COUNT ( * ) * + 34 * - + 37
----
-1258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2329
SELECT CASE - + 30 WHEN + - 56 / + COALESCE ( 27, + 17 * 67, NULLIF ( ( + 73 ), - 91 ) ) * ( - 46 ) - - - CAST( NULL AS SIGNED ) + + ( - 18 ) THEN NULL ELSE + - 74 END
----
-74

skipif mysql # not compatible
query I rowsort label-2329
SELECT CASE - + 30 WHEN + - 56 / + COALESCE ( 27, + 17 * 67, NULLIF ( ( + 73 ), - 91 ) ) * ( - 46 ) - - - CAST ( NULL AS INTEGER ) + + ( - 18 ) THEN NULL ELSE + - 74 END
----
-74

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2331
SELECT + CASE 51 WHEN 27 + - 0 + - 35 + - - 64 THEN 41 * + 29 / - 55 - + + 3 * + COUNT( * ) + COUNT( * ) * + 44 WHEN - 88 + MIN( DISTINCT + 70 ) + + + 81 + COUNT( * ) * + CAST( NULL AS SIGNED ) * ( - COUNT( DISTINCT - - 43 ) ) * - 40 * 54 THEN NULL END * 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2331
SELECT + CASE 51 WHEN 27 + - 0 + - 35 + - - 64 THEN 41 * + 29 / - 55 - + + 3 * + COUNT ( * ) + COUNT ( * ) * + 44 WHEN - 88 + MIN ( DISTINCT + 70 ) + + + 81 + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * ( - COUNT ( DISTINCT - - 43 ) ) * - 40 * 54 THEN NULL END * 95 AS col0
----
NULL

query I rowsort
SELECT 36 * 14 + + - 11 * - ( + 81 ) AS col2
----
1395

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT - 47 DIV 58 * - 40 + 80 + - 88 + + ( - + 72 ) * + + 50 DIV 10 * + 14
----
-5048

skipif mysql # not compatible
query I rowsort label-2333
SELECT - 47 / 58 * - 40 + 80 + - 88 + + ( - + 72 ) * + + 50 / 10 * + 14
----
-5048

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

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

query I rowsort
SELECT ALL 90 * - 98 - - 6 AS col2
----
-8814

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2337
SELECT - 10 DIV - 63 AS col0, 15 col0
----
0
15

skipif mysql # not compatible
query II rowsort label-2337
SELECT - 10 / - 63 AS col0, 15 col0
----
0
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT ALL + COUNT( + 14 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL + COUNT ( + 14 ) AS col0
----
1

query I rowsort
SELECT ALL 90 * - 34 col0
----
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT + + ( - CASE - COUNT( + + 57 ) WHEN + NULLIF ( - ( + 10 ), + + 83 ) THEN + 29 END ) * + 33 / - + 60 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2340
SELECT + + ( - CASE - COUNT ( + + 57 ) WHEN + NULLIF ( - ( + 10 ), + + 83 ) THEN + 29 END ) * + 33 / - + 60 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2341
SELECT - + 72 * + CAST( - COUNT( ALL 15 ) AS DECIMAL ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2341
SELECT - + 72 * + CAST ( - COUNT ( ALL 15 ) AS REAL ) + + + CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( + - 40, + 98 )
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-2344
SELECT ALL + 6 + + 45, + NULLIF ( + ( + 61 ), COALESCE ( + 39, - + 68, - - 55 * 50 - 49 + - COUNT( * ) - 21 * - 38 ) ) AS col1
----
51
61

skipif mysql # not compatible
query II rowsort label-2344
SELECT ALL + 6 + + 45, + NULLIF ( + ( + 61 ), COALESCE ( + 39, - + 68, - - 55 * 50 - 49 + - COUNT ( * ) - 21 * - 38 ) ) AS col1
----
51
61

query I rowsort
SELECT DISTINCT + - 88 + - 91
----
-179

query I rowsort
SELECT - - 45 + 43 AS col2
----
88

query I rowsort
SELECT DISTINCT + 40 + - 29
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2348
SELECT - 34 DIV + 14 col0
----
-2

skipif mysql # not compatible
query I rowsort label-2348
SELECT - 34 / + 14 col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT ALL COALESCE ( COUNT( * ), - 21 * - 8 - - - 52, - 73 * + - 45 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL COALESCE ( COUNT ( * ), - 21 * - 8 - - - 52, - 73 * + - 45 ) AS col2
----
1

query I rowsort
SELECT - 31 * - + 6 AS col2
----
186

query I rowsort
SELECT DISTINCT 42 + + 84 AS col0
----
126

query I rowsort
SELECT ALL + 67 + 36
----
103

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

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

query I rowsort
SELECT DISTINCT - 49 - - - 95
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT - COALESCE ( + - 98, - + 89 + - NULLIF ( + + COUNT( * ), 23 ), - + 85 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-2355
SELECT - COALESCE ( + - 98, - + 89 + - NULLIF ( + + COUNT ( * ), 23 ), - + 85 ) AS col0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2356
SELECT ALL - 31 - + 17 DIV 58 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL - 31 - + 17 / 58 AS col2
----
-31

query I rowsort
SELECT ALL 41 * - 58 AS col0
----
-2378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2358
SELECT CAST( + MIN( DISTINCT - 35 ) AS SIGNED ), 96 + - 35 AS col1
----
-35
61

skipif mysql # not compatible
query II rowsort label-2358
SELECT CAST ( + MIN ( DISTINCT - 35 ) AS INTEGER ), 96 + - 35 AS col1
----
-35
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT + 71 * - - COALESCE ( - 58, COALESCE ( - 2, + 12 + - 51, + + 20, MIN( ALL + 27 ) ) ) AS col0
----
-4118

skipif mysql # not compatible
query I rowsort label-2359
SELECT + 71 * - - COALESCE ( - 58, COALESCE ( - 2, + 12 + - 51, + + 20, MIN ( ALL + 27 ) ) ) AS col0
----
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT DISTINCT MIN( - + ( + - 12 ) ) * - 62 col2
----
-744

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT MIN ( - + ( + - 12 ) ) * - 62 col2
----
-744

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT COUNT( - 22 ) * + 55 - - 61 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-2361
SELECT COUNT ( - 22 ) * + 55 - - 61 AS col2
----
116

query I rowsort
SELECT ALL + 77 * - + 0 AS col0
----
0

query I rowsort
SELECT + CASE - 82 WHEN + + AVG ( DISTINCT + 76 ) THEN + 0 END
----
NULL

query I rowsort
SELECT + 35 * - + 58
----
-2030

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2367
SELECT DISTINCT + 55, - COUNT( * ) col1
----
55
-1

skipif mysql # not compatible
query II rowsort label-2367
SELECT DISTINCT + 55, - COUNT ( * ) col1
----
55
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT - - 56 * + + MAX( ALL + + 30 )
----
1680

skipif mysql # not compatible
query I rowsort label-2368
SELECT - - 56 * + + MAX ( ALL + + 30 )
----
1680

onlyif mysql # DIV for integer division: 
query I rowsort label-2369
SELECT + 57 + + 50 + + 51 DIV - 23
----
105

skipif mysql # not compatible
query I rowsort label-2369
SELECT + 57 + + 50 + + 51 / - 23
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2370
SELECT 92 * - CAST( NULL AS SIGNED ) - - 78 + 0 + + + 3 + + 78 * + 8 + + COUNT( * ) * CASE 1 WHEN COUNT( * ) THEN 88 * 45 / + 83 + - 74 WHEN 87 * - CAST( NULL AS DECIMAL ) THEN NULL WHEN - 0 * - - 57 / - CAST( NULL AS SIGNED ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2370
SELECT 92 * - CAST ( NULL AS INTEGER ) - - 78 + 0 + + + 3 + + 78 * + 8 + + COUNT ( * ) * CASE 1 WHEN COUNT ( * ) THEN 88 * 45 / + 83 + - 74 WHEN 87 * - CAST ( NULL AS REAL ) THEN NULL WHEN - 0 * - - 57 / - CAST ( NULL AS INTEGER ) THEN NULL END AS col1
----
NULL

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

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

query II rowsort
SELECT 86 col2, - COALESCE ( 81, - 30 ) + + 85 AS col2
----
86
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2373
SELECT - 50 DIV - 22 - - 66 DIV - + MAX( ALL - NULLIF ( + + ( - + 52 ), + 89 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2373
SELECT - 50 / - 22 - - 66 / - + MAX ( ALL - NULLIF ( + + ( - + 52 ), + 89 ) ) AS col0
----
1

query I rowsort
SELECT ALL 19 * + 40
----
760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2375
SELECT + COUNT( * ) * + 20 + - 54 AS col1, - NULLIF ( - - 17, + 57 + - + 79 ) + + 66 + COUNT( * ) * 53 * - CASE - - 80 WHEN + ( 36 ) THEN + 73 - + NULLIF ( - 3, - 39 + - - CAST( NULL AS SIGNED ) ) + - 93 + + - COUNT( * ) * + - COUNT( * ) ELSE NULL END AS col2
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-2375
SELECT + COUNT ( * ) * + 20 + - 54 AS col1, - NULLIF ( - - 17, + 57 + - + 79 ) + + 66 + COUNT ( * ) * 53 * - CASE - - 80 WHEN + ( 36 ) THEN + 73 - + NULLIF ( - 3, - 39 + - - CAST ( NULL AS INTEGER ) ) + - 93 + + - COUNT ( * ) * + - COUNT ( * ) ELSE NULL END AS col2
----
-34
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2376
SELECT DISTINCT + MIN( - + 10 ) * + CAST( NULL AS SIGNED )
----
NULL

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

query I rowsort
SELECT 57 * 68 + - 72 + - 76
----
3728

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT ALL - - 75 * + MAX( - 93 ) + + 22 * - 5
----
-7085

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL - - 75 * + MAX ( - 93 ) + + 22 * - 5
----
-7085

query I rowsort
SELECT ALL + + 9 * - 31 + - 7
----
-286

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2381
SELECT + 44 * - 21 * 81 + - CAST( NULL AS SIGNED ) - + 60 + + - 35 * 4 * 24 AS col2, 11
----
NULL
11

skipif mysql # not compatible
query II rowsort label-2381
SELECT + 44 * - 21 * 81 + - CAST ( NULL AS INTEGER ) - + 60 + + - 35 * 4 * 24 AS col2, 11
----
NULL
11

query I rowsort
SELECT + 70 + - 88
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT DISTINCT + 61 + + - 27 * ( - COUNT( DISTINCT - 98 ) ) - 3 - - 46 * - 71 * + - 12 AS col1
----
39277

skipif mysql # not compatible
query I rowsort label-2383
SELECT DISTINCT + 61 + + - 27 * ( - COUNT ( DISTINCT - 98 ) ) - 3 - - 46 * - 71 * + - 12 AS col1
----
39277

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

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

query I rowsort
SELECT 15 + - 47 AS col0
----
-32

query II rowsort
SELECT DISTINCT 86, 16 AS col0
----
86
16

query I rowsort
SELECT DISTINCT 72 - 6 col1
----
66

query I rowsort
SELECT 82 * - + 61 col1
----
-5002

query II rowsort
SELECT ALL 93 AS col2, 91
----
93
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT 89 - + - SUM( 56 ) AS col1
----
145

skipif mysql # not compatible
query I rowsort label-2390
SELECT 89 - + - SUM ( 56 ) AS col1
----
145

query I rowsort
SELECT DISTINCT + 63 * - + 93
----
-5859

query II rowsort
SELECT - 3, 27 AS col0
----
-3
27

query I rowsort
SELECT 79 + 6 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT 88 + - COUNT( * ) + - 22
----
65

skipif mysql # not compatible
query I rowsort label-2394
SELECT 88 + - COUNT ( * ) + - 22
----
65

query I rowsort
SELECT ALL + 0 - + 68 AS col0
----
-68

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

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

query I rowsort
SELECT ALL - COALESCE ( + - 85, 81 * - ( 7 ) * - + 17, + 82 )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2398
SELECT DISTINCT - 19 DIV 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT - 19 / 86 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2399
SELECT 17 DIV - CAST( - + AVG ( DISTINCT - - 94 ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2399
SELECT 17 / - CAST ( - + AVG ( DISTINCT - - 94 ) AS INTEGER ) AS col1
----
0

query I rowsort
SELECT 23 + + 19
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2401
SELECT - 84 * - CAST( NULL AS SIGNED ) + ( COUNT( * ) ) + + ( - 89 ) * 22 + 38 * 22 * 11 * + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT - 84 * - CAST ( NULL AS INTEGER ) + ( COUNT ( * ) ) + + ( - 89 ) * 22 + 38 * 22 * 11 * + 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2402
SELECT + - 12 AS col2, - 82 * - - COUNT( * ) + + - 6 * + + COUNT( 20 ) * + + 96 + + 37 - - + 12 + 88 AS col0
----
-12
-521

skipif mysql # not compatible
query II rowsort label-2402
SELECT + - 12 AS col2, - 82 * - - COUNT ( * ) + + - 6 * + + COUNT ( 20 ) * + + 96 + + 37 - - + 12 + 88 AS col0
----
-12
-521

query I rowsort
SELECT ALL + 55 * - 37 * - - 38
----
-77330

onlyif mysql # aggregate syntax: 
query II rowsort label-2404
SELECT ALL - ( 57 ) + + MAX( DISTINCT + + 38 ) AS col2, 13 + + + COUNT( * ) AS col1
----
-19
14

skipif mysql # not compatible
query II rowsort label-2404
SELECT ALL - ( 57 ) + + MAX ( DISTINCT + + 38 ) AS col2, 13 + + + COUNT ( * ) AS col1
----
-19
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2405
SELECT ALL + NULLIF ( 19, 22 ) + + 1, 27 * MAX( DISTINCT - 23 ) * + 98 + - COUNT( * ) + - 75 * - - 62 + + COUNT( DISTINCT - 90 ) + - MIN( - + 64 ) + + - 48 AS col0
----
20
-65492

skipif mysql # not compatible
query II rowsort label-2405
SELECT ALL + NULLIF ( 19, 22 ) + + 1, 27 * MAX ( DISTINCT - 23 ) * + 98 + - COUNT ( * ) + - 75 * - - 62 + + COUNT ( DISTINCT - 90 ) + - MIN ( - + 64 ) + + - 48 AS col0
----
20
-65492

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

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

query I rowsort
SELECT DISTINCT - ( 53 ) AS col0
----
-53

query II rowsort
SELECT + 30, 71 AS col0
----
30
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2409
SELECT + 75 * + COALESCE ( - 39, + MAX( ALL ( + + 55 ) ), - - ( + - COUNT( - + NULLIF ( + + 85, 47 + 93 + CAST( NULL AS SIGNED ) ) ) ) ) + 72
----
-2853

skipif mysql # not compatible
query I rowsort label-2409
SELECT + 75 * + COALESCE ( - 39, + MAX ( ALL ( + + 55 ) ), - - ( + - COUNT ( - + NULLIF ( + + 85, 47 + 93 + CAST ( NULL AS INTEGER ) ) ) ) ) + 72
----
-2853

query II rowsort
SELECT 53 - 76 + - - 86 + 23 AS col0, 51 * + 56 AS col0
----
86
2856

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

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

query I rowsort
SELECT ALL - 62 * - - NULLIF ( + 33, 22 + + 51 ) AS col2
----
-2046

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT ALL COUNT( DISTINCT 22 )
----
1

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL COUNT ( DISTINCT 22 )
----
1

query II rowsort
SELECT - 64, - 14 AS col0
----
-64
-14

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2416
SELECT ALL CAST( NULL AS SIGNED ) - - + 93 + + 18 / - 29 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL CAST ( NULL AS INTEGER ) - - + 93 + + 18 / - 29 * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 31 * - - 92
----
2852

query I rowsort
SELECT DISTINCT 7 - + 96 col0
----
-89

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

query I rowsort
SELECT 1 - - 92 + + CASE - + 53 WHEN - NULLIF ( 64, 12 * + + 51 + - 52 ) THEN 36 END AS col0
----
NULL

query II rowsort
SELECT 82 * 31, 71 AS col1
----
2542
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2422
SELECT 17 * 54 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2422
SELECT 17 * 54 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT DISTINCT - COUNT( * ) * - 93 * + 75
----
6975

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT - COUNT ( * ) * - 93 * + 75
----
6975

query I rowsort
SELECT 7 * + 13 AS col0
----
91

query I rowsort
SELECT ALL 0 * 2 AS col2
----
0

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

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

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

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

query I rowsort
SELECT 97 * + - 38 col2
----
-3686

query I rowsort
SELECT 33 * - + 66 * - + 37 * 14 AS col2
----
1128204

query I rowsort
SELECT ALL - 17 * 99 * 60 + 71 AS col1
----
-100909

query I rowsort
SELECT - 46 * 40 - 36 AS col0
----
-1876

onlyif mysql # DIV for integer division: 
query I rowsort label-2432
SELECT 52 DIV 44 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2432
SELECT 52 / 44 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2433
SELECT ALL - 79 DIV ( + - 74 ) DIV - 38
----
0

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL - 79 / ( + - 74 ) / - 38
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2434
SELECT DISTINCT + 1 * 34 * + MIN( DISTINCT + + 84 ) + - 4 - + 61 + 66 DIV 62 * + CAST( - - 53 AS SIGNED ) + - 42 + + 71
----
2873

skipif mysql # not compatible
query I rowsort label-2434
SELECT DISTINCT + 1 * 34 * + MIN ( DISTINCT + + 84 ) + - 4 - + 61 + 66 / 62 * + CAST ( - - 53 AS INTEGER ) + - 42 + + 71
----
2873

query I rowsort
SELECT ALL - 65 * - + 79 * + - 75 + + + 70 col2
----
-385055

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2436
SELECT COALESCE ( + - CAST( NULL AS SIGNED ), + 59 ) DIV 22
----
2

skipif mysql # not compatible
query I rowsort label-2436
SELECT COALESCE ( + - CAST ( NULL AS INTEGER ), + 59 ) / 22
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2437
SELECT ALL - ( + 64 ) DIV + - ( 77 )
----
0

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL - ( + 64 ) / + - ( 77 )
----
0

query I rowsort
SELECT + 53 * 43 - - + 90
----
2369

onlyif mysql # aggregate syntax: 
query II rowsort label-2439
SELECT + + MIN( - 42 ) AS col2, + 61 AS col2
----
-42
61

skipif mysql # not compatible
query II rowsort label-2439
SELECT + + MIN ( - 42 ) AS col2, + 61 AS col2
----
-42
61

query I rowsort
SELECT - ( + 77 ) * 33 AS col0
----
-2541

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT ALL + NULLIF ( COUNT( 80 ), - 34 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL + NULLIF ( COUNT ( 80 ), - 34 ) AS col0
----
1

query II rowsort
SELECT + ( - 66 ), - 34 AS col2
----
-66
-34

query II rowsort
SELECT ALL - - 77 - - + 66 AS col1, ( + 98 ) AS col2
----
143
98

query I rowsort
SELECT - - 22 * - ( + 91 )
----
-2002

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

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL + COUNT ( DISTINCT - 19 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2446
SELECT DISTINCT + - CASE + 44 WHEN 14 * + + 1 THEN NULL ELSE NULLIF ( - 59, - 51 ) DIV 64 END, - 94 + + COUNT( * ) AS col0
----
0
-93

skipif mysql # not compatible
query II rowsort label-2446
SELECT DISTINCT + - CASE + 44 WHEN 14 * + + 1 THEN NULL ELSE NULLIF ( - 59, - 51 ) / 64 END, - 94 + + COUNT ( * ) AS col0
----
0
-93

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

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

query II rowsort
SELECT 71, - 23 col2
----
71
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-2449
SELECT 44 AS col1, 67 * - 46 - + + CASE 93 WHEN 1 THEN - COALESCE ( - + 98, + + 41, 55 / + - 28 ) + + 2 * - COALESCE ( 47, - COUNT( * ) * + 43 ) + + ( ( - + 92 ) ) WHEN + - COUNT( * ) THEN + 74 / - COUNT( * ) + + 15 END
----
44
NULL

skipif mysql # not compatible
query II rowsort label-2449
SELECT 44 AS col1, 67 * - 46 - + + CASE 93 WHEN 1 THEN - COALESCE ( - + 98, + + 41, 55 / + - 28 ) + + 2 * - COALESCE ( 47, - COUNT ( * ) * + 43 ) + + ( ( - + 92 ) ) WHEN + - COUNT ( * ) THEN + 74 / - COUNT ( * ) + + 15 END
----
44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT - CASE + 73 WHEN + 62 THEN + - COALESCE ( 23, + 71, + 62, + - 70 * + 39 ) + + 37 * 93 * + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2450
SELECT - CASE + 73 WHEN + 62 THEN + - COALESCE ( 23, + 71, + 62, + - 70 * + 39 ) + + 37 * 93 * + COUNT ( * ) END AS col1
----
NULL

query II rowsort
SELECT ALL 91, - 75 * + 26 col2
----
91
-1950

query I rowsort
SELECT ALL 19 * 77 AS col2
----
1463

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT + COUNT( * ) / - + CASE + 64 WHEN COUNT( * ) THEN NULL WHEN SUM( + CASE + 64 WHEN + + 19 THEN NULL ELSE + 68 END ) THEN - + 1 WHEN - ( + 1 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT + COUNT ( * ) / - + CASE + 64 WHEN COUNT ( * ) THEN NULL WHEN SUM ( + CASE + 64 WHEN + + 19 THEN NULL ELSE + 68 END ) THEN - + 1 WHEN - ( + 1 ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + 30 * 55
----
1650

query I rowsort
SELECT ALL 12 * NULLIF ( 22, 80 * - + 50 - - 18 )
----
264

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

query I rowsort
SELECT ALL 83 * - 40 AS col0
----
-3320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2458
SELECT ALL COALESCE ( + 96, + + 65 * - ( - + 37 ) * + + 32 ) + + 7 + + CASE 62 WHEN + 9 * - - 53 * + MIN( - 55 ) THEN NULL WHEN - 47 / + + COUNT( * ) + + 39 - + - 59 * 31 / 85 * 12 * - - 72 THEN - 17 END * - 72 + ( + COUNT( * ) ) * ( + 82 ) - CAST( NULL AS SIGNED ) + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL COALESCE ( + 96, + + 65 * - ( - + 37 ) * + + 32 ) + + 7 + + CASE 62 WHEN + 9 * - - 53 * + MIN ( - 55 ) THEN NULL WHEN - 47 / + + COUNT ( * ) + + 39 - + - 59 * 31 / 85 * 12 * - - 72 THEN - 17 END * - 72 + ( + COUNT ( * ) ) * ( + 82 ) - CAST ( NULL AS INTEGER ) + 77
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2459
SELECT DISTINCT COUNT( * ) * MIN( 99 ) AS col2, + 89
----
99
89

skipif mysql # not compatible
query II rowsort label-2459
SELECT DISTINCT COUNT ( * ) * MIN ( 99 ) AS col2, + 89
----
99
89

query I rowsort
SELECT ALL 76 + 39
----
115

query I rowsort
SELECT + 82 + - - ( - ( + - 43 ) ) + - + 22 AS col1
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-2462
SELECT + 88 - + - 95 + COUNT( * ), + ( 91 ) + - - 51 * + 53 AS col2
----
184
2794

skipif mysql # not compatible
query II rowsort label-2462
SELECT + 88 - + - 95 + COUNT ( * ), + ( 91 ) + - - 51 * + 53 AS col2
----
184
2794

query I rowsort
SELECT + 64 + 85 AS col2
----
149

query I rowsort
SELECT - 40 + + ( - - 70 )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2465
SELECT ALL 46 + - 56 + - CAST( NULL AS SIGNED ) / - - 76 * + 6 + + 55 + - 37 / 61 + - 46 AS col1, - 57 AS col1
----
NULL
-57

skipif mysql # not compatible
query II rowsort label-2465
SELECT ALL 46 + - 56 + - CAST ( NULL AS INTEGER ) / - - 76 * + 6 + + 55 + - 37 / 61 + - 46 AS col1, - 57 AS col1
----
NULL
-57

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

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

query I rowsort
SELECT + + 44 + - + 15 AS col2
----
29

query I rowsort
SELECT ALL + 39 + + - 23 AS col0
----
16

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2470
SELECT ALL - 46 DIV + + 34 + - + 62 + 66 + + 52 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL - 46 / + + 34 + - + 62 + 66 + + 52 AS col1
----
55

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2472
SELECT ALL CAST( + 88 AS SIGNED ) * + 92 AS col2, + CASE CAST( + - 70 AS SIGNED ) WHEN - NULLIF ( 61, - - 2 + 17 + + - 56 ) - + 90 + + 83 THEN + + 14 * + 97 + 78 WHEN - 15 THEN SUM( ALL + - ( + 24 ) ) - + 82 + + - COALESCE ( - 5, + - 94 * + 68 + + 23 * + COUNT( * ) + COUNT( * ) * 5 + CAST( + 54 AS SIGNED ) * + ( + CAST( NULL AS SIGNED ) ), - 86 ) * + 99 END * 41 AS col0
----
8096
NULL

skipif mysql # not compatible
query II rowsort label-2472
SELECT ALL CAST ( + 88 AS INTEGER ) * + 92 AS col2, + CASE CAST ( + - 70 AS INTEGER ) WHEN - NULLIF ( 61, - - 2 + 17 + + - 56 ) - + 90 + + 83 THEN + + 14 * + 97 + 78 WHEN - 15 THEN SUM ( ALL + - ( + 24 ) ) - + 82 + + - COALESCE ( - 5, + - 94 * + 68 + + 23 * + COUNT ( * ) + COUNT ( * ) * 5 + CAST ( + 54 AS INTEGER ) * + ( + CAST ( NULL AS INTEGER ) ), - 86 ) * + 99 END * 41 AS col0
----
8096
NULL

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

query I rowsort
SELECT - 96 + + + 39
----
-57

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2477
SELECT ALL 29 * 24 - + + COUNT( * ) col2, + 12 * + 15 * + + 77
----
695
13860

skipif mysql # not compatible
query II rowsort label-2477
SELECT ALL 29 * 24 - + + COUNT ( * ) col2, + 12 * + 15 * + + 77
----
695
13860

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

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

query I rowsort
SELECT DISTINCT 41 * + 56 AS col1
----
2296

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT - 85 + - 15 + + COUNT( * ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-2480
SELECT - 85 + - 15 + + COUNT ( * ) AS col0
----
-99

query II rowsort
SELECT DISTINCT + 64 AS col0, - 47
----
64
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2482
SELECT - CASE + CAST( NULL AS SIGNED ) WHEN - CAST( - 0 AS SIGNED ) THEN NULL WHEN 19 THEN + ( - 60 ) + 67 END * 90, + 24 + - 82 AS col2
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-2482
SELECT - CASE + CAST ( NULL AS INTEGER ) WHEN - CAST ( - 0 AS INTEGER ) THEN NULL WHEN 19 THEN + ( - 60 ) + 67 END * 90, + 24 + - 82 AS col2
----
NULL
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT - 12 * - ( + - ( - 68 ) ) * + SUM( 13 )
----
10608

skipif mysql # not compatible
query I rowsort label-2483
SELECT - 12 * - ( + - ( - 68 ) ) * + SUM ( 13 )
----
10608

onlyif mysql # aggregate syntax: 
query II rowsort label-2484
SELECT ALL + - 82 AS col2, SUM( 64 ) AS col1
----
-82
64

skipif mysql # not compatible
query II rowsort label-2484
SELECT ALL + - 82 AS col2, SUM ( 64 ) AS col1
----
-82
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2485
SELECT ALL + + 62 DIV - MAX( DISTINCT - + 55 ) + - 8 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL + + 62 / - MAX ( DISTINCT - + 55 ) + - 8 AS col1
----
-7

query I rowsort
SELECT - 56 - + 64
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT - + MAX( + 66 ) * - - 97 + - 20 AS col0
----
-6422

skipif mysql # not compatible
query I rowsort label-2487
SELECT - + MAX ( + 66 ) * - - 97 + - 20 AS col0
----
-6422

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT + - 80 * - 33 + + COUNT( * )
----
2641

skipif mysql # not compatible
query I rowsort label-2488
SELECT + - 80 * - 33 + + COUNT ( * )
----
2641

onlyif mysql # aggregate syntax: 
query II rowsort label-2489
SELECT DISTINCT + 80 * + COUNT( ALL 64 ) AS col2, + 2
----
80
2

skipif mysql # not compatible
query II rowsort label-2489
SELECT DISTINCT + 80 * + COUNT ( ALL 64 ) AS col2, + 2
----
80
2

query I rowsort
SELECT - 54 + 2 * + 19 * + 21
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT DISTINCT - COUNT( * ) * - 19
----
19

skipif mysql # not compatible
query I rowsort label-2491
SELECT DISTINCT - COUNT ( * ) * - 19
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2492
SELECT ALL 27 * + 13 + - COALESCE ( 42, + 42 * + MAX( ALL - 33 ) + - 65, - CASE - 70 WHEN + 30 * + COUNT( * ) + - + 51 / - NULLIF ( 60, - NULLIF ( 77, CAST( - - 35 AS SIGNED ) ) * + 99 * + 92 * + NULLIF ( - 58, - 51 * + - 99 + - 14 * 17 * 68 * 46 ) * MAX( ALL + 25 * - 47 ) ) * - 99 + AVG ( + 90 ) * - 67 THEN 85 * 31 WHEN - MIN( ALL - 98 ) THEN NULL END ) AS col0
----
309

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL 27 * + 13 + - COALESCE ( 42, + 42 * + MAX ( ALL - 33 ) + - 65, - CASE - 70 WHEN + 30 * + COUNT ( * ) + - + 51 / - NULLIF ( 60, - NULLIF ( 77, CAST ( - - 35 AS INTEGER ) ) * + 99 * + 92 * + NULLIF ( - 58, - 51 * + - 99 + - 14 * 17 * 68 * 46 ) * MAX ( ALL + 25 * - 47 ) ) * - 99 + AVG ( + 90 ) * - 67 THEN 85 * 31 WHEN - MIN ( ALL - 98 ) THEN NULL END ) AS col0
----
309

query I rowsort
SELECT - CASE 97 WHEN - 8 * + 2 + + 49 THEN 88 / 58 + + 2 + - 77 + 97 WHEN 79 THEN + 30 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 95 * - 89 * 6 * + 39 * - 40 + + 33 AS col0
----
79138833

query I rowsort
SELECT DISTINCT + 96 + - 49 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT ALL - COALESCE ( - - 13, COUNT( * ) * - - 40, + COUNT( * ) * - 29 ) + + 30 * - 54 AS col2
----
-1633

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL - COALESCE ( - - 13, COUNT ( * ) * - - 40, + COUNT ( * ) * - 29 ) + + 30 * - 54 AS col2
----
-1633

onlyif mysql # DIV for integer division: 
query II rowsort label-2497
SELECT + 41 DIV 29 AS col1, - 43 AS col2
----
1
-43

skipif mysql # not compatible
query II rowsort label-2497
SELECT + 41 / 29 AS col1, - 43 AS col2
----
1
-43

query I rowsort
SELECT - 52 * 7
----
-364

query I rowsort
SELECT - NULLIF ( 67, 25 ) AS col1
----
-67

query I rowsort
SELECT ALL - 42 + + 11
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2501
SELECT ALL CAST( + 74 AS SIGNED ) * + 48 AS col1
----
3552

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL CAST ( + 74 AS INTEGER ) * + 48 AS col1
----
3552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2502
SELECT DISTINCT 58 + - + 1 / CAST( NULL AS DECIMAL ) + + 45 + + COALESCE ( 29, - - 35 * 70 / + CAST( - COUNT( * ) AS SIGNED ) * - 68 + 83 * 83 - - - 76 + + ( + COUNT( * ) ) * + + COUNT( - 74 ), - 54 ) + + COUNT( * ) * + 45 * 68 + + - ( - 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT 58 + - + 1 / CAST ( NULL AS REAL ) + + 45 + + COALESCE ( 29, - - 35 * 70 / + CAST ( - COUNT ( * ) AS INTEGER ) * - 68 + 83 * 83 - - - 76 + + ( + COUNT ( * ) ) * + + COUNT ( - 74 ), - 54 ) + + COUNT ( * ) * + 45 * 68 + + - ( - 97 )
----
NULL

query I rowsort
SELECT DISTINCT + 70 * + + 32 AS col2
----
2240

onlyif mysql # DIV for integer division: 
query II rowsort label-2504
SELECT + + 7 DIV - + 64 AS col2, + 38
----
0
38

skipif mysql # not compatible
query II rowsort label-2504
SELECT + + 7 / - + 64 AS col2, + 38
----
0
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT + 24 + - 32 + + 19 * ( + COUNT( * ) ) * + 24 + 63 AS col0
----
511

skipif mysql # not compatible
query I rowsort label-2505
SELECT + 24 + - 32 + + 19 * ( + COUNT ( * ) ) * + 24 + 63 AS col0
----
511

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL - 27 - + COUNT( * ) + COUNT( * ) - + - 80 * - 12 * - 72 * - + CASE WHEN NOT ( NOT - 46 IS NULL ) THEN 10 + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL - 27 - + COUNT ( * ) + COUNT ( * ) - + - 80 * - 12 * - 72 * - + CASE WHEN NOT ( NOT - 46 IS NULL ) THEN 10 + 9 END
----
NULL

query I rowsort
SELECT + CASE - 43 WHEN - 70 THEN - 49 * 28 + - 73 * - 94 / 92 * - + 57 / 41 * - - NULLIF ( - 6, 17 * 60 + + - 2 * - 65 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT - MAX( - 35 )
----
35

skipif mysql # not compatible
query I rowsort label-2508
SELECT - MAX ( - 35 )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2509
SELECT - 81 * + 30 + + + CAST( NULL AS SIGNED ) - - 83 AS col0, 55 * 11 * - 29
----
NULL
-17545

skipif mysql # not compatible
query II rowsort label-2509
SELECT - 81 * + 30 + + + CAST ( NULL AS INTEGER ) - - 83 AS col0, 55 * 11 * - 29
----
NULL
-17545

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2510
SELECT + + ( 83 ) DIV + + 73 + ( + + COUNT( * ) ) + + 12 - + 58 AS col2, + 77
----
-44
77

skipif mysql # not compatible
query II rowsort label-2510
SELECT + + ( 83 ) / + + 73 + ( + + COUNT ( * ) ) + + 12 - + 58 AS col2, + 77
----
-44
77

query I rowsort
SELECT - 74 + + 4 + + 40 col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2512
SELECT ALL + - 2 * - NULLIF ( - + 89, 61 + + - CAST( NULL AS SIGNED ) ) AS col0
----
-178

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL + - 2 * - NULLIF ( - + 89, 61 + + - CAST ( NULL AS INTEGER ) ) AS col0
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT + ( - - 85 ) * - SUM( ALL - + 12 ) AS col2
----
1020

skipif mysql # not compatible
query I rowsort label-2513
SELECT + ( - - 85 ) * - SUM ( ALL - + 12 ) AS col2
----
1020

query I rowsort
SELECT ALL + 0 * - + 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2515
SELECT COUNT( * ) / - 25 + + - COALESCE ( + + 33, + COALESCE ( - 59, - - 84 ) + + + COUNT( * ) ) * - - 61 * - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + 93 + - 0 + + + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT COUNT ( * ) / - 25 + + - COALESCE ( + + 33, + COALESCE ( - 59, - - 84 ) + + + COUNT ( * ) ) * - - 61 * - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + 93 + - 0 + + + 47 AS col2
----
NULL

query I rowsort
SELECT + - NULLIF ( + - 15, - 82 )
----
15

query I rowsort
SELECT ALL + 51 * 99 AS col2
----
5049

onlyif mysql # DIV for integer division: 
query II rowsort label-2518
SELECT + 63 DIV - 17 AS col0, + 11
----
-3
11

skipif mysql # not compatible
query II rowsort label-2518
SELECT + 63 / - 17 AS col0, + 11
----
-3
11

query I rowsort
SELECT + 37 + - 77 - - - 54
----
-94

query I rowsort
SELECT DISTINCT 90 + + ( - 22 ) AS col1
----
68

query I rowsort
SELECT DISTINCT 48 + - + 73 * + + 78 AS col2
----
-5646

query I rowsort
SELECT ALL 7 * 59 * + 97
----
40061

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT 98 / CAST( NULL AS SIGNED ) * 22 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2523
SELECT 98 / CAST ( NULL AS INTEGER ) * 22 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT 1 + - 28 DIV + 10 col2
----
-1

skipif mysql # not compatible
query I rowsort label-2524
SELECT 1 + - 28 / + 10 col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2525
SELECT ALL 83 + - CASE + + 11 WHEN 33 * + SUM( - 91 ) THEN + CASE - CAST( 60 AS SIGNED ) WHEN + 48 / - 69 * + CAST( 17 AS SIGNED ) + - MAX( ALL - ( + + 52 ) ) * - 45 THEN + - 43 ELSE - + SUM( - CASE - - 68 WHEN - 60 THEN - 16 ELSE + 22 END ) END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL 83 + - CASE + + 11 WHEN 33 * + SUM ( - 91 ) THEN + CASE - CAST ( 60 AS INTEGER ) WHEN + 48 / - 69 * + CAST ( 17 AS INTEGER ) + - MAX ( ALL - ( + + 52 ) ) * - 45 THEN + - 43 ELSE - + SUM ( - CASE - - 68 WHEN - 60 THEN - 16 ELSE + 22 END ) END END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2526
SELECT ALL 1 + - NULLIF ( - - 84, 59 ) + - 27 + + - 60 + + 72 + 95 DIV + 62
----
-97

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL 1 + - NULLIF ( - - 84, 59 ) + - 27 + + - 60 + + 72 + 95 / + 62
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT ALL + CASE + + 70 WHEN - COUNT( * ) THEN + 87 WHEN + 65 * + - 80 THEN - - 6 * - - 78 ELSE NULL END + + - COUNT( * ) * - - 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL + CASE + + 70 WHEN - COUNT ( * ) THEN + 87 WHEN + 65 * + - 80 THEN - - 6 * - - 78 ELSE NULL END + + - COUNT ( * ) * - - 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT DISTINCT - MAX( + 66 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT - MAX ( + 66 ) AS col0
----
-66

query I rowsort
SELECT 23 * - 49
----
-1127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2530
SELECT + CASE - 82 WHEN + 38 THEN + 52 + + CAST( NULL AS SIGNED ) + + 77 + 46 / 44 + + COUNT( - 11 ) + - + SUM( CAST( 72 AS SIGNED ) ) * - 51 + - 14 END * - 85 + + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2530
SELECT + CASE - 82 WHEN + 38 THEN + 52 + + CAST ( NULL AS INTEGER ) + + 77 + 46 / 44 + + COUNT ( - 11 ) + - + SUM ( CAST ( 72 AS INTEGER ) ) * - 51 + - 14 END * - 85 + + 19 AS col0
----
NULL

query I rowsort
SELECT 33 * - 51
----
-1683

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ALL + NULLIF ( 98, + + 6 + + COUNT( * ) ) + 95 col2
----
193

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL + NULLIF ( 98, + + 6 + + COUNT ( * ) ) + 95 col2
----
193

query I rowsort
SELECT ALL - 55 * + 91
----
-5005

query I rowsort
SELECT ALL + 83 * 80 * - + 9 AS col1
----
-59760

query I rowsort
SELECT 23 + 84 AS col1
----
107

query II rowsort
SELECT ALL 18 col0, + 8 + + 87
----
18
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2537
SELECT 32 + CAST( NULL AS SIGNED ) - - + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2537
SELECT 32 + CAST ( NULL AS INTEGER ) - - + 54
----
NULL

query I rowsort
SELECT ALL - 11 - + 10 AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2539
SELECT ALL + ( + 24 ) * - + 41 + - CASE - + 67 WHEN + COUNT( * ) THEN NULL ELSE 92 + ( - CAST( - 41 AS SIGNED ) ) END
----
-1117

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL + ( + 24 ) * - + 41 + - CASE - + 67 WHEN + COUNT ( * ) THEN NULL ELSE 92 + ( - CAST ( - 41 AS INTEGER ) ) END
----
-1117

query I rowsort
SELECT 2 + 43
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2541
SELECT ALL - 31 - + - CASE + CAST( NULL AS SIGNED ) WHEN + CAST( - 29 AS SIGNED ) DIV + + 58 THEN - COUNT( ALL ( + 36 ) ) DIV + 3 - - 9 * + - 60 WHEN + 4 THEN 20 * 94 + 76 + - + 53 DIV NULLIF ( + 28, + 28 ) - + + COALESCE ( + - ( + 33 ), + 68 ) - + 94 * ( - CAST( NULL AS SIGNED ) ) + + 18 ELSE + 26 END
----
-5

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL - 31 - + - CASE + CAST ( NULL AS INTEGER ) WHEN + CAST ( - 29 AS INTEGER ) / + + 58 THEN - COUNT ( ALL ( + 36 ) ) / + 3 - - 9 * + - 60 WHEN + 4 THEN 20 * 94 + 76 + - + 53 / NULLIF ( + 28, + 28 ) - + + COALESCE ( + - ( + 33 ), + 68 ) - + 94 * ( - CAST ( NULL AS INTEGER ) ) + + 18 ELSE + 26 END
----
-5

query I rowsort
SELECT 35 * - 55 * - + 4
----
7700

onlyif mysql # DIV for integer division: 
query I rowsort label-2543
SELECT DISTINCT + 40 DIV + 42 * + 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT + 40 / + 42 * + 81 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT + ( - NULLIF ( - COUNT( * ), + COUNT( * ) ) ) * + - 10
----
-10

skipif mysql # not compatible
query I rowsort label-2544
SELECT + ( - NULLIF ( - COUNT ( * ), + COUNT ( * ) ) ) * + - 10
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2545
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * - 54 * + - 89
----
-4806

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * - 54 * + - 89
----
-4806

query I rowsort
SELECT - 44 + 40 + + - ( + 29 ) col1
----
-33

query I rowsort
SELECT DISTINCT - - 95 * - 12
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT DISTINCT - + NULLIF ( + + SUM( + 53 ), + MIN( + + 53 ) - + 69 + + 72 * + 87 - + 48 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT - + NULLIF ( + + SUM ( + 53 ), + MIN ( + + 53 ) - + 69 + + 72 * + 87 - + 48 ) AS col2
----
-53

query I rowsort
SELECT ALL - 46 * + + 67
----
-3082

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT + - COUNT( 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-2550
SELECT + - COUNT ( 22 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2551
SELECT ALL + 71 * + - CAST( COUNT( * ) AS SIGNED ) AS col1, COUNT( - 77 ) DIV COUNT( * ) - - + 39
----
-71
40

skipif mysql # not compatible
query II rowsort label-2551
SELECT ALL + 71 * + - CAST ( COUNT ( * ) AS INTEGER ) AS col1, COUNT ( - 77 ) / COUNT ( * ) - - + 39
----
-71
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2552
SELECT ALL 64 * + COUNT( * ) + + - SUM( + CAST( - 86 AS SIGNED ) )
----
150

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL 64 * + COUNT ( * ) + + - SUM ( + CAST ( - 86 AS INTEGER ) )
----
150

query I rowsort
SELECT 85 * - 37 + + 32 + + 76 col1
----
-3037

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2554
SELECT DISTINCT - COALESCE ( 86, + 21 + + - 22 * + COUNT( * ) + + 82 DIV + 77 + - 84, + 30 * + 12 DIV - NULLIF ( + - 27, - + 83 ) + + 72 DIV - 73 * + 8 ) AS col0, - COUNT( * ) * - + COUNT( * ) AS col1
----
-86
1

skipif mysql # not compatible
query II rowsort label-2554
SELECT DISTINCT - COALESCE ( 86, + 21 + + - 22 * + COUNT ( * ) + + 82 / + 77 + - 84, + 30 * + 12 / - NULLIF ( + - 27, - + 83 ) + + 72 / - 73 * + 8 ) AS col0, - COUNT ( * ) * - + COUNT ( * ) AS col1
----
-86
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT ALL COUNT( * ) + - + 7 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL COUNT ( * ) + - + 7 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT ALL - - NULLIF ( 52, + + COUNT( * ) ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL - - NULLIF ( 52, + + COUNT ( * ) ) AS col2
----
52

query II rowsort
SELECT DISTINCT - 30 AS col2, + 67 AS col1
----
-30
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT ( + 92 ) * + SUM( DISTINCT ( 34 ) ) * + + 54 * - 78 * - + 79 AS col2
----
1040835744

skipif mysql # not compatible
query I rowsort label-2558
SELECT ( + 92 ) * + SUM ( DISTINCT ( 34 ) ) * + + 54 * - 78 * - + 79 AS col2
----
1040835744

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL COUNT( * ) + - + 36 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL COUNT ( * ) + - + 36 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-2560
SELECT + COUNT( * ), 49 * 31 col1
----
1
1519

skipif mysql # not compatible
query II rowsort label-2560
SELECT + COUNT ( * ), 49 * 31 col1
----
1
1519

query II rowsort
SELECT 6 AS col1, 98
----
6
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2562
SELECT DISTINCT + CAST( 80 AS SIGNED ) + + ( + + 37 ) AS col2
----
117

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT + CAST ( 80 AS INTEGER ) + + ( + + 37 ) AS col2
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2563
SELECT DISTINCT + 79 - - 84 - - COALESCE ( - NULLIF ( - CASE - 78 WHEN - 14 THEN + - 99 WHEN 30 THEN NULL ELSE - 7 END, - - 21 ), + - 96 ) DIV - 60 - + COALESCE ( - - 15, + - ( + 99 ) + + 35, MAX( - 21 ) )
----
148

skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT + 79 - - 84 - - COALESCE ( - NULLIF ( - CASE - 78 WHEN - 14 THEN + - 99 WHEN 30 THEN NULL ELSE - 7 END, - - 21 ), + - 96 ) / - 60 - + COALESCE ( - - 15, + - ( + 99 ) + + 35, MAX ( - 21 ) )
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-2564
SELECT ALL - 24 DIV + + 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL - 24 / + + 88 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2565
SELECT DISTINCT ( MIN( DISTINCT - CAST( + 61 AS SIGNED ) ) ) - - 45 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT ( MIN ( DISTINCT - CAST ( + 61 AS INTEGER ) ) ) - - 45 AS col2
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2566
SELECT DISTINCT - 34 DIV + + MIN( + NULLIF ( 88, - 95 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT - 34 / + + MIN ( + NULLIF ( 88, - 95 ) )
----
0

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

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

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

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

query II rowsort
SELECT 27, 95 * - - 65 AS col1
----
27
6175

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT + 2 DIV + + ( 14 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2570
SELECT + 2 / + + ( 14 ) col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2571
SELECT ALL + - 10 * - CASE MIN( ALL COALESCE ( - + 88, - - 44 ) ) WHEN + CAST( + 90 AS DECIMAL ) THEN + + 38 / 67 WHEN - - ( 84 ) * + 61 * + 97 * - + 98 THEN + 55 ELSE NULL END AS col0, 17 AS col2
----
NULL
17

skipif mysql # not compatible
query II rowsort label-2571
SELECT ALL + - 10 * - CASE MIN ( ALL COALESCE ( - + 88, - - 44 ) ) WHEN + CAST ( + 90 AS REAL ) THEN + + 38 / 67 WHEN - - ( 84 ) * + 61 * + 97 * - + 98 THEN + 55 ELSE NULL END AS col0, 17 AS col2
----
NULL
17

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

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

query II rowsort
SELECT DISTINCT 5 AS col2, 3
----
5
3

query I rowsort
SELECT ALL + ( + 44 ) col2
----
44

query I rowsort
SELECT DISTINCT - - 68 * - - 62 + - + 2 AS col1
----
4214

query I rowsort
SELECT - - 6 * + + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT - 9 + + 49 + 89 * + 22 * - COUNT( * ) * 60 + - ( - 66 ) * COUNT( * ) col1
----
-117374

skipif mysql # not compatible
query I rowsort label-2577
SELECT - 9 + + 49 + 89 * + 22 * - COUNT ( * ) * 60 + - ( - 66 ) * COUNT ( * ) col1
----
-117374

query II rowsort
SELECT - + 65 AS col2, + 61
----
-65
61

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

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

query I rowsort
SELECT - ( - + 93 ) + 97
----
190

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2582
SELECT - 36 / 68 / CAST( NULL AS SIGNED ) * - 55 * - AVG ( ALL - 98 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2582
SELECT - 36 / 68 / CAST ( NULL AS INTEGER ) * - 55 * - AVG ( ALL - 98 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2583
SELECT ALL 43 * 35 * ( NULLIF ( - - 44, - CAST( NULL AS DECIMAL ) + - - 28 - + 94 + + 97 + + COUNT( * ) * 67 + + + 80 + + 2 - + COALESCE ( + - 37, + COALESCE ( - COALESCE ( - COUNT( * ), 35 * + - 24 - + + 16 ), - + 95, + 12 ) * - COUNT( * ) + + COALESCE ( 9, COUNT( * ) * - CAST( NULL AS DECIMAL ), - + 91 / + 80 + - 4 * ( + AVG ( DISTINCT + 73 ) ) ), + 79, - 73 ) * 95 * CASE + 28 + COALESCE ( - 91, 33 ) * - 57 WHEN + 44 + - 4 THEN NULL WHEN + ( - 30 ) * - 88 - - 2 THEN + 24 + 10 END ) ) + - COUNT( * )
----
66219

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL 43 * 35 * ( NULLIF ( - - 44, - CAST ( NULL AS REAL ) + - - 28 - + 94 + + 97 + + COUNT ( * ) * 67 + + + 80 + + 2 - + COALESCE ( + - 37, + COALESCE ( - COALESCE ( - COUNT ( * ), 35 * + - 24 - + + 16 ), - + 95, + 12 ) * - COUNT ( * ) + + COALESCE ( 9, COUNT ( * ) * - CAST ( NULL AS REAL ), - + 91 / + 80 + - 4 * ( + AVG ( DISTINCT + 73 ) ) ), + 79, - 73 ) * 95 * CASE + 28 + COALESCE ( - 91, 33 ) * - 57 WHEN + 44 + - 4 THEN NULL WHEN + ( - 30 ) * - 88 - - 2 THEN + 24 + 10 END ) ) + - COUNT ( * )
----
66219

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT - 34 * + COUNT( + 98 ) - - 41 + 63 * + + 18 * + - 50
----
-56693

skipif mysql # not compatible
query I rowsort label-2584
SELECT - 34 * + COUNT ( + 98 ) - - 41 + 63 * + + 18 * + - 50
----
-56693

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT ALL + CASE + 12 WHEN 62 THEN NULL ELSE + SUM( 48 ) + + COUNT( * ) + - + 45 END AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL + CASE + 12 WHEN 62 THEN NULL ELSE + SUM ( 48 ) + + COUNT ( * ) + - + 45 END AS col1
----
4

query I rowsort
SELECT ALL + + 69 * 41 + - 77 AS col2
----
2752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2587
SELECT + + 53 / + + MAX( ALL - 19 ) * + + CAST( NULL AS SIGNED ) * - + 95 * MIN( ALL + CAST( NULL AS SIGNED ) ) + + + 96 * + 43 * + COALESCE ( + 93, 7 * 95 / + - 20, - CAST( + COALESCE ( 72, COUNT( * ) + + 93 + - - 23, COUNT( DISTINCT - 60 ), 82 ) AS SIGNED ) * - + 89 ) / + 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2587
SELECT + + 53 / + + MAX ( ALL - 19 ) * + + CAST ( NULL AS INTEGER ) * - + 95 * MIN ( ALL + CAST ( NULL AS INTEGER ) ) + + + 96 * + 43 * + COALESCE ( + 93, 7 * 95 / + - 20, - CAST ( + COALESCE ( 72, COUNT ( * ) + + 93 + - - 23, COUNT ( DISTINCT - 60 ), 82 ) AS INTEGER ) * - + 89 ) / + 70 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT ALL 38 * - MIN( - 55 ) + - 66 + + 52 AS col2
----
2076

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL 38 * - MIN ( - 55 ) + - 66 + + 52 AS col2
----
2076

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

skipif mysql # not compatible
query I rowsort label-2589
SELECT DISTINCT - 90 / + + CAST ( NULL AS REAL ) + - COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT ALL + COUNT( * ) * - 43 * 77 + COUNT( * )
----
-3310

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL + COUNT ( * ) * - 43 * 77 + COUNT ( * )
----
-3310

query I rowsort
SELECT ALL - 82 * 56
----
-4592

query I rowsort
SELECT DISTINCT + 96 * + + 68 + - 16 AS col0
----
6512

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT + NULLIF ( - ( COUNT( * ) ), 12 + CASE - 38 WHEN + 68 + + 27 / - - CASE + ( + + COUNT( * ) ) WHEN + COALESCE ( - 60, + 56 * - ( + 95 ) ) THEN + NULLIF ( - - COUNT( * ), 9 + 15 * + COALESCE ( 8, - 37, + 37 ) * - 61 + - + ( + 21 ) + CASE - COUNT( * ) WHEN + 5 THEN NULL WHEN + 87 THEN + 23 * COUNT( * ) WHEN - 32 THEN NULL END ) ELSE - 26 END THEN 86 * 55 + - 30 END / COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2593
SELECT + NULLIF ( - ( COUNT ( * ) ), 12 + CASE - 38 WHEN + 68 + + 27 / - - CASE + ( + + COUNT ( * ) ) WHEN + COALESCE ( - 60, + 56 * - ( + 95 ) ) THEN + NULLIF ( - - COUNT ( * ), 9 + 15 * + COALESCE ( 8, - 37, + 37 ) * - 61 + - + ( + 21 ) + CASE - COUNT ( * ) WHEN + 5 THEN NULL WHEN + 87 THEN + 23 * COUNT ( * ) WHEN - 32 THEN NULL END ) ELSE - 26 END THEN 86 * 55 + - 30 END / COUNT ( * ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2594
SELECT - 21 DIV - 90 * 54 + 81 * 27 + - + 80 AS col0
----
2107

skipif mysql # not compatible
query I rowsort label-2594
SELECT - 21 / - 90 * 54 + 81 * 27 + - + 80 AS col0
----
2107

query I rowsort
SELECT + 0 + 27 AS col0
----
27

query I rowsort
SELECT ALL + CASE + 13 WHEN 62 THEN + + 43 END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2597
SELECT CASE - + COUNT( * ) WHEN 56 THEN - CASE - COUNT( * ) WHEN - 20 * 53 THEN - ( MIN( ( + CAST( NULL AS DECIMAL ) ) ) ) END / - 14 WHEN + - 58 * 14 THEN - 45 * 79 + + 28 + - COALESCE ( + + COUNT( * ), 45 + + - 33, - 62 + ( - - 88 ) - - COALESCE ( - - COUNT( * ), 60 + - 95 + + - 73, - 43 ) ) / - 99 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT CASE - + COUNT ( * ) WHEN 56 THEN - CASE - COUNT ( * ) WHEN - 20 * 53 THEN - ( MIN ( ( + CAST ( NULL AS REAL ) ) ) ) END / - 14 WHEN + - 58 * 14 THEN - 45 * 79 + + 28 + - COALESCE ( + + COUNT ( * ), 45 + + - 33, - 62 + ( - - 88 ) - - COALESCE ( - - COUNT ( * ), 60 + - 95 + + - 73, - 43 ) ) / - 99 ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2599
SELECT + 58 * - - COUNT( * ), + 0 * + - 93 AS col0
----
58
0

skipif mysql # not compatible
query II rowsort label-2599
SELECT + 58 * - - COUNT ( * ), + 0 * + - 93 AS col0
----
58
0

query I rowsort
SELECT DISTINCT 81 * - 22 AS col1
----
-1782

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

skipif mysql # not compatible
query I rowsort label-2601
SELECT + 22 * - + COUNT ( * ) * + 4 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT - 28 * + + MIN( ALL + 71 )
----
-1988

skipif mysql # not compatible
query I rowsort label-2602
SELECT - 28 * + + MIN ( ALL + 71 )
----
-1988

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

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

query I rowsort
SELECT + + 34 + 9 + + 48
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2605
SELECT DISTINCT + COALESCE ( - 47, COUNT( DISTINCT + - 45 ) + 66 ) * - + MAX( DISTINCT - + 63 ) * + - 87 + + ( 48 ) AS col2, + MIN( ALL + 71 ) + + 79 col1
----
257655
150

skipif mysql # not compatible
query II rowsort label-2605
SELECT DISTINCT + COALESCE ( - 47, COUNT ( DISTINCT + - 45 ) + 66 ) * - + MAX ( DISTINCT - + 63 ) * + - 87 + + ( 48 ) AS col2, + MIN ( ALL + 71 ) + + 79 col1
----
257655
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2606
SELECT ALL - 95 * - 1 * + CAST( - 10 AS SIGNED )
----
-950

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL - 95 * - 1 * + CAST ( - 10 AS INTEGER )
----
-950

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT + 40 + MIN( + 12 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2607
SELECT + 40 + MIN ( + 12 ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT ALL 10 + - + SUM( - - 28 )
----
-18

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL 10 + - + SUM ( - - 28 )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2609
SELECT + CAST( + MAX( 69 ) AS SIGNED ) * + 13 AS col1
----
897

skipif mysql # not compatible
query I rowsort label-2609
SELECT + CAST ( + MAX ( 69 ) AS INTEGER ) * + 13 AS col1
----
897

query I rowsort
SELECT - 63 + 28 col1
----
-35

query I rowsort
SELECT + 6 * 42 col1
----
252

query I rowsort
SELECT - + ( - - 3 ) + 7
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2613
SELECT - + CASE 5 WHEN - - AVG ( DISTINCT 69 ) / 80 THEN + CAST( 18 AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT - + CASE 5 WHEN - - AVG ( DISTINCT 69 ) / 80 THEN + CAST ( 18 AS INTEGER ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 66 + 89 * - ( + + 31 ) AS col1
----
-2825

query I rowsort
SELECT - + 83 + + - 59
----
-142

query I rowsort
SELECT ALL - - ( - 67 ) * + 66 * + 55 col1
----
-243210

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

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

query II rowsort
SELECT DISTINCT ( 59 ) AS col2, 93
----
59
93

query I rowsort
SELECT DISTINCT + NULLIF ( - 55, + 74 ) AS col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2620
SELECT DISTINCT COUNT( - + 7 ) DIV - ( - 99 ) + - + 65 + - 27 + 80 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT COUNT ( - + 7 ) / - ( - 99 ) + - + 65 + - 27 + 80 AS col0
----
-12

query I rowsort
SELECT - 36 * - 13 AS col2
----
468

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2623
SELECT ALL - ( - 61 ) DIV - 57 - - 28 + - ( + + 82 )
----
-55

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL - ( - 61 ) / - 57 - - 28 + - ( + + 82 )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-2624
SELECT - 17 DIV 67 + + 60
----
60

skipif mysql # not compatible
query I rowsort label-2624
SELECT - 17 / 67 + + 60
----
60

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

skipif mysql # not compatible
query II rowsort label-2625
SELECT CAST ( NULL AS INTEGER ) col0, 61 AS col0
----
NULL
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2626
SELECT - 6 * - 42 DIV + COUNT( * ) col1
----
252

skipif mysql # not compatible
query I rowsort label-2626
SELECT - 6 * - 42 / + COUNT ( * ) col1
----
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2627
SELECT ALL + COUNT( * ) * ( - + COUNT( + 71 ) ) * + ( 72 ) + CAST( - 94 AS SIGNED ) AS col0, + 57 + + + 63 AS col1
----
-166
120

skipif mysql # not compatible
query II rowsort label-2627
SELECT ALL + COUNT ( * ) * ( - + COUNT ( + 71 ) ) * + ( 72 ) + CAST ( - 94 AS INTEGER ) AS col0, + 57 + + + 63 AS col1
----
-166
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT 16 - ( + 73 ) * + 80 * + + 58 * + - CASE - ( 12 ) WHEN - COALESCE ( + + 43, MIN( - 92 ) ) THEN + 26 * - - 42 WHEN + 87 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2628
SELECT 16 - ( + 73 ) * + 80 * + + 58 * + - CASE - ( 12 ) WHEN - COALESCE ( + + 43, MIN ( - 92 ) ) THEN + 26 * - - 42 WHEN + 87 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT ALL + NULLIF ( - COUNT( * ), - - 92 ) * 13 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL + NULLIF ( - COUNT ( * ), - - 92 ) * 13 AS col1
----
-13

query I rowsort
SELECT 22 * + 81 AS col1
----
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT + COUNT( 10 ) * 45 + + 61
----
106

skipif mysql # not compatible
query I rowsort label-2631
SELECT + COUNT ( 10 ) * 45 + + 61
----
106

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT DISTINCT - ( MIN( DISTINCT - + CASE + 54 WHEN - 86 * + 73 * 89 / + 24 THEN 93 + + - 81 * + 41 * - 8 * + 11 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT - ( MIN ( DISTINCT - + CASE + 54 WHEN - 86 * + 73 * 89 / + 24 THEN 93 + + - 81 * + 41 * - 8 * + 11 END ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2634
SELECT DISTINCT 51 DIV - 11
----
-4

skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT 51 / - 11
----
-4

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2636
SELECT DISTINCT - 61 + - 86 DIV - - 32 + + - ( - CASE + - NULLIF ( - 41, - + 98 ) WHEN + + 31 DIV - + AVG ( ALL + 17 ) THEN NULL WHEN - 53 + + + MIN( 32 ) + 2 THEN - 18 WHEN 43 THEN NULL ELSE 44 + - 51 - - 83 END ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT - 61 + - 86 / - - 32 + + - ( - CASE + - NULLIF ( - 41, - + 98 ) WHEN + + 31 / - + AVG ( ALL + 17 ) THEN NULL WHEN - 53 + + + MIN ( 32 ) + 2 THEN - 18 WHEN 43 THEN NULL ELSE 44 + - 51 - - 83 END ) AS col0
----
13

query I rowsort
SELECT - 24 * 51 + 22 * + 37 * 66 AS col2
----
52500

query I rowsort
SELECT ALL + 28 + - 70
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2639
SELECT 28 + - - 82 + + COALESCE ( + 71, 51 * - - 60 + 34 + 34 + - 59 DIV CAST( + CASE ( + 88 ) WHEN - 75 - - MIN( - 43 ) THEN NULL WHEN - + 37 THEN + + CASE - COUNT( * ) WHEN + - 8 THEN NULL ELSE + - 77 DIV 33 END - - COUNT( * ) WHEN + COUNT( * ) THEN NULL ELSE NULL END AS SIGNED ) ) + - 64 * + 2
----
53

skipif mysql # not compatible
query I rowsort label-2639
SELECT 28 + - - 82 + + COALESCE ( + 71, 51 * - - 60 + 34 + 34 + - 59 / CAST ( + CASE ( + 88 ) WHEN - 75 - - MIN ( - 43 ) THEN NULL WHEN - + 37 THEN + + CASE - COUNT ( * ) WHEN + - 8 THEN NULL ELSE + - 77 / 33 END - - COUNT ( * ) WHEN + COUNT ( * ) THEN NULL ELSE NULL END AS INTEGER ) ) + - 64 * + 2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2640
SELECT + 91 * + CAST( - ( - - 78 ) AS SIGNED ) AS col2
----
-7098

skipif mysql # not compatible
query I rowsort label-2640
SELECT + 91 * + CAST ( - ( - - 78 ) AS INTEGER ) AS col2
----
-7098

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2641
SELECT 48 * + 99 + + 84 - - - CAST( NULL AS SIGNED ) + + + 13 + AVG ( DISTINCT + 68 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT 48 * + 99 + + 84 - - - CAST ( NULL AS INTEGER ) + + + 13 + AVG ( DISTINCT + 68 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL + 92 + 90 + NULLIF ( + 90, + COUNT( * ) + - 30 - - - 90 + + - 57 / - 70 * - 18 ) + + 46 * - 57 AS col2
----
-2350

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL + 92 + 90 + NULLIF ( + 90, + COUNT ( * ) + - 30 - - - 90 + + - 57 / - 70 * - 18 ) + + 46 * - 57 AS col2
----
-2350

query I rowsort
SELECT DISTINCT + 34 + 53 + - - 10
----
97

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

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

query I rowsort
SELECT DISTINCT + - ( + 90 ) + 25 AS col0
----
-65

query I rowsort
SELECT DISTINCT 15 + 22
----
37

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2648
SELECT + MIN( DISTINCT - + 13 ) * 83 * MAX( DISTINCT 72 ) * - 21 AS col0, - CAST( NULL AS SIGNED )
----
1631448
NULL

skipif mysql # not compatible
query II rowsort label-2648
SELECT + MIN ( DISTINCT - + 13 ) * 83 * MAX ( DISTINCT 72 ) * - 21 AS col0, - CAST ( NULL AS INTEGER )
----
1631448
NULL

query I rowsort
SELECT 97 * + 47 + - 35 AS col2
----
4524

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2650
SELECT ( + COUNT( * ) ) DIV - 71 - - 89 * - 15 AS col2
----
-1335

skipif mysql # not compatible
query I rowsort label-2650
SELECT ( + COUNT ( * ) ) / - 71 - - 89 * - 15 AS col2
----
-1335

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2651
SELECT ALL - 56 * 91 DIV + SUM( ALL + 71 ) AS col0, 36 AS col1
----
-71
36

skipif mysql # not compatible
query II rowsort label-2651
SELECT ALL - 56 * 91 / + SUM ( ALL + 71 ) AS col0, 36 AS col1
----
-71
36

query I rowsort
SELECT - ( CASE 63 WHEN 42 / + + 90 * 31 THEN + + 80 * 76 - + + 11 + + + CASE 69 WHEN + + ( + NULLIF ( - 83, 16 * + - 25 * COALESCE ( + - 10, 77 ) ) ) THEN ( 93 ) WHEN - 17 THEN NULL END END ) / 48 + - 7 AS col2
----
NULL

query I rowsort
SELECT ALL - ( 44 ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT DISTINCT - 38 * NULLIF ( - 64, - 41 + - 77 + 98 - - COUNT( * ) + COUNT( * ) ) AS col0
----
2432

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT - 38 * NULLIF ( - 64, - 41 + - 77 + 98 - - COUNT ( * ) + COUNT ( * ) ) AS col0
----
2432

onlyif mysql # DIV for integer division: 
query I rowsort label-2655
SELECT 42 * + 28 DIV - + 1 AS col2
----
-1176

skipif mysql # not compatible
query I rowsort label-2655
SELECT 42 * + 28 / - + 1 AS col2
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT DISTINCT - COALESCE ( + 65, COUNT( * ) ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT - COALESCE ( + 65, COUNT ( * ) ) AS col2
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2657
SELECT 65 DIV - - COUNT( * ) + + + 70
----
135

skipif mysql # not compatible
query I rowsort label-2657
SELECT 65 / - - COUNT ( * ) + + + 70
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT NULLIF ( - 75, COUNT( * ) ) + - 86 + + COUNT( * )
----
-160

skipif mysql # not compatible
query I rowsort label-2658
SELECT NULLIF ( - 75, COUNT ( * ) ) + - 86 + + COUNT ( * )
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT + 68 * + 2 + + 8 + - 11 * - - COUNT( * )
----
133

skipif mysql # not compatible
query I rowsort label-2659
SELECT + 68 * + 2 + + 8 + - 11 * - - COUNT ( * )
----
133

onlyif mysql # DIV for integer division: 
query II rowsort label-2660
SELECT DISTINCT - COALESCE ( + 67, 63 DIV - 55 ), 24 col1
----
-67
24

skipif mysql # not compatible
query II rowsort label-2660
SELECT DISTINCT - COALESCE ( + 67, 63 / - 55 ), 24 col1
----
-67
24

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

query II rowsort
SELECT 57 * - 74 AS col0, + 29 + ( - - 82 ) AS col0
----
-4218
111

query I rowsort
SELECT DISTINCT + 21 + - 82 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT DISTINCT + 76 + ( + MAX( + - 31 ) )
----
45

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT + 76 + ( + MAX ( + - 31 ) )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-2665
SELECT DISTINCT - 21 + + COUNT( * ) AS col0, 24 + + 74 + - + 23 * 19 * COUNT( + NULLIF ( - + 46, - 14 - + + 15 ) ) AS col0
----
-20
-339

skipif mysql # not compatible
query II rowsort label-2665
SELECT DISTINCT - 21 + + COUNT ( * ) AS col0, 24 + + 74 + - + 23 * 19 * COUNT ( + NULLIF ( - + 46, - 14 - + + 15 ) ) AS col0
----
-20
-339

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT DISTINCT + + SUM( + - 5 ) * + + 65
----
-325

skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT + + SUM ( + - 5 ) * + + 65
----
-325

query I rowsort
SELECT 82 * + 38 * 85 * + - 10 + ( + + 83 ) * + 88 + + 9 col2
----
-2641287

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT + - 91 * + - 97 + 42 - - 78 + 51 * + - 10 * - - ( SUM( ALL - - 17 ) )
----
277

skipif mysql # not compatible
query I rowsort label-2668
SELECT + - 91 * + - 97 + 42 - - 78 + 51 * + - 10 * - - ( SUM ( ALL - - 17 ) )
----
277

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT - SUM( ALL - 62 ) col2
----
62

skipif mysql # not compatible
query I rowsort label-2669
SELECT - SUM ( ALL - 62 ) col2
----
62

query I rowsort
SELECT ALL + + 11 + - 30 col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT - 98 + - + MAX( - + 10 )
----
-88

skipif mysql # not compatible
query I rowsort label-2671
SELECT - 98 + - + MAX ( - + 10 )
----
-88

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

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

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

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

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

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

query II rowsort
SELECT 42 + - 90 AS col2, + 31 AS col0
----
-48
31

query II rowsort
SELECT ALL + 55 - + 21, + 14 AS col2
----
34
14

query I rowsort
SELECT ( - + 24 ) * - 99
----
2376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2678
SELECT DISTINCT CAST( + - 32 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT CAST ( + - 32 AS INTEGER )
----
-32

query II rowsort
SELECT + 47 + 58 AS col0, - 18 * + 91 col0
----
105
-1638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2680
SELECT ALL COALESCE ( + - ( SUM( ALL - 73 ) ), - 32 + - 4, 30 + - + COUNT( * ) + - + 51 - - ( + - 28 ) - + 34 * 9 * + - ( - 23 ) * 44 * + COUNT( * ) * + 20 DIV + 85 * + 46 * - NULLIF ( - - 41, + - MAX( ALL 78 ) ) )
----
73

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL COALESCE ( + - ( SUM ( ALL - 73 ) ), - 32 + - 4, 30 + - + COUNT ( * ) + - + 51 - - ( + - 28 ) - + 34 * 9 * + - ( - 23 ) * 44 * + COUNT ( * ) * + 20 / + 85 * + 46 * - NULLIF ( - - 41, + - MAX ( ALL 78 ) ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT 53 * - MIN( - 98 ) * + 60 AS col0
----
311640

skipif mysql # not compatible
query I rowsort label-2681
SELECT 53 * - MIN ( - 98 ) * + 60 AS col0
----
311640

query I rowsort
SELECT DISTINCT 39 * - 21 + 18 AS col0
----
-801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2683
SELECT DISTINCT - COUNT( ALL - 53 ) * + 9 + 28 DIV + 36
----
-9

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT - COUNT ( ALL - 53 ) * + 9 + 28 / + 36
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT ALL COALESCE ( COUNT( * ), 17 * - + ( + + 64 ), + 9 * 56 + - 64 )
----
1

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL COALESCE ( COUNT ( * ), 17 * - + ( + + 64 ), + 9 * 56 + - 64 )
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2686
SELECT + SUM( ALL + 1 ) DIV + COUNT( DISTINCT + - 94 )
----
1

skipif mysql # not compatible
query I rowsort label-2686
SELECT + SUM ( ALL + 1 ) / + COUNT ( DISTINCT + - 94 )
----
1

query I rowsort
SELECT + 29 * + - 59
----
-1711

query I rowsort
SELECT + 35 + + 85 + 63 AS col0
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-2689
SELECT + 47 DIV - + 49
----
0

skipif mysql # not compatible
query I rowsort label-2689
SELECT + 47 / - + 49
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2690
SELECT DISTINCT COALESCE ( + COUNT( * ), - CASE - 86 WHEN 59 + + 31 THEN - - 86 WHEN + 49 - 93 THEN - 32 ELSE + - COUNT( * ) + - MIN( 56 ) DIV 85 END + 53 ) * + COUNT( * ) + 68 * - 68
----
-4623

skipif mysql # not compatible
query I rowsort label-2690
SELECT DISTINCT COALESCE ( + COUNT ( * ), - CASE - 86 WHEN 59 + + 31 THEN - - 86 WHEN + 49 - 93 THEN - 32 ELSE + - COUNT ( * ) + - MIN ( 56 ) / 85 END + 53 ) * + COUNT ( * ) + 68 * - 68
----
-4623

query I rowsort
SELECT - 88 * + 99 AS col0
----
-8712

query I rowsort
SELECT CASE + 53 WHEN + + 44 THEN + 10 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 62 * + + 2 * - - 98
----
-12152

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT DISTINCT 1 * - + MAX( + 28 ) + + + 26 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT 1 * - + MAX ( + 28 ) + + + 26 AS col1
----
-2

query I rowsort
SELECT DISTINCT + 52 * 53 + + 84 + + 88
----
2928

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT DISTINCT + 16 * - + COUNT( * ) + - - 92 + 24 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT + 16 * - + COUNT ( * ) + - - 92 + 24 AS col1
----
100

query I rowsort
SELECT ALL 9 * + - 1 + + 60 - + 81 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-2699
SELECT DISTINCT NULLIF ( + - ( 3 ), - + 56 * COUNT( * ) ) * MAX( ALL - 87 ) + - 38 AS col2, - 57 + 39
----
223
-18

skipif mysql # not compatible
query II rowsort label-2699
SELECT DISTINCT NULLIF ( + - ( 3 ), - + 56 * COUNT ( * ) ) * MAX ( ALL - 87 ) + - 38 AS col2, - 57 + 39
----
223
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2700
SELECT - COALESCE ( + 38, CAST( NULL AS SIGNED ), - - 84 * + + 69 + 45 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-2700
SELECT - COALESCE ( + 38, CAST ( NULL AS INTEGER ), - - 84 * + + 69 + 45 ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT ALL - CASE ( 51 ) WHEN - 52 THEN - + 89 + + 45 + 63 END - - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL - CASE ( 51 ) WHEN - 52 THEN - + 89 + + 45 + 63 END - - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - + 46 * + 43 col0
----
-1978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2703
SELECT ALL - 40 * 46 * - MIN( + CAST( NULL AS SIGNED ) ) / + ( - COALESCE ( 25, + 24 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL - 40 * 46 * - MIN ( + CAST ( NULL AS INTEGER ) ) / + ( - COALESCE ( 25, + 24 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2704
SELECT ALL - 24 - - 99 DIV COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL - 24 - - 99 / COUNT ( * ) AS col2
----
75

query II rowsort
SELECT - 65, + 14 AS col1
----
-65
14

query I rowsort
SELECT - 2 * - - 62 col1
----
-124

query I rowsort
SELECT + 72 * - + 91 AS col1
----
-6552

query I rowsort
SELECT ALL - COALESCE ( 93, - 82 - 10 * 65 * + - 68 )
----
-93

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

query I rowsort
SELECT - 30 + + - 33
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT - COALESCE ( + - MIN( - - 8 ), 46, + 92 )
----
8

skipif mysql # not compatible
query I rowsort label-2711
SELECT - COALESCE ( + - MIN ( - - 8 ), 46, + 92 )
----
8

query II rowsort
SELECT ALL 46 AS col1, 67 AS col0
----
46
67

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

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

query I rowsort
SELECT ALL 17 + 95 AS col1
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-2715
SELECT DISTINCT 35 + + + 11 DIV + 42
----
35

skipif mysql # not compatible
query I rowsort label-2715
SELECT DISTINCT 35 + + + 11 / + 42
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2716
SELECT + CASE - COUNT( * ) WHEN - + 74 THEN CASE + - COALESCE ( - - COUNT( + 94 ), + ( + 91 ) * + + 8 ) WHEN - - CAST( NULL AS DECIMAL ) * + + 20 + 35 THEN + 91 + - 60 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT + CASE - COUNT ( * ) WHEN - + 74 THEN CASE + - COALESCE ( - - COUNT ( + 94 ), + ( + 91 ) * + + 8 ) WHEN - - CAST ( NULL AS REAL ) * + + 20 + 35 THEN + 91 + - 60 END END AS col2
----
NULL

query I rowsort
SELECT + 76 + + - ( + - 1 ) AS col0
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2718
SELECT ALL + 68 DIV - - 95 + - 77 * - COUNT( * ) * + 98 * + + 58 AS col1
----
437668

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL + 68 / - - 95 + - 77 * - COUNT ( * ) * + 98 * + + 58 AS col1
----
437668

onlyif mysql # DIV for integer division: 
query I rowsort label-2719
SELECT ALL 97 DIV - 20 + + + 74
----
70

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL 97 / - 20 + + + 74
----
70

query II rowsort
SELECT DISTINCT + 44, + 28 col1
----
44
28

query I rowsort
SELECT - 40 * + 59
----
-2360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2722
SELECT + 46 * - 73 DIV + - COUNT( * ) * + + COUNT( * ) AS col0
----
3358

skipif mysql # not compatible
query I rowsort label-2722
SELECT + 46 * - 73 / + - COUNT ( * ) * + + COUNT ( * ) AS col0
----
3358

onlyif mysql # DIV for integer division: 
query I rowsort label-2723
SELECT + 63 DIV + 29
----
2

skipif mysql # not compatible
query I rowsort label-2723
SELECT + 63 / + 29
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2724
SELECT - ( 78 ) + + CAST( 31 AS SIGNED ), 43 * - + 46 AS col2
----
-47
-1978

skipif mysql # not compatible
query II rowsort label-2724
SELECT - ( 78 ) + + CAST ( 31 AS INTEGER ), 43 * - + 46 AS col2
----
-47
-1978

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2725
SELECT + - ( + + 28 ) + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT + - ( + + 28 ) + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL + 90 * - + 16 - + - 4 * - + 98 - - 78
----
-1754

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2727
SELECT DISTINCT + - 58 AS col0, CAST( NULL AS SIGNED ) / 88 + + - 26 AS col1, + ( + - 29 ) AS col1
----
-58
NULL
-29

skipif mysql # not compatible
query III rowsort label-2727
SELECT DISTINCT + - 58 AS col0, CAST ( NULL AS INTEGER ) / 88 + + - 26 AS col1, + ( + - 29 ) AS col1
----
-58
NULL
-29

query I rowsort
SELECT ALL + - NULLIF ( + + 19, 61 ) AS col2
----
-19

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2730
SELECT 8 AS col1, COUNT( * ) * - - 21 AS col1
----
8
21

skipif mysql # not compatible
query II rowsort label-2730
SELECT 8 AS col1, COUNT ( * ) * - - 21 AS col1
----
8
21

query I rowsort
SELECT ALL 76 * - 81 AS col1
----
-6156

query II rowsort
SELECT + 46 + + 84 AS col0, + 23 AS col1
----
130
23

query I rowsort
SELECT - 16 - - - 53 AS col2
----
-69

query I rowsort
SELECT + + COALESCE ( + + 74, + + 78 + - 1 ) * - 97 + - 48
----
-7226

query II rowsort
SELECT 52 AS col1, 60 AS col1
----
52
60

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

skipif mysql # not compatible
query II rowsort label-2736
SELECT ALL 10 AS col2, COUNT ( * )
----
10
1

query I rowsort
SELECT + 73 * + 64 AS col0
----
4672

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT SUM( DISTINCT - 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-2738
SELECT SUM ( DISTINCT - 78 ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT ALL CASE 32 WHEN + COALESCE ( + + 36, + COUNT( * ) ) THEN - 49 WHEN MAX( DISTINCT - 53 ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL CASE 32 WHEN + COALESCE ( + + 36, + COUNT ( * ) ) THEN - 49 WHEN MAX ( DISTINCT - 53 ) THEN NULL END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2740
SELECT - - CAST( + - 72 AS SIGNED ) + CAST( + - 14 AS SIGNED ) AS col0, 53 AS col0
----
-86
53

skipif mysql # not compatible
query II rowsort label-2740
SELECT - - CAST ( + - 72 AS INTEGER ) + CAST ( + - 14 AS INTEGER ) AS col0, 53 AS col0
----
-86
53

query II rowsort
SELECT ALL 16, 69 AS col1
----
16
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT ALL - COUNT( * ) * - + COUNT( * ) * + ( + - 62 ) col1
----
-62

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) * + ( + - 62 ) col1
----
-62

query I rowsort
SELECT - + 23 + ( + 50 ) * - 91 + - 29
----
-4602

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT ALL - - 64 * COUNT( * ) * 51
----
3264

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL - - 64 * COUNT ( * ) * 51
----
3264

query I rowsort
SELECT 74 + - 1 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT ALL - COUNT( * ) + - + ( 6 ) - - + COUNT( * ) + - + 74 * + + 69 * - 19 AS col0
----
97008

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL - COUNT ( * ) + - + ( 6 ) - - + COUNT ( * ) + - + 74 * + + 69 * - 19 AS col0
----
97008

onlyif mysql # aggregate syntax: 
query II rowsort label-2747
SELECT COUNT( * ) * + + 77 AS col0, - 21 AS col0
----
77
-21

skipif mysql # not compatible
query II rowsort label-2747
SELECT COUNT ( * ) * + + 77 AS col0, - 21 AS col0
----
77
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2748
SELECT DISTINCT - CAST( - MAX( - 69 ) AS SIGNED ) + + 82
----
13

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT - CAST ( - MAX ( - 69 ) AS INTEGER ) + + 82
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT ALL + COUNT( * ) * + 19 * 9 AS col0
----
171

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL + COUNT ( * ) * + 19 * 9 AS col0
----
171

query I rowsort
SELECT DISTINCT - 79 * 17 AS col0
----
-1343

onlyif mysql # DIV for integer division: 
query I rowsort label-2751
SELECT 35 DIV 9
----
3

skipif mysql # not compatible
query I rowsort label-2751
SELECT 35 / 9
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT ALL + 7 + - MAX( - 94 ) * + 44 AS col0
----
4143

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL + 7 + - MAX ( - 94 ) * + 44 AS col0
----
4143

onlyif mysql # DIV for integer division: 
query I rowsort label-2753
SELECT 61 DIV - 76 col0
----
0

skipif mysql # not compatible
query I rowsort label-2753
SELECT 61 / - 76 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2754
SELECT 70 * - CAST( - - 4 AS SIGNED ) * + 17 * MAX( - CAST( + 74 AS SIGNED ) ) + - + 95 - + - 12
----
352157

skipif mysql # not compatible
query I rowsort label-2754
SELECT 70 * - CAST ( - - 4 AS INTEGER ) * + 17 * MAX ( - CAST ( + 74 AS INTEGER ) ) + - + 95 - + - 12
----
352157

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2755
SELECT ALL + 44 + - + 73 AS col2, + ( - ( + + CAST( - 59 AS SIGNED ) ) ) * 97 + - 61
----
-29
5662

skipif mysql # not compatible
query II rowsort label-2755
SELECT ALL + 44 + - + 73 AS col2, + ( - ( + + CAST ( - 59 AS INTEGER ) ) ) * 97 + - 61
----
-29
5662

query I rowsort
SELECT DISTINCT - 90 + - 81 * ( - 14 ) AS col0
----
1044

onlyif mysql # DIV for integer division: 
query I rowsort label-2757
SELECT 96 * 8 DIV 94 * - 99 col2
----
-792

skipif mysql # not compatible
query I rowsort label-2757
SELECT 96 * 8 / 94 * - 99 col2
----
-792

query I rowsort
SELECT ALL - 72 * - - COALESCE ( - 10, - 30 ) AS col2
----
720

query I rowsort
SELECT ALL - 51 * 56 AS col1
----
-2856

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT ALL - 40 * MAX( + 38 ) AS col1
----
-1520

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL - 40 * MAX ( + 38 ) AS col1
----
-1520

query I rowsort
SELECT 2 + 29 AS col2
----
31

query I rowsort
SELECT DISTINCT - + 75 * 0
----
0

query II rowsort
SELECT - CASE 83 WHEN 23 * ( + + ( - NULLIF ( - + ( 4 ), - 23 * 40 ) ) ) THEN 35 WHEN + 24 THEN - + 26 * - 78 ELSE NULL END * - 73 AS col1, 46 * + 59 AS col1
----
NULL
2714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2764
SELECT 88 * - 94 / + 82 * CAST( NULL AS SIGNED ) + + - 4 - - + ( - 62 ) * - - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT 88 * - 94 / + 82 * CAST ( NULL AS INTEGER ) + + - 4 - - + ( - 62 ) * - - 25
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2765
SELECT ALL + 24 DIV - ( 29 )
----
0

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL + 24 / - ( 29 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2766
SELECT CAST( NULL AS SIGNED ) + + - 34 + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-2766
SELECT CAST ( NULL AS INTEGER ) + + - 34 + - 87
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2767
SELECT 20 * - + MIN( + + 90 ) + 27 - - - ( 82 ) * - COUNT( - 47 ) + - + ( - - 89 ) * - + 84 * + 1 col2, + 0
----
5785
0

skipif mysql # not compatible
query II rowsort label-2767
SELECT 20 * - + MIN ( + + 90 ) + 27 - - - ( 82 ) * - COUNT ( - 47 ) + - + ( - - 89 ) * - + 84 * + 1 col2, + 0
----
5785
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2768
SELECT ALL + 63 DIV - 70 * + CAST( + - 53 AS SIGNED ) + - + ( - CASE - 64 WHEN - + COUNT( * ) THEN NULL ELSE + 20 DIV - - 25 END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL + 63 / - 70 * + CAST ( + - 53 AS INTEGER ) + - + ( - CASE - 64 WHEN - + COUNT ( * ) THEN NULL ELSE + 20 / - - 25 END ) AS col0
----
0

query I rowsort
SELECT 97 * + 12 + + 29
----
1193

onlyif mysql # aggregate syntax: 
query II rowsort label-2770
SELECT ALL 33 * + 52 AS col2, + CASE + + ( + 31 ) WHEN - - SUM( DISTINCT 1 ) * - 49 + COUNT( * ) + + 27 THEN - + 3 ELSE + + 95 * 50 * 12 + - COUNT( * ) - + 30 END AS col2
----
1716
56969

skipif mysql # not compatible
query II rowsort label-2770
SELECT ALL 33 * + 52 AS col2, + CASE + + ( + 31 ) WHEN - - SUM ( DISTINCT 1 ) * - 49 + COUNT ( * ) + + 27 THEN - + 3 ELSE + + 95 * 50 * 12 + - COUNT ( * ) - + 30 END AS col2
----
1716
56969

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT ALL 90 + - COALESCE ( 11, 47 * + 42 + + 55 + - + 27, - + 66 ) * CASE + - 6 WHEN + 96 * - COUNT( * ) + + 40 THEN - COUNT( * ) WHEN + ( - + 45 ) + + - 77 THEN NULL WHEN + - 81 THEN 25 / - 54 + + NULLIF ( 42, + 83 ) + + 67 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL 90 + - COALESCE ( 11, 47 * + 42 + + 55 + - + 27, - + 66 ) * CASE + - 6 WHEN + 96 * - COUNT ( * ) + + 40 THEN - COUNT ( * ) WHEN + ( - + 45 ) + + - 77 THEN NULL WHEN + - 81 THEN 25 / - 54 + + NULLIF ( 42, + 83 ) + + 67 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 7 + - 36 + - + 47 + + 56 AS col1
----
-20

query II rowsort
SELECT ALL 79 AS col2, 22 AS col2
----
79
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT 26 * - COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-2775
SELECT 26 * - COUNT ( * ) AS col1
----
-26

query I rowsort
SELECT 61 * - 60 * 21 AS col1
----
-76860

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

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

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

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

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

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

query I rowsort
SELECT ALL - 75 + 19
----
-56

query I rowsort
SELECT DISTINCT - 57 + 49 * + 32
----
1511

query I rowsort
SELECT ALL + 48 * - 31
----
-1488

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT ALL 58 + MAX( 10 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL 58 + MAX ( 10 ) AS col2
----
68

query I rowsort
SELECT 77 * - + ( 12 )
----
-924

query I rowsort
SELECT 51 + + 38 + + 94
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT 86 - - + COUNT( ALL 85 )
----
87

skipif mysql # not compatible
query I rowsort label-2786
SELECT 86 - - + COUNT ( ALL 85 )
----
87

query II rowsort
SELECT 67 * + 82 * + 5 AS col1, 71 * + + ( + - 20 ) AS col1
----
27470
-1420

query I rowsort
SELECT 70 + - ( + 85 ) * - + 17
----
1515

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT ALL + 40 * + MAX( - 25 ) AS col1
----
-1000

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL + 40 * + MAX ( - 25 ) AS col1
----
-1000

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT DISTINCT - 10 * CASE - + 33 WHEN COUNT( * ) + - ( + 18 ) + - + COUNT( * ) THEN - + 83 ELSE NULL END / - NULLIF ( - + 85, + 69 ) * + + 57 / - - 53 + - - ( + SUM( - 20 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT - 10 * CASE - + 33 WHEN COUNT ( * ) + - ( + 18 ) + - + COUNT ( * ) THEN - + 83 ELSE NULL END / - NULLIF ( - + 85, + 69 ) * + + 57 / - - 53 + - - ( + SUM ( - 20 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2791
SELECT DISTINCT + + COUNT( * ) DIV + 59 + + 93 + 70
----
163

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT + + COUNT ( * ) / + 59 + + 93 + 70
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT - 19 * - COUNT( * ) + - 46 * - + 81 AS col2
----
3745

skipif mysql # not compatible
query I rowsort label-2792
SELECT - 19 * - COUNT ( * ) + - 46 * - + 81 AS col2
----
3745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2793
SELECT CAST( + - ( - 79 ) AS SIGNED ) * + 18 * + 9 * + - 50 AS col1
----
-639900

skipif mysql # not compatible
query I rowsort label-2793
SELECT CAST ( + - ( - 79 ) AS INTEGER ) * + 18 * + 9 * + - 50 AS col1
----
-639900

onlyif mysql # aggregate syntax: 
query II rowsort label-2794
SELECT COUNT( * ) AS col0, 15 - 34 AS col1
----
1
-19

skipif mysql # not compatible
query II rowsort label-2794
SELECT COUNT ( * ) AS col0, 15 - 34 AS col1
----
1
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2795
SELECT + 44 AS col2, CAST( NULL AS SIGNED ) * 36 * + 65
----
44
NULL

skipif mysql # not compatible
query II rowsort label-2795
SELECT + 44 AS col2, CAST ( NULL AS INTEGER ) * 36 * + 65
----
44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT ALL 94 * + COUNT( * ) col2
----
94

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL 94 * + COUNT ( * ) col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT - 64 + - MAX( 53 ) * 31 AS col2
----
-1707

skipif mysql # not compatible
query I rowsort label-2797
SELECT - 64 + - MAX ( 53 ) * 31 AS col2
----
-1707

query I rowsort
SELECT DISTINCT + + 56 * 39 AS col2
----
2184

onlyif mysql # DIV for integer division: 
query II rowsort label-2799
SELECT + - 6 * 22 DIV + - 50, 31 AS col0
----
2
31

skipif mysql # not compatible
query II rowsort label-2799
SELECT + - 6 * 22 / + - 50, 31 AS col0
----
2
31

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( - 15, + 76 * - 94 + - - 31 + 48 ) + - 86
----
-71

query I rowsort
SELECT - + 21 + - 88 AS col1
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT + - 15 - + COUNT( * ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-2803
SELECT + - 15 - + COUNT ( * ) AS col0
----
-16

query II rowsort
SELECT ALL + + 88 AS col1, - 47 * - 1 * - 32 AS col1
----
88
-1504

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT - + 8 * - 95 + - + ( + COUNT( * ) ) * - 90 * + MAX( DISTINCT + 21 ) AS col0
----
2650

skipif mysql # not compatible
query I rowsort label-2805
SELECT - + 8 * - 95 + - + ( + COUNT ( * ) ) * - 90 * + MAX ( DISTINCT + 21 ) AS col0
----
2650

query I rowsort
SELECT + 27 + - 43 AS col1
----
-16

query I rowsort
SELECT + 24 + ( + 24 ) + - 91
----
-43

query I rowsort
SELECT DISTINCT 12 * - 83
----
-996

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT ALL 88 + - SUM( ALL - 29 ) * - - 54 + COUNT( * ) + + 97
----
1752

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL 88 + - SUM ( ALL - 29 ) * - - 54 + COUNT ( * ) + + 97
----
1752

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT + ( + 4 ) + + COUNT( * ) col1
----
5

skipif mysql # not compatible
query I rowsort label-2810
SELECT + ( + 4 ) + + COUNT ( * ) col1
----
5

query I rowsort
SELECT ALL 59 + + 28 AS col1
----
87

query I rowsort
SELECT DISTINCT 17 - ( - - 71 ) + 67 col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2813
SELECT - MIN( + 33 ) AS col1, - 44
----
-33
-44

skipif mysql # not compatible
query II rowsort label-2813
SELECT - MIN ( + 33 ) AS col1, - 44
----
-33
-44

query I rowsort
SELECT + NULLIF ( + 80, 18 ) + - + 55 + + + ( ( + 89 ) )
----
114

query I rowsort
SELECT ALL 52 * - ( - 27 )
----
1404

query I rowsort
SELECT - 23 + ( + - 47 )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2817
SELECT - COALESCE ( + - 71, + COALESCE ( - 27, + CAST( NULL AS SIGNED ) - - COALESCE ( 64, - COALESCE ( NULLIF ( - 6, + 79 + - - 49 DIV SUM( DISTINCT - 97 ) ), - - 51, + 61 + CAST( - 80 AS SIGNED ) * + + COUNT( * ) ) * + - 20 + + 45 + 38 - - 55 * + 30 DIV - + 32 + + + 13 ) * 19 ) + - - CAST( - ( COUNT( ALL 94 ) ) AS SIGNED ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-2817
SELECT - COALESCE ( + - 71, + COALESCE ( - 27, + CAST ( NULL AS INTEGER ) - - COALESCE ( 64, - COALESCE ( NULLIF ( - 6, + 79 + - - 49 / SUM ( DISTINCT - 97 ) ), - - 51, + 61 + CAST ( - 80 AS INTEGER ) * + + COUNT ( * ) ) * + - 20 + + 45 + 38 - - 55 * + 30 / - + 32 + + + 13 ) * 19 ) + - - CAST ( - ( COUNT ( ALL 94 ) ) AS INTEGER ) ) AS col1
----
71

query I rowsort
SELECT - 99 + + + 17 + - + 34 AS col0
----
-116

query I rowsort
SELECT DISTINCT + ( + NULLIF ( + COALESCE ( - 15, - ( + 43 ), - 26 * + 21 ), - + 4 + - 5 ) ) * + - 31
----
465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2820
SELECT DISTINCT COUNT( * ) DIV - - COALESCE ( + - 10, - - 81 ) - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT COUNT ( * ) / - - COALESCE ( + - 10, - - 81 ) - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2821
SELECT - ( + - 35 ) col2, + COALESCE ( - COUNT( * ), + - 2 DIV - + ( COALESCE ( - 50, - 22 * - 8, + 22 + + - 74, - - 39 ) ) - - 70, - 11 ) AS col2
----
35
-1

skipif mysql # not compatible
query II rowsort label-2821
SELECT - ( + - 35 ) col2, + COALESCE ( - COUNT ( * ), + - 2 / - + ( COALESCE ( - 50, - 22 * - 8, + 22 + + - 74, - - 39 ) ) - - 70, - 11 ) AS col2
----
35
-1

query I rowsort
SELECT ALL + 57 * - - 87
----
4959

query I rowsort
SELECT + 12 * + 75 AS col0
----
900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2824
SELECT DISTINCT + + 8 * + + 61 * - 31 - - CAST( - - 46 AS SIGNED ) + COUNT( * ) + - 32 * COALESCE ( - - 19, - COUNT( * ), - - 92 ) * - 3 - 41
----
-13298

skipif mysql # not compatible
query I rowsort label-2824
SELECT DISTINCT + + 8 * + + 61 * - 31 - - CAST ( - - 46 AS INTEGER ) + COUNT ( * ) + - 32 * COALESCE ( - - 19, - COUNT ( * ), - - 92 ) * - 3 - 41
----
-13298

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2825
SELECT ALL - + COUNT( * ) * + 18 DIV - - 92 * + - ( - 27 ) + - COUNT( 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL - + COUNT ( * ) * + 18 / - - 92 * + - ( - 27 ) + - COUNT ( 14 )
----
-1

query II rowsort
SELECT ALL 9 * + 58 AS col0, 4 - + - 90 * + 50
----
522
4504

query I rowsort
SELECT DISTINCT 27 * - 68
----
-1836

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

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

query I rowsort
SELECT ALL - 68 * - - 10 + + - 60
----
-740

query I rowsort
SELECT + - 66 + 55 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT - 28 * + + 23 + + COUNT( * ) * - COUNT( * ) - - + ( - 33 ) * + + 18
----
-1239

skipif mysql # not compatible
query I rowsort label-2831
SELECT - 28 * + + 23 + + COUNT ( * ) * - COUNT ( * ) - - + ( - 33 ) * + + 18
----
-1239

query I rowsort
SELECT + + 4 * + 23 * - 75 + - + 17 + - - 24 AS col1
----
-6893

query I rowsort
SELECT DISTINCT + - 18 * + - 97 + 87
----
1833

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2834
SELECT - 16 * 17 DIV COUNT( * ) * - 72
----
19584

skipif mysql # not compatible
query I rowsort label-2834
SELECT - 16 * 17 / COUNT ( * ) * - 72
----
19584

onlyif mysql # DIV for integer division: 
query I rowsort label-2835
SELECT ALL + ( + - 5 ) * - 70 DIV + 10 - + - 29 + + 83 AS col2
----
147

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL + ( + - 5 ) * - 70 / + 10 - + - 29 + + 83 AS col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT ALL 19 * - + 76 + 30 + - + CASE - 71 WHEN - 65 THEN + COUNT( * ) + - 64 WHEN + 4 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL 19 * - + 76 + 30 + - + CASE - 71 WHEN - 65 THEN + COUNT ( * ) + - 64 WHEN + 4 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT DISTINCT COUNT( * ) * + 76 + - + 7 + - COUNT( * ) + + 77 AS col1
----
145

skipif mysql # not compatible
query I rowsort label-2837
SELECT DISTINCT COUNT ( * ) * + 76 + - + 7 + - COUNT ( * ) + + 77 AS col1
----
145

query I rowsort
SELECT ALL 71 * 55 AS col1
----
3905

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT MIN( DISTINCT 35 )
----
35

skipif mysql # not compatible
query I rowsort label-2839
SELECT MIN ( DISTINCT 35 )
----
35

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2841
SELECT + CAST( NULL AS SIGNED ) / 27 * + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-2841
SELECT + CAST ( NULL AS INTEGER ) / 27 * + + 79
----
NULL

query I rowsort
SELECT - 93 * - 80 AS col2
----
7440

onlyif mysql # DIV for integer division: 
query I rowsort label-2843
SELECT ALL 5 DIV 5
----
1

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL 5 / 5
----
1

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

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL CAST ( + + 75 AS INTEGER ) AS col1
----
75

query I rowsort
SELECT ALL 57 * + 23 col1
----
1311

onlyif mysql # DIV for integer division: 
query I rowsort label-2846
SELECT + 81 DIV 64 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2846
SELECT + 81 / 64 AS col0
----
1

query II rowsort
SELECT 72 AS col2, - 43
----
72
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT - CASE ( - SUM( - 8 ) ) WHEN - 11 THEN MIN( DISTINCT - - 96 ) END + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2848
SELECT - CASE ( - SUM ( - 8 ) ) WHEN - 11 THEN MIN ( DISTINCT - - 96 ) END + - 67
----
NULL

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

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

query I rowsort
SELECT + 1 + + 35 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT + 71 - - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-2851
SELECT + 71 - - COUNT ( * )
----
72

query I rowsort
SELECT + + 0 * - 67 AS col1
----
0

query I rowsort
SELECT ALL ( + + 31 ) + + + 76
----
107

query I rowsort
SELECT + + 31 + 72 AS col1
----
103

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2856
SELECT 3 * COALESCE ( - + 29, CAST( NULL AS SIGNED ), + COALESCE ( 52, 70, + + 21 * + MAX( - - CAST( - 24 AS SIGNED ) ) ) ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-2856
SELECT 3 * COALESCE ( - + 29, CAST ( NULL AS INTEGER ), + COALESCE ( 52, 70, + + 21 * + MAX ( - - CAST ( - 24 AS INTEGER ) ) ) ) AS col1
----
-87

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

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT COUNT ( * ) + - 95 AS col1
----
-94

query I rowsort
SELECT ALL - 76 + + 23
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-2859
SELECT DISTINCT + - NULLIF ( - 13, + 23 * - COUNT( * ) * - 80 ) + COUNT( * ), + 9 * COUNT( * ) + + 35 AS col0
----
14
44

skipif mysql # not compatible
query II rowsort label-2859
SELECT DISTINCT + - NULLIF ( - 13, + 23 * - COUNT ( * ) * - 80 ) + COUNT ( * ), + 9 * COUNT ( * ) + + 35 AS col0
----
14
44

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

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

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

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL COUNT ( * ) / - - 76 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT 79 * + 5 + 97 + + 30 * - - MAX( 95 ) + + + 80 AS col0
----
3422

skipif mysql # not compatible
query I rowsort label-2862
SELECT 79 * + 5 + 97 + + 30 * - - MAX ( 95 ) + + + 80 AS col0
----
3422

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

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

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

skipif mysql # not compatible
query I rowsort label-2864
SELECT + MAX ( - 37 )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2865
SELECT + NULLIF ( - + 93, + CAST( NULL AS SIGNED ) ) AS col0, - COUNT( * ) AS col0
----
-93
-1

skipif mysql # not compatible
query II rowsort label-2865
SELECT + NULLIF ( - + 93, + CAST ( NULL AS INTEGER ) ) AS col0, - COUNT ( * ) AS col0
----
-93
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ALL - NULLIF ( - 49, + - 37 + - - CASE + 37 WHEN - - 43 THEN - 0 END + - 16 + - + 74 * - COUNT( * ) / 74 * + 5 + + - 63 ) * - 63 AS col1
----
-3087

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL - NULLIF ( - 49, + - 37 + - - CASE + 37 WHEN - - 43 THEN - 0 END + - 16 + - + 74 * - COUNT ( * ) / 74 * + 5 + + - 63 ) * - 63 AS col1
----
-3087

query I rowsort
SELECT ALL + ( 76 ) + + - 35
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT DISTINCT ( + - COUNT( * ) ) * + 35 + - + COALESCE ( + + 12, + - 7 ) + - + 23 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT ( + - COUNT ( * ) ) * + 35 + - + COALESCE ( + + 12, + - 7 ) + - + 23 AS col0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2869
SELECT 55 * + - 79 * + - 30 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2869
SELECT 55 * + - 79 * + - 30 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2870
SELECT DISTINCT - 98 DIV + 98 col2
----
-1

skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT - 98 / + 98 col2
----
-1

query I rowsort
SELECT + 46 * 23 - - 77 + + 34 - - 14
----
1183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2872
SELECT DISTINCT - COALESCE ( - 49, + 67 * + COALESCE ( + COUNT( * ), MIN( + + 94 ) DIV - COUNT( * ) + - 3 ) ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2872
SELECT DISTINCT - COALESCE ( - 49, + 67 * + COALESCE ( + COUNT ( * ), MIN ( + + 94 ) / - COUNT ( * ) + - 3 ) ) AS col1
----
49

query I rowsort
SELECT 80 * + 78 + - 33
----
6207

query I rowsort
SELECT 86 - + 8 AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2875
SELECT DISTINCT - COUNT( * ) AS col0, + CAST( + 6 AS SIGNED ) - - - 62
----
-1
-56

skipif mysql # not compatible
query II rowsort label-2875
SELECT DISTINCT - COUNT ( * ) AS col0, + CAST ( + 6 AS INTEGER ) - - - 62
----
-1
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2876
SELECT 67 * - COALESCE ( - 21, 5 DIV - 82 + 87 + - + COUNT( * ) DIV - 81 )
----
1407

skipif mysql # not compatible
query I rowsort label-2876
SELECT 67 * - COALESCE ( - 21, 5 / - 82 + 87 + - + COUNT ( * ) / - 81 )
----
1407

query I rowsort
SELECT 79 * + - 62
----
-4898

query II rowsort
SELECT ALL 60 AS col2, + 62
----
60
62

onlyif mysql # aggregate syntax: 
query II rowsort label-2879
SELECT ALL 62, SUM( DISTINCT - 53 ) * + COUNT( * ) AS col2
----
62
-53

skipif mysql # not compatible
query II rowsort label-2879
SELECT ALL 62, SUM ( DISTINCT - 53 ) * + COUNT ( * ) AS col2
----
62
-53

query I rowsort
SELECT DISTINCT - 27 * - - 50 AS col1
----
-1350

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT COUNT( * ) + - + NULLIF ( - - 73, COUNT( * ) )
----
-72

skipif mysql # not compatible
query I rowsort label-2882
SELECT COUNT ( * ) + - + NULLIF ( - - 73, COUNT ( * ) )
----
-72

query II rowsort
SELECT 94, - 38 * + 15 * + - ( + 71 ) AS col2
----
94
40470

query I rowsort
SELECT + 69 + + - 75 + 10 col0
----
4

query I rowsort
SELECT ALL - 65 + + + 40 AS col1
----
-25

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

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

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

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

query I rowsort
SELECT ALL 61 * + - 48 AS col0
----
-2928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2889
SELECT - 49 DIV + COUNT( * ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-2889
SELECT - 49 / + COUNT ( * ) AS col0
----
-49

query I rowsort
SELECT 20 - + 9
----
11

query I rowsort
SELECT - 58 * 56
----
-3248

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2893
SELECT + 28 * + 12 + - 51 DIV 24 - + 14 AS col2
----
320

skipif mysql # not compatible
query I rowsort label-2893
SELECT + 28 * + 12 + - 51 / 24 - + 14 AS col2
----
320

query II rowsort
SELECT - 85, - 93 AS col2
----
-85
-93

query I rowsort
SELECT 40 + + + 48 AS col0
----
88

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

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT - COUNT ( * ) + - - 53 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT ALL + MAX( ALL - 63 ) - 70 * + 99 + 16 + + 96 AS col1
----
-6881

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL + MAX ( ALL - 63 ) - 70 * + 99 + 16 + + 96 AS col1
----
-6881

query I rowsort
SELECT 89 * + 84 AS col0
----
7476

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT DISTINCT COUNT( * ) - + + 68 * + + 70 * + 27 * + + 12 AS col0
----
-1542239

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT COUNT ( * ) - + + 68 * + + 70 * + 27 * + + 12 AS col0
----
-1542239

query II rowsort
SELECT + 92 col0, ( - 11 )
----
92
-11

query I rowsort
SELECT 70 * + 91 AS col2
----
6370

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2903
SELECT DISTINCT 94 DIV + 63
----
1

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT 94 / + 63
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2904
SELECT 89 DIV COUNT( * ) col1, - MAX( + 40 ) AS col0
----
89
-40

skipif mysql # not compatible
query II rowsort label-2904
SELECT 89 / COUNT ( * ) col1, - MAX ( + 40 ) AS col0
----
89
-40

query I rowsort
SELECT 60 * 33 * - - 10 AS col1
----
19800

query I rowsort
SELECT 96 + + + 43
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-2907
SELECT ALL 29 * COUNT( * ) * - 36, 80 * CASE 6 WHEN + + 30 THEN NULL WHEN - 33 + - MAX( ALL ( 11 ) ) * + 13 THEN NULL WHEN + 92 THEN NULL ELSE + - 1 * + COUNT( * ) END AS col2
----
-1044
-80

skipif mysql # not compatible
query II rowsort label-2907
SELECT ALL 29 * COUNT ( * ) * - 36, 80 * CASE 6 WHEN + + 30 THEN NULL WHEN - 33 + - MAX ( ALL ( 11 ) ) * + 13 THEN NULL WHEN + 92 THEN NULL ELSE + - 1 * + COUNT ( * ) END AS col2
----
-1044
-80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT + 60 * 45 - - - 20 * - - COUNT( * )
----
2680

skipif mysql # not compatible
query I rowsort label-2909
SELECT + 60 * 45 - - - 20 * - - COUNT ( * )
----
2680

query I rowsort
SELECT 85 + + - 8
----
77

query II rowsort
SELECT - 92 - 21 * + - COALESCE ( + + 11, 60, + + 8 * 73 ), 44 col2
----
139
44

onlyif mysql # aggregate syntax: 
query II rowsort label-2912
SELECT DISTINCT - 78 * COUNT( * ) + - 38 col0, COALESCE ( - 62, - 54 )
----
-116
-62

skipif mysql # not compatible
query II rowsort label-2912
SELECT DISTINCT - 78 * COUNT ( * ) + - 38 col0, COALESCE ( - 62, - 54 )
----
-116
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT ALL + + 59 + - + COUNT( * ) * + 84
----
-25

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL + + 59 + - + COUNT ( * ) * + 84
----
-25

query I rowsort
SELECT ALL - - 88 * + 23 AS col0
----
2024

query I rowsort
SELECT - 19 + + + 34
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ALL - 84 * - + 30 - - + MIN( + 41 )
----
2561

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL - 84 * - + 30 - - + MIN ( + 41 )
----
2561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2917
SELECT - + CAST( NULL AS SIGNED ) + - 11 + - COUNT( * ) * + MAX( DISTINCT + 60 ) * - 20 + 79 + - CAST( - - ( CASE 21 WHEN 0 * - 91 + + 79 + - ( 37 ) * - 70 THEN + - 49 WHEN - 65 + + + 0 THEN - 54 END ) AS SIGNED ) * - MAX( + + ( - + 48 ) ) / + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2917
SELECT - + CAST ( NULL AS INTEGER ) + - 11 + - COUNT ( * ) * + MAX ( DISTINCT + 60 ) * - 20 + 79 + - CAST ( - - ( CASE 21 WHEN 0 * - 91 + + 79 + - ( 37 ) * - 70 THEN + - 49 WHEN - 65 + + + 0 THEN - 54 END ) AS INTEGER ) * - MAX ( + + ( - + 48 ) ) / + + 51
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2918
SELECT + + 99 - - 89 DIV + COUNT( * ) AS col0
----
188

skipif mysql # not compatible
query I rowsort label-2918
SELECT + + 99 - - 89 / + COUNT ( * ) AS col0
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT DISTINCT CASE - 32 WHEN 64 + + 19 THEN NULL WHEN 79 THEN NULL ELSE ( - + NULLIF ( - 0, + 39 ) ) * - + COUNT( * ) + 33 END
----
33

skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT CASE - 32 WHEN 64 + + 19 THEN NULL WHEN 79 THEN NULL ELSE ( - + NULLIF ( - 0, + 39 ) ) * - + COUNT ( * ) + 33 END
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-2920
SELECT - COUNT( 62 ), + 92 + - - 23 AS col2
----
-1
115

skipif mysql # not compatible
query II rowsort label-2920
SELECT - COUNT ( 62 ), + 92 + - - 23 AS col2
----
-1
115

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT ALL + COUNT( 59 ) * 5
----
5

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL + COUNT ( 59 ) * 5
----
5

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2924
SELECT - - ( - - 83 ) + - 95 + + - 7 DIV + COALESCE ( + MIN( ALL - 94 ), 30 )
----
-12

skipif mysql # not compatible
query I rowsort label-2924
SELECT - - ( - - 83 ) + - 95 + + - 7 / + COALESCE ( + MIN ( ALL - 94 ), 30 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2925
SELECT + 30 * + CAST( - 16 AS SIGNED ) * - COALESCE ( + 18, - + 98, COALESCE ( 45, - 81 ) - - 88 * 62 * - 52 ) * 11 * 16 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2925
SELECT + 30 * + CAST ( - 16 AS INTEGER ) * - COALESCE ( + 18, - + 98, COALESCE ( 45, - 81 ) - - 88 * 62 * - 52 ) * 11 * 16 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2926
SELECT + 76 * + ( + CAST( NULL AS SIGNED ) ) + - - 3 + CAST( - 83 AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2926
SELECT + 76 * + ( + CAST ( NULL AS INTEGER ) ) + - - 3 + CAST ( - 83 AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT + SUM( ALL 32 ) + - 64 * - 11 AS col2
----
736

skipif mysql # not compatible
query I rowsort label-2927
SELECT + SUM ( ALL 32 ) + - 64 * - 11 AS col2
----
736

query I rowsort
SELECT ALL 88 * 99 * - 40 AS col1
----
-348480

query I rowsort
SELECT + 94 * - NULLIF ( 57, 83 ) AS col0
----
-5358

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT + SUM( ALL + 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-2931
SELECT + SUM ( ALL + 57 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-2932
SELECT ALL + 50 AS col1, - 82 * COUNT( - ( + 72 ) ) * + - 69 + - 72
----
50
5586

skipif mysql # not compatible
query II rowsort label-2932
SELECT ALL + 50 AS col1, - 82 * COUNT ( - ( + 72 ) ) * + - 69 + - 72
----
50
5586

query I rowsort
SELECT ( - 42 ) * 1 + + - 65
----
-107

query I rowsort
SELECT ALL 75 * - + 73 + + 68 AS col1
----
-5407

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT 82 * + COUNT( DISTINCT - + 86 ) * ( + + 1 ) - 60
----
22

skipif mysql # not compatible
query I rowsort label-2935
SELECT 82 * + COUNT ( DISTINCT - + 86 ) * ( + + 1 ) - 60
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT MIN( 87 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-2936
SELECT MIN ( 87 ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT + 93 * COUNT( * ) + 57
----
150

skipif mysql # not compatible
query I rowsort label-2937
SELECT + 93 * COUNT ( * ) + 57
----
150

query I rowsort
SELECT + 34 + - 11 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL - 51 * + 31 + - 97 * - + 39 + COUNT( * ) + + + 28 AS col1
----
2231

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL - 51 * + 31 + - 97 * - + 39 + COUNT ( * ) + + + 28 AS col1
----
2231

query I rowsort
SELECT - 10 + + 64
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2941
SELECT 82 * CAST( 27 AS SIGNED ) * - 21 + + - 70 * + - 39, + NULLIF ( 76, - COUNT( * ) * + + 18 + + - 17 - - 12 / + COUNT( * ) ) AS col0
----
-43764
76

skipif mysql # not compatible
query II rowsort label-2941
SELECT 82 * CAST ( 27 AS INTEGER ) * - 21 + + - 70 * + - 39, + NULLIF ( 76, - COUNT ( * ) * + + 18 + + - 17 - - 12 / + COUNT ( * ) ) AS col0
----
-43764
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2942
SELECT ALL CAST( NULL AS SIGNED ) * 19 + + CASE 41 WHEN - + 58 * + 34 + - COUNT( * ) + + - 40 THEN NULL ELSE + SUM( - 83 ) + - 55 * 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL CAST ( NULL AS INTEGER ) * 19 + + CASE 41 WHEN - + 58 * + 34 + - COUNT ( * ) + + - 40 THEN NULL ELSE + SUM ( - 83 ) + - 55 * 74 END
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT + 90 + SUM( DISTINCT + 29 ) AS col2
----
119

skipif mysql # not compatible
query I rowsort label-2945
SELECT + 90 + SUM ( DISTINCT + 29 ) AS col2
----
119

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2946
SELECT + + 69 + - CASE MIN( 61 ) WHEN - NULLIF ( - - 21, - + 98 ) - - + ( - + 59 ) / + 72 - - + 67 * 70 THEN + 70 * + 5 + ( CAST( 20 AS DECIMAL ) ) WHEN + 26 + - COUNT( * ) * - + 22 THEN NULL END + + 65 / + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2946
SELECT + + 69 + - CASE MIN ( 61 ) WHEN - NULLIF ( - - 21, - + 98 ) - - + ( - + 59 ) / + 72 - - + 67 * 70 THEN + 70 * + 5 + ( CAST ( 20 AS REAL ) ) WHEN + 26 + - COUNT ( * ) * - + 22 THEN NULL END + + 65 / + 80
----
NULL

query I rowsort
SELECT ALL + - 24 + - 91
----
-115

query II rowsort
SELECT DISTINCT - 98 AS col0, + 55
----
-98
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT - - 77 + + - COUNT( ALL + - ( - 95 ) )
----
76

skipif mysql # not compatible
query I rowsort label-2949
SELECT - - 77 + + - COUNT ( ALL + - ( - 95 ) )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-2950
SELECT - NULLIF ( + CASE + - 96 WHEN + AVG ( + CASE 99 WHEN 65 THEN - + 34 END ) THEN NULL WHEN 32 THEN + 89 END, + SUM( 52 ) ) + + 42 * - 45, 23 AS col0
----
NULL
23

skipif mysql # not compatible
query II rowsort label-2950
SELECT - NULLIF ( + CASE + - 96 WHEN + AVG ( + CASE 99 WHEN 65 THEN - + 34 END ) THEN NULL WHEN 32 THEN + 89 END, + SUM ( 52 ) ) + + 42 * - 45, 23 AS col0
----
NULL
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2951
SELECT + 79 * - MIN( - 88 ) AS col0, COUNT( DISTINCT 18 )
----
6952
1

skipif mysql # not compatible
query II rowsort label-2951
SELECT + 79 * - MIN ( - 88 ) AS col0, COUNT ( DISTINCT 18 )
----
6952
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT ALL + - SUM( DISTINCT + 0 ) * + + COUNT( * ) * + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL + - SUM ( DISTINCT + 0 ) * + + COUNT ( * ) * + 52 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2955
SELECT + CASE ( + + COALESCE ( - + 26, 99 * 4 * 69, - - COALESCE ( - + 51, 70 * MAX( + 1 ) * 70 ) + + + 21 ) ) WHEN - CAST( NULL AS SIGNED ) * - 47 * + - CASE + - 39 WHEN - + 17 THEN + 1 ELSE NULL END + + 76 THEN - + SUM( 68 ) ELSE + CASE COUNT( * ) WHEN - + MAX( ALL CAST( NULL AS SIGNED ) ) + - 97 THEN + + ( 9 ) ELSE - 57 * - 2 END END AS col0
----
114

skipif mysql # not compatible
query I rowsort label-2955
SELECT + CASE ( + + COALESCE ( - + 26, 99 * 4 * 69, - - COALESCE ( - + 51, 70 * MAX ( + 1 ) * 70 ) + + + 21 ) ) WHEN - CAST ( NULL AS INTEGER ) * - 47 * + - CASE + - 39 WHEN - + 17 THEN + 1 ELSE NULL END + + 76 THEN - + SUM ( 68 ) ELSE + CASE COUNT ( * ) WHEN - + MAX ( ALL CAST ( NULL AS INTEGER ) ) + - 97 THEN + + ( 9 ) ELSE - 57 * - 2 END END AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT - - 51 * + MAX( DISTINCT + 50 )
----
2550

skipif mysql # not compatible
query I rowsort label-2956
SELECT - - 51 * + MAX ( DISTINCT + 50 )
----
2550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2957
SELECT DISTINCT + ( + ( + - 38 ) ) * - CASE + 52 WHEN + + COUNT( * ) THEN - + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2957
SELECT DISTINCT + ( + ( + - 38 ) ) * - CASE + 52 WHEN + + COUNT ( * ) THEN - + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 54, - - 2 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT - - NULLIF ( - MIN( - - 20 ), - - 53 )
----
-20

skipif mysql # not compatible
query I rowsort label-2959
SELECT - - NULLIF ( - MIN ( - - 20 ), - - 53 )
----
-20

query I rowsort
SELECT ALL + - 77 * - 32 AS col2
----
2464

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2961
SELECT - - 32 - 28 * CASE + CAST( + 81 AS DECIMAL ) WHEN - 74 * + COUNT( * ) THEN NULL WHEN + 58 THEN 87 / - COUNT( * ) ELSE CASE + MIN( + 8 ) WHEN + 45 * + + NULLIF ( + 82, - - COUNT( * ) * 5 * - + COUNT( * ) + - ( - 60 ) / - ( - 90 ) ) THEN + 69 ELSE NULL END * - 98 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2961
SELECT - - 32 - 28 * CASE + CAST ( + 81 AS REAL ) WHEN - 74 * + COUNT ( * ) THEN NULL WHEN + 58 THEN 87 / - COUNT ( * ) ELSE CASE + MIN ( + 8 ) WHEN + 45 * + + NULLIF ( + 82, - - COUNT ( * ) * 5 * - + COUNT ( * ) + - ( - 60 ) / - ( - 90 ) ) THEN + 69 ELSE NULL END * - 98 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2962
SELECT - CASE - COUNT( * ) WHEN - + 6 THEN NULL ELSE - 3 END DIV - 98 * + 33 - - 79 + - - 60 - - 72 * - 41 * + + 54
----
-159269

skipif mysql # not compatible
query I rowsort label-2962
SELECT - CASE - COUNT ( * ) WHEN - + 6 THEN NULL ELSE - 3 END / - 98 * + 33 - - 79 + - - 60 - - 72 * - 41 * + + 54
----
-159269

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2963
SELECT DISTINCT COUNT( * ) DIV - MAX( - 8 ) + 71
----
71

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT COUNT ( * ) / - MAX ( - 8 ) + 71
----
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2964
SELECT DISTINCT + NULLIF ( 19, - + 3 + + CAST( NULL AS DECIMAL ) * 8 )
----
19

skipif mysql # not compatible
query I rowsort label-2964
SELECT DISTINCT + NULLIF ( 19, - + 3 + + CAST ( NULL AS REAL ) * 8 )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2965
SELECT DISTINCT - 17 DIV 5 + - MAX( DISTINCT - - 67 )
----
-70

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT - 17 / 5 + - MAX ( DISTINCT - - 67 )
----
-70

query II rowsort
SELECT ALL + ( 6 ) AS col1, 57 + 68 AS col0
----
6
125

onlyif mysql # DIV for integer division: 
query I rowsort label-2967
SELECT DISTINCT 71 DIV 91 + - + 93 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT 71 / 91 + - + 93 AS col2
----
-93

query I rowsort
SELECT + NULLIF ( - - 37, 35 ) AS col1
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-2969
SELECT - 28 DIV ( + - 13 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2969
SELECT - 28 / ( + - 13 ) AS col0
----
2

query I rowsort
SELECT 86 * - 41 + 68 + + 61 - + 91
----
-3488

onlyif mysql # DIV for integer division: 
query I rowsort label-2971
SELECT ALL - 7 DIV + + 32 + - 25 col2
----
-25

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL - 7 / + + 32 + - 25 col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT + COUNT( + 56 )
----
1

skipif mysql # not compatible
query I rowsort label-2972
SELECT + COUNT ( + 56 )
----
1

query I rowsort
SELECT + 11 * 58
----
638

query I rowsort
SELECT + NULLIF ( + - 39, 1 )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2975
SELECT ALL - 51 + 21 AS col0, + CAST( ( COUNT( DISTINCT + 10 ) ) AS SIGNED )
----
-30
1

skipif mysql # not compatible
query II rowsort label-2975
SELECT ALL - 51 + 21 AS col0, + CAST ( ( COUNT ( DISTINCT + 10 ) ) AS INTEGER )
----
-30
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2976
SELECT DISTINCT - CAST( + + 50 AS SIGNED ), 2 AS col2
----
-50
2

skipif mysql # not compatible
query II rowsort label-2976
SELECT DISTINCT - CAST ( + + 50 AS INTEGER ), 2 AS col2
----
-50
2

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

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL + COUNT ( * ) * + 96 AS col2
----
96

query I rowsort
SELECT - 10 * 29 AS col2
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT - MAX( 28 ) + - + 82
----
-110

skipif mysql # not compatible
query I rowsort label-2979
SELECT - MAX ( 28 ) + - + 82
----
-110

query I rowsort
SELECT ALL ( 79 ) * + + 49
----
3871

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2981
SELECT + 77 * - 3 * - 7 * 14 - - 41 - - SUM( - 12 ) DIV - + 34 + + 44 + - - 3 DIV + - ( - 33 ) - + - 80 * - + 29 AS col0, + COUNT( * ) + + - 91
----
20403
-90

skipif mysql # not compatible
query II rowsort label-2981
SELECT + 77 * - 3 * - 7 * 14 - - 41 - - SUM ( - 12 ) / - + 34 + + 44 + - - 3 / + - ( - 33 ) - + - 80 * - + 29 AS col0, + COUNT ( * ) + + - 91
----
20403
-90

query I rowsort
SELECT DISTINCT - 35 * + 89
----
-3115

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

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

query I rowsort
SELECT DISTINCT 83 * + 57 * 44
----
208164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2985
SELECT - CASE + + 97 WHEN ( - ( - 75 ) ) THEN - 20 WHEN CAST( NULL AS SIGNED ) THEN CAST( NULL AS SIGNED ) ELSE NULL END * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT - CASE + + 97 WHEN ( - ( - 75 ) ) THEN - 20 WHEN CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS INTEGER ) ELSE NULL END * 91
----
NULL

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

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

query II rowsort
SELECT - 53 - + + 10 AS col2, - 30 col1
----
-63
-30

query II rowsort
SELECT + 62 * + 20, 67 AS col2
----
1240
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT - COUNT( 99 ) + - 37 + - SUM( - 93 ) * - - 91 AS col0
----
8425

skipif mysql # not compatible
query I rowsort label-2989
SELECT - COUNT ( 99 ) + - 37 + - SUM ( - 93 ) * - - 91 AS col0
----
8425

query I rowsort
SELECT ALL - 53 + 5 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT ALL + MIN( - 80 ) + - + 42 AS col0
----
-122

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL + MIN ( - 80 ) + - + 42 AS col0
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2992
SELECT CAST( + 39 AS SIGNED ) + + + 60 - 52 col2
----
47

skipif mysql # not compatible
query I rowsort label-2992
SELECT CAST ( + 39 AS INTEGER ) + + + 60 - 52 col2
----
47

query I rowsort
SELECT 86 * + - 79 col0
----
-6794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2994
SELECT SUM( ALL + 40 ) DIV - 24 + - 10
----
-11

skipif mysql # not compatible
query I rowsort label-2994
SELECT SUM ( ALL + 40 ) / - 24 + - 10
----
-11

query I rowsort
SELECT ALL 71 + NULLIF ( + - 21, 85 ) AS col2
----
50

query I rowsort
SELECT ALL + 63 * 19
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT DISTINCT + SUM( + - 84 ) + + 46 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-2997
SELECT DISTINCT + SUM ( + - 84 ) + + 46 AS col2
----
-38

query I rowsort
SELECT 91 * 25 + 13
----
2288

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT ALL - ( MIN( DISTINCT - 71 ) ) col2
----
71

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL - ( MIN ( DISTINCT - 71 ) ) col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT DISTINCT - MIN( - ( + 26 ) ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-3000
SELECT DISTINCT - MIN ( - ( + 26 ) ) AS col2
----
26

query I rowsort
SELECT 11 + - 68 * - 27 AS col1
----
1847

query I rowsort
SELECT DISTINCT + 19 + 24
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT 92 * 39 + - 29 * ( SUM( DISTINCT 94 ) ) + COUNT( * ) AS col1
----
863

skipif mysql # not compatible
query I rowsort label-3003
SELECT 92 * 39 + - 29 * ( SUM ( DISTINCT 94 ) ) + COUNT ( * ) AS col1
----
863

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

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - + 13
----
NULL

query I rowsort
SELECT ALL - CASE WHEN + 72 IS NOT NULL THEN - - 77 + + 73 * - 15 + + + 45 ELSE NULL END col0
----
973

query I rowsort
SELECT 39 * + 63
----
2457

query I rowsort
SELECT + 95 + - - 15
----
110

query I rowsort
SELECT DISTINCT - + 40 * - 36 AS col2
----
1440

query I rowsort
SELECT + 8 + + - 34 * + 5 col1
----
-162

query II rowsort
SELECT ( 14 ) * + + 95 AS col1, 60
----
1330
60

query I rowsort
SELECT + 75 + 3 AS col1
----
78

query I rowsort
SELECT ALL + 95 * + - 54
----
-5130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3013
SELECT 10 + - + CAST( - ( - - 11 ) AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-3013
SELECT 10 + - + CAST ( - ( - - 11 ) AS INTEGER )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3014
SELECT - ( NULLIF ( + CAST( NULL AS SIGNED ), - 80 ) ) * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3014
SELECT - ( NULLIF ( + CAST ( NULL AS INTEGER ), - 80 ) ) * 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT + 24 + 38 * ( CASE + - COUNT( * ) WHEN + COUNT( * ) - 90 THEN - - 47 ELSE NULL END ) / - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3015
SELECT + 24 + 38 * ( CASE + - COUNT ( * ) WHEN + COUNT ( * ) - 90 THEN - - 47 ELSE NULL END ) / - 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT MAX( DISTINCT ( - 65 ) ) + - - 85
----
20

skipif mysql # not compatible
query I rowsort label-3016
SELECT MAX ( DISTINCT ( - 65 ) ) + - - 85
----
20

query I rowsort
SELECT 10 * + 99 + 56 + + 66 + - 23 + - + ( 88 )
----
1001

query I rowsort
SELECT DISTINCT 16 + + ( - 18 ) * - 20
----
376

query I rowsort
SELECT ALL + 29 + + - 71 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT + MIN( + + ( 61 ) ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-3020
SELECT + MIN ( + + ( 61 ) ) AS col2
----
61

query I rowsort
SELECT ALL 77 * - - 16 AS col0
----
1232

query I rowsort
SELECT DISTINCT 36 + + 10
----
46

query II rowsort
SELECT 80 col1, + 30
----
80
30

query I rowsort
SELECT ALL 30 + 86 AS col2
----
116

query I rowsort
SELECT 70 - 97
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3026
SELECT CASE 81 WHEN 57 + - 85 - CAST( NULL AS SIGNED ) * - AVG ( ALL - 30 ) * - - 50 THEN 12 END - + 44 + + - 32 * + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3026
SELECT CASE 81 WHEN 57 + - 85 - CAST ( NULL AS INTEGER ) * - AVG ( ALL - 30 ) * - - 50 THEN 12 END - + 44 + + - 32 * + 16 AS col1
----
NULL

query II rowsort
SELECT 96 AS col0, - 49 col1
----
96
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-3028
SELECT ALL 89 AS col1, - COUNT( * ) AS col2
----
89
-1

skipif mysql # not compatible
query II rowsort label-3028
SELECT ALL 89 AS col1, - COUNT ( * ) AS col2
----
89
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3029
SELECT 66 AS col1, 36 - + - 29 + - 23 DIV + COALESCE ( + 17, - - 12 * 81, 69 + - - 95 )
----
66
64

skipif mysql # not compatible
query II rowsort label-3029
SELECT 66 AS col1, 36 - + - 29 + - 23 / + COALESCE ( + 17, - - 12 * 81, 69 + - - 95 )
----
66
64

query I rowsort
SELECT 21 + - - 23 + COALESCE ( + - 37, - 39, + 94 + 74 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3031
SELECT + COUNT( * ) AS col2, + COALESCE ( 92, - 7 * + COUNT( * ), - 89 + - - 61 )
----
1
92

skipif mysql # not compatible
query II rowsort label-3031
SELECT + COUNT ( * ) AS col2, + COALESCE ( 92, - 7 * + COUNT ( * ), - 89 + - - 61 )
----
1
92

query I rowsort
SELECT 30 + + 7 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT + 58 - COUNT( * ) * + - 46 * + COALESCE ( - 0, COALESCE ( - COUNT( * ), - 98 ), 91 * - + 48, - SUM( 77 ) - + 61 + - 41 * + 29 )
----
58

skipif mysql # not compatible
query I rowsort label-3033
SELECT + 58 - COUNT ( * ) * + - 46 * + COALESCE ( - 0, COALESCE ( - COUNT ( * ), - 98 ), 91 * - + 48, - SUM ( 77 ) - + 61 + - 41 * + 29 )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3034
SELECT DISTINCT + 53, - ( 75 ) * + 36 + - - 79 * - + 70 - + 90 * + + MIN( 28 ) + - 3 * - - 43 AS col1
----
53
-10879

skipif mysql # not compatible
query II rowsort label-3034
SELECT DISTINCT + 53, - ( 75 ) * + 36 + - - 79 * - + 70 - + 90 * + + MIN ( 28 ) + - 3 * - - 43 AS col1
----
53
-10879

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT ALL - NULLIF ( 98, COUNT( * ) * + NULLIF ( - 53, 64 ) ) * - + 71 AS col2
----
6958

skipif mysql # not compatible
query I rowsort label-3035
SELECT ALL - NULLIF ( 98, COUNT ( * ) * + NULLIF ( - 53, 64 ) ) * - + 71 AS col2
----
6958

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3036
SELECT NULLIF ( - 81, + 88 * + 73 ) AS col1, - ( ( + CAST( NULL AS SIGNED ) ) ) + + 22 * - 33 * 54
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-3036
SELECT NULLIF ( - 81, + 88 * + 73 ) AS col1, - ( ( + CAST ( NULL AS INTEGER ) ) ) + + 22 * - 33 * 54
----
-81
NULL

query I rowsort
SELECT ALL - 59 * - - 22 - + 45 + 6 * + 91
----
-797

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT + CASE - + 66 WHEN + COALESCE ( - COUNT( * ), + 21 + + 41 + 62 + + 38 ) THEN - - 46 - + 29 / - 36 + 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3038
SELECT + CASE - + 66 WHEN + COALESCE ( - COUNT ( * ), + 21 + + 41 + 62 + + 38 ) THEN - - 46 - + 29 / - 36 + 41 ELSE NULL END
----
NULL

query I rowsort
SELECT + 98 + ( - - 48 ) AS col0
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3040
SELECT - 4 * - COALESCE ( ( - 47 ), + CAST( NULL AS SIGNED ) * - 48 + + 56 * + 72 )
----
-188

skipif mysql # not compatible
query I rowsort label-3040
SELECT - 4 * - COALESCE ( ( - 47 ), + CAST ( NULL AS INTEGER ) * - 48 + + 56 * + 72 )
----
-188

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

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

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

skipif mysql # not compatible
query I rowsort label-3042
SELECT MAX ( + 80 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3043
SELECT - + ( + + 31 ) - + ( 74 ) col1, + 24 - + CAST( + CAST( + 86 AS SIGNED ) AS SIGNED ) col0
----
-105
-62

skipif mysql # not compatible
query II rowsort label-3043
SELECT - + ( + + 31 ) - + ( 74 ) col1, + 24 - + CAST ( + CAST ( + 86 AS INTEGER ) AS INTEGER ) col0
----
-105
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT - + 46 * - - 18 + + 10 - + + COUNT( * ) * - 75 AS col0
----
-743

skipif mysql # not compatible
query I rowsort label-3044
SELECT - + 46 * - - 18 + + 10 - + + COUNT ( * ) * - 75 AS col0
----
-743

onlyif mysql # aggregate syntax: 
query II rowsort label-3045
SELECT + + 32 AS col1, COUNT( * ) + + - ( 16 ) AS col2
----
32
-15

skipif mysql # not compatible
query II rowsort label-3045
SELECT + + 32 AS col1, COUNT ( * ) + + - ( 16 ) AS col2
----
32
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3046
SELECT 92, + MAX( 98 ) col1
----
92
98

skipif mysql # not compatible
query II rowsort label-3046
SELECT 92, + MAX ( 98 ) col1
----
92
98

query I rowsort
SELECT ALL - + 62 * + 85
----
-5270

query I rowsort
SELECT + - 69 + 40
----
-29

query I rowsort
SELECT ALL + COALESCE ( + 91, + 71, - 27 ) * + 52 AS col0
----
4732

query I rowsort
SELECT - - 19 + - 22
----
-3

query I rowsort
SELECT - - 13 * + + 90 AS col0
----
1170

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT ALL - - 57 + - 83 DIV - 41
----
59

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL - - 57 + - 83 / - 41
----
59

query I rowsort
SELECT - 88 + 23
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT DISTINCT - + CASE - + 8 WHEN - + 44 / - 49 * 16 + + 90 + COUNT( * ) THEN + - 72 END * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT - + CASE - + 8 WHEN - + 44 / - 49 * 16 + + 90 + COUNT ( * ) THEN + - 72 END * - 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT DISTINCT + - 28 + - COUNT( * ) + 71
----
42

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT + - 28 + - COUNT ( * ) + 71
----
42

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

skipif mysql # not compatible
query I rowsort label-3057
SELECT + CAST ( NULL AS INTEGER ) + SUM ( DISTINCT 70 )
----
NULL

query I rowsort
SELECT - COALESCE ( - 42, 94 * - 7 ) + - + ( + 33 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT - 12 + + 83 + + COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-3059
SELECT - 12 + + 83 + + COUNT ( * ) AS col1
----
72

query I rowsort
SELECT + 18 - 42 + - 73 - - 87 * + 49 AS col0
----
4166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3061
SELECT - CAST( + 94 AS SIGNED ) + - - 1 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3061
SELECT - CAST ( + 94 AS INTEGER ) + - - 1 AS col1
----
-93

query I rowsort
SELECT + 94 - - + 16 AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT - ( - CASE + 5 WHEN + - ( 57 ) + - COUNT( * ) THEN COUNT( * ) / - + ( + - 71 ) - + + 39 WHEN - 9 + + 2 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3063
SELECT - ( - CASE + 5 WHEN + - ( 57 ) + - COUNT ( * ) THEN COUNT ( * ) / - + ( + - 71 ) - + + 39 WHEN - 9 + + 2 THEN NULL END )
----
NULL

query I rowsort
SELECT + 70 + + - 95 * - 92
----
8810

query I rowsort
SELECT + 82 * + 90 AS col2
----
7380

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT ALL ( - COALESCE ( + + 23, - COUNT( * ), - 27, + 99 + + 58 * + 34 ) ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL ( - COALESCE ( + + 23, - COUNT ( * ), - 27, + 99 + + 58 * + 34 ) ) AS col2
----
-23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT + 58 + COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3068
SELECT + 58 + COUNT ( * ) AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3069
SELECT DISTINCT - 46 * 62 AS col1, 54 * CASE 9 WHEN + NULLIF ( - - 87, 56 - + 3 ) * CAST( + 2 AS SIGNED ) * - CAST( NULL AS DECIMAL ) + + - SUM( DISTINCT + 17 ) + + 82 + + + 21 - 67 + - 98 * CASE + 93 WHEN - - 56 THEN NULL WHEN + 81 + - COUNT( * ) + + 77 + + - COUNT( * ) THEN + 95 END * + ( - 13 ) THEN - 92 END AS col0
----
-2852
NULL

skipif mysql # not compatible
query II rowsort label-3069
SELECT DISTINCT - 46 * 62 AS col1, 54 * CASE 9 WHEN + NULLIF ( - - 87, 56 - + 3 ) * CAST ( + 2 AS INTEGER ) * - CAST ( NULL AS REAL ) + + - SUM ( DISTINCT + 17 ) + + 82 + + + 21 - 67 + - 98 * CASE + 93 WHEN - - 56 THEN NULL WHEN + 81 + - COUNT ( * ) + + 77 + + - COUNT ( * ) THEN + 95 END * + ( - 13 ) THEN - 92 END AS col0
----
-2852
NULL

query I rowsort
SELECT + 34 + + 32 col0
----
66

query I rowsort
SELECT + 52 * + 34 * 48 col0
----
84864

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT + CASE - 98 WHEN - 58 THEN NULL WHEN + COUNT( * ) + COUNT( * ) THEN - NULLIF ( 92, + + 73 ) + 13 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT + CASE - 98 WHEN - 58 THEN NULL WHEN + COUNT ( * ) + COUNT ( * ) THEN - NULLIF ( 92, + + 73 ) + 13 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3073
SELECT + COUNT( * ) DIV 84 * 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3073
SELECT + COUNT ( * ) / 84 * 30 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3074
SELECT - 1 DIV + 40 + - + ( COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3074
SELECT - 1 / + 40 + - + ( COUNT ( * ) ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3075
SELECT + 77 DIV + 57 + + 16
----
17

skipif mysql # not compatible
query I rowsort label-3075
SELECT + 77 / + 57 + + 16
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3076
SELECT + 34 / - - CAST( NULL AS SIGNED ) - 10 + 29 * 4 * - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3076
SELECT + 34 / - - CAST ( NULL AS INTEGER ) - 10 + 29 * 4 * - 88 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3077
SELECT + - 58 + + + 69, - 39 * - - COALESCE ( CAST( + 6 AS SIGNED ), - 50 ) AS col1
----
11
-234

skipif mysql # not compatible
query II rowsort label-3077
SELECT + - 58 + + + 69, - 39 * - - COALESCE ( CAST ( + 6 AS INTEGER ), - 50 ) AS col1
----
11
-234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3078
SELECT ALL - - CAST( NULL AS SIGNED ) * + - CAST( + 70 AS SIGNED ) + 62 + 64 * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL - - CAST ( NULL AS INTEGER ) * + - CAST ( + 70 AS INTEGER ) + 62 + 64 * - 31
----
NULL

query II rowsort
SELECT + + 92 * + 44 + + 29 + + 18 + - + 86 AS col1, + 13
----
4009
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3080
SELECT + CASE - 16 WHEN + CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) THEN + ( + 98 ) + + COALESCE ( + ( - 89 ), + COUNT( * ) ) ELSE + + 39 END AS col1
----
39

skipif mysql # not compatible
query I rowsort label-3080
SELECT + CASE - 16 WHEN + CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) THEN + ( + 98 ) + + COALESCE ( + ( - 89 ), + COUNT ( * ) ) ELSE + + 39 END AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT - + COUNT( * ) * 87 + ( 78 )
----
-9

skipif mysql # not compatible
query I rowsort label-3081
SELECT - + COUNT ( * ) * 87 + ( 78 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT + + COUNT( ALL 62 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3082
SELECT + + COUNT ( ALL 62 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3083
SELECT ALL + COALESCE ( + + 75, 98, - 36 + - 4 ) AS col0, + COUNT( * ) AS col1
----
75
1

skipif mysql # not compatible
query II rowsort label-3083
SELECT ALL + COALESCE ( + + 75, 98, - 36 + - 4 ) AS col0, + COUNT ( * ) AS col1
----
75
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT DISTINCT ( - CASE + - COUNT( * ) WHEN + 91 - + 46 THEN 95 * 11 * - 91 END ) * + 32 * - - MIN( + - 57 ) + - MAX( DISTINCT 41 ) + - + ( - + 32 ) / - CASE - 44 WHEN - - 43 THEN + + 48 ELSE ( - 87 ) + + - 25 END + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT DISTINCT ( - CASE + - COUNT ( * ) WHEN + 91 - + 46 THEN 95 * 11 * - 91 END ) * + 32 * - - MIN ( + - 57 ) + - MAX ( DISTINCT 41 ) + - + ( - + 32 ) / - CASE - 44 WHEN - - 43 THEN + + 48 ELSE ( - 87 ) + + - 25 END + + 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT + - 98 * COUNT( * ) + - 66 AS col0
----
-164

skipif mysql # not compatible
query I rowsort label-3085
SELECT + - 98 * COUNT ( * ) + - 66 AS col0
----
-164

query I rowsort
SELECT ALL NULLIF ( 9, + 31 ) * 32 + - 26 AS col1
----
262

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT DISTINCT + COALESCE ( - 91, + - 48 * - + COUNT( * ), - 9, - 22 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT + COALESCE ( - 91, + - 48 * - + COUNT ( * ), - 9, - 22 ) AS col0
----
-91

query I rowsort
SELECT DISTINCT 76 * + + 61 + + - 88 * ( + + 64 )
----
-996

onlyif mysql # DIV for integer division: 
query II rowsort label-3089
SELECT ALL + 13 DIV 23 col0, - 45 AS col2
----
0
-45

skipif mysql # not compatible
query II rowsort label-3089
SELECT ALL + 13 / 23 col0, - 45 AS col2
----
0
-45

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3091
SELECT ALL ( ( + + COUNT( * ) ) ) AS col2, - CASE 68 WHEN + + CAST( NULL AS SIGNED ) + - 93 THEN + 3 WHEN + + 29 / COALESCE ( - + CAST( NULL AS SIGNED ), ( + COUNT( * ) ), - + 8 + - + 10 ) THEN NULL END * + 43 + - + NULLIF ( - - 11, - 36 * + 13 ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3091
SELECT ALL ( ( + + COUNT ( * ) ) ) AS col2, - CASE 68 WHEN + + CAST ( NULL AS INTEGER ) + - 93 THEN + 3 WHEN + + 29 / COALESCE ( - + CAST ( NULL AS INTEGER ), ( + COUNT ( * ) ), - + 8 + - + 10 ) THEN NULL END * + 43 + - + NULLIF ( - - 11, - 36 * + 13 ) AS col0
----
1
NULL

query I rowsort
SELECT - 18 + + - 6 AS col1
----
-24

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

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

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

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT + 23 - COUNT ( * ) AS col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3095
SELECT ALL + NULLIF ( 33, - COALESCE ( - + NULLIF ( - ( - 93 ), - - 76 + - 91 ), CAST( NULL AS SIGNED ), + + 54 / - 43 ) ) - 26 * - 48 * - + 20 col0
----
-24927

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL + NULLIF ( 33, - COALESCE ( - + NULLIF ( - ( - 93 ), - - 76 + - 91 ), CAST ( NULL AS INTEGER ), + + 54 / - 43 ) ) - 26 * - 48 * - + 20 col0
----
-24927

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

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

query I rowsort
SELECT DISTINCT + 23 * + 63
----
1449

onlyif mysql # DIV for integer division: 
query I rowsort label-3098
SELECT 20 + 84 DIV 77 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-3098
SELECT 20 + 84 / 77 AS col1
----
21

query I rowsort
SELECT ALL + 5 - + 86 AS col1
----
-81

query II rowsort
SELECT 42 AS col0, - 27 AS col1
----
42
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-3101
SELECT 4 - + COALESCE ( 79, + + 46 ) + + 37 * + 0 col1, 27 * - + SUM( - 77 ) AS col2
----
-75
2079

skipif mysql # not compatible
query II rowsort label-3101
SELECT 4 - + COALESCE ( 79, + + 46 ) + + 37 * + 0 col1, 27 * - + SUM ( - 77 ) AS col2
----
-75
2079

query I rowsort
SELECT 40 * 60
----
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT 14 - COUNT( * ) + + COUNT( * ) + + 35 * - + SUM( ( + 63 ) ) * + 83
----
-183001

skipif mysql # not compatible
query I rowsort label-3103
SELECT 14 - COUNT ( * ) + + COUNT ( * ) + + 35 * - + SUM ( ( + 63 ) ) * + 83
----
-183001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3104
SELECT 55 + ( - CASE + - CAST( - 28 AS SIGNED ) WHEN 30 THEN 94 END ) - - - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3104
SELECT 55 + ( - CASE + - CAST ( - 28 AS INTEGER ) WHEN 30 THEN 94 END ) - - - 39
----
NULL

query I rowsort
SELECT 29 * + + 24
----
696

query II rowsort
SELECT ALL - 4 AS col1, - 23 * + 57
----
-4
-1311

query I rowsort
SELECT DISTINCT 21 * + 62 col2
----
1302

query I rowsort
SELECT DISTINCT + 15 + + - 26 AS col2
----
-11

query I rowsort
SELECT 85 - - 71
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT COUNT( * ) * MIN( DISTINCT 76 ) * + 26 * - 24
----
-47424

skipif mysql # not compatible
query I rowsort label-3110
SELECT COUNT ( * ) * MIN ( DISTINCT 76 ) * + 26 * - 24
----
-47424

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT ALL + + 53 + - SUM( ALL + 75 ) + 11 + COUNT( * ) * + 16
----
5

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL + + 53 + - SUM ( ALL + 75 ) + 11 + COUNT ( * ) * + 16
----
5

query I rowsort
SELECT - ( - 40 ) col1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3113
SELECT + + 49 AS col0, + 52 + + 60 * + COUNT( * )
----
49
112

skipif mysql # not compatible
query II rowsort label-3113
SELECT + + 49 AS col0, + 52 + + 60 * + COUNT ( * )
----
49
112

onlyif mysql # aggregate syntax: 
query II rowsort label-3114
SELECT 84, COUNT( * ) - + 40 AS col0
----
84
-39

skipif mysql # not compatible
query II rowsort label-3114
SELECT 84, COUNT ( * ) - + 40 AS col0
----
84
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT ALL COUNT( * ) + - 65 * - 70 AS col2
----
4551

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL COUNT ( * ) + - 65 * - 70 AS col2
----
4551

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT - MIN( DISTINCT - 6 ) * - - 80 AS col2
----
480

skipif mysql # not compatible
query I rowsort label-3116
SELECT - MIN ( DISTINCT - 6 ) * - - 80 AS col2
----
480

query I rowsort
SELECT ALL - 66 + + 75 * - 77 + - 51 AS col2
----
-5892

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3118
SELECT - 4 DIV + SUM( + 77 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3118
SELECT - 4 / + SUM ( + 77 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3119
SELECT DISTINCT - 75 DIV - 83 col0
----
0

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT - 75 / - 83 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT DISTINCT COALESCE ( + 17, 19 + - 91 ) + - + MIN( DISTINCT + 77 ) + + 20 * 87 AS col2
----
1680

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT COALESCE ( + 17, 19 + - 91 ) + - + MIN ( DISTINCT + 77 ) + + 20 * 87 AS col2
----
1680

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

query II rowsort
SELECT DISTINCT - + 45 AS col1, - 43
----
-45
-43

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

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

query I rowsort
SELECT DISTINCT 63 * 15 * + + ( + 97 ) + - + 26 AS col2
----
91639

query I rowsort
SELECT - 37 + - + 7
----
-44

query I rowsort
SELECT ALL NULLIF ( + 43, + - 6 ) - + 40 col0
----
3

query I rowsort
SELECT 98 + 44
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-3128
SELECT 5 + + COUNT( * ), + 25 AS col1
----
6
25

skipif mysql # not compatible
query II rowsort label-3128
SELECT 5 + + COUNT ( * ), + 25 AS col1
----
6
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT ALL COUNT( * ) * 58 * + - CASE + 31 WHEN - 11 THEN + 57 + - + 86 ELSE - - 57 END * + 68 * 88 * + - 14 AS col2
----
276963456

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL COUNT ( * ) * 58 * + - CASE + 31 WHEN - 11 THEN + 57 + - + 86 ELSE - - 57 END * + 68 * 88 * + - 14 AS col2
----
276963456

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

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

query I rowsort
SELECT 24 + + + 38 AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3132
SELECT CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) + - MAX( 71 ), NULLIF ( - COUNT( * ), - CAST( 33 AS SIGNED ) ) col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3132
SELECT CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + - MAX ( 71 ), NULLIF ( - COUNT ( * ), - CAST ( 33 AS INTEGER ) ) col0
----
NULL
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3133
SELECT 40 DIV 60 * + COUNT( * ) DIV + 64, + MIN( + - 23 ) AS col0
----
0
-23

skipif mysql # not compatible
query II rowsort label-3133
SELECT 40 / 60 * + COUNT ( * ) / + 64, + MIN ( + - 23 ) AS col0
----
0
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-3134
SELECT ALL + 1 DIV 93 * 88
----
0

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL + 1 / 93 * 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT - MAX( - 15 )
----
15

skipif mysql # not compatible
query I rowsort label-3135
SELECT - MAX ( - 15 )
----
15

query I rowsort
SELECT 23 + - 35 * + 92 AS col0
----
-3197

onlyif mysql # DIV for integer division: 
query I rowsort label-3137
SELECT 30 DIV - - 98 * 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3137
SELECT 30 / - - 98 * 13 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3138
SELECT 65 DIV - 24 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3138
SELECT 65 / - 24 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT ALL MIN( + 85 ) + + 97 AS col0
----
182

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL MIN ( + 85 ) + + 97 AS col0
----
182

query I rowsort
SELECT ALL + 2 + + 16 * + 53 AS col1
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT DISTINCT + 84 + + + 13 + - 20 - - 7 + + COUNT( * ) * + 51 + + + 33 + - 37
----
131

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT + 84 + + + 13 + - 20 - - 7 + + COUNT ( * ) * + 51 + + + 33 + - 37
----
131

query II rowsort
SELECT 58 + - - 56, 33 * + + ( 48 ) AS col1
----
114
1584

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

skipif mysql # not compatible
query II rowsort label-3143
SELECT 30 * COUNT ( * ) AS col2, 7
----
30
7

query II rowsort
SELECT ( - 64 ) * 54 + + 75 AS col0, - 89 AS col2
----
-3381
-89

query I rowsort
SELECT 79 * - + 46 AS col1
----
-3634

query I rowsort
SELECT ALL - 40 * + 38 + - 68
----
-1588

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT + COALESCE ( + COUNT( - - ( 19 ) ), - 95, + + 49 * 2 + - + 34 )
----
1

skipif mysql # not compatible
query I rowsort label-3147
SELECT + COALESCE ( + COUNT ( - - ( 19 ) ), - 95, + + 49 * 2 + - + 34 )
----
1

query I rowsort
SELECT 33 + 31 + - 52 AS col0
----
12

query II rowsort
SELECT ALL - 11 * 93 * - 67 + - ( + 47 ) AS col0, ( - 29 )
----
68494
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3150
SELECT ALL ( COUNT( * ) ) - + 28 + - 13 DIV + - ( - 8 ) + COUNT( DISTINCT - 1 )
----
-27

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL ( COUNT ( * ) ) - + 28 + - 13 / + - ( - 8 ) + COUNT ( DISTINCT - 1 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3151
SELECT 91 / + - COUNT( * ) * + 69 + + - NULLIF ( CASE + 30 WHEN + 69 * - ( - 8 ) THEN NULL WHEN + 33 * 73 THEN - 12 - - + 11 ELSE NULL END, - CAST( NULL AS SIGNED ) * - COUNT( * ) ) + - - 13 + - ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3151
SELECT 91 / + - COUNT ( * ) * + 69 + + - NULLIF ( CASE + 30 WHEN + 69 * - ( - 8 ) THEN NULL WHEN + 33 * 73 THEN - 12 - - + 11 ELSE NULL END, - CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) + - - 13 + - ( - COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3152
SELECT 12 DIV + 16 + - 6
----
-6

skipif mysql # not compatible
query I rowsort label-3152
SELECT 12 / + 16 + - 6
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3153
SELECT + - 25 + + 61 * - + CASE + - CAST( - - ( - ( + COUNT( * ) ) ) AS SIGNED ) WHEN + - 40 * - 94 * - NULLIF ( + - 66, ( - 39 ) ) THEN COUNT( * ) + + + 56 WHEN CAST( NULL AS DECIMAL ) * COUNT( DISTINCT + + 96 ) - 6 THEN NULL WHEN - + 61 * - MIN( ALL 53 ) / - 39 * - 71 - - 13 THEN 13 ELSE NULL END + 37 + - 46 + SUM( DISTINCT 85 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3153
SELECT + - 25 + + 61 * - + CASE + - CAST ( - - ( - ( + COUNT ( * ) ) ) AS INTEGER ) WHEN + - 40 * - 94 * - NULLIF ( + - 66, ( - 39 ) ) THEN COUNT ( * ) + + + 56 WHEN CAST ( NULL AS REAL ) * COUNT ( DISTINCT + + 96 ) - 6 THEN NULL WHEN - + 61 * - MIN ( ALL 53 ) / - 39 * - 71 - - 13 THEN 13 ELSE NULL END + 37 + - 46 + SUM ( DISTINCT 85 ) AS col0
----
NULL

query I rowsort
SELECT ALL + ( 66 ) - 64 + + 62 * 58
----
3598

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3155
SELECT + + 13 DIV + COUNT( + 2 )
----
13

skipif mysql # not compatible
query I rowsort label-3155
SELECT + + 13 / + COUNT ( + 2 )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3156
SELECT 54 col0, 69 + - + COUNT( * ) AS col1
----
54
68

skipif mysql # not compatible
query II rowsort label-3156
SELECT 54 col0, 69 + - + COUNT ( * ) AS col1
----
54
68

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

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

query I rowsort
SELECT + 83 * 24 * - 54
----
-107568

query II rowsort
SELECT DISTINCT + 76 AS col1, + 39 * + NULLIF ( + 32, - - 28 * + 92 * 65 * + 13 )
----
76
1248

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT ALL 53 DIV + + 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL 53 / + + 79 AS col2
----
0

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

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

query II rowsort
SELECT DISTINCT 80 AS col2, 20 AS col0
----
80
20

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

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

query I rowsort
SELECT + 17 * + - NULLIF ( - 80, ( + 83 ) * - 93 + 33 )
----
1360

query I rowsort
SELECT ALL 57 + + 82 + + 48
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT ALL - 70 + - + COUNT( * ) + + - 8 * + 59
----
-543

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL - 70 + - + COUNT ( * ) + + - 8 * + 59
----
-543

query I rowsort
SELECT ALL + 15 + - 69 AS col2
----
-54

query I rowsort
SELECT + 21 * 61 AS col0
----
1281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3169
SELECT ALL - 43 DIV COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL - 43 / COUNT ( * )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3170
SELECT ALL 45 + + 50 + + CAST( ( - + ( + COALESCE ( + + 59, CAST( NULL AS SIGNED ), + - ( ( + - 51 ) ) * COUNT( * ) ) ) ) AS SIGNED ) DIV - 63 * + 4
----
95

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL 45 + + 50 + + CAST ( ( - + ( + COALESCE ( + + 59, CAST ( NULL AS INTEGER ), + - ( ( + - 51 ) ) * COUNT ( * ) ) ) ) AS INTEGER ) / - 63 * + 4
----
95

query I rowsort
SELECT + 9 - - 16 AS col0
----
25

query I rowsort
SELECT DISTINCT - 53 + 36
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3173
SELECT + 86 + MAX( ALL + CAST( NULL AS SIGNED ) + 96 ) AS col0
----
NULL

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

query I rowsort
SELECT - 91 * + 50
----
-4550

query I rowsort
SELECT ALL 44 * - ( + 17 ) - 95 * 26
----
-3218

query I rowsort
SELECT ALL + 81 * ( 43 ) AS col2
----
3483

query I rowsort
SELECT DISTINCT - 26 * - 47 AS col0
----
1222

onlyif mysql # DIV for integer division: 
query I rowsort label-3178
SELECT ALL + 42 * ( + 63 DIV 84 ) - - 69 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL + 42 * ( + 63 / 84 ) - - 69 AS col1
----
69

query I rowsort
SELECT - 96 * 96 AS col1
----
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT COALESCE ( - 70, + ( MAX( DISTINCT - 92 ) ) )
----
-70

skipif mysql # not compatible
query I rowsort label-3180
SELECT COALESCE ( - 70, + ( MAX ( DISTINCT - 92 ) ) )
----
-70

query I rowsort
SELECT COALESCE ( 10, 81 * + 91 ) col0
----
10

query I rowsort
SELECT - 66 * + 32 AS col1
----
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT 73 * COUNT( * ) - - 39 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-3183
SELECT 73 * COUNT ( * ) - - 39 AS col1
----
112

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3184
SELECT COALESCE ( - 56, + 63 + + COUNT( CAST( - ( + 37 ) AS DECIMAL ) + 43 ), 88 + + 16 )
----
-56

skipif mysql # not compatible
query I rowsort label-3184
SELECT COALESCE ( - 56, + 63 + + COUNT ( CAST ( - ( + 37 ) AS REAL ) + 43 ), 88 + + 16 )
----
-56

query I rowsort
SELECT DISTINCT 12 * + 90
----
1080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3186
SELECT ALL - 19 DIV COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-3186
SELECT ALL - 19 / COUNT ( * )
----
-19

query I rowsort
SELECT - 35 * 42 AS col2
----
-1470

onlyif mysql # DIV for integer division: 
query I rowsort label-3188
SELECT + 53 DIV 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3188
SELECT + 53 / 73 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT DISTINCT - COUNT( * ) * - 96
----
96

skipif mysql # not compatible
query I rowsort label-3189
SELECT DISTINCT - COUNT ( * ) * - 96
----
96

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

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

query I rowsort
SELECT - 67 * + 43 + - 35
----
-2916

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3192
SELECT + 88 DIV COUNT( * ) col1
----
88

skipif mysql # not compatible
query I rowsort label-3192
SELECT + 88 / COUNT ( * ) col1
----
88

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

skipif mysql # not compatible
query I rowsort label-3193
SELECT - 99 + COUNT ( * ) * 50 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT 10 * - 52 - 20 * SUM( ALL 28 * 48 )
----
-27400

skipif mysql # not compatible
query I rowsort label-3194
SELECT 10 * - 52 - 20 * SUM ( ALL 28 * 48 )
----
-27400

onlyif mysql # DIV for integer division: 
query I rowsort label-3195
SELECT - 17 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-3195
SELECT - 17 / 52
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3196
SELECT - 76 + NULLIF ( CAST( NULL AS SIGNED ), - 14 * 7 + - 76 ) * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3196
SELECT - 76 + NULLIF ( CAST ( NULL AS INTEGER ), - 14 * 7 + - 76 ) * 14
----
NULL

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

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

query I rowsort
SELECT - 52 + 8 AS col1
----
-44

query I rowsort
SELECT DISTINCT + 29 + - 40
----
-11

query I rowsort
SELECT ALL 40 + - 76
----
-36

query I rowsort
SELECT + 46 + + 68 col1
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-3202
SELECT DISTINCT + 56 DIV 59 col0
----
0

skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT + 56 / 59 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT DISTINCT 69 + MAX( ( 63 ) ) AS col1
----
132

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT 69 + MAX ( ( 63 ) ) AS col1
----
132

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

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL MAX ( 62 )
----
62

query I rowsort
SELECT + 98 + + 93
----
191

query I rowsort
SELECT ALL 4 + + ( - 59 ) * 20 AS col0
----
-1176

query I rowsort
SELECT - NULLIF ( - 30, + 73 * - 33 ) col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT DISTINCT 39 + + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT 39 + + COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT + COUNT( * ) + 23
----
24

skipif mysql # not compatible
query I rowsort label-3209
SELECT + COUNT ( * ) + 23
----
24

query I rowsort
SELECT ALL 84 * ( 8 + 16 ) AS col2
----
2016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3211
SELECT - CASE 3 WHEN CAST( NULL AS SIGNED ) THEN 54 * + 42 + - 18 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3211
SELECT - CASE 3 WHEN CAST ( NULL AS INTEGER ) THEN 54 * + 42 + - 18 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3212
SELECT + - COUNT( * ) + + NULLIF ( + AVG ( DISTINCT - 85 ) + + CAST( NULL AS SIGNED ), 96 * + 21 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3212
SELECT + - COUNT ( * ) + + NULLIF ( + AVG ( DISTINCT - 85 ) + + CAST ( NULL AS INTEGER ), 96 * + 21 ) AS col2
----
NULL

query I rowsort
SELECT - + 74 * 37 AS col0
----
-2738

query I rowsort
SELECT + ( 66 ) * - 77 + - 94
----
-5176

query I rowsort
SELECT - 59 - 61 * + 67
----
-4146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3216
SELECT DISTINCT - COUNT( * ) DIV - 22 - 32 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT - COUNT ( * ) / - 22 - 32 AS col1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-3217
SELECT 88 DIV - ( 31 + 79 ) + 65 * 46
----
2990

skipif mysql # not compatible
query I rowsort label-3217
SELECT 88 / - ( 31 + 79 ) + 65 * 46
----
2990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3218
SELECT 18 + - NULLIF ( - 62 + + 19 DIV + COUNT( * ), - 90 + 91 )
----
61

skipif mysql # not compatible
query I rowsort label-3218
SELECT 18 + - NULLIF ( - 62 + + 19 / + COUNT ( * ), - 90 + 91 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3219
SELECT DISTINCT - ( AVG ( ALL - CAST( NULL AS DECIMAL ) ) ) / + COUNT( + 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3219
SELECT DISTINCT - ( AVG ( ALL - CAST ( NULL AS REAL ) ) ) / + COUNT ( + 16 ) AS col0
----
NULL

query I rowsort
SELECT ALL - - NULLIF ( + 49, AVG ( - 81 ) - - 30 / - NULLIF ( + 45, 55 ) ) AS col1
----
49

query I rowsort
SELECT ALL 13 * - 55
----
-715

query I rowsort
SELECT DISTINCT 18 * 9 AS col1
----
162

query I rowsort
SELECT 98 * + 66
----
6468

query I rowsort
SELECT 33 + + + NULLIF ( + 22, 14 + + 4 ) + - 78
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3225
SELECT ALL - 14 + - 52 / + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL - 14 + - 52 / + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 23 * + 35
----
805

query I rowsort
SELECT 59 + 3
----
62

query I rowsort
SELECT DISTINCT - 70 + + 26 * 6
----
86

query I rowsort
SELECT ALL + 15 + + - 22 AS col1
----
-7

query I rowsort
SELECT 49 * - 5
----
-245

query I rowsort
SELECT ALL 58 * 83 AS col2
----
4814

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3233
SELECT ALL - 16 + + CAST( - 77 AS SIGNED ) + - 43 AS col2
----
-136

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL - 16 + + CAST ( - 77 AS INTEGER ) + - 43 AS col2
----
-136

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

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

query I rowsort
SELECT ALL + 43 * - 51 * 48 col1
----
-105264

query I rowsort
SELECT CASE + 45 WHEN 9 THEN + 89 WHEN + ( - 11 ) THEN + 31 + + 22 END / + 29 AS col1
----
NULL

query I rowsort
SELECT ALL 15 - - 96 AS col0
----
111

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

skipif mysql # not compatible
query I rowsort label-3238
SELECT 8 - - + COUNT ( * ) * - 88 AS col2
----
-80

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

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

query I rowsort
SELECT ( 36 ) + 3 AS col2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3241
SELECT + CASE 85 WHEN 47 THEN 3 DIV - 54 ELSE 38 END DIV - 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3241
SELECT + CASE 85 WHEN 47 THEN 3 / - 54 ELSE 38 END / - 92 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3242
SELECT ALL - - CAST( 54 AS SIGNED ) - 65 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL - - CAST ( 54 AS INTEGER ) - 65 AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3243
SELECT ( + 67 ) * CASE - 89 WHEN NULLIF ( ( 91 ), 28 ) THEN + 48 + + 46 WHEN 96 THEN NULLIF ( + CAST( NULL AS SIGNED ), - 19 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT ( + 67 ) * CASE - 89 WHEN NULLIF ( ( 91 ), 28 ) THEN + 48 + + 46 WHEN 96 THEN NULLIF ( + CAST ( NULL AS INTEGER ), - 19 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3244
SELECT - CAST( 2 AS SIGNED ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-3244
SELECT - CAST ( 2 AS INTEGER ) col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT + 65 + + SUM( + 97 )
----
162

skipif mysql # not compatible
query I rowsort label-3245
SELECT + 65 + + SUM ( + 97 )
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT 8 + - COUNT( * ) * - 64 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-3246
SELECT 8 + - COUNT ( * ) * - 64 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT - 48 - - MAX( + 30 )
----
-18

skipif mysql # not compatible
query I rowsort label-3247
SELECT - 48 - - MAX ( + 30 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3248
SELECT - 87 * CAST( + 71 AS SIGNED ) + 42
----
-6135

skipif mysql # not compatible
query I rowsort label-3248
SELECT - 87 * CAST ( + 71 AS INTEGER ) + 42
----
-6135

query I rowsort
SELECT 54 + + 80
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT DISTINCT + CASE + 74 WHEN 93 THEN NULL WHEN COUNT( * ) THEN 73 ELSE + 79 END * - NULLIF ( - 56, 23 / + ( + 50 ) + + 11 )
----
4424

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT + CASE + 74 WHEN 93 THEN NULL WHEN COUNT ( * ) THEN 73 ELSE + 79 END * - NULLIF ( - 56, 23 / + ( + 50 ) + + 11 )
----
4424

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT DISTINCT - + MAX( - 3 )
----
3

skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT - + MAX ( - 3 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT ALL - SUM( DISTINCT - 7 ) * - NULLIF ( ( 38 ) + - 61, + 5 )
----
161

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL - SUM ( DISTINCT - 7 ) * - NULLIF ( ( 38 ) + - 61, + 5 )
----
161

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

skipif mysql # not compatible
query I rowsort label-3255
SELECT COUNT ( * ) * + CAST ( + 12 AS INTEGER ) * 91
----
1092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3256
SELECT - 93 * CAST( + 53 AS SIGNED ) * + 77 + 84 * + 72 AS col1
----
-373485

skipif mysql # not compatible
query I rowsort label-3256
SELECT - 93 * CAST ( + 53 AS INTEGER ) * + 77 + 84 * + 72 AS col1
----
-373485

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT ALL 7 + 36 + - CASE 11 WHEN + 0 - - 15 * + COUNT( * ) THEN 47 ELSE NULL END * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL 7 + 36 + - CASE 11 WHEN + 0 - - 15 * + COUNT ( * ) THEN 47 ELSE NULL END * + 67
----
NULL

query I rowsort
SELECT + COALESCE ( 90, 60, - 93 ) AS col0
----
90

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

skipif mysql # not compatible
query I rowsort label-3259
SELECT COUNT ( * ) / - 60 + 47
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3260
SELECT - 22 DIV - - 41 - 49 + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-3260
SELECT - 22 / - - 41 - 49 + COUNT ( * )
----
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT ALL 94 + + MIN( DISTINCT - - 9 )
----
103

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL 94 + + MIN ( DISTINCT - - 9 )
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-3263
SELECT ALL ( 29 ) DIV - 29 col1
----
-1

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL ( 29 ) / - 29 col1
----
-1

query I rowsort
SELECT 59 * + - 9 * + 49 col2
----
-26019

query I rowsort
SELECT DISTINCT 41 + + 82 - + - 28 + + ( - 22 ) AS col1
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3266
SELECT DISTINCT COALESCE ( - 95, - - 37 + MAX( DISTINCT 17 + - 72 * + 11 ) * - 87 ) DIV - 41 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3266
SELECT DISTINCT COALESCE ( - 95, - - 37 + MAX ( DISTINCT 17 + - 72 * + 11 ) * - 87 ) / - 41 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3267
SELECT ALL - 83 + CASE + ( ( + CAST( 19 AS DECIMAL ) ) ) WHEN - COUNT( * ) THEN COUNT( ALL - CAST( NULL AS SIGNED ) ) + 35 END + 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL - 83 + CASE + ( ( + CAST ( 19 AS REAL ) ) ) WHEN - COUNT ( * ) THEN COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + 35 END + 39 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3268
SELECT 47 * - COUNT( * ) * ( 64 ) * + 2 - NULLIF ( - ( - 34 ) - - 30 * - 68, 78 ) DIV 71 AS col0
----
-5988

skipif mysql # not compatible
query I rowsort label-3268
SELECT 47 * - COUNT ( * ) * ( 64 ) * + 2 - NULLIF ( - ( - 34 ) - - 30 * - 68, 78 ) / 71 AS col0
----
-5988

query I rowsort
SELECT ALL ( + 15 ) * 36 AS col1
----
540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3270
SELECT ALL COALESCE ( + - COUNT( * ), 14 * - 80, ( ( CASE WHEN NOT 81 IS NULL THEN COUNT( * ) DIV + 42 END ) ) ) + 90
----
89

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL COALESCE ( + - COUNT ( * ), 14 * - 80, ( ( CASE WHEN NOT 81 IS NULL THEN COUNT ( * ) / + 42 END ) ) ) + 90
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT COUNT( * ) + CASE + - CASE + 95 WHEN ( 84 ) THEN NULL WHEN 10 * - 69 THEN NULL ELSE + 68 * 10 + NULLIF ( COUNT( * ), 79 + 88 ) END WHEN 8 / - 84 + - 41 THEN NULL WHEN + 27 THEN ( - 25 ) WHEN 97 THEN - ( - 80 ) * COUNT( * ) + 33 * 59 ELSE 89 END + 62 AS col0
----
152

skipif mysql # not compatible
query I rowsort label-3271
SELECT COUNT ( * ) + CASE + - CASE + 95 WHEN ( 84 ) THEN NULL WHEN 10 * - 69 THEN NULL ELSE + 68 * 10 + NULLIF ( COUNT ( * ), 79 + 88 ) END WHEN 8 / - 84 + - 41 THEN NULL WHEN + 27 THEN ( - 25 ) WHEN 97 THEN - ( - 80 ) * COUNT ( * ) + 33 * 59 ELSE 89 END + 62 AS col0
----
152

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3272
SELECT + CAST( NULL AS DECIMAL ) * - 56 * - 24 * 64 - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3272
SELECT + CAST ( NULL AS REAL ) * - 56 * - 24 * 64 - 64
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3273
SELECT DISTINCT COUNT( * ), 80 + + - 82 AS col2
----
1
-2

skipif mysql # not compatible
query II rowsort label-3273
SELECT DISTINCT COUNT ( * ), 80 + + - 82 AS col2
----
1
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT DISTINCT + SUM( DISTINCT 21 ) col1
----
21

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT + SUM ( DISTINCT 21 ) col1
----
21

query I rowsort
SELECT - 36 * ( - 95 )
----
3420

query I rowsort
SELECT 99 * + 78
----
7722

query I rowsort
SELECT DISTINCT + 69 * - 57 + + - NULLIF ( - 4, - 65 + - 97 / + 20 ) + 69
----
-3860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3279
SELECT + COUNT( * ) + + 38 + COALESCE ( - CAST( 66 AS SIGNED ), - 74 DIV 13, 80 )
----
-27

skipif mysql # not compatible
query I rowsort label-3279
SELECT + COUNT ( * ) + + 38 + COALESCE ( - CAST ( 66 AS INTEGER ), - 74 / 13, 80 )
----
-27

query I rowsort
SELECT - + ( ( + 22 ) ) * - 59
----
1298

query I rowsort
SELECT + + 41 * + 71 AS col0
----
2911

query I rowsort
SELECT DISTINCT ( - - 99 ) AS col1
----
99

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

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

query II rowsort
SELECT DISTINCT - 43, + ( COALESCE ( - 81, + 77 + - 40 ) ) + - 79 * - 67 AS col1
----
-43
5212

query I rowsort
SELECT DISTINCT + - 70 + 90 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT ALL + + 20 + + COUNT( * ) * 9 * COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL + + 20 + + COUNT ( * ) * 9 * COUNT ( * )
----
29

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

query I rowsort
SELECT + - 14 - + - 52
----
38

query I rowsort
SELECT ALL + - COALESCE ( - 35, - 73 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT + COUNT( * ) - + + 40 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-3290
SELECT + COUNT ( * ) - + + 40 AS col2
----
-39

query I rowsort
SELECT + COALESCE ( + 80, - 8 * - + 53 - 48, 60 )
----
80

query I rowsort
SELECT + COALESCE ( + 53, - 15, + + 17 )
----
53

query I rowsort
SELECT CASE + 88 WHEN 77 THEN - - 19 ELSE 38 * - 83 END
----
-3154

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT ALL + COUNT( DISTINCT + + 10 ) * - + MIN( ALL - 30 ) col0
----
30

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL + COUNT ( DISTINCT + + 10 ) * - + MIN ( ALL - 30 ) col0
----
30

query I rowsort
SELECT + 17 * + 70 + + - 73 * - + 71 * - 33
----
-169849

query I rowsort
SELECT ALL - 13 * - - 6 - + + 92 AS col0
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT + ( - MIN( DISTINCT 45 ) ) * - - COALESCE ( + 88, + 86 + 18 ) + - 33
----
-3993

skipif mysql # not compatible
query I rowsort label-3297
SELECT + ( - MIN ( DISTINCT 45 ) ) * - - COALESCE ( + 88, + 86 + 18 ) + - 33
----
-3993

query I rowsort
SELECT CASE + 41 WHEN - + 61 * 93 THEN + 50 + + 31 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT + COUNT( * ) + - 25
----
-24

skipif mysql # not compatible
query I rowsort label-3299
SELECT + COUNT ( * ) + - 25
----
-24

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

skipif mysql # not compatible
query I rowsort label-3300
SELECT + CAST ( + - 60 AS INTEGER ) * - + COUNT ( * )
----
60

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

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

query I rowsort
SELECT + 93 + + + 16 + + 87 * + 23 * 16 AS col0
----
32125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3303
SELECT + 4 * + CAST( - 55 AS SIGNED ) AS col1
----
-220

skipif mysql # not compatible
query I rowsort label-3303
SELECT + 4 * + CAST ( - 55 AS INTEGER ) AS col1
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT MIN( DISTINCT + 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-3304
SELECT MIN ( DISTINCT + 83 ) AS col2
----
83

query I rowsort
SELECT + ( + - 99 ) * + 85 + 97
----
-8318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3306
SELECT ALL COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) * - 50 - 6 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) * - 50 - 6 AS col1
----
-6

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

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL 45 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3308
SELECT + 57 DIV - + 9 AS col0, 8
----
-6
8

skipif mysql # not compatible
query II rowsort label-3308
SELECT + 57 / - + 9 AS col0, 8
----
-6
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT ALL - MAX( ALL + 9 ) * - COUNT( + 6 )
----
9

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL - MAX ( ALL + 9 ) * - COUNT ( + 6 )
----
9

query I rowsort
SELECT DISTINCT 80 * - 29
----
-2320

query I rowsort
SELECT - 81 * + + 22 * + - 64 * - 83
----
-9465984

query I rowsort
SELECT ALL ( 79 ) * + + 82 * - 61 AS col1
----
-395158

query I rowsort
SELECT + 20 - 85 AS col1
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3314
SELECT - + ( + + MIN( + 71 ) ) DIV 32 DIV + COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3314
SELECT - + ( + + MIN ( + 71 ) ) / 32 / + COUNT ( * ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT ALL NULLIF ( - MAX( ALL - 57 ), 73 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL NULLIF ( - MAX ( ALL - 57 ), 73 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT + 33 - COALESCE ( + 45, - COUNT( * ) ) * + 59
----
-2622

skipif mysql # not compatible
query I rowsort label-3316
SELECT + 33 - COALESCE ( + 45, - COUNT ( * ) ) * + 59
----
-2622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3317
SELECT + + 50 * + - COUNT( * ), - ( + CAST( - 25 AS SIGNED ) ) AS col0
----
-50
25

skipif mysql # not compatible
query II rowsort label-3317
SELECT + + 50 * + - COUNT ( * ), - ( + CAST ( - 25 AS INTEGER ) ) AS col0
----
-50
25

query I rowsort
SELECT - - NULLIF ( 57, 68 ) AS col0
----
57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT - 26 + - + ( - COALESCE ( + CASE 22 WHEN + 30 THEN NULL WHEN 11 THEN COUNT( * ) * - 73 ELSE NULL END, + 79 + 36 ) ) * 4
----
434

skipif mysql # not compatible
query I rowsort label-3320
SELECT - 26 + - + ( - COALESCE ( + CASE 22 WHEN + 30 THEN NULL WHEN 11 THEN COUNT ( * ) * - 73 ELSE NULL END, + 79 + 36 ) ) * 4
----
434

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT DISTINCT - SUM( + 0 ) + + ( + - 71 ) * 62 col0
----
-4402

skipif mysql # not compatible
query I rowsort label-3321
SELECT DISTINCT - SUM ( + 0 ) + + ( + - 71 ) * 62 col0
----
-4402

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

query I rowsort
SELECT DISTINCT + 37 + + - 39 AS col1
----
-2

query I rowsort
SELECT - 83 - 94 AS col2
----
-177

query I rowsort
SELECT DISTINCT - ( + - 33 ) + 69 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT DISTINCT + 4 + 88 - - + COUNT( DISTINCT + - 25 )
----
93

skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT + 4 + 88 - - + COUNT ( DISTINCT + - 25 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT - 6 * + 10 + - COUNT( * ) + + 13
----
-48

skipif mysql # not compatible
query I rowsort label-3327
SELECT - 6 * + 10 + - COUNT ( * ) + + 13
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT ALL + ( - 96 ) + - + COALESCE ( + - NULLIF ( SUM( ( + 88 ) ), 46 * - 17 ), 29 * 79 ) + + 58
----
50

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL + ( - 96 ) + - + COALESCE ( + - NULLIF ( SUM ( ( + 88 ) ), 46 * - 17 ), 29 * 79 ) + + 58
----
50

query I rowsort
SELECT - ( + + 51 ) + 52
----
1

query I rowsort
SELECT ALL - 80 * + 52 AS col1
----
-4160

onlyif mysql # DIV for integer division: 
query I rowsort label-3331
SELECT - - ( + 27 ) DIV + 84 * + 94
----
0

skipif mysql # not compatible
query I rowsort label-3331
SELECT - - ( + 27 ) / + 84 * + 94
----
0

query I rowsort
SELECT - - 69 + AVG ( + 88 ) * CASE 75 WHEN + 37 THEN - 99 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 63 + - - 74
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3334
SELECT + CAST( - 83 AS SIGNED ) + + 39 * + 47 AS col0
----
1750

skipif mysql # not compatible
query I rowsort label-3334
SELECT + CAST ( - 83 AS INTEGER ) + + 39 * + 47 AS col0
----
1750

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3336
SELECT DISTINCT - 52 DIV COUNT( * ) + + - 95, - CAST( NULL AS DECIMAL ) * + 12 AS col2
----
-147
NULL

skipif mysql # not compatible
query II rowsort label-3336
SELECT DISTINCT - 52 / COUNT ( * ) + + - 95, - CAST ( NULL AS REAL ) * + 12 AS col2
----
-147
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3337
SELECT DISTINCT 82 DIV + 13 col2
----
6

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT 82 / + 13 col2
----
6

query II rowsort
SELECT DISTINCT + 81 AS col0, - 45
----
81
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3339
SELECT ALL + COUNT( * ) DIV - 10 - - 65 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL + COUNT ( * ) / - 10 - - 65 AS col2
----
65

query II rowsort
SELECT DISTINCT + 26 AS col1, 39 AS col2
----
26
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3341
SELECT DISTINCT - 11 DIV - 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT - 11 / - 28 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3342
SELECT - 75 DIV 53 - 68 AS col2, 17 + 46 - + 11 AS col1
----
-69
52

skipif mysql # not compatible
query II rowsort label-3342
SELECT - 75 / 53 - 68 AS col2, 17 + 46 - + 11 AS col1
----
-69
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3343
SELECT + ( + - ( + - 0 ) ) * 42 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-3343
SELECT + ( + - ( + - 0 ) ) * 42 / 66
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3345
SELECT + ( - ( - 57 ) ) AS col1, 64 + 26 + + 44 DIV - 91 * COALESCE ( + 12, - 3 DIV - 46 )
----
57
90

skipif mysql # not compatible
query II rowsort label-3345
SELECT + ( - ( - 57 ) ) AS col1, 64 + 26 + + 44 / - 91 * COALESCE ( + 12, - 3 / - 46 )
----
57
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3346
SELECT ALL CAST( NULL AS SIGNED ) / + 57 - + 58 * + - CASE - + 21 WHEN - 96 THEN + 95 + + 31 ELSE - ( 83 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL CAST ( NULL AS INTEGER ) / + 57 - + 58 * + - CASE - + 21 WHEN - 96 THEN + 95 + + 31 ELSE - ( 83 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT + MIN( DISTINCT COALESCE ( - 59, + + 64 * - 36 ) ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-3347
SELECT + MIN ( DISTINCT COALESCE ( - 59, + + 64 * - 36 ) ) AS col0
----
-59

query I rowsort
SELECT - 81 - + 34 AS col2
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT + CASE COUNT( * ) WHEN - 61 * - 85 - + + 32 THEN 71 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3349
SELECT + CASE COUNT ( * ) WHEN - 61 * - 85 - + + 32 THEN 71 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT ALL + NULLIF ( 52, + + ( - COUNT( * ) ) )
----
52

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL + NULLIF ( 52, + + ( - COUNT ( * ) ) )
----
52

query I rowsort
SELECT DISTINCT + COALESCE ( ( - 22 ), + ( 6 ) ) AS col1
----
-22

query I rowsort
SELECT ALL - 21 * 9
----
-189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3353
SELECT + 68 * - 92 + + 31 DIV 65 + - COUNT( * ) + - MIN( 69 ) AS col1
----
-6326

skipif mysql # not compatible
query I rowsort label-3353
SELECT + 68 * - 92 + + 31 / 65 + - COUNT ( * ) + - MIN ( 69 ) AS col1
----
-6326

query I rowsort
SELECT 70 * - 2 AS col1
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT ALL 84 + + - COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL 84 + + - COUNT ( * ) AS col1
----
83

query II rowsort
SELECT + 22 AS col1, 95
----
22
95

query I rowsort
SELECT ALL 93 + + + ( - 86 ) AS col0
----
7

query I rowsort
SELECT DISTINCT + 8 + ( 1 ) + - 69
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL + 44 * COUNT( DISTINCT 12 ) + 72
----
116

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL + 44 * COUNT ( DISTINCT 12 ) + 72
----
116

query I rowsort
SELECT ALL - 86 + - 16 AS col0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT ALL SUM( ALL - + ( + 71 ) ) + + + 50 + + 40 col1
----
19

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL SUM ( ALL - + ( + 71 ) ) + + + 50 + + 40 col1
----
19

query I rowsort
SELECT ALL - CASE - 0 WHEN + + 11 THEN + + 89 * - NULLIF ( 23, ( - 20 ) + 20 ) / 68 END * 31 AS col1
----
NULL

query I rowsort
SELECT - 43 + + ( 30 ) * + + 46
----
1337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3364
SELECT + 47 * 0 * + - 85 + + + 63 * - COALESCE ( + 21, - 5 - CAST( NULL AS SIGNED ) * + COUNT( * ), - MIN( + 38 ) )
----
-1323

skipif mysql # not compatible
query I rowsort label-3364
SELECT + 47 * 0 * + - 85 + + + 63 * - COALESCE ( + 21, - 5 - CAST ( NULL AS INTEGER ) * + COUNT ( * ), - MIN ( + 38 ) )
----
-1323

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3365
SELECT + NULLIF ( + + CAST( - 30 AS SIGNED ), 68 ) * 25 + 86 * - 27
----
-3072

skipif mysql # not compatible
query I rowsort label-3365
SELECT + NULLIF ( + + CAST ( - 30 AS INTEGER ), 68 ) * 25 + 86 * - 27
----
-3072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3366
SELECT CAST( 6 AS SIGNED ) * 31 * + CASE WHEN NOT ( + 11 ) IS NOT NULL THEN - 29 END - 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3366
SELECT CAST ( 6 AS INTEGER ) * 31 * + CASE WHEN NOT ( + 11 ) IS NOT NULL THEN - 29 END - 59 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3367
SELECT ALL + - 90 + - NULLIF ( + + CAST( NULL AS SIGNED ), - 90 * COUNT( * ) - 74 * + 0 ) + + 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL + - 90 + - NULLIF ( + + CAST ( NULL AS INTEGER ), - 90 * COUNT ( * ) - 74 * + 0 ) + + 66 AS col1
----
NULL

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

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

query II rowsort
SELECT DISTINCT 8, 56 AS col2
----
8
56

query I rowsort
SELECT DISTINCT CASE - 86 WHEN - + 96 + 74 THEN + 2 END - 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT ALL - 24 * + + 12 * + COALESCE ( + 26, 13 * + 84 + + MAX( 7 ) + + COUNT( * ), - 50 * 22 )
----
-7488

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL - 24 * + + 12 * + COALESCE ( + 26, 13 * + 84 + + MAX ( 7 ) + + COUNT ( * ), - 50 * 22 )
----
-7488

query I rowsort
SELECT 49 + + 13 * 0 * - - 17
----
49

query I rowsort
SELECT ALL 53 - + 61 * - 55 AS col2
----
3408

query II rowsort
SELECT ALL 73 AS col1, - 96 - + 15
----
73
-111

query I rowsort
SELECT ( + + 46 ) + + + 75 * - 67 AS col2
----
-4979

query I rowsort
SELECT 32 * + 54 * - 27
----
-46656

query I rowsort
SELECT 68 * + ( - - ( - 95 ) )
----
-6460

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT 88 * + 44 + - COUNT( * )
----
3871

skipif mysql # not compatible
query I rowsort label-3378
SELECT 88 * + 44 + - COUNT ( * )
----
3871

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT 74 - + 45 + - COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-3379
SELECT 74 - + 45 + - COUNT ( * ) AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3380
SELECT - 8 DIV 29 + 54 * + 93
----
5022

skipif mysql # not compatible
query I rowsort label-3380
SELECT - 8 / 29 + 54 * + 93
----
5022

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT ALL MAX( + + 57 ) * 66 * 89 + - CASE - + COUNT( DISTINCT - 7 ) WHEN 69 + MAX( 28 ) THEN 21 WHEN 81 THEN NULL ELSE 31 END * - 18 AS col0
----
335376

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL MAX ( + + 57 ) * 66 * 89 + - CASE - + COUNT ( DISTINCT - 7 ) WHEN 69 + MAX ( 28 ) THEN 21 WHEN 81 THEN NULL ELSE 31 END * - 18 AS col0
----
335376

query I rowsort
SELECT ALL - NULLIF ( - + 91, - 47 ) AS col0
----
91

query I rowsort
SELECT DISTINCT - 7 * 82
----
-574

query I rowsort
SELECT + 64 * - 42 + - 63
----
-2751

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3387
SELECT 62 * + 60 + 91 - 70 * + 0 * - CAST( NULL AS SIGNED ) * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3387
SELECT 62 * + 60 + 91 - 70 * + 0 * - CAST ( NULL AS INTEGER ) * - 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT ALL + COUNT( - 54 ) + - + 42
----
-41

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL + COUNT ( - 54 ) + - + 42
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-3389
SELECT 73 * - 28 AS col1, + CASE - 27 WHEN + MIN( - 70 ) * 10 THEN + COUNT( * ) * + 63 END * + 78 AS col1
----
-2044
NULL

skipif mysql # not compatible
query II rowsort label-3389
SELECT 73 * - 28 AS col1, + CASE - 27 WHEN + MIN ( - 70 ) * 10 THEN + COUNT ( * ) * + 63 END * + 78 AS col1
----
-2044
NULL

query I rowsort
SELECT DISTINCT + 98 + - + ( 75 ) AS col2
----
23

query I rowsort
SELECT ALL + - ( - - 66 ) + - 37 + - 29
----
-132

query I rowsort
SELECT DISTINCT 73 * - ( + 83 ) + - 12
----
-6071

query I rowsort
SELECT DISTINCT - 48 + - 8
----
-56

query I rowsort
SELECT ALL 82 + - 58
----
24

query I rowsort
SELECT ALL - 79 * + 58 + + 5 col2
----
-4577

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

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

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

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

query I rowsort
SELECT ALL + + 26 + + - 68 * + 12 + + 94 col0
----
-696

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT ALL + MIN( DISTINCT 83 ) + + + 11
----
94

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL + MIN ( DISTINCT 83 ) + + + 11
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-3401
SELECT - 32 - + + COALESCE ( - 89, - 67 DIV + 62 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-3401
SELECT - 32 - + + COALESCE ( - 89, - 67 / + 62 ) AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3402
SELECT - ( + - CAST( 47 AS SIGNED ) ) * + ( - + 34 )
----
-1598

skipif mysql # not compatible
query I rowsort label-3402
SELECT - ( + - CAST ( 47 AS INTEGER ) ) * + ( - + 34 )
----
-1598

onlyif mysql # DIV for integer division: 
query II rowsort label-3403
SELECT ALL - 36 AS col2, + 93 + - - 13 DIV - ( 9 ) AS col1
----
-36
92

skipif mysql # not compatible
query II rowsort label-3403
SELECT ALL - 36 AS col2, + 93 + - - 13 / - ( 9 ) AS col1
----
-36
92

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

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

query I rowsort
SELECT ALL + NULLIF ( - + 74, - 48 * 50 + + 30 + - - 76 ) AS col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3406
SELECT DISTINCT COUNT( * ) * - CAST( NULL AS SIGNED ) * 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT COUNT ( * ) * - CAST ( NULL AS INTEGER ) * 55 AS col1
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + - 43, 50 ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-3408
SELECT ALL 11 - + + SUM( ALL 91 ) + + 37 AS col1, 68 + - 78 AS col0
----
-43
-10

skipif mysql # not compatible
query II rowsort label-3408
SELECT ALL 11 - + + SUM ( ALL 91 ) + + 37 AS col1, 68 + - 78 AS col0
----
-43
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3409
SELECT + ( - 71 ) - + 70 DIV - 48
----
-70

skipif mysql # not compatible
query I rowsort label-3409
SELECT + ( - 71 ) - + 70 / - 48
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-3410
SELECT ALL + 2 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL + 2 / 72
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3411
SELECT DISTINCT 25 * MIN( ALL - 86 ) * - - 89 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3411
SELECT DISTINCT 25 * MIN ( ALL - 86 ) * - - 89 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT 52 - - + SUM( ALL 70 ) AS col1
----
122

skipif mysql # not compatible
query I rowsort label-3412
SELECT 52 - - + SUM ( ALL 70 ) AS col1
----
122

query I rowsort
SELECT DISTINCT ( + 92 ) * - + 93 AS col1
----
-8556

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3414
SELECT COUNT( * ) DIV + COALESCE ( 47, + - ( + - 99 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3414
SELECT COUNT ( * ) / + COALESCE ( 47, + - ( + - 99 ) )
----
0

query I rowsort
SELECT ( - 26 ) * 15 * 36 + + - 4 + - 60 AS col1
----
-14104

onlyif mysql # aggregate syntax: 
query II rowsort label-3416
SELECT ALL 6 * - 13, - COUNT( * ) + - 16 AS col2
----
-78
-17

skipif mysql # not compatible
query II rowsort label-3416
SELECT ALL 6 * - 13, - COUNT ( * ) + - 16 AS col2
----
-78
-17

query I rowsort
SELECT 78 * + + 50 AS col2
----
3900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3418
SELECT + COALESCE ( + NULLIF ( - + 72, - 41 * - 43 ), 72 + CAST( NULL AS SIGNED ), + COUNT( * ) * + COUNT( * ) + 27 )
----
-72

skipif mysql # not compatible
query I rowsort label-3418
SELECT + COALESCE ( + NULLIF ( - + 72, - 41 * - 43 ), 72 + CAST ( NULL AS INTEGER ), + COUNT ( * ) * + COUNT ( * ) + 27 )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3419
SELECT COALESCE ( - + 76, - CAST( - COUNT( * ) AS SIGNED ) ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-3419
SELECT COALESCE ( - + 76, - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT 93 * SUM( + 29 ) AS col2
----
2697

skipif mysql # not compatible
query I rowsort label-3420
SELECT 93 * SUM ( + 29 ) AS col2
----
2697

query I rowsort
SELECT ALL 10 * CASE WHEN NULL < NULL THEN 69 END + + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL COUNT( * ) * - + COUNT( * ) + 25 - 15 * - MIN( DISTINCT 96 ) * + 92 + 61 col1
----
132565

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL COUNT ( * ) * - + COUNT ( * ) + 25 - 15 * - MIN ( DISTINCT 96 ) * + 92 + 61 col1
----
132565

onlyif mysql # aggregate syntax: 
query II rowsort label-3423
SELECT - 80 * - 4 * COUNT( * ) AS col2, - 90 + 39 * 76 * - 88 * 92
----
320
-23996634

skipif mysql # not compatible
query II rowsort label-3423
SELECT - 80 * - 4 * COUNT ( * ) AS col2, - 90 + 39 * 76 * - 88 * 92
----
320
-23996634

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT DISTINCT - 77 * + + MIN( ALL - 20 ) + SUM( DISTINCT 25 ) col0
----
1565

skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT - 77 * + + MIN ( ALL - 20 ) + SUM ( DISTINCT 25 ) col0
----
1565

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT DISTINCT COUNT( * ) * + - 50 + + - 55 AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT COUNT ( * ) * + - 50 + + - 55 AS col0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT - - COALESCE ( + 76, - - 15 + - - 77 + - 53 * - MAX( DISTINCT 79 ) + 51 ) + - 90 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-3426
SELECT - - COALESCE ( + 76, - - 15 + - - 77 + - 53 * - MAX ( DISTINCT 79 ) + 51 ) + - 90 AS col1
----
-14

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3428
SELECT ALL - ( 84 ) * 50 * - + CAST( - - COUNT( * ) AS SIGNED ) * 20 + - 29 + + 31
----
84002

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL - ( 84 ) * 50 * - + CAST ( - - COUNT ( * ) AS INTEGER ) * 20 + - 29 + + 31
----
84002

query I rowsort
SELECT + 90 * + 13 + + + 50
----
1220

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT - 72 * 16 - COUNT( * )
----
-1153

skipif mysql # not compatible
query I rowsort label-3430
SELECT - 72 * 16 - COUNT ( * )
----
-1153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3431
SELECT - 29 + COALESCE ( + 80, - 49, + - 19, + CASE WHEN NOT + 58 IS NOT NULL THEN NULL ELSE - 37 - CASE 24 WHEN + 92 * + 97 THEN CASE 96 WHEN - 9 THEN NULL WHEN 89 - - COUNT( * ) THEN - NULLIF ( + 32, + 51 + - CAST( NULL AS SIGNED ) ) WHEN CAST( + ( + CAST( 90 AS SIGNED ) ) AS SIGNED ) THEN NULL END ELSE 23 + 58 END END * CASE COUNT( ( 0 ) ) WHEN + 8 + + COUNT( * ) THEN NULL ELSE - 84 END ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3431
SELECT - 29 + COALESCE ( + 80, - 49, + - 19, + CASE WHEN NOT + 58 IS NOT NULL THEN NULL ELSE - 37 - CASE 24 WHEN + 92 * + 97 THEN CASE 96 WHEN - 9 THEN NULL WHEN 89 - - COUNT ( * ) THEN - NULLIF ( + 32, + 51 + - CAST ( NULL AS INTEGER ) ) WHEN CAST ( + ( + CAST ( 90 AS INTEGER ) ) AS INTEGER ) THEN NULL END ELSE 23 + 58 END END * CASE COUNT ( ( 0 ) ) WHEN + 8 + + COUNT ( * ) THEN NULL ELSE - 84 END ) AS col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3432
SELECT + + 76 * + + 7 - - NULLIF ( - 76, CAST( NULL AS SIGNED ) ) AS col2, 33 AS col0
----
456
33

skipif mysql # not compatible
query II rowsort label-3432
SELECT + + 76 * + + 7 - - NULLIF ( - 76, CAST ( NULL AS INTEGER ) ) AS col2, 33 AS col0
----
456
33

query I rowsort
SELECT CASE 46 WHEN + 52 * + 18 THEN - ( + + 65 ) * - 39 + - 16 * 91 WHEN 24 THEN NULL END col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3434
SELECT DISTINCT + ( - + 40 ) col0, CAST( NULL AS DECIMAL ) / + + 49 * - 77
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-3434
SELECT DISTINCT + ( - + 40 ) col0, CAST ( NULL AS REAL ) / + + 49 * - 77
----
-40
NULL

query I rowsort
SELECT ALL COALESCE ( + 89, - 0 * - - 36 - - 56 ) AS col0
----
89

query II rowsort
SELECT - - 37 + - + ( 66 ) AS col0, - 43 * 37
----
-29
-1591

onlyif mysql # aggregate syntax: 
query II rowsort label-3437
SELECT DISTINCT + + COUNT( * ) * + - 51 AS col2, - 32 col1
----
-51
-32

skipif mysql # not compatible
query II rowsort label-3437
SELECT DISTINCT + + COUNT ( * ) * + - 51 AS col2, - 32 col1
----
-51
-32

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

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

query II rowsort
SELECT + 88 * + 22 AS col0, ( + 26 ) AS col0
----
1936
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3440
SELECT ALL + COUNT( * ) * - - COUNT( * ) AS col2, + NULLIF ( - + COUNT( * ), - - 80 ) / - - CAST( NULL AS SIGNED ) / + NULLIF ( + COUNT( ALL - 19 ), + 29 )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3440
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) AS col2, + NULLIF ( - + COUNT ( * ), - - 80 ) / - - CAST ( NULL AS INTEGER ) / + NULLIF ( + COUNT ( ALL - 19 ), + 29 )
----
1
NULL

query I rowsort
SELECT - 12 + + 36
----
24

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

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

query II rowsort
SELECT ALL 73, + 56 + - + 34 - - 73 - 24 AS col2
----
73
71

onlyif mysql # aggregate syntax: 
query II rowsort label-3444
SELECT 75 col0, COUNT( * )
----
75
1

skipif mysql # not compatible
query II rowsort label-3444
SELECT 75 col0, COUNT ( * )
----
75
1

query I rowsort
SELECT + 53 + + 40
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3446
SELECT 48, ( + - 18 ) + + - 81 + + - COALESCE ( - 78, MIN( + - 59 ) - + COUNT( * ), - 70 + 6 ) - 62 * + 18 * + ( + 0 * - 79 ) * 87 AS col0
----
48
-21

skipif mysql # not compatible
query II rowsort label-3446
SELECT 48, ( + - 18 ) + + - 81 + + - COALESCE ( - 78, MIN ( + - 59 ) - + COUNT ( * ), - 70 + 6 ) - 62 * + 18 * + ( + 0 * - 79 ) * 87 AS col0
----
48
-21

query I rowsort
SELECT DISTINCT ( 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT + ( - + 44 ) + + COUNT( * ) - - 73 + + 97 + + 66
----
193

skipif mysql # not compatible
query I rowsort label-3448
SELECT + ( - + 44 ) + + COUNT ( * ) - - 73 + + 97 + + 66
----
193

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT DISTINCT MIN( 89 ) * + - 59 * + - 47
----
246797

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT MIN ( 89 ) * + - 59 * + - 47
----
246797

query I rowsort
SELECT DISTINCT 81 + + + NULLIF ( + + 38, + 60 ) * + 70
----
2741

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT ALL 16 + + - 27 + 15 - COUNT( * ) + + - 29 * + + 96 + 65 * + + 21 AS col1
----
-1416

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL 16 + + - 27 + 15 - COUNT ( * ) + + - 29 * + + 96 + 65 * + + 21 AS col1
----
-1416

onlyif mysql # DIV for integer division: 
query I rowsort label-3453
SELECT - ( + 43 ) + 68 + ( + + 12 ) DIV - + 10
----
24

skipif mysql # not compatible
query I rowsort label-3453
SELECT - ( + 43 ) + 68 + ( + + 12 ) / - + 10
----
24

query I rowsort
SELECT + 4 - + + 24
----
-20

query I rowsort
SELECT DISTINCT 10 * + 54
----
540

onlyif mysql # DIV for integer division: 
query I rowsort label-3456
SELECT + 74 DIV + 23 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3456
SELECT + 74 / + 23 AS col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3457
SELECT ALL + 57, SUM( DISTINCT 82 ) * - 46 col1
----
57
-3772

skipif mysql # not compatible
query II rowsort label-3457
SELECT ALL + 57, SUM ( DISTINCT 82 ) * - 46 col1
----
57
-3772

onlyif mysql # DIV for integer division: 
query I rowsort label-3458
SELECT DISTINCT - 62 DIV 9 + 69 * - 28
----
-1938

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT - 62 / 9 + 69 * - 28
----
-1938

query I rowsort
SELECT DISTINCT 74 * - 97 AS col0
----
-7178

query I rowsort
SELECT + 20 + + 13 AS col1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3461
SELECT ALL + MAX( - - 49 ) * 5 + 41 * + 88 * - - 27 col1, 87 * - 41 AS col0
----
97661
-3567

skipif mysql # not compatible
query II rowsort label-3461
SELECT ALL + MAX ( - - 49 ) * 5 + 41 * + 88 * - - 27 col1, 87 * - 41 AS col0
----
97661
-3567

query I rowsort
SELECT ALL + 96 * - 17
----
-1632

query III rowsort
SELECT - + 27 + - ( - 40 ), - NULLIF ( + 34, 16 ) AS col1, ( - - 82 ) - 99 col0
----
13
-34
-17

query I rowsort
SELECT DISTINCT - 79 * + 8 - - - 17 AS col1
----
-649

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT ALL 6 * 36 * + NULLIF ( - + 77, - COUNT( * ) ) AS col0
----
-16632

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL 6 * 36 * + NULLIF ( - + 77, - COUNT ( * ) ) AS col0
----
-16632

query I rowsort
SELECT - 59 + + ( 40 ) + ( + + 12 )
----
-7

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

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

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

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

query I rowsort
SELECT + 16 - + 69
----
-53

query I rowsort
SELECT - - 0 * - - 54 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3471
SELECT 84 AS col2, COUNT( * ) * - 67 col0
----
84
-67

skipif mysql # not compatible
query II rowsort label-3471
SELECT 84 AS col2, COUNT ( * ) * - 67 col0
----
84
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-3472
SELECT - + 31 - 40 + - 57 + - 41 * - 23 * COUNT( * ) AS col0, + 55
----
815
55

skipif mysql # not compatible
query II rowsort label-3472
SELECT - + 31 - 40 + - 57 + - 41 * - 23 * COUNT ( * ) AS col0, + 55
----
815
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3473
SELECT ALL - 66 DIV + COUNT( ALL - 3 )
----
-66

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL - 66 / + COUNT ( ALL - 3 )
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-3474
SELECT - 88 DIV ( 8 ) col0
----
-11

skipif mysql # not compatible
query I rowsort label-3474
SELECT - 88 / ( 8 ) col0
----
-11

query I rowsort
SELECT - 94 + 30 AS col2
----
-64

query I rowsort
SELECT ALL + 93 + + - 47 AS col0
----
46

query II rowsort
SELECT ALL ( 1 ) AS col1, 9 AS col0
----
1
9

query I rowsort
SELECT ALL + 76 + - 84 * + - 72 + - - 72
----
6196

query I rowsort
SELECT - ( + - 2 ) - 15 AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3480
SELECT ALL + 3 * 49 * + ( - - 34 ) AS col0, ( + + 38 ) + + MAX( 34 ) + - COUNT( * ) DIV CAST( - CAST( + MAX( 71 ) AS SIGNED ) - COUNT( * ) AS SIGNED ) AS col2
----
4998
72

skipif mysql # not compatible
query II rowsort label-3480
SELECT ALL + 3 * 49 * + ( - - 34 ) AS col0, ( + + 38 ) + + MAX ( 34 ) + - COUNT ( * ) / CAST ( - CAST ( + MAX ( 71 ) AS INTEGER ) - COUNT ( * ) AS INTEGER ) AS col2
----
4998
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3481
SELECT DISTINCT - 48 + - 48 / CASE + + 21 WHEN CAST( + 40 AS SIGNED ) THEN ( - 37 ) + 50 END * - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT - 48 + - 48 / CASE + + 21 WHEN CAST ( + 40 AS INTEGER ) THEN ( - 37 ) + 50 END * - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT ALL + 94 + + - 32 + + + 50 * CASE - 63 WHEN - ( - 38 ) / + 1 + + 75 THEN NULL ELSE MIN( - 87 ) END + - 40 AS col2
----
-4328

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL + 94 + + - 32 + + + 50 * CASE - 63 WHEN - ( - 38 ) / + 1 + + 75 THEN NULL ELSE MIN ( - 87 ) END + - 40 AS col2
----
-4328

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ALL - 31 + - ( + COUNT( * ) ) - - - 59
----
-91

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL - 31 + - ( + COUNT ( * ) ) - - - 59
----
-91

query I rowsort
SELECT ALL + 76 + 54 col0
----
130

query I rowsort
SELECT 73 * - ( + - 89 )
----
6497

query I rowsort
SELECT 22 - + - ( - 85 ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-3487
SELECT ALL 62 + COUNT( * ) AS col1, + NULLIF ( 82, + 24 )
----
63
82

skipif mysql # not compatible
query II rowsort label-3487
SELECT ALL 62 + COUNT ( * ) AS col1, + NULLIF ( 82, + 24 )
----
63
82

query I rowsort
SELECT ALL - NULLIF ( - 24, 88 - + 20 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT DISTINCT 97 + - SUM( DISTINCT 36 )
----
61

skipif mysql # not compatible
query I rowsort label-3489
SELECT DISTINCT 97 + - SUM ( DISTINCT 36 )
----
61

query I rowsort
SELECT 11 * 33
----
363

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT ALL 15 * SUM( - 31 ) * - 93 + + + 13 AS col2
----
43258

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL 15 * SUM ( - 31 ) * - 93 + + + 13 AS col2
----
43258

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3492
SELECT ALL - + CAST( NULL AS SIGNED ) - + AVG ( + CAST( NULL AS DECIMAL ) ) + + - 26 + + 84 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL - + CAST ( NULL AS INTEGER ) - + AVG ( + CAST ( NULL AS REAL ) ) + + - 26 + + 84 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3493
SELECT + - CASE 84 WHEN 25 THEN NULL WHEN + + 65 + 26 THEN + 16 WHEN + CAST( 68 AS SIGNED ) * NULLIF ( 56, 66 ) THEN 93 - 23 / 63 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT + - CASE 84 WHEN 25 THEN NULL WHEN + + 65 + 26 THEN + 16 WHEN + CAST ( 68 AS INTEGER ) * NULLIF ( 56, 66 ) THEN 93 - 23 / 63 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3494
SELECT + + 40 * + ( COUNT( * ) ) + 21 DIV COUNT( * ) DIV - - COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-3494
SELECT + + 40 * + ( COUNT ( * ) ) + 21 / COUNT ( * ) / - - COUNT ( * ) AS col0
----
61

query II rowsort
SELECT DISTINCT 10 * 31 AS col1, + ( - 7 ) AS col0
----
310
-7

query I rowsort
SELECT + 84 + - 66
----
18

query I rowsort
SELECT ALL - 67 * - 86 + + 8 AS col0
----
5770

query I rowsort
SELECT 54 + + 43 * + ( 4 ) + 56 AS col2
----
282

query I rowsort
SELECT DISTINCT - 98 * - + 22 * - + CASE - 67 WHEN - - 67 THEN - + 22 * - 87 * - 21 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3501
SELECT 70 * ( + - 15 ) DIV + COALESCE ( + 15, - + 26 ) - + COUNT( * ) - + - 23
----
-48

skipif mysql # not compatible
query I rowsort label-3501
SELECT 70 * ( + - 15 ) / + COALESCE ( + 15, - + 26 ) - + COUNT ( * ) - + - 23
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT - - COUNT( * ) * COALESCE ( + 85, + - 29 ) * - 66 + COUNT( * ) - - CASE + 72 WHEN - 75 THEN NULL ELSE 19 END
----
-5590

skipif mysql # not compatible
query I rowsort label-3502
SELECT - - COUNT ( * ) * COALESCE ( + 85, + - 29 ) * - 66 + COUNT ( * ) - - CASE + 72 WHEN - 75 THEN NULL ELSE 19 END
----
-5590

query I rowsort
SELECT 23 + + 60 AS col1
----
83

query I rowsort
SELECT 70 + - 40
----
30

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

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

query I rowsort
SELECT 3 + - 79 AS col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3507
SELECT + NULLIF ( 32, 39 * - CASE 91 WHEN + - COALESCE ( - - 67, - + COUNT( * ), + - 13 * COUNT( * ) + - 92 ) THEN 99 * - CAST( NULL AS DECIMAL ) WHEN + 99 THEN NULL WHEN - 14 THEN 79 WHEN - 44 / - 67 THEN NULL END * 91 ) * + 2 - ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT + NULLIF ( 32, 39 * - CASE 91 WHEN + - COALESCE ( - - 67, - + COUNT ( * ), + - 13 * COUNT ( * ) + - 92 ) THEN 99 * - CAST ( NULL AS REAL ) WHEN + 99 THEN NULL WHEN - 14 THEN 79 WHEN - 44 / - 67 THEN NULL END * 91 ) * + 2 - ( CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT DISTINCT + 91 * + COALESCE ( COALESCE ( - 43, - 35 * - 10, + 46 ), - 9 * + 18 )
----
-3913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3509
SELECT + CAST( - 8 AS SIGNED ) * - CASE + - 86 WHEN - + 38 THEN - - 51 * - + NULLIF ( - ( + 75 ), 97 * - 31 + 55 ) WHEN + ( + 86 ) * - 90 + 55 THEN - COUNT( * ) END * 95 + - 78 - 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3509
SELECT + CAST ( - 8 AS INTEGER ) * - CASE + - 86 WHEN - + 38 THEN - - 51 * - + NULLIF ( - ( + 75 ), 97 * - 31 + 55 ) WHEN + ( + 86 ) * - 90 + 55 THEN - COUNT ( * ) END * 95 + - 78 - 97 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 62 + + - 5
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ALL + 7 + + - MAX( ALL - + ( + - 76 ) ) + + 68 + + 60 + - 99 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL + 7 + + - MAX ( ALL - + ( + - 76 ) ) + + 68 + + 60 + - 99 AS col1
----
-40

query I rowsort
SELECT 7 * - 46 + - 90
----
-412

query I rowsort
SELECT DISTINCT 82 + 72
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT DISTINCT + CASE + + 92 WHEN 11 THEN ( + + ( - COUNT( * ) ) ) * + - 61 ELSE - 31 END + - - 29
----
-2

skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT + CASE + + 92 WHEN 11 THEN ( + + ( - COUNT ( * ) ) ) * + - 61 ELSE - 31 END + - - 29
----
-2

query I rowsort
SELECT 87 + 36 + + 46 * 26 + + 89 + 63 col1
----
1471

query I rowsort
SELECT ALL 99 + + - 72 AS col1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3517
SELECT 81 AS col2, MIN( + - ( - CASE - - 33 WHEN 8 THEN 9 DIV + + 78 + + - 5 + - - 35 ELSE 39 END ) ) * - 2 AS col2
----
81
-78

skipif mysql # not compatible
query II rowsort label-3517
SELECT 81 AS col2, MIN ( + - ( - CASE - - 33 WHEN 8 THEN 9 / + + 78 + + - 5 + - - 35 ELSE 39 END ) ) * - 2 AS col2
----
81
-78

query II rowsort
SELECT 17 AS col1, 94
----
17
94

query I rowsort
SELECT ALL - 44 + 20 + + ( 66 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT COUNT( + 26 ) * 72 * - 35 AS col0
----
-2520

skipif mysql # not compatible
query I rowsort label-3520
SELECT COUNT ( + 26 ) * 72 * - 35 AS col0
----
-2520

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

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

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

skipif mysql # not compatible
query I rowsort label-3522
SELECT COUNT ( ALL - 81 ) + - 50 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-3523
SELECT 98 AS col1, 8 * + + NULLIF ( - 92, + NULLIF ( - 93, 39 ) * 22 * - - COUNT( * ) * 10 * - 0 + + 9 ) - 8 AS col2
----
98
-744

skipif mysql # not compatible
query II rowsort label-3523
SELECT 98 AS col1, 8 * + + NULLIF ( - 92, + NULLIF ( - 93, 39 ) * 22 * - - COUNT ( * ) * 10 * - 0 + + 9 ) - 8 AS col2
----
98
-744

query I rowsort
SELECT 83 + - 52
----
31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT ALL + CASE - 68 WHEN COALESCE ( 94, 86, 32 ) THEN NULL WHEN 44 * + + COUNT( * ) * + 92 * + 5 + + COUNT( * ) THEN 83 + - 78 ELSE NULL END + - 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL + CASE - 68 WHEN COALESCE ( 94, 86, 32 ) THEN NULL WHEN 44 * + + COUNT ( * ) * + 92 * + 5 + + COUNT ( * ) THEN 83 + - 78 ELSE NULL END + - 0 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT ALL - MIN( DISTINCT - 18 ) + 6
----
24

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL - MIN ( DISTINCT - 18 ) + 6
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT 99 + 11 + - 68 * - - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-3528
SELECT 99 + 11 + - 68 * - - COUNT ( * )
----
42

query I rowsort
SELECT 8 + + - 71 + 41 * - 21 + + + 8
----
-916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3530
SELECT DISTINCT - COALESCE ( 0, COALESCE ( - 10, ( 67 ) + - + 22 + - 97 ) * CAST( NULL AS SIGNED ) ) * + + 6
----
0

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT - COALESCE ( 0, COALESCE ( - 10, ( 67 ) + - + 22 + - 97 ) * CAST ( NULL AS INTEGER ) ) * + + 6
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT ALL COUNT( + 56 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL COUNT ( + 56 ) col2
----
1

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

query I rowsort
SELECT 31 + + - ( + - 75 )
----
106

query I rowsort
SELECT - ( 22 ) + + 32 + + 42 * 99
----
4168

query I rowsort
SELECT DISTINCT - - 54 * - - 79
----
4266

onlyif mysql # aggregate syntax: 
query II rowsort label-3536
SELECT ALL - + 99 AS col2, + COUNT( * ) + + 51 AS col2
----
-99
52

skipif mysql # not compatible
query II rowsort label-3536
SELECT ALL - + 99 AS col2, + COUNT ( * ) + + 51 AS col2
----
-99
52

query I rowsort
SELECT 20 + - 71 AS col1
----
-51

query I rowsort
SELECT ALL - 13 * + - 74 AS col1
----
962

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3539
SELECT DISTINCT COUNT( DISTINCT + + COALESCE ( + + 85, - 84, - - 48 + - + 77 + CAST( NULL AS SIGNED ) + - + 72 * 86 ) ) * - 61
----
-61

skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT COUNT ( DISTINCT + + COALESCE ( + + 85, - 84, - - 48 + - + 77 + CAST ( NULL AS INTEGER ) + - + 72 * 86 ) ) * - 61
----
-61

query I rowsort
SELECT DISTINCT - + 37 * + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT ALL 24 * + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL 24 * + COUNT ( * )
----
24

query I rowsort
SELECT ALL + 95 + - 37
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3543
SELECT 15 + CAST( NULL AS SIGNED ) * - 81 / 43 * - 61 * - 53 * - - 23 / + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3543
SELECT 15 + CAST ( NULL AS INTEGER ) * - 81 / 43 * - 61 * - 53 * - - 23 / + 76 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3544
SELECT - 7 * + + CASE + + COUNT( 36 ) WHEN AVG ( + ( 99 ) ) THEN - SUM( DISTINCT - - 20 ) * + 66 * COUNT( * ) - + 60 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END / - 19 - + 96 * - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3544
SELECT - 7 * + + CASE + + COUNT ( 36 ) WHEN AVG ( + ( 99 ) ) THEN - SUM ( DISTINCT - - 20 ) * + 66 * COUNT ( * ) - + 60 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END / - 19 - + 96 * - 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT 18 * MIN( - 19 )
----
-342

skipif mysql # not compatible
query I rowsort label-3545
SELECT 18 * MIN ( - 19 )
----
-342

query II rowsort
SELECT - 17 AS col0, + 42 * + 23 * + - 74
----
-17
-71484

query I rowsort
SELECT ALL 53 + - 76 + + + 21 * - + 47 + + 93
----
-917

query I rowsort
SELECT DISTINCT 65 + + + 70 AS col2
----
135

query I rowsort
SELECT CASE + 86 WHEN - - ( 47 ) THEN + 75 / COALESCE ( - 68, 61 ) WHEN + 43 + + 84 - 18 THEN NULL ELSE NULL END + - 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT 41 + MIN( - 10 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT 41 + MIN ( - 10 ) AS col1
----
31

query I rowsort
SELECT - COALESCE ( + 67, + 92 ) AS col1
----
-67

query I rowsort
SELECT DISTINCT 52 + - - 58 + - 77 * 68
----
-5126

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT DISTINCT 87 + + 84 + - MAX( DISTINCT - 65 ) AS col1
----
236

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT 87 + + 84 + - MAX ( DISTINCT - 65 ) AS col1
----
236

onlyif mysql # DIV for integer division: 
query I rowsort label-3555
SELECT DISTINCT 98 DIV + - 63
----
-1

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT 98 / + - 63
----
-1

query I rowsort
SELECT ALL - 13 - - 49 + + 53
----
89

query I rowsort
SELECT + 28 * + 66
----
1848

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

skipif mysql # not compatible
query II rowsort label-3558
SELECT ALL COUNT ( * ) AS col2, - 4
----
1
-4

query I rowsort
SELECT - NULLIF ( - 29, - 17 ) AS col1
----
29

query I rowsort
SELECT DISTINCT 51 - 34
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT DISTINCT COUNT( DISTINCT + + 44 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT COUNT ( DISTINCT + + 44 ) col1
----
1

query II rowsort
SELECT - 97 * - 76 AS col1, 30 AS col0
----
7372
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT DISTINCT SUM( - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT SUM ( - 61 )
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3564
SELECT DISTINCT + - MIN( 31 ) DIV - ( - 89 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT + - MIN ( 31 ) / - ( - 89 ) col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3565
SELECT - 27 DIV 68 AS col2, + COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-3565
SELECT - 27 / 68 AS col2, + COUNT ( * ) AS col2
----
0
1

query II rowsort
SELECT ALL 93 AS col1, ( - 73 ) AS col2
----
93
-73

query I rowsort
SELECT DISTINCT + 76 * + - 99 AS col1
----
-7524

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT ALL + - CASE - 20 WHEN + 35 THEN NULL WHEN 11 THEN NULL WHEN - - 78 + COUNT( * ) THEN - 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL + - CASE - 20 WHEN + 35 THEN NULL WHEN 11 THEN NULL WHEN - - 78 + COUNT ( * ) THEN - 92 END
----
NULL

query I rowsort
SELECT ALL - 84 * + - 82 + 79 + - 31 AS col1
----
6936

query I rowsort
SELECT 68 * - 0 + 57
----
57

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

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

query I rowsort
SELECT - 82 + - + 45 + ( - 40 )
----
-167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3574
SELECT ALL - 72 * 10 + + 69 * 44 * + + ( + COUNT( * ) ) + - 33 + SUM( ALL - - 67 ) * - CAST( + 63 AS SIGNED ) * 70 + 59 * 74 DIV 48
----
-293097

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL - 72 * 10 + + 69 * 44 * + + ( + COUNT ( * ) ) + - 33 + SUM ( ALL - - 67 ) * - CAST ( + 63 AS INTEGER ) * 70 + 59 * 74 / 48
----
-293097

query I rowsort
SELECT + NULLIF ( + 92, - - 60 + - 96 )
----
92

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

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

query II rowsort
SELECT ALL - + 38 * + + 66 * + 37 + + + 42 AS col2, - 11
----
-92754
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3578
SELECT ALL AVG ( DISTINCT 58 ) * - - COUNT( * ) + - 21 + - AVG ( + CAST( NULL AS DECIMAL ) ) * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL AVG ( DISTINCT 58 ) * - - COUNT ( * ) + - 21 + - AVG ( + CAST ( NULL AS REAL ) ) * + 79
----
NULL

query I rowsort
SELECT + ( - 51 ) + + 33 + + 8 + - 6 * - 72
----
422

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT ALL + 35 * + NULLIF ( + COUNT( * ), + 99 )
----
35

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL + 35 * + NULLIF ( + COUNT ( * ), + 99 )
----
35

query I rowsort
SELECT NULLIF ( + + 46, 37 ) * 30 * + - 93 + 24
----
-128316

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT - COUNT( * ) * 73 - + 33
----
-106

skipif mysql # not compatible
query I rowsort label-3583
SELECT - COUNT ( * ) * 73 - + 33
----
-106

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3584
SELECT + COUNT( DISTINCT + + 34 ), + 21 DIV NULLIF ( 34, ( + - 48 ) * - 0 - - 91 - + 47 * 48 * + + 24 * 80 ) + + 24 AS col2
----
1
24

skipif mysql # not compatible
query II rowsort label-3584
SELECT + COUNT ( DISTINCT + + 34 ), + 21 / NULLIF ( 34, ( + - 48 ) * - 0 - - 91 - + 47 * 48 * + + 24 * 80 ) + + 24 AS col2
----
1
24

query II rowsort
SELECT - 34 + - 68 AS col2, - 54 * + ( - + 70 ) + - 71 col2
----
-102
3709

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT MAX( DISTINCT + + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-3586
SELECT MAX ( DISTINCT + + 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT ALL - 72 * + COUNT( * ) * - 53 * + + 46 col0
----
175536

skipif mysql # not compatible
query I rowsort label-3587
SELECT ALL - 72 * + COUNT ( * ) * - 53 * + + 46 col0
----
175536

onlyif mysql # aggregate syntax: 
query II rowsort label-3588
SELECT ALL + 18 * - + 22, COUNT( * ) AS col0
----
-396
1

skipif mysql # not compatible
query II rowsort label-3588
SELECT ALL + 18 * - + 22, COUNT ( * ) AS col0
----
-396
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3589
SELECT + 28 DIV - NULLIF ( - 56, - 68 * CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3589
SELECT + 28 / - NULLIF ( - 56, - 68 * CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT - ( - COUNT( - 4 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3590
SELECT - ( - COUNT ( - 4 ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3591
SELECT + 80 + + 33 + CAST( NULL AS SIGNED ) * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-3591
SELECT + 80 + + 33 + CAST ( NULL AS INTEGER ) * - 43
----
NULL

query III rowsort
SELECT - 9 + + 30 AS col1, - 51, 1 AS col2
----
21
-51
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3593
SELECT + 68 * - 91, - CAST( NULL AS SIGNED ) AS col2
----
-6188
NULL

skipif mysql # not compatible
query II rowsort label-3593
SELECT + 68 * - 91, - CAST ( NULL AS INTEGER ) AS col2
----
-6188
NULL

query I rowsort
SELECT + 74 * 39 AS col1
----
2886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3595
SELECT + 86 + - ( - 80 ) * - ( 61 ) * - MIN( DISTINCT 85 ) * 2 - - 81 + - COUNT( DISTINCT - 51 ) + - 33 + - 87 DIV 19
----
829729

skipif mysql # not compatible
query I rowsort label-3595
SELECT + 86 + - ( - 80 ) * - ( 61 ) * - MIN ( DISTINCT 85 ) * 2 - - 81 + - COUNT ( DISTINCT - 51 ) + - 33 + - 87 / 19
----
829729

query I rowsort
SELECT ALL - ( + + 82 ) * + 13 AS col0
----
-1066

query I rowsort
SELECT + - 74 * - 85
----
6290

query I rowsort
SELECT ALL - 69 * + 14
----
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT + 73 + + MAX( - - 41 ) col2
----
114

skipif mysql # not compatible
query I rowsort label-3599
SELECT + 73 + + MAX ( - - 41 ) col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT + 87 + + - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-3600
SELECT + 87 + + - COUNT ( * )
----
86

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3602
SELECT ALL 61 * + 0 DIV - 54 + - 81 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL 61 * + 0 / - 54 + - 81 AS col1
----
-81

query I rowsort
SELECT + 0 + + 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT ( COUNT( DISTINCT - 27 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3604
SELECT ( COUNT ( DISTINCT - 27 ) ) AS col1
----
1

query I rowsort
SELECT - 14 + + - 43
----
-57

query I rowsort
SELECT - + 17 + - - 28
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3607
SELECT + + 47 * - CASE - + 66 WHEN + 31 THEN NULL WHEN MIN( DISTINCT - CAST( + 86 AS SIGNED ) ) THEN NULL ELSE + - 48 END * + 41 * - + 70, + 16 * - SUM( DISTINCT 39 ) AS col0
----
-6474720
-624

skipif mysql # not compatible
query II rowsort label-3607
SELECT + + 47 * - CASE - + 66 WHEN + 31 THEN NULL WHEN MIN ( DISTINCT - CAST ( + 86 AS INTEGER ) ) THEN NULL ELSE + - 48 END * + 41 * - + 70, + 16 * - SUM ( DISTINCT 39 ) AS col0
----
-6474720
-624

query I rowsort
SELECT - - 42 + - ( + + 99 )
----
-57

query I rowsort
SELECT DISTINCT + + 70 * + + ( + - 83 )
----
-5810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3610
SELECT DISTINCT + COUNT( * ) DIV - + COALESCE ( + + 85, - + 1, - 23 DIV - CASE + 47 WHEN ( - 85 ) THEN COUNT( DISTINCT 97 ) * + - NULLIF ( NULLIF ( - 71, 60 * - 16 - NULLIF ( 42 + - 48 * - 29, + COUNT( * ) + 49 ) ), 83 ) * + 50 + ( COUNT( * ) + 28 * + 66 ) WHEN - 46 THEN + 68 END ) + 64 * + 6 + 41
----
425

skipif mysql # not compatible
query I rowsort label-3610
SELECT DISTINCT + COUNT ( * ) / - + COALESCE ( + + 85, - + 1, - 23 / - CASE + 47 WHEN ( - 85 ) THEN COUNT ( DISTINCT 97 ) * + - NULLIF ( NULLIF ( - 71, 60 * - 16 - NULLIF ( 42 + - 48 * - 29, + COUNT ( * ) + 49 ) ), 83 ) * + 50 + ( COUNT ( * ) + 28 * + 66 ) WHEN - 46 THEN + 68 END ) + 64 * + 6 + 41
----
425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3611
SELECT DISTINCT - - COUNT( * ) * - CASE ( + COUNT( * ) ) WHEN - CAST( NULL AS SIGNED ) - 15 THEN 58 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT - - COUNT ( * ) * - CASE ( + COUNT ( * ) ) WHEN - CAST ( NULL AS INTEGER ) - 15 THEN 58 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT ALL 57 DIV 96 + + 55 * - 30 + + 23 AS col2
----
-1627

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL 57 / 96 + + 55 * - 30 + + 23 AS col2
----
-1627

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT + - 46 * 96 + MAX( - - 7 ) * 19
----
-4283

skipif mysql # not compatible
query I rowsort label-3613
SELECT + - 46 * 96 + MAX ( - - 7 ) * 19
----
-4283

query II rowsort
SELECT + 13 AS col1, - ( + + 59 ) AS col0
----
13
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT 3 * + COUNT( * ) col1
----
3

skipif mysql # not compatible
query I rowsort label-3615
SELECT 3 * + COUNT ( * ) col1
----
3

query I rowsort
SELECT DISTINCT + 31 - - ( - 30 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3617
SELECT DISTINCT - 19 AS col2, + NULLIF ( + - 66, + - 33 + + - COUNT( * ) ) + + 87 AS col1
----
-19
21

skipif mysql # not compatible
query II rowsort label-3617
SELECT DISTINCT - 19 AS col2, + NULLIF ( + - 66, + - 33 + + - COUNT ( * ) ) + + 87 AS col1
----
-19
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT DISTINCT + 31 - - + 64 * + - NULLIF ( + 24, + COALESCE ( COUNT( * ), + - 21 ) - - 69 ) AS col1
----
-1505

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT + 31 - - + 64 * + - NULLIF ( + 24, + COALESCE ( COUNT ( * ), + - 21 ) - - 69 ) AS col1
----
-1505

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT ALL - MIN( - 87 )
----
87

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL - MIN ( - 87 )
----
87

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

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT - SUM ( DISTINCT 32 )
----
-32

query II rowsort
SELECT + 41, 54 * + 12 * - 78 * - 13 AS col0
----
41
657072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3623
SELECT 13, + 76 * - ( 96 ) / - + COALESCE ( - - 57, + - COUNT( * ), + 62 * + - 54 ) + + CAST( NULL AS SIGNED ) + - - 90 / + - MAX( - 24 ) AS col0
----
13
NULL

skipif mysql # not compatible
query II rowsort label-3623
SELECT 13, + 76 * - ( 96 ) / - + COALESCE ( - - 57, + - COUNT ( * ), + 62 * + - 54 ) + + CAST ( NULL AS INTEGER ) + - - 90 / + - MAX ( - 24 ) AS col0
----
13
NULL

query II rowsort
SELECT - 44, 37 + + ( - 63 ) + - + 98 AS col0
----
-44
-124

query I rowsort
SELECT 2 - - + 29 + 41 * - 86
----
-3495

query II rowsort
SELECT DISTINCT 51 AS col1, - 77 AS col0
----
51
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT ALL CASE + 5 WHEN - CASE WHEN NOT 80 BETWEEN - 85 AND 13 + + 29 THEN + 6 END / + - 45 THEN NULL WHEN - - ( + COUNT( * ) ) * ( ( + 15 ) ) THEN NULL ELSE + COUNT( * ) END * - 64
----
-64

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL CASE + 5 WHEN - CASE WHEN NOT 80 BETWEEN - 85 AND 13 + + 29 THEN + 6 END / + - 45 THEN NULL WHEN - - ( + COUNT ( * ) ) * ( ( + 15 ) ) THEN NULL ELSE + COUNT ( * ) END * - 64
----
-64

query II rowsort
SELECT ALL 56 AS col0, + 75 + 77 AS col1
----
56
152

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT ALL 50 + COUNT( * ) + 84
----
135

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL 50 + COUNT ( * ) + 84
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3630
SELECT 6 * + + CASE - COUNT( * ) WHEN 6 * 55 + 28 + + - 64 + + + 92 - - COUNT( ALL + - 3 ) + + - 72 * - COUNT( * ) * + COUNT( * ) * + 99 * 36 + - CASE 13 + - 43 WHEN + 14 * 55 THEN NULL WHEN ( - ( - SUM( ( + 95 ) ) ) ) + + 7 / + MAX( DISTINCT 65 ) THEN AVG ( DISTINCT + 41 ) * + 9 WHEN - MIN( 78 ) / + 10 THEN MAX( ALL 88 ) END THEN 27 / 54 WHEN - CAST( NULL AS SIGNED ) THEN + CASE - CAST( NULL AS SIGNED ) WHEN - CASE 84 WHEN 72 - - 39 THEN NULL WHEN - 42 THEN NULL ELSE + 69 END * 94 THEN + 21 * + 11 ELSE 18 END * COUNT( * ) WHEN COUNT( * ) * 90 + 92 * 41 THEN NULLIF ( CAST( + 94 AS DECIMAL ), + 25 * CAST( NULL AS SIGNED ) + - 55 ) + 39 * + COUNT( * ) ELSE - CASE 23 WHEN 1 THEN + 39 * ( - 46 * 8 ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3630
SELECT 6 * + + CASE - COUNT ( * ) WHEN 6 * 55 + 28 + + - 64 + + + 92 - - COUNT ( ALL + - 3 ) + + - 72 * - COUNT ( * ) * + COUNT ( * ) * + 99 * 36 + - CASE 13 + - 43 WHEN + 14 * 55 THEN NULL WHEN ( - ( - SUM ( ( + 95 ) ) ) ) + + 7 / + MAX ( DISTINCT 65 ) THEN AVG ( DISTINCT + 41 ) * + 9 WHEN - MIN ( 78 ) / + 10 THEN MAX ( ALL 88 ) END THEN 27 / 54 WHEN - CAST ( NULL AS INTEGER ) THEN + CASE - CAST ( NULL AS INTEGER ) WHEN - CASE 84 WHEN 72 - - 39 THEN NULL WHEN - 42 THEN NULL ELSE + 69 END * 94 THEN + 21 * + 11 ELSE 18 END * COUNT ( * ) WHEN COUNT ( * ) * 90 + 92 * 41 THEN NULLIF ( CAST ( + 94 AS REAL ), + 25 * CAST ( NULL AS INTEGER ) + - 55 ) + 39 * + COUNT ( * ) ELSE - CASE 23 WHEN 1 THEN + 39 * ( - 46 * 8 ) END END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3631
SELECT DISTINCT + 49, - 71 + + + 86 - - COALESCE ( - 95, - MIN( + 6 ), COUNT( * ) * - NULLIF ( - 57, NULLIF ( - 73, + + 61 / 83 + 44 * - COUNT( * ) ) ) * + SUM( 14 ) ) * 62 AS col2
----
49
-5875

skipif mysql # not compatible
query II rowsort label-3631
SELECT DISTINCT + 49, - 71 + + + 86 - - COALESCE ( - 95, - MIN ( + 6 ), COUNT ( * ) * - NULLIF ( - 57, NULLIF ( - 73, + + 61 / 83 + 44 * - COUNT ( * ) ) ) * + SUM ( 14 ) ) * 62 AS col2
----
49
-5875

query I rowsort
SELECT ALL 1 + - 25
----
-24

query I rowsort
SELECT DISTINCT 6 + + 52
----
58

query I rowsort
SELECT - ( - 18 ) - 69 AS col2
----
-51

query I rowsort
SELECT DISTINCT + 90 + - + 25 * + 47 * 87 AS col0
----
-102135

query II rowsort
SELECT ALL + ( 38 ) + - + 57, + 35 - - + 59 + - 25 AS col1
----
-19
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT 31 * - ( - 46 ) + COUNT( * ) AS col0
----
1427

skipif mysql # not compatible
query I rowsort label-3637
SELECT 31 * - ( - 46 ) + COUNT ( * ) AS col0
----
1427

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3639
SELECT ALL + CAST( NULL AS SIGNED ) * - 89 * COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL + CAST ( NULL AS INTEGER ) * - 89 * COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3640
SELECT ALL + 96 + - + 38 + CAST( + + 17 AS SIGNED ) * - 7 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL + 96 + - + 38 + CAST ( + + 17 AS INTEGER ) * - 7 AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3641
SELECT 54 - - - COALESCE ( - 84, - - 1 * + - 17, - + 20 ) * CASE - 94 WHEN - 89 THEN CAST( NULL AS SIGNED ) ELSE NULL END / - COUNT( + + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3641
SELECT 54 - - - COALESCE ( - 84, - - 1 * + - 17, - + 20 ) * CASE - 94 WHEN - 89 THEN CAST ( NULL AS INTEGER ) ELSE NULL END / - COUNT ( + + 80 )
----
NULL

query II rowsort
SELECT - 52 AS col0, 7
----
-52
7

query I rowsort
SELECT - 1 * ( - 44 )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3644
SELECT + COUNT( * ) DIV 37 + - ( - MAX( ALL - 22 ) ) * - + 66 + + SUM( DISTINCT + 9 ) AS col2
----
1461

skipif mysql # not compatible
query I rowsort label-3644
SELECT + COUNT ( * ) / 37 + - ( - MAX ( ALL - 22 ) ) * - + 66 + + SUM ( DISTINCT + 9 ) AS col2
----
1461

query II rowsort
SELECT + 86 AS col0, - 48
----
86
-48

query I rowsort
SELECT + + 71 * 22 + 74 + - 57 * + 1 AS col2
----
1579

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3648
SELECT + 9 * - COUNT( * ) * - - NULLIF ( + - COUNT( 29 ), + + 76 * 66 ) - ( + - 50 ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3648
SELECT + 9 * - COUNT ( * ) * - - NULLIF ( + - COUNT ( 29 ), + + 76 * 66 ) - ( + - 50 ) + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT 12 * + - MIN( - - 97 )
----
-1164

skipif mysql # not compatible
query I rowsort label-3649
SELECT 12 * + - MIN ( - - 97 )
----
-1164

onlyif mysql # DIV for integer division: 
query I rowsort label-3650
SELECT ALL 29 DIV + - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL 29 / + - 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT COUNT( ALL - - 22 ) * ( + - COUNT( * ) ) + - - 51 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3651
SELECT COUNT ( ALL - - 22 ) * ( + - COUNT ( * ) ) + - - 51 AS col1
----
50

onlyif mysql # DIV for integer division: 
query II rowsort label-3652
SELECT 93 DIV - 13 col2, 50 * + + 79 AS col2
----
-7
3950

skipif mysql # not compatible
query II rowsort label-3652
SELECT 93 / - 13 col2, 50 * + + 79 AS col2
----
-7
3950

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT ALL - CASE 42 WHEN + 47 + - - COUNT( * ) * - + 59 * - 64 THEN NULL WHEN 50 THEN + 92 * + 15 - + COUNT( * ) + + 0 * - 5 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL - CASE 42 WHEN + 47 + - - COUNT ( * ) * - + 59 * - 64 THEN NULL WHEN 50 THEN + 92 * + 15 - + COUNT ( * ) + + 0 * - 5 END AS col1
----
NULL

query I rowsort
SELECT - 38 * - 28 + - 66 AS col1
----
998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3655
SELECT ALL - CAST( - + 67 AS SIGNED ) * CAST( - ( - 39 ) AS SIGNED ) + + 9 AS col1
----
2622

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL - CAST ( - + 67 AS INTEGER ) * CAST ( - ( - 39 ) AS INTEGER ) + + 9 AS col1
----
2622

query I rowsort
SELECT 12 + 81 + - 54 * 75 - - 5
----
-3952

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT DISTINCT - SUM( + - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT - SUM ( + - 64 )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-3658
SELECT 21 + - 25 + 17 + - 1 * + + 10 AS col0, COALESCE ( + 42, - 88, - COALESCE ( - COALESCE ( + MIN( ALL + 42 ), 34 ), 24 ) ) * 40 AS col2
----
3
1680

skipif mysql # not compatible
query II rowsort label-3658
SELECT 21 + - 25 + 17 + - 1 * + + 10 AS col0, COALESCE ( + 42, - 88, - COALESCE ( - COALESCE ( + MIN ( ALL + 42 ), 34 ), 24 ) ) * 40 AS col2
----
3
1680

query I rowsort
SELECT 28 * - - ( + + 18 )
----
504

query I rowsort
SELECT 18 * - 14 * - 56 + - - 12
----
14124

onlyif mysql # aggregate syntax: 
query II rowsort label-3661
SELECT ALL - ( - - 66 ) AS col1, 45 * + ( - COUNT( * ) ) AS col2
----
-66
-45

skipif mysql # not compatible
query II rowsort label-3661
SELECT ALL - ( - - 66 ) AS col1, 45 * + ( - COUNT ( * ) ) AS col2
----
-66
-45

query II rowsort
SELECT 18 * - 64 AS col2, 63 col0
----
-1152
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3663
SELECT ALL + COALESCE ( + 77, + - 85 + 12 + - 2 * - + 94 ) + - 9 DIV + + NULLIF ( - 28, + 28 * - + 50 + - SUM( DISTINCT - 81 ) + ( - 79 ) * - 97 * + 84 - - ( 69 ) ) + 14
----
91

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL + COALESCE ( + 77, + - 85 + 12 + - 2 * - + 94 ) + - 9 / + + NULLIF ( - 28, + 28 * - + 50 + - SUM ( DISTINCT - 81 ) + ( - 79 ) * - 97 * + 84 - - ( 69 ) ) + 14
----
91

query I rowsort
SELECT 43 * - 33 AS col0
----
-1419

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT - SUM( DISTINCT 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-3665
SELECT - SUM ( DISTINCT 43 )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-3666
SELECT ALL + - 41 + 62 AS col2, + 53 * + COUNT( * ) * + 96
----
21
5088

skipif mysql # not compatible
query II rowsort label-3666
SELECT ALL + - 41 + 62 AS col2, + 53 * + COUNT ( * ) * + 96
----
21
5088

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3668
SELECT DISTINCT - + NULLIF ( + 65, - - CAST( + - 48 AS SIGNED ) * 94 - - + 40 + 28 + - - 31 / + 29 ) * + 66, - 11 AS col1
----
-4290
-11

skipif mysql # not compatible
query II rowsort label-3668
SELECT DISTINCT - + NULLIF ( + 65, - - CAST ( + - 48 AS INTEGER ) * 94 - - + 40 + 28 + - - 31 / + 29 ) * + 66, - 11 AS col1
----
-4290
-11

query I rowsort
SELECT 46 + - 35 AS col1
----
11

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

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

query I rowsort
SELECT DISTINCT + + ( - 17 ) * - 11 AS col1
----
187

query I rowsort
SELECT DISTINCT + + 99 + + 17 AS col0
----
116

query I rowsort
SELECT ALL - 45 + + + ( + - 57 )
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT DISTINCT + - 49 + + COUNT( * ) * + 20 * - - 44 + 8
----
839

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT + - 49 + + COUNT ( * ) * + 20 * - - 44 + 8
----
839

onlyif mysql # DIV for integer division: 
query I rowsort label-3675
SELECT + + 65 + - - 62 + 14 DIV 98 DIV + 47 * + 33 col2
----
127

skipif mysql # not compatible
query I rowsort label-3675
SELECT + + 65 + - - 62 + 14 / 98 / + 47 * + 33 col2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT ALL CASE - MAX( + 34 ) WHEN 81 + + 44 THEN 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL CASE - MAX ( + 34 ) WHEN 81 + + 44 THEN 39 END
----
NULL

query I rowsort
SELECT DISTINCT - ( - 27 ) - 56 - 27 * - 86
----
2293

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3679
SELECT + 82 * - CAST( + - 87 AS SIGNED ) + + 25
----
7159

skipif mysql # not compatible
query I rowsort label-3679
SELECT + 82 * - CAST ( + - 87 AS INTEGER ) + + 25
----
7159

query I rowsort
SELECT ALL 73 * - 54 - + + 19 + + 53 AS col1
----
-3908

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT DISTINCT 3 * COUNT( * ) - + - 39 + - - 86 AS col0
----
128

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT 3 * COUNT ( * ) - + - 39 + - - 86 AS col0
----
128

query I rowsort
SELECT ALL 23 * + + 45
----
1035

query I rowsort
SELECT ALL 35 * + 48
----
1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3685
SELECT + CASE - - COUNT( - NULLIF ( + 82, 0 ) ) WHEN - + 4 THEN NULL WHEN 7 * + 18 - + - SUM( ALL + 97 ) + - 8 + + + 44 * + - ( + NULLIF ( - + COUNT( * ), + 52 ) ) + 62 THEN NULL WHEN + 46 THEN - CAST( NULL AS SIGNED ) + - 76 ELSE - CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3685
SELECT + CASE - - COUNT ( - NULLIF ( + 82, 0 ) ) WHEN - + 4 THEN NULL WHEN 7 * + 18 - + - SUM ( ALL + 97 ) + - 8 + + + 44 * + - ( + NULLIF ( - + COUNT ( * ), + 52 ) ) + 62 THEN NULL WHEN + 46 THEN - CAST ( NULL AS INTEGER ) + - 76 ELSE - CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT + 81 * 39 AS col2
----
3159

query I rowsort
SELECT ALL 87 * + 55 AS col0
----
4785

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT + MIN( - + 65 ) - 5 - - 61 col2
----
-9

skipif mysql # not compatible
query I rowsort label-3688
SELECT + MIN ( - + 65 ) - 5 - - 61 col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3689
SELECT + 99 DIV + 90
----
1

skipif mysql # not compatible
query I rowsort label-3689
SELECT + 99 / + 90
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT CASE - COUNT( * ) WHEN - - 34 THEN + 59 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT CASE - COUNT ( * ) WHEN - - 34 THEN + 59 ELSE NULL END
----
NULL

query I rowsort
SELECT + 45 * - 42 * + - 23 AS col0
----
43470

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3692
SELECT NULLIF ( + - 99, 11 * + + CAST( NULL AS DECIMAL ) ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-3692
SELECT NULLIF ( + - 99, 11 * + + CAST ( NULL AS REAL ) ) AS col0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3693
SELECT + 63 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-3693
SELECT + 63 / 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT ALL + ( + - 70 ) * - COUNT( ALL 23 ) * - 40 + 44 + 68 AS col2
----
-2688

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL + ( + - 70 ) * - COUNT ( ALL 23 ) * - 40 + 44 + 68 AS col2
----
-2688

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT ( + SUM( DISTINCT - - 13 ) )
----
13

skipif mysql # not compatible
query I rowsort label-3697
SELECT ( + SUM ( DISTINCT - - 13 ) )
----
13

query I rowsort
SELECT + 9 * + 83 + + + 47
----
794

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3701
SELECT + + 24 * - COALESCE ( + 22, - COALESCE ( - 69, - 84 ) DIV - - 66 * - 95 ), COUNT( * ) + 85 AS col0
----
-528
86

skipif mysql # not compatible
query II rowsort label-3701
SELECT + + 24 * - COALESCE ( + 22, - COALESCE ( - 69, - 84 ) / - - 66 * - 95 ), COUNT ( * ) + 85 AS col0
----
-528
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT + 22 - + SUM( ALL - - 74 )
----
-52

skipif mysql # not compatible
query I rowsort label-3702
SELECT + 22 - + SUM ( ALL - - 74 )
----
-52

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

query I rowsort
SELECT DISTINCT + - 92 * - 14 AS col0
----
1288

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT ALL - COUNT( * ) * + + 86
----
-86

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL - COUNT ( * ) * + + 86
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3706
SELECT - ( - COUNT( * ) ) DIV - - 82
----
0

skipif mysql # not compatible
query I rowsort label-3706
SELECT - ( - COUNT ( * ) ) / - - 82
----
0

query I rowsort
SELECT + 30 * - 40 + 13 AS col0
----
-1187

query I rowsort
SELECT + 58 * + 70
----
4060

query I rowsort
SELECT 18 * + 11 - - 66 AS col0
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-3710
SELECT ALL - 67 DIV - 70 * + - 86 + 92
----
92

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL - 67 / - 70 * + - 86 + 92
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3711
SELECT CAST( NULL AS SIGNED ) col0, 43 col1
----
NULL
43

skipif mysql # not compatible
query II rowsort label-3711
SELECT CAST ( NULL AS INTEGER ) col0, 43 col1
----
NULL
43

onlyif mysql # DIV for integer division: 
query II rowsort label-3712
SELECT 28 * - 52 + - 98 DIV + + 85 col0, + 91 AS col2
----
-1457
91

skipif mysql # not compatible
query II rowsort label-3712
SELECT 28 * - 52 + - 98 / + + 85 col0, + 91 AS col2
----
-1457
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3713
SELECT - 91 * 27 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT - 91 * 27 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( - 54 ) * + + 16 * - 85 - - 16
----
-73424

query I rowsort
SELECT DISTINCT - 57 * + 92 + 62
----
-5182

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT ( - CASE 40 WHEN 99 - - - 57 THEN + 22 WHEN + MAX( DISTINCT + 87 ) - + 74 + + 10 * 73 THEN + 14 ELSE + COUNT( * ) * COUNT( * ) * + 78 + - 44 + + 34 END )
----
-68

skipif mysql # not compatible
query I rowsort label-3716
SELECT ( - CASE 40 WHEN 99 - - - 57 THEN + 22 WHEN + MAX ( DISTINCT + 87 ) - + 74 + + 10 * 73 THEN + 14 ELSE + COUNT ( * ) * COUNT ( * ) * + 78 + - 44 + + 34 END )
----
-68

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

query I rowsort
SELECT + 68 + 98 AS col2
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT + NULLIF ( + + 10, - SUM( ALL 31 ) )
----
10

skipif mysql # not compatible
query I rowsort label-3719
SELECT + NULLIF ( + + 10, - SUM ( ALL 31 ) )
----
10

query II rowsort
SELECT ( - 88 ) AS col0, - 93 + + 98 + - 31 - + 71 * + 57 AS col0
----
-88
-4073

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT + CASE + + COUNT( * ) WHEN + + 8 * - 10 THEN + 51 END * + 6 * - 82 + + - 29 + - + 85 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3721
SELECT + CASE + + COUNT ( * ) WHEN + + 8 * - 10 THEN + 51 END * + 6 * - 82 + + - 29 + - + 85 col2
----
NULL

query I rowsort
SELECT + - 14 * 12 AS col2
----
-168

query I rowsort
SELECT ALL + ( + + 83 ) - - 49 AS col1
----
132

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3725
SELECT DISTINCT + 76 DIV 40 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT + 76 / 40 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT 68 + + - 60 * + + 11 * - MAX( + 63 )
----
41648

skipif mysql # not compatible
query I rowsort label-3726
SELECT 68 + + - 60 * + + 11 * - MAX ( + 63 )
----
41648

query I rowsort
SELECT - 97 * - 34 + + 59 + 8 + + 9 * - 24 AS col2
----
3149

query I rowsort
SELECT 98 * - - 32
----
3136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3729
SELECT + 20 + + 88 * - CAST( ( - - COALESCE ( + ( - 28 ), - COUNT( * ) * CASE - 14 WHEN - 30 THEN + 22 END + - - 52 ) ) AS SIGNED ) + + + 77
----
2561

skipif mysql # not compatible
query I rowsort label-3729
SELECT + 20 + + 88 * - CAST ( ( - - COALESCE ( + ( - 28 ), - COUNT ( * ) * CASE - 14 WHEN - 30 THEN + 22 END + - - 52 ) ) AS INTEGER ) + + + 77
----
2561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3730
SELECT COUNT( DISTINCT + CAST( - 57 AS SIGNED ) ) - + 37 + + 79 - - + 48 col0, 90 AS col2
----
91
90

skipif mysql # not compatible
query II rowsort label-3730
SELECT COUNT ( DISTINCT + CAST ( - 57 AS INTEGER ) ) - + 37 + + 79 - - + 48 col0, 90 AS col2
----
91
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT + 3 - - COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3731
SELECT + 3 - - COUNT ( * ) AS col1
----
4

query I rowsort
SELECT ALL - 24 * + 69 AS col1
----
-1656

query I rowsort
SELECT + 47 * + 15
----
705

query I rowsort
SELECT 55 + - - 22 + - 56 * 42 * - - 49 - + - 86 AS col1
----
-115085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3735
SELECT - 69 + - CASE + 39 WHEN - 81 THEN 4 + + COUNT( * ) * 68 * - - 66 * MAX( DISTINCT - + ( - + 20 ) ) * CAST( CASE 45 WHEN 96 THEN NULL ELSE + CAST( NULL AS SIGNED ) END AS SIGNED ) + 43 * COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3735
SELECT - 69 + - CASE + 39 WHEN - 81 THEN 4 + + COUNT ( * ) * 68 * - - 66 * MAX ( DISTINCT - + ( - + 20 ) ) * CAST ( CASE 45 WHEN 96 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END AS INTEGER ) + 43 * COUNT ( * ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT 12 + 41, 21 + 61 + + 95 - + 76 * - - 8 AS col2
----
53
-431

onlyif mysql # DIV for integer division: 
query II rowsort label-3737
SELECT DISTINCT + 68 DIV - 51 AS col1, ( + - 75 )
----
-1
-75

skipif mysql # not compatible
query II rowsort label-3737
SELECT DISTINCT + 68 / - 51 AS col1, ( + - 75 )
----
-1
-75

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3740
SELECT 21 DIV - COUNT( + 21 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-3740
SELECT 21 / - COUNT ( + 21 ) AS col0
----
-21

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

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL + COUNT ( * ) + 2 AS col0
----
3

query I rowsort
SELECT 27 * - 33 AS col1
----
-891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3743
SELECT DISTINCT + 5 + + COUNT( * ) - 28 + + 33 * 20 DIV NULLIF ( - - COUNT( * ), + 77 ) * - 98 * + MIN( CAST( + + ( 92 ) AS SIGNED ) )
----
-5950582

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT + 5 + + COUNT ( * ) - 28 + + 33 * 20 / NULLIF ( - - COUNT ( * ), + 77 ) * - 98 * + MIN ( CAST ( + + ( 92 ) AS INTEGER ) )
----
-5950582

query I rowsort
SELECT ALL 86 + 26 + + 64 AS col2
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3745
SELECT ALL + CAST( NULL AS SIGNED ) + 32 / + + 99 * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + CAST ( NULL AS INTEGER ) + 32 / + + 99 * - 38
----
NULL

query I rowsort
SELECT 56 * + + 4 AS col0
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT DISTINCT - NULLIF ( + SUM( + - 59 ), + + 20 + - - ( - COUNT( * ) ) )
----
59

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT - NULLIF ( + SUM ( + - 59 ), + + 20 + - - ( - COUNT ( * ) ) )
----
59

query I rowsort
SELECT DISTINCT - 79 - + 62
----
-141

query I rowsort
SELECT ALL + 49 - + 91
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT DISTINCT + 91 * + 26 * + COUNT( * ) AS col0
----
2366

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT + 91 * + 26 * + COUNT ( * ) AS col0
----
2366

query I rowsort
SELECT - 29 - + + NULLIF ( + 39, 24 / + 44 ) + 27 * - - 96
----
2524

query I rowsort
SELECT + 38 + + 24 + - + ( 42 ) AS col2
----
20

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

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

query I rowsort
SELECT + - COALESCE ( + 0, + 62 + + - 51 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT + COALESCE ( + 11, - NULLIF ( + COUNT( * ), - - 16 / + 47 ) * - 36 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-3755
SELECT + COALESCE ( + 11, - NULLIF ( + COUNT ( * ), - - 16 / + 47 ) * - 36 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT COUNT( * ) * - + NULLIF ( + 14, 44 ) + + 35 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-3756
SELECT COUNT ( * ) * - + NULLIF ( + 14, 44 ) + + 35 AS col2
----
21

query I rowsort
SELECT ALL + CASE + - 90 WHEN 67 THEN + 55 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT + CASE - 40 WHEN + + 17 * - 81 * + 25 - - + NULLIF ( - 28, + - COUNT( * ) ) + - 9 + - - 47 * - 45 THEN + - 63 ELSE 75 * - - COALESCE ( - COUNT( * ), 99 ) END
----
-75

skipif mysql # not compatible
query I rowsort label-3758
SELECT + CASE - 40 WHEN + + 17 * - 81 * + 25 - - + NULLIF ( - 28, + - COUNT ( * ) ) + - 9 + - - 47 * - 45 THEN + - 63 ELSE 75 * - - COALESCE ( - COUNT ( * ), 99 ) END
----
-75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3759
SELECT CAST( NULL AS DECIMAL ) * + NULLIF ( + NULLIF ( - 29, + 90 + + 49 / + - 93 + + CASE 52 WHEN + - 25 / - ( + 97 ) THEN NULL ELSE - + MIN( - 99 ) + - + MIN( - - 37 ) END * + 3 ), - 49 ) + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT CAST ( NULL AS REAL ) * + NULLIF ( + NULLIF ( - 29, + 90 + + 49 / + - 93 + + CASE 52 WHEN + - 25 / - ( + 97 ) THEN NULL ELSE - + MIN ( - 99 ) + - + MIN ( - - 37 ) END * + 3 ), - 49 ) + 70
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( - - 69, - 77 ) * - + 28
----
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT 93 * + 18 + - - COUNT( * ) + - - COUNT( * ) * COUNT( * ) * - 52
----
1623

skipif mysql # not compatible
query I rowsort label-3761
SELECT 93 * + 18 + - - COUNT ( * ) + - - COUNT ( * ) * COUNT ( * ) * - 52
----
1623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3762
SELECT DISTINCT - 14 DIV + 26 * + 57 * 85 + CASE 11 WHEN - 93 THEN NULL WHEN + 34 THEN + + 94 + - - COUNT( * ) * COUNT( * ) + + + 18 + - ( + 60 ) * - 39 ELSE - + 4 DIV - 63 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT - 14 / + 26 * + 57 * 85 + CASE 11 WHEN - 93 THEN NULL WHEN + 34 THEN + + 94 + - - COUNT ( * ) * COUNT ( * ) + + + 18 + - ( + 60 ) * - 39 ELSE - + 4 / - 63 END AS col0
----
0

query I rowsort
SELECT DISTINCT + 3 + + + 58 - + + ( - 63 ) AS col1
----
124

query I rowsort
SELECT + 67 * + + 66 AS col2
----
4422

onlyif mysql # aggregate syntax: 
query II rowsort label-3765
SELECT COUNT( DISTINCT - 45 ) - + - 29 * 88, 86 AS col0
----
2553
86

skipif mysql # not compatible
query II rowsort label-3765
SELECT COUNT ( DISTINCT - 45 ) - + - 29 * 88, 86 AS col0
----
2553
86

query II rowsort
SELECT 63, 59 col0
----
63
59

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3768
SELECT ALL 64 + - 64 + + CAST( 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL 64 + - 64 + + CAST ( 33 AS INTEGER )
----
33

query II rowsort
SELECT 2 - - + ( + + 38 ) * + + 40 AS col2, 49 AS col1
----
1522
49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3770
SELECT 6 AS col0, COALESCE ( + 26, - 15, + + 67 * + - 61 + - 39 + + 30 + - 20 + - CAST( NULL AS SIGNED ) * + - NULLIF ( - - 46, - 89 + 50 DIV 48 ), 3 * 87 DIV - + 66 ) AS col1
----
6
26

skipif mysql # not compatible
query II rowsort label-3770
SELECT 6 AS col0, COALESCE ( + 26, - 15, + + 67 * + - 61 + - 39 + + 30 + - 20 + - CAST ( NULL AS INTEGER ) * + - NULLIF ( - - 46, - 89 + 50 / 48 ), 3 * 87 / - + 66 ) AS col1
----
6
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT NULLIF ( 48, + COUNT( * ) * ( ( + - 23 ) ) ) * + 60 * - 97 AS col0
----
-279360

skipif mysql # not compatible
query I rowsort label-3771
SELECT NULLIF ( 48, + COUNT ( * ) * ( ( + - 23 ) ) ) * + 60 * - 97 AS col0
----
-279360

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT DISTINCT COUNT( - 50 ) * 73 * - COUNT( * ) * 73 AS col0
----
-5329

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT COUNT ( - 50 ) * 73 * - COUNT ( * ) * 73 AS col0
----
-5329

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT 27 - - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-3773
SELECT 27 - - COUNT ( * )
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL COALESCE ( + SUM( ALL - 89 ), - + 39 * + 13 + 11 ) * + 36
----
-3204

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL COALESCE ( + SUM ( ALL - 89 ), - + 39 * + 13 + 11 ) * + 36
----
-3204

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

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

query I rowsort
SELECT ALL + ( - 98 ) * COALESCE ( - 62, + + 72, 37 ) + 60
----
6136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3778
SELECT CASE 72 WHEN - + 7 - + CAST( - + 69 AS SIGNED ) THEN 91 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3778
SELECT CASE 72 WHEN - + 7 - + CAST ( - + 69 AS INTEGER ) THEN 91 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT COALESCE ( - + 61, + 22 * 11 - COUNT( * ) ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-3779
SELECT COALESCE ( - + 61, + 22 * 11 - COUNT ( * ) ) AS col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3780
SELECT - CAST( - 66 AS SIGNED ) DIV - 46 + + - 59 + + + 0 DIV - 4 * - COUNT( * ) * - + 81 * - + 35 + - 98 DIV 11 * 40 AS col2
----
-380

skipif mysql # not compatible
query I rowsort label-3780
SELECT - CAST ( - 66 AS INTEGER ) / - 46 + + - 59 + + + 0 / - 4 * - COUNT ( * ) * - + 81 * - + 35 + - 98 / 11 * 40 AS col2
----
-380

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3782
SELECT ALL - 1 col2, MIN( - 62 ) * 16 DIV + 60 AS col1
----
-1
-16

skipif mysql # not compatible
query II rowsort label-3782
SELECT ALL - 1 col2, MIN ( - 62 ) * 16 / + 60 AS col1
----
-1
-16

query I rowsort
SELECT COALESCE ( 70, 16 + + 78 ) + 69
----
139

query I rowsort
SELECT 46 + - - 69 AS col2
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-3785
SELECT ALL 56 DIV 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL 56 / 96 AS col1
----
0

query I rowsort
SELECT ALL - + 52 * 84 AS col0
----
-4368

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

query I rowsort
SELECT - - 81 * - 29
----
-2349

query I rowsort
SELECT ALL + NULLIF ( - 55, 72 ) * + + 99 AS col2
----
-5445

query I rowsort
SELECT - + ( - 36 ) * 64 AS col1
----
2304

query I rowsort
SELECT - + 48 + 80 + - ( - 98 ) * + - 51
----
-4966

query II rowsort
SELECT + - 38 AS col1, 14 - - 89
----
-38
103

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

skipif mysql # not compatible
query I rowsort label-3793
SELECT - - COUNT ( * ) / + 90 AS col2
----
0

query II rowsort
SELECT + 66, + COALESCE ( - 19, + 88 ) + - 12 + 62 AS col2
----
66
31

query I rowsort
SELECT - 2 * - 25 * - - 87 * - 35
----
-152250

onlyif mysql # aggregate syntax: 
query II rowsort label-3796
SELECT - COUNT( * ) AS col1, - 16 * + 75
----
-1
-1200

skipif mysql # not compatible
query II rowsort label-3796
SELECT - COUNT ( * ) AS col1, - 16 * + 75
----
-1
-1200

query II rowsort
SELECT ALL + - 85 AS col1, + 41 * + 79
----
-85
3239

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT - - 80 + - 42 + 73 - COUNT( * ) * + - MIN( - 7 ) col0
----
104

skipif mysql # not compatible
query I rowsort label-3798
SELECT - - 80 + - 42 + 73 - COUNT ( * ) * + - MIN ( - 7 ) col0
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3799
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, 62
----
NULL
62

skipif mysql # not compatible
query II rowsort label-3799
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 62
----
NULL
62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3800
SELECT ALL - 41 * + COUNT( ALL 16 ) + - + 31 - CAST( NULL AS DECIMAL ) * MAX( DISTINCT - 6 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL - 41 * + COUNT ( ALL 16 ) + - + 31 - CAST ( NULL AS REAL ) * MAX ( DISTINCT - 6 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3801
SELECT DISTINCT 17 AS col0, MIN( DISTINCT - 89 ) * + - 30
----
17
2670

skipif mysql # not compatible
query II rowsort label-3801
SELECT DISTINCT 17 AS col0, MIN ( DISTINCT - 89 ) * + - 30
----
17
2670

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT - + NULLIF ( - COUNT( * ), + - COUNT( - 90 ) - - NULLIF ( + 36, - + SUM( ALL - - ( 62 ) ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3803
SELECT - + NULLIF ( - COUNT ( * ), + - COUNT ( - 90 ) - - NULLIF ( + 36, - + SUM ( ALL - - ( 62 ) ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL 48 + - MIN( ALL 72 )
----
-24

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL 48 + - MIN ( ALL 72 )
----
-24

query I rowsort
SELECT - 47 + - 54
----
-101

query I rowsort
SELECT ALL 58 + + + 18 + 95 AS col2
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3807
SELECT ALL + 96 + - SUM( + 62 ) + - 3 DIV - 90 * - 56
----
34

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL + 96 + - SUM ( + 62 ) + - 3 / - 90 * - 56
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT + 16 + - 5 + - + 39 * + COUNT( * ) * - 48 col2
----
1883

skipif mysql # not compatible
query I rowsort label-3808
SELECT + 16 + - 5 + - + 39 * + COUNT ( * ) * - 48 col2
----
1883

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT + COUNT( ALL + + 76 ) + - 20 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-3809
SELECT + COUNT ( ALL + + 76 ) + - 20 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3810
SELECT + 69 + - + 66 + + CASE NULLIF ( 46, + 90 * 77 ) WHEN - 69 * - 47 / + 26 / CAST( + ( 25 ) AS SIGNED ) * 56 + 11 THEN + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3810
SELECT + 69 + - + 66 + + CASE NULLIF ( 46, + 90 * 77 ) WHEN - 69 * - 47 / + 26 / CAST ( + ( 25 ) AS INTEGER ) * 56 + 11 THEN + COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3811
SELECT + 80 DIV - - ( - 70 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3811
SELECT + 80 / - - ( - 70 ) col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3812
SELECT + 86 DIV COALESCE ( + 65, - - 14 + - 94, + MAX( - 5 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3812
SELECT + 86 / COALESCE ( + 65, - - 14 + - 94, + MAX ( - 5 ) )
----
1

query I rowsort
SELECT ALL 51 * + ( + 61 ) AS col1
----
3111

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT + ( - 52 ) + + COUNT( * ) + 83 - - 41 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-3814
SELECT + ( - 52 ) + + COUNT ( * ) + 83 - - 41 AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3815
SELECT ALL 47 / CASE COUNT( * ) WHEN 16 THEN ( 5 ) * 71 ELSE - 20 * 12 END * + + CASE + + 81 WHEN + + 90 * + SUM( ALL - + ( CAST( NULL AS SIGNED ) ) ) - 19 THEN 25 - + + NULLIF ( - 4, - 91 + COUNT( * ) ) WHEN 49 THEN NULL WHEN NULLIF ( - 39, + 90 ) / CASE WHEN NOT 18 + ( + CAST( - ( ( + CAST( - 69 AS DECIMAL ) ) ) AS SIGNED ) ) IS NOT NULL THEN NULL ELSE 89 - CASE 17 WHEN 89 THEN 79 END END THEN NULL WHEN 70 THEN - 48 END - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL 47 / CASE COUNT ( * ) WHEN 16 THEN ( 5 ) * 71 ELSE - 20 * 12 END * + + CASE + + 81 WHEN + + 90 * + SUM ( ALL - + ( CAST ( NULL AS INTEGER ) ) ) - 19 THEN 25 - + + NULLIF ( - 4, - 91 + COUNT ( * ) ) WHEN 49 THEN NULL WHEN NULLIF ( - 39, + 90 ) / CASE WHEN NOT 18 + ( + CAST ( - ( ( + CAST ( - 69 AS REAL ) ) ) AS INTEGER ) ) IS NOT NULL THEN NULL ELSE 89 - CASE 17 WHEN 89 THEN 79 END END THEN NULL WHEN 70 THEN - 48 END - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3816
SELECT CAST( + - 34 AS SIGNED ) AS col1, 77
----
-34
77

skipif mysql # not compatible
query II rowsort label-3816
SELECT CAST ( + - 34 AS INTEGER ) AS col1, 77
----
-34
77

query I rowsort
SELECT + 27 * + - 75
----
-2025

query I rowsort
SELECT - 20 * 1 + + 61
----
41

query I rowsort
SELECT + 64 - - NULLIF ( - 37, 0 + ( 26 ) )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3820
SELECT + - CAST( - MAX( 62 ) AS SIGNED ) * + 33 * 3 DIV COUNT( * ) AS col2
----
6138

skipif mysql # not compatible
query I rowsort label-3820
SELECT + - CAST ( - MAX ( 62 ) AS INTEGER ) * + 33 * 3 / COUNT ( * ) AS col2
----
6138

query I rowsort
SELECT DISTINCT - 47 * - 65 AS col1
----
3055

query I rowsort
SELECT ALL + 31 * + 25 + - - 68
----
843

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3823
SELECT ALL + + 95 * 74 - - + 61 + - + 21 - - 87 DIV - + SUM( 33 ) AS col1
----
7068

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL + + 95 * 74 - - + 61 + - + 21 - - 87 / - + SUM ( 33 ) AS col1
----
7068

query I rowsort
SELECT - + 50 - + + 15 AS col0
----
-65

query I rowsort
SELECT ALL + ( + - 67 ) * + 13 * 74
----
-64454

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3826
SELECT - 36 * 49 * - + COALESCE ( + 29, - - 66, - COUNT( DISTINCT 68 ) * - SUM( - 19 ) DIV ( - 35 ) + + 19 + - COUNT( * ) * - COALESCE ( - - 65, 84 ) )
----
51156

skipif mysql # not compatible
query I rowsort label-3826
SELECT - 36 * 49 * - + COALESCE ( + 29, - - 66, - COUNT ( DISTINCT 68 ) * - SUM ( - 19 ) / ( - 35 ) + + 19 + - COUNT ( * ) * - COALESCE ( - - 65, 84 ) )
----
51156

onlyif mysql # aggregate syntax: 
query II rowsort label-3827
SELECT ALL + 73 * 30 + + - 79 + - + MIN( ALL - - 44 ) + MAX( + ( + 87 ) ) * - ( COUNT( * ) ) + + MIN( ALL - - 68 ), + ( + 72 ) AS col2
----
2048
72

skipif mysql # not compatible
query II rowsort label-3827
SELECT ALL + 73 * 30 + + - 79 + - + MIN ( ALL - - 44 ) + MAX ( + ( + 87 ) ) * - ( COUNT ( * ) ) + + MIN ( ALL - - 68 ), + ( + 72 ) AS col2
----
2048
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3828
SELECT + 89 DIV + 47 AS col1, MAX( ALL 68 )
----
1
68

skipif mysql # not compatible
query II rowsort label-3828
SELECT + 89 / + 47 AS col1, MAX ( ALL 68 )
----
1
68

query I rowsort
SELECT - 2 * - 29 AS col0
----
58

query II rowsort
SELECT DISTINCT + ( - 95 ) * + - 99 * - 47 + + + NULLIF ( - 26, - 68 ), 74 AS col2
----
-442061
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3831
SELECT DISTINCT CAST( + + CASE 10 WHEN - + 31 THEN + 49 + + 21 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT DISTINCT CAST ( + + CASE 10 WHEN - + 31 THEN + 49 + + 21 END AS INTEGER ) AS col1
----
NULL

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

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

query I rowsort
SELECT ALL + 92 - - 64 AS col2
----
156

query I rowsort
SELECT - 5 - + 17
----
-22

query I rowsort
SELECT DISTINCT - 19 * - + 18
----
342

query I rowsort
SELECT - 81 - + + 74
----
-155

query I rowsort
SELECT - 39 * - + 14
----
546

query I rowsort
SELECT + 45 * - 21 * + 33
----
-31185

query I rowsort
SELECT - 57 + + 22
----
-35

query II rowsort
SELECT ALL 37, + 23 AS col1
----
37
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3841
SELECT DISTINCT - ( - CAST( - 35 AS SIGNED ) ) * + 1 * 73, + 23 * - CASE ( MIN( + CASE + 98 WHEN - 38 * 40 + 56 THEN NULL WHEN 50 THEN + 52 END ) ) WHEN - 95 THEN + COUNT( DISTINCT + 63 ) ELSE - + 58 + ( + 89 ) END AS col2
----
-2555
-713

skipif mysql # not compatible
query II rowsort label-3841
SELECT DISTINCT - ( - CAST ( - 35 AS INTEGER ) ) * + 1 * 73, + 23 * - CASE ( MIN ( + CASE + 98 WHEN - 38 * 40 + 56 THEN NULL WHEN 50 THEN + 52 END ) ) WHEN - 95 THEN + COUNT ( DISTINCT + 63 ) ELSE - + 58 + ( + 89 ) END AS col2
----
-2555
-713

query II rowsort
SELECT 44 AS col2, + 18 AS col1
----
44
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT 62 - - + 78 + - COUNT( * ) + 25 AS col2
----
164

skipif mysql # not compatible
query I rowsort label-3843
SELECT 62 - - + 78 + - COUNT ( * ) + 25 AS col2
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3844
SELECT 71 - + + NULLIF ( CASE CAST( 33 AS SIGNED ) WHEN - 35 * - COUNT( * ) THEN + 41 * - - 24 ELSE NULL END, 56 ) - - CAST( + - 80 AS SIGNED ) * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT 71 - + + NULLIF ( CASE CAST ( 33 AS INTEGER ) WHEN - 35 * - COUNT ( * ) THEN + 41 * - - 24 ELSE NULL END, 56 ) - - CAST ( + - 80 AS INTEGER ) * - 11
----
NULL

query I rowsort
SELECT 45 + - 6
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT SUM( + 5 ) + - - ( + ( - - 77 ) ) + - COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3846
SELECT SUM ( + 5 ) + - - ( + ( - - 77 ) ) + - COUNT ( * ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT DISTINCT + MIN( + 3 ) + + COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT + MIN ( + 3 ) + + COUNT ( * ) AS col2
----
4

query I rowsort
SELECT DISTINCT ( - - ( + 53 ) ) + + ( - 99 ) + - 96 AS col0
----
-142

query I rowsort
SELECT DISTINCT ( 95 ) + - - ( + 51 ) AS col2
----
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3850
SELECT + 89 DIV - 43 + + 73 * - 2 * + MAX( DISTINCT + + 86 )
----
-12558

skipif mysql # not compatible
query I rowsort label-3850
SELECT + 89 / - 43 + + 73 * - 2 * + MAX ( DISTINCT + + 86 )
----
-12558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3851
SELECT ALL 81 * + 28 - + CAST( - COUNT( ALL - + CAST( + + 17 AS SIGNED ) ) AS SIGNED ) AS col1
----
2269

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL 81 * + 28 - + CAST ( - COUNT ( ALL - + CAST ( + + 17 AS INTEGER ) ) AS INTEGER ) AS col1
----
2269

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT 37 + + ( - - MIN( ALL + 53 ) )
----
90

skipif mysql # not compatible
query I rowsort label-3852
SELECT 37 + + ( - - MIN ( ALL + 53 ) )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3853
SELECT ALL 8 + + + MAX( + ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL 8 + + + MAX ( + ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 91 + 3 col1
----
-88

query I rowsort
SELECT ALL - + ( - - 45 ) col2
----
-45

query I rowsort
SELECT ALL + 64 - + + 14
----
50

query I rowsort
SELECT 37 + 66 + + 75 AS col0
----
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3859
SELECT - COUNT( * ) * 42 / - ( + 53 ) + + CASE + NULLIF ( 3, + 35 ) WHEN + + 49 THEN + 71 WHEN + - ( + 22 ) THEN 21 * + CAST( + 77 AS SIGNED ) * - 11 + + 28 END - + - 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT - COUNT ( * ) * 42 / - ( + 53 ) + + CASE + NULLIF ( 3, + 35 ) WHEN + + 49 THEN + 71 WHEN + - ( + 22 ) THEN 21 * + CAST ( + 77 AS INTEGER ) * - 11 + + 28 END - + - 83 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3860
SELECT 27 + 73 DIV + 81 + + 11 AS col1, 89
----
38
89

skipif mysql # not compatible
query II rowsort label-3860
SELECT 27 + 73 / + 81 + + 11 AS col1, 89
----
38
89

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

skipif mysql # not compatible
query I rowsort label-3861
SELECT CAST ( NULL AS INTEGER ) / AVG ( + 93 ) AS col1
----
NULL

query I rowsort
SELECT 36 + + 95
----
131

query I rowsort
SELECT 72 - - 74 * + 66 col2
----
4956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3864
SELECT DISTINCT + 61 - - MIN( - - 69 ) DIV CAST( + + 4 AS SIGNED ) * + + COALESCE ( 79, + + 74 DIV 67 * + 84, + 63 DIV - 57 ) AS col2
----
1404

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT + 61 - - MIN ( - - 69 ) / CAST ( + + 4 AS INTEGER ) * + + COALESCE ( 79, + + 74 / 67 * + 84, + 63 / - 57 ) AS col2
----
1404

query II rowsort
SELECT 16 AS col0, + 63
----
16
63

query II rowsort
SELECT DISTINCT 40 AS col1, + 57 AS col1
----
40
57

query I rowsort
SELECT 65 * - 10 AS col1
----
-650

query I rowsort
SELECT 71 + 71
----
142

query I rowsort
SELECT DISTINCT 15 * + 6
----
90

query II rowsort
SELECT 8, 10 AS col0
----
8
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT ALL + 71 + - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL + 71 + - COUNT ( * )
----
70

query II rowsort
SELECT 16 AS col1, ( 6 ) col2
----
16
6

query I rowsort
SELECT - COALESCE ( 24, + + 19 ) AS col1
----
-24

query I rowsort
SELECT 34 + 51
----
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL + + 41 + + MAX( ALL 60 ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL + + 41 + + MAX ( ALL 60 ) AS col1
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3877
SELECT + COUNT( * ) AS col1, NULLIF ( - 22, - 96 * - 83 + - + MAX( + 93 ) * - COUNT( * ) + + 44 + + + CAST( NULL AS SIGNED ) * COUNT( ALL - 91 ) ) * COALESCE ( + 46, - CASE - COUNT( * ) WHEN + - 36 THEN - 40 ELSE NULL END DIV - 3 + - 3 + - 21 + COALESCE ( + 35, + 36 + ( 21 + - COUNT( * ) ) ) ) AS col0
----
1
-1012

skipif mysql # not compatible
query II rowsort label-3877
SELECT + COUNT ( * ) AS col1, NULLIF ( - 22, - 96 * - 83 + - + MAX ( + 93 ) * - COUNT ( * ) + + 44 + + + CAST ( NULL AS INTEGER ) * COUNT ( ALL - 91 ) ) * COALESCE ( + 46, - CASE - COUNT ( * ) WHEN + - 36 THEN - 40 ELSE NULL END / - 3 + - 3 + - 21 + COALESCE ( + 35, + 36 + ( 21 + - COUNT ( * ) ) ) ) AS col0
----
1
-1012

query I rowsort
SELECT - 95 * 77
----
-7315

query I rowsort
SELECT + NULLIF ( + 84, 89 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT DISTINCT + - ( 6 ) + COUNT( DISTINCT + + 56 ) + - - COUNT( * ) * + SUM( DISTINCT 58 )
----
53

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT + - ( 6 ) + COUNT ( DISTINCT + + 56 ) + - - COUNT ( * ) * + SUM ( DISTINCT 58 )
----
53

query I rowsort
SELECT + - ( - - 80 ) AS col0
----
-80

query I rowsort
SELECT + 62 - - 13
----
75

query I rowsort
SELECT + 45 * + + 73 AS col0
----
3285

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT ALL - 62 * + - COUNT( - 54 ) * 28 + + 40 AS col0
----
1776

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL - 62 * + - COUNT ( - 54 ) * 28 + + 40 AS col0
----
1776

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3885
SELECT + 13, - ( - + COUNT( * ) ) DIV + + ( + + 37 ) + COUNT( * ) + - 50 AS col0
----
13
-49

skipif mysql # not compatible
query II rowsort label-3885
SELECT + 13, - ( - + COUNT ( * ) ) / + + ( + + 37 ) + COUNT ( * ) + - 50 AS col0
----
13
-49

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

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

query I rowsort
SELECT ALL 42 - + 31 AS col1
----
11

query I rowsort
SELECT - 11 * 31 * 88 + - 74 * 97 col1
----
-37186

onlyif mysql # aggregate syntax: 
query II rowsort label-3889
SELECT ALL 81 * 21 * ( + 89 ), + 14 - + - COUNT( * ) AS col0
----
151389
15

skipif mysql # not compatible
query II rowsort label-3889
SELECT ALL 81 * 21 * ( + 89 ), + 14 - + - COUNT ( * ) AS col0
----
151389
15

query II rowsort
SELECT + 20 + + + 92 * - 43 + - ( + - 66 ) + - + 65 AS col0, + 0 + + 49 * 3 * - - 47
----
-3935
6909

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3892
SELECT + COALESCE ( + 52, + 88 * - 69 DIV COUNT( * ) DIV - CAST( - 39 AS SIGNED ) )
----
52

skipif mysql # not compatible
query I rowsort label-3892
SELECT + COALESCE ( + 52, + 88 * - 69 / COUNT ( * ) / - CAST ( - 39 AS INTEGER ) )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT ( 81 ) * + + 89 + MAX( 41 ) AS col1
----
7250

skipif mysql # not compatible
query I rowsort label-3893
SELECT ( 81 ) * + + 89 + MAX ( 41 ) AS col1
----
7250

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3894
SELECT DISTINCT CAST( - + 75 AS SIGNED ) DIV + - 73
----
1

skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT CAST ( - + 75 AS INTEGER ) / + - 73
----
1

query II rowsort
SELECT - COALESCE ( 8, + + ( 73 ), - + 26 ), 17 AS col1
----
-8
17

query I rowsort
SELECT ALL 92 * - + 71 AS col1
----
-6532

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3897
SELECT + ( - CAST( 28 AS DECIMAL ) ) * + + 48 * + + CAST( NULL AS SIGNED ) * - 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT + ( - CAST ( 28 AS REAL ) ) * + + 48 * + + CAST ( NULL AS INTEGER ) * - 79 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3898
SELECT DISTINCT 27 + - - COALESCE ( 32, - 11 DIV - 28, + + 88 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT 27 + - - COALESCE ( 32, - 11 / - 28, + + 88 ) AS col2
----
59

query I rowsort
SELECT ALL 86 + - - 18
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT + 91 - + COUNT( - 97 ) * 38 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-3900
SELECT + 91 - + COUNT ( - 97 ) * 38 AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3901
SELECT + ( + COALESCE ( + SUM( + 9 ), + 65 + 77 + - - 72, + 0 * ( + - CAST( NULL AS SIGNED ) ) ) ) - + - 56 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3901
SELECT + ( + COALESCE ( + SUM ( + 9 ), + 65 + 77 + - - 72, + 0 * ( + - CAST ( NULL AS INTEGER ) ) ) ) - + - 56 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT + COUNT( * ) + 63 - - + 6 * - + 62 + SUM( ALL 47 ) AS col2
----
-261

skipif mysql # not compatible
query I rowsort label-3902
SELECT + COUNT ( * ) + 63 - - + 6 * - + 62 + SUM ( ALL 47 ) AS col2
----
-261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3903
SELECT ALL - NULLIF ( ( - - 66 ), + + 49 * - COUNT( * ) * - + 10 * + 14 + + - CAST( 81 AS SIGNED ) + + 17 + - ( - + ( + 95 ) ) DIV COUNT( * ) DIV - 65 - ( - 89 ) - + 7 + - - 51 ) DIV + NULLIF ( - SUM( - + 47 ), CAST( NULL AS SIGNED ) * + ( + COUNT( * ) * + 0 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL - NULLIF ( ( - - 66 ), + + 49 * - COUNT ( * ) * - + 10 * + 14 + + - CAST ( 81 AS INTEGER ) + + 17 + - ( - + ( + 95 ) ) / COUNT ( * ) / - 65 - ( - 89 ) - + 7 + - - 51 ) / + NULLIF ( - SUM ( - + 47 ), CAST ( NULL AS INTEGER ) * + ( + COUNT ( * ) * + 0 ) ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3904
SELECT DISTINCT + ( - 68 ) + - 69 * + 97 + - - COUNT( - 40 ) - 30 + - - 42 * - SUM( ALL + - ( + + CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT + ( - 68 ) + - 69 * + 97 + - - COUNT ( - 40 ) - 30 + - - 42 * - SUM ( ALL + - ( + + CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3905
SELECT DISTINCT + 40 + 66 + - + 29 + + CASE + NULLIF ( + 17, - + NULLIF ( + ( - 92 ), - ( + - 56 ) ) ) WHEN - - CASE + - COALESCE ( + 95, 23 + - - 28 ) WHEN + 98 / - 34 THEN NULL WHEN - - COUNT( * ) + - ( - ( ( 49 ) ) ) THEN NULL ELSE - ( 75 ) - CAST( NULL AS SIGNED ) END THEN COUNT( * ) END * - 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT + 40 + 66 + - + 29 + + CASE + NULLIF ( + 17, - + NULLIF ( + ( - 92 ), - ( + - 56 ) ) ) WHEN - - CASE + - COALESCE ( + 95, 23 + - - 28 ) WHEN + 98 / - 34 THEN NULL WHEN - - COUNT ( * ) + - ( - ( ( 49 ) ) ) THEN NULL ELSE - ( 75 ) - CAST ( NULL AS INTEGER ) END THEN COUNT ( * ) END * - 27 AS col0
----
NULL

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

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

query I rowsort
SELECT - 66 - + + 42
----
-108

query I rowsort
SELECT - + 38 - - - 94 AS col1
----
-132

query I rowsort
SELECT - CASE - + 36 WHEN 61 THEN 31 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3910
SELECT - - 52 * - SUM( DISTINCT CASE - 33 WHEN 55 THEN 30 WHEN + - 42 - - 96 THEN + CAST( - 95 AS SIGNED ) END ) AS col1, - MIN( + 51 ) + - 39 AS col0
----
NULL
-90

skipif mysql # not compatible
query II rowsort label-3910
SELECT - - 52 * - SUM ( DISTINCT CASE - 33 WHEN 55 THEN 30 WHEN + - 42 - - 96 THEN + CAST ( - 95 AS INTEGER ) END ) AS col1, - MIN ( + 51 ) + - 39 AS col0
----
NULL
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-3911
SELECT - - COUNT( * ) + + 82 AS col0, 89
----
83
89

skipif mysql # not compatible
query II rowsort label-3911
SELECT - - COUNT ( * ) + + 82 AS col0, 89
----
83
89

query I rowsort
SELECT - 42 * - 14 + ( + 98 ) * + 24
----
2940

query I rowsort
SELECT ALL - 46 * 99 - + 28 + + 99 col2
----
-4483

query I rowsort
SELECT DISTINCT + 64 * - 38
----
-2432

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT ALL + COALESCE ( 78, - + 58, COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL + COALESCE ( 78, - + 58, COUNT ( * ) )
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3916
SELECT + + 87 + - 78, CAST( NULL AS DECIMAL ) AS col1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-3916
SELECT + + 87 + - 78, CAST ( NULL AS REAL ) AS col1
----
9
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3917
SELECT - 64 DIV + 77 * - - 71 DIV 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3917
SELECT - 64 / + 77 * - - 71 / 57 AS col1
----
0

query I rowsort
SELECT + 70 * - 76
----
-5320

query I rowsort
SELECT DISTINCT 93 * - - 51 AS col1
----
4743

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT - COUNT( * ) * - - 40 + - COUNT( * ) + ( - + 89 ) + 89 * + 83 * - 88 AS col1
----
-650186

skipif mysql # not compatible
query I rowsort label-3920
SELECT - COUNT ( * ) * - - 40 + - COUNT ( * ) + ( - + 89 ) + 89 * + 83 * - 88 AS col1
----
-650186

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT CASE + 83 WHEN - ( - NULLIF ( + 71, - 50 * - SUM( DISTINCT - 10 ) ) ) THEN + 59 WHEN - 89 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3921
SELECT CASE + 83 WHEN - ( - NULLIF ( + 71, - 50 * - SUM ( DISTINCT - 10 ) ) ) THEN + 59 WHEN - 89 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3922
SELECT ALL - 79 DIV - ( - + 55 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL - 79 / - ( - + 55 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3923
SELECT - 34 + NULLIF ( - - CAST( NULL AS DECIMAL ), COUNT( * ) / + 12 + - 69 ) - + 48 + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT - 34 + NULLIF ( - - CAST ( NULL AS REAL ), COUNT ( * ) / + 12 + - 69 ) - + 48 + 59 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT ALL + 6 * + MAX( ALL - 14 )
----
-84

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL + 6 * + MAX ( ALL - 14 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT + NULLIF ( COUNT( * ), COUNT( * ) ) + + 89 + - + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT + NULLIF ( COUNT ( * ), COUNT ( * ) ) + + 89 + - + 39
----
NULL

query I rowsort
SELECT + COALESCE ( 63, + 5 + 90 * + - 36 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT + 88 * 21 * + 7 + - + 92 + 48 + COUNT( - + 54 ) AS col1
----
12893

skipif mysql # not compatible
query I rowsort label-3928
SELECT + 88 * 21 * + 7 + - + 92 + 48 + COUNT ( - + 54 ) AS col1
----
12893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3929
SELECT ALL ( CAST( NULL AS SIGNED ) ) * 70 + - - 3 + + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * 70 + - - 3 + + + 2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT ALL COUNT( * ) + 31 + + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL COUNT ( * ) + 31 + + + COUNT ( * )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3932
SELECT + ( - COALESCE ( - MIN( ALL - - 24 ), - 0 DIV + 63 + - 59 * - 56 * + ( COUNT( * ) ) - - 26 * 25 ) ) + - + 9 + - - COUNT( * ) * + 34 - - 12, - COUNT( * ) * + - 68 * + 74 AS col2
----
61
5032

skipif mysql # not compatible
query II rowsort label-3932
SELECT + ( - COALESCE ( - MIN ( ALL - - 24 ), - 0 / + 63 + - 59 * - 56 * + ( COUNT ( * ) ) - - 26 * 25 ) ) + - + 9 + - - COUNT ( * ) * + 34 - - 12, - COUNT ( * ) * + - 68 * + 74 AS col2
----
61
5032

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT ALL 32 + - - 98 + + + 34 - - 21 * + + COUNT( * ) + + - COUNT( * )
----
184

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL 32 + - - 98 + + + 34 - - 21 * + + COUNT ( * ) + + - COUNT ( * )
----
184

query II rowsort
SELECT - ( ( + - 79 ) ) AS col1, + 19
----
79
19

onlyif mysql # aggregate syntax: 
query II rowsort label-3935
SELECT + + 42 + + + 41 + - COUNT( * ) col0, 59 AS col1
----
82
59

skipif mysql # not compatible
query II rowsort label-3935
SELECT + + 42 + + + 41 + - COUNT ( * ) col0, 59 AS col1
----
82
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL + NULLIF ( + 27, SUM( 24 ) ) col2
----
27

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL + NULLIF ( + 27, SUM ( 24 ) ) col2
----
27

query I rowsort
SELECT DISTINCT 29 + - NULLIF ( + 22, 83 )
----
7

query I rowsort
SELECT ALL - 61 + + 40
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3939
SELECT - 41 AS col1, - MAX( ALL + 58 ) AS col0
----
-41
-58

skipif mysql # not compatible
query II rowsort label-3939
SELECT - 41 AS col1, - MAX ( ALL + 58 ) AS col0
----
-41
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT - + COUNT( DISTINCT - + 65 ) + + + 52
----
51

skipif mysql # not compatible
query I rowsort label-3940
SELECT - + COUNT ( DISTINCT - + 65 ) + + + 52
----
51

query I rowsort
SELECT + 17 * + - 58 * + - COALESCE ( + + 50, - 58, + + 44 ) * - 50 * + 77 + + 85 AS col0
----
-189804915

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT - 86 * + SUM( + - 9 ) * + 48
----
37152

skipif mysql # not compatible
query I rowsort label-3942
SELECT - 86 * + SUM ( + - 9 ) * + 48
----
37152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3943
SELECT + COUNT( * ) * + CASE - 87 WHEN + - 83 THEN - CAST( + 54 AS SIGNED ) WHEN NULLIF ( 2, - + 1 ) + + 21 + + + 3 * + 4 + + COUNT( * ) THEN - 34 + - - 37 END + - 56 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3943
SELECT + COUNT ( * ) * + CASE - 87 WHEN + - 83 THEN - CAST ( + 54 AS INTEGER ) WHEN NULLIF ( 2, - + 1 ) + + 21 + + + 3 * + 4 + + COUNT ( * ) THEN - 34 + - - 37 END + - 56 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3944
SELECT - + 43 * - ( + + ( + 78 ) ) + - - 12 + - - 8 + 37 - - 26 / + + ( - 32 ) * - - COUNT( * ) - + CAST( NULL AS SIGNED ) * 35 * - - 67 * - 50 / + 54 + - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3944
SELECT - + 43 * - ( + + ( + 78 ) ) + - - 12 + - - 8 + 37 - - 26 / + + ( - 32 ) * - - COUNT ( * ) - + CAST ( NULL AS INTEGER ) * 35 * - - 67 * - 50 / + 54 + - 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT ALL 13 - - CASE - COUNT( * ) WHEN COUNT( * ) + + ( - AVG ( ALL - + 84 ) ) THEN NULL WHEN + + COUNT( * ) * - COUNT( * ) THEN 53 END AS col1
----
66

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL 13 - - CASE - COUNT ( * ) WHEN COUNT ( * ) + + ( - AVG ( ALL - + 84 ) ) THEN NULL WHEN + + COUNT ( * ) * - COUNT ( * ) THEN 53 END AS col1
----
66

query I rowsort
SELECT DISTINCT 18 * - 79 + - + 14 AS col1
----
-1436

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3947
SELECT ALL - - COUNT( * ) DIV - - 33 - + COUNT( * ) * + - 32 * + 12
----
384

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL - - COUNT ( * ) / - - 33 - + COUNT ( * ) * + - 32 * + 12
----
384

query I rowsort
SELECT - + ( - 25 ) * - - 88 * 38
----
83600

query II rowsort
SELECT 73, + 74 AS col2
----
73
74

query I rowsort
SELECT ALL + NULLIF ( 13, - 95 + - 97 * - 76 + + NULLIF ( ( - 48 ), + NULLIF ( 97, - 46 ) ) + - + ( - 75 ) ) AS col1
----
13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3951
SELECT + CAST( NULL AS DECIMAL ) * - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3951
SELECT + CAST ( NULL AS REAL ) * - 39
----
NULL

query I rowsort
SELECT - 77 * + 24 + 97 AS col0
----
-1751

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT - 22 * 61 - + - 18 DIV 78 * 96 AS col2
----
-1342

skipif mysql # not compatible
query I rowsort label-3955
SELECT - 22 * 61 - + - 18 / 78 * 96 AS col2
----
-1342

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT ALL + MAX( + 84 ) col0
----
84

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL + MAX ( + 84 ) col0
----
84

query I rowsort
SELECT DISTINCT 81 * - NULLIF ( - ( + + 93 ), - - 57 ) * + 42
----
316386

query I rowsort
SELECT DISTINCT + 2 + - 0
----
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3960
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 43 + + ( - 6 ) - ( - 23 ) / COUNT( * ) / 83 * - - 53, - 98 col2
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-3960
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 43 + + ( - 6 ) - ( - 23 ) / COUNT ( * ) / 83 * - - 53, - 98 col2
----
NULL
-98

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

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL 98 + CAST ( NULL AS INTEGER ) / + + 65
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3962
SELECT DISTINCT + 2 + ( + + 46 ) + 72 DIV - - 29
----
50

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT + 2 + ( + + 46 ) + 72 / - - 29
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3963
SELECT 81 DIV + - COUNT( * ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-3963
SELECT 81 / + - COUNT ( * ) AS col0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3964
SELECT ALL + 84 + COUNT( * ) DIV + 92 + ( + 92 )
----
176

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL + 84 + COUNT ( * ) / + 92 + ( + 92 )
----
176

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

skipif mysql # not compatible
query I rowsort label-3965
SELECT 65 + + 73 + ( + - COUNT ( * ) ) AS col1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT ALL - 12 * COUNT( DISTINCT + + 99 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL - 12 * COUNT ( DISTINCT + + 99 ) AS col0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3967
SELECT 71 DIV 53 DIV + 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3967
SELECT 71 / 53 / + 80 AS col0
----
0

query I rowsort
SELECT 39 * - - 52 + + 67 AS col1
----
2095

onlyif mysql # DIV for integer division: 
query I rowsort label-3969
SELECT DISTINCT - 30 DIV - 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT - 30 / - 48 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT ALL NULLIF ( 44, + MIN( + - 13 ) ) + + 38 + - COUNT( * ) * + MAX( - 77 ) AS col0
----
159

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL NULLIF ( 44, + MIN ( + - 13 ) ) + + 38 + - COUNT ( * ) * + MAX ( - 77 ) AS col0
----
159

query I rowsort
SELECT DISTINCT - 58 + - 57
----
-115

query I rowsort
SELECT 98 - + 57
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-3973
SELECT - 5 * + 74 AS col0, COALESCE ( + - 66, MIN( + 62 ) ) + + 46
----
-370
-20

skipif mysql # not compatible
query II rowsort label-3973
SELECT - 5 * + 74 AS col0, COALESCE ( + - 66, MIN ( + 62 ) ) + + 46
----
-370
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3974
SELECT - NULLIF ( 58, COUNT( * ) ) + - CAST( - - 4 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-3974
SELECT - NULLIF ( 58, COUNT ( * ) ) + - CAST ( - - 4 AS INTEGER )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT 88 * - - COUNT( * ) * + 58
----
5104

skipif mysql # not compatible
query I rowsort label-3975
SELECT 88 * - - COUNT ( * ) * + 58
----
5104

query I rowsort
SELECT 91 + - 18
----
73

query I rowsort
SELECT ALL CASE 33 WHEN + 19 THEN - - 0 * 58 + 29 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL - 75 * - MAX( DISTINCT + 60 ) + ( - 54 ) + + COUNT( - + ( - 70 ) ) AS col0
----
4447

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL - 75 * - MAX ( DISTINCT + 60 ) + ( - 54 ) + + COUNT ( - + ( - 70 ) ) AS col0
----
4447

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3980
SELECT DISTINCT COUNT( * ) DIV - 22, + COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-3980
SELECT DISTINCT COUNT ( * ) / - 22, + COUNT ( * ) AS col0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3981
SELECT ALL - 25 * + - 2 + + 14 + + COUNT( * ) * - 16 + MIN( DISTINCT 34 ) - CAST( NULL AS SIGNED ) / + ( + - 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL - 25 * + - 2 + + 14 + + COUNT ( * ) * - 16 + MIN ( DISTINCT 34 ) - CAST ( NULL AS INTEGER ) / + ( + - 26 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3982
SELECT ALL 47 * + 89 * - MAX( - 6 ) col0, 92 AS col1
----
25098
92

skipif mysql # not compatible
query II rowsort label-3982
SELECT ALL 47 * + 89 * - MAX ( - 6 ) col0, 92 AS col1
----
25098
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3983
SELECT 47 DIV + 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3983
SELECT 47 / + 81 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3984
SELECT - 5 * + + 53 + - ( 93 ) + 58 AS col1, - 35 + + 80 + - MIN( + ( - + 99 ) ) + - 37
----
-300
107

skipif mysql # not compatible
query II rowsort label-3984
SELECT - 5 * + + 53 + - ( 93 ) + 58 AS col1, - 35 + + 80 + - MIN ( + ( - + 99 ) ) + - 37
----
-300
107

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT + CASE - 91 WHEN + 72 * + 50 + + - 37 + + COALESCE ( - + 78, 27 ) * - 70 * 36 THEN - - 47 - - COUNT( * ) * 77 * 26 * 86 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT + CASE - 91 WHEN + 72 * + 50 + + - 37 + + COALESCE ( - + 78, 27 ) * - 70 * 36 THEN - - 47 - - COUNT ( * ) * 77 * 26 * 86 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3986
SELECT CAST( + + 75 AS SIGNED ) DIV 15 + 39 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-3986
SELECT CAST ( + + 75 AS INTEGER ) / 15 + 39 AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3987
SELECT - 58 + + + CASE + - 73 WHEN - - COUNT( * ) * - 93 + - 80 + + + MAX( + 62 ) * + 6 + + 19 THEN + 83 + + + 53 END + + 3 + - + COUNT( * ) / CAST( NULL AS SIGNED ) * - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3987
SELECT - 58 + + + CASE + - 73 WHEN - - COUNT ( * ) * - 93 + - 80 + + + MAX ( + 62 ) * + 6 + + 19 THEN + 83 + + + 53 END + + 3 + - + COUNT ( * ) / CAST ( NULL AS INTEGER ) * - 99 AS col2
----
NULL

query I rowsort
SELECT ALL 23 * + 40 AS col2
----
920

query I rowsort
SELECT 46 * + 98 AS col1
----
4508

query I rowsort
SELECT ALL 40 + + - ( + NULLIF ( + 57, + + 49 * + 9 * - + 91 ) ) AS col0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3991
SELECT ALL + 15 DIV + SUM( - - 98 ) DIV - + 3
----
0

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL + 15 / + SUM ( - - 98 ) / - + 3
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3992
SELECT 93 AS col2, 35 + + - CASE 24 WHEN - + 5 THEN - - 90 * - CAST( NULL AS DECIMAL ) WHEN - + 51 THEN + 65 ELSE NULL END AS col0
----
93
NULL

skipif mysql # not compatible
query II rowsort label-3992
SELECT 93 AS col2, 35 + + - CASE 24 WHEN - + 5 THEN - - 90 * - CAST ( NULL AS REAL ) WHEN - + 51 THEN + 65 ELSE NULL END AS col0
----
93
NULL

query I rowsort
SELECT DISTINCT ( + 91 ) + COALESCE ( + + 81, - 13 ) AS col2
----
172

query I rowsort
SELECT 71 * 15 AS col2
----
1065

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT DISTINCT 10 + + COUNT( 11 ) * - 91
----
-81

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT 10 + + COUNT ( 11 ) * - 91
----
-81

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

skipif mysql # not compatible
query II rowsort label-3996
SELECT ALL - COUNT ( * ) AS col0, 18
----
-1
18

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

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

query II rowsort
SELECT + 27 AS col1, - 78 + + 93 * - 89 col0
----
27
-8355

query II rowsort
SELECT 23, - ( + 48 ) AS col1
----
23
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT ALL - 43 * + - 71 * + 68 * + COUNT( * )
----
207604

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL - 43 * + - 71 * + 68 * + COUNT ( * )
----
207604

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT SUM( + ( - 39 ) ) + - + 40
----
-79

skipif mysql # not compatible
query I rowsort label-4001
SELECT SUM ( + ( - 39 ) ) + - + 40
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT + SUM( - - 94 ) col1
----
94

skipif mysql # not compatible
query I rowsort label-4002
SELECT + SUM ( - - 94 ) col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT + 79 * 19 * + 15 * COUNT( * ) + 80 + 84 AS col0
----
22679

skipif mysql # not compatible
query I rowsort label-4003
SELECT + 79 * 19 * + 15 * COUNT ( * ) + 80 + 84 AS col0
----
22679

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT 74 * COUNT( * ) * + 53 * + MIN( - 84 )
----
-329448

skipif mysql # not compatible
query I rowsort label-4004
SELECT 74 * COUNT ( * ) * + 53 * + MIN ( - 84 )
----
-329448

query I rowsort
SELECT ALL 9 + - - 72 AS col0
----
81

query I rowsort
SELECT 80 + + + 7 AS col1
----
87

query I rowsort
SELECT ALL 27 * 34 * + 51 * 83
----
3885894

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

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - CAST ( + 51 AS INTEGER ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT DISTINCT - MIN( ALL + 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT - MIN ( ALL + 24 ) AS col2
----
-24

query I rowsort
SELECT DISTINCT + 72 - + - ( + 39 ) * - 95
----
-3633

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4011
SELECT ALL + ( 84 ) DIV 36 * MIN( + - 21 ) * 45 DIV - 74 + 46 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL + ( 84 ) / 36 * MIN ( + - 21 ) * 45 / - 74 + 46 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT 6 + COUNT( * ) * + ( 59 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4012
SELECT 6 + COUNT ( * ) * + ( 59 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL + COUNT( * ) - - 87
----
88

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL + COUNT ( * ) - - 87
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT + 3 * - - 58 + ( - COUNT( * ) ) - - 43
----
216

skipif mysql # not compatible
query I rowsort label-4014
SELECT + 3 * - - 58 + ( - COUNT ( * ) ) - - 43
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4015
SELECT 67 + + - CASE + 11 WHEN + 39 THEN NULL ELSE + 21 * 45 + + 69 + - + 94 END * - + 63 * + SUM( + 94 ) * + 22 * - + CAST( NULL AS SIGNED ) / + 15 + + - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4015
SELECT 67 + + - CASE + 11 WHEN + 39 THEN NULL ELSE + 21 * 45 + + 69 + - + 94 END * - + 63 * + SUM ( + 94 ) * + 22 * - + CAST ( NULL AS INTEGER ) / + 15 + + - 23
----
NULL

query I rowsort
SELECT - 90 * - 5
----
450

onlyif mysql # DIV for integer division: 
query I rowsort label-4017
SELECT ALL + 70 DIV 41 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL + 70 / 41 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT COUNT( * ) + CASE 62 WHEN - + 15 THEN 4 END - CASE 83 WHEN 40 * + 43 + + + COUNT( * ) THEN + 41 * 73 WHEN 88 THEN NULL END * + 10 * - ( - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4018
SELECT COUNT ( * ) + CASE 62 WHEN - + 15 THEN 4 END - CASE 83 WHEN 40 * + 43 + + + COUNT ( * ) THEN + 41 * 73 WHEN 88 THEN NULL END * + 10 * - ( - 30 )
----
NULL

query I rowsort
SELECT ALL - 79 - - + 67
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4020
SELECT 36 / + ( 33 ) * MIN( ALL 8 ) - + ( - + 28 ) + - + CAST( NULL AS SIGNED ) * - 5 * + 0 * - MAX( - - 95 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT 36 / + ( 33 ) * MIN ( ALL 8 ) - + ( - + 28 ) + - + CAST ( NULL AS INTEGER ) * - 5 * + 0 * - MAX ( - - 95 ) AS col0
----
NULL

query I rowsort
SELECT + 39 * + 7 AS col0
----
273

query I rowsort
SELECT - 62 + + - 75
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL - CASE 16 WHEN + 88 THEN NULL WHEN - MIN( DISTINCT - 69 ) THEN - - 7 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL - CASE 16 WHEN + 88 THEN NULL WHEN - MIN ( DISTINCT - 69 ) THEN - - 7 END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4024
SELECT DISTINCT - MIN( DISTINCT + 29 ) * - CAST( - - 94 AS SIGNED ) AS col1
----
2726

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT - MIN ( DISTINCT + 29 ) * - CAST ( - - 94 AS INTEGER ) AS col1
----
2726

query I rowsort
SELECT - 6 * - 37 * + 91 AS col1
----
20202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4026
SELECT 74 * + CASE + + MIN( + 68 ) WHEN + SUM( - CAST( NULL AS SIGNED ) ) * - 32 * - 67 * + 31 + - ( + MAX( - 62 ) ) THEN NULL WHEN - 48 / ( + 81 ) * - ( + 56 ) + 86 + 61 + - 91 * 57 + - 5 THEN + + 82 * 66 + 88 + 71 - ( NULLIF ( 35, - 63 * + COUNT( * ) ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4026
SELECT 74 * + CASE + + MIN ( + 68 ) WHEN + SUM ( - CAST ( NULL AS INTEGER ) ) * - 32 * - 67 * + 31 + - ( + MAX ( - 62 ) ) THEN NULL WHEN - 48 / ( + 81 ) * - ( + 56 ) + 86 + 61 + - 91 * 57 + - 5 THEN + + 82 * 66 + 88 + 71 - ( NULLIF ( 35, - 63 * + COUNT ( * ) ) ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4027
SELECT - 89, 88 * - CAST( NULL AS SIGNED ) AS col1
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-4027
SELECT - 89, 88 * - CAST ( NULL AS INTEGER ) AS col1
----
-89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL - MAX( DISTINCT 32 ) + - MAX( + 85 )
----
-117

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL - MAX ( DISTINCT 32 ) + - MAX ( + 85 )
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT 51 + + CASE + ( - 90 ) WHEN 14 * - NULLIF ( - COUNT( * ), - - CASE 58 WHEN + + 18 THEN + 8 + + 47 ELSE NULL END ) THEN NULL WHEN - 12 * + 54 THEN - 42 END / - SUM( - 37 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT 51 + + CASE + ( - 90 ) WHEN 14 * - NULLIF ( - COUNT ( * ), - - CASE 58 WHEN + + 18 THEN + 8 + + 47 ELSE NULL END ) THEN NULL WHEN - 12 * + 54 THEN - 42 END / - SUM ( - 37 ) AS col0
----
NULL

query I rowsort
SELECT - + 13 * - 37 AS col2
----
481

query I rowsort
SELECT DISTINCT + 91 + 98
----
189

query I rowsort
SELECT ALL - 33 + 25 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT DISTINCT 64 * + COUNT( ALL - + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT 64 * + COUNT ( ALL - + 64 )
----
64

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

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

query I rowsort
SELECT DISTINCT - 90 * - 24 + 79
----
2239

onlyif mysql # DIV for integer division: 
query I rowsort label-4036
SELECT ALL 93 DIV 12
----
7

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL 93 / 12
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4037
SELECT 57 DIV + MIN( ALL + - 77 ) + + ( + + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-4037
SELECT 57 / + MIN ( ALL + - 77 ) + + ( + + 44 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4038
SELECT + COALESCE ( + + 31, + 24 + + ( COUNT( * ) ) + + + CAST( - 72 AS SIGNED ) * + 63 * - 34 * + NULLIF ( + + 6, COALESCE ( - + 92, + + 92 + - 59 + COUNT( * ) ) / - 1 * 88 + ( 15 ) / + CAST( NULL AS SIGNED ) ) )
----
31

skipif mysql # not compatible
query I rowsort label-4038
SELECT + COALESCE ( + + 31, + 24 + + ( COUNT ( * ) ) + + + CAST ( - 72 AS INTEGER ) * + 63 * - 34 * + NULLIF ( + + 6, COALESCE ( - + 92, + + 92 + - 59 + COUNT ( * ) ) / - 1 * 88 + ( 15 ) / + CAST ( NULL AS INTEGER ) ) )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ALL ( + CASE + 37 WHEN - - 19 + + 86 * ( 74 ) / MIN( ALL 77 ) + + COUNT( * ) - - COUNT( * ) THEN NULL WHEN 53 THEN + 61 END ) * 63 * 9 + + - 53 + + - NULLIF ( + ( + 95 ), - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL ( + CASE + 37 WHEN - - 19 + + 86 * ( 74 ) / MIN ( ALL 77 ) + + COUNT ( * ) - - COUNT ( * ) THEN NULL WHEN 53 THEN + 61 END ) * 63 * 9 + + - 53 + + - NULLIF ( + ( + 95 ), - COUNT ( * ) )
----
NULL

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

query I rowsort
SELECT DISTINCT ( + 82 ) * + ( - 23 ) + + 84 AS col0
----
-1802

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT + COUNT( ALL + 19 ) * 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4042
SELECT + COUNT ( ALL + 19 ) * 53 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT 21 * + - 56 - + MAX( ALL + 5 ) - + 65 AS col2
----
-1246

skipif mysql # not compatible
query I rowsort label-4043
SELECT 21 * + - 56 - + MAX ( ALL + 5 ) - + 65 AS col2
----
-1246

query I rowsort
SELECT NULLIF ( + 61, + 14 / + + 59 * - - 22 ) AS col1
----
61

query I rowsort
SELECT CASE + COALESCE ( 52, 57 / + 3 * - 65 * 38 + - 62 - + 85 / + + 65 ) WHEN - - 83 THEN NULL WHEN + 88 THEN - 37 / - 83 END AS col2
----
NULL

query II rowsort
SELECT + 75 * - 8 + 29 + + 73 AS col0, - 77 AS col1
----
-498
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4047
SELECT DISTINCT + 29 AS col0, MIN( + - 28 )
----
29
-28

skipif mysql # not compatible
query II rowsort label-4047
SELECT DISTINCT + 29 AS col0, MIN ( + - 28 )
----
29
-28

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

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

query I rowsort
SELECT 58 * + 50 - + 45 * - 58 AS col1
----
5510

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

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

query I rowsort
SELECT DISTINCT + 41 * + 84
----
3444

query I rowsort
SELECT - - 30 * - 42
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT DISTINCT + - SUM( 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT + - SUM ( 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT ALL + - 54 * - - SUM( DISTINCT - 91 ) * ( - - 35 ) + - 29
----
171961

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL + - 54 * - - SUM ( DISTINCT - 91 ) * ( - - 35 ) + - 29
----
171961

query II rowsort
SELECT ALL 21, + 40 AS col0
----
21
40

onlyif mysql # aggregate syntax: 
query II rowsort label-4056
SELECT DISTINCT - 80 * 35 * 85 + COUNT( * ) col1, COALESCE ( + NULLIF ( - 60, + + ( - + 56 ) ), 69 * 81 * 42 * - + 66, + 47 )
----
-237999
-60

skipif mysql # not compatible
query II rowsort label-4056
SELECT DISTINCT - 80 * 35 * 85 + COUNT ( * ) col1, COALESCE ( + NULLIF ( - 60, + + ( - + 56 ) ), 69 * 81 * 42 * - + 66, + 47 )
----
-237999
-60

query I rowsort
SELECT - 24 * + + 61
----
-1464

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT DISTINCT SUM( ALL - 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT SUM ( ALL - 93 ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query III rowsort label-4059
SELECT MIN( ALL 63 ) AS col2, MAX( - 31 ), - 42 col2
----
63
-31
-42

skipif mysql # not compatible
query III rowsort label-4059
SELECT MIN ( ALL 63 ) AS col2, MAX ( - 31 ), - 42 col2
----
63
-31
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4060
SELECT + + 9 DIV + SUM( ALL + 16 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4060
SELECT + + 9 / + SUM ( ALL + 16 ) AS col0
----
0

query I rowsort
SELECT ALL - - 0 + - 45 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT - + 17 + 53 * + - COUNT( * ) col1
----
-70

skipif mysql # not compatible
query I rowsort label-4062
SELECT - + 17 + 53 * + - COUNT ( * ) col1
----
-70

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4064
SELECT DISTINCT - CASE - 13 WHEN - + 32 + 73 THEN NULL ELSE - CAST( NULL AS SIGNED ) END + ( 71 ) * + SUM( - + ( - + 46 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT - CASE - 13 WHEN - + 32 + 73 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END + ( 71 ) * + SUM ( - + ( - + 46 ) )
----
NULL

query I rowsort
SELECT ALL + 31 + + + 75 * 46 + - 51 + + 13 AS col2
----
3443

query II rowsort
SELECT 41 AS col0, 11 * - - 15
----
41
165

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4067
SELECT DISTINCT + + 70 DIV 70 * - - CAST( - 94 AS SIGNED ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT + + 70 / 70 * - - CAST ( - 94 AS INTEGER ) AS col1
----
-94

query I rowsort
SELECT ALL - - 8 + - 35 AS col2
----
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT ALL 93 + - 31 + + COUNT( * ) * + + 4
----
66

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL 93 + - 31 + + COUNT ( * ) * + + 4
----
66

query II rowsort
SELECT ALL ( + 1 ) col0, + 93 * + ( - 18 )
----
1
-1674

onlyif mysql # aggregate syntax: 
query II rowsort label-4072
SELECT ALL + 61 * ( 32 ) AS col2, COUNT( * ) + + 40 - + - 13 * - 51 * - - 29
----
1952
-19186

skipif mysql # not compatible
query II rowsort label-4072
SELECT ALL + 61 * ( 32 ) AS col2, COUNT ( * ) + + 40 - + - 13 * - 51 * - - 29
----
1952
-19186

query I rowsort
SELECT DISTINCT + 43 * 55 * + 75
----
177375

query I rowsort
SELECT ALL - 89 + - 62 * + 1 AS col1
----
-151

query I rowsort
SELECT - 52 + - 38 * + ( + 19 )
----
-774

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4077
SELECT ALL 84 DIV - 58 + ( + ( + 3 ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL 84 / - 58 + ( + ( + 3 ) ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4078
SELECT + 97 DIV 9 + - + CASE + - COUNT( * ) WHEN - - MIN( DISTINCT 26 ) THEN NULL WHEN + 44 THEN + 12 DIV + 9 WHEN CASE - SUM( ALL - 92 ) WHEN - ( + - COUNT( * ) ) * NULLIF ( - 90, + - CAST( - 75 AS SIGNED ) ) THEN + 83 * 4 * 47 END * 16 - + + 65 THEN + + CAST( NULL AS SIGNED ) ELSE + 69 DIV - + 61 + - MAX( 75 ) END * 86
----
6546

skipif mysql # not compatible
query I rowsort label-4078
SELECT + 97 / 9 + - + CASE + - COUNT ( * ) WHEN - - MIN ( DISTINCT 26 ) THEN NULL WHEN + 44 THEN + 12 / + 9 WHEN CASE - SUM ( ALL - 92 ) WHEN - ( + - COUNT ( * ) ) * NULLIF ( - 90, + - CAST ( - 75 AS INTEGER ) ) THEN + 83 * 4 * 47 END * 16 - + + 65 THEN + + CAST ( NULL AS INTEGER ) ELSE + 69 / - + 61 + - MAX ( 75 ) END * 86
----
6546

query I rowsort
SELECT + 34 * - 53
----
-1802

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4080
SELECT DISTINCT COUNT( ALL - 15 ) DIV - ( + 17 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT COUNT ( ALL - 15 ) / - ( + 17 ) AS col2
----
0

query I rowsort
SELECT ALL COALESCE ( - 82, + 90 ) * 62
----
-5084

query II rowsort
SELECT ( - 15 ), 86 col2
----
-15
86

onlyif mysql # aggregate syntax: 
query II rowsort label-4083
SELECT + 50 + + - COUNT( * ), - 91 + 20 + - 82 + - - 90 + - - 85 * 38 * + + 90 AS col0
----
49
290637

skipif mysql # not compatible
query II rowsort label-4083
SELECT + 50 + + - COUNT ( * ), - 91 + 20 + - 82 + - - 90 + - - 85 * 38 * + + 90 AS col0
----
49
290637

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4084
SELECT CASE - 47 WHEN - NULLIF ( - - 46, 29 ) THEN - 28 WHEN + 11 THEN NULL ELSE ( 9 ) - - CAST( NULL AS SIGNED ) END * 12 * + - 67 + 39 - + + 78 + - + 35, ( - 82 ) + + - COUNT( * ) AS col1
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-4084
SELECT CASE - 47 WHEN - NULLIF ( - - 46, 29 ) THEN - 28 WHEN + 11 THEN NULL ELSE ( 9 ) - - CAST ( NULL AS INTEGER ) END * 12 * + - 67 + 39 - + + 78 + - + 35, ( - 82 ) + + - COUNT ( * ) AS col1
----
NULL
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4085
SELECT + 20 DIV - COUNT( * ), 6 * + + 6 AS col0
----
-20
36

skipif mysql # not compatible
query II rowsort label-4085
SELECT + 20 / - COUNT ( * ), 6 * + + 6 AS col0
----
-20
36

onlyif mysql # aggregate syntax: 
query II rowsort label-4086
SELECT ALL - 42 * + 21 AS col0, + 33 - NULLIF ( COUNT( + 70 ), - 17 * + CASE + ( - 43 ) WHEN - CASE - COUNT( * ) WHEN + COALESCE ( - 82, + 41 ) + - 68 THEN NULL WHEN 60 + - + 34 + - + SUM( + - 39 ) THEN + 94 ELSE NULL END * + 69 - - + MIN( 90 ) + + + 20 - - 79 * - 1 / + 81 THEN NULL ELSE + ( 92 ) * NULLIF ( + MIN( DISTINCT + 62 ) + + 48, + COUNT( * ) * - 50 + 22 ) END + 70 ) * 49 AS col2
----
-882
-16

skipif mysql # not compatible
query II rowsort label-4086
SELECT ALL - 42 * + 21 AS col0, + 33 - NULLIF ( COUNT ( + 70 ), - 17 * + CASE + ( - 43 ) WHEN - CASE - COUNT ( * ) WHEN + COALESCE ( - 82, + 41 ) + - 68 THEN NULL WHEN 60 + - + 34 + - + SUM ( + - 39 ) THEN + 94 ELSE NULL END * + 69 - - + MIN ( 90 ) + + + 20 - - 79 * - 1 / + 81 THEN NULL ELSE + ( 92 ) * NULLIF ( + MIN ( DISTINCT + 62 ) + + 48, + COUNT ( * ) * - 50 + 22 ) END + 70 ) * 49 AS col2
----
-882
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4087
SELECT DISTINCT + 20 DIV + - 45 - + + NULLIF ( - COALESCE ( CAST( NULL AS SIGNED ), 86 ), - 48 * 66 + 29 + + 44 ) - - COUNT( * ) DIV + + 27 + - 77 + - + ( + + COUNT( * ) ) * - - 4
----
5

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT + 20 / + - 45 - + + NULLIF ( - COALESCE ( CAST ( NULL AS INTEGER ), 86 ), - 48 * 66 + 29 + + 44 ) - - COUNT ( * ) / + + 27 + - 77 + - + ( + + COUNT ( * ) ) * - - 4
----
5

query I rowsort
SELECT + 8 / + - CASE + - 18 WHEN - 5 * + 37 THEN + - 40 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT ALL + COUNT( * ) * MIN( ALL + - ( - 56 ) ) - 7 + - - 57 + 12
----
118

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL + COUNT ( * ) * MIN ( ALL + - ( - 56 ) ) - 7 + - - 57 + 12
----
118

query I rowsort
SELECT + + 82 + 27
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4091
SELECT - - 47 * 10 + - + 49 * - CASE - 76 WHEN + + 35 THEN NULL WHEN + MIN( ALL 72 ) * - 2 * - + COUNT( * ) + - 85 THEN NULL ELSE ( 62 ) - CAST( NULL AS DECIMAL ) + - + ( + COUNT( * ) ) * - - CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT - - 47 * 10 + - + 49 * - CASE - 76 WHEN + + 35 THEN NULL WHEN + MIN ( ALL 72 ) * - 2 * - + COUNT ( * ) + - 85 THEN NULL ELSE ( 62 ) - CAST ( NULL AS REAL ) + - + ( + COUNT ( * ) ) * - - CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4092
SELECT ALL + 82 * 84 * - - 90 + + 11 * CAST( + NULLIF ( 97, - 71 * + + MAX( + + 64 ) + + 31 - - 45 ) AS SIGNED ) AS col1, NULLIF ( + 58, - 23 * + + MIN( + 37 ) / + 56 )
----
620987
58

skipif mysql # not compatible
query II rowsort label-4092
SELECT ALL + 82 * 84 * - - 90 + + 11 * CAST ( + NULLIF ( 97, - 71 * + + MAX ( + + 64 ) + + 31 - - 45 ) AS INTEGER ) AS col1, NULLIF ( + 58, - 23 * + + MIN ( + 37 ) / + 56 )
----
620987
58

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

skipif mysql # not compatible
query I rowsort label-4093
SELECT DISTINCT + 24 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT ALL + COALESCE ( + COUNT( * ), - 34, COUNT( * ) * COUNT( * ) - - 66 ) * 66 * 38
----
2508

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL + COALESCE ( + COUNT ( * ), - 34, COUNT ( * ) * COUNT ( * ) - - 66 ) * 66 * 38
----
2508

onlyif mysql # DIV for integer division: 
query I rowsort label-4095
SELECT DISTINCT - 44 + + 31 + 9 DIV + 12
----
-13

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT - 44 + + 31 + 9 / + 12
----
-13

query I rowsort
SELECT ALL + 75 * 86 * + 60 + - 70 AS col1
----
386930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4097
SELECT + MAX( ALL + 29 ) DIV + SUM( + - 14 )
----
-2

skipif mysql # not compatible
query I rowsort label-4097
SELECT + MAX ( ALL + 29 ) / + SUM ( + - 14 )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4098
SELECT 46 * + 29 * + + 99 AS col2, COUNT( * ) - + - 67
----
132066
68

skipif mysql # not compatible
query II rowsort label-4098
SELECT 46 * + 29 * + + 99 AS col2, COUNT ( * ) - + - 67
----
132066
68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT ALL + 57 - - ( - - 80 ) + ( - + 43 ) * - - SUM( DISTINCT - 78 ) AS col1
----
3491

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL + 57 - - ( - - 80 ) + ( - + 43 ) * - - SUM ( DISTINCT - 78 ) AS col1
----
3491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4101
SELECT 65 DIV ( - MAX( DISTINCT 97 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4101
SELECT 65 / ( - MAX ( DISTINCT 97 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4102
SELECT 0 * - 29 DIV + MAX( ALL + + 87 ) * + 42
----
0

skipif mysql # not compatible
query I rowsort label-4102
SELECT 0 * - 29 / + MAX ( ALL + + 87 ) * + 42
----
0

query I rowsort
SELECT ALL 10 - 15
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4104
SELECT ALL - 94 DIV 39
----
-2

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL - 94 / 39
----
-2

query I rowsort
SELECT DISTINCT + 39 - - 29 AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4106
SELECT ALL + CASE + ( - 93 ) WHEN COUNT( * ) + + 56 + - 59 + + - 4 / - 40 THEN COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN + + 6 END * - 78 * + 90 * - - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL + CASE + ( - 93 ) WHEN COUNT ( * ) + + 56 + - 59 + + - 4 / - 40 THEN COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN + + 6 END * - 78 * + 90 * - - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT COUNT( * ) + + 17 * + - ( + - 79 )
----
1344

skipif mysql # not compatible
query I rowsort label-4107
SELECT COUNT ( * ) + + 17 * + - ( + - 79 )
----
1344

onlyif mysql # aggregate syntax: 
query II rowsort label-4108
SELECT DISTINCT + COUNT( * ) * + MAX( ALL - 3 ) AS col1, - COALESCE ( - 72, - + COUNT( * ) ) AS col2
----
-3
72

skipif mysql # not compatible
query II rowsort label-4108
SELECT DISTINCT + COUNT ( * ) * + MAX ( ALL - 3 ) AS col1, - COALESCE ( - 72, - + COUNT ( * ) ) AS col2
----
-3
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT ALL - SUM( + + CASE - - 65 WHEN - 72 THEN NULL WHEN + + 87 THEN 96 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL - SUM ( + + CASE - - 65 WHEN - 72 THEN NULL WHEN + + 87 THEN 96 ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT ALL + 95 * 26 * - 63 AS col1
----
-155610

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4112
SELECT 95 * 79 * - CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT 95 * 79 * - CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - CASE - 54 WHEN + 49 / + 85 + - - 93 THEN - COALESCE ( + 65, + 99 + 75 ) / - + 50 END
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4116
SELECT ALL - ( - ( + MAX( DISTINCT + + 86 ) ) ) AS col1, 51 * - 48 + - - 39 AS col1
----
86
-2409

skipif mysql # not compatible
query II rowsort label-4116
SELECT ALL - ( - ( + MAX ( DISTINCT + + 86 ) ) ) AS col1, 51 * - 48 + - - 39 AS col1
----
86
-2409

query I rowsort
SELECT ALL - 58 + + + 83 AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4118
SELECT ( CAST( - 33 AS SIGNED ) ) AS col0, 96 AS col1
----
-33
96

skipif mysql # not compatible
query II rowsort label-4118
SELECT ( CAST ( - 33 AS INTEGER ) ) AS col0, 96 AS col1
----
-33
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4119
SELECT 91 DIV + 38
----
2

skipif mysql # not compatible
query I rowsort label-4119
SELECT 91 / + 38
----
2

query I rowsort
SELECT - 15 * - NULLIF ( + + 52, - 88 + 30 ) AS col2
----
780

query I rowsort
SELECT ALL - + 95 + - 24
----
-119

query I rowsort
SELECT ALL 98 + 21
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-4123
SELECT 15, MIN( + + 56 ) AS col0
----
15
56

skipif mysql # not compatible
query II rowsort label-4123
SELECT 15, MIN ( + + 56 ) AS col0
----
15
56

query I rowsort
SELECT + 81 * - 39
----
-3159

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT DISTINCT 29 + NULLIF ( + + 24, + MIN( + 16 ) ) + - + 73 * + 86 * MAX( - 41 ) col0
----
257451

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT 29 + NULLIF ( + + 24, + MIN ( + 16 ) ) + - + 73 * + 86 * MAX ( - 41 ) col0
----
257451

query I rowsort
SELECT - + NULLIF ( + 71, ( + 0 ) ) AS col0
----
-71

query II rowsort
SELECT - 17 - + - 47 - 75 AS col2, - 13 AS col1
----
-45
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4128
SELECT + ( - ( + COALESCE ( + MAX( DISTINCT + 53 ), + ( - 95 ) + + + CAST( NULL AS SIGNED ) + + 62 + - 15 * 69 + 71 ) ) )
----
-53

skipif mysql # not compatible
query I rowsort label-4128
SELECT + ( - ( + COALESCE ( + MAX ( DISTINCT + 53 ), + ( - 95 ) + + + CAST ( NULL AS INTEGER ) + + 62 + - 15 * 69 + 71 ) ) )
----
-53

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4130
SELECT - NULLIF ( + 72, + COALESCE ( + 61, - CAST( NULL AS SIGNED ) + + 54 ) / + COUNT( DISTINCT - 19 ) * + 97 ) * - + 38 + 57
----
2793

skipif mysql # not compatible
query I rowsort label-4130
SELECT - NULLIF ( + 72, + COALESCE ( + 61, - CAST ( NULL AS INTEGER ) + + 54 ) / + COUNT ( DISTINCT - 19 ) * + 97 ) * - + 38 + 57
----
2793

query I rowsort
SELECT - 75 + - 81
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-4132
SELECT - 52, ( - + CASE - 70 WHEN - MAX( - 15 ) * - 84 * - - 91 + + - 52 - + - 76 THEN + 42 * - ( + + 22 ) ELSE - MAX( DISTINCT + + 55 ) END ) col1
----
-52
55

skipif mysql # not compatible
query II rowsort label-4132
SELECT - 52, ( - + CASE - 70 WHEN - MAX ( - 15 ) * - 84 * - - 91 + + - 52 - + - 76 THEN + 42 * - ( + + 22 ) ELSE - MAX ( DISTINCT + + 55 ) END ) col1
----
-52
55

query II rowsort
SELECT - 64 AS col1, 66
----
-64
66

query I rowsort
SELECT + 67 * - + 79 + - 10 + + ( 18 ) AS col0
----
-5285

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT MAX( + 59 ) + + 32
----
91

skipif mysql # not compatible
query I rowsort label-4135
SELECT MAX ( + 59 ) + + 32
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT 0 - - 52 + + 21 + + + SUM( + 78 ) - - - 91 * - 7 AS col2
----
788

skipif mysql # not compatible
query I rowsort label-4136
SELECT 0 - - 52 + + 21 + + + SUM ( + 78 ) - - - 91 * - 7 AS col2
----
788

query I rowsort
SELECT ALL 99 * - + ( 73 ) AS col2
----
-7227

query I rowsort
SELECT 81 * 54
----
4374

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ( + COUNT( * ) ) + + 71
----
72

skipif mysql # not compatible
query I rowsort label-4139
SELECT ( + COUNT ( * ) ) + + 71
----
72

query I rowsort
SELECT DISTINCT 46 - + - 93
----
139

query I rowsort
SELECT ALL 63 * + + 76
----
4788

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

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

query I rowsort
SELECT 71 * + 22 AS col0
----
1562

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

skipif mysql # not compatible
query I rowsort label-4144
SELECT - SUM ( + - 39 )
----
39

query III rowsort
SELECT 9 + - 21 AS col0, + 23 * 10 * - - 24 AS col1, - + 49 AS col0
----
-12
5520
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4146
SELECT 25 DIV + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4146
SELECT 25 / + COUNT ( * ) AS col0
----
25

query I rowsort
SELECT DISTINCT + 33 * 30 * - 36 + - + 0
----
-35640

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

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL + ( + - 6 ) * + - COUNT ( * ) col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4149
SELECT DISTINCT - COUNT( DISTINCT - 50 ) * - COALESCE ( + 18, - MAX( - - 63 ) + - 48 * + ( - COUNT( * ) ), + - COUNT( * ) ) / + + 65 * 6 / ( - 97 ) + - 50 + CAST( NULL AS SIGNED ) * 28 / - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT - COUNT ( DISTINCT - 50 ) * - COALESCE ( + 18, - MAX ( - - 63 ) + - 48 * + ( - COUNT ( * ) ), + - COUNT ( * ) ) / + + 65 * 6 / ( - 97 ) + - 50 + CAST ( NULL AS INTEGER ) * 28 / - 51
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4150
SELECT - + CAST( NULL AS SIGNED ) / - 93 + - + ( - 57 ) / 2
----
NULL

skipif mysql # not compatible
query I rowsort label-4150
SELECT - + CAST ( NULL AS INTEGER ) / - 93 + - + ( - 57 ) / 2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4151
SELECT - 99 DIV + 68
----
-1

skipif mysql # not compatible
query I rowsort label-4151
SELECT - 99 / + 68
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4152
SELECT ALL + + CASE + COUNT( * ) WHEN - + 60 + - 85 + 97 THEN NULL ELSE - - 97 + - 28 - 18 * + 75 END * 44 + - + COUNT( * ) DIV + - 82
----
-56364

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL + + CASE + COUNT ( * ) WHEN - + 60 + - 85 + 97 THEN NULL ELSE - - 97 + - 28 - 18 * + 75 END * 44 + - + COUNT ( * ) / + - 82
----
-56364

query I rowsort
SELECT ALL - COALESCE ( - 51, + 53, - ( 70 ) ) * + 36 AS col0
----
1836

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4154
SELECT + CASE + - 69 WHEN 0 * - 79 THEN NULL WHEN COALESCE ( + - 72, + - ( + CAST( - COUNT( * ) AS DECIMAL ) ), - - 70 ) THEN 55 * 31 * - + 65 WHEN ( + - ( - 34 ) ) THEN - + 15 END col2, - 39
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-4154
SELECT + CASE + - 69 WHEN 0 * - 79 THEN NULL WHEN COALESCE ( + - 72, + - ( + CAST ( - COUNT ( * ) AS REAL ) ), - - 70 ) THEN 55 * 31 * - + 65 WHEN ( + - ( - 34 ) ) THEN - + 15 END col2, - 39
----
NULL
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT ( COUNT( * ) ) + - 69 - - + 73 col1
----
5

skipif mysql # not compatible
query I rowsort label-4155
SELECT ( COUNT ( * ) ) + - 69 - - + 73 col1
----
5

query I rowsort
SELECT - + 9 * + 39 + + + 50 AS col0
----
-301

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4157
SELECT ALL + CASE 51 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE + + 92 END
----
92

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL + CASE 51 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + + 92 END
----
92

query I rowsort
SELECT - 84 * - 98 + - 20 AS col0
----
8212

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4159
SELECT ALL 68 * - + MAX( + CAST( NULL AS DECIMAL ) ) + 50 * 88 * - - 0 * - MAX( DISTINCT - - 0 ) + 54 + - + 38 col0, + 82 - + 21 * + + COUNT( * ) AS col0
----
NULL
61

skipif mysql # not compatible
query II rowsort label-4159
SELECT ALL 68 * - + MAX ( + CAST ( NULL AS REAL ) ) + 50 * 88 * - - 0 * - MAX ( DISTINCT - - 0 ) + 54 + - + 38 col0, + 82 - + 21 * + + COUNT ( * ) AS col0
----
NULL
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ALL COUNT( * ) + - COUNT( * ) * + + 22
----
-21

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL COUNT ( * ) + - COUNT ( * ) * + + 22
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4161
SELECT - 1 + CAST( + + 70 AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-4161
SELECT - 1 + CAST ( + + 70 AS INTEGER )
----
69

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

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

query I rowsort
SELECT - 15 + + - 46 * - - 45
----
-2085

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4164
SELECT DISTINCT - - COUNT( ALL + + CASE + 71 WHEN - 75 THEN NULL ELSE + + ( - 23 ) + - 53 END ) DIV - - 2 * - - NULLIF ( 87, - 94 + - 40 ) * + ( - + 84 ), + 72 AS col0
----
0
72

skipif mysql # not compatible
query II rowsort label-4164
SELECT DISTINCT - - COUNT ( ALL + + CASE + 71 WHEN - 75 THEN NULL ELSE + + ( - 23 ) + - 53 END ) / - - 2 * - - NULLIF ( 87, - 94 + - 40 ) * + ( - + 84 ), + 72 AS col0
----
0
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4165
SELECT ALL + - CAST( - 97 AS SIGNED ) - 7
----
90

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL + - CAST ( - 97 AS INTEGER ) - 7
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4166
SELECT - - ( - + COUNT( * ) ) AS col2, - 2 * ( + + COUNT( * ) ) * 31
----
-1
-62

skipif mysql # not compatible
query II rowsort label-4166
SELECT - - ( - + COUNT ( * ) ) AS col2, - 2 * ( + + COUNT ( * ) ) * 31
----
-1
-62

query II rowsort
SELECT + 42 + + 84, 42 * - - 40 AS col2
----
126
1680

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT - - 3 DIV + - CASE + 91 WHEN - 61 THEN - 95 ELSE - 75 END
----
0

skipif mysql # not compatible
query I rowsort label-4168
SELECT - - 3 / + - CASE + 91 WHEN - 61 THEN - 95 ELSE - 75 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT + + COUNT( 40 ) * 18 * - - 52 + + 46 + + - 97 AS col1
----
885

skipif mysql # not compatible
query I rowsort label-4169
SELECT + + COUNT ( 40 ) * 18 * - - 52 + + 46 + + - 97 AS col1
----
885

query I rowsort
SELECT DISTINCT + 92 * + 70 + 96
----
6536

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

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

query I rowsort
SELECT + - 23 + + + 4
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT - SUM( - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-4173
SELECT - SUM ( - 38 )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4174
SELECT ALL + 94 * + CAST( + 28 AS SIGNED )
----
2632

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL + 94 * + CAST ( + 28 AS INTEGER )
----
2632

query II rowsort
SELECT 64, ( + 48 ) AS col0
----
64
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT ALL ( CASE 36 WHEN - 87 THEN NULL ELSE 26 * CAST( ( + - 49 ) AS SIGNED ) END ) AS col1
----
-1274

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL ( CASE 36 WHEN - 87 THEN NULL ELSE 26 * CAST ( ( + - 49 ) AS INTEGER ) END ) AS col1
----
-1274

onlyif mysql # DIV for integer division: 
query I rowsort label-4177
SELECT - CASE - + 66 WHEN - - 17 THEN NULL WHEN - 97 * + - 17 THEN NULL ELSE - 82 * 83 END DIV 27 col2
----
252

skipif mysql # not compatible
query I rowsort label-4177
SELECT - CASE - + 66 WHEN - - 17 THEN NULL WHEN - 97 * + - 17 THEN NULL ELSE - 82 * 83 END / 27 col2
----
252

query II rowsort
SELECT ALL 22, 41 AS col1
----
22
41

query I rowsort
SELECT + 69 * - 41
----
-2829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4180
SELECT ALL 9 + + COUNT( * ) * CAST( + - NULLIF ( - 42, + 16 ) AS SIGNED ) + - + COUNT( * ) + - 17
----
33

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL 9 + + COUNT ( * ) * CAST ( + - NULLIF ( - 42, + 16 ) AS INTEGER ) + - + COUNT ( * ) + - 17
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-4181
SELECT - COALESCE ( - 52, + + 19 + 86, 17 + + 37 ), - 15 + COUNT( * ) AS col2
----
52
-14

skipif mysql # not compatible
query II rowsort label-4181
SELECT - COALESCE ( - 52, + + 19 + 86, 17 + + 37 ), - 15 + COUNT ( * ) AS col2
----
52
-14

query I rowsort
SELECT + 33 * 15 AS col2
----
495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4183
SELECT - CASE + 24 WHEN + 1 THEN NULL WHEN - + 27 + - MAX( DISTINCT - 44 ) * COUNT( * ) * + - CASE CAST( NULL AS SIGNED ) WHEN + 53 THEN - + 88 WHEN + 25 * + - 0 THEN NULL ELSE NULL END * - 58 / + 77 + - + 38 THEN NULL ELSE 19 END AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4183
SELECT - CASE + 24 WHEN + 1 THEN NULL WHEN - + 27 + - MAX ( DISTINCT - 44 ) * COUNT ( * ) * + - CASE CAST ( NULL AS INTEGER ) WHEN + 53 THEN - + 88 WHEN + 25 * + - 0 THEN NULL ELSE NULL END * - 58 / + 77 + - + 38 THEN NULL ELSE 19 END AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT DISTINCT COUNT( - 71 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT COUNT ( - 71 ) AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4185
SELECT DISTINCT + 12 / - - AVG ( - 53 ) + + 19 * + 63 * - 2 + - AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT + 12 / - - AVG ( - 53 ) + + 19 * + 63 * - 2 + - AVG ( DISTINCT CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4186
SELECT DISTINCT - COUNT( * ) / - - CAST( NULL AS SIGNED ) + - - NULLIF ( 38, + 46 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT - COUNT ( * ) / - - CAST ( NULL AS INTEGER ) + - - NULLIF ( 38, + 46 ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4187
SELECT ALL - - COALESCE ( 62, - COUNT( * ), - 38 + + 71 + 18 * + 62 ) DIV CASE - COUNT( DISTINCT - - 10 ) WHEN + COUNT( * ) + + ( - 5 ) * 81 THEN NULL ELSE + + 4 * + - 62 * + 35 + + + SUM( 76 ) END + + 49 * 76 * - COALESCE ( - NULLIF ( 5, 61 ), - - COUNT( * ) * - + 48 ) * COUNT( * ) * 27 + + - 37 - - ( 39 ) * - 11
----
502274

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL - - COALESCE ( 62, - COUNT ( * ), - 38 + + 71 + 18 * + 62 ) / CASE - COUNT ( DISTINCT - - 10 ) WHEN + COUNT ( * ) + + ( - 5 ) * 81 THEN NULL ELSE + + 4 * + - 62 * + 35 + + + SUM ( 76 ) END + + 49 * 76 * - COALESCE ( - NULLIF ( 5, 61 ), - - COUNT ( * ) * - + 48 ) * COUNT ( * ) * 27 + + - 37 - - ( 39 ) * - 11
----
502274

query I rowsort
SELECT + + 50 + - 2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4189
SELECT - + NULLIF ( NULLIF ( + 78, + + 11 ), + COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) ) * + ( MAX( ALL + 85 ) ) * 3 + - 62 + - - ( + - MIN( DISTINCT CAST( + 47 AS SIGNED ) ) )
----
-19999

skipif mysql # not compatible
query I rowsort label-4189
SELECT - + NULLIF ( NULLIF ( + 78, + + 11 ), + COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) ) * + ( MAX ( ALL + 85 ) ) * 3 + - 62 + - - ( + - MIN ( DISTINCT CAST ( + 47 AS INTEGER ) ) )
----
-19999

query I rowsort
SELECT ALL 78 * + 14 - 93 - - - 74 AS col1
----
925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4191
SELECT ALL 60 / + CASE + 18 WHEN + 5 * CASE + - AVG ( DISTINCT - 92 ) WHEN + 52 THEN NULL WHEN - CASE COUNT( ALL 97 ) WHEN 7 + + 76 + 53 THEN - - 45 * - 29 END THEN + ( + 75 ) END + - 90 + 38 - 40 THEN NULL WHEN + 77 * CAST( - 64 AS SIGNED ) / COUNT( * ) + - - 40 + + COUNT( * ) THEN + 89 + + - 85 ELSE 9 * + ( 56 / 18 ) END + CASE 84 WHEN + 94 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN 38 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL 60 / + CASE + 18 WHEN + 5 * CASE + - AVG ( DISTINCT - 92 ) WHEN + 52 THEN NULL WHEN - CASE COUNT ( ALL 97 ) WHEN 7 + + 76 + 53 THEN - - 45 * - 29 END THEN + ( + 75 ) END + - 90 + 38 - 40 THEN NULL WHEN + 77 * CAST ( - 64 AS INTEGER ) / COUNT ( * ) + - - 40 + + COUNT ( * ) THEN + 89 + + - 85 ELSE 9 * + ( 56 / 18 ) END + CASE 84 WHEN + 94 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN 38 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT ALL + + COALESCE ( - COUNT( * ), - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL + + COALESCE ( - COUNT ( * ), - COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4193
SELECT DISTINCT + COUNT( * ) * 39 - + 85, COUNT( * ) * 55 AS col2
----
-46
55

skipif mysql # not compatible
query II rowsort label-4193
SELECT DISTINCT + COUNT ( * ) * 39 - + 85, COUNT ( * ) * 55 AS col2
----
-46
55

query I rowsort
SELECT ALL - 13 * - 51
----
663

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4196
SELECT + + 33 * + COUNT( - 37 ) - 37 - 96 + 52, - COALESCE ( + COUNT( * ), - + CAST( NULL AS SIGNED ) ) * SUM( ALL - + 50 ) col1
----
-48
50

skipif mysql # not compatible
query II rowsort label-4196
SELECT + + 33 * + COUNT ( - 37 ) - 37 - 96 + 52, - COALESCE ( + COUNT ( * ), - + CAST ( NULL AS INTEGER ) ) * SUM ( ALL - + 50 ) col1
----
-48
50

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4198
SELECT ALL + + 53 AS col1, 30 * MAX( ALL + + 85 )
----
53
2550

skipif mysql # not compatible
query II rowsort label-4198
SELECT ALL + + 53 AS col1, 30 * MAX ( ALL + + 85 )
----
53
2550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4199
SELECT DISTINCT NULLIF ( + - COUNT( * ), + COALESCE ( 24, + - CASE - + 65 WHEN - 42 THEN NULL WHEN 7 + + 10 + - - 89 * - 78 * - 31 + + 60 + + COALESCE ( + 26, 22 + + ( 91 ), 70 ) * - MAX( + 20 ) * MIN( DISTINCT 9 ) + - CASE + ( 44 ) WHEN + 65 THEN NULL WHEN - CAST( NULL AS SIGNED ) * 99 / 27 THEN 45 + 33 / COUNT( * ) ELSE + COUNT( * ) END + + COUNT( * ) THEN NULL ELSE + 59 - ( - 64 + + 48 ) END, 57 ) * 67 )
----
-1

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT NULLIF ( + - COUNT ( * ), + COALESCE ( 24, + - CASE - + 65 WHEN - 42 THEN NULL WHEN 7 + + 10 + - - 89 * - 78 * - 31 + + 60 + + COALESCE ( + 26, 22 + + ( 91 ), 70 ) * - MAX ( + 20 ) * MIN ( DISTINCT 9 ) + - CASE + ( 44 ) WHEN + 65 THEN NULL WHEN - CAST ( NULL AS INTEGER ) * 99 / 27 THEN 45 + 33 / COUNT ( * ) ELSE + COUNT ( * ) END + + COUNT ( * ) THEN NULL ELSE + 59 - ( - 64 + + 48 ) END, 57 ) * 67 )
----
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4201
SELECT COUNT( * ), - MAX( 28 ) AS col1
----
1
-28

skipif mysql # not compatible
query II rowsort label-4201
SELECT COUNT ( * ), - MAX ( 28 ) AS col1
----
1
-28

query I rowsort
SELECT - 51 * + - 2 AS col2
----
102

query I rowsort
SELECT ALL + 63 * + + 82 col2
----
5166

onlyif mysql # DIV for integer division: 
query I rowsort label-4204
SELECT + 69 DIV - + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4204
SELECT + 69 / - + 92 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT - 39 + + COUNT( ALL - 89 ) * - 42
----
-81

skipif mysql # not compatible
query I rowsort label-4205
SELECT - 39 + + COUNT ( ALL - 89 ) * - 42
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT ALL + 63 + + - SUM( DISTINCT - 75 ) - + 6 + 67 AS col0
----
199

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL + 63 + + - SUM ( DISTINCT - 75 ) - + 6 + 67 AS col0
----
199

query I rowsort
SELECT - 92 + + + 45 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-4208
SELECT ALL 3 + + - 92 + - 81 + + 66, ( + - SUM( - 19 ) ) AS col2
----
-104
19

skipif mysql # not compatible
query II rowsort label-4208
SELECT ALL 3 + + - 92 + - 81 + + 66, ( + - SUM ( - 19 ) ) AS col2
----
-104
19

query II rowsort
SELECT DISTINCT 83 AS col0, + 19
----
83
19

query I rowsort
SELECT + 68 + + 93
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT ALL + COUNT( * ) + - MIN( DISTINCT + 63 )
----
-62

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL + COUNT ( * ) + - MIN ( DISTINCT + 63 )
----
-62

query I rowsort
SELECT + 85 * + - 93 AS col2
----
-7905

query I rowsort
SELECT + 62 + - ( - 38 ) AS col2
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4214
SELECT - 32 DIV + 10, + 41 * CASE + 72 WHEN 17 THEN + + 17 ELSE NULL END DIV - 93 + + + COUNT( * ) * - - 53 AS col0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4214
SELECT - 32 / + 10, + 41 * CASE + 72 WHEN 17 THEN + + 17 ELSE NULL END / - 93 + + + COUNT ( * ) * - - 53 AS col0
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT + COUNT( * ) + + 23 + - - 48 * 91 AS col1
----
4392

skipif mysql # not compatible
query I rowsort label-4215
SELECT + COUNT ( * ) + + 23 + - - 48 * 91 AS col1
----
4392

query I rowsort
SELECT - 49 * + 12
----
-588

query I rowsort
SELECT 89 * 48
----
4272

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ALL - + CASE + 84 WHEN ( - 93 ) / + 59 - + COUNT( - 90 ) THEN - 44 * - - 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL - + CASE + 84 WHEN ( - 93 ) / + 59 - + COUNT ( - 90 ) THEN - 44 * - - 67 END
----
NULL

query I rowsort
SELECT DISTINCT + 52 - + - 47 * + 65
----
3107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4220
SELECT DISTINCT - CAST( - 18 AS SIGNED ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT - CAST ( - 18 AS INTEGER ) AS col0
----
18

query I rowsort
SELECT ALL 91 * 0 AS col1
----
0

query I rowsort
SELECT + - CASE 43 WHEN - + 1 * - 56 + - 5 THEN 71 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4223
SELECT DISTINCT 49 * + - COUNT( * ) DIV SUM( + 93 ) * + CASE + COUNT( * ) WHEN - - 31 THEN MIN( 65 ) WHEN - ( - + COUNT( * ) ) THEN 83 END * - 17 * COUNT( * ) DIV 30 - 51
----
-51

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT 49 * + - COUNT ( * ) / SUM ( + 93 ) * + CASE + COUNT ( * ) WHEN - - 31 THEN MIN ( 65 ) WHEN - ( - + COUNT ( * ) ) THEN 83 END * - 17 * COUNT ( * ) / 30 - 51
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT DISTINCT 53 - - + CASE + - COUNT( * ) WHEN + - 82 * + 41 THEN ( 84 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT DISTINCT 53 - - + CASE + - COUNT ( * ) WHEN + - 82 * + 41 THEN ( 84 ) END AS col1
----
NULL

query I rowsort
SELECT + ( - + 90 ) * - 82 AS col2
----
7380

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT - CASE COUNT( * ) WHEN - 87 THEN 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT - CASE COUNT ( * ) WHEN - 87 THEN 82 END
----
NULL

query I rowsort
SELECT ALL - ( - + 17 ) - 34 AS col2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4228
SELECT - 31 AS col0, 42 DIV - + COUNT( * )
----
-31
-42

skipif mysql # not compatible
query II rowsort label-4228
SELECT - 31 AS col0, 42 / - + COUNT ( * )
----
-31
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4229
SELECT - SUM( 67 ) + - - COALESCE ( COALESCE ( + COUNT( * ), + 4 - - + 98 - 24 * - CAST( NULL AS SIGNED ) * 58 ), - + 12 + 40 )
----
-66

skipif mysql # not compatible
query I rowsort label-4229
SELECT - SUM ( 67 ) + - - COALESCE ( COALESCE ( + COUNT ( * ), + 4 - - + 98 - 24 * - CAST ( NULL AS INTEGER ) * 58 ), - + 12 + 40 )
----
-66

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4231
SELECT + COALESCE ( - - 0, + COUNT( * ) ) * ( 2 ) + - + 57 * + CASE - COALESCE ( CAST( NULL AS SIGNED ), - 29 * - - 44, 6 / 51 * - - CAST( NULL AS SIGNED ) + - COUNT( * ), + - CASE + AVG ( - + ( - 84 ) ) WHEN - CAST( 99 AS SIGNED ) THEN SUM( - - 5 ) - - + COUNT( * ) * + - 81 WHEN - + 92 + - 13 * CAST( NULL AS SIGNED ) THEN - - 41 END * + 12 + + - 56 / + COUNT( * ) + COUNT( DISTINCT + CASE - 74 WHEN 55 + 28 THEN NULL WHEN 29 THEN 26 * + 96 + + 82 * 20 ELSE NULL END ) ) WHEN 57 THEN COUNT( * ) * SUM( ALL - 91 * 33 ) - 74 * 24 WHEN NULLIF ( COUNT( * ), - 1 ) * 51 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4231
SELECT + COALESCE ( - - 0, + COUNT ( * ) ) * ( 2 ) + - + 57 * + CASE - COALESCE ( CAST ( NULL AS INTEGER ), - 29 * - - 44, 6 / 51 * - - CAST ( NULL AS INTEGER ) + - COUNT ( * ), + - CASE + AVG ( - + ( - 84 ) ) WHEN - CAST ( 99 AS INTEGER ) THEN SUM ( - - 5 ) - - + COUNT ( * ) * + - 81 WHEN - + 92 + - 13 * CAST ( NULL AS INTEGER ) THEN - - 41 END * + 12 + + - 56 / + COUNT ( * ) + COUNT ( DISTINCT + CASE - 74 WHEN 55 + 28 THEN NULL WHEN 29 THEN 26 * + 96 + + 82 * 20 ELSE NULL END ) ) WHEN 57 THEN COUNT ( * ) * SUM ( ALL - 91 * 33 ) - 74 * 24 WHEN NULLIF ( COUNT ( * ), - 1 ) * 51 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4232
SELECT DISTINCT + 76 DIV - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4232
SELECT DISTINCT + 76 / - 91 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT DISTINCT - + COALESCE ( - + NULLIF ( - 37, - 23 * - 80 + + + 64 - - - COUNT( * ) ), 25, + - 65 * - - 54 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT - + COALESCE ( - + NULLIF ( - 37, - 23 * - 80 + + + 64 - - - COUNT ( * ) ), 25, + - 65 * - - 54 ) AS col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4234
SELECT 6 DIV - 94 * - + 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4234
SELECT 6 / - 94 * - + 36 AS col1
----
0

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

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

onlyif mysql # DIV for integer division: 
query III rowsort label-4236
SELECT DISTINCT - 65 col1, - 68 AS col0, + + 29 DIV - 63
----
-65
-68
0

skipif mysql # not compatible
query III rowsort label-4236
SELECT DISTINCT - 65 col1, - 68 AS col0, + + 29 / - 63
----
-65
-68
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4237
SELECT AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) * + 40 / 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 40 / 89 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT ALL + CASE WHEN NOT 94 NOT BETWEEN + + MIN( ALL + 81 ) AND NULL THEN - - CASE - 71 WHEN - - ( + COUNT( * ) ) THEN NULL WHEN - - 41 * + - 96 * - + COUNT( * ) - COALESCE ( - + 78, 97, + 32 * 1 * - CASE + + 16 WHEN + - MAX( DISTINCT 97 ) THEN + + 89 END + - + 70 ) * - COUNT( * ) THEN - 33 WHEN - + NULLIF ( + 58, + - COUNT( * ) ) THEN NULL END ELSE NULL END + - + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL + CASE WHEN NOT 94 NOT BETWEEN + + MIN ( ALL + 81 ) AND NULL THEN - - CASE - 71 WHEN - - ( + COUNT ( * ) ) THEN NULL WHEN - - 41 * + - 96 * - + COUNT ( * ) - COALESCE ( - + 78, 97, + 32 * 1 * - CASE + + 16 WHEN + - MAX ( DISTINCT 97 ) THEN + + 89 END + - + 70 ) * - COUNT ( * ) THEN - 33 WHEN - + NULLIF ( + 58, + - COUNT ( * ) ) THEN NULL END ELSE NULL END + - + 42
----
NULL

query I rowsort
SELECT 0 + + - 32 AS col1
----
-32

query I rowsort
SELECT ALL 40 * - 84 * 62
----
-208320

onlyif mysql # DIV for integer division: 
query II rowsort label-4241
SELECT 74 DIV + 24, 85 AS col1
----
3
85

skipif mysql # not compatible
query II rowsort label-4241
SELECT 74 / + 24, 85 AS col1
----
3
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT 67 * - + CASE + - ( - 86 ) WHEN + + 94 / + MIN( + - 28 ) + - - 30 THEN 48 + + - 86 * 61 + + - COUNT( * ) * 90 ELSE NULL END * - 0 + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4242
SELECT 67 * - + CASE + - ( - 86 ) WHEN + + 94 / + MIN ( + - 28 ) + - - 30 THEN 48 + + - 86 * 61 + + - COUNT ( * ) * 90 ELSE NULL END * - 0 + 9 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 76 * + - 36
----
-2736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT 19 + CAST( NULL AS SIGNED ) - - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT 19 + CAST ( NULL AS INTEGER ) - - 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4245
SELECT ALL + 67 + 38 AS col1, 82 AS col1, - + 58 + 11 + - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * + 91 + 80 * + 82 + - 62 + 23 + COUNT( * ) - + + COALESCE ( ( 87 ), 89 ) - 69 + + + 55 AS col0
----
105
82
NULL

skipif mysql # not compatible
query III rowsort label-4245
SELECT ALL + 67 + 38 AS col1, 82 AS col1, - + 58 + 11 + - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + 91 + 80 * + 82 + - 62 + 23 + COUNT ( * ) - + + COALESCE ( ( 87 ), 89 ) - 69 + + + 55 AS col0
----
105
82
NULL

query I rowsort
SELECT ALL - 4 + - + ( 52 )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4247
SELECT DISTINCT + COALESCE ( - 70, + COUNT( * ) ) + SUM( DISTINCT 58 ) DIV 86 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-4247
SELECT DISTINCT + COALESCE ( - 70, + COUNT ( * ) ) + SUM ( DISTINCT 58 ) / 86 AS col0
----
-70

query II rowsort
SELECT DISTINCT 80 * - - 48, + 7 AS col2
----
3840
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT DISTINCT 39 + SUM( DISTINCT 18 ) + 44 * - + 47 - - + SUM( - 20 )
----
-2031

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT 39 + SUM ( DISTINCT 18 ) + 44 * - + 47 - - + SUM ( - 20 )
----
-2031

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT ALL + 31 + + COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL + 31 + + COUNT ( * ) AS col2
----
32

query I rowsort
SELECT DISTINCT + 22 + + + 50 AS col1
----
72

query II rowsort
SELECT DISTINCT + 50 + + 36 AS col0, - ( + - ( + 58 ) ) * - 9 * - + ( 11 ) AS col0
----
86
5742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4253
SELECT CAST( + COUNT( ALL + 36 ) AS SIGNED ) * + - 55 col0
----
-55

skipif mysql # not compatible
query I rowsort label-4253
SELECT CAST ( + COUNT ( ALL + 36 ) AS INTEGER ) * + - 55 col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT COUNT( * ) * + MIN( - 54 ) * + COALESCE ( COALESCE ( ( 55 ), 25 ), COUNT( ALL 35 ) + 77, + COUNT( * ) + - 41 ) * - 99
----
294030

skipif mysql # not compatible
query I rowsort label-4254
SELECT COUNT ( * ) * + MIN ( - 54 ) * + COALESCE ( COALESCE ( ( 55 ), 25 ), COUNT ( ALL 35 ) + 77, + COUNT ( * ) + - 41 ) * - 99
----
294030

query I rowsort
SELECT DISTINCT + 14 * - 79 col1
----
-1106

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT ALL + 5 - - SUM( DISTINCT - 47 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL + 5 - - SUM ( DISTINCT - 47 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT CASE + - 51 WHEN - - ( COUNT( * ) ) * - - 72 + - - 40 THEN NULL ELSE - - COUNT( * ) END * + - 12 - 60 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-4257
SELECT CASE + - 51 WHEN - - ( COUNT ( * ) ) * - - 72 + - - 40 THEN NULL ELSE - - COUNT ( * ) END * + - 12 - 60 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT DISTINCT - ( COALESCE ( - 43, + COUNT( * ) + - 24, - 46 ) ) * - ( - 23 )
----
989

skipif mysql # not compatible
query I rowsort label-4258
SELECT DISTINCT - ( COALESCE ( - 43, + COUNT ( * ) + - 24, - 46 ) ) * - ( - 23 )
----
989

query I rowsort
SELECT ALL - 37 * + ( + ( + - ( + - 50 ) ) ) * - 84
----
155400

onlyif mysql # DIV for integer division: 
query II rowsort label-4260
SELECT DISTINCT ( - 56 ) AS col1, 9 + 16 DIV ( - 16 ) AS col2
----
-56
8

skipif mysql # not compatible
query II rowsort label-4260
SELECT DISTINCT ( - 56 ) AS col1, 9 + 16 / ( - 16 ) AS col2
----
-56
8

query I rowsort
SELECT DISTINCT - 20 - + 83 + + 48 + - 93 AS col1
----
-148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4262
SELECT - 11 DIV - + ( ( - 42 ) ) + + COALESCE ( - - NULLIF ( - - CASE - 90 WHEN 28 THEN + NULLIF ( - CASE + + MIN( + 53 ) WHEN - 2 + - + COUNT( * ) THEN - - 98 ELSE NULL END, 46 ) - - - COUNT( * ) + 44 + + 59 + - ( - NULLIF ( NULLIF ( - 15, - NULLIF ( - - MAX( - 30 ), + ( COUNT( * ) ) + + 99 ) ), + + COUNT( * ) ) ) DIV - 76 END, + 85 ), + 47 * + 28 - + 90, 46 ) + - 13 * 28
----
862

skipif mysql # not compatible
query I rowsort label-4262
SELECT - 11 / - + ( ( - 42 ) ) + + COALESCE ( - - NULLIF ( - - CASE - 90 WHEN 28 THEN + NULLIF ( - CASE + + MIN ( + 53 ) WHEN - 2 + - + COUNT ( * ) THEN - - 98 ELSE NULL END, 46 ) - - - COUNT ( * ) + 44 + + 59 + - ( - NULLIF ( NULLIF ( - 15, - NULLIF ( - - MAX ( - 30 ), + ( COUNT ( * ) ) + + 99 ) ), + + COUNT ( * ) ) ) / - 76 END, + 85 ), + 47 * + 28 - + 90, 46 ) + - 13 * 28
----
862

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT CASE - 51 WHEN 62 - - 55 * COUNT( * ) + - ( 61 ) THEN 99 + 90 * - 66 ELSE NULL END * ( + COUNT( * ) ) * 57 - + + ( 35 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT CASE - 51 WHEN 62 - - 55 * COUNT ( * ) + - ( 61 ) THEN 99 + 90 * - 66 ELSE NULL END * ( + COUNT ( * ) ) * 57 - + + ( 35 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4264
SELECT - 81 * + 84 * - 25 + + - CAST( - 61 AS SIGNED )
----
170161

skipif mysql # not compatible
query I rowsort label-4264
SELECT - 81 * + 84 * - 25 + + - CAST ( - 61 AS INTEGER )
----
170161

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT 52 + + MIN( DISTINCT - + 37 ) - 97 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-4265
SELECT 52 + + MIN ( DISTINCT - + 37 ) - 97 AS col1
----
-82

query I rowsort
SELECT + + 81 * + - 37 + + 60 - + 61 * 52 - + + COALESCE ( + - 10, - + 36 * - 50 - + + 5 * - 25, 93 )
----
-6099

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4267
SELECT ALL + CAST( NULL AS SIGNED ) * + 1 * + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL + CAST ( NULL AS INTEGER ) * + 1 * + 94 AS col1
----
NULL

query I rowsort
SELECT 29 * - 5 * + 90 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT 8 * ( COUNT( * ) ) * - 93
----
-744

skipif mysql # not compatible
query I rowsort label-4269
SELECT 8 * ( COUNT ( * ) ) * - 93
----
-744

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4270
SELECT - 97 * + + 55 DIV + COUNT( * ) AS col2
----
-5335

skipif mysql # not compatible
query I rowsort label-4270
SELECT - 97 * + + 55 / + COUNT ( * ) AS col2
----
-5335

query I rowsort
SELECT ALL - ( - + 31 ) AS col2
----
31

query II rowsort
SELECT DISTINCT - 51 col1, ( + 26 ) * - 86 - 35
----
-51
-2271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4273
SELECT MIN( ALL + ( + CAST( NULL AS SIGNED ) ) ) * - NULLIF ( + 32, - 86 ) - NULLIF ( + 71, - + COUNT( * ) ) - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-4273
SELECT MIN ( ALL + ( + CAST ( NULL AS INTEGER ) ) ) * - NULLIF ( + 32, - 86 ) - NULLIF ( + 71, - + COUNT ( * ) ) - 41
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4275
SELECT ALL 86 DIV - 53 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL 86 / - 53 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4276
SELECT 9 DIV + - 20 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4276
SELECT 9 / + - 20 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT ALL 98 + + 10 + ( + + COUNT( * ) )
----
109

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL 98 + + 10 + ( + + COUNT ( * ) )
----
109

query I rowsort
SELECT 15 * 8 AS col1
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4279
SELECT ALL + CAST( NULL AS SIGNED ) + - - ( 60 ) + 15 / + 8 * - - 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL + CAST ( NULL AS INTEGER ) + - - ( 60 ) + 15 / + 8 * - - 73 AS col1
----
NULL

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

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

query I rowsort
SELECT 28 * 65
----
1820

query I rowsort
SELECT 99 + + 44 * - + 68 + - 53 AS col0
----
-2946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4283
SELECT 34 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT 34 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( + 18 ) + - ( - ( - - 85 ) )
----
103

query II rowsort
SELECT 17 AS col1, 62
----
17
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4286
SELECT DISTINCT + COALESCE ( - CAST( - 83 AS SIGNED ), - + 31 ) * 85
----
7055

skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT + COALESCE ( - CAST ( - 83 AS INTEGER ), - + 31 ) * 85
----
7055

query I rowsort
SELECT + 26 + + ( - 8 ) AS col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4288
SELECT - 92 AS col1, NULLIF ( - 69, - - 90 ) + + + CAST( NULL AS SIGNED ) AS col2
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-4288
SELECT - 92 AS col1, NULLIF ( - 69, - - 90 ) + + + CAST ( NULL AS INTEGER ) AS col2
----
-92
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4289
SELECT ALL - 39, + 7 + - COUNT( * ) AS col1
----
-39
6

skipif mysql # not compatible
query II rowsort label-4289
SELECT ALL - 39, + 7 + - COUNT ( * ) AS col1
----
-39
6

query I rowsort
SELECT - 57 + - - 2 AS col0
----
-55

query I rowsort
SELECT - 70 + - + 42 * - - COALESCE ( + + 94, 35 )
----
-4018

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4292
SELECT - 9 DIV - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-4292
SELECT - 9 / - COUNT ( * )
----
9

query I rowsort
SELECT ALL - + 42 * - 6 + 86 AS col0
----
338

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT - MAX( + 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-4294
SELECT - MAX ( + 90 ) AS col1
----
-90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4295
SELECT DISTINCT - CAST( 70 AS SIGNED ) DIV + 98
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL - + ( - COUNT( * ) ) * + + 27
----
27

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL - + ( - COUNT ( * ) ) * + + 27
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4297
SELECT - + CASE + COUNT( * ) WHEN + 91 THEN + - 47 + ( - CASE + 91 WHEN 7 THEN + 11 END ) + - + COUNT( * ) + + 5 + + 63 * - + 45 * + 52 * + COUNT( * ) / + 39 * - CAST( + - CASE + 64 WHEN - 41 * + - COUNT( * ) + 97 THEN COUNT( * ) / + 3 ELSE - 41 * + 50 * 72 * MIN( ALL 88 ) END AS SIGNED ) / - CASE 69 WHEN - 68 THEN NULL ELSE + - 31 * - 18 END * 94 WHEN + SUM( + 60 ) * 50 THEN + 41 END / + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT - + CASE + COUNT ( * ) WHEN + 91 THEN + - 47 + ( - CASE + 91 WHEN 7 THEN + 11 END ) + - + COUNT ( * ) + + 5 + + 63 * - + 45 * + 52 * + COUNT ( * ) / + 39 * - CAST ( + - CASE + 64 WHEN - 41 * + - COUNT ( * ) + 97 THEN COUNT ( * ) / + 3 ELSE - 41 * + 50 * 72 * MIN ( ALL 88 ) END AS INTEGER ) / - CASE 69 WHEN - 68 THEN NULL ELSE + - 31 * - 18 END * 94 WHEN + SUM ( + 60 ) * 50 THEN + 41 END / + 19 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4298
SELECT ALL 50 * + + 63 + + COUNT( * ) AS col1, - 52 - + - 25
----
3151
-27

skipif mysql # not compatible
query II rowsort label-4298
SELECT ALL 50 * + + 63 + + COUNT ( * ) AS col1, - 52 - + - 25
----
3151
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT ALL + CAST( 98 AS SIGNED ) col2
----
98

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL + CAST ( 98 AS INTEGER ) col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4300
SELECT + 16, COUNT( * ) + CAST( NULL AS SIGNED ) / 91 AS col2
----
16
NULL

skipif mysql # not compatible
query II rowsort label-4300
SELECT + 16, COUNT ( * ) + CAST ( NULL AS INTEGER ) / 91 AS col2
----
16
NULL

query I rowsort
SELECT ALL + 98 * 54 + - 73 * COALESCE ( - 29, + + 94 * + 4 * + 75 * 42 - 44 ) + - 64
----
7345

query II rowsort
SELECT + + 90 AS col1, 56 AS col1
----
90
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4303
SELECT 4 * + - CAST( CASE + 83 WHEN - 64 THEN - + 35 * 20 * - - 25 + 6 ELSE + COALESCE ( + - COUNT( * ), + - 27 ) END AS SIGNED ) * - - 98 + + ( + COUNT( * ) ) + + - 54 + + + COALESCE ( - 28, + 39, - 92 * + 75 ) * 57 AS col2
----
-1257

skipif mysql # not compatible
query I rowsort label-4303
SELECT 4 * + - CAST ( CASE + 83 WHEN - 64 THEN - + 35 * 20 * - - 25 + 6 ELSE + COALESCE ( + - COUNT ( * ), + - 27 ) END AS INTEGER ) * - - 98 + + ( + COUNT ( * ) ) + + - 54 + + + COALESCE ( - 28, + 39, - 92 * + 75 ) * 57 AS col2
----
-1257

query II rowsort
SELECT ALL + - 56, + 34 * - - 13 AS col1
----
-56
442

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT + SUM( + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-4305
SELECT + SUM ( + 67 )
----
67

query I rowsort
SELECT ALL - 12 * + 65 * ( - + 91 ) * + - 43 + + NULLIF ( - - 26, - - 95 ) - + - ( + 49 ) + 24 + - 47 * + - 35 AS col2
----
-3050396

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT + NULLIF ( - COUNT( * ), - 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-4307
SELECT + NULLIF ( - COUNT ( * ), - 10 )
----
-1

query I rowsort
SELECT DISTINCT - 96 * 98 + - 87 AS col0
----
-9495

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT ALL 5 * - CASE + 51 WHEN + COALESCE ( + + SUM( - - ( 52 ) ), + 85 ) THEN + - 13 + - + CASE + 45 WHEN - + ( + 55 ) THEN 41 ELSE COUNT( * ) END * + 24 WHEN + 76 THEN NULL END / + MIN( ALL + - 63 ) + - 5 + - - COUNT( * ) * - + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL 5 * - CASE + 51 WHEN + COALESCE ( + + SUM ( - - ( 52 ) ), + 85 ) THEN + - 13 + - + CASE + 45 WHEN - + ( + 55 ) THEN 41 ELSE COUNT ( * ) END * + 24 WHEN + 76 THEN NULL END / + MIN ( ALL + - 63 ) + - 5 + - - COUNT ( * ) * - + 83 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT DISTINCT MIN( ALL 21 ) * + + 56 * 72 + - 72 + + 48 AS col1
----
84648

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT MIN ( ALL 21 ) * + + 56 * 72 + - 72 + + 48 AS col1
----
84648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT ALL + 96 * 3 + + CAST( + - 75 AS SIGNED ) AS col2
----
213

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + 96 * 3 + + CAST ( + - 75 AS INTEGER ) AS col2
----
213

query I rowsort
SELECT + 62 + - 56 AS col2
----
6

query I rowsort
SELECT ALL 27 * 75 * 53
----
107325

query I rowsort
SELECT + 50 * + - CASE - 6 WHEN 76 * + + 55 - + 57 * 65 THEN NULL ELSE 0 END AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT + 56 * CASE - COUNT( * ) WHEN + - 85 THEN NULL ELSE + 56 END
----
3136

skipif mysql # not compatible
query I rowsort label-4315
SELECT + 56 * CASE - COUNT ( * ) WHEN + - 85 THEN NULL ELSE + 56 END
----
3136

onlyif mysql # aggregate syntax: 
query II rowsort label-4316
SELECT COUNT( + + 69 ) AS col1, - 80 * - MIN( - + 47 ) * - + 4 + 16
----
1
15056

skipif mysql # not compatible
query II rowsort label-4316
SELECT COUNT ( + + 69 ) AS col1, - 80 * - MIN ( - + 47 ) * - + 4 + 16
----
1
15056

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4317
SELECT + COALESCE ( + 20, + - 5 + 1 - - COALESCE ( - + 95, - - CAST( - 78 AS SIGNED ), + - 53 ) DIV + 6 ) + ( - + 81 ) AS col0, 78 AS col0
----
-61
78

skipif mysql # not compatible
query II rowsort label-4317
SELECT + COALESCE ( + 20, + - 5 + 1 - - COALESCE ( - + 95, - - CAST ( - 78 AS INTEGER ), + - 53 ) / + 6 ) + ( - + 81 ) AS col0, 78 AS col0
----
-61
78

query I rowsort
SELECT ALL - ( 16 ) * + 29
----
-464

query I rowsort
SELECT - NULLIF ( + - 51, - + 25 ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT COUNT( + ( + 31 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4320
SELECT COUNT ( + ( + 31 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT + 55 * SUM( + 69 )
----
3795

skipif mysql # not compatible
query I rowsort label-4321
SELECT + 55 * SUM ( + 69 )
----
3795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4322
SELECT DISTINCT CAST( ( - 49 ) AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT CAST ( ( - 49 ) AS INTEGER )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT + + COUNT( * ) * - - 9
----
9

skipif mysql # not compatible
query I rowsort label-4323
SELECT + + COUNT ( * ) * - - 9
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4324
SELECT + 85 * - - 86 + 83 DIV 66 + - 45
----
7266

skipif mysql # not compatible
query I rowsort label-4324
SELECT + 85 * - - 86 + 83 / 66 + - 45
----
7266

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT - SUM( + + ( - - 63 ) ) * + 21 AS col2
----
-1323

skipif mysql # not compatible
query I rowsort label-4325
SELECT - SUM ( + + ( - - 63 ) ) * + 21 AS col2
----
-1323

query I rowsort
SELECT ALL + 71 * 54
----
3834

query I rowsort
SELECT ALL - 96 * - 91 AS col1
----
8736

query I rowsort
SELECT + - 91 - + 63
----
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4329
SELECT ALL - + COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL - + COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 16 * - + 7
----
-112

query I rowsort
SELECT ALL 4 + 10
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4332
SELECT ALL - + 14 + - - 6 DIV 67 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL - + 14 + - - 6 / 67 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4333
SELECT ALL + 55 + CAST( + - 42 AS SIGNED ) + - 60 * - + 56 * COUNT( * ) AS col2
----
3373

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL + 55 + CAST ( + - 42 AS INTEGER ) + - 60 * - + 56 * COUNT ( * ) AS col2
----
3373

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4334
SELECT + 64 DIV 3 * + + 74 * ( - 89 ) + + COUNT( * ) * - 42 AS col1
----
-138348

skipif mysql # not compatible
query I rowsort label-4334
SELECT + 64 / 3 * + + 74 * ( - 89 ) + + COUNT ( * ) * - 42 AS col1
----
-138348

onlyif mysql # DIV for integer division: 
query I rowsort label-4335
SELECT - - 58 DIV + ( - 28 )
----
-2

skipif mysql # not compatible
query I rowsort label-4335
SELECT - - 58 / + ( - 28 )
----
-2

query I rowsort
SELECT ALL - 51 / + + 57 - - CASE 78 WHEN - 11 * + 85 + - 26 - - 29 + + 44 THEN - 22 ELSE NULL END + - 21 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4337
SELECT + 64 * + ( + CAST( + 95 AS SIGNED ) ) * 65 + + 70
----
395270

skipif mysql # not compatible
query I rowsort label-4337
SELECT + 64 * + ( + CAST ( + 95 AS INTEGER ) ) * 65 + + 70
----
395270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4338
SELECT ALL 26 DIV 24 + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL 26 / 24 + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT DISTINCT + SUM( ALL + 31 ) * 74 + + 10 AS col2
----
2304

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT + SUM ( ALL + 31 ) * 74 + + 10 AS col2
----
2304

onlyif mysql # DIV for integer division: 
query I rowsort label-4340
SELECT ALL - 2 DIV 53 + 52 + - 8 * 38
----
-252

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL - 2 / 53 + 52 + - 8 * 38
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT - 69 * COUNT( ALL + - 21 )
----
-69

skipif mysql # not compatible
query I rowsort label-4341
SELECT - 69 * COUNT ( ALL + - 21 )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4342
SELECT - 87 DIV COUNT( * ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-4342
SELECT - 87 / COUNT ( * ) AS col1
----
-87

query II rowsort
SELECT ALL + 63 AS col2, 66 * 39 * + - 95 AS col1
----
63
-244530

query I rowsort
SELECT ( - 10 ) col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT ( - - MAX( DISTINCT - 56 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-4345
SELECT ( - - MAX ( DISTINCT - 56 ) )
----
-56

query I rowsort
SELECT ALL - ( + + 78 ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT DISTINCT - MAX( - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT - MAX ( - 41 )
----
41

query I rowsort
SELECT ALL 73 * - + 11 col1
----
-803

query I rowsort
SELECT ALL 91 * - - ( + 90 ) AS col1
----
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT ALL - MIN( 87 ) * - 58 + - 68 col1
----
4978

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL - MIN ( 87 ) * - 58 + - 68 col1
----
4978

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4351
SELECT 33 + + CAST( - 8 AS SIGNED ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4351
SELECT 33 + + CAST ( - 8 AS INTEGER ) AS col2
----
25

query II rowsort
SELECT ALL 33 AS col2, 60 * - 72 * 77
----
33
-332640

onlyif mysql # DIV for integer division: 
query I rowsort label-4353
SELECT + 78 + - 42 DIV + + 15
----
76

skipif mysql # not compatible
query I rowsort label-4353
SELECT + 78 + - 42 / + + 15
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL - 50 + - + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL - 50 + - + COUNT ( * )
----
-51

query I rowsort
SELECT 4 + 68 AS col0
----
72

query I rowsort
SELECT DISTINCT 49 + + 73 col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT NULLIF ( - + 36, - ( - COUNT( * ) ) ) + + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-4357
SELECT NULLIF ( - + 36, - ( - COUNT ( * ) ) ) + + COUNT ( * )
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4358
SELECT + 85 DIV ( - - MAX( ALL + + 67 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4358
SELECT + 85 / ( - - MAX ( ALL + + 67 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT 73 + - COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4359
SELECT 73 + - COUNT ( * ) AS col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4360
SELECT DISTINCT COUNT( * ) + + 43 - 91 DIV - 55
----
45

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT COUNT ( * ) + + 43 - 91 / - 55
----
45

query I rowsort
SELECT ALL + 24 + 97 + + 80 AS col2
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT 37 + - MAX( - 18 ) + 15 + 36 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-4362
SELECT 37 + - MAX ( - 18 ) + 15 + 36 AS col1
----
106

query I rowsort
SELECT 52 * + 25 AS col0
----
1300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4364
SELECT - - 25 / + + 68 / + ( + CASE ( + - 3 ) WHEN + - CAST( ( COUNT( ALL + + 5 ) ) AS SIGNED ) THEN + 87 * + - 90 * COALESCE ( - COALESCE ( + - 69, + 90 ), - 33 ) * - + 25 WHEN + ( + 68 ) + + - 82 THEN + 77 * 81 * - COUNT( * ) * - 38 + - + 88 END ) + MIN( ALL + + 97 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT - - 25 / + + 68 / + ( + CASE ( + - 3 ) WHEN + - CAST ( ( COUNT ( ALL + + 5 ) ) AS INTEGER ) THEN + 87 * + - 90 * COALESCE ( - COALESCE ( + - 69, + 90 ), - 33 ) * - + 25 WHEN + ( + 68 ) + + - 82 THEN + 77 * 81 * - COUNT ( * ) * - 38 + - + 88 END ) + MIN ( ALL + + 97 ) AS col2
----
NULL

query I rowsort
SELECT ALL 4 - 49 col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4366
SELECT ALL + 4 - NULLIF ( + 45, - 86 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL + 4 - NULLIF ( + 45, - 86 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4367
SELECT ALL - 83 AS col2, + COUNT( * ) + - - 75
----
-83
76

skipif mysql # not compatible
query II rowsort label-4367
SELECT ALL - 83 AS col2, + COUNT ( * ) + - - 75
----
-83
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT 25 + - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4368
SELECT 25 + - COUNT ( * )
----
24

query II rowsort
SELECT 28 * - 88 AS col0, - 60 AS col1
----
-2464
-60

query II rowsort
SELECT 77 col2, - 26 * - - 16 AS col0
----
77
-416

query I rowsort
SELECT - 97 * + + 96 + + 23 AS col2
----
-9289

onlyif mysql # DIV for integer division: 
query I rowsort label-4372
SELECT 77 DIV 70 + - - 46
----
47

skipif mysql # not compatible
query I rowsort label-4372
SELECT 77 / 70 + - - 46
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4373
SELECT 15 + 15 + - COALESCE ( + + 1, - - NULLIF ( 53, - 37 DIV - 81 ), 90 * + 48 DIV 95 ) * - 12 - COUNT( * ) * + 63 * - NULLIF ( + 36, + - 22 )
----
2310

skipif mysql # not compatible
query I rowsort label-4373
SELECT 15 + 15 + - COALESCE ( + + 1, - - NULLIF ( 53, - 37 / - 81 ), 90 * + 48 / 95 ) * - 12 - COUNT ( * ) * + 63 * - NULLIF ( + 36, + - 22 )
----
2310

query I rowsort
SELECT 53 * 16 AS col2
----
848

query I rowsort
SELECT - 34 * - 68 + - 5 AS col0
----
2307

query I rowsort
SELECT 60 - 76 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT DISTINCT + MIN( + 22 ) * 81 AS col1
----
1782

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT + MIN ( + 22 ) * 81 AS col1
----
1782

query II rowsort
SELECT ALL - 98 AS col0, CASE - COALESCE ( - 75, 62, - - 87 / + - 83 + + 74 ) WHEN + 97 THEN + - 36 ELSE NULL END
----
-98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT 78 * COUNT( * ) + 70
----
148

skipif mysql # not compatible
query I rowsort label-4379
SELECT 78 * COUNT ( * ) + 70
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT 43 * - - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-4380
SELECT 43 * - - COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT 50 + - 99 + - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-4381
SELECT 50 + - 99 + - COUNT ( * )
----
-50

query II rowsort
SELECT 59 + + 7, 14 AS col1
----
66
14

query I rowsort
SELECT 33 * 58
----
1914

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4384
SELECT + MAX( CAST( NULL AS DECIMAL ) ) * - + COUNT( * ) * 96 * - + SUM( - 89 ) + + COUNT( * ) + + ( - COUNT( * ) ) AS col0, - 29
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-4384
SELECT + MAX ( CAST ( NULL AS REAL ) ) * - + COUNT ( * ) * 96 * - + SUM ( - 89 ) + + COUNT ( * ) + + ( - COUNT ( * ) ) AS col0, - 29
----
NULL
-29

query I rowsort
SELECT 43 * + 47 * + 21 AS col1
----
42441

query I rowsort
SELECT ALL - 79 + + 83
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4387
SELECT DISTINCT COUNT( * ) AS col0, 84 * 38 AS col2
----
1
3192

skipif mysql # not compatible
query II rowsort label-4387
SELECT DISTINCT COUNT ( * ) AS col0, 84 * 38 AS col2
----
1
3192

query I rowsort
SELECT - 76 * 2 + + 37
----
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4389
SELECT ALL - - 35 DIV + + MIN( DISTINCT - 70 ) * ( + - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL - - 35 / + + MIN ( DISTINCT - 70 ) * ( + - COUNT ( * ) )
----
0

query II rowsort
SELECT ALL + - 72 + + 34 AS col0, - 4 AS col1
----
-38
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4391
SELECT 73 * + + CAST( NULL AS SIGNED ) + - 9 + + NULLIF ( 80, 75 * - 87 + 20 ) * - CASE - 2 WHEN - - 75 THEN + - 57 WHEN - 46 THEN - MAX( DISTINCT + 29 ) END * - 36 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT 73 * + + CAST ( NULL AS INTEGER ) + - 9 + + NULLIF ( 80, 75 * - 87 + 20 ) * - CASE - 2 WHEN - - 75 THEN + - 57 WHEN - 46 THEN - MAX ( DISTINCT + 29 ) END * - 36 col2
----
NULL

query II rowsort
SELECT - 34, + 67 + - COALESCE ( - ( - - 49 ), + - 79 + - + 35 ) AS col1
----
-34
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4393
SELECT DISTINCT NULLIF ( 21, - 45 * - 74 * 20 - + 30 * COUNT( * ) * + 13 ) + + 5 - + 17 - 6 DIV 86
----
9

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT NULLIF ( 21, - 45 * - 74 * 20 - + 30 * COUNT ( * ) * + 13 ) + + 5 - + 17 - 6 / 86
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT + MIN( + 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4394
SELECT + MIN ( + 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4395
SELECT ALL + 19 + + 81 DIV - MIN( ALL 40 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL + 19 + + 81 / - MIN ( ALL 40 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT ALL - + 68 + + - 57 + + - COUNT( * )
----
-126

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL - + 68 + + - 57 + + - COUNT ( * )
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT - MIN( DISTINCT + - 73 ) * + - 6 AS col0
----
-438

skipif mysql # not compatible
query I rowsort label-4397
SELECT - MIN ( DISTINCT + - 73 ) * + - 6 AS col0
----
-438

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4398
SELECT ALL 22 + + CAST( NULL AS SIGNED ) * - COALESCE ( 23, + + 52 ) * + 95 + - ( + 88 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL 22 + + CAST ( NULL AS INTEGER ) * - COALESCE ( 23, + + 52 ) * + 95 + - ( + 88 ) AS col1
----
NULL

query I rowsort
SELECT 21 - - + 49 AS col0
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4400
SELECT ALL 30, - COUNT( * ) AS col1
----
30
-1

skipif mysql # not compatible
query II rowsort label-4400
SELECT ALL 30, - COUNT ( * ) AS col1
----
30
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4401
SELECT ALL + - CAST( 85 AS SIGNED ) - + 18
----
-103

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL + - CAST ( 85 AS INTEGER ) - + 18
----
-103

query II rowsort
SELECT DISTINCT 86, + 44 col0
----
86
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4403
SELECT DISTINCT 67 DIV + + COUNT( * ) + + 38 - + + ( 87 )
----
18

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT 67 / + + COUNT ( * ) + + 38 - + + ( 87 )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4404
SELECT ( + 79 ) AS col1, + COUNT( * ) + + 87
----
79
88

skipif mysql # not compatible
query II rowsort label-4404
SELECT ( + 79 ) AS col1, + COUNT ( * ) + + 87
----
79
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4405
SELECT - 58 * ( 50 ) DIV + MIN( ALL + 91 )
----
-31

skipif mysql # not compatible
query I rowsort label-4405
SELECT - 58 * ( 50 ) / + MIN ( ALL + 91 )
----
-31

query I rowsort
SELECT ALL 4 * - 69 * + - 57 AS col1
----
15732

onlyif mysql # DIV for integer division: 
query I rowsort label-4407
SELECT + 10 DIV - 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4407
SELECT + 10 / - 84 AS col0
----
0

query I rowsort
SELECT + 16 * - + ( 67 ) * - 92 AS col2
----
98624

onlyif mysql # DIV for integer division: 
query I rowsort label-4409
SELECT ALL ( + 13 ) * 71 DIV - 35
----
-26

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL ( + 13 ) * 71 / - 35
----
-26

query I rowsort
SELECT CASE - 38 WHEN 85 THEN - 57 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT ALL ( - 82 ) * + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL ( - 82 ) * + COUNT ( * )
----
-82

query I rowsort
SELECT DISTINCT - 27 * - - 69 + - 27
----
-1890

onlyif mysql # aggregate syntax: 
query II rowsort label-4413
SELECT 83 * 37 + 28 * + 40 + COUNT( * ) AS col2, + 39 col0
----
4192
39

skipif mysql # not compatible
query II rowsort label-4413
SELECT 83 * 37 + 28 * + 40 + COUNT ( * ) AS col2, + 39 col0
----
4192
39

query I rowsort
SELECT - ( 86 ) * - + 9 * + 97
----
75078

query II rowsort
SELECT - 54 * - 36 - - 16 + + 94 * + 73 AS col0, 23 AS col0
----
8822
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4416
SELECT MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4416
SELECT MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT ALL 47 * + ( - 78 ) + - COUNT( * )
----
-3667

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL 47 * + ( - 78 ) + - COUNT ( * )
----
-3667

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT + 14 + 82 + + - COUNT( * ) + + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-4418
SELECT + 14 + 82 + + - COUNT ( * ) + + COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL - 17 * - COUNT( * ) + - 55 * - + 56 AS col1
----
3097

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL - 17 * - COUNT ( * ) + - 55 * - + 56 AS col1
----
3097

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL 8 * + + ( - 57 ) * + 59 * + 65 + + + MIN( DISTINCT 52 ) + - COUNT( * ) - - - 51 AS col1
----
-1748760

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL 8 * + + ( - 57 ) * + 59 * + 65 + + + MIN ( DISTINCT 52 ) + - COUNT ( * ) - - - 51 AS col1
----
-1748760

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT DISTINCT 52 * + 86 + - + CASE - 81 WHEN - 60 THEN NULL WHEN 81 THEN + - COUNT( * ) + 93 * 19 WHEN + - 95 THEN + + 22 + 23 * - 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4421
SELECT DISTINCT 52 * + 86 + - + CASE - 81 WHEN - 60 THEN NULL WHEN 81 THEN + - COUNT ( * ) + 93 * 19 WHEN + - 95 THEN + + 22 + 23 * - 42 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4422
SELECT ALL + 17 + + + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL + 17 + + + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4423
SELECT - CASE - COUNT( * ) WHEN 25 / + AVG ( DISTINCT - 63 ) THEN NULL ELSE + 9 * - COUNT( * ) END AS col1, 69 + MIN( ALL + 0 )
----
9
69

skipif mysql # not compatible
query II rowsort label-4423
SELECT - CASE - COUNT ( * ) WHEN 25 / + AVG ( DISTINCT - 63 ) THEN NULL ELSE + 9 * - COUNT ( * ) END AS col1, 69 + MIN ( ALL + 0 )
----
9
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT DISTINCT + + ( + - 47 ) + + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT + + ( + - 47 ) + + COUNT ( * )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4425
SELECT - 23 + 62 + - CASE + - 51 WHEN - + CAST( + ( + + 65 ) AS SIGNED ) THEN NULL WHEN + 8 * + 74 THEN + 11 END * + 4 * + + ( - 45 ) + - 15 + ( + SUM( + - 44 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT - 23 + 62 + - CASE + - 51 WHEN - + CAST ( + ( + + 65 ) AS INTEGER ) THEN NULL WHEN + 8 * + 74 THEN + 11 END * + 4 * + + ( - 45 ) + - 15 + ( + SUM ( + - 44 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT SUM( - - 40 )
----
40

skipif mysql # not compatible
query I rowsort label-4426
SELECT SUM ( - - 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT - COALESCE ( - - 40, NULLIF ( COUNT( * ), - 57 ) ) + - - COALESCE ( - COALESCE ( + 70, - 53, + 74 + + 50 ), + - 24 * COUNT( * ) )
----
-110

skipif mysql # not compatible
query I rowsort label-4427
SELECT - COALESCE ( - - 40, NULLIF ( COUNT ( * ), - 57 ) ) + - - COALESCE ( - COALESCE ( + 70, - 53, + 74 + + 50 ), + - 24 * COUNT ( * ) )
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT - - MAX( DISTINCT - 90 ) + - - 42 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4428
SELECT - - MAX ( DISTINCT - 90 ) + - - 42 AS col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4429
SELECT ALL - 65 DIV + 99 col2, 6 * - + 74 * - + COUNT( - 95 ) AS col2
----
0
444

skipif mysql # not compatible
query II rowsort label-4429
SELECT ALL - 65 / + 99 col2, 6 * - + 74 * - + COUNT ( - 95 ) AS col2
----
0
444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4430
SELECT - CAST( 39 AS SIGNED ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4430
SELECT - CAST ( 39 AS INTEGER ) AS col1
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4431
SELECT - - 27 + + + 59 * + - COUNT( * ) DIV - + 71 + 38 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4431
SELECT - - 27 + + + 59 * + - COUNT ( * ) / - + 71 + 38 AS col1
----
65

query I rowsort
SELECT ALL - 16 * - 60
----
960

query I rowsort
SELECT - + 52 + - 3 * 7
----
-73

query II rowsort
SELECT - 26 * 34 AS col2, + 64 * + 33 - 82 + - ( + 30 ) * 92 * - 61 AS col0
----
-884
170390

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4435
SELECT ALL 65 * - CAST( + 43 AS SIGNED ), 13 AS col2
----
-2795
13

skipif mysql # not compatible
query II rowsort label-4435
SELECT ALL 65 * - CAST ( + 43 AS INTEGER ), 13 AS col2
----
-2795
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT - + MIN( - + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-4436
SELECT - + MIN ( - + 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT + COUNT( * ) + - 54 + + CASE - AVG ( ALL - 70 ) WHEN - + ( + - 13 ) * + + 57 * 72 THEN NULL ELSE 26 * - 14 * 19 + 6 * - - 73 END
----
-6531

skipif mysql # not compatible
query I rowsort label-4437
SELECT + COUNT ( * ) + - 54 + + CASE - AVG ( ALL - 70 ) WHEN - + ( + - 13 ) * + + 57 * 72 THEN NULL ELSE 26 * - 14 * 19 + 6 * - - 73 END
----
-6531

query I rowsort
SELECT ALL + 86 * - 36
----
-3096

query I rowsort
SELECT + 40 * - 27 AS col0
----
-1080

query I rowsort
SELECT + 99 + ( - 24 ) + 95 AS col0
----
170

query I rowsort
SELECT - 4 + - + 69 AS col1
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4442
SELECT ALL 51 DIV 67 * COUNT( * ), 80 AS col1
----
0
80

skipif mysql # not compatible
query II rowsort label-4442
SELECT ALL 51 / 67 * COUNT ( * ), 80 AS col1
----
0
80

query II rowsort
SELECT + COALESCE ( + - 40, + 14 ) AS col2, NULLIF ( - 76, + 3 / 79 )
----
-40
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4444
SELECT ALL 32 / + - 76 * + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL 32 / + - 76 * + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( + ( 19 ) )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4446
SELECT ALL 15 DIV 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL 15 / 75 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4447
SELECT DISTINCT COALESCE ( COUNT( * ), - + COALESCE ( - AVG ( ALL + 36 ), + - 26 + + ( - 5 ) ) ) DIV + - NULLIF ( 92, 88 * - COUNT( * ) + + AVG ( DISTINCT - 93 ) ) + ( 47 ) + + 96 AS col2
----
143

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT COALESCE ( COUNT ( * ), - + COALESCE ( - AVG ( ALL + 36 ), + - 26 + + ( - 5 ) ) ) / + - NULLIF ( 92, 88 * - COUNT ( * ) + + AVG ( DISTINCT - 93 ) ) + ( 47 ) + + 96 AS col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT ( - + MAX( ALL - - 40 ) ) col2
----
-40

skipif mysql # not compatible
query I rowsort label-4448
SELECT ( - + MAX ( ALL - - 40 ) ) col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT + 87 * + COUNT( * ) * + - 48 + + + 43 AS col0
----
-4133

skipif mysql # not compatible
query I rowsort label-4449
SELECT + 87 * + COUNT ( * ) * + - 48 + + + 43 AS col0
----
-4133

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4450
SELECT ALL - CAST( NULL AS DECIMAL ) * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL - CAST ( NULL AS REAL ) * + 99
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4451
SELECT + CAST( + 73 AS SIGNED ) + + + 99 AS col1
----
172

skipif mysql # not compatible
query I rowsort label-4451
SELECT + CAST ( + 73 AS INTEGER ) + + + 99 AS col1
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT DISTINCT + COUNT( DISTINCT - 89 )
----
1

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT + COUNT ( DISTINCT - 89 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4453
SELECT - CAST( - 74 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-4453
SELECT - CAST ( - 74 AS INTEGER )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-4454
SELECT ALL - 36 * - SUM( - 77 ) - - + 93 + - + COUNT( * ) - - 45 + - 61 * + ( + - 18 ) AS col0, 29
----
-1537
29

skipif mysql # not compatible
query II rowsort label-4454
SELECT ALL - 36 * - SUM ( - 77 ) - - + 93 + - + COUNT ( * ) - - 45 + - 61 * + ( + - 18 ) AS col0, 29
----
-1537
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT - COALESCE ( + 71, + COUNT( * ) + 76 )
----
-71

skipif mysql # not compatible
query I rowsort label-4455
SELECT - COALESCE ( + 71, + COUNT ( * ) + 76 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL 96 * + 79 + - COUNT( * ) - + 39 - 22
----
7522

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL 96 * + 79 + - COUNT ( * ) - + 39 - 22
----
7522

query I rowsort
SELECT - + ( + 30 ) AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4458
SELECT - + 35 AS col1, - CASE 91 WHEN - - 94 * CAST( NULL AS SIGNED ) THEN + 1 + - 26 + CASE - + 7 WHEN + - 80 THEN NULL WHEN + 69 / 51 + 54 * 53 + - 40 THEN 23 ELSE + 16 END ELSE NULL END
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-4458
SELECT - + 35 AS col1, - CASE 91 WHEN - - 94 * CAST ( NULL AS INTEGER ) THEN + 1 + - 26 + CASE - + 7 WHEN + - 80 THEN NULL WHEN + 69 / 51 + 54 * 53 + - 40 THEN 23 ELSE + 16 END ELSE NULL END
----
-35
NULL

query II rowsort
SELECT DISTINCT 15 AS col2, 91
----
15
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4460
SELECT ALL SUM( + 9 ) * + - 40, 45 AS col1
----
-360
45

skipif mysql # not compatible
query II rowsort label-4460
SELECT ALL SUM ( + 9 ) * + - 40, 45 AS col1
----
-360
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4461
SELECT - COALESCE ( 15, + 3 * + - 23 + - ( 96 ) * 4 ) DIV + 59 - - + 87 col0
----
87

skipif mysql # not compatible
query I rowsort label-4461
SELECT - COALESCE ( 15, + 3 * + - 23 + - ( 96 ) * 4 ) / + 59 - - + 87 col0
----
87

query I rowsort
SELECT DISTINCT - CASE 98 WHEN + - 48 THEN + 51 WHEN 7 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 30 + - 63 + 41 AS col0
----
8

query I rowsort
SELECT CASE - 76 WHEN - 31 * - 72 THEN + 25 WHEN + - 66 THEN - ( + 1 ) END / + - 41 col1
----
NULL

query I rowsort
SELECT + 46 * - NULLIF ( + - ( + 96 ), 69 ) AS col0
----
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT DISTINCT CASE 77 WHEN 21 THEN - 28 * - 42 * COUNT( * ) * - 82 - 67 WHEN + - 86 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT CASE 77 WHEN 21 THEN - 28 * - 42 * COUNT ( * ) * - 82 - 67 WHEN + - 86 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4467
SELECT ALL + CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL + CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4468
SELECT 28 - - 50 DIV + + NULLIF ( 72, + 18 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4468
SELECT 28 - - 50 / + + NULLIF ( 72, + 18 ) AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4469
SELECT 34 DIV 32
----
1

skipif mysql # not compatible
query I rowsort label-4469
SELECT 34 / 32
----
1

query I rowsort
SELECT 37 + - - 80
----
117

query I rowsort
SELECT 44 * - - 51
----
2244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4472
SELECT ALL - ( - + 38 ) + + - CAST( + COUNT( DISTINCT + 75 ) AS SIGNED ) * + 81 * + 51 AS col1
----
-4093

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL - ( - + 38 ) + + - CAST ( + COUNT ( DISTINCT + 75 ) AS INTEGER ) * + 81 * + 51 AS col1
----
-4093

onlyif mysql # aggregate syntax: 
query II rowsort label-4473
SELECT ALL + COUNT( * ) + - 34 + + ( - 15 ) col2, + COUNT( * )
----
-48
1

skipif mysql # not compatible
query II rowsort label-4473
SELECT ALL + COUNT ( * ) + - 34 + + ( - 15 ) col2, + COUNT ( * )
----
-48
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4474
SELECT DISTINCT - 37 * - CASE + + 59 WHEN - 2 - + COUNT( CAST( NULL AS SIGNED ) ) THEN NULL WHEN 16 THEN NULL WHEN + + 42 * - CASE + 97 WHEN + 19 THEN 41 WHEN - + 63 THEN + - CAST( NULL AS SIGNED ) END * + 17 THEN + + 42 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT - 37 * - CASE + + 59 WHEN - 2 - + COUNT ( CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 16 THEN NULL WHEN + + 42 * - CASE + 97 WHEN + 19 THEN 41 WHEN - + 63 THEN + - CAST ( NULL AS INTEGER ) END * + 17 THEN + + 42 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 68 + + 22 * 85 AS col0
----
1938

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT 27 + COUNT( 35 ) + - + 94
----
-66

skipif mysql # not compatible
query I rowsort label-4476
SELECT 27 + COUNT ( 35 ) + - + 94
----
-66

query I rowsort
SELECT 63 - - 73 AS col1
----
136

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4478
SELECT + 46 DIV 58 - - + CAST( + + 53 AS SIGNED ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4478
SELECT + 46 / 58 - - + CAST ( + + 53 AS INTEGER ) AS col0
----
53

query I rowsort
SELECT DISTINCT - 38 * - 83 AS col2
----
3154

query I rowsort
SELECT 59 * 10 AS col2
----
590

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT ALL - ( - - MIN( ALL - 18 ) ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL - ( - - MIN ( ALL - 18 ) ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4482
SELECT DISTINCT - 38 * + - 97 col2, - ( + COUNT( * ) )
----
3686
-1

skipif mysql # not compatible
query II rowsort label-4482
SELECT DISTINCT - 38 * + - 97 col2, - ( + COUNT ( * ) )
----
3686
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT ALL COUNT( * ) + + 84 + + 86
----
171

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL COUNT ( * ) + + 84 + + 86
----
171

query I rowsort
SELECT DISTINCT + 66 - - + 6
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-4485
SELECT DISTINCT + 59 DIV 66 AS col1, - 7 + + + 56
----
0
49

skipif mysql # not compatible
query II rowsort label-4485
SELECT DISTINCT + 59 / 66 AS col1, - 7 + + + 56
----
0
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT ALL - 90 - 28 + + ( 2 ) * + - COALESCE ( 48, - CAST( NULL AS SIGNED ) ) * 92
----
-8950

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL - 90 - 28 + + ( 2 ) * + - COALESCE ( 48, - CAST ( NULL AS INTEGER ) ) * 92
----
-8950

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4487
SELECT 35 * + 37, + COALESCE ( + 72, 46, + CAST( NULL AS SIGNED ) ) AS col2
----
1295
72

skipif mysql # not compatible
query II rowsort label-4487
SELECT 35 * + 37, + COALESCE ( + 72, 46, + CAST ( NULL AS INTEGER ) ) AS col2
----
1295
72

query I rowsort
SELECT DISTINCT 70 * - + 59 - + + 12
----
-4142

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT COUNT( * ) * + 51 * 32 + + 58 * - 25
----
182

skipif mysql # not compatible
query I rowsort label-4489
SELECT COUNT ( * ) * + 51 * 32 + + 58 * - 25
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4490
SELECT MIN( DISTINCT + + 56 ) * - 93 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4490
SELECT MIN ( DISTINCT + + 56 ) * - 93 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT 27 + MIN( DISTINCT 53 ) + 54 + - 40 * + 7
----
-146

skipif mysql # not compatible
query I rowsort label-4491
SELECT 27 + MIN ( DISTINCT 53 ) + 54 + - 40 * + 7
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL COUNT( * ) - 78 * - ( 36 ) + - 83 AS col0
----
2726

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL COUNT ( * ) - 78 * - ( 36 ) + - 83 AS col0
----
2726

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT COUNT( * ) * + COUNT( + 49 ) * - 99 * 11 AS col1
----
-1089

skipif mysql # not compatible
query I rowsort label-4493
SELECT COUNT ( * ) * + COUNT ( + 49 ) * - 99 * 11 AS col1
----
-1089

onlyif mysql # aggregate syntax: 
query III rowsort label-4494
SELECT - 90 * - + 71 + - ( 9 ) * - COUNT( * ) * - - 88 + - + 41 AS col1, - 99 + + - 55 + - + 45 AS col2, - 86
----
7141
-199
-86

skipif mysql # not compatible
query III rowsort label-4494
SELECT - 90 * - + 71 + - ( 9 ) * - COUNT ( * ) * - - 88 + - + 41 AS col1, - 99 + + - 55 + - + 45 AS col2, - 86
----
7141
-199
-86

query I rowsort
SELECT 65 * - ( - 31 ) AS col2
----
2015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4496
SELECT + 38 + ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT + 38 + ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT + 77 * + 83 * 59 - ( + 98 ) + COUNT( * ) col1
----
376972

skipif mysql # not compatible
query I rowsort label-4497
SELECT + 77 * + 83 * 59 - ( + 98 ) + COUNT ( * ) col1
----
376972

query I rowsort
SELECT + 21 + + 70 * - - 98
----
6881

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4499
SELECT CAST( NULL AS DECIMAL ) + 38 - + 37 + ( + 95 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT CAST ( NULL AS REAL ) + 38 - + 37 + ( + 95 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT DISTINCT + 14 + + + 58 + - COALESCE ( + NULLIF ( + MAX( + 22 ), 68 ), + 49, - 48, - 53 * - - 67 ) * COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT + 14 + + + 58 + - COALESCE ( + NULLIF ( + MAX ( + 22 ), 68 ), + 49, - 48, - 53 * - - 67 ) * COUNT ( * )
----
50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4501
SELECT 63 + - ( - 35 ) + - 92 DIV COALESCE ( 76, 22, - CAST( NULL AS SIGNED ) ) - - 37 + - ( + 82 )
----
52

skipif mysql # not compatible
query I rowsort label-4501
SELECT 63 + - ( - 35 ) + - 92 / COALESCE ( 76, 22, - CAST ( NULL AS INTEGER ) ) - - 37 + - ( + 82 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4502
SELECT ALL ( CAST( - - COUNT( * ) AS SIGNED ) ) * - 70 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL ( CAST ( - - COUNT ( * ) AS INTEGER ) ) * - 70 AS col2
----
-70

query II rowsort
SELECT DISTINCT 15, + 41 AS col2
----
15
41

query I rowsort
SELECT 72 + + 49
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4505
SELECT 78 * - CAST( COUNT( * ) AS SIGNED ) * 85
----
-6630

skipif mysql # not compatible
query I rowsort label-4505
SELECT 78 * - CAST ( COUNT ( * ) AS INTEGER ) * 85
----
-6630

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT ALL + SUM( DISTINCT 96 ) * + 89 col0
----
8544

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL + SUM ( DISTINCT 96 ) * + 89 col0
----
8544

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT DISTINCT - COALESCE ( + MIN( ALL - 30 ), + + 56 )
----
30

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT - COALESCE ( + MIN ( ALL - 30 ), + + 56 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4508
SELECT + 95 AS col2, + ( + 77 ) DIV + COUNT( * ) + - - COUNT( * ) + + + 69
----
95
147

skipif mysql # not compatible
query II rowsort label-4508
SELECT + 95 AS col2, + ( + 77 ) / + COUNT ( * ) + - - COUNT ( * ) + + + 69
----
95
147

query I rowsort
SELECT ALL - ( + 32 ) AS col2
----
-32

query I rowsort
SELECT DISTINCT - 2 * - 12
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4511
SELECT 62 + - 72 DIV + 91
----
62

skipif mysql # not compatible
query I rowsort label-4511
SELECT 62 + - 72 / + 91
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT ALL + - COUNT( * ) * - - 28 * + MAX( ALL 62 )
----
-1736

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL + - COUNT ( * ) * - - 28 * + MAX ( ALL 62 )
----
-1736

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT DISTINCT + - SUM( 50 ) * - - 81 - COUNT( * )
----
-4051

skipif mysql # not compatible
query I rowsort label-4513
SELECT DISTINCT + - SUM ( 50 ) * - - 81 - COUNT ( * )
----
-4051

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT NULLIF ( - - 7, + ( - COUNT( * ) ) ) col0
----
7

skipif mysql # not compatible
query I rowsort label-4514
SELECT NULLIF ( - - 7, + ( - COUNT ( * ) ) ) col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT DISTINCT - COUNT( ALL 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT - COUNT ( ALL 84 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT ALL + + 29 * - COUNT( * ) * 2
----
-58

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL + + 29 * - COUNT ( * ) * 2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT MAX( DISTINCT + 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4517
SELECT MAX ( DISTINCT + 11 ) AS col1
----
11

query I rowsort
SELECT - + 23 + 10 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT - + SUM( + - COALESCE ( + + 83, - - 45 ) ) * 13
----
1079

skipif mysql # not compatible
query I rowsort label-4519
SELECT - + SUM ( + - COALESCE ( + + 83, - - 45 ) ) * 13
----
1079

query I rowsort
SELECT - - 53 * 7 * 89 AS col1
----
33019

query II rowsort
SELECT + - ( + + 66 ) + - - 77 AS col1, 46
----
11
46

query I rowsort
SELECT DISTINCT + - 4 + 10
----
6

query I rowsort
SELECT - - 4 / + CASE + 19 WHEN + 5 THEN 72 * 63 + 92 + + 28 + 56 * 95 + 28 END AS col2
----
NULL

query I rowsort
SELECT ALL - - 75 + - - 41
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT - - SUM( 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4525
SELECT - - SUM ( 25 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT DISTINCT - MAX( ALL - NULLIF ( + - 88, - 3 ) ) + 72 * - - 43 * 69 col1
----
213536

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT - MAX ( ALL - NULLIF ( + - 88, - 3 ) ) + 72 * - - 43 * 69 col1
----
213536

query I rowsort
SELECT ALL 51 + + 39
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4528
SELECT - 28 + + 24 + - + 42 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4528
SELECT - 28 + + 24 + - + 42 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 51 + 44 AS col2
----
95

query I rowsort
SELECT DISTINCT 57 + + 46 * + 50 AS col2
----
2357

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT - CASE + MAX( DISTINCT 10 ) WHEN - 29 THEN - + 58 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4531
SELECT - CASE + MAX ( DISTINCT 10 ) WHEN - 29 THEN - + 58 END AS col2
----
NULL

query I rowsort
SELECT ALL 85 * + + 30 AS col1
----
2550

onlyif mysql # aggregate syntax: 
query II rowsort label-4533
SELECT - CASE WHEN 54 IS NULL THEN - 34 + - 75 / + COUNT( * ) END AS col1, 66 AS col0
----
NULL
66

skipif mysql # not compatible
query II rowsort label-4533
SELECT - CASE WHEN 54 IS NULL THEN - 34 + - 75 / + COUNT ( * ) END AS col1, 66 AS col0
----
NULL
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT + 50 + - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-4534
SELECT + 50 + - COUNT ( * )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4535
SELECT - COALESCE ( - 10, - 6, - 31 + + - 60 - COUNT( * ) - - CAST( - - COUNT( * ) AS SIGNED ) * 50 * 14 )
----
10

skipif mysql # not compatible
query I rowsort label-4535
SELECT - COALESCE ( - 10, - 6, - 31 + + - 60 - COUNT ( * ) - - CAST ( - - COUNT ( * ) AS INTEGER ) * 50 * 14 )
----
10

query I rowsort
SELECT ALL + 66 - + - 71 * + + 24 AS col2
----
1770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4537
SELECT + CAST( NULL AS SIGNED ) * - AVG ( 71 ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT + CAST ( NULL AS INTEGER ) * - AVG ( 71 ) / + COUNT ( * )
----
NULL

query I rowsort
SELECT + 14 + 86
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT - COUNT( * ) - + 30 * COALESCE ( + ( 97 ), 44 * + 53 )
----
-2911

skipif mysql # not compatible
query I rowsort label-4539
SELECT - COUNT ( * ) - + 30 * COALESCE ( + ( 97 ), 44 * + 53 )
----
-2911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4540
SELECT + CAST( NULL AS SIGNED ) * + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4540
SELECT + CAST ( NULL AS INTEGER ) * + 64
----
NULL

query I rowsort
SELECT - 14 * - + ( - 84 ) AS col0
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT DISTINCT + COALESCE ( - 40, 21 * - + COUNT( * ), - 79 - + 40 + 93 )
----
-40

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT + COALESCE ( - 40, 21 * - + COUNT ( * ), - 79 - + 40 + 93 )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4543
SELECT DISTINCT CAST( + - 39 AS SIGNED ) * - 89 AS col1
----
3471

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT CAST ( + - 39 AS INTEGER ) * - 89 AS col1
----
3471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4544
SELECT ALL - NULLIF ( - CAST( NULL AS SIGNED ), + 0 ) / - 82 * 30 + + 63 + + 41 + 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL - NULLIF ( - CAST ( NULL AS INTEGER ), + 0 ) / - 82 * 30 + + 63 + + 41 + 53 AS col0
----
NULL

query I rowsort
SELECT - - 43 * + - 7
----
-301

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT DISTINCT - ( + + 2 ) * + - 44 + - + 79 * 34 * - + 89 + + - COUNT( * ) + COUNT( * ) AS col0
----
239142

skipif mysql # not compatible
query I rowsort label-4546
SELECT DISTINCT - ( + + 2 ) * + - 44 + - + 79 * 34 * - + 89 + + - COUNT ( * ) + COUNT ( * ) AS col0
----
239142

onlyif mysql # DIV for integer division: 
query I rowsort label-4547
SELECT - - 94 DIV - 29 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4547
SELECT - - 94 / - 29 AS col0
----
-3

query I rowsort
SELECT ALL + NULLIF ( + 3, - NULLIF ( + - 70, + 22 ) * + ( + - 7 ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT - 90 * - ( - CASE - CASE + + 82 WHEN 42 * + ( + 16 ) * 77 * + SUM( DISTINCT - 80 ) + - - 87 - 0 THEN - - COUNT( * ) END WHEN + 14 + + 80 * - 42 THEN COALESCE ( - + 5, - ( + 3 ) ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4549
SELECT - 90 * - ( - CASE - CASE + + 82 WHEN 42 * + ( + 16 ) * 77 * + SUM ( DISTINCT - 80 ) + - - 87 - 0 THEN - - COUNT ( * ) END WHEN + 14 + + 80 * - 42 THEN COALESCE ( - + 5, - ( + 3 ) ) END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4550
SELECT ALL - + 14 * - CAST( NULL AS SIGNED ) + - 28 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL - + 14 * - CAST ( NULL AS INTEGER ) + - 28 col1
----
NULL

query I rowsort
SELECT - 6 * + 63 + + - 84 + - + 99 AS col0
----
-561

query II rowsort
SELECT + 6 AS col2, - 90
----
6
-90

query I rowsort
SELECT ALL + 77 * + 13 + 87 + - 1 * + - 9
----
1097

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT DISTINCT + COUNT( * ) * - - 41
----
41

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT + COUNT ( * ) * - - 41
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4555
SELECT - + COUNT( * ) * - CASE + + 32 WHEN 26 THEN + - 42 WHEN + 87 / 20 + + ( 37 ) + - CAST( 49 AS SIGNED ) THEN NULL END + + 80 + + 10 * + - 3 + + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT - + COUNT ( * ) * - CASE + + 32 WHEN 26 THEN + - 42 WHEN + 87 / 20 + + ( 37 ) + - CAST ( 49 AS INTEGER ) THEN NULL END + + 80 + + 10 * + - 3 + + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT ALL 26 * 34 + - COUNT( DISTINCT + - 2 ) * - - COUNT( - - 42 )
----
883

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL 26 * 34 + - COUNT ( DISTINCT + - 2 ) * - - COUNT ( - - 42 )
----
883

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT ALL ( - + COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL ( - + COUNT ( * ) ) col1
----
-1

query I rowsort
SELECT - 28 + 14 col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4559
SELECT - COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4559
SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT DISTINCT SUM( + + 96 ) * + COUNT( * ) * + NULLIF ( - - COUNT( * ), 9 ) * + + 53 + 59 AS col2
----
5147

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT SUM ( + + 96 ) * + COUNT ( * ) * + NULLIF ( - - COUNT ( * ), 9 ) * + + 53 + 59 AS col2
----
5147

query II rowsort
SELECT - 22 * + 33 AS col0, + 34
----
-726
34

query I rowsort
SELECT + CASE - 14 WHEN + 43 THEN 90 + + 12 * - 40 * + ( 34 ) - 9 WHEN - 83 THEN NULL ELSE NULL END + - + ( - + 10 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4563
SELECT DISTINCT - ( + + CAST( + COUNT( * ) AS SIGNED ) ) DIV + 39
----
0

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT - ( + + CAST ( + COUNT ( * ) AS INTEGER ) ) / + 39
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4564
SELECT - 74 + MAX( - 55 ) + - - 16 * - 50 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT - 74 + MAX ( - 55 ) + - - 16 * - 50 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4565
SELECT - 92 * 50 DIV + 86, 3 + - ( + COALESCE ( - 99, + ( + + 54 ) ) ) * - 67 AS col1
----
-53
-6630

skipif mysql # not compatible
query II rowsort label-4565
SELECT - 92 * 50 / + 86, 3 + - ( + COALESCE ( - 99, + ( + + 54 ) ) ) * - 67 AS col1
----
-53
-6630

query I rowsort
SELECT ALL + 34 - + 30 * - + 37
----
1144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4567
SELECT ALL 38 - - CAST( ( - - 50 ) AS SIGNED ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL 38 - - CAST ( ( - - 50 ) AS INTEGER ) AS col0
----
88

query I rowsort
SELECT - ( - - 69 ) * 80 * - + 92
----
507840

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT + - 47 + + + MIN( - - 85 )
----
38

skipif mysql # not compatible
query I rowsort label-4569
SELECT + - 47 + + + MIN ( - - 85 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4570
SELECT + CAST( NULL AS SIGNED ) + + MAX( ALL - - 47 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT + CAST ( NULL AS INTEGER ) + + MAX ( ALL - - 47 ) AS col2
----
NULL

query I rowsort
SELECT - 38 * + 53
----
-2014

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT DISTINCT - 59 + COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT - 59 + COUNT ( * ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT COUNT( * ) / 55 * + + CASE + 95 WHEN + COUNT( * ) + - + 29 THEN NULL WHEN - + 59 * - - 83 THEN NULL WHEN CASE - 70 WHEN - COALESCE ( + + 37, 44, + + 23 ) * + 15 - - + 66 THEN NULL ELSE - 89 END THEN - 2 * - - MIN( + - 77 ) - - + 22 END / - 10 + - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4573
SELECT COUNT ( * ) / 55 * + + CASE + 95 WHEN + COUNT ( * ) + - + 29 THEN NULL WHEN - + 59 * - - 83 THEN NULL WHEN CASE - 70 WHEN - COALESCE ( + + 37, 44, + + 23 ) * + 15 - - + 66 THEN NULL ELSE - 89 END THEN - 2 * - - MIN ( + - 77 ) - - + 22 END / - 10 + - 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4574
SELECT - 70 DIV MIN( ALL + - 23 ) + 3 DIV + 77 * COUNT( * ) + SUM( DISTINCT 8 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4574
SELECT - 70 / MIN ( ALL + - 23 ) + 3 / + 77 * COUNT ( * ) + SUM ( DISTINCT 8 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT ALL + COUNT( * ) + - + 78 + + 22 * ( - 10 ) * + 40
----
-8877

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL + COUNT ( * ) + - + 78 + + 22 * ( - 10 ) * + 40
----
-8877

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT 94 + COUNT( * ) * - + COUNT( * ) * + - 60
----
154

skipif mysql # not compatible
query I rowsort label-4576
SELECT 94 + COUNT ( * ) * - + COUNT ( * ) * + - 60
----
154

query I rowsort
SELECT - 97 + + 83
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT ALL - + CASE + 79 WHEN - 38 / COALESCE ( - - MAX( - 97 ), + COALESCE ( 37, - 92 ) ) - + 96 THEN NULL WHEN + 3 * - 65 THEN + 23 ELSE - + ( ( + - ( - ( - + 75 ) ) ) ) END + + - 20 * - 40 + + 77 AS col0
----
802

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL - + CASE + 79 WHEN - 38 / COALESCE ( - - MAX ( - 97 ), + COALESCE ( 37, - 92 ) ) - + 96 THEN NULL WHEN + 3 * - 65 THEN + 23 ELSE - + ( ( + - ( - ( - + 75 ) ) ) ) END + + - 20 * - 40 + + 77 AS col0
----
802

onlyif mysql # DIV for integer division: 
query I rowsort label-4579
SELECT + 40 DIV + 81 * - 87 col2
----
0

skipif mysql # not compatible
query I rowsort label-4579
SELECT + 40 / + 81 * - 87 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4580
SELECT ALL 10 + - 48 * - - CAST( NULL AS SIGNED ) - + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL 10 + - 48 * - - CAST ( NULL AS INTEGER ) - + 74 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + COALESCE ( - 39, + + 8 ) col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT DISTINCT + 83 + - ( COUNT( * ) ) + - - COUNT( * ) * ( - CASE + 21 WHEN + 94 THEN 18 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT + 83 + - ( COUNT ( * ) ) + - - COUNT ( * ) * ( - CASE + 21 WHEN + 94 THEN 18 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT ALL - 65 - + - COUNT( * ) + 3
----
-61

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL - 65 - + - COUNT ( * ) + 3
----
-61

query II rowsort
SELECT 94 AS col0, - ( 43 ) + 84 * + 23 AS col1
----
94
1889

query II rowsort
SELECT + 51 AS col2, + 21 * - + 97 AS col0
----
51
-2037

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT 53 * + + 4 * - ( COUNT( * ) ) AS col0
----
-212

skipif mysql # not compatible
query I rowsort label-4586
SELECT 53 * + + 4 * - ( COUNT ( * ) ) AS col0
----
-212

query I rowsort
SELECT DISTINCT 21 * 36 AS col0
----
756

onlyif mysql # aggregate syntax: 
query II rowsort label-4588
SELECT - 62 col0, 22 - - 81 * - 72 * MAX( DISTINCT - 35 )
----
-62
204142

skipif mysql # not compatible
query II rowsort label-4588
SELECT - 62 col0, 22 - - 81 * - 72 * MAX ( DISTINCT - 35 )
----
-62
204142

query I rowsort
SELECT ALL - 66 - - + 1 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-4590
SELECT 31 AS col1, + ( + 6 ) * + - 26 * - - 7 * MIN( ALL ( + 24 ) ) AS col0
----
31
-26208

skipif mysql # not compatible
query II rowsort label-4590
SELECT 31 AS col1, + ( + 6 ) * + - 26 * - - 7 * MIN ( ALL ( + 24 ) ) AS col0
----
31
-26208

query I rowsort
SELECT 62 + 65 AS col0
----
127

query I rowsort
SELECT 68 * 68 * - - 66
----
305184

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT 4 + COUNT( * ) * - ( + 11 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4593
SELECT 4 + COUNT ( * ) * - ( + 11 ) AS col2
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4594
SELECT DISTINCT - 48 DIV + 7
----
-6

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT - 48 / + 7
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT 87 - + - 14 + - COUNT( * ) + + 56 * 93
----
5308

skipif mysql # not compatible
query I rowsort label-4595
SELECT 87 - + - 14 + - COUNT ( * ) + + 56 * 93
----
5308

onlyif mysql # DIV for integer division: 
query I rowsort label-4596
SELECT DISTINCT - 58 DIV - 78 * 32 * + 96 col1
----
0

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT - 58 / - 78 * 32 * + 96 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL - COUNT( * ) + + 65 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL - COUNT ( * ) + + 65 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT - COALESCE ( + MAX( DISTINCT 78 ), + 23, + COUNT( * ) + + 86 * + 44 )
----
-78

skipif mysql # not compatible
query I rowsort label-4598
SELECT - COALESCE ( + MAX ( DISTINCT 78 ), + 23, + COUNT ( * ) + + 86 * + 44 )
----
-78

query I rowsort
SELECT ALL + 97 + + + 11 * + 67 + + 25 + - 66 col2
----
793

query I rowsort
SELECT - 11 * - + 17
----
187

query I rowsort
SELECT ALL - 14 + - 39 col1
----
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-4602
SELECT ALL - 45 AS col2, 81 DIV - 68 + 47 AS col1
----
-45
46

skipif mysql # not compatible
query II rowsort label-4602
SELECT ALL - 45 AS col2, 81 / - 68 + 47 AS col1
----
-45
46

onlyif mysql # DIV for integer division: 
query II rowsort label-4603
SELECT ALL - - 21, 36 DIV + 19 + - 62 + + - 95 AS col2
----
21
-156

skipif mysql # not compatible
query II rowsort label-4603
SELECT ALL - - 21, 36 / + 19 + - 62 + + - 95 AS col2
----
21
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4604
SELECT ALL + 53 - - MAX( DISTINCT + + 59 ) * ( + + COALESCE ( - 88, 95 DIV - + 21, - 66 * + SUM( ALL 2 ) ) ) * 44 * - - 60 + + + 80 AS col2, CAST( NULL AS SIGNED ) * - 82
----
-13706747
NULL

skipif mysql # not compatible
query II rowsort label-4604
SELECT ALL + 53 - - MAX ( DISTINCT + + 59 ) * ( + + COALESCE ( - 88, 95 / - + 21, - 66 * + SUM ( ALL 2 ) ) ) * 44 * - - 60 + + + 80 AS col2, CAST ( NULL AS INTEGER ) * - 82
----
-13706747
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT - COUNT( * ) * - ( + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-4605
SELECT - COUNT ( * ) * - ( + 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT - - COUNT( * ) * + 48 + 80 + 64
----
192

skipif mysql # not compatible
query I rowsort label-4606
SELECT - - COUNT ( * ) * + 48 + 80 + 64
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT COUNT( * ) * - ( 47 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-4607
SELECT COUNT ( * ) * - ( 47 ) AS col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4608
SELECT NULLIF ( 46, + 60 ) * + 22 * + + 36 + - - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT NULLIF ( 46, + 60 ) * + 22 * + + 36 + - - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 54
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4609
SELECT ALL COALESCE ( + 75, + MIN( ALL - NULLIF ( - 80, - ( - + 39 ) ) ) DIV - + 9 + - 21 - - 68, - + 37 + - COUNT( * ) ) * 18 AS col2
----
1350

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL COALESCE ( + 75, + MIN ( ALL - NULLIF ( - 80, - ( - + 39 ) ) ) / - + 9 + - 21 - - 68, - + 37 + - COUNT ( * ) ) * 18 AS col2
----
1350

query I rowsort
SELECT 62 + + - 50 * - ( + 43 ) AS col0
----
2212

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT ALL 80 - ( - - COUNT( * ) ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL 80 - ( - - COUNT ( * ) ) AS col2
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4612
SELECT ALL + 34 DIV + + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL + 34 / + + COUNT ( * )
----
34

query I rowsort
SELECT 43 * 65 * + 25 + + 8 * ( + COALESCE ( + 19, 67, 1, - 89 * - 44 ) )
----
70027

query I rowsort
SELECT 97 + + 87
----
184

query I rowsort
SELECT 7 + - 72 AS col2
----
-65

query I rowsort
SELECT 13 * ( - 77 ) AS col2
----
-1001

query I rowsort
SELECT 97 + + 72 + + - 15 + + 60
----
214

query II rowsort
SELECT ALL 67 * - - 33 AS col2, 4 AS col0
----
2211
4

query I rowsort
SELECT 3 * + 23 col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT ALL SUM( - 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL SUM ( - 97 ) AS col2
----
-97

query I rowsort
SELECT DISTINCT COALESCE ( - NULLIF ( 48, - + 97 + - 42 ), + 59 - + 28 )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4622
SELECT ALL - - CAST( NULL AS SIGNED ) + + AVG ( ALL + + 63 ) + MIN( ALL CAST( NULL AS SIGNED ) ) * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL - - CAST ( NULL AS INTEGER ) + + AVG ( ALL + + 63 ) + MIN ( ALL CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + - ( - 3 ) + - 7 AS col0
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4624
SELECT ALL + + 95 + + + 33 * - - 94 - ( CAST( NULL AS DECIMAL ) ) - - 98 / + 50 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL + + 95 + + + 33 * - - 94 - ( CAST ( NULL AS REAL ) ) - - 98 / + 50 col1
----
NULL

query I rowsort
SELECT - 95 + + + 46
----
-49

query I rowsort
SELECT DISTINCT + + ( - 60 ) + + - 71 - - 5 * - 3
----
-146

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4627
SELECT - 9 + + MIN( DISTINCT + + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT - 9 + + MIN ( DISTINCT + + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT DISTINCT - 18 + 9 * - + 65 + 34
----
-569

query I rowsort
SELECT DISTINCT - 72 * + 58 - 58
----
-4234

query II rowsort
SELECT - + 5 * 99 + NULLIF ( + 22, + 99 ) * ( - + 86 ), - 97 - + 98 AS col2
----
-2387
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4631
SELECT + COALESCE ( - 1, SUM( ALL + - 0 ) * CASE + 68 WHEN - 66 + + MIN( + 29 ) * - CASE - COUNT( * ) WHEN 11 THEN 83 + 8 - + 8 WHEN + 31 THEN NULL END THEN - + 70 END * + + 98 + + - COALESCE ( + 84, - 26 DIV ( ( + ( 43 ) ) ), - 15 + + 97 ) + 44, CAST( NULL AS SIGNED ) + + 93 ) * 67 + COALESCE ( ( + 13 ), - 42 * - COUNT( * ) * 85 ) * - MAX( + 68 ) * - ( + ( + COUNT( * ) ) ) + + - 59
----
758

skipif mysql # not compatible
query I rowsort label-4631
SELECT + COALESCE ( - 1, SUM ( ALL + - 0 ) * CASE + 68 WHEN - 66 + + MIN ( + 29 ) * - CASE - COUNT ( * ) WHEN 11 THEN 83 + 8 - + 8 WHEN + 31 THEN NULL END THEN - + 70 END * + + 98 + + - COALESCE ( + 84, - 26 / ( ( + ( 43 ) ) ), - 15 + + 97 ) + 44, CAST ( NULL AS INTEGER ) + + 93 ) * 67 + COALESCE ( ( + 13 ), - 42 * - COUNT ( * ) * 85 ) * - MAX ( + 68 ) * - ( + ( + COUNT ( * ) ) ) + + - 59
----
758

onlyif mysql # DIV for integer division: 
query I rowsort label-4632
SELECT ALL - 29 * 86 + - - 51 - - 50 DIV 51 - - 17 AS col0
----
-2426

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL - 29 * 86 + - - 51 - - 50 / 51 - - 17 AS col0
----
-2426

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4633
SELECT ALL - COUNT( * ) * 48 * 71 DIV - 26 + - ( - 76 ) + + ( 48 )
----
255

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL - COUNT ( * ) * 48 * 71 / - 26 + - ( - 76 ) + + ( 48 )
----
255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4634
SELECT ( - COUNT( * ) ) DIV - - COUNT( * ) + + 56 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4634
SELECT ( - COUNT ( * ) ) / - - COUNT ( * ) + + 56 AS col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4635
SELECT ALL - - 14 * - SUM( 25 ) * - 53 + + - 83 - + + 83 + - 20 * - 56 * ( - 18 ) * NULLIF ( + + 26, 83 ) + - 44 + + COUNT( + 24 ) - - - COUNT( * ) AS col1, 76 * 72 - + 72
----
-505820
5400

skipif mysql # not compatible
query II rowsort label-4635
SELECT ALL - - 14 * - SUM ( 25 ) * - 53 + + - 83 - + + 83 + - 20 * - 56 * ( - 18 ) * NULLIF ( + + 26, 83 ) + - 44 + + COUNT ( + 24 ) - - - COUNT ( * ) AS col1, 76 * 72 - + 72
----
-505820
5400

query I rowsort
SELECT DISTINCT + COALESCE ( + 96, + 44 - - + 5, - - 17 )
----
96

query I rowsort
SELECT DISTINCT 22 * ( 32 ) AS col2
----
704

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4638
SELECT DISTINCT 86 * - 73 * - COUNT( + + 82 ) * + 72 AS col2, 20 DIV MIN( + 81 )
----
452016
0

skipif mysql # not compatible
query II rowsort label-4638
SELECT DISTINCT 86 * - 73 * - COUNT ( + + 82 ) * + 72 AS col2, 20 / MIN ( + 81 )
----
452016
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT SUM( ALL ( + 11 ) ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-4639
SELECT SUM ( ALL ( + 11 ) ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT MAX( DISTINCT + 26 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4640
SELECT MAX ( DISTINCT + 26 ) AS col0
----
26

query I rowsort
SELECT DISTINCT 50 * + 1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT ALL SUM( ALL + 4 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL SUM ( ALL + 4 ) AS col1
----
4

query I rowsort
SELECT ALL 43 + + + 60 + - 1 - + - 91 * - 66
----
-5904

onlyif mysql # DIV for integer division: 
query I rowsort label-4644
SELECT DISTINCT + 85 DIV + ( + 90 )
----
0

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT + 85 / + ( + 90 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4645
SELECT + CAST( NULL AS DECIMAL ) + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4645
SELECT + CAST ( NULL AS REAL ) + - 58
----
NULL

query I rowsort
SELECT + 31 * 48
----
1488

query I rowsort
SELECT - CASE - + 52 WHEN 11 THEN NULL ELSE + 55 END
----
-55

query I rowsort
SELECT + 49 + - 89 AS col2
----
-40

query I rowsort
SELECT DISTINCT - 27 + + 38
----
11

query II rowsort
SELECT - - 79, + 69 + - 11 AS col2
----
79
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4651
SELECT ALL + COUNT( * ) col1, COUNT( * ) * SUM( + + 66 ) * - ( NULLIF ( + 62, + 91 + - SUM( ALL - + ( - CAST( NULL AS SIGNED ) ) ) ) ) + - 85 - NULLIF ( + 29, + + 69 ) DIV ( + + 2 ) col0
----
1
-4191

skipif mysql # not compatible
query II rowsort label-4651
SELECT ALL + COUNT ( * ) col1, COUNT ( * ) * SUM ( + + 66 ) * - ( NULLIF ( + 62, + 91 + - SUM ( ALL - + ( - CAST ( NULL AS INTEGER ) ) ) ) ) + - 85 - NULLIF ( + 29, + + 69 ) / ( + + 2 ) col0
----
1
-4191

query I rowsort
SELECT - + 9 * - 42 AS col1
----
378

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4653
SELECT - 29 * + - ( + 68 ) AS col1, 87 + + 46 * - - 13 - 95 * COUNT( * ) DIV - 4 AS col2
----
1972
708

skipif mysql # not compatible
query II rowsort label-4653
SELECT - 29 * + - ( + 68 ) AS col1, 87 + + 46 * - - 13 - 95 * COUNT ( * ) / - 4 AS col2
----
1972
708

query II rowsort
SELECT - 42 AS col2, - 80 AS col0
----
-42
-80

query I rowsort
SELECT - 47 + - 17
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4656
SELECT + 87 * COALESCE ( + 57, - 12 ) * + - COUNT( * ) * + 49 - - - 7 + - ( - + CAST( NULL AS SIGNED ) ) * - - 61 / - + 3 * COALESCE ( 67, - 60, + 67 * 70 ) * + 96 * + 35 + + 57 - - 14 * - - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT + 87 * COALESCE ( + 57, - 12 ) * + - COUNT ( * ) * + 49 - - - 7 + - ( - + CAST ( NULL AS INTEGER ) ) * - - 61 / - + 3 * COALESCE ( 67, - 60, + 67 * 70 ) * + 96 * + 35 + + 57 - - 14 * - - 34
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4657
SELECT - AVG ( - - 60 ) / ( + 95 ) * + ( 59 ) / CAST( NULL AS SIGNED ) / - 23 + + + 15 + 13 + + 99 - + 87 * 90 / + AVG ( DISTINCT + - ( - 52 ) ) * COUNT( * ) - - + 6 + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4657
SELECT - AVG ( - - 60 ) / ( + 95 ) * + ( 59 ) / CAST ( NULL AS INTEGER ) / - 23 + + + 15 + 13 + + 99 - + 87 * 90 / + AVG ( DISTINCT + - ( - 52 ) ) * COUNT ( * ) - - + 6 + 47
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4658
SELECT ALL + COUNT( * ), + COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-4658
SELECT ALL + COUNT ( * ), + COUNT ( * ) AS col2
----
1
1

query I rowsort
SELECT - + 57 - 24
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT - - 82 * + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-4660
SELECT - - 82 * + COUNT ( * )
----
82

query I rowsort
SELECT DISTINCT + 52 * - + 69 AS col0
----
-3588

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4662
SELECT - CAST( NULL AS DECIMAL ) / + ( - 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4662
SELECT - CAST ( NULL AS REAL ) / + ( - 64 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4663
SELECT MAX( DISTINCT + - CAST( + - 46 AS SIGNED ) ) / NULLIF ( - + CAST( 12 AS DECIMAL ), - - 78 + - COUNT( * ) ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT MAX ( DISTINCT + - CAST ( + - 46 AS INTEGER ) ) / NULLIF ( - + CAST ( 12 AS REAL ), - - 78 + - COUNT ( * ) ) - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 34 * + 12 AS col2
----
-408

onlyif mysql # DIV for integer division: 
query I rowsort label-4665
SELECT + 18 * + 24 + - 36 DIV + 8
----
428

skipif mysql # not compatible
query I rowsort label-4665
SELECT + 18 * + 24 + - 36 / + 8
----
428

query II rowsort
SELECT ALL + 36 AS col1, 22 * - - 86 AS col2
----
36
1892

query I rowsort
SELECT ( - + 89 ) * 34 * + - 0 + + 47 + + + 79 + + + 66
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4668
SELECT + 98 * - MAX( ALL - - 96 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4668
SELECT + 98 * - MAX ( ALL - - 96 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 71 * + + 78 + + + 98
----
5636

query I rowsort
SELECT ( + ( + 93 ) )
----
93

query I rowsort
SELECT + 74 * - 76
----
-5624

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4672
SELECT ALL + 22 * COUNT( * ) + + ( + COUNT( * ) ) * + 97 + 28 * + + 90 / + 7 * - - 45 * + CAST( NULL AS DECIMAL ) * CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL + 22 * COUNT ( * ) + + ( + COUNT ( * ) ) * + 97 + 28 * + + 90 / + 7 * - - 45 * + CAST ( NULL AS REAL ) * CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT - ( COUNT( * ) ) + 76 * - + COUNT( * ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4673
SELECT - ( COUNT ( * ) ) + 76 * - + COUNT ( * ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4674
SELECT DISTINCT 17 * + 85 * + MIN( + + 5 ) * + 19 + + + 40 AS col1, - COUNT( ALL 3 ) + - 75 + COUNT( * )
----
137315
-75

skipif mysql # not compatible
query II rowsort label-4674
SELECT DISTINCT 17 * + 85 * + MIN ( + + 5 ) * + 19 + + + 40 AS col1, - COUNT ( ALL 3 ) + - 75 + COUNT ( * )
----
137315
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT DISTINCT ( - COUNT( * ) ) + 4
----
3

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT ( - COUNT ( * ) ) + 4
----
3

query I rowsort
SELECT DISTINCT + COALESCE ( - + 39, 7 - - 73 ) + + 90
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL - MAX( ALL + 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL - MAX ( ALL + 33 ) AS col1
----
-33

query I rowsort
SELECT ( - 6 ) + - 69
----
-75

query II rowsort
SELECT 42 AS col2, + 49 AS col1
----
42
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT DISTINCT ( - - COALESCE ( 24, - 70 ) ) * + CAST( - ( + 46 ) AS SIGNED ) * - 11 + 9 - + - 6 * - 85 - 23 col1
----
11620

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT ( - - COALESCE ( 24, - 70 ) ) * + CAST ( - ( + 46 ) AS INTEGER ) * - 11 + 9 - + - 6 * - 85 - 23 col1
----
11620

query II rowsort
SELECT - - 25 AS col1, - 81
----
25
-81

query I rowsort
SELECT ALL - 98 * + 7 + - 43 + - 33 AS col1
----
-762

query I rowsort
SELECT DISTINCT - 82 * - 1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT COALESCE ( COUNT( * ), + 40, + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4684
SELECT COALESCE ( COUNT ( * ), + 40, + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ALL - 49 - + 85 * + - ( COUNT( * ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL - 49 - + 85 * + - ( COUNT ( * ) ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-4686
SELECT DISTINCT - 22 col1, + ( + 51 ) * + COUNT( * ) AS col1
----
-22
51

skipif mysql # not compatible
query II rowsort label-4686
SELECT DISTINCT - 22 col1, + ( + 51 ) * + COUNT ( * ) AS col1
----
-22
51

query I rowsort
SELECT 81 + - 91 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT DISTINCT + ( 52 ) - + + ( MIN( - 18 ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT + ( 52 ) - + + ( MIN ( - 18 ) ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT 71 + - 11 - + - 95 + COUNT( * ) * 1 AS col0
----
156

skipif mysql # not compatible
query I rowsort label-4689
SELECT 71 + - 11 - + - 95 + COUNT ( * ) * 1 AS col0
----
156

query I rowsort
SELECT 74 * + + 64 AS col0
----
4736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4691
SELECT + 41 * - + 18 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4691
SELECT + 41 * - + 18 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 66 * - 10 AS col1
----
-660

query I rowsort
SELECT ( - 67 ) * - - 92 AS col0
----
-6164

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT COUNT( ALL 20 ) + - 14 + + + COUNT( * ) * + 48 + COUNT( * ) * + + 5 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4694
SELECT COUNT ( ALL 20 ) + - 14 + + + COUNT ( * ) * + 48 + COUNT ( * ) * + + 5 AS col2
----
40

query I rowsort
SELECT DISTINCT CASE 54 WHEN + 65 THEN NULL WHEN + 9 THEN NULL ELSE 16 + - - 69 + - 97 * - - 47 + - 96 + - 59 + + 91 * 65 END
----
1286

query I rowsort
SELECT ALL + COALESCE ( + 39, + + 99 * - - 33, 28 * - - 41 ) * - 62
----
-2418

query I rowsort
SELECT 43 * 86 col0
----
3698

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT ALL MAX( DISTINCT 6 ) * - - 45 AS col1
----
270

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL MAX ( DISTINCT 6 ) * - - 45 AS col1
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT DISTINCT - COALESCE ( 66, + MIN( DISTINCT - 11 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT - COALESCE ( 66, + MIN ( DISTINCT - 11 ) )
----
-66

query I rowsort
SELECT DISTINCT + 14 * 40 col0
----
560

query I rowsort
SELECT ALL - NULLIF ( + 50, 69 * + 76 ) AS col2
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4702
SELECT CAST( + 52 AS SIGNED ) * + COUNT( * ) * + 87 * - 58 + 19
----
-262373

skipif mysql # not compatible
query I rowsort label-4702
SELECT CAST ( + 52 AS INTEGER ) * + COUNT ( * ) * + 87 * - 58 + 19
----
-262373

query I rowsort
SELECT 75 * + 18 * + + 33 + + 82
----
44632

query I rowsort
SELECT DISTINCT - 30 + - 62 AS col2
----
-92

query I rowsort
SELECT ALL + 75 + - + NULLIF ( + 45, - - 56 + - + 51 + 80 ) + 90
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL 74 + - 96 * + 36 * COALESCE ( 3, COALESCE ( + 95, - COUNT( * ) ) ) * 18 AS col1
----
-186550

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL 74 + - 96 * + 36 * COALESCE ( 3, COALESCE ( + 95, - COUNT ( * ) ) ) * 18 AS col1
----
-186550

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL - ( + 25 ) * COUNT( * ) + + 21 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL - ( + 25 ) * COUNT ( * ) + + 21 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4708
SELECT DISTINCT 9 + + 36, + CASE - - 42 WHEN 78 THEN NULLIF ( + - 69, + - MIN( + + 2 ) - - + COUNT( * ) + COALESCE ( + AVG ( ALL - 52 ), 96 + ( - 85 ), + COUNT( - + 20 ) + + + 4 ) ) WHEN - 51 * + 11 - SUM( DISTINCT 84 ) THEN NULL END col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-4708
SELECT DISTINCT 9 + + 36, + CASE - - 42 WHEN 78 THEN NULLIF ( + - 69, + - MIN ( + + 2 ) - - + COUNT ( * ) + COALESCE ( + AVG ( ALL - 52 ), 96 + ( - 85 ), + COUNT ( - + 20 ) + + + 4 ) ) WHEN - 51 * + 11 - SUM ( DISTINCT 84 ) THEN NULL END col2
----
45
NULL

query I rowsort
SELECT ALL - 85 * + - 38 AS col2
----
3230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4710
SELECT DISTINCT + 58 + - + CAST( + ( 55 ) AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT + 58 + - + CAST ( + ( 55 ) AS INTEGER )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT ALL - COUNT( * ) * - + COALESCE ( + 98, COUNT( * ) ) col0
----
98

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL - COUNT ( * ) * - + COALESCE ( + 98, COUNT ( * ) ) col0
----
98

query I rowsort
SELECT ALL + 40 * + + NULLIF ( + 70, + 65 ) * + 30 AS col2
----
84000

query I rowsort
SELECT ALL - ( - 36 ) * + 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4714
SELECT 32 DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-4714
SELECT 32 / + 94
----
0

query I rowsort
SELECT 3 * ( - + 28 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT DISTINCT - MAX( ALL + - 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT - MAX ( ALL + - 86 ) AS col0
----
86

query I rowsort
SELECT DISTINCT + + 34 * + 14 AS col1
----
476

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ALL + 53 - - + COUNT( * ) col1
----
54

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL + 53 - - + COUNT ( * ) col1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4719
SELECT DISTINCT + 31 * + 2, MAX( + 87 ) AS col2
----
62
87

skipif mysql # not compatible
query II rowsort label-4719
SELECT DISTINCT + 31 * + 2, MAX ( + 87 ) AS col2
----
62
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT 9 - + 75 + + COUNT( * ) + 11 * + 56 AS col0
----
551

skipif mysql # not compatible
query I rowsort label-4720
SELECT 9 - + 75 + + COUNT ( * ) + 11 * + 56 AS col0
----
551

query I rowsort
SELECT NULLIF ( - - 68, 5 ) + + 71 AS col2
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT ALL - NULLIF ( - NULLIF ( + 60, 87 * - - 94 * 95 ), + CASE 51 WHEN + CASE - 14 WHEN + 35 + - NULLIF ( - 85, 50 / + 83 ) THEN NULL WHEN 72 THEN NULL WHEN + + 96 + - ( + 69 ) THEN + - 12 + + 77 END THEN + + 51 + + - 44 ELSE + COUNT( * ) END ) * + MAX( DISTINCT 55 )
----
3300

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL - NULLIF ( - NULLIF ( + 60, 87 * - - 94 * 95 ), + CASE 51 WHEN + CASE - 14 WHEN + 35 + - NULLIF ( - 85, 50 / + 83 ) THEN NULL WHEN 72 THEN NULL WHEN + + 96 + - ( + 69 ) THEN + - 12 + + 77 END THEN + + 51 + + - 44 ELSE + COUNT ( * ) END ) * + MAX ( DISTINCT 55 )
----
3300

query I rowsort
SELECT + 38 * - ( + - 92 ) AS col1
----
3496

query I rowsort
SELECT 19 * - 21
----
-399

query I rowsort
SELECT + 82 + - 22
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4726
SELECT DISTINCT - CASE - NULLIF ( COUNT( * ), - + CAST( + ( - + CAST( NULL AS SIGNED ) ) AS DECIMAL ) ) WHEN + - 99 THEN + COUNT( * ) WHEN 46 * + + 57 * - - 88 * COUNT( * ) + + COUNT( * ) * + 82 THEN NULL ELSE 78 END * - + CASE 64 WHEN 42 THEN NULL WHEN - 90 * - 72 - + + 31 / + SUM( + + 71 ) + + 76 THEN 65 END + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT - CASE - NULLIF ( COUNT ( * ), - + CAST ( + ( - + CAST ( NULL AS INTEGER ) ) AS REAL ) ) WHEN + - 99 THEN + COUNT ( * ) WHEN 46 * + + 57 * - - 88 * COUNT ( * ) + + COUNT ( * ) * + 82 THEN NULL ELSE 78 END * - + CASE 64 WHEN 42 THEN NULL WHEN - 90 * - 72 - + + 31 / + SUM ( + + 71 ) + + 76 THEN 65 END + 2 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4727
SELECT - 5 DIV - ( 23 ) - + 54 - - 35 * COUNT( * ) * + + 90 AS col1
----
3096

skipif mysql # not compatible
query I rowsort label-4727
SELECT - 5 / - ( 23 ) - + 54 - - 35 * COUNT ( * ) * + + 90 AS col1
----
3096

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT DISTINCT - COUNT( 50 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT - COUNT ( 50 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4729
SELECT ALL + 85 + + + 17, + NULLIF ( + - 83, + - COUNT( * ) + - - 70 ) col2
----
102
-83

skipif mysql # not compatible
query II rowsort label-4729
SELECT ALL + 85 + + + 17, + NULLIF ( + - 83, + - COUNT ( * ) + - - 70 ) col2
----
102
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT COUNT( * ) + + 6 * 89 * + COALESCE ( 34, - SUM( DISTINCT + - 78 ) ) AS col1
----
18157

skipif mysql # not compatible
query I rowsort label-4730
SELECT COUNT ( * ) + + 6 * 89 * + COALESCE ( 34, - SUM ( DISTINCT + - 78 ) ) AS col1
----
18157

onlyif mysql # DIV for integer division: 
query I rowsort label-4731
SELECT 62 DIV - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4731
SELECT 62 / - 76 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT ALL COUNT( * ) + - + NULLIF ( 72, - - 52 ) col0
----
-71

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL COUNT ( * ) + - + NULLIF ( 72, - - 52 ) col0
----
-71

query I rowsort
SELECT CASE + - 64 WHEN - ( + 41 ) * + 95 THEN NULL ELSE - - 15 END
----
15

query I rowsort
SELECT ALL 56 * + 4
----
224

query I rowsort
SELECT + 62 * - 72 AS col1
----
-4464

query I rowsort
SELECT + CASE + 84 WHEN - 77 THEN - + 68 * - 63 + + ( + 34 ) ELSE 34 END
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4737
SELECT ALL + 68 * + 23 + + - COUNT( * ) AS col0, 27 AS col1
----
1563
27

skipif mysql # not compatible
query II rowsort label-4737
SELECT ALL + 68 * + 23 + + - COUNT ( * ) AS col0, 27 AS col1
----
1563
27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4738
SELECT CASE - CAST( + 39 AS SIGNED ) WHEN NULLIF ( 31, + 56 + + 62 ) THEN - + 15 DIV - 83 ELSE 14 + - 25 DIV + 14 END AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4738
SELECT CASE - CAST ( + 39 AS INTEGER ) WHEN NULLIF ( 31, + 56 + + 62 ) THEN - + 15 / - 83 ELSE 14 + - 25 / + 14 END AS col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-4739
SELECT ALL 20 * NULLIF ( - 45, - 82 * 26 - - - 88 ) AS col1, + 92 * + COALESCE ( - - 88, + + ( 96 ) ) * - COUNT( ALL - 1 )
----
-900
-8096

skipif mysql # not compatible
query II rowsort label-4739
SELECT ALL 20 * NULLIF ( - 45, - 82 * 26 - - - 88 ) AS col1, + 92 * + COALESCE ( - - 88, + + ( 96 ) ) * - COUNT ( ALL - 1 )
----
-900
-8096

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT + 26 + - + COUNT( * ) * + 45 * + - ( + 74 )
----
3356

skipif mysql # not compatible
query I rowsort label-4740
SELECT + 26 + - + COUNT ( * ) * + 45 * + - ( + 74 )
----
3356

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4741
SELECT + 71 * + 48 + COUNT( * ) DIV - ( + 36 ) AS col2
----
3408

skipif mysql # not compatible
query I rowsort label-4741
SELECT + 71 * + 48 + COUNT ( * ) / - ( + 36 ) AS col2
----
3408

query II rowsort
SELECT 45 * - 56 + + 95 AS col2, + 22
----
-2425
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4743
SELECT - 49 + + 44 + - NULLIF ( + - 72, - + 14 * - 22 * - CAST( NULL AS SIGNED ) ) + + COUNT( * ) * - COALESCE ( + - 42, + + NULLIF ( - 0, + 70 ) ) col2
----
109

skipif mysql # not compatible
query I rowsort label-4743
SELECT - 49 + + 44 + - NULLIF ( + - 72, - + 14 * - 22 * - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) * - COALESCE ( + - 42, + + NULLIF ( - 0, + 70 ) ) col2
----
109

query I rowsort
SELECT ALL + - ( + - ( 78 ) )
----
78

query I rowsort
SELECT - + CASE + 30 WHEN 41 - - 22 * 49 THEN + 80 WHEN ( 7 ) THEN NULL WHEN + + COALESCE ( - 70, 9, + 17 ) * 38 + - 56 THEN NULL END * - + COALESCE ( + 6, + 38 * + - ( + - 34 ) )
----
NULL

query I rowsort
SELECT - 90 * - 47 + + 24 + + 84
----
4338

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT ALL + 1 * - - COUNT( * ) * + 60 + - 92 col2
----
-32

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL + 1 * - - COUNT ( * ) * + 60 + - 92 col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT ALL + MIN( DISTINCT - - ( 66 ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL + MIN ( DISTINCT - - ( 66 ) ) AS col1
----
66

query I rowsort
SELECT ALL + + 94 * + + 95
----
8930

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT - - 46 + - 68 + + COUNT( * ) * - COALESCE ( - 29, + 26 ) + - + 10 + + - 26 - - 8 + + 2 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-4750
SELECT - - 46 + - 68 + + COUNT ( * ) * - COALESCE ( - 29, + 26 ) + - + 10 + + - 26 - - 8 + + 2 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT - 40 * 35 * - + SUM( 37 )
----
51800

skipif mysql # not compatible
query I rowsort label-4751
SELECT - 40 * 35 * - + SUM ( 37 )
----
51800

query I rowsort
SELECT - + 72 + - + 33
----
-105

query II rowsort
SELECT - + 57 col0, - 54
----
-57
-54

query I rowsort
SELECT ALL 23 * + 27
----
621

query I rowsort
SELECT DISTINCT - 97 * - 38 AS col2
----
3686

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT ALL - SUM( ALL - - 74 ) + - 12 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - SUM ( ALL - - 74 ) + - 12 AS col0
----
-86

query II rowsort
SELECT DISTINCT + 8 AS col0, - 98 AS col1
----
8
-98

query I rowsort
SELECT ALL + 83 + - - 64
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT ALL + 25 * - COUNT( * ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL + 25 * - COUNT ( * ) AS col2
----
-25

query I rowsort
SELECT - - 9 + - 40 col1
----
-31

query I rowsort
SELECT - 12 + - 33 AS col2
----
-45

query II rowsort
SELECT - 67 AS col2, - 30
----
-67
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT + 25 + NULLIF ( - + MAX( + 62 ), - 62 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT + 25 + NULLIF ( - + MAX ( + 62 ), - 62 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4764
SELECT ALL + - 77 + COUNT( * ) * + 94 * 51 col0, ( + 22 ) - ( - - 66 ) AS col0
----
4717
-44

skipif mysql # not compatible
query II rowsort label-4764
SELECT ALL + - 77 + COUNT ( * ) * + 94 * 51 col0, ( + 22 ) - ( - - 66 ) AS col0
----
4717
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-4765
SELECT - COUNT( * ) + - + 67 + - 38 * + COUNT( * ) AS col0, - 72 AS col0
----
-106
-72

skipif mysql # not compatible
query II rowsort label-4765
SELECT - COUNT ( * ) + - + 67 + - 38 * + COUNT ( * ) AS col0, - 72 AS col0
----
-106
-72

query I rowsort
SELECT DISTINCT 22 * 45 AS col1
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT ALL + 76 + SUM( ALL - - 97 ) + + 65 * + + 98 AS col2
----
6543

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL + 76 + SUM ( ALL - - 97 ) + + 65 * + + 98 AS col2
----
6543

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT + CASE - 33 WHEN + 73 THEN NULL WHEN 75 + + - 10 + - - 20 + ( COALESCE ( - + COUNT( * ), 77 ) ) * + COUNT( * ) + 13 / 97 + + 69 THEN NULL ELSE + + 33 END + 94 AS col1
----
127

skipif mysql # not compatible
query I rowsort label-4768
SELECT + CASE - 33 WHEN + 73 THEN NULL WHEN 75 + + - 10 + - - 20 + ( COALESCE ( - + COUNT ( * ), 77 ) ) * + COUNT ( * ) + 13 / 97 + + 69 THEN NULL ELSE + + 33 END + 94 AS col1
----
127

query I rowsort
SELECT ALL + 12 + + + 40 * - 87 * + ( - 19 ) AS col0
----
66132

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT DISTINCT + COUNT( * ) * 94 * + 35
----
3290

skipif mysql # not compatible
query I rowsort label-4770
SELECT DISTINCT + COUNT ( * ) * 94 * + 35
----
3290

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT ALL 50 - - COUNT( * ) + + + 48
----
99

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL 50 - - COUNT ( * ) + + + 48
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4772
SELECT + 56 + - 54 DIV + 13 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-4772
SELECT + 56 + - 54 / + 13 AS col2
----
52

query II rowsort
SELECT + 15 * 71 AS col1, + ( - 46 ) + - 36 * + 93 AS col0
----
1065
-3394

query I rowsort
SELECT - 5 * + 99 + + 61 AS col0
----
-434

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT DISTINCT CASE + 94 WHEN 57 THEN + 48 ELSE NULL END / - ( COUNT( * ) ) + 54 * - 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT CASE + 94 WHEN 57 THEN + 48 ELSE NULL END / - ( COUNT ( * ) ) + 54 * - 68 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT CAST( + ( 23 ) AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-4776
SELECT CAST ( + ( 23 ) AS INTEGER )
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4777
SELECT + 79 * - COUNT( * ) AS col0, - 3
----
-79
-3

skipif mysql # not compatible
query II rowsort label-4777
SELECT + 79 * - COUNT ( * ) AS col0, - 3
----
-79
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT + COUNT( - 19 ) + 6 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4778
SELECT + COUNT ( - 19 ) + 6 AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4779
SELECT + NULLIF ( 85, + + 30 / SUM( DISTINCT ( - 19 ) ) + CAST( - + 5 AS SIGNED ) )
----
85

skipif mysql # not compatible
query I rowsort label-4779
SELECT + NULLIF ( 85, + + 30 / SUM ( DISTINCT ( - 19 ) ) + CAST ( - + 5 AS INTEGER ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT ALL + MIN( ( - 39 ) ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL + MIN ( ( - 39 ) ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT + + 25 * 92 - + 68 * - 79 * - MAX( ALL - + 72 )
----
389084

skipif mysql # not compatible
query I rowsort label-4781
SELECT + + 25 * 92 - + 68 * - 79 * - MAX ( ALL - + 72 )
----
389084

query I rowsort
SELECT + + 81 * - - 72 AS col1
----
5832

query I rowsort
SELECT - 93 * - - 55
----
-5115

query II rowsort
SELECT + 37 - - 76 * - ( 67 ) AS col1, - 31 AS col0
----
-5055
-31

query I rowsort
SELECT DISTINCT - 29 * - 98 + - NULLIF ( 10, + + 91 + - 70 ) AS col0
----
2832

query I rowsort
SELECT DISTINCT + 64 * 18 + + 15 - + 81 - - 99 AS col2
----
1185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4787
SELECT DISTINCT CAST( NULL AS SIGNED ) / + + 59 * + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + + 59 * + + 50
----
NULL

query I rowsort
SELECT ALL 57 * + 60 AS col2
----
3420

onlyif mysql # DIV for integer division: 
query I rowsort label-4789
SELECT + ( + ( 26 ) ) DIV - 68 - 58
----
-58

skipif mysql # not compatible
query I rowsort label-4789
SELECT + ( + ( 26 ) ) / - 68 - 58
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT - 0 - - ( - - 42 ) * ( COUNT( DISTINCT 47 ) )
----
42

skipif mysql # not compatible
query I rowsort label-4790
SELECT - 0 - - ( - - 42 ) * ( COUNT ( DISTINCT 47 ) )
----
42

query I rowsort
SELECT - 10 * - 79
----
790

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT DISTINCT - - COUNT( * ) * + 91 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT - - COUNT ( * ) * + 91 AS col2
----
91

query I rowsort
SELECT DISTINCT ( 99 ) col2
----
99

query I rowsort
SELECT 87 * + + 42 * - - 62 * + ( + 99 )
----
22428252

query II rowsort
SELECT DISTINCT 92 + 99 + + 40 * - 60 * - 69 AS col1, + 39 * - - 30
----
165791
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT 87 + - CASE COUNT( * ) WHEN + 57 THEN NULL ELSE - ( - 18 ) * ( - 11 ) + + 74 + 64 * - 85 END AS col2
----
5651

skipif mysql # not compatible
query I rowsort label-4796
SELECT 87 + - CASE COUNT ( * ) WHEN + 57 THEN NULL ELSE - ( - 18 ) * ( - 11 ) + + 74 + 64 * - 85 END AS col2
----
5651

query I rowsort
SELECT DISTINCT - 45 - + 47 AS col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4798
SELECT 12 - + 84 - - - COUNT( * ) DIV + - 46 * - 65 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4798
SELECT 12 - + 84 - - - COUNT ( * ) / + - 46 * - 65 AS col1
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4799
SELECT ALL ( CASE - 11 WHEN 89 THEN + 27 WHEN - 62 * - COUNT( * ) * 0 * - + NULLIF ( - - 34, - 96 ) * + 92 + ( - MIN( ALL CAST( + 90 AS SIGNED ) ) ) - + - 33 + + 67 + + + 58 * 30 + + 36 THEN NULL ELSE + + 51 END ) * - + CASE + 46 WHEN - - 9 * - 37 THEN ( 40 ) ELSE NULL END * - COUNT( * ) * - + NULLIF ( - ( + 1 ), + ( - - 98 ) / + COUNT( * ) ) * - 25 + - 98 / 81 * - - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL ( CASE - 11 WHEN 89 THEN + 27 WHEN - 62 * - COUNT ( * ) * 0 * - + NULLIF ( - - 34, - 96 ) * + 92 + ( - MIN ( ALL CAST ( + 90 AS INTEGER ) ) ) - + - 33 + + 67 + + + 58 * 30 + + 36 THEN NULL ELSE + + 51 END ) * - + CASE + 46 WHEN - - 9 * - 37 THEN ( 40 ) ELSE NULL END * - COUNT ( * ) * - + NULLIF ( - ( + 1 ), + ( - - 98 ) / + COUNT ( * ) ) * - 25 + - 98 / 81 * - - 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT 22 + - COUNT( * ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-4800
SELECT 22 + - COUNT ( * ) AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4801
SELECT ALL + CASE ( - - 56 ) WHEN COALESCE ( - AVG ( 86 ), + 89 / - + COUNT( * ) + - COALESCE ( - 38, MAX( + + 12 ), + ( + - 58 ) ), + NULLIF ( - 68, + - 13 ) ) + - ( - + 75 ) THEN + ( - 61 ) ELSE + MIN( DISTINCT - - 45 ) END * - + ( CAST( - 95 AS SIGNED ) ) AS col0
----
4275

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL + CASE ( - - 56 ) WHEN COALESCE ( - AVG ( 86 ), + 89 / - + COUNT ( * ) + - COALESCE ( - 38, MAX ( + + 12 ), + ( + - 58 ) ), + NULLIF ( - 68, + - 13 ) ) + - ( - + 75 ) THEN + ( - 61 ) ELSE + MIN ( DISTINCT - - 45 ) END * - + ( CAST ( - 95 AS INTEGER ) ) AS col0
----
4275

query II rowsort
SELECT 55 * + - 60 * - 70 + - ( 40 ) AS col0, - 85 col2
----
230960
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT DISTINCT + 64 * + COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT + 64 * + COUNT ( * ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4804
SELECT DISTINCT - 73 AS col0, COUNT( * )
----
-73
1

skipif mysql # not compatible
query II rowsort label-4804
SELECT DISTINCT - 73 AS col0, COUNT ( * )
----
-73
1

query I rowsort
SELECT ALL + 55 * 60
----
3300

query I rowsort
SELECT 21 + 19 + + + 21 AS col2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4807
SELECT 19 DIV ( + 55 ) * 82 - + 75 + + ( + 29 )
----
-46

skipif mysql # not compatible
query I rowsort label-4807
SELECT 19 / ( + 55 ) * 82 - + 75 + + ( + 29 )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4808
SELECT - CAST( NULL AS SIGNED ) * - 25 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4808
SELECT - CAST ( NULL AS INTEGER ) * - 25 + + COUNT ( * )
----
NULL

query I rowsort
SELECT ( + 25 ) + + 51 col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT DISTINCT 19 + - COUNT( DISTINCT 94 + + 78 ) col0
----
18

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT 19 + - COUNT ( DISTINCT 94 + + 78 ) col0
----
18

query I rowsort
SELECT - 68 * 19 + - 9
----
-1301

query I rowsort
SELECT ALL 53 + - 6 * + 57
----
-289

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT 56 + 18 * + COUNT( DISTINCT + 39 * 15 )
----
74

skipif mysql # not compatible
query I rowsort label-4813
SELECT 56 + 18 * + COUNT ( DISTINCT + 39 * 15 )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4814
SELECT ALL - ( 84 ) DIV 44
----
-1

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL - ( 84 ) / 44
----
-1

query I rowsort
SELECT DISTINCT - CASE 13 WHEN 67 - 73 THEN 88 + - 45 * 8 ELSE + 19 END col2
----
-19

query I rowsort
SELECT ALL 47 * 74 AS col2
----
3478

query I rowsort
SELECT ALL 59 * 61
----
3599

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4818
SELECT ALL 18 + COUNT( * ) / - ( - CAST( NULL AS DECIMAL ) * 33 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL 18 + COUNT ( * ) / - ( - CAST ( NULL AS REAL ) * 33 ) AS col1
----
NULL

query I rowsort
SELECT 47 * 11 + - 86
----
431

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT + 30 * - 31 + - COUNT( * ) AS col0
----
-931

skipif mysql # not compatible
query I rowsort label-4820
SELECT + 30 * - 31 + - COUNT ( * ) AS col0
----
-931

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT ALL 11 * MIN( ALL + 16 ) AS col0
----
176

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL 11 * MIN ( ALL + 16 ) AS col0
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-4822
SELECT 1 + + 95 DIV + 64 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4822
SELECT 1 + + 95 / + 64 AS col0
----
2

query I rowsort
SELECT ALL 87 + ( 18 ) AS col1
----
105

query I rowsort
SELECT 10 + 12 AS col2
----
22

query I rowsort
SELECT DISTINCT 17 + - 93 AS col2
----
-76

query I rowsort
SELECT ( 14 ) + 44 AS col0
----
58

query I rowsort
SELECT DISTINCT 93 - 20
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT SUM( ALL - 98 ) + + 77 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4828
SELECT SUM ( ALL - 98 ) + + 77 AS col2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4829
SELECT CAST( NULL AS SIGNED ) / + ( 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT CAST ( NULL AS INTEGER ) / + ( 22 )
----
NULL

query I rowsort
SELECT ALL + 58 * 18 AS col0
----
1044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4831
SELECT ALL COUNT( * ) DIV - 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL COUNT ( * ) / - 57 AS col0
----
0

query I rowsort
SELECT DISTINCT 80 * - 75
----
-6000

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT DISTINCT COUNT( * ) - 79
----
-78

skipif mysql # not compatible
query I rowsort label-4833
SELECT DISTINCT COUNT ( * ) - 79
----
-78

query I rowsort
SELECT ALL 98 * - 84
----
-8232

query I rowsort
SELECT 97 * 37 AS col1
----
3589

query I rowsort
SELECT 32 + - 10
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT ALL + CASE 8 WHEN COUNT( * ) THEN + 26 WHEN - 66 * 41 + 42 THEN NULL END * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL + CASE 8 WHEN COUNT ( * ) THEN + 26 WHEN - 66 * 41 + 42 THEN NULL END * + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT DISTINCT COUNT( * ) - 19
----
-18

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT COUNT ( * ) - 19
----
-18

query I rowsort
SELECT 22 + COALESCE ( + 22, + 2 + 49 * + 91 ) * - 41
----
-880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4840
SELECT ALL COUNT( * ) * + CAST( 68 AS SIGNED ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL COUNT ( * ) * + CAST ( 68 AS INTEGER ) AS col0
----
68

query I rowsort
SELECT 47 + - 83
----
-36

query I rowsort
SELECT 51 * 22 AS col2
----
1122

onlyif mysql # DIV for integer division: 
query I rowsort label-4843
SELECT ( COALESCE ( - 77, + 3 ) ) DIV 29 + 63
----
61

skipif mysql # not compatible
query I rowsort label-4843
SELECT ( COALESCE ( - 77, + 3 ) ) / 29 + 63
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT DISTINCT + 70 * COALESCE ( 57, MIN( 64 ) ) AS col2
----
3990

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT + 70 * COALESCE ( 57, MIN ( 64 ) ) AS col2
----
3990

query I rowsort
SELECT + 97 * + 17 AS col0
----
1649

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT + MIN( DISTINCT 10 ) + 56
----
66

skipif mysql # not compatible
query I rowsort label-4846
SELECT + MIN ( DISTINCT 10 ) + 56
----
66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4847
SELECT ALL 75 * 59 + + ( + COALESCE ( 0, NULLIF ( CAST( NULL AS SIGNED ), 6 ) * + 79, - 13 + NULLIF ( + 72, 78 - CAST( - 96 AS DECIMAL ) * - 20 ) ) ) AS col1
----
4425

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL 75 * 59 + + ( + COALESCE ( 0, NULLIF ( CAST ( NULL AS INTEGER ), 6 ) * + 79, - 13 + NULLIF ( + 72, 78 - CAST ( - 96 AS REAL ) * - 20 ) ) ) AS col1
----
4425

query I rowsort
SELECT DISTINCT + 64 * + 78 + 70 col1
----
5062

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4849
SELECT DISTINCT + + 74 * + CAST( NULL AS SIGNED ) + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT + + 74 * + CAST ( NULL AS INTEGER ) + 86 AS col1
----
NULL

query I rowsort
SELECT ALL ( 3 ) * 19 + - 95 AS col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4851
SELECT DISTINCT - 76 * - CAST( + NULLIF ( NULLIF ( 68, 5 ), 39 * MIN( DISTINCT 10 ) + - 69 * - 12 ) / COALESCE ( - 44 * - NULLIF ( - 5, - 93 ) + 6 / - ( - COALESCE ( - 96, 24 / 49 ) ), 37, + COUNT( * ) + - 13 * 75 ) + - MAX( ALL - 19 ) AS SIGNED )
----
1444

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT - 76 * - CAST ( + NULLIF ( NULLIF ( 68, 5 ), 39 * MIN ( DISTINCT 10 ) + - 69 * - 12 ) / COALESCE ( - 44 * - NULLIF ( - 5, - 93 ) + 6 / - ( - COALESCE ( - 96, 24 / 49 ) ), 37, + COUNT ( * ) + - 13 * 75 ) + - MAX ( ALL - 19 ) AS INTEGER )
----
1444

query I rowsort
SELECT - + 13 * + 18 - + 99
----
-333

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT - CASE ( 54 ) WHEN 24 + + ( - 3 ) / + 26 THEN 57 + + SUM( - 59 ) * - 18 ELSE - 1 END
----
1

skipif mysql # not compatible
query I rowsort label-4853
SELECT - CASE ( 54 ) WHEN 24 + + ( - 3 ) / + 26 THEN 57 + + SUM ( - 59 ) * - 18 ELSE - 1 END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT COUNT( * ) * - ( + COUNT( * ) * - 38 + 7 ) + ( 10 ) col2
----
41

skipif mysql # not compatible
query I rowsort label-4854
SELECT COUNT ( * ) * - ( + COUNT ( * ) * - 38 + 7 ) + ( 10 ) col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4855
SELECT 78 * - CASE COUNT( * ) + - 53 WHEN 55 + CAST( NULL AS SIGNED ) * - COALESCE ( 38, COUNT( + CAST( NULL AS SIGNED ) ) * - 73 - - MIN( DISTINCT 80 + 37 ) ) THEN COUNT( * ) * - MIN( 52 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4855
SELECT 78 * - CASE COUNT ( * ) + - 53 WHEN 55 + CAST ( NULL AS INTEGER ) * - COALESCE ( 38, COUNT ( + CAST ( NULL AS INTEGER ) ) * - 73 - - MIN ( DISTINCT 80 + 37 ) ) THEN COUNT ( * ) * - MIN ( 52 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT + COALESCE ( + COUNT( * ), + 35, - 95 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4856
SELECT + COALESCE ( + COUNT ( * ), + 35, - 95 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT + 83 * - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-4857
SELECT + 83 * - COUNT ( * )
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4858
SELECT + CAST( + ( - 72 ) AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-4858
SELECT + CAST ( + ( - 72 ) AS INTEGER )
----
-72

query I rowsort
SELECT ALL - 77 - - 64
----
-13

query I rowsort
SELECT - - 72 - + 25 AS col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4861
SELECT DISTINCT - 33 DIV 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT - 33 / 52 AS col0
----
0

query I rowsort
SELECT + 62 + ( + 99 + + 53 ) AS col0
----
214

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT - COUNT( ALL + 65 )
----
-1

skipif mysql # not compatible
query I rowsort label-4863
SELECT - COUNT ( ALL + 65 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ALL MAX( 78 )
----
78

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL MAX ( 78 )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4865
SELECT - CAST( NULL AS SIGNED ) + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4865
SELECT - CAST ( NULL AS INTEGER ) + 70 AS col0
----
NULL

query I rowsort
SELECT + 16 * 39 AS col0
----
624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT + 33 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT + 33 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT DISTINCT COALESCE ( + - COUNT( * ), 58 + - COUNT( * ) * 5 ) * + MIN( 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT COALESCE ( + - COUNT ( * ), 58 + - COUNT ( * ) * 5 ) * + MIN ( 46 )
----
-46

query I rowsort
SELECT DISTINCT ( + 84 ) * CASE + 66 WHEN 41 THEN + ( + 70 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 68 - 80 * 69 AS col0
----
-5452

query I rowsort
SELECT + 80 * - 36
----
-2880

query I rowsort
SELECT + 86 * + 3 AS col0
----
258

query I rowsort
SELECT DISTINCT 3 * - + 47
----
-141

query I rowsort
SELECT + 32 + 51 - 41 col0
----
42

query I rowsort
SELECT + 50 * - 46 AS col2
----
-2300

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT - CASE + 93 WHEN COUNT( * ) THEN COUNT( * ) + - 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT - CASE + 93 WHEN COUNT ( * ) THEN COUNT ( * ) + - 0 END
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 23, + 97, 68 + 81 ) + + 5
----
28

query I rowsort
SELECT + 38 + - 84 * 83 col2
----
-6934

query I rowsort
SELECT - 20 * + 55
----
-1100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4880
SELECT - CASE - + 13 WHEN 87 THEN - 16 WHEN + CAST( - 98 AS SIGNED ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4880
SELECT - CASE - + 13 WHEN 87 THEN - 16 WHEN + CAST ( - 98 AS INTEGER ) THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT + 46 * + 54 AS col2
----
2484

query I rowsort
SELECT ALL - 92 + - 76
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4883
SELECT + 84 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT + 84 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT + ( ( + CAST( NULL AS SIGNED ) ) ) + 41 * CASE 38 WHEN - 35 THEN NULL ELSE 20 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT + ( ( + CAST ( NULL AS INTEGER ) ) ) + 41 * CASE 38 WHEN - 35 THEN NULL ELSE 20 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT DISTINCT - CASE + - ( + COUNT( * ) ) WHEN + 88 * - 39 + - 19 * - 91 THEN NULL WHEN + 61 + - SUM( - 66 ) * COUNT( * ) THEN NULL ELSE 33 END * 72
----
-2376

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT - CASE + - ( + COUNT ( * ) ) WHEN + 88 * - 39 + - 19 * - 91 THEN NULL WHEN + 61 + - SUM ( - 66 ) * COUNT ( * ) THEN NULL ELSE 33 END * 72
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL + 24 * + 80 + 58 + - COALESCE ( COUNT( * ), 83 + - 78 )
----
1977

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL + 24 * + 80 + 58 + - COALESCE ( COUNT ( * ), 83 + - 78 )
----
1977

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT ALL 55 * + 24 * ( CASE COUNT( * ) WHEN - 95 * 2 + 61 THEN 57 * + 64 WHEN - ( + 55 ) * + 17 THEN NULL ELSE + 79 END ) + - 14 AS col0
----
104266

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL 55 * + 24 * ( CASE COUNT ( * ) WHEN - 95 * 2 + 61 THEN 57 * + 64 WHEN - ( + 55 ) * + 17 THEN NULL ELSE + 79 END ) + - 14 AS col0
----
104266

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT + - COUNT( * ) + - 35 + 4 * + ( NULLIF ( 85, 15 ) )
----
304

skipif mysql # not compatible
query I rowsort label-4888
SELECT + - COUNT ( * ) + - 35 + 4 * + ( NULLIF ( 85, 15 ) )
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT 36 * - COUNT( * ) - 45
----
-81

skipif mysql # not compatible
query I rowsort label-4889
SELECT 36 * - COUNT ( * ) - 45
----
-81

query I rowsort
SELECT - + 61 - - 91 * - 97 AS col0
----
-8888

query I rowsort
SELECT DISTINCT + ( + 62 ) col0
----
62

query I rowsort
SELECT - - ( + + 17 ) + - 99 * - 44 col0
----
4373

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT - COUNT( * ) * - - 90 + 65 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-4893
SELECT - COUNT ( * ) * - - 90 + 65 AS col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4894
SELECT DISTINCT - + COUNT( * ) * + - 22 * - ( + COALESCE ( 53, - ( MIN( + COALESCE ( ( 21 ), COALESCE ( 28, + 18 ) * ( + ( + 69 ) ) ) ) ) * 72 + + 23 ) DIV + ( - 53 ) ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT - + COUNT ( * ) * + - 22 * - ( + COALESCE ( 53, - ( MIN ( + COALESCE ( ( 21 ), COALESCE ( 28, + 18 ) * ( + ( + 69 ) ) ) ) ) * 72 + + 23 ) / + ( - 53 ) ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT DISTINCT - + 5 * - - ( - COUNT( * ) ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT - + 5 * - - ( - COUNT ( * ) ) AS col2
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4896
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / 49 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT - CAST ( NULL AS REAL ) / 49 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT - COUNT( * ) + + - 3
----
-4

skipif mysql # not compatible
query I rowsort label-4897
SELECT - COUNT ( * ) + + - 3
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT ALL - + 55 * COUNT( * ) - + 9
----
-64

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL - + 55 * COUNT ( * ) - + 9
----
-64

query I rowsort
SELECT ALL - - 88 * + ( + 30 )
----
2640

query I rowsort
SELECT COALESCE ( - 8, + 51 * 91 )
----
-8

query I rowsort
SELECT + 92 + + NULLIF ( + 27, + 41 ) + 61
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4902
SELECT ALL + CAST( + 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL + CAST ( + 55 AS INTEGER )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT DISTINCT + MIN( 49 )
----
49

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT + MIN ( 49 )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT DISTINCT CAST( AVG ( 57 ) AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT CAST ( AVG ( 57 ) AS INTEGER )
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4905
SELECT + 86 DIV - + 47
----
-1

skipif mysql # not compatible
query I rowsort label-4905
SELECT + 86 / - + 47
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4906
SELECT ALL MAX( + 45 ) DIV - CAST( ( 28 ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL MAX ( + 45 ) / - CAST ( ( 28 ) AS INTEGER ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4907
SELECT DISTINCT NULLIF ( NULLIF ( + 67, - 84 - - 96 ), 82 ) DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT NULLIF ( NULLIF ( + 67, - 84 - - 96 ), 82 ) / 89
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4908
SELECT DISTINCT + 41 DIV MAX( 97 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT + 41 / MAX ( 97 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4909
SELECT + 50 + - - 95 + 66 + + ( 73 ) * 74 DIV NULLIF ( + 42 DIV 7, + NULLIF ( 75, 5 ) ) * 73 AS col0
----
65911

skipif mysql # not compatible
query I rowsort label-4909
SELECT + 50 + - - 95 + 66 + + ( 73 ) * 74 / NULLIF ( + 42 / 7, + NULLIF ( 75, 5 ) ) * 73 AS col0
----
65911

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL + COUNT( * ) + + 80 - - 45 * 1 col0
----
126

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL + COUNT ( * ) + + 80 - - 45 * 1 col0
----
126

query I rowsort
SELECT + 26 * + 74 * + - 77
----
-148148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4912
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT - MAX( + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-4913
SELECT - MAX ( + 43 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT + COUNT( * ) + - - 29
----
30

skipif mysql # not compatible
query I rowsort label-4914
SELECT + COUNT ( * ) + - - 29
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4915
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 35 AS col0
----
NULL

query I rowsort
SELECT ALL 2 + 54 AS col1
----
56

query I rowsort
SELECT - CASE - 8 WHEN - COALESCE ( - 36, 52 * 40 ) THEN + 42 / + 18 WHEN + 27 + + 4 THEN NULL END
----
NULL

query I rowsort
SELECT + ( 78 ) + 84 - + 71 * + 33
----
-2181

query I rowsort
SELECT ALL 78 + + - 39 AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4920
SELECT + MAX( DISTINCT + + 81 ) + - - ( - 98 ) DIV 42 col0
----
79

skipif mysql # not compatible
query I rowsort label-4920
SELECT + MAX ( DISTINCT + + 81 ) + - - ( - 98 ) / 42 col0
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-4921
SELECT DISTINCT 84, 22 DIV + 50 AS col1
----
84
0

skipif mysql # not compatible
query II rowsort label-4921
SELECT DISTINCT 84, 22 / + 50 AS col1
----
84
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4922
SELECT DISTINCT + 78 + + COUNT( * ) + - 36 DIV 82 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT + 78 + + COUNT ( * ) + - 36 / 82 AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4923
SELECT ALL COUNT( * ), 15 AS col2
----
1
15

skipif mysql # not compatible
query II rowsort label-4923
SELECT ALL COUNT ( * ), 15 AS col2
----
1
15

query I rowsort
SELECT DISTINCT ( ( + + 76 ) ) + 25
----
101

query I rowsort
SELECT DISTINCT 76 + + - 3 * + 39 * 11 AS col0
----
-1211

onlyif mysql # DIV for integer division: 
query I rowsort label-4926
SELECT + + 71 DIV - 71 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4926
SELECT + + 71 / - 71 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT + COALESCE ( - + ( CASE WHEN NOT NULL IS NULL THEN + 52 WHEN NOT NULL <> ( COALESCE ( ( 1 ), 87 * - 16 ) + 66 * + 63 ) THEN NULL END ), - COUNT( ALL + 67 ) * - 3, - 59 ) + 77
----
80

skipif mysql # not compatible
query I rowsort label-4927
SELECT + COALESCE ( - + ( CASE WHEN NOT NULL IS NULL THEN + 52 WHEN NOT NULL <> ( COALESCE ( ( 1 ), 87 * - 16 ) + 66 * + 63 ) THEN NULL END ), - COUNT ( ALL + 67 ) * - 3, - 59 ) + 77
----
80

query I rowsort
SELECT 90 * 48 + - 15
----
4305

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4929
SELECT DISTINCT + CASE - CAST( - 66 AS SIGNED ) WHEN - ( 39 ) + + 86 THEN + 13 + CAST( - 28 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT + CASE - CAST ( - 66 AS INTEGER ) WHEN - ( 39 ) + + 86 THEN + 13 + CAST ( - 28 AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4930
SELECT ALL 15 DIV - - 67 - 77 * - ( 15 ) AS col2
----
1155

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL 15 / - - 67 - 77 * - ( 15 ) AS col2
----
1155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4931
SELECT ALL 34 * CASE 82 WHEN - COALESCE ( COALESCE ( - 13, + CAST( 54 AS SIGNED ) ), 55 ) - - 68 * + 99 THEN 29 - + COUNT( 99 + + 70 ) * - MIN( 19 * ( 28 / 43 ) - - 97 ) WHEN + COUNT( * ) THEN + ( 60 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL 34 * CASE 82 WHEN - COALESCE ( COALESCE ( - 13, + CAST ( 54 AS INTEGER ) ), 55 ) - - 68 * + 99 THEN 29 - + COUNT ( 99 + + 70 ) * - MIN ( 19 * ( 28 / 43 ) - - 97 ) WHEN + COUNT ( * ) THEN + ( 60 ) END
----
NULL

query I rowsort
SELECT - NULLIF ( + 84, + + 28 * + 94 ) * 1
----
-84

query I rowsort
SELECT ALL - + ( + - 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT DISTINCT + ( + NULLIF ( - 48, - COUNT( * ) ) ) * 38
----
-1824

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT + ( + NULLIF ( - 48, - COUNT ( * ) ) ) * 38
----
-1824

query I rowsort
SELECT + 27 * 67 * 65 * 10
----
1175850

query II rowsort
SELECT 4, 74 * - 35 AS col2
----
4
-2590

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT + 52 * + + 76 * - COUNT( * ) + ( - COUNT( * ) )
----
-3953

skipif mysql # not compatible
query I rowsort label-4937
SELECT + 52 * + + 76 * - COUNT ( * ) + ( - COUNT ( * ) )
----
-3953

query II rowsort
SELECT + + 10 AS col0, - 48 col1
----
10
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4939
SELECT - 76 + CASE 83 WHEN - CAST( + 66 AS SIGNED ) / - COALESCE ( 43, 35 - + COUNT( DISTINCT 35 + 18 ), 69 * + 81 ) THEN NULL ELSE - 13 END AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-4939
SELECT - 76 + CASE 83 WHEN - CAST ( + 66 AS INTEGER ) / - COALESCE ( 43, 35 - + COUNT ( DISTINCT 35 + 18 ), 69 * + 81 ) THEN NULL ELSE - 13 END AS col2
----
-89

query I rowsort
SELECT ALL - ( - 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT ALL - COUNT( * ) * - NULLIF ( + 22, + ( - 47 ) ) * 15 AS col2
----
330

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL - COUNT ( * ) * - NULLIF ( + 22, + ( - 47 ) ) * 15 AS col2
----
330

query I rowsort
SELECT 16 - - + 57 * + 83
----
4747

query I rowsort
SELECT 22 * + 34 col2
----
748

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT DISTINCT MIN( DISTINCT - 82 ) + + 69 + + - COALESCE ( COALESCE ( 12, - ( COUNT( * ) ) * - COUNT( * ) ), 29 + 69 ) + - NULLIF ( 41, MIN( ALL + 15 ) ) * + 14
----
-599

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT MIN ( DISTINCT - 82 ) + + 69 + + - COALESCE ( COALESCE ( 12, - ( COUNT ( * ) ) * - COUNT ( * ) ), 29 + 69 ) + - NULLIF ( 41, MIN ( ALL + 15 ) ) * + 14
----
-599

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT DISTINCT + 9 + ( - - ( + 71 ) ) * - CASE COUNT( * ) + COUNT( * ) WHEN - 66 THEN + 49 * 80 + ( - 26 + - 5 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT + 9 + ( - - ( + 71 ) ) * - CASE COUNT ( * ) + COUNT ( * ) WHEN - 66 THEN + 49 * 80 + ( - 26 + - 5 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4946
SELECT ALL + 36 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL + 36 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - 58 ) * + + CASE 24 WHEN 98 * 41 THEN 43 + 68 WHEN 70 THEN 24 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 15 + 29 * + CASE - - 35 WHEN 87 THEN 96 * + ( 48 ) END
----
NULL

query I rowsort
SELECT DISTINCT + ( + 83 ) + 69 AS col0
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT SUM( + + 78 ) - + 3 + 14 * + MAX( ALL + 54 )
----
831

skipif mysql # not compatible
query I rowsort label-4950
SELECT SUM ( + + 78 ) - + 3 + 14 * + MAX ( ALL + 54 )
----
831

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4951
SELECT COUNT( - - 33 ) / - ( - SUM( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4951
SELECT COUNT ( - - 33 ) / - ( - SUM ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4952
SELECT ALL + 92 + 68 * + + CASE - 80 WHEN - ( 42 ) * - CAST( 73 - 38 AS SIGNED ) THEN - 12 + 49 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL + 92 + 68 * + + CASE - 80 WHEN - ( 42 ) * - CAST ( 73 - 38 AS INTEGER ) THEN - 12 + 49 END AS col2
----
NULL

query I rowsort
SELECT ALL - 37 + + 21 + - 85 + + 16 - 73 AS col1
----
-158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4954
SELECT DISTINCT + 74 + CAST( NULL AS SIGNED ) - - 63 - - - 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT + 74 + CAST ( NULL AS INTEGER ) - - 63 - - - 8 AS col2
----
NULL

query I rowsort
SELECT 50 * + 55 * + + 74 AS col0
----
203500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4956
SELECT SUM( + 43 ) DIV - 27 - + 36 * 41 AS col2
----
-1477

skipif mysql # not compatible
query I rowsort label-4956
SELECT SUM ( + 43 ) / - 27 - + 36 * 41 AS col2
----
-1477

query I rowsort
SELECT 94 + + ( - + 70 ) AS col0
----
24

query I rowsort
SELECT ALL - + 88 * 14
----
-1232

query I rowsort
SELECT - 52 + - 86 col0
----
-138

query I rowsort
SELECT NULLIF ( + + 67, - 46 - - + 5 + - 19 )
----
67

query I rowsort
SELECT + 75 - - + 59 AS col1
----
134

query I rowsort
SELECT 32 * + 60
----
1920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4963
SELECT 63 + CAST( NULL AS SIGNED ) * + - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT 63 + CAST ( NULL AS INTEGER ) * + - 2 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4964
SELECT ALL + 15 DIV 87 * ( 44 ) * + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL + 15 / 87 * ( 44 ) * + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT - - 43 * + COUNT( * ) * + - 75 * - 37 + - 18 AS col2
----
119307

skipif mysql # not compatible
query I rowsort label-4965
SELECT - - 43 * + COUNT ( * ) * + - 75 * - 37 + - 18 AS col2
----
119307

query I rowsort
SELECT + - NULLIF ( - + 39, - 31 ) AS col2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4967
SELECT - ( - - COALESCE ( CAST( NULL AS SIGNED ), + 83 ) ) + 51 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-4967
SELECT - ( - - COALESCE ( CAST ( NULL AS INTEGER ), + 83 ) ) + 51 AS col0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-4968
SELECT - 92 DIV - + 55 - + 99 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-4968
SELECT - 92 / - + 55 - + 99 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT + COUNT( * ) * 71 + 89
----
160

skipif mysql # not compatible
query I rowsort label-4969
SELECT + COUNT ( * ) * 71 + 89
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT - MIN( - 75 ) + - 41
----
34

skipif mysql # not compatible
query I rowsort label-4970
SELECT - MIN ( - 75 ) + - 41
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT DISTINCT + 21 + - ( - MIN( + 64 ) ) + + 2 col2
----
87

skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT + 21 + - ( - MIN ( + 64 ) ) + + 2 col2
----
87

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4972
SELECT ALL - + ( - 38 ) AS col2, CAST( NULL AS DECIMAL ) AS col1
----
38
NULL

skipif mysql # not compatible
query II rowsort label-4972
SELECT ALL - + ( - 38 ) AS col2, CAST ( NULL AS REAL ) AS col1
----
38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT ALL - SUM( ALL + 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL - SUM ( ALL + 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL COUNT( * ) + 81 + - - 33 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL COUNT ( * ) + 81 + - - 33 AS col1
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4975
SELECT COUNT( * ) + - CAST( + 37 AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-4975
SELECT COUNT ( * ) + - CAST ( + 37 AS INTEGER )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4976
SELECT DISTINCT + 77 + NULLIF ( + + 81, - 24 * - 4 / - 44 + + 14 + + CAST( NULL AS SIGNED ) ) * - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT + 77 + NULLIF ( + + 81, - 24 * - 4 / - 44 + + 14 + + CAST ( NULL AS INTEGER ) ) * - COUNT ( * )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT - 87 * + + COUNT( * ) + + ( 82 )
----
-5

skipif mysql # not compatible
query I rowsort label-4977
SELECT - 87 * + + COUNT ( * ) + + ( 82 )
----
-5

query I rowsort
SELECT ALL ( + ( 5 ) ) + 0
----
5

query I rowsort
SELECT ALL + 68 + - 38 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT 59 * - 4 + - COUNT( * ) AS col2
----
-237

skipif mysql # not compatible
query I rowsort label-4980
SELECT 59 * - 4 + - COUNT ( * ) AS col2
----
-237

query I rowsort
SELECT NULLIF ( - 5, + 95 ) + + 58
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4982
SELECT ALL - 60 + CAST( NULL AS SIGNED ) * - + SUM( DISTINCT - 36 ) / - + ( + ( + 43 ) ) * + 69 + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL - 60 + CAST ( NULL AS INTEGER ) * - + SUM ( DISTINCT - 36 ) / - + ( + ( + 43 ) ) * + 69 + + 59
----
NULL

query I rowsort
SELECT ALL + 5 + + 52 + + 17 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT - MIN( DISTINCT 70 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-4984
SELECT - MIN ( DISTINCT 70 ) AS col0
----
-70

query I rowsort
SELECT DISTINCT + 87 * + 50 * + 59 * 33 AS col1
----
8469450

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT ALL 67 - - - ( COUNT( ALL - 59 ) )
----
66

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL 67 - - - ( COUNT ( ALL - 59 ) )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4987
SELECT ALL CAST( NULL AS SIGNED ) * - 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL CAST ( NULL AS INTEGER ) * - 44 AS col1
----
NULL

query I rowsort
SELECT 66 + 41
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4989
SELECT ALL + 61 - + SUM( + 61 ) AS col2, - CAST( - - 3 AS SIGNED ) col0
----
0
-3

skipif mysql # not compatible
query II rowsort label-4989
SELECT ALL + 61 - + SUM ( + 61 ) AS col2, - CAST ( - - 3 AS INTEGER ) col0
----
0
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4990
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), - 60 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4990
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), - 60 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT 82 + + COUNT( + 18 )
----
83

skipif mysql # not compatible
query I rowsort label-4991
SELECT 82 + + COUNT ( + 18 )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4992
SELECT ALL + CAST( NULL AS SIGNED ) - 30 + - 66 / + - 18 * + COUNT( * ) * NULLIF ( - 34, CAST( NULL AS SIGNED ) * 20 ) - + 56 * - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL + CAST ( NULL AS INTEGER ) - 30 + - 66 / + - 18 * + COUNT ( * ) * NULLIF ( - 34, CAST ( NULL AS INTEGER ) * 20 ) - + 56 * - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT + MIN( DISTINCT 71 ) col0
----
71

skipif mysql # not compatible
query I rowsort label-4993
SELECT + MIN ( DISTINCT 71 ) col0
----
71

query I rowsort
SELECT ( + - ( - - 70 ) ) + 13
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT - - CASE NULLIF ( + - COUNT( * ), - - COUNT( * ) / COUNT( * ) * - 33 + - 74 ) WHEN 1 THEN NULL ELSE 69 END * + 19 AS col1
----
1311

skipif mysql # not compatible
query I rowsort label-4995
SELECT - - CASE NULLIF ( + - COUNT ( * ), - - COUNT ( * ) / COUNT ( * ) * - 33 + - 74 ) WHEN 1 THEN NULL ELSE 69 END * + 19 AS col1
----
1311

query I rowsort
SELECT - - 5 * + + 72 - + - 46 AS col2
----
406

onlyif mysql # aggregate syntax: 
query II rowsort label-4997
SELECT ALL + COUNT( * ), 72 AS col0
----
1
72

skipif mysql # not compatible
query II rowsort label-4997
SELECT ALL + COUNT ( * ), 72 AS col0
----
1
72

onlyif mysql # aggregate syntax: 
query II rowsort label-4998
SELECT - + 32 AS col0, - 7 * - SUM( + - 26 ) - - 41 AS col0
----
-32
-141

skipif mysql # not compatible
query II rowsort label-4998
SELECT - + 32 AS col0, - 7 * - SUM ( + - 26 ) - - 41 AS col0
----
-32
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT - + COUNT( * ) * + - ( - COUNT( * ) ) * 73 * + COUNT( * ) - 81 AS col1
----
-154

skipif mysql # not compatible
query I rowsort label-4999
SELECT - + COUNT ( * ) * + - ( - COUNT ( * ) ) * 73 * + COUNT ( * ) - 81 AS col1
----
-154

onlyif mysql # aggregate syntax: 
query II rowsort label-5000
SELECT - 10 AS col1, ( + - COALESCE ( + - 1, COUNT( * ), NULLIF ( COUNT( * ), 18 ) * + 62 ) ) * COUNT( * ) AS col0
----
-10
1

skipif mysql # not compatible
query II rowsort label-5000
SELECT - 10 AS col1, ( + - COALESCE ( + - 1, COUNT ( * ), NULLIF ( COUNT ( * ), 18 ) * + 62 ) ) * COUNT ( * ) AS col0
----
-10
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5001
SELECT ALL - 49 DIV - MIN( ALL 25 ) + - - 86
----
87

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL - 49 / - MIN ( ALL 25 ) + - - 86
----
87

query II rowsort
SELECT ALL 39 * + 77 + + 59 AS col1, 33 * 43 AS col2
----
3062
1419

query I rowsort
SELECT - 43 * + 40 AS col1
----
-1720

query I rowsort
SELECT + - 47 + 45 col1
----
-2

query II rowsort
SELECT ALL + + 5 AS col0, + 49 AS col0
----
5
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT + NULLIF ( COALESCE ( - - 75, - MAX( - 35 ) + 2 * 14 ), 42 )
----
75

skipif mysql # not compatible
query I rowsort label-5006
SELECT + NULLIF ( COALESCE ( - - 75, - MAX ( - 35 ) + 2 * 14 ), 42 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT - - COUNT( * ) * + - 25
----
-25

skipif mysql # not compatible
query I rowsort label-5007
SELECT - - COUNT ( * ) * + - 25
----
-25

query I rowsort
SELECT + - CASE WHEN 11 <= ( NULL ) THEN 92 * - - 32 ELSE - 90 * - 14 END * 4
----
-5040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5009
SELECT CAST( - 80 AS SIGNED ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-5009
SELECT CAST ( - 80 AS INTEGER ) AS col1
----
-80

query I rowsort
SELECT DISTINCT + 52 * - - 6 + 18 + 31
----
361

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT ALL - COUNT( * ) * SUM( + 56 ) + - 14 * 14 * 59 AS col0
----
-11620

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL - COUNT ( * ) * SUM ( + 56 ) + - 14 * 14 * 59 AS col0
----
-11620

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT ALL - 78 * 29 + - 44 + - 34 + - - COUNT( * ) * + 18
----
-2322

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL - 78 * 29 + - 44 + - 34 + - - COUNT ( * ) * + 18
----
-2322

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT DISTINCT + COUNT( DISTINCT - 58 )
----
1

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT + COUNT ( DISTINCT - 58 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5014
SELECT ALL 39 * - 41 * - - 89 + - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL 39 * - 41 * - - 89 + - + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5015
SELECT ALL + 77, - COALESCE ( + 70, - 57 * - 68 * + - 23 * - 74, 77 + - 22 * + 18, MAX( 41 ) ) AS col1
----
77
-70

skipif mysql # not compatible
query II rowsort label-5015
SELECT ALL + 77, - COALESCE ( + 70, - 57 * - 68 * + - 23 * - 74, 77 + - 22 * + 18, MAX ( 41 ) ) AS col1
----
77
-70

query I rowsort
SELECT ALL + 79 * 34 + + + 78 - 23 + + 68
----
2809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5017
SELECT - CAST( NULL AS SIGNED ) * + - 81 + - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5017
SELECT - CAST ( NULL AS INTEGER ) * + - 81 + - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5018
SELECT + NULLIF ( + 39, - + 90 ) * - - COALESCE ( 55, + 20 DIV 92 ) * COUNT( * )
----
2145

skipif mysql # not compatible
query I rowsort label-5018
SELECT + NULLIF ( + 39, - + 90 ) * - - COALESCE ( 55, + 20 / 92 ) * COUNT ( * )
----
2145

query I rowsort
SELECT - 74 + ( - - 46 ) - - ( CASE WHEN NOT + ( 54 ) IS NOT NULL THEN 8 ELSE 66 END ) * - 20 AS col0
----
-1348

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT + CASE + - ( 90 ) WHEN + 94 + - COUNT( * ) THEN - + 59 * 65 WHEN + 70 / COALESCE ( + 7, 11 * + 5, - 5 + + 44 ) THEN NULL WHEN ( 51 ) * + 27 THEN 36 ELSE + 33 * - 84 END
----
-2772

skipif mysql # not compatible
query I rowsort label-5020
SELECT + CASE + - ( 90 ) WHEN + 94 + - COUNT ( * ) THEN - + 59 * 65 WHEN + 70 / COALESCE ( + 7, 11 * + 5, - 5 + + 44 ) THEN NULL WHEN ( 51 ) * + 27 THEN 36 ELSE + 33 * - 84 END
----
-2772

query II rowsort
SELECT ALL + 96 AS col1, + 49
----
96
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT + MAX( ALL + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-5022
SELECT + MAX ( ALL + 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT + ( - + 3 ) * + COUNT( * ) + + - 50 * + - 53 * + + 25 + - COUNT( * ) AS col2
----
66246

skipif mysql # not compatible
query I rowsort label-5023
SELECT + ( - + 3 ) * + COUNT ( * ) + + - 50 * + - 53 * + + 25 + - COUNT ( * ) AS col2
----
66246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5024
SELECT + 67 * CASE - 80 WHEN + 38 THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5024
SELECT + 67 * CASE - 80 WHEN + 38 THEN CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL 79 * - 42 * + 48 AS col2
----
-159264

query I rowsort
SELECT 10 * 17 + - 32 AS col0
----
138

query I rowsort
SELECT ALL - 36 * + 19 - 62 AS col2
----
-746

query I rowsort
SELECT DISTINCT ( - 25 ) * 47 + + 66
----
-1109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5029
SELECT DISTINCT - 29 DIV + - COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT - 29 / + - COUNT ( * ) AS col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5030
SELECT + COUNT( * ) * - COUNT( * ) DIV - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5030
SELECT + COUNT ( * ) * - COUNT ( * ) / - 75 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT SUM( ALL - 3 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-5031
SELECT SUM ( ALL - 3 ) AS col0
----
-3

query II rowsort
SELECT DISTINCT 28, + 52 AS col0
----
28
52

query I rowsort
SELECT + 84 + 52 AS col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT MAX( DISTINCT - + 68 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-5034
SELECT MAX ( DISTINCT - + 68 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT - COALESCE ( - 56, + 75 * COUNT( DISTINCT 68 ) + 52 )
----
56

skipif mysql # not compatible
query I rowsort label-5035
SELECT - COALESCE ( - 56, + 75 * COUNT ( DISTINCT 68 ) + 52 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT ALL MAX( DISTINCT 86 ) col0
----
86

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL MAX ( DISTINCT 86 ) col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT + ( - 16 ) * COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-5037
SELECT + ( - 16 ) * COUNT ( * )
----
-16

query II rowsort
SELECT ALL 70, + 90 * + - 26 col0
----
70
-2340

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5039
SELECT + ( + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT + ( + CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + - 21 * + - 83
----
1743

onlyif mysql # aggregate syntax: 
query II rowsort label-5041
SELECT - 65, COUNT( * ) + + - 57 + - - 67 AS col1
----
-65
11

skipif mysql # not compatible
query II rowsort label-5041
SELECT - 65, COUNT ( * ) + + - 57 + - - 67 AS col1
----
-65
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT DISTINCT - - 96 * COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-5042
SELECT DISTINCT - - 96 * COUNT ( * )
----
96

query I rowsort
SELECT DISTINCT - 20 * - - ( 12 ) AS col1
----
-240

query I rowsort
SELECT ALL COALESCE ( 61, + 58 * - - 31 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT - 97 * - 25 * + + COUNT( * )
----
2425

skipif mysql # not compatible
query I rowsort label-5045
SELECT - 97 * - 25 * + + COUNT ( * )
----
2425

query I rowsort
SELECT ALL - + ( 29 ) + - 50
----
-79

query I rowsort
SELECT + + 82 + - ( - 7 )
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-5048
SELECT - 72, - 12 DIV - - 3 AS col1
----
-72
-4

skipif mysql # not compatible
query II rowsort label-5048
SELECT - 72, - 12 / - - 3 AS col1
----
-72
-4

query I rowsort
SELECT - - 27 * 9 AS col2
----
243

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5050
SELECT ALL + + 41 + - CAST( NULL AS DECIMAL ) * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL + + 41 + - CAST ( NULL AS REAL ) * 93
----
NULL

query I rowsort
SELECT - ( 57 ) + 17 / - 42 - - CASE - 17 WHEN 75 / - 96 THEN NULL WHEN ( 46 ) * 89 THEN - 97 * - 44 ELSE NULL END + - 40 * 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT ALL - 55 * COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL - 55 * COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5053
SELECT DISTINCT - - COUNT( * ) DIV + + 91
----
0

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT - - COUNT ( * ) / + + 91
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5054
SELECT + MIN( - - 50 ), 24 AS col1
----
50
24

skipif mysql # not compatible
query II rowsort label-5054
SELECT + MIN ( - - 50 ), 24 AS col1
----
50
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5055
SELECT - 98 + - ( - COALESCE ( - 70, 17 * - 38 DIV 44 + - COUNT( * ) * + 58 ) ) AS col0
----
-168

skipif mysql # not compatible
query I rowsort label-5055
SELECT - 98 + - ( - COALESCE ( - 70, 17 * - 38 / 44 + - COUNT ( * ) * + 58 ) ) AS col0
----
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5056
SELECT 5 DIV + 10 + - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5056
SELECT 5 / + 10 + - + COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5057
SELECT DISTINCT - 2 DIV - 45 + ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT - 2 / - 45 + ( COUNT ( * ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5058
SELECT ALL + 19 DIV - - 40 * - 78 + + 18 col2
----
18

skipif mysql # not compatible
query I rowsort label-5058
SELECT ALL + 19 / - - 40 * - 78 + + 18 col2
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-5059
SELECT + MIN( ALL + + 36 ) AS col2, - 80
----
36
-80

skipif mysql # not compatible
query II rowsort label-5059
SELECT + MIN ( ALL + + 36 ) AS col2, - 80
----
36
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5060
SELECT ALL - NULLIF ( 59, 22 ) * - 72 * + NULLIF ( - COUNT( * ), + 45 ) * 69 + COUNT( + CAST( NULL AS SIGNED ) ) * + 49
----
-293112

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL - NULLIF ( 59, 22 ) * - 72 * + NULLIF ( - COUNT ( * ), + 45 ) * 69 + COUNT ( + CAST ( NULL AS INTEGER ) ) * + 49
----
-293112

onlyif mysql # aggregate syntax: 
query II rowsort label-5061
SELECT - COUNT( * ) + - + 21 AS col0, + SUM( + 37 ) AS col1
----
-22
37

skipif mysql # not compatible
query II rowsort label-5061
SELECT - COUNT ( * ) + - + 21 AS col0, + SUM ( + 37 ) AS col1
----
-22
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT ( - COALESCE ( + + COUNT( * ), + 96 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5062
SELECT ( - COALESCE ( + + COUNT ( * ), + 96 ) )
----
-1

query I rowsort
SELECT - 8 * + 3 * 82 AS col1
----
-1968

query II rowsort
SELECT + 14 * + 2 AS col0, 48 * 81 * 24
----
28
93312

onlyif mysql # DIV for integer division: 
query I rowsort label-5065
SELECT 33 * 5 DIV + 17 + - 8 * - 87 AS col2
----
705

skipif mysql # not compatible
query I rowsort label-5065
SELECT 33 * 5 / + 17 + - 8 * - 87 AS col2
----
705

query I rowsort
SELECT ( - + 55 ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT - COALESCE ( + - 92, COALESCE ( MIN( + - 3 ), + 57 ) - 21 + NULLIF ( 40, 80 ) * 67, COUNT( * ) ) + - 0 * + 69 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-5067
SELECT - COALESCE ( + - 92, COALESCE ( MIN ( + - 3 ), + 57 ) - 21 + NULLIF ( 40, 80 ) * 67, COUNT ( * ) ) + - 0 * + 69 AS col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5068
SELECT + CAST( + COUNT( * ) AS SIGNED ), - 38 - - CASE + 95 WHEN - 24 * - 60 + ( + 95 ) THEN 43 * + 56 WHEN + COALESCE ( 9, MIN( DISTINCT + 10 ) ) THEN + SUM( - 74 ) / - 85 ELSE NULL END + + 82 col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5068
SELECT + CAST ( + COUNT ( * ) AS INTEGER ), - 38 - - CASE + 95 WHEN - 24 * - 60 + ( + 95 ) THEN 43 * + 56 WHEN + COALESCE ( 9, MIN ( DISTINCT + 10 ) ) THEN + SUM ( - 74 ) / - 85 ELSE NULL END + + 82 col1
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5069
SELECT + 66 + - 39 - CAST( - 58 AS SIGNED ) DIV - - COUNT( * ) + - + NULLIF ( + - 97, 10 + + NULLIF ( ( - 35 ), + 95 ) )
----
182

skipif mysql # not compatible
query I rowsort label-5069
SELECT + 66 + - 39 - CAST ( - 58 AS INTEGER ) / - - COUNT ( * ) + - + NULLIF ( + - 97, 10 + + NULLIF ( ( - 35 ), + 95 ) )
----
182

query I rowsort
SELECT ALL 72 * 47 AS col2
----
3384

query I rowsort
SELECT 1 * + 26
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT MIN( - + 94 ) + + 30 + - - 30 * + 37
----
1046

skipif mysql # not compatible
query I rowsort label-5072
SELECT MIN ( - + 94 ) + + 30 + - - 30 * + 37
----
1046

query I rowsort
SELECT DISTINCT + ( - + 58 ) AS col2
----
-58

query I rowsort
SELECT ALL - - 90 * - 25 AS col1
----
-2250

onlyif mysql # DIV for integer division: 
query I rowsort label-5075
SELECT 72 * + + 95 + + 15 + - - 64 DIV - + 58 AS col2
----
6854

skipif mysql # not compatible
query I rowsort label-5075
SELECT 72 * + + 95 + + 15 + - - 64 / - + 58 AS col2
----
6854

query I rowsort
SELECT DISTINCT ( 2 ) * - 99
----
-198

query I rowsort
SELECT ALL + 91 + - - 52 + + + 23 + + + 96 * - ( + 13 ) + + - 98 AS col0
----
-1180

query I rowsort
SELECT ALL - 16 + - 44
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT - COUNT( * ) * - COUNT( * ) + - 12 - + 38 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-5079
SELECT - COUNT ( * ) * - COUNT ( * ) + - 12 - + 38 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT 38 + - + 35 + - - ( + 82 ) + + + 12 * - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-5080
SELECT 38 + - + 35 + - - ( + 82 ) + + + 12 * - COUNT ( * )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT 41 * - COUNT( * ) + 53 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-5081
SELECT 41 * - COUNT ( * ) + 53 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT - 4 + + CASE 63 WHEN 73 THEN - - 88 + 66 WHEN SUM( DISTINCT 64 ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5082
SELECT - 4 + + CASE 63 WHEN 73 THEN - - 88 + 66 WHEN SUM ( DISTINCT 64 ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT ALL 74 + COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL 74 + COUNT ( * ) AS col0
----
75

query I rowsort
SELECT DISTINCT + 97 + + 6 AS col1
----
103

query I rowsort
SELECT ALL 1 + + 48
----
49

query I rowsort
SELECT + 71 * + - 24 * + 46 + - 7 AS col0
----
-78391

query I rowsort
SELECT ALL - 64 + 21 - + 78 + + 47
----
-74

query I rowsort
SELECT ALL + 84 + 16 * - + 25 * - + 75
----
30084

query I rowsort
SELECT + 37 * + 60
----
2220

query I rowsort
SELECT 87 * 91 AS col1
----
7917

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5091
SELECT DISTINCT - CASE + - 91 WHEN 58 DIV 48 THEN - - 13 + + 29 ELSE 74 DIV - 21 + + MIN( DISTINCT 54 + 35 ) * - 10 END - + 24
----
869

skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT - CASE + - 91 WHEN 58 / 48 THEN - - 13 + + 29 ELSE 74 / - 21 + + MIN ( DISTINCT 54 + 35 ) * - 10 END - + 24
----
869

onlyif mysql # DIV for integer division: 
query I rowsort label-5092
SELECT 60 DIV - - 28 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5092
SELECT 60 / - - 28 AS col0
----
2

query II rowsort
SELECT DISTINCT - 2, + 84 AS col1
----
-2
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5094
SELECT DISTINCT COUNT( * ) - - + 53 DIV - 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5094
SELECT DISTINCT COUNT ( * ) - - + 53 / - 51 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT ALL + 46 DIV 3 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL + 46 / 3 AS col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5096
SELECT 50 DIV 70 * 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5096
SELECT 50 / 70 * 76 AS col1
----
0

query I rowsort
SELECT DISTINCT + 28 * - 67
----
-1876

onlyif mysql # aggregate syntax: 
query II rowsort label-5098
SELECT ALL - 31, - COUNT( * ) AS col0
----
-31
-1

skipif mysql # not compatible
query II rowsort label-5098
SELECT ALL - 31, - COUNT ( * ) AS col0
----
-31
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT DISTINCT + COUNT( * ) * + - 4 col1
----
-4

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT + COUNT ( * ) * + - 4 col1
----
-4

query I rowsort
SELECT 69 * + 12 AS col1
----
828

onlyif mysql # DIV for integer division: 
query I rowsort label-5101
SELECT ALL + 47 DIV + - 5
----
-9

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL + 47 / + - 5
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5102
SELECT - 92 * 47 + + COUNT( * ) AS col2, ( - 47 )
----
-4323
-47

skipif mysql # not compatible
query II rowsort label-5102
SELECT - 92 * 47 + + COUNT ( * ) AS col2, ( - 47 )
----
-4323
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5103
SELECT 76 DIV 49 col0
----
1

skipif mysql # not compatible
query I rowsort label-5103
SELECT 76 / 49 col0
----
1

query I rowsort
SELECT 47 * - 57
----
-2679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5105
SELECT 38, SUM( ALL - CAST( - - 61 AS SIGNED ) ) AS col1
----
38
-61

skipif mysql # not compatible
query II rowsort label-5105
SELECT 38, SUM ( ALL - CAST ( - - 61 AS INTEGER ) ) AS col1
----
38
-61

query I rowsort
SELECT 56 * - 58
----
-3248

query I rowsort
SELECT DISTINCT - 57 * - 73 AS col2
----
4161

query I rowsort
SELECT DISTINCT - NULLIF ( 29, + + 27 * - + 54 * - 75 + + 48 )
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-5109
SELECT ALL - COUNT( * ) AS col0, 62 + - 87 AS col0
----
-1
-25

skipif mysql # not compatible
query II rowsort label-5109
SELECT ALL - COUNT ( * ) AS col0, 62 + - 87 AS col0
----
-1
-25

query II rowsort
SELECT 29, 29 AS col1
----
29
29

query I rowsort
SELECT ALL - ( + - 76 )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5112
SELECT DISTINCT - 57 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT - 57 * - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT + 71 * + 58 + + + COUNT( CASE - 65 WHEN - 33 THEN 88 END ) + + - 1 * - 42
----
4160

skipif mysql # not compatible
query I rowsort label-5113
SELECT + 71 * + 58 + + + COUNT ( CASE - 65 WHEN - 33 THEN 88 END ) + + - 1 * - 42
----
4160

query I rowsort
SELECT + 52 * + 68
----
3536

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT 17 * - COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-5115
SELECT 17 * - COUNT ( * )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT + CASE - 17 WHEN - 58 THEN NULL WHEN 21 THEN + 52 * - COUNT( * ) + - NULLIF ( + - 86, 11 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT + CASE - 17 WHEN - 58 THEN NULL WHEN 21 THEN + 52 * - COUNT ( * ) + - NULLIF ( + - 86, 11 ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 87 + - 89 + 10
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT 82 * + CASE + + 33 WHEN + 91 THEN + + 91 * - + 99 * + COUNT( * ) / + 74 + + COUNT( * ) + + MIN( ALL - 75 ) / - 46 WHEN + 75 THEN NULL WHEN 60 THEN 84 * + 98 END + 14 + ( + ( COUNT( * ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5118
SELECT 82 * + CASE + + 33 WHEN + 91 THEN + + 91 * - + 99 * + COUNT ( * ) / + 74 + + COUNT ( * ) + + MIN ( ALL - 75 ) / - 46 WHEN + 75 THEN NULL WHEN 60 THEN 84 * + 98 END + 14 + ( + ( COUNT ( * ) ) ) AS col1
----
NULL

query II rowsort
SELECT ALL - 66, 63 AS col1
----
-66
63

query II rowsort
SELECT - - 55, 27 + 92 AS col2
----
55
119

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT 86 - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-5121
SELECT 86 - COUNT ( * )
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-5122
SELECT 47 AS col0, ( + 4 ) * 14 * - NULLIF ( + 88, - COUNT( * ) + - + 69 ) * 60 + 18 * 69
----
47
-294438

skipif mysql # not compatible
query II rowsort label-5122
SELECT 47 AS col0, ( + 4 ) * 14 * - NULLIF ( + 88, - COUNT ( * ) + - + 69 ) * 60 + 18 * 69
----
47
-294438

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5123
SELECT ALL + CAST( NULL AS SIGNED ) + - 74 + + COALESCE ( 59, - 34 ) + + + 71 * 68 * + 50 * - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL + CAST ( NULL AS INTEGER ) + - 74 + + COALESCE ( 59, - 34 ) + + + 71 * 68 * + 50 * - 62
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5124
SELECT CAST( NULL AS DECIMAL ) / - + 39 - + + ( - MAX( ALL - 58 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5124
SELECT CAST ( NULL AS REAL ) / - + 39 - + + ( - MAX ( ALL - 58 ) )
----
NULL

query I rowsort
SELECT + 59 + - + 47 * + NULLIF ( - 96, CASE - + 57 WHEN 74 * + 44 - 79 * ( - ( 14 ) / 76 ) THEN NULL ELSE 95 - - 31 END )
----
4571

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT DISTINCT + 77 * 8 * + COALESCE ( - 24, - 12 * - COUNT( + + 80 ) )
----
-14784

skipif mysql # not compatible
query I rowsort label-5126
SELECT DISTINCT + 77 * 8 * + COALESCE ( - 24, - 12 * - COUNT ( + + 80 ) )
----
-14784

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT ALL COUNT( * ) + + - 46
----
-45

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL COUNT ( * ) + + - 46
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL COUNT( + 95 )
----
1

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL COUNT ( + 95 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT ALL ( - - 79 ) * + 5 * + 20 * CASE 98 WHEN + 1 THEN - ( COUNT( * ) ) END * + 49 + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL ( - - 79 ) * + 5 * + 20 * CASE 98 WHEN + 1 THEN - ( COUNT ( * ) ) END * + 49 + 58 AS col1
----
NULL

query I rowsort
SELECT 12 + + - 4 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT NULLIF ( - 45, 88 + - - COUNT( * ) )
----
-45

skipif mysql # not compatible
query I rowsort label-5131
SELECT NULLIF ( - 45, 88 + - - COUNT ( * ) )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5132
SELECT - COUNT( * ) + + NULLIF ( - 59, - - CAST( - + 37 AS SIGNED ) ) * 85 * + 71
----
-356066

skipif mysql # not compatible
query I rowsort label-5132
SELECT - COUNT ( * ) + + NULLIF ( - 59, - - CAST ( - + 37 AS INTEGER ) ) * 85 * + 71
----
-356066

query II rowsort
SELECT ALL 80, - 56 AS col1
----
80
-56

query II rowsort
SELECT ALL + 60 col0, - 53
----
60
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT DISTINCT ( 69 ) - + 79 + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT ( 69 ) - + 79 + COUNT ( * )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5136
SELECT CAST( - 28 AS SIGNED ) + ( - CAST( NULL AS SIGNED ) ) * 53 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT CAST ( - 28 AS INTEGER ) + ( - CAST ( NULL AS INTEGER ) ) * 53 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5137
SELECT 15 * + + 87 * + 10 * - + NULLIF ( + - 95, - 85 ) + 32 DIV - COUNT( * ) AS col0
----
1239718

skipif mysql # not compatible
query I rowsort label-5137
SELECT 15 * + + 87 * + 10 * - + NULLIF ( + - 95, - 85 ) + 32 / - COUNT ( * ) AS col0
----
1239718

query I rowsort
SELECT ALL + 42 * + 52 AS col2
----
2184

query I rowsort
SELECT + COALESCE ( + 21, 88, 77 - 4 + + 59 * + 62 + + 92 * + 39 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT CASE + 56 WHEN 73 + - CASE + 91 WHEN + + ( - 67 ) THEN + + 87 ELSE 32 / - 77 - + SUM( ALL + 0 ) * - 69 END + - 38 * 33 THEN 0 ELSE + 79 * COUNT( * ) END
----
79

skipif mysql # not compatible
query I rowsort label-5140
SELECT CASE + 56 WHEN 73 + - CASE + 91 WHEN + + ( - 67 ) THEN + + 87 ELSE 32 / - 77 - + SUM ( ALL + 0 ) * - 69 END + - 38 * 33 THEN 0 ELSE + 79 * COUNT ( * ) END
----
79

query II rowsort
SELECT ALL 96 * + 30 AS col0, + 75 + 62 * + 27 - + + 82
----
2880
1667

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT + COUNT( * ) * + 63 * - 74
----
-4662

skipif mysql # not compatible
query I rowsort label-5142
SELECT + COUNT ( * ) * + 63 * - 74
----
-4662

onlyif mysql # aggregate syntax: 
query II rowsort label-5143
SELECT - 67 + - 14 AS col0, + 44 + + 95 + + MAX( DISTINCT + 87 ) + 55 * - + 32 AS col2
----
-81
-1534

skipif mysql # not compatible
query II rowsort label-5143
SELECT - 67 + - 14 AS col0, + 44 + + 95 + + MAX ( DISTINCT + 87 ) + 55 * - + 32 AS col2
----
-81
-1534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5144
SELECT + COALESCE ( + - ( 42 ), - CASE COUNT( * ) WHEN + 75 THEN NULL ELSE 74 * - + NULLIF ( + 64, - 92 * 57 ) * 85 END, CASE 71 WHEN ( CAST( + ( 45 ) AS SIGNED ) ) THEN COUNT( * ) WHEN COALESCE ( + 23, - 59 + 46 ) THEN + 63 * + 84 - 76 ELSE NULL END )
----
-42

skipif mysql # not compatible
query I rowsort label-5144
SELECT + COALESCE ( + - ( 42 ), - CASE COUNT ( * ) WHEN + 75 THEN NULL ELSE 74 * - + NULLIF ( + 64, - 92 * 57 ) * 85 END, CASE 71 WHEN ( CAST ( + ( 45 ) AS INTEGER ) ) THEN COUNT ( * ) WHEN COALESCE ( + 23, - 59 + 46 ) THEN + 63 * + 84 - 76 ELSE NULL END )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT + CASE + 80 WHEN + - 86 * + ( - ( - + 70 ) ) + - 29 * + 3 THEN - MIN( 89 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5145
SELECT + CASE + 80 WHEN + - 86 * + ( - ( - + 70 ) ) + - 29 * + 3 THEN - MIN ( 89 ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL 61 * 72 AS col0, 12 * - + 49
----
4392
-588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5147
SELECT ALL 69 * + - 65 + CAST( NULL AS SIGNED ) * NULLIF ( + - COUNT( + 27 ), 79 ) col2, 72 * 86 + CAST( NULL AS DECIMAL ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5147
SELECT ALL 69 * + - 65 + CAST ( NULL AS INTEGER ) * NULLIF ( + - COUNT ( + 27 ), 79 ) col2, 72 * 86 + CAST ( NULL AS REAL ) AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5148
SELECT DISTINCT COUNT( * ) * MAX( ALL + 3 ) + 52 + + 24 DIV - - 45 * + 15
----
55

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT COUNT ( * ) * MAX ( ALL + 3 ) + 52 + + 24 / - - 45 * + 15
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5149
SELECT - ( COALESCE ( 94, - 57 + + COUNT( * ) ) ) * - 39 + 93 * 74 + - - 61 + - 9 * + COALESCE ( - CAST( NULL AS SIGNED ), 94 ) * 20
----
-6311

skipif mysql # not compatible
query I rowsort label-5149
SELECT - ( COALESCE ( 94, - 57 + + COUNT ( * ) ) ) * - 39 + 93 * 74 + - - 61 + - 9 * + COALESCE ( - CAST ( NULL AS INTEGER ), 94 ) * 20
----
-6311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5150
SELECT - CAST( - COUNT( * ) AS SIGNED ) * 34 * - 90 AS col2
----
-3060

skipif mysql # not compatible
query I rowsort label-5150
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * 34 * - 90 AS col2
----
-3060

query I rowsort
SELECT DISTINCT - 42 + - 89 * + 98 AS col1
----
-8764

query II rowsort
SELECT - 77 + + 96 AS col2, 2
----
19
2

query I rowsort
SELECT ALL + - 10 + - - ( - - 97 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT ALL - - COUNT( * ) + - 50 * + 96 * + - 59
----
283201

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL - - COUNT ( * ) + - 50 * + 96 * + - 59
----
283201

query I rowsort
SELECT - 39 + - 3 col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5156
SELECT DISTINCT + CASE - + MIN( + 14 ) WHEN + + 61 + - + CAST( NULL AS DECIMAL ) THEN - 68 WHEN - + 62 THEN NULLIF ( 34, + 74 * SUM( - ( 7 ) ) + 63 * 24 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT + CASE - + MIN ( + 14 ) WHEN + + 61 + - + CAST ( NULL AS REAL ) THEN - 68 WHEN - + 62 THEN NULLIF ( 34, + 74 * SUM ( - ( 7 ) ) + 63 * 24 ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5157
SELECT ALL + 48 - - ( - - ( + + 30 ) ) col2, ( - 1 ) DIV - - NULLIF ( 99, 50 * 69 ) + - 24 * 53
----
78
-1272

skipif mysql # not compatible
query II rowsort label-5157
SELECT ALL + 48 - - ( - - ( + + 30 ) ) col2, ( - 1 ) / - - NULLIF ( 99, 50 * 69 ) + - 24 * 53
----
78
-1272

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT DISTINCT + + 68 - CASE + 56 WHEN + 77 THEN 39 - + 28 - + 7 + + 51 * - + 79 ELSE - COUNT( + 28 ) + 97 END AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT + + 68 - CASE + 56 WHEN + 77 THEN 39 - + 28 - + 7 + + 51 * - + 79 ELSE - COUNT ( + 28 ) + 97 END AS col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5159
SELECT - CAST( NULL AS SIGNED ) * - + ( - + 78 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5159
SELECT - CAST ( NULL AS INTEGER ) * - + ( - + 78 ) AS col2
----
NULL

query I rowsort
SELECT + - ( - 62 ) + - ( + - 17 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT ALL + 82 - - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL + 82 - - COUNT ( * ) AS col0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5162
SELECT ( ( CAST( 27 AS SIGNED ) ) )
----
27

skipif mysql # not compatible
query I rowsort label-5162
SELECT ( ( CAST ( 27 AS INTEGER ) ) )
----
27

query I rowsort
SELECT - - 43 * - + 87
----
-3741

query I rowsort
SELECT ALL - 32 * 57 + - + 75 + - 99 * 18 col0
----
-3681

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5165
SELECT DISTINCT + 74 - - + COALESCE ( + - 15, + 96 DIV NULLIF ( 61, + CASE + - 92 WHEN - 7 + + COUNT( * ) THEN + 94 ELSE NULL END ) ) - - COUNT( * ) * 41 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT + 74 - - + COALESCE ( + - 15, + 96 / NULLIF ( 61, + CASE + - 92 WHEN - 7 + + COUNT ( * ) THEN + 94 ELSE NULL END ) ) - - COUNT ( * ) * 41 AS col0
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5166
SELECT ALL COALESCE ( - 36, + - ( 27 ) * 84 * + 4, + 87 DIV + SUM( + 50 ) * CASE WHEN NULL NOT BETWEEN NULL AND NULL THEN NULL WHEN NOT MAX( 71 ) NOT BETWEEN MIN( ALL - 55 ) AND - 25 THEN 92 * 21 ELSE NULL END )
----
-36

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL COALESCE ( - 36, + - ( 27 ) * 84 * + 4, + 87 / + SUM ( + 50 ) * CASE WHEN NULL NOT BETWEEN NULL AND NULL THEN NULL WHEN NOT MAX ( 71 ) NOT BETWEEN MIN ( ALL - 55 ) AND - 25 THEN 92 * 21 ELSE NULL END )
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-5167
SELECT - COUNT( * ) AS col0, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-5167
SELECT - COUNT ( * ) AS col0, - COUNT ( * )
----
-1
-1

query I rowsort
SELECT ALL + 46 * 58 * + + ( 51 ) * - 76 * + 23 - 20
----
-237846884

query I rowsort
SELECT - 9 - - 11
----
2

query I rowsort
SELECT ALL 21 * + 13 * 64
----
17472

query I rowsort
SELECT - 85 * + + 13 AS col2
----
-1105

query II rowsort
SELECT 76, 65 + 85 AS col2
----
76
150

onlyif mysql # DIV for integer division: 
query I rowsort label-5173
SELECT - 3 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-5173
SELECT - 3 / + 76
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5174
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5174
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT + 85 * - NULLIF ( + - COALESCE ( - COUNT( ALL - 63 ), - 28 ), + + 9 + + + SUM( DISTINCT - + 9 ) ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-5175
SELECT + 85 * - NULLIF ( + - COALESCE ( - COUNT ( ALL - 63 ), - 28 ), + + 9 + + + SUM ( DISTINCT - + 9 ) ) AS col0
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5176
SELECT DISTINCT COUNT( * ) DIV + 96 * - 63 + - 42 * + 63 AS col0
----
-2646

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT COUNT ( * ) / + 96 * - 63 + - 42 * + 63 AS col0
----
-2646

query I rowsort
SELECT + 55 - + 7 + - - 81 col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT + CASE + ( - 12 ) WHEN + 94 + - 18 THEN + - 21 + - 6 + - 30 + + 43 + - 82 * - 99 * MAX( 34 * 14 ) * - 25 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5178
SELECT + CASE + ( - 12 ) WHEN + 94 + - 18 THEN + - 21 + - 6 + - 30 + + 43 + - 82 * - 99 * MAX ( 34 * 14 ) * - 25 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT + ( - 40 ) * - 14 AS col0, 16 + + 75
----
560
91

query I rowsort
SELECT + ( ( - 69 ) ) AS col2
----
-69

query I rowsort
SELECT + 84 * - 95
----
-7980

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5182
SELECT + CAST( NULL AS DECIMAL ) * - - 94 + - + MAX( - 26 ) * + COALESCE ( 77, - 48 + + SUM( ALL - 14 ) * - ( + 52 ) + + 79 ) * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT + CAST ( NULL AS REAL ) * - - 94 + - + MAX ( - 26 ) * + COALESCE ( 77, - 48 + + SUM ( ALL - 14 ) * - ( + 52 ) + + 79 ) * - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ALL COUNT( * ) * SUM( ALL + 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL COUNT ( * ) * SUM ( ALL + 13 ) AS col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-5184
SELECT + ( + - 49 ) DIV + 36 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5184
SELECT + ( + - 49 ) / + 36 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT COUNT( * ) * - - ( + - 63 ) - 89 + + 74
----
-78

skipif mysql # not compatible
query I rowsort label-5185
SELECT COUNT ( * ) * - - ( + - 63 ) - 89 + + 74
----
-78

query I rowsort
SELECT + - COALESCE ( + 29, 70 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT 99 * CASE - 70 WHEN - NULLIF ( + + 74, ( + + 55 ) ) THEN NULL WHEN + 57 + + - 2 THEN COUNT( * ) + 96 WHEN 20 THEN NULL ELSE NULL END + + 84 + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5187
SELECT 99 * CASE - 70 WHEN - NULLIF ( + + 74, ( + + 55 ) ) THEN NULL WHEN + 57 + + - 2 THEN COUNT ( * ) + 96 WHEN 20 THEN NULL ELSE NULL END + + 84 + 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5188
SELECT ALL - 2 * - CASE - ( + + 88 ) WHEN + 11 THEN NULL WHEN - CAST( + - MAX( + 17 ) AS SIGNED ) THEN - 28 * + COALESCE ( 97, SUM( 79 ) * + 2 ) END / 83 - - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL - 2 * - CASE - ( + + 88 ) WHEN + 11 THEN NULL WHEN - CAST ( + - MAX ( + 17 ) AS INTEGER ) THEN - 28 * + COALESCE ( 97, SUM ( 79 ) * + 2 ) END / 83 - - 35
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5189
SELECT + 94 DIV 80 * - 62 AS col2, + 99
----
-62
99

skipif mysql # not compatible
query II rowsort label-5189
SELECT + 94 / 80 * - 62 AS col2, + 99
----
-62
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5190
SELECT ALL - + 3 DIV 38 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL - + 3 / 38 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT DISTINCT - 94 * + 12 * - SUM( + 25 )
----
28200

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT - 94 * + 12 * - SUM ( + 25 )
----
28200

query I rowsort
SELECT ALL + 36 * - + 9
----
-324

onlyif mysql # DIV for integer division: 
query I rowsort label-5193
SELECT - + 72 DIV - 28
----
2

skipif mysql # not compatible
query I rowsort label-5193
SELECT - + 72 / - 28
----
2

query II rowsort
SELECT - 39 - - 68 * 11 AS col1, 42
----
709
42

query I rowsort
SELECT - 44 * - 83
----
3652

onlyif mysql # DIV for integer division: 
query III rowsort label-5196
SELECT ALL ( COALESCE ( + + 71, 14 ) ) AS col1, + 20 DIV 29 * 21 * - + 35 * 22 AS col0, + + 42 AS col1
----
71
0
42

skipif mysql # not compatible
query III rowsort label-5196
SELECT ALL ( COALESCE ( + + 71, 14 ) ) AS col1, + 20 / 29 * 21 * - + 35 * 22 AS col0, + + 42 AS col1
----
71
0
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT - ( - - COUNT( * ) ) * - - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5197
SELECT - ( - - COUNT ( * ) ) * - - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT - COUNT( * ) + - - 73
----
72

skipif mysql # not compatible
query I rowsort label-5198
SELECT - COUNT ( * ) + - - 73
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5199
SELECT DISTINCT CAST( ( + 21 ) AS SIGNED ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT CAST ( ( + 21 ) AS INTEGER ) AS col1
----
21

query I rowsort
SELECT 85 - - - 67
----
18

query I rowsort
SELECT ALL - 15 + 80 + 80 AS col0
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5202
SELECT 27 AS col0, + 64 * 13 + 23 - + + 61 + - COALESCE ( + COUNT( * ), - - 69 + - ( 5 ), + + 17 * - ( - 18 ) + 20 ) DIV 56 col1
----
27
794

skipif mysql # not compatible
query II rowsort label-5202
SELECT 27 AS col0, + 64 * 13 + 23 - + + 61 + - COALESCE ( + COUNT ( * ), - - 69 + - ( 5 ), + + 17 * - ( - 18 ) + 20 ) / 56 col1
----
27
794

query I rowsort
SELECT ALL + 52 + + - 40
----
12

query I rowsort
SELECT 75 + 62 col1
----
137

query II rowsort
SELECT DISTINCT 61, 24 AS col2
----
61
24

query I rowsort
SELECT ALL 43 * + 1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-5207
SELECT ALL COUNT( * ) + + 78 col2, 50 AS col0
----
79
50

skipif mysql # not compatible
query II rowsort label-5207
SELECT ALL COUNT ( * ) + + 78 col2, 50 AS col0
----
79
50

query I rowsort
SELECT + 42 * - 79 + - NULLIF ( 92, + + 39 ) AS col0
----
-3410

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT DISTINCT - 98 * - 81 * + + COUNT( * ) AS col0
----
7938

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT - 98 * - 81 * + + COUNT ( * ) AS col0
----
7938

onlyif mysql # DIV for integer division: 
query I rowsort label-5210
SELECT 25 DIV - 20 + 51 - 17 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-5210
SELECT 25 / - 20 + 51 - 17 AS col2
----
33

query I rowsort
SELECT 75 * + 10
----
750

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5212
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, CAST( NULL AS SIGNED ) col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5212
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) col1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5213
SELECT 84 * + 65 * + + CAST( + 88 AS SIGNED ) col0, - ( + 58 ) * CAST( 4 AS SIGNED )
----
480480
-232

skipif mysql # not compatible
query II rowsort label-5213
SELECT 84 * + 65 * + + CAST ( + 88 AS INTEGER ) col0, - ( + 58 ) * CAST ( 4 AS INTEGER )
----
480480
-232

query I rowsort
SELECT COALESCE ( + + 52, + + 77 - - 95 ) + + 50
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-5215
SELECT ALL 15 + - + 21 + + - 97 * - 75 * - 76 + + 40 DIV + COALESCE ( - 71, + - ( + ( + 15 ) ), 33 ) DIV 1 - 21
----
-552927

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL 15 + - + 21 + + - 97 * - 75 * - 76 + + 40 / + COALESCE ( - 71, + - ( + ( + 15 ) ), 33 ) / 1 - 21
----
-552927

query II rowsort
SELECT ALL - - 55 AS col2, 90 AS col0
----
55
90

query I rowsort
SELECT ALL 29 - + 85 + - - 38
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5218
SELECT ALL - + COUNT( * ) AS col1, + COUNT( 96 ) + + 6 + + 81 DIV + - 89 * - 87 AS col1
----
-1
7

skipif mysql # not compatible
query II rowsort label-5218
SELECT ALL - + COUNT ( * ) AS col1, + COUNT ( 96 ) + + 6 + + 81 / + - 89 * - 87 AS col1
----
-1
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5219
SELECT DISTINCT + + ( + - NULLIF ( 79, + 71 ) ) - - SUM( + ( 78 ) ) * - COUNT( * ) + + 0, 31 - - - 73 AS col0
----
-157
-42

skipif mysql # not compatible
query II rowsort label-5219
SELECT DISTINCT + + ( + - NULLIF ( 79, + 71 ) ) - - SUM ( + ( 78 ) ) * - COUNT ( * ) + + 0, 31 - - - 73 AS col0
----
-157
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-5220
SELECT + - 0, ( - 7 ) DIV 21
----
0
0

skipif mysql # not compatible
query II rowsort label-5220
SELECT + - 0, ( - 7 ) / 21
----
0
0

query I rowsort
SELECT - 42 * + 9 * - - 47 + - 42 * 7 AS col1
----
-18060

query III rowsort
SELECT + + 77, - 48 AS col1, - 3 AS col1
----
77
-48
-3

query I rowsort
SELECT + 62 * + 12 AS col1
----
744

query I rowsort
SELECT 10 * 49 + + 10
----
500

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT MAX( DISTINCT - - 80 ) + + + 84 + + COALESCE ( - 95, - + 26 ) col2
----
69

skipif mysql # not compatible
query I rowsort label-5225
SELECT MAX ( DISTINCT - - 80 ) + + + 84 + + COALESCE ( - 95, - + 26 ) col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5226
SELECT - 28 DIV - 40 - - 84 * + 21 AS col1
----
1764

skipif mysql # not compatible
query I rowsort label-5226
SELECT - 28 / - 40 - - 84 * + 21 AS col1
----
1764

query I rowsort
SELECT CASE - + 79 WHEN + 56 * - 43 THEN + 32 END + + 10 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5228
SELECT 70 DIV + + 92
----
0

skipif mysql # not compatible
query I rowsort label-5228
SELECT 70 / + + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT 40 * COUNT( 5 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-5229
SELECT 40 * COUNT ( 5 ) AS col2
----
40

query I rowsort
SELECT 76 + - ( 60 ) col1
----
16

query I rowsort
SELECT 95 + - 9
----
86

query I rowsort
SELECT ALL - 84 + + 72 - 18 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-5233
SELECT ALL + 29 * 70, CASE WHEN NOT - 13 IN ( 54 * + 40, COUNT( * ) ) THEN CASE 43 WHEN + 92 + 4 - 26 THEN - 27 WHEN - 20 * + 36 THEN NULL END END col0
----
2030
NULL

skipif mysql # not compatible
query II rowsort label-5233
SELECT ALL + 29 * 70, CASE WHEN NOT - 13 IN ( 54 * + 40, COUNT ( * ) ) THEN CASE 43 WHEN + 92 + 4 - 26 THEN - 27 WHEN - 20 * + 36 THEN NULL END END col0
----
2030
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5234
SELECT ALL 44 + + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL 44 + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 66 + + - 85 col1
----
-19

onlyif mysql # DIV for integer division: 
query II rowsort label-5236
SELECT ALL + 57 + + - 58, 35 + + 32 + ( 20 ) DIV + 61 AS col0
----
-1
67

skipif mysql # not compatible
query II rowsort label-5236
SELECT ALL + 57 + + - 58, 35 + + 32 + ( 20 ) / + 61 AS col0
----
-1
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL 38 + 78 * - NULLIF ( - COUNT( - 57 ), + MAX( + 74 ) )
----
116

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL 38 + 78 * - NULLIF ( - COUNT ( - 57 ), + MAX ( + 74 ) )
----
116

query I rowsort
SELECT 94 * + 54
----
5076

onlyif mysql # aggregate syntax: 
query II rowsort label-5239
SELECT ALL - 84 + ( - + ( - 83 ) ) + + - 13 * - - 67 + + COUNT( * ), 54 AS col2
----
-871
54

skipif mysql # not compatible
query II rowsort label-5239
SELECT ALL - 84 + ( - + ( - 83 ) ) + + - 13 * - - 67 + + COUNT ( * ), 54 AS col2
----
-871
54

query I rowsort
SELECT DISTINCT - 12 * + 45 AS col0
----
-540

query II rowsort
SELECT ( ( - ( COALESCE ( 21, - 27 ) ) ) ) - - 8, 27 + 6 + - - 12 + 17 + + 54 * 21 * + 8 AS col0
----
-13
9134

query I rowsort
SELECT 84 * + - 90 col0
----
-7560

query II rowsort
SELECT 20 * - - 58 AS col1, + 48 * - ( 49 ) * - ( + COALESCE ( - 86, + COALESCE ( - 11, + 34, + 24 ), + 44 * - 2 + 40 ) ) AS col0
----
1160
-202272

query I rowsort
SELECT ALL + 13 * - 59 - + 39
----
-806

onlyif mysql # DIV for integer division: 
query I rowsort label-5245
SELECT DISTINCT - 67 DIV + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT - 67 / + 96 AS col2
----
0

query I rowsort
SELECT ALL - + 3 * + + 6
----
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5247
SELECT DISTINCT - COUNT( * ) / - CAST( NULL AS DECIMAL ) + + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT - COUNT ( * ) / - CAST ( NULL AS REAL ) + + - 1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5248
SELECT ALL - + 94 * - - CAST( NULL AS SIGNED ) * + - ( 34 ) * + COALESCE ( + - 20, - MIN( 18 ) + 17 / - 96 ) - - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL - + 94 * - - CAST ( NULL AS INTEGER ) * + - ( 34 ) * + COALESCE ( + - 20, - MIN ( 18 ) + 17 / - 96 ) - - 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT - 19 * - + 76 + + + COALESCE ( 76, 88 * + SUM( ALL - 31 ) - + - 72 ) AS col1
----
1520

skipif mysql # not compatible
query I rowsort label-5249
SELECT - 19 * - + 76 + + + COALESCE ( 76, 88 * + SUM ( ALL - 31 ) - + - 72 ) AS col1
----
1520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5250
SELECT - 53 DIV 32 + - NULLIF ( 4, - COUNT( * ) ) * 9 + + 1 - - 38 + + 81 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5250
SELECT - 53 / 32 + - NULLIF ( 4, - COUNT ( * ) ) * 9 + + 1 - - 38 + + 81 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT + - 65 * - COUNT( DISTINCT - ( + + ( 18 ) ) ) - + 57
----
8

skipif mysql # not compatible
query I rowsort label-5251
SELECT + - 65 * - COUNT ( DISTINCT - ( + + ( 18 ) ) ) - + 57
----
8

query I rowsort
SELECT - 85 * 65 AS col0
----
-5525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5253
SELECT ALL - - ( + - COALESCE ( + 59, - - CASE SUM( ALL + 54 ) WHEN COALESCE ( 37, 68 ) + 39 THEN 4 DIV 50 WHEN 5 THEN NULL END + + 34 ) ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL - - ( + - COALESCE ( + 59, - - CASE SUM ( ALL + 54 ) WHEN COALESCE ( 37, 68 ) + 39 THEN 4 / 50 WHEN 5 THEN NULL END + + 34 ) ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT COUNT( * ) * - + 62
----
-62

skipif mysql # not compatible
query I rowsort label-5254
SELECT COUNT ( * ) * - + 62
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT ALL - + MIN( - + 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL - + MIN ( - + 19 ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT - CASE - 45 WHEN 67 THEN - - COUNT( * ) WHEN - - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5256
SELECT - CASE - 45 WHEN 67 THEN - - COUNT ( * ) WHEN - - COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT - 65 * COUNT( * ) + - CASE 37 WHEN + AVG ( DISTINCT - + 2 ) THEN + - 10 - + + AVG ( 20 ) + + COUNT( * ) WHEN + 38 THEN NULL END - 75 + 64 + NULLIF ( 26, 45 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5257
SELECT - 65 * COUNT ( * ) + - CASE 37 WHEN + AVG ( DISTINCT - + 2 ) THEN + - 10 - + + AVG ( 20 ) + + COUNT ( * ) WHEN + 38 THEN NULL END - 75 + 64 + NULLIF ( 26, 45 ) AS col0
----
NULL

query I rowsort
SELECT ALL - + ( 79 ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT + 35 * - COALESCE ( - - COALESCE ( + COUNT( * ), + 6 ), ( 48 ) ) * + NULLIF ( - SUM( DISTINCT + - 17 ), + ( ( + 45 ) ) - - COUNT( ALL 16 ) ) AS col2
----
-595

skipif mysql # not compatible
query I rowsort label-5259
SELECT + 35 * - COALESCE ( - - COALESCE ( + COUNT ( * ), + 6 ), ( 48 ) ) * + NULLIF ( - SUM ( DISTINCT + - 17 ), + ( ( + 45 ) ) - - COUNT ( ALL 16 ) ) AS col2
----
-595

query I rowsort
SELECT DISTINCT 74 * - - 17 AS col2
----
1258

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT CASE 42 WHEN 82 + - 2 * + - 78 THEN NULL WHEN + COUNT( * ) + + - SUM( DISTINCT - - 49 ) THEN NULLIF ( - COUNT( * ), + - 58 ) / SUM( 17 ) + + 6 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5261
SELECT CASE 42 WHEN 82 + - 2 * + - 78 THEN NULL WHEN + COUNT ( * ) + + - SUM ( DISTINCT - - 49 ) THEN NULLIF ( - COUNT ( * ), + - 58 ) / SUM ( 17 ) + + 6 END AS col2
----
NULL

query I rowsort
SELECT - 86 * - 9 col2
----
774

onlyif mysql # aggregate syntax: 
query II rowsort label-5263
SELECT + MIN( + 33 ) * + 37 AS col0, - 99 + 77 AS col0
----
1221
-22

skipif mysql # not compatible
query II rowsort label-5263
SELECT + MIN ( + 33 ) * + 37 AS col0, - 99 + 77 AS col0
----
1221
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5264
SELECT DISTINCT 98 + - CAST( NULL AS SIGNED ) + - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT 98 + - CAST ( NULL AS INTEGER ) + - 41 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 94, - 69 + - 94 AS col2
----
94
-163

query I rowsort
SELECT DISTINCT 3 + + ( 98 )
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-5267
SELECT 73 AS col2, ( - 74 ) - + COUNT( * ) AS col2
----
73
-75

skipif mysql # not compatible
query II rowsort label-5267
SELECT 73 AS col2, ( - 74 ) - + COUNT ( * ) AS col2
----
73
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5268
SELECT ALL 53, + MAX( - 44 ) DIV + - COUNT( * ) + - + 2 * + MIN( DISTINCT - + 3 ) AS col2
----
53
50

skipif mysql # not compatible
query II rowsort label-5268
SELECT ALL 53, + MAX ( - 44 ) / + - COUNT ( * ) + - + 2 * + MIN ( DISTINCT - + 3 ) AS col2
----
53
50

query I rowsort
SELECT ALL + 52 + + ( 90 ) AS col2
----
142

query II rowsort
SELECT - NULLIF ( - 60, 26 ) AS col1, + ( - + 61 )
----
60
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT + 96 + MAX( ALL + - ( - ( + 86 ) ) ) col0
----
182

skipif mysql # not compatible
query I rowsort label-5271
SELECT + 96 + MAX ( ALL + - ( - ( + 86 ) ) ) col0
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5272
SELECT - 61 * - - CAST( NULL AS SIGNED ) * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5272
SELECT - 61 * - - CAST ( NULL AS INTEGER ) * 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT - 78 - ( ( + 96 ) ) * COUNT( * ) AS col2
----
-174

skipif mysql # not compatible
query I rowsort label-5273
SELECT - 78 - ( ( + 96 ) ) * COUNT ( * ) AS col2
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT ALL MIN( ALL 39 ) - + 13 * - 86 AS col2
----
1157

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL MIN ( ALL 39 ) - + 13 * - 86 AS col2
----
1157

query I rowsort
SELECT + ( - 42 ) * 59 AS col2
----
-2478

query I rowsort
SELECT + 49 + + 43
----
92

query I rowsort
SELECT + 66 * + - 22
----
-1452

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5278
SELECT ALL COUNT( * ) DIV + - 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL COUNT ( * ) / + - 47 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5279
SELECT + 42 + + ( - COUNT( * ) ) DIV - 8 col1
----
42

skipif mysql # not compatible
query I rowsort label-5279
SELECT + 42 + + ( - COUNT ( * ) ) / - 8 col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT ALL COUNT( ALL + - 59 )
----
1

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL COUNT ( ALL + - 59 )
----
1

query I rowsort
SELECT ALL - 63 * + - 49 col0
----
3087

query I rowsort
SELECT - 18 + + + 72 - 25
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT ALL COUNT( ALL 22 ) - - 69 * + + 91
----
6280

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL COUNT ( ALL 22 ) - - 69 * + + 91
----
6280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5284
SELECT ALL + COUNT( * ) col2, - 67 * + COUNT( * ) * - NULLIF ( 86, + CAST( NULL AS SIGNED ) * COUNT( * ) - - 99 ) * 76 + - 2
----
1
437910

skipif mysql # not compatible
query II rowsort label-5284
SELECT ALL + COUNT ( * ) col2, - 67 * + COUNT ( * ) * - NULLIF ( 86, + CAST ( NULL AS INTEGER ) * COUNT ( * ) - - 99 ) * 76 + - 2
----
1
437910

query II rowsort
SELECT 26, - ( - 36 ) col1
----
26
36

query I rowsort
SELECT + - 9 + - 30
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT COUNT( 37 )
----
1

skipif mysql # not compatible
query I rowsort label-5287
SELECT COUNT ( 37 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5288
SELECT + - CAST( - - AVG ( DISTINCT 80 ) AS SIGNED ) AS col0, 67
----
-80
67

skipif mysql # not compatible
query II rowsort label-5288
SELECT + - CAST ( - - AVG ( DISTINCT 80 ) AS INTEGER ) AS col0, 67
----
-80
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT + + COUNT( ALL 50 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5289
SELECT + + COUNT ( ALL 50 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5290
SELECT ALL + + 84 * + + 26 * - CASE + - CAST( NULL AS SIGNED ) WHEN - 32 THEN + CAST( NULL AS SIGNED ) - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL + + 84 * + + 26 * - CASE + - CAST ( NULL AS INTEGER ) WHEN - 32 THEN + CAST ( NULL AS INTEGER ) - + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5291
SELECT 68 * - - 65 + - - 3 - CAST( 12 AS SIGNED ) AS col0
----
4411

skipif mysql # not compatible
query I rowsort label-5291
SELECT 68 * - - 65 + - - 3 - CAST ( 12 AS INTEGER ) AS col0
----
4411

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT - ( + MIN( DISTINCT 33 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-5292
SELECT - ( + MIN ( DISTINCT 33 ) )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT DISTINCT + + MIN( DISTINCT - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT + + MIN ( DISTINCT - 0 )
----
0

query II rowsort
SELECT + - 19 AS col1, 17
----
-19
17

query I rowsort
SELECT ALL 4 * 59 + - 50 col2
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT COUNT( * ) * + + COUNT( * ) + + 73 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-5296
SELECT COUNT ( * ) * + + COUNT ( * ) + + 73 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT - MIN( + + 38 ) - - 5
----
-33

skipif mysql # not compatible
query I rowsort label-5297
SELECT - MIN ( + + 38 ) - - 5
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5298
SELECT - + CAST( NULL AS SIGNED ) / + 56 + CAST( + ( 10 ) AS SIGNED ) + - + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5298
SELECT - + CAST ( NULL AS INTEGER ) / + 56 + CAST ( + ( 10 ) AS INTEGER ) + - + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT DISTINCT - 60 * COUNT( * ) * 41 * - CASE - ( - + ( + 51 ) ) WHEN - 74 / 94 * - MIN( ALL + 92 ) / + 71 * SUM( ALL 71 ) THEN 65 + 19 * 5 WHEN CASE 39 WHEN + 22 THEN - 28 END THEN 8 * + 54 END + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT DISTINCT - 60 * COUNT ( * ) * 41 * - CASE - ( - + ( + 51 ) ) WHEN - 74 / 94 * - MIN ( ALL + 92 ) / + 71 * SUM ( ALL 71 ) THEN 65 + 19 * 5 WHEN CASE 39 WHEN + 22 THEN - 28 END THEN 8 * + 54 END + 58 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT NULLIF ( NULLIF ( - - 8, ( - 50 ) + + - MAX( + 73 ) * - 23 ), + + 62 + CASE - 65 WHEN COUNT( * ) THEN NULL WHEN 8 THEN 49 WHEN - ( 47 ) * SUM( 43 ) THEN - 81 ELSE + 23 + + ( + 24 - 87 ) END )
----
8

skipif mysql # not compatible
query I rowsort label-5300
SELECT NULLIF ( NULLIF ( - - 8, ( - 50 ) + + - MAX ( + 73 ) * - 23 ), + + 62 + CASE - 65 WHEN COUNT ( * ) THEN NULL WHEN 8 THEN 49 WHEN - ( 47 ) * SUM ( 43 ) THEN - 81 ELSE + 23 + + ( + 24 - 87 ) END )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT - ( - ( 33 ) ) + - - COUNT( * ) * - 99
----
-66

skipif mysql # not compatible
query I rowsort label-5301
SELECT - ( - ( 33 ) ) + - - COUNT ( * ) * - 99
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5302
SELECT DISTINCT NULLIF ( + - CAST( NULL AS SIGNED ), + - ( 84 ) - + - 50 ) * 93 + - 56 + 61 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT NULLIF ( + - CAST ( NULL AS INTEGER ), + - ( 84 ) - + - 50 ) * 93 + - 56 + 61 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5303
SELECT 57 * CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) * 80 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5303
SELECT 57 * CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) * 80 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT ALL ( - COUNT( - 76 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL ( - COUNT ( - 76 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT MIN( - - 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-5305
SELECT MIN ( - - 81 ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT - MIN( ALL - 71 ) * - COUNT( DISTINCT + 51 ) + 29
----
-42

skipif mysql # not compatible
query I rowsort label-5306
SELECT - MIN ( ALL - 71 ) * - COUNT ( DISTINCT + 51 ) + 29
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-5307
SELECT + 78 + + + 19 * 90 DIV + 31 AS col2
----
133

skipif mysql # not compatible
query I rowsort label-5307
SELECT + 78 + + + 19 * 90 / + 31 AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT ALL COUNT( * ) * + + COUNT( * ) * + + 22 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL COUNT ( * ) * + + COUNT ( * ) * + + 22 AS col1
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-5309
SELECT + 55 + + 7 + + + 4 DIV + - 27
----
62

skipif mysql # not compatible
query I rowsort label-5309
SELECT + 55 + + 7 + + + 4 / + - 27
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT - NULLIF ( - COUNT( * ), + 27 + 72 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5310
SELECT - NULLIF ( - COUNT ( * ), + 27 + 72 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT DISTINCT + MIN( ALL ( + 76 ) ) * + - ( - - 54 ) * - + 33
----
135432

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT + MIN ( ALL ( + 76 ) ) * + - ( - - 54 ) * - + 33
----
135432

query II rowsort
SELECT + 18 - + 60 AS col0, + 38
----
-42
38

query I rowsort
SELECT + 92 * + + ( 22 ) * - + ( 11 ) AS col2
----
-22264

query II rowsort
SELECT + + 55 - 42 AS col2, + 58
----
13
58

query I rowsort
SELECT + - 64 * - 71 + + - 47 + - 52 * + 26 + + - 45
----
3100

query I rowsort
SELECT + + 5 * - - 24 * 72 AS col0
----
8640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5317
SELECT ALL 44 / + SUM( ALL - + 78 ) + - 74 + CAST( NULL AS SIGNED ) * 72 + ( + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL 44 / + SUM ( ALL - + 78 ) + - 74 + CAST ( NULL AS INTEGER ) * 72 + ( + + COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5318
SELECT ALL - 85 DIV + 27 + - 48
----
-51

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL - 85 / + 27 + - 48
----
-51

query I rowsort
SELECT - 73 * - 45 - - 32 AS col2
----
3317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5320
SELECT + + NULLIF ( NULLIF ( + CAST( 36 AS SIGNED ), - - ( + 65 ) * + 95 + COUNT( * ) ), - 4 * 35 * + - NULLIF ( + 92, + COALESCE ( 31, - COUNT( * ) / + 75 ) ) + + 95 )
----
36

skipif mysql # not compatible
query I rowsort label-5320
SELECT + + NULLIF ( NULLIF ( + CAST ( 36 AS INTEGER ), - - ( + 65 ) * + 95 + COUNT ( * ) ), - 4 * 35 * + - NULLIF ( + 92, + COALESCE ( 31, - COUNT ( * ) / + 75 ) ) + + 95 )
----
36

query I rowsort
SELECT + 56 * - 63 AS col1
----
-3528

query I rowsort
SELECT 79 * + + 13 + 45 + + 63 col1
----
1135

query I rowsort
SELECT + - CASE - - 70 WHEN + 17 * - AVG ( + + 6 ) + + + 0 THEN - ( 8 ) ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5324
SELECT + CASE + + 86 WHEN COUNT( * ) THEN NULL ELSE - + 19 + - 2 + + CAST( NULL AS SIGNED ) * - 72 + + CASE - COUNT( * ) WHEN + 82 - + + COALESCE ( 11, 24 ) + + - 96 * 10 THEN 60 + COUNT( * ) END + - 45 END * 47 - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT + CASE + + 86 WHEN COUNT ( * ) THEN NULL ELSE - + 19 + - 2 + + CAST ( NULL AS INTEGER ) * - 72 + + CASE - COUNT ( * ) WHEN + 82 - + + COALESCE ( 11, 24 ) + + - 96 * 10 THEN 60 + COUNT ( * ) END + - 45 END * 47 - 16 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5325
SELECT ALL + 70 + - SUM( DISTINCT - 95 ) DIV - 39
----
68

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL + 70 + - SUM ( DISTINCT - 95 ) / - 39
----
68

query I rowsort
SELECT 79 * 98 AS col1
----
7742

query II rowsort
SELECT + 43 AS col1, + 30 AS col0
----
43
30

query I rowsort
SELECT 89 * - 56 - + 5
----
-4989

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT COUNT( * ) * + - 87 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-5329
SELECT COUNT ( * ) * + - 87 AS col2
----
-87

query I rowsort
SELECT 75 + + - 44 AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5331
SELECT 10 / - CAST( + 91 AS SIGNED ) * + CASE + CASE ( + COUNT( DISTINCT + 47 ) ) WHEN + 94 THEN + ( 1 ) ELSE - 82 * - 44 + + 39 END WHEN 29 THEN + 17 END - - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT 10 / - CAST ( + 91 AS INTEGER ) * + CASE + CASE ( + COUNT ( DISTINCT + 47 ) ) WHEN + 94 THEN + ( 1 ) ELSE - 82 * - 44 + + 39 END WHEN 29 THEN + 17 END - - 44
----
NULL

query I rowsort
SELECT 85 + - 54 * - 37 + - 62 * + - 68 col2
----
6299

query II rowsort
SELECT 23 + - - NULLIF ( - 68, 43 * 77 ) AS col2, 61 + 82 * - 10
----
-45
-759

query II rowsort
SELECT DISTINCT 59 AS col1, + 23
----
59
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT DISTINCT + 8 * + - COUNT( * ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-5335
SELECT DISTINCT + 8 * + - COUNT ( * ) AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5336
SELECT 10 - - 86 + + + 90 * - 73 + + ( - ( + 16 ) ) + + SUM( ( - CAST( NULL AS SIGNED ) ) ) / - 93 * + COUNT( * ) * 0 AS col1, + 67 + - + 22 + + 33 * 6 AS col2
----
NULL
243

skipif mysql # not compatible
query II rowsort label-5336
SELECT 10 - - 86 + + + 90 * - 73 + + ( - ( + 16 ) ) + + SUM ( ( - CAST ( NULL AS INTEGER ) ) ) / - 93 * + COUNT ( * ) * 0 AS col1, + 67 + - + 22 + + 33 * 6 AS col2
----
NULL
243

query I rowsort
SELECT ALL + 90 - - 47
----
137

query I rowsort
SELECT 19 + ( 18 )
----
37

query I rowsort
SELECT 0 + + + 9 AS col1
----
9

query I rowsort
SELECT 9 + + 31 * - 26 col0
----
-797

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5341
SELECT 51 - COUNT( ALL - + 21 ) DIV + 62
----
51

skipif mysql # not compatible
query I rowsort label-5341
SELECT 51 - COUNT ( ALL - + 21 ) / + 62
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT DISTINCT + 71 * + 33 + 54 + 50 + - COUNT( * ) * - COUNT( * )
----
2448

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT + 71 * + 33 + 54 + 50 + - COUNT ( * ) * - COUNT ( * )
----
2448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5343
SELECT - 65 + - + 78 + + COUNT( * ), + 96 - CAST( - ( - - 67 ) AS SIGNED ) DIV COUNT( * ) AS col0
----
-142
163

skipif mysql # not compatible
query II rowsort label-5343
SELECT - 65 + - + 78 + + COUNT ( * ), + 96 - CAST ( - ( - - 67 ) AS INTEGER ) / COUNT ( * ) AS col0
----
-142
163

query II rowsort
SELECT DISTINCT + 35, 9 * - 88 + + 90 AS col2
----
35
-702

query I rowsort
SELECT 23 + 63 * 65
----
4118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5346
SELECT - CAST( - - 74 AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-5346
SELECT - CAST ( - - 74 AS INTEGER )
----
-74

query I rowsort
SELECT DISTINCT + NULLIF ( - - 24, - + 12 * - 47 + 84 ) + ( + CASE - - 63 WHEN 90 / + + 58 * + 4 THEN - - 24 END ) AS col0
----
NULL

query I rowsort
SELECT + 32 * - 39 AS col1
----
-1248

query I rowsort
SELECT DISTINCT ( - 93 ) + 53 * 66 * - + 0 * + 57 AS col2
----
-93

query II rowsort
SELECT ALL - 89 AS col0, + 98 AS col0
----
-89
98

query I rowsort
SELECT - 54 + + + 22 AS col1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-5352
SELECT 48 DIV - - 3
----
16

skipif mysql # not compatible
query I rowsort label-5352
SELECT 48 / - - 3
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT MAX( - 42 ) + - 76 * 91
----
-6958

skipif mysql # not compatible
query I rowsort label-5353
SELECT MAX ( - 42 ) + - 76 * 91
----
-6958

onlyif mysql # aggregate syntax: 
query III rowsort label-5354
SELECT DISTINCT NULLIF ( COUNT( + 99 ), - 92 * + NULLIF ( - 57, + - 6 + + - COUNT( * ) * + - 12 ) ) + - - 65 AS col2, - 6, - CASE + 81 WHEN - + 89 * - 88 THEN + 33 / + 65 WHEN 47 + ( 92 ) THEN 24 END - - 58 AS col0
----
66
-6
NULL

skipif mysql # not compatible
query III rowsort label-5354
SELECT DISTINCT NULLIF ( COUNT ( + 99 ), - 92 * + NULLIF ( - 57, + - 6 + + - COUNT ( * ) * + - 12 ) ) + - - 65 AS col2, - 6, - CASE + 81 WHEN - + 89 * - 88 THEN + 33 / + 65 WHEN 47 + ( 92 ) THEN 24 END - - 58 AS col0
----
66
-6
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5355
SELECT DISTINCT - 94 DIV 32
----
-2

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT - 94 / 32
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5356
SELECT CAST( + ( - 94 ) AS SIGNED ) * - 72 * - 88 AS col0
----
-595584

skipif mysql # not compatible
query I rowsort label-5356
SELECT CAST ( + ( - 94 ) AS INTEGER ) * - 72 * - 88 AS col0
----
-595584

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT ALL - CASE - - 54 WHEN - + AVG ( DISTINCT + 54 ) * + + MIN( 71 ) THEN + - 78 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL - CASE - - 54 WHEN - + AVG ( DISTINCT + 54 ) * + + MIN ( 71 ) THEN + - 78 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5358
SELECT CAST( + CASE - 49 WHEN COUNT( * ) THEN + 55 END AS SIGNED ) + 9 * 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5358
SELECT CAST ( + CASE - 49 WHEN COUNT ( * ) THEN + 55 END AS INTEGER ) + 9 * 81 AS col0
----
NULL

query I rowsort
SELECT ALL 74 - - - 99 AS col1
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5360
SELECT + 40 AS col2, - 37 * - COALESCE ( + COUNT( * ), AVG ( ALL - 66 ) DIV - COUNT( * ) * - + 29 DIV 71 )
----
40
37

skipif mysql # not compatible
query II rowsort label-5360
SELECT + 40 AS col2, - 37 * - COALESCE ( + COUNT ( * ), AVG ( ALL - 66 ) / - COUNT ( * ) * - + 29 / 71 )
----
40
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5361
SELECT CAST( COUNT( ALL + + 86 ) AS SIGNED ) * - 4 + - 69 DIV + + 64 + + 89 * - 59 + 53 AS col1
----
-5203

skipif mysql # not compatible
query I rowsort label-5361
SELECT CAST ( COUNT ( ALL + + 86 ) AS INTEGER ) * - 4 + - 69 / + + 64 + + 89 * - 59 + 53 AS col1
----
-5203

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT 14 * - COUNT( * ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-5362
SELECT 14 * - COUNT ( * ) col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5363
SELECT ALL - COALESCE ( + 44, - COUNT( - 30 ) * + SUM( DISTINCT 90 ) + - + CAST( - + COUNT( * ) AS SIGNED ) + + 98 ) AS col0, + 18 * - 67 * - NULLIF ( - ( 21 ), 75 * 99 ) * 35 + 4
----
-44
-886406

skipif mysql # not compatible
query II rowsort label-5363
SELECT ALL - COALESCE ( + 44, - COUNT ( - 30 ) * + SUM ( DISTINCT 90 ) + - + CAST ( - + COUNT ( * ) AS INTEGER ) + + 98 ) AS col0, + 18 * - 67 * - NULLIF ( - ( 21 ), 75 * 99 ) * 35 + 4
----
-44
-886406

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5364
SELECT - CAST( NULL AS DECIMAL ) * - 66 + - NULLIF ( 70, - 95 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5364
SELECT - CAST ( NULL AS REAL ) * - 66 + - NULLIF ( 70, - 95 ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 62, - 23 AS col2
----
-62
-23

query II rowsort
SELECT DISTINCT - 36 AS col1, - 76 AS col0
----
-36
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT - 71 * COUNT( * ) * + 59 + + 25 * 72
----
-2389

skipif mysql # not compatible
query I rowsort label-5367
SELECT - 71 * COUNT ( * ) * + 59 + + 25 * 72
----
-2389

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5368
SELECT ALL - CAST( NULL AS DECIMAL ) * + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL - CAST ( NULL AS REAL ) * + - 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT 29 * + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-5369
SELECT 29 * + + COUNT ( * )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5370
SELECT 45 + - 56 DIV + 15 + 58 - - + ( + 81 ) DIV + 54 AS col1
----
101

skipif mysql # not compatible
query I rowsort label-5370
SELECT 45 + - 56 / + 15 + 58 - - + ( + 81 ) / + 54 AS col1
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-5371
SELECT ALL COUNT( DISTINCT + 86 ) AS col0, - 29 * - - 91
----
1
-2639

skipif mysql # not compatible
query II rowsort label-5371
SELECT ALL COUNT ( DISTINCT + 86 ) AS col0, - 29 * - - 91
----
1
-2639

query II rowsort
SELECT ALL - NULLIF ( + - 12, - 92 ) * + 40 col0, - 76 + - 6 + + 83 + 85 * COALESCE ( - 97, + 2 ) AS col2
----
480
-8244

query I rowsort
SELECT 19 * + 77 AS col2
----
1463

query I rowsort
SELECT 54 + - 9
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT - + MAX( - 51 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-5375
SELECT - + MAX ( - 51 ) col2
----
51

query I rowsort
SELECT ALL + 42 * + 3 * + 34 AS col1
----
4284

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT COUNT( * ) * 68 - + - 0 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-5377
SELECT COUNT ( * ) * 68 - + - 0 AS col1
----
68

query I rowsort
SELECT DISTINCT - 50 + - + 14 * 70 + + 46 AS col1
----
-984

query I rowsort
SELECT ALL + + 10 + - 71
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT - 16 - - + SUM( 82 )
----
66

skipif mysql # not compatible
query I rowsort label-5380
SELECT - 16 - - + SUM ( 82 )
----
66

query II rowsort
SELECT - - 83 AS col2, + 33
----
83
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT - 29 - - COUNT( * ) col1
----
-28

skipif mysql # not compatible
query I rowsort label-5382
SELECT - 29 - - COUNT ( * ) col1
----
-28

query II rowsort
SELECT + 99 * + 70 AS col2, - 62 * - - 49 + + + ( - + ( - 32 ) ) - + 62
----
6930
-3068

query II rowsort
SELECT - + 48 AS col0, + 52
----
-48
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT + - 40 + - - 65 * COUNT( * ) - - ( - 67 ) * - ( - - 46 )
----
3107

skipif mysql # not compatible
query I rowsort label-5385
SELECT + - 40 + - - 65 * COUNT ( * ) - - ( - 67 ) * - ( - - 46 )
----
3107

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5386
SELECT DISTINCT - 35 AS col2, CAST( NULL AS DECIMAL )
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-5386
SELECT DISTINCT - 35 AS col2, CAST ( NULL AS REAL )
----
-35
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT ALL + 54 * + 0 + - 56 - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL + 54 * + 0 + - 56 - COUNT ( * )
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-5388
SELECT - + ( COUNT( 22 ) ) * 95 AS col1, - COUNT( - 12 )
----
-95
-1

skipif mysql # not compatible
query II rowsort label-5388
SELECT - + ( COUNT ( 22 ) ) * 95 AS col1, - COUNT ( - 12 )
----
-95
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5389
SELECT ALL - - 5 * - 73 - - COUNT( * ) + - 1 AS col1, 71
----
-365
71

skipif mysql # not compatible
query II rowsort label-5389
SELECT ALL - - 5 * - 73 - - COUNT ( * ) + - 1 AS col1, 71
----
-365
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5390
SELECT + CAST( NULL AS DECIMAL ) * SUM( ALL + 40 ) * 84 * - 15 - + ( + 15 ) + - ( - 95 ) / - - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5390
SELECT + CAST ( NULL AS REAL ) * SUM ( ALL + 40 ) * 84 * - 15 - + ( + 15 ) + - ( - 95 ) / - - 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5391
SELECT + 38 DIV - - COUNT( * ) + 38 + + 71 + + + 2 DIV + 86 - + ( - 21 ) + + - 26 - + 81 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-5391
SELECT + 38 / - - COUNT ( * ) + 38 + + 71 + + + 2 / + 86 - + ( - 21 ) + + - 26 - + 81 AS col2
----
61

query II rowsort
SELECT + 2 * + 92 AS col1, 39
----
184
39

query II rowsort
SELECT COALESCE ( + 24, 16 ), + 34 AS col1
----
24
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5394
SELECT + 62 DIV - ( - + SUM( - + 98 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5394
SELECT + 62 / - ( - + SUM ( - + 98 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT + COUNT( - + 80 ) * - + 79 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-5395
SELECT + COUNT ( - + 80 ) * - + 79 AS col0
----
-79

query I rowsort
SELECT - 24 * - 11 * - 87 - - 70
----
-22898

query I rowsort
SELECT + 43 * + 93 AS col2
----
3999

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT 8 * + + ( + 81 ) + - 80 + + - COUNT( * ) + + NULLIF ( - 84, - + 83 ) AS col0
----
483

skipif mysql # not compatible
query I rowsort label-5398
SELECT 8 * + + ( + 81 ) + - 80 + + - COUNT ( * ) + + NULLIF ( - 84, - + 83 ) AS col0
----
483

query I rowsort
SELECT ALL 14 * 29
----
406

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT - 30 * + - 84 + - COUNT( * ) + + 32 AS col1
----
2551

skipif mysql # not compatible
query I rowsort label-5400
SELECT - 30 * + - 84 + - COUNT ( * ) + + 32 AS col1
----
2551

query II rowsort
SELECT + 72 * - + 24 AS col1, + 74
----
-1728
74

query I rowsort
SELECT + 84 + ( - - 25 ) + 12 AS col1
----
121

query I rowsort
SELECT + 60 + + - 79 - 93 AS col2
----
-112

query I rowsort
SELECT - ( 55 ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT 64 * + + 74 - 81 + + COUNT( * ) col1
----
4656

skipif mysql # not compatible
query I rowsort label-5405
SELECT 64 * + + 74 - 81 + + COUNT ( * ) col1
----
4656

query I rowsort
SELECT ALL 17 + 57
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT + COUNT( * ) + ( + 73 ) + - + ( 73 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5407
SELECT + COUNT ( * ) + ( + 73 ) + - + ( 73 ) + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT + COUNT( * ) + - 92 * 97 + 3
----
-8920

skipif mysql # not compatible
query I rowsort label-5408
SELECT + COUNT ( * ) + - 92 * 97 + 3
----
-8920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5409
SELECT - CAST( + + 57 AS SIGNED ) - COUNT( * ) * - CASE + - 2 WHEN + + 93 THEN - COUNT( ALL - 3 ) / - + 68 + - 92 * - 85 * - 36 END AS col1, + CASE - - 81 WHEN - 3 / - + 78 - + 80 THEN NULL WHEN + 55 THEN 25 / COALESCE ( 65, + 7 * ( ( 83 ) ), ( - CAST( NULL AS SIGNED ) ) ) END * 43
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5409
SELECT - CAST ( + + 57 AS INTEGER ) - COUNT ( * ) * - CASE + - 2 WHEN + + 93 THEN - COUNT ( ALL - 3 ) / - + 68 + - 92 * - 85 * - 36 END AS col1, + CASE - - 81 WHEN - 3 / - + 78 - + 80 THEN NULL WHEN + 55 THEN 25 / COALESCE ( 65, + 7 * ( ( 83 ) ), ( - CAST ( NULL AS INTEGER ) ) ) END * 43
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5410
SELECT + COUNT( * ) + - 79 / - - CASE - - 80 WHEN ( - + COUNT( * ) ) THEN COUNT( * ) + + 62 * ( - ( 32 ) ) / 32 - + 18 ELSE - ( - CAST( NULL AS DECIMAL ) ) / - 54 END * - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) + + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5410
SELECT + COUNT ( * ) + - 79 / - - CASE - - 80 WHEN ( - + COUNT ( * ) ) THEN COUNT ( * ) + + 62 * ( - ( 32 ) ) / 32 - + 18 ELSE - ( - CAST ( NULL AS REAL ) ) / - 54 END * - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + + 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT + CASE 4 WHEN + SUM( DISTINCT - - 90 ) THEN 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT + CASE 4 WHEN + SUM ( DISTINCT - - 90 ) THEN 45 END
----
NULL

query I rowsort
SELECT ALL + 5 - + 47 AS col0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5413
SELECT - - COUNT( * ) DIV - 95 AS col0, 17
----
0
17

skipif mysql # not compatible
query II rowsort label-5413
SELECT - - COUNT ( * ) / - 95 AS col0, 17
----
0
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL - 94 * + 61 * - COUNT( * )
----
5734

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL - 94 * + 61 * - COUNT ( * )
----
5734

query I rowsort
SELECT ALL - 36 * 48
----
-1728

query I rowsort
SELECT - 90 + + 37
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-5417
SELECT - 99 * + 92 + + 9 + + 23 DIV + 73 * + 10 AS col2
----
-9099

skipif mysql # not compatible
query I rowsort label-5417
SELECT - 99 * + 92 + + 9 + + 23 / + 73 * + 10 AS col2
----
-9099

query I rowsort
SELECT ALL + + 69 col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5419
SELECT 48 / - - CAST( NULL AS SIGNED ) / COALESCE ( + 24, 47 + - 69, - + 42 * + - 81 + MAX( ALL - + CAST( NULL AS SIGNED ) ) + + 58 + - 16 ) * - COUNT( * ) + + NULLIF ( + 52, - - 19 ) + + 4 * + 91 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT 48 / - - CAST ( NULL AS INTEGER ) / COALESCE ( + 24, 47 + - 69, - + 42 * + - 81 + MAX ( ALL - + CAST ( NULL AS INTEGER ) ) + + 58 + - 16 ) * - COUNT ( * ) + + NULLIF ( + 52, - - 19 ) + + 4 * + 91 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5420
SELECT - CAST( + 24 AS SIGNED ) + COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-5420
SELECT - CAST ( + 24 AS INTEGER ) + COUNT ( * )
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5421
SELECT DISTINCT + CAST( + - 61 AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT + CAST ( + - 61 AS INTEGER )
----
-61

query II rowsort
SELECT ALL + 68, - 33 col0
----
68
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-5423
SELECT + AVG ( - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) ) AS col2, - 66 DIV + + COUNT( * ) col1
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-5423
SELECT + AVG ( - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) ) AS col2, - 66 / + + COUNT ( * ) col1
----
NULL
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT DISTINCT CASE 19 WHEN + 16 * - 50 + COALESCE ( + - 10, + - COUNT( * ), + 76 + - 30, - - 62 - + 14 * - 17 - - + 26 ) + 52 THEN 84 + 27 + COALESCE ( 78, 37, - MAX( DISTINCT + 52 ) + - 33 ) * - 48 END / 85 + NULLIF ( 15 + - CASE - COUNT( * ) WHEN - ( + COUNT( DISTINCT 4 ) ) THEN + 83 * 54 - - 96 ELSE 30 END, 83 ) * 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT CASE 19 WHEN + 16 * - 50 + COALESCE ( + - 10, + - COUNT ( * ), + 76 + - 30, - - 62 - + 14 * - 17 - - + 26 ) + 52 THEN 84 + 27 + COALESCE ( 78, 37, - MAX ( DISTINCT + 52 ) + - 33 ) * - 48 END / 85 + NULLIF ( 15 + - CASE - COUNT ( * ) WHEN - ( + COUNT ( DISTINCT 4 ) ) THEN + 83 * 54 - - 96 ELSE 30 END, 83 ) * 1 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5425
SELECT CAST( NULL AS SIGNED ), - 92 * - 19 + + 74 AS col0
----
NULL
1822

skipif mysql # not compatible
query II rowsort label-5425
SELECT CAST ( NULL AS INTEGER ), - 92 * - 19 + + 74 AS col0
----
NULL
1822

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT - 26 / - MIN( CASE - ( - 17 ) WHEN 86 THEN - 89 * - 17 - - 0 END ) + + MIN( 3 ) * - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5426
SELECT - 26 / - MIN ( CASE - ( - 17 ) WHEN 86 THEN - 89 * - 17 - - 0 END ) + + MIN ( 3 ) * - 36
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5427
SELECT ALL - 72 DIV + NULLIF ( ( + 25 ), ( 12 ) * + 95 + - + 86 ) + + 51 * - COUNT( * ) * + + 55
----
-2807

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL - 72 / + NULLIF ( ( + 25 ), ( 12 ) * + 95 + - + 86 ) + + 51 * - COUNT ( * ) * + + 55
----
-2807

query II rowsort
SELECT ALL + 58 AS col2, 72
----
58
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT + 96 + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-5429
SELECT + 96 + COUNT ( * )
----
97

query II rowsort
SELECT - 84 * + 70 * 28, 30 AS col1
----
-164640
30

onlyif mysql # aggregate syntax: 
query II rowsort label-5431
SELECT DISTINCT - 39 * + 28 + - COUNT( * ), 36 AS col1
----
-1093
36

skipif mysql # not compatible
query II rowsort label-5431
SELECT DISTINCT - 39 * + 28 + - COUNT ( * ), 36 AS col1
----
-1093
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT ALL + MIN( 59 ) * - - ( - + 0 ) + 77 * - 13
----
-1001

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL + MIN ( 59 ) * - - ( - + 0 ) + 77 * - 13
----
-1001

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT ALL - 95 * ( 12 ) + + + 55 + CASE + - 2 WHEN + SUM( + 77 ) THEN + 81 * - 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5433
SELECT ALL - 95 * ( 12 ) + + + 55 + CASE + - 2 WHEN + SUM ( + 77 ) THEN + 81 * - 8 END
----
NULL

query I rowsort
SELECT + 54 + 35 AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5435
SELECT DISTINCT 66 * - + CAST( - - COUNT( * ) AS SIGNED ) * 54 * + CASE 68 WHEN - 56 * + CAST( NULL AS SIGNED ) + + + 47 THEN - 83 ELSE + 59 + - COUNT( * ) - 26 * ( 59 ) * 11 - - + COUNT( * ) * - 73 END + + COUNT( * ) DIV + ( 86 + 19 * 90 )
----
60192396

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT 66 * - + CAST ( - - COUNT ( * ) AS INTEGER ) * 54 * + CASE 68 WHEN - 56 * + CAST ( NULL AS INTEGER ) + + + 47 THEN - 83 ELSE + 59 + - COUNT ( * ) - 26 * ( 59 ) * 11 - - + COUNT ( * ) * - 73 END + + COUNT ( * ) / + ( 86 + 19 * 90 )
----
60192396

query I rowsort
SELECT ALL - 79 * + 90 + + 15 + + 38
----
-7057

onlyif mysql # DIV for integer division: 
query I rowsort label-5437
SELECT + 32 DIV - - 19 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5437
SELECT + 32 / - - 19 AS col1
----
1

query II rowsort
SELECT + 68 AS col1, 48 * - 73 AS col2
----
68
-3504

query I rowsort
SELECT 5 * + - 50 AS col1
----
-250

query I rowsort
SELECT DISTINCT - 59 * 91 + + 45 + - 25 + + 16 AS col1
----
-5333

onlyif mysql # aggregate syntax: 
query II rowsort label-5441
SELECT - - 8 AS col2, 84 + COUNT( * )
----
8
85

skipif mysql # not compatible
query II rowsort label-5441
SELECT - - 8 AS col2, 84 + COUNT ( * )
----
8
85

query I rowsort
SELECT + 68 + 67 AS col1
----
135

query I rowsort
SELECT 98 + 14
----
112

query II rowsort
SELECT ALL - 9 - - + 11 + + - 33 col2, 35 - - ( - 31 )
----
-31
4

query I rowsort
SELECT DISTINCT 90 * - 69
----
-6210

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT ALL MIN( ALL + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL MIN ( ALL + 55 )
----
55

query II rowsort
SELECT - - 23 AS col2, - 95 * + 0 * + - 41 + 89 + 67 * + 69 AS col0
----
23
4712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5448
SELECT ALL - MAX( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL - MAX ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 75 * 28 + - + 45 * + NULLIF ( + 26, 5 ) + + + 58 AS col0
----
-3212

query I rowsort
SELECT 56 - + + 42 AS col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5451
SELECT + 84 DIV - - 15
----
5

skipif mysql # not compatible
query I rowsort label-5451
SELECT + 84 / - - 15
----
5

query I rowsort
SELECT ALL + 82 * 12 * - + 77 AS col0
----
-75768

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT ALL + MIN( 10 )
----
10

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL + MIN ( 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT ( 25 ) + - MIN( DISTINCT - - 91 ) + + - COALESCE ( 76, - 59 ) + + COUNT( DISTINCT 36 ) * + COUNT( * ) * + + 14 + - NULLIF ( + 89, + 73 ) * + 33 AS col1
----
-3065

skipif mysql # not compatible
query I rowsort label-5454
SELECT ( 25 ) + - MIN ( DISTINCT - - 91 ) + + - COALESCE ( 76, - 59 ) + + COUNT ( DISTINCT 36 ) * + COUNT ( * ) * + + 14 + - NULLIF ( + 89, + 73 ) * + 33 AS col1
----
-3065

query I rowsort
SELECT + 41 + ( - 66 ) + + + 31 * + 38 * + - 75 + 71
----
-88304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5456
SELECT CAST( - + ( COUNT( * ) ) AS SIGNED ) DIV + 9 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5456
SELECT CAST ( - + ( COUNT ( * ) ) AS INTEGER ) / + 9 AS col2
----
0

query I rowsort
SELECT ALL 56 * 83
----
4648

onlyif mysql # aggregate syntax: 
query II rowsort label-5458
SELECT ALL - COUNT( * ) + + 80 AS col0, COUNT( * ) * - 11
----
79
-11

skipif mysql # not compatible
query II rowsort label-5458
SELECT ALL - COUNT ( * ) + + 80 AS col0, COUNT ( * ) * - 11
----
79
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5459
SELECT ALL - NULLIF ( + + 24, CAST( NULL AS SIGNED ) ) col0
----
-24

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL - NULLIF ( + + 24, CAST ( NULL AS INTEGER ) ) col0
----
-24

query I rowsort
SELECT 20 / + CASE - + 63 WHEN + 13 THEN 72 WHEN 16 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5461
SELECT 81 / - NULLIF ( + - CAST( 12 AS SIGNED ), + + 27 + + 86 ) - CAST( NULL AS SIGNED ) + - - 14 * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5461
SELECT 81 / - NULLIF ( + - CAST ( 12 AS INTEGER ), + + 27 + + 86 ) - CAST ( NULL AS INTEGER ) + - - 14 * 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5462
SELECT ALL - NULLIF ( + - 31, - SUM( - CASE - CAST( - - 74 AS SIGNED ) WHEN 64 THEN - 37 + 4 WHEN + 26 THEN NULL WHEN 40 * 40 THEN 86 ELSE + ( + 44 ) END ) * + - 31 * + 86 ) + - COALESCE ( - 70, 95, + 3 ) + ( + 70 ) * + 29 AS col1
----
2131

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL - NULLIF ( + - 31, - SUM ( - CASE - CAST ( - - 74 AS INTEGER ) WHEN 64 THEN - 37 + 4 WHEN + 26 THEN NULL WHEN 40 * 40 THEN 86 ELSE + ( + 44 ) END ) * + - 31 * + 86 ) + - COALESCE ( - 70, 95, + 3 ) + ( + 70 ) * + 29 AS col1
----
2131

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT DISTINCT - ( + SUM( 75 ) )
----
-75

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT - ( + SUM ( 75 ) )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5464
SELECT 45 * - CAST( + 51 AS SIGNED ) + - - COUNT( * )
----
-2294

skipif mysql # not compatible
query I rowsort label-5464
SELECT 45 * - CAST ( + 51 AS INTEGER ) + - - COUNT ( * )
----
-2294

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT DISTINCT + COUNT( * ) + + 17 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-5465
SELECT DISTINCT + COUNT ( * ) + + 17 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT SUM( + 11 ) * - - 12 * 99
----
13068

skipif mysql # not compatible
query I rowsort label-5466
SELECT SUM ( + 11 ) * - - 12 * 99
----
13068

query I rowsort
SELECT DISTINCT + ( 45 ) + + - 94 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT DISTINCT - COUNT( 14 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5468
SELECT DISTINCT - COUNT ( 14 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT DISTINCT + 18 + - ( + NULLIF ( - NULLIF ( 48, + 23 ), - 11 * - 34 ) ) * + + CASE - - 28 WHEN - - COUNT( * ) * + 5 * - COUNT( * ) * 89 + 90 * 68 + - 69 THEN - + 23 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT + 18 + - ( + NULLIF ( - NULLIF ( 48, + 23 ), - 11 * - 34 ) ) * + + CASE - - 28 WHEN - - COUNT ( * ) * + 5 * - COUNT ( * ) * 89 + 90 * 68 + - 69 THEN - + 23 END AS col2
----
NULL

query I rowsort
SELECT ALL + 73 * - 81
----
-5913

onlyif mysql # aggregate syntax: 
query II rowsort label-5471
SELECT DISTINCT + COUNT( * ) + + 79 + - ( 9 ) AS col2, + MAX( - 63 ) + 5 AS col0
----
71
-58

skipif mysql # not compatible
query II rowsort label-5471
SELECT DISTINCT + COUNT ( * ) + + 79 + - ( 9 ) AS col2, + MAX ( - 63 ) + 5 AS col0
----
71
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5472
SELECT 0 * - - ( - - CASE - MAX( - - ( - 63 ) ) WHEN + - 24 * 0 THEN 38 ELSE NULL END ), + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5472
SELECT 0 * - - ( - - CASE - MAX ( - - ( - 63 ) ) WHEN + - 24 * 0 THEN 38 ELSE NULL END ), + COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5473
SELECT COUNT( * ) + + - CASE + - 84 WHEN - 45 * 59 - + 56 - + + COUNT( * ) + + 22 - 81 - + 34 * + + 95 + - + CASE + NULLIF ( + 29, - ( 63 ) ) WHEN - + 70 * - 78 * + COALESCE ( + ( 56 ), + 58, 6 ) * - 14 THEN + COUNT( * ) * - 29 + 12 WHEN - COUNT( - CAST( 87 AS DECIMAL ) ) * - 84 THEN 15 + + ( + 4 - 20 ) * + 49 END + 58 * + 8 * + 72 THEN + 64 * 7 WHEN - 53 THEN NULL ELSE 76 * + COUNT( DISTINCT 55 * 33 ) END DIV + 9 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-5473
SELECT COUNT ( * ) + + - CASE + - 84 WHEN - 45 * 59 - + 56 - + + COUNT ( * ) + + 22 - 81 - + 34 * + + 95 + - + CASE + NULLIF ( + 29, - ( 63 ) ) WHEN - + 70 * - 78 * + COALESCE ( + ( 56 ), + 58, 6 ) * - 14 THEN + COUNT ( * ) * - 29 + 12 WHEN - COUNT ( - CAST ( 87 AS REAL ) ) * - 84 THEN 15 + + ( + 4 - 20 ) * + 49 END + 58 * + 8 * + 72 THEN + 64 * 7 WHEN - 53 THEN NULL ELSE 76 * + COUNT ( DISTINCT 55 * 33 ) END / + 9 AS col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5474
SELECT + NULLIF ( - + 89, - 45 * CAST( NULL AS DECIMAL ) ) * - COUNT( * ) * - + ( - 15 ) + - + 17 AS col0
----
1318

skipif mysql # not compatible
query I rowsort label-5474
SELECT + NULLIF ( - + 89, - 45 * CAST ( NULL AS REAL ) ) * - COUNT ( * ) * - + ( - 15 ) + - + 17 AS col0
----
1318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5475
SELECT ALL 35 - + + 44 * - 9 + + 2 + CAST( NULL AS SIGNED ) * 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL 35 - + + 44 * - 9 + + 2 + CAST ( NULL AS INTEGER ) * 28 AS col1
----
NULL

query I rowsort
SELECT - 23 * - ( + - 20 )
----
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT - COUNT( * ) + 79 + + COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-5477
SELECT - COUNT ( * ) + 79 + + COUNT ( * ) AS col0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5478
SELECT ALL - + 99 DIV + + 36
----
-2

skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL - + 99 / + + 36
----
-2

query I rowsort
SELECT 92 + 29
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT ALL + ( + COUNT( * ) ) * 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL + ( + COUNT ( * ) ) * 6 AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5481
SELECT CASE - 17 WHEN + ( - 0 ) + + 19 * - + 34 THEN + - 43 END + - 18 + - COUNT( + - 60 ) + + 76 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5481
SELECT CASE - 17 WHEN + ( - 0 ) + + 19 * - + 34 THEN + - 43 END + - 18 + - COUNT ( + - 60 ) + + 76 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 2 * 73 AS col0
----
146

query I rowsort
SELECT - NULLIF ( 18, - - 84 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT - COUNT( * ) * + 25 + - 76
----
-101

skipif mysql # not compatible
query I rowsort label-5484
SELECT - COUNT ( * ) * + 25 + - 76
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-5485
SELECT ALL 9 + + 90 * - NULLIF ( - 65, 49 * - 53 - 99 + + 91 * MIN( ALL 32 ) - - 39 / - 23 ) + + 84 * + - COUNT( * ) AS col1, 91 + 70
----
5775
161

skipif mysql # not compatible
query II rowsort label-5485
SELECT ALL 9 + + 90 * - NULLIF ( - 65, 49 * - 53 - 99 + + 91 * MIN ( ALL 32 ) - - 39 / - 23 ) + + 84 * + - COUNT ( * ) AS col1, 91 + 70
----
5775
161

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5486
SELECT DISTINCT 30, + CAST( 64 AS SIGNED ) AS col0
----
30
64

skipif mysql # not compatible
query II rowsort label-5486
SELECT DISTINCT 30, + CAST ( 64 AS INTEGER ) AS col0
----
30
64

query II rowsort
SELECT ALL ( + 41 ) + + 9 * + - 32 * + + 66 AS col2, 16 AS col2
----
-18967
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5488
SELECT ALL ( - 10 ) + - COUNT( * ) DIV 29 - ( - 75 ) * + + 69
----
5165

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL ( - 10 ) + - COUNT ( * ) / 29 - ( - 75 ) * + + 69
----
5165

onlyif mysql # aggregate syntax: 
query II rowsort label-5489
SELECT CASE + NULLIF ( - 51, - + COUNT( * ) ) WHEN + 54 THEN + 2 ELSE NULL END AS col2, 39
----
NULL
39

skipif mysql # not compatible
query II rowsort label-5489
SELECT CASE + NULLIF ( - 51, - + COUNT ( * ) ) WHEN + 54 THEN + 2 ELSE NULL END AS col2, 39
----
NULL
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5490
SELECT 55 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-5490
SELECT 55 / - 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT + MAX( - + 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-5491
SELECT + MAX ( - + 54 )
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-5492
SELECT DISTINCT - 24 * - 0 DIV - 77 * 33 + + - 19
----
-19

skipif mysql # not compatible
query I rowsort label-5492
SELECT DISTINCT - 24 * - 0 / - 77 * 33 + + - 19
----
-19

query I rowsort
SELECT DISTINCT + 41 * 83 + + 71 + + 84
----
3558

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT 5 * + COUNT( * ) + + 92 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-5494
SELECT 5 * + COUNT ( * ) + + 92 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT ALL - COUNT( - 44 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL - COUNT ( - 44 ) col1
----
-1

query II rowsort
SELECT DISTINCT + 86 AS col0, 96 - 20
----
86
76

query I rowsort
SELECT DISTINCT 4 * + 89 - 74 AS col2
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT + 77 * MAX( 82 ) AS col2
----
6314

skipif mysql # not compatible
query I rowsort label-5498
SELECT + 77 * MAX ( 82 ) AS col2
----
6314

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT - 83 * + + MIN( + + 82 ) AS col2
----
-6806

skipif mysql # not compatible
query I rowsort label-5499
SELECT - 83 * + + MIN ( + + 82 ) AS col2
----
-6806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5500
SELECT + NULLIF ( - 16, - - CAST( + 77 AS SIGNED ) + + + 18 )
----
-16

skipif mysql # not compatible
query I rowsort label-5500
SELECT + NULLIF ( - 16, - - CAST ( + 77 AS INTEGER ) + + + 18 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT + MIN( ALL - 52 ) * + 69 * - COUNT( 1 ) + + - 10
----
3578

skipif mysql # not compatible
query I rowsort label-5501
SELECT + MIN ( ALL - 52 ) * + 69 * - COUNT ( 1 ) + + - 10
----
3578

query I rowsort
SELECT DISTINCT + NULLIF ( - 29, + + 7 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT DISTINCT 38 * + - COUNT( * ) + + + 39 - + + 9 * - 97
----
874

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT 38 * + - COUNT ( * ) + + + 39 - + + 9 * - 97
----
874

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT ALL + 9 * - MAX( ALL + 26 ) * + - 3 * - 63
----
-44226

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL + 9 * - MAX ( ALL + 26 ) * + - 3 * - 63
----
-44226

query I rowsort
SELECT DISTINCT - 16 * 33
----
-528

query I rowsort
SELECT + 66 + - + 66 * 59 * + 33 * + 96 AS col2
----
-12336126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5507
SELECT + 79 + + 72 + 40 / - 5 * + COUNT( * ) * 86 * - 55 / 22 + ( - CASE - 50 WHEN 33 THEN + 78 * + 66 ELSE + - CASE - + 10 WHEN + ( 45 ) * + COUNT( * ) + + 63 + 38 THEN NULL WHEN 67 + - 61 THEN + 92 END END ) + + CAST( NULL AS SIGNED ) * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-5507
SELECT + 79 + + 72 + 40 / - 5 * + COUNT ( * ) * 86 * - 55 / 22 + ( - CASE - 50 WHEN 33 THEN + 78 * + 66 ELSE + - CASE - + 10 WHEN + ( 45 ) * + COUNT ( * ) + + 63 + 38 THEN NULL WHEN 67 + - 61 THEN + 92 END END ) + + CAST ( NULL AS INTEGER ) * 11
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5508
SELECT DISTINCT 53 DIV 53
----
1

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT 53 / 53
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5509
SELECT - 23 DIV - 27
----
0

skipif mysql # not compatible
query I rowsort label-5509
SELECT - 23 / - 27
----
0

query I rowsort
SELECT ALL - ( - 94 ) + + + 87 AS col0
----
181

query I rowsort
SELECT ALL + 44 + - + 35 AS col2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5512
SELECT DISTINCT - MIN( + 29 ) DIV - - 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5512
SELECT DISTINCT - MIN ( + 29 ) / - - 95 AS col0
----
0

query I rowsort
SELECT DISTINCT + 35 + - - 8
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT - MIN( - 51 ) * - + 85 * + 3 - - - 58 col2
----
-13063

skipif mysql # not compatible
query I rowsort label-5514
SELECT - MIN ( - 51 ) * - + 85 * + 3 - - - 58 col2
----
-13063

query I rowsort
SELECT - NULLIF ( - 43, - 70 )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT ALL 3 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL 3 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5517
SELECT ALL ( - CASE + COUNT( * ) WHEN + 13 * + 50 + - - 12 - + 37 THEN + 28 * - + COUNT( * ) - + COALESCE ( - 91, - - 40 * + 97 * 97 ) * - 94 * + - 96 * - - 70 WHEN - - 22 * - + 2 + - 61 + + - COUNT( * ) + + CAST( NULL AS SIGNED ) THEN - 56 ELSE 67 END ) + + CAST( + 18 AS SIGNED ) * 26
----
401

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL ( - CASE + COUNT ( * ) WHEN + 13 * + 50 + - - 12 - + 37 THEN + 28 * - + COUNT ( * ) - + COALESCE ( - 91, - - 40 * + 97 * 97 ) * - 94 * + - 96 * - - 70 WHEN - - 22 * - + 2 + - 61 + + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) THEN - 56 ELSE 67 END ) + + CAST ( + 18 AS INTEGER ) * 26
----
401

query I rowsort
SELECT - 67 + 56 AS col1
----
-11

query I rowsort
SELECT - 44 + - 30
----
-74

query I rowsort
SELECT - ( + 30 ) AS col0
----
-30

query I rowsort
SELECT + 26 * 14
----
364

query II rowsort
SELECT DISTINCT 52 AS col0, - 96 * 75
----
52
-7200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5523
SELECT ALL 4, + CAST( NULL AS SIGNED ) - + 78 AS col1
----
4
NULL

skipif mysql # not compatible
query II rowsort label-5523
SELECT ALL 4, + CAST ( NULL AS INTEGER ) - + 78 AS col1
----
4
NULL

query II rowsort
SELECT ALL + 74, - 98 AS col0
----
74
-98

query II rowsort
SELECT DISTINCT + 86 AS col2, 96
----
86
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT + MIN( ALL + 66 ) + + + 88
----
154

skipif mysql # not compatible
query I rowsort label-5526
SELECT + MIN ( ALL + 66 ) + + + 88
----
154

query I rowsort
SELECT ( ( - - 4 ) )
----
4

query I rowsort
SELECT + ( CASE - - 51 WHEN + 97 - - 21 / - 24 * - 68 THEN - - 14 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5529
SELECT ALL 48 DIV + COUNT( * ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL 48 / + COUNT ( * ) AS col1
----
48

query I rowsort
SELECT + 60 * - 78
----
-4680

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT ( - - MAX( ALL - - 76 ) )
----
76

skipif mysql # not compatible
query I rowsort label-5531
SELECT ( - - MAX ( ALL - - 76 ) )
----
76

query I rowsort
SELECT DISTINCT 83 * + 48 col2
----
3984

onlyif mysql # aggregate syntax: 
query II rowsort label-5533
SELECT ALL + + ( + - 52 ) AS col1, - 66 * + 13 + + - COUNT( * ) + - + 31 + + CASE 23 WHEN + + 43 * - + 53 + - 83 THEN NULL WHEN - - CASE - COUNT( * ) WHEN - 87 THEN - + COALESCE ( 94, ( + 8 ) ) - 93 WHEN + 13 * 36 + - COUNT( * ) THEN NULL END THEN + 24 - 32 END * - 6
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-5533
SELECT ALL + + ( + - 52 ) AS col1, - 66 * + 13 + + - COUNT ( * ) + - + 31 + + CASE 23 WHEN + + 43 * - + 53 + - 83 THEN NULL WHEN - - CASE - COUNT ( * ) WHEN - 87 THEN - + COALESCE ( 94, ( + 8 ) ) - 93 WHEN + 13 * 36 + - COUNT ( * ) THEN NULL END THEN + 24 - 32 END * - 6
----
-52
NULL

query I rowsort
SELECT DISTINCT + + COALESCE ( - 0, - - 11 + 95 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5535
SELECT 83 * + + 40 + + ( - 93 ) + COALESCE ( 39, + 89 - - - 97 ) - - + ( - - AVG ( 44 ) ) + + ( - - ( - NULLIF ( + + CASE 38 WHEN + 7 + + - ( - - ( + 73 ) ) THEN - - SUM( + ( + 78 ) ) END, 77 ) ) ) * - NULLIF ( + 65 * - 72 + + 46 * - 29, + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - COUNT( * ) - - ( - ( - 63 ) - + 70 ) ) * 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5535
SELECT 83 * + + 40 + + ( - 93 ) + COALESCE ( 39, + 89 - - - 97 ) - - + ( - - AVG ( 44 ) ) + + ( - - ( - NULLIF ( + + CASE 38 WHEN + 7 + + - ( - - ( + 73 ) ) THEN - - SUM ( + ( + 78 ) ) END, 77 ) ) ) * - NULLIF ( + 65 * - 72 + + 46 * - 29, + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - COUNT ( * ) - - ( - ( - 63 ) - + 70 ) ) * 19 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5536
SELECT ALL + 42 AS col0, - 98 * - COUNT( * )
----
42
98

skipif mysql # not compatible
query II rowsort label-5536
SELECT ALL + 42 AS col0, - 98 * - COUNT ( * )
----
42
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT - COUNT( * ) * + + ( + + 0 ) + 85 + + 65 AS col2
----
150

skipif mysql # not compatible
query I rowsort label-5537
SELECT - COUNT ( * ) * + + ( + + 0 ) + 85 + + 65 AS col2
----
150

query I rowsort
SELECT + + 97 * + + 49 * + 16 AS col0
----
76048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5539
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) + MIN( 46 ) + - COUNT( - + 65 ) * - - 14 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) + MIN ( 46 ) + - COUNT ( - + 65 ) * - - 14 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5540
SELECT DISTINCT CASE + 3 WHEN + 89 * 55 THEN + + 12 * - 71 + + 49 / 71 WHEN COUNT( * ) * + 6 THEN NULL WHEN + ( - + 93 ) * 21 * - CAST( 58 AS SIGNED ) THEN NULL END * + - 4 + + CASE - + ( 70 ) WHEN + 38 * - ( + COUNT( * ) ) THEN NULL WHEN + 5 THEN + 25 WHEN 57 * + 32 + 10 THEN 39 ELSE NULL END + 52 * + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5540
SELECT DISTINCT CASE + 3 WHEN + 89 * 55 THEN + + 12 * - 71 + + 49 / 71 WHEN COUNT ( * ) * + 6 THEN NULL WHEN + ( - + 93 ) * 21 * - CAST ( 58 AS INTEGER ) THEN NULL END * + - 4 + + CASE - + ( 70 ) WHEN + 38 * - ( + COUNT ( * ) ) THEN NULL WHEN + 5 THEN + 25 WHEN 57 * + 32 + 10 THEN 39 ELSE NULL END + 52 * + 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5541
SELECT ALL - 54 * - - 26 DIV - COUNT( * ) + - COUNT( * ) AS col2
----
1403

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL - 54 * - - 26 / - COUNT ( * ) + - COUNT ( * ) AS col2
----
1403

query II rowsort
SELECT ALL - 90 col0, + 70
----
-90
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT - + 65 + - COUNT( + + ( + + 71 ) ) * - ( - + 32 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-5543
SELECT - + 65 + - COUNT ( + + ( + + 71 ) ) * - ( - + 32 ) AS col1
----
-97

query II rowsort
SELECT ALL 73 AS col1, + 74 + + 49
----
73
123

query I rowsort
SELECT DISTINCT - + 27 + - + 41 + + 24
----
-44

query I rowsort
SELECT ALL + 85 + + + 41
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT - 56 + + + ( - COUNT( * ) )
----
-57

skipif mysql # not compatible
query I rowsort label-5547
SELECT - 56 + + + ( - COUNT ( * ) )
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5548
SELECT - 68 + + 80 AS col2, + CAST( NULL AS SIGNED )
----
12
NULL

skipif mysql # not compatible
query II rowsort label-5548
SELECT - 68 + + 80 AS col2, + CAST ( NULL AS INTEGER )
----
12
NULL

query I rowsort
SELECT - 74 * + 97 AS col1
----
-7178

query I rowsort
SELECT ALL - 86 - ( + + 1 ) - + 80 * + + 64
----
-5207

query I rowsort
SELECT DISTINCT ( + 37 ) AS col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-5552
SELECT DISTINCT - 41 DIV + ( + - 97 )
----
0

skipif mysql # not compatible
query I rowsort label-5552
SELECT DISTINCT - 41 / + ( + - 97 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT ALL 8 - + - 80 / + CASE - 96 WHEN + - 20 THEN + + COUNT( * ) WHEN + AVG ( DISTINCT + - 90 ) THEN - 53 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5553
SELECT ALL 8 - + - 80 / + CASE - 96 WHEN + - 20 THEN + + COUNT ( * ) WHEN + AVG ( DISTINCT + - 90 ) THEN - 53 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5554
SELECT ALL 2 * CAST( NULL AS DECIMAL ) * - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL 2 * CAST ( NULL AS REAL ) * - 72 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5555
SELECT DISTINCT + 41 DIV - 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT + 41 / - 97 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT 28 * + COUNT( COALESCE ( - 71, + - 11, - - 73, + 87 - + 68 ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-5556
SELECT 28 * + COUNT ( COALESCE ( - 71, + - 11, - - 73, + 87 - + 68 ) ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-5557
SELECT ALL + 23 * 22 col2, - 77 * 80 + 74 * + 34 + + + COUNT( * ) - - 97
----
506
-3546

skipif mysql # not compatible
query II rowsort label-5557
SELECT ALL + 23 * 22 col2, - 77 * 80 + 74 * + 34 + + + COUNT ( * ) - - 97
----
506
-3546

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT DISTINCT - 69 * - COUNT( DISTINCT + 3 ) * 91 AS col1
----
6279

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT - 69 * - COUNT ( DISTINCT + 3 ) * 91 AS col1
----
6279

query II rowsort
SELECT ALL 66 * 75, 65 AS col1
----
4950
65

onlyif mysql # DIV for integer division: 
query II rowsort label-5560
SELECT 83 + + + 51 AS col0, - 93 DIV + 51
----
134
-1

skipif mysql # not compatible
query II rowsort label-5560
SELECT 83 + + + 51 AS col0, - 93 / + 51
----
134
-1

query I rowsort
SELECT ALL 42 * + - 43 * 41
----
-74046

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT 54 * SUM( DISTINCT 65 )
----
3510

skipif mysql # not compatible
query I rowsort label-5562
SELECT 54 * SUM ( DISTINCT 65 )
----
3510

onlyif mysql # aggregate syntax: 
query II rowsort label-5563
SELECT ALL - ( - - 62 ) AS col2, - COUNT( * ) * + + 83
----
-62
-83

skipif mysql # not compatible
query II rowsort label-5563
SELECT ALL - ( - - 62 ) AS col2, - COUNT ( * ) * + + 83
----
-62
-83

query I rowsort
SELECT DISTINCT - ( 49 ) * - + 45
----
2205

query I rowsort
SELECT ALL - - COALESCE ( - 11, + 91 * + - 17 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT DISTINCT + COUNT( * ) + + 3 col2
----
4

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT + COUNT ( * ) + + 3 col2
----
4

query I rowsort
SELECT ALL - - NULLIF ( 44, + - 75 * + + 93 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT COUNT( ALL + 2 ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5568
SELECT COUNT ( ALL + 2 ) + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT - 12 * CASE - - 5 WHEN - MIN( ALL - + 17 ) THEN + 14 + 6 * + - 84 - + 41 * - COUNT( * ) WHEN - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5569
SELECT - 12 * CASE - - 5 WHEN - MIN ( ALL - + 17 ) THEN + 14 + 6 * + - 84 - + 41 * - COUNT ( * ) WHEN - COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 99 * - - 17 - + 76
----
1607

onlyif mysql # aggregate syntax: 
query II rowsort label-5571
SELECT ALL - COUNT( * ) + 80 AS col1, - 80
----
79
-80

skipif mysql # not compatible
query II rowsort label-5571
SELECT ALL - COUNT ( * ) + 80 AS col1, - 80
----
79
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT 30 * COUNT( * ) + + + MAX( NULLIF ( - - ( - - 10 ), 25 ) ) + - 53
----
-13

skipif mysql # not compatible
query I rowsort label-5572
SELECT 30 * COUNT ( * ) + + + MAX ( NULLIF ( - - ( - - 10 ), 25 ) ) + - 53
----
-13

query I rowsort
SELECT ALL + 66 * + 83 AS col0
----
5478

onlyif mysql # DIV for integer division: 
query I rowsort label-5574
SELECT + 78 DIV - + 12
----
-6

skipif mysql # not compatible
query I rowsort label-5574
SELECT + 78 / - + 12
----
-6

query I rowsort
SELECT ALL 31 + 42 - 17 * + 59 AS col2
----
-930

query I rowsort
SELECT DISTINCT + + 54 + + 40
----
94

query I rowsort
SELECT + - ( + 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT ALL CASE + - 7 WHEN - ( + ( - 62 ) ) THEN + COUNT( * ) ELSE NULL END * - - 68 / + + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL CASE + - 7 WHEN - ( + ( - 62 ) ) THEN + COUNT ( * ) ELSE NULL END * - - 68 / + + 61 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5579
SELECT DISTINCT - ( - 17 ) + 93 * 57 + COUNT( * ) DIV + + 29
----
5318

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT - ( - 17 ) + 93 * 57 + COUNT ( * ) / + + 29
----
5318

query I rowsort
SELECT ALL 97 + + 36 AS col1
----
133

query I rowsort
SELECT - - ( + - 84 ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT NULLIF ( + - 47, COUNT( * ) + 13 * 26 * 70 * + 4 - - - 8 + - 11 * + 78 + COUNT( * ) )
----
-47

skipif mysql # not compatible
query I rowsort label-5582
SELECT NULLIF ( + - 47, COUNT ( * ) + 13 * 26 * 70 * + 4 - - - 8 + - 11 * + 78 + COUNT ( * ) )
----
-47

query I rowsort
SELECT 48 * - - 79 AS col2
----
3792

query I rowsort
SELECT DISTINCT 85 - + + 60
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5585
SELECT ALL 90 AS col0, COALESCE ( - 40, + SUM( ALL - + 56 ) * COUNT( * ) + + 45 * - ( COUNT( * ) ) * - 48 * - + COALESCE ( + 80, - 45 ) * + + 7 DIV - - COALESCE ( + 40, 24 DIV MIN( + 86 ) + - - 50 ) + - 11 + + + 68 * - 97 + + 18 )
----
90
-40

skipif mysql # not compatible
query II rowsort label-5585
SELECT ALL 90 AS col0, COALESCE ( - 40, + SUM ( ALL - + 56 ) * COUNT ( * ) + + 45 * - ( COUNT ( * ) ) * - 48 * - + COALESCE ( + 80, - 45 ) * + + 7 / - - COALESCE ( + 40, 24 / MIN ( + 86 ) + - - 50 ) + - 11 + + + 68 * - 97 + + 18 )
----
90
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT ALL - 54 * COUNT( * ) * - 11
----
594

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL - 54 * COUNT ( * ) * - 11
----
594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5587
SELECT DISTINCT COUNT( * ) * + CAST( - MAX( ALL - 29 ) AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT COUNT ( * ) * + CAST ( - MAX ( ALL - 29 ) AS INTEGER )
----
29

query II rowsort
SELECT - 1 AS col1, + 67 AS col1
----
-1
67

query I rowsort
SELECT ALL + ( - ( + ( - 51 ) ) ) * - 83 * - + 39 AS col2
----
165087

query I rowsort
SELECT 64 * + 8
----
512

query II rowsort
SELECT 36, 2 + - ( - 94 ) col1
----
36
96

query I rowsort
SELECT 47 + - - ( + 89 ) AS col1
----
136

query II rowsort
SELECT ALL 19 AS col2, - 96 AS col0
----
19
-96

query II rowsort
SELECT DISTINCT - 40 AS col2, NULLIF ( + 88, 79 ) AS col1
----
-40
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT DISTINCT - - 2 + + - COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5595
SELECT DISTINCT - - 2 + + - COUNT ( * ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5596
SELECT DISTINCT + 94 + + COUNT( * ) + + 51 AS col2, + 97
----
146
97

skipif mysql # not compatible
query II rowsort label-5596
SELECT DISTINCT + 94 + + COUNT ( * ) + + 51 AS col2, + 97
----
146
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT + + COUNT( - 22 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5597
SELECT + + COUNT ( - 22 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT ALL - - 52 + + COUNT( * ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL - - 52 + + COUNT ( * ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT + SUM( + + 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-5599
SELECT + SUM ( + + 66 ) AS col2
----
66

query II rowsort
SELECT + - 12 AS col2, 35 AS col2
----
-12
35

query II rowsort
SELECT 72 AS col2, 35 AS col1
----
72
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5602
SELECT DISTINCT + - 14 + + + MIN( ALL - 91 ) + - + 23 DIV + 55 DIV COUNT( * )
----
-105

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT + - 14 + + + MIN ( ALL - 91 ) + - + 23 / + 55 / COUNT ( * )
----
-105

query I rowsort
SELECT DISTINCT - ( - 42 ) + - - ( - 78 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT ALL COUNT( * ) + + + 30 * SUM( + + 35 ) col0
----
1051

skipif mysql # not compatible
query I rowsort label-5604
SELECT ALL COUNT ( * ) + + + 30 * SUM ( + + 35 ) col0
----
1051

query I rowsort
SELECT ALL + + 85 * + 51
----
4335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5606
SELECT 69 - NULLIF ( + 13, + + 13 + - - 74 * - COUNT( * ) + - + 92 - - + 94 + 30 + + + COUNT( * ) * 30 * + 95 / + MIN( ALL + + 53 ) * - 91 + - 66 ) / MIN( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5606
SELECT 69 - NULLIF ( + 13, + + 13 + - - 74 * - COUNT ( * ) + - + 92 - - + 94 + 30 + + + COUNT ( * ) * 30 * + 95 / + MIN ( ALL + + 53 ) * - 91 + - 66 ) / MIN ( + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT DISTINCT - + 24 AS col2, 35 AS col2
----
-24
35

query II rowsort
SELECT ALL - - 42 AS col0, + 82
----
42
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5609
SELECT + CAST( - ( 69 ) AS SIGNED ) + NULLIF ( - + 23, + - 61 + SUM( + 41 ) ) AS col1, - 81
----
-92
-81

skipif mysql # not compatible
query II rowsort label-5609
SELECT + CAST ( - ( 69 ) AS INTEGER ) + NULLIF ( - + 23, + - 61 + SUM ( + 41 ) ) AS col1, - 81
----
-92
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT ALL - 93 * COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL - 93 * COUNT ( * )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5611
SELECT - COUNT( * ) / + NULLIF ( 67, + 52 * - ( + 68 ) + 93 + - SUM( ALL + 60 ) ) - + - NULLIF ( + - 33, + 15 + + 39 / + COUNT( * ) ) - + + 68 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5611
SELECT - COUNT ( * ) / + NULLIF ( 67, + 52 * - ( + 68 ) + 93 + - SUM ( ALL + 60 ) ) - + - NULLIF ( + - 33, + 15 + + 39 / + COUNT ( * ) ) - + + 68 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5612
SELECT 59 * COUNT( DISTINCT + - 15 ) + - + 54 AS col2, + CAST( + 62 AS SIGNED )
----
5
62

skipif mysql # not compatible
query II rowsort label-5612
SELECT 59 * COUNT ( DISTINCT + - 15 ) + - + 54 AS col2, + CAST ( + 62 AS INTEGER )
----
5
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5613
SELECT ( + COUNT( * ) ) * - CAST( NULL AS SIGNED ) / - - COALESCE ( + 68, - COUNT( COALESCE ( 89, + 81 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5613
SELECT ( + COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) / - - COALESCE ( + 68, - COUNT ( COALESCE ( 89, + 81 ) ) ) AS col2
----
NULL

query I rowsort
SELECT ALL ( - 56 ) * 17
----
-952

onlyif mysql # aggregate syntax: 
query II rowsort label-5615
SELECT ( - COUNT( * ) ) + ( - + 87 ) AS col1, - 53
----
-88
-53

skipif mysql # not compatible
query II rowsort label-5615
SELECT ( - COUNT ( * ) ) + ( - + 87 ) AS col1, - 53
----
-88
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5616
SELECT DISTINCT CAST( NULL AS SIGNED ) * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT ALL COUNT( ALL + - 70 ) * + 95 * 58 * - 58 * 21 AS col0
----
-6711180

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL COUNT ( ALL + - 70 ) * + 95 * 58 * - 58 * 21 AS col0
----
-6711180

query I rowsort
SELECT + 61 * - - 17 * 54 col0
----
55998

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5619
SELECT ALL 25 DIV + MIN( DISTINCT 26 )
----
0

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL 25 / + MIN ( DISTINCT 26 )
----
0

query I rowsort
SELECT + 31 * + 50 AS col2
----
1550

query I rowsort
SELECT - 37 + 9 + - 18 AS col2
----
-46

onlyif mysql # DIV for integer division: 
query II rowsort label-5622
SELECT + 48 DIV - 52 AS col2, 65
----
0
65

skipif mysql # not compatible
query II rowsort label-5622
SELECT + 48 / - 52 AS col2, 65
----
0
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5623
SELECT ALL 89 + 74 AS col0, - 3 - + CAST( NULL AS SIGNED ) AS col1
----
163
NULL

skipif mysql # not compatible
query II rowsort label-5623
SELECT ALL 89 + 74 AS col0, - 3 - + CAST ( NULL AS INTEGER ) AS col1
----
163
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5624
SELECT DISTINCT + 6 * + 11 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT + 6 * + 11 / + 81
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5625
SELECT DISTINCT 24 + COUNT( * ) DIV - ( + 5 ) AS col1, 1 * + CAST( NULL AS SIGNED ) AS col2
----
24
NULL

skipif mysql # not compatible
query II rowsort label-5625
SELECT DISTINCT 24 + COUNT ( * ) / - ( + 5 ) AS col1, 1 * + CAST ( NULL AS INTEGER ) AS col2
----
24
NULL

query I rowsort
SELECT ALL 83 * - 31 AS col2
----
-2573

query I rowsort
SELECT - ( + 20 ) * + ( 41 )
----
-820

query I rowsort
SELECT DISTINCT + - 87 * - 40 col1
----
3480

onlyif mysql # aggregate syntax: 
query II rowsort label-5629
SELECT ALL - - COUNT( * ) + + MIN( - + 92 ) * 16 + - COUNT( * ), - COUNT( - 65 ) AS col2
----
-1472
-1

skipif mysql # not compatible
query II rowsort label-5629
SELECT ALL - - COUNT ( * ) + + MIN ( - + 92 ) * 16 + - COUNT ( * ), - COUNT ( - 65 ) AS col2
----
-1472
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5630
SELECT + ( 77 ) + - - 55 + + 20 * 32 + + 46 * + 69 col0, NULLIF ( - - 83, + AVG ( - + 48 ) ) * - 37 * - COUNT( * ) AS col1
----
3946
3071

skipif mysql # not compatible
query II rowsort label-5630
SELECT + ( 77 ) + - - 55 + + 20 * 32 + + 46 * + 69 col0, NULLIF ( - - 83, + AVG ( - + 48 ) ) * - 37 * - COUNT ( * ) AS col1
----
3946
3071

query I rowsort
SELECT + - 10 * + 27 AS col1
----
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5632
SELECT + 33 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5632
SELECT + 33 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5633
SELECT - - 63 DIV + 41 + + 13
----
14

skipif mysql # not compatible
query I rowsort label-5633
SELECT - - 63 / + 41 + + 13
----
14

query I rowsort
SELECT DISTINCT + + 40 * 98 + + + 35 AS col0
----
3955

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT ALL - - 41 * - COUNT( * ) - - - 38 + + COUNT( * ) + + - COUNT( * ) + 50 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL - - 41 * - COUNT ( * ) - - - 38 + + COUNT ( * ) + + - COUNT ( * ) + 50 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT ALL - - MIN( ALL 34 ) * - COUNT( * ) + 59 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL - - MIN ( ALL 34 ) * - COUNT ( * ) + 59 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT - + 83 * + MAX( + 47 )
----
-3901

skipif mysql # not compatible
query I rowsort label-5637
SELECT - + 83 * + MAX ( + 47 )
----
-3901

onlyif mysql # DIV for integer division: 
query I rowsort label-5638
SELECT - 36 DIV - 6 col0
----
6

skipif mysql # not compatible
query I rowsort label-5638
SELECT - 36 / - 6 col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT DISTINCT - 56 * - 8 - + - NULLIF ( - SUM( - 96 ), + + 27 * + 25 + - 99 + - 81 ) AS col2
----
544

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT - 56 * - 8 - + - NULLIF ( - SUM ( - 96 ), + + 27 * + 25 + - 99 + - 81 ) AS col2
----
544

query I rowsort
SELECT + + 28 * - 85 col2
----
-2380

onlyif mysql # aggregate syntax: 
query II rowsort label-5641
SELECT ALL - + 70 * - 72 col1, - 75 * - - ( - - COUNT( * ) )
----
5040
-75

skipif mysql # not compatible
query II rowsort label-5641
SELECT ALL - + 70 * - 72 col1, - 75 * - - ( - - COUNT ( * ) )
----
5040
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT DISTINCT + + ( + + COUNT( * ) ) * - NULLIF ( + MIN( + 80 ), + + 70 )
----
-80

skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT + + ( + + COUNT ( * ) ) * - NULLIF ( + MIN ( + 80 ), + + 70 )
----
-80

query I rowsort
SELECT ALL + 76 * - 21 - - - 8
----
-1604

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT DISTINCT - MAX( DISTINCT 90 ) * 42 AS col0
----
-3780

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT - MAX ( DISTINCT 90 ) * 42 AS col0
----
-3780

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5645
SELECT - + CAST( NULL AS SIGNED ) * + + 41 - 96 + + NULLIF ( 12, + 61 ) + + 98 AS col2, + 91 AS col1
----
NULL
91

skipif mysql # not compatible
query II rowsort label-5645
SELECT - + CAST ( NULL AS INTEGER ) * + + 41 - 96 + + NULLIF ( 12, + 61 ) + + 98 AS col2, + 91 AS col1
----
NULL
91

query II rowsort
SELECT DISTINCT + 9, 12 * 70 AS col2
----
9
840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5647
SELECT ALL + CAST( + - 92 AS SIGNED ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL + CAST ( + - 92 AS INTEGER ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT DISTINCT + MIN( - 94 ) col0
----
-94

skipif mysql # not compatible
query I rowsort label-5648
SELECT DISTINCT + MIN ( - 94 ) col0
----
-94

query I rowsort
SELECT - 79 - + 54 AS col0
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT MIN( DISTINCT + - 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5650
SELECT MIN ( DISTINCT + - 39 ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-5651
SELECT - MAX( DISTINCT + ( + 29 ) ) AS col1, - 25 + - 11 AS col2
----
-29
-36

skipif mysql # not compatible
query II rowsort label-5651
SELECT - MAX ( DISTINCT + ( + 29 ) ) AS col1, - 25 + - 11 AS col2
----
-29
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT COUNT( DISTINCT 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5652
SELECT COUNT ( DISTINCT 16 ) AS col2
----
1

query I rowsort
SELECT DISTINCT 84 + + 10
----
94

query I rowsort
SELECT DISTINCT 48 + + - 14 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT ALL MIN( + + 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL MIN ( + + 77 ) AS col2
----
77

query I rowsort
SELECT + 77 * 37
----
2849

onlyif mysql # aggregate syntax: 
query II rowsort label-5657
SELECT 85 AS col1, ( - COUNT( * ) ) AS col0
----
85
-1

skipif mysql # not compatible
query II rowsort label-5657
SELECT 85 AS col1, ( - COUNT ( * ) ) AS col0
----
85
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT ALL 39 + - COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL 39 + - COUNT ( * ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT + COUNT( * ) + + 16
----
17

skipif mysql # not compatible
query I rowsort label-5659
SELECT + COUNT ( * ) + + 16
----
17

query I rowsort
SELECT + ( + 50 ) * - + 23 col2
----
-1150

query I rowsort
SELECT + 22 + - CASE - 79 WHEN - - 24 * 26 - - 90 / + 87 THEN + 23 WHEN + 90 - + - 54 + 29 + ( 50 ) + ( - 11 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT ALL - - ( + COUNT( * ) ) + + - 74 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL - - ( + COUNT ( * ) ) + + - 74 AS col1
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-5663
SELECT + 39 DIV + 1 + + 11 + + + 44
----
94

skipif mysql # not compatible
query I rowsort label-5663
SELECT + 39 / + 1 + + 11 + + + 44
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5664
SELECT DISTINCT - 60 * - + 85 / + - 59 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT - 60 * - + 85 / + - 59 * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + 24 * ( + 82 ) AS col2
----
1968

query II rowsort
SELECT DISTINCT + 3 AS col1, - 83
----
3
-83

query II rowsort
SELECT DISTINCT + 49 col1, + 34 + - 78
----
49
-44

query I rowsort
SELECT - + 71 * + 48 * - 94 AS col2
----
320352

query I rowsort
SELECT ALL - 66 * + 44 AS col1
----
-2904

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT MIN( DISTINCT - + 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-5670
SELECT MIN ( DISTINCT - + 46 )
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-5671
SELECT 0 - 12 DIV - 16 * + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5671
SELECT 0 - 12 / - 16 * + 67 AS col0
----
0

query I rowsort
SELECT ALL - 95 * - 9
----
855

query I rowsort
SELECT 48 * + 39 * - 40
----
-74880

onlyif mysql # aggregate syntax: 
query II rowsort label-5674
SELECT ALL - 83 AS col1, 80 - + - COUNT( * ) AS col2
----
-83
81

skipif mysql # not compatible
query II rowsort label-5674
SELECT ALL - 83 AS col1, 80 - + - COUNT ( * ) AS col2
----
-83
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT ALL - CASE + + NULLIF ( - - 98, - 26 / 52 - 33 + - 27 + 72 ) WHEN + 59 / - SUM( DISTINCT ( + 37 ) ) THEN 37 - - - COALESCE ( + 70, NULLIF ( + 58, + - ( - - CASE + - 20 WHEN 7 THEN NULL WHEN + 92 THEN - COUNT( * ) * + + 82 END ) + 66 ) + + COALESCE ( + SUM( 36 ), - COUNT( * ) ) * + 48 ) WHEN 4 + 85 THEN 3 * + NULLIF ( - 93, + 70 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL - CASE + + NULLIF ( - - 98, - 26 / 52 - 33 + - 27 + 72 ) WHEN + 59 / - SUM ( DISTINCT ( + 37 ) ) THEN 37 - - - COALESCE ( + 70, NULLIF ( + 58, + - ( - - CASE + - 20 WHEN 7 THEN NULL WHEN + 92 THEN - COUNT ( * ) * + + 82 END ) + 66 ) + + COALESCE ( + SUM ( 36 ), - COUNT ( * ) ) * + 48 ) WHEN 4 + 85 THEN 3 * + NULLIF ( - 93, + 70 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5676
SELECT 67 DIV COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-5676
SELECT 67 / COUNT ( * )
----
67

query I rowsort
SELECT ALL - 96 + + 41
----
-55

query II rowsort
SELECT 38 + - 2 * ( + 54 ) AS col2, 58 AS col2
----
-70
58

query I rowsort
SELECT 47 + - 55 AS col2
----
-8

query I rowsort
SELECT CASE - 91 WHEN 3 THEN 77 WHEN - + 71 THEN - + 81 END - 94
----
NULL

query II rowsort
SELECT ALL + 24 * - + 63 AS col0, - 69 * + 98 * 94 * + + 89
----
-1512
-56570892

onlyif mysql # aggregate syntax: 
query II rowsort label-5682
SELECT 22 AS col2, COUNT( + - 87 )
----
22
1

skipif mysql # not compatible
query II rowsort label-5682
SELECT 22 AS col2, COUNT ( + - 87 )
----
22
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5683
SELECT ALL - 96 + + + ( + 60 ) + - 33 * 44 DIV 31 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL - 96 + + + ( + 60 ) + - 33 * 44 / 31 AS col0
----
-82

query II rowsort
SELECT - 51 AS col2, 42
----
-51
42

query II rowsort
SELECT 33, + 25 AS col1
----
33
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT ALL - 33 + + MIN( DISTINCT + 12 )
----
-21

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL - 33 + + MIN ( DISTINCT + 12 )
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5687
SELECT ALL 96 + ( + - 18 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL 96 + ( + - 18 ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 73 + - 15 AS col0
----
58

query I rowsort
SELECT ALL 72 + + + 21
----
93

query I rowsort
SELECT ALL + 61 + + - 86
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-5691
SELECT 19, + COUNT( ALL - 91 ) * - - 58 col2
----
19
58

skipif mysql # not compatible
query II rowsort label-5691
SELECT 19, + COUNT ( ALL - 91 ) * - - 58 col2
----
19
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT 92 + - ( + COUNT( * ) ) + - + ( + 22 ) + - 91 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-5692
SELECT 92 + - ( + COUNT ( * ) ) + - + ( + 22 ) + - 91 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT 63 * + - 75 * + COUNT( * ) * + 59 * - CASE MAX( DISTINCT + 24 ) WHEN + 46 THEN NULL WHEN + 20 THEN NULL WHEN + - 47 * - 92 THEN + - 78 - + COUNT( * ) + - ( + MIN( + 66 ) ) ELSE + + 88 + - 91 END AS col2
----
-836325

skipif mysql # not compatible
query I rowsort label-5693
SELECT 63 * + - 75 * + COUNT ( * ) * + 59 * - CASE MAX ( DISTINCT + 24 ) WHEN + 46 THEN NULL WHEN + 20 THEN NULL WHEN + - 47 * - 92 THEN + - 78 - + COUNT ( * ) + - ( + MIN ( + 66 ) ) ELSE + + 88 + - 91 END AS col2
----
-836325

query II rowsort
SELECT 38 AS col2, - 4
----
38
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT ALL + 82 * + 2 * + - COUNT( * )
----
-164

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL + 82 * + 2 * + - COUNT ( * )
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT ALL + COALESCE ( + - 62, 40, COUNT( ALL 62 ) ) - - - 78 AS col2
----
-140

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL + COALESCE ( + - 62, 40, COUNT ( ALL 62 ) ) - - - 78 AS col2
----
-140

query I rowsort
SELECT DISTINCT 64 * + 21
----
1344

query I rowsort
SELECT ALL - - 3 * 81 AS col2
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT ALL + COUNT( * ) * - - 45 * + 62
----
2790

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL + COUNT ( * ) * - - 45 * + 62
----
2790

query I rowsort
SELECT ALL - 22 * - 68
----
1496

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT DISTINCT + COUNT( ALL - 4 )
----
1

skipif mysql # not compatible
query I rowsort label-5701
SELECT DISTINCT + COUNT ( ALL - 4 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT DISTINCT + 0 - - + CASE 82 WHEN - 82 THEN - 84 WHEN + COUNT( * ) * - + 84 * - - 3 THEN + 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT + 0 - - + CASE 82 WHEN - 82 THEN - 84 WHEN + COUNT ( * ) * - + 84 * - - 3 THEN + 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5703
SELECT ALL - 56, 60 + - 57 + - MAX( DISTINCT - 82 ) * COUNT( * ) col2
----
-56
85

skipif mysql # not compatible
query II rowsort label-5703
SELECT ALL - 56, 60 + - 57 + - MAX ( DISTINCT - 82 ) * COUNT ( * ) col2
----
-56
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5704
SELECT DISTINCT - - 71 AS col1, 17 / - CASE - CAST( - 85 AS SIGNED ) WHEN + 37 THEN - 60 END * + - COALESCE ( - 65, - 80, 33 )
----
71
NULL

skipif mysql # not compatible
query II rowsort label-5704
SELECT DISTINCT - - 71 AS col1, 17 / - CASE - CAST ( - 85 AS INTEGER ) WHEN + 37 THEN - 60 END * + - COALESCE ( - 65, - 80, 33 )
----
71
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5705
SELECT ALL - COUNT( * ) DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL - COUNT ( * ) / - 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT ALL - ( + COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL - ( + COUNT ( * ) ) col0
----
-1

query I rowsort
SELECT 38 * - + 98 col0
----
-3724

query II rowsort
SELECT ALL - 26 AS col1, - 56 AS col2
----
-26
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-5709
SELECT - 94 DIV - 30 + - - 33
----
36

skipif mysql # not compatible
query I rowsort label-5709
SELECT - 94 / - 30 + - - 33
----
36

query I rowsort
SELECT 22 * - - 75 AS col2
----
1650

query I rowsort
SELECT 58 + + 69 * - + 70
----
-4772

onlyif mysql # aggregate syntax: 
query II rowsort label-5712
SELECT ALL 74 + 45 AS col1, 35 + + 17 + 27 * + + ( + MIN( DISTINCT + - 85 ) )
----
119
-2243

skipif mysql # not compatible
query II rowsort label-5712
SELECT ALL 74 + 45 AS col1, 35 + + 17 + 27 * + + ( + MIN ( DISTINCT + - 85 ) )
----
119
-2243

query I rowsort
SELECT ALL 50 + + 82 * - 86 + + + 73 AS col2
----
-6929

query I rowsort
SELECT DISTINCT 9 + 96 + + 9
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT COUNT( * ) * + 12 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5715
SELECT COUNT ( * ) * + 12 AS col1
----
12

query I rowsort
SELECT ALL - 92 + - 62
----
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5717
SELECT ALL - NULLIF ( 2, - CAST( + 86 AS SIGNED ) * 5 )
----
-2

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL - NULLIF ( 2, - CAST ( + 86 AS INTEGER ) * 5 )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5718
SELECT DISTINCT - 83 + - - 99 + - - 79 + - 20 * - + 97, - COUNT( * ) AS col2
----
2035
-1

skipif mysql # not compatible
query II rowsort label-5718
SELECT DISTINCT - 83 + - - 99 + - - 79 + - 20 * - + 97, - COUNT ( * ) AS col2
----
2035
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5719
SELECT DISTINCT - ( - 19 ), SUM( + + 80 ) + - 2 * MIN( - 89 ) AS col2
----
19
258

skipif mysql # not compatible
query II rowsort label-5719
SELECT DISTINCT - ( - 19 ), SUM ( + + 80 ) + - 2 * MIN ( - 89 ) AS col2
----
19
258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5720
SELECT DISTINCT + 47 + + 93 + 75 * 75 * ( + CASE COUNT( * ) WHEN - 64 / + 84 + 71 THEN - 42 ELSE + - CAST( NULL AS SIGNED ) + + 70 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5720
SELECT DISTINCT + 47 + + 93 + 75 * 75 * ( + CASE COUNT ( * ) WHEN - 64 / + 84 + 71 THEN - 42 ELSE + - CAST ( NULL AS INTEGER ) + + 70 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5721
SELECT DISTINCT + 74 DIV 76 DIV - - 92 * 87 * 83
----
0

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT + 74 / 76 / - - 92 * 87 * 83
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5722
SELECT + MIN( - + NULLIF ( + ( + 68 ), + NULLIF ( 3, CAST( - 3 AS SIGNED ) ) - - 54 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-5722
SELECT + MIN ( - + NULLIF ( + ( + 68 ), + NULLIF ( 3, CAST ( - 3 AS INTEGER ) ) - - 54 ) )
----
-68

query I rowsort
SELECT ALL + 65 + ( + - 16 ) - 73 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ( - COUNT( * ) ) - COALESCE ( 16, - + 65 + - ( + 90 ), + + 23 - - CASE - ( + 72 ) WHEN + 15 * 75 - - - 63 + + + 15 * - - COUNT( * ) * + 94 + - 57 - 23 + - 9 / COUNT( * ) * + 35 THEN + + 15 ELSE - 51 END ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-5724
SELECT ( - COUNT ( * ) ) - COALESCE ( 16, - + 65 + - ( + 90 ), + + 23 - - CASE - ( + 72 ) WHEN + 15 * 75 - - - 63 + + + 15 * - - COUNT ( * ) * + 94 + - 57 - 23 + - 9 / COUNT ( * ) * + 35 THEN + + 15 ELSE - 51 END ) AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5725
SELECT 98 * + - COUNT( * ) AS col1, ( - - CAST( NULL AS SIGNED ) ) col2
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-5725
SELECT 98 * + - COUNT ( * ) AS col1, ( - - CAST ( NULL AS INTEGER ) ) col2
----
-98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT SUM( DISTINCT 16 ) * + 51 - - COALESCE ( - 51, + + 62, + COUNT( * ) + - 0 )
----
765

skipif mysql # not compatible
query I rowsort label-5726
SELECT SUM ( DISTINCT 16 ) * + 51 - - COALESCE ( - 51, + + 62, + COUNT ( * ) + - 0 )
----
765

query I rowsort
SELECT DISTINCT + - ( - 9 ) - - + 72 * 86 AS col0
----
6201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5728
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 22 / + - 37 * - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 22 / + - 37 * - 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT DISTINCT - - 93 - COUNT( * ) * - 93 * - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5729
SELECT DISTINCT - - 93 - COUNT ( * ) * - 93 * - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT DISTINCT - - 76 * + 50 * - + COUNT( * ) AS col0
----
-3800

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT - - 76 * + 50 * - + COUNT ( * ) AS col0
----
-3800

query I rowsort
SELECT + 49 * - ( + + 23 )
----
-1127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5732
SELECT + COUNT( ALL - 92 ) + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5732
SELECT + COUNT ( ALL - 92 ) + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query II rowsort
SELECT 84 + - + 7, 45 AS col0
----
77
45

query I rowsort
SELECT - 15 * + 64
----
-960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5735
SELECT ALL ( + - SUM( + CAST( + CAST( CAST( + - 82 AS SIGNED ) AS SIGNED ) AS SIGNED ) ) )
----
82

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL ( + - SUM ( + CAST ( + CAST ( CAST ( + - 82 AS INTEGER ) AS INTEGER ) AS INTEGER ) ) )
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5736
SELECT DISTINCT - 77 * + COUNT( ALL - 5 ), + 98 col1
----
-77
98

skipif mysql # not compatible
query II rowsort label-5736
SELECT DISTINCT - 77 * + COUNT ( ALL - 5 ), + 98 col1
----
-77
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT + + 38 * + COUNT( DISTINCT + 70 )
----
38

skipif mysql # not compatible
query I rowsort label-5737
SELECT + + 38 * + COUNT ( DISTINCT + 70 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5738
SELECT DISTINCT + 33 * - ( - + CASE COUNT( * ) WHEN 20 THEN NULL WHEN - 95 + - 79 * 93 + + 60 + - 36 + + - 93 + + + 70 * - 40 THEN CAST( NULL AS SIGNED ) END ) + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT + 33 * - ( - + CASE COUNT ( * ) WHEN 20 THEN NULL WHEN - 95 + - 79 * 93 + + 60 + - 36 + + - 93 + + + 70 * - 40 THEN CAST ( NULL AS INTEGER ) END ) + 16
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5739
SELECT + + 89 DIV - 26
----
-3

skipif mysql # not compatible
query I rowsort label-5739
SELECT + + 89 / - 26
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5740
SELECT ALL + CASE - - 88 WHEN - 20 THEN + 12 * 41 * - - 81 END * + CAST( NULL AS DECIMAL ) + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL + CASE - - 88 WHEN - 20 THEN + 12 * 41 * - - 81 END * + CAST ( NULL AS REAL ) + + 45
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5741
SELECT - - 78 - - 83 + + - COUNT( * ) * - 45 * - - 41 * 29 + 38 AS col1, - 54 AS col2
----
53704
-54

skipif mysql # not compatible
query II rowsort label-5741
SELECT - - 78 - - 83 + + - COUNT ( * ) * - 45 * - - 41 * 29 + 38 AS col1, - 54 AS col2
----
53704
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5742
SELECT CASE - - 31 WHEN 97 THEN + + 90 ELSE + - 81 DIV + CASE + 55 WHEN + - MAX( ALL - 36 ) + - - 78 + 20 THEN - ( - 34 ) * 50 ELSE NULL END DIV + + 49 + - COALESCE ( 99, - 72 ) END AS col2, 3 DIV - 81 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5742
SELECT CASE - - 31 WHEN 97 THEN + + 90 ELSE + - 81 / + CASE + 55 WHEN + - MAX ( ALL - 36 ) + - - 78 + 20 THEN - ( - 34 ) * 50 ELSE NULL END / + + 49 + - COALESCE ( 99, - 72 ) END AS col2, 3 / - 81 AS col2
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5743
SELECT - 56 + + 64 DIV + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-5743
SELECT - 56 + + 64 / + COUNT ( * )
----
8

query I rowsort
SELECT + COALESCE ( 90, + + 31 - - 76 )
----
90

query II rowsort
SELECT DISTINCT + 9 AS col2, 4
----
9
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5746
SELECT + COUNT( * ) / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5746
SELECT + COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5747
SELECT + COUNT( * ) AS col0, + 66 - + + ( - + 98 )
----
1
164

skipif mysql # not compatible
query II rowsort label-5747
SELECT + COUNT ( * ) AS col0, + 66 - + + ( - + 98 )
----
1
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5748
SELECT ALL 35 * - - 69 * - CAST( NULL AS SIGNED ) * 88 + - 70 + - COALESCE ( - - COALESCE ( - - 33, - 90 * - - NULLIF ( 14, - + 75 - + 44 ) / - - 82, - + 88 ), + + 70 - + COUNT( * ), - MIN( 5 ) - - - MIN( ALL - - 33 ) ) * + 45 * - COALESCE ( + 21, CASE + 46 WHEN + + 78 * - + 5 THEN NULL ELSE - 48 / ( ( + 22 ) * + 56 ) END ) - ( 16 + - 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL 35 * - - 69 * - CAST ( NULL AS INTEGER ) * 88 + - 70 + - COALESCE ( - - COALESCE ( - - 33, - 90 * - - NULLIF ( 14, - + 75 - + 44 ) / - - 82, - + 88 ), + + 70 - + COUNT ( * ), - MIN ( 5 ) - - - MIN ( ALL - - 33 ) ) * + 45 * - COALESCE ( + 21, CASE + 46 WHEN + + 78 * - + 5 THEN NULL ELSE - 48 / ( ( + 22 ) * + 56 ) END ) - ( 16 + - 71 )
----
NULL

query I rowsort
SELECT 60 * - 11 - + 6 col1
----
-666

query I rowsort
SELECT + ( + + 70 ) - 61
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5751
SELECT ALL 66 * + CAST( NULL AS SIGNED ) * + + COUNT( * ) + - AVG ( + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL 66 * + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + - AVG ( + 23 )
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( + + 51, - + 53 / 11 )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5753
SELECT + MAX( ALL + ( + - 55 ) ) + + + 94 DIV - MIN( - - 94 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-5753
SELECT + MAX ( ALL + ( + - 55 ) ) + + + 94 / - MIN ( - - 94 ) AS col1
----
-56

query I rowsort
SELECT + 90 * + + 42
----
3780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5755
SELECT + 66 + 6 DIV + COUNT( * ) col0
----
72

skipif mysql # not compatible
query I rowsort label-5755
SELECT + 66 + 6 / + COUNT ( * ) col0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5756
SELECT 70 * - CAST( 2 AS SIGNED ) * ( + - COALESCE ( - + 14, + + 16 ) ) - + 58 - + 25 * + 17 + + 26 + 41 + + 50 AS col1
----
-2326

skipif mysql # not compatible
query I rowsort label-5756
SELECT 70 * - CAST ( 2 AS INTEGER ) * ( + - COALESCE ( - + 14, + + 16 ) ) - + 58 - + 25 * + 17 + + 26 + 41 + + 50 AS col1
----
-2326

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT + COALESCE ( - + SUM( ALL - 89 ), - 80 + + 53, - 70 )
----
89

skipif mysql # not compatible
query I rowsort label-5757
SELECT + COALESCE ( - + SUM ( ALL - 89 ), - 80 + + 53, - 70 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT ALL SUM( - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL SUM ( - 55 )
----
-55

query I rowsort
SELECT ALL 18 * + 41 * + 2
----
1476

query I rowsort
SELECT ALL COALESCE ( - 74, + + 48 - + + 97 ) AS col0
----
-74

query I rowsort
SELECT - - 86 + - 54 + + 86 * - 39 * - + 39
----
130838

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT ALL NULLIF ( - + 38, - + COUNT( * ) * - 67 + + - 37 ) col1
----
-38

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL NULLIF ( - + 38, - + COUNT ( * ) * - 67 + + - 37 ) col1
----
-38

onlyif mysql # DIV for integer division: 
query II rowsort label-5763
SELECT DISTINCT 53, 68 DIV COALESCE ( 56, - - 37 + + 73 ) AS col0
----
53
1

skipif mysql # not compatible
query II rowsort label-5763
SELECT DISTINCT 53, 68 / COALESCE ( 56, - - 37 + + 73 ) AS col0
----
53
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5764
SELECT + + COUNT( * ) DIV 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5764
SELECT + + COUNT ( * ) / 75 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5765
SELECT DISTINCT 3 DIV + 12
----
0

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT 3 / + 12
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5766
SELECT DISTINCT + 72 DIV + - 2
----
-36

skipif mysql # not compatible
query I rowsort label-5766
SELECT DISTINCT + 72 / + - 2
----
-36

query I rowsort
SELECT ALL + 39 * + ( + - 13 ) AS col0
----
-507

onlyif mysql # DIV for integer division: 
query I rowsort label-5768
SELECT - 0 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-5768
SELECT - 0 / + 95
----
0

query I rowsort
SELECT DISTINCT NULLIF ( + 28, 58 + - 87 )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5770
SELECT ALL - 79 * CAST( NULL AS SIGNED ) * 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL - 79 * CAST ( NULL AS INTEGER ) * 49 AS col2
----
NULL

query I rowsort
SELECT ALL + + 48 + 6 AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5772
SELECT ALL + + 31 * + NULLIF ( CASE - 31 WHEN CASE - 75 WHEN - - ( CAST( NULL AS DECIMAL ) ) + + NULLIF ( - MIN( DISTINCT - 5 ), + 14 ) - + 99 / - COUNT( * ) + + ( 58 ) THEN NULL WHEN 40 + - 74 THEN + CAST( NULL AS SIGNED ) WHEN 14 * + 85 THEN NULL END + - 20 THEN - 99 ELSE NULL END, + COALESCE ( + CASE 66 WHEN + + 54 THEN NULL WHEN COALESCE ( COALESCE ( + 10, 68, + COALESCE ( - MAX( - 95 ), 61 + + 57, + 78 ) ), - 38 ) THEN 20 END, 15, COALESCE ( 8, - 79 + - SUM( ALL 17 ) ) * - 53 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL + + 31 * + NULLIF ( CASE - 31 WHEN CASE - 75 WHEN - - ( CAST ( NULL AS REAL ) ) + + NULLIF ( - MIN ( DISTINCT - 5 ), + 14 ) - + 99 / - COUNT ( * ) + + ( 58 ) THEN NULL WHEN 40 + - 74 THEN + CAST ( NULL AS INTEGER ) WHEN 14 * + 85 THEN NULL END + - 20 THEN - 99 ELSE NULL END, + COALESCE ( + CASE 66 WHEN + + 54 THEN NULL WHEN COALESCE ( COALESCE ( + 10, 68, + COALESCE ( - MAX ( - 95 ), 61 + + 57, + 78 ) ), - 38 ) THEN 20 END, 15, COALESCE ( 8, - 79 + - SUM ( ALL 17 ) ) * - 53 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - ( - - 86 ) AS col2
----
-86

query I rowsort
SELECT - - 93 + + - 94 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT DISTINCT + 87 + + CASE - COUNT( * ) WHEN - + 12 - 56 THEN 13 * 82 + - - SUM( - - 9 ) + 95 WHEN MAX( + 20 ) THEN - - 77 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5775
SELECT DISTINCT + 87 + + CASE - COUNT ( * ) WHEN - + 12 - 56 THEN 13 * 82 + - - SUM ( - - 9 ) + 95 WHEN MAX ( + 20 ) THEN - - 77 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT - - COUNT( - + 9 )
----
1

skipif mysql # not compatible
query I rowsort label-5776
SELECT - - COUNT ( - + 9 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5777
SELECT + 50 AS col0, COUNT( - 36 ) + - CAST( NULL AS DECIMAL ) col2
----
50
NULL

skipif mysql # not compatible
query II rowsort label-5777
SELECT + 50 AS col0, COUNT ( - 36 ) + - CAST ( NULL AS REAL ) col2
----
50
NULL

query I rowsort
SELECT - 16 + + COALESCE ( 98, - 36, - 34 )
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5779
SELECT - - 74 - - MIN( DISTINCT - 93 ), COUNT( * ) AS col1
----
-19
1

skipif mysql # not compatible
query II rowsort label-5779
SELECT - - 74 - - MIN ( DISTINCT - 93 ), COUNT ( * ) AS col1
----
-19
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5780
SELECT DISTINCT ( + - 61 ) DIV COUNT( + + 84 ) * - 20 + - + 45 + - - COUNT( * ) + - 71 AS col1
----
1105

skipif mysql # not compatible
query I rowsort label-5780
SELECT DISTINCT ( + - 61 ) / COUNT ( + + 84 ) * - 20 + - + 45 + - - COUNT ( * ) + - 71 AS col1
----
1105

onlyif mysql # DIV for integer division: 
query I rowsort label-5781
SELECT ALL + 1 DIV - 27 * - 19 + 34
----
34

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL + 1 / - 27 * - 19 + 34
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5782
SELECT ALL 62 DIV MAX( DISTINCT + - 30 ) + - COUNT( - 57 )
----
-3

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL 62 / MAX ( DISTINCT + - 30 ) + - COUNT ( - 57 )
----
-3

query I rowsort
SELECT + 75 * + 25 + + 3 AS col2
----
1878

query I rowsort
SELECT ALL + 74 * - + 29 AS col0
----
-2146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5785
SELECT + CAST( - 83 AS SIGNED ) + + 98 - + COUNT( * ) + - - 94 DIV + 14
----
20

skipif mysql # not compatible
query I rowsort label-5785
SELECT + CAST ( - 83 AS INTEGER ) + + 98 - + COUNT ( * ) + - - 94 / + 14
----
20

query I rowsort
SELECT ( - 57 ) AS col1
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-5787
SELECT ALL + COALESCE ( + 84, 74 + 83, + + 62 + 67 + - + 84 DIV 37 * - 62 * + ( + 76 ) )
----
84

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL + COALESCE ( + 84, 74 + 83, + + 62 + 67 + - + 84 / 37 * - 62 * + ( + 76 ) )
----
84

query II rowsort
SELECT - ( - 30 ) * ( - 46 ), + 56 AS col2
----
-1380
56

query I rowsort
SELECT + 31 * + - 42
----
-1302

query I rowsort
SELECT ALL + 2 * + ( - + 98 )
----
-196

query I rowsort
SELECT + 95 * - - 73
----
6935

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5792
SELECT ALL 7 / + CAST( NULL AS SIGNED ), 37 AS col1
----
NULL
37

skipif mysql # not compatible
query II rowsort label-5792
SELECT ALL 7 / + CAST ( NULL AS INTEGER ), 37 AS col1
----
NULL
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5793
SELECT + ( + - CASE 85 WHEN COUNT( * ) * + COUNT( * ) THEN CAST( NULL AS SIGNED ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5793
SELECT + ( + - CASE 85 WHEN COUNT ( * ) * + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT ALL NULLIF ( - - 29, - 79 + - - COUNT( 98 ) * - ( - + SUM( ALL + + 92 ) ) ) * - 14 AS col1
----
-406

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL NULLIF ( - - 29, - 79 + - - COUNT ( 98 ) * - ( - + SUM ( ALL + + 92 ) ) ) * - 14 AS col1
----
-406

query I rowsort
SELECT ALL 92 * + 10 + + 35
----
955

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT ALL 1 * 90 + MIN( ALL + 6 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL 1 * 90 + MIN ( ALL + 6 ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT + ( + + 29 ) * + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-5797
SELECT + ( + + 29 ) * + + COUNT ( * )
----
29

query I rowsort
SELECT ALL 58 * + 72
----
4176

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5799
SELECT ALL - - 96 + 76 + + + NULLIF ( - + 72, - - AVG ( - 82 ) ) DIV + + 56 - CAST( 78 AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-5799
SELECT ALL - - 96 + 76 + + + NULLIF ( - + 72, - - AVG ( - 82 ) ) / + + 56 - CAST ( 78 AS INTEGER )
----
93

query I rowsort
SELECT ALL - 49 + - 84 AS col2
----
-133

onlyif mysql # DIV for integer division: 
query I rowsort label-5801
SELECT 21 DIV - 11
----
-1

skipif mysql # not compatible
query I rowsort label-5801
SELECT 21 / - 11
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT ALL + 58 + COUNT( * ) col0
----
59

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL + 58 + COUNT ( * ) col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5803
SELECT 70 + NULLIF ( + 76, - 39 ) DIV 33 * 18 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-5803
SELECT 70 + NULLIF ( + 76, - 39 ) / 33 * 18 AS col1
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-5804
SELECT ALL - + 91 DIV + - 38
----
2

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL - + 91 / + - 38
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5805
SELECT COUNT( * ) DIV NULLIF ( + 12, 5 DIV - - 71 ) + - 48 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-5805
SELECT COUNT ( * ) / NULLIF ( + 12, 5 / - - 71 ) + - 48 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT - 5 + - + COUNT( * ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-5806
SELECT - 5 + - + COUNT ( * ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT DISTINCT + - SUM( DISTINCT - - 61 ) + 4 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-5807
SELECT DISTINCT + - SUM ( DISTINCT - - 61 ) + 4 AS col2
----
-57

query I rowsort
SELECT ALL - 33 + + + 49
----
16

query I rowsort
SELECT ALL + 78 + + + 35 AS col1
----
113

query I rowsort
SELECT ALL 91 * 71 AS col1
----
6461

query I rowsort
SELECT DISTINCT 50 * + 97
----
4850

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT 76 + + 54 * - COUNT( * ) * 0 + + 34 col1
----
110

skipif mysql # not compatible
query I rowsort label-5812
SELECT 76 + + 54 * - COUNT ( * ) * 0 + + 34 col1
----
110

query I rowsort
SELECT 63 + 87 + + 64
----
214

query I rowsort
SELECT DISTINCT - ( 88 ) AS col1
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5815
SELECT ALL - CAST( NULL AS SIGNED ), 97 AS col2
----
NULL
97

skipif mysql # not compatible
query II rowsort label-5815
SELECT ALL - CAST ( NULL AS INTEGER ), 97 AS col2
----
NULL
97

query I rowsort
SELECT ALL - 34 * - 38 AS col1
----
1292

onlyif mysql # DIV for integer division: 
query I rowsort label-5817
SELECT + 1 DIV - NULLIF ( + - 36, - + 1 ) - + 60 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-5817
SELECT + 1 / - NULLIF ( + - 36, - + 1 ) - + 60 AS col1
----
-60

query I rowsort
SELECT 1 * + + 88
----
88

query I rowsort
SELECT DISTINCT 1 * - COALESCE ( - - 43, + 13 )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-5820
SELECT ALL - CASE WHEN NOT - 3 IS NOT NULL THEN 3 - + COUNT( * ) + + + COUNT( * ) + 36 * + + 11 END col1, + 53 * - 32 * + ( NULLIF ( 19, + 69 ) )
----
NULL
-32224

skipif mysql # not compatible
query II rowsort label-5820
SELECT ALL - CASE WHEN NOT - 3 IS NOT NULL THEN 3 - + COUNT ( * ) + + + COUNT ( * ) + 36 * + + 11 END col1, + 53 * - 32 * + ( NULLIF ( 19, + 69 ) )
----
NULL
-32224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5821
SELECT + 38 * + - NULLIF ( - - 73, + COUNT( * ) + - - 29 ) + + 43 DIV - 56 col0
----
-2774

skipif mysql # not compatible
query I rowsort label-5821
SELECT + 38 * + - NULLIF ( - - 73, + COUNT ( * ) + - - 29 ) + + 43 / - 56 col0
----
-2774

onlyif mysql # DIV for integer division: 
query I rowsort label-5822
SELECT 91 DIV 16
----
5

skipif mysql # not compatible
query I rowsort label-5822
SELECT 91 / 16
----
5

query I rowsort
SELECT - 46 + + 30
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-5824
SELECT ALL + - 57 + + - 87 DIV 39
----
-59

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL + - 57 + + - 87 / 39
----
-59

query I rowsort
SELECT CASE + 24 WHEN + 24 THEN NULL ELSE + 75 END + - 24 * - + 60 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5826
SELECT 34 * - + COALESCE ( + CAST( - CASE - 45 WHEN - ( + ( 41 ) ) * ( - COALESCE ( + + COUNT( * ), 39 ) ) THEN NULL ELSE - + 9 * 24 / - 90 + - - 11 END AS SIGNED ), + ( + - 23 ) * 13 ) + - 21 + + 71 + + 71
----
563

skipif mysql # not compatible
query I rowsort label-5826
SELECT 34 * - + COALESCE ( + CAST ( - CASE - 45 WHEN - ( + ( 41 ) ) * ( - COALESCE ( + + COUNT ( * ), 39 ) ) THEN NULL ELSE - + 9 * 24 / - 90 + - - 11 END AS INTEGER ), + ( + - 23 ) * 13 ) + - 21 + + 71 + + 71
----
563

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5827
SELECT ALL + 23 DIV COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL + 23 / COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT + SUM( ALL - 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-5828
SELECT + SUM ( ALL - 18 ) AS col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5829
SELECT + CAST( + 28 AS SIGNED ) * + - 66 AS col2, + 94 * COUNT( * )
----
-1848
94

skipif mysql # not compatible
query II rowsort label-5829
SELECT + CAST ( + 28 AS INTEGER ) * + - 66 AS col2, + 94 * COUNT ( * )
----
-1848
94

query I rowsort
SELECT ALL - 48 + + 12 + - + 73 * - + 38
----
2738

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT ALL - + CASE + SUM( + 8 ) WHEN - 92 THEN 30 END + + COUNT( * ) * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL - + CASE + SUM ( + 8 ) WHEN - 92 THEN 30 END + + COUNT ( * ) * 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT DISTINCT + + 14 + + SUM( - 34 )
----
-20

skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT + + 14 + + SUM ( - 34 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT ALL 48 * - MIN( - - 93 ) * 29 + - - 38 + + + 82 + 7 * + 68 + - 81 - - - 37 * 96 / CASE + + 90 WHEN + COALESCE ( + COUNT( * ), - ( - - ( + MAX( ALL - - 70 ) ) ) * + COUNT( * ) - + - 77 * + 38 * - ( 37 ) / - 47 * + COALESCE ( + SUM( + - 44 ), + 50 * - 24 ) / 59 ) * 22 + 78 THEN + 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL 48 * - MIN ( - - 93 ) * 29 + - - 38 + + + 82 + 7 * + 68 + - 81 - - - 37 * 96 / CASE + + 90 WHEN + COALESCE ( + COUNT ( * ), - ( - - ( + MAX ( ALL - - 70 ) ) ) * + COUNT ( * ) - + - 77 * + 38 * - ( 37 ) / - 47 * + COALESCE ( + SUM ( + - 44 ), + 50 * - 24 ) / 59 ) * 22 + 78 THEN + 81 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5834
SELECT + 53 * + - 39 * - 5 * - - 9 * - 70 + 32 * - CAST( NULL AS DECIMAL ) - - 75 + + + 40 + + - COUNT( + 67 ) / + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-5834
SELECT + 53 * + - 39 * - 5 * - - 9 * - 70 + 32 * - CAST ( NULL AS REAL ) - - 75 + + + 40 + + - COUNT ( + 67 ) / + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT 5 + - COALESCE ( COUNT( * ), 5 * + 26 + - 63 ) col2
----
4

skipif mysql # not compatible
query I rowsort label-5835
SELECT 5 + - COALESCE ( COUNT ( * ), 5 * + 26 + - 63 ) col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT - COUNT( * ) + 93 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-5836
SELECT - COUNT ( * ) + 93 AS col2
----
92

query I rowsort
SELECT DISTINCT - 54 * + 16 AS col2
----
-864

query II rowsort
SELECT ALL - 25, 21 AS col2
----
-25
21

query I rowsort
SELECT 84 * - 32 * 90
----
-241920

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT COUNT( * ) + + - 18
----
-17

skipif mysql # not compatible
query I rowsort label-5840
SELECT COUNT ( * ) + + - 18
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5841
SELECT CAST( NULL AS SIGNED ) + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5841
SELECT CAST ( NULL AS INTEGER ) + - 36
----
NULL

query II rowsort
SELECT - + 31, + 72 AS col0
----
-31
72

query I rowsort
SELECT DISTINCT 77 * - - 35
----
2695

onlyif mysql # aggregate syntax: 
query II rowsort label-5844
SELECT ALL + COUNT( ALL + + 34 ) - + + 76 col2, COUNT( * ) * + 34 * 42
----
-75
1428

skipif mysql # not compatible
query II rowsort label-5844
SELECT ALL + COUNT ( ALL + + 34 ) - + + 76 col2, COUNT ( * ) * + 34 * 42
----
-75
1428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5845
SELECT CAST( NULL AS SIGNED ) * - COALESCE ( AVG ( ALL - 57 ), 13 * - COUNT( * ) ) * - + COUNT( + 15 ) * ( CASE 39 WHEN + 89 THEN + + 42 - - 86 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5845
SELECT CAST ( NULL AS INTEGER ) * - COALESCE ( AVG ( ALL - 57 ), 13 * - COUNT ( * ) ) * - + COUNT ( + 15 ) * ( CASE 39 WHEN + 89 THEN + + 42 - - 86 END ) AS col1
----
NULL

query I rowsort
SELECT 73 + + 67 AS col1
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5847
SELECT DISTINCT 9 - + CAST( - 6 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT 9 - + CAST ( - 6 AS INTEGER )
----
15

query I rowsort
SELECT 63 + - 98 col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT - SUM( - 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5849
SELECT - SUM ( - 47 ) AS col0
----
47

query I rowsort
SELECT 8 + - - 43
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5851
SELECT 11 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-5851
SELECT 11 / + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT ALL - 2 * + COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL - 2 * + COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5853
SELECT + COUNT( ALL 11 ), + 60 AS col1
----
1
60

skipif mysql # not compatible
query II rowsort label-5853
SELECT + COUNT ( ALL 11 ), + 60 AS col1
----
1
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT ALL - COUNT( ALL - 45 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL - COUNT ( ALL - 45 ) col0
----
-1

query I rowsort
SELECT ALL 95 * + 37 AS col2
----
3515

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5856
SELECT ALL - COUNT( * ) * - 14 DIV - 3
----
-4

skipif mysql # not compatible
query I rowsort label-5856
SELECT ALL - COUNT ( * ) * - 14 / - 3
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5857
SELECT COUNT( * ) AS col0, - 92
----
1
-92

skipif mysql # not compatible
query II rowsort label-5857
SELECT COUNT ( * ) AS col0, - 92
----
1
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5858
SELECT 33 + - CAST( - + 20 AS SIGNED ) col0
----
53

skipif mysql # not compatible
query I rowsort label-5858
SELECT 33 + - CAST ( - + 20 AS INTEGER ) col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5859
SELECT ALL - 39 * 59 + - - CASE - + 13 WHEN + - COUNT( * ) + - 95 THEN + 22 WHEN - COUNT( * ) + - 74 + + 41 THEN 4 * - 26 + + 69 + + - ( - 19 ) * + 85 WHEN - 59 + + 18 + + NULLIF ( 92, - 69 ) * + CAST( NULL AS SIGNED ) * + - 39 * - 46 THEN + 89 - 56 ELSE NULL END * + 6 * - - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL - 39 * 59 + - - CASE - + 13 WHEN + - COUNT ( * ) + - 95 THEN + 22 WHEN - COUNT ( * ) + - 74 + + 41 THEN 4 * - 26 + + 69 + + - ( - 19 ) * + 85 WHEN - 59 + + 18 + + NULLIF ( 92, - 69 ) * + CAST ( NULL AS INTEGER ) * + - 39 * - 46 THEN + 89 - 56 ELSE NULL END * + 6 * - - 93
----
NULL

query I rowsort
SELECT 7 * 83
----
581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5861
SELECT 40 * + CAST( 69 AS SIGNED ) + COUNT( * ) AS col2
----
2761

skipif mysql # not compatible
query I rowsort label-5861
SELECT 40 * + CAST ( 69 AS INTEGER ) + COUNT ( * ) AS col2
----
2761

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT DISTINCT - 93 * + 32 * COUNT( * )
----
-2976

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT - 93 * + 32 * COUNT ( * )
----
-2976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5863
SELECT ALL + 11 * + CAST( NULL AS SIGNED ) + 17 * + CASE + - COALESCE ( + MAX( 30 ), + - 0 * 81 * - 37 + - 79 + + - 70 - - 65 * CAST( CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) / - - 74 + - 20 * + 19 + CASE - 0 WHEN 40 / + ( - NULLIF ( - 66, + 57 ) ) + + CASE - 3 WHEN + + COUNT( * ) + + - COUNT( + 83 ) + 39 THEN 14 ELSE NULL END THEN NULL WHEN 28 THEN NULL WHEN + 31 / + 93 THEN NULL ELSE + 26 / COUNT( * ) + ( + ( ( 27 ) ) ) * + NULLIF ( + 8, COUNT( DISTINCT 66 ) ) END ) WHEN 97 - CAST( NULL AS DECIMAL ) THEN 31 + - 6 WHEN 58 * + 16 THEN NULL ELSE - 22 END + + 67 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL + 11 * + CAST ( NULL AS INTEGER ) + 17 * + CASE + - COALESCE ( + MAX ( 30 ), + - 0 * 81 * - 37 + - 79 + + - 70 - - 65 * CAST ( CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) / - - 74 + - 20 * + 19 + CASE - 0 WHEN 40 / + ( - NULLIF ( - 66, + 57 ) ) + + CASE - 3 WHEN + + COUNT ( * ) + + - COUNT ( + 83 ) + 39 THEN 14 ELSE NULL END THEN NULL WHEN 28 THEN NULL WHEN + 31 / + 93 THEN NULL ELSE + 26 / COUNT ( * ) + ( + ( ( 27 ) ) ) * + NULLIF ( + 8, COUNT ( DISTINCT 66 ) ) END ) WHEN 97 - CAST ( NULL AS REAL ) THEN 31 + - 6 WHEN 58 * + 16 THEN NULL ELSE - 22 END + + 67 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5864
SELECT DISTINCT + CAST( + 16 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-5864
SELECT DISTINCT + CAST ( + 16 AS INTEGER )
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-5865
SELECT DISTINCT - 60 * + - MAX( ALL - 56 ) * - 20 * - + 63 * 59, - 90 + + + ( 83 ) * 63 AS col0
----
-249782400
5139

skipif mysql # not compatible
query II rowsort label-5865
SELECT DISTINCT - 60 * + - MAX ( ALL - 56 ) * - 20 * - + 63 * 59, - 90 + + + ( 83 ) * 63 AS col0
----
-249782400
5139

query I rowsort
SELECT ALL + 2 + + ( + 50 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT - ( 73 ) * CAST( NULL AS SIGNED ) + - + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5867
SELECT - ( 73 ) * CAST ( NULL AS INTEGER ) + - + 57 AS col1
----
NULL

query I rowsort
SELECT - - 11 * + 87 + + 81 AS col1
----
1038

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT DISTINCT - COUNT( * ) * - 20 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-5869
SELECT DISTINCT - COUNT ( * ) * - 20 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT - + 36 - + MAX( 63 )
----
-99

skipif mysql # not compatible
query I rowsort label-5870
SELECT - + 36 - + MAX ( 63 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT - MIN( - + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-5871
SELECT - MIN ( - + 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT + - MAX( ALL - 99 ) * 19
----
1881

skipif mysql # not compatible
query I rowsort label-5872
SELECT + - MAX ( ALL - 99 ) * 19
----
1881

query I rowsort
SELECT ALL ( 20 ) - + 75
----
-55

query II rowsort
SELECT ALL + 89 AS col2, 98
----
89
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT ALL + MAX( ALL - - 41 ) * COUNT( * ) * + ( - + ( 7 ) ) + 83 * - ( + 42 ) AS col0
----
-3773

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL + MAX ( ALL - - 41 ) * COUNT ( * ) * + ( - + ( 7 ) ) + 83 * - ( + 42 ) AS col0
----
-3773

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5876
SELECT DISTINCT + + ( + COUNT( * ) ) DIV - 4
----
0

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT + + ( + COUNT ( * ) ) / - 4
----
0

query I rowsort
SELECT - 26 + 83
----
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5878
SELECT + 8 - + + CAST( NULL AS DECIMAL ) + + 8 / + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5878
SELECT + 8 - + + CAST ( NULL AS REAL ) + + 8 / + + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT - COUNT( - - 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-5879
SELECT - COUNT ( - - 38 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT + COUNT( + 27 ) * - 39
----
-39

skipif mysql # not compatible
query I rowsort label-5880
SELECT + COUNT ( + 27 ) * - 39
----
-39

query I rowsort
SELECT ALL 2 * + 50 * - 16
----
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT DISTINCT SUM( + ( - + 91 ) ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT SUM ( + ( - + 91 ) ) AS col0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5883
SELECT + 48 + COUNT( * ) AS col0, ( - + 36 ) AS col0
----
49
-36

skipif mysql # not compatible
query II rowsort label-5883
SELECT + 48 + COUNT ( * ) AS col0, ( - + 36 ) AS col0
----
49
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-5884
SELECT + 66 * COUNT( * ) AS col0, + ( + + 52 ) - 40
----
66
12

skipif mysql # not compatible
query II rowsort label-5884
SELECT + 66 * COUNT ( * ) AS col0, + ( + + 52 ) - 40
----
66
12

query II rowsort
SELECT ( - CASE - 8 WHEN - 50 THEN + 35 END ), ( - 26 ) AS col2
----
NULL
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT ( + SUM( ALL + 45 ) )
----
45

skipif mysql # not compatible
query I rowsort label-5886
SELECT ( + SUM ( ALL + 45 ) )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5887
SELECT ALL - CAST( 98 AS SIGNED ) * + 18 - - ( - 13 ) + + + 85 + - 80 * + - 46
----
1988

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL - CAST ( 98 AS INTEGER ) * + 18 - - ( - 13 ) + + + 85 + - 80 * + - 46
----
1988

query I rowsort
SELECT ALL - 28 * 64 + - 98 AS col0
----
-1890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5889
SELECT DISTINCT COUNT( DISTINCT + 38 ) DIV COUNT( - - 62 )
----
1

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT COUNT ( DISTINCT + 38 ) / COUNT ( - - 62 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5890
SELECT DISTINCT - CAST( - 14 AS SIGNED ) * 2 * + - 33
----
-924

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT - CAST ( - 14 AS INTEGER ) * 2 * + - 33
----
-924

query I rowsort
SELECT DISTINCT + NULLIF ( + - 71, - 26 )
----
-71

query I rowsort
SELECT ALL - 93 * - 44 + - + 13 AS col1
----
4079

query I rowsort
SELECT ALL 52 * - - 37 AS col0
----
1924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5894
SELECT + CASE 10 WHEN - 84 + + - 92 / - 74 * CAST( NULL AS SIGNED ) * + CASE - 19 WHEN + 3 / - 66 THEN - + 11 / + ( - - 49 ) * - 13 ELSE - 40 END THEN - ( CAST( NULL AS DECIMAL ) ) WHEN - - MIN( + 70 ) * - 20 * 28 THEN NULL WHEN + 9 THEN NULL ELSE NULL END * 50 + - 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5894
SELECT + CASE 10 WHEN - 84 + + - 92 / - 74 * CAST ( NULL AS INTEGER ) * + CASE - 19 WHEN + 3 / - 66 THEN - + 11 / + ( - - 49 ) * - 13 ELSE - 40 END THEN - ( CAST ( NULL AS REAL ) ) WHEN - - MIN ( + 70 ) * - 20 * 28 THEN NULL WHEN + 9 THEN NULL ELSE NULL END * 50 + - 28 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5895
SELECT - 77 * + 78 + + - ( - 99 ) DIV - COUNT( * ) + - 26 + + 45 DIV + - 81 * - 68 * + + 49 AS col0
----
-6131

skipif mysql # not compatible
query I rowsort label-5895
SELECT - 77 * + 78 + + - ( - 99 ) / - COUNT ( * ) + - 26 + + 45 / + - 81 * - 68 * + + 49 AS col0
----
-6131

query I rowsort
SELECT ALL + + 74 col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT - NULLIF ( 20, + 21 * - NULLIF ( - 41, + + ( - 53 ) * + + COUNT( ALL - 38 ) ) ) col1
----
-20

skipif mysql # not compatible
query I rowsort label-5897
SELECT - NULLIF ( 20, + 21 * - NULLIF ( - 41, + + ( - 53 ) * + + COUNT ( ALL - 38 ) ) ) col1
----
-20

query I rowsort
SELECT + 57 + + 52 + - 8 AS col1
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5899
SELECT + + 92 * + CAST( NULL AS SIGNED ) + + CAST( - 33 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5899
SELECT + + 92 * + CAST ( NULL AS INTEGER ) + + CAST ( - 33 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 72 * 40
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT DISTINCT - + NULLIF ( + - ( COUNT( * ) ), - + 84 ) * - - 36 - + 51 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-5901
SELECT DISTINCT - + NULLIF ( + - ( COUNT ( * ) ), - + 84 ) * - - 36 - + 51 AS col1
----
-15

query I rowsort
SELECT ALL + 55 * 30 * + ( 99 ) + + - ( 41 ) AS col0
----
163309

query II rowsort
SELECT - - 49 + + - 38 AS col2, - 31 + + 49 AS col2
----
11
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT ALL + - COUNT( * ) * 72 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL + - COUNT ( * ) * 72 AS col2
----
-72

query I rowsort
SELECT - + 33 * - 30 col1
----
990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5906
SELECT - + 75 + + 30, ( CAST( + COUNT( * ) AS SIGNED ) ) col0
----
-45
1

skipif mysql # not compatible
query II rowsort label-5906
SELECT - + 75 + + 30, ( CAST ( + COUNT ( * ) AS INTEGER ) ) col0
----
-45
1

query II rowsort
SELECT + 71 * + 45 + 30 AS col1, - ( + + 24 ) col2
----
3225
-24

query I rowsort
SELECT ALL + 20 * + 44
----
880

onlyif mysql # aggregate syntax: 
query II rowsort label-5909
SELECT COUNT( * ) AS col2, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-5909
SELECT COUNT ( * ) AS col2, COUNT ( * ) AS col1
----
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5910
SELECT - 32 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-5910
SELECT - 32 / - 78
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5911
SELECT DISTINCT CAST( - 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-5911
SELECT DISTINCT CAST ( - 22 AS INTEGER )
----
-22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5912
SELECT - CAST( 54 AS SIGNED ) DIV - 26
----
2

skipif mysql # not compatible
query I rowsort label-5912
SELECT - CAST ( 54 AS INTEGER ) / - 26
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5913
SELECT ALL COALESCE ( + 68, + 78 / - - ( - - ( - 72 ) ) * 64 ) + + - SUM( - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL COALESCE ( + 68, + 78 / - - ( - - ( - 72 ) ) * 64 ) + + - SUM ( - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5914
SELECT - 90 + 6 DIV - NULLIF ( - 1, - CASE + + 48 WHEN + + 27 * - 78 + + 82 * + - COUNT( + 3 ) THEN - 45 ELSE NULL END * + - 71 )
----
-84

skipif mysql # not compatible
query I rowsort label-5914
SELECT - 90 + 6 / - NULLIF ( - 1, - CASE + + 48 WHEN + + 27 * - 78 + + 82 * + - COUNT ( + 3 ) THEN - 45 ELSE NULL END * + - 71 )
----
-84

query I rowsort
SELECT + 49 * - 28
----
-1372

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT DISTINCT - 30 + COUNT( * ) col2
----
-29

skipif mysql # not compatible
query I rowsort label-5916
SELECT DISTINCT - 30 + COUNT ( * ) col2
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-5917
SELECT - CASE + - COUNT( * ) WHEN 91 THEN + - COUNT( * ) END * + + 94 * 44, + 41 col0
----
NULL
41

skipif mysql # not compatible
query II rowsort label-5917
SELECT - CASE + - COUNT ( * ) WHEN 91 THEN + - COUNT ( * ) END * + + 94 * 44, + 41 col0
----
NULL
41

query I rowsort
SELECT ALL + 13 + + 87
----
100

query I rowsort
SELECT ALL 94 + + 72
----
166

query II rowsort
SELECT + - 34 AS col1, + 49 * - 51 - + 65 AS col1
----
-34
-2564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5921
SELECT - + 82 / 88 / - 21 + + - 56 - - 18 + - ( + CAST( NULL AS SIGNED ) ) + + 12 / + 85 * ( - + 62 ) / - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - COUNT( * ) / - 20 + - COUNT( 16 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5921
SELECT - + 82 / 88 / - 21 + + - 56 - - 18 + - ( + CAST ( NULL AS INTEGER ) ) + + 12 / + 85 * ( - + 62 ) / - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - COUNT ( * ) / - 20 + - COUNT ( 16 ) AS col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 56, - - 57 ) col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT + CASE + COUNT( * ) WHEN - 32 * - - 24 THEN NULL WHEN + 68 THEN + - 96 ELSE + 42 + + 1 END
----
43

skipif mysql # not compatible
query I rowsort label-5923
SELECT + CASE + COUNT ( * ) WHEN - 32 * - - 24 THEN NULL WHEN + 68 THEN + - 96 ELSE + 42 + + 1 END
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT COUNT( * ) * 46 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-5924
SELECT COUNT ( * ) * 46 AS col0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5925
SELECT 44 DIV 98 + + MIN( + + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-5925
SELECT 44 / 98 + + MIN ( + + 5 )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5926
SELECT 31, - CAST( NULL AS SIGNED ) AS col0
----
31
NULL

skipif mysql # not compatible
query II rowsort label-5926
SELECT 31, - CAST ( NULL AS INTEGER ) AS col0
----
31
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT ALL CASE 26 WHEN NULLIF ( - 64, - COUNT( 85 ) ) THEN - 99 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL CASE 26 WHEN NULLIF ( - 64, - COUNT ( 85 ) ) THEN - 99 END * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5928
SELECT ALL ( - 74 ) / - 96 + + COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL ( - 74 ) / - 96 + + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5929
SELECT + 64 DIV - 18 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-5929
SELECT + 64 / - 18 AS col2
----
-3

query I rowsort
SELECT DISTINCT + 17 * ( - - 18 ) AS col0
----
306

onlyif mysql # aggregate syntax: 
query II rowsort label-5931
SELECT + + 59 col1, COUNT( * ) AS col2
----
59
1

skipif mysql # not compatible
query II rowsort label-5931
SELECT + + 59 col1, COUNT ( * ) AS col2
----
59
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5932
SELECT 90 * 38 * 25 DIV 7
----
12214

skipif mysql # not compatible
query I rowsort label-5932
SELECT 90 * 38 * 25 / 7
----
12214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5933
SELECT - CAST( + - 51 AS SIGNED ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-5933
SELECT - CAST ( + - 51 AS INTEGER ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT - COUNT( * ) * + + 2 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5934
SELECT - COUNT ( * ) * + + 2 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5935
SELECT 18 * - + ( - + 8 ) + - CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5935
SELECT 18 * - + ( - + 8 ) + - CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( + - 79 ) + + - 5 + + 81
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5937
SELECT CAST( - 52 AS SIGNED ) * + 47 + 10
----
-2434

skipif mysql # not compatible
query I rowsort label-5937
SELECT CAST ( - 52 AS INTEGER ) * + 47 + 10
----
-2434

onlyif mysql # aggregate syntax: 
query II rowsort label-5938
SELECT ALL 85 + + + COUNT( * ) + + COUNT( * ) * + 60 + + 0 AS col2, 35
----
146
35

skipif mysql # not compatible
query II rowsort label-5938
SELECT ALL 85 + + + COUNT ( * ) + + COUNT ( * ) * + 60 + + 0 AS col2, 35
----
146
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT 1 - 8 * + + 0 * + SUM( DISTINCT 87 ) - - 76 + - 73 - - 19
----
23

skipif mysql # not compatible
query I rowsort label-5939
SELECT 1 - 8 * + + 0 * + SUM ( DISTINCT 87 ) - - 76 + - 73 - - 19
----
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5940
SELECT 8 * - + NULLIF ( COUNT( * ), COUNT( * ) * - 92 + - NULLIF ( - - CAST( - 31 AS DECIMAL ), - - 51 ) * - 9 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-5940
SELECT 8 * - + NULLIF ( COUNT ( * ), COUNT ( * ) * - 92 + - NULLIF ( - - CAST ( - 31 AS REAL ), - - 51 ) * - 9 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT DISTINCT + 98 * + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT + 98 * + COUNT ( * )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5942
SELECT ALL - COUNT( * ) + + 5, COALESCE ( + 58, 72 ) AS col1
----
4
58

skipif mysql # not compatible
query II rowsort label-5942
SELECT ALL - COUNT ( * ) + + 5, COALESCE ( + 58, 72 ) AS col1
----
4
58

query I rowsort
SELECT 98 * - 73
----
-7154

query I rowsort
SELECT 1 + 49
----
50

query I rowsort
SELECT 10 + 52
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT DISTINCT 29 - - MAX( DISTINCT - - 74 ) * + - 19 + - COUNT( * )
----
-1378

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT 29 - - MAX ( DISTINCT - - 74 ) * + - 19 + - COUNT ( * )
----
-1378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5947
SELECT DISTINCT - 62 DIV + - 96 AS col0, + 48 * ( - 71 ) + - + CAST( COUNT( * ) AS SIGNED )
----
0
-3409

skipif mysql # not compatible
query II rowsort label-5947
SELECT DISTINCT - 62 / + - 96 AS col0, + 48 * ( - 71 ) + - + CAST ( COUNT ( * ) AS INTEGER )
----
0
-3409

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5948
SELECT - CAST( NULL AS SIGNED ) * + 36, CASE 59 WHEN + 9 THEN + + 65 WHEN - 71 + + 87 THEN NULL END + + CASE + 34 WHEN 78 + - 19 THEN - 17 * + 90 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5948
SELECT - CAST ( NULL AS INTEGER ) * + 36, CASE 59 WHEN + 9 THEN + + 65 WHEN - 71 + + 87 THEN NULL END + + CASE + 34 WHEN 78 + - 19 THEN - 17 * + 90 ELSE NULL END
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5949
SELECT - 73 * - COALESCE ( ( - COALESCE ( COUNT( * ), - MIN( ALL + 24 ), + 13 ) ), + COUNT( + 96 ), - 86 ) * + + 31 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT - 73 * - COALESCE ( ( - COALESCE ( COUNT ( * ), - MIN ( ALL + 24 ), + 13 ) ), + COUNT ( + 96 ), - 86 ) * + + 31 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 12 + - - 96
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT 28 * + NULLIF ( 34, - + 84 ) * + - COUNT( + ( 22 ) )
----
-952

skipif mysql # not compatible
query I rowsort label-5951
SELECT 28 * + NULLIF ( 34, - + 84 ) * + - COUNT ( + ( 22 ) )
----
-952

onlyif mysql # aggregate syntax: 
query II rowsort label-5952
SELECT - SUM( DISTINCT - + 40 ), - NULLIF ( + 33, COUNT( * ) + + 98 * + 45 ) AS col2
----
40
-33

skipif mysql # not compatible
query II rowsort label-5952
SELECT - SUM ( DISTINCT - + 40 ), - NULLIF ( + 33, COUNT ( * ) + + 98 * + 45 ) AS col2
----
40
-33

query I rowsort
SELECT - - 91 * + 87 * - + 67 * 16 + - - 72 - 81 AS col2
----
-8487033

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT ALL + COUNT( * ) - 44
----
-43

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL + COUNT ( * ) - 44
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-5955
SELECT 74 DIV 94 + - 11 * 5 + 66 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5955
SELECT 74 / 94 + - 11 * 5 + 66 AS col0
----
11

query I rowsort
SELECT DISTINCT + + 63 * + 62 - + + 4 AS col0
----
3902

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT + COUNT( 81 ) * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5957
SELECT + COUNT ( 81 ) * + - COUNT ( * )
----
-1

query I rowsort
SELECT - 62 + - 94 AS col0
----
-156

query I rowsort
SELECT ALL + 77 * + 82 * 89 + - ( - 5 ) AS col2
----
561951

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT - COUNT( * ) * + SUM( ALL + 90 ) col1
----
-90

skipif mysql # not compatible
query I rowsort label-5960
SELECT - COUNT ( * ) * + SUM ( ALL + 90 ) col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT ( ( 4 ) ) * 62 * - - COUNT( * ) * - 11 + + 46
----
-2682

skipif mysql # not compatible
query I rowsort label-5961
SELECT ( ( 4 ) ) * 62 * - - COUNT ( * ) * - 11 + + 46
----
-2682

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5962
SELECT 22 * - 1 DIV - - 99 + SUM( 15 ) + - ( - MAX( - + 54 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-5962
SELECT 22 * - 1 / - - 99 + SUM ( 15 ) + - ( - MAX ( - + 54 ) )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5963
SELECT 5 DIV - - 51 AS col0, + 44 * - 1 DIV + 54 + + COALESCE ( - + 24, 60 + + COUNT( * ), + 86 ) col2
----
0
-24

skipif mysql # not compatible
query II rowsort label-5963
SELECT 5 / - - 51 AS col0, + 44 * - 1 / + 54 + + COALESCE ( - + 24, 60 + + COUNT ( * ), + 86 ) col2
----
0
-24

query I rowsort
SELECT + 59 * + ( 81 ) + + + 54 AS col1
----
4833

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT COUNT( * ) + - 19 + + + ( - 2 ) * ( - + ( 69 ) )
----
120

skipif mysql # not compatible
query I rowsort label-5965
SELECT COUNT ( * ) + - 19 + + + ( - 2 ) * ( - + ( 69 ) )
----
120

query I rowsort
SELECT + + COALESCE ( 55, - 89 * - 58 ) col1
----
55

query I rowsort
SELECT ALL 85 + + 35 + + 15 * - 48 * - 65 col1
----
46920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5968
SELECT DISTINCT 44 DIV ( COUNT( + - CAST( + 23 AS SIGNED ) ) )
----
44

skipif mysql # not compatible
query I rowsort label-5968
SELECT DISTINCT 44 / ( COUNT ( + - CAST ( + 23 AS INTEGER ) ) )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT DISTINCT NULLIF ( + 51, + 3 * - + 46 ) + + 88 - + - 71 - MAX( + 50 ) + - ( - 58 ) + + 24 * + 87 + + 71 * 32 * + 21 * + 65 * - 24
----
-74428414

skipif mysql # not compatible
query I rowsort label-5969
SELECT DISTINCT NULLIF ( + 51, + 3 * - + 46 ) + + 88 - + - 71 - MAX ( + 50 ) + - ( - 58 ) + + 24 * + 87 + + 71 * 32 * + 21 * + 65 * - 24
----
-74428414

query I rowsort
SELECT ALL 67 + 90 * 33 + - + 15 col1
----
3022

query I rowsort
SELECT 1 + 11 + 30 AS col2
----
42

query I rowsort
SELECT ALL 79 * - 48
----
-3792

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT DISTINCT COUNT( * ) + - + 3
----
-2

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT COUNT ( * ) + - + 3
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5974
SELECT CAST( NULL AS SIGNED ) + CAST( - 73 AS SIGNED ), ( - + CASE + 46 WHEN + MAX( - - 28 ) * - AVG ( - 72 ) - + 48 THEN - + 57 WHEN COUNT( * ) * - + 59 THEN NULL ELSE - 3 * + + 35 * - + COUNT( * ) * - - 25 * 90 + - - 25 + + 91 + - 34 DIV - 45 - COUNT( * ) END ) DIV + + COUNT( DISTINCT + 12 ) AS col1
----
NULL
-236365

skipif mysql # not compatible
query II rowsort label-5974
SELECT CAST ( NULL AS INTEGER ) + CAST ( - 73 AS INTEGER ), ( - + CASE + 46 WHEN + MAX ( - - 28 ) * - AVG ( - 72 ) - + 48 THEN - + 57 WHEN COUNT ( * ) * - + 59 THEN NULL ELSE - 3 * + + 35 * - + COUNT ( * ) * - - 25 * 90 + - - 25 + + 91 + - 34 / - 45 - COUNT ( * ) END ) / + + COUNT ( DISTINCT + 12 ) AS col1
----
NULL
-236365

query II rowsort
SELECT 91 * - 31 * - 58, 62 * + + 35 + 70 * + + 22 col0
----
163618
3710

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT DISTINCT MAX( + 76 ) + + 94
----
170

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT MAX ( + 76 ) + + 94
----
170

query II rowsort
SELECT ALL 95 AS col2, + 38
----
95
38

query I rowsort
SELECT DISTINCT + 13 + - + 40 AS col1
----
-27

query I rowsort
SELECT - NULLIF ( ( - 8 ), - 61 * - 6 ) AS col1
----
8

query I rowsort
SELECT ALL + 95 - 28
----
67

query I rowsort
SELECT DISTINCT - 40 * - - 79
----
-3160

query I rowsort
SELECT - 77 + - - 85 col2
----
8

query I rowsort
SELECT - 36 * - - 48 col2
----
-1728

query I rowsort
SELECT + 47 * 80 AS col2
----
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT - 53 + MIN( 97 ) * - 68 + + 49 + - COUNT( * ) * - 10
----
-6590

skipif mysql # not compatible
query I rowsort label-5985
SELECT - 53 + MIN ( 97 ) * - 68 + + 49 + - COUNT ( * ) * - 10
----
-6590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5986
SELECT + 65 DIV COUNT( * ) col2
----
65

skipif mysql # not compatible
query I rowsort label-5986
SELECT + 65 / COUNT ( * ) col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT - COUNT( DISTINCT 59 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5987
SELECT - COUNT ( DISTINCT 59 ) AS col0
----
-1

query I rowsort
SELECT - + 47 + 53 * - + NULLIF ( + 37, + - 11 * + 63 ) AS col1
----
-2008

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT - - COUNT( DISTINCT 85 ) * - - MAX( + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-5989
SELECT - - COUNT ( DISTINCT 85 ) * - - MAX ( + 50 )
----
50

query I rowsort
SELECT ALL - ( + + 66 ) * + ( - 72 )
----
4752

query I rowsort
SELECT ALL + COALESCE ( 10, 27, 37 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT DISTINCT - COUNT( * ) * + 36 * + + ( 6 )
----
-216

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT - COUNT ( * ) * + 36 * + + ( 6 )
----
-216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5993
SELECT ALL - - 90 DIV 63 DIV - MAX( + + 54 )
----
0

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL - - 90 / 63 / - MAX ( + + 54 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5994
SELECT - CASE + - 18 WHEN - + 42 - + 45 THEN NULL WHEN + 14 * + + 5 THEN + 54 ELSE 38 + + 87 DIV 46 END * 91 * + 85 - + 99, + MIN( + - 45 ) DIV + 63 - 77 * CAST( 66 AS SIGNED ) AS col2
----
-301764
-5082

skipif mysql # not compatible
query II rowsort label-5994
SELECT - CASE + - 18 WHEN - + 42 - + 45 THEN NULL WHEN + 14 * + + 5 THEN + 54 ELSE 38 + + 87 / 46 END * 91 * + 85 - + 99, + MIN ( + - 45 ) / + 63 - 77 * CAST ( 66 AS INTEGER ) AS col2
----
-301764
-5082

query II rowsort
SELECT 66, + 75 AS col2
----
66
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5996
SELECT - COALESCE ( CAST( 11 AS SIGNED ), + CAST( NULL AS SIGNED ) ) DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-5996
SELECT - COALESCE ( CAST ( 11 AS INTEGER ), + CAST ( NULL AS INTEGER ) ) / - 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT - SUM( 17 ) * - 53
----
901

skipif mysql # not compatible
query I rowsort label-5997
SELECT - SUM ( 17 ) * - 53
----
901

onlyif mysql # DIV for integer division: 
query I rowsort label-5998
SELECT ALL - + 98 DIV - - 90
----
-1

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL - + 98 / - - 90
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT + MAX( - - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-5999
SELECT + MAX ( - - 42 )
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-6000
SELECT + 99 AS col2, 55 DIV + 6 AS col2
----
99
9

skipif mysql # not compatible
query II rowsort label-6000
SELECT + 99 AS col2, 55 / + 6 AS col2
----
99
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT ALL + 64 * - COUNT( * ) + 31 * - - 68 * + - 71 AS col1
----
-149732

skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL + 64 * - COUNT ( * ) + 31 * - - 68 * + - 71 AS col1
----
-149732

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT ALL - 50 * - 17 + + + ( - COUNT( * ) ) + + - COUNT( * ) * 49 + - - 52
----
852

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL - 50 * - 17 + + + ( - COUNT ( * ) ) + + - COUNT ( * ) * 49 + - - 52
----
852

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT - - COUNT( * ) * + 97
----
97

skipif mysql # not compatible
query I rowsort label-6003
SELECT - - COUNT ( * ) * + 97
----
97

query I rowsort
SELECT ALL - - 94 * + + 94
----
8836

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT ALL - 98 * - 67 * + COUNT( * )
----
6566

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL - 98 * - 67 * + COUNT ( * )
----
6566

onlyif mysql # aggregate syntax: 
query II rowsort label-6006
SELECT COUNT( * ), + 11 - + - ( - - 33 ) * - - COUNT( * ) * + 79 AS col2
----
1
2618

skipif mysql # not compatible
query II rowsort label-6006
SELECT COUNT ( * ), + 11 - + - ( - - 33 ) * - - COUNT ( * ) * + 79 AS col2
----
1
2618

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT COUNT( + 7 )
----
1

skipif mysql # not compatible
query I rowsort label-6007
SELECT COUNT ( + 7 )
----
1

query I rowsort
SELECT ALL - 34 * + 24 + - 25
----
-841

onlyif mysql # aggregate syntax: 
query II rowsort label-6009
SELECT COUNT( + 81 ) AS col0, 35 AS col2
----
1
35

skipif mysql # not compatible
query II rowsort label-6009
SELECT COUNT ( + 81 ) AS col0, 35 AS col2
----
1
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT + NULLIF ( - 67, 89 * + 78 * - + 30 + - + CASE 75 WHEN + + 6 + + + 36 THEN + MAX( 85 ) + COALESCE ( + 81, + COUNT( * ) ) * - 46 + + 85 ELSE + - 51 END * - 29 )
----
-67

skipif mysql # not compatible
query I rowsort label-6010
SELECT + NULLIF ( - 67, 89 * + 78 * - + 30 + - + CASE 75 WHEN + + 6 + + + 36 THEN + MAX ( 85 ) + COALESCE ( + 81, + COUNT ( * ) ) * - 46 + + 85 ELSE + - 51 END * - 29 )
----
-67

query I rowsort
SELECT ALL 95 * + 26 - + 52 AS col2
----
2418

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT - CASE - 70 WHEN + - SUM( DISTINCT 58 ) - 83 THEN 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6012
SELECT - CASE - 70 WHEN + - SUM ( DISTINCT 58 ) - 83 THEN 31 END
----
NULL

query I rowsort
SELECT + 83 * - 16 col0
----
-1328

query I rowsort
SELECT ALL 54 - + 31
----
23

query I rowsort
SELECT + 60 - - 32 AS col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-6016
SELECT ALL COUNT( * ), - 33 AS col1
----
1
-33

skipif mysql # not compatible
query II rowsort label-6016
SELECT ALL COUNT ( * ), - 33 AS col1
----
1
-33

query I rowsort
SELECT + 36 + - 84
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6018
SELECT + 48 * + ( - 69 ) * 67, - CAST( NULL AS SIGNED ) AS col2
----
-221904
NULL

skipif mysql # not compatible
query II rowsort label-6018
SELECT + 48 * + ( - 69 ) * 67, - CAST ( NULL AS INTEGER ) AS col2
----
-221904
NULL

query I rowsort
SELECT ALL 18 * + - 53
----
-954

query I rowsort
SELECT + 24 * + 62 AS col1
----
1488

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT + 0 + - 93 + COUNT( DISTINCT 42 ) * - 21
----
-114

skipif mysql # not compatible
query I rowsort label-6021
SELECT + 0 + - 93 + COUNT ( DISTINCT 42 ) * - 21
----
-114

query II rowsort
SELECT ALL 76 AS col1, + 67
----
76
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6023
SELECT - 87 AS col1, - CAST( + + 67 AS SIGNED ) * 40 - - 32 AS col1
----
-87
-2648

skipif mysql # not compatible
query II rowsort label-6023
SELECT - 87 AS col1, - CAST ( + + 67 AS INTEGER ) * 40 - - 32 AS col1
----
-87
-2648

onlyif mysql # aggregate syntax: 
query II rowsort label-6024
SELECT ALL - COUNT( * ) * + + 71 * + - 18 * - - 60 * - - 57 + + 39 AS col1, COUNT( * )
----
4370799
1

skipif mysql # not compatible
query II rowsort label-6024
SELECT ALL - COUNT ( * ) * + + 71 * + - 18 * - - 60 * - - 57 + + 39 AS col1, COUNT ( * )
----
4370799
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6025
SELECT + 8 * - COUNT( * ) + - - 68 * + - 92 AS col0, 10 + - 41 - + 95
----
-6264
-126

skipif mysql # not compatible
query II rowsort label-6025
SELECT + 8 * - COUNT ( * ) + - - 68 * + - 92 AS col0, 10 + - 41 - + 95
----
-6264
-126

onlyif mysql # aggregate syntax: 
query II rowsort label-6026
SELECT ALL + COUNT( * ) AS col0, COALESCE ( - + 45, 59 ) * + 98 col1
----
1
-4410

skipif mysql # not compatible
query II rowsort label-6026
SELECT ALL + COUNT ( * ) AS col0, COALESCE ( - + 45, 59 ) * + 98 col1
----
1
-4410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6027
SELECT - + COUNT( * ) DIV + 74 + - - 34 - 69 * + 18
----
-1208

skipif mysql # not compatible
query I rowsort label-6027
SELECT - + COUNT ( * ) / + 74 + - - 34 - 69 * + 18
----
-1208

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT + COUNT( * ) + - + 88
----
-87

skipif mysql # not compatible
query I rowsort label-6028
SELECT + COUNT ( * ) + - + 88
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6029
SELECT ALL 83 DIV - MAX( - 44 ) + 35 + + 92
----
128

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL 83 / - MAX ( - 44 ) + 35 + + 92
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6030
SELECT + 87 DIV 88 + - COUNT( * ) + - 47, + 30 col0
----
-48
30

skipif mysql # not compatible
query II rowsort label-6030
SELECT + 87 / 88 + - COUNT ( * ) + - 47, + 30 col0
----
-48
30

query I rowsort
SELECT DISTINCT - 34 * - - 88
----
-2992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6032
SELECT ALL 91 DIV - - 64 + + - 16 + + 85 - + 16 * + + COUNT( * ) * 5 col0
----
-10

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL 91 / - - 64 + + - 16 + + 85 - + 16 * + + COUNT ( * ) * 5 col0
----
-10

query II rowsort
SELECT DISTINCT + + 99 AS col2, - 31 AS col1
----
99
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-6034
SELECT DISTINCT - 38 DIV - + 52 + - + 55 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-6034
SELECT DISTINCT - 38 / - + 52 + - + 55 AS col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6035
SELECT ALL MIN( + 14 ) DIV + ( + COUNT( * ) ) + COUNT( * ) col2
----
15

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL MIN ( + 14 ) / + ( + COUNT ( * ) ) + COUNT ( * ) col2
----
15

query II rowsort
SELECT ( + 22 ), 84 * 48 * - COALESCE ( - 10, 55, + 25 ) AS col2
----
22
40320

query I rowsort
SELECT 30 * + + 22 + 63 AS col1
----
723

query I rowsort
SELECT ( - ( - - 94 ) ) AS col1
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-6039
SELECT 1 DIV 30 col2
----
0

skipif mysql # not compatible
query I rowsort label-6039
SELECT 1 / 30 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6040
SELECT - 16 * + ( 76 ) * - 4 * + 73 + + 78 * 15 * CAST( NULL AS SIGNED ) / - ( + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6040
SELECT - 16 * + ( 76 ) * - 4 * + 73 + + 78 * 15 * CAST ( NULL AS INTEGER ) / - ( + 17 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT ALL - COUNT( DISTINCT + 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL - COUNT ( DISTINCT + 1 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6042
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) AS col0, 55 * - - 26 DIV - - COUNT( * ) + + - COUNT( * ) * + 28 AS col2
----
0
1402

skipif mysql # not compatible
query II rowsort label-6042
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) AS col0, 55 * - - 26 / - - COUNT ( * ) + + - COUNT ( * ) * + 28 AS col2
----
0
1402

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT DISTINCT - COALESCE ( - + COUNT( - 7 ), - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT - COALESCE ( - + COUNT ( - 7 ), - COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6044
SELECT ALL CAST( - + 75 AS SIGNED ) - + 85 + + - ( + - 44 ) + SUM( DISTINCT + 13 ) DIV + + 90
----
-116

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL CAST ( - + 75 AS INTEGER ) - + 85 + + - ( + - 44 ) + SUM ( DISTINCT + 13 ) / + + 90
----
-116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6045
SELECT 36 + 27 - - + 26 + + 34 + + - CAST( - - 26 AS SIGNED ) * + ( + + 65 ) * 66 + + 20 * - - ( ( - NULLIF ( 50, 72 * - 28 * + 56 ) ) ) + + + 4 * 33 AS col0
----
-112285

skipif mysql # not compatible
query I rowsort label-6045
SELECT 36 + 27 - - + 26 + + 34 + + - CAST ( - - 26 AS INTEGER ) * + ( + + 65 ) * 66 + + 20 * - - ( ( - NULLIF ( 50, 72 * - 28 * + 56 ) ) ) + + + 4 * 33 AS col0
----
-112285

query I rowsort
SELECT DISTINCT + ( + 39 ) * 85
----
3315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6047
SELECT AVG ( DISTINCT - 72 ) + - - MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) + ( - 25 ) * 84 AS col2, + 38
----
NULL
38

skipif mysql # not compatible
query II rowsort label-6047
SELECT AVG ( DISTINCT - 72 ) + - - MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + ( - 25 ) * 84 AS col2, + 38
----
NULL
38

query I rowsort
SELECT 26 * 40 * - 56
----
-58240

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT MAX( ALL - 27 ) * + 96
----
-2592

skipif mysql # not compatible
query I rowsort label-6049
SELECT MAX ( ALL - 27 ) * + 96
----
-2592

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT - 92 * - MIN( ALL 71 )
----
6532

skipif mysql # not compatible
query I rowsort label-6050
SELECT - 92 * - MIN ( ALL 71 )
----
6532

query I rowsort
SELECT DISTINCT 41 * 96 * + + 93 * - - 35 AS col2
----
12811680

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT DISTINCT + - 57 + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-6052
SELECT DISTINCT + - 57 + COUNT ( * )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6053
SELECT DISTINCT CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * 6 + + 58 + + 95 * - 12 * + 26 - + + 86 * + 21 / + 38 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6053
SELECT DISTINCT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * 6 + + 58 + + 95 * - 12 * + 26 - + + 86 * + 21 / + 38 col0
----
NULL

query I rowsort
SELECT 34 + + 0 col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6055
SELECT ALL COUNT( + 42 ) + + - 28 AS col1, + COUNT( * ) + + + CAST( NULL AS DECIMAL ) AS col2
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-6055
SELECT ALL COUNT ( + 42 ) + + - 28 AS col1, + COUNT ( * ) + + + CAST ( NULL AS REAL ) AS col2
----
-27
NULL

query I rowsort
SELECT DISTINCT - 98 * + - ( - ( - 33 ) )
----
3234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6057
SELECT ALL 25 + + - MIN( DISTINCT 32 ) + + - CAST( + - COUNT( * ) AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-6057
SELECT ALL 25 + + - MIN ( DISTINCT 32 ) + + - CAST ( + - COUNT ( * ) AS INTEGER )
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-6058
SELECT 13 DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-6058
SELECT 13 / - 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT + CASE + - 83 WHEN + NULLIF ( - 84, + + 43 ) THEN + - CASE COUNT( * ) WHEN + 2 + + 32 THEN NULL WHEN - 82 * - CASE + - 31 WHEN + - 11 THEN + 65 END THEN + + 8 * + - MIN( 19 ) + + MIN( DISTINCT - - ( - - 79 ) ) + - - 23 * + - 42 + + 19 END + - ( + - CASE 87 WHEN + ( + 98 ) + - MIN( + 57 ) THEN - 32 ELSE NULL END ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6059
SELECT + CASE + - 83 WHEN + NULLIF ( - 84, + + 43 ) THEN + - CASE COUNT ( * ) WHEN + 2 + + 32 THEN NULL WHEN - 82 * - CASE + - 31 WHEN + - 11 THEN + 65 END THEN + + 8 * + - MIN ( 19 ) + + MIN ( DISTINCT - - ( - - 79 ) ) + - - 23 * + - 42 + + 19 END + - ( + - CASE 87 WHEN + ( + 98 ) + - MIN ( + 57 ) THEN - 32 ELSE NULL END ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6060
SELECT + CAST( 38 AS SIGNED ) AS col0, 50 * + + 51 AS col0
----
38
2550

skipif mysql # not compatible
query II rowsort label-6060
SELECT + CAST ( 38 AS INTEGER ) AS col0, 50 * + + 51 AS col0
----
38
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT DISTINCT 10 + - + COUNT( * ) * - 85
----
95

skipif mysql # not compatible
query I rowsort label-6061
SELECT DISTINCT 10 + - + COUNT ( * ) * - 85
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT DISTINCT + + ( - 2 ) * + MIN( - + NULLIF ( - ( + - 92 ), + 92 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6062
SELECT DISTINCT + + ( - 2 ) * + MIN ( - + NULLIF ( - ( + - 92 ), + 92 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT ALL ( + + MIN( + 94 ) ) + - ( - CASE 74 WHEN 54 THEN 90 * + - 94 WHEN 83 * 25 THEN - 19 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL ( + + MIN ( + 94 ) ) + - ( - CASE 74 WHEN 54 THEN 90 * + - 94 WHEN 83 * 25 THEN - 19 END ) AS col2
----
NULL

query I rowsort
SELECT 27 * - 86
----
-2322

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT DISTINCT CASE + 26 WHEN + + 48 THEN NULL ELSE + 88 END * + + 0 * 38 - - + 93 + + SUM( + 67 ) * 64 AS col1
----
4381

skipif mysql # not compatible
query I rowsort label-6065
SELECT DISTINCT CASE + 26 WHEN + + 48 THEN NULL ELSE + 88 END * + + 0 * 38 - - + 93 + + SUM ( + 67 ) * 64 AS col1
----
4381

query II rowsort
SELECT DISTINCT - 78, 81 AS col2
----
-78
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6067
SELECT CAST( NULL AS SIGNED ) * + + NULLIF ( - 94, - COUNT( * ) * + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6067
SELECT CAST ( NULL AS INTEGER ) * + + NULLIF ( - 94, - COUNT ( * ) * + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 50, - - 51 * + COALESCE ( + 90, - - 75, - 9 + - 20 ) * + + 76 ) * + 86 * + 83 AS col1
----
356900

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT ALL ( 72 ) * + SUM( ALL 12 )
----
864

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL ( 72 ) * + SUM ( ALL 12 )
----
864

onlyif mysql # DIV for integer division: 
query I rowsort label-6070
SELECT ALL + 90 DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-6070
SELECT ALL + 90 / + 94
----
0

query I rowsort
SELECT 26 + + 64
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6072
SELECT ALL - COUNT( * ) AS col1, + COALESCE ( + 88, + - 27 - - - CAST( NULL AS SIGNED ) + + + 56 + - COUNT( * ) * + + 8 * - 57 * - - ( + - 71 ) + - + 76 + - 52, + + 23 )
----
-1
88

skipif mysql # not compatible
query II rowsort label-6072
SELECT ALL - COUNT ( * ) AS col1, + COALESCE ( + 88, + - 27 - - - CAST ( NULL AS INTEGER ) + + + 56 + - COUNT ( * ) * + + 8 * - 57 * - - ( + - 71 ) + - + 76 + - 52, + + 23 )
----
-1
88

query I rowsort
SELECT 42 * + 40 * - 11 col1
----
-18480

query I rowsort
SELECT 45 + 26
----
71

query II rowsort
SELECT 29 AS col1, 71
----
29
71

query I rowsort
SELECT DISTINCT + 93 + - - 17
----
110

query I rowsort
SELECT 18 + 65 AS col1
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-6078
SELECT - 84 AS col0, 77 * - - ( COUNT( * ) ) + 50 AS col2
----
-84
127

skipif mysql # not compatible
query II rowsort label-6078
SELECT - 84 AS col0, 77 * - - ( COUNT ( * ) ) + 50 AS col2
----
-84
127

query I rowsort
SELECT ALL + 78 + 6 col1
----
84

query I rowsort
SELECT ALL - ( - - 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT + COALESCE ( + - COUNT( * ), + 33 )
----
-1

skipif mysql # not compatible
query I rowsort label-6081
SELECT + COALESCE ( + - COUNT ( * ), + 33 )
----
-1

query II rowsort
SELECT ALL - 18 AS col2, 28 AS col1
----
-18
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6083
SELECT - 15 - + + COUNT( * ) DIV - CASE - 66 WHEN 77 THEN NULL ELSE 2 END + + 5 + + - 8 + + 39 * - 62
----
-2436

skipif mysql # not compatible
query I rowsort label-6083
SELECT - 15 - + + COUNT ( * ) / - CASE - 66 WHEN 77 THEN NULL ELSE 2 END + + 5 + + - 8 + + 39 * - 62
----
-2436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6084
SELECT DISTINCT + + CAST( + COALESCE ( - 27, - + 55 * + - 2 * NULLIF ( + - CAST( NULL AS DECIMAL ), 91 ) * + CASE 34 WHEN - 26 / + 18 THEN + NULLIF ( - 61, + + 55 ) WHEN + 52 THEN + + 97 + 43 WHEN 58 THEN NULL ELSE 88 END + + MIN( - 35 ) * - - 33 + + 94 * - 84 * - 56, ( + 89 ) + - 59 * + + 56 + - - 51 + - 81 * + 67, + COALESCE ( 1, - 48 - + - 23 ) ) AS SIGNED ) + NULLIF ( - COUNT( DISTINCT 48 ), 2 + 84 * - 96 ) * - 7
----
-20

skipif mysql # not compatible
query I rowsort label-6084
SELECT DISTINCT + + CAST ( + COALESCE ( - 27, - + 55 * + - 2 * NULLIF ( + - CAST ( NULL AS REAL ), 91 ) * + CASE 34 WHEN - 26 / + 18 THEN + NULLIF ( - 61, + + 55 ) WHEN + 52 THEN + + 97 + 43 WHEN 58 THEN NULL ELSE 88 END + + MIN ( - 35 ) * - - 33 + + 94 * - 84 * - 56, ( + 89 ) + - 59 * + + 56 + - - 51 + - 81 * + 67, + COALESCE ( 1, - 48 - + - 23 ) ) AS INTEGER ) + NULLIF ( - COUNT ( DISTINCT 48 ), 2 + 84 * - 96 ) * - 7
----
-20

query I rowsort
SELECT - 72 + 90 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT ALL 39 * - - 23 * - 45 * + + COUNT( * ) col2
----
-40365

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL 39 * - - 23 * - 45 * + + COUNT ( * ) col2
----
-40365

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT - - 22 * ( + 73 ) * 67 + COUNT( * ) AS col2
----
107603

skipif mysql # not compatible
query I rowsort label-6087
SELECT - - 22 * ( + 73 ) * 67 + COUNT ( * ) AS col2
----
107603

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT ALL - COUNT( * ) * 10
----
-10

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL - COUNT ( * ) * 10
----
-10

query I rowsort
SELECT 67 * - 63 + 16 AS col1
----
-4205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6090
SELECT ALL - CAST( NULL AS SIGNED ) * 98 - + SUM( 31 ) * 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL - CAST ( NULL AS INTEGER ) * 98 - + SUM ( 31 ) * 89 AS col1
----
NULL

query I rowsort
SELECT + 67 + + 86
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6092
SELECT - CAST( NULL AS SIGNED ) / - CAST( - 93 AS SIGNED ) + + + 46 + - - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6092
SELECT - CAST ( NULL AS INTEGER ) / - CAST ( - 93 AS INTEGER ) + + + 46 + - - 54 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT CASE - SUM( ALL 51 ) WHEN + - MAX( DISTINCT + + 63 ) / - 21 + - - 96 * - 97 * + - 71 THEN NULL WHEN + SUM( - 43 ) + + + CASE 9 WHEN - NULLIF ( - + 94, 66 ) THEN NULL ELSE + 45 END THEN - + 59 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6093
SELECT CASE - SUM ( ALL 51 ) WHEN + - MAX ( DISTINCT + + 63 ) / - 21 + - - 96 * - 97 * + - 71 THEN NULL WHEN + SUM ( - 43 ) + + + CASE 9 WHEN - NULLIF ( - + 94, 66 ) THEN NULL ELSE + 45 END THEN - + 59 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6094
SELECT CASE - - CAST( + - 41 AS SIGNED ) WHEN - COALESCE ( + 96, 94 + - MAX( ALL 10 ) ) * + - 25 + + 79 - - 87 THEN NULL WHEN 71 THEN NULL WHEN CAST( NULL AS SIGNED ) / + + 97 THEN + 12 WHEN 54 + + 67 * ( ( 4 ) ) THEN - ( - + 77 ) + - 43 ELSE - 29 END AS col0, 7
----
-29
7

skipif mysql # not compatible
query II rowsort label-6094
SELECT CASE - - CAST ( + - 41 AS INTEGER ) WHEN - COALESCE ( + 96, 94 + - MAX ( ALL 10 ) ) * + - 25 + + 79 - - 87 THEN NULL WHEN 71 THEN NULL WHEN CAST ( NULL AS INTEGER ) / + + 97 THEN + 12 WHEN 54 + + 67 * ( ( 4 ) ) THEN - ( - + 77 ) + - 43 ELSE - 29 END AS col0, 7
----
-29
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6095
SELECT + AVG ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6095
SELECT + AVG ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 48 * - 94 col1
----
-4512

onlyif mysql # aggregate syntax: 
query II rowsort label-6097
SELECT + CASE + + 47 WHEN - 74 * + - 26 * 84 * SUM( DISTINCT + - 65 ) * - COUNT( * ) + + + 6 * + 63 + 17 + + CASE - + NULLIF ( + 24, - 32 * - 77 ) WHEN - COALESCE ( SUM( ALL - 10 ), + AVG ( ALL + 74 ) - - + ( - 68 ), 34 * 39 + - 38 ) THEN + 24 ELSE + NULLIF ( 39, - - 28 + - + 17 * + - 50 ) END THEN - 61 ELSE NULL END * - 10 AS col0, 37
----
NULL
37

skipif mysql # not compatible
query II rowsort label-6097
SELECT + CASE + + 47 WHEN - 74 * + - 26 * 84 * SUM ( DISTINCT + - 65 ) * - COUNT ( * ) + + + 6 * + 63 + 17 + + CASE - + NULLIF ( + 24, - 32 * - 77 ) WHEN - COALESCE ( SUM ( ALL - 10 ), + AVG ( ALL + 74 ) - - + ( - 68 ), 34 * 39 + - 38 ) THEN + 24 ELSE + NULLIF ( 39, - - 28 + - + 17 * + - 50 ) END THEN - 61 ELSE NULL END * - 10 AS col0, 37
----
NULL
37

query I rowsort
SELECT - ( - + 74 ) + + 0 AS col1
----
74

query I rowsort
SELECT ALL 95 * 84
----
7980

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6100
SELECT - 7 + CASE + 11 WHEN - 91 * + COUNT( * ) * 86 THEN 24 * - + CAST( + MAX( ALL - ( + 2 ) ) AS DECIMAL ) * + MIN( ALL - 44 ) WHEN + 50 THEN + 18 + + 78 - 64 / - - 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6100
SELECT - 7 + CASE + 11 WHEN - 91 * + COUNT ( * ) * 86 THEN 24 * - + CAST ( + MAX ( ALL - ( + 2 ) ) AS REAL ) * + MIN ( ALL - 44 ) WHEN + 50 THEN + 18 + + 78 - 64 / - - 48 END
----
NULL

query II rowsort
SELECT + 18 * + 1 * - + 85 * 27 AS col0, 85 AS col0
----
-41310
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT + CASE COUNT( * ) WHEN - 16 THEN - - 81 + + 66 WHEN - 44 * + 25 THEN 35 + 4 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6102
SELECT + CASE COUNT ( * ) WHEN - 16 THEN - - 81 + + 66 WHEN - 44 * + 25 THEN 35 + 4 END AS col2
----
NULL

query I rowsort
SELECT ALL + 33 * + 13 + - + 95 - - - 77 - 16
----
241

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6104
SELECT ALL COALESCE ( CASE - COUNT( * ) WHEN + + 86 THEN 20 * - - COUNT( * ) ELSE - COUNT( * ) DIV 20 * - CAST( NULL AS SIGNED ) + + + 94 - 93 * + 17 + - 3 - - 22 + - - NULLIF ( + 47, 25 ) END, - + 76 ) * - 1 + 64 + + 99
----
239

skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL COALESCE ( CASE - COUNT ( * ) WHEN + + 86 THEN 20 * - - COUNT ( * ) ELSE - COUNT ( * ) / 20 * - CAST ( NULL AS INTEGER ) + + + 94 - 93 * + 17 + - 3 - - 22 + - - NULLIF ( + 47, 25 ) END, - + 76 ) * - 1 + 64 + + 99
----
239

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT SUM( - 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-6105
SELECT SUM ( - 72 ) AS col0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-6106
SELECT - COALESCE ( - 23, - - 12 + - + 61 DIV + ( 20 ) ) * 64 * 80
----
117760

skipif mysql # not compatible
query I rowsort label-6106
SELECT - COALESCE ( - 23, - - 12 + - + 61 / + ( 20 ) ) * 64 * 80
----
117760

query I rowsort
SELECT + - 9 - ( - 63 ) + 30 - 14 + + 92 * - 97 * + 63 AS col2
----
-562142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6108
SELECT - + COALESCE ( + - COALESCE ( - 12, + - 76, - CAST( - - 85 AS SIGNED ) DIV ( + NULLIF ( 13, - 81 - 25 - 25 * COUNT( * ) ) ) + 71 ), - 91 ) * - 88 + MIN( - 13 ) AS col0
----
1043

skipif mysql # not compatible
query I rowsort label-6108
SELECT - + COALESCE ( + - COALESCE ( - 12, + - 76, - CAST ( - - 85 AS INTEGER ) / ( + NULLIF ( 13, - 81 - 25 - 25 * COUNT ( * ) ) ) + 71 ), - 91 ) * - 88 + MIN ( - 13 ) AS col0
----
1043

query I rowsort
SELECT ALL + + 77 * 47 * + + 71 * + - 71 AS col2
----
-18243379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6110
SELECT ALL + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + - COUNT( * ) * - 30 * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + - COUNT ( * ) * - 30 * - 65
----
NULL

query I rowsort
SELECT DISTINCT - 55 * + 26
----
-1430

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT ALL 61 / COUNT( * ) * - CASE 89 WHEN - 41 - 11 - + COUNT( * ) * - ( + + 68 ) - 54 * COUNT( * ) + + 13 - 6 * + + 46 * + 6 THEN - 67 / 91 + - 68 END * AVG ( DISTINCT + 14 ) * + + 49 - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL 61 / COUNT ( * ) * - CASE 89 WHEN - 41 - 11 - + COUNT ( * ) * - ( + + 68 ) - 54 * COUNT ( * ) + + 13 - 6 * + + 46 * + 6 THEN - 67 / 91 + - 68 END * AVG ( DISTINCT + 14 ) * + + 49 - 6 AS col2
----
NULL

query I rowsort
SELECT - 67 * + 27
----
-1809

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6114
SELECT ALL + 56 AS col0, - 84 + + 93 col0, + CAST( NULL AS SIGNED )
----
56
9
NULL

skipif mysql # not compatible
query III rowsort label-6114
SELECT ALL + 56 AS col0, - 84 + + 93 col0, + CAST ( NULL AS INTEGER )
----
56
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT + MAX( - 3 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6115
SELECT + MAX ( - 3 ) AS col1
----
-3

query II rowsort
SELECT ALL + 1 AS col2, - 47 * + 61 AS col0
----
1
-2867

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT + MAX( DISTINCT + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-6117
SELECT + MAX ( DISTINCT + 58 )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6118
SELECT ALL - 8 DIV COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL - 8 / COUNT ( * )
----
-8

query I rowsort
SELECT - 31 * - 70 AS col1
----
2170

query I rowsort
SELECT + 37 * - 96 * + 85 AS col0
----
-301920

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT DISTINCT COUNT( DISTINCT - 39 ) * + + 47 * + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-6121
SELECT DISTINCT COUNT ( DISTINCT - 39 ) * + + 47 * + COUNT ( * )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6122
SELECT ALL CAST( NULL AS SIGNED ) * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL CAST ( NULL AS INTEGER ) * 15
----
NULL

query I rowsort
SELECT - 1 * 95 AS col2
----
-95

query I rowsort
SELECT + ( + - 27 ) col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT DISTINCT + COALESCE ( MIN( - 51 ), - COUNT( * ) * COUNT( * ) ) * + - 19 col0
----
969

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT + COALESCE ( MIN ( - 51 ), - COUNT ( * ) * COUNT ( * ) ) * + - 19 col0
----
969

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT DISTINCT - COUNT( * ) * + 10 + + - 18 + 46 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-6126
SELECT DISTINCT - COUNT ( * ) * + 10 + + - 18 + 46 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT ALL + 39 * + 2 + + - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL + 39 * + 2 + + - COUNT ( * )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6128
SELECT ( + COALESCE ( + COUNT( - 45 ), COALESCE ( + - 12, SUM( DISTINCT - + CASE ( 50 ) WHEN + - 96 + + 75 THEN + CAST( - - 27 AS SIGNED ) * + 90 + - 19 ELSE CAST( NULL AS SIGNED ) + - + 74 END ) + - 17, + 0, - 22 ) + + 98 + - - 27 * + 11 + COALESCE ( - + ( + CAST( + + AVG ( DISTINCT + - ( + 91 ) ) AS SIGNED ) ), + ( - - 99 ) - 53, - 36 DIV + - 5 + + - 96 * - - CAST( NULL AS SIGNED ) ) + + + 10 ) ) AS col0, - 43 DIV + NULLIF ( 75, SUM( - 69 ) ) AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-6128
SELECT ( + COALESCE ( + COUNT ( - 45 ), COALESCE ( + - 12, SUM ( DISTINCT - + CASE ( 50 ) WHEN + - 96 + + 75 THEN + CAST ( - - 27 AS INTEGER ) * + 90 + - 19 ELSE CAST ( NULL AS INTEGER ) + - + 74 END ) + - 17, + 0, - 22 ) + + 98 + - - 27 * + 11 + COALESCE ( - + ( + CAST ( + + AVG ( DISTINCT + - ( + 91 ) ) AS INTEGER ) ), + ( - - 99 ) - 53, - 36 / + - 5 + + - 96 * - - CAST ( NULL AS INTEGER ) ) + + + 10 ) ) AS col0, - 43 / + NULLIF ( 75, SUM ( - 69 ) ) AS col2
----
1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6129
SELECT + CASE - 7 WHEN + 66 THEN + CAST( + MAX( DISTINCT - - 24 ) AS SIGNED ) + + - 45 * + 31 * 55 WHEN ( + 33 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6129
SELECT + CASE - 7 WHEN + 66 THEN + CAST ( + MAX ( DISTINCT - - 24 ) AS INTEGER ) + + - 45 * + 31 * 55 WHEN ( + 33 ) THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6130
SELECT + CAST( NULL AS DECIMAL ), + ( - 67 ) * - + ( - + 7 ) * + - 40 - + 21 col1
----
NULL
18739

skipif mysql # not compatible
query II rowsort label-6130
SELECT + CAST ( NULL AS REAL ), + ( - 67 ) * - + ( - + 7 ) * + - 40 - + 21 col1
----
NULL
18739

query I rowsort
SELECT CASE 69 WHEN - 67 + 76 - + 0 + 25 * + 85 THEN NULL WHEN + + 7 THEN NULL ELSE 18 END AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6132
SELECT + CAST( + + 15 AS SIGNED ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-6132
SELECT + CAST ( + + 15 AS INTEGER ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT + COUNT( * ) * 86 + NULLIF ( ( + - 40 ), - 41 )
----
46

skipif mysql # not compatible
query I rowsort label-6133
SELECT + COUNT ( * ) * 86 + NULLIF ( ( + - 40 ), - 41 )
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6134
SELECT DISTINCT + 0 DIV - - 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT + 0 / - - 64 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6135
SELECT + + CASE - 83 WHEN + COALESCE ( - MIN( DISTINCT - - 24 ), 88, + + COUNT( * ) ) THEN + + 97 ELSE + 42 DIV - 22 END + - 94
----
-95

skipif mysql # not compatible
query I rowsort label-6135
SELECT + + CASE - 83 WHEN + COALESCE ( - MIN ( DISTINCT - - 24 ), 88, + + COUNT ( * ) ) THEN + + 97 ELSE + 42 / - 22 END + - 94
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-6136
SELECT ALL COUNT( * ) * + 19 - 63 AS col2, 47 - + - 6
----
-44
53

skipif mysql # not compatible
query II rowsort label-6136
SELECT ALL COUNT ( * ) * + 19 - 63 AS col2, 47 - + - 6
----
-44
53

onlyif mysql # DIV for integer division: 
query I rowsort label-6137
SELECT ALL - 36 * - 30 - ( + 40 ) DIV 27 * 78
----
1002

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL - 36 * - 30 - ( + 40 ) / 27 * 78
----
1002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6138
SELECT DISTINCT + COALESCE ( + 35, CAST( + 42 AS SIGNED ) ) * - 57 * 48 - + + 9 + - 41 * - + ( + + 33 ) * - 27 * + COUNT( * ) * + - CAST( - 89 AS DECIMAL ) * + CAST( NULL AS SIGNED ) * - + 79 - - + 3 - + COUNT( * ) + + + 87 * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT + COALESCE ( + 35, CAST ( + 42 AS INTEGER ) ) * - 57 * 48 - + + 9 + - 41 * - + ( + + 33 ) * - 27 * + COUNT ( * ) * + - CAST ( - 89 AS REAL ) * + CAST ( NULL AS INTEGER ) * - + 79 - - + 3 - + COUNT ( * ) + + + 87 * + 87
----
NULL

query II rowsort
SELECT 70, - 15 + 69 AS col2
----
70
54

query I rowsort
SELECT + 2 + 15 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT - COUNT( * ) + - 37 col0
----
-38

skipif mysql # not compatible
query I rowsort label-6141
SELECT - COUNT ( * ) + - 37 col0
----
-38

query I rowsort
SELECT 68 - 4
----
64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6143
SELECT NULLIF ( + - COUNT( * ), - CASE - 27 WHEN + COUNT( ALL + CAST( + - 27 AS DECIMAL ) ) + + + 85 THEN - COUNT( * ) WHEN + 30 THEN + - 3 ELSE NULL END + - ( + - COUNT( - + 52 ) ) * + + ( 60 ) + + - MIN( DISTINCT + - 68 ) * + - 40 ) * + 55 * 46 AS col0
----
-2530

skipif mysql # not compatible
query I rowsort label-6143
SELECT NULLIF ( + - COUNT ( * ), - CASE - 27 WHEN + COUNT ( ALL + CAST ( + - 27 AS REAL ) ) + + + 85 THEN - COUNT ( * ) WHEN + 30 THEN + - 3 ELSE NULL END + - ( + - COUNT ( - + 52 ) ) * + + ( 60 ) + + - MIN ( DISTINCT + - 68 ) * + - 40 ) * + 55 * 46 AS col0
----
-2530

query I rowsort
SELECT DISTINCT + - 20 - - - 89 * + + 75
----
-6695

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6145
SELECT DISTINCT - NULLIF ( - CAST( - + 85 AS SIGNED ), 11 * + 45 ) DIV 67 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT - NULLIF ( - CAST ( - + 85 AS INTEGER ), 11 * + 45 ) / 67 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6146
SELECT ALL 65 DIV 24 * 70, + COUNT( * ) AS col1
----
140
1

skipif mysql # not compatible
query II rowsort label-6146
SELECT ALL 65 / 24 * 70, + COUNT ( * ) AS col1
----
140
1

query I rowsort
SELECT 37 - - 69 AS col0
----
106

query I rowsort
SELECT 30 * 92 AS col1
----
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT 36 - - 85 * + ( + + COUNT( * ) ) * + ( - 7 )
----
-559

skipif mysql # not compatible
query I rowsort label-6149
SELECT 36 - - 85 * + ( + + COUNT ( * ) ) * + ( - 7 )
----
-559

query II rowsort
SELECT ALL 73 AS col1, 72 * - 88 AS col1
----
73
-6336

query I rowsort
SELECT DISTINCT - ( - 62 ) * + 96 * + 48 * + + 99 AS col1
----
28283904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6152
SELECT CAST( NULL AS SIGNED ) + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6152
SELECT CAST ( NULL AS INTEGER ) + 0 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT 20 * + CASE + 57 WHEN ( - + COUNT( * ) ) THEN - 1 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6153
SELECT 20 * + CASE + 57 WHEN ( - + COUNT ( * ) ) THEN - 1 ELSE NULL END col2
----
NULL

query I rowsort
SELECT 55 * - 75 * - + 52
----
214500

query I rowsort
SELECT - 12 * - 86 * - 32 * - 75 * 55 + - 76
----
136223924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6156
SELECT ALL - 77 + CAST( 93 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL - 77 + CAST ( 93 AS INTEGER )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6157
SELECT COUNT( * ) DIV + 6 + - ( 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-6157
SELECT COUNT ( * ) / + 6 + - ( 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT ALL - ( + + CASE - AVG ( - + 92 ) WHEN - 14 + - + 41 THEN COUNT( * ) / - - 74 + + 90 WHEN 41 / + 89 + - COALESCE ( + 20, 47 ) THEN NULL WHEN - - 12 + - ( 59 ) THEN 87 END ) + - + SUM( - - 70 ) + 38 / 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL - ( + + CASE - AVG ( - + 92 ) WHEN - 14 + - + 41 THEN COUNT ( * ) / - - 74 + + 90 WHEN 41 / + 89 + - COALESCE ( + 20, 47 ) THEN NULL WHEN - - 12 + - ( 59 ) THEN 87 END ) + - + SUM ( - - 70 ) + 38 / 21 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( 9 ) AS col1
----
-9

query II rowsort
SELECT ALL 65 + + - 1 col0, 58 * - + 0 AS col1
----
64
0

query I rowsort
SELECT DISTINCT + 60 + - ( + - 51 ) AS col0
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6162
SELECT + 80 * + COUNT( ALL - - ( + 75 ) ) + - + COUNT( + CAST( - 61 AS SIGNED ) )
----
79

skipif mysql # not compatible
query I rowsort label-6162
SELECT + 80 * + COUNT ( ALL - - ( + 75 ) ) + - + COUNT ( + CAST ( - 61 AS INTEGER ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT 60 * ( - SUM( ALL - 38 ) )
----
2280

skipif mysql # not compatible
query I rowsort label-6163
SELECT 60 * ( - SUM ( ALL - 38 ) )
----
2280

query II rowsort
SELECT - 24, - 41 AS col2
----
-24
-41

query I rowsort
SELECT DISTINCT - 71 * - 93
----
6603

query I rowsort
SELECT ALL + + 6 - - - 26 * - 99 AS col0
----
2580

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6167
SELECT DISTINCT + ( CAST( 97 AS SIGNED ) ) DIV + + 73 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT + ( CAST ( 97 AS INTEGER ) ) / + + 73 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT ALL 3 - - ( - + COUNT( * ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL 3 - - ( - + COUNT ( * ) ) AS col2
----
2

query I rowsort
SELECT 26 * - 61 AS col2
----
-1586

query I rowsort
SELECT - ( ( - - 65 ) )
----
-65

query I rowsort
SELECT - ( - - ( + 86 ) )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT - COUNT( * ) * - 98 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-6172
SELECT - COUNT ( * ) * - 98 AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6173
SELECT ALL + CAST( NULL AS DECIMAL ), + MIN( ALL ( 37 ) ) * - - 80 - - ( - + 0 ) * + - 92 AS col0
----
NULL
2960

skipif mysql # not compatible
query II rowsort label-6173
SELECT ALL + CAST ( NULL AS REAL ), + MIN ( ALL ( 37 ) ) * - - 80 - - ( - + 0 ) * + - 92 AS col0
----
NULL
2960

query I rowsort
SELECT ALL ( + 7 ) * - 42 * 22 AS col2
----
-6468

query I rowsort
SELECT DISTINCT - 78 * - - 2
----
-156

query I rowsort
SELECT + 97 + + - 67
----
30

query I rowsort
SELECT 51 + 82 + 95
----
228

query I rowsort
SELECT ALL 44 + - 0 + - - 12
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6179
SELECT 55 DIV SUM( DISTINCT ( + 6 ) ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6179
SELECT 55 / SUM ( DISTINCT ( + 6 ) ) AS col1
----
9

query I rowsort
SELECT ( 55 ) * 60
----
3300

query I rowsort
SELECT 61 + 56 + ( ( 75 ) ) AS col2
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6182
SELECT DISTINCT CAST( NULL AS SIGNED ) / - ( - - COUNT( - + 98 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6182
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - ( - - COUNT ( - + 98 ) ) col1
----
NULL

query II rowsort
SELECT ALL 8 + - 8 AS col2, - 16 AS col0
----
0
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6184
SELECT CAST( NULL AS SIGNED ) / 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT CAST ( NULL AS INTEGER ) / 40 AS col0
----
NULL

query I rowsort
SELECT ALL ( - 28 ) + + 90 + + 73
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT DISTINCT COUNT( * ) + + 15 + - 22
----
-6

skipif mysql # not compatible
query I rowsort label-6186
SELECT DISTINCT COUNT ( * ) + + 15 + - 22
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6187
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-6187
SELECT DISTINCT CAST ( NULL AS REAL ) / + - 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT COUNT( - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-6188
SELECT COUNT ( - 46 )
----
1

query II rowsort
SELECT 80 * + 13 AS col2, 59 col0
----
1040
59

query I rowsort
SELECT 74 * 93 - - 40 + - - 3 * 82 * ( - - 82 ) AS col2
----
27094

onlyif mysql # DIV for integer division: 
query I rowsort label-6191
SELECT ALL ( - 98 ) * + 79 + + 25 DIV 2 - 90 + 60 AS col1
----
-7760

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL ( - 98 ) * + 79 + + 25 / 2 - 90 + 60 AS col1
----
-7760

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT + + COUNT( * ) * - 13 - + - COUNT( * ) + + 17
----
5

skipif mysql # not compatible
query I rowsort label-6192
SELECT + + COUNT ( * ) * - 13 - + - COUNT ( * ) + + 17
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT 97 + + + COALESCE ( - - ( + COUNT( * ) ), + ( + 37 ) * + 25 + - + 48 )
----
98

skipif mysql # not compatible
query I rowsort label-6193
SELECT 97 + + + COALESCE ( - - ( + COUNT ( * ) ), + ( + 37 ) * + 25 + - + 48 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT SUM( + 0 ) * + 5 - + - 12 + 3 * 38
----
126

skipif mysql # not compatible
query I rowsort label-6194
SELECT SUM ( + 0 ) * + 5 - + - 12 + 3 * 38
----
126

query I rowsort
SELECT ALL + - 78 * + 94 * + - 46 + - 73
----
337199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6196
SELECT - 23 DIV + - 40 + - 3 + - + COUNT( * ) + + 90 col0
----
86

skipif mysql # not compatible
query I rowsort label-6196
SELECT - 23 / + - 40 + - 3 + - + COUNT ( * ) + + 90 col0
----
86

query I rowsort
SELECT + 93 * + 29 col1
----
2697

onlyif mysql # aggregate syntax: 
query II rowsort label-6198
SELECT - 82 * - 60 + COUNT( * ) + + COUNT( ALL - 95 ) + + 54 * 66 col2, - 55 AS col1
----
8486
-55

skipif mysql # not compatible
query II rowsort label-6198
SELECT - 82 * - 60 + COUNT ( * ) + + COUNT ( ALL - 95 ) + + 54 * 66 col2, - 55 AS col1
----
8486
-55

query I rowsort
SELECT ALL + 40 * - - 27
----
1080

onlyif mysql # DIV for integer division: 
query II rowsort label-6200
SELECT - - ( + 58 ) DIV + + 49 AS col2, 84 AS col0
----
1
84

skipif mysql # not compatible
query II rowsort label-6200
SELECT - - ( + 58 ) / + + 49 AS col2, 84 AS col0
----
1
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT DISTINCT ( + MAX( ALL - ( 4 ) ) )
----
-4

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT ( + MAX ( ALL - ( 4 ) ) )
----
-4

query I rowsort
SELECT DISTINCT - + 36 * + - 51 AS col0
----
1836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6203
SELECT DISTINCT + - 23 + - ( - CAST( NULL AS SIGNED ) ) * 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6203
SELECT DISTINCT + - 23 + - ( - CAST ( NULL AS INTEGER ) ) * 63 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6204
SELECT + + 4 + 3 + + COALESCE ( 56, - + CAST( NULL AS SIGNED ) + NULLIF ( + 7, - - 29 ) * + ( + 66 ) ) - + - 47
----
110

skipif mysql # not compatible
query I rowsort label-6204
SELECT + + 4 + 3 + + COALESCE ( 56, - + CAST ( NULL AS INTEGER ) + NULLIF ( + 7, - - 29 ) * + ( + 66 ) ) - + - 47
----
110

query I rowsort
SELECT - 39 * + 15 + - ( 58 ) + 22 + - - 26 AS col1
----
-595

query I rowsort
SELECT + 9 * + 0 * 16 * + 90
----
0

query I rowsort
SELECT - 26 + - - 83
----
57

query I rowsort
SELECT + 2 + 58 + ( - + 23 )
----
37

query I rowsort
SELECT ALL + 4 + 26 * + 14 AS col0
----
368

query I rowsort
SELECT ALL 90 + - 64 AS col2
----
26

query II rowsort
SELECT 70 AS col0, 99 * - 41 AS col0
----
70
-4059

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT + CASE - + NULLIF ( 24, + 46 / + 64 + + + ( 26 ) ) WHEN 45 + ( - - SUM( 20 ) ) * 36 - - COUNT( * ) THEN 43 END - + 54 + - 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT + CASE - + NULLIF ( 24, + 46 / + 64 + + + ( 26 ) ) WHEN 45 + ( - - SUM ( 20 ) ) * 36 - - COUNT ( * ) THEN 43 END - + 54 + - 19 AS col1
----
NULL

query I rowsort
SELECT ALL 30 - - 23
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6214
SELECT + 72 DIV - 77 - - - 29 * COALESCE ( - + 18, 80 + ( + 54 ) DIV + MAX( - 90 ), + 40 ) * + 81 * 20 AS col2
----
845640

skipif mysql # not compatible
query I rowsort label-6214
SELECT + 72 / - 77 - - - 29 * COALESCE ( - + 18, 80 + ( + 54 ) / + MAX ( - 90 ), + 40 ) * + 81 * 20 AS col2
----
845640

onlyif mysql # DIV for integer division: 
query I rowsort label-6215
SELECT ALL 83 DIV 33 * - ( + 86 ) AS col0
----
-172

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL 83 / 33 * - ( + 86 ) AS col0
----
-172

onlyif mysql # aggregate syntax: 
query II rowsort label-6216
SELECT DISTINCT + 9 AS col0, + ( + COUNT( * ) ) * - - 33 * 98
----
9
3234

skipif mysql # not compatible
query II rowsort label-6216
SELECT DISTINCT + 9 AS col0, + ( + COUNT ( * ) ) * - - 33 * 98
----
9
3234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6217
SELECT + CASE + 94 WHEN 17 * 2 - - 10 * - 47 + - 36 THEN + COUNT( * ) / + 67 - - 37 WHEN 95 + + 16 + - ( + CAST( + CAST( - 28 AS SIGNED ) AS DECIMAL ) ) - - 31 THEN NULL ELSE NULL END * - - 27 * + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6217
SELECT + CASE + 94 WHEN 17 * 2 - - 10 * - 47 + - 36 THEN + COUNT ( * ) / + 67 - - 37 WHEN 95 + + 16 + - ( + CAST ( + CAST ( - 28 AS INTEGER ) AS REAL ) ) - - 31 THEN NULL ELSE NULL END * - - 27 * + 55
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6218
SELECT ALL 47 DIV - 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL 47 / - 50 AS col0
----
0

query I rowsort
SELECT + 41 + + - 47 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT ALL + - SUM( - + 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL + - SUM ( - + 72 ) AS col1
----
72

query I rowsort
SELECT - 54 + + 59 AS col0
----
5

query I rowsort
SELECT + 94 * - - NULLIF ( - - 82, - + 11 )
----
7708

query I rowsort
SELECT ALL + - NULLIF ( 99, + 21 - - 55 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT DISTINCT + - MIN( + - 6 ) * 32 AS col0
----
192

skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT + - MIN ( + - 6 ) * 32 AS col0
----
192

onlyif mysql # aggregate syntax: 
query II rowsort label-6225
SELECT + COUNT( * ), COUNT( * ) + - 21 - - 77 AS col2
----
1
57

skipif mysql # not compatible
query II rowsort label-6225
SELECT + COUNT ( * ), COUNT ( * ) + - 21 - - 77 AS col2
----
1
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT DISTINCT COUNT( * ) * + 98
----
98

skipif mysql # not compatible
query I rowsort label-6226
SELECT DISTINCT COUNT ( * ) * + 98
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6227
SELECT ALL + + COALESCE ( - 18, 26 * ( + - 10 ) + + COUNT( * ) - - 76 + + - 87 ), 29 - - 12 * 46 + + - 16 AS col0
----
-18
565

skipif mysql # not compatible
query II rowsort label-6227
SELECT ALL + + COALESCE ( - 18, 26 * ( + - 10 ) + + COUNT ( * ) - - 76 + + - 87 ), 29 - - 12 * 46 + + - 16 AS col0
----
-18
565

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6228
SELECT DISTINCT CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6228
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT - - COUNT( * ) * - 69 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-6229
SELECT - - COUNT ( * ) * - 69 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-6230
SELECT ALL - 44 * - + 26 + + + 93, + MIN( DISTINCT - 66 ) + 26 AS col2
----
1237
-40

skipif mysql # not compatible
query II rowsort label-6230
SELECT ALL - 44 * - + 26 + + + 93, + MIN ( DISTINCT - 66 ) + 26 AS col2
----
1237
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-6231
SELECT DISTINCT + 1 * - 99 + 5 + + 75 + 64 * 98 DIV - 86
----
-91

skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT + 1 * - 99 + 5 + + 75 + 64 * 98 / - 86
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6232
SELECT ALL - - 58 DIV - 65
----
0

skipif mysql # not compatible
query I rowsort label-6232
SELECT ALL - - 58 / - 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT - + COUNT( * ) + + 48 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-6233
SELECT - + COUNT ( * ) + + 48 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT ALL - + COUNT( * ) * 41 + + + 1 * - 2 + 85 + - - 8 + 89 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL - + COUNT ( * ) * 41 + + + 1 * - 2 + 85 + - - 8 + 89 AS col1
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6235
SELECT DISTINCT - 95 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6235
SELECT DISTINCT - 95 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT - + COUNT( * ) + + - ( COUNT( * ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6236
SELECT - + COUNT ( * ) + + - ( COUNT ( * ) ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT - + SUM( ALL + 0 ) - + 16 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-6237
SELECT - + SUM ( ALL + 0 ) - + 16 AS col0
----
-16

query I rowsort
SELECT - + NULLIF ( - 88, + 12 )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6239
SELECT - 2 DIV + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6239
SELECT - 2 / + 94 AS col1
----
0

query II rowsort
SELECT ALL - 72 + - - 84 AS col0, - 49
----
12
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6241
SELECT DISTINCT - 64 * AVG ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6241
SELECT DISTINCT - 64 * AVG ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query II rowsort
SELECT ALL 90 + - - 18 col0, 87 AS col1
----
108
87

query I rowsort
SELECT DISTINCT + 0 * + - ( - - 38 ) AS col2
----
0

query I rowsort
SELECT ALL ( + ( 58 ) ) col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6245
SELECT DISTINCT + 91 + + + 90 AS col2, - 85 + - COALESCE ( - + 11, - 6 ) DIV COUNT( * ) * + ( - 95 ) AS col2
----
181
-1130

skipif mysql # not compatible
query II rowsort label-6245
SELECT DISTINCT + 91 + + + 90 AS col2, - 85 + - COALESCE ( - + 11, - 6 ) / COUNT ( * ) * + ( - 95 ) AS col2
----
181
-1130

onlyif mysql # DIV for integer division: 
query I rowsort label-6246
SELECT DISTINCT 84 DIV - 39
----
-2

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT 84 / - 39
----
-2

query II rowsort
SELECT + ( 28 ) + + ( 26 ) AS col0, + 39
----
54
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT ALL + 73 - - ( COUNT( * ) ) + MIN( DISTINCT - - 48 ) * - 7 * 74 col0
----
-24790

skipif mysql # not compatible
query I rowsort label-6248
SELECT ALL + 73 - - ( COUNT ( * ) ) + MIN ( DISTINCT - - 48 ) * - 7 * 74 col0
----
-24790

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT DISTINCT + 55 - + - COUNT( DISTINCT + 9 )
----
56

skipif mysql # not compatible
query I rowsort label-6249
SELECT DISTINCT + 55 - + - COUNT ( DISTINCT + 9 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT - MIN( ALL + 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-6250
SELECT - MIN ( ALL + 84 ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT DISTINCT COUNT( * ) * 83 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-6251
SELECT DISTINCT COUNT ( * ) * 83 AS col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-6252
SELECT ALL 77 * + 92 col1, 55 * + COUNT( * ) AS col2
----
7084
55

skipif mysql # not compatible
query II rowsort label-6252
SELECT ALL 77 * + 92 col1, 55 * + COUNT ( * ) AS col2
----
7084
55

query I rowsort
SELECT + 82 * - - 29 AS col2
----
2378

query I rowsort
SELECT DISTINCT 6 * + 88 * + - 43 AS col0
----
-22704

query I rowsort
SELECT - 29 * - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT ALL + 34 * - - COUNT( * ) + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL + 34 * - - COUNT ( * ) + COUNT ( * )
----
35

query I rowsort
SELECT 70 * + + 19
----
1330

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT + 3 * + - 91 * - COUNT( * ) - + ( MIN( DISTINCT + - 96 ) ) * + 61 AS col1
----
6129

skipif mysql # not compatible
query I rowsort label-6258
SELECT + 3 * + - 91 * - COUNT ( * ) - + ( MIN ( DISTINCT + - 96 ) ) * + 61 AS col1
----
6129

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT ALL - COUNT( * ) + - SUM( + 97 ) + + 55 * + COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL - COUNT ( * ) + - SUM ( + 97 ) + + 55 * + COUNT ( * ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-6260
SELECT + 19 + + COUNT( * ), 24 * 68 AS col0
----
20
1632

skipif mysql # not compatible
query II rowsort label-6260
SELECT + 19 + + COUNT ( * ), 24 * 68 AS col0
----
20
1632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6261
SELECT DISTINCT CASE WHEN NOT + 47 IS NOT NULL THEN - + 89 END + - - COALESCE ( + + 22, - - CAST( + 25 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6261
SELECT DISTINCT CASE WHEN NOT + 47 IS NOT NULL THEN - + 89 END + - - COALESCE ( + + 22, - - CAST ( + 25 AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6262
SELECT ALL 11 DIV CAST( MAX( + 59 ) AS SIGNED ) * + + 89 + - 95 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL 11 / CAST ( MAX ( + 59 ) AS INTEGER ) * + + 89 + - 95 AS col0
----
-95

query I rowsort
SELECT DISTINCT - 90 + + 62 * 23 col1
----
1336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6264
SELECT + + COALESCE ( - 42, - COUNT( * ) * 52 DIV 20 * COUNT( * ) * 59 + + 19 * 60 )
----
-42

skipif mysql # not compatible
query I rowsort label-6264
SELECT + + COALESCE ( - 42, - COUNT ( * ) * 52 / 20 * COUNT ( * ) * 59 + + 19 * 60 )
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6265
SELECT COUNT( * ) + + 54 DIV 82 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6265
SELECT COUNT ( * ) + + 54 / 82 AS col1
----
1

query II rowsort
SELECT DISTINCT 42 * + 26 * - 86 + - 50 col2, 56 + 79 AS col0
----
-93962
135

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT + COALESCE ( + MAX( - 90 ), 78 )
----
-90

skipif mysql # not compatible
query I rowsort label-6267
SELECT + COALESCE ( + MAX ( - 90 ), 78 )
----
-90

query I rowsort
SELECT DISTINCT - + 56 + - - 0 * + 91 * - 39 * - 84 * 30
----
-56

query I rowsort
SELECT ( 33 ) + + + 98
----
131

onlyif mysql # aggregate syntax: 
query II rowsort label-6270
SELECT ALL COUNT( * ) + - 19, 0 AS col2
----
-18
0

skipif mysql # not compatible
query II rowsort label-6270
SELECT ALL COUNT ( * ) + - 19, 0 AS col2
----
-18
0

query I rowsort
SELECT ALL 85 * - 43 AS col0
----
-3655

query II rowsort
SELECT 14 AS col1, 16 * - - 38 AS col2
----
14
608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6273
SELECT DISTINCT CAST( - 34 AS SIGNED ) - 80 * - 22
----
1726

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT CAST ( - 34 AS INTEGER ) - 80 * - 22
----
1726

query I rowsort
SELECT 35 + - 98 AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6275
SELECT ALL - 41 - + COALESCE ( - 33, - COUNT( * ) + + - CAST( - - COALESCE ( 2, + 14 + + + ( 0 ) ) AS SIGNED ), + 46 * 19 + - COUNT( + 17 ) + - 4 ) * - + 40
----
-1361

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL - 41 - + COALESCE ( - 33, - COUNT ( * ) + + - CAST ( - - COALESCE ( 2, + 14 + + + ( 0 ) ) AS INTEGER ), + 46 * 19 + - COUNT ( + 17 ) + - 4 ) * - + 40
----
-1361

query II rowsort
SELECT 95 AS col1, 5
----
95
5

onlyif mysql # DIV for integer division: 
query II rowsort label-6277
SELECT - 81 AS col2, - 92 DIV - 63
----
-81
1

skipif mysql # not compatible
query II rowsort label-6277
SELECT - 81 AS col2, - 92 / - 63
----
-81
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT 51 - COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-6278
SELECT 51 - COUNT ( * ) AS col2
----
50

query I rowsort
SELECT 54 * + 93
----
5022

query I rowsort
SELECT 61 + 28 col1
----
89

query I rowsort
SELECT ALL - 24 * - 69 AS col0
----
1656

query I rowsort
SELECT 80 * + 62
----
4960

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT ALL - 15 * COUNT( * ) col2
----
-15

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL - 15 * COUNT ( * ) col2
----
-15

query I rowsort
SELECT 86 - + 95 * ( 85 )
----
-7989

query I rowsort
SELECT ALL - 52 * - 47 * 66
----
161304

query II rowsort
SELECT 95 - 41 * + 33 AS col1, + COALESCE ( + + 2, + + 22 * - 64 ) AS col2
----
-1258
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6287
SELECT 99 DIV ( + - 40 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6287
SELECT 99 / ( + - 40 ) AS col0
----
-2

query I rowsort
SELECT 5 + + 90 AS col2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6289
SELECT 79 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6289
SELECT 79 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT 15 + - COUNT( * ) + - - ( + 18 )
----
32

skipif mysql # not compatible
query I rowsort label-6290
SELECT 15 + - COUNT ( * ) + - - ( + 18 )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6291
SELECT ALL + 13 + + 44 + + 81 * - CAST( NULL AS SIGNED ) + + COUNT( * ) + + COUNT( * ) - - + COUNT( * ) * 86 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL + 13 + + 44 + + 81 * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + COUNT ( * ) - - + COUNT ( * ) * 86 col1
----
NULL

query I rowsort
SELECT 26 + - 90 AS col0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6293
SELECT - + 58 DIV 50 - 6 AS col0, SUM( + 15 ) DIV - 93
----
-7
0

skipif mysql # not compatible
query II rowsort label-6293
SELECT - + 58 / 50 - 6 AS col0, SUM ( + 15 ) / - 93
----
-7
0

query I rowsort
SELECT ALL - CASE + 51 WHEN - 76 THEN + AVG ( 15 ) * + 29 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT ALL NULLIF ( - - 70, - NULLIF ( 28, + - 91 ) ) * - COUNT( * ) - - 23
----
-47

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL NULLIF ( - - 70, - NULLIF ( 28, + - 91 ) ) * - COUNT ( * ) - - 23
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT DISTINCT - COUNT( * ) + + 59 * COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT - COUNT ( * ) + + 59 * COUNT ( * )
----
58

query I rowsort
SELECT DISTINCT 60 * - + 3
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6298
SELECT + COALESCE ( + ( - 91 ), - 22, - NULLIF ( + 51, + 59 + - 88 + + - 77 ) + + + 89 * COUNT( * ) * + + CAST( NULL AS SIGNED ) )
----
-91

skipif mysql # not compatible
query I rowsort label-6298
SELECT + COALESCE ( + ( - 91 ), - 22, - NULLIF ( + 51, + 59 + - 88 + + - 77 ) + + + 89 * COUNT ( * ) * + + CAST ( NULL AS INTEGER ) )
----
-91

query II rowsort
SELECT ALL + 86 + - 49 * + 24 AS col1, + 66
----
-1090
66

query II rowsort
SELECT DISTINCT + 28 * 63 * - 36, 47 * 65 AS col1
----
-63504
3055

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT DISTINCT 31 + + ( 0 ) * COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-6301
SELECT DISTINCT 31 + + ( 0 ) * COUNT ( * ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-6302
SELECT 75 * + COUNT( * ) * 90 AS col0, ( - CASE - COALESCE ( + 30, + - 95 ) WHEN 66 THEN + COUNT( * ) WHEN 72 * - COUNT( * ) * + 46 / + COUNT( * ) THEN COALESCE ( + 98, - 43 ) ELSE + - 30 END )
----
6750
30

skipif mysql # not compatible
query II rowsort label-6302
SELECT 75 * + COUNT ( * ) * 90 AS col0, ( - CASE - COALESCE ( + 30, + - 95 ) WHEN 66 THEN + COUNT ( * ) WHEN 72 * - COUNT ( * ) * + 46 / + COUNT ( * ) THEN COALESCE ( + 98, - 43 ) ELSE + - 30 END )
----
6750
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT ALL + COUNT( * ) + + + 64 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL + COUNT ( * ) + + + 64 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT COALESCE ( - - ( COUNT( * ) ), CASE - + 4 WHEN + 0 THEN + 63 ELSE NULL END ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6304
SELECT COALESCE ( - - ( COUNT ( * ) ), CASE - + 4 WHEN + 0 THEN + 63 ELSE NULL END ) AS col0
----
1

query I rowsort
SELECT 51 + - 6
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6306
SELECT - 32 DIV - + ( + - 73 ) + 68 + - 70
----
-2

skipif mysql # not compatible
query I rowsort label-6306
SELECT - 32 / - + ( + - 73 ) + 68 + - 70
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6307
SELECT ALL 72 DIV - COALESCE ( - NULLIF ( - 73, + 41 ), - 68 DIV + 98 - + 16, 77 - - - MAX( - 79 ) ) + - NULLIF ( + 73, 36 ) - + - 5 - - + NULLIF ( + + CAST( - + 22 AS SIGNED ), - 86 DIV - + 86 + - 49 + + 47 ) - + + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL 72 / - COALESCE ( - NULLIF ( - 73, + 41 ), - 68 / + 98 - + 16, 77 - - - MAX ( - 79 ) ) + - NULLIF ( + 73, 36 ) - + - 5 - - + NULLIF ( + + CAST ( - + 22 AS INTEGER ), - 86 / - + 86 + - 49 + + 47 ) - + + COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT + ( + - COUNT( * ) ) * 95
----
-95

skipif mysql # not compatible
query I rowsort label-6308
SELECT + ( + - COUNT ( * ) ) * 95
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT ALL - NULLIF ( + 0, ( - COUNT( * ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL - NULLIF ( + 0, ( - COUNT ( * ) ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6310
SELECT DISTINCT 90 * 31 DIV 33 * - 55
----
-4620

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT 90 * 31 / 33 * - 55
----
-4620

query II rowsort
SELECT ALL - 26 AS col1, 29
----
-26
29

query I rowsort
SELECT DISTINCT 79 - - - 42 col1
----
37

onlyif mysql # DIV for integer division: 
query III rowsort label-6313
SELECT ALL 37 DIV + 29 AS col2, ( - + 98 ) AS col2, + - ( + 21 ) AS col0
----
1
-98
-21

skipif mysql # not compatible
query III rowsort label-6313
SELECT ALL 37 / + 29 AS col2, ( - + 98 ) AS col2, + - ( + 21 ) AS col0
----
1
-98
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6314
SELECT COUNT( * ) * + 88 DIV + + 44
----
2

skipif mysql # not compatible
query I rowsort label-6314
SELECT COUNT ( * ) * + 88 / + + 44
----
2

query I rowsort
SELECT + 4 * - 79 + 70 AS col1
----
-246

query I rowsort
SELECT 74 * - 36 AS col1
----
-2664

query I rowsort
SELECT 80 + - 4
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT - MIN( DISTINCT - 66 )
----
66

skipif mysql # not compatible
query I rowsort label-6318
SELECT - MIN ( DISTINCT - 66 )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6319
SELECT + 41 * + 85 + CAST( NULL AS SIGNED ) + - + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-6319
SELECT + 41 * + 85 + CAST ( NULL AS INTEGER ) + - + 27
----
NULL

query II rowsort
SELECT 86, ( + 42 ) AS col0
----
86
42

query I rowsort
SELECT 89 * + 86
----
7654

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT 96 + - COUNT( * ) + + 29
----
124

skipif mysql # not compatible
query I rowsort label-6322
SELECT 96 + - COUNT ( * ) + + 29
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6323
SELECT - 35 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6323
SELECT - 35 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6324
SELECT + COALESCE ( 80, - - 45 ) DIV - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-6324
SELECT + COALESCE ( 80, - - 45 ) / - COUNT ( * )
----
-80

query I rowsort
SELECT - 12 * 56
----
-672

query I rowsort
SELECT - COALESCE ( + 5, + - 23 * - - 57 * + 0 )
----
-5

query II rowsort
SELECT - 11, + 1 AS col0
----
-11
1

query II rowsort
SELECT - 13 col1, 78
----
-13
78

query I rowsort
SELECT - + 31 + 85
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-6330
SELECT ALL 48 DIV + + 76 + - 36
----
-36

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL 48 / + + 76 + - 36
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT DISTINCT - COUNT( * ) + - + 69
----
-70

skipif mysql # not compatible
query I rowsort label-6331
SELECT DISTINCT - COUNT ( * ) + - + 69
----
-70

query I rowsort
SELECT ALL + - 19 + 4
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT ALL MIN( - - 6 ) col0
----
6

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL MIN ( - - 6 ) col0
----
6

query I rowsort
SELECT - + 87 * + 96 * - 93 AS col2
----
776736

query I rowsort
SELECT ALL - - ( + 31 ) + - 54
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT DISTINCT + COUNT( * ) + + COUNT( DISTINCT - 49 ) + - - 78 + + + 49 * 7 - - + SUM( - 24 ) + + - COUNT( * ) * 45 + - COUNT( * ) * + CASE ( + 91 ) WHEN - + 62 THEN - 88 WHEN NULLIF ( 3, 99 + - - 95 ) * + 49 + - SUM( - 31 ) THEN NULL WHEN + 49 THEN NULL END * + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6336
SELECT DISTINCT + COUNT ( * ) + + COUNT ( DISTINCT - 49 ) + - - 78 + + + 49 * 7 - - + SUM ( - 24 ) + + - COUNT ( * ) * 45 + - COUNT ( * ) * + CASE ( + 91 ) WHEN - + 62 THEN - 88 WHEN NULLIF ( 3, 99 + - - 95 ) * + 49 + - SUM ( - 31 ) THEN NULL WHEN + 49 THEN NULL END * + 29
----
NULL

query I rowsort
SELECT ALL + - 44 + 17
----
-27

query I rowsort
SELECT - + 96 * 3 * - + 63
----
18144

query II rowsort
SELECT ALL + 7 AS col0, - 25 AS col1
----
7
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-6340
SELECT 27, 56 + + - COUNT( * ) col0
----
27
55

skipif mysql # not compatible
query II rowsort label-6340
SELECT 27, 56 + + - COUNT ( * ) col0
----
27
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT ALL - 95 * + - 38 + - COALESCE ( - 15, - 10 + 59 ) + + COUNT( * )
----
3626

skipif mysql # not compatible
query I rowsort label-6341
SELECT ALL - 95 * + - 38 + - COALESCE ( - 15, - 10 + 59 ) + + COUNT ( * )
----
3626

query II rowsort
SELECT - 96 AS col1, - 33 col0
----
-96
-33

query II rowsort
SELECT ALL + - 34 col2, + 7
----
-34
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6344
SELECT 60 DIV - 10 - - - COUNT( * ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-6344
SELECT 60 / - 10 - - - COUNT ( * ) AS col0
----
-7

query I rowsort
SELECT DISTINCT 61 * 42 + - 48
----
2514

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT MAX( ALL + 32 )
----
32

skipif mysql # not compatible
query I rowsort label-6346
SELECT MAX ( ALL + 32 )
----
32

query I rowsort
SELECT - + 94 * - + 42 AS col1
----
3948

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6348
SELECT ALL 79 * - 12 DIV COUNT( * ) * - 91 AS col2
----
86268

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL 79 * - 12 / COUNT ( * ) * - 91 AS col2
----
86268

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT COUNT( * ) * - 38 - + 94 AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-6349
SELECT COUNT ( * ) * - 38 - + 94 AS col1
----
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6350
SELECT - 2 + + - ( - - 47 ) - + 15 + + + 0 + - 80 DIV MAX( 56 ) * 47 col2
----
-111

skipif mysql # not compatible
query I rowsort label-6350
SELECT - 2 + + - ( - - 47 ) - + 15 + + + 0 + - 80 / MAX ( 56 ) * 47 col2
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT - COUNT( * ) * - - MAX( - + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-6351
SELECT - COUNT ( * ) * - - MAX ( - + 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT + COALESCE ( + - 62, - + COUNT( * ) ) * - 69 + 11
----
4289

skipif mysql # not compatible
query I rowsort label-6352
SELECT + COALESCE ( + - 62, - + COUNT ( * ) ) * - 69 + 11
----
4289

onlyif mysql # aggregate syntax: 
query II rowsort label-6353
SELECT MAX( ALL + + 87 ), 56 + - 31 AS col0
----
87
25

skipif mysql # not compatible
query II rowsort label-6353
SELECT MAX ( ALL + + 87 ), 56 + - 31 AS col0
----
87
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6354
SELECT + COALESCE ( COUNT( * ), + + 37 * + 19 ) * + + 53 * - + CAST( + - CASE NULLIF ( 92, - COUNT( * ) ) WHEN + + AVG ( ALL + + 29 ) * + 29 + + 11 + + 49 + + 24 THEN + + 50 + - - 80 * 47 - + + 2 WHEN + - 83 THEN 28 * - + 79 + - ( + - 15 ) END AS SIGNED ) - ( + + 44 ) + 76 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6354
SELECT + COALESCE ( COUNT ( * ), + + 37 * + 19 ) * + + 53 * - + CAST ( + - CASE NULLIF ( 92, - COUNT ( * ) ) WHEN + + AVG ( ALL + + 29 ) * + 29 + + 11 + + 49 + + 24 THEN + + 50 + - - 80 * 47 - + + 2 WHEN + - 83 THEN 28 * - + 79 + - ( + - 15 ) END AS INTEGER ) - ( + + 44 ) + 76 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6355
SELECT ALL + CAST( NULL AS SIGNED ) * - 8 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL + CAST ( NULL AS INTEGER ) * - 8 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT MAX( DISTINCT + - 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-6356
SELECT MAX ( DISTINCT + - 6 ) AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6357
SELECT + CAST( NULL AS SIGNED ) / 95
----
NULL

skipif mysql # not compatible
query I rowsort label-6357
SELECT + CAST ( NULL AS INTEGER ) / 95
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6358
SELECT DISTINCT SUM( + 3 ) DIV COUNT( ALL + 76 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6358
SELECT DISTINCT SUM ( + 3 ) / COUNT ( ALL + 76 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT 88 * + COUNT( * ) + + 78
----
166

skipif mysql # not compatible
query I rowsort label-6359
SELECT 88 * + COUNT ( * ) + + 78
----
166

query I rowsort
SELECT DISTINCT 59 + + ( 8 ) AS col2
----
67

query I rowsort
SELECT + 24 + - - 67 col1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6362
SELECT DISTINCT COUNT( * ) * + COALESCE ( + + 20, + 4 * + 65 ) * - 10 * 45 col2, 86 AS col0
----
-9000
86

skipif mysql # not compatible
query II rowsort label-6362
SELECT DISTINCT COUNT ( * ) * + COALESCE ( + + 20, + 4 * + 65 ) * - 10 * 45 col2, 86 AS col0
----
-9000
86

query I rowsort
SELECT ALL 82 + + 82 - + - 62 + - 6 * 25 AS col2
----
76

query I rowsort
SELECT + - NULLIF ( + 61, - - 47 ) + 73 + + 31 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT ALL - NULLIF ( + 44, - SUM( 72 ) ) + + - 20 + - 53 + - - 27 * - CASE + 57 WHEN - + 80 THEN NULL WHEN 20 THEN NULL WHEN + + 0 THEN NULL ELSE - 73 END
----
1854

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL - NULLIF ( + 44, - SUM ( 72 ) ) + + - 20 + - 53 + - - 27 * - CASE + 57 WHEN - + 80 THEN NULL WHEN 20 THEN NULL WHEN + + 0 THEN NULL ELSE - 73 END
----
1854

query I rowsort
SELECT DISTINCT + 52 + + 6 * + 79 AS col1
----
526

query I rowsort
SELECT - 8 + NULLIF ( + + 98, + 69 ) col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT + + COUNT( * ) * + ( - 62 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-6368
SELECT + + COUNT ( * ) * + ( - 62 ) AS col0
----
-62

query II rowsort
SELECT + - 64 + + 35, + 49 AS col0
----
-29
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6370
SELECT + + CASE AVG ( - - 98 ) WHEN MIN( 62 ) THEN NULL WHEN 72 * - - ( - 1 ) * CAST( + 13 AS SIGNED ) THEN + 51 * - - 97 * + 81 - 79 ELSE NULL END + - 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6370
SELECT + + CASE AVG ( - - 98 ) WHEN MIN ( 62 ) THEN NULL WHEN 72 * - - ( - 1 ) * CAST ( + 13 AS INTEGER ) THEN + 51 * - - 97 * + 81 - 79 ELSE NULL END + - 60 AS col1
----
NULL

query I rowsort
SELECT ALL + 78 * + + 42 + 93 AS col1
----
3369

onlyif mysql # DIV for integer division: 
query I rowsort label-6372
SELECT DISTINCT 66 DIV + 96 * + 48
----
0

skipif mysql # not compatible
query I rowsort label-6372
SELECT DISTINCT 66 / + 96 * + 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT DISTINCT + NULLIF ( SUM( ALL + 8 ), - 42 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6373
SELECT DISTINCT + NULLIF ( SUM ( ALL + 8 ), - 42 ) AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6374
SELECT ALL - CAST( NULL AS SIGNED ) * - 60 + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL - CAST ( NULL AS INTEGER ) * - 60 + + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT ALL - 18 * ( + 68 ) * + - MAX( ALL + 63 ) + + 43 * - 75 * + 57 + + + 19 AS col1
----
-106694

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL - 18 * ( + 68 ) * + - MAX ( ALL + 63 ) + + 43 * - 75 * + 57 + + + 19 AS col1
----
-106694

query I rowsort
SELECT - 37 + + - 31
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6377
SELECT ALL + + 20 * 99 * - MIN( + ( + ( + 44 ) ) ) + - ( 62 ) - + 92 + + - CASE 52 WHEN - COUNT( * ) - + 50 + - 2 THEN + 5 - + - 28 ELSE NULL END * - - COUNT( * ) - COUNT( * ) * MAX( - CAST( NULL AS SIGNED ) ) * 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL + + 20 * 99 * - MIN ( + ( + ( + 44 ) ) ) + - ( 62 ) - + 92 + + - CASE 52 WHEN - COUNT ( * ) - + 50 + - 2 THEN + 5 - + - 28 ELSE NULL END * - - COUNT ( * ) - COUNT ( * ) * MAX ( - CAST ( NULL AS INTEGER ) ) * 62 AS col0
----
NULL

query I rowsort
SELECT + 81 * - 57 * + + 44 * + 46 AS col2
----
-9344808

onlyif mysql # aggregate syntax: 
query II rowsort label-6379
SELECT - + 57 * 74 AS col0, + ( COUNT( * ) ) + 70 - 38
----
-4218
33

skipif mysql # not compatible
query II rowsort label-6379
SELECT - + 57 * 74 AS col0, + ( COUNT ( * ) ) + 70 - 38
----
-4218
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6380
SELECT DISTINCT - 82 DIV + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT - 82 / + COUNT ( * )
----
-82

query I rowsort
SELECT ALL + COALESCE ( - - 20, 13 * + 71 * 7 )
----
20

query I rowsort
SELECT - 90 + + 43
----
-47

query II rowsort
SELECT + 75 AS col2, 10 * + 59 col1
----
75
590

query I rowsort
SELECT - ( - 32 ) * + + 10 AS col0
----
320

query I rowsort
SELECT DISTINCT + 55 * 97 + + - 58 + + 11 - - + 73 * - + 98
----
-1866

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6386
SELECT + COUNT( * ) AS col0, - CAST( NULL AS DECIMAL )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6386
SELECT + COUNT ( * ) AS col0, - CAST ( NULL AS REAL )
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6387
SELECT ( + SUM( ALL - CAST( 52 AS SIGNED ) ) ) * - - CAST( NULL AS SIGNED ) * - CASE - - MAX( DISTINCT - - 65 ) WHEN + + COUNT( * ) * COUNT( * ) THEN + - 24 WHEN - AVG ( DISTINCT - + 96 ) THEN NULL ELSE 66 * - + COUNT( * ) + ( + + 81 ) END + - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT ( + SUM ( ALL - CAST ( 52 AS INTEGER ) ) ) * - - CAST ( NULL AS INTEGER ) * - CASE - - MAX ( DISTINCT - - 65 ) WHEN + + COUNT ( * ) * COUNT ( * ) THEN + - 24 WHEN - AVG ( DISTINCT - + 96 ) THEN NULL ELSE 66 * - + COUNT ( * ) + ( + + 81 ) END + - 35 AS col2
----
NULL

query I rowsort
SELECT 70 * 39
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT NULLIF ( - 77, 94 ) + + + 18 * 44 * + 46 * - COUNT( * ) AS col1
----
-36509

skipif mysql # not compatible
query I rowsort label-6389
SELECT NULLIF ( - 77, 94 ) + + + 18 * 44 * + 46 * - COUNT ( * ) AS col1
----
-36509

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT ALL + 84 + - CASE - ( + 10 ) WHEN - - COUNT( * ) THEN - SUM( ALL - 42 ) * + + 69 ELSE NULL END * + 88 + - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL + 84 + - CASE - ( + 10 ) WHEN - - COUNT ( * ) THEN - SUM ( ALL - 42 ) * + + 69 ELSE NULL END * + 88 + - 32 AS col2
----
NULL

query I rowsort
SELECT 15 + - - 85 - + 75
----
25

query II rowsort
SELECT - 46 AS col2, 34 col1
----
-46
34

query II rowsort
SELECT DISTINCT 48 AS col0, + NULLIF ( + + 37, 2 ) AS col2
----
48
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT 98 - 59 * + - CASE + 42 WHEN - 53 THEN NULL ELSE CASE - + 1 WHEN + + 93 THEN NULL WHEN + 19 THEN + + 59 * + 52 END END / + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6394
SELECT 98 - 59 * + - CASE + 42 WHEN - 53 THEN NULL ELSE CASE - + 1 WHEN + + 93 THEN NULL WHEN + 19 THEN + + 59 * + 52 END END / + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT DISTINCT - 75 * 94
----
-7050

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT DISTINCT 29 + - 16 + - - CASE - ( + COUNT( * ) ) WHEN 67 THEN NULL ELSE + - 67 END AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-6396
SELECT DISTINCT 29 + - 16 + - - CASE - ( + COUNT ( * ) ) WHEN 67 THEN NULL ELSE + - 67 END AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT ALL - 66 + + 7 * + + ( 95 ) * 43 + COUNT( * )
----
28530

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL - 66 + + 7 * + + ( 95 ) * 43 + COUNT ( * )
----
28530

query I rowsort
SELECT - 96 * + 8 AS col1
----
-768

onlyif mysql # DIV for integer division: 
query I rowsort label-6399
SELECT ALL 66 DIV + - 35 + - ( - 45 ) * - 59
----
-2656

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL 66 / + - 35 + - ( - 45 ) * - 59
----
-2656

query I rowsort
SELECT + 45 * + - 63 * + - 65 * - + 79
----
-14557725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6401
SELECT ALL + SUM( ALL + 30 ) * + - CAST( + - 31 AS SIGNED ) + + 53
----
983

skipif mysql # not compatible
query I rowsort label-6401
SELECT ALL + SUM ( ALL + 30 ) * + - CAST ( + - 31 AS INTEGER ) + + 53
----
983

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6402
SELECT CAST( + 65 AS SIGNED ) * - 11 + 45 + 99 * CAST( NULL AS SIGNED ) * 94
----
NULL

skipif mysql # not compatible
query I rowsort label-6402
SELECT CAST ( + 65 AS INTEGER ) * - 11 + 45 + 99 * CAST ( NULL AS INTEGER ) * 94
----
NULL

query I rowsort
SELECT DISTINCT 98 * - - 70 col2
----
6860

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT - + COALESCE ( - + SUM( + 54 ), + 22 * - 65, - 16 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-6404
SELECT - + COALESCE ( - + SUM ( + 54 ), + 22 * - 65, - 16 ) AS col0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6405
SELECT DISTINCT NULLIF ( - 93, + 86 + - 79 - - + 39 + + + 29 + - 16 / - + CAST( NULL AS SIGNED ) * - 99 * + AVG ( ALL - + 59 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-6405
SELECT DISTINCT NULLIF ( - 93, + 86 + - 79 - - + 39 + + + 29 + - 16 / - + CAST ( NULL AS INTEGER ) * - 99 * + AVG ( ALL - + 59 ) )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT ALL + CASE - COUNT( * ) WHEN + + 59 + + NULLIF ( 43, + 61 * - 90 ) - - COALESCE ( 11, + + 50 - 56, - 36 ) THEN NULL ELSE 31 END
----
31

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL + CASE - COUNT ( * ) WHEN + + 59 + + NULLIF ( 43, + 61 * - 90 ) - - COALESCE ( 11, + + 50 - 56, - 36 ) THEN NULL ELSE 31 END
----
31

query I rowsort
SELECT - + 79 * - ( 83 ) + 33 AS col0
----
6590

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6408
SELECT ALL - + CAST( NULL AS DECIMAL ) col0, + 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-6408
SELECT ALL - + CAST ( NULL AS REAL ) col0, + 45
----
NULL
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6409
SELECT - 79 * NULLIF ( - COUNT( * ), - 99 ), CAST( + 62 AS SIGNED ) AS col0
----
79
62

skipif mysql # not compatible
query II rowsort label-6409
SELECT - 79 * NULLIF ( - COUNT ( * ), - 99 ), CAST ( + 62 AS INTEGER ) AS col0
----
79
62

query I rowsort
SELECT 88 * ( - 43 )
----
-3784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6411
SELECT ALL - 23 / 19 / - 0 / ( - 13 ) * ( - MIN( + CAST( NULL AS SIGNED ) ) ) + - ( - + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL - 23 / 19 / - 0 / ( - 13 ) * ( - MIN ( + CAST ( NULL AS INTEGER ) ) ) + - ( - + 1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6412
SELECT ( - + 36 ) DIV + 18
----
-2

skipif mysql # not compatible
query I rowsort label-6412
SELECT ( - + 36 ) / + 18
----
-2

query I rowsort
SELECT ALL - + 80 * + - 38 - + 96
----
2944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6414
SELECT + ( 51 ) DIV - SUM( ALL + 36 ) + + + 68
----
67

skipif mysql # not compatible
query I rowsort label-6414
SELECT + ( 51 ) / - SUM ( ALL + 36 ) + + + 68
----
67

query I rowsort
SELECT 73 + + + 97 AS col0
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT ALL + 97 + COUNT( * ) + + 97 col0
----
195

skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL + 97 + COUNT ( * ) + + 97 col0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT 63 + + 55 + - SUM( ALL - 20 )
----
138

skipif mysql # not compatible
query I rowsort label-6417
SELECT 63 + + 55 + - SUM ( ALL - 20 )
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT DISTINCT + COUNT( * ) + - CASE 5 WHEN + 96 * - 80 THEN + 76 + + ( 86 ) + - 39 WHEN + COUNT( * ) THEN NULL WHEN + NULLIF ( MAX( DISTINCT - 62 ), - AVG ( + + 17 ) + ( - 79 ) + + 88 ) * 73 THEN AVG ( ALL + 24 ) * - 74 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6418
SELECT DISTINCT + COUNT ( * ) + - CASE 5 WHEN + 96 * - 80 THEN + 76 + + ( 86 ) + - 39 WHEN + COUNT ( * ) THEN NULL WHEN + NULLIF ( MAX ( DISTINCT - 62 ), - AVG ( + + 17 ) + ( - 79 ) + + 88 ) * 73 THEN AVG ( ALL + 24 ) * - 74 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT ALL - COUNT( * ) + 9
----
8

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL - COUNT ( * ) + 9
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT ALL - COUNT( 91 )
----
-1

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL - COUNT ( 91 )
----
-1

query I rowsort
SELECT DISTINCT 6 + - + 30 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT DISTINCT - MAX( - + 31 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT - MAX ( - + 31 ) AS col0
----
31

query I rowsort
SELECT ALL - 35 + + 32
----
-3

query I rowsort
SELECT 30 * + 74
----
2220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6425
SELECT - - 55 * + 10 * - 89 + - - 3 AS col2, - 92 * - CASE 48 WHEN 58 * MIN( - 68 ) / ( - 85 ) * + 20 THEN 18 + CASE CAST( NULL AS SIGNED ) WHEN - COUNT( DISTINCT - NULLIF ( - 91, - 41 ) ) + 36 THEN - - 47 - + COUNT( * ) * - 41 WHEN 44 + - 32 + + CASE ( - - 7 ) WHEN - 86 THEN - CASE + - ( - - 1 ) WHEN 8 THEN - 15 / 2 + + + 26 + + ( + 98 ) * - AVG ( DISTINCT - 4 ) ELSE 93 END * + 49 * 2 * + 59 * - 47 END THEN + 39 END * - + 78 END
----
-48947
NULL

skipif mysql # not compatible
query II rowsort label-6425
SELECT - - 55 * + 10 * - 89 + - - 3 AS col2, - 92 * - CASE 48 WHEN 58 * MIN ( - 68 ) / ( - 85 ) * + 20 THEN 18 + CASE CAST ( NULL AS INTEGER ) WHEN - COUNT ( DISTINCT - NULLIF ( - 91, - 41 ) ) + 36 THEN - - 47 - + COUNT ( * ) * - 41 WHEN 44 + - 32 + + CASE ( - - 7 ) WHEN - 86 THEN - CASE + - ( - - 1 ) WHEN 8 THEN - 15 / 2 + + + 26 + + ( + 98 ) * - AVG ( DISTINCT - 4 ) ELSE 93 END * + 49 * 2 * + 59 * - 47 END THEN + 39 END * - + 78 END
----
-48947
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT ALL + + 20 - - + MAX( 32 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL + + 20 - - + MAX ( 32 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT + 33 * + 89 * - COUNT( * )
----
-2937

skipif mysql # not compatible
query I rowsort label-6427
SELECT + 33 * + 89 * - COUNT ( * )
----
-2937

query I rowsort
SELECT - - ( + ( + 41 ) )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6429
SELECT 95 + CAST( NULL AS SIGNED ) + + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-6429
SELECT 95 + CAST ( NULL AS INTEGER ) + + - 13
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6430
SELECT - 70 + - NULLIF ( - 86, + 50 * + 66 ) - + - COUNT( * ) + + CAST( NULL AS SIGNED ) + - 65 * + 52 - CAST( - 2 AS DECIMAL ) * + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6430
SELECT - 70 + - NULLIF ( - 86, + 50 * + 66 ) - + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - 65 * + 52 - CAST ( - 2 AS REAL ) * + 99 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6431
SELECT 87 + + - 52 DIV 61
----
87

skipif mysql # not compatible
query I rowsort label-6431
SELECT 87 + + - 52 / 61
----
87

query I rowsort
SELECT + 92 + - 47 AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6433
SELECT DISTINCT + SUM( ALL + 49 ) AS col1, CAST( + 6 AS SIGNED ) * - 46 * + - COUNT( * ) AS col1
----
49
276

skipif mysql # not compatible
query II rowsort label-6433
SELECT DISTINCT + SUM ( ALL + 49 ) AS col1, CAST ( + 6 AS INTEGER ) * - 46 * + - COUNT ( * ) AS col1
----
49
276

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT + 36 * + COUNT( + 99 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-6434
SELECT + 36 * + COUNT ( + 99 ) AS col1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-6435
SELECT - 45 DIV - + 70
----
0

skipif mysql # not compatible
query I rowsort label-6435
SELECT - 45 / - + 70
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6436
SELECT DISTINCT 84 DIV - 96 * 31 * + + COUNT( * ) + + + 34 + - - CAST( 95 AS SIGNED ) + COALESCE ( 0, + MIN( DISTINCT 32 ), COUNT( * ) ) + - - 95 DIV - 74 + + CASE - 24 WHEN CAST( NULL AS SIGNED ) THEN + + 61 WHEN COUNT( * ) * + CAST( NULL AS SIGNED ) + - + ( + 15 ) + 84 THEN NULL WHEN + - 44 THEN + + 7 * COALESCE ( + 71, - 23 + COUNT( * ) - 57 * + - 28, 51 DIV + 77 ) ELSE - 80 END + - 19 + 54 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-6436
SELECT DISTINCT 84 / - 96 * 31 * + + COUNT ( * ) + + + 34 + - - CAST ( 95 AS INTEGER ) + COALESCE ( 0, + MIN ( DISTINCT 32 ), COUNT ( * ) ) + - - 95 / - 74 + + CASE - 24 WHEN CAST ( NULL AS INTEGER ) THEN + + 61 WHEN COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - + ( + 15 ) + 84 THEN NULL WHEN + - 44 THEN + + 7 * COALESCE ( + 71, - 23 + COUNT ( * ) - 57 * + - 28, 51 / + 77 ) ELSE - 80 END + - 19 + 54 AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-6437
SELECT ( - 56 ) DIV - 39
----
1

skipif mysql # not compatible
query I rowsort label-6437
SELECT ( - 56 ) / - 39
----
1

query I rowsort
SELECT ALL 11 * 89 * 4 AS col0
----
3916

query I rowsort
SELECT ALL 16 + + + 62 * + 10 AS col2
----
636

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6440
SELECT ALL COUNT( * ) * - 98 DIV - COUNT( * ) + ( + 0 ) - 54 * - 67 AS col0
----
3716

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL COUNT ( * ) * - 98 / - COUNT ( * ) + ( + 0 ) - 54 * - 67 AS col0
----
3716

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT ALL - SUM( ALL - - 54 ) * - - ( + 2 ) + + 34 + + + 4
----
-70

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL - SUM ( ALL - - 54 ) * - - ( + 2 ) + + 34 + + + 4
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT DISTINCT + COUNT( 11 )
----
1

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT + COUNT ( 11 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT DISTINCT NULLIF ( ( - 74 ), + COUNT( * ) ) * - + 69 + - 2 AS col0
----
5104

skipif mysql # not compatible
query I rowsort label-6443
SELECT DISTINCT NULLIF ( ( - 74 ), + COUNT ( * ) ) * - + 69 + - 2 AS col0
----
5104

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT DISTINCT 25 * - 9 + + - COUNT( * ) + + 42 AS col0
----
-184

skipif mysql # not compatible
query I rowsort label-6444
SELECT DISTINCT 25 * - 9 + + - COUNT ( * ) + + 42 AS col0
----
-184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6445
SELECT ALL 93 * COUNT( * ) * + - CAST( NULL AS SIGNED ) + - 93 * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL 93 * COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + - 93 * - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT - 87 / COUNT( * ) + - CASE 9 WHEN - 32 * - 37 * - + 94 THEN 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6446
SELECT - 87 / COUNT ( * ) + - CASE 9 WHEN - 32 * - 37 * - + 94 THEN 84 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT COUNT( DISTINCT + 86 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6447
SELECT COUNT ( DISTINCT + 86 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT ALL + COUNT( ALL + 56 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL + COUNT ( ALL + 56 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6449
SELECT + 49 DIV + 9 * COUNT( * ) + - + 54
----
-49

skipif mysql # not compatible
query I rowsort label-6449
SELECT + 49 / + 9 * COUNT ( * ) + - + 54
----
-49

query I rowsort
SELECT DISTINCT 62 * - 15 + + + 32 AS col0
----
-898

query I rowsort
SELECT + 77 + - 27 + 16 * - 62
----
-942

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT ALL 37 * + + 60 - 57 + + - COUNT( * ) + 1 + - 98 * - 23 * 87 * + COUNT( ALL + + 40 ) * + - 64 + + 52
----
-12548057

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL 37 * + + 60 - 57 + + - COUNT ( * ) + 1 + - 98 * - 23 * 87 * + COUNT ( ALL + + 40 ) * + - 64 + + 52
----
-12548057

query I rowsort
SELECT DISTINCT 0 * - 54 AS col2
----
0

query I rowsort
SELECT - 29 * + 92
----
-2668

query I rowsort
SELECT DISTINCT 94 * - 61 AS col0
----
-5734

query I rowsort
SELECT 39 * + - 24 + - 36 - + 99
----
-1071

query I rowsort
SELECT - 23 + - 22 + 31 AS col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6458
SELECT + 93 * - ( COALESCE ( 21, CASE - CAST( NULL AS SIGNED ) WHEN - 87 THEN - 80 END * 90 - - CAST( NULL AS SIGNED ) ) )
----
-1953

skipif mysql # not compatible
query I rowsort label-6458
SELECT + 93 * - ( COALESCE ( 21, CASE - CAST ( NULL AS INTEGER ) WHEN - 87 THEN - 80 END * 90 - - CAST ( NULL AS INTEGER ) ) )
----
-1953

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6459
SELECT - MAX( 89 ) + 1 DIV 49 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-6459
SELECT - MAX ( 89 ) + 1 / 49 AS col0
----
-89

query I rowsort
SELECT + 70 * 33
----
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT DISTINCT CASE 23 WHEN 45 THEN AVG ( + 24 ) * - COUNT( * ) + + COUNT( * ) / 81 ELSE 39 + 95 * + COUNT( * ) END AS col0
----
134

skipif mysql # not compatible
query I rowsort label-6461
SELECT DISTINCT CASE 23 WHEN 45 THEN AVG ( + 24 ) * - COUNT ( * ) + + COUNT ( * ) / 81 ELSE 39 + 95 * + COUNT ( * ) END AS col0
----
134

query I rowsort
SELECT - 46 - + 34 AS col0
----
-80

query I rowsort
SELECT DISTINCT NULLIF ( - 24, 29 )
----
-24

query I rowsort
SELECT ALL - 4 * 98
----
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT - 39 * + MAX( 36 )
----
-1404

skipif mysql # not compatible
query I rowsort label-6465
SELECT - 39 * + MAX ( 36 )
----
-1404

query I rowsort
SELECT DISTINCT ( + 42 ) col1
----
42

query I rowsort
SELECT DISTINCT - 86 * 16
----
-1376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6468
SELECT ALL CASE 38 WHEN - 87 * + CAST( NULL AS SIGNED ) + - 62 THEN NULL ELSE 14 END AS col1
----
14

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL CASE 38 WHEN - 87 * + CAST ( NULL AS INTEGER ) + - 62 THEN NULL ELSE 14 END AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT - 3 * + COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6469
SELECT - 3 * + COUNT ( * ) AS col1
----
-3

query I rowsort
SELECT ALL - 96 * 73 AS col1
----
-7008

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT DISTINCT - 87 * - COALESCE ( - ( COUNT( * ) ) * + 46, - 64 + 52 ) AS col1
----
-4002

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT - 87 * - COALESCE ( - ( COUNT ( * ) ) * + 46, - 64 + 52 ) AS col1
----
-4002

query I rowsort
SELECT ALL + 69 + 38
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT - MAX( - 50 ) * 3 AS col2
----
150

skipif mysql # not compatible
query I rowsort label-6473
SELECT - MAX ( - 50 ) * 3 AS col2
----
150

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6474
SELECT ALL + CAST( 68 AS SIGNED ) + - ( + COALESCE ( - 60, - 35 * - ( 85 ) ) ) DIV - 93
----
68

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL + CAST ( 68 AS INTEGER ) + - ( + COALESCE ( - 60, - 35 * - ( 85 ) ) ) / - 93
----
68

query I rowsort
SELECT DISTINCT NULLIF ( 91, + 60 )
----
91

query I rowsort
SELECT DISTINCT 2 + + 88 AS col1
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6477
SELECT ALL 61 + 63 DIV 4
----
76

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL 61 + 63 / 4
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6478
SELECT DISTINCT COUNT( * ) DIV 7
----
0

skipif mysql # not compatible
query I rowsort label-6478
SELECT DISTINCT COUNT ( * ) / 7
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6479
SELECT - NULLIF ( + 67, + 68 * 93 - - 69 ) DIV + MAX( ALL 74 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-6479
SELECT - NULLIF ( + 67, + 68 * 93 - - 69 ) / + MAX ( ALL 74 ) col1
----
0

query I rowsort
SELECT ALL + 69 + + 13
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT - COALESCE ( 10, + 29, ( 49 ) * - COUNT( * ) ) - 62 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-6481
SELECT - COALESCE ( 10, + 29, ( 49 ) * - COUNT ( * ) ) - 62 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT DISTINCT MAX( + 58 ) * - 73 col0
----
-4234

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT MAX ( + 58 ) * - 73 col0
----
-4234

query I rowsort
SELECT - 14 + + 12 * 82
----
970

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6484
SELECT + 96 DIV - COUNT( * ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-6484
SELECT + 96 / - COUNT ( * ) AS col0
----
-96

query I rowsort
SELECT - ( + 80 ) * + 34
----
-2720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6486
SELECT CAST( MIN( 6 ) AS SIGNED ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6486
SELECT CAST ( MIN ( 6 ) AS INTEGER ) AS col0
----
6

query I rowsort
SELECT ALL 95 * + COALESCE ( 53, - 0 ) AS col2
----
5035

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6488
SELECT + COUNT( * ) DIV + 62 + + NULLIF ( COUNT( * ), - 22 ) * 64 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-6488
SELECT + COUNT ( * ) / + 62 + + NULLIF ( COUNT ( * ), - 22 ) * 64 AS col0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-6489
SELECT ALL 58 DIV + 54 - - 61 DIV - 66 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL 58 / + 54 - - 61 / - 66 AS col1
----
1

query I rowsort
SELECT + 36 + 49 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT + COUNT( 30 )
----
1

skipif mysql # not compatible
query I rowsort label-6491
SELECT + COUNT ( 30 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT - NULLIF ( - 74, 6 ) + - COUNT( * ) * 60 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-6492
SELECT - NULLIF ( - 74, 6 ) + - COUNT ( * ) * 60 AS col2
----
14

query I rowsort
SELECT 71 * 49 - - 6 * 81
----
3965

query I rowsort
SELECT + 17 * - 88 AS col0
----
-1496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6495
SELECT + 82 + COALESCE ( - CAST( NULL AS SIGNED ) + COUNT( * ), CASE + 57 WHEN 31 + CASE + 31 WHEN 5 + ( 16 - + 18 ) THEN ( + SUM( - 19 ) ) WHEN - 39 THEN NULL END THEN NULL WHEN + 4 THEN 61 WHEN + 59 THEN 77 * ( - 57 ) ELSE - 25 END, ( 19 ) )
----
57

skipif mysql # not compatible
query I rowsort label-6495
SELECT + 82 + COALESCE ( - CAST ( NULL AS INTEGER ) + COUNT ( * ), CASE + 57 WHEN 31 + CASE + 31 WHEN 5 + ( 16 - + 18 ) THEN ( + SUM ( - 19 ) ) WHEN - 39 THEN NULL END THEN NULL WHEN + 4 THEN 61 WHEN + 59 THEN 77 * ( - 57 ) ELSE - 25 END, ( 19 ) )
----
57

query I rowsort
SELECT ALL + 20 * 78 - - 70 * - 29
----
-470

onlyif mysql # DIV for integer division: 
query I rowsort label-6497
SELECT + 70 DIV - 15
----
-4

skipif mysql # not compatible
query I rowsort label-6497
SELECT + 70 / - 15
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT - + COUNT( * ) * + 65
----
-65

skipif mysql # not compatible
query I rowsort label-6498
SELECT - + COUNT ( * ) * + 65
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT ALL - COALESCE ( - 12, 55 * + 73 ) * COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL - COALESCE ( - 12, 55 * + 73 ) * COUNT ( * )
----
12

query I rowsort
SELECT 48 * - 20 + - 73 * + 89
----
-7457

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT ALL + + MIN( DISTINCT - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL + + MIN ( DISTINCT - 71 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT ALL + ( - 4 ) * + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL + ( - 4 ) * + COUNT ( * )
----
-4

query I rowsort
SELECT + - 56 * - 95
----
5320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6504
SELECT ALL 21 * + CAST( 61 * + 86 AS SIGNED ) col2
----
110166

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL 21 * + CAST ( 61 * + 86 AS INTEGER ) col2
----
110166

query I rowsort
SELECT + 61 - + 42 AS col0
----
19

query I rowsort
SELECT ALL 44 * + 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6507
SELECT ALL 48 * CAST( COALESCE ( + 35, + 73 + 60 ) + - COALESCE ( SUM( 27 ), + 67 + COALESCE ( + 10, 51 * + NULLIF ( + 95, - 11 - 54 * + 98 ) ) ) AS SIGNED )
----
384

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL 48 * CAST ( COALESCE ( + 35, + 73 + 60 ) + - COALESCE ( SUM ( 27 ), + 67 + COALESCE ( + 10, 51 * + NULLIF ( + 95, - 11 - 54 * + 98 ) ) ) AS INTEGER )
----
384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6508
SELECT + 18 + - COUNT( * ) DIV COALESCE ( - 47, - CASE - 75 WHEN 36 THEN 48 * 80 WHEN 7 * - 65 + - 7 * 9 THEN + 74 END - 82 )
----
18

skipif mysql # not compatible
query I rowsort label-6508
SELECT + 18 + - COUNT ( * ) / COALESCE ( - 47, - CASE - 75 WHEN 36 THEN 48 * 80 WHEN 7 * - 65 + - 7 * 9 THEN + 74 END - 82 )
----
18

query I rowsort
SELECT - 88 * + COALESCE ( + 99, - 3 ) AS col1
----
-8712

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT - 65 * COUNT( * ) + 53 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-6510
SELECT - 65 * COUNT ( * ) + 53 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT + - COUNT( * ) + + 26 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-6511
SELECT + - COUNT ( * ) + + 26 AS col1
----
25

query I rowsort
SELECT - - 99 - 94 * - 15 AS col2
----
1509

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT + + 30 + + NULLIF ( 66, COUNT( * ) ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-6513
SELECT + + 30 + + NULLIF ( 66, COUNT ( * ) ) AS col1
----
96

query I rowsort
SELECT DISTINCT 33 + 7 AS col0
----
40

query I rowsort
SELECT ALL + 44 + 6 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT DISTINCT + NULLIF ( COUNT( + 41 ), 52 ) + 8 * 14 AS col1
----
113

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT + NULLIF ( COUNT ( + 41 ), 52 ) + 8 * 14 AS col1
----
113

query I rowsort
SELECT 53 * 94
----
4982

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT 99 + COUNT( * ) + 92 AS col2
----
192

skipif mysql # not compatible
query I rowsort label-6518
SELECT 99 + COUNT ( * ) + 92 AS col2
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6519
SELECT ALL + 65 + - 64 + CAST( COUNT( DISTINCT 94 ) + 73 AS SIGNED ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL + 65 + - 64 + CAST ( COUNT ( DISTINCT 94 ) + 73 AS INTEGER ) AS col0
----
75

query I rowsort
SELECT 8 + 65 * - 4 AS col0
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT DISTINCT + COUNT( * ) * 16 * COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT + COUNT ( * ) * 16 * COUNT ( * )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT COUNT( * ) + - 56 * 86
----
-4815

skipif mysql # not compatible
query I rowsort label-6522
SELECT COUNT ( * ) + - 56 * 86
----
-4815

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT ALL + COUNT( * ) - 27 * 61 AS col0
----
-1646

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL + COUNT ( * ) - 27 * 61 AS col0
----
-1646

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT 89 * - 63 * COUNT( * )
----
-5607

skipif mysql # not compatible
query I rowsort label-6524
SELECT 89 * - 63 * COUNT ( * )
----
-5607

query I rowsort
SELECT DISTINCT + 21 - - - 73
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT ALL + COUNT( * ) - - + 20
----
21

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL + COUNT ( * ) - - + 20
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6527
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) DIV CAST( 16 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6527
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) / CAST ( 16 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT DISTINCT + COALESCE ( - 17, + 45 + COUNT( * ) ) - 94
----
-111

skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT + COALESCE ( - 17, + 45 + COUNT ( * ) ) - 94
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT DISTINCT - MIN( DISTINCT - 99 )
----
99

skipif mysql # not compatible
query I rowsort label-6529
SELECT DISTINCT - MIN ( DISTINCT - 99 )
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6530
SELECT ALL + 3 DIV COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL + 3 / COUNT ( * )
----
3

query I rowsort
SELECT 4 * - 54 AS col2
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT NULLIF ( - 87, AVG ( DISTINCT 77 ) - + COUNT( * ) ) * + 76
----
-6612

skipif mysql # not compatible
query I rowsort label-6532
SELECT NULLIF ( - 87, AVG ( DISTINCT 77 ) - + COUNT ( * ) ) * + 76
----
-6612

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT MAX( ALL + 29 ) * - 36 + 98
----
-946

skipif mysql # not compatible
query I rowsort label-6533
SELECT MAX ( ALL + 29 ) * - 36 + 98
----
-946

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6534
SELECT ALL - CASE + 48 WHEN - CAST( NULL AS SIGNED ) + 47 / 37 THEN COUNT( * ) WHEN - 25 THEN + 2 + - 27 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL - CASE + 48 WHEN - CAST ( NULL AS INTEGER ) + 47 / 37 THEN COUNT ( * ) WHEN - 25 THEN + 2 + - 27 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 64 * + - 95
----
-6080

onlyif mysql # DIV for integer division: 
query I rowsort label-6536
SELECT 59 DIV - 45 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6536
SELECT 59 / - 45 AS col2
----
-1

query I rowsort
SELECT 30 + 98
----
128

query I rowsort
SELECT ALL - 66 * - 9
----
594

query I rowsort
SELECT - 22 * - + NULLIF ( 84, - 31 ) col0
----
1848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6540
SELECT ALL + CAST( - + ( 41 ) AS SIGNED ) * - 81
----
3321

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL + CAST ( - + ( 41 ) AS INTEGER ) * - 81
----
3321

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT DISTINCT - + CASE + - 79 WHEN + ( 73 ) * 24 + 28 THEN 73 WHEN + 30 THEN - 28 * 63 ELSE + COUNT( * ) * - 78 END
----
78

skipif mysql # not compatible
query I rowsort label-6541
SELECT DISTINCT - + CASE + - 79 WHEN + ( 73 ) * 24 + 28 THEN 73 WHEN + 30 THEN - 28 * 63 ELSE + COUNT ( * ) * - 78 END
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6542
SELECT ALL CAST( + 32 AS SIGNED ) + + 81
----
113

skipif mysql # not compatible
query I rowsort label-6542
SELECT ALL CAST ( + 32 AS INTEGER ) + + 81
----
113

query I rowsort
SELECT - 89 * COALESCE ( 14, - 91 - + 30 )
----
-1246

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6544
SELECT DISTINCT + 89 + + MIN( ALL CAST( NULL AS DECIMAL ) ) - - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-6544
SELECT DISTINCT + 89 + + MIN ( ALL CAST ( NULL AS REAL ) ) - - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT COUNT( 15 ) * 65 col1
----
65

skipif mysql # not compatible
query I rowsort label-6545
SELECT COUNT ( 15 ) * 65 col1
----
65

query I rowsort
SELECT ALL + 39 + + + ( NULLIF ( 94, 56 ) ) AS col1
----
133

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6547
SELECT CAST( + 33 AS DECIMAL ) * ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6547
SELECT CAST ( + 33 AS REAL ) * ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6548
SELECT + CASE + + CAST( - COUNT( * ) AS SIGNED ) WHEN + 23 THEN - 10 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6548
SELECT + CASE + + CAST ( - COUNT ( * ) AS INTEGER ) WHEN + 23 THEN - 10 ELSE NULL END col2
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + + 21, + 71 ) + 14 * - 38 AS col0
----
-553

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT DISTINCT MIN( - 76 ) + 98
----
22

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT MIN ( - 76 ) + 98
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6551
SELECT ALL + CAST( + AVG ( - 57 ) AS SIGNED ) * - 50
----
2850

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL + CAST ( + AVG ( - 57 ) AS INTEGER ) * - 50
----
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT DISTINCT - 56 * COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT - 56 * COUNT ( * )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-6553
SELECT + 88 DIV - 56 + 69
----
68

skipif mysql # not compatible
query I rowsort label-6553
SELECT + 88 / - 56 + 69
----
68

query I rowsort
SELECT ALL - 12 + + 83
----
71

query I rowsort
SELECT ALL 62 * + - 18 + + 60 col2
----
-1056

query I rowsort
SELECT 83 * + + 11 AS col1
----
913

onlyif mysql # DIV for integer division: 
query I rowsort label-6557
SELECT 89 DIV + + 14 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6557
SELECT 89 / + + 14 AS col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6558
SELECT 24 DIV - + 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6558
SELECT 24 / - + 81 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT ALL 49 * + + SUM( ALL 25 )
----
1225

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL 49 * + + SUM ( ALL 25 )
----
1225

onlyif mysql # DIV for integer division: 
query I rowsort label-6560
SELECT DISTINCT - 89 DIV + + 24
----
-3

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT - 89 / + + 24
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6561
SELECT DISTINCT 74, CAST( 74 AS SIGNED ) AS col0
----
74
74

skipif mysql # not compatible
query II rowsort label-6561
SELECT DISTINCT 74, CAST ( 74 AS INTEGER ) AS col0
----
74
74

query II rowsort
SELECT DISTINCT 29 AS col2, + 82 * - 70 * 52 col1
----
29
-298480

query I rowsort
SELECT ALL + 7 * - 69 AS col1
----
-483

query I rowsort
SELECT 24 - - + 80
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT ( + CASE + SUM( ALL 60 ) WHEN 0 + 65 THEN 87 ELSE 44 END ) * - 88 AS col0
----
-3872

skipif mysql # not compatible
query I rowsort label-6565
SELECT ( + CASE + SUM ( ALL 60 ) WHEN 0 + 65 THEN 87 ELSE 44 END ) * - 88 AS col0
----
-3872

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT - ( - 94 ) * + - 77 * 77 + - COUNT( * ) AS col1
----
-557327

skipif mysql # not compatible
query I rowsort label-6566
SELECT - ( - 94 ) * + - 77 * 77 + - COUNT ( * ) AS col1
----
-557327

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT COUNT( * ) * SUM( ( 54 ) ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-6567
SELECT COUNT ( * ) * SUM ( ( 54 ) ) AS col1
----
54

query I rowsort
SELECT ALL + 99 * - 90 AS col0
----
-8910

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT ALL - SUM( 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-6569
SELECT ALL - SUM ( 46 )
----
-46

query I rowsort
SELECT 8 * + ( - + 76 ) + 55
----
-553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6571
SELECT ALL - 59 AS col0, CAST( + + 50 AS SIGNED ) + COUNT( DISTINCT 81 + 50 )
----
-59
51

skipif mysql # not compatible
query II rowsort label-6571
SELECT ALL - 59 AS col0, CAST ( + + 50 AS INTEGER ) + COUNT ( DISTINCT 81 + 50 )
----
-59
51

query I rowsort
SELECT DISTINCT 35 * 41 * - - 86
----
123410

query I rowsort
SELECT 33 + - - ( 28 ) - 91 AS col1
----
-30

query I rowsort
SELECT 39 * - + 80 AS col0
----
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT ALL - MAX( 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL - MAX ( 48 ) AS col1
----
-48

query I rowsort
SELECT ALL 86 * 68 + + - 50
----
5798

query I rowsort
SELECT ALL + 87 * - 9 + + 78 AS col2
----
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT ALL - + NULLIF ( + 89, COALESCE ( + MAX( 85 ), - SUM( - 77 ) + - COALESCE ( 65, + 83 * 48, ( 88 ) ) ) / 35 + - 72 )
----
-89

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL - + NULLIF ( + 89, COALESCE ( + MAX ( 85 ), - SUM ( - 77 ) + - COALESCE ( 65, + 83 * 48, ( 88 ) ) ) / 35 + - 72 )
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-6579
SELECT 95 DIV - 92
----
-1

skipif mysql # not compatible
query I rowsort label-6579
SELECT 95 / - 92
----
-1

query I rowsort
SELECT - 78 + + - 16
----
-94

query I rowsort
SELECT + - 23 * + ( + - CASE - 29 WHEN 24 + 23 THEN 61 * - 78 + 80 ELSE NULL END ) + + 56
----
NULL

query I rowsort
SELECT DISTINCT - - 56 + + - 92 AS col2
----
-36

query I rowsort
SELECT ALL + - 94 + + - 80 AS col2
----
-174

query I rowsort
SELECT 18 - - + 6 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT + 35 * - + MAX( - + 53 ) + SUM( DISTINCT 55 + - 59 ) * - 66 AS col2
----
2119

skipif mysql # not compatible
query I rowsort label-6585
SELECT + 35 * - + MAX ( - + 53 ) + SUM ( DISTINCT 55 + - 59 ) * - 66 AS col2
----
2119

query I rowsort
SELECT + 27 + - 16
----
11

query I rowsort
SELECT DISTINCT - ( 88 ) * + 41 AS col2
----
-3608

query I rowsort
SELECT ALL + + 52 + + 97 + + 17 * 62 AS col2
----
1203

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT ALL - COUNT( * ) + + COUNT( * ) + - 85
----
-85

skipif mysql # not compatible
query I rowsort label-6589
SELECT ALL - COUNT ( * ) + + COUNT ( * ) + - 85
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6590
SELECT + 31 * + 3 * + - COUNT( * ) DIV MAX( 54 * ( 8 ) ) - + 30 + + ( - 23 )
----
-53

skipif mysql # not compatible
query I rowsort label-6590
SELECT + 31 * + 3 * + - COUNT ( * ) / MAX ( 54 * ( 8 ) ) - + 30 + + ( - 23 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT - MAX( ALL + 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-6591
SELECT - MAX ( ALL + 16 ) AS col2
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6592
SELECT - + 80 AS col0, 53 DIV COUNT( * ) col1
----
-80
53

skipif mysql # not compatible
query II rowsort label-6592
SELECT - + 80 AS col0, 53 / COUNT ( * ) col1
----
-80
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT + COUNT( - - 16 )
----
1

skipif mysql # not compatible
query I rowsort label-6593
SELECT + COUNT ( - - 16 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT + CASE + - 87 WHEN 67 THEN + 42 + + 32 WHEN - COUNT( * ) * 98 + 1 THEN NULL WHEN + ( + 54 ) THEN NULL ELSE NULL END + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6594
SELECT + CASE + - 87 WHEN 67 THEN + 42 + + 32 WHEN - COUNT ( * ) * 98 + 1 THEN NULL WHEN + ( + 54 ) THEN NULL ELSE NULL END + - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT DISTINCT CASE + MIN( ALL - 15 ) WHEN - + COUNT( DISTINCT + 8 ) THEN 91 * - 89 - - 37 WHEN - 19 * 44 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6595
SELECT DISTINCT CASE + MIN ( ALL - 15 ) WHEN - + COUNT ( DISTINCT + 8 ) THEN 91 * - 89 - - 37 WHEN - 19 * 44 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 72 * - 78 * 99 * + 30 AS col1
----
-16679520

query I rowsort
SELECT + 37 + - - 54 col2
----
91

query I rowsort
SELECT DISTINCT 1 - + 80
----
-79

query I rowsort
SELECT + 13 * + 82 * - 88 * - - 35 AS col1
----
-3283280

query I rowsort
SELECT ALL 25 * + + 60 AS col2
----
1500

query I rowsort
SELECT + 30 + + + 11 + - + 68
----
-27

query I rowsort
SELECT ALL 36 * 9 AS col2
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT - COUNT( + 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-6603
SELECT - COUNT ( + 76 )
----
-1

query II rowsort
SELECT + 83 + + 88 AS col0, 52 AS col2
----
171
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6605
SELECT - 0 DIV - 16 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6605
SELECT - 0 / - 16 AS col0
----
0

query I rowsort
SELECT DISTINCT ( 1 ) + + 57 AS col2
----
58

query I rowsort
SELECT + 23 * + 60 AS col2
----
1380

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT + ( - + MIN( + NULLIF ( 15, 66 ) ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6608
SELECT + ( - + MIN ( + NULLIF ( 15, 66 ) ) ) AS col0
----
-15

query I rowsort
SELECT DISTINCT + - 95 * + 94 + + + 93 + + 98 + + 47 AS col2
----
-8692

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6610
SELECT + + COALESCE ( - + 70, - 9, COUNT( * ) DIV 96 ) * COALESCE ( 38 + 97, + ( 86 ) )
----
-9450

skipif mysql # not compatible
query I rowsort label-6610
SELECT + + COALESCE ( - + 70, - 9, COUNT ( * ) / 96 ) * COALESCE ( 38 + 97, + ( 86 ) )
----
-9450

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) * + MIN( ALL 46 ) + - 98
----
-144

skipif mysql # not compatible
query I rowsort label-6611
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) * + MIN ( ALL 46 ) + - 98
----
-144

query I rowsort
SELECT ALL 92 * - ( + + 73 ) + + + 48 AS col1
----
-6668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6613
SELECT + + CASE - COALESCE ( 87, - CAST( NULL AS SIGNED ) / COUNT( * ), 18 ) WHEN 77 THEN - 78 * 8 END * 22 + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-6613
SELECT + + CASE - COALESCE ( 87, - CAST ( NULL AS INTEGER ) / COUNT ( * ), 18 ) WHEN 77 THEN - 78 * 8 END * 22 + 32
----
NULL

query I rowsort
SELECT + 98 - 81 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT ALL - COUNT( * ) * - 39
----
39

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL - COUNT ( * ) * - 39
----
39

query I rowsort
SELECT - - 17 + + 35 * + - 36 col2
----
-1243

query I rowsort
SELECT ALL + 46 * 76 - + 82 AS col2
----
3414

query I rowsort
SELECT - - 67 * + 30 AS col1
----
2010

query I rowsort
SELECT + 70 * + + 88 + 15
----
6175

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT DISTINCT - COUNT( * ) * + - CASE - ( + - COUNT( * ) ) WHEN - MAX( ALL - 33 ) THEN - 79 WHEN - 20 * MAX( ALL 79 ) THEN 18 END * 54 + + 81 - + CASE 0 WHEN + COUNT( - 72 ) THEN + 50 + 48 WHEN 34 + - 59 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT - COUNT ( * ) * + - CASE - ( + - COUNT ( * ) ) WHEN - MAX ( ALL - 33 ) THEN - 79 WHEN - 20 * MAX ( ALL 79 ) THEN 18 END * 54 + + 81 - + CASE 0 WHEN + COUNT ( - 72 ) THEN + 50 + 48 WHEN 34 + - 59 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6621
SELECT - - 18 DIV + 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6621
SELECT - - 18 / + 91 AS col2
----
0

query I rowsort
SELECT - 0 * + 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT DISTINCT + + COUNT( * ) * - - 0
----
0

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT + + COUNT ( * ) * - - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT ALL + + COUNT( * ) * + + 84 * + + 90
----
7560

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL + + COUNT ( * ) * + + 84 * + + 90
----
7560

onlyif mysql # DIV for integer division: 
query I rowsort label-6625
SELECT ALL + 35 DIV + 85 * - 11
----
0

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL + 35 / + 85 * - 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT DISTINCT - COUNT( * ) * - 25
----
25

skipif mysql # not compatible
query I rowsort label-6626
SELECT DISTINCT - COUNT ( * ) * - 25
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6627
SELECT - CASE - + COUNT( * ) WHEN ( + + 70 ) * 92 + 62 THEN NULL WHEN 66 * AVG ( ALL 78 ) THEN NULL WHEN COALESCE ( SUM( - NULLIF ( CAST( NULL AS SIGNED ), - 16 * 19 + - 71 ) ), + 34 * - COUNT( * ) - ( - 73 ) ) THEN NULLIF ( 87, - 69 * CAST( + SUM( DISTINCT + 67 ) AS SIGNED ) + 38 ) WHEN - 25 + - 53 THEN 64 * - 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6627
SELECT - CASE - + COUNT ( * ) WHEN ( + + 70 ) * 92 + 62 THEN NULL WHEN 66 * AVG ( ALL 78 ) THEN NULL WHEN COALESCE ( SUM ( - NULLIF ( CAST ( NULL AS INTEGER ), - 16 * 19 + - 71 ) ), + 34 * - COUNT ( * ) - ( - 73 ) ) THEN NULLIF ( 87, - 69 * CAST ( + SUM ( DISTINCT + 67 ) AS INTEGER ) + 38 ) WHEN - 25 + - 53 THEN 64 * - 29 END
----
NULL

query I rowsort
SELECT - NULLIF ( - - 25, - 88 )
----
-25

query I rowsort
SELECT - 95 - - 92
----
-3

query I rowsort
SELECT + 59 * - 96
----
-5664

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT - 71 - NULLIF ( - 78, - + COUNT( * ) / + ( CASE 3 WHEN - 26 THEN NULL ELSE + 54 END ) - - COUNT( * ) ) + + 6 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-6631
SELECT - 71 - NULLIF ( - 78, - + COUNT ( * ) / + ( CASE 3 WHEN - 26 THEN NULL ELSE + 54 END ) - - COUNT ( * ) ) + + 6 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT ALL + COUNT( * ) + - + 54 * - 77
----
4159

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL + COUNT ( * ) + - + 54 * - 77
----
4159

query I rowsort
SELECT + 17 - - - 27 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT + COUNT( 54 ) * - + 94 - + COALESCE ( + 34, + 69 * SUM( DISTINCT 53 ) ) * + 95
----
-3324

skipif mysql # not compatible
query I rowsort label-6634
SELECT + COUNT ( 54 ) * - + 94 - + COALESCE ( + 34, + 69 * SUM ( DISTINCT 53 ) ) * + 95
----
-3324

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT + MAX( 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-6635
SELECT + MAX ( 9 ) AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6636
SELECT DISTINCT + 86 DIV - + 17 + + NULLIF ( + 28, + COUNT( * ) + ( + MAX( 52 ) ) ) + 74 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-6636
SELECT DISTINCT + 86 / - + 17 + + NULLIF ( + 28, + COUNT ( * ) + ( + MAX ( 52 ) ) ) + 74 AS col2
----
97

query I rowsort
SELECT ALL + ( - 82 ) col2
----
-82

query I rowsort
SELECT DISTINCT - 41 + - 63 + 15 * - - 7 + + 5 + 39 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ALL - SUM( - - 80 ) - + COUNT( * ) - 98 AS col1
----
-179

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL - SUM ( - - 80 ) - + COUNT ( * ) - 98 AS col1
----
-179

query I rowsort
SELECT ALL + + 64 - ( + - 96 ) + - 92
----
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6641
SELECT - 32 * - 7 + 7 * - - CAST( NULL AS DECIMAL ) - + + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6641
SELECT - 32 * - 7 + 7 * - - CAST ( NULL AS REAL ) - + + 44 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6642
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT - + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6643
SELECT DISTINCT - NULLIF ( MAX( + 3 ), - + 63 * - + 53 * + 72 + - NULLIF ( + CASE 25 WHEN 17 THEN COUNT( * ) * CAST( 25 AS SIGNED ) END, 42 + - 55 ) + COALESCE ( - 90 + CASE + COALESCE ( 60, COUNT( 6 ), ( + 74 ) / 45 + 85, - 18 ) WHEN - 59 THEN NULL WHEN 13 * 53 THEN 47 END, 82 + - 25, CASE WHEN NOT NULL >= NULL THEN 92 END ) * + 53 )
----
-3

skipif mysql # not compatible
query I rowsort label-6643
SELECT DISTINCT - NULLIF ( MAX ( + 3 ), - + 63 * - + 53 * + 72 + - NULLIF ( + CASE 25 WHEN 17 THEN COUNT ( * ) * CAST ( 25 AS INTEGER ) END, 42 + - 55 ) + COALESCE ( - 90 + CASE + COALESCE ( 60, COUNT ( 6 ), ( + 74 ) / 45 + 85, - 18 ) WHEN - 59 THEN NULL WHEN 13 * 53 THEN 47 END, 82 + - 25, CASE WHEN NOT NULL >= NULL THEN 92 END ) * + 53 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT ALL COALESCE ( - MIN( ALL - 5 ), - + 20 + 33 ) - 89 * 55 AS col2
----
-4890

skipif mysql # not compatible
query I rowsort label-6644
SELECT ALL COALESCE ( - MIN ( ALL - 5 ), - + 20 + 33 ) - 89 * 55 AS col2
----
-4890

query I rowsort
SELECT - 98 * + 16
----
-1568

query I rowsort
SELECT + 7 + + + 56 AS col2
----
63

query I rowsort
SELECT DISTINCT - 34 * 67 + + 12 + 76 * - + 77 * + 57 AS col2
----
-335830

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT ALL - MIN( DISTINCT 69 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL - MIN ( DISTINCT 69 ) AS col1
----
-69

query I rowsort
SELECT + - CASE - + 54 WHEN 2 THEN - 0 + + 74 WHEN + 82 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT ALL + COALESCE ( + 63, - COUNT( * ) ) * 94
----
5922

skipif mysql # not compatible
query I rowsort label-6650
SELECT ALL + COALESCE ( + 63, - COUNT ( * ) ) * 94
----
5922

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6651
SELECT 42 * 62 * - - ( - + COUNT( + 77 ) ) - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6651
SELECT 42 * 62 * - - ( - + COUNT ( + 77 ) ) - + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL - - 74 AS col2, - 5 * - 77 + + 71
----
74
456

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT 24 - + COUNT( - + 65 )
----
23

skipif mysql # not compatible
query I rowsort label-6653
SELECT 24 - + COUNT ( - + 65 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6654
SELECT + 25 * CAST( NULL AS SIGNED ) + + + 92 + + + 78 + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6654
SELECT + 25 * CAST ( NULL AS INTEGER ) + + + 92 + + + 78 + + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT 34 - + CASE SUM( ALL + 87 ) WHEN - 89 THEN NULL WHEN + ( 90 ) THEN - 94 * - 74 - 66 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6655
SELECT 34 - + CASE SUM ( ALL + 87 ) WHEN - 89 THEN NULL WHEN + ( 90 ) THEN - 94 * - 74 - 66 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT ALL - ( + MAX( ALL ( + - 62 ) ) ) + - - 14 * - + 96 AS col0
----
-1282

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL - ( + MAX ( ALL ( + - 62 ) ) ) + - - 14 * - + 96 AS col0
----
-1282

query II rowsort
SELECT DISTINCT 26 AS col2, + 11
----
26
11

query I rowsort
SELECT DISTINCT 18 + + 97 AS col2
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6659
SELECT ALL + CAST( NULL AS SIGNED ) * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL + CAST ( NULL AS INTEGER ) * 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT ALL - SUM( - 28 ) + - + CASE + 81 WHEN 53 THEN + - 44 / - 23 WHEN COALESCE ( ( + 57 ), - 98, 84, ( 47 ) * 13 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL - SUM ( - 28 ) + - + CASE + 81 WHEN 53 THEN + - 44 / - 23 WHEN COALESCE ( ( + 57 ), - 98, 84, ( 47 ) * 13 ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT 33 + - 59 + - 98
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT ALL - COUNT( * ) + 1
----
0

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL - COUNT ( * ) + 1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6663
SELECT DISTINCT + 58 / - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6663
SELECT DISTINCT + 58 / - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col2
----
NULL

query II rowsort
SELECT 43 + + 57 AS col0, 77 col1
----
100
77

query I rowsort
SELECT ALL 35 + - 54 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6666
SELECT COUNT( * ) * + 47 * - - CAST( 23 AS SIGNED )
----
1081

skipif mysql # not compatible
query I rowsort label-6666
SELECT COUNT ( * ) * + 47 * - - CAST ( 23 AS INTEGER )
----
1081

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT ALL + COUNT( * ) * ( 55 ) * 12 + - 27 * - 47 AS col0
----
1929

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL + COUNT ( * ) * ( 55 ) * 12 + - 27 * - 47 AS col0
----
1929

query I rowsort
SELECT 23 * 25
----
575

query I rowsort
SELECT 58 + + 32
----
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6670
SELECT DISTINCT - 68 + - 33 DIV + + 45 * - 9 + + - NULLIF ( - 14, CAST( NULL AS SIGNED ) ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-6670
SELECT DISTINCT - 68 + - 33 / + + 45 * - 9 + + - NULLIF ( - 14, CAST ( NULL AS INTEGER ) ) col1
----
-54

query I rowsort
SELECT ALL - 14 + CASE 75 WHEN + 14 THEN + 39 + + 77 WHEN 3 + 19 / 24 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 50 + + - 61
----
-11

query II rowsort
SELECT 48 * - ( + 81 ) * - 36 AS col0, + 55 AS col1
----
139968
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6674
SELECT - 56 col2, 13 - COUNT( * ) + + 6 DIV - 20 * NULLIF ( + NULLIF ( 58, - 56 * 30 ), - COUNT( * ) ) AS col1
----
-56
12

skipif mysql # not compatible
query II rowsort label-6674
SELECT - 56 col2, 13 - COUNT ( * ) + + 6 / - 20 * NULLIF ( + NULLIF ( 58, - 56 * 30 ), - COUNT ( * ) ) AS col1
----
-56
12

query I rowsort
SELECT DISTINCT + 45 - - 24
----
69

query II rowsort
SELECT + 52 col2, + 7 col1
----
52
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6677
SELECT DISTINCT COALESCE ( - - CAST( NULL AS SIGNED ), + + 91 ) - + 70 col1, 98 * - - 65 + 64 AS col2
----
21
6434

skipif mysql # not compatible
query II rowsort label-6677
SELECT DISTINCT COALESCE ( - - CAST ( NULL AS INTEGER ), + + 91 ) - + 70 col1, 98 * - - 65 + 64 AS col2
----
21
6434

query I rowsort
SELECT ALL 33 - 83 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-6679
SELECT + 52 AS col0, - 25 + - + COUNT( * ) AS col2
----
52
-26

skipif mysql # not compatible
query II rowsort label-6679
SELECT + 52 AS col0, - 25 + - + COUNT ( * ) AS col2
----
52
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT + 55 * - MIN( 93 ) AS col1
----
-5115

skipif mysql # not compatible
query I rowsort label-6680
SELECT + 55 * - MIN ( 93 ) AS col1
----
-5115

query II rowsort
SELECT 39 + 0 col0, 96 + + - 98 - + - 41
----
39
39

query I rowsort
SELECT ALL - - ( - 82 ) AS col0
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6683
SELECT + - COALESCE ( 90, COUNT( * ), + COALESCE ( - MAX( DISTINCT 9 ), 5 * - COUNT( * ), 55 ) DIV CASE 65 WHEN 34 THEN 46 * 58 END + CASE + ( - 13 ) WHEN + 59 THEN 54 ELSE NULL END, + 22 * + 83 - 80 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-6683
SELECT + - COALESCE ( 90, COUNT ( * ), + COALESCE ( - MAX ( DISTINCT 9 ), 5 * - COUNT ( * ), 55 ) / CASE 65 WHEN 34 THEN 46 * 58 END + CASE + ( - 13 ) WHEN + 59 THEN 54 ELSE NULL END, + 22 * + 83 - 80 ) AS col0
----
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-6684
SELECT ALL - + 13 AS col1, 29 DIV + 79 AS col0
----
-13
0

skipif mysql # not compatible
query II rowsort label-6684
SELECT ALL - + 13 AS col1, 29 / + 79 AS col0
----
-13
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6685
SELECT + 82 DIV - 47
----
-1

skipif mysql # not compatible
query I rowsort label-6685
SELECT + 82 / - 47
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT COUNT( * ) * + + 62 * + - 0
----
0

skipif mysql # not compatible
query I rowsort label-6686
SELECT COUNT ( * ) * + + 62 * + - 0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6687
SELECT + ( 85 ) DIV COALESCE ( - - COALESCE ( ( 2 ), ( + 22 ), 46 ), COALESCE ( + 91, 91 * + 47 ), 53 ) + CAST( 46 AS SIGNED ) col2
----
88

skipif mysql # not compatible
query I rowsort label-6687
SELECT + ( 85 ) / COALESCE ( - - COALESCE ( ( 2 ), ( + 22 ), 46 ), COALESCE ( + 91, 91 * + 47 ), 53 ) + CAST ( 46 AS INTEGER ) col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT DISTINCT + + COUNT( * ) * - 10 + + COUNT( * ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT + + COUNT ( * ) * - 10 + + COUNT ( * ) AS col2
----
-9

query I rowsort
SELECT - 5 + - ( + 88 ) AS col1
----
-93

query II rowsort
SELECT + 26 AS col1, - 36 AS col2
----
26
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6691
SELECT 11 DIV COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6691
SELECT 11 / COUNT ( * ) AS col2
----
11

query II rowsort
SELECT ALL - - 62 AS col0, + ( + 46 ) AS col0
----
62
46

query I rowsort
SELECT - 32 * + 49
----
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT ALL 13 + COUNT( * ) * - CASE + 35 WHEN - 20 THEN 47 ELSE NULL END * + - ( - 96 ) * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL 13 + COUNT ( * ) * - CASE + 35 WHEN - 20 THEN 47 ELSE NULL END * + - ( - 96 ) * + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT DISTINCT ( CASE - 97 WHEN 81 - + NULLIF ( - 17, + CASE 4 WHEN + COUNT( * ) THEN NULL WHEN - 70 THEN NULL ELSE - 15 END ) * - 22 THEN - 49 WHEN 7 THEN NULL END ) * - 27 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT ( CASE - 97 WHEN 81 - + NULLIF ( - 17, + CASE 4 WHEN + COUNT ( * ) THEN NULL WHEN - 70 THEN NULL ELSE - 15 END ) * - 22 THEN - 49 WHEN 7 THEN NULL END ) * - 27 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6696
SELECT ALL 66 + 87 + + - COUNT( * ) DIV + COUNT( * ) AS col2
----
152

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL 66 + 87 + + - COUNT ( * ) / + COUNT ( * ) AS col2
----
152

query I rowsort
SELECT ALL 77 + - 46 + - 59 + - 62 AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT ( - + 81 ) * - + 80 * + CASE 56 WHEN + COUNT( * ) THEN NULL ELSE + - 50 END
----
-324000

skipif mysql # not compatible
query I rowsort label-6698
SELECT ( - + 81 ) * - + 80 * + CASE 56 WHEN + COUNT ( * ) THEN NULL ELSE + - 50 END
----
-324000

query I rowsort
SELECT ALL + 45 + 4
----
49

query I rowsort
SELECT ALL - 81 + + 19 AS col2
----
-62

query I rowsort
SELECT ( - 94 ) + + 88 * + - 70 * - 31 * - 41
----
-7829454

query I rowsort
SELECT 58 * + 41
----
2378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6703
SELECT - CASE - COUNT( * ) WHEN 17 THEN NULLIF ( + - NULLIF ( + + CASE NULLIF ( + 23, + 76 * 25 ) WHEN + CAST( + 30 AS SIGNED ) THEN NULL WHEN - 1 * 5 THEN - 50 * 27 + - MAX( - ( + 16 ) ) ELSE NULL END, COUNT( * ) ), - 47 ) * - 27 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6703
SELECT - CASE - COUNT ( * ) WHEN 17 THEN NULLIF ( + - NULLIF ( + + CASE NULLIF ( + 23, + 76 * 25 ) WHEN + CAST ( + 30 AS INTEGER ) THEN NULL WHEN - 1 * 5 THEN - 50 * 27 + - MAX ( - ( + 16 ) ) ELSE NULL END, COUNT ( * ) ), - 47 ) * - 27 END AS col0
----
NULL

query I rowsort
SELECT 84 * - + 11 AS col2
----
-924

onlyif mysql # DIV for integer division: 
query I rowsort label-6705
SELECT DISTINCT - 9 DIV + 48 * - + 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6705
SELECT DISTINCT - 9 / + 48 * - + 53 AS col0
----
0

query II rowsort
SELECT 58 - + 39 AS col2, + 14 AS col2
----
19
14

query II rowsort
SELECT ALL - 91 * - + 38 * 27 AS col2, - 17
----
93366
-17

query I rowsort
SELECT DISTINCT - - 56 * 52 AS col2
----
2912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6709
SELECT - 31 + + + 42 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6709
SELECT - 31 + + + 42 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6710
SELECT - + 80 - - - 21 DIV + + 41
----
-80

skipif mysql # not compatible
query I rowsort label-6710
SELECT - + 80 - - - 21 / + + 41
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-6711
SELECT - + COUNT( * ) + ( + 84 ) + + 66 * 49 AS col1, 91 + - SUM( ALL - 54 ) * 59 AS col1
----
3317
3277

skipif mysql # not compatible
query II rowsort label-6711
SELECT - + COUNT ( * ) + ( + 84 ) + + 66 * 49 AS col1, 91 + - SUM ( ALL - 54 ) * 59 AS col1
----
3317
3277

query I rowsort
SELECT - - 5 - + - 77 + 98
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6713
SELECT ALL + COALESCE ( - CAST( - + 82 AS SIGNED ), - CAST( + + ( MIN( DISTINCT + NULLIF ( 75, - 45 * - 58 ) ) ) AS SIGNED ) ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL + COALESCE ( - CAST ( - + 82 AS INTEGER ), - CAST ( + + ( MIN ( DISTINCT + NULLIF ( 75, - 45 * - 58 ) ) ) AS INTEGER ) ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - - 94 * + ( 42 )
----
3948

query I rowsort
SELECT - 23 * + - 4 * 54
----
4968

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT CASE + 87 WHEN ( - 77 ) * - ( + 5 ) + - - MAX( + 65 ) + - 55 THEN NULL ELSE 31 * 41 END AS col0
----
1271

skipif mysql # not compatible
query I rowsort label-6716
SELECT CASE + 87 WHEN ( - 77 ) * - ( + 5 ) + - - MAX ( + 65 ) + - 55 THEN NULL ELSE 31 * 41 END AS col0
----
1271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6717
SELECT + - CAST( - 3 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-6717
SELECT + - CAST ( - 3 AS INTEGER )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6718
SELECT - 89 * COUNT( * ) DIV 62 + 50 - + 86 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-6718
SELECT - 89 * COUNT ( * ) / 62 + 50 - + 86 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT ALL COALESCE ( - + 4, + - 66 * + 35 * 23 * 31 + + 72 + - 40 * + 91, + 98 + - 28 ) * + COUNT( * ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL COALESCE ( - + 4, + - 66 * + 35 * 23 * 31 + + 72 + - 40 * + 91, + 98 + - 28 ) * + COUNT ( * ) AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6720
SELECT + MIN( + 25 ) * + 75 + - 44 DIV + - 14 col0
----
1878

skipif mysql # not compatible
query I rowsort label-6720
SELECT + MIN ( + 25 ) * + 75 + - 44 / + - 14 col0
----
1878

query I rowsort
SELECT DISTINCT - + 0 * + - 22 * - 42 + 93 + - 65
----
28

query I rowsort
SELECT + ( + ( + 55 ) ) AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6723
SELECT - 34 / CASE + 48 WHEN + COUNT( * ) / - 21 THEN NULL ELSE - 51 END + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6723
SELECT - 34 / CASE + 48 WHEN + COUNT ( * ) / - 21 THEN NULL ELSE - 51 END + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT ALL 72 * + SUM( DISTINCT - 16 )
----
-1152

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL 72 * + SUM ( DISTINCT - 16 )
----
-1152

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT NULLIF ( CASE 92 WHEN + 74 THEN NULL WHEN 66 THEN COUNT( ALL + 62 ) WHEN + - 15 * + AVG ( ALL - 25 ) + - 5 * - COUNT( * ) THEN NULL END, 55 * - 33 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6725
SELECT NULLIF ( CASE 92 WHEN + 74 THEN NULL WHEN 66 THEN COUNT ( ALL + 62 ) WHEN + - 15 * + AVG ( ALL - 25 ) + - 5 * - COUNT ( * ) THEN NULL END, 55 * - 33 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6726
SELECT + 84 DIV + 27
----
3

skipif mysql # not compatible
query I rowsort label-6726
SELECT + 84 / + 27
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6727
SELECT - 96 - + 19 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6727
SELECT - 96 - + 19 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT CASE - COALESCE ( + 66, ( - 92 ) + - - 62 ) WHEN - 27 THEN NULL ELSE + 4 END
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT + 72 + + + COUNT( * ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-6729
SELECT + 72 + + + COUNT ( * ) AS col2
----
73

query I rowsort
SELECT ALL 60 * 13 + - ( - 73 )
----
853

query I rowsort
SELECT - 79 * + 60 - - 95
----
-4645

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT + 1 * - MAX( + + 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-6732
SELECT + 1 * - MAX ( + + 88 )
----
-88

query II rowsort
SELECT - 12 + + - 3 * - 85, + ( 22 ) AS col2
----
243
22

onlyif mysql # DIV for integer division: 
query I rowsort label-6734
SELECT + 18 - + 32 * 80 + 80 + + 6 DIV + 30 * 43
----
-2462

skipif mysql # not compatible
query I rowsort label-6734
SELECT + 18 - + 32 * 80 + 80 + + 6 / + 30 * 43
----
-2462

onlyif mysql # DIV for integer division: 
query I rowsort label-6735
SELECT ALL - 68 * - 79 + + + 91 - + + 82 DIV 94 + + - 93
----
5370

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL - 68 * - 79 + + + 91 - + + 82 / 94 + + - 93
----
5370

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT MIN( 6 )
----
6

skipif mysql # not compatible
query I rowsort label-6736
SELECT MIN ( 6 )
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6737
SELECT - CAST( NULL AS DECIMAL ), + 52 AS col1
----
NULL
52

skipif mysql # not compatible
query II rowsort label-6737
SELECT - CAST ( NULL AS REAL ), + 52 AS col1
----
NULL
52

query I rowsort
SELECT + 82 + - 19 AS col1
----
63

query II rowsort
SELECT - 44 AS col1, - 41 AS col2
----
-44
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6740
SELECT ALL 52 * - CASE WHEN NOT 89 NOT BETWEEN + 77 + - 61 AND - - COUNT( * ) THEN NULL WHEN NOT 95 + + 74 BETWEEN ( NULL ) AND + 56 * - CAST( NULL AS SIGNED ) THEN NULL WHEN NOT ( 7 * - 77 ) IS NULL THEN - CAST( 7 AS SIGNED ) * 81 + 58 ELSE NULL END
----
26468

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL 52 * - CASE WHEN NOT 89 NOT BETWEEN + 77 + - 61 AND - - COUNT ( * ) THEN NULL WHEN NOT 95 + + 74 BETWEEN ( NULL ) AND + 56 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN NOT ( 7 * - 77 ) IS NULL THEN - CAST ( 7 AS INTEGER ) * 81 + 58 ELSE NULL END
----
26468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6741
SELECT + CASE + 9 WHEN + + CAST( NULL AS SIGNED ) / - - SUM( - + CAST( - - CAST( 23 AS SIGNED ) AS SIGNED ) ) THEN COALESCE ( - COUNT( * ), 56 * CAST( NULL AS SIGNED ) ) ELSE NULL END + - SUM( + 91 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6741
SELECT + CASE + 9 WHEN + + CAST ( NULL AS INTEGER ) / - - SUM ( - + CAST ( - - CAST ( 23 AS INTEGER ) AS INTEGER ) ) THEN COALESCE ( - COUNT ( * ), 56 * CAST ( NULL AS INTEGER ) ) ELSE NULL END + - SUM ( + 91 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT + COUNT( * ) + - 20 + + - ( + 13 )
----
-32

skipif mysql # not compatible
query I rowsort label-6742
SELECT + COUNT ( * ) + - 20 + + - ( + 13 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT ALL + 51 - - COUNT( * ) + + - 31 * + + 69 AS col0
----
-2087

skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL + 51 - - COUNT ( * ) + + - 31 * + + 69 AS col0
----
-2087

query I rowsort
SELECT + + 84 * + 95
----
7980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6745
SELECT + CASE - + 69 WHEN 24 THEN - + 37 / + 76 WHEN 82 * 83 - 42 + ( 59 ) / - CAST( NULL AS SIGNED ) THEN NULL WHEN - 16 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6745
SELECT + CASE - + 69 WHEN 24 THEN - + 37 / + 76 WHEN 82 * 83 - 42 + ( 59 ) / - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 16 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT - - COUNT( * ) + 12 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-6746
SELECT - - COUNT ( * ) + 12 AS col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6747
SELECT ALL COALESCE ( 18, + 22 + + 67, - - 52 - - + CAST( - 96 AS SIGNED ) ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-6747
SELECT ALL COALESCE ( 18, + 22 + + 67, - - 52 - - + CAST ( - 96 AS INTEGER ) ) AS col2
----
18

query I rowsort
SELECT + + 40 * + - 10
----
-400

query I rowsort
SELECT - 7 * 43 * - 96
----
28896

onlyif mysql # aggregate syntax: 
query II rowsort label-6750
SELECT DISTINCT COUNT( * ) AS col0, + 92 - + 9 * - ( - 33 ) * 54 AS col2
----
1
-15946

skipif mysql # not compatible
query II rowsort label-6750
SELECT DISTINCT COUNT ( * ) AS col0, + 92 - + 9 * - ( - 33 ) * 54 AS col2
----
1
-15946

query II rowsort
SELECT - 88 AS col2, - 77 * + 30
----
-88
-2310

query I rowsort
SELECT - - 57 + + + 39 - + 1 AS col2
----
95

query II rowsort
SELECT - 38, + 4 - + + 88 col2
----
-38
-84

query I rowsort
SELECT ALL + - 65 * + - 15
----
975

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT - + MIN( - + 74 ) * + 53 + + COUNT( * ) + + 78 * + 5 AS col1
----
4313

skipif mysql # not compatible
query I rowsort label-6755
SELECT - + MIN ( - + 74 ) * + 53 + + COUNT ( * ) + + 78 * + 5 AS col1
----
4313

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6756
SELECT ALL + MIN( DISTINCT - 1 ) DIV + - 84 + - 68
----
-68

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL + MIN ( DISTINCT - 1 ) / + - 84 + - 68
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6757
SELECT ALL 86 / + CASE + - 70 WHEN COUNT( * ) THEN 79 ELSE NULL END + ( + + 68 ) + + ( + 83 ) * 62 + - NULLIF ( - CAST( - 99 AS SIGNED ) + - 55, CAST( - COUNT( * ) AS SIGNED ) ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL 86 / + CASE + - 70 WHEN COUNT ( * ) THEN 79 ELSE NULL END + ( + + 68 ) + + ( + 83 ) * 62 + - NULLIF ( - CAST ( - 99 AS INTEGER ) + - 55, CAST ( - COUNT ( * ) AS INTEGER ) ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6758
SELECT + - SUM( - + 24 ) * - + ( CASE + - 60 WHEN 10 * + 18 THEN - 83 + + CAST( + COUNT( * ) AS SIGNED ) WHEN 86 / - COUNT( * ) THEN NULL END ) - - COUNT( ALL - ( 55 ) ) * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6758
SELECT + - SUM ( - + 24 ) * - + ( CASE + - 60 WHEN 10 * + 18 THEN - 83 + + CAST ( + COUNT ( * ) AS INTEGER ) WHEN 86 / - COUNT ( * ) THEN NULL END ) - - COUNT ( ALL - ( 55 ) ) * 84
----
NULL

query I rowsort
SELECT ALL + + 73 * 41 + 59 AS col0
----
3052

query II rowsort
SELECT + + 87, + 91 AS col0
----
87
91

query II rowsort
SELECT 19 AS col2, - 46 + - - 52
----
19
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT - 31 - 67 + COUNT( * ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-6762
SELECT - 31 - 67 + COUNT ( * ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-6763
SELECT ALL + MAX( - NULLIF ( + 17, 65 ) ), + 61 AS col0
----
-17
61

skipif mysql # not compatible
query II rowsort label-6763
SELECT ALL + MAX ( - NULLIF ( + 17, 65 ) ), + 61 AS col0
----
-17
61

query I rowsort
SELECT ( + - 9 ) AS col2
----
-9

query I rowsort
SELECT ALL 19 * 98 * + 84 AS col1
----
156408

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT + CASE 16 WHEN - - COUNT( * ) * - 93 THEN - 21 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6766
SELECT + CASE 16 WHEN - - COUNT ( * ) * - 93 THEN - 21 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT + 95 + + + ( + + COUNT( * ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-6767
SELECT + 95 + + + ( + + COUNT ( * ) ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT + MIN( ALL ( - 72 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-6768
SELECT + MIN ( ALL ( - 72 ) )
----
-72

query I rowsort
SELECT - 41 * - 2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6770
SELECT + MIN( - - CAST( NULL AS SIGNED ) ) + - 92 + - 8 * + + 6 * 13 / - - 33 * + MAX( 85 ) / + 37 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6770
SELECT + MIN ( - - CAST ( NULL AS INTEGER ) ) + - 92 + - 8 * + + 6 * 13 / - - 33 * + MAX ( 85 ) / + 37 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6771
SELECT ALL + SUM( ALL - 9 ) col0, CAST( NULL AS DECIMAL )
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-6771
SELECT ALL + SUM ( ALL - 9 ) col0, CAST ( NULL AS REAL )
----
-9
NULL

query II rowsort
SELECT + 49 - - 65, 34 * - 53 AS col2
----
114
-1802

onlyif mysql # DIV for integer division: 
query I rowsort label-6773
SELECT DISTINCT 27 + + 76 DIV 7 col1
----
37

skipif mysql # not compatible
query I rowsort label-6773
SELECT DISTINCT 27 + + 76 / 7 col1
----
37

query I rowsort
SELECT DISTINCT - - 0 + + 71
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6775
SELECT 65 + - 66 AS col1, 52 * 5 * + MIN( + 98 ) - - + CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6775
SELECT 65 + - 66 AS col1, 52 * 5 * + MIN ( + 98 ) - - + CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT - 98 - ( + ( 59 ) ) - - 63 * - + COUNT( * )
----
-220

skipif mysql # not compatible
query I rowsort label-6776
SELECT - 98 - ( + ( 59 ) ) - - 63 * - + COUNT ( * )
----
-220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6777
SELECT - 42 + - NULLIF ( + + 4, CAST( NULL AS SIGNED ) * + 65 * 25 * + + 3 ) * + MAX( ALL 7 ) + 1 * 60
----
-10

skipif mysql # not compatible
query I rowsort label-6777
SELECT - 42 + - NULLIF ( + + 4, CAST ( NULL AS INTEGER ) * + 65 * 25 * + + 3 ) * + MAX ( ALL 7 ) + 1 * 60
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT 55 - - COUNT( * ) - - + 79
----
135

skipif mysql # not compatible
query I rowsort label-6778
SELECT 55 - - COUNT ( * ) - - + 79
----
135

query II rowsort
SELECT NULLIF ( - 39, - 48 - - 88 ), + 10 AS col2
----
-39
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6780
SELECT ALL - 65 + CAST( SUM( - - 94 ) AS SIGNED ), - ( - CAST( NULL AS SIGNED ) ) AS col1
----
29
NULL

skipif mysql # not compatible
query II rowsort label-6780
SELECT ALL - 65 + CAST ( SUM ( - - 94 ) AS INTEGER ), - ( - CAST ( NULL AS INTEGER ) ) AS col1
----
29
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6781
SELECT 26 DIV - 95 + - - ( + + 29 ) * - 41 + + - 27 + + - 44 + 24
----
-1236

skipif mysql # not compatible
query I rowsort label-6781
SELECT 26 / - 95 + - - ( + + 29 ) * - 41 + + - 27 + + - 44 + 24
----
-1236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6782
SELECT DISTINCT MIN( + 99 ) / + NULLIF ( CASE CASE ( COUNT( * ) ) WHEN - NULLIF ( 77, + + COUNT( * ) + + 31 ) * 98 + + COUNT( ALL 48 + + 34 ) THEN NULL WHEN 16 * COUNT( * ) THEN NULL ELSE 14 * + 65 END WHEN COALESCE ( + COUNT( * ), 79, 70 + COUNT( * ) ) THEN + 68 + - ( ( + CAST( NULL AS DECIMAL ) ) + + 30 ) / 22 WHEN - 41 THEN NULL END, + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6782
SELECT DISTINCT MIN ( + 99 ) / + NULLIF ( CASE CASE ( COUNT ( * ) ) WHEN - NULLIF ( 77, + + COUNT ( * ) + + 31 ) * 98 + + COUNT ( ALL 48 + + 34 ) THEN NULL WHEN 16 * COUNT ( * ) THEN NULL ELSE 14 * + 65 END WHEN COALESCE ( + COUNT ( * ), 79, 70 + COUNT ( * ) ) THEN + 68 + - ( ( + CAST ( NULL AS REAL ) ) + + 30 ) / 22 WHEN - 41 THEN NULL END, + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 43 * 30
----
1290

query I rowsort
SELECT ALL + 86 * 66 AS col1
----
5676

onlyif mysql # aggregate syntax: 
query II rowsort label-6785
SELECT DISTINCT NULLIF ( - 78, 44 ) * - - 57 * - + 2 AS col1, + ( - 70 ) + + MAX( + + ( - 40 ) ) AS col2
----
8892
-110

skipif mysql # not compatible
query II rowsort label-6785
SELECT DISTINCT NULLIF ( - 78, 44 ) * - - 57 * - + 2 AS col1, + ( - 70 ) + + MAX ( + + ( - 40 ) ) AS col2
----
8892
-110

query II rowsort
SELECT 22 * 69 + - 9 AS col1, - 99 AS col1
----
1509
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6787
SELECT ALL + CAST( + + 74 AS SIGNED ) * - 9 col2
----
-666

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL + CAST ( + + 74 AS INTEGER ) * - 9 col2
----
-666

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT ( + - MIN( DISTINCT 6 ) ) * + 34 * - + 7 * - - 77 * 47 AS col0
----
5167932

skipif mysql # not compatible
query I rowsort label-6788
SELECT ( + - MIN ( DISTINCT 6 ) ) * + 34 * - + 7 * - - 77 * 47 AS col0
----
5167932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6789
SELECT 71 + - 12 * + + CAST( - - 83 AS SIGNED ) * - 79
----
78755

skipif mysql # not compatible
query I rowsort label-6789
SELECT 71 + - 12 * + + CAST ( - - 83 AS INTEGER ) * - 79
----
78755

query II rowsort
SELECT + 28 AS col1, - ( + 57 )
----
28
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT ALL - MIN( DISTINCT - 9 )
----
9

skipif mysql # not compatible
query I rowsort label-6791
SELECT ALL - MIN ( DISTINCT - 9 )
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6792
SELECT 58 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT 58 + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6793
SELECT 60 * + CAST( - + 49 AS SIGNED ) + - 54
----
-2994

skipif mysql # not compatible
query I rowsort label-6793
SELECT 60 * + CAST ( - + 49 AS INTEGER ) + - 54
----
-2994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6794
SELECT DISTINCT - ( - - CAST( - - COUNT( * ) AS SIGNED ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6794
SELECT DISTINCT - ( - - CAST ( - - COUNT ( * ) AS INTEGER ) ) col0
----
-1

query I rowsort
SELECT 93 + - ( + - 54 ) AS col2
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-6796
SELECT - 4 col0, 9 + COUNT( * ) * + 30
----
-4
39

skipif mysql # not compatible
query II rowsort label-6796
SELECT - 4 col0, 9 + COUNT ( * ) * + 30
----
-4
39

onlyif mysql # DIV for integer division: 
query I rowsort label-6797
SELECT 32 DIV 16 * + - 12 * - 88
----
2112

skipif mysql # not compatible
query I rowsort label-6797
SELECT 32 / 16 * + - 12 * - 88
----
2112

query I rowsort
SELECT - + 7 * - 42 + - 65 * - NULLIF ( 73, - ( 72 ) * - 71 + 83 + 45 ) * + COALESCE ( 21, 58 ) + 2 AS col0
----
99941

query I rowsort
SELECT ALL + - 69 * 6
----
-414

query I rowsort
SELECT + 33 + - + 63 AS col1
----
-30

query I rowsort
SELECT ALL - 63 + + 12
----
-51

query I rowsort
SELECT + 47 + - 83 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT ALL + + 94 + - NULLIF ( + COUNT( * ), - 70 + 70 ) + + COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL + + 94 + - NULLIF ( + COUNT ( * ), - 70 + 70 ) + + COUNT ( * ) AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6804
SELECT DISTINCT + CAST( - + 52 AS SIGNED ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT + CAST ( - + 52 AS INTEGER ) AS col2
----
-52

query I rowsort
SELECT 1 * + 77
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT - ( - - COUNT( + 92 ) ) + COUNT( * ) - 94 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-6806
SELECT - ( - - COUNT ( + 92 ) ) + COUNT ( * ) - 94 AS col2
----
-94

query I rowsort
SELECT 80 * + 46
----
3680

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6808
SELECT - 96 + - - ( - COUNT( * ) ), - 56 DIV - 57 AS col2
----
-97
0

skipif mysql # not compatible
query II rowsort label-6808
SELECT - 96 + - - ( - COUNT ( * ) ), - 56 / - 57 AS col2
----
-97
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6809
SELECT CAST( MIN( + - 6 ) AS SIGNED ), - 31 AS col0
----
-6
-31

skipif mysql # not compatible
query II rowsort label-6809
SELECT CAST ( MIN ( + - 6 ) AS INTEGER ), - 31 AS col0
----
-6
-31

query I rowsort
SELECT DISTINCT 84 * + 66 AS col0
----
5544

onlyif mysql # aggregate syntax: 
query II rowsort label-6811
SELECT + 63 * - COUNT( * ) + + + 79 AS col0, - 59 + + 85 * + COUNT( * )
----
16
26

skipif mysql # not compatible
query II rowsort label-6811
SELECT + 63 * - COUNT ( * ) + + + 79 AS col0, - 59 + + 85 * + COUNT ( * )
----
16
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6812
SELECT ALL CAST( NULL AS SIGNED ) * ( + ( - 96 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL CAST ( NULL AS INTEGER ) * ( + ( - 96 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6813
SELECT - MAX( DISTINCT - 25 ) + - 95, 88 + - + 2 * - - 62 AS col0
----
-70
-36

skipif mysql # not compatible
query II rowsort label-6813
SELECT - MAX ( DISTINCT - 25 ) + - 95, 88 + - + 2 * - - 62 AS col0
----
-70
-36

query I rowsort
SELECT DISTINCT 41 * 2 * - + 51
----
-4182

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT ALL - CASE 90 WHEN - 15 THEN - + MAX( DISTINCT 85 ) WHEN - - COALESCE ( + 90, 41 ) THEN NULL END - + 82 + - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL - CASE 90 WHEN - 15 THEN - + MAX ( DISTINCT 85 ) WHEN - - COALESCE ( + 90, 41 ) THEN NULL END - + 82 + - 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT CASE 49 WHEN - ( - COUNT( * ) ) THEN NULL WHEN - 5 * 50 THEN 32 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6816
SELECT CASE 49 WHEN - ( - COUNT ( * ) ) THEN NULL WHEN - 5 * 50 THEN 32 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 79 * - 26 + + 43 + 24 + 70
----
-1917

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT MAX( ALL - + 34 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-6818
SELECT MAX ( ALL - + 34 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT MAX( DISTINCT COALESCE ( + - 10, + + 82, 99 ) )
----
-10

skipif mysql # not compatible
query I rowsort label-6819
SELECT MAX ( DISTINCT COALESCE ( + - 10, + + 82, 99 ) )
----
-10

query I rowsort
SELECT + 79 * + 20 * 35 - + - 16
----
55316

query I rowsort
SELECT ALL + 64 * 98 AS col2
----
6272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6822
SELECT + NULLIF ( 80, + CAST( ( + 55 ) AS SIGNED ) - - 31 ) * + 99 AS col0
----
7920

skipif mysql # not compatible
query I rowsort label-6822
SELECT + NULLIF ( 80, + CAST ( ( + 55 ) AS INTEGER ) - - 31 ) * + 99 AS col0
----
7920

query II rowsort
SELECT + 37 AS col0, + 63 col0
----
37
63

query I rowsort
SELECT ALL - 92 * - 26 * 97
----
232024

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT 55 * - + CASE COALESCE ( - ( + COUNT( * ) ), - - 25, + 88 ) WHEN + 74 THEN - + 46 END + - - 2 / + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-6825
SELECT 55 * - + CASE COALESCE ( - ( + COUNT ( * ) ), - - 25, + 88 ) WHEN + 74 THEN - + 46 END + - - 2 / + 23
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6826
SELECT - CAST( - 45 AS SIGNED ) DIV + + 56
----
0

skipif mysql # not compatible
query I rowsort label-6826
SELECT - CAST ( - 45 AS INTEGER ) / + + 56
----
0

query II rowsort
SELECT ALL 94 * - 40 AS col1, - 41 * + 66 AS col1
----
-3760
-2706

query I rowsort
SELECT + 66 * + + 61 + + 83
----
4109

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT - 81 + - COUNT( * ) + ( + 93 )
----
11

skipif mysql # not compatible
query I rowsort label-6829
SELECT - 81 + - COUNT ( * ) + ( + 93 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6830
SELECT + COALESCE ( + - COUNT( * ), + - 50, - 13 * + + CAST( NULL AS SIGNED ) + + 5 ), 16 AS col0
----
-1
16

skipif mysql # not compatible
query II rowsort label-6830
SELECT + COALESCE ( + - COUNT ( * ), + - 50, - 13 * + + CAST ( NULL AS INTEGER ) + + 5 ), 16 AS col0
----
-1
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT DISTINCT + 83 + + 16 + + - 8 - + 83 + + 98 * - COUNT( ALL + 12 ) - - 80 * - - 81 * + COALESCE ( - 62, - 46 * - 91 ) + 95 * 18
----
-400140

skipif mysql # not compatible
query I rowsort label-6831
SELECT DISTINCT + 83 + + 16 + + - 8 - + 83 + + 98 * - COUNT ( ALL + 12 ) - - 80 * - - 81 * + COALESCE ( - 62, - 46 * - 91 ) + 95 * 18
----
-400140

query II rowsort
SELECT ALL - ( + ( 44 ) ) * - 27 AS col1, 44 col0
----
1188
44

query I rowsort
SELECT DISTINCT + 14 + + 57 - + + 33
----
38

query II rowsort
SELECT ALL 95 col2, 75
----
95
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT DISTINCT + ( + COUNT( * ) ) + 27 + + 43 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-6835
SELECT DISTINCT + ( + COUNT ( * ) ) + 27 + + 43 AS col1
----
71

query I rowsort
SELECT ALL + + 58 + + + 64 col2
----
122

query I rowsort
SELECT - + 95 * - 97 col1
----
9215

onlyif mysql # DIV for integer division: 
query I rowsort label-6838
SELECT - - 26 + + - 53 DIV - 60
----
26

skipif mysql # not compatible
query I rowsort label-6838
SELECT - - 26 + + - 53 / - 60
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6839
SELECT - + CAST( NULL AS SIGNED ) / - ( + - 99 ) + - ( - 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6839
SELECT - + CAST ( NULL AS INTEGER ) / - ( + - 99 ) + - ( - 2 )
----
NULL

query I rowsort
SELECT - - 34 * - 16 AS col2
----
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT NULLIF ( 76, - 24 + + ( - + 21 ) + ( + + SUM( CASE 96 WHEN + 82 THEN + 54 ELSE 28 - 93 END ) ) )
----
76

skipif mysql # not compatible
query I rowsort label-6841
SELECT NULLIF ( 76, - 24 + + ( - + 21 ) + ( + + SUM ( CASE 96 WHEN + 82 THEN + 54 ELSE 28 - 93 END ) ) )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT - 33 - - 3 + + 10 + + 93 * COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-6842
SELECT - 33 - - 3 + + 10 + + 93 * COUNT ( * )
----
73

query I rowsort
SELECT DISTINCT + + 0 * 19 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6844
SELECT - 47 - - + 94 DIV - + 2 * - COUNT( * ) + 29
----
29

skipif mysql # not compatible
query I rowsort label-6844
SELECT - 47 - - + 94 / - + 2 * - COUNT ( * ) + 29
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-6845
SELECT - 56 * + COUNT( * ) AS col2, 8
----
-56
8

skipif mysql # not compatible
query II rowsort label-6845
SELECT - 56 * + COUNT ( * ) AS col2, 8
----
-56
8

query I rowsort
SELECT - 60 + - + 27
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6847
SELECT DISTINCT + + 24 * + CAST( - 70 AS SIGNED ) AS col1
----
-1680

skipif mysql # not compatible
query I rowsort label-6847
SELECT DISTINCT + + 24 * + CAST ( - 70 AS INTEGER ) AS col1
----
-1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6848
SELECT + - CAST( NULL AS SIGNED ) / + - NULLIF ( 16, ( - COUNT( * ) ) ) / + - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6848
SELECT + - CAST ( NULL AS INTEGER ) / + - NULLIF ( 16, ( - COUNT ( * ) ) ) / + - 41
----
NULL

query I rowsort
SELECT ALL ( + 62 ) col0
----
62

query I rowsort
SELECT - 13 * + - 45
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT + SUM( DISTINCT + - 44 ) - + + 99 * - ( + + 52 ) AS col1
----
5104

skipif mysql # not compatible
query I rowsort label-6851
SELECT + SUM ( DISTINCT + - 44 ) - + + 99 * - ( + + 52 ) AS col1
----
5104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6852
SELECT + COUNT( * ) DIV + 81 + - + 83 + + 60 DIV - 57 * + COUNT( * ) + + - 16 * + 23 + 88 + 44
----
-320

skipif mysql # not compatible
query I rowsort label-6852
SELECT + COUNT ( * ) / + 81 + - + 83 + + 60 / - 57 * + COUNT ( * ) + + - 16 * + 23 + 88 + 44
----
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL 54 * - + COUNT( DISTINCT - - 30 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL 54 * - + COUNT ( DISTINCT - - 30 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT + 18 + + - COUNT( * ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-6854
SELECT + 18 + + - COUNT ( * ) AS col2
----
17

query II rowsort
SELECT ALL + 5 * 13, - 9 AS col1
----
65
-9

query I rowsort
SELECT + ( - + 93 ) * - 10 * + - 74
----
-68820

query II rowsort
SELECT + ( - 40 ), - 76 AS col0
----
-40
-76

query I rowsort
SELECT 96 * - - 42 + 68 AS col1
----
4100

query II rowsort
SELECT + 62 * - 93 + - + 97, 32 AS col2
----
-5863
32

query I rowsort
SELECT + 82 * + 58
----
4756

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT ALL NULLIF ( - 62, + ( MIN( DISTINCT - + NULLIF ( 72, CASE 69 WHEN + - 63 * - 8 + - - 77 THEN NULL ELSE - 3 * + 13 END ) ) ) ) * + 0 + 61 * - 44 AS col2
----
-2684

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL NULLIF ( - 62, + ( MIN ( DISTINCT - + NULLIF ( 72, CASE 69 WHEN + - 63 * - 8 + - - 77 THEN NULL ELSE - 3 * + 13 END ) ) ) ) * + 0 + 61 * - 44 AS col2
----
-2684

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT DISTINCT 74 * - ( - + COUNT( * ) ) * 80 + + 63 + 31
----
6014

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT 74 * - ( - + COUNT ( * ) ) * 80 + + 63 + 31
----
6014

query I rowsort
SELECT + ( - ( - 78 ) ) AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6864
SELECT CASE - COUNT( * ) WHEN - 37 THEN + - 70 * - + CAST( - - 72 AS SIGNED ) - + 66 / 94 * - 8 ELSE NULL END * + 42 + - 65 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6864
SELECT CASE - COUNT ( * ) WHEN - 37 THEN + - 70 * - + CAST ( - - 72 AS INTEGER ) - + 66 / 94 * - 8 ELSE NULL END * + 42 + - 65 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT - - 69 * - - 9 + MIN( - 25 )
----
596

skipif mysql # not compatible
query I rowsort label-6865
SELECT - - 69 * - - 9 + MIN ( - 25 )
----
596

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT ALL - - 67 * 37 + + 31 + - + 67 + COUNT( * ) col1
----
2444

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL - - 67 * 37 + + 31 + - + 67 + COUNT ( * ) col1
----
2444

query I rowsort
SELECT + - 30 + - 58
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6868
SELECT + - 24 - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6868
SELECT + - 24 - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + - ( - - ( 30 ) ) AS col0, - 65
----
-30
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT - + 49 + - - 51 + - - 96 + - CASE 32 WHEN ( AVG ( + 34 ) ) + + COUNT( - - 51 ) * 49 * - CASE 92 WHEN + MAX( ALL 11 ) THEN 10 WHEN 73 THEN + 94 END * + 69 THEN 61 + 93 * - ( - 25 ) WHEN - NULLIF ( COUNT( * ), 76 ) THEN ( - 32 ) + 73 WHEN + 88 THEN 50 * + ( + 91 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6870
SELECT - + 49 + - - 51 + - - 96 + - CASE 32 WHEN ( AVG ( + 34 ) ) + + COUNT ( - - 51 ) * 49 * - CASE 92 WHEN + MAX ( ALL 11 ) THEN 10 WHEN 73 THEN + 94 END * + 69 THEN 61 + 93 * - ( - 25 ) WHEN - NULLIF ( COUNT ( * ), 76 ) THEN ( - 32 ) + 73 WHEN + 88 THEN 50 * + ( + 91 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT - - MAX( DISTINCT - 44 ) + 34
----
-10

skipif mysql # not compatible
query I rowsort label-6871
SELECT - - MAX ( DISTINCT - 44 ) + 34
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6872
SELECT ALL + 19 * 41 - COUNT( * ) col0, - CAST( NULL AS SIGNED ) + + 47 AS col2
----
778
NULL

skipif mysql # not compatible
query II rowsort label-6872
SELECT ALL + 19 * 41 - COUNT ( * ) col0, - CAST ( NULL AS INTEGER ) + + 47 AS col2
----
778
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6873
SELECT + COUNT( * ) DIV - 36
----
0

skipif mysql # not compatible
query I rowsort label-6873
SELECT + COUNT ( * ) / - 36
----
0

query I rowsort
SELECT - 47 * + 39 + + 56
----
-1777

query I rowsort
SELECT DISTINCT - - 94 * 70 - + 87 + + - 76 AS col1
----
6417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6876
SELECT ALL - 90 * - CAST( NULL AS SIGNED ) - + + 58 + + - CASE + 42 WHEN 65 + + NULLIF ( + + 19, - 17 ) + 84 - 39 THEN + + COALESCE ( 77, + 39 / + MAX( - 87 ), - 55 + NULLIF ( - 50, - 42 ) * NULLIF ( - COUNT( * ) + 20, + 89 ) ) WHEN SUM( ALL - ( 40 ) ) - 44 THEN - MAX( ALL 30 ) * + ( + MAX( - 41 ) ) + + 49 * + MIN( + 49 ) END * + NULLIF ( 87 * 43 + - 39, + MIN( + 91 ) / 23 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL - 90 * - CAST ( NULL AS INTEGER ) - + + 58 + + - CASE + 42 WHEN 65 + + NULLIF ( + + 19, - 17 ) + 84 - 39 THEN + + COALESCE ( 77, + 39 / + MAX ( - 87 ), - 55 + NULLIF ( - 50, - 42 ) * NULLIF ( - COUNT ( * ) + 20, + 89 ) ) WHEN SUM ( ALL - ( 40 ) ) - 44 THEN - MAX ( ALL 30 ) * + ( + MAX ( - 41 ) ) + + 49 * + MIN ( + 49 ) END * + NULLIF ( 87 * 43 + - 39, + MIN ( + 91 ) / 23 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6877
SELECT - 45 + - SUM( DISTINCT - 29 ) col0, - 72 AS col0
----
-16
-72

skipif mysql # not compatible
query II rowsort label-6877
SELECT - 45 + - SUM ( DISTINCT - 29 ) col0, - 72 AS col0
----
-16
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT ALL + ( + ( + COUNT( * ) ) ) - + CASE - + 91 WHEN + 82 + - 31 THEN NULL WHEN 79 * ( - + 62 ) * 74 + 66 + 23 THEN 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL + ( + ( + COUNT ( * ) ) ) - + CASE - + 91 WHEN + 82 + - 31 THEN NULL WHEN 79 * ( - + 62 ) * 74 + 66 + 23 THEN 83 END
----
NULL

query I rowsort
SELECT - + 22 * - 32 * + ( 21 )
----
14784

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT - - NULLIF ( - - 59, + 42 * 49 ) + COUNT( DISTINCT + - 85 ) col0
----
60

skipif mysql # not compatible
query I rowsort label-6880
SELECT - - NULLIF ( - - 59, + 42 * 49 ) + COUNT ( DISTINCT + - 85 ) col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT - + 73 + + MIN( DISTINCT 87 ) + - 62
----
-48

skipif mysql # not compatible
query I rowsort label-6881
SELECT - + 73 + + MIN ( DISTINCT 87 ) + - 62
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6882
SELECT - CAST( NULL AS SIGNED ) * + 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6882
SELECT - CAST ( NULL AS INTEGER ) * + 65 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT - SUM( ALL + ( - 74 ) ) + 19
----
93

skipif mysql # not compatible
query I rowsort label-6883
SELECT - SUM ( ALL + ( - 74 ) ) + 19
----
93

query I rowsort
SELECT 81 + - 31 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT ALL - 64 * + COUNT( + 13 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL - 64 * + COUNT ( + 13 ) AS col1
----
-64

query I rowsort
SELECT 58 + - + 86 AS col0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-6887
SELECT DISTINCT - ( - - ( - 53 ) ) * 93 DIV - 58 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-6887
SELECT DISTINCT - ( - - ( - 53 ) ) * 93 / - 58 AS col2
----
-84

query I rowsort
SELECT 68 + + 57 + + + 31 + + 42 + - 1 * + + ( - - 82 ) AS col0
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6889
SELECT DISTINCT + 19 * CAST( NULL AS SIGNED ) * 13 AS col2, 6
----
NULL
6

skipif mysql # not compatible
query II rowsort label-6889
SELECT DISTINCT + 19 * CAST ( NULL AS INTEGER ) * 13 AS col2, 6
----
NULL
6

query I rowsort
SELECT 48 * 24
----
1152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6891
SELECT + ( + 16 ) * 64 DIV + 84 - - NULLIF ( MAX( 3 ), - ( - + 32 ) )
----
15

skipif mysql # not compatible
query I rowsort label-6891
SELECT + ( + 16 ) * 64 / + 84 - - NULLIF ( MAX ( 3 ), - ( - + 32 ) )
----
15

query II rowsort
SELECT 47 col1, 7 + - 64 - - ( - 0 ) AS col1
----
47
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-6893
SELECT + 20 DIV + 45 + - 39
----
-39

skipif mysql # not compatible
query I rowsort label-6893
SELECT + 20 / + 45 + - 39
----
-39

onlyif mysql # aggregate syntax: 
query III rowsort label-6894
SELECT DISTINCT + 92 + - 80 + COUNT( * ) * + 77 AS col1, 41 * + 22 AS col0, + - COALESCE ( - 74, + + COUNT( * ) ) * + 47 + + 8
----
89
902
3486

skipif mysql # not compatible
query III rowsort label-6894
SELECT DISTINCT + 92 + - 80 + COUNT ( * ) * + 77 AS col1, 41 * + 22 AS col0, + - COALESCE ( - 74, + + COUNT ( * ) ) * + 47 + + 8
----
89
902
3486

query I rowsort
SELECT 3 + 97 * + - 62 AS col0
----
-6011

query I rowsort
SELECT ALL + 74 + + 16 AS col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6897
SELECT DISTINCT 5 DIV - 6
----
0

skipif mysql # not compatible
query I rowsort label-6897
SELECT DISTINCT 5 / - 6
----
0

query I rowsort
SELECT DISTINCT - 47 + - 29
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT DISTINCT + 92 + + 81 + + COUNT( ALL + 24 ) + ( 29 ) - - 10 * + NULLIF ( + 89, - 11 ) AS col0
----
1093

skipif mysql # not compatible
query I rowsort label-6899
SELECT DISTINCT + 92 + + 81 + + COUNT ( ALL + 24 ) + ( 29 ) - - 10 * + NULLIF ( + 89, - 11 ) AS col0
----
1093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6900
SELECT ALL - CAST( NULL AS SIGNED ), + MIN( CAST( NULL AS DECIMAL ) ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6900
SELECT ALL - CAST ( NULL AS INTEGER ), + MIN ( CAST ( NULL AS REAL ) ) AS col0
----
NULL
NULL

query I rowsort
SELECT ALL 34 + 88 AS col1
----
122

query I rowsort
SELECT DISTINCT - - 50 * + - 0 AS col1
----
0

query II rowsort
SELECT + 90 AS col2, - 51 * - + COALESCE ( + 30, - ( - 14 ) ) AS col1
----
90
1530

query I rowsort
SELECT CASE + + 16 WHEN 67 * - 92 * + 24 THEN + + 40 WHEN - 18 THEN - 86 + + 4 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6905
SELECT + 41, 99 * COUNT( * ) AS col1
----
41
99

skipif mysql # not compatible
query II rowsort label-6905
SELECT + 41, 99 * COUNT ( * ) AS col1
----
41
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT - COALESCE ( - - COUNT( * ), - 47 * 72 + + + 81 * 20 + + 73 ) * - COALESCE ( - + 29, + 66 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-6906
SELECT - COALESCE ( - - COUNT ( * ), - 47 * 72 + + + 81 * 20 + + 73 ) * - COALESCE ( - + 29, + 66 ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT ALL 5 - - + 84 * SUM( DISTINCT 22 ) * 82 + - 27 + CASE + 81 WHEN + + 87 THEN + 1 WHEN - - 16 THEN NULL END * 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL 5 - - + 84 * SUM ( DISTINCT 22 ) * 82 + - 27 + CASE + 81 WHEN + + 87 THEN + 1 WHEN - - 16 THEN NULL END * 21 AS col1
----
NULL

query I rowsort
SELECT - 93 * 79 col0
----
-7347

query I rowsort
SELECT DISTINCT - - ( 4 ) AS col2
----
4

query I rowsort
SELECT ALL - ( - - 33 ) AS col2
----
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-6911
SELECT DISTINCT 50 DIV - - 68 * + 83 * 19 col0, 56 col2
----
0
56

skipif mysql # not compatible
query II rowsort label-6911
SELECT DISTINCT 50 / - - 68 * + 83 * 19 col0, 56 col2
----
0
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT ALL + COUNT( ALL + 15 ) * - - 83
----
83

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL + COUNT ( ALL + 15 ) * - - 83
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6913
SELECT 86 DIV 64 * - - COUNT( * ) + - 7, 9 AS col1
----
-6
9

skipif mysql # not compatible
query II rowsort label-6913
SELECT 86 / 64 * - - COUNT ( * ) + - 7, 9 AS col1
----
-6
9

query I rowsort
SELECT - + 64 * - NULLIF ( - 78, - 50 + - 37 ) + 15 * + + 58
----
-4122

query I rowsort
SELECT 35 + - 59
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-6916
SELECT ALL 35 * - + NULLIF ( - - SUM( ALL + 43 ), + ( - 94 ) ), - 90 * - + 75 AS col0
----
-1505
6750

skipif mysql # not compatible
query II rowsort label-6916
SELECT ALL 35 * - + NULLIF ( - - SUM ( ALL + 43 ), + ( - 94 ) ), - 90 * - + 75 AS col0
----
-1505
6750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6917
SELECT 65 DIV - 46 - + ( SUM( ALL - 73 ) ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-6917
SELECT 65 / - 46 - + ( SUM ( ALL - 73 ) ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT - COUNT( * ) + - 76 + - + 17 + + + 19 col0
----
-75

skipif mysql # not compatible
query I rowsort label-6918
SELECT - COUNT ( * ) + - 76 + - + 17 + + + 19 col0
----
-75

query I rowsort
SELECT DISTINCT 78 * + + 56
----
4368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6920
SELECT DISTINCT 90 * COUNT( * ) DIV 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6920
SELECT DISTINCT 90 * COUNT ( * ) / 48 AS col1
----
1

query I rowsort
SELECT ALL - 77 + - COALESCE ( - 88, 49 + - ( - + 48 ) * 10 ) * - ( + 14 ) + - ( + + 76 ) AS col1
----
-1385

query I rowsort
SELECT 61 + + - ( + 69 )
----
-8

query I rowsort
SELECT ALL 25 * - 66 AS col0
----
-1650

query I rowsort
SELECT 68 * + 82
----
5576

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT ALL 18 + - + ( + COUNT( * ) )
----
17

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL 18 + - + ( + COUNT ( * ) )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6926
SELECT ALL 77 + + 38 DIV 73 - - COUNT( * ) AS col2, 37 + + 85 AS col1
----
78
122

skipif mysql # not compatible
query II rowsort label-6926
SELECT ALL 77 + + 38 / 73 - - COUNT ( * ) AS col2, 37 + + 85 AS col1
----
78
122

query I rowsort
SELECT 58 * 62 AS col1
----
3596

query I rowsort
SELECT 93 * + 52
----
4836

query I rowsort
SELECT DISTINCT - 60 + - 11 * - 43
----
413

query I rowsort
SELECT 6 + + 98 AS col0
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6931
SELECT DISTINCT 29 * + - ( - 86 ) * SUM( - + 49 ) * + ( 46 ) + + 88 + - 70 + 31 col2, 75 * + + 25 + - + CASE - NULLIF ( + CASE - 3 WHEN - 54 THEN NULL ELSE + COUNT( * ) * - 7 END, 51 ) WHEN + 45 * 41 THEN 87 WHEN CASE COALESCE ( - 53, CAST( - 38 AS SIGNED ) * 90 + NULLIF ( ( 4 ), COALESCE ( - 80, - 28 ) ) ) WHEN + 32 * COALESCE ( - 62 / ( + 87 ), 90 * 53 + ( 8 + COUNT( * ) ) ) - 31 * NULLIF ( ( SUM( 33 ) ), ( 83 ) + 66 ) THEN - 97 * - 66 WHEN 23 + - 21 THEN NULL END THEN NULL ELSE 5 END + - 47 * 31
----
-5621427
413

skipif mysql # not compatible
query II rowsort label-6931
SELECT DISTINCT 29 * + - ( - 86 ) * SUM ( - + 49 ) * + ( 46 ) + + 88 + - 70 + 31 col2, 75 * + + 25 + - + CASE - NULLIF ( + CASE - 3 WHEN - 54 THEN NULL ELSE + COUNT ( * ) * - 7 END, 51 ) WHEN + 45 * 41 THEN 87 WHEN CASE COALESCE ( - 53, CAST ( - 38 AS INTEGER ) * 90 + NULLIF ( ( 4 ), COALESCE ( - 80, - 28 ) ) ) WHEN + 32 * COALESCE ( - 62 / ( + 87 ), 90 * 53 + ( 8 + COUNT ( * ) ) ) - 31 * NULLIF ( ( SUM ( 33 ) ), ( 83 ) + 66 ) THEN - 97 * - 66 WHEN 23 + - 21 THEN NULL END THEN NULL ELSE 5 END + - 47 * 31
----
-5621427
413

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT DISTINCT - COALESCE ( - MAX( ALL 79 ), + 68 * + 42 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT - COALESCE ( - MAX ( ALL 79 ), + 68 * + 42 ) AS col0
----
79

query I rowsort
SELECT 34 * 0 + + + 18
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6934
SELECT 18 * 82, COUNT( * ) * - 59 * + NULLIF ( + - 53, + - CAST( NULL AS SIGNED ) ) - + 98 AS col0
----
1476
3029

skipif mysql # not compatible
query II rowsort label-6934
SELECT 18 * 82, COUNT ( * ) * - 59 * + NULLIF ( + - 53, + - CAST ( NULL AS INTEGER ) ) - + 98 AS col0
----
1476
3029

onlyif mysql # aggregate syntax: 
query II rowsort label-6935
SELECT 21 * + 68, 14 + 59 - - 2 * + 55 + + + 63 - 46 + 99 + - NULLIF ( + 88, + - 35 + + + 75 / SUM( ALL 2 ) * + 16 ) * + ( COUNT( * ) ) col1
----
1428
211

skipif mysql # not compatible
query II rowsort label-6935
SELECT 21 * + 68, 14 + 59 - - 2 * + 55 + + + 63 - 46 + 99 + - NULLIF ( + 88, + - 35 + + + 75 / SUM ( ALL 2 ) * + 16 ) * + ( COUNT ( * ) ) col1
----
1428
211

query I rowsort
SELECT + 52 * 22 + - - 44 AS col0
----
1188

query I rowsort
SELECT + ( + 64 ) + 65 + - 87
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT COALESCE ( - 63, + - 94 * - + MAX( - 79 ), - 65 ) * ( + 23 ) + + 79 + - ( - 27 ) AS col0
----
-1343

skipif mysql # not compatible
query I rowsort label-6938
SELECT COALESCE ( - 63, + - 94 * - + MAX ( - 79 ), - 65 ) * ( + 23 ) + + 79 + - ( - 27 ) AS col0
----
-1343

query I rowsort
SELECT 31 + - + 51 * 88
----
-4457

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT ALL + COUNT( * ) - + COALESCE ( + + 12, + + NULLIF ( + COALESCE ( - + 83, - - 0 * - + 73, + 8 * - + 76 ), COUNT( - 21 ) * 44 ) ) * 46 AS col1
----
-551

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL + COUNT ( * ) - + COALESCE ( + + 12, + + NULLIF ( + COALESCE ( - + 83, - - 0 * - + 73, + 8 * - + 76 ), COUNT ( - 21 ) * 44 ) ) * 46 AS col1
----
-551

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT ALL - SUM( DISTINCT 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL - SUM ( DISTINCT 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT + 64 * + MAX( 8 ) + SUM( + + 13 ) col2
----
525

skipif mysql # not compatible
query I rowsort label-6942
SELECT + 64 * + MAX ( 8 ) + SUM ( + + 13 ) col2
----
525

query I rowsort
SELECT ALL 39 * - 99
----
-3861

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6944
SELECT - 76 * 30 * CAST( NULL AS SIGNED ) + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT - 76 * 30 * CAST ( NULL AS INTEGER ) + 83
----
NULL

query I rowsort
SELECT 70 * 99 AS col0
----
6930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6946
SELECT 1 + + + CAST( 38 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-6946
SELECT 1 + + + CAST ( 38 AS INTEGER )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6947
SELECT - COUNT( * ) + - CASE 90 WHEN - 69 * - AVG ( + - 18 ) THEN 57 END AS col0, + 72 AS col1
----
NULL
72

skipif mysql # not compatible
query II rowsort label-6947
SELECT - COUNT ( * ) + - CASE 90 WHEN - 69 * - AVG ( + - 18 ) THEN 57 END AS col0, + 72 AS col1
----
NULL
72

query I rowsort
SELECT - - ( - 27 )
----
-27

query I rowsort
SELECT - 93 * + - 63 + + 23 + + 59 + - + 34 + 87
----
5994

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT ALL + COUNT( ALL + 23 ) + + 45 - + 82 - - 42 * + 10 * + + 25 * + + 66 AS col2
----
692964

skipif mysql # not compatible
query I rowsort label-6950
SELECT ALL + COUNT ( ALL + 23 ) + + 45 - + 82 - - 42 * + 10 * + + 25 * + + 66 AS col2
----
692964

query I rowsort
SELECT ALL COALESCE ( 33, + 88, + - 68 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT + COUNT( * ) + MIN( 32 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-6952
SELECT + COUNT ( * ) + MIN ( 32 ) AS col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-6953
SELECT ALL 31 DIV - 43 * - 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL 31 / - 43 * - 35 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT - COALESCE ( - ( 74 ), COUNT( * ) )
----
74

skipif mysql # not compatible
query I rowsort label-6954
SELECT - COALESCE ( - ( 74 ), COUNT ( * ) )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT ALL 77 + - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL 77 + - COUNT ( * )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6956
SELECT + ( - 44 ) + - CAST( + MIN( + 97 ) AS SIGNED )
----
-141

skipif mysql # not compatible
query I rowsort label-6956
SELECT + ( - 44 ) + - CAST ( + MIN ( + 97 ) AS INTEGER )
----
-141

onlyif mysql # aggregate syntax: 
query II rowsort label-6957
SELECT 55 AS col0, COUNT( - - 46 )
----
55
1

skipif mysql # not compatible
query II rowsort label-6957
SELECT 55 AS col0, COUNT ( - - 46 )
----
55
1

query I rowsort
SELECT + 59 * - 23 AS col2
----
-1357

query I rowsort
SELECT + 65 + 3
----
68

query II rowsort
SELECT ALL 21, 69 * 90 + + + 6 AS col1
----
21
6216

query I rowsort
SELECT DISTINCT 30 * - 59
----
-1770

query I rowsort
SELECT - 41 + + + COALESCE ( 99, - - 52, 36 + - + 16 * - - 25 * - 23 ) - 16
----
42

query I rowsort
SELECT + ( 4 ) * + 42 AS col2
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6964
SELECT + 29 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6964
SELECT + 29 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 35 * + 1 AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6966
SELECT + COUNT( * ) + + 46 + - - CAST( NULL AS SIGNED ) AS col2, 57 + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6966
SELECT + COUNT ( * ) + + 46 + - - CAST ( NULL AS INTEGER ) AS col2, 57 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6967
SELECT - CASE COUNT( * ) WHEN - CAST( NULL AS SIGNED ) * - - 1 + + + COALESCE ( 59, 21, 57 + + 65 * - - COALESCE ( + - 3, 29, - - AVG ( - + 97 ), + 1 + - 55 ) ) THEN NULL WHEN - 1 THEN NULL ELSE - 40 * COUNT( * ) END AS col1
----
40

skipif mysql # not compatible
query I rowsort label-6967
SELECT - CASE COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) * - - 1 + + + COALESCE ( 59, 21, 57 + + 65 * - - COALESCE ( + - 3, 29, - - AVG ( - + 97 ), + 1 + - 55 ) ) THEN NULL WHEN - 1 THEN NULL ELSE - 40 * COUNT ( * ) END AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT ALL SUM( + ( - + 36 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL SUM ( + ( - + 36 ) )
----
-36

query I rowsort
SELECT ( - - NULLIF ( - 14, 78 / - + 35 / 21 ) )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT - 52 * - CASE - - 45 WHEN CASE + 54 WHEN COUNT( * ) / - 57 * 93 - + 65 * 33 * 83 THEN - - COUNT( * ) ELSE 58 + 39 END + + 9 THEN NULLIF ( COUNT( * ), + 13 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6970
SELECT - 52 * - CASE - - 45 WHEN CASE + 54 WHEN COUNT ( * ) / - 57 * 93 - + 65 * 33 * 83 THEN - - COUNT ( * ) ELSE 58 + 39 END + + 9 THEN NULLIF ( COUNT ( * ), + 13 ) END AS col1
----
NULL

query I rowsort
SELECT - - 62 + + 31 AS col2
----
93

query I rowsort
SELECT DISTINCT + + 57 * - 57
----
-3249

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6973
SELECT - - 18 DIV - 87 DIV COUNT( DISTINCT 47 )
----
0

skipif mysql # not compatible
query I rowsort label-6973
SELECT - - 18 / - 87 / COUNT ( DISTINCT 47 )
----
0

query I rowsort
SELECT DISTINCT + + 49 col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6975
SELECT ALL + COUNT( * ) AS col0, + COUNT( * ) * - 27 AS col2, - 48 DIV + + 49 col1
----
1
-27
0

skipif mysql # not compatible
query III rowsort label-6975
SELECT ALL + COUNT ( * ) AS col0, + COUNT ( * ) * - 27 AS col2, - 48 / + + 49 col1
----
1
-27
0

query I rowsort
SELECT + + 41 * + 84 + 76 AS col0
----
3520

query II rowsort
SELECT + 71 AS col0, - 42 col0
----
71
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT CASE - 42 WHEN + 70 * + 31 * + 15 * 4 THEN NULL ELSE - COUNT( * ) * - NULLIF ( - 56, + 81 ) + 90 END
----
34

skipif mysql # not compatible
query I rowsort label-6978
SELECT CASE - 42 WHEN + 70 * + 31 * + 15 * 4 THEN NULL ELSE - COUNT ( * ) * - NULLIF ( - 56, + 81 ) + 90 END
----
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6979
SELECT ALL + + MAX( DISTINCT - + CAST( NULL AS DECIMAL ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL + + MAX ( DISTINCT - + CAST ( NULL AS REAL ) ) col1
----
NULL

query I rowsort
SELECT ALL 57 * + + 22
----
1254

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT ALL 34 * - + 80 * + COUNT( * ) + - - ( + - 76 )
----
-2796

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL 34 * - + 80 * + COUNT ( * ) + - - ( + - 76 )
----
-2796

onlyif mysql # aggregate syntax: 
query II rowsort label-6982
SELECT - COUNT( * ) AS col0, 32 * + - 90
----
-1
-2880

skipif mysql # not compatible
query II rowsort label-6982
SELECT - COUNT ( * ) AS col0, 32 * + - 90
----
-1
-2880

query II rowsort
SELECT - 11 AS col2, + 36 AS col1
----
-11
36

query I rowsort
SELECT - 36 + 85 * - 0
----
-36

query I rowsort
SELECT - ( 43 ) + 44 + + 87 + + 29 + 47 AS col2
----
164

query I rowsort
SELECT ALL + 42 * + 54
----
2268

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6987
SELECT DISTINCT CAST( - - 28 AS SIGNED ) AS col0, NULLIF ( 95, 19 * 97 + + 33 + 69 * - - 57 + + 27 )
----
28
95

skipif mysql # not compatible
query II rowsort label-6987
SELECT DISTINCT CAST ( - - 28 AS INTEGER ) AS col0, NULLIF ( 95, 19 * 97 + + 33 + 69 * - - 57 + + 27 )
----
28
95

query I rowsort
SELECT + 82 + 92 + - 83 AS col2
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6989
SELECT DISTINCT 36, COUNT( * ) AS col2
----
36
1

skipif mysql # not compatible
query II rowsort label-6989
SELECT DISTINCT 36, COUNT ( * ) AS col2
----
36
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6990
SELECT - COALESCE ( - NULLIF ( - - CAST( NULL AS SIGNED ), ( + - 69 ) + + 86 * - 53 ), + + 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-6990
SELECT - COALESCE ( - NULLIF ( - - CAST ( NULL AS INTEGER ), ( + - 69 ) + + 86 * - 53 ), + + 35 ) AS col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6991
SELECT - CAST( NULL AS SIGNED ) AS col2, 59 * - 90 * 9 DIV - - 45
----
NULL
-1062

skipif mysql # not compatible
query II rowsort label-6991
SELECT - CAST ( NULL AS INTEGER ) AS col2, 59 * - 90 * 9 / - - 45
----
NULL
-1062

query I rowsort
SELECT + 64 * + 64
----
4096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6993
SELECT ALL 75 * - CAST( NULL AS SIGNED ) * + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL 75 * - CAST ( NULL AS INTEGER ) * + 25
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6994
SELECT ALL 29 * 37 AS col2, + NULLIF ( - MAX( DISTINCT + - 64 ), - 16 ) * - CAST( NULL AS SIGNED ) AS col2
----
1073
NULL

skipif mysql # not compatible
query II rowsort label-6994
SELECT ALL 29 * 37 AS col2, + NULLIF ( - MAX ( DISTINCT + - 64 ), - 16 ) * - CAST ( NULL AS INTEGER ) AS col2
----
1073
NULL

query I rowsort
SELECT DISTINCT + 83 * - 69 AS col2
----
-5727

query II rowsort
SELECT ALL + + 38, 49 AS col1
----
38
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6997
SELECT + - CASE - 13 WHEN + CASE + - ( + COUNT( * ) ) WHEN - 27 THEN NULL WHEN COALESCE ( + 19, + - ( - - 1 ) ) THEN 53 WHEN 99 DIV + COUNT( * ) + - - 99 + + 3 + + + ( - 8 ) * 33 * - ( 73 ) THEN NULL END * 61 THEN NULL WHEN + 31 * 18 THEN NULL ELSE - 77 DIV 26 END * 14 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6997
SELECT + - CASE - 13 WHEN + CASE + - ( + COUNT ( * ) ) WHEN - 27 THEN NULL WHEN COALESCE ( + 19, + - ( - - 1 ) ) THEN 53 WHEN 99 / + COUNT ( * ) + - - 99 + + 3 + + + ( - 8 ) * 33 * - ( 73 ) THEN NULL END * 61 THEN NULL WHEN + 31 * 18 THEN NULL ELSE - 77 / 26 END * 14 AS col1
----
28

query II rowsort
SELECT DISTINCT + - 56 AS col1, - 62 AS col2
----
-56
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT DISTINCT + - MAX( DISTINCT 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-6999
SELECT DISTINCT + - MAX ( DISTINCT 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT - - 64 - + ( - CASE - CASE + + COUNT( * ) WHEN 51 + + - 32 THEN + 16 WHEN - + 23 * MIN( - 99 ) THEN NULL ELSE NULL END WHEN - 3 THEN NULL ELSE 68 END ) * - - 94 + NULLIF ( - + 40, - 45 * - 37 - 86 )
----
6416

skipif mysql # not compatible
query I rowsort label-7000
SELECT - - 64 - + ( - CASE - CASE + + COUNT ( * ) WHEN 51 + + - 32 THEN + 16 WHEN - + 23 * MIN ( - 99 ) THEN NULL ELSE NULL END WHEN - 3 THEN NULL ELSE 68 END ) * - - 94 + NULLIF ( - + 40, - 45 * - 37 - 86 )
----
6416

onlyif mysql # aggregate syntax: 
query II rowsort label-7001
SELECT DISTINCT + 81 AS col2, MIN( DISTINCT - - ( + NULLIF ( + 15, + NULLIF ( + - 79, + 24 * + 87 ) ) ) ) AS col1
----
81
15

skipif mysql # not compatible
query II rowsort label-7001
SELECT DISTINCT + 81 AS col2, MIN ( DISTINCT - - ( + NULLIF ( + 15, + NULLIF ( + - 79, + 24 * + 87 ) ) ) ) AS col1
----
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7002
SELECT ALL + + CASE + + ( - 65 ) WHEN COALESCE ( + 85, - CASE - CAST( NULL AS SIGNED ) WHEN + - 29 THEN NULL WHEN + 7 THEN - 57 WHEN + 69 * - - 21 / + ( - 61 ) THEN NULL ELSE NULL END ) THEN + 79 * 34 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL + + CASE + + ( - 65 ) WHEN COALESCE ( + 85, - CASE - CAST ( NULL AS INTEGER ) WHEN + - 29 THEN NULL WHEN + 7 THEN - 57 WHEN + 69 * - - 21 / + ( - 61 ) THEN NULL ELSE NULL END ) THEN + 79 * 34 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7003
SELECT - COALESCE ( + ( + + 74 ), ( - CAST( 0 AS SIGNED ) ) * - + 19 ) / + 87 + + ( - - 50 ) + - CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) * - 71
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-7003
SELECT - COALESCE ( + ( + + 74 ), ( - CAST ( 0 AS INTEGER ) ) * - + 19 ) / + 87 + + ( - - 50 ) + - CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) * - 71
----
NULL
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT 84 * + 62 - - COUNT( + + 40 ) + - SUM( DISTINCT - + 92 ) + 63 * + + 59 * + 44 + + + 76 * 36 - + 29
----
171556

skipif mysql # not compatible
query I rowsort label-7004
SELECT 84 * + 62 - - COUNT ( + + 40 ) + - SUM ( DISTINCT - + 92 ) + 63 * + + 59 * + 44 + + + 76 * 36 - + 29
----
171556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7005
SELECT DISTINCT - CASE 89 WHEN + 77 * - CAST( NULL AS SIGNED ) - 83 THEN 16 WHEN + 62 + + 9 + + ( + 30 ) + + - 21 THEN + + 91 END + + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-7005
SELECT DISTINCT - CASE 89 WHEN + 77 * - CAST ( NULL AS INTEGER ) - 83 THEN 16 WHEN + 62 + + 9 + + ( + 30 ) + + - 21 THEN + + 91 END + + 25
----
NULL

query I rowsort
SELECT ALL - 9 + + 46 col0
----
37

query I rowsort
SELECT ALL ( + 50 ) + - 59
----
-9

query I rowsort
SELECT 63 + + 81 AS col1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT DISTINCT + 18 * + 36 * - - 31 + - + 9 * + COUNT( * ) * + + 36 - - - 22 + COUNT( * ) AS col1
----
19743

skipif mysql # not compatible
query I rowsort label-7009
SELECT DISTINCT + 18 * + 36 * - - 31 + - + 9 * + COUNT ( * ) * + + 36 - - - 22 + COUNT ( * ) AS col1
----
19743

query I rowsort
SELECT DISTINCT - 7 + + 20 * - + 67 AS col0
----
-1347

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT ALL + COUNT( * ) + - NULLIF ( - COALESCE ( 27, 75 * + 93 ), + 35 ) + + 9 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-7011
SELECT ALL + COUNT ( * ) + - NULLIF ( - COALESCE ( 27, 75 * + 93 ), + 35 ) + + 9 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT DISTINCT - 26 + 95 + - 23 + 96 + + 37 + COUNT( * ) * 86 * - - 48 + + 54 * - + 7 + + + 71 * 32
----
6201

skipif mysql # not compatible
query I rowsort label-7012
SELECT DISTINCT - 26 + 95 + - 23 + 96 + + 37 + COUNT ( * ) * 86 * - - 48 + + 54 * - + 7 + + + 71 * 32
----
6201

query I rowsort
SELECT DISTINCT 85 + - 48
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-7014
SELECT DISTINCT - 57 * + 58 AS col1, 95 * SUM( - 86 )
----
-3306
-8170

skipif mysql # not compatible
query II rowsort label-7014
SELECT DISTINCT - 57 * + 58 AS col1, 95 * SUM ( - 86 )
----
-3306
-8170

query I rowsort
SELECT 87 + + 98 AS col0
----
185

query II rowsort
SELECT 96 + - 36 + + 6 AS col1, 84 - - 53 * - 94 AS col2
----
66
-4898

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT 67 * + - COUNT( * ) * + + 99 col1
----
-6633

skipif mysql # not compatible
query I rowsort label-7017
SELECT 67 * + - COUNT ( * ) * + + 99 col1
----
-6633

query I rowsort
SELECT ALL + 47 - - ( - + 91 ) AS col2
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7019
SELECT 86 DIV 90 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7019
SELECT 86 / 90 * COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ALL - 74 * + - 15
----
1110

onlyif mysql # DIV for integer division: 
query I rowsort label-7021
SELECT DISTINCT - 2 DIV - NULLIF ( + - 12, - 91 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT - 2 / - NULLIF ( + - 12, - 91 ) AS col1
----
0

query I rowsort
SELECT ALL + 47 - 73 - + 79
----
-105

query I rowsort
SELECT DISTINCT ( + + ( 30 ) ) * 45 AS col1
----
1350

query I rowsort
SELECT ALL + NULLIF ( + 79, 80 ) * + 73
----
5767

query I rowsort
SELECT 92 * + 83
----
7636

query I rowsort
SELECT 31 + + 87 * 0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7027
SELECT ALL + 12 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL + 12 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT COUNT( * ) + + + SUM( DISTINCT - 39 )
----
-38

skipif mysql # not compatible
query I rowsort label-7028
SELECT COUNT ( * ) + + + SUM ( DISTINCT - 39 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7029
SELECT + MIN( 74 ) + + CAST( - 92 AS SIGNED ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-7029
SELECT + MIN ( 74 ) + + CAST ( - 92 AS INTEGER ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT ALL MAX( - + 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL MAX ( - + 87 ) AS col2
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7031
SELECT + CAST( NULL AS SIGNED ) / - + 14 + - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7031
SELECT + CAST ( NULL AS INTEGER ) / - + 14 + - 76 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT + - MAX( DISTINCT - 98 ) * + 24 + - 78 + 62 * - COUNT( * ) + 5 * 77 col1
----
2597

skipif mysql # not compatible
query I rowsort label-7032
SELECT + - MAX ( DISTINCT - 98 ) * + 24 + - 78 + 62 * - COUNT ( * ) + 5 * 77 col1
----
2597

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT ALL MAX( ALL + 43 ) + 42 + 33 * 77 AS col1
----
2626

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL MAX ( ALL + 43 ) + 42 + 33 * 77 AS col1
----
2626

onlyif mysql # DIV for integer division: 
query I rowsort label-7034
SELECT ALL 90 + + 60 DIV 18 DIV 71 * + - 33 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL 90 + + 60 / 18 / 71 * + - 33 AS col0
----
90

query II rowsort
SELECT 47 - 86 AS col1, + 48
----
-39
48

onlyif mysql # aggregate syntax: 
query II rowsort label-7036
SELECT DISTINCT 47 * + COUNT( * ) * - 86 AS col1, - 71 * - COUNT( * ) AS col2
----
-4042
71

skipif mysql # not compatible
query II rowsort label-7036
SELECT DISTINCT 47 * + COUNT ( * ) * - 86 AS col1, - 71 * - COUNT ( * ) AS col2
----
-4042
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT ALL - - MAX( DISTINCT - - 7 ) + + ( 24 ) - - COUNT( - 6 ) col1
----
32

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL - - MAX ( DISTINCT - - 7 ) + + ( 24 ) - - COUNT ( - 6 ) col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT 58 * + MIN( ALL 62 )
----
3596

skipif mysql # not compatible
query I rowsort label-7038
SELECT 58 * + MIN ( ALL 62 )
----
3596

query I rowsort
SELECT - 18 * - 79 * - - 26 + 20 AS col2
----
36992

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT ALL - - MIN( - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL - - MIN ( - 52 )
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-7041
SELECT DISTINCT - ( 49 ) AS col2, 61 - - + 70 * + COUNT( * )
----
-49
131

skipif mysql # not compatible
query II rowsort label-7041
SELECT DISTINCT - ( 49 ) AS col2, 61 - - + 70 * + COUNT ( * )
----
-49
131

onlyif mysql # aggregate syntax: 
query II rowsort label-7042
SELECT ALL - 16, 97 + + SUM( - - 96 ) AS col1
----
-16
193

skipif mysql # not compatible
query II rowsort label-7042
SELECT ALL - 16, 97 + + SUM ( - - 96 ) AS col1
----
-16
193

onlyif mysql # aggregate syntax: 
query II rowsort label-7043
SELECT DISTINCT - 19 AS col0, - COUNT( * ) AS col1
----
-19
-1

skipif mysql # not compatible
query II rowsort label-7043
SELECT DISTINCT - 19 AS col0, - COUNT ( * ) AS col1
----
-19
-1

query I rowsort
SELECT ALL - 88 * + + 68 AS col1
----
-5984

query I rowsort
SELECT ALL 12 * 47
----
564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7046
SELECT 2 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7046
SELECT 2 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7047
SELECT - 71, CASE - 71 WHEN + COALESCE ( - AVG ( + + 71 ), 91, + 88 ) THEN + 13 * + 5 + + - 28 - + COUNT( * ) WHEN + 12 / + CAST( - + 83 AS SIGNED ) + - + 30 * - - 70 + ( 76 ) / + 23 THEN 23 ELSE NULL END AS col0
----
-71
36

skipif mysql # not compatible
query II rowsort label-7047
SELECT - 71, CASE - 71 WHEN + COALESCE ( - AVG ( + + 71 ), 91, + 88 ) THEN + 13 * + 5 + + - 28 - + COUNT ( * ) WHEN + 12 / + CAST ( - + 83 AS INTEGER ) + - + 30 * - - 70 + ( 76 ) / + 23 THEN 23 ELSE NULL END AS col0
----
-71
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT + 0 * - 23 + SUM( - - 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-7048
SELECT + 0 * - 23 + SUM ( - - 37 ) AS col0
----
37

query I rowsort
SELECT ALL 65 * + 47 AS col1
----
3055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7050
SELECT CAST( + 35 AS SIGNED ) + 93 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7050
SELECT CAST ( + 35 AS INTEGER ) + 93 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7051
SELECT CAST( NULL AS DECIMAL ) * 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7051
SELECT CAST ( NULL AS REAL ) * 21 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7052
SELECT 40 * 90 DIV + 24
----
150

skipif mysql # not compatible
query I rowsort label-7052
SELECT 40 * 90 / + 24
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT DISTINCT SUM( DISTINCT - - 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-7053
SELECT DISTINCT SUM ( DISTINCT - - 7 ) AS col2
----
7

query I rowsort
SELECT 21 + + - 34
----
-13

query I rowsort
SELECT 27 * 22 AS col1
----
594

onlyif mysql # DIV for integer division: 
query I rowsort label-7056
SELECT ALL - ( + 32 ) DIV + 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL - ( + 32 ) / + 82 AS col0
----
0

query I rowsort
SELECT NULLIF ( + 23, - 84 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT - - COALESCE ( 29, - - COUNT( * ), + 11 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-7058
SELECT - - COALESCE ( 29, - - COUNT ( * ), + 11 ) AS col2
----
29

query I rowsort
SELECT ALL + - 58 + 50 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT - SUM( + 49 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-7060
SELECT - SUM ( + 49 ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT DISTINCT - 40 + + + 99 * ( - MIN( - - 55 ) ) * + - 20
----
108860

skipif mysql # not compatible
query I rowsort label-7061
SELECT DISTINCT - 40 + + + 99 * ( - MIN ( - - 55 ) ) * + - 20
----
108860

query I rowsort
SELECT ALL + COALESCE ( + 97, 3 + - 58 * - 2 + - 19 ) col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7063
SELECT + CAST( + 84 AS SIGNED ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-7063
SELECT + CAST ( + 84 AS INTEGER ) AS col1
----
84

query I rowsort
SELECT ALL 67 * + - 76 + + 65 * - + 98
----
-11462

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7065
SELECT - 46 * - + COUNT( * ) + + - 33 + ( - 94 ) * + 18 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7065
SELECT - 46 * - + COUNT ( * ) + + - 33 + ( - 94 ) * + 18 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT + ( + COUNT( * ) ) - ( + MAX( + + 10 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-7066
SELECT + ( + COUNT ( * ) ) - ( + MAX ( + + 10 ) )
----
-9

query I rowsort
SELECT ALL + 41 * + - 0 - 23 * + - 5
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7068
SELECT - MIN( ALL - - CAST( + 29 AS SIGNED ) ) + - 15 + - 84 + 7
----
-121

skipif mysql # not compatible
query I rowsort label-7068
SELECT - MIN ( ALL - - CAST ( + 29 AS INTEGER ) ) + - 15 + - 84 + 7
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT DISTINCT 66 * - SUM( DISTINCT 57 ) col0
----
-3762

skipif mysql # not compatible
query I rowsort label-7069
SELECT DISTINCT 66 * - SUM ( DISTINCT 57 ) col0
----
-3762

query I rowsort
SELECT DISTINCT + 1 * 13
----
13

query I rowsort
SELECT ALL 3 * - - 95 - 23 AS col1
----
262

query I rowsort
SELECT ALL 13 * - - 10 col2
----
130

query I rowsort
SELECT DISTINCT 71 * + 20
----
1420

query I rowsort
SELECT + 83 + + + 83
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7075
SELECT + NULLIF ( + 97, CASE - + 0 WHEN + + ( 82 ) + 85 THEN NULL WHEN - NULLIF ( - COUNT( * ), - CASE + ( 7 ) WHEN CAST( NULL AS SIGNED ) * + + 61 + + - 59 - + + 60 THEN NULL ELSE + 94 END + SUM( DISTINCT 47 ) ) THEN 69 END * + COUNT( * ) + + 70 )
----
97

skipif mysql # not compatible
query I rowsort label-7075
SELECT + NULLIF ( + 97, CASE - + 0 WHEN + + ( 82 ) + 85 THEN NULL WHEN - NULLIF ( - COUNT ( * ), - CASE + ( 7 ) WHEN CAST ( NULL AS INTEGER ) * + + 61 + + - 59 - + + 60 THEN NULL ELSE + 94 END + SUM ( DISTINCT 47 ) ) THEN 69 END * + COUNT ( * ) + + 70 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT + COUNT( ALL + - 35 )
----
1

skipif mysql # not compatible
query I rowsort label-7076
SELECT + COUNT ( ALL + - 35 )
----
1

query I rowsort
SELECT + 47 * - - ( + + ( + 28 ) ) AS col1
----
1316

query I rowsort
SELECT + 53 + + 31
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT + NULLIF ( + - 97, - 10 * + CASE + 7 WHEN + 52 * + + 71 - 47 + + - COUNT( DISTINCT 37 ) THEN + AVG ( ALL + 68 ) + + + 95 ELSE NULL END ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-7079
SELECT + NULLIF ( + - 97, - 10 * + CASE + 7 WHEN + 52 * + + 71 - 47 + + - COUNT ( DISTINCT 37 ) THEN + AVG ( ALL + 68 ) + + + 95 ELSE NULL END ) AS col2
----
-97

query I rowsort
SELECT - 70 * + 67
----
-4690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7081
SELECT - 58 * + CAST( - + 60 AS SIGNED ) * 38 + 23 + + 37 AS col1
----
132300

skipif mysql # not compatible
query I rowsort label-7081
SELECT - 58 * + CAST ( - + 60 AS INTEGER ) * 38 + 23 + + 37 AS col1
----
132300

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT COUNT( - + 80 )
----
1

skipif mysql # not compatible
query I rowsort label-7082
SELECT COUNT ( - + 80 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7083
SELECT ALL COUNT( ALL - 98 ) AS col0, 83 * - COALESCE ( - - CAST( 20 AS SIGNED ), + 59 + + COUNT( + 72 ) * - CAST( - - 36 AS SIGNED ) * - 2 * COUNT( * ) ) * - NULLIF ( - 25, - 46 ) * - + 80 + + 18 + - + 57
----
1
3319961

skipif mysql # not compatible
query II rowsort label-7083
SELECT ALL COUNT ( ALL - 98 ) AS col0, 83 * - COALESCE ( - - CAST ( 20 AS INTEGER ), + 59 + + COUNT ( + 72 ) * - CAST ( - - 36 AS INTEGER ) * - 2 * COUNT ( * ) ) * - NULLIF ( - 25, - 46 ) * - + 80 + + 18 + - + 57
----
1
3319961

onlyif mysql # DIV for integer division: 
query I rowsort label-7084
SELECT + 34 * CASE - 61 WHEN + 26 THEN 11 ELSE - 88 DIV + 1 - 51 END AS col0
----
-4726

skipif mysql # not compatible
query I rowsort label-7084
SELECT + 34 * CASE - 61 WHEN + 26 THEN 11 ELSE - 88 / + 1 - 51 END AS col0
----
-4726

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT DISTINCT - COALESCE ( + COUNT( * ), 84 ) + MIN( DISTINCT - 22 )
----
-23

skipif mysql # not compatible
query I rowsort label-7085
SELECT DISTINCT - COALESCE ( + COUNT ( * ), 84 ) + MIN ( DISTINCT - 22 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT DISTINCT SUM( ALL + - 3 ) * + - 48
----
144

skipif mysql # not compatible
query I rowsort label-7086
SELECT DISTINCT SUM ( ALL + - 3 ) * + - 48
----
144

onlyif mysql # aggregate syntax: 
query III rowsort label-7087
SELECT ALL ( + 43 ) + + 43 + - 80, - COUNT( * ) AS col2, + 70 AS col1
----
6
-1
70

skipif mysql # not compatible
query III rowsort label-7087
SELECT ALL ( + 43 ) + + 43 + - 80, - COUNT ( * ) AS col2, + 70 AS col1
----
6
-1
70

query I rowsort
SELECT DISTINCT - 46 + + + 77 AS col2
----
31

query I rowsort
SELECT - + 18 * ( 93 ) col0
----
-1674

query I rowsort
SELECT ALL + - 6 + + 84 / CASE + 51 WHEN - 85 * 25 THEN + - ( + + 52 ) * + + 26 * 52 * + 23 * + + 36 + - + 28 + - + 34 END
----
NULL

query I rowsort
SELECT - + ( + + 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT ALL - NULLIF ( 28, - + COUNT( * ) ) + + 24
----
-4

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL - NULLIF ( 28, - + COUNT ( * ) ) + + 24
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT DISTINCT 7 + - SUM( DISTINCT - 98 )
----
105

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT 7 + - SUM ( DISTINCT - 98 )
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT - 51 + - 33 * + MAX( - 31 ) col2
----
972

skipif mysql # not compatible
query I rowsort label-7094
SELECT - 51 + - 33 * + MAX ( - 31 ) col2
----
972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7095
SELECT DISTINCT + + 64 DIV - MIN( DISTINCT - + 37 )
----
1

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT + + 64 / - MIN ( DISTINCT - + 37 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT + 8 + + COUNT( * ) col1
----
9

skipif mysql # not compatible
query I rowsort label-7096
SELECT + 8 + + COUNT ( * ) col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7097
SELECT + + ( + 51 ), 25 * CAST( + + NULLIF ( - 66, 26 ) AS SIGNED ) AS col0
----
51
-1650

skipif mysql # not compatible
query II rowsort label-7097
SELECT + + ( + 51 ), 25 * CAST ( + + NULLIF ( - 66, 26 ) AS INTEGER ) AS col0
----
51
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT DISTINCT - CASE + - 89 WHEN + 74 THEN + 93 * 40 ELSE NULL END * 27 * - 14 * + 49 + - CASE 38 WHEN MAX( ALL - 2 ) * + COUNT( * ) * 36 THEN - 93 ELSE ( 20 ) END + - - 18 + + 89 * 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT - CASE + - 89 WHEN + 74 THEN + 93 * 40 ELSE NULL END * 27 * - 14 * + 49 + - CASE 38 WHEN MAX ( ALL - 2 ) * + COUNT ( * ) * 36 THEN - 93 ELSE ( 20 ) END + - - 18 + + 89 * 13 AS col0
----
NULL

query I rowsort
SELECT - + 56 * 52 AS col2
----
-2912

query I rowsort
SELECT DISTINCT + + 32 col1
----
32

query I rowsort
SELECT - 83 * 56 * - 5 AS col2
----
23240

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT + NULLIF ( COUNT( * ), + 71 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7102
SELECT + NULLIF ( COUNT ( * ), + 71 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7103
SELECT DISTINCT + 70 DIV 31 * + ( + + 24 )
----
48

skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT + 70 / 31 * + ( + + 24 )
----
48

query II rowsort
SELECT ALL + 57 AS col0, ( 99 ) * 35 + + 85 * + 82
----
57
10435

query I rowsort
SELECT + 53 * + 43
----
2279

onlyif mysql # aggregate syntax: 
query II rowsort label-7106
SELECT DISTINCT + 70, - COUNT( * ) AS col2
----
70
-1

skipif mysql # not compatible
query II rowsort label-7106
SELECT DISTINCT + 70, - COUNT ( * ) AS col2
----
70
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7107
SELECT DISTINCT + 5 * - 23 + - + ( - CASE + 73 WHEN CASE + MAX( + 1 ) WHEN + 7 + - - 59 * + 8 THEN - 36 WHEN - 4 THEN NULL ELSE NULL END THEN + 3 ELSE ( + 67 ) * 11 + - - 69 + + CAST( NULL AS SIGNED ) * + + 90 * 98 + - 26 * + 91 END ) * + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT + 5 * - 23 + - + ( - CASE + 73 WHEN CASE + MAX ( + 1 ) WHEN + 7 + - - 59 * + 8 THEN - 36 WHEN - 4 THEN NULL ELSE NULL END THEN + 3 ELSE ( + 67 ) * 11 + - - 69 + + CAST ( NULL AS INTEGER ) * + + 90 * 98 + - 26 * + 91 END ) * + 34 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 53 * - 17
----
-901

query I rowsort
SELECT - 16 * + 43 * - + 53 - - + 16
----
36480

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT ALL - 94 * COUNT( * ) + 96 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL - 94 * COUNT ( * ) + 96 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT DISTINCT + COUNT( DISTINCT + - 51 )
----
1

skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT + COUNT ( DISTINCT + - 51 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7112
SELECT ALL 47 * + 94 + COALESCE ( + + CASE - 24 WHEN ( + COUNT( * ) ) THEN 26 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END, - - CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) ) + 9 + - 23 * - ( - + 48 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL 47 * + 94 + COALESCE ( + + CASE - 24 WHEN ( + COUNT ( * ) ) THEN 26 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END, - - CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) ) + 9 + - 23 * - ( - + 48 ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 80 * + 53 AS col1
----
-4240

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT CASE - COUNT( * ) WHEN - + 14 THEN - 13 WHEN - 60 THEN 93 WHEN + - ( 70 ) THEN NULL WHEN + 4 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7114
SELECT CASE - COUNT ( * ) WHEN - + 14 THEN - 13 WHEN - 60 THEN 93 WHEN + - ( 70 ) THEN NULL WHEN + 4 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT ALL SUM( 82 ) + 72 AS col2
----
154

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL SUM ( 82 ) + 72 AS col2
----
154

query II rowsort
SELECT ALL 48 AS col2, 20
----
48
20

query I rowsort
SELECT + 90 + + 36 * - + 3 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT ALL - 42 + + COALESCE ( 53, + + 45 * + COUNT( * ), - + COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL - 42 + + COALESCE ( 53, + + 45 * + COUNT ( * ), - + COUNT ( * ) )
----
11

query II rowsort
SELECT 3, + 79 AS col1
----
3
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT ALL + - CASE - 43 WHEN + COALESCE ( 88, - 78, 60 * + + 54 * - 98 ) * + + 78 / + 32 THEN 67 + + - COUNT( * ) * + 62 ELSE NULL END + - + 44 - - SUM( ALL + - 41 ) * + + 67 * - COALESCE ( - 67, SUM( - 33 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL + - CASE - 43 WHEN + COALESCE ( 88, - 78, 60 * + + 54 * - 98 ) * + + 78 / + 32 THEN 67 + + - COUNT ( * ) * + 62 ELSE NULL END + - + 44 - - SUM ( ALL + - 41 ) * + + 67 * - COALESCE ( - 67, SUM ( - 33 ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 25 + + 94
----
119

query I rowsort
SELECT ALL 52 * + 26 + + 36 * + 67
----
3764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7123
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + 89 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( 51 ) AS col0
----
-51

query I rowsort
SELECT ALL + ( - - 77 ) * 29 * 69 AS col1
----
154077

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT ALL - 90 * - COUNT( * ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL - 90 * - COUNT ( * ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT + 88 + - - NULLIF ( - 95, + - CASE - - 39 WHEN - - NULLIF ( + + 52, - + 83 * - + SUM( - + 27 ) ) * + 36 + + - 17 * - - 54 + + ( + 43 ) + - 51 + - + COUNT( * ) + - 63 / - 41 + + - 7 THEN + 20 * - 23 + - 78 ELSE NULL END + 5 ) * 18
----
-1622

skipif mysql # not compatible
query I rowsort label-7127
SELECT + 88 + - - NULLIF ( - 95, + - CASE - - 39 WHEN - - NULLIF ( + + 52, - + 83 * - + SUM ( - + 27 ) ) * + 36 + + - 17 * - - 54 + + ( + 43 ) + - 51 + - + COUNT ( * ) + - 63 / - 41 + + - 7 THEN + 20 * - 23 + - 78 ELSE NULL END + 5 ) * 18
----
-1622

onlyif mysql # aggregate syntax: 
query II rowsort label-7128
SELECT - - COUNT( * ) AS col0, SUM( + + 32 ) - + - CASE - + 95 WHEN - 42 THEN COALESCE ( ( + - ( - ( - - 63 ) ) ), - 30, + 49 ) END * 30 + 44
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7128
SELECT - - COUNT ( * ) AS col0, SUM ( + + 32 ) - + - CASE - + 95 WHEN - 42 THEN COALESCE ( ( + - ( - ( - - 63 ) ) ), - 30, + 49 ) END * 30 + 44
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT ALL - COUNT( * ) * - - 27
----
-27

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL - COUNT ( * ) * - - 27
----
-27

query II rowsort
SELECT + CASE - 17 WHEN + - 6 THEN 84 END + 96 + NULLIF ( + + 27, + 1 ) AS col0, - 14 * - 35 * - + 55 * + - 14 AS col0
----
NULL
377300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7131
SELECT DISTINCT - 96 * - 85 + - 96 + + 3 DIV - COUNT( * )
----
8061

skipif mysql # not compatible
query I rowsort label-7131
SELECT DISTINCT - 96 * - 85 + - 96 + + 3 / - COUNT ( * )
----
8061

onlyif mysql # DIV for integer division: 
query I rowsort label-7132
SELECT 2 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-7132
SELECT 2 / 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT COUNT( * ) + COUNT( * ) * - - ( + + 10 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-7133
SELECT COUNT ( * ) + COUNT ( * ) * - - ( + + 10 ) AS col1
----
11

query I rowsort
SELECT ALL - NULLIF ( 7, ( - 23 ) * 10 ) * - 14 + 99 * - 90 AS col1
----
-8812

onlyif mysql # DIV for integer division: 
query I rowsort label-7135
SELECT 6 DIV + 27
----
0

skipif mysql # not compatible
query I rowsort label-7135
SELECT 6 / + 27
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7136
SELECT ALL 89 DIV + + 76
----
1

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL 89 / + + 76
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7137
SELECT CAST( NULL AS SIGNED ) * 31 + 81 + + 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7137
SELECT CAST ( NULL AS INTEGER ) * 31 + 81 + + 59 col2
----
NULL

query I rowsort
SELECT 12 - - 93 + 42 AS col1
----
147

query I rowsort
SELECT 15 * - 32 * + + 38 AS col2
----
-18240

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT + MIN( ALL + - 72 ) * + 20 * + 94 + 3
----
-135357

skipif mysql # not compatible
query I rowsort label-7140
SELECT + MIN ( ALL + - 72 ) * + 20 * + 94 + 3
----
-135357

query I rowsort
SELECT 22 - + 22 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT 96 + COUNT( * ) * - + 74 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-7142
SELECT 96 + COUNT ( * ) * - + 74 AS col1
----
22

query II rowsort
SELECT + 16, + 81 * - - 20 AS col1
----
16
1620

query I rowsort
SELECT DISTINCT - COALESCE ( - 58, - 1 - - 57 + + 5 - + + 99, - + 19 ) + - 56
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7145
SELECT ALL + 21 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL + 21 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 5 AS col0, + 49 - + 86
----
-5
-37

query I rowsort
SELECT 40 + - ( - 29 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT ALL - ( 45 ) + - 16 + - + 70 + CASE COUNT( * ) WHEN - - ( - 32 ) THEN - 40 WHEN + 35 - 90 THEN + + 62 END * - + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7148
SELECT ALL - ( 45 ) + - 16 + - + 70 + CASE COUNT ( * ) WHEN - - ( - 32 ) THEN - 40 WHEN + 35 - 90 THEN + + 62 END * - + 15 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 40 + + - 87 + - 30
----
-77

query II rowsort
SELECT 44 AS col2, + 81 AS col0
----
44
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT CASE 26 WHEN - + 24 * + 44 + - - AVG ( + - 72 ) + + + 2 THEN - - 14 * - ( - 73 ) + + 22 + 39 ELSE + 76 + + 30 END + + COUNT( * )
----
107

skipif mysql # not compatible
query I rowsort label-7151
SELECT CASE 26 WHEN - + 24 * + 44 + - - AVG ( + - 72 ) + + + 2 THEN - - 14 * - ( - 73 ) + + 22 + 39 ELSE + 76 + + 30 END + + COUNT ( * )
----
107

query II rowsort
SELECT + 93, 42 + - 81 AS col0
----
93
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT - COUNT( - + 78 ) * - + 81
----
81

skipif mysql # not compatible
query I rowsort label-7153
SELECT - COUNT ( - + 78 ) * - + 81
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7154
SELECT ALL - - ( + COUNT( * ) ) DIV - COALESCE ( + + ( - 36 ), + 73 + - 29 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7154
SELECT ALL - - ( + COUNT ( * ) ) / - COALESCE ( + + ( - 36 ), + 73 + - 29 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT ALL + NULLIF ( + 38, + 77 ) - - 92 * COUNT( * ) AS col2
----
130

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL + NULLIF ( + 38, + 77 ) - - 92 * COUNT ( * ) AS col2
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT DISTINCT COALESCE ( - 94, + COUNT( * ), + 99 + - 5, + + COUNT( * ) )
----
-94

skipif mysql # not compatible
query I rowsort label-7156
SELECT DISTINCT COALESCE ( - 94, + COUNT ( * ), + 99 + - 5, + + COUNT ( * ) )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7157
SELECT ALL + CASE 69 WHEN 44 + + CASE COUNT( 1 ) WHEN - 2 * + - 74 + 72 THEN NULL WHEN + 0 THEN 56 ELSE CAST( - + 59 AS SIGNED ) END THEN ( - - 63 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL + CASE 69 WHEN 44 + + CASE COUNT ( 1 ) WHEN - 2 * + - 74 + 72 THEN NULL WHEN + 0 THEN 56 ELSE CAST ( - + 59 AS INTEGER ) END THEN ( - - 63 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7158
SELECT ( - 93 ) * + 90 * - + 27 * + ( + ( - 44 ) ) + - - 84 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7158
SELECT ( - 93 ) * + 90 * - + 27 * + ( + ( - 44 ) ) + - - 84 + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 61 * - - 24 AS col0, - 79
----
1464
-79

query I rowsort
SELECT + 76 - - - 43 AS col2
----
33

query I rowsort
SELECT + 46 * - + 79 AS col0
----
-3634

query II rowsort
SELECT - 70, 31 AS col2
----
-70
31

onlyif mysql # aggregate syntax: 
query II rowsort label-7163
SELECT - - 78 AS col2, + 21 - + MIN( DISTINCT + 80 ) + - MIN( - - 13 )
----
78
-72

skipif mysql # not compatible
query II rowsort label-7163
SELECT - - 78 AS col2, + 21 - + MIN ( DISTINCT + 80 ) + - MIN ( - - 13 )
----
78
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT - 69 + - COUNT( * ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-7164
SELECT - 69 + - COUNT ( * ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT - 13 * + - 35 * + 76 * + 26 - ( 55 ) * MIN( DISTINCT 80 ) + - - CASE - COUNT( * ) WHEN - - 28 + 66 * + MIN( + 74 ) THEN - 0 * + 92 WHEN - 40 - COUNT( * ) + + 60 * + 26 * - 96 - 49 THEN + MIN( DISTINCT - 69 ) ELSE NULL END + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7165
SELECT - 13 * + - 35 * + 76 * + 26 - ( 55 ) * MIN ( DISTINCT 80 ) + - - CASE - COUNT ( * ) WHEN - - 28 + 66 * + MIN ( + 74 ) THEN - 0 * + 92 WHEN - 40 - COUNT ( * ) + + 60 * + 26 * - 96 - 49 THEN + MIN ( DISTINCT - 69 ) ELSE NULL END + - 42
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7166
SELECT - COUNT( * ) AS col1, - 99
----
-1
-99

skipif mysql # not compatible
query II rowsort label-7166
SELECT - COUNT ( * ) AS col1, - 99
----
-1
-99

query I rowsort
SELECT ( 50 ) * - 53
----
-2650

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT - + SUM( 2 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7168
SELECT - + SUM ( 2 ) AS col2
----
-2

query I rowsort
SELECT DISTINCT + 85 + + 82 + - + 40 AS col2
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7170
SELECT 22 + + - 30 / + - CASE CASE + 84 WHEN + - 62 THEN NULL ELSE - - 25 * + 22 END WHEN + ( - - 35 ) THEN - 27 + + - 59 + - + 53 + + + NULLIF ( CAST( - 24 AS SIGNED ), + 51 - - 22 + + + 43 + - 86 ) / 51 * + 11 * + 34 ELSE NULL END * - 59 - - 82 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7170
SELECT 22 + + - 30 / + - CASE CASE + 84 WHEN + - 62 THEN NULL ELSE - - 25 * + 22 END WHEN + ( - - 35 ) THEN - 27 + + - 59 + - + 53 + + + NULLIF ( CAST ( - 24 AS INTEGER ), + 51 - - 22 + + + 43 + - 86 ) / 51 * + 11 * + 34 ELSE NULL END * - 59 - - 82 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT DISTINCT + 33 * 88 + + COUNT( 18 ) * ( - 92 ) AS col1
----
2812

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT + 33 * 88 + + COUNT ( 18 ) * ( - 92 ) AS col1
----
2812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7172
SELECT 12 * + CASE - 85 WHEN + + 98 * 22 * CAST( - 52 AS SIGNED ) * - CAST( 5 AS SIGNED ) + 77 + COUNT( * ) THEN 94 WHEN - COUNT( DISTINCT + CASE + 73 WHEN - ( + 7 ) THEN - - 42 ELSE NULL END ) * 80 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7172
SELECT 12 * + CASE - 85 WHEN + + 98 * 22 * CAST ( - 52 AS INTEGER ) * - CAST ( 5 AS INTEGER ) + 77 + COUNT ( * ) THEN 94 WHEN - COUNT ( DISTINCT + CASE + 73 WHEN - ( + 7 ) THEN - - 42 ELSE NULL END ) * 80 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7173
SELECT 31 DIV + - 98 * - 49 col0
----
0

skipif mysql # not compatible
query I rowsort label-7173
SELECT 31 / + - 98 * - 49 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7174
SELECT ALL - 56 * - NULLIF ( - MIN( ALL + - 37 ), - + 65 ) + + - ( ( + CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7174
SELECT ALL - 56 * - NULLIF ( - MIN ( ALL + - 37 ), - + 65 ) + + - ( ( + CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT 37 * + COUNT( * ) * COUNT( * ) * + 63 AS col0
----
2331

skipif mysql # not compatible
query I rowsort label-7175
SELECT 37 * + COUNT ( * ) * COUNT ( * ) * + 63 AS col0
----
2331

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT ALL + ( - COUNT( * ) ) * - COUNT( - 81 ) + + 81 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL + ( - COUNT ( * ) ) * - COUNT ( - 81 ) + + 81 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT ALL + COUNT( ALL + ( - 20 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL + COUNT ( ALL + ( - 20 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT MAX( - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-7178
SELECT MAX ( - 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT MAX( + 60 ) col0
----
60

skipif mysql # not compatible
query I rowsort label-7179
SELECT MAX ( + 60 ) col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7180
SELECT + CASE NULLIF ( MAX( - 38 ), - ( - SUM( - 18 ) ) * - + 40 + - 38 ) WHEN + - 35 THEN COUNT( - 71 ) / + COUNT( * ) / - - CAST( NULL AS SIGNED ) WHEN + MIN( DISTINCT 33 ) * + - 62 THEN + - 15 ELSE + 23 + ( + - COUNT( 30 ) ) * + 33 END
----
-10

skipif mysql # not compatible
query I rowsort label-7180
SELECT + CASE NULLIF ( MAX ( - 38 ), - ( - SUM ( - 18 ) ) * - + 40 + - 38 ) WHEN + - 35 THEN COUNT ( - 71 ) / + COUNT ( * ) / - - CAST ( NULL AS INTEGER ) WHEN + MIN ( DISTINCT 33 ) * + - 62 THEN + - 15 ELSE + 23 + ( + - COUNT ( 30 ) ) * + 33 END
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7181
SELECT + COUNT( DISTINCT + + 13 ) * CAST( NULL AS SIGNED ) + + - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7181
SELECT + COUNT ( DISTINCT + + 13 ) * CAST ( NULL AS INTEGER ) + + - 62
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7182
SELECT + NULLIF ( - 7, ( - 45 ) + - - COUNT( * ) + - 46 - + - 91 * - + 81 * 82 + + + COALESCE ( - - NULLIF ( - 38, - + 17 ), - 10, + - 79 * + 34 + - + 72, - 38 + 85 ) - + CAST( NULL AS DECIMAL ) * - 3 * - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) )
----
-7

skipif mysql # not compatible
query I rowsort label-7182
SELECT + NULLIF ( - 7, ( - 45 ) + - - COUNT ( * ) + - 46 - + - 91 * - + 81 * 82 + + + COALESCE ( - - NULLIF ( - 38, - + 17 ), - 10, + - 79 * + 34 + - + 72, - 38 + 85 ) - + CAST ( NULL AS REAL ) * - 3 * - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7183
SELECT DISTINCT + 96 * - - 18 - 84 * + CAST( NULL AS SIGNED ) + - - 14 AS col2, 60
----
NULL
60

skipif mysql # not compatible
query II rowsort label-7183
SELECT DISTINCT + 96 * - - 18 - 84 * + CAST ( NULL AS INTEGER ) + - - 14 AS col2, 60
----
NULL
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7184
SELECT DISTINCT 20 * + 61 - - - 70 + - MIN( DISTINCT 93 ) * + + 60 * COALESCE ( 12, - - 53, ( ( + 15 ) ) + - CASE ( - 87 ) WHEN - CASE - 89 WHEN - 80 * + - 91 * - 88 THEN NULL WHEN + + COUNT( * ) * - 87 * 79 + 64 THEN - COUNT( * ) * - 25 END THEN - CAST( NULL AS SIGNED ) ELSE NULL END ) DIV COUNT( * ) AS col1
----
-65810

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT 20 * + 61 - - - 70 + - MIN ( DISTINCT 93 ) * + + 60 * COALESCE ( 12, - - 53, ( ( + 15 ) ) + - CASE ( - 87 ) WHEN - CASE - 89 WHEN - 80 * + - 91 * - 88 THEN NULL WHEN + + COUNT ( * ) * - 87 * 79 + 64 THEN - COUNT ( * ) * - 25 END THEN - CAST ( NULL AS INTEGER ) ELSE NULL END ) / COUNT ( * ) AS col1
----
-65810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7185
SELECT ALL CAST( - - 65 AS SIGNED ) * + 14
----
910

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL CAST ( - - 65 AS INTEGER ) * + 14
----
910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7186
SELECT ALL + + ( + NULLIF ( - - CAST( NULL AS SIGNED ), - 35 / MAX( ALL - 93 ) * + MAX( DISTINCT ( - 68 ) ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7186
SELECT ALL + + ( + NULLIF ( - - CAST ( NULL AS INTEGER ), - 35 / MAX ( ALL - 93 ) * + MAX ( DISTINCT ( - 68 ) ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7187
SELECT DISTINCT - + 70 * - 49 AS col0, + ( - ( + + ( + 37 ) ) ) + - CAST( + + 65 AS SIGNED )
----
3430
-102

skipif mysql # not compatible
query II rowsort label-7187
SELECT DISTINCT - + 70 * - 49 AS col0, + ( - ( + + ( + 37 ) ) ) + - CAST ( + + 65 AS INTEGER )
----
3430
-102

query I rowsort
SELECT ALL - ( - 20 ) col2
----
20

query I rowsort
SELECT + NULLIF ( + 52, + + 11 - + + 14 + - 68 ) * 63 * + + 56 * + 61 + + 93 AS col0
----
11190909

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7190
SELECT - 30 DIV - + 71, - 50 + 16 + + 19 * - MAX( 52 ) * + 93 AS col0
----
0
-91918

skipif mysql # not compatible
query II rowsort label-7190
SELECT - 30 / - + 71, - 50 + 16 + + 19 * - MAX ( 52 ) * + 93 AS col0
----
0
-91918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7191
SELECT - 70 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7191
SELECT - 70 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7192
SELECT - 74 + + 27 AS col1, - COUNT( * ) + + + 88 AS col1
----
-47
87

skipif mysql # not compatible
query II rowsort label-7192
SELECT - 74 + + 27 AS col1, - COUNT ( * ) + + + 88 AS col1
----
-47
87

query I rowsort
SELECT + - 54 * - 40 - - - 55
----
2105

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT + CASE - + 99 WHEN + + 85 THEN - 79 WHEN - + 90 * + MAX( ALL 76 ) THEN - 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7194
SELECT + CASE - + 99 WHEN + + 85 THEN - 79 WHEN - + 90 * + MAX ( ALL 76 ) THEN - 81 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7195
SELECT - + CASE - 11 WHEN + + 58 THEN + COUNT( * ) + 5 * + NULLIF ( + COUNT( * ), - + 96 ) * - CAST( NULL AS SIGNED ) WHEN 46 THEN + 45 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7195
SELECT - + CASE - 11 WHEN + + 58 THEN + COUNT ( * ) + 5 * + NULLIF ( + COUNT ( * ), - + 96 ) * - CAST ( NULL AS INTEGER ) WHEN 46 THEN + 45 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT ALL - COUNT( * ) * - - 93 - - 19 * + 32 AS col1
----
515

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL - COUNT ( * ) * - - 93 - - 19 * + 32 AS col1
----
515

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7197
SELECT DISTINCT - - MIN( - 57 ) * + + CAST( NULL AS DECIMAL ) AS col1, ( + + ( + + CAST( NULL AS SIGNED ) ) ) * - ( 94 ) + - 95 * COALESCE ( + + 23, + 45 + + 35 * - 23 + + MIN( DISTINCT + 86 ) + - 48 ) * ( + 37 ) + 11 + - 32 + + 92 + + COALESCE ( 89, 66 ) + + 43 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7197
SELECT DISTINCT - - MIN ( - 57 ) * + + CAST ( NULL AS REAL ) AS col1, ( + + ( + + CAST ( NULL AS INTEGER ) ) ) * - ( 94 ) + - 95 * COALESCE ( + + 23, + 45 + + 35 * - 23 + + MIN ( DISTINCT + 86 ) + - 48 ) * ( + 37 ) + 11 + - 32 + + 92 + + COALESCE ( 89, 66 ) + + 43 AS col2
----
NULL
NULL

query I rowsort
SELECT - - 69 + 30 col2
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-7199
SELECT ALL + + 40 * + 98, 8 - + + ( - 80 ) DIV + 8 AS col2
----
3920
18

skipif mysql # not compatible
query II rowsort label-7199
SELECT ALL + + 40 * + 98, 8 - + + ( - 80 ) / + 8 AS col2
----
3920
18

query I rowsort
SELECT - 86 + - 38 AS col2
----
-124

query II rowsort
SELECT 37, 11 AS col0
----
37
11

query I rowsort
SELECT + 54 * + 79 AS col1
----
4266

onlyif mysql # aggregate syntax: 
query II rowsort label-7203
SELECT 45 AS col1, COUNT( - 27 )
----
45
1

skipif mysql # not compatible
query II rowsort label-7203
SELECT 45 AS col1, COUNT ( - 27 )
----
45
1

query I rowsort
SELECT DISTINCT + 21 + - + 81
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT ALL ( MIN( 23 ) ) col1
----
23

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL ( MIN ( 23 ) ) col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT DISTINCT + COUNT( * ) + - + 54 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-7206
SELECT DISTINCT + COUNT ( * ) + - + 54 AS col2
----
-53

query I rowsort
SELECT DISTINCT 30 * 79 * + 47 * - 3
----
-334170

query II rowsort
SELECT ALL + 95 col2, + 11 * - 59 * - 35
----
95
22715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7209
SELECT + CASE - 68 WHEN - AVG ( 59 ) THEN CAST( - 44 AS SIGNED ) WHEN - 34 THEN NULL ELSE - COUNT( * ) + + 6 END
----
5

skipif mysql # not compatible
query I rowsort label-7209
SELECT + CASE - 68 WHEN - AVG ( 59 ) THEN CAST ( - 44 AS INTEGER ) WHEN - 34 THEN NULL ELSE - COUNT ( * ) + + 6 END
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7210
SELECT ALL - 12 DIV - - 1 + + COALESCE ( - - 57, 62 ) DIV - 83 * 66 * - ( + 51 ) + - 72 * - 45 - + 90 * + 34 AS col2
----
168

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL - 12 / - - 1 + + COALESCE ( - - 57, 62 ) / - 83 * 66 * - ( + 51 ) + - 72 * - 45 - + 90 * + 34 AS col2
----
168

query I rowsort
SELECT + 88 - + + 5 - 57 AS col0
----
26

query I rowsort
SELECT DISTINCT 94 * - ( 55 ) AS col0
----
-5170

onlyif mysql # DIV for integer division: 
query I rowsort label-7213
SELECT - 41 DIV - 7 + - 19 * + ( 38 ) AS col1
----
-717

skipif mysql # not compatible
query I rowsort label-7213
SELECT - 41 / - 7 + - 19 * + ( 38 ) AS col1
----
-717

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7214
SELECT ALL COUNT( * ) * 90 DIV - 89 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7214
SELECT ALL COUNT ( * ) * 90 / - 89 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7215
SELECT ALL CASE - 32 WHEN + ( + COUNT( * ) ) THEN + COUNT( * ) * ( + CAST( NULL AS SIGNED ) ) - + AVG ( - CASE + - 30 WHEN 2 THEN NULL WHEN 49 THEN NULL ELSE - 78 END ) + - 58 + - + MIN( ALL + 89 ) / 17 WHEN + - 94 THEN NULL ELSE NULL END * - 26 - - - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL CASE - 32 WHEN + ( + COUNT ( * ) ) THEN + COUNT ( * ) * ( + CAST ( NULL AS INTEGER ) ) - + AVG ( - CASE + - 30 WHEN 2 THEN NULL WHEN 49 THEN NULL ELSE - 78 END ) + - 58 + - + MIN ( ALL + 89 ) / 17 WHEN + - 94 THEN NULL ELSE NULL END * - 26 - - - 95
----
NULL

query I rowsort
SELECT DISTINCT 58 * 62
----
3596

query II rowsort
SELECT DISTINCT + 88 AS col0, 63
----
88
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7218
SELECT ALL - 59 DIV COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL - 59 / COUNT ( * )
----
-59

query I rowsort
SELECT ALL + COALESCE ( 33, 67 * + ( 57 ) )
----
33

query I rowsort
SELECT + 76 * + - 57 + - 25 + - + 3
----
-4360

query II rowsort
SELECT ALL + 49 col0, 49
----
49
49

query I rowsort
SELECT + 6 * 97 * - 29 - + 11 AS col0
----
-16889

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7223
SELECT ALL + 3 DIV + NULLIF ( + - 15, - - CAST( NULL AS SIGNED ) ) * - - 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7223
SELECT ALL + 3 / + NULLIF ( + - 15, - - CAST ( NULL AS INTEGER ) ) * - - 42 AS col2
----
0

query II rowsort
SELECT ALL + 41 AS col0, + ( 35 ) col2
----
41
35

query I rowsort
SELECT - + 33 + + 75 AS col0
----
42

query I rowsort
SELECT + - 22 * + 1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7227
SELECT ALL - 78 * - COALESCE ( - 82, CASE 84 WHEN - + 15 * COUNT( * ) THEN NULL WHEN + COALESCE ( - NULLIF ( - 30, + + 76 * + 16 + COUNT( - 13 ) * - 53 ), - COUNT( ALL 75 ) + 80, + + COUNT( * ) + 12 ) THEN 33 ELSE ( 91 ) DIV CAST( NULL AS SIGNED ) END * - COUNT( * ) + - 7 ) AS col2
----
-6396

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL - 78 * - COALESCE ( - 82, CASE 84 WHEN - + 15 * COUNT ( * ) THEN NULL WHEN + COALESCE ( - NULLIF ( - 30, + + 76 * + 16 + COUNT ( - 13 ) * - 53 ), - COUNT ( ALL 75 ) + 80, + + COUNT ( * ) + 12 ) THEN 33 ELSE ( 91 ) / CAST ( NULL AS INTEGER ) END * - COUNT ( * ) + - 7 ) AS col2
----
-6396

query I rowsort
SELECT ALL 64 * + 94 AS col2
----
6016

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT DISTINCT - SUM( - + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-7229
SELECT DISTINCT - SUM ( - + 42 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7230
SELECT DISTINCT + 42 * - 29 + 13 + + CAST( NULL AS SIGNED ) - 24 * 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT + 42 * - 29 + 13 + + CAST ( NULL AS INTEGER ) - 24 * 43 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7231
SELECT - CAST( NULL AS DECIMAL ) + - - 59 / - ( - ( - - 63 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7231
SELECT - CAST ( NULL AS REAL ) + - - 59 / - ( - ( - - 63 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7232
SELECT 45, + ( COUNT( * ) ) DIV - ( - + MAX( - 87 ) ) * 25 * - 65 + - - 10 - + + 25 AS col2
----
45
-15

skipif mysql # not compatible
query II rowsort label-7232
SELECT 45, + ( COUNT ( * ) ) / - ( - + MAX ( - 87 ) ) * 25 * - 65 + - - 10 - + + 25 AS col2
----
45
-15

query I rowsort
SELECT - - 15 + + 13 - - 55
----
83

query I rowsort
SELECT ALL - + 75 + 26 AS col0
----
-49

query I rowsort
SELECT ALL + 77 + - + 57 AS col2
----
20

query I rowsort
SELECT - 42 + + 99
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT ALL + 98 * - COUNT( * ) * + - 9
----
882

skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL + 98 * - COUNT ( * ) * + - 9
----
882

query I rowsort
SELECT - 18 + - 52
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-7239
SELECT ALL + 25 + - + COUNT( * ) + + ( 76 ), 17 + + 82 col0
----
100
99

skipif mysql # not compatible
query II rowsort label-7239
SELECT ALL + 25 + - + COUNT ( * ) + + ( 76 ), 17 + + 82 col0
----
100
99

query I rowsort
SELECT ALL 6 - + - 36 - 55 AS col2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-7241
SELECT 5 * + 49 DIV + - 24 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-7241
SELECT 5 * + 49 / + - 24 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-7242
SELECT COUNT( * ) * - 48, - 84 AS col0
----
-48
-84

skipif mysql # not compatible
query II rowsort label-7242
SELECT COUNT ( * ) * - 48, - 84 AS col0
----
-48
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT COUNT( * ) + - COUNT( * ) + - 76 + + - MAX( DISTINCT - 98 )
----
22

skipif mysql # not compatible
query I rowsort label-7243
SELECT COUNT ( * ) + - COUNT ( * ) + - 76 + + - MAX ( DISTINCT - 98 )
----
22

query I rowsort
SELECT 56 + 11 * + 34 AS col2
----
430

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT + 50 * COUNT( * ) * 59 - - 87 + - COUNT( * ) * 83
----
2954

skipif mysql # not compatible
query I rowsort label-7245
SELECT + 50 * COUNT ( * ) * 59 - - 87 + - COUNT ( * ) * 83
----
2954

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT CASE + 86 WHEN COUNT( * ) THEN NULL ELSE - - 91 END + 41 + + MAX( DISTINCT - 85 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-7246
SELECT CASE + 86 WHEN COUNT ( * ) THEN NULL ELSE - - 91 END + 41 + + MAX ( DISTINCT - 85 ) AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7247
SELECT ALL - CAST( 17 AS SIGNED ), - 57 * 50 AS col1
----
-17
-2850

skipif mysql # not compatible
query II rowsort label-7247
SELECT ALL - CAST ( 17 AS INTEGER ), - 57 * 50 AS col1
----
-17
-2850

query I rowsort
SELECT ALL 75 * - 96
----
-7200

query I rowsort
SELECT ALL 93 * + 98
----
9114

query I rowsort
SELECT DISTINCT 4 * + 33 AS col0
----
132

query I rowsort
SELECT NULLIF ( 31, + 19 + + + 90 / - - 80 + + + 17 ) + 19 col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7252
SELECT + + CAST( - - 32 AS SIGNED ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-7252
SELECT + + CAST ( - - 32 AS INTEGER ) AS col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7253
SELECT 66 * MIN( - CAST( NULL AS SIGNED ) ) + - 71 - + + 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7253
SELECT 66 * MIN ( - CAST ( NULL AS INTEGER ) ) + - 71 - + + 26 AS col2
----
NULL

query I rowsort
SELECT ALL - 74 * + + 9 + 98 AS col1
----
-568

query II rowsort
SELECT 53 + 87, 1 * + 57 AS col0
----
140
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7256
SELECT 84 DIV + - COALESCE ( - 70, + MIN( 18 ), COUNT( * ) * + SUM( DISTINCT - + 63 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7256
SELECT 84 / + - COALESCE ( - 70, + MIN ( 18 ), COUNT ( * ) * + SUM ( DISTINCT - + 63 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7257
SELECT + + 17 * - 36 - - 43 + ( 6 ) * + - 71 + 52 + - - 63 * + 26 AS col0, 7 + - CAST( NULL AS SIGNED )
----
695
NULL

skipif mysql # not compatible
query II rowsort label-7257
SELECT + + 17 * - 36 - - 43 + ( 6 ) * + - 71 + 52 + - - 63 * + 26 AS col0, 7 + - CAST ( NULL AS INTEGER )
----
695
NULL

query I rowsort
SELECT ALL 23 + + 15 col0
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-7259
SELECT ALL 62 + - + 63 + 78 * + 29 AS col1, + ( + 35 ) * - + COUNT( * )
----
2261
-35

skipif mysql # not compatible
query II rowsort label-7259
SELECT ALL 62 + - + 63 + 78 * + 29 AS col1, + ( + 35 ) * - + COUNT ( * )
----
2261
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7260
SELECT DISTINCT 36 + + + CAST( NULL AS DECIMAL ) * + 46 - - ( 35 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT 36 + + + CAST ( NULL AS REAL ) * + 46 - - ( 35 ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7261
SELECT ALL - COUNT( * ) DIV - 76 * + 1
----
0

skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL - COUNT ( * ) / - 76 * + 1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7262
SELECT 2 + - ( - 79 ) + - - 54 * + 33 * 33 + + 3 DIV - COUNT( * )
----
58884

skipif mysql # not compatible
query I rowsort label-7262
SELECT 2 + - ( - 79 ) + - - 54 * + 33 * 33 + + 3 / - COUNT ( * )
----
58884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7263
SELECT - - ( COUNT( * ) ) * + NULLIF ( + 95, - 80 * + + CAST( + 27 AS SIGNED ) + + 18 + + 73 ) - + 92 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7263
SELECT - - ( COUNT ( * ) ) * + NULLIF ( + 95, - 80 * + + CAST ( + 27 AS INTEGER ) + + 18 + + 73 ) - + 92 AS col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7264
SELECT ALL + 6 + - + 36 + + - MIN( + 13 ) * + + 98 * - ( - 50 ), 29 * 42 AS col1
----
-63730
1218

skipif mysql # not compatible
query II rowsort label-7264
SELECT ALL + 6 + - + 36 + + - MIN ( + 13 ) * + + 98 * - ( - 50 ), 29 * 42 AS col1
----
-63730
1218

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT DISTINCT + CASE - COUNT( * ) WHEN - - 83 THEN - 48 * + + 17 - - MIN( DISTINCT - 7 ) WHEN COALESCE ( - + 50, - - COUNT( * ) * - 53 + + NULLIF ( 44, + 87 * + COALESCE ( + 43, + + 94 ) + - 81 ) + 77 / 22 * + - 61 + + CASE ( 59 ) WHEN + 29 THEN NULL WHEN 16 THEN NULL ELSE 30 END + - 83 + COUNT( * ), + SUM( ( - 47 ) ) * + 8 + 23 * COUNT( * ) ) + 45 THEN 28 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7265
SELECT DISTINCT + CASE - COUNT ( * ) WHEN - - 83 THEN - 48 * + + 17 - - MIN ( DISTINCT - 7 ) WHEN COALESCE ( - + 50, - - COUNT ( * ) * - 53 + + NULLIF ( 44, + 87 * + COALESCE ( + 43, + + 94 ) + - 81 ) + 77 / 22 * + - 61 + + CASE ( 59 ) WHEN + 29 THEN NULL WHEN 16 THEN NULL ELSE 30 END + - 83 + COUNT ( * ), + SUM ( ( - 47 ) ) * + 8 + 23 * COUNT ( * ) ) + 45 THEN 28 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 66 * - 44
----
-2904

query II rowsort
SELECT DISTINCT 50 AS col0, + 36 + - 14 AS col1
----
50
22

query I rowsort
SELECT DISTINCT + 94 - 8 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT 11 + + 39 - - - COUNT( * ) + + ( - 73 ) - + 18 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-7269
SELECT 11 + + 39 - - - COUNT ( * ) + + ( - 73 ) - + 18 AS col2
----
-42

query I rowsort
SELECT NULLIF ( + 76, - + ( - 85 ) / + 32 + + - 77 ) * - 28 * - + 77
----
163856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7271
SELECT 50 * + CAST( - + 93 AS SIGNED ) AS col2
----
-4650

skipif mysql # not compatible
query I rowsort label-7271
SELECT 50 * + CAST ( - + 93 AS INTEGER ) AS col2
----
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT ( - 14 ) + - COALESCE ( - 50, + COUNT( * ) ) + - 69 + - 81 AS col1
----
-114

skipif mysql # not compatible
query I rowsort label-7272
SELECT ( - 14 ) + - COALESCE ( - 50, + COUNT ( * ) ) + - 69 + - 81 AS col1
----
-114

query I rowsort
SELECT ALL + 76 - + + 56 AS col0
----
20

query II rowsort
SELECT DISTINCT 26 AS col2, 91
----
26
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7275
SELECT DISTINCT + 50 * + 51 * - - CASE 45 WHEN - - CASE + + 11 WHEN + 58 THEN NULLIF ( + 85, + + 5 ) WHEN ( - 51 ) THEN NULL WHEN + 73 * 84 * - - ( CAST( + 81 AS SIGNED ) ) + + - 51 THEN NULL ELSE NULL END * - 74 * + ( AVG ( DISTINCT + - 81 ) ) THEN NULL WHEN COUNT( * ) * + AVG ( ALL + + 71 ) THEN 30 * + ( + 58 ) + 3 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7275
SELECT DISTINCT + 50 * + 51 * - - CASE 45 WHEN - - CASE + + 11 WHEN + 58 THEN NULLIF ( + 85, + + 5 ) WHEN ( - 51 ) THEN NULL WHEN + 73 * 84 * - - ( CAST ( + 81 AS INTEGER ) ) + + - 51 THEN NULL ELSE NULL END * - 74 * + ( AVG ( DISTINCT + - 81 ) ) THEN NULL WHEN COUNT ( * ) * + AVG ( ALL + + 71 ) THEN 30 * + ( + 58 ) + 3 ELSE NULL END
----
NULL

query I rowsort
SELECT 39 * + - 78
----
-3042

query I rowsort
SELECT 75 * - - 77 * - 30 * + - 99 * - - 77 AS col2
----
1320684750

query I rowsort
SELECT ALL - 5 * - 62 AS col0
----
310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7279
SELECT + 95 DIV - ( 21 ) + - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-7279
SELECT + 95 / - ( 21 ) + - COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT ALL + + 1 + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL + + 1 + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7281
SELECT MIN( - + 40 ) + - MIN( ALL + 75 ) + - + 42 - + 99 + + 80 DIV - - 14 AS col1
----
-251

skipif mysql # not compatible
query I rowsort label-7281
SELECT MIN ( - + 40 ) + - MIN ( ALL + 75 ) + - + 42 - + 99 + + 80 / - - 14 AS col1
----
-251

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7282
SELECT DISTINCT + + CAST( + 7 AS SIGNED ) + 97 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT + + CAST ( + 7 AS INTEGER ) + 97 AS col2
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7283
SELECT DISTINCT + 84 + - CAST( NULL AS SIGNED ) + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT + 84 + - CAST ( NULL AS INTEGER ) + - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT ALL COUNT( * ) + 96 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-7284
SELECT ALL COUNT ( * ) + 96 AS col0
----
97

query II rowsort
SELECT DISTINCT - 50 AS col1, 87 AS col1
----
-50
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7286
SELECT MAX( - + ( 20 ) ) DIV + + 1 + - - 17, 97 AS col1
----
-3
97

skipif mysql # not compatible
query II rowsort label-7286
SELECT MAX ( - + ( 20 ) ) / + + 1 + - - 17, 97 AS col1
----
-3
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT 70 * COALESCE ( - MIN( ALL ( + 99 ) ), - MIN( DISTINCT + 94 ) )
----
-6930

skipif mysql # not compatible
query I rowsort label-7287
SELECT 70 * COALESCE ( - MIN ( ALL ( + 99 ) ), - MIN ( DISTINCT + 94 ) )
----
-6930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7288
SELECT - 13 + - - MAX( CAST( NULL AS SIGNED ) ) col1, 45 AS col2
----
NULL
45

skipif mysql # not compatible
query II rowsort label-7288
SELECT - 13 + - - MAX ( CAST ( NULL AS INTEGER ) ) col1, 45 AS col2
----
NULL
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT ALL - + MAX( + + 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL - + MAX ( + + 67 ) AS col0
----
-67

query II rowsort
SELECT - 42 * - 21 + 74 + 39 + 86 AS col0, - 55
----
1081
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7291
SELECT ALL 10 + - - 29 - - CAST( - 3 AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL 10 + - - 29 - - CAST ( - 3 AS INTEGER )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7292
SELECT - MAX( + 12 ) * - 50 * - 90 * + + CASE + 89 WHEN - COUNT( ALL + - 11 ) THEN - 13 WHEN - 59 THEN NULL WHEN 57 * - COUNT( * ) * - COALESCE ( + CAST( NULL AS SIGNED ), ( 54 ) ) THEN NULL END * - + ( - ( + ( 3 ) ) ) * 29 * 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7292
SELECT - MAX ( + 12 ) * - 50 * - 90 * + + CASE + 89 WHEN - COUNT ( ALL + - 11 ) THEN - 13 WHEN - 59 THEN NULL WHEN 57 * - COUNT ( * ) * - COALESCE ( + CAST ( NULL AS INTEGER ), ( 54 ) ) THEN NULL END * - + ( - ( + ( 3 ) ) ) * 29 * 46 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 91 - 15 col1
----
76

query I rowsort
SELECT DISTINCT 41 - 78 + 56 col2
----
19

query I rowsort
SELECT - 66 - 30 AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT - MIN( DISTINCT + 21 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-7296
SELECT - MIN ( DISTINCT + 21 ) AS col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-7297
SELECT ALL 36 DIV + + 85
----
0

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL 36 / + + 85
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7298
SELECT + 48 DIV 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7298
SELECT + 48 / 94 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7299
SELECT + 59 * 6 DIV 32 * 24
----
264

skipif mysql # not compatible
query I rowsort label-7299
SELECT + 59 * 6 / 32 * 24
----
264

query I rowsort
SELECT + 65 + + 42 * + 87 AS col0
----
3719

query I rowsort
SELECT DISTINCT 71 * - 38 AS col2
----
-2698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7302
SELECT ALL 62 AS col0, 47 * - + CAST( NULL AS SIGNED ) + 15 + + COUNT( ALL - + CAST( + + 73 AS SIGNED ) ) - CAST( + COUNT( * ) AS SIGNED ) / + 69
----
62
NULL

skipif mysql # not compatible
query II rowsort label-7302
SELECT ALL 62 AS col0, 47 * - + CAST ( NULL AS INTEGER ) + 15 + + COUNT ( ALL - + CAST ( + + 73 AS INTEGER ) ) - CAST ( + COUNT ( * ) AS INTEGER ) / + 69
----
62
NULL

query I rowsort
SELECT + 35 * - 7 AS col2
----
-245

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT - COUNT( * ) + + + 13
----
12

skipif mysql # not compatible
query I rowsort label-7304
SELECT - COUNT ( * ) + + + 13
----
12

query I rowsort
SELECT DISTINCT 65 * + 44
----
2860

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT - NULLIF ( 9, - MAX( + + 43 ) * 21 * 43 / 26 )
----
-9

skipif mysql # not compatible
query I rowsort label-7306
SELECT - NULLIF ( 9, - MAX ( + + 43 ) * 21 * 43 / 26 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT + MIN( 1 ) - - + 65 + + 60 AS col0
----
126

skipif mysql # not compatible
query I rowsort label-7307
SELECT + MIN ( 1 ) - - + 65 + + 60 AS col0
----
126

query I rowsort
SELECT ALL + 72 * + 23 * - 81 AS col0
----
-134136

onlyif mysql # aggregate syntax: 
query II rowsort label-7309
SELECT 90 AS col1, SUM( DISTINCT 42 )
----
90
42

skipif mysql # not compatible
query II rowsort label-7309
SELECT 90 AS col1, SUM ( DISTINCT 42 )
----
90
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT ALL ( + COUNT( - - 34 ) ) * - 81 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL ( + COUNT ( - - 34 ) ) * - 81 AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT DISTINCT MAX( - - 46 )
----
46

skipif mysql # not compatible
query I rowsort label-7311
SELECT DISTINCT MAX ( - - 46 )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7312
SELECT DISTINCT CAST( NULL AS SIGNED ) * 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 72 AS col1
----
NULL

query II rowsort
SELECT 71 AS col1, + 20 * - ( - 98 ) AS col1
----
71
1960

query I rowsort
SELECT - ( - 91 ) * 60
----
5460

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7315
SELECT ALL 64 + - CASE + 56 WHEN - 8 / CAST( NULL AS SIGNED ) THEN + 93 - - 94 WHEN + COALESCE ( 72, - + CAST( 68 AS SIGNED ) ) THEN NULL ELSE NULL END, - 21 AS col1, - - 2 AS col2
----
NULL
-21
2

skipif mysql # not compatible
query III rowsort label-7315
SELECT ALL 64 + - CASE + 56 WHEN - 8 / CAST ( NULL AS INTEGER ) THEN + 93 - - 94 WHEN + COALESCE ( 72, - + CAST ( 68 AS INTEGER ) ) THEN NULL ELSE NULL END, - 21 AS col1, - - 2 AS col2
----
NULL
-21
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT + MAX( - 85 ) * MAX( 38 )
----
-3230

skipif mysql # not compatible
query I rowsort label-7316
SELECT + MAX ( - 85 ) * MAX ( 38 )
----
-3230

query I rowsort
SELECT - ( + 64 ) + + 64 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7318
SELECT 84, - 48 * + COUNT( * ) + + 26 + + COUNT( * ) + 98 * + CAST( NULL AS SIGNED ) + 4 AS col1
----
84
NULL

skipif mysql # not compatible
query II rowsort label-7318
SELECT 84, - 48 * + COUNT ( * ) + + 26 + + COUNT ( * ) + 98 * + CAST ( NULL AS INTEGER ) + 4 AS col1
----
84
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7319
SELECT + ( + 59 ) DIV + 90 + - 86 - - 89 DIV - 58 * + 1
----
-87

skipif mysql # not compatible
query I rowsort label-7319
SELECT + ( + 59 ) / + 90 + - 86 - - 89 / - 58 * + 1
----
-87

query I rowsort
SELECT DISTINCT + - 69 AS col1
----
-69

query I rowsort
SELECT DISTINCT + + 36 * 13 AS col2
----
468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7322
SELECT ALL - COUNT( + - 69 ) * - 49 + - 25 * + - CASE 84 WHEN + 51 THEN 47 + - + ( 76 ) END - 7 + + 65 - - COUNT( * ) + - + 95 * - CAST( - CAST( - 28 AS DECIMAL ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL - COUNT ( + - 69 ) * - 49 + - 25 * + - CASE 84 WHEN + 51 THEN 47 + - + ( 76 ) END - 7 + + 65 - - COUNT ( * ) + - + 95 * - CAST ( - CAST ( - 28 AS REAL ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7323
SELECT ALL + + NULLIF ( + + COUNT( * ), + 53 ) * + 77 + + 11 + COUNT( * ) DIV + - 2
----
88

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL + + NULLIF ( + + COUNT ( * ), + 53 ) * + 77 + + 11 + COUNT ( * ) / + - 2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7324
SELECT - - SUM( + 3 ) DIV - 1 col0
----
-3

skipif mysql # not compatible
query I rowsort label-7324
SELECT - - SUM ( + 3 ) / - 1 col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7325
SELECT ALL 69 * + 24 / - - 64 + - CAST( NULL AS SIGNED ) + - 94 - + + 7 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL 69 * + 24 / - - 64 + - CAST ( NULL AS INTEGER ) + - 94 - + + 7 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT ALL - - 61 * + - 27 * NULLIF ( + 83, + - NULLIF ( + + 15, - - COALESCE ( + COUNT( * ), + 61 ) ) ) AS col0
----
-136701

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL - - 61 * + - 27 * NULLIF ( + 83, + - NULLIF ( + + 15, - - COALESCE ( + COUNT ( * ), + 61 ) ) ) AS col0
----
-136701

onlyif mysql # DIV for integer division: 
query I rowsort label-7327
SELECT + - 79 * - + 59 - - 21 DIV - ( - 93 )
----
4661

skipif mysql # not compatible
query I rowsort label-7327
SELECT + - 79 * - + 59 - - 21 / - ( - 93 )
----
4661

onlyif mysql # aggregate syntax: 
query II rowsort label-7328
SELECT + COUNT( * ) AS col0, 24 - COUNT( * )
----
1
23

skipif mysql # not compatible
query II rowsort label-7328
SELECT + COUNT ( * ) AS col0, 24 - COUNT ( * )
----
1
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT ALL - COALESCE ( - 17, + + 49 ) * - SUM( - 69 )
----
1173

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL - COALESCE ( - 17, + + 49 ) * - SUM ( - 69 )
----
1173

query I rowsort
SELECT - 27 + + 6
----
-21

query I rowsort
SELECT - 41 + 44 * + 91 AS col2
----
3963

query I rowsort
SELECT - 11 * 45 * - - 48 AS col2
----
-23760

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT ALL - - MIN( DISTINCT + + 43 ) * 94 + + 65 AS col0
----
4107

skipif mysql # not compatible
query I rowsort label-7333
SELECT ALL - - MIN ( DISTINCT + + 43 ) * 94 + + 65 AS col0
----
4107

query II rowsort
SELECT + 57, - 71 AS col1
----
57
-71

query II rowsort
SELECT + 91 AS col2, - 57
----
91
-57

query I rowsort
SELECT ALL + CASE + - 62 WHEN - 4 + 31 THEN NULL WHEN NULLIF ( - + 85, + 93 ) - 4 THEN NULL ELSE + + 60 + - 40 END
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT ALL + NULLIF ( 11, COUNT( * ) ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-7337
SELECT ALL + NULLIF ( 11, COUNT ( * ) ) AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7338
SELECT - + NULLIF ( - 54, - 38 + + + CAST( NULL AS SIGNED ) ) + 55 + + + SUM( DISTINCT - - 25 ) * + 23 + - 52
----
632

skipif mysql # not compatible
query I rowsort label-7338
SELECT - + NULLIF ( - 54, - 38 + + + CAST ( NULL AS INTEGER ) ) + 55 + + + SUM ( DISTINCT - - 25 ) * + 23 + - 52
----
632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7339
SELECT ALL + - 36 * + ( - CAST( 52 AS SIGNED ) ) - 78
----
1794

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL + - 36 * + ( - CAST ( 52 AS INTEGER ) ) - 78
----
1794

query I rowsort
SELECT - - 34 + - 40
----
-6

query I rowsort
SELECT - - 49 * - 32 * + - 79 + + ( - 81 ) col0
----
123791

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7342
SELECT ALL + CAST( - + 92 AS SIGNED ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL + CAST ( - + 92 AS INTEGER ) AS col0
----
-92

query I rowsort
SELECT - 42 + 6
----
-36

query I rowsort
SELECT + 48 - - 18
----
66

query I rowsort
SELECT + 24 - - 70 AS col2
----
94

query I rowsort
SELECT ALL 30 * - 18 AS col0
----
-540

query I rowsort
SELECT - 36 * - ( - 86 )
----
-3096

query II rowsort
SELECT + 42 * + 53, NULLIF ( 11, - - COALESCE ( - + 69, + 83 ) + 46 + - 94 ) col0
----
2226
11

query II rowsort
SELECT DISTINCT ( - + 34 ) AS col2, CASE + ( - - 66 ) WHEN - 48 + + 79 * 1 THEN NULL ELSE - + 66 END
----
-34
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7350
SELECT ALL - CAST( - NULLIF ( - MAX( - CASE - 49 WHEN + 54 THEN NULL ELSE - + 8 END ), - 94 ) AS SIGNED ) * COUNT( + 27 ) * - 11 * 61 * - 33 - + 70 AS col0
----
-177214

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL - CAST ( - NULLIF ( - MAX ( - CASE - 49 WHEN + 54 THEN NULL ELSE - + 8 END ), - 94 ) AS INTEGER ) * COUNT ( + 27 ) * - 11 * 61 * - 33 - + 70 AS col0
----
-177214

query I rowsort
SELECT - 93 + 44 + - 10 AS col0
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7352
SELECT DISTINCT 81 DIV COUNT( * ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7352
SELECT DISTINCT 81 / COUNT ( * ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT + NULLIF ( CASE - + ( 60 ) WHEN - CASE - COUNT( * ) WHEN 49 THEN - 1 END THEN NULL ELSE ( - 38 ) END, + 44 ) + - MAX( ALL + 90 ) AS col0
----
-128

skipif mysql # not compatible
query I rowsort label-7353
SELECT + NULLIF ( CASE - + ( 60 ) WHEN - CASE - COUNT ( * ) WHEN 49 THEN - 1 END THEN NULL ELSE ( - 38 ) END, + 44 ) + - MAX ( ALL + 90 ) AS col0
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7354
SELECT - CAST( 37 AS SIGNED ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-7354
SELECT - CAST ( 37 AS INTEGER ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-7355
SELECT DISTINCT SUM( + + 40 ) + - 67 AS col1, 83 - - CASE + 8 WHEN - + 75 THEN + + MAX( ALL + + 85 ) END AS col2
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-7355
SELECT DISTINCT SUM ( + + 40 ) + - 67 AS col1, 83 - - CASE + 8 WHEN - + 75 THEN + + MAX ( ALL + + 85 ) END AS col2
----
-27
NULL

query I rowsort
SELECT DISTINCT 87 + + - 20
----
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7357
SELECT ALL NULLIF ( 81, 23 ) + - COALESCE ( 8, + 24 * + + COALESCE ( 43, - 33 ) ) / + 97 / - CAST( NULL AS DECIMAL ) * - + MIN( + 49 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL NULLIF ( 81, 23 ) + - COALESCE ( 8, + 24 * + + COALESCE ( 43, - 33 ) ) / + 97 / - CAST ( NULL AS REAL ) * - + MIN ( + 49 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7358
SELECT + CAST( NULL AS SIGNED ) + - 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7358
SELECT + CAST ( NULL AS INTEGER ) + - 50 AS col1
----
NULL

query I rowsort
SELECT ALL 1 + - - 96
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT ALL - NULLIF ( 66, + ( NULLIF ( + ( + COUNT( * ) ), 54 ) ) )
----
-66

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL - NULLIF ( 66, + ( NULLIF ( + ( + COUNT ( * ) ), 54 ) ) )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7361
SELECT + 45 + - 6, + 26 DIV - ( + 6 ) * - COUNT( * ) AS col0
----
39
4

skipif mysql # not compatible
query II rowsort label-7361
SELECT + 45 + - 6, + 26 / - ( + 6 ) * - COUNT ( * ) AS col0
----
39
4

query I rowsort
SELECT ALL + 3 + + + ( 93 ) + + 6
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT + MIN( ALL + 70 ) + - 34 * + + 55
----
-1800

skipif mysql # not compatible
query I rowsort label-7363
SELECT + MIN ( ALL + 70 ) + - 34 * + + 55
----
-1800

onlyif mysql # DIV for integer division: 
query I rowsort label-7364
SELECT ALL 42 DIV - + 9 + - 16 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL 42 / - + 9 + - 16 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT + MAX( - - 26 ) + - - 78 AS col0
----
104

skipif mysql # not compatible
query I rowsort label-7365
SELECT + MAX ( - - 26 ) + - - 78 AS col0
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-7366
SELECT - - COUNT( * ) + + 29 AS col2, + COUNT( * )
----
30
1

skipif mysql # not compatible
query II rowsort label-7366
SELECT - - COUNT ( * ) + + 29 AS col2, + COUNT ( * )
----
30
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT + MIN( 60 ) col2
----
60

skipif mysql # not compatible
query I rowsort label-7367
SELECT + MIN ( 60 ) col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT + ( - COUNT( * ) ) * - 76 + - + 13 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-7368
SELECT + ( - COUNT ( * ) ) * - 76 + - + 13 AS col0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7369
SELECT ALL - + MAX( DISTINCT + + 22 ) DIV + COUNT( * ) - - - COUNT( * ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-7369
SELECT ALL - + MAX ( DISTINCT + + 22 ) / + COUNT ( * ) - - - COUNT ( * ) col0
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7370
SELECT + + MAX( - 61 ) * MIN( 16 ) DIV COUNT( * ) + + 64 AS col2
----
-912

skipif mysql # not compatible
query I rowsort label-7370
SELECT + + MAX ( - 61 ) * MIN ( 16 ) / COUNT ( * ) + + 64 AS col2
----
-912

query I rowsort
SELECT + + 29 * + ( + 11 ) * 12
----
3828

query I rowsort
SELECT ALL + - 54 * - 97 AS col0
----
5238

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT + + COUNT( - ( 39 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7373
SELECT + + COUNT ( - ( 39 ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7374
SELECT 0 DIV - 25
----
0

skipif mysql # not compatible
query I rowsort label-7374
SELECT 0 / - 25
----
0

query I rowsort
SELECT ALL + + ( - 24 ) * - + 11
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT NULLIF ( - 23, + COUNT( * ) + + - MIN( + 41 ) ) + - 88
----
-111

skipif mysql # not compatible
query I rowsort label-7376
SELECT NULLIF ( - 23, + COUNT ( * ) + + - MIN ( + 41 ) ) + - 88
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7377
SELECT 24 * - CAST( - - 40 AS SIGNED )
----
-960

skipif mysql # not compatible
query I rowsort label-7377
SELECT 24 * - CAST ( - - 40 AS INTEGER )
----
-960

query I rowsort
SELECT 59 + - 12 AS col2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7379
SELECT 30 DIV - 72 * + - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7379
SELECT 30 / - 72 * + - 90 AS col0
----
0

query I rowsort
SELECT ALL 1 * 42
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7381
SELECT DISTINCT + 0 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7381
SELECT DISTINCT + 0 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 76 * + 10 AS col0
----
760

query I rowsort
SELECT 65 * - 90 AS col2
----
-5850

query I rowsort
SELECT ALL - 72 + + 47 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT ALL + 18 + MIN( ALL - + 95 ) - 33 AS col1
----
-110

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL + 18 + MIN ( ALL - + 95 ) - 33 AS col1
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7386
SELECT - 71 AS col1, - SUM( ( + CAST( NULL AS SIGNED ) ) ) / 97 + CASE + 32 WHEN - - COUNT( + CAST( NULL AS DECIMAL ) ) THEN 0 ELSE - 56 END + + CASE - 24 WHEN - 39 + - 32 THEN + COUNT( * ) / + 34 END * + ( + 52 )
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-7386
SELECT - 71 AS col1, - SUM ( ( + CAST ( NULL AS INTEGER ) ) ) / 97 + CASE + 32 WHEN - - COUNT ( + CAST ( NULL AS REAL ) ) THEN 0 ELSE - 56 END + + CASE - 24 WHEN - 39 + - 32 THEN + COUNT ( * ) / + 34 END * + ( + 52 )
----
-71
NULL

query I rowsort
SELECT DISTINCT - 55 + - - 17
----
-38

query I rowsort
SELECT 49 - 17 AS col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7389
SELECT ALL - 46 * + - COUNT( - 58 ) DIV - 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7389
SELECT ALL - 46 * + - COUNT ( - 58 ) / - 57 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7390
SELECT 55 DIV + CAST( ( + 78 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7390
SELECT 55 / + CAST ( ( + 78 ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7391
SELECT 91 + + 28 + + COALESCE ( + 27, - 43 DIV + + 62 + - 47 - - MAX( + 46 ) ) * 18 - - - 42 AS col0
----
563

skipif mysql # not compatible
query I rowsort label-7391
SELECT 91 + + 28 + + COALESCE ( + 27, - 43 / + + 62 + - 47 - - MAX ( + 46 ) ) * 18 - - - 42 AS col0
----
563

onlyif mysql # DIV for integer division: 
query II rowsort label-7392
SELECT - 80 AS col1, 93 DIV + - 47
----
-80
-1

skipif mysql # not compatible
query II rowsort label-7392
SELECT - 80 AS col1, 93 / + - 47
----
-80
-1

query I rowsort
SELECT DISTINCT - 28 * 57 AS col1
----
-1596

query II rowsort
SELECT 39, NULLIF ( 40, + 9 * + + 82 ) AS col1
----
39
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7395
SELECT 81 * - 9 * + 26 AS col0, + COUNT( * ) * + - CAST( + + 84 AS SIGNED ) col0
----
-18954
-84

skipif mysql # not compatible
query II rowsort label-7395
SELECT 81 * - 9 * + 26 AS col0, + COUNT ( * ) * + - CAST ( + + 84 AS INTEGER ) col0
----
-18954
-84

query II rowsort
SELECT ALL 91, ( + 12 ) AS col2
----
91
12

query I rowsort
SELECT DISTINCT - 28 * - 33 * - 72 AS col0
----
-66528

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT DISTINCT + ( - 99 ) + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-7398
SELECT DISTINCT + ( - 99 ) + COUNT ( * )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7399
SELECT ALL CAST( - 87 AS SIGNED ) DIV - 13 AS col2, COUNT( * ) - - - COUNT( * ) AS col2
----
6
0

skipif mysql # not compatible
query II rowsort label-7399
SELECT ALL CAST ( - 87 AS INTEGER ) / - 13 AS col2, COUNT ( * ) - - - COUNT ( * ) AS col2
----
6
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7400
SELECT + 82 DIV + + 37 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7400
SELECT + 82 / + + 37 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT DISTINCT COUNT( * ) - + - 85 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-7401
SELECT DISTINCT COUNT ( * ) - + - 85 AS col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7402
SELECT COALESCE ( + + 52, - 71 * - NULLIF ( + 34, CASE - 30 WHEN 66 THEN + COUNT( * ) + - COUNT( * ) WHEN - + ( 87 ) THEN NULL WHEN - 59 - ( - COALESCE ( - NULLIF ( + AVG ( 3 ), CASE SUM( + 88 ) WHEN - COUNT( DISTINCT - 48 ) THEN NULL ELSE - + CAST( + - 51 AS DECIMAL ) END * - + COUNT( * ) ), + + 39 * + 6 * 12 - - 70 * 31, 1 ) ) + - ( 64 ) * 54 THEN NULL ELSE NULL END ) - + 39, + 83 + 12 ) * COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-7402
SELECT COALESCE ( + + 52, - 71 * - NULLIF ( + 34, CASE - 30 WHEN 66 THEN + COUNT ( * ) + - COUNT ( * ) WHEN - + ( 87 ) THEN NULL WHEN - 59 - ( - COALESCE ( - NULLIF ( + AVG ( 3 ), CASE SUM ( + 88 ) WHEN - COUNT ( DISTINCT - 48 ) THEN NULL ELSE - + CAST ( + - 51 AS REAL ) END * - + COUNT ( * ) ), + + 39 * + 6 * 12 - - 70 * 31, 1 ) ) + - ( 64 ) * 54 THEN NULL ELSE NULL END ) - + 39, + 83 + 12 ) * COUNT ( * ) AS col0
----
52

query I rowsort
SELECT + ( + ( + 28 ) ) col1
----
28

query I rowsort
SELECT DISTINCT + 89 * + + 22 AS col1
----
1958

query I rowsort
SELECT 22 * + - 17 * + + 67 * - 74 * + 62
----
114966104

query II rowsort
SELECT + + 38 AS col1, 20
----
38
20

query I rowsort
SELECT 84 * - 69 AS col0
----
-5796

query I rowsort
SELECT 71 + 0
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-7409
SELECT ALL - + 65 AS col1, COUNT( * )
----
-65
1

skipif mysql # not compatible
query II rowsort label-7409
SELECT ALL - + 65 AS col1, COUNT ( * )
----
-65
1

query I rowsort
SELECT 2 * 69 AS col1
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7411
SELECT - 51 * - COUNT( * ) * + 88 + 70 + - + NULLIF ( + - COUNT( * ), + COALESCE ( COALESCE ( 39, - CASE - COUNT( * ) WHEN + ( - 55 ) THEN - 61 / - CAST( + 47 AS SIGNED ) * + 18 + - MAX( 22 ) WHEN + - 13 + - 40 * - 95 THEN NULL END + + - COALESCE ( + - 90, + 47 ) ), + 39 / + 20 * + + 47 * - 49 + + 67 ) * + 12 + ( NULLIF ( - 0, - 37 ) ) ) + 94
----
4653

skipif mysql # not compatible
query I rowsort label-7411
SELECT - 51 * - COUNT ( * ) * + 88 + 70 + - + NULLIF ( + - COUNT ( * ), + COALESCE ( COALESCE ( 39, - CASE - COUNT ( * ) WHEN + ( - 55 ) THEN - 61 / - CAST ( + 47 AS INTEGER ) * + 18 + - MAX ( 22 ) WHEN + - 13 + - 40 * - 95 THEN NULL END + + - COALESCE ( + - 90, + 47 ) ), + 39 / + 20 * + + 47 * - 49 + + 67 ) * + 12 + ( NULLIF ( - 0, - 37 ) ) ) + 94
----
4653

query I rowsort
SELECT DISTINCT - + 83 col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7413
SELECT 13 * 46 - CASE - - 8 WHEN - + COALESCE ( 56, - 35 + - NULLIF ( ( - - 44 ), 11 + - + ( + 42 ) + CAST( + COUNT( * ) AS SIGNED ) ), + 52 ) THEN - ( + + 57 ) WHEN MAX( 92 ) THEN NULL WHEN ( + + CASE 46 WHEN + - 37 THEN NULL ELSE 39 + - - COUNT( * ) END ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7413
SELECT 13 * 46 - CASE - - 8 WHEN - + COALESCE ( 56, - 35 + - NULLIF ( ( - - 44 ), 11 + - + ( + 42 ) + CAST ( + COUNT ( * ) AS INTEGER ) ), + 52 ) THEN - ( + + 57 ) WHEN MAX ( 92 ) THEN NULL WHEN ( + + CASE 46 WHEN + - 37 THEN NULL ELSE 39 + - - COUNT ( * ) END ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT ALL - 86 + - - COUNT( * ) + 18
----
-67

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL - 86 + - - COUNT ( * ) + 18
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT ALL + 13 * + + MAX( - - 87 ) * - 60 AS col2
----
-67860

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL + 13 * + + MAX ( - - 87 ) * - 60 AS col2
----
-67860

query I rowsort
SELECT 69 + - 3 AS col2
----
66

query I rowsort
SELECT ALL 47 + - 65 + + 14 * + 84 * 40 AS col0
----
47022

query I rowsort
SELECT 50 * - 63 + - + 50 * 77 AS col2
----
-7000

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT 46 * - - MIN( ALL - 56 ) AS col0
----
-2576

skipif mysql # not compatible
query I rowsort label-7419
SELECT 46 * - - MIN ( ALL - 56 ) AS col0
----
-2576

query I rowsort
SELECT ( + - 99 ) + 31 * + + 80 AS col0
----
2381

query II rowsort
SELECT ALL + 14 * - - 42 AS col0, - ( - 94 ) + 32 + - + 35 AS col2
----
588
91

onlyif mysql # DIV for integer division: 
query II rowsort label-7422
SELECT 94 - - 64 col2, + 16 * 0 + - 34 DIV 73 AS col2
----
158
0

skipif mysql # not compatible
query II rowsort label-7422
SELECT 94 - - 64 col2, + 16 * 0 + - 34 / 73 AS col2
----
158
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7423
SELECT ALL - 41 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL - 41 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT ALL - COUNT( * ) + - 70 - - 24
----
-47

skipif mysql # not compatible
query I rowsort label-7424
SELECT ALL - COUNT ( * ) + - 70 - - 24
----
-47

query I rowsort
SELECT 84 + - 44 * + - 58
----
2636

query I rowsort
SELECT ALL - 42 - 50 + + + 18
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT ALL SUM( DISTINCT + 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7427
SELECT ALL SUM ( DISTINCT + 42 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT 71 + + - 29 + 42 + - 44 * 74 + + - COUNT( * ) + 3 + 82 - + COUNT( * ) * - COUNT( * ) + 39 * 30 AS col1
----
-1917

skipif mysql # not compatible
query I rowsort label-7428
SELECT 71 + + - 29 + 42 + - 44 * 74 + + - COUNT ( * ) + 3 + 82 - + COUNT ( * ) * - COUNT ( * ) + 39 * 30 AS col1
----
-1917

query I rowsort
SELECT + 71 * 22 - - + 3 * + 75 + + + 52 AS col1
----
1839

onlyif mysql # aggregate syntax: 
query II rowsort label-7430
SELECT + 41 * - COUNT( * ) AS col0, 10 * + NULLIF ( + 16, ( + - 89 ) ) AS col0
----
-41
160

skipif mysql # not compatible
query II rowsort label-7430
SELECT + 41 * - COUNT ( * ) AS col0, 10 * + NULLIF ( + 16, ( + - 89 ) ) AS col0
----
-41
160

query I rowsort
SELECT + 80 + + 12
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-7432
SELECT DISTINCT + 1 - - + 31 * - NULLIF ( - - COUNT( * ), - + ( + - 70 ) - 46 + - 17 * 10 * - 50 ) + - 11 + 65 + - + 48 * + - MIN( - + 37 ), + 84 AS col1
----
-1752
84

skipif mysql # not compatible
query II rowsort label-7432
SELECT DISTINCT + 1 - - + 31 * - NULLIF ( - - COUNT ( * ), - + ( + - 70 ) - 46 + - 17 * 10 * - 50 ) + - 11 + 65 + - + 48 * + - MIN ( - + 37 ), + 84 AS col1
----
-1752
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7433
SELECT 91 + - CAST( NULL AS SIGNED ) * + + 31 + - + SUM( 36 ) + MIN( ALL - - 52 ) / + 73 + + 67 - 38 AS col2, 56 * - 17
----
NULL
-952

skipif mysql # not compatible
query II rowsort label-7433
SELECT 91 + - CAST ( NULL AS INTEGER ) * + + 31 + - + SUM ( 36 ) + MIN ( ALL - - 52 ) / + 73 + + 67 - 38 AS col2, 56 * - 17
----
NULL
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT - 7 * + 77 + + COUNT( * ) * + 52
----
-487

skipif mysql # not compatible
query I rowsort label-7434
SELECT - 7 * + 77 + + COUNT ( * ) * + 52
----
-487

onlyif mysql # aggregate syntax: 
query II rowsort label-7435
SELECT ALL + 52 * + + 47 AS col1, COUNT( ( + - 97 ) )
----
2444
1

skipif mysql # not compatible
query II rowsort label-7435
SELECT ALL + 52 * + + 47 AS col1, COUNT ( ( + - 97 ) )
----
2444
1

query I rowsort
SELECT + 30 + + 11 * 13 * + 72 AS col1
----
10326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7437
SELECT - + 96 + COUNT( ALL + - NULLIF ( 59, + CAST( 61 AS SIGNED ) ) ) + - 32
----
-127

skipif mysql # not compatible
query I rowsort label-7437
SELECT - + 96 + COUNT ( ALL + - NULLIF ( 59, + CAST ( 61 AS INTEGER ) ) ) + - 32
----
-127

query I rowsort
SELECT ALL + - 82 * - 82 AS col2
----
6724

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7439
SELECT + - 22 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7439
SELECT + - 22 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7440
SELECT + + COUNT( * ) DIV 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7440
SELECT + + COUNT ( * ) / 94 AS col2
----
0

query I rowsort
SELECT - + 36 * + + 32 AS col0
----
-1152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7442
SELECT + CAST( - 96 AS SIGNED ) + 27
----
-69

skipif mysql # not compatible
query I rowsort label-7442
SELECT + CAST ( - 96 AS INTEGER ) + 27
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7443
SELECT DISTINCT + - COALESCE ( + + CASE + 26 WHEN 85 THEN 89 WHEN + ( + 89 ) THEN - - COUNT( * ) * COUNT( * ) * - 99 ELSE NULL END, - 48, + - CASE + 69 WHEN 48 * + 95 THEN NULL ELSE - COALESCE ( - SUM( DISTINCT + 47 ), - ( COUNT( * ) ) ) END * - + 97, - CAST( NULL AS SIGNED ) ) * - CAST( COUNT( * ) AS SIGNED ) * + 43 * - 97 + - - COUNT( * ) col2
----
200209

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT + - COALESCE ( + + CASE + 26 WHEN 85 THEN 89 WHEN + ( + 89 ) THEN - - COUNT ( * ) * COUNT ( * ) * - 99 ELSE NULL END, - 48, + - CASE + 69 WHEN 48 * + 95 THEN NULL ELSE - COALESCE ( - SUM ( DISTINCT + 47 ), - ( COUNT ( * ) ) ) END * - + 97, - CAST ( NULL AS INTEGER ) ) * - CAST ( COUNT ( * ) AS INTEGER ) * + 43 * - 97 + - - COUNT ( * ) col2
----
200209

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT ALL ( + 46 ) * - 89 + 57 + + NULLIF ( + - COUNT( * ), - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL ( + 46 ) * - 89 + 57 + + NULLIF ( + - COUNT ( * ), - COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT 81 * 31 AS col0
----
2511

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7446
SELECT + COUNT( * ) * + - CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL ) * - + 40 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7446
SELECT + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ) * - + 40 col2
----
NULL

query I rowsort
SELECT - 53 * 47 AS col0
----
-2491

query I rowsort
SELECT ALL 65 * 14 * - + COALESCE ( 7, 82 + - 23 ) AS col1
----
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT + 35 + + COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-7449
SELECT + 35 + + COUNT ( * ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT MAX( DISTINCT - - 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7450
SELECT MAX ( DISTINCT - - 14 ) AS col1
----
14

query I rowsort
SELECT + 17 + + 24 - - NULLIF ( 12, - CASE - 30 WHEN 1 / 87 + + 95 + - 15 THEN + 91 WHEN + 0 THEN 4 ELSE NULL END - - 7 )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7452
SELECT + CAST( - CAST( - - 50 AS SIGNED ) AS SIGNED ) + + + 14 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-7452
SELECT + CAST ( - CAST ( - - 50 AS INTEGER ) AS INTEGER ) + + + 14 AS col2
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7453
SELECT ALL 99 DIV NULLIF ( + 6, + 74 * + COUNT( * ) ) * - 61 + + COUNT( * ) AS col0
----
-975

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL 99 / NULLIF ( + 6, + 74 * + COUNT ( * ) ) * - 61 + + COUNT ( * ) AS col0
----
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT MAX( DISTINCT 19 )
----
19

skipif mysql # not compatible
query I rowsort label-7454
SELECT MAX ( DISTINCT 19 )
----
19

query II rowsort
SELECT - ( + ( + + 73 ) ) col0, 70 AS col1
----
-73
70

query I rowsort
SELECT + ( + 79 ) - - + 39
----
118

query I rowsort
SELECT - 45 * - ( ( 6 ) ) AS col1
----
270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7458
SELECT ALL COUNT( 71 ) * - - ( - COUNT( * ) ) * + 89 + + - 75 DIV - 63
----
-88

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL COUNT ( 71 ) * - - ( - COUNT ( * ) ) * + 89 + + - 75 / - 63
----
-88

query I rowsort
SELECT - 63 + + - 23 AS col0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7460
SELECT - 39 * + - 67 + - CAST( + + 75 AS SIGNED ) + + COUNT( 17 )
----
2539

skipif mysql # not compatible
query I rowsort label-7460
SELECT - 39 * + - 67 + - CAST ( + + 75 AS INTEGER ) + + COUNT ( 17 )
----
2539

query I rowsort
SELECT - 48 + + 14
----
-34

query I rowsort
SELECT - 5 * + 23
----
-115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7463
SELECT - CAST( NULL AS SIGNED ) - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7463
SELECT - CAST ( NULL AS INTEGER ) - 0
----
NULL

query I rowsort
SELECT ALL ( + - 64 ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-7465
SELECT + + 56 * - 21 + - CASE - COUNT( * ) WHEN + ( + + COUNT( * ) ) THEN + ( + NULLIF ( + 62, - 49 + - 95 ) ) * - 18 * + 99 * + 75 WHEN - 11 THEN NULL END + - 89 col1, + 48 * - 13
----
NULL
-624

skipif mysql # not compatible
query II rowsort label-7465
SELECT + + 56 * - 21 + - CASE - COUNT ( * ) WHEN + ( + + COUNT ( * ) ) THEN + ( + NULLIF ( + 62, - 49 + - 95 ) ) * - 18 * + 99 * + 75 WHEN - 11 THEN NULL END + - 89 col1, + 48 * - 13
----
NULL
-624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7466
SELECT - + SUM( 94 ) * - 11 * + + 19 + - - 13 DIV + - 36 AS col0
----
19646

skipif mysql # not compatible
query I rowsort label-7466
SELECT - + SUM ( 94 ) * - 11 * + + 19 + - - 13 / + - 36 AS col0
----
19646

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7467
SELECT - NULLIF ( - + CAST( + 21 AS SIGNED ), - - 8 * COUNT( * ) * - + CAST( NULL AS SIGNED ) + - 4 + 23 * + 50 )
----
21

skipif mysql # not compatible
query I rowsort label-7467
SELECT - NULLIF ( - + CAST ( + 21 AS INTEGER ), - - 8 * COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + - 4 + 23 * + 50 )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7468
SELECT ALL + - SUM( 67 ) * - + CASE 77 WHEN - + 81 * MIN( ALL - 58 ) THEN + 17 + + MIN( ALL + + 52 ) WHEN - 81 * - - 1 THEN + CASE + 98 WHEN + - 31 * - ( + 0 ) * + 9 / + + 50 / - 19 + + 74 THEN + + 80 - MAX( ALL 47 ) - 16 / - 4 * + COUNT( * ) + 56 * + CAST( NULL AS DECIMAL ) END ELSE + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL + - SUM ( 67 ) * - + CASE 77 WHEN - + 81 * MIN ( ALL - 58 ) THEN + 17 + + MIN ( ALL + + 52 ) WHEN - 81 * - - 1 THEN + CASE + 98 WHEN + - 31 * - ( + 0 ) * + 9 / + + 50 / - 19 + + 74 THEN + + 80 - MAX ( ALL 47 ) - 16 / - 4 * + COUNT ( * ) + 56 * + CAST ( NULL AS REAL ) END ELSE + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT - COALESCE ( + 50, - + 68 * 10 ) * 89 AS col0
----
-4450

query I rowsort
SELECT ALL + 79 + - + 18 col1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-7471
SELECT ALL + 96 DIV - 51 + - 10 + - + COALESCE ( - 88, 62, - ( - + ( + 37 ) ) ) + - 7 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL + 96 / - 51 + - 10 + - + COALESCE ( - 88, 62, - ( - + ( + 37 ) ) ) + - 7 AS col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7472
SELECT - MAX( ALL + 67 ) DIV - - 12 - CASE + - MAX( DISTINCT + 66 ) WHEN - + 25 * 56 - COUNT( * ) THEN - + 96 + + 3 WHEN + + NULLIF ( - - 34, 5 ) THEN NULL ELSE COUNT( * ) END * - 48
----
43

skipif mysql # not compatible
query I rowsort label-7472
SELECT - MAX ( ALL + 67 ) / - - 12 - CASE + - MAX ( DISTINCT + 66 ) WHEN - + 25 * 56 - COUNT ( * ) THEN - + 96 + + 3 WHEN + + NULLIF ( - - 34, 5 ) THEN NULL ELSE COUNT ( * ) END * - 48
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT 49 * - 16 * + + 67 + - MIN( + 77 ) AS col0
----
-52605

skipif mysql # not compatible
query I rowsort label-7473
SELECT 49 * - 16 * + + 67 + - MIN ( + 77 ) AS col0
----
-52605

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7474
SELECT CAST( NULL AS SIGNED ) AS col0, 1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7474
SELECT CAST ( NULL AS INTEGER ) AS col0, 1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT + SUM( + + 18 )
----
18

skipif mysql # not compatible
query I rowsort label-7475
SELECT + SUM ( + + 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT + 59 * - - ( + + COUNT( ALL 19 ) ) * - 0 col1
----
0

skipif mysql # not compatible
query I rowsort label-7476
SELECT + 59 * - - ( + + COUNT ( ALL 19 ) ) * - 0 col1
----
0

query I rowsort
SELECT ALL + NULLIF ( - 30, + 51 * + 45 ) AS col0
----
-30

query I rowsort
SELECT - 30 + - + 65
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7479
SELECT + 12 DIV MAX( + 16 )
----
0

skipif mysql # not compatible
query I rowsort label-7479
SELECT + 12 / MAX ( + 16 )
----
0

query I rowsort
SELECT ALL 52 * - - 67 * - - 19 + + 52 AS col1
----
66248

query I rowsort
SELECT - 23 * + 1 * + 35 AS col0
----
-805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7482
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) AS col0, + 55 + 54 AS col2
----
NULL
109

skipif mysql # not compatible
query II rowsort label-7482
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0, + 55 + 54 AS col2
----
NULL
109

query I rowsort
SELECT + COALESCE ( - - 5, 40 ) col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7484
SELECT + CAST( - - 66 AS SIGNED ) + + 75 AS col2
----
141

skipif mysql # not compatible
query I rowsort label-7484
SELECT + CAST ( - - 66 AS INTEGER ) + + 75 AS col2
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7485
SELECT - CASE - + 32 WHEN 72 THEN - + COUNT( * ) + + 6 * ( - 53 ) WHEN - ( CAST( - ( 7 ) AS SIGNED ) ) * + 18 - MAX( DISTINCT 92 ) - + ( - NULLIF ( - 57, - + 32 + + 28 * MAX( DISTINCT + 59 ) ) ) * 64 - - + ( + + 57 ) + + 71 * - 3 THEN NULL ELSE NULL END * COALESCE ( COUNT( * ), 72 ) - + + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7485
SELECT - CASE - + 32 WHEN 72 THEN - + COUNT ( * ) + + 6 * ( - 53 ) WHEN - ( CAST ( - ( 7 ) AS INTEGER ) ) * + 18 - MAX ( DISTINCT 92 ) - + ( - NULLIF ( - 57, - + 32 + + 28 * MAX ( DISTINCT + 59 ) ) ) * 64 - - + ( + + 57 ) + + 71 * - 3 THEN NULL ELSE NULL END * COALESCE ( COUNT ( * ), 72 ) - + + 42 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT COUNT( * ) * 12 * COUNT( * ) + - ( 88 )
----
-76

skipif mysql # not compatible
query I rowsort label-7486
SELECT COUNT ( * ) * 12 * COUNT ( * ) + - ( 88 )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7487
SELECT + CAST( NULL AS SIGNED ) + - AVG ( - 1 ) * MAX( - - 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7487
SELECT + CAST ( NULL AS INTEGER ) + - AVG ( - 1 ) * MAX ( - - 45 )
----
NULL

query I rowsort
SELECT + 98 + 6
----
104

query I rowsort
SELECT - - ( - - 39 )
----
39

query I rowsort
SELECT 51 * - 63
----
-3213

onlyif mysql # DIV for integer division: 
query I rowsort label-7491
SELECT DISTINCT - + 57 * 84 DIV 90 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT - + 57 * 84 / 90 AS col0
----
-53

query II rowsort
SELECT - - 0 AS col1, + 85
----
0
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7493
SELECT - 25 DIV - + 28 * + + 92 + 6 + + - COUNT( * ) + + + 37 + + 72 * 37 * - SUM( ALL + 8 )
----
-21270

skipif mysql # not compatible
query I rowsort label-7493
SELECT - 25 / - + 28 * + + 92 + 6 + + - COUNT ( * ) + + + 37 + + 72 * 37 * - SUM ( ALL + 8 )
----
-21270

query I rowsort
SELECT 31 + 54 + + - 93 + 15 + 51 * - - 60 * - - 8 * - 7 AS col1
----
-171353

query II rowsort
SELECT - 71 AS col1, - 92 AS col2
----
-71
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7496
SELECT + CAST( - 76 AS SIGNED ) + 50
----
-26

skipif mysql # not compatible
query I rowsort label-7496
SELECT + CAST ( - 76 AS INTEGER ) + 50
----
-26

query II rowsort
SELECT - 5, 49 AS col2
----
-5
49

query I rowsort
SELECT + 92 + - + 39
----
53

query II rowsort
SELECT ALL + 8 + 55 AS col1, 70
----
63
70

query I rowsort
SELECT ALL - 39 + 53
----
14

query I rowsort
SELECT 0 + 12 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT - COUNT( * ) + - NULLIF ( - 32, - 16 + 58 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-7502
SELECT - COUNT ( * ) + - NULLIF ( - 32, - 16 + 58 ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-7503
SELECT - + COUNT( * ) AS col2, 82 AS col0
----
-1
82

skipif mysql # not compatible
query II rowsort label-7503
SELECT - + COUNT ( * ) AS col2, 82 AS col0
----
-1
82

query I rowsort
SELECT 75 + - + 37 + 5 AS col1
----
43

query I rowsort
SELECT ALL - ( ( 93 ) )
----
-93

query I rowsort
SELECT + 67 * + 3 + - + 91 - + + 42 / + ( - 39 ) * + CASE + 79 WHEN - AVG ( - 64 ) THEN + - ( 12 ) WHEN + 49 / 3 THEN - - 37 + 95 * - 50 ELSE NULL END * - + ( 26 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 55 - + 25 col2
----
30

query I rowsort
SELECT DISTINCT - 0 * CASE + 79 WHEN + 16 * 41 / - + 1 THEN - 51 WHEN - - 76 + 40 + - ( - 39 ) + 82 * + 65 * + + 24 * + - 12 + COALESCE ( 86, 35 + + 8 ) + - + 4 THEN NULL END * 77 AS col1
----
NULL

query II rowsort
SELECT ALL - ( + - 1 ) AS col2, + 58 AS col2
----
1
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7510
SELECT 64 DIV + + 84
----
0

skipif mysql # not compatible
query I rowsort label-7510
SELECT 64 / + + 84
----
0

query II rowsort
SELECT 0 * - + 51, 76 col1
----
0
76

query I rowsort
SELECT 90 * - 72 * + + 23 AS col0
----
-149040

query I rowsort
SELECT 25 * 83
----
2075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7514
SELECT ALL - CAST( + 63 AS SIGNED ) col0
----
-63

skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL - CAST ( + 63 AS INTEGER ) col0
----
-63

query I rowsort
SELECT ALL COALESCE ( - + 41, + 71 + - + 39 ) * - 76 * + 67 + + 84
----
208856

query I rowsort
SELECT - 83 + 34 * - + ( - - ( 13 ) )
----
-525

onlyif mysql # DIV for integer division: 
query I rowsort label-7517
SELECT 66 + - 40 DIV - 20 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-7517
SELECT 66 + - 40 / - 20 AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7518
SELECT - + CAST( 60 AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-7518
SELECT - + CAST ( 60 AS INTEGER )
----
-60

query I rowsort
SELECT DISTINCT 97 + - 80
----
17

query II rowsort
SELECT 35 + + - 6, + 97 col0
----
29
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT ALL - MAX( ALL 65 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL - MAX ( ALL 65 ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT - + COALESCE ( - COUNT( * ), ( 32 ), - - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7522
SELECT - + COALESCE ( - COUNT ( * ), ( 32 ), - - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL - + MIN( ALL + 21 ) * 3 / - 7 / + CASE + - 9 WHEN - 31 / - ( COUNT( * ) ) + + 68 + + 95 / ( COALESCE ( + 49, + 4, - 4 * - - 20 + + 55 ) ) * 98 + ( + + 16 ) THEN + 15 * + 85 WHEN - 91 + + MIN( + + 0 ) - 35 / - 96 THEN - + 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL - + MIN ( ALL + 21 ) * 3 / - 7 / + CASE + - 9 WHEN - 31 / - ( COUNT ( * ) ) + + 68 + + 95 / ( COALESCE ( + 49, + 4, - 4 * - - 20 + + 55 ) ) * 98 + ( + + 16 ) THEN + 15 * + 85 WHEN - 91 + + MIN ( + + 0 ) - 35 / - 96 THEN - + 0 END
----
NULL

query II rowsort
SELECT DISTINCT + + 34 + 19 + - - 26, 14 + + 20 + - ( + + 77 ) - 10 - - - 45 AS col0
----
79
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7525
SELECT DISTINCT + 55 + - - COUNT( * ) + + CAST( - 96 AS SIGNED ) - 35
----
-75

skipif mysql # not compatible
query I rowsort label-7525
SELECT DISTINCT + 55 + - - COUNT ( * ) + + CAST ( - 96 AS INTEGER ) - 35
----
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7526
SELECT + 65 - CAST( + 77 AS SIGNED ) DIV + + 55
----
64

skipif mysql # not compatible
query I rowsort label-7526
SELECT + 65 - CAST ( + 77 AS INTEGER ) / + + 55
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7527
SELECT - + NULLIF ( - - COUNT( * ), - 85 + + - 1 + + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) * 72 + - 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-7527
SELECT - + NULLIF ( - - COUNT ( * ), - 85 + + - 1 + + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 72 + - 0 )
----
-1

query II rowsort
SELECT DISTINCT 93, 23 * - 7 * - 64 AS col0
----
93
10304

onlyif mysql # aggregate syntax: 
query II rowsort label-7529
SELECT - MIN( - ( - 45 ) ), 90 AS col1
----
-45
90

skipif mysql # not compatible
query II rowsort label-7529
SELECT - MIN ( - ( - 45 ) ), 90 AS col1
----
-45
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7530
SELECT ALL - 49 AS col2, + COUNT( * ) + + + 47
----
-49
48

skipif mysql # not compatible
query II rowsort label-7530
SELECT ALL - 49 AS col2, + COUNT ( * ) + + + 47
----
-49
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7531
SELECT AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7531
SELECT AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT ALL 44 * ( - - 89 ) - + COUNT( * ) + - CASE + COALESCE ( + 97, + 41 * - - 55, - ( + + 65 ) + - - 39 ) WHEN + - 11 THEN - COUNT( * ) END + + - 8 + + + 95 * + - 73 * + 71 * - 6 * - 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL 44 * ( - - 89 ) - + COUNT ( * ) + - CASE + COALESCE ( + 97, + 41 * - - 55, - ( + + 65 ) + - - 39 ) WHEN + - 11 THEN - COUNT ( * ) END + + - 8 + + + 95 * + - 73 * + 71 * - 6 * - 58 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7533
SELECT + 63 * - + 95 + - MIN( - CAST( 98 AS SIGNED ) )
----
-5887

skipif mysql # not compatible
query I rowsort label-7533
SELECT + 63 * - + 95 + - MIN ( - CAST ( 98 AS INTEGER ) )
----
-5887

onlyif mysql # aggregate syntax: 
query II rowsort label-7534
SELECT COUNT( * ) AS col2, 56
----
1
56

skipif mysql # not compatible
query II rowsort label-7534
SELECT COUNT ( * ) AS col2, 56
----
1
56

onlyif mysql # DIV for integer division: 
query I rowsort label-7535
SELECT - 87 DIV + - 5 - + ( 74 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-7535
SELECT - 87 / + - 5 - + ( 74 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT ALL - CASE + 26 WHEN - - 2 - COUNT( * ) + + - 7 * 45 THEN + 82 * - 76 + 12 + + + 87 WHEN + + COUNT( * ) THEN - 49 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL - CASE + 26 WHEN - - 2 - COUNT ( * ) + + - 7 * 45 THEN + 82 * - 76 + 12 + + + 87 WHEN + + COUNT ( * ) THEN - 49 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT DISTINCT 34 * + + CASE + 91 WHEN 91 THEN NULL WHEN SUM( DISTINCT + - 8 ) / + + 53 THEN + 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT 34 * + + CASE + 91 WHEN 91 THEN NULL WHEN SUM ( DISTINCT + - 8 ) / + + 53 THEN + 93 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7538
SELECT ALL + 38 * - 90 + + + CAST( - + COALESCE ( - NULLIF ( + 95, - + 84 ), - 86 ) AS SIGNED ) + + - 88 + 38 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL + 38 * - 90 + + + CAST ( - + COALESCE ( - NULLIF ( + 95, - + 84 ), - 86 ) AS INTEGER ) + + - 88 + 38 * - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - 63 + - 30 col2
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7540
SELECT 74, - 81 DIV - COUNT( * ) AS col0
----
74
81

skipif mysql # not compatible
query II rowsort label-7540
SELECT 74, - 81 / - COUNT ( * ) AS col0
----
74
81

query I rowsort
SELECT ALL + 33 + + + 99 AS col1
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-7542
SELECT - 47 DIV - 73 + - 16 col2
----
-16

skipif mysql # not compatible
query I rowsort label-7542
SELECT - 47 / - 73 + - 16 col2
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7543
SELECT - 16 * - 58 DIV - + COUNT( * )
----
-928

skipif mysql # not compatible
query I rowsort label-7543
SELECT - 16 * - 58 / - + COUNT ( * )
----
-928

query I rowsort
SELECT DISTINCT + 41 + + 32 + - 25 * + - 48 col0
----
1273

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT + 30 * - 89 * - COUNT( * ) - 85 * ( - 39 ) AS col2
----
5985

skipif mysql # not compatible
query I rowsort label-7545
SELECT + 30 * - 89 * - COUNT ( * ) - 85 * ( - 39 ) AS col2
----
5985

query I rowsort
SELECT ALL + 92 + + - 84 AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-7547
SELECT - - MIN( DISTINCT + 80 ) - - 67 AS col2, - 53 + 71
----
147
18

skipif mysql # not compatible
query II rowsort label-7547
SELECT - - MIN ( DISTINCT + 80 ) - - 67 AS col2, - 53 + 71
----
147
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7548
SELECT - + CAST( NULL AS SIGNED ) * - + 58 - - 17 - + 68 + + COUNT( * ) / 12 * + - 22 + + + 99 * - - 99 + 31 + - - ( 39 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7548
SELECT - + CAST ( NULL AS INTEGER ) * - + 58 - - 17 - + 68 + + COUNT ( * ) / 12 * + - 22 + + + 99 * - - 99 + 31 + - - ( 39 ) AS col2
----
NULL

query I rowsort
SELECT - 1 + 3 + - - 71 * 80 AS col2
----
5682

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7550
SELECT ALL + COUNT( * ) DIV + + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL + COUNT ( * ) / + + 89 AS col2
----
0

query I rowsort
SELECT - + 26 + + 12 AS col0
----
-14

query I rowsort
SELECT ALL - 56 * + 21
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT - - SUM( - 61 ) + + + 0 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-7553
SELECT - - SUM ( - 61 ) + + + 0 AS col2
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7554
SELECT + 33 - - + CAST( - 96 AS SIGNED ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-7554
SELECT + 33 - - + CAST ( - 96 AS INTEGER ) AS col0
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7555
SELECT - COUNT( * ) + + 21 - - - 59 DIV COUNT( * ) * + 88 * - 7 + - - 30 AS col2
----
36394

skipif mysql # not compatible
query I rowsort label-7555
SELECT - COUNT ( * ) + + 21 - - - 59 / COUNT ( * ) * + 88 * - 7 + - - 30 AS col2
----
36394

query I rowsort
SELECT ALL ( + ( + + ( + 38 ) ) )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT ALL MIN( DISTINCT - - 59 ) * 71
----
4189

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL MIN ( DISTINCT - - 59 ) * 71
----
4189

query I rowsort
SELECT - NULLIF ( 20, + 89 ) AS col2
----
-20

query I rowsort
SELECT + 29 * 17 * - 72
----
-35496

onlyif mysql # DIV for integer division: 
query I rowsort label-7560
SELECT ALL 35 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL 35 / + 77
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7561
SELECT + SUM( + 44 ) AS col0, + 46 - - 79
----
44
125

skipif mysql # not compatible
query II rowsort label-7561
SELECT + SUM ( + 44 ) AS col0, + 46 - - 79
----
44
125

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT + 34 * - - SUM( ALL + 22 ) AS col1
----
748

skipif mysql # not compatible
query I rowsort label-7562
SELECT + 34 * - - SUM ( ALL + 22 ) AS col1
----
748

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT + ( - 30 ) * 46 + COUNT( DISTINCT + 12 ) AS col2
----
-1379

skipif mysql # not compatible
query I rowsort label-7563
SELECT + ( - 30 ) * 46 + COUNT ( DISTINCT + 12 ) AS col2
----
-1379

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT DISTINCT - 27 * + + 52 + COUNT( * )
----
-1403

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT - 27 * + + 52 + COUNT ( * )
----
-1403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7565
SELECT ALL + 44 * + + 78 * + CAST( NULL AS SIGNED ) / + 73 * 6 + + 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL + 44 * + + 78 * + CAST ( NULL AS INTEGER ) / + 73 * 6 + + 90 AS col0
----
NULL

query I rowsort
SELECT ALL 93 * + + 53 AS col1
----
4929

query II rowsort
SELECT DISTINCT - 11 * ( - + 97 ) + 58, - COALESCE ( 75, - 53 - - 82 ) AS col1
----
1125
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7568
SELECT + CAST( ( - 69 ) AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-7568
SELECT + CAST ( ( - 69 ) AS INTEGER )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7569
SELECT DISTINCT + 50 * 20 DIV - SUM( DISTINCT + 22 ) + 60 - - - 10 + + 61
----
66

skipif mysql # not compatible
query I rowsort label-7569
SELECT DISTINCT + 50 * 20 / - SUM ( DISTINCT + 22 ) + 60 - - - 10 + + 61
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT + MAX( DISTINCT 71 ) - - 23
----
94

skipif mysql # not compatible
query I rowsort label-7570
SELECT + MAX ( DISTINCT 71 ) - - 23
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT ALL - - 53 * COALESCE ( - 16, + 55 + COALESCE ( 62, + COUNT( + + 51 ), + 20 ), 24 ) + - + 7 col1
----
-855

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL - - 53 * COALESCE ( - 16, + 55 + COALESCE ( 62, + COUNT ( + + 51 ), + 20 ), 24 ) + - + 7 col1
----
-855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7572
SELECT + CAST( NULL AS SIGNED ) * - - ( 13 ) * - - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-7572
SELECT + CAST ( NULL AS INTEGER ) * - - ( 13 ) * - - 16
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7573
SELECT ALL - COUNT( * ) * 71 + + 1 DIV - 74 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL - COUNT ( * ) * 71 + + 1 / - 74 AS col2
----
-71

query I rowsort
SELECT - - 57 - 56 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT ALL - 51 * + MIN( + 54 ) AS col0
----
-2754

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL - 51 * + MIN ( + 54 ) AS col0
----
-2754

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT - - COUNT( * ) + - - 6 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-7576
SELECT - - COUNT ( * ) + - - 6 AS col2
----
7

query I rowsort
SELECT DISTINCT 96 * + 81 - 19
----
7757

query I rowsort
SELECT + - 96 * 92 + 14 * 19 AS col2
----
-8566

query II rowsort
SELECT - 8 * - 52 AS col2, - 50
----
416
-50

query I rowsort
SELECT + + 22 + + 88 AS col0
----
110

query I rowsort
SELECT - 35 - + - 51 AS col2
----
16

query I rowsort
SELECT - 74 * - 12 * + 43 AS col0
----
38184

query I rowsort
SELECT DISTINCT + 41 * - 16
----
-656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7584
SELECT - CAST( + 19 AS SIGNED ) DIV - 13 AS col2, - COALESCE ( + 91, 75 + 9 * 61 + 21 ) - + + 69 + - 8 + - COUNT( * ) AS col0
----
1
-169

skipif mysql # not compatible
query II rowsort label-7584
SELECT - CAST ( + 19 AS INTEGER ) / - 13 AS col2, - COALESCE ( + 91, 75 + 9 * 61 + 21 ) - + + 69 + - 8 + - COUNT ( * ) AS col0
----
1
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT ALL COUNT( * ) * + 69 * - ( + 22 ) AS col1
----
-1518

skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL COUNT ( * ) * + 69 * - ( + 22 ) AS col1
----
-1518

onlyif mysql # aggregate syntax: 
query II rowsort label-7586
SELECT 40 col0, - COUNT( * ) + + COALESCE ( - - 46, - 61 )
----
40
45

skipif mysql # not compatible
query II rowsort label-7586
SELECT 40 col0, - COUNT ( * ) + + COALESCE ( - - 46, - 61 )
----
40
45

query I rowsort
SELECT - 41 - - 24 col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7588
SELECT - ( - CAST( - 82 AS SIGNED ) ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-7588
SELECT - ( - CAST ( - 82 AS INTEGER ) ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT COUNT( * ) + - ( - - COUNT( * ) ) * - 37 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT COUNT ( * ) + - ( - - COUNT ( * ) ) * - 37 AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7590
SELECT DISTINCT + 79 + + + CAST( - 51 AS SIGNED ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-7590
SELECT DISTINCT + 79 + + + CAST ( - 51 AS INTEGER ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT ALL - ( - MIN( ALL 13 ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL - ( - MIN ( ALL 13 ) ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT ALL NULLIF ( + MAX( + 76 ), - 74 + + + 7 ) + 60 + NULLIF ( 67, + 65 ) * - + ( NULLIF ( - 17, - 56 - - + 82 ) ) AS col1
----
1275

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL NULLIF ( + MAX ( + 76 ), - 74 + + + 7 ) + 60 + NULLIF ( 67, + 65 ) * - + ( NULLIF ( - 17, - 56 - - + 82 ) ) AS col1
----
1275

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT + NULLIF ( + - 35, + 52 ) * - 69 + - MIN( ALL 26 )
----
2389

skipif mysql # not compatible
query I rowsort label-7593
SELECT + NULLIF ( + - 35, + 52 ) * - 69 + - MIN ( ALL 26 )
----
2389

query I rowsort
SELECT 98 * + 59 - + 19
----
5763

onlyif mysql # aggregate syntax: 
query II rowsort label-7595
SELECT - 20 + - + 8 * 27 col1, + COUNT( * )
----
-236
1

skipif mysql # not compatible
query II rowsort label-7595
SELECT - 20 + - + 8 * 27 col1, + COUNT ( * )
----
-236
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT - 10 * - ( + 71 ) / NULLIF ( + COALESCE ( - 53, 64, + 30 - - COUNT( * ) - 58 - + 91 + + 80 * 85 ), + - COUNT( * ) / + 4 ) + - ( + + 1 ) / + AVG ( + 91 ) + CASE CASE MIN( + 63 ) WHEN - 61 THEN NULL WHEN 41 + CASE - 15 WHEN + - 3 - + 85 THEN NULL ELSE - + COUNT( * ) END THEN NULL ELSE - COUNT( ALL + - 58 ) END WHEN + - 34 THEN NULL WHEN + 96 THEN + ( 50 ) + + 32 * 52 ELSE NULL END - NULLIF ( + 89 + - 42, + 42 ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7596
SELECT - 10 * - ( + 71 ) / NULLIF ( + COALESCE ( - 53, 64, + 30 - - COUNT ( * ) - 58 - + 91 + + 80 * 85 ), + - COUNT ( * ) / + 4 ) + - ( + + 1 ) / + AVG ( + 91 ) + CASE CASE MIN ( + 63 ) WHEN - 61 THEN NULL WHEN 41 + CASE - 15 WHEN + - 3 - + 85 THEN NULL ELSE - + COUNT ( * ) END THEN NULL ELSE - COUNT ( ALL + - 58 ) END WHEN + - 34 THEN NULL WHEN + 96 THEN + ( 50 ) + + 32 * 52 ELSE NULL END - NULLIF ( + 89 + - 42, + 42 ) * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL - + 2 + - - 64
----
62

query I rowsort
SELECT DISTINCT - 14 + + + 67 AS col0
----
53

query I rowsort
SELECT ALL + 81 * + 56 AS col0
----
4536

query I rowsort
SELECT DISTINCT + 22 * - 49
----
-1078

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT + 69 + COUNT( * ) col2
----
70

skipif mysql # not compatible
query I rowsort label-7601
SELECT + 69 + COUNT ( * ) col2
----
70

query I rowsort
SELECT ALL 53 - - 90 + - + 38
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-7603
SELECT 69 DIV 26 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7603
SELECT 69 / 26 AS col0
----
2

query I rowsort
SELECT - 92 * + ( 34 ) + + + 81
----
-3047

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7605
SELECT 9 * - 87 + + + 59 + - + 41 - - + 23 + - 39 + - 31 - - + COUNT( * ) * + 70 * - 44 * - NULLIF ( - CAST( NULL AS DECIMAL ), AVG ( ( 95 ) ) - 63 + 86 * NULLIF ( + - 94, 57 ) ) * - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7605
SELECT 9 * - 87 + + + 59 + - + 41 - - + 23 + - 39 + - 31 - - + COUNT ( * ) * + 70 * - 44 * - NULLIF ( - CAST ( NULL AS REAL ), AVG ( ( 95 ) ) - 63 + 86 * NULLIF ( + - 94, 57 ) ) * - 72 AS col0
----
NULL

query I rowsort
SELECT - 36 * - 9 * - ( - + 12 )
----
3888

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7607
SELECT ALL - COUNT( * ) AS col2, 81 DIV 22 AS col0
----
-1
3

skipif mysql # not compatible
query II rowsort label-7607
SELECT ALL - COUNT ( * ) AS col2, 81 / 22 AS col0
----
-1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT + MIN( + + 24 ) col2
----
24

skipif mysql # not compatible
query I rowsort label-7608
SELECT + MIN ( + + 24 ) col2
----
24

query II rowsort
SELECT + 86 AS col2, 18 AS col2
----
86
18

query I rowsort
SELECT 70 * 48 + + 93
----
3453

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT COALESCE ( + 89, COUNT( * ), COUNT( * ) + - + ( + + COUNT( * ) ) ) * - 4 AS col0
----
-356

skipif mysql # not compatible
query I rowsort label-7611
SELECT COALESCE ( + 89, COUNT ( * ), COUNT ( * ) + - + ( + + COUNT ( * ) ) ) * - 4 AS col0
----
-356

query II rowsort
SELECT - + 84 AS col0, 52 AS col1
----
-84
52

query I rowsort
SELECT DISTINCT + 46 * - + 41 * - 75
----
141450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7614
SELECT ( + ( CAST( NULL AS SIGNED ) ) ) * 79 + + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7614
SELECT ( + ( CAST ( NULL AS INTEGER ) ) ) * 79 + + + 72
----
NULL

query I rowsort
SELECT 94 * - 56 AS col1
----
-5264

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7616
SELECT - 47 AS col0, + COUNT( * ) DIV - 9 AS col2
----
-47
0

skipif mysql # not compatible
query II rowsort label-7616
SELECT - 47 AS col0, + COUNT ( * ) / - 9 AS col2
----
-47
0

query I rowsort
SELECT 10 - + 88
----
-78

query II rowsort
SELECT DISTINCT 52, - 28 AS col0
----
52
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-7619
SELECT 84 + - - 79, COUNT( * ) AS col0
----
163
1

skipif mysql # not compatible
query II rowsort label-7619
SELECT 84 + - - 79, COUNT ( * ) AS col0
----
163
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7620
SELECT 19 - - + CAST( NULL AS SIGNED ) + + 96 * + MAX( DISTINCT - + 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7620
SELECT 19 - - + CAST ( NULL AS INTEGER ) + + 96 * + MAX ( DISTINCT - + 51 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT ALL + 65 + - COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL + 65 + - COUNT ( * ) AS col1
----
64

query I rowsort
SELECT 0 + 11
----
11

query II rowsort
SELECT - 14, - 84 AS col0
----
-14
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7624
SELECT DISTINCT - CAST( + 48 AS SIGNED ) * + 18
----
-864

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT - CAST ( + 48 AS INTEGER ) * + 18
----
-864

query I rowsort
SELECT DISTINCT - 20 + 76 + - 41 AS col1
----
15

query II rowsort
SELECT 99, + 44 AS col1
----
99
44

query I rowsort
SELECT 28 + 91 + + + 6 AS col0
----
125

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7628
SELECT ALL - COUNT( * ) + - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL - COUNT ( * ) + - - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT 99 * + + 92 * 14 AS col2
----
127512

query I rowsort
SELECT 34 * - 64 * + + 41
----
-89216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7631
SELECT ALL + COUNT( * ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL + COUNT ( * ) * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT ALL - COUNT( ALL 41 )
----
-1

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL - COUNT ( ALL 41 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT 3 * - COUNT( * ) * + + SUM( ALL - ( - - 30 ) ) * - 80 + + 86
----
-7114

skipif mysql # not compatible
query I rowsort label-7633
SELECT 3 * - COUNT ( * ) * + + SUM ( ALL - ( - - 30 ) ) * - 80 + + 86
----
-7114

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT ( + - MIN( 30 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-7634
SELECT ( + - MIN ( 30 ) )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7635
SELECT ALL + + CAST( NULL AS SIGNED ) * 74 AS col0, COUNT( * ) * - 14 DIV + 69
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7635
SELECT ALL + + CAST ( NULL AS INTEGER ) * 74 AS col0, COUNT ( * ) * - 14 / + 69
----
NULL
0

query I rowsort
SELECT DISTINCT - 63 - 69
----
-132

query I rowsort
SELECT DISTINCT - NULLIF ( + 27, - 99 ) AS col0
----
-27

query II rowsort
SELECT DISTINCT - + 19 AS col0, 69 * + 63 + + 28
----
-19
4375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7639
SELECT 35 * - CASE 89 WHEN + 78 + + - 25 / - 35 * + + 33 THEN NULL WHEN + 10 THEN - NULLIF ( 40, 11 * - COUNT( * ) - - CAST( NULL AS SIGNED ) * 88 ) - - 86 * - + 55 WHEN - 43 THEN + + ( + 27 ) + - MIN( DISTINCT 59 ) ELSE + - 40 END
----
1400

skipif mysql # not compatible
query I rowsort label-7639
SELECT 35 * - CASE 89 WHEN + 78 + + - 25 / - 35 * + + 33 THEN NULL WHEN + 10 THEN - NULLIF ( 40, 11 * - COUNT ( * ) - - CAST ( NULL AS INTEGER ) * 88 ) - - 86 * - + 55 WHEN - 43 THEN + + ( + 27 ) + - MIN ( DISTINCT 59 ) ELSE + - 40 END
----
1400

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7640
SELECT - 25 AS col2, 90 * - NULLIF ( + ( 66 ), + 70 + 48 * - COUNT( * ) * - 70 * + 99 * + AVG ( + 1 ) + CAST( + + 54 AS DECIMAL ) + - + 67 ) * - COUNT( + 78 ) * + 38
----
-25
225720

skipif mysql # not compatible
query II rowsort label-7640
SELECT - 25 AS col2, 90 * - NULLIF ( + ( 66 ), + 70 + 48 * - COUNT ( * ) * - 70 * + 99 * + AVG ( + 1 ) + CAST ( + + 54 AS REAL ) + - + 67 ) * - COUNT ( + 78 ) * + 38
----
-25
225720

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT ALL - SUM( 72 ) * - - 85 AS col2
----
-6120

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL - SUM ( 72 ) * - - 85 AS col2
----
-6120

query I rowsort
SELECT 14 * - 5 + NULLIF ( 39, + 71 + - 87 )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7643
SELECT + 99 + - CAST( NULL AS SIGNED ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7643
SELECT + 99 + - CAST ( NULL AS INTEGER ) - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7644
SELECT DISTINCT - + 20 DIV MIN( ALL - + 94 ) * + COUNT( * ) + - + 2 DIV - 1 AS col1, + 14
----
2
14

skipif mysql # not compatible
query II rowsort label-7644
SELECT DISTINCT - + 20 / MIN ( ALL - + 94 ) * + COUNT ( * ) + - + 2 / - 1 AS col1, + 14
----
2
14

query I rowsort
SELECT 83 + + - 3
----
80

query I rowsort
SELECT ALL - 17 * - 62 AS col1
----
1054

onlyif mysql # DIV for integer division: 
query I rowsort label-7647
SELECT - 92 DIV 14 + + 98
----
92

skipif mysql # not compatible
query I rowsort label-7647
SELECT - 92 / 14 + + 98
----
92

query I rowsort
SELECT + 32 * + 25 * + NULLIF ( + 44, 93 ) * - 91 + + + 58 AS col2
----
-3203142

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT DISTINCT CASE - 63 WHEN - 88 THEN NULL WHEN - 89 * 18 * + - CASE + - 24 WHEN - 94 * 57 * 24 THEN NULL WHEN + 79 * - - ( + 81 ) - + ( + - 43 ) * - - 36 / + COALESCE ( + + 54, 71 / - 15 * + 88 * + 64 * - + 38 + - 10 + - ( + CASE COUNT( * ) WHEN + 91 THEN NULL WHEN - 44 THEN NULL ELSE + NULLIF ( - 32, - NULLIF ( - + 75, 92 * - 1 + - COALESCE ( 46, + 52 * 29 + 90 ) ) ) END ) * ( 49 * + 9 + 10 * + 59 ) * - 59 ) - 98 THEN 82 ELSE - 78 * 48 END THEN NULL WHEN COUNT( 57 ) * - ( - 67 ) THEN 16 ELSE - NULLIF ( + COUNT( * ), 35 + 48 ) * CASE + 89 WHEN 27 THEN NULL WHEN - 17 THEN NULL ELSE + 39 END END + 20 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-7649
SELECT DISTINCT CASE - 63 WHEN - 88 THEN NULL WHEN - 89 * 18 * + - CASE + - 24 WHEN - 94 * 57 * 24 THEN NULL WHEN + 79 * - - ( + 81 ) - + ( + - 43 ) * - - 36 / + COALESCE ( + + 54, 71 / - 15 * + 88 * + 64 * - + 38 + - 10 + - ( + CASE COUNT ( * ) WHEN + 91 THEN NULL WHEN - 44 THEN NULL ELSE + NULLIF ( - 32, - NULLIF ( - + 75, 92 * - 1 + - COALESCE ( 46, + 52 * 29 + 90 ) ) ) END ) * ( 49 * + 9 + 10 * + 59 ) * - 59 ) - 98 THEN 82 ELSE - 78 * 48 END THEN NULL WHEN COUNT ( 57 ) * - ( - 67 ) THEN 16 ELSE - NULLIF ( + COUNT ( * ), 35 + 48 ) * CASE + 89 WHEN 27 THEN NULL WHEN - 17 THEN NULL ELSE + 39 END END + 20 AS col0
----
-19

query I rowsort
SELECT 22 - - + 54 * + 3
----
184

query II rowsort
SELECT ALL 6 + - 35 AS col2, - 18 + 5 + + 36 AS col2
----
-29
23

query I rowsort
SELECT ALL 70 + - 42 AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7653
SELECT + CAST( + - 0 AS SIGNED ) - - 73 * + - COUNT( * ) * 97 AS col2
----
-7081

skipif mysql # not compatible
query I rowsort label-7653
SELECT + CAST ( + - 0 AS INTEGER ) - - 73 * + - COUNT ( * ) * 97 AS col2
----
-7081

query I rowsort
SELECT - 34 * + 7
----
-238

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT ALL COUNT( ALL + 32 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL COUNT ( ALL + 32 ) AS col2
----
1

query I rowsort
SELECT DISTINCT 69 * 20 * - - 66 * - 72
----
-6557760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7657
SELECT ALL - 75 * + 55 * CASE + 72 WHEN - CAST( + 37 AS SIGNED ) * + 65 / + + 22 + + 72 + - 57 * + 93 THEN 36 WHEN + 22 THEN NULL WHEN 72 THEN NULL ELSE + 24 * - CAST( NULL AS SIGNED ) - - - COUNT( * ) + - 61 + - 27 END / + ( - ( + ( - 85 ) ) ) - - + 2 + - 18 * COUNT( * ) * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL - 75 * + 55 * CASE + 72 WHEN - CAST ( + 37 AS INTEGER ) * + 65 / + + 22 + + 72 + - 57 * + 93 THEN 36 WHEN + 22 THEN NULL WHEN 72 THEN NULL ELSE + 24 * - CAST ( NULL AS INTEGER ) - - - COUNT ( * ) + - 61 + - 27 END / + ( - ( + ( - 85 ) ) ) - - + 2 + - 18 * COUNT ( * ) * + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT - 38 - MIN( + 53 ) + + + ( 95 )
----
4

skipif mysql # not compatible
query I rowsort label-7658
SELECT - 38 - MIN ( + 53 ) + + + ( 95 )
----
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7659
SELECT ALL - 64 DIV 29 + + CAST( - - 24 AS SIGNED ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL - 64 / 29 + + CAST ( - - 24 AS INTEGER ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT - + 53 * - COUNT( 2 )
----
53

skipif mysql # not compatible
query I rowsort label-7660
SELECT - + 53 * - COUNT ( 2 )
----
53

query II rowsort
SELECT - + 9 + + + 57 * + - 60 AS col0, - 9 + + 17 AS col2
----
-3429
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT + + 31 * + - 70 * + 83 - + + COUNT( * ) AS col0
----
-180111

skipif mysql # not compatible
query I rowsort label-7662
SELECT + + 31 * + - 70 * + 83 - + + COUNT ( * ) AS col0
----
-180111

query II rowsort
SELECT DISTINCT - + 60 * ( - 89 ), 17 * + - 47 * + 61 AS col1
----
5340
-48739

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT 34 * + 90 + - COUNT( * ) - 57 + 53 * + + 64 * + 55 * + 31 col2
----
5786362

skipif mysql # not compatible
query I rowsort label-7664
SELECT 34 * + 90 + - COUNT ( * ) - 57 + 53 * + + 64 * + 55 * + 31 col2
----
5786362

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT - - COUNT( * ) - + 54
----
-53

skipif mysql # not compatible
query I rowsort label-7665
SELECT - - COUNT ( * ) - + 54
----
-53

query I rowsort
SELECT DISTINCT + + 92 col2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7667
SELECT ALL - ( - 89 ) * - 46 DIV - COUNT( * ) AS col1
----
4094

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL - ( - 89 ) * - 46 / - COUNT ( * ) AS col1
----
4094

onlyif mysql # DIV for integer division: 
query I rowsort label-7668
SELECT 68 * + 38 + + - 60 DIV 30 + + 10 AS col1
----
2592

skipif mysql # not compatible
query I rowsort label-7668
SELECT 68 * + 38 + + - 60 / 30 + + 10 AS col1
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT - + MAX( + 13 ) * - 18
----
234

skipif mysql # not compatible
query I rowsort label-7669
SELECT - + MAX ( + 13 ) * - 18
----
234

query II rowsort
SELECT + 92 AS col0, - 56 + + 54
----
92
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7671
SELECT ALL 30 * 39 + + 28 * - + COUNT( * ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL 30 * 39 + + 28 * - + COUNT ( * ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 34 * - ( - 79 ) + - - 2
----
2688

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT DISTINCT COUNT( * ) * + 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7673
SELECT DISTINCT COUNT ( * ) * + 3 AS col2
----
3

query I rowsort
SELECT DISTINCT + 20 + 41 AS col0
----
61

query I rowsort
SELECT + 47 * + CASE 15 WHEN + 46 THEN - 47 * + - 16 WHEN - 4 THEN NULL WHEN + + 36 THEN 68 ELSE - + 69 END col1
----
-3243

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT + 64 + + MIN( DISTINCT + 4 ) + + 14
----
82

skipif mysql # not compatible
query I rowsort label-7676
SELECT + 64 + + MIN ( DISTINCT + 4 ) + + 14
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7677
SELECT ALL + COUNT( * ) + + 71 + - 66 * 72 * - NULLIF ( + - 10, + 98 / CASE + COALESCE ( - COUNT( ALL 10 ), AVG ( ALL 90 ) ) WHEN - - CAST( SUM( DISTINCT - + 67 ) AS SIGNED ) + - 79 THEN NULL WHEN 32 * 94 + 20 THEN NULL ELSE + COUNT( * ) END + - - 79 - 62 )
----
-47448

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL + COUNT ( * ) + + 71 + - 66 * 72 * - NULLIF ( + - 10, + 98 / CASE + COALESCE ( - COUNT ( ALL 10 ), AVG ( ALL 90 ) ) WHEN - - CAST ( SUM ( DISTINCT - + 67 ) AS INTEGER ) + - 79 THEN NULL WHEN 32 * 94 + 20 THEN NULL ELSE + COUNT ( * ) END + - - 79 - 62 )
----
-47448

query I rowsort
SELECT + 58 - 45 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT + 17 * ( - - MAX( ALL + - 92 ) ) AS col0
----
-1564

skipif mysql # not compatible
query I rowsort label-7679
SELECT + 17 * ( - - MAX ( ALL + - 92 ) ) AS col0
----
-1564

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7680
SELECT ALL 68 AS col2, + CAST( NULL AS SIGNED )
----
68
NULL

skipif mysql # not compatible
query II rowsort label-7680
SELECT ALL 68 AS col2, + CAST ( NULL AS INTEGER )
----
68
NULL

query I rowsort
SELECT + 28 + - 50
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT + COUNT( * ) - + 51
----
-50

skipif mysql # not compatible
query I rowsort label-7682
SELECT + COUNT ( * ) - + 51
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7683
SELECT - CAST( NULL AS SIGNED ), COUNT( * ) + + 95 AS col0
----
NULL
96

skipif mysql # not compatible
query II rowsort label-7683
SELECT - CAST ( NULL AS INTEGER ), COUNT ( * ) + + 95 AS col0
----
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT + 4 + 15 + + - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-7684
SELECT + 4 + 15 + + - COUNT ( * )
----
18

query I rowsort
SELECT + 10 + 16
----
26

query I rowsort
SELECT ALL 16 - 46
----
-30

query I rowsort
SELECT + 22 * - + 76
----
-1672

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7688
SELECT ALL 79 col0, + 44 - + + NULLIF ( 66, 35 + - 19 + - + 12 * - 32 / 19 / - 23 + - - ( + NULLIF ( - 7, - CAST( NULL AS SIGNED ) ) ) * - 26 ) * + 92 AS col1
----
79
-6028

skipif mysql # not compatible
query II rowsort label-7688
SELECT ALL 79 col0, + 44 - + + NULLIF ( 66, 35 + - 19 + - + 12 * - 32 / 19 / - 23 + - - ( + NULLIF ( - 7, - CAST ( NULL AS INTEGER ) ) ) * - 26 ) * + 92 AS col1
----
79
-6028

query I rowsort
SELECT + 57 * - 30 AS col0
----
-1710

query I rowsort
SELECT + 74 + - 9
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7691
SELECT + + 99 + + CAST( - 88 AS SIGNED ) * + 48
----
-4125

skipif mysql # not compatible
query I rowsort label-7691
SELECT + + 99 + + CAST ( - 88 AS INTEGER ) * + 48
----
-4125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7692
SELECT ALL - CAST( - SUM( + NULLIF ( + + 3, + 5 ) ) AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL - CAST ( - SUM ( + NULLIF ( + + 3, + 5 ) ) AS INTEGER )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT + - COUNT( * ) * - 48 * + 76 * - COALESCE ( - 86, - 31 )
----
313728

skipif mysql # not compatible
query I rowsort label-7693
SELECT + - COUNT ( * ) * - 48 * + 76 * - COALESCE ( - 86, - 31 )
----
313728

query II rowsort
SELECT 97 col0, - 77
----
97
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7695
SELECT - 45 DIV + COUNT( * ) - - + 52 + + CASE 32 WHEN 31 + 11 + 99 THEN NULL WHEN - ( - 63 ) THEN - + 8 * + 40 * - 4 + 93 * - CAST( - + 17 AS SIGNED ) ELSE ( - - 73 ) - + 18 END * + + 4 - - 16
----
243

skipif mysql # not compatible
query I rowsort label-7695
SELECT - 45 / + COUNT ( * ) - - + 52 + + CASE 32 WHEN 31 + 11 + 99 THEN NULL WHEN - ( - 63 ) THEN - + 8 * + 40 * - 4 + 93 * - CAST ( - + 17 AS INTEGER ) ELSE ( - - 73 ) - + 18 END * + + 4 - - 16
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT ALL NULLIF ( COUNT( * ), 90 ) * - 45
----
-45

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL NULLIF ( COUNT ( * ), 90 ) * - 45
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-7697
SELECT - 58 + + 72 + - 0 + + + 84 + 7 DIV - 97 * - ( - 42 ) + + - 92 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-7697
SELECT - 58 + + 72 + - 0 + + + 84 + 7 / - 97 * - ( - 42 ) + + - 92 AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7698
SELECT + COUNT( * ) * - - CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7698
SELECT + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT ALL - COUNT( * ) * + ( + ( 28 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL - COUNT ( * ) * + ( + ( 28 ) )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7700
SELECT ALL + + 77 DIV + + COALESCE ( 84, + - CASE + + MAX( DISTINCT - 11 ) WHEN + - CAST( + 46 AS SIGNED ) THEN NULL WHEN + - 15 THEN + COUNT( * ) END + + 45, 65 * - - COALESCE ( 99, + 86 ) ) + + 59 col0
----
59

skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL + + 77 / + + COALESCE ( 84, + - CASE + + MAX ( DISTINCT - 11 ) WHEN + - CAST ( + 46 AS INTEGER ) THEN NULL WHEN + - 15 THEN + COUNT ( * ) END + + 45, 65 * - - COALESCE ( 99, + 86 ) ) + + 59 col0
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7701
SELECT DISTINCT + 19 DIV + 87 - + COUNT( * ) AS col1, 83 AS col1
----
-1
83

skipif mysql # not compatible
query II rowsort label-7701
SELECT DISTINCT + 19 / + 87 - + COUNT ( * ) AS col1, 83 AS col1
----
-1
83

onlyif mysql # DIV for integer division: 
query I rowsort label-7702
SELECT ALL 28 DIV + 48 + - - 38
----
38

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL 28 / + 48 + - - 38
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7703
SELECT - - 81 + - + 88 * 78 * COUNT( * ) DIV - + COUNT( * )
----
6945

skipif mysql # not compatible
query I rowsort label-7703
SELECT - - 81 + - + 88 * 78 * COUNT ( * ) / - + COUNT ( * )
----
6945

query I rowsort
SELECT + - 37 - 53
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7705
SELECT + 14 DIV + COUNT( * ) + 50
----
64

skipif mysql # not compatible
query I rowsort label-7705
SELECT + 14 / + COUNT ( * ) + 50
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7706
SELECT - 32 * 29 - CAST( 88 AS SIGNED ) AS col0
----
-1016

skipif mysql # not compatible
query I rowsort label-7706
SELECT - 32 * 29 - CAST ( 88 AS INTEGER ) AS col0
----
-1016

query I rowsort
SELECT DISTINCT - 34 + + - ( + + 11 ) - + - 66 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT ALL - ( NULLIF ( + MAX( - - 22 ), - ( + - 8 ) / + MIN( ALL - - 74 ) ) ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL - ( NULLIF ( + MAX ( - - 22 ), - ( + - 8 ) / + MIN ( ALL - - 74 ) ) ) AS col2
----
-22

query I rowsort
SELECT DISTINCT - 51 + - 54
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7710
SELECT DISTINCT - CAST( - - 55 AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-7710
SELECT DISTINCT - CAST ( - - 55 AS INTEGER )
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-7711
SELECT DISTINCT - COUNT( * ) + - 20 AS col2, - 7 + 3
----
-21
-4

skipif mysql # not compatible
query II rowsort label-7711
SELECT DISTINCT - COUNT ( * ) + - 20 AS col2, - 7 + 3
----
-21
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7712
SELECT ALL + 16 - + CAST( MAX( - 70 ) AS SIGNED ) AS col1, 39 AS col2
----
86
39

skipif mysql # not compatible
query II rowsort label-7712
SELECT ALL + 16 - + CAST ( MAX ( - 70 ) AS INTEGER ) AS col1, 39 AS col2
----
86
39

query I rowsort
SELECT 93 * 89 AS col2
----
8277

query I rowsort
SELECT 99 * + 55 AS col0
----
5445

onlyif mysql # aggregate syntax: 
query II rowsort label-7715
SELECT 71 * 64 + - COUNT( + 75 ) AS col2, - 76 AS col0
----
4543
-76

skipif mysql # not compatible
query II rowsort label-7715
SELECT 71 * 64 + - COUNT ( + 75 ) AS col2, - 76 AS col0
----
4543
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT COUNT( * ) * - + 66
----
-66

skipif mysql # not compatible
query I rowsort label-7716
SELECT COUNT ( * ) * - + 66
----
-66

query I rowsort
SELECT ALL + 71 * + - 7
----
-497

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT COUNT( * ) * - ( - + 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-7718
SELECT COUNT ( * ) * - ( - + 38 ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT ALL + ( - COUNT( * ) ) * MIN( 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL + ( - COUNT ( * ) ) * MIN ( 73 )
----
-73

query I rowsort
SELECT 2 * - 34 + 36 * - 5 AS col1
----
-248

query I rowsort
SELECT - COALESCE ( - + 70, - - 53 )
----
70

query I rowsort
SELECT ALL + - 76 + 49 + - 38 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT DISTINCT - - COUNT( * ) + + 35
----
36

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT - - COUNT ( * ) + + 35
----
36

query I rowsort
SELECT DISTINCT 48 * - 40 + 76 AS col2
----
-1844

query I rowsort
SELECT ALL - 32 + - + 23 * + - 52 AS col0
----
1164

query I rowsort
SELECT ALL - ( - - 84 ) AS col1
----
-84

query I rowsort
SELECT + 36 + + 63 * + 82
----
5202

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT ALL COUNT( * ) + - - 84 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL COUNT ( * ) + - - 84 AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7729
SELECT ALL 33 + CAST( NULL AS SIGNED ) + - NULLIF ( 1, + ( ( - + 68 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL 33 + CAST ( NULL AS INTEGER ) + - NULLIF ( 1, + ( ( - + 68 ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7730
SELECT - ( + COUNT( * ) ) DIV + 71 + MIN( 10 ) * 18 - + 30 DIV - - COALESCE ( - 32, 44 ) - + - SUM( ALL + + 58 )
----
238

skipif mysql # not compatible
query I rowsort label-7730
SELECT - ( + COUNT ( * ) ) / + 71 + MIN ( 10 ) * 18 - + 30 / - - COALESCE ( - 32, 44 ) - + - SUM ( ALL + + 58 )
----
238

query II rowsort
SELECT ALL - 36 + + 52, + 38 + - 82 col2
----
16
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7732
SELECT ALL + ( ( + 7 ) ) DIV + 52 * + 80 + + - 72 * ( 28 ) DIV - CAST( + MIN( - 53 ) AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL + ( ( + 7 ) ) / + 52 * + 80 + + - 72 * ( 28 ) / - CAST ( + MIN ( - 53 ) AS INTEGER )
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7733
SELECT ALL - COUNT( * ) - - COUNT( * ) DIV MAX( - + 76 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL - COUNT ( * ) - - COUNT ( * ) / MAX ( - + 76 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7734
SELECT 28 * + CAST( - 42 AS SIGNED )
----
-1176

skipif mysql # not compatible
query I rowsort label-7734
SELECT 28 * + CAST ( - 42 AS INTEGER )
----
-1176

onlyif mysql # DIV for integer division: 
query I rowsort label-7735
SELECT ALL 47 DIV - - 66
----
0

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL 47 / - - 66
----
0

query I rowsort
SELECT 99 + - + ( + + 38 )
----
61

query I rowsort
SELECT - 59 * + + 16 * + + 95 + + - 92
----
-89772

query III rowsort
SELECT 24 AS col1, - 84 + - + 70 col0, + 35 AS col0
----
24
-154
35

query I rowsort
SELECT 18 + - ( + 37 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT ALL + ( COUNT( * ) ) * + 41
----
41

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL + ( COUNT ( * ) ) * + 41
----
41

query I rowsort
SELECT 28 * - 81 AS col0
----
-2268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7742
SELECT 34 + + - 31 * ( - ( - COALESCE ( 37, 77 + + COUNT( * ), + CAST( NULL AS SIGNED ) + - 26 ) ) )
----
-1113

skipif mysql # not compatible
query I rowsort label-7742
SELECT 34 + + - 31 * ( - ( - COALESCE ( 37, 77 + + COUNT ( * ), + CAST ( NULL AS INTEGER ) + - 26 ) ) )
----
-1113

query I rowsort
SELECT DISTINCT NULLIF ( - + 70, - + 83 * - NULLIF ( - + 77, + 59 / - - 78 ) ) * - 64 AS col1
----
4480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7744
SELECT 44 + 15 * + COALESCE ( + SUM( ALL + + 62 ), CASE + - NULLIF ( - 44, + 34 ) WHEN CAST( COUNT( * ) AS SIGNED ) * + 84 * - 24 THEN - NULLIF ( 76, + - 13 * - - COUNT( * ) + - CASE + 73 WHEN + 75 THEN NULL ELSE COALESCE ( 47, - + 72 / 4 ) - + 41 * - 78 END ) ELSE NULL END, - COUNT( 78 ) ) * 8 * 28 * COUNT( * )
----
208364

skipif mysql # not compatible
query I rowsort label-7744
SELECT 44 + 15 * + COALESCE ( + SUM ( ALL + + 62 ), CASE + - NULLIF ( - 44, + 34 ) WHEN CAST ( COUNT ( * ) AS INTEGER ) * + 84 * - 24 THEN - NULLIF ( 76, + - 13 * - - COUNT ( * ) + - CASE + 73 WHEN + 75 THEN NULL ELSE COALESCE ( 47, - + 72 / 4 ) - + 41 * - 78 END ) ELSE NULL END, - COUNT ( 78 ) ) * 8 * 28 * COUNT ( * )
----
208364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7745
SELECT ALL + COUNT( DISTINCT + COALESCE ( + CAST( NULL AS SIGNED ), NULLIF ( - 25, 26 ), 12 ) ) * + + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL + COUNT ( DISTINCT + COALESCE ( + CAST ( NULL AS INTEGER ), NULLIF ( - 25, 26 ), 12 ) ) * + + COUNT ( * ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7746
SELECT 53 + + 49 - + + MAX( DISTINCT + - CAST( NULL AS DECIMAL ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7746
SELECT 53 + + 49 - + + MAX ( DISTINCT + - CAST ( NULL AS REAL ) ) col2
----
NULL

query I rowsort
SELECT 34 + + 58
----
92

query I rowsort
SELECT 58 + 85 * - 35 * - - 12 * - 81
----
2891758

query I rowsort
SELECT + 27 + - 70 AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7750
SELECT ALL + 52 * + 49 + CAST( 18 AS SIGNED ) AS col0
----
2566

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL + 52 * + 49 + CAST ( 18 AS INTEGER ) AS col0
----
2566

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7751
SELECT + 84 DIV COALESCE ( CAST( 72 AS SIGNED ), - 14 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7751
SELECT + 84 / COALESCE ( CAST ( 72 AS INTEGER ), - 14 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7752
SELECT ALL - - 11 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL - - 11 / + 91
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7753
SELECT ALL CAST( NULL AS SIGNED ) + + - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL CAST ( NULL AS INTEGER ) + + - 41
----
NULL

query I rowsort
SELECT 27 + 4
----
31

query I rowsort
SELECT DISTINCT - ( 73 ) * ( 15 )
----
-1095

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7756
SELECT DISTINCT + - AVG ( ALL + ( - - CAST( NULL AS SIGNED ) ) ) + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7756
SELECT DISTINCT + - AVG ( ALL + ( - - CAST ( NULL AS INTEGER ) ) ) + 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT - - NULLIF ( + 72, + COALESCE ( + 89, 10 + + - 97 + + 73, 89, + MIN( 94 ) ) / 27 + + 79 - - 28 + - 53 )
----
72

skipif mysql # not compatible
query I rowsort label-7757
SELECT - - NULLIF ( + 72, + COALESCE ( + 89, 10 + + - 97 + + 73, 89, + MIN ( 94 ) ) / 27 + + 79 - - 28 + - 53 )
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7758
SELECT + MAX( DISTINCT - 85 ) DIV 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7758
SELECT + MAX ( DISTINCT - 85 ) / 99 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7759
SELECT + 44 * COUNT( COALESCE ( - 0, + + 78 ) ) + 49 + + 39 DIV - + CASE - + COUNT( * ) WHEN 19 * - COUNT( * ) THEN 70 WHEN + CAST( + 94 AS SIGNED ) THEN NULL ELSE 74 * 92 * 1 * + 24 + 25 + - + MIN( DISTINCT - 77 ) * 26 END * - 59 + - + 3 + + - 33 AS col1, 26 * 65 + 59
----
57
1749

skipif mysql # not compatible
query II rowsort label-7759
SELECT + 44 * COUNT ( COALESCE ( - 0, + + 78 ) ) + 49 + + 39 / - + CASE - + COUNT ( * ) WHEN 19 * - COUNT ( * ) THEN 70 WHEN + CAST ( + 94 AS INTEGER ) THEN NULL ELSE 74 * 92 * 1 * + 24 + 25 + - + MIN ( DISTINCT - 77 ) * 26 END * - 59 + - + 3 + + - 33 AS col1, 26 * 65 + 59
----
57
1749

query I rowsort
SELECT + COALESCE ( + + 71, - + 64, - - 49, 88 ) AS col0
----
71

query I rowsort
SELECT ALL 56 * - ( 13 ) + + NULLIF ( 9, + 26 ) - - + 51 AS col2
----
-668

onlyif mysql # aggregate syntax: 
query II rowsort label-7762
SELECT + + ( - COUNT( + 80 ) ) AS col2, + COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-7762
SELECT + + ( - COUNT ( + 80 ) ) AS col2, + COUNT ( * ) AS col1
----
-1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7763
SELECT ALL + + CAST( CASE - COUNT( * ) WHEN + 56 * + 55 THEN NULL WHEN - + CAST( NULL AS SIGNED ) - - + 92 / + 93 THEN - 67 WHEN + 94 THEN - COUNT( * ) * ( - 24 ) * - 66 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL + + CAST ( CASE - COUNT ( * ) WHEN + 56 * + 55 THEN NULL WHEN - + CAST ( NULL AS INTEGER ) - - + 92 / + 93 THEN - 67 WHEN + 94 THEN - COUNT ( * ) * ( - 24 ) * - 66 ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT + 36 * + + NULLIF ( - 42, - 13 * - 59 + + + 99 ) AS col0
----
-1512

query II rowsort
SELECT DISTINCT + 51, + 30 AS col0
----
51
30

query II rowsort
SELECT NULLIF ( + 74, - ( - + 47 ) ), - 31 AS col1
----
74
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT + NULLIF ( + 87, - COUNT( * ) * + - 19 - 97 )
----
87

skipif mysql # not compatible
query I rowsort label-7767
SELECT + NULLIF ( + 87, - COUNT ( * ) * + - 19 - 97 )
----
87

query II rowsort
SELECT ALL + 64, COALESCE ( - 22, + 62 ) AS col0
----
64
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT + 12 - - MIN( + + 1 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-7769
SELECT + 12 - - MIN ( + + 1 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT + COUNT( * ) * 23
----
23

skipif mysql # not compatible
query I rowsort label-7770
SELECT + COUNT ( * ) * 23
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7771
SELECT - CAST( - + 40 AS SIGNED ) * + NULLIF ( COUNT( * ), 19 * + 48 + + - 79 + AVG ( ALL - 95 ) * - + 20 * COUNT( * ) + - ( + COUNT( - 18 ) ) ) DIV + COUNT( * ) - - 34 * + 0 - 91 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-7771
SELECT - CAST ( - + 40 AS INTEGER ) * + NULLIF ( COUNT ( * ), 19 * + 48 + + - 79 + AVG ( ALL - 95 ) * - + 20 * COUNT ( * ) + - ( + COUNT ( - 18 ) ) ) / + COUNT ( * ) - - 34 * + 0 - 91 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT MIN( - - 92 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-7772
SELECT MIN ( - - 92 ) AS col1
----
92

query I rowsort
SELECT ALL 70 * + - 82 AS col2
----
-5740

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT SUM( + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-7774
SELECT SUM ( + 48 )
----
48

query I rowsort
SELECT + 34 - - 69
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-7776
SELECT DISTINCT + 85 col1, COUNT( * ) AS col2
----
85
1

skipif mysql # not compatible
query II rowsort label-7776
SELECT DISTINCT + 85 col1, COUNT ( * ) AS col2
----
85
1

query II rowsort
SELECT ALL + 89 AS col1, + 84 AS col2
----
89
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7778
SELECT ALL CAST( NULL AS DECIMAL ) + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL CAST ( NULL AS REAL ) + - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT - CASE 17 WHEN - COUNT( * ) THEN NULL WHEN - 10 THEN 95 * 78 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT - CASE 17 WHEN - COUNT ( * ) THEN NULL WHEN - 10 THEN 95 * 78 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7780
SELECT - NULLIF ( - - 23, NULLIF ( - - 82, 21 / + + 32 - + - 51 ) * + ( - - 49 ) ) + - 57 + + + COUNT( * ) AS col1, - 42 * 40
----
-79
-1680

skipif mysql # not compatible
query II rowsort label-7780
SELECT - NULLIF ( - - 23, NULLIF ( - - 82, 21 / + + 32 - + - 51 ) * + ( - - 49 ) ) + - 57 + + + COUNT ( * ) AS col1, - 42 * 40
----
-79
-1680

query I rowsort
SELECT + 15 * + + 33 col0
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT 45 * + SUM( + 47 ) + + 83
----
2198

skipif mysql # not compatible
query I rowsort label-7782
SELECT 45 * + SUM ( + 47 ) + + 83
----
2198

query I rowsort
SELECT ALL - 9 * + 93 AS col2
----
-837

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7784
SELECT - + CAST( NULL AS DECIMAL ), 13 DIV 87 DIV - - 6 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7784
SELECT - + CAST ( NULL AS REAL ), 13 / 87 / - - 6 AS col2
----
NULL
0

query I rowsort
SELECT ALL - 65 + + + 38 * - 44 + 76 - - 78 AS col0
----
-1583

query I rowsort
SELECT ALL 52 * - + 4 + + + ( 39 ) AS col2
----
-169

query I rowsort
SELECT - ( 18 ) * - 96 * + 98 AS col0
----
169344

query I rowsort
SELECT ALL + ( + + 76 ) + 19 * 5 AS col2
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7789
SELECT + - 99 - 89 - CASE + 71 WHEN - CAST( NULL AS SIGNED ) THEN + 34 * 76 END * + 68 * - + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-7789
SELECT + - 99 - 89 - CASE + 71 WHEN - CAST ( NULL AS INTEGER ) THEN + 34 * 76 END * + 68 * - + 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7790
SELECT + 45 AS col2, 3 * + CAST( NULL AS SIGNED ) * + + COUNT( * ) + - + 97
----
45
NULL

skipif mysql # not compatible
query II rowsort label-7790
SELECT + 45 AS col2, 3 * + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + - + 97
----
45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT - COUNT( - - 20 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7791
SELECT - COUNT ( - - 20 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7792
SELECT ALL - - 9 + + 33 + + 94 * - - 53 * + 19 DIV + + 68 DIV + - COALESCE ( - 65, - 94 ) DIV + 51 + + MIN( ALL 78 )
----
120

skipif mysql # not compatible
query I rowsort label-7792
SELECT ALL - - 9 + + 33 + + 94 * - - 53 * + 19 / + + 68 / + - COALESCE ( - 65, - 94 ) / + 51 + + MIN ( ALL 78 )
----
120

query I rowsort
SELECT - + 18 * + + 27 + - 52 * + 5 AS col0
----
-746

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7794
SELECT CAST( - MAX( DISTINCT + - 41 ) AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-7794
SELECT CAST ( - MAX ( DISTINCT + - 41 ) AS INTEGER )
----
41

query I rowsort
SELECT - - 49 + 6 - 90 AS col2
----
-35

query II rowsort
SELECT - 68 AS col2, + 20
----
-68
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT - + ( - COALESCE ( + 71, - - 50 ) ) + COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7797
SELECT - + ( - COALESCE ( + 71, - - 50 ) ) + COUNT ( * ) AS col1
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7798
SELECT ALL - - COUNT( * ) - 99 DIV + 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7798
SELECT ALL - - COUNT ( * ) - 99 / + 56 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7799
SELECT ALL - SUM( ALL - 18 ) AS col0, 67
----
18
67

skipif mysql # not compatible
query II rowsort label-7799
SELECT ALL - SUM ( ALL - 18 ) AS col0, 67
----
18
67

query II rowsort
SELECT ALL - - 41 * + 84 * + 23 * + 38 * + 22 + 44 AS col0, - 41 * + - 50 + 41 + - 36 * + - 40 AS col2
----
66221276
3531

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT + COUNT( ALL ( - - 82 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7801
SELECT + COUNT ( ALL ( - - 82 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7802
SELECT ALL + CASE 66 WHEN - 44 THEN NULL WHEN + COUNT( * ) / + + 75 THEN - 73 / - + COALESCE ( - 84, + 80 + + - COUNT( * ) + - + 74 * + - 41 / + - 63 ) * - + 36 + + 18 + + 59 + - CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL + CASE 66 WHEN - 44 THEN NULL WHEN + COUNT ( * ) / + + 75 THEN - 73 / - + COALESCE ( - 84, + 80 + + - COUNT ( * ) + - + 74 * + - 41 / + - 63 ) * - + 36 + + 18 + + 59 + - CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT + ( 70 ) col1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7804
SELECT CAST( - 8 AS SIGNED ) col0
----
-8

skipif mysql # not compatible
query I rowsort label-7804
SELECT CAST ( - 8 AS INTEGER ) col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7805
SELECT 93 * - CAST( NULL AS DECIMAL ) + - 5 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7805
SELECT 93 * - CAST ( NULL AS REAL ) + - 5 + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7806
SELECT 20 DIV - 72 + - NULLIF ( + + 23, - 87 + - 65 + - 25 + - + 50 * - 25 ) + + ( + + COUNT( * ) ) + + 2 * + - COUNT( * ) * + 86 * 95 + - + COUNT( * ) AS col0
----
-16363

skipif mysql # not compatible
query I rowsort label-7806
SELECT 20 / - 72 + - NULLIF ( + + 23, - 87 + - 65 + - 25 + - + 50 * - 25 ) + + ( + + COUNT ( * ) ) + + 2 * + - COUNT ( * ) * + 86 * 95 + - + COUNT ( * ) AS col0
----
-16363

onlyif mysql # aggregate syntax: 
query II rowsort label-7807
SELECT ALL + MAX( - 8 ) col0, 60 * 80
----
-8
4800

skipif mysql # not compatible
query II rowsort label-7807
SELECT ALL + MAX ( - 8 ) col0, 60 * 80
----
-8
4800

query I rowsort
SELECT - ( - - 45 ) * + 83 * - 13 + - 98 * + 14 AS col0
----
47183

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT ALL + SUM( ALL 40 )
----
40

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL + SUM ( ALL 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT DISTINCT - 54 * - MIN( ALL 72 ) + - 21 AS col0
----
3867

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT - 54 * - MIN ( ALL 72 ) + - 21 AS col0
----
3867

onlyif mysql # aggregate syntax: 
query II rowsort label-7811
SELECT + COUNT( * ) + + 72 AS col1, SUM( DISTINCT - 67 )
----
73
-67

skipif mysql # not compatible
query II rowsort label-7811
SELECT + COUNT ( * ) + + 72 AS col1, SUM ( DISTINCT - 67 )
----
73
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-7812
SELECT - 40 + - + 73 col2, COUNT( * ) + - 63
----
-113
-62

skipif mysql # not compatible
query II rowsort label-7812
SELECT - 40 + - + 73 col2, COUNT ( * ) + - 63
----
-113
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT ALL 0 * + 79 + NULLIF ( MIN( DISTINCT + 43 ), + 29 + 88 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL 0 * + 79 + NULLIF ( MIN ( DISTINCT + 43 ), + 29 + 88 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT - 12 * ( + + COUNT( * ) ) + - MAX( DISTINCT + + 97 ) AS col2
----
-109

skipif mysql # not compatible
query I rowsort label-7814
SELECT - 12 * ( + + COUNT ( * ) ) + - MAX ( DISTINCT + + 97 ) AS col2
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7815
SELECT + 92 + - + 22 AS col1, CAST( COUNT( * ) AS SIGNED )
----
70
1

skipif mysql # not compatible
query II rowsort label-7815
SELECT + 92 + - + 22 AS col1, CAST ( COUNT ( * ) AS INTEGER )
----
70
1

onlyif mysql # aggregate syntax: 
query III rowsort label-7816
SELECT ALL - MAX( - 68 ) col2, 86 AS col1, - 40
----
68
86
-40

skipif mysql # not compatible
query III rowsort label-7816
SELECT ALL - MAX ( - 68 ) col2, 86 AS col1, - 40
----
68
86
-40

query I rowsort
SELECT DISTINCT - 3 * 16 + 62 - - 7 + 36
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-7818
SELECT DISTINCT - 3 DIV 2 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7818
SELECT DISTINCT - 3 / 2 AS col2
----
-1

query I rowsort
SELECT + + 28 + + 73 AS col2
----
101

query I rowsort
SELECT + - 70 * + 26
----
-1820

query I rowsort
SELECT + 42 + - + 79
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT - NULLIF ( - 44, - 32 / + + COUNT( * ) * - - 55 ) + + ( 71 ) + - 55 + 8 + - 26 + - 67 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-7822
SELECT - NULLIF ( - 44, - 32 / + + COUNT ( * ) * - - 55 ) + + ( 71 ) + - 55 + 8 + - 26 + - 67 AS col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7823
SELECT - 25 + - 41 * - + 63 DIV COALESCE ( 86, + 86 ) DIV + SUM( ALL + - ( COALESCE ( 97, 65, + 21 ) ) )
----
-25

skipif mysql # not compatible
query I rowsort label-7823
SELECT - 25 + - 41 * - + 63 / COALESCE ( 86, + 86 ) / + SUM ( ALL + - ( COALESCE ( 97, 65, + 21 ) ) )
----
-25

query I rowsort
SELECT ALL 99 * 45 + 76
----
4531

query I rowsort
SELECT DISTINCT - 51 * 41
----
-2091

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7826
SELECT DISTINCT + COUNT( * ) - - + ( - 1 ) AS col1, COUNT( * ) * - CAST( NULL AS SIGNED ) + - 2 - - + 72 * + 56 * - + 94
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7826
SELECT DISTINCT + COUNT ( * ) - - + ( - 1 ) AS col1, COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - 2 - - + 72 * + 56 * - + 94
----
0
NULL

query I rowsort
SELECT ALL - 18 * + + 12
----
-216

query I rowsort
SELECT + 91 + - ( 92 ) + - 37 + + 15 - 12
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT ALL - COUNT( * ) * - - ( + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL - COUNT ( * ) * - - ( + 18 )
----
-18

query II rowsort
SELECT 5 + + - 62 AS col1, 27 * + 97
----
-57
2619

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT 36 * 89 + - 14 - - - COUNT( * ) AS col0
----
3189

skipif mysql # not compatible
query I rowsort label-7831
SELECT 36 * 89 + - 14 - - - COUNT ( * ) AS col0
----
3189

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT CASE + + NULLIF ( - + 50, + - 59 ) WHEN + 0 THEN + CASE - MIN( 55 ) WHEN + MAX( + 95 ) * 80 THEN NULL WHEN - - 27 THEN + - 93 ELSE NULL END WHEN + 0 THEN NULL ELSE NULL END * - - COUNT( * ) + - - 87 - + + 31 + CASE - + 71 WHEN + COUNT( * ) THEN NULL ELSE + + COUNT( ALL - + 68 ) END * - 29 + + + 85 + 40 + + - 88 * - 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7832
SELECT CASE + + NULLIF ( - + 50, + - 59 ) WHEN + 0 THEN + CASE - MIN ( 55 ) WHEN + MAX ( + 95 ) * 80 THEN NULL WHEN - - 27 THEN + - 93 ELSE NULL END WHEN + 0 THEN NULL ELSE NULL END * - - COUNT ( * ) + - - 87 - + + 31 + CASE - + 71 WHEN + COUNT ( * ) THEN NULL ELSE + + COUNT ( ALL - + 68 ) END * - 29 + + + 85 + 40 + + - 88 * - 93 AS col1
----
NULL

query II rowsort
SELECT 18 * + ( + - 68 ), 18 AS col0
----
-1224
18

query I rowsort
SELECT ALL + 26 * 55 AS col2
----
1430

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7835
SELECT 21 AS col2, CAST( - 32 AS SIGNED ) * + 61
----
21
-1952

skipif mysql # not compatible
query II rowsort label-7835
SELECT 21 AS col2, CAST ( - 32 AS INTEGER ) * + 61
----
21
-1952

query I rowsort
SELECT DISTINCT - 98 + + - 2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT DISTINCT + ( 88 ) + - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-7837
SELECT DISTINCT + ( 88 ) + - COUNT ( * )
----
87

query I rowsort
SELECT 17 * + 83 + 77 + + 51 AS col2
----
1539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7839
SELECT ALL + 26 + - COUNT( * ) DIV + 32 + - - 18 * - + 40 AS col2
----
-694

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL + 26 + - COUNT ( * ) / + 32 + - - 18 * - + 40 AS col2
----
-694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7840
SELECT DISTINCT - CAST( + - COUNT( + + 0 ) AS SIGNED ) * + MIN( DISTINCT + - ( - + 88 ) )
----
88

skipif mysql # not compatible
query I rowsort label-7840
SELECT DISTINCT - CAST ( + - COUNT ( + + 0 ) AS INTEGER ) * + MIN ( DISTINCT + - ( - + 88 ) )
----
88

query I rowsort
SELECT 34 * + ( 67 ) AS col1
----
2278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7842
SELECT COUNT( * ) * 68 - CAST( NULL AS SIGNED ), 65 AS col1
----
NULL
65

skipif mysql # not compatible
query II rowsort label-7842
SELECT COUNT ( * ) * 68 - CAST ( NULL AS INTEGER ), 65 AS col1
----
NULL
65

query I rowsort
SELECT 43 * ( + - 63 ) * 24 AS col2
----
-65016

query I rowsort
SELECT ALL 4 + + 95 + 16 * 63
----
1107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7845
SELECT 69 * + + ( 2 ) * 77 AS col2, MIN( - - CAST( NULL AS SIGNED ) ) + - - 47 / - 54 col2
----
10626
NULL

skipif mysql # not compatible
query II rowsort label-7845
SELECT 69 * + + ( 2 ) * 77 AS col2, MIN ( - - CAST ( NULL AS INTEGER ) ) + - - 47 / - 54 col2
----
10626
NULL

query II rowsort
SELECT DISTINCT - 40 AS col1, + 63 AS col1
----
-40
63

query II rowsort
SELECT 51 AS col0, 97 * + ( + 75 ) AS col0
----
51
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT - COUNT( * ) * - - 24
----
-24

skipif mysql # not compatible
query I rowsort label-7848
SELECT - COUNT ( * ) * - - 24
----
-24

query II rowsort
SELECT DISTINCT - + 92 * + 2 * + + 5 AS col2, 21
----
-920
21

onlyif mysql # aggregate syntax: 
query II rowsort label-7850
SELECT - COUNT( * ) col0, 80
----
-1
80

skipif mysql # not compatible
query II rowsort label-7850
SELECT - COUNT ( * ) col0, 80
----
-1
80

query II rowsort
SELECT DISTINCT 18, 63 AS col1
----
18
63

query I rowsort
SELECT DISTINCT + 69 - - 19
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7853
SELECT DISTINCT COALESCE ( SUM( + - 98 ), + CAST( NULL AS SIGNED ) ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT COALESCE ( SUM ( + - 98 ), + CAST ( NULL AS INTEGER ) ) AS col2
----
-98

query I rowsort
SELECT - - ( - 4 ) AS col0
----
-4

query II rowsort
SELECT ALL 8, 96 * 72 AS col1
----
8
6912

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT - ( + 32 ) * + COALESCE ( - - COUNT( * ), + 72, - ( 97 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-7856
SELECT - ( + 32 ) * + COALESCE ( - - COUNT ( * ), + 72, - ( 97 ) )
----
-32

query II rowsort
SELECT ALL 92, 23 AS col1
----
92
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7858
SELECT - 56 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7858
SELECT - 56 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT ALL 99 * - COUNT( * ) + + 89
----
-10

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL 99 * - COUNT ( * ) + + 89
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT COUNT( * ) + 71 + 29 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-7860
SELECT COUNT ( * ) + 71 + 29 AS col2
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-7861
SELECT ALL MIN( DISTINCT - + NULLIF ( - 76, 90 * 59 * - 7 ) ) * + 65, ( - 54 ) AS col0
----
4940
-54

skipif mysql # not compatible
query II rowsort label-7861
SELECT ALL MIN ( DISTINCT - + NULLIF ( - 76, 90 * 59 * - 7 ) ) * + 65, ( - 54 ) AS col0
----
4940
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7862
SELECT DISTINCT COUNT( * ) + - CAST( - CAST( + + ( - - COUNT( * ) ) AS SIGNED ) AS SIGNED ) * 13 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7862
SELECT DISTINCT COUNT ( * ) + - CAST ( - CAST ( + + ( - - COUNT ( * ) ) AS INTEGER ) AS INTEGER ) * 13 AS col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7863
SELECT DISTINCT + 83 * + - 46 + - + 44 * - + CAST( + 50 AS SIGNED ) AS col0
----
-1618

skipif mysql # not compatible
query I rowsort label-7863
SELECT DISTINCT + 83 * + - 46 + - + 44 * - + CAST ( + 50 AS INTEGER ) AS col0
----
-1618

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT 31 * - 69 + + - MAX( ALL + 82 ) AS col1
----
-2221

skipif mysql # not compatible
query I rowsort label-7864
SELECT 31 * - 69 + + - MAX ( ALL + 82 ) AS col1
----
-2221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7865
SELECT COALESCE ( CAST( + 67 AS SIGNED ), - 90 * + - COUNT( * ) + + 91 + CAST( NULLIF ( + 2, ( - 15 ) ) AS SIGNED ) * 59 * + + ( CAST( NULL AS SIGNED ) ) * - 41 * - 82 + - + 65 + + 9 * - ( 75 ) * - + 4 - 63, + - COUNT( * ) ) + - COUNT( * ) + + 79 + - 21 * + - ( + - 77 ) * - + 56 * + + COUNT( * ) * + COUNT( * )
----
90697

skipif mysql # not compatible
query I rowsort label-7865
SELECT COALESCE ( CAST ( + 67 AS INTEGER ), - 90 * + - COUNT ( * ) + + 91 + CAST ( NULLIF ( + 2, ( - 15 ) ) AS INTEGER ) * 59 * + + ( CAST ( NULL AS INTEGER ) ) * - 41 * - 82 + - + 65 + + 9 * - ( 75 ) * - + 4 - 63, + - COUNT ( * ) ) + - COUNT ( * ) + + 79 + - 21 * + - ( + - 77 ) * - + 56 * + + COUNT ( * ) * + COUNT ( * )
----
90697

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT + MIN( ( + NULLIF ( - 87, - 43 ) ) ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-7866
SELECT + MIN ( ( + NULLIF ( - 87, - 43 ) ) ) AS col1
----
-87

query I rowsort
SELECT DISTINCT 98 * - COALESCE ( 3, 23, ( 94 ) ) + 70 AS col2
----
-224

query I rowsort
SELECT ALL ( + - ( 75 ) ) * 40 * + 2 + 10 + - 82
----
-6072

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT ALL - SUM( - + 76 )
----
76

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL - SUM ( - + 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT DISTINCT + MIN( + + 38 ) * - COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT + MIN ( + + 38 ) * - COUNT ( * ) AS col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7871
SELECT DISTINCT COUNT( * ) * COUNT( * ) * CASE - COUNT( * ) WHEN 57 THEN 98 WHEN - + 52 THEN - COUNT( * ) ELSE + CAST( 14 AS SIGNED ) END - - + COUNT( * ) + 53 * 80 AS col2
----
4255

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * CASE - COUNT ( * ) WHEN 57 THEN 98 WHEN - + 52 THEN - COUNT ( * ) ELSE + CAST ( 14 AS INTEGER ) END - - + COUNT ( * ) + 53 * 80 AS col2
----
4255

query II rowsort
SELECT ALL + 96 * 32 AS col0, - 97 + - 45 + 54 - 22 AS col2
----
3072
-110

query I rowsort
SELECT ALL - 33 - + 20 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT DISTINCT + 75 * + + COUNT( * ) * - 40 * 54 AS col2
----
-162000

skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT + 75 * + + COUNT ( * ) * - 40 * 54 AS col2
----
-162000

query II rowsort
SELECT + 81 * + - ( + ( + 49 ) ) + - 91 + + ( + 10 ) AS col1, ( 32 ) AS col1
----
-4050
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7876
SELECT ALL + + CAST( ( - 41 ) AS SIGNED ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL + + CAST ( ( - 41 ) AS INTEGER ) AS col2
----
-41

query II rowsort
SELECT + ( + 32 ), 46 col2
----
32
46

query II rowsort
SELECT ALL + 25 - 2 * 49 + - 63 AS col0, 19
----
-136
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT DISTINCT + 14 * + - CAST( + + 72 AS SIGNED )
----
-1008

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT + 14 * + - CAST ( + + 72 AS INTEGER )
----
-1008

query I rowsort
SELECT ALL + + CASE + 49 WHEN 15 THEN - - 68 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7881
SELECT - 46 + COUNT( * ) * + 14 * - 61, NULLIF ( 46, - 33 ) col0
----
-900
46

skipif mysql # not compatible
query II rowsort label-7881
SELECT - 46 + COUNT ( * ) * + 14 * - 61, NULLIF ( 46, - 33 ) col0
----
-900
46

query I rowsort
SELECT - 60 + 38 * + - 72 col2
----
-2796

query I rowsort
SELECT - + NULLIF ( - 33, - 95 + 25 ) * - 26
----
-858

query I rowsort
SELECT DISTINCT - NULLIF ( 17, + + 68 * + 97 * + 13 )
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7885
SELECT + 87 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7885
SELECT + 87 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7886
SELECT + CAST( NULL AS SIGNED ) + + - COUNT( * ) * + ( + 73 ) * - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) * + ( + 73 ) * - 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7887
SELECT ALL + - COUNT( * ) * + 53 + 27 * 20 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL + - COUNT ( * ) * + 53 + 27 * 20 / + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT + - 29 + - COUNT( * ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-7888
SELECT + - 29 + - COUNT ( * ) AS col2
----
-30

query I rowsort
SELECT DISTINCT ( 56 ) + - 85
----
-29

query I rowsort
SELECT ALL - 74 + 20 AS col1
----
-54

query I rowsort
SELECT DISTINCT COALESCE ( 33, + 75 ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT ALL - COUNT( DISTINCT + 30 ) + - 16
----
-17

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL - COUNT ( DISTINCT + 30 ) + - 16
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7893
SELECT DISTINCT + 44 + - 46 + COUNT( * ) DIV + 13 + 83 + - + 66 * - 82 AS col1
----
5493

skipif mysql # not compatible
query I rowsort label-7893
SELECT DISTINCT + 44 + - 46 + COUNT ( * ) / + 13 + 83 + - + 66 * - 82 AS col1
----
5493

query I rowsort
SELECT ALL 29 + 44 AS col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7895
SELECT - COALESCE ( + 26, + CAST( NULL AS SIGNED ), + + 21 + - 51 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-7895
SELECT - COALESCE ( + 26, + CAST ( NULL AS INTEGER ), + + 21 + - 51 ) AS col1
----
-26

query I rowsort
SELECT + 99 * + - 56 * 74
----
-410256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7897
SELECT + 5 * - CASE - - 35 WHEN + 31 THEN NULL ELSE + + 98 * - + 32 * - + CASE - MAX( 16 ) WHEN 60 THEN + 23 + - - 8 ELSE + + ( + + COUNT( * ) ) / + 98 END + - 17 * + + 26 / + ( - 64 ) * - 77 + - - 42 + - + CAST( NULL AS SIGNED ) - - 69 * - + COUNT( + 59 ) + - 55 + + - 89 * + 45 + + 38 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7897
SELECT + 5 * - CASE - - 35 WHEN + 31 THEN NULL ELSE + + 98 * - + 32 * - + CASE - MAX ( 16 ) WHEN 60 THEN + 23 + - - 8 ELSE + + ( + + COUNT ( * ) ) / + 98 END + - 17 * + + 26 / + ( - 64 ) * - 77 + - - 42 + - + CAST ( NULL AS INTEGER ) - - 69 * - + COUNT ( + 59 ) + - 55 + + - 89 * + 45 + + 38 END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7898
SELECT + 75 * + - COUNT( * ) DIV + COUNT( * ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-7898
SELECT + 75 * + - COUNT ( * ) / + COUNT ( * ) col2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7899
SELECT ALL + COALESCE ( - + 27, + 64, 35 + + 77 * ( - 49 ) ) DIV - + ( - + 90 ) + + COUNT( * ) + - + 98 + - + NULLIF ( - 87, + COUNT( * ) ) * COUNT( * ) AS col1, 96 AS col2
----
-10
96

skipif mysql # not compatible
query II rowsort label-7899
SELECT ALL + COALESCE ( - + 27, + 64, 35 + + 77 * ( - 49 ) ) / - + ( - + 90 ) + + COUNT ( * ) + - + 98 + - + NULLIF ( - 87, + COUNT ( * ) ) * COUNT ( * ) AS col1, 96 AS col2
----
-10
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7900
SELECT DISTINCT 40 DIV 15 * + + 59
----
118

skipif mysql # not compatible
query I rowsort label-7900
SELECT DISTINCT 40 / 15 * + + 59
----
118

query II rowsort
SELECT ALL + 88 AS col1, ( - 13 )
----
88
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT ALL COUNT( ALL - 82 ) * - 92 + + - 87
----
-179

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL COUNT ( ALL - 82 ) * - 92 + + - 87
----
-179

query I rowsort
SELECT + 69 * - 35 col0
----
-2415

onlyif mysql # aggregate syntax: 
query II rowsort label-7904
SELECT ALL 75 * - 94 * 69 AS col1, + 41 + + MIN( ALL - 63 )
----
-486450
-22

skipif mysql # not compatible
query II rowsort label-7904
SELECT ALL 75 * - 94 * 69 AS col1, + 41 + + MIN ( ALL - 63 )
----
-486450
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7905
SELECT DISTINCT CAST( 16 AS SIGNED ) * - 75 - + 63 AS col1
----
-1263

skipif mysql # not compatible
query I rowsort label-7905
SELECT DISTINCT CAST ( 16 AS INTEGER ) * - 75 - + 63 AS col1
----
-1263

query I rowsort
SELECT + ( 45 ) + - 81 * 34 + + - 90 * 29
----
-5319

query I rowsort
SELECT DISTINCT 69 * - 9 AS col2
----
-621

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7908
SELECT + COALESCE ( - + NULLIF ( + 40, 15 ), + ( - CASE - - COALESCE ( + - 97, + COALESCE ( + COUNT( * ), - NULLIF ( + + 62, - COUNT( * ) + - + 25 ) * 7 * + - 38 - - - 33, + CAST( NULL AS DECIMAL ) * + COUNT( * ) * + CAST( NULL AS DECIMAL ) ) + + + 82 * + + 9 ) WHEN + MIN( + 68 ) * + COUNT( * ) / - - 79 - + 88 + + ( 95 ) + - 37 * - MAX( + 4 ) * + 92 + 15 + + COUNT( * ) THEN NULL WHEN - - 26 THEN + 37 * 69 ELSE NULL END ) ) col1, CASE 88 WHEN - 96 THEN - 5 ELSE NULL END * 16 + - COUNT( * )
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-7908
SELECT + COALESCE ( - + NULLIF ( + 40, 15 ), + ( - CASE - - COALESCE ( + - 97, + COALESCE ( + COUNT ( * ), - NULLIF ( + + 62, - COUNT ( * ) + - + 25 ) * 7 * + - 38 - - - 33, + CAST ( NULL AS REAL ) * + COUNT ( * ) * + CAST ( NULL AS REAL ) ) + + + 82 * + + 9 ) WHEN + MIN ( + 68 ) * + COUNT ( * ) / - - 79 - + 88 + + ( 95 ) + - 37 * - MAX ( + 4 ) * + 92 + 15 + + COUNT ( * ) THEN NULL WHEN - - 26 THEN + 37 * 69 ELSE NULL END ) ) col1, CASE 88 WHEN - 96 THEN - 5 ELSE NULL END * 16 + - COUNT ( * )
----
-40
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7909
SELECT - CAST( NULL AS SIGNED ) * + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7909
SELECT - CAST ( NULL AS INTEGER ) * + 52 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7910
SELECT ALL + COUNT( * ), COUNT( * ) * COUNT( * ) col2
----
1
1

skipif mysql # not compatible
query II rowsort label-7910
SELECT ALL + COUNT ( * ), COUNT ( * ) * COUNT ( * ) col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT ( - 12 ) * - 44 * + 52 * - COUNT( * ) - + - COUNT( * )
----
-27455

skipif mysql # not compatible
query I rowsort label-7911
SELECT ( - 12 ) * - 44 * + 52 * - COUNT ( * ) - + - COUNT ( * )
----
-27455

query I rowsort
SELECT ( - - 12 ) AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7913
SELECT - 78 + + + 80 + - 48 + - 86 * - 30 * - 71 + - CAST( NULL AS SIGNED ) * AVG ( - 72 ) * - + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7913
SELECT - 78 + + + 80 + - 48 + - 86 * - 30 * - 71 + - CAST ( NULL AS INTEGER ) * AVG ( - 72 ) * - + 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT ALL + 33 * + ( 7 ) + + 48 - - - COUNT( * )
----
278

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL + 33 * + ( 7 ) + + 48 - - - COUNT ( * )
----
278

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT + - 91 * - COUNT( ALL + + 94 ) - 4 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-7915
SELECT + - 91 * - COUNT ( ALL + + 94 ) - 4 AS col0
----
87

query I rowsort
SELECT ALL + COALESCE ( - - 45, + 95 ) AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7917
SELECT DISTINCT + + NULLIF ( - ( + COUNT( * ) ), 75 - + 71 ) * CAST( NULL AS SIGNED ) + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT + + NULLIF ( - ( + COUNT ( * ) ), 75 - + 71 ) * CAST ( NULL AS INTEGER ) + 92 AS col1
----
NULL

query I rowsort
SELECT ALL - 30 * + 22 * + - ( 55 ) AS col2
----
36300

query I rowsort
SELECT - 58 * ( + - ( 70 ) )
----
4060

query II rowsort
SELECT ALL + 24, + 71 AS col2
----
24
71

query II rowsort
SELECT + 82 AS col2, 76
----
82
76

query I rowsort
SELECT + - 10 * + 99 - 7
----
-997

query I rowsort
SELECT - + 64 * - - 20
----
-1280

query I rowsort
SELECT - CASE WHEN NULL IS NOT NULL THEN ( - + 51 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7925
SELECT ALL - + ( - 41 ) * + CASE - - 8 WHEN + + 63 THEN - 3 * 53 * - CAST( 89 AS SIGNED ) WHEN + ( - - 86 ) THEN NULL END * - 51 * - + 28 + + 26 + - NULLIF ( + 52, 17 ) + - 15 * + - MIN( DISTINCT - CAST( + + 75 AS SIGNED ) ) / - + 26 + - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL - + ( - 41 ) * + CASE - - 8 WHEN + + 63 THEN - 3 * 53 * - CAST ( 89 AS INTEGER ) WHEN + ( - - 86 ) THEN NULL END * - 51 * - + 28 + + 26 + - NULLIF ( + 52, 17 ) + - 15 * + - MIN ( DISTINCT - CAST ( + + 75 AS INTEGER ) ) / - + 26 + - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT ALL - CASE + + 61 WHEN COUNT( * ) THEN NULL WHEN 30 THEN - - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL - CASE + + 61 WHEN COUNT ( * ) THEN NULL WHEN 30 THEN - - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7927
SELECT - + 14 DIV + 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7927
SELECT - + 14 / + 76 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT - 60 - + + 95 - + 35 * - 62 - + + 1 - 5 / + CASE - - ( 90 ) WHEN + + COUNT( * ) THEN ( - - ( + + 53 ) ) * + 55 - 95 * - 12 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT - 60 - + + 95 - + 35 * - 62 - + + 1 - 5 / + CASE - - ( 90 ) WHEN + + COUNT ( * ) THEN ( - - ( + + 53 ) ) * + 55 - 95 * - 12 END AS col0
----
NULL

query I rowsort
SELECT ALL + 34 + 53 AS col2
----
87

query I rowsort
SELECT ALL + 29 + 65 * + 24 - - + 27 - + 70 col1
----
1546

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT ALL 30 + - COUNT( ALL + 45 )
----
29

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL 30 + - COUNT ( ALL + 45 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7932
SELECT ALL - MIN( 91 ) + + 38 + - COUNT( * ) * COALESCE ( - 89, - NULLIF ( - + SUM( - ( + 41 ) ), 79 * - + 16 + + 74 - ( + COALESCE ( - 10, CAST( NULL AS SIGNED ) + AVG ( - + 31 ) * + - 79 ) ) ) ) * + 8
----
659

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL - MIN ( 91 ) + + 38 + - COUNT ( * ) * COALESCE ( - 89, - NULLIF ( - + SUM ( - ( + 41 ) ), 79 * - + 16 + + 74 - ( + COALESCE ( - 10, CAST ( NULL AS INTEGER ) + AVG ( - + 31 ) * + - 79 ) ) ) ) * + 8
----
659

query I rowsort
SELECT - 6 + - 35 col2
----
-41

query I rowsort
SELECT - COALESCE ( 13, + - 80 ) * - 42 * 29
----
15834

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7935
SELECT 51 AS col1, 68 + 19 + + CAST( - 92 AS SIGNED ) + 33 * 46 AS col0
----
51
1513

skipif mysql # not compatible
query II rowsort label-7935
SELECT 51 AS col1, 68 + 19 + + CAST ( - 92 AS INTEGER ) + 33 * 46 AS col0
----
51
1513

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7936
SELECT ALL - 67 + + ( - - CAST( - 75 AS SIGNED ) ) AS col1
----
-142

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL - 67 + + ( - - CAST ( - 75 AS INTEGER ) ) AS col1
----
-142

query I rowsort
SELECT - 0 + - 89
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7938
SELECT + COUNT( * ) - + 73 - + 14 DIV 61 AS col0, - 14 * - 54 AS col0
----
-72
756

skipif mysql # not compatible
query II rowsort label-7938
SELECT + COUNT ( * ) - + 73 - + 14 / 61 AS col0, - 14 * - 54 AS col0
----
-72
756

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT - 76 + - - NULLIF ( + 99, 16 / + 68 + SUM( DISTINCT - 32 ) + - COUNT( * ) ) * + + 47
----
4577

skipif mysql # not compatible
query I rowsort label-7939
SELECT - 76 + - - NULLIF ( + 99, 16 / + 68 + SUM ( DISTINCT - 32 ) + - COUNT ( * ) ) * + + 47
----
4577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7940
SELECT ALL CAST( + + 37 AS SIGNED ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL CAST ( + + 37 AS INTEGER ) AS col0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7941
SELECT DISTINCT + 50 - + CAST( NULL AS SIGNED ) - 24 * 71 * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT + 50 - + CAST ( NULL AS INTEGER ) - 24 * 71 * + 90
----
NULL

query II rowsort
SELECT ALL - 95 * - CASE 31 WHEN - 26 THEN + 55 ELSE - + 25 END, 88 - - 78 AS col1
----
-2375
166

query I rowsort
SELECT + COALESCE ( 17, 94 ) + - + 87
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7944
SELECT ALL 58 DIV + + 61 - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL 58 / + + 61 - - COUNT ( * ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7945
SELECT 62 DIV + 51 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7945
SELECT 62 / + 51 AS col2
----
1

query I rowsort
SELECT 97 * 93
----
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT COUNT( DISTINCT + 62 ) + ( - 90 ) + - 18
----
-107

skipif mysql # not compatible
query I rowsort label-7947
SELECT COUNT ( DISTINCT + 62 ) + ( - 90 ) + - 18
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT ALL COUNT( * ) * MAX( - - 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL COUNT ( * ) * MAX ( - - 19 ) AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7949
SELECT - 6 DIV 7 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7949
SELECT - 6 / 7 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7950
SELECT ALL - + 18 / + CAST( NULL AS DECIMAL ) * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL - + 18 / + CAST ( NULL AS REAL ) * - 43
----
NULL

query I rowsort
SELECT 57 * - 67
----
-3819

query I rowsort
SELECT ALL - 34 * 75 AS col0
----
-2550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7953
SELECT - - 85 * + 27 * + - 59 - CAST( + 63 AS SIGNED )
----
-135468

skipif mysql # not compatible
query I rowsort label-7953
SELECT - - 85 * + 27 * + - 59 - CAST ( + 63 AS INTEGER )
----
-135468

onlyif mysql # DIV for integer division: 
query I rowsort label-7954
SELECT - 51 DIV - 65 + 66 * + - 88 * + 37 * + 48
----
-10315008

skipif mysql # not compatible
query I rowsort label-7954
SELECT - 51 / - 65 + 66 * + - 88 * + 37 * + 48
----
-10315008

query I rowsort
SELECT ALL + 65 * - 30 AS col0
----
-1950

query I rowsort
SELECT ALL - 90 * + 10
----
-900

query I rowsort
SELECT 36 * + 35
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT + SUM( 94 ) * 19 * + + 41 AS col1
----
73226

skipif mysql # not compatible
query I rowsort label-7958
SELECT + SUM ( 94 ) * 19 * + + 41 AS col1
----
73226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7959
SELECT 67 + - - 27 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7959
SELECT 67 + - - 27 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + + ( - 69 ) AS col1
----
-69

query II rowsort
SELECT 88 AS col0, - 50 + - 34 AS col1
----
88
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT - 34 * COALESCE ( + 91, COUNT( * ) ) + - 91 - 24 AS col0
----
-3209

skipif mysql # not compatible
query I rowsort label-7962
SELECT - 34 * COALESCE ( + 91, COUNT ( * ) ) + - 91 - 24 AS col0
----
-3209

query II rowsort
SELECT DISTINCT - - 48 AS col1, - 51 AS col1
----
48
-51

query I rowsort
SELECT + 47 * 87 + 67
----
4156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7965
SELECT DISTINCT COUNT( * ) + - - 9 DIV 16 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT COUNT ( * ) + - - 9 / 16 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7966
SELECT ALL - - CASE - + 48 WHEN 6 THEN - + 37 - + 9 WHEN - 10 / - 17 THEN 36 END + AVG ( ALL + CAST( NULL AS SIGNED ) ) * COUNT( + + 13 ) * + CASE WHEN NOT ( NULL ) < NULL THEN - + 59 ELSE NULL END, ( 45 ) / - 2 + CASE WHEN NULL BETWEEN NULL AND 62 THEN - COUNT( * ) END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7966
SELECT ALL - - CASE - + 48 WHEN 6 THEN - + 37 - + 9 WHEN - 10 / - 17 THEN 36 END + AVG ( ALL + CAST ( NULL AS INTEGER ) ) * COUNT ( + + 13 ) * + CASE WHEN NOT ( NULL ) < NULL THEN - + 59 ELSE NULL END, ( 45 ) / - 2 + CASE WHEN NULL BETWEEN NULL AND 62 THEN - COUNT ( * ) END
----
NULL
NULL

query I rowsort
SELECT + 58 + - 58
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7968
SELECT ALL - 47 + - ( + CAST( - 14 AS SIGNED ) ) + COUNT( * ) * 87 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL - 47 + - ( + CAST ( - 14 AS INTEGER ) ) + COUNT ( * ) * 87 AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7969
SELECT ALL COUNT( * ), COUNT( * ) DIV - 30 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-7969
SELECT ALL COUNT ( * ), COUNT ( * ) / - 30 AS col2
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT ALL + COUNT( * ) * + + 54
----
54

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL + COUNT ( * ) * + + 54
----
54

query II rowsort
SELECT 68 AS col0, 86 AS col0
----
68
86

query I rowsort
SELECT 57 + - 87 + - 97 AS col0
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT 63 * + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-7973
SELECT 63 * + COUNT ( * )
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7974
SELECT DISTINCT - 81 - - 72 * - - COALESCE ( + 31, SUM( ALL + 87 ), 50 DIV + 5 + + 66 + + ( - + 24 ) )
----
2151

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT - 81 - - 72 * - - COALESCE ( + 31, SUM ( ALL + 87 ), 50 / + 5 + + 66 + + ( - + 24 ) )
----
2151

query I rowsort
SELECT ALL - 63 - 46 AS col2
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7976
SELECT 53 * - CAST( - 33 AS SIGNED ) * 56 * + 60 * + + SUM( + 77 )
----
452501280

skipif mysql # not compatible
query I rowsort label-7976
SELECT 53 * - CAST ( - 33 AS INTEGER ) * 56 * + 60 * + + SUM ( + 77 )
----
452501280

query I rowsort
SELECT ALL 58 * + 57 col2
----
3306

query I rowsort
SELECT DISTINCT COALESCE ( ( - 97 ), 89 + + 81 ) - + 18 AS col0
----
-115

query I rowsort
SELECT 52 * ( - + NULLIF ( - + 11, 13 ) ) AS col0
----
572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7980
SELECT ALL - MAX( DISTINCT - 56 ) * - CAST( NULL AS SIGNED ) + - 47 + + - 67 * - - 70 * - + 77 + + MIN( DISTINCT - 65 ) + + + 44 / 89 * - 7 + + COUNT( + 64 ) + + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL - MAX ( DISTINCT - 56 ) * - CAST ( NULL AS INTEGER ) + - 47 + + - 67 * - - 70 * - + 77 + + MIN ( DISTINCT - 65 ) + + + 44 / 89 * - 7 + + COUNT ( + 64 ) + + + 79
----
NULL

query I rowsort
SELECT 78 * - 42
----
-3276

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7982
SELECT ALL - CAST( + 40 AS SIGNED ) AS col0, COALESCE ( + 53, + 73, - - 93 + 83 * - 10 )
----
-40
53

skipif mysql # not compatible
query II rowsort label-7982
SELECT ALL - CAST ( + 40 AS INTEGER ) AS col0, COALESCE ( + 53, + 73, - - 93 + 83 * - 10 )
----
-40
53

query I rowsort
SELECT ALL - 74 * - 45 * - 69 col2
----
-229770

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7984
SELECT DISTINCT - 52 * + 27 col1, + CAST( NULL AS DECIMAL ) * + - 11 * - 75 * - - 71 / - 72 col0
----
-1404
NULL

skipif mysql # not compatible
query II rowsort label-7984
SELECT DISTINCT - 52 * + 27 col1, + CAST ( NULL AS REAL ) * + - 11 * - 75 * - - 71 / - 72 col0
----
-1404
NULL

query I rowsort
SELECT DISTINCT - 36 + - - 96
----
60

query I rowsort
SELECT + 31 * - 34 col0
----
-1054

onlyif mysql # DIV for integer division: 
query II rowsort label-7987
SELECT - 40 DIV - 89 AS col1, - 23 AS col0
----
0
-23

skipif mysql # not compatible
query II rowsort label-7987
SELECT - 40 / - 89 AS col1, - 23 AS col0
----
0
-23

query I rowsort
SELECT ALL - 3 + - 83 * - 80 - 78 - + 11
----
6548

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT ALL + 44 + MIN( - + 75 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL + 44 + MIN ( - + 75 ) AS col0
----
-31

query I rowsort
SELECT DISTINCT + 70 + - 53 AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7991
SELECT - + 59 * COUNT( * ) + CAST( + 6 AS SIGNED ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-7991
SELECT - + 59 * COUNT ( * ) + CAST ( + 6 AS INTEGER ) AS col1
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-7992
SELECT ALL 36 DIV - 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL 36 / - 72 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT + - MAX( ALL - COALESCE ( - - CASE - + 2 WHEN + - 57 THEN + + 82 + - 21 * - + 80 END, + 16 * + 41 + 20 + + 88 ) ) AS col0
----
764

skipif mysql # not compatible
query I rowsort label-7993
SELECT + - MAX ( ALL - COALESCE ( - - CASE - + 2 WHEN + - 57 THEN + + 82 + - 21 * - + 80 END, + 16 * + 41 + 20 + + 88 ) ) AS col0
----
764

query II rowsort
SELECT ALL + 87 + - + 18, 81 AS col2
----
69
81

onlyif mysql # DIV for integer division: 
query II rowsort label-7995
SELECT ( - 64 ) DIV + 19 AS col1, 24 AS col1
----
-3
24

skipif mysql # not compatible
query II rowsort label-7995
SELECT ( - 64 ) / + 19 AS col1, 24 AS col1
----
-3
24

query I rowsort
SELECT ALL ( + + 97 ) + + 95
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7997
SELECT DISTINCT - - SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7997
SELECT DISTINCT - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7998
SELECT DISTINCT 21 * + + 92 DIV + 23
----
84

skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT 21 * + + 92 / + 23
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT - COUNT( + 96 ) - 28 * - + 65 - + - ( + 50 )
----
1869

skipif mysql # not compatible
query I rowsort label-7999
SELECT - COUNT ( + 96 ) - 28 * - + 65 - + - ( + 50 )
----
1869

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT + COUNT( + 40 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8000
SELECT + COUNT ( + 40 ) AS col1
----
1

query II rowsort
SELECT ALL - - ( + 8 ), 43 * + 96 AS col2
----
8
4128

query II rowsort
SELECT 71 AS col0, + 68 AS col0
----
71
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8003
SELECT ALL 90 col1, - CAST( + 80 AS SIGNED )
----
90
-80

skipif mysql # not compatible
query II rowsort label-8003
SELECT ALL 90 col1, - CAST ( + 80 AS INTEGER )
----
90
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT SUM( 14 ) - - 2
----
16

skipif mysql # not compatible
query I rowsort label-8004
SELECT SUM ( 14 ) - - 2
----
16

query II rowsort
SELECT ALL 47 col0, - 32
----
47
-32

query I rowsort
SELECT 72 - - - 54 col1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-8007
SELECT ALL COUNT( * ), + 56 AS col0
----
1
56

skipif mysql # not compatible
query II rowsort label-8007
SELECT ALL COUNT ( * ), + 56 AS col0
----
1
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8008
SELECT - COALESCE ( 34, - CAST( NULL AS SIGNED ) * + 77 ) * 31 + 43 * - 0 AS col0
----
-1054

skipif mysql # not compatible
query I rowsort label-8008
SELECT - COALESCE ( 34, - CAST ( NULL AS INTEGER ) * + 77 ) * 31 + 43 * - 0 AS col0
----
-1054

query I rowsort
SELECT DISTINCT 46 * + 48
----
2208

query I rowsort
SELECT + 10 + 52 AS col2
----
62

query I rowsort
SELECT - 75 * - - 78
----
-5850

query I rowsort
SELECT DISTINCT 10 * + 91 AS col2
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT ALL 45 + + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL 45 + + COUNT ( * )
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-8014
SELECT - 33 + - - ( - 93 ) AS col1, 86 DIV + 93 + - 76 AS col2
----
-126
-76

skipif mysql # not compatible
query II rowsort label-8014
SELECT - 33 + - - ( - 93 ) AS col1, 86 / + 93 + - 76 AS col2
----
-126
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-8015
SELECT ALL 88 AS col1, + ( + 58 ) + + COUNT( * )
----
88
59

skipif mysql # not compatible
query II rowsort label-8015
SELECT ALL 88 AS col1, + ( + 58 ) + + COUNT ( * )
----
88
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8016
SELECT DISTINCT + CAST( 67 AS SIGNED ) + 89 * 48 + 64 AS col2
----
4403

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT + CAST ( 67 AS INTEGER ) + 89 * 48 + 64 AS col2
----
4403

onlyif mysql # DIV for integer division: 
query I rowsort label-8017
SELECT + - 59 DIV + 60 + 28 - + 94
----
-66

skipif mysql # not compatible
query I rowsort label-8017
SELECT + - 59 / + 60 + 28 - + 94
----
-66

query I rowsort
SELECT - - 54 + - + 39 AS col0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8019
SELECT 36 AS col1, + 65 * CASE COALESCE ( + 5, 46 + 5 + - COUNT( * ) + + 56 / 97 ) WHEN 1 THEN 58 * - 49 + + ( - 10 ) ELSE + - 48 END AS col1
----
36
-3120

skipif mysql # not compatible
query II rowsort label-8019
SELECT 36 AS col1, + 65 * CASE COALESCE ( + 5, 46 + 5 + - COUNT ( * ) + + 56 / 97 ) WHEN 1 THEN 58 * - 49 + + ( - 10 ) ELSE + - 48 END AS col1
----
36
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT ALL - - 26 * COALESCE ( - MIN( ALL - 73 ), 63 + 41 ) + + + 62 * + 26 + - 89
----
3421

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL - - 26 * COALESCE ( - MIN ( ALL - 73 ), 63 + 41 ) + + + 62 * + 26 + - 89
----
3421

onlyif mysql # aggregate syntax: 
query II rowsort label-8021
SELECT + - 19 col0, - COUNT( * )
----
-19
-1

skipif mysql # not compatible
query II rowsort label-8021
SELECT + - 19 col0, - COUNT ( * )
----
-19
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8022
SELECT CASE + + 1 WHEN + 45 THEN - COALESCE ( - COUNT( * ), 32 * + COUNT( * ) + 57 ) + + AVG ( ALL + 5 ) ELSE 24 END AS col1, 6
----
24
6

skipif mysql # not compatible
query II rowsort label-8022
SELECT CASE + + 1 WHEN + 45 THEN - COALESCE ( - COUNT ( * ), 32 * + COUNT ( * ) + 57 ) + + AVG ( ALL + 5 ) ELSE 24 END AS col1, 6
----
24
6

query I rowsort
SELECT ALL - 76 * 89 + - + ( - 13 ) AS col1
----
-6751

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT ALL + + MAX( DISTINCT - - ( - 2 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL + + MAX ( DISTINCT - - ( - 2 ) )
----
-2

query I rowsort
SELECT 10 * - 98 - - + 11 - + 46 AS col0
----
-1015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8026
SELECT 17 AS col1, 13 * - CAST( NULL AS SIGNED ) * CASE 84 WHEN COUNT( * ) * - - 89 + ( + 93 ) THEN 31 WHEN - - 18 THEN + 59 ELSE NULL END AS col2
----
17
NULL

skipif mysql # not compatible
query II rowsort label-8026
SELECT 17 AS col1, 13 * - CAST ( NULL AS INTEGER ) * CASE 84 WHEN COUNT ( * ) * - - 89 + ( + 93 ) THEN 31 WHEN - - 18 THEN + 59 ELSE NULL END AS col2
----
17
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8027
SELECT - 97 * - - ( - COUNT( * ) ), 69 AS col1
----
97
69

skipif mysql # not compatible
query II rowsort label-8027
SELECT - 97 * - - ( - COUNT ( * ) ), 69 AS col1
----
97
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT + COUNT( - 72 ) * 52
----
52

skipif mysql # not compatible
query I rowsort label-8028
SELECT + COUNT ( - 72 ) * 52
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8029
SELECT - 87 * 32 * - ( - MAX( - - 94 ) ) + + 93 * + AVG ( 27 ) * + COUNT( * ) * - - CAST( NULL AS SIGNED ) * - CAST( - 90 AS DECIMAL ) + + + ( 11 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8029
SELECT - 87 * 32 * - ( - MAX ( - - 94 ) ) + + 93 * + AVG ( 27 ) * + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * - CAST ( - 90 AS REAL ) + + + ( 11 ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8030
SELECT ALL + 47 AS col1, CAST( NULL AS SIGNED ) * + - 30
----
47
NULL

skipif mysql # not compatible
query II rowsort label-8030
SELECT ALL + 47 AS col1, CAST ( NULL AS INTEGER ) * + - 30
----
47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT - - 0 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8031
SELECT - - 0 + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8032
SELECT DISTINCT - CASE - 59 WHEN + 77 THEN 36 WHEN + + NULLIF ( NULLIF ( + CAST( + 7 AS SIGNED ), 39 ), + COUNT( - 13 ) ) THEN - - 49 + + COUNT( ALL 20 ) ELSE - 56 + + 64 * COUNT( * ) * - 45 END * - + 43 + - 62 + - 85 - 70
----
-126465

skipif mysql # not compatible
query I rowsort label-8032
SELECT DISTINCT - CASE - 59 WHEN + 77 THEN 36 WHEN + + NULLIF ( NULLIF ( + CAST ( + 7 AS INTEGER ), 39 ), + COUNT ( - 13 ) ) THEN - - 49 + + COUNT ( ALL 20 ) ELSE - 56 + + 64 * COUNT ( * ) * - 45 END * - + 43 + - 62 + - 85 - 70
----
-126465

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8033
SELECT ALL 64 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL 64 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8034
SELECT ALL ( - - SUM( DISTINCT ( 60 ) ) ) AS col1, 28 * 93
----
60
2604

skipif mysql # not compatible
query II rowsort label-8034
SELECT ALL ( - - SUM ( DISTINCT ( 60 ) ) ) AS col1, 28 * 93
----
60
2604

query I rowsort
SELECT DISTINCT 58 * - - 72 AS col1
----
4176

query I rowsort
SELECT + 28 * 97 + - 64
----
2652

query I rowsort
SELECT ALL 29 * - 24
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT - MIN( + ( + 26 ) ) * - MIN( - 6 ) + - 42 AS col1
----
-198

skipif mysql # not compatible
query I rowsort label-8038
SELECT - MIN ( + ( + 26 ) ) * - MIN ( - 6 ) + - 42 AS col1
----
-198

query I rowsort
SELECT ALL 5 * - 63 * + 51
----
-16065

onlyif mysql # aggregate syntax: 
query II rowsort label-8040
SELECT - COALESCE ( - 47, - COUNT( * ) + + 70 ) AS col0, - 68 AS col1
----
47
-68

skipif mysql # not compatible
query II rowsort label-8040
SELECT - COALESCE ( - 47, - COUNT ( * ) + + 70 ) AS col0, - 68 AS col1
----
47
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT DISTINCT MAX( + ( 99 ) ) + 71
----
170

skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT MAX ( + ( 99 ) ) + 71
----
170

query I rowsort
SELECT ALL 51 + - 22
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT DISTINCT SUM( + - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-8043
SELECT DISTINCT SUM ( + - 58 )
----
-58

query I rowsort
SELECT DISTINCT - ( 62 ) + 60 col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8045
SELECT DISTINCT MAX( DISTINCT + 73 ) + MAX( 43 ), 4 * + + 15 AS col0
----
116
60

skipif mysql # not compatible
query II rowsort label-8045
SELECT DISTINCT MAX ( DISTINCT + 73 ) + MAX ( 43 ), 4 * + + 15 AS col0
----
116
60

query I rowsort
SELECT - 13 * - 52 * + 26 + - 19 AS col1
----
17557

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT + + 81 + + COUNT( * ) + 6
----
88

skipif mysql # not compatible
query I rowsort label-8047
SELECT + + 81 + + COUNT ( * ) + 6
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8048
SELECT ALL + 42 + 20 + + COUNT( * ) + COUNT( * ) + + 61 DIV 40 * - 32 DIV + 23 + - - 50 AS col0
----
113

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL + 42 + 20 + + COUNT ( * ) + COUNT ( * ) + + 61 / 40 * - 32 / + 23 + - - 50 AS col0
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-8049
SELECT DISTINCT + + COUNT( DISTINCT - 61 ) AS col0, 50 AS col1
----
1
50

skipif mysql # not compatible
query II rowsort label-8049
SELECT DISTINCT + + COUNT ( DISTINCT - 61 ) AS col0, 50 AS col1
----
1
50

query I rowsort
SELECT DISTINCT + + 76 col1
----
76

query I rowsort
SELECT - 65 * - + 68 - + + 27
----
4393

query I rowsort
SELECT + 55 * - - 61 AS col1
----
3355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8053
SELECT 65 * - MIN( + 11 ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8053
SELECT 65 * - MIN ( + 11 ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT + ( + + SUM( DISTINCT - 8 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-8054
SELECT + ( + + SUM ( DISTINCT - 8 ) )
----
-8

query I rowsort
SELECT ALL + - 68 * + 79
----
-5372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8056
SELECT ALL + COUNT( * ) AS col2, + 93 * + CASE - 74 WHEN + CAST( + 65 AS SIGNED ) / 84 * - 33 - - 2 + ( + 82 ) * 24 THEN - 82 WHEN - 67 THEN NULL ELSE NULL END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8056
SELECT ALL + COUNT ( * ) AS col2, + 93 * + CASE - 74 WHEN + CAST ( + 65 AS INTEGER ) / 84 * - 33 - - 2 + ( + 82 ) * 24 THEN - 82 WHEN - 67 THEN NULL ELSE NULL END
----
1
NULL

query I rowsort
SELECT - NULLIF ( - - 30, - 2 ) * 40 + - - CASE - - 22 WHEN + 53 THEN 81 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8058
SELECT ALL + 77 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8058
SELECT ALL + 77 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 59 * + 23 AS col0
----
1357

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT 68 * - - 85 * + COUNT( * ) - - 13
----
5793

skipif mysql # not compatible
query I rowsort label-8060
SELECT 68 * - - 85 * + COUNT ( * ) - - 13
----
5793

query I rowsort
SELECT 56 * - 74 AS col2
----
-4144

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT ALL + COUNT( DISTINCT 32 ) + - 37
----
-36

skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL + COUNT ( DISTINCT 32 ) + - 37
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT 72 - 19 * - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-8063
SELECT 72 - 19 * - COUNT ( * )
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8064
SELECT ALL - 14 DIV - + 71
----
0

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL - 14 / - + 71
----
0

query I rowsort
SELECT 81 * + + 82
----
6642

query I rowsort
SELECT ALL 75 + - 72
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8067
SELECT 39, CAST( - 99 AS SIGNED ) - + 36 AS col2
----
39
-135

skipif mysql # not compatible
query II rowsort label-8067
SELECT 39, CAST ( - 99 AS INTEGER ) - + 36 AS col2
----
39
-135

query I rowsort
SELECT 91 * 12
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT ALL MIN( - - 16 ) + - - 47 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL MIN ( - - 16 ) + - - 47 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT DISTINCT + COUNT( ALL + 51 ) + - 36 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT + COUNT ( ALL + 51 ) + - 36 AS col0
----
-35

query I rowsort
SELECT 81 + 28
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8072
SELECT ALL + 42 + - MIN( - 76 ) - - 3 DIV + + ( + + 71 ) * COALESCE ( 33, - 70 DIV COUNT( + 28 ) * 58 * - 66, 33 + ( - 29 ) * - NULLIF ( + 44, - - 73 ) ) * - ( - 38 ) + 90
----
208

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL + 42 + - MIN ( - 76 ) - - 3 / + + ( + + 71 ) * COALESCE ( 33, - 70 / COUNT ( + 28 ) * 58 * - 66, 33 + ( - 29 ) * - NULLIF ( + 44, - - 73 ) ) * - ( - 38 ) + 90
----
208

query I rowsort
SELECT DISTINCT 74 * - 64 AS col0
----
-4736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8074
SELECT 97 + - CAST( NULL AS SIGNED ) * - 77 * - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8074
SELECT 97 + - CAST ( NULL AS INTEGER ) * - 77 * - 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT COUNT( * ) + 13 * + COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-8075
SELECT COUNT ( * ) + 13 * + COUNT ( * ) AS col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8076
SELECT CAST( NULL AS SIGNED ) - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-8076
SELECT CAST ( NULL AS INTEGER ) - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT 16 + - MAX( DISTINCT 98 + - 60 * - 73 ) AS col0
----
-4462

skipif mysql # not compatible
query I rowsort label-8077
SELECT 16 + - MAX ( DISTINCT 98 + - 60 * - 73 ) AS col0
----
-4462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8078
SELECT ALL MIN( + 90 ) + - ( 90 ) DIV - ( + COUNT( * ) ) AS col2
----
180

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL MIN ( + 90 ) + - ( 90 ) / - ( + COUNT ( * ) ) AS col2
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8079
SELECT ( CAST( NULL AS SIGNED ) ) * 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT ( CAST ( NULL AS INTEGER ) ) * 10 AS col1
----
NULL

query I rowsort
SELECT ALL 55 * + 25 col1
----
1375

onlyif mysql # DIV for integer division: 
query I rowsort label-8081
SELECT DISTINCT 67 - + ( - 24 ) DIV 10 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT 67 - + ( - 24 ) / 10 AS col0
----
69

query I rowsort
SELECT 50 + + 36
----
86

query I rowsort
SELECT ALL 2 - - 56 * 20
----
1122

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT 21 * COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-8084
SELECT 21 * COUNT ( * )
----
21

query I rowsort
SELECT 57 * 30
----
1710

query I rowsort
SELECT DISTINCT 36 * - 1 col2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-8087
SELECT - 21 DIV ( 81 ) + 88
----
88

skipif mysql # not compatible
query I rowsort label-8087
SELECT - 21 / ( 81 ) + 88
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-8088
SELECT ALL 66 DIV - 49 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL 66 / - 49 AS col1
----
-1

query I rowsort
SELECT 47 * - 28 AS col2
----
-1316

query I rowsort
SELECT DISTINCT 1 * + 67
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8091
SELECT ALL - 9 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL - 9 / + 98
----
0

query I rowsort
SELECT ( + 59 ) * - 58 AS col0
----
-3422

query I rowsort
SELECT ( + 87 ) + 43
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8094
SELECT DISTINCT - NULLIF ( + COUNT( CAST( NULL AS SIGNED ) ), 63 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT - NULLIF ( + COUNT ( CAST ( NULL AS INTEGER ) ), 63 ) col2
----
0

query I rowsort
SELECT 98 - 61
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8096
SELECT COUNT( * ) - COUNT( * ) DIV 39
----
1

skipif mysql # not compatible
query I rowsort label-8096
SELECT COUNT ( * ) - COUNT ( * ) / 39
----
1

query I rowsort
SELECT 81 + 18 AS col2
----
99

query I rowsort
SELECT ALL - 19 * 62
----
-1178

query I rowsort
SELECT ALL 46 + - 57
----
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8100
SELECT 97 + COUNT( * ) * - NULLIF ( + CAST( NULL AS DECIMAL ) - + COUNT( * ), 18 * + COUNT( * ) - - 8 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8100
SELECT 97 + COUNT ( * ) * - NULLIF ( + CAST ( NULL AS REAL ) - + COUNT ( * ), 18 * + COUNT ( * ) - - 8 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT DISTINCT - COALESCE ( - 30, ( SUM( + 72 ) ), - 14 + 83 ) * - 94
----
-2820

skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT - COALESCE ( - 30, ( SUM ( + 72 ) ), - 14 + 83 ) * - 94
----
-2820

query I rowsort
SELECT ALL + 47 + 61
----
108

query I rowsort
SELECT 7 + - 16 AS col2
----
-9

query I rowsort
SELECT ALL + 74 + 25 * ( - 98 + + 53 ) col0
----
-1051

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT - SUM( 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-8105
SELECT - SUM ( 15 )
----
-15

query I rowsort
SELECT 47 * + ( 75 ) + 59 AS col2
----
3584

query I rowsort
SELECT ALL - 10 + 57
----
47

query I rowsort
SELECT 87 * 17 AS col1
----
1479

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT ALL SUM( 95 )
----
95

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL SUM ( 95 )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-8110
SELECT 6 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-8110
SELECT 6 / - 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT ALL - COUNT( * ) - 65 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-8111
SELECT ALL - COUNT ( * ) - 65 AS col0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-8112
SELECT DISTINCT - + COALESCE ( + 32, + 79 - - 84 ) DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT - + COALESCE ( + 32, + 79 - - 84 ) / 53
----
0

query I rowsort
SELECT DISTINCT - 36 * 56
----
-2016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8114
SELECT SUM( 79 ) DIV 7 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8114
SELECT SUM ( 79 ) / 7 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT ALL + 3 * - MIN( DISTINCT + 69 ) AS col1
----
-207

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL + 3 * - MIN ( DISTINCT + 69 ) AS col1
----
-207

query I rowsort
SELECT ALL + 45 * - ( 81 * - 74 - - 10 * 76 ) AS col0
----
235530

query I rowsort
SELECT 71 + + 7
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT - + COUNT( DISTINCT 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-8118
SELECT - + COUNT ( DISTINCT 66 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT ALL + - COUNT( ALL - 93 ) * - 16
----
16

skipif mysql # not compatible
query I rowsort label-8119
SELECT ALL + - COUNT ( ALL - 93 ) * - 16
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-8120
SELECT 74 DIV COALESCE ( - 97, 40 * 89 + 71 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8120
SELECT 74 / COALESCE ( - 97, 40 * 89 + 71 ) AS col1
----
0

query I rowsort
SELECT - 6 * CASE 69 * 18 WHEN - ( 32 ) THEN NULL ELSE + 86 * + 56 - + 97 END AS col2
----
-28314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8122
SELECT ALL + + AVG ( ( 22 ) ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL + + AVG ( ( 22 ) ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 20 - + 19 * + 64 AS col1
----
-1196

query I rowsort
SELECT 63 * ( + 82 )
----
5166

query I rowsort
SELECT ALL 90 * + 7
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT - CASE - SUM( ALL 92 ) WHEN - 13 THEN NULL WHEN 65 THEN - 59 * + 84 ELSE NULL END - 40 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8126
SELECT - CASE - SUM ( ALL 92 ) WHEN - 13 THEN NULL WHEN 65 THEN - 59 * + 84 ELSE NULL END - 40 col0
----
NULL

query I rowsort
SELECT DISTINCT - 40 * 45 AS col1
----
-1800

query I rowsort
SELECT ALL - + 85 * - 12
----
1020

query I rowsort
SELECT DISTINCT - 76 * - 39 + + 86
----
3050

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL + + CASE - 68 WHEN COUNT( * ) * 25 + 20 THEN + 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL + + CASE - 68 WHEN COUNT ( * ) * 25 + 20 THEN + 25 END
----
NULL

query I rowsort
SELECT - + 52 * 25
----
-1300

query I rowsort
SELECT + ( + 52 ) * 31 AS col1
----
1612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8133
SELECT CASE + ( - 85 ) WHEN 49 * - 99 - ( + CAST( + 35 AS SIGNED ) - 71 ) * 2 THEN 3 + - 7 * 86 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8133
SELECT CASE + ( - 85 ) WHEN 49 * - 99 - ( + CAST ( + 35 AS INTEGER ) - 71 ) * 2 THEN 3 + - 7 * 86 END AS col1
----
NULL

query I rowsort
SELECT + CASE - + 81 WHEN - 51 THEN 19 * - 3 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT MAX( + 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-8135
SELECT MAX ( + 71 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT ALL 34 * + COALESCE ( + 67, - COUNT( * ) * CASE 38 WHEN + 42 THEN + COUNT( DISTINCT 15 ) END ) + - 23 * + COUNT( * )
----
2255

skipif mysql # not compatible
query I rowsort label-8136
SELECT ALL 34 * + COALESCE ( + 67, - COUNT ( * ) * CASE 38 WHEN + 42 THEN + COUNT ( DISTINCT 15 ) END ) + - 23 * + COUNT ( * )
----
2255

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT + SUM( - 73 ) * + 84 AS col2
----
-6132

skipif mysql # not compatible
query I rowsort label-8137
SELECT + SUM ( - 73 ) * + 84 AS col2
----
-6132

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT DISTINCT 11 * + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-8138
SELECT DISTINCT 11 * + COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT ALL + SUM( - ( + 48 ) ) * 6 + + 25 * + 44 AS col1
----
812

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL + SUM ( - ( + 48 ) ) * 6 + + 25 * + 44 AS col1
----
812

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8140
SELECT + COALESCE ( 3, 27 * 0, COUNT( * ) DIV + 98 )
----
3

skipif mysql # not compatible
query I rowsort label-8140
SELECT + COALESCE ( 3, 27 * 0, COUNT ( * ) / + 98 )
----
3

query I rowsort
SELECT ALL 71 * 0 + + 28 AS col0
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8142
SELECT DISTINCT 40 * CAST( COUNT( * ) AS SIGNED ) * + 23 + 9 col1
----
929

skipif mysql # not compatible
query I rowsort label-8142
SELECT DISTINCT 40 * CAST ( COUNT ( * ) AS INTEGER ) * + 23 + 9 col1
----
929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8143
SELECT + 33 * - CAST( NULL AS SIGNED ) - COUNT( - 82 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8143
SELECT + 33 * - CAST ( NULL AS INTEGER ) - COUNT ( - 82 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT + 98 - - ( COUNT( * ) ) col1
----
99

skipif mysql # not compatible
query I rowsort label-8144
SELECT + 98 - - ( COUNT ( * ) ) col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT - 62 * - - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-8145
SELECT - 62 * - - COUNT ( * )
----
-62

query I rowsort
SELECT + 74 + - ( + 9 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT ALL SUM( ALL 26 )
----
26

skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL SUM ( ALL 26 )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8148
SELECT ALL - CASE 47 WHEN + 18 - + MAX( DISTINCT + COALESCE ( 31, 62 * 98, - 23 ) + 30 ) THEN 60 WHEN 17 THEN NULL END - - 75 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL - CASE 47 WHEN + 18 - + MAX ( DISTINCT + COALESCE ( 31, 62 * 98, - 23 ) + 30 ) THEN 60 WHEN 17 THEN NULL END - - 75 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 68 * 9
----
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT - - COUNT( * ) - - 65
----
66

skipif mysql # not compatible
query I rowsort label-8150
SELECT - - COUNT ( * ) - - 65
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT ALL COALESCE ( - 12, SUM( DISTINCT - ( - 39 ) ), - MAX( ALL 69 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL COALESCE ( - 12, SUM ( DISTINCT - ( - 39 ) ), - MAX ( ALL 69 ) )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8152
SELECT - 68 - - + CAST( 50 AS SIGNED ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-8152
SELECT - 68 - - + CAST ( 50 AS INTEGER ) AS col0
----
-18

query I rowsort
SELECT ALL - + 37 - - 29 AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8154
SELECT + CAST( NULL AS SIGNED ) * + 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8154
SELECT + CAST ( NULL AS INTEGER ) * + 67 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT - MIN( - 84 ) * COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-8155
SELECT - MIN ( - 84 ) * COUNT ( * )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8156
SELECT - 82 + + 72 + - 71 * - CAST( + COUNT( * ) AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-8156
SELECT - 82 + + 72 + - 71 * - CAST ( + COUNT ( * ) AS INTEGER )
----
61

query I rowsort
SELECT DISTINCT - 30 * + 80 col0
----
-2400

onlyif mysql # DIV for integer division: 
query I rowsort label-8158
SELECT - 95 * + 62 + - 40 DIV 88 AS col0
----
-5890

skipif mysql # not compatible
query I rowsort label-8158
SELECT - 95 * + 62 + - 40 / 88 AS col0
----
-5890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8159
SELECT - CAST( NULL AS SIGNED ) + 84 * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-8159
SELECT - CAST ( NULL AS INTEGER ) + 84 * + 10
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8160
SELECT - + 3 DIV 12
----
0

skipif mysql # not compatible
query I rowsort label-8160
SELECT - + 3 / 12
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8161
SELECT - - 92 * - CAST( + 92 AS SIGNED ) + + 33 AS col2
----
-8431

skipif mysql # not compatible
query I rowsort label-8161
SELECT - - 92 * - CAST ( + 92 AS INTEGER ) + + 33 AS col2
----
-8431

query I rowsort
SELECT - 48 + + + 4 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT SUM( DISTINCT + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-8163
SELECT SUM ( DISTINCT + 24 )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8164
SELECT - + CASE - 9 WHEN + 43 THEN + 82 WHEN + 29 THEN NULL END + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8164
SELECT - + CASE - 9 WHEN + 43 THEN + 82 WHEN + 29 THEN NULL END + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8165
SELECT ALL + 47 DIV - - 92 * + 83 - 98 col0
----
-98

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL + 47 / - - 92 * + 83 - 98 col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT ALL + 31 + 26 + COALESCE ( + 96, 12 * COUNT( * ) )
----
153

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL + 31 + 26 + COALESCE ( + 96, 12 * COUNT ( * ) )
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8167
SELECT DISTINCT + + 20 / - CASE 80 WHEN + 25 THEN 92 * COALESCE ( 56, + 9, COUNT( * ) - + COALESCE ( - COUNT( * ), COUNT( ALL + 50 ) * - COUNT( CAST( NULL AS SIGNED ) ) + 50 ) ) + AVG ( DISTINCT - 14 ) WHEN - 83 * + AVG ( ALL - 53 ) + + 85 / CASE - 85 WHEN 6 * MIN( + 50 * 29 ) + - MAX( ALL 3 ) THEN MIN( 90 ) * + 81 WHEN + ( + 64 ) * - 0 + - 33 THEN NULL END THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8167
SELECT DISTINCT + + 20 / - CASE 80 WHEN + 25 THEN 92 * COALESCE ( 56, + 9, COUNT ( * ) - + COALESCE ( - COUNT ( * ), COUNT ( ALL + 50 ) * - COUNT ( CAST ( NULL AS INTEGER ) ) + 50 ) ) + AVG ( DISTINCT - 14 ) WHEN - 83 * + AVG ( ALL - 53 ) + + 85 / CASE - 85 WHEN 6 * MIN ( + 50 * 29 ) + - MAX ( ALL 3 ) THEN MIN ( 90 ) * + 81 WHEN + ( + 64 ) * - 0 + - 33 THEN NULL END THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 98 + - + 75
----
-173

onlyif mysql # DIV for integer division: 
query I rowsort label-8169
SELECT - 98 + + 83 DIV 44 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-8169
SELECT - 98 + + 83 / 44 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT ALL + SUM( + 72 ) * 74
----
5328

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL + SUM ( + 72 ) * 74
----
5328

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT DISTINCT + SUM( - + NULLIF ( 12, - 49 / + 73 ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-8171
SELECT DISTINCT + SUM ( - + NULLIF ( 12, - 49 / + 73 ) ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT - COUNT( * ) + + - 78 + + 76 * 12 AS col0
----
833

skipif mysql # not compatible
query I rowsort label-8172
SELECT - COUNT ( * ) + + - 78 + + 76 * 12 AS col0
----
833

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT MIN( ALL - 0 ) * + MAX( - 94 + 60 ) + 77 * 84
----
6468

skipif mysql # not compatible
query I rowsort label-8173
SELECT MIN ( ALL - 0 ) * + MAX ( - 94 + 60 ) + 77 * 84
----
6468

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8174
SELECT CAST( NULL AS SIGNED ), + 62 + 37 + 6 AS col0
----
NULL
105

skipif mysql # not compatible
query II rowsort label-8174
SELECT CAST ( NULL AS INTEGER ), + 62 + 37 + 6 AS col0
----
NULL
105

query I rowsort
SELECT DISTINCT + ( + - 76 )
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8176
SELECT ALL + 95 DIV - - COUNT( * ) + - COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL + 95 / - - COUNT ( * ) + - COUNT ( * )
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8177
SELECT DISTINCT NULLIF ( + + 5, - + 32 + + 85 ) DIV - 79 + ( + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-8177
SELECT DISTINCT NULLIF ( + + 5, - + 32 + + 85 ) / - 79 + ( + 69 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8178
SELECT - 30 * + 31 * + 69 / CASE + 90 * - 22 WHEN MIN( ALL - 29 ) THEN - ( - COUNT( * ) ) WHEN CAST( + 23 AS DECIMAL ) THEN 62 * - 38 ELSE + CASE CAST( - COUNT( * ) AS SIGNED ) WHEN 82 * 98 THEN NULL ELSE + 50 * CAST( NULL AS SIGNED ) + ( 18 ) END + 75 / 1 END + - 27 * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT - 30 * + 31 * + 69 / CASE + 90 * - 22 WHEN MIN ( ALL - 29 ) THEN - ( - COUNT ( * ) ) WHEN CAST ( + 23 AS REAL ) THEN 62 * - 38 ELSE + CASE CAST ( - COUNT ( * ) AS INTEGER ) WHEN 82 * 98 THEN NULL ELSE + 50 * CAST ( NULL AS INTEGER ) + ( 18 ) END + 75 / 1 END + - 27 * 57
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8179
SELECT ALL + 45 AS col2, COALESCE ( - COUNT( * ), 33 + - 37 * CAST( NULL AS SIGNED ), + 96 ) * 92 AS col0
----
45
-92

skipif mysql # not compatible
query II rowsort label-8179
SELECT ALL + 45 AS col2, COALESCE ( - COUNT ( * ), 33 + - 37 * CAST ( NULL AS INTEGER ), + 96 ) * 92 AS col0
----
45
-92

query I rowsort
SELECT ( - ( - NULLIF ( 73, 95 ) ) ) AS col2
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8181
SELECT 83 DIV - 98 * - 26 * 84 + + 2 * - 16 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-8181
SELECT 83 / - 98 * - 26 * 84 + + 2 * - 16 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT - 22 + MIN( - 71 )
----
-93

skipif mysql # not compatible
query I rowsort label-8182
SELECT - 22 + MIN ( - 71 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT - CASE 72 WHEN - COUNT( * ) THEN 54 WHEN + COUNT( * ) * COUNT( * ) - 80 THEN NULL WHEN COUNT( * ) + 98 * COALESCE ( + 88 * - 15, 20 + 99 * 59, - 7 ) THEN NULL ELSE NULL END * + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8183
SELECT - CASE 72 WHEN - COUNT ( * ) THEN 54 WHEN + COUNT ( * ) * COUNT ( * ) - 80 THEN NULL WHEN COUNT ( * ) + 98 * COALESCE ( + 88 * - 15, 20 + 99 * 59, - 7 ) THEN NULL ELSE NULL END * + 52 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT ALL COUNT( DISTINCT - 52 ) * + - 17
----
-17

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL COUNT ( DISTINCT - 52 ) * + - 17
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT 84 * - + MAX( 83 ) * - 86 + + 5
----
599597

skipif mysql # not compatible
query I rowsort label-8185
SELECT 84 * - + MAX ( 83 ) * - 86 + + 5
----
599597

query I rowsort
SELECT ALL + 52 * - 91 - + 60 AS col2
----
-4792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8187
SELECT ALL COALESCE ( + CAST( - 54 AS SIGNED ), + 39 ) * NULLIF ( + 84 - + 2, COUNT( * ) )
----
-4428

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL COALESCE ( + CAST ( - 54 AS INTEGER ), + 39 ) * NULLIF ( + 84 - + 2, COUNT ( * ) )
----
-4428

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT CASE - NULLIF ( - ( + 78 ), 0 * COALESCE ( SUM( ALL 92 ), + 82, + 94 ) + + 37 ) WHEN 93 / + 71 + 33 * + CASE COUNT( * ) WHEN - 82 / + AVG ( - 78 * 74 ) THEN - 76 / 1 + + 61 WHEN COUNT( * ) THEN NULL END THEN - 81 * 25 + 94 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8188
SELECT CASE - NULLIF ( - ( + 78 ), 0 * COALESCE ( SUM ( ALL 92 ), + 82, + 94 ) + + 37 ) WHEN 93 / + 71 + 33 * + CASE COUNT ( * ) WHEN - 82 / + AVG ( - 78 * 74 ) THEN - 76 / 1 + + 61 WHEN COUNT ( * ) THEN NULL END THEN - 81 * 25 + 94 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8189
SELECT + 68 DIV COALESCE ( + 32, - 28, + 48 * + 35 )
----
2

skipif mysql # not compatible
query I rowsort label-8189
SELECT + 68 / COALESCE ( + 32, - 28, + 48 * + 35 )
----
2

query I rowsort
SELECT ALL 50 * + 51
----
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT COALESCE ( 30, - SUM( ( + 72 ) ) )
----
30

skipif mysql # not compatible
query I rowsort label-8191
SELECT COALESCE ( 30, - SUM ( ( + 72 ) ) )
----
30

query I rowsort
SELECT - 18 * 12 * + 50 + - 83
----
-10883

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT - + COUNT( * ) * + - ( 72 ) * - 81
----
-5832

skipif mysql # not compatible
query I rowsort label-8193
SELECT - + COUNT ( * ) * + - ( 72 ) * - 81
----
-5832

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT - 79 * COUNT( * ) * - 6
----
474

skipif mysql # not compatible
query I rowsort label-8194
SELECT - 79 * COUNT ( * ) * - 6
----
474

query II rowsort
SELECT DISTINCT 43, 16 * + ( 84 ) + 82 AS col1
----
43
1426

query I rowsort
SELECT - - ( 50 )
----
50

query I rowsort
SELECT + 41 * 14 AS col0
----
574

query I rowsort
SELECT ALL - 82 + 18
----
-64

query I rowsort
SELECT DISTINCT - + ( - 15 ) + + - ( - 90 ) AS col2
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8200
SELECT ALL + CAST( NULL AS SIGNED ) + - COUNT( * ) / MAX( DISTINCT - ( 74 ) ) + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL + CAST ( NULL AS INTEGER ) + - COUNT ( * ) / MAX ( DISTINCT - ( 74 ) ) + 42
----
NULL

query II rowsort
SELECT - 94 AS col0, - 34
----
-94
-34

query I rowsort
SELECT 3 + 64 AS col1
----
67

query I rowsort
SELECT + NULLIF ( - 13, - 57 * 66 + - ( 35 ) ) col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT - MIN( + 90 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-8204
SELECT - MIN ( + 90 ) AS col2
----
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8205
SELECT DISTINCT + CASE - 18 WHEN - 60 THEN 8 + - 3 * + 97 WHEN 46 THEN - 22 * + COALESCE ( 58, - 61 + CAST( NULL AS DECIMAL ) ) - 65 END / + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8205
SELECT DISTINCT + CASE - 18 WHEN - 60 THEN 8 + - 3 * + 97 WHEN 46 THEN - 22 * + COALESCE ( 58, - 61 + CAST ( NULL AS REAL ) ) - 65 END / + 20 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8206
SELECT ALL + 87 DIV - 66 AS col0, 6 * 42 AS col0
----
-1
252

skipif mysql # not compatible
query II rowsort label-8206
SELECT ALL + 87 / - 66 AS col0, 6 * 42 AS col0
----
-1
252

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT COUNT( * ) + - 26 col2
----
-25

skipif mysql # not compatible
query I rowsort label-8207
SELECT COUNT ( * ) + - 26 col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8208
SELECT 87 * CAST( NULL AS SIGNED ) / + + 38 * COUNT( * ) * 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8208
SELECT 87 * CAST ( NULL AS INTEGER ) / + + 38 * COUNT ( * ) * 33 AS col2
----
NULL

query I rowsort
SELECT 90 * - + 46 col2
----
-4140

query I rowsort
SELECT 26 * + + 13 AS col0
----
338

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT DISTINCT + MIN( 24 ) * + 38
----
912

skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT + MIN ( 24 ) * + 38
----
912

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT - MIN( - 63 ) * - ( COUNT( * ) ) + + 93 * COUNT( * ) + + 20
----
50

skipif mysql # not compatible
query I rowsort label-8212
SELECT - MIN ( - 63 ) * - ( COUNT ( * ) ) + + 93 * COUNT ( * ) + + 20
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT ALL + ( - COUNT( - 17 ) ) - 49 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL + ( - COUNT ( - 17 ) ) - 49 AS col2
----
-50

query I rowsort
SELECT DISTINCT + 98 * + - 52 col1
----
-5096

query I rowsort
SELECT 89 * - ( - 14 ) + 45 AS col0
----
1291

query I rowsort
SELECT 15 * - 43 * + + 8
----
-5160

query I rowsort
SELECT + 50 * + 50 + 60 + - 13 AS col0
----
2547

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8218
SELECT - + 65 * + 60 - + 94 + ( + COUNT( * ) ) DIV - 64 AS col0
----
-3994

skipif mysql # not compatible
query I rowsort label-8218
SELECT - + 65 * + 60 - + 94 + ( + COUNT ( * ) ) / - 64 AS col0
----
-3994

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8219
SELECT - CAST( 5 AS SIGNED ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-8219
SELECT - CAST ( 5 AS INTEGER ) AS col1
----
-5

query I rowsort
SELECT + 3 - + 64 * - - 28 AS col0
----
-1789

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8221
SELECT + 77 DIV + 15 * - - COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8221
SELECT + 77 / + 15 * - - COUNT ( * ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT ALL COUNT( ALL - 21 ) * - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL COUNT ( ALL - 21 ) * - + COUNT ( * )
----
-1

query I rowsort
SELECT ( + + NULLIF ( 4, 77 ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT DISTINCT + ( + CASE 14 WHEN - 10 + 32 * - COUNT( * ) THEN + COUNT( * ) - 49 END ) + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT + ( + CASE 14 WHEN - 10 + 32 * - COUNT ( * ) THEN + COUNT ( * ) - 49 END ) + - 18
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8225
SELECT - COUNT( * ) DIV + 3, 47 * 47 * - COUNT( * ) + + NULLIF ( 7, + 82 * + 93 ) AS col2
----
0
-2202

skipif mysql # not compatible
query II rowsort label-8225
SELECT - COUNT ( * ) / + 3, 47 * 47 * - COUNT ( * ) + + NULLIF ( 7, + 82 * + 93 ) AS col2
----
0
-2202

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL MAX( ALL - 73 ) + - 2 * - 97
----
121

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL MAX ( ALL - 73 ) + - 2 * - 97
----
121

query I rowsort
SELECT + 86 * - + 57 - - ( 8 )
----
-4894

query I rowsort
SELECT ALL + 20 * - - 57 - - ( + 40 ) + 97
----
1277

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT ALL 27 + - 20 - + 41 + - COUNT( * ) col0
----
-35

skipif mysql # not compatible
query I rowsort label-8229
SELECT ALL 27 + - 20 - + 41 + - COUNT ( * ) col0
----
-35

query I rowsort
SELECT 97 + 3 * - 12
----
61

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8231
SELECT + 66 - CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) * ( ( - 76 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8231
SELECT + 66 - CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) * ( ( - 76 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8232
SELECT - CAST( - + 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-8232
SELECT - CAST ( - + 61 AS INTEGER )
----
61

query I rowsort
SELECT DISTINCT 45 + 91 + ( 55 ) * + 33
----
1951

query I rowsort
SELECT + 19 * + + 84 * 54
----
86184

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT + 33 + 90 + - COUNT( * )
----
122

skipif mysql # not compatible
query I rowsort label-8235
SELECT + 33 + 90 + - COUNT ( * )
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT ALL 85 * COALESCE ( + 87, - COUNT( * ), - 25 + 49 ) col1
----
7395

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL 85 * COALESCE ( + 87, - COUNT ( * ), - 25 + 49 ) col1
----
7395

query I rowsort
SELECT - 60 + ( + - 17 ) - + + 8 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT ALL COUNT( * ) - + + 17 + 24 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-8238
SELECT ALL COUNT ( * ) - + + 17 + 24 AS col0
----
8

query II rowsort
SELECT DISTINCT 30, ( + 57 ) * 49 AS col0
----
30
2793

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT ALL + SUM( + 88 ) * - 17 col0
----
-1496

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL + SUM ( + 88 ) * - 17 col0
----
-1496

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT COUNT( * ) + 82
----
83

skipif mysql # not compatible
query I rowsort label-8241
SELECT COUNT ( * ) + 82
----
83

query I rowsort
SELECT 71 + + 86 AS col2
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT 10 + + - 33 + + 49 - + 45 * 58 - COUNT( * ) * 20 AS col0
----
-2604

skipif mysql # not compatible
query I rowsort label-8243
SELECT 10 + + - 33 + + 49 - + 45 * 58 - COUNT ( * ) * 20 AS col0
----
-2604

query I rowsort
SELECT ALL 75 - + 96 AS col0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8245
SELECT 20 / 51 / + - 14 / - COUNT( - + 26 ) + - 30 / - CASE - 84 WHEN + 55 * CAST( NULL AS SIGNED ) THEN + 43 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8245
SELECT 20 / 51 / + - 14 / - COUNT ( - + 26 ) + - 30 / - CASE - 84 WHEN + 55 * CAST ( NULL AS INTEGER ) THEN + 43 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT ALL 81 * - + COUNT( - 21 ) * + - ( - + 31 ) * - 33
----
82863

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL 81 * - + COUNT ( - 21 ) * + - ( - + 31 ) * - 33
----
82863

query I rowsort
SELECT 25 * - 11
----
-275

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT ALL - COUNT( * ) * + + CASE - 53 WHEN - - 75 / + ( 96 ) / + 78 + 67 * - 73 THEN NULL ELSE NULLIF ( 57, + 17 / + ( + 2 ) + - 56 * 59 ) END
----
-57

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL - COUNT ( * ) * + + CASE - 53 WHEN - - 75 / + ( 96 ) / + 78 + 67 * - 73 THEN NULL ELSE NULLIF ( 57, + 17 / + ( + 2 ) + - 56 * 59 ) END
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT 84 * + MIN( + 24 ) + - 62 + - - 7 + + CASE 86 WHEN 87 + 43 * - 19 THEN ( - ( 95 ) ) WHEN - 16 + 15 THEN 26 ELSE NULL END * + 89 * - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8249
SELECT 84 * + MIN ( + 24 ) + - 62 + - - 7 + + CASE 86 WHEN 87 + 43 * - 19 THEN ( - ( 95 ) ) WHEN - 16 + 15 THEN 26 ELSE NULL END * + 89 * - 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT SUM( + 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-8250
SELECT SUM ( + 3 ) AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8251
SELECT 15 / + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8251
SELECT 15 / + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT 51 + - COUNT( ALL + 46 ) * 93 * - 77 AS col0
----
7212

skipif mysql # not compatible
query I rowsort label-8252
SELECT 51 + - COUNT ( ALL + 46 ) * 93 * - 77 AS col0
----
7212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8253
SELECT ALL - 21 * COALESCE ( - 77, + 72 * + + 30 DIV + 29 + 76 * COUNT( * ) + + 84, - 71 )
----
1617

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL - 21 * COALESCE ( - 77, + 72 * + + 30 / + 29 + 76 * COUNT ( * ) + + 84, - 71 )
----
1617

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT SUM( DISTINCT - 68 ) * + MIN( - ( + 40 ) ) AS col0
----
2720

skipif mysql # not compatible
query I rowsort label-8254
SELECT SUM ( DISTINCT - 68 ) * + MIN ( - ( + 40 ) ) AS col0
----
2720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8255
SELECT - + COUNT( * ) * + 92 DIV 51 + + 94 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-8255
SELECT - + COUNT ( * ) * + 92 / 51 + + 94 AS col0
----
93

query I rowsort
SELECT - 57 - 99
----
-156

query I rowsort
SELECT DISTINCT + + 18 * - 8
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT ALL - + 55 + + + COUNT( * ) * - 14 * 43
----
-657

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL - + 55 + + + COUNT ( * ) * - 14 * 43
----
-657

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT - NULLIF ( 20, + - COUNT( * ) ) * + + 97 * - ( - 64 )
----
-124160

skipif mysql # not compatible
query I rowsort label-8259
SELECT - NULLIF ( 20, + - COUNT ( * ) ) * + + 97 * - ( - 64 )
----
-124160

query I rowsort
SELECT ALL + + 42 + + 80
----
122

query I rowsort
SELECT + ( 18 ) col2
----
18

query I rowsort
SELECT DISTINCT + + 26 * - 43
----
-1118

query I rowsort
SELECT - + CASE + ( + COALESCE ( - + 65, 14, 37 * + 7 ) ) WHEN 12 - - 37 THEN - 35 * 60 - + 43 END * 4 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8264
SELECT + - COUNT( * ) + - 86 DIV ( 36 ) + - ( 7 ) + + 76 * MIN( ALL - ( - 35 ) ) * 51 AS col2
----
135650

skipif mysql # not compatible
query I rowsort label-8264
SELECT + - COUNT ( * ) + - 86 / ( 36 ) + - ( 7 ) + + 76 * MIN ( ALL - ( - 35 ) ) * 51 AS col2
----
135650

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT + 87 * COUNT( * ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-8265
SELECT + 87 * COUNT ( * ) AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8266
SELECT ALL 56 * 56 DIV - 60 col1
----
-52

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL 56 * 56 / - 60 col1
----
-52

query I rowsort
SELECT - - 3 + - 95 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT + - 53 * + - 63 * MAX( DISTINCT 33 ) * - 7 * - 94 + - 4 col1
----
72503042

skipif mysql # not compatible
query I rowsort label-8268
SELECT + - 53 * + - 63 * MAX ( DISTINCT 33 ) * - 7 * - 94 + - 4 col1
----
72503042

query I rowsort
SELECT ALL - + 58 * 75 AS col0
----
-4350

query I rowsort
SELECT ALL ( - CASE 62 WHEN 0 * 43 THEN - ( - 77 ) WHEN 14 THEN NULL ELSE NULL END )
----
NULL

query II rowsort
SELECT 74 AS col2, - 38
----
74
-38

query I rowsort
SELECT DISTINCT 82 * + 29
----
2378

query I rowsort
SELECT - NULLIF ( - 91, + 47 ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT - COUNT( * ) * + SUM( ( ( + 7 ) ) )
----
-7

skipif mysql # not compatible
query I rowsort label-8274
SELECT - COUNT ( * ) * + SUM ( ( ( + 7 ) ) )
----
-7

query II rowsort
SELECT 81 AS col1, + 88 * 83 AS col1
----
81
7304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8276
SELECT + CAST( 0 AS SIGNED ) * - + 94 * - - 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8276
SELECT + CAST ( 0 AS INTEGER ) * - + 94 * - - 40 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT - CASE - 94 WHEN + 66 * + - 82 THEN COUNT( * ) + - 70 + ( 8 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8277
SELECT - CASE - 94 WHEN + 66 * + - 82 THEN COUNT ( * ) + - 70 + ( 8 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 58 - + - 77 AS col2
----
135

query I rowsort
SELECT + 75 * + + 23 AS col0
----
1725

query II rowsort
SELECT ALL 48, 53 AS col0
----
48
53

query I rowsort
SELECT + 51 * - 7 * 8 col0
----
-2856

onlyif mysql # aggregate syntax: 
query II rowsort label-8282
SELECT ALL COUNT( * ) AS col2, - 87 + - 4
----
1
-91

skipif mysql # not compatible
query II rowsort label-8282
SELECT ALL COUNT ( * ) AS col2, - 87 + - 4
----
1
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT ALL COUNT( - - 45 )
----
1

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL COUNT ( - - 45 )
----
1

query I rowsort
SELECT ( - - 12 ) AS col1
----
12

query I rowsort
SELECT + 15 * + 55
----
825

query II rowsort
SELECT + 21 * - + 69, + 52 AS col1
----
-1449
52

query I rowsort
SELECT ALL 27 * - + 28 * 82
----
-61992

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT DISTINCT + MAX( DISTINCT - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT + MAX ( DISTINCT - 60 )
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8289
SELECT ( 79 ) * 91 + - - 6 + - 86 DIV + 64 + - COUNT( * ) * 53
----
7141

skipif mysql # not compatible
query I rowsort label-8289
SELECT ( 79 ) * 91 + - - 6 + - 86 / + 64 + - COUNT ( * ) * 53
----
7141

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT ALL COUNT( * ) * + 71 + + SUM( 30 ) * + - COALESCE ( - COUNT( * ), 49 ) * - 24 AS col2
----
-649

skipif mysql # not compatible
query I rowsort label-8290
SELECT ALL COUNT ( * ) * + 71 + + SUM ( 30 ) * + - COALESCE ( - COUNT ( * ), 49 ) * - 24 AS col2
----
-649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8291
SELECT ALL + - CAST( + ( - 84 ) AS SIGNED ) * + 57 + - - CASE 19 WHEN 66 THEN COUNT( * ) * + 63 - COUNT( * ) * + 47 WHEN 21 * + 60 THEN 85 END / + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8291
SELECT ALL + - CAST ( + ( - 84 ) AS INTEGER ) * + 57 + - - CASE 19 WHEN 66 THEN COUNT ( * ) * + 63 - COUNT ( * ) * + 47 WHEN 21 * + 60 THEN 85 END / + 9 AS col0
----
NULL

query I rowsort
SELECT ALL ( COALESCE ( - + 64, + 8 * 35 ) ) * + 32
----
-2048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8293
SELECT + COUNT( * ) col0, COALESCE ( + + 95, - + COALESCE ( + - CAST( - 76 AS SIGNED ), - 64 + 41 ) ) * - 12 AS col2
----
1
-1140

skipif mysql # not compatible
query II rowsort label-8293
SELECT + COUNT ( * ) col0, COALESCE ( + + 95, - + COALESCE ( + - CAST ( - 76 AS INTEGER ), - 64 + 41 ) ) * - 12 AS col2
----
1
-1140

query I rowsort
SELECT ALL 3 * 80 + - 17 AS col0
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8295
SELECT - - 58 * + - 47 * 97 + + MAX( DISTINCT ( - - 4 ) ) + CAST( + 36 + 28 AS SIGNED ) * 78
----
-259426

skipif mysql # not compatible
query I rowsort label-8295
SELECT - - 58 * + - 47 * 97 + + MAX ( DISTINCT ( - - 4 ) ) + CAST ( + 36 + 28 AS INTEGER ) * 78
----
-259426

query I rowsort
SELECT - ( - 21 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT ALL + + COUNT( 78 )
----
1

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL + + COUNT ( 78 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT DISTINCT 53 * + - 4 + + - COUNT( * ) * + 53
----
-265

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT 53 * + - 4 + + - COUNT ( * ) * + 53
----
-265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8299
SELECT 14 * 83 + + CAST( - AVG ( DISTINCT 36 ) AS SIGNED ) col1
----
1126

skipif mysql # not compatible
query I rowsort label-8299
SELECT 14 * 83 + + CAST ( - AVG ( DISTINCT 36 ) AS INTEGER ) col1
----
1126

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8300
SELECT - COUNT( * ) DIV 70 * - + 35 * + 81 AS col2, + 13 col2
----
0
13

skipif mysql # not compatible
query II rowsort label-8300
SELECT - COUNT ( * ) / 70 * - + 35 * + 81 AS col2, + 13 col2
----
0
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8301
SELECT + COUNT( 85 ) * - ( + 15 ) DIV 65 + 74 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8301
SELECT + COUNT ( 85 ) * - ( + 15 ) / 65 + 74 AS col2
----
74

query I rowsort
SELECT 23 * - 9 - - + 83 AS col1
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT - COUNT( * ) + - 94 col2
----
-95

skipif mysql # not compatible
query I rowsort label-8303
SELECT - COUNT ( * ) + - 94 col2
----
-95

query I rowsort
SELECT ALL - 79 * - COALESCE ( - 12, - + 31 ) AS col1
----
-948

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT ALL ( - 67 ) * 20 - SUM( + + 9 )
----
-1349

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL ( - 67 ) * 20 - SUM ( + + 9 )
----
-1349

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8306
SELECT DISTINCT + COALESCE ( - 73, - - 86, + 14, + - 31 ) * + + ( + COALESCE ( 75, - 53, + 77 * 62 ) ) * 55 + - COUNT( * ) DIV 74 AS col1
----
-301125

skipif mysql # not compatible
query I rowsort label-8306
SELECT DISTINCT + COALESCE ( - 73, - - 86, + 14, + - 31 ) * + + ( + COALESCE ( 75, - 53, + 77 * 62 ) ) * 55 + - COUNT ( * ) / 74 AS col1
----
-301125

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT ALL - + COUNT( * ) * + 70 - MAX( + + 27 )
----
-97

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL - + COUNT ( * ) * + 70 - MAX ( + + 27 )
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8308
SELECT DISTINCT + 52 AS col1, COUNT( * ) + + NULLIF ( - 80, + ( 8 ) ) * 89
----
52
-7119

skipif mysql # not compatible
query II rowsort label-8308
SELECT DISTINCT + 52 AS col1, COUNT ( * ) + + NULLIF ( - 80, + ( 8 ) ) * 89
----
52
-7119

query I rowsort
SELECT ALL - 18 * - + 48 * + 68
----
58752

query I rowsort
SELECT ALL + 27 - - 12 col0
----
39

query I rowsort
SELECT + 70 + 78
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-8312
SELECT + 88 * + - 28 * - COUNT( * ) col1, 32
----
2464
32

skipif mysql # not compatible
query II rowsort label-8312
SELECT + 88 * + - 28 * - COUNT ( * ) col1, 32
----
2464
32

query I rowsort
SELECT - 58 + + 55
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT - ( MIN( - - 96 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-8314
SELECT - ( MIN ( - - 96 ) )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8315
SELECT - 34 + + 77 + - CAST( NULL AS DECIMAL ) + + COUNT( * ) / - 83 + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-8315
SELECT - 34 + + 77 + - CAST ( NULL AS REAL ) + + COUNT ( * ) / - 83 + 43
----
NULL

query I rowsort
SELECT - 52 * + + 99 * - + 85
----
437580

query I rowsort
SELECT - CASE + 9 WHEN + 27 THEN - 76 WHEN - 45 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 4 + + ( ( 96 ) )
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-8319
SELECT - 16 DIV - + 29
----
0

skipif mysql # not compatible
query I rowsort label-8319
SELECT - 16 / - + 29
----
0

query I rowsort
SELECT + 22 * - 1 AS col1
----
-22

query II rowsort
SELECT DISTINCT + 21 + + + 68 AS col0, 53 AS col2
----
89
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8322
SELECT + 62 + + + 91 + - 6 DIV 29 DIV - COUNT( * ) col0
----
153

skipif mysql # not compatible
query I rowsort label-8322
SELECT + 62 + + + 91 + - 6 / 29 / - COUNT ( * ) col0
----
153

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8323
SELECT ALL 6 / - CAST( NULL AS DECIMAL ) * + 51 + - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL 6 / - CAST ( NULL AS REAL ) * + 51 + - 5 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8324
SELECT 55 + + - 41 DIV - 69
----
55

skipif mysql # not compatible
query I rowsort label-8324
SELECT 55 + + - 41 / - 69
----
55

query I rowsort
SELECT DISTINCT - 66 + 69 AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8326
SELECT + 79 * + 94 + - NULLIF ( + 40, 47 ) AS col2, + COUNT( * ) DIV - 91 col2
----
7386
0

skipif mysql # not compatible
query II rowsort label-8326
SELECT + 79 * + 94 + - NULLIF ( + 40, 47 ) AS col2, + COUNT ( * ) / - 91 col2
----
7386
0

query II rowsort
SELECT ALL 89 + 90 AS col2, 43 AS col1
----
179
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8328
SELECT ( + 43 ) * 67 * + CAST( - 5 AS SIGNED ) AS col0
----
-14405

skipif mysql # not compatible
query I rowsort label-8328
SELECT ( + 43 ) * 67 * + CAST ( - 5 AS INTEGER ) AS col0
----
-14405

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8329
SELECT DISTINCT + 41 * + CAST( + 69 AS SIGNED )
----
2829

skipif mysql # not compatible
query I rowsort label-8329
SELECT DISTINCT + 41 * + CAST ( + 69 AS INTEGER )
----
2829

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT + ( 6 ) * + + 55 * - 93 + MIN( 36 ) + 47 * + COUNT( * ) AS col0
----
-30607

skipif mysql # not compatible
query I rowsort label-8330
SELECT + ( 6 ) * + + 55 * - 93 + MIN ( 36 ) + 47 * + COUNT ( * ) AS col0
----
-30607

query I rowsort
SELECT + 55 + + 14 * + + 72 + 47 AS col2
----
1110

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT 3 * - 48 + - 43 * CASE WHEN NOT ( COUNT( * ) ) < MAX( 29 ) + - 4 THEN NULL ELSE + COUNT( * ) END
----
-187

skipif mysql # not compatible
query I rowsort label-8332
SELECT 3 * - 48 + - 43 * CASE WHEN NOT ( COUNT ( * ) ) < MAX ( 29 ) + - 4 THEN NULL ELSE + COUNT ( * ) END
----
-187

query I rowsort
SELECT - 21 + - + 77
----
-98

query I rowsort
SELECT ( - - 67 ) * + 55 * + - 67 AS col2
----
-246895

query I rowsort
SELECT - 35 + - 32 col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT ALL CASE 86 WHEN - 91 THEN - + 4 / + MAX( 50 ) / 67 - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL CASE 86 WHEN - 91 THEN - + 4 / + MAX ( 50 ) / 67 - + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT - MAX( DISTINCT + 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-8337
SELECT - MAX ( DISTINCT + 72 )
----
-72

query I rowsort
SELECT 44 * + 42 AS col1
----
1848

query I rowsort
SELECT - 62 * - 1 col1
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8340
SELECT + 71 DIV + SUM( DISTINCT 2 ) - + + ( 13 ) AS col2, - COUNT( * ) + + ( 55 ) + 6 DIV 5 AS col1
----
22
55

skipif mysql # not compatible
query II rowsort label-8340
SELECT + 71 / + SUM ( DISTINCT 2 ) - + + ( 13 ) AS col2, - COUNT ( * ) + + ( 55 ) + 6 / 5 AS col1
----
22
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT ALL + ( + COUNT( - - 77 ) ) * - 18 * 77
----
-1386

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL + ( + COUNT ( - - 77 ) ) * - 18 * 77
----
-1386

query II rowsort
SELECT ALL 30 AS col1, + 2 AS col1
----
30
2

query I rowsort
SELECT 10 * 28
----
280

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8344
SELECT ALL CASE + 73 WHEN + ( + 39 ) * + 18 * + + 73 * - + CAST( NULL AS DECIMAL ) / + 0 + 55 THEN 66 ELSE + 96 END * 20 AS col0
----
1920

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL CASE + 73 WHEN + ( + 39 ) * + 18 * + + 73 * - + CAST ( NULL AS REAL ) / + 0 + 55 THEN 66 ELSE + 96 END * 20 AS col0
----
1920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8345
SELECT DISTINCT + CAST( + - 13 AS SIGNED ) DIV ( - + 21 ) + - 33 + + - MAX( DISTINCT + - 12 ) * 89 * 86 col1
----
91815

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT + CAST ( + - 13 AS INTEGER ) / ( - + 21 ) + - 33 + + - MAX ( DISTINCT + - 12 ) * 89 * 86 col1
----
91815

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL - COUNT( * ) + - 59
----
-60

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL - COUNT ( * ) + - 59
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT 41 + + - COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8347
SELECT 41 + + - COUNT ( * ) AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8348
SELECT ALL + ( - - 47 ) + - CAST( NULL AS SIGNED ) + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL + ( - - 47 ) + - CAST ( NULL AS INTEGER ) + 98 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8349
SELECT DISTINCT + COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 34 - - 75 AS col0
----
109

query II rowsort
SELECT - 66, 65 AS col1
----
-66
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT DISTINCT + 90 + CASE WHEN - 42 BETWEEN NULL AND + COUNT( * ) THEN + + 90 END - - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-8352
SELECT DISTINCT + 90 + CASE WHEN - 42 BETWEEN NULL AND + COUNT ( * ) THEN + + 90 END - - 34
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8353
SELECT DISTINCT - CAST( NULL AS SIGNED ) + NULLIF ( - - 61, - + COUNT( * ) ) * + ( + + 89 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + NULLIF ( - - 61, - + COUNT ( * ) ) * + ( + + 89 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT DISTINCT + 36 + - COUNT( DISTINCT + + 55 ) + 79 + - - 74 - + 90
----
98

skipif mysql # not compatible
query I rowsort label-8354
SELECT DISTINCT + 36 + - COUNT ( DISTINCT + + 55 ) + 79 + - - 74 - + 90
----
98

query I rowsort
SELECT ALL + + 69 * + 41 AS col1
----
2829

query I rowsort
SELECT NULLIF ( + 3, COALESCE ( - + 29, + ( 20 ) * - 49 ) * + 25 + 58 ) * - 48
----
-144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8357
SELECT + COALESCE ( + - 66, 8 * 58 + - 35 + - + 26 - 17 * 14 DIV - 42 + 48 * COUNT( DISTINCT ( 57 ) + + 35 ) ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-8357
SELECT + COALESCE ( + - 66, 8 * 58 + - 35 + - + 26 - 17 * 14 / - 42 + 48 * COUNT ( DISTINCT ( 57 ) + + 35 ) ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT ALL - CASE + 57 WHEN + + 73 + - 59 - - COUNT( * ) / + - 65 * + - COUNT( * ) THEN COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8358
SELECT ALL - CASE + 57 WHEN + + 73 + - 59 - - COUNT ( * ) / + - 65 * + - COUNT ( * ) THEN COUNT ( * ) END col2
----
NULL

query I rowsort
SELECT ALL 23 - + + 48
----
-25

query II rowsort
SELECT + 75 col2, 6 AS col1
----
75
6

query II rowsort
SELECT ALL - 31 AS col1, 61 AS col2
----
-31
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT + 48 * - 31 + - - 4 - - + 42 * + ( + - 19 ) + - + 48 * + COUNT( * ) + - 77 col2
----
-2407

skipif mysql # not compatible
query I rowsort label-8362
SELECT + 48 * - 31 + - - 4 - - + 42 * + ( + - 19 ) + - + 48 * + COUNT ( * ) + - 77 col2
----
-2407

onlyif mysql # aggregate syntax: 
query II rowsort label-8363
SELECT ALL - COALESCE ( COUNT( * ), + - COUNT( * ) - 84 * - 9 + - COUNT( * ) ) AS col0, 54 AS col0
----
-1
54

skipif mysql # not compatible
query II rowsort label-8363
SELECT ALL - COALESCE ( COUNT ( * ), + - COUNT ( * ) - 84 * - 9 + - COUNT ( * ) ) AS col0, 54 AS col0
----
-1
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8364
SELECT + + CAST( + 57 AS SIGNED ) * + COUNT( * ) * - - 51 + 39 + 10 + + COUNT( * ) + - 72 DIV + 15
----
2953

skipif mysql # not compatible
query I rowsort label-8364
SELECT + + CAST ( + 57 AS INTEGER ) * + COUNT ( * ) * - - 51 + 39 + 10 + + COUNT ( * ) + - 72 / + 15
----
2953

query I rowsort
SELECT - 68 * - + 44 + - 91 + + 42 * + ( + 4 )
----
3069

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT + 60 * 42 - - + ( - 36 ) + - - ( SUM( DISTINCT 29 ) ) + - ( - MIN( DISTINCT + 83 ) ) col2
----
2596

skipif mysql # not compatible
query I rowsort label-8366
SELECT + 60 * 42 - - + ( - 36 ) + - - ( SUM ( DISTINCT 29 ) ) + - ( - MIN ( DISTINCT + 83 ) ) col2
----
2596

query I rowsort
SELECT ALL - 36 * - 93 * + NULLIF ( + - 76, 41 + + 43 ) AS col1
----
-254448

query I rowsort
SELECT ALL 69 * 57 AS col0
----
3933

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT ( MIN( - + 88 ) ) * 40 col0
----
-3520

skipif mysql # not compatible
query I rowsort label-8369
SELECT ( MIN ( - + 88 ) ) * 40 col0
----
-3520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8370
SELECT ALL - 38 + 61 - 90 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL - 38 + 61 - 90 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 34 + + + 79
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-8372
SELECT ALL 51 DIV 74 col2
----
0

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL 51 / 74 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT 44 + COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-8373
SELECT 44 + COUNT ( * ) AS col2
----
45

query I rowsort
SELECT ALL + 3 * - 17 * + 21 * - 78 AS col2
----
83538

query I rowsort
SELECT + 85 * - 48 AS col1
----
-4080

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT - - MAX( - - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-8376
SELECT - - MAX ( - - 36 )
----
36

query I rowsort
SELECT - 40 + - 17 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT - + 52 * COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-8378
SELECT - + 52 * COUNT ( * ) AS col1
----
-52

query I rowsort
SELECT ALL + 92 * + 95 AS col0
----
8740

query I rowsort
SELECT - 81 * - - 24 AS col0
----
-1944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8381
SELECT - + CAST( - COALESCE ( + - 19, 27 * + 15 / + 20, - NULLIF ( + - 93, - + 15 + - 92 ) + 80 ) AS SIGNED ) + 17 col0
----
-2

skipif mysql # not compatible
query I rowsort label-8381
SELECT - + CAST ( - COALESCE ( + - 19, 27 * + 15 / + 20, - NULLIF ( + - 93, - + 15 + - 92 ) + 80 ) AS INTEGER ) + 17 col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8382
SELECT - 20 * + - 40 * 88 + + CAST( + + 52 AS SIGNED ) + + 40 * + COUNT( * ) * 36 + 35 * + 12 AS col0
----
72312

skipif mysql # not compatible
query I rowsort label-8382
SELECT - 20 * + - 40 * 88 + + CAST ( + + 52 AS INTEGER ) + + 40 * + COUNT ( * ) * 36 + 35 * + 12 AS col0
----
72312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8383
SELECT ALL - CAST( NULL AS SIGNED ) * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL - CAST ( NULL AS INTEGER ) * - 44
----
NULL

query I rowsort
SELECT - + 25 * - ( + 63 ) AS col2
----
1575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8385
SELECT + 33 DIV + + 8 + + 5 - - SUM( + 45 ) DIV - + 48 + - + 24 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-8385
SELECT + 33 / + + 8 + + 5 - - SUM ( + 45 ) / - + 48 + - + 24 AS col0
----
-15

query I rowsort
SELECT + - 45 + + + COALESCE ( + - 23, + + 78 ) AS col1
----
-68

query I rowsort
SELECT + + NULLIF ( - + 51, + 73 ) AS col0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-8388
SELECT + 11 DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-8388
SELECT + 11 / 57
----
0

query I rowsort
SELECT DISTINCT + 16 * + 34 + + 2 + + 5 AS col1
----
551

query I rowsort
SELECT - 99 * - 23 * - + 67
----
-152559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8391
SELECT + NULLIF ( 13, + CAST( - 12 AS SIGNED ) )
----
13

skipif mysql # not compatible
query I rowsort label-8391
SELECT + NULLIF ( 13, + CAST ( - 12 AS INTEGER ) )
----
13

query I rowsort
SELECT - ( - - 96 ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT + CASE + COUNT( ALL + 91 ) WHEN 87 THEN COUNT( * ) * NULLIF ( - + COUNT( + 17 ), - - 83 ) / - 95 WHEN - ( 19 ) THEN ( + 83 ) * COUNT( * ) END * 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8393
SELECT + CASE + COUNT ( ALL + 91 ) WHEN 87 THEN COUNT ( * ) * NULLIF ( - + COUNT ( + 17 ), - - 83 ) / - 95 WHEN - ( 19 ) THEN ( + 83 ) * COUNT ( * ) END * 42 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8394
SELECT ALL CAST( + CASE + 66 WHEN + 80 THEN - - 7 + + - COALESCE ( + - 81, 32 ) + + 11 WHEN SUM( DISTINCT - CAST( NULL AS SIGNED ) ) THEN - CAST( NULL AS SIGNED ) * - 21 - - AVG ( 80 ) END AS SIGNED ) + - 34 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL CAST ( + CASE + 66 WHEN + 80 THEN - - 7 + + - COALESCE ( + - 81, 32 ) + + 11 WHEN SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) THEN - CAST ( NULL AS INTEGER ) * - 21 - - AVG ( 80 ) END AS INTEGER ) + - 34 * + COUNT ( * )
----
NULL

query I rowsort
SELECT + 69 * - - 71
----
4899

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT COUNT( DISTINCT + 4 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8396
SELECT COUNT ( DISTINCT + 4 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 17 * 49 AS col2
----
-833

onlyif mysql # DIV for integer division: 
query I rowsort label-8398
SELECT - COALESCE ( - 5, - + 61 - COALESCE ( 75, + - 47 DIV + 16 ) )
----
5

skipif mysql # not compatible
query I rowsort label-8398
SELECT - COALESCE ( - 5, - + 61 - COALESCE ( 75, + - 47 / + 16 ) )
----
5

query II rowsort
SELECT ALL 60 AS col1, - 91 * + 79 AS col0
----
60
-7189

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT DISTINCT 62 - - COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT 62 - - COUNT ( * ) AS col0
----
63

query I rowsort
SELECT + 91 * 78 AS col2
----
7098

query I rowsort
SELECT + 3 * ( - COALESCE ( + 69, - 84, + 63 ) ) AS col2
----
-207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8403
SELECT - CAST( + + ( + - 84 ) AS SIGNED ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-8403
SELECT - CAST ( + + ( + - 84 ) AS INTEGER ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT ALL MAX( ALL + 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL MAX ( ALL + 45 ) AS col1
----
45

query I rowsort
SELECT ALL 59 * - 54
----
-3186

onlyif mysql # DIV for integer division: 
query I rowsort label-8406
SELECT + 29 DIV + + COALESCE ( 50, - NULLIF ( + 41, + + 99 - - 34 + + + 92 * 41 * + - 44 - - 3 ), 62 * - 60 ) + 8 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-8406
SELECT + 29 / + + COALESCE ( 50, - NULLIF ( + 41, + + 99 - - 34 + + + 92 * 41 * + - 44 - - 3 ), 62 * - 60 ) + 8 AS col2
----
8

query I rowsort
SELECT DISTINCT - 54 * + - 1 * + - 30
----
-1620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8408
SELECT ALL + COUNT( ALL - - 3 ) * - 30 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL + COUNT ( ALL - - 3 ) * - 30 / 62
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8409
SELECT ALL - COUNT( * ), - 59 AS col0
----
-1
-59

skipif mysql # not compatible
query II rowsort label-8409
SELECT ALL - COUNT ( * ), - 59 AS col0
----
-1
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT ALL 26 * COUNT( * ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL 26 * COUNT ( * ) AS col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8411
SELECT + + 15 DIV + - 59 * - 12 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8411
SELECT + + 15 / + - 59 * - 12 AS col1
----
0

query I rowsort
SELECT DISTINCT 39 * - - 1 + - - 89 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT DISTINCT COUNT( * ) * + + 37 + 72 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT COUNT ( * ) * + + 37 + 72 AS col2
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8414
SELECT + 76 * + 90 - 76, + 94 + + COUNT( * ) - + 96 + + CASE 29 WHEN - + MAX( DISTINCT + + 5 ) THEN NULL WHEN 51 THEN CASE 20 WHEN COUNT( * ) * 76 THEN + CAST( - COALESCE ( 39, + CASE 91 WHEN 78 THEN + 0 + 53 WHEN 9 THEN NULL ELSE + 0 END + 37, + 34, 61 ) AS SIGNED ) * + 57 WHEN 77 THEN 4 / 68 - + ( SUM( DISTINCT 40 ) ) END * - CASE ( - 42 ) * 12 + + 23 WHEN + ( 67 ) THEN NULL WHEN + 72 * - COUNT( * ) THEN - CAST( 69 AS SIGNED ) END - - 97 ELSE NULL END AS col0
----
6764
NULL

skipif mysql # not compatible
query II rowsort label-8414
SELECT + 76 * + 90 - 76, + 94 + + COUNT ( * ) - + 96 + + CASE 29 WHEN - + MAX ( DISTINCT + + 5 ) THEN NULL WHEN 51 THEN CASE 20 WHEN COUNT ( * ) * 76 THEN + CAST ( - COALESCE ( 39, + CASE 91 WHEN 78 THEN + 0 + 53 WHEN 9 THEN NULL ELSE + 0 END + 37, + 34, 61 ) AS INTEGER ) * + 57 WHEN 77 THEN 4 / 68 - + ( SUM ( DISTINCT 40 ) ) END * - CASE ( - 42 ) * 12 + + 23 WHEN + ( 67 ) THEN NULL WHEN + 72 * - COUNT ( * ) THEN - CAST ( 69 AS INTEGER ) END - - 97 ELSE NULL END AS col0
----
6764
NULL

query I rowsort
SELECT - ( - 44 ) * 46 + 31 AS col0
----
2055

query I rowsort
SELECT ALL + + 7 col1
----
7

query I rowsort
SELECT ALL - - 22 * ( - 75 )
----
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT - + ( - 19 ) * - - ( - - COUNT( * ) ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-8418
SELECT - + ( - 19 ) * - - ( - - COUNT ( * ) ) AS col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8419
SELECT DISTINCT + ( - + 40 ) DIV ( COUNT( * ) ) * + 31 * 28 + 16
----
-34704

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT + ( - + 40 ) / ( COUNT ( * ) ) * + 31 * 28 + 16
----
-34704

onlyif mysql # DIV for integer division: 
query I rowsort label-8420
SELECT ALL - 44 DIV - 46 + - + 52 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL - 44 / - 46 + - + 52 AS col1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8421
SELECT - - 87 * 76 - + CAST( NULL AS SIGNED ), - 51 + 33 * - - 91 * - 69 AS col1
----
NULL
-207258

skipif mysql # not compatible
query II rowsort label-8421
SELECT - - 87 * 76 - + CAST ( NULL AS INTEGER ), - 51 + 33 * - - 91 * - 69 AS col1
----
NULL
-207258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8422
SELECT ALL + - CAST( + + 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL + - CAST ( + + 5 AS INTEGER )
----
-5

query I rowsort
SELECT - 5 * 48
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT - 3 * + - ( - SUM( DISTINCT 22 ) ) + - 21
----
-87

skipif mysql # not compatible
query I rowsort label-8424
SELECT - 3 * + - ( - SUM ( DISTINCT 22 ) ) + - 21
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-8425
SELECT ( COUNT( * ) ), + SUM( DISTINCT 46 ) + + 57 AS col2
----
1
103

skipif mysql # not compatible
query II rowsort label-8425
SELECT ( COUNT ( * ) ), + SUM ( DISTINCT 46 ) + + 57 AS col2
----
1
103

query II rowsort
SELECT ( - 6 ) AS col1, 26 AS col2
----
-6
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT + COALESCE ( 52, + + COUNT( * ) ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-8427
SELECT + COALESCE ( 52, + + COUNT ( * ) ) AS col1
----
52

query I rowsort
SELECT ALL + 40 * 32 + - - 25
----
1305

query I rowsort
SELECT + 75 * - 23 AS col2
----
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT DISTINCT - ( + 90 ) * COUNT( * ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-8430
SELECT DISTINCT - ( + 90 ) * COUNT ( * ) AS col1
----
-90

query I rowsort
SELECT DISTINCT - ( + ( - + 95 ) ) AS col0
----
95

query I rowsort
SELECT ALL - 76 - - 0 * 64 col0
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-8433
SELECT 50 * ( 79 ) DIV + + 79 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8433
SELECT 50 * ( 79 ) / + + 79 AS col0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8434
SELECT ALL 10 - + + 1 DIV - NULLIF ( 80, 11 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL 10 - + + 1 / - NULLIF ( 80, 11 ) AS col1
----
10

query I rowsort
SELECT 60 * 57
----
3420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8436
SELECT 25 AS col0, CASE - 70 WHEN - 20 THEN - COUNT( * ) END + - + NULLIF ( + NULLIF ( - + CAST( NULL AS SIGNED ), - 87 ), + MAX( - + 50 ) ) + 37 * AVG ( CASE + 83 WHEN - 92 - 93 THEN NULL WHEN + 24 + ( 28 ) THEN 58 * + NULLIF ( 23, 94 ) ELSE 73 END ) col0
----
25
NULL

skipif mysql # not compatible
query II rowsort label-8436
SELECT 25 AS col0, CASE - 70 WHEN - 20 THEN - COUNT ( * ) END + - + NULLIF ( + NULLIF ( - + CAST ( NULL AS INTEGER ), - 87 ), + MAX ( - + 50 ) ) + 37 * AVG ( CASE + 83 WHEN - 92 - 93 THEN NULL WHEN + 24 + ( 28 ) THEN 58 * + NULLIF ( 23, 94 ) ELSE 73 END ) col0
----
25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT 85 * - + CASE + 98 WHEN - COUNT( * ) THEN 48 END * - COUNT( * ) * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-8437
SELECT 85 * - + CASE + 98 WHEN - COUNT ( * ) THEN 48 END * - COUNT ( * ) * + 90
----
NULL

query I rowsort
SELECT DISTINCT 9 * - 49 AS col0
----
-441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8439
SELECT DISTINCT 75, + MIN( ALL CAST( 61 AS SIGNED ) ) * - - 99 + - 42 + - NULLIF ( 34, - 92 - - - 94 ) + - CASE MAX( 66 ) WHEN COUNT( * ) THEN + 5 + + 10 WHEN + COUNT( * ) THEN NULL END col0
----
75
NULL

skipif mysql # not compatible
query II rowsort label-8439
SELECT DISTINCT 75, + MIN ( ALL CAST ( 61 AS INTEGER ) ) * - - 99 + - 42 + - NULLIF ( 34, - 92 - - - 94 ) + - CASE MAX ( 66 ) WHEN COUNT ( * ) THEN + 5 + + 10 WHEN + COUNT ( * ) THEN NULL END col0
----
75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8440
SELECT CAST( NULL AS SIGNED ) * ( 50 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT CAST ( NULL AS INTEGER ) * ( 50 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 14 * 58 AS col0
----
-812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8442
SELECT ALL - CAST( - - ( - - 40 ) AS SIGNED ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL - CAST ( - - ( - - 40 ) AS INTEGER ) AS col1
----
-40

query II rowsort
SELECT ALL 4 AS col1, 80
----
4
80

query I rowsort
SELECT - 72 * - 60 AS col2
----
4320

onlyif mysql # DIV for integer division: 
query I rowsort label-8445
SELECT 62 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-8445
SELECT 62 / - 97
----
0

query II rowsort
SELECT - 66 AS col2, - 66 + - + 44 AS col2
----
-66
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT - CASE 58 WHEN - - COUNT( * ) + 28 THEN NULL ELSE + 66 END
----
-66

skipif mysql # not compatible
query I rowsort label-8447
SELECT - CASE 58 WHEN - - COUNT ( * ) + 28 THEN NULL ELSE + 66 END
----
-66

query I rowsort
SELECT DISTINCT 17 + + 48 AS col0
----
65

query I rowsort
SELECT ALL - 12 + - - 82 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT COALESCE ( - + COUNT( + ( - 64 ) ), 89 ) + - NULLIF ( + COUNT( * ), - 8 * + + 22 + - - 66 )
----
-2

skipif mysql # not compatible
query I rowsort label-8450
SELECT COALESCE ( - + COUNT ( + ( - 64 ) ), 89 ) + - NULLIF ( + COUNT ( * ), - 8 * + + 22 + - - 66 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ALL NULLIF ( - SUM( ALL - - 1 ), + + 69 + ( 72 ) ) + + 1 * + 44
----
43

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL NULLIF ( - SUM ( ALL - - 1 ), + + 69 + ( 72 ) ) + + 1 * + 44
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8452
SELECT DISTINCT + 79 + + 35 + + NULLIF ( + + 68, + CAST( NULL AS SIGNED ) ) + + 91 - + 54 DIV - ( - 43 ) AS col0, COUNT( * )
----
272
1

skipif mysql # not compatible
query II rowsort label-8452
SELECT DISTINCT + 79 + + 35 + + NULLIF ( + + 68, + CAST ( NULL AS INTEGER ) ) + + 91 - + 54 / - ( - 43 ) AS col0, COUNT ( * )
----
272
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8453
SELECT - 88 + - 73 + - 85 - + - 9 DIV COALESCE ( CAST( 7 AS SIGNED ), + 68, + 84 ) * COUNT( * ) * - 13 + + 78 * 38 AS col2
----
2705

skipif mysql # not compatible
query I rowsort label-8453
SELECT - 88 + - 73 + - 85 - + - 9 / COALESCE ( CAST ( 7 AS INTEGER ), + 68, + 84 ) * COUNT ( * ) * - 13 + + 78 * 38 AS col2
----
2705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8454
SELECT 21 DIV 28 - + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8454
SELECT 21 / 28 - + - COUNT ( * )
----
1

query I rowsort
SELECT ALL 88 + - 43 + - 33 AS col2
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-8456
SELECT 16 * + 66 * + + 37 AS col1, - 87 DIV - 71 + 87 col2
----
39072
88

skipif mysql # not compatible
query II rowsort label-8456
SELECT 16 * + 66 * + + 37 AS col1, - 87 / - 71 + 87 col2
----
39072
88

query I rowsort
SELECT DISTINCT - 89 - + 68 AS col2
----
-157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8458
SELECT DISTINCT - CASE + + ( - - NULLIF ( + 88, - 57 ) ) WHEN - 42 + - + COUNT( * ) + 25 * ( 73 ) THEN - 74 WHEN 16 + 18 THEN + 82 + - 91 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT - CASE + + ( - - NULLIF ( + 88, - 57 ) ) WHEN - 42 + - + COUNT ( * ) + 25 * ( 73 ) THEN - 74 WHEN 16 + 18 THEN + 82 + - 91 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL 52 - - 88 AS col0, ( - 93 )
----
140
-93

query I rowsort
SELECT ALL - ( - + 23 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT 60 * ( - MIN( - - 85 ) )
----
-5100

skipif mysql # not compatible
query I rowsort label-8461
SELECT 60 * ( - MIN ( - - 85 ) )
----
-5100

query I rowsort
SELECT ALL + 72 * 95 * 93 col1
----
636120

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT 44 * - COUNT( * ) * - 81 AS col0
----
3564

skipif mysql # not compatible
query I rowsort label-8463
SELECT 44 * - COUNT ( * ) * - 81 AS col0
----
3564

query I rowsort
SELECT ALL + 45 * - 98
----
-4410

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT 60 - + - NULLIF ( + + COUNT( * ), 44 + + - COALESCE ( 28, - 16 ) ) + + - ( - 59 ) + + ( + 85 ) AS col2
----
205

skipif mysql # not compatible
query I rowsort label-8465
SELECT 60 - + - NULLIF ( + + COUNT ( * ), 44 + + - COALESCE ( 28, - 16 ) ) + + - ( - 59 ) + + ( + 85 ) AS col2
----
205

query I rowsort
SELECT DISTINCT + 54 * + - 4
----
-216

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8467
SELECT ALL + 45 * - ( - SUM( DISTINCT - CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL + 45 * - ( - SUM ( DISTINCT - CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8468
SELECT 75 DIV + 72
----
1

skipif mysql # not compatible
query I rowsort label-8468
SELECT 75 / + 72
----
1

query I rowsort
SELECT DISTINCT - ( 28 ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-8470
SELECT DISTINCT - CASE - + ( COUNT( * ) ) WHEN 80 THEN + 53 + + 66 + - 59 END, + 69 AS col2
----
NULL
69

skipif mysql # not compatible
query II rowsort label-8470
SELECT DISTINCT - CASE - + ( COUNT ( * ) ) WHEN 80 THEN + 53 + + 66 + - 59 END, + 69 AS col2
----
NULL
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8471
SELECT + ( - 15 ) DIV - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8471
SELECT + ( - 15 ) / - 98 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8472
SELECT - + SUM( + + 38 ) AS col2, + 30 * + 67 + - 6 AS col0
----
-38
2004

skipif mysql # not compatible
query II rowsort label-8472
SELECT - + SUM ( + + 38 ) AS col2, + 30 * + 67 + - 6 AS col0
----
-38
2004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8473
SELECT + COUNT( - - CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8473
SELECT + COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8474
SELECT - - ( + 67 ) AS col1, + CAST( + 24 AS SIGNED ) * 58 AS col1
----
67
1392

skipif mysql # not compatible
query II rowsort label-8474
SELECT - - ( + 67 ) AS col1, + CAST ( + 24 AS INTEGER ) * 58 AS col1
----
67
1392

onlyif mysql # DIV for integer division: 
query II rowsort label-8475
SELECT + 27 + 78 AS col1, + 79 DIV - 89
----
105
0

skipif mysql # not compatible
query II rowsort label-8475
SELECT + 27 + 78 AS col1, + 79 / - 89
----
105
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT - COUNT( * ) * + 75 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-8476
SELECT - COUNT ( * ) * + 75 AS col0
----
-75

query I rowsort
SELECT ALL + - 13 + 20 - + 18
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8478
SELECT ALL CAST( - SUM( + 80 ) AS SIGNED ) AS col2, - COUNT( * ) + - ( 85 ) DIV - 98
----
-80
-1

skipif mysql # not compatible
query II rowsort label-8478
SELECT ALL CAST ( - SUM ( + 80 ) AS INTEGER ) AS col2, - COUNT ( * ) + - ( 85 ) / - 98
----
-80
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8479
SELECT DISTINCT - ( COUNT( * ) ) + + - 63 DIV + + 88 * + MIN( DISTINCT - - 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT - ( COUNT ( * ) ) + + - 63 / + + 88 * + MIN ( DISTINCT - - 40 )
----
-1

query I rowsort
SELECT ALL 89 + ( + - 51 )
----
38

query I rowsort
SELECT + - NULLIF ( + 66, - 94 ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT - - 50 / - + COUNT( * ) + + COUNT( * ) - + - CASE COUNT( * ) WHEN + - 94 + + 9 * + COUNT( * ) * - + 67 THEN + 66 END + + + ( 68 ) + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-8482
SELECT - - 50 / - + COUNT ( * ) + + COUNT ( * ) - + - CASE COUNT ( * ) WHEN + - 94 + + 9 * + COUNT ( * ) * - + 67 THEN + 66 END + + + ( 68 ) + 55
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8483
SELECT 25 - - 1 * + 26, 61 * - 53 + + 52 + + + 84 * 39 DIV 89 * - + 70 AS col2
----
51
-5701

skipif mysql # not compatible
query II rowsort label-8483
SELECT 25 - - 1 * + 26, 61 * - 53 + + 52 + + + 84 * 39 / 89 * - + 70 AS col2
----
51
-5701

query I rowsort
SELECT + COALESCE ( + 10, + - 2 * 5 + + 97 + - 65, + 87 )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8485
SELECT COUNT( + ( + 49 ) ) AS col2, 43 AS col0
----
1
43

skipif mysql # not compatible
query II rowsort label-8485
SELECT COUNT ( + ( + 49 ) ) AS col2, 43 AS col0
----
1
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT ALL + 24 * + 79 * - 73 * - 95 - ( + COALESCE ( 80, + 23 + COUNT( * ) ) )
----
13148680

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL + 24 * + 79 * - 73 * - 95 - ( + COALESCE ( 80, + 23 + COUNT ( * ) ) )
----
13148680

query I rowsort
SELECT DISTINCT 75 * 21 col2
----
1575

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT ALL 38 * + + MIN( ALL - 23 ) - + - 16 * 82
----
438

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL 38 * + + MIN ( ALL - 23 ) - + - 16 * 82
----
438

onlyif mysql # aggregate syntax: 
query II rowsort label-8489
SELECT + COUNT( * ) AS col1, 78 col2
----
1
78

skipif mysql # not compatible
query II rowsort label-8489
SELECT + COUNT ( * ) AS col1, 78 col2
----
1
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT + CASE 55 WHEN + + 22 THEN - COUNT( * ) - + 50 + - 28 * - - 18 END * - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8490
SELECT + CASE 55 WHEN + + 22 THEN - COUNT ( * ) - + 50 + - 28 * - - 18 END * - 30 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8491
SELECT ALL CAST( NULL AS SIGNED ) * + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL CAST ( NULL AS INTEGER ) * + 96 AS col2
----
NULL

query I rowsort
SELECT ALL CASE + 80 WHEN ( ( 79 ) ) - + 70 THEN - AVG ( DISTINCT - + CASE 65 WHEN + - 71 THEN NULL ELSE + 57 * + 19 END ) * - - 72 + - 12 END * 26 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT COUNT( * ) * + + 49 + + 35 + - + 84 + + ( + - 9 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-8493
SELECT COUNT ( * ) * + + 49 + + 35 + - + 84 + + ( + - 9 ) AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8494
SELECT MIN( DISTINCT + CAST( 74 AS SIGNED ) )
----
74

skipif mysql # not compatible
query I rowsort label-8494
SELECT MIN ( DISTINCT + CAST ( 74 AS INTEGER ) )
----
74

query I rowsort
SELECT + 4 * 24 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT 86 * - - 34 * COUNT( * ) + - MIN( DISTINCT + - COALESCE ( - 3, - + 51 ) )
----
2921

skipif mysql # not compatible
query I rowsort label-8496
SELECT 86 * - - 34 * COUNT ( * ) + - MIN ( DISTINCT + - COALESCE ( - 3, - + 51 ) )
----
2921

query I rowsort
SELECT - 69 * + 33 AS col1
----
-2277

query I rowsort
SELECT + COALESCE ( - 7, + 18 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT + 33 + + - 47 - COUNT( * ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-8499
SELECT + 33 + + - 47 - COUNT ( * ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT + 12 * - ( - + 44 ) + + COUNT( * ) + 66
----
595

skipif mysql # not compatible
query I rowsort label-8500
SELECT + 12 * - ( - + 44 ) + + COUNT ( * ) + 66
----
595

query I rowsort
SELECT ALL + 14 * + 34 AS col1
----
476

query I rowsort
SELECT ALL 91 + + - 30 + 73
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT 28 * - + 25 - + - ( CASE - 81 WHEN 46 + + 43 + - COUNT( * ) THEN - - 21 * + - 16 + + 34 * - 68 + + ( 33 ) WHEN 22 + - COALESCE ( - 98, 30 + 8 * + 88, + 10 ) THEN NULL END ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8503
SELECT 28 * - + 25 - + - ( CASE - 81 WHEN 46 + + 43 + - COUNT ( * ) THEN - - 21 * + - 16 + + 34 * - 68 + + ( 33 ) WHEN 22 + - COALESCE ( - 98, 30 + 8 * + 88, + 10 ) THEN NULL END ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 64 + - 93 + 22 * + + 6 + 78 AS col2
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT + MIN( + 46 ) * + 7
----
322

skipif mysql # not compatible
query I rowsort label-8505
SELECT + MIN ( + 46 ) * + 7
----
322

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT - + 53 + + COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-8506
SELECT - + 53 + + COUNT ( * )
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8507
SELECT - + COUNT( * ) DIV - 95 + + ( + 32 )
----
32

skipif mysql # not compatible
query I rowsort label-8507
SELECT - + COUNT ( * ) / - 95 + + ( + 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT ALL - 73 + + + COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL - 73 + + + COUNT ( * )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT DISTINCT + 14 * + SUM( - ( + + 77 ) ) AS col2
----
-1078

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT + 14 * + SUM ( - ( + + 77 ) ) AS col2
----
-1078

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT - + 92 * COUNT( * ) + + + 59 col2
----
-33

skipif mysql # not compatible
query I rowsort label-8510
SELECT - + 92 * COUNT ( * ) + + + 59 col2
----
-33

query II rowsort
SELECT ALL + 89 col2, + 87
----
89
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8512
SELECT - 21 DIV + + 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8512
SELECT - 21 / + + 57 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT DISTINCT 90 + 56 + + COUNT( * ) * - COUNT( DISTINCT 45 ) + + COUNT( * )
----
146

skipif mysql # not compatible
query I rowsort label-8513
SELECT DISTINCT 90 + 56 + + COUNT ( * ) * - COUNT ( DISTINCT 45 ) + + COUNT ( * )
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT DISTINCT + - COALESCE ( - 10, + SUM( ALL 46 ), - 44 + - 93 - + 30 * + CASE - + 43 WHEN - + 30 THEN MAX( + NULLIF ( 36, 16 ) ) WHEN + 97 THEN - ( + ( - 34 ) ) ELSE NULL END + - COUNT( * ) ) * - 67
----
-670

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT + - COALESCE ( - 10, + SUM ( ALL 46 ), - 44 + - 93 - + 30 * + CASE - + 43 WHEN - + 30 THEN MAX ( + NULLIF ( 36, 16 ) ) WHEN + 97 THEN - ( + ( - 34 ) ) ELSE NULL END + - COUNT ( * ) ) * - 67
----
-670

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8515
SELECT ALL - ( + CAST( - NULLIF ( - 29, 25 - - - COALESCE ( - 39, + 83 DIV - CAST( 77 AS SIGNED ), - - 9 + - 22 + + - CAST( + 75 AS DECIMAL ) + 58 DIV 12 * 32 ) + + ( 42 ) * 16 ) AS SIGNED ) ) DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL - ( + CAST ( - NULLIF ( - 29, 25 - - - COALESCE ( - 39, + 83 / - CAST ( 77 AS INTEGER ), - - 9 + - 22 + + - CAST ( + 75 AS REAL ) + 58 / 12 * 32 ) + + ( 42 ) * 16 ) AS INTEGER ) ) / 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT - 48 * COUNT( * ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-8516
SELECT - 48 * COUNT ( * ) AS col1
----
-48

query I rowsort
SELECT DISTINCT + 62 + - 27 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT - + SUM( ALL CASE - 71 WHEN + 96 + 98 THEN + + 68 WHEN + 42 * 61 * 17 THEN NULL ELSE - 23 END ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-8518
SELECT - + SUM ( ALL CASE - 71 WHEN + 96 + 98 THEN + + 68 WHEN + 42 * 61 * 17 THEN NULL ELSE - 23 END ) AS col2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8519
SELECT - + 40 + + 39 + - NULLIF ( + 81, - + COUNT( * ) ) DIV + - 25 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8519
SELECT - + 40 + + 39 + - NULLIF ( + 81, - + COUNT ( * ) ) / + - 25 AS col2
----
2

query I rowsort
SELECT - + 35 + - NULLIF ( - 65, + 95 )
----
30

query I rowsort
SELECT - - 66 * 62 * + - 24 * - 4
----
392832

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT ( + MIN( - 91 ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-8522
SELECT ( + MIN ( - 91 ) ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT - 23 + - 88 - - - COUNT( * ) + - 74 + - ( + ( + 61 ) ) * + COALESCE ( 79, - 50, 2 ) * - COUNT( * ) col0
----
4633

skipif mysql # not compatible
query I rowsort label-8523
SELECT - 23 + - 88 - - - COUNT ( * ) + - 74 + - ( + ( + 61 ) ) * + COALESCE ( 79, - 50, 2 ) * - COUNT ( * ) col0
----
4633

query I rowsort
SELECT - 37 + + 99
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8525
SELECT + 6 - + CAST( NULL AS SIGNED ) * + - COUNT( * ) - + ( - - 19 ) * COUNT( * ) * + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8525
SELECT + 6 - + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) - + ( - - 19 ) * COUNT ( * ) * + 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8526
SELECT ALL + 89 * 63, - NULLIF ( 56, COALESCE ( + ( - + CASE + + SUM( DISTINCT - 85 ) WHEN - + 1 * 35 + MAX( 63 ) THEN NULL WHEN + 61 * - 57 THEN NULL ELSE 73 * - MAX( - 83 / + 24 ) END ), - COUNT( * ) / 73 ) / 87 - + 41 ) AS col2
----
5607
-56

skipif mysql # not compatible
query II rowsort label-8526
SELECT ALL + 89 * 63, - NULLIF ( 56, COALESCE ( + ( - + CASE + + SUM ( DISTINCT - 85 ) WHEN - + 1 * 35 + MAX ( 63 ) THEN NULL WHEN + 61 * - 57 THEN NULL ELSE 73 * - MAX ( - 83 / + 24 ) END ), - COUNT ( * ) / 73 ) / 87 - + 41 ) AS col2
----
5607
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT - COUNT( * ) + - 63 + + 70 * - + 46 + + + COUNT( * )
----
-3283

skipif mysql # not compatible
query I rowsort label-8527
SELECT - COUNT ( * ) + - 63 + + 70 * - + 46 + + + COUNT ( * )
----
-3283

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT DISTINCT + COUNT( ALL - - 37 ) * - 32
----
-32

skipif mysql # not compatible
query I rowsort label-8528
SELECT DISTINCT + COUNT ( ALL - - 37 ) * - 32
----
-32

query I rowsort
SELECT DISTINCT + ( + - 68 ) * + 88 AS col1
----
-5984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8530
SELECT + CAST( + + 35 AS DECIMAL ) * - COALESCE ( - - 22, - - 77 * - 6 + + - 27 + + 6 + 1 / + 61, 27 * - 19 * + COUNT( * ) * 69 ) / CAST( NULL AS SIGNED ) + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8530
SELECT + CAST ( + + 35 AS REAL ) * - COALESCE ( - - 22, - - 77 * - 6 + + - 27 + + 6 + 1 / + 61, 27 * - 19 * + COUNT ( * ) * 69 ) / CAST ( NULL AS INTEGER ) + 65 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8531
SELECT - COUNT( * ) DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-8531
SELECT - COUNT ( * ) / 47
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8532
SELECT ( + COUNT( * ) ), + COUNT( * ) - 95 AS col1
----
1
-94

skipif mysql # not compatible
query II rowsort label-8532
SELECT ( + COUNT ( * ) ), + COUNT ( * ) - 95 AS col1
----
1
-94

query I rowsort
SELECT + 45 + + - 95 AS col1
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8534
SELECT ALL 21 * NULLIF ( + 28, 6 * + + 63 / - 32 * - 15 + 45 * - - 57 / 99 ) + 66 + 9 * + CAST( + AVG ( - 12 ) AS SIGNED ) * - 80
----
9294

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL 21 * NULLIF ( + 28, 6 * + + 63 / - 32 * - 15 + 45 * - - 57 / 99 ) + 66 + 9 * + CAST ( + AVG ( - 12 ) AS INTEGER ) * - 80
----
9294

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT ALL + NULLIF ( 9, - 87 + - - COUNT( * ) * - 58 )
----
9

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL + NULLIF ( 9, - 87 + - - COUNT ( * ) * - 58 )
----
9

query I rowsort
SELECT DISTINCT 27 * + - CASE + 31 WHEN 28 * 66 - + 33 THEN - 9 + - 21 WHEN 6 + + 90 THEN NULL WHEN + - ( 92 ) THEN NULL ELSE NULL END + + 69 + + ( 26 ) * 80
----
NULL

query II rowsort
SELECT + 79 * + 68, 48 AS col1
----
5372
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT ALL ( - + ( + 82 ) ) * + 56 + + COUNT( * )
----
-4591

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL ( - + ( + 82 ) ) * + 56 + + COUNT ( * )
----
-4591

query I rowsort
SELECT DISTINCT - 18 * + - 18 AS col1
----
324

onlyif mysql # aggregate syntax: 
query II rowsort label-8540
SELECT - + 7 * + + 88 AS col1, 38 + - - ( + 41 ) - + 79 * MAX( + 43 )
----
-616
-3318

skipif mysql # not compatible
query II rowsort label-8540
SELECT - + 7 * + + 88 AS col1, 38 + - - ( + 41 ) - + 79 * MAX ( + 43 )
----
-616
-3318

query I rowsort
SELECT DISTINCT CASE 96 WHEN - - 32 THEN 64 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 9 * 66 AS col2
----
594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8543
SELECT ALL + COUNT( DISTINCT - 17 ) * + + 14 + - CAST( NULL AS SIGNED ) / - 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL + COUNT ( DISTINCT - 17 ) * + + 14 + - CAST ( NULL AS INTEGER ) / - 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-8544
SELECT DISTINCT + + 13 * - - COUNT( * ) + + 19 + - 75 col0, + COUNT( * ) * - ( + 41 ) AS col1, + 7 col0
----
-43
-41
7

skipif mysql # not compatible
query III rowsort label-8544
SELECT DISTINCT + + 13 * - - COUNT ( * ) + + 19 + - 75 col0, + COUNT ( * ) * - ( + 41 ) AS col1, + 7 col0
----
-43
-41
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8545
SELECT DISTINCT 11 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8545
SELECT DISTINCT 11 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT DISTINCT 24 - COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT 24 - COUNT ( * ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-8547
SELECT DISTINCT - - 21 * SUM( - 19 ) - - 74, ( + 44 ) AS col0
----
-325
44

skipif mysql # not compatible
query II rowsort label-8547
SELECT DISTINCT - - 21 * SUM ( - 19 ) - - 74, ( + 44 ) AS col0
----
-325
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8548
SELECT + 12 * 9 * - CAST( NULL AS SIGNED ) * + + 31 AS col1, 85 + 48
----
NULL
133

skipif mysql # not compatible
query II rowsort label-8548
SELECT + 12 * 9 * - CAST ( NULL AS INTEGER ) * + + 31 AS col1, 85 + 48
----
NULL
133

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT ALL - - 71 * - - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL - - 71 * - - COUNT ( * )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8550
SELECT DISTINCT + SUM( - - 29 ) col2, NULLIF ( + 63, + COUNT( * ) / + NULLIF ( - + 34, - 69 ) ) * - - CAST( NULL AS SIGNED ) AS col1
----
29
NULL

skipif mysql # not compatible
query II rowsort label-8550
SELECT DISTINCT + SUM ( - - 29 ) col2, NULLIF ( + 63, + COUNT ( * ) / + NULLIF ( - + 34, - 69 ) ) * - - CAST ( NULL AS INTEGER ) AS col1
----
29
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8551
SELECT + COUNT( * ) * + 0 DIV - 15
----
0

skipif mysql # not compatible
query I rowsort label-8551
SELECT + COUNT ( * ) * + 0 / - 15
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8552
SELECT ALL 24 AS col2, 86 + - COUNT( * ) - + ( - 75 ) / CASE - - 52 WHEN - + COUNT( ALL - + 73 ) THEN + - CASE - - ( + ( - + 96 ) ) WHEN - 19 THEN + CASE 25 WHEN 96 THEN + ( + COUNT( * ) ) END * + 97 END WHEN 41 THEN + CAST( - 10 AS SIGNED ) ELSE NULL END * + 16 * - 12 AS col1
----
24
NULL

skipif mysql # not compatible
query II rowsort label-8552
SELECT ALL 24 AS col2, 86 + - COUNT ( * ) - + ( - 75 ) / CASE - - 52 WHEN - + COUNT ( ALL - + 73 ) THEN + - CASE - - ( + ( - + 96 ) ) WHEN - 19 THEN + CASE 25 WHEN 96 THEN + ( + COUNT ( * ) ) END * + 97 END WHEN 41 THEN + CAST ( - 10 AS INTEGER ) ELSE NULL END * + 16 * - 12 AS col1
----
24
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8553
SELECT ALL 76, 91 + CAST( NULL AS SIGNED ) + - NULLIF ( - COUNT( * ), + - 45 ) * 70 AS col0
----
76
NULL

skipif mysql # not compatible
query II rowsort label-8553
SELECT ALL 76, 91 + CAST ( NULL AS INTEGER ) + - NULLIF ( - COUNT ( * ), + - 45 ) * 70 AS col0
----
76
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8554
SELECT DISTINCT - 3 DIV 14
----
0

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT - 3 / 14
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8555
SELECT 63 DIV + 24 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8555
SELECT 63 / + 24 AS col0
----
2

query I rowsort
SELECT 34 * + + 19
----
646

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8557
SELECT ALL - 13 / + CASE + 75 WHEN - COUNT( * ) THEN - MAX( DISTINCT + + 12 ) ELSE + 69 * 44 END * - + NULLIF ( - - 15, - 17 ) * - 18 * + - 83 / + 90 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL - 13 / + CASE + 75 WHEN - COUNT ( * ) THEN - MAX ( DISTINCT + + 12 ) ELSE + 69 * 44 END * - + NULLIF ( - - 15, - 17 ) * - 18 * + - 83 / + 90 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 44 * - 3
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8559
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, 0 * 46 + + 8
----
NULL
8

skipif mysql # not compatible
query II rowsort label-8559
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, 0 * 46 + + 8
----
NULL
8

query I rowsort
SELECT 60 - - 84 col0
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8561
SELECT 69 * CAST( NULL AS SIGNED ) / - + COUNT( * ) AS col1, + 27 AS col0
----
NULL
27

skipif mysql # not compatible
query II rowsort label-8561
SELECT 69 * CAST ( NULL AS INTEGER ) / - + COUNT ( * ) AS col1, + 27 AS col0
----
NULL
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8562
SELECT ALL 45 * CAST( - 61 AS SIGNED ) AS col2, 81 + - 31 AS col2
----
-2745
50

skipif mysql # not compatible
query II rowsort label-8562
SELECT ALL 45 * CAST ( - 61 AS INTEGER ) AS col2, 81 + - 31 AS col2
----
-2745
50

query I rowsort
SELECT DISTINCT - 41 + - 99
----
-140

onlyif mysql # DIV for integer division: 
query I rowsort label-8564
SELECT ALL + 86 + - + 14 * 27 DIV - 17 + + 97 + + 22
----
227

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL + 86 + - + 14 * 27 / - 17 + + 97 + + 22
----
227

query II rowsort
SELECT 47, - 4 - - 5 * + ( + - 28 ) AS col2
----
47
-144

query I rowsort
SELECT ALL - 14 * 21 * + 67 * - + 98 AS col0
----
1930404

onlyif mysql # aggregate syntax: 
query II rowsort label-8567
SELECT + 4 * - + ( - COUNT( * ) ) + - MIN( + 4 ) AS col0, 8 col0
----
0
8

skipif mysql # not compatible
query II rowsort label-8567
SELECT + 4 * - + ( - COUNT ( * ) ) + - MIN ( + 4 ) AS col0, 8 col0
----
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT ALL + MAX( ALL 50 ) + + 66 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL + MAX ( ALL 50 ) + + 66 AS col1
----
116

query II rowsort
SELECT DISTINCT - 43, 6 + + + 94 AS col2
----
-43
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8570
SELECT ALL CAST( NULL AS SIGNED ) + - ( COUNT( * ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL CAST ( NULL AS INTEGER ) + - ( COUNT ( * ) ) col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8571
SELECT + + 70 AS col0, CAST( NULL AS DECIMAL ) AS col0
----
70
NULL

skipif mysql # not compatible
query II rowsort label-8571
SELECT + + 70 AS col0, CAST ( NULL AS REAL ) AS col0
----
70
NULL

query I rowsort
SELECT ALL + 65 * 31 AS col1
----
2015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT CAST( NULL AS SIGNED ) * + 97 - + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8573
SELECT CAST ( NULL AS INTEGER ) * + 97 - + 65 AS col1
----
NULL

query I rowsort
SELECT ALL + ( 37 ) - 71 * + 76 - - 66 - + 46
----
-5339

query I rowsort
SELECT ALL + 21 * + NULLIF ( 9, - + 1 )
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT - 40 * + 79 + - CASE 46 WHEN 63 * - - COUNT( * ) + - + 13 * 0 THEN 53 ELSE 24 END AS col1
----
-3184

skipif mysql # not compatible
query I rowsort label-8576
SELECT - 40 * + 79 + - CASE 46 WHEN 63 * - - COUNT ( * ) + - + 13 * 0 THEN 53 ELSE 24 END AS col1
----
-3184

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT ALL CASE - 91 WHEN + MAX( - 9 ) * - 81 THEN 16 ELSE NULL END * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL CASE - 91 WHEN + MAX ( - 9 ) * - 81 THEN 16 ELSE NULL END * - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT ALL COUNT( * ) * - 47 * - + ( - ( - + 0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL COUNT ( * ) * - 47 * - + ( - ( - + 0 ) )
----
0

query I rowsort
SELECT + 66 * - 0 + 29 + 6 * - 21 - NULLIF ( - + 48, 78 ) - 41 AS col0
----
-90

query I rowsort
SELECT + 5 + - + ( 95 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT DISTINCT - SUM( + 29 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-8581
SELECT DISTINCT - SUM ( + 29 ) AS col0
----
-29

query I rowsort
SELECT - NULLIF ( 5, - + 11 * + 93 + + 31 ) * 72
----
-360

query I rowsort
SELECT 60 - 61 AS col0
----
-1

query I rowsort
SELECT 70 + 65
----
135

query I rowsort
SELECT ALL 58 * - 10 * + 39
----
-22620

query I rowsort
SELECT 44 * + 26
----
1144

query I rowsort
SELECT 79 * + - 11 * 36
----
-31284

query I rowsort
SELECT ALL 75 + 60
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT COUNT( DISTINCT + + 24 ) + + - 87
----
-86

skipif mysql # not compatible
query I rowsort label-8589
SELECT COUNT ( DISTINCT + + 24 ) + + - 87
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-8590
SELECT - 86 AS col1, + COUNT( * )
----
-86
1

skipif mysql # not compatible
query II rowsort label-8590
SELECT - 86 AS col1, + COUNT ( * )
----
-86
1

query II rowsort
SELECT 22 AS col2, - 57 + - 15 - 25 AS col0
----
22
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8592
SELECT CAST( NULLIF ( - - COUNT( * ), + + 30 - + + CASE + 28 WHEN - 15 THEN + ( - MAX( ALL - + 30 ) ) * - + 68 * + MAX( 43 ) * COUNT( * ) * - MIN( - 95 ) WHEN 39 + CASE + 50 WHEN + 87 THEN 7 + 93 WHEN 29 THEN + 98 END THEN ( 65 ) * 20 WHEN + 26 THEN NULL END ) AS SIGNED ) + + 36 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-8592
SELECT CAST ( NULLIF ( - - COUNT ( * ), + + 30 - + + CASE + 28 WHEN - 15 THEN + ( - MAX ( ALL - + 30 ) ) * - + 68 * + MAX ( 43 ) * COUNT ( * ) * - MIN ( - 95 ) WHEN 39 + CASE + 50 WHEN + 87 THEN 7 + 93 WHEN 29 THEN + 98 END THEN ( 65 ) * 20 WHEN + 26 THEN NULL END ) AS INTEGER ) + + 36 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT DISTINCT 81 + SUM( ALL 80 )
----
161

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT 81 + SUM ( ALL 80 )
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT ALL COUNT( * ) * - - 41 + - - 69 * + - 38 + - 87 AS col0
----
-2668

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL COUNT ( * ) * - - 41 + - - 69 * + - 38 + - 87 AS col0
----
-2668

query I rowsort
SELECT DISTINCT 57 * - 81 AS col2
----
-4617

onlyif mysql # aggregate syntax: 
query II rowsort label-8596
SELECT ALL 7 * + ( - 8 ) + - 59, - COUNT( * ) AS col2
----
-115
-1

skipif mysql # not compatible
query II rowsort label-8596
SELECT ALL 7 * + ( - 8 ) + - 59, - COUNT ( * ) AS col2
----
-115
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT DISTINCT 75 * 70 + + 8 - - SUM( + 64 ) * + - CASE - + 79 WHEN + 5 * + 47 THEN + - 39 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT 75 * 70 + + 8 - - SUM ( + 64 ) * + - CASE - + 79 WHEN + 5 * + 47 THEN + - 39 END AS col1
----
NULL

query II rowsort
SELECT + 38 * + 93 * - 19 + - 23 * - 29 * + 94 AS col1, ( - 28 )
----
-4448
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-8599
SELECT ALL - COUNT( * ), - 78 * + 77 AS col1
----
-1
-6006

skipif mysql # not compatible
query II rowsort label-8599
SELECT ALL - COUNT ( * ), - 78 * + 77 AS col1
----
-1
-6006

query I rowsort
SELECT 55 * - 25 * - + 67 + 75 + 25
----
92225

onlyif mysql # aggregate syntax: 
query II rowsort label-8601
SELECT COUNT( * ), - 66 AS col2
----
1
-66

skipif mysql # not compatible
query II rowsort label-8601
SELECT COUNT ( * ), - 66 AS col2
----
1
-66

query I rowsort
SELECT 85 * - + 64 AS col1
----
-5440

onlyif mysql # aggregate syntax: 
query II rowsort label-8603
SELECT COUNT( * ) * + NULLIF ( - COUNT( * ), - 2 ) AS col1, 63
----
-1
63

skipif mysql # not compatible
query II rowsort label-8603
SELECT COUNT ( * ) * + NULLIF ( - COUNT ( * ), - 2 ) AS col1, 63
----
-1
63

query I rowsort
SELECT 94 * + 47 AS col2
----
4418

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT ALL - 19 - + + COUNT( 60 ) * + - 21 * + CASE + 61 WHEN 37 + - + 38 THEN + 39 ELSE - 10 END AS col0
----
-229

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL - 19 - + + COUNT ( 60 ) * + - 21 * + CASE + 61 WHEN 37 + - + 38 THEN + 39 ELSE - 10 END AS col0
----
-229

query II rowsort
SELECT ALL - 41, + ( + + 30 ) * - ( 15 ) * 2 AS col2
----
-41
-900

query I rowsort
SELECT ALL - - 4 * 24 * - - 77
----
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT + 8 * - - 87 - - 89 * + MIN( ALL - 32 ) * 72 * - + 12 * + + 46 AS col2
----
113191608

skipif mysql # not compatible
query I rowsort label-8608
SELECT + 8 * - - 87 - - 89 * + MIN ( ALL - 32 ) * 72 * - + 12 * + + 46 AS col2
----
113191608

query II rowsort
SELECT ALL - + 11 AS col0, + 33 * - 83
----
-11
-2739

query I rowsort
SELECT - - COALESCE ( 66, + 74, + 91 )
----
66

query I rowsort
SELECT - - 3 - - 77
----
80

query I rowsort
SELECT ALL NULLIF ( - 53, - 26 * 33 * - 16 )
----
-53

query II rowsort
SELECT DISTINCT - 77 col1, - 71
----
-77
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8614
SELECT DISTINCT + 59 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8614
SELECT DISTINCT + 59 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8615
SELECT ALL + COUNT( * ) DIV 13 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL + COUNT ( * ) / 13 AS col0
----
0

query I rowsort
SELECT ALL + 26 + ( - 62 )
----
-36

query I rowsort
SELECT DISTINCT + 15 * + 36 col0
----
540

query I rowsort
SELECT ALL + NULLIF ( + 96, + NULLIF ( + 66, 17 ) )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8619
SELECT + - 46 + CAST( - - COUNT( * ) AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-8619
SELECT + - 46 + CAST ( - - COUNT ( * ) AS INTEGER )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8620
SELECT + CASE + 18 WHEN 15 + - - 14 THEN 83 END - - 25 * ( CASE + COUNT( 54 ) WHEN + CASE - MIN( ALL - - 32 ) WHEN + - COUNT( DISTINCT + 98 ) THEN NULL WHEN + SUM( ALL 46 ) THEN + 44 * 26 WHEN + 27 THEN - 7 * 22 ELSE + CAST( CAST( NULLIF ( - 44, - CAST( NULL AS SIGNED ) + + 2 ) AS SIGNED ) AS SIGNED ) END THEN + CASE 38 WHEN + 76 THEN 35 - COUNT( * ) ELSE NULL END ELSE 15 + CAST( 64 AS SIGNED ) / 19 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8620
SELECT + CASE + 18 WHEN 15 + - - 14 THEN 83 END - - 25 * ( CASE + COUNT ( 54 ) WHEN + CASE - MIN ( ALL - - 32 ) WHEN + - COUNT ( DISTINCT + 98 ) THEN NULL WHEN + SUM ( ALL 46 ) THEN + 44 * 26 WHEN + 27 THEN - 7 * 22 ELSE + CAST ( CAST ( NULLIF ( - 44, - CAST ( NULL AS INTEGER ) + + 2 ) AS INTEGER ) AS INTEGER ) END THEN + CASE 38 WHEN + 76 THEN 35 - COUNT ( * ) ELSE NULL END ELSE 15 + CAST ( 64 AS INTEGER ) / 19 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8621
SELECT ALL 76 + 72 / 13 - - CASE 3 WHEN + - CASE NULLIF ( + ( + - 79 ), + 60 / + 10 - + 43 - - NULLIF ( + COUNT( * ), 94 * + - AVG ( ALL 45 ) ) ) WHEN + CASE - 51 WHEN 9 THEN + 32 WHEN - MIN( DISTINCT 36 ) THEN NULL ELSE NULL END THEN - MIN( + 69 ) END + - 27 / 20 THEN - 65 + - CASE 18 + - CASE - ( - 23 ) - 90 WHEN + CAST( 77 AS SIGNED ) THEN + COUNT( * ) WHEN + 39 THEN 73 WHEN 69 / - COUNT( DISTINCT + 53 ) THEN NULL ELSE NULL END WHEN + 52 * + 45 THEN NULL ELSE 75 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL 76 + 72 / 13 - - CASE 3 WHEN + - CASE NULLIF ( + ( + - 79 ), + 60 / + 10 - + 43 - - NULLIF ( + COUNT ( * ), 94 * + - AVG ( ALL 45 ) ) ) WHEN + CASE - 51 WHEN 9 THEN + 32 WHEN - MIN ( DISTINCT 36 ) THEN NULL ELSE NULL END THEN - MIN ( + 69 ) END + - 27 / 20 THEN - 65 + - CASE 18 + - CASE - ( - 23 ) - 90 WHEN + CAST ( 77 AS INTEGER ) THEN + COUNT ( * ) WHEN + 39 THEN 73 WHEN 69 / - COUNT ( DISTINCT + 53 ) THEN NULL ELSE NULL END WHEN + 52 * + 45 THEN NULL ELSE 75 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT + MIN( 26 ) * - 76 * - + 77 * - + NULLIF ( + + 4, + 56 / - 95 ) + - - 93 AS col2
----
-608515

skipif mysql # not compatible
query I rowsort label-8622
SELECT + MIN ( 26 ) * - 76 * - + 77 * - + NULLIF ( + + 4, + 56 / - 95 ) + - - 93 AS col2
----
-608515

query I rowsort
SELECT + 58 * - 86 AS col2
----
-4988

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8624
SELECT + NULLIF ( + + 53, + CAST( - COALESCE ( 35, + 33, 66 ) AS SIGNED ) ) + - 88 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-8624
SELECT + NULLIF ( + + 53, + CAST ( - COALESCE ( 35, + 33, 66 ) AS INTEGER ) ) + - 88 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT - COALESCE ( - COUNT( * ), - COUNT( * ), - 97 )
----
1

skipif mysql # not compatible
query I rowsort label-8625
SELECT - COALESCE ( - COUNT ( * ), - COUNT ( * ), - 97 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT + ( + - 72 ) + - 98 + + MIN( ( - 33 ) ) + 33 AS col2
----
-170

skipif mysql # not compatible
query I rowsort label-8626
SELECT + ( + - 72 ) + - 98 + + MIN ( ( - 33 ) ) + 33 AS col2
----
-170

query I rowsort
SELECT ALL 9 + - 75 * - 81 AS col2
----
6084

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT - SUM( DISTINCT - CASE 20 WHEN 47 THEN NULL ELSE - 25 END ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-8628
SELECT - SUM ( DISTINCT - CASE 20 WHEN 47 THEN NULL ELSE - 25 END ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT + MIN( ALL - ( 69 ) ) * - + 94 * - 49 AS col0
----
-317814

skipif mysql # not compatible
query I rowsort label-8629
SELECT + MIN ( ALL - ( 69 ) ) * - + 94 * - 49 AS col0
----
-317814

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT ALL 90 * - 95 * - 76 - + - 60 * - + NULLIF ( 87, + CASE - 98 WHEN - 69 THEN + COUNT( ALL + + 9 ) WHEN SUM( - 68 ) THEN NULL ELSE NULL END ) * 75
----
258300

skipif mysql # not compatible
query I rowsort label-8630
SELECT ALL 90 * - 95 * - 76 - + - 60 * - + NULLIF ( 87, + CASE - 98 WHEN - 69 THEN + COUNT ( ALL + + 9 ) WHEN SUM ( - 68 ) THEN NULL ELSE NULL END ) * 75
----
258300

query I rowsort
SELECT + ( 60 ) - - - 86 * - + 13
----
1178

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT ALL + MIN( ALL - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL + MIN ( ALL - 17 )
----
-17

query I rowsort
SELECT DISTINCT + + 95 * - 52 - - - 63
----
-5003

query I rowsort
SELECT + + 73 + + - 85
----
-12

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8635
SELECT - + CASE + 40 WHEN + ( - NULLIF ( - 79, + + COALESCE ( 22, + 22, 87 - COALESCE ( + CAST( 54 AS DECIMAL ), + 81 * + CAST( - - COALESCE ( - + 42, - ( 14 ) + - 47 ) AS SIGNED ) / + 79 ) ) ) ) THEN - ( CAST( 86 AS SIGNED ) ) WHEN 83 THEN + 63 ELSE 82 END - 38
----
-120

skipif mysql # not compatible
query I rowsort label-8635
SELECT - + CASE + 40 WHEN + ( - NULLIF ( - 79, + + COALESCE ( 22, + 22, 87 - COALESCE ( + CAST ( 54 AS REAL ), + 81 * + CAST ( - - COALESCE ( - + 42, - ( 14 ) + - 47 ) AS INTEGER ) / + 79 ) ) ) ) THEN - ( CAST ( 86 AS INTEGER ) ) WHEN 83 THEN + 63 ELSE 82 END - 38
----
-120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8636
SELECT - - 93 - + + CASE 56 WHEN - COUNT( + 15 ) DIV - NULLIF ( + COUNT( * ), + 96 DIV - 84 + - 64 ) THEN NULL ELSE 23 * 75 DIV - + NULLIF ( 99, 40 + - 30 * AVG ( ALL + 24 ) DIV 17 ) END + + 70 * 37
----
2700

skipif mysql # not compatible
query I rowsort label-8636
SELECT - - 93 - + + CASE 56 WHEN - COUNT ( + 15 ) / - NULLIF ( + COUNT ( * ), + 96 / - 84 + - 64 ) THEN NULL ELSE 23 * 75 / - + NULLIF ( 99, 40 + - 30 * AVG ( ALL + 24 ) / 17 ) END + + 70 * 37
----
2700

query I rowsort
SELECT - 21 * - - 31 AS col1
----
-651

onlyif mysql # DIV for integer division: 
query I rowsort label-8638
SELECT DISTINCT + + ( + 18 ) DIV - 15 + + - 14 DIV - 47
----
-1

skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT + + ( + 18 ) / - 15 + + - 14 / - 47
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT 7 * - 82 + - + MIN( 85 ) AS col1
----
-659

skipif mysql # not compatible
query I rowsort label-8639
SELECT 7 * - 82 + - + MIN ( 85 ) AS col1
----
-659

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT - - COUNT( * ) * + - 97 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-8640
SELECT - - COUNT ( * ) * + - 97 AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT - MAX( ALL + - ( - - 64 ) ) + - ( - 94 ) * + 90 AS col2
----
8524

skipif mysql # not compatible
query I rowsort label-8641
SELECT - MAX ( ALL + - ( - - 64 ) ) + - ( - 94 ) * + 90 AS col2
----
8524

query I rowsort
SELECT ALL + - NULLIF ( 58, + + 0 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT - - 41 * + - 82 * + COUNT( * ) * - + 27 AS col1
----
90774

skipif mysql # not compatible
query I rowsort label-8643
SELECT - - 41 * + - 82 * + COUNT ( * ) * - + 27 AS col1
----
90774

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT DISTINCT + - 35 * - 15 + - 50 * - SUM( 39 )
----
2475

skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT + - 35 * - 15 + - 50 * - SUM ( 39 )
----
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT ( + COUNT( + 54 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8645
SELECT ( + COUNT ( + 54 ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8646
SELECT ALL + + CAST( - - 62 AS SIGNED ) * + + 65 + - 90 + - 92 + - COUNT( * ) DIV + 49
----
3848

skipif mysql # not compatible
query I rowsort label-8646
SELECT ALL + + CAST ( - - 62 AS INTEGER ) * + + 65 + - 90 + - 92 + - COUNT ( * ) / + 49
----
3848

query I rowsort
SELECT - COALESCE ( - + 13, - 46 ) * - 56
----
-728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8648
SELECT DISTINCT 59 * 30 + + 8 + MIN( + 23 ) DIV CASE + 27 WHEN + - AVG ( ALL + 46 ) * 40 - - + COUNT( * ) THEN - 85 WHEN - 9 THEN NULL ELSE - + 43 END + - NULLIF ( - 76, 21 )
----
1854

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT 59 * 30 + + 8 + MIN ( + 23 ) / CASE + 27 WHEN + - AVG ( ALL + 46 ) * 40 - - + COUNT ( * ) THEN - 85 WHEN - 9 THEN NULL ELSE - + 43 END + - NULLIF ( - 76, 21 )
----
1854

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8649
SELECT ALL - 95 + + CAST( NULL AS DECIMAL ), - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8649
SELECT ALL - 95 + + CAST ( NULL AS REAL ), - COUNT ( * ) AS col1
----
NULL
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8650
SELECT ALL + 99 + 58 * - 3, 60 + 21 - + CAST( NULL AS DECIMAL ) * - - 5 + + 25 AS col1
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-8650
SELECT ALL + 99 + 58 * - 3, 60 + 21 - + CAST ( NULL AS REAL ) * - - 5 + + 25 AS col1
----
-75
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8651
SELECT DISTINCT - 72 + - COUNT( * ) DIV + 12 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT - 72 + - COUNT ( * ) / + 12 AS col0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-8652
SELECT DISTINCT 70 DIV + - 16 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT 70 / + - 16 AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8653
SELECT DISTINCT + 82 DIV - + 78 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT + 82 / - + 78 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8654
SELECT ALL CAST( NULL AS SIGNED ), 56 col2
----
NULL
56

skipif mysql # not compatible
query II rowsort label-8654
SELECT ALL CAST ( NULL AS INTEGER ), 56 col2
----
NULL
56

query I rowsort
SELECT ALL + 64 * - - 81
----
5184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8656
SELECT + 80 + + + COUNT( * ) / 29 * + ( + 49 ) / - 55 / - CAST( NULL AS SIGNED ) + - - 14 + - 3 * CASE + + 10 WHEN + CAST( 88 AS SIGNED ) / + + 96 THEN + MAX( - 10 ) * ( + + 79 ) * 29 + - 83 * + 45 ELSE ( 21 ) + AVG ( + 97 ) END + + 64 * CASE + 32 - 55 WHEN - 90 * 90 THEN NULL WHEN 88 THEN 51 WHEN + 83 THEN NULL END + 47 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8656
SELECT + 80 + + + COUNT ( * ) / 29 * + ( + 49 ) / - 55 / - CAST ( NULL AS INTEGER ) + - - 14 + - 3 * CASE + + 10 WHEN + CAST ( 88 AS INTEGER ) / + + 96 THEN + MAX ( - 10 ) * ( + + 79 ) * 29 + - 83 * + 45 ELSE ( 21 ) + AVG ( + 97 ) END + + 64 * CASE + 32 - 55 WHEN - 90 * 90 THEN NULL WHEN 88 THEN 51 WHEN + 83 THEN NULL END + 47 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT ALL MIN( - - 53 ) - + 18
----
35

skipif mysql # not compatible
query I rowsort label-8657
SELECT ALL MIN ( - - 53 ) - + 18
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT - SUM( DISTINCT 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-8658
SELECT - SUM ( DISTINCT 68 ) AS col0
----
-68

query I rowsort
SELECT + 56 + - ( - 43 ) AS col2
----
99

query I rowsort
SELECT ALL 62 * - 53
----
-3286

query I rowsort
SELECT + 27 * - 22
----
-594

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT DISTINCT + 10 * + + COUNT( ALL 10 ) * - 47 * - + 13 AS col1
----
6110

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT + 10 * + + COUNT ( ALL 10 ) * - 47 * - + 13 AS col1
----
6110

query II rowsort
SELECT ALL 61 AS col0, - 69 col0
----
61
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT + 20 + 98 + 79 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT + 20 + 98 + 79 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8665
SELECT ALL + 92 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL + 92 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 14 + + + 25 * - 87 AS col1, + 76 AS col2
----
-2161
76

query I rowsort
SELECT + 73 * + 46 * ( + 65 )
----
218270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8668
SELECT ALL + CASE + 29 WHEN + CAST( + COUNT( * ) AS SIGNED ) + - + 11 THEN - CASE + COUNT( - 85 ) WHEN ( COUNT( * ) ) * + 90 / + 69 THEN - 63 * - + 44 + - + ( - COALESCE ( + + 9, + 99 ) ) END * + ( COUNT( * ) * + 98 ) + 71 ELSE 72 END
----
72

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL + CASE + 29 WHEN + CAST ( + COUNT ( * ) AS INTEGER ) + - + 11 THEN - CASE + COUNT ( - 85 ) WHEN ( COUNT ( * ) ) * + 90 / + 69 THEN - 63 * - + 44 + - + ( - COALESCE ( + + 9, + 99 ) ) END * + ( COUNT ( * ) * + 98 ) + 71 ELSE 72 END
----
72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8669
SELECT + 33 DIV COALESCE ( + 10, + - 99, + 45 ) + - - CAST( - 77 AS SIGNED ) col0
----
-74

skipif mysql # not compatible
query I rowsort label-8669
SELECT + 33 / COALESCE ( + 10, + - 99, + 45 ) + - - CAST ( - 77 AS INTEGER ) col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT NULLIF ( - COUNT( * ), + COUNT( * ) + + 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-8670
SELECT NULLIF ( - COUNT ( * ), + COUNT ( * ) + + 57 )
----
-1

query I rowsort
SELECT - 10 + - 50
----
-60

query I rowsort
SELECT ALL 79 * + 90
----
7110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8673
SELECT ALL + CAST( NULL AS SIGNED ) * 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL + CAST ( NULL AS INTEGER ) * 90 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 14 * + CASE + 60 WHEN + 29 + - 14 + + 71 + - 12 * + 14 THEN NULL ELSE 49 END, + 43 AS col1
----
-686
43

query I rowsort
SELECT ALL + - 62 + - 76 AS col0
----
-138

onlyif mysql # aggregate syntax: 
query II rowsort label-8676
SELECT - CASE + + 40 WHEN + - COUNT( * ) THEN - - 8 * + - 53 - + AVG ( ALL 9 ) END * + 5, 14 AS col2
----
NULL
14

skipif mysql # not compatible
query II rowsort label-8676
SELECT - CASE + + 40 WHEN + - COUNT ( * ) THEN - - 8 * + - 53 - + AVG ( ALL 9 ) END * + 5, 14 AS col2
----
NULL
14

query I rowsort
SELECT ALL + 81 + + 66 + + + 90 + - - 97
----
334

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT DISTINCT - - MAX( DISTINCT - + 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT - - MAX ( DISTINCT - + 35 ) AS col0
----
-35

query I rowsort
SELECT DISTINCT + 59 + - + 25
----
34

query I rowsort
SELECT ALL + 1 + + 73 AS col2
----
74

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8681
SELECT - CAST( NULL AS DECIMAL ) AS col0, 43 AS col0
----
NULL
43

skipif mysql # not compatible
query II rowsort label-8681
SELECT - CAST ( NULL AS REAL ) AS col0, 43 AS col0
----
NULL
43

query II rowsort
SELECT ALL - + 68 AS col0, - 61 AS col1
----
-68
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT + 61 * + 75 * + 28 - - MAX( + 24 )
----
128124

skipif mysql # not compatible
query I rowsort label-8683
SELECT + 61 * + 75 * + 28 - - MAX ( + 24 )
----
128124

query I rowsort
SELECT DISTINCT - ( - 56 ) + - 94 - + 55
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT ALL + + MAX( + - 74 ) + + 30 - + 83 * + 15 * 68 - - - 81
----
-84785

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL + + MAX ( + - 74 ) + + 30 - + 83 * + 15 * 68 - - - 81
----
-84785

query I rowsort
SELECT ( ( + 91 ) )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8687
SELECT 1 DIV - COALESCE ( COALESCE ( - 59, + COUNT( * ) * + 1 * + - ( + 1 ), + 17 + + - 3 - - COUNT( * ), - + 36 ), COALESCE ( + 17, + + 74 ) ) + 82
----
82

skipif mysql # not compatible
query I rowsort label-8687
SELECT 1 / - COALESCE ( COALESCE ( - 59, + COUNT ( * ) * + 1 * + - ( + 1 ), + 17 + + - 3 - - COUNT ( * ), - + 36 ), COALESCE ( + 17, + + 74 ) ) + 82
----
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8688
SELECT ALL - 66 + CASE + + 86 WHEN + COALESCE ( + COUNT( * ), - 53 ) THEN NULL WHEN NULLIF ( - + CAST( NULL AS DECIMAL ), 10 * + NULLIF ( 95, SUM( ALL 41 ) + + + 37 * + 79 / + + AVG ( ALL - 5 ) ) / + NULLIF ( - 83, 26 ) + + 16 * 46 ) + 15 THEN + 10 / 71 + 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL - 66 + CASE + + 86 WHEN + COALESCE ( + COUNT ( * ), - 53 ) THEN NULL WHEN NULLIF ( - + CAST ( NULL AS REAL ), 10 * + NULLIF ( 95, SUM ( ALL 41 ) + + + 37 * + 79 / + + AVG ( ALL - 5 ) ) / + NULLIF ( - 83, 26 ) + + 16 * 46 ) + 15 THEN + 10 / 71 + 56 END
----
NULL

query I rowsort
SELECT 88 * + - 73 * - - 65 + + 20 AS col2
----
-417540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8690
SELECT ALL - 49 * - ( - 41 ) * + CAST( NULL AS SIGNED ) * 94 + + - 0 + + + 5 * + ( - MIN( ALL + 49 ) ) + - 97 / + 95 * + 60 / + CASE - - 92 WHEN 44 THEN + 69 * - 67 / - 56 END + 9 * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL - 49 * - ( - 41 ) * + CAST ( NULL AS INTEGER ) * 94 + + - 0 + + + 5 * + ( - MIN ( ALL + 49 ) ) + - 97 / + 95 * + 60 / + CASE - - 92 WHEN 44 THEN + 69 * - 67 / - 56 END + 9 * - 90
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8691
SELECT COUNT( * ) DIV - 13 col1
----
0

skipif mysql # not compatible
query I rowsort label-8691
SELECT COUNT ( * ) / - 13 col1
----
0

query I rowsort
SELECT ALL + 95 * + - 49 * 13 * + 7
----
-423605

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT DISTINCT - COUNT( * ) * - 96 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT - COUNT ( * ) * - 96 AS col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8694
SELECT 73 - - COALESCE ( - - 69, COUNT( ALL - - 94 ), ( + 9 ) ) AS col0, 41 - + 51 + + 74 + + 77 * - COUNT( * ) * - 72 col1
----
142
5608

skipif mysql # not compatible
query II rowsort label-8694
SELECT 73 - - COALESCE ( - - 69, COUNT ( ALL - - 94 ), ( + 9 ) ) AS col0, 41 - + 51 + + 74 + + 77 * - COUNT ( * ) * - 72 col1
----
142
5608

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT ALL - 23 + + - COUNT( * ) + + - 19
----
-43

skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL - 23 + + - COUNT ( * ) + + - 19
----
-43

query I rowsort
SELECT ALL + 95 * - 32
----
-3040

query I rowsort
SELECT 95 + NULLIF ( - 67, - 74 ) + - ( - + 14 ) AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8698
SELECT 98 - + CAST( NULL AS SIGNED ) * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8698
SELECT 98 - + CAST ( NULL AS INTEGER ) * 21
----
NULL

query I rowsort
SELECT DISTINCT + 78 * + + 35 AS col1
----
2730

query II rowsort
SELECT 97 + 4, + 75 AS col1
----
101
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT ALL 32 * + COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL 32 * + COUNT ( * ) AS col0
----
32

query I rowsort
SELECT DISTINCT 67 * 29
----
1943

query I rowsort
SELECT 23 * + 18
----
414

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8704
SELECT ALL - COALESCE ( - - NULLIF ( + - COUNT( * ), 13 ), + 16 * + - 18 - - 23 + + 87 DIV 12, - 87 ) DIV - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL - COALESCE ( - - NULLIF ( + - COUNT ( * ), 13 ), + 16 * + - 18 - - 23 + + 87 / 12, - 87 ) / - + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT 85 + 2 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT DISTINCT ( + 4 ) * - COUNT( * ) + - 20 * 77
----
-1544

skipif mysql # not compatible
query I rowsort label-8706
SELECT DISTINCT ( + 4 ) * - COUNT ( * ) + - 20 * 77
----
-1544

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8707
SELECT - 24 DIV - ( - NULLIF ( COALESCE ( + 84, - 63 + - 73 ), + + COUNT( * ) ) ) * COUNT( * ) AS col1, + 32
----
0
32

skipif mysql # not compatible
query II rowsort label-8707
SELECT - 24 / - ( - NULLIF ( COALESCE ( + 84, - 63 + - 73 ), + + COUNT ( * ) ) ) * COUNT ( * ) AS col1, + 32
----
0
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8708
SELECT 66 DIV - MAX( ALL + 39 ) + - + 51 + - - 73 + + 56 * + 48 - + 97 AS col2
----
2612

skipif mysql # not compatible
query I rowsort label-8708
SELECT 66 / - MAX ( ALL + 39 ) + - + 51 + - - 73 + + 56 * + 48 - + 97 AS col2
----
2612

query I rowsort
SELECT + 47 + 80 + + 55 AS col2
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT ALL + + 93 * + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL + + 93 * + COUNT ( * )
----
93

query I rowsort
SELECT ALL - 21 + + + 2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT COUNT( * ) * 20 * - + 18 * + - 36 + 42
----
13002

skipif mysql # not compatible
query I rowsort label-8712
SELECT COUNT ( * ) * 20 * - + 18 * + - 36 + 42
----
13002

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8713
SELECT ALL - 5 + - CAST( NULL AS SIGNED ) AS col0, + 3 AS col2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8713
SELECT ALL - 5 + - CAST ( NULL AS INTEGER ) AS col0, + 3 AS col2
----
NULL
3

query I rowsort
SELECT ALL + 30 + 73
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8715
SELECT ALL - CASE + CASE 59 WHEN - ( + COUNT( * ) ) THEN + - 9 WHEN - + 79 - - + 2 THEN NULL END WHEN - ( + + 76 ) * - 58 * - + NULLIF ( 73, - - 90 ) DIV - 24 THEN + 15 * + 47 - - 7 * - 37 + + 95 ELSE COUNT( * ) END + 53 DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL - CASE + CASE 59 WHEN - ( + COUNT ( * ) ) THEN + - 9 WHEN - + 79 - - + 2 THEN NULL END WHEN - ( + + 76 ) * - 58 * - + NULLIF ( 73, - - 90 ) / - 24 THEN + 15 * + 47 - - 7 * - 37 + + 95 ELSE COUNT ( * ) END + 53 / 42
----
0

query I rowsort
SELECT - CASE - 44 WHEN + 6 THEN + 48 WHEN + - 43 THEN NULL WHEN + 26 + + - 30 THEN NULL ELSE - 88 END - - - 77 + 53 + - + 48 * - 60 + - 96 * + 64
----
-3200

query I rowsort
SELECT 23 + 7 AS col2
----
30

query I rowsort
SELECT ALL 80 + - 8
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8719
SELECT + - 19 * + SUM( DISTINCT 67 ) * 51 + - 34 - + 23 + - 55 - - ( - CAST( NULL AS SIGNED ) ) + + MAX( - - 81 ) + - + 41 / 69 + 46 / - - 19 * 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8719
SELECT + - 19 * + SUM ( DISTINCT 67 ) * 51 + - 34 - + 23 + - 55 - - ( - CAST ( NULL AS INTEGER ) ) + + MAX ( - - 81 ) + - + 41 / 69 + 46 / - - 19 * 51 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8720
SELECT + + 5 * - CAST( + + 83 AS SIGNED ) + CASE - NULLIF ( + + 73, 39 * - + 7 ) WHEN - + 50 * 31 + + - 78 THEN NULL WHEN COUNT( * ) + + - 29 THEN NULL WHEN - + AVG ( - 95 ) * 83 - AVG ( ALL + 8 ) * - 92 THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT + + 5 * - CAST ( + + 83 AS INTEGER ) + CASE - NULLIF ( + + 73, 39 * - + 7 ) WHEN - + 50 * 31 + + - 78 THEN NULL WHEN COUNT ( * ) + + - 29 THEN NULL WHEN - + AVG ( - 95 ) * 83 - AVG ( ALL + 8 ) * - 92 THEN + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8721
SELECT 3 + COALESCE ( 45, - - 12 * - ( + CASE + + 23 WHEN + 73 THEN - 62 END ) ) AS col0, + COUNT( * )
----
48
1

skipif mysql # not compatible
query II rowsort label-8721
SELECT 3 + COALESCE ( 45, - - 12 * - ( + CASE + + 23 WHEN + 73 THEN - 62 END ) ) AS col0, + COUNT ( * )
----
48
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8722
SELECT ALL - 9 + 95 + - 32 + + 9 DIV - 97
----
54

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL - 9 + 95 + - 32 + + 9 / - 97
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT + MIN( - + 75 ) + - 15 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-8723
SELECT + MIN ( - + 75 ) + - 15 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-8724
SELECT ALL + NULLIF ( + 98, + 60 ) - + NULLIF ( - SUM( DISTINCT - - 61 ), + - 60 * - 29 + + - 8 ) AS col2, 51
----
159
51

skipif mysql # not compatible
query II rowsort label-8724
SELECT ALL + NULLIF ( + 98, + 60 ) - + NULLIF ( - SUM ( DISTINCT - - 61 ), + - 60 * - 29 + + - 8 ) AS col2, 51
----
159
51

query I rowsort
SELECT 88 * - 89
----
-7832

onlyif mysql # aggregate syntax: 
query II rowsort label-8726
SELECT ALL 28, ( - ( - - 66 ) ) * + ( 10 ) + 31 + + 96 + - 12 + 91 * + - 7 * + - 19 * - NULLIF ( + 56, - - 49 * - 60 ) * + MIN( + 28 ) + + CASE 27 WHEN - 79 + 99 THEN - 88 ELSE 59 + 92 * SUM( + 11 ) END * 34 AS col0
----
28
-18941635

skipif mysql # not compatible
query II rowsort label-8726
SELECT ALL 28, ( - ( - - 66 ) ) * + ( 10 ) + 31 + + 96 + - 12 + 91 * + - 7 * + - 19 * - NULLIF ( + 56, - - 49 * - 60 ) * + MIN ( + 28 ) + + CASE 27 WHEN - 79 + 99 THEN - 88 ELSE 59 + 92 * SUM ( + 11 ) END * 34 AS col0
----
28
-18941635

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT 59 + ( + - MIN( DISTINCT 89 ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-8727
SELECT 59 + ( + - MIN ( DISTINCT 89 ) ) AS col0
----
-30

query I rowsort
SELECT DISTINCT 10 - - 36 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT ALL 45 - + - COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL 45 - + - COUNT ( * ) AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8730
SELECT MIN( 30 ) * + CAST( NULL AS SIGNED ) AS col1, 22 DIV NULLIF ( - 38, 18 ) * - COALESCE ( 50, - + 87, + + 53 ) + - + COALESCE ( 33, + ( + + 62 ) ) AS col1
----
NULL
-33

skipif mysql # not compatible
query II rowsort label-8730
SELECT MIN ( 30 ) * + CAST ( NULL AS INTEGER ) AS col1, 22 / NULLIF ( - 38, 18 ) * - COALESCE ( 50, - + 87, + + 53 ) + - + COALESCE ( 33, + ( + + 62 ) ) AS col1
----
NULL
-33

query I rowsort
SELECT 14 * + - 43 AS col1
----
-602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8732
SELECT CAST( - ( + 95 ) AS SIGNED ) * + 97
----
-9215

skipif mysql # not compatible
query I rowsort label-8732
SELECT CAST ( - ( + 95 ) AS INTEGER ) * + 97
----
-9215

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8733
SELECT DISTINCT 92 DIV ( + 88 ) col2, 70 + COUNT( * )
----
1
71

skipif mysql # not compatible
query II rowsort label-8733
SELECT DISTINCT 92 / ( + 88 ) col2, 70 + COUNT ( * )
----
1
71

query I rowsort
SELECT DISTINCT - ( - 76 ) * + 88 AS col1
----
6688

onlyif mysql # DIV for integer division: 
query I rowsort label-8735
SELECT ALL 9 DIV 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL 9 / 61 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8736
SELECT 4 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8736
SELECT 4 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 92 * 20
----
1840

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8738
SELECT ALL - CAST( NULL AS DECIMAL ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL - CAST ( NULL AS REAL ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8739
SELECT 13 * - COALESCE ( - COALESCE ( - COUNT( DISTINCT 62 ), - + 71 * 38 - - 65 + - 41 + - NULLIF ( - 60, + 45 ), - 74 ), - 15 DIV ( + + 87 ) * + + 69 * - COUNT( * ), COALESCE ( - - NULLIF ( 7, + 32 * COUNT( * ) ), COUNT( * ) + - 77 * 81 ) * 56 )
----
-13

skipif mysql # not compatible
query I rowsort label-8739
SELECT 13 * - COALESCE ( - COALESCE ( - COUNT ( DISTINCT 62 ), - + 71 * 38 - - 65 + - 41 + - NULLIF ( - 60, + 45 ), - 74 ), - 15 / ( + + 87 ) * + + 69 * - COUNT ( * ), COALESCE ( - - NULLIF ( 7, + 32 * COUNT ( * ) ), COUNT ( * ) + - 77 * 81 ) * 56 )
----
-13

query I rowsort
SELECT 20 + 91 AS col1
----
111

query I rowsort
SELECT DISTINCT - 47 * - + NULLIF ( - 39, - 52 ) AS col2
----
-1833

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT 3 * - - COUNT( * ) * - + 61
----
-183

skipif mysql # not compatible
query I rowsort label-8742
SELECT 3 * - - COUNT ( * ) * - + 61
----
-183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8743
SELECT 39 + + 52 + + + 19 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT 39 + + 52 + + + 19 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8744
SELECT 10 + - 54 DIV NULLIF ( + NULLIF ( + - 64, 60 + + 77 ), + 74 ) * + 18 - + COUNT( ALL + 28 ) AS col0, NULLIF ( + 60, + 38 ) col0
----
9
60

skipif mysql # not compatible
query II rowsort label-8744
SELECT 10 + - 54 / NULLIF ( + NULLIF ( + - 64, 60 + + 77 ), + 74 ) * + 18 - + COUNT ( ALL + 28 ) AS col0, NULLIF ( + 60, + 38 ) col0
----
9
60

query I rowsort
SELECT - + 95 + + - 7 * + 90 AS col1
----
-725

query I rowsort
SELECT ALL - 25 + 88 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT - - 20 + - - MIN( DISTINCT + + 56 ) * - 90
----
-5020

skipif mysql # not compatible
query I rowsort label-8747
SELECT - - 20 + - - MIN ( DISTINCT + + 56 ) * - 90
----
-5020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8748
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8749
SELECT ALL MIN( DISTINCT - 96 ) * - 69 + + ( 33 ), + 65 * - 18 AS col2
----
6657
-1170

skipif mysql # not compatible
query II rowsort label-8749
SELECT ALL MIN ( DISTINCT - 96 ) * - 69 + + ( 33 ), + 65 * - 18 AS col2
----
6657
-1170

onlyif mysql # aggregate syntax: 
query II rowsort label-8750
SELECT + COUNT( * ) AS col1, + 84 + - 46 col0
----
1
38

skipif mysql # not compatible
query II rowsort label-8750
SELECT + COUNT ( * ) AS col1, + 84 + - 46 col0
----
1
38

query I rowsort
SELECT + + 15 col1
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8752
SELECT ALL + 59, 19 * - + 74 * COUNT( * ) AS col2
----
59
-1406

skipif mysql # not compatible
query II rowsort label-8752
SELECT ALL + 59, 19 * - + 74 * COUNT ( * ) AS col2
----
59
-1406

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8753
SELECT + - 2, COALESCE ( + 53, - - COUNT( * ), + + AVG ( DISTINCT + + NULLIF ( - 73, 42 ) ) ) - - 7 + + + 99 * - 14 * COUNT( * ) - - NULLIF ( - 18, - - 16 * COUNT( DISTINCT + - 89 ) * + 92 ) + + + MAX( DISTINCT + 72 ) + - 70 * - CAST( NULL AS DECIMAL ) AS col0
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-8753
SELECT + - 2, COALESCE ( + 53, - - COUNT ( * ), + + AVG ( DISTINCT + + NULLIF ( - 73, 42 ) ) ) - - 7 + + + 99 * - 14 * COUNT ( * ) - - NULLIF ( - 18, - - 16 * COUNT ( DISTINCT + - 89 ) * + 92 ) + + + MAX ( DISTINCT + 72 ) + - 70 * - CAST ( NULL AS REAL ) AS col0
----
-2
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8754
SELECT + 86 / + 22 + + COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8754
SELECT + 86 / + 22 + + COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( 4 ) * 14 + - 71 col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT - + 93 * + - 39 + SUM( DISTINCT + 37 ) * + COUNT( * ) * + 13 col2
----
4108

skipif mysql # not compatible
query I rowsort label-8756
SELECT - + 93 * + - 39 + SUM ( DISTINCT + 37 ) * + COUNT ( * ) * + 13 col2
----
4108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8757
SELECT - NULLIF ( - - 60, 81 + + 78 + ( + 23 ) + - NULLIF ( ( + NULLIF ( 4, - 98 + - + 41 ) ), - + CASE - COUNT( * ) WHEN + 16 THEN - + CASE - COUNT( * ) WHEN + - 5 * 42 + - + COUNT( * ) - - 49 + 64 THEN + 81 END WHEN 98 THEN 98 END + COUNT( * ) ) * + CAST( NULL AS SIGNED ) ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-8757
SELECT - NULLIF ( - - 60, 81 + + 78 + ( + 23 ) + - NULLIF ( ( + NULLIF ( 4, - 98 + - + 41 ) ), - + CASE - COUNT ( * ) WHEN + 16 THEN - + CASE - COUNT ( * ) WHEN + - 5 * 42 + - + COUNT ( * ) - - 49 + 64 THEN + 81 END WHEN 98 THEN 98 END + COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) ) AS col2
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8758
SELECT ALL + COALESCE ( - 32, - 12 + - - CAST( NULL AS SIGNED ) * + 56 + + 68 )
----
-32

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL + COALESCE ( - 32, - 12 + - - CAST ( NULL AS INTEGER ) * + 56 + + 68 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8759
SELECT DISTINCT - 80 * CAST( NULL AS SIGNED ) + - 26 + + 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8759
SELECT DISTINCT - 80 * CAST ( NULL AS INTEGER ) + - 26 + + 97 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8760
SELECT DISTINCT - 16 DIV + 23 + - 61 * 3 * + ( - 85 ) * - - 67 - + ( 69 ) DIV 24 + - + 53 + - + 27
----
1042103

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT - 16 / + 23 + - 61 * 3 * + ( - 85 ) * - - 67 - + ( 69 ) / 24 + - + 53 + - + 27
----
1042103

query I rowsort
SELECT ALL 90 * - 16 * - 12 - 40
----
17240

query I rowsort
SELECT DISTINCT + ( - + ( - + 23 ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT SUM( DISTINCT + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-8763
SELECT SUM ( DISTINCT + 59 )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8764
SELECT + 64 * 13, - NULLIF ( + 72, - - 62 ) / + + 57 * + CAST( NULL AS SIGNED ) + 6 - + 67 + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2
----
832
NULL

skipif mysql # not compatible
query II rowsort label-8764
SELECT + 64 * 13, - NULLIF ( + 72, - - 62 ) / + + 57 * + CAST ( NULL AS INTEGER ) + 6 - + 67 + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2
----
832
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8765
SELECT + 81 + - MIN( ALL + + 90 ) - + + 58 DIV - - 28 col0
----
-11

skipif mysql # not compatible
query I rowsort label-8765
SELECT + 81 + - MIN ( ALL + + 90 ) - + + 58 / - - 28 col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT DISTINCT 4 * - ( - 90 ) * + - COUNT( * ) * NULLIF ( - 76, - 51 * 67 ) + - + ( - 67 )
----
27427

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT 4 * - ( - 90 ) * + - COUNT ( * ) * NULLIF ( - 76, - 51 * 67 ) + - + ( - 67 )
----
27427

query II rowsort
SELECT ALL 39 * 71 col1, - 10 AS col2
----
2769
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT MAX( ALL + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-8768
SELECT MAX ( ALL + 98 )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8769
SELECT DISTINCT - 60 DIV + 19 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT - 60 / + 19 AS col0
----
-3

query I rowsort
SELECT DISTINCT 57 * 39 AS col1
----
2223

query I rowsort
SELECT DISTINCT 68 * + - 9 AS col2
----
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT DISTINCT SUM( 19 )
----
19

skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT SUM ( 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT DISTINCT COUNT( DISTINCT + + 95 )
----
1

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT COUNT ( DISTINCT + + 95 )
----
1

query I rowsort
SELECT + 50 - NULLIF ( + - 70, + 94 ) AS col0
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8775
SELECT ALL 58 AS col1, - COALESCE ( + COUNT( * ), - + ( + + 79 ) DIV ( + CAST( NULL AS SIGNED ) ), + 11 - + 0 + + 80 * COUNT( * ) DIV COALESCE ( - - ( COALESCE ( + - 40, + 35 DIV - - 48 + 71 * - 59 + + COUNT( * ) + + 72 DIV MAX( - 58 - - 88 ) ) ), - ( 78 ) - 33 ) DIV 46 )
----
58
-1

skipif mysql # not compatible
query II rowsort label-8775
SELECT ALL 58 AS col1, - COALESCE ( + COUNT ( * ), - + ( + + 79 ) / ( + CAST ( NULL AS INTEGER ) ), + 11 - + 0 + + 80 * COUNT ( * ) / COALESCE ( - - ( COALESCE ( + - 40, + 35 / - - 48 + 71 * - 59 + + COUNT ( * ) + + 72 / MAX ( - 58 - - 88 ) ) ), - ( 78 ) - 33 ) / 46 )
----
58
-1

query I rowsort
SELECT - 67 * 32 AS col2
----
-2144

query I rowsort
SELECT ALL + 70 + 14
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8778
SELECT + COUNT( * ) DIV - ( - COUNT( ALL 33 ) ) AS col0, 52
----
1
52

skipif mysql # not compatible
query II rowsort label-8778
SELECT + COUNT ( * ) / - ( - COUNT ( ALL 33 ) ) AS col0, 52
----
1
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8779
SELECT ALL CAST( - - 62 AS SIGNED ) + - 2 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL CAST ( - - 62 AS INTEGER ) + - 2 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT DISTINCT + 38 * COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-8780
SELECT DISTINCT + 38 * COUNT ( * ) AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8781
SELECT DISTINCT - 27 / + - COUNT( * ) + - 2 / - + CASE - - 43 WHEN + + 96 + - + 10 THEN NULL WHEN CASE 15 WHEN CAST( NULL AS SIGNED ) THEN - CAST( NULL AS SIGNED ) WHEN - 98 THEN 51 * 68 + + 8 * COUNT( * ) END * 73 / - COUNT( * ) / + 93 + - + 46 THEN NULL WHEN 90 * - 97 + - 62 THEN NULL ELSE - CASE 98 WHEN CAST( NULL AS SIGNED ) / + 67 THEN - 36 ELSE NULL END * + 2 - + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8781
SELECT DISTINCT - 27 / + - COUNT ( * ) + - 2 / - + CASE - - 43 WHEN + + 96 + - + 10 THEN NULL WHEN CASE 15 WHEN CAST ( NULL AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) WHEN - 98 THEN 51 * 68 + + 8 * COUNT ( * ) END * 73 / - COUNT ( * ) / + 93 + - + 46 THEN NULL WHEN 90 * - 97 + - 62 THEN NULL ELSE - CASE 98 WHEN CAST ( NULL AS INTEGER ) / + 67 THEN - 36 ELSE NULL END * + 2 - + 60 END
----
NULL

query I rowsort
SELECT ALL + + 55 * - + 54 + - - 6
----
-2964

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8783
SELECT ALL CAST( NULL AS SIGNED ) + + 59, 8 / + + CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8783
SELECT ALL CAST ( NULL AS INTEGER ) + + 59, 8 / + + CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

query I rowsort
SELECT DISTINCT 16 + - NULLIF ( - 51, + 31 ) + + + 29 AS col1
----
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8785
SELECT - + 8 * + AVG ( + + CAST( NULL AS DECIMAL ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8785
SELECT - + 8 * + AVG ( + + CAST ( NULL AS REAL ) ) col2
----
NULL

query I rowsort
SELECT ALL - + 26 + - + NULLIF ( + ( 51 ), + 1 + + - 51 * + ( + 81 ) ) * + 47 + + 10
----
-2413

query I rowsort
SELECT + COALESCE ( - NULLIF ( + 90, COALESCE ( - 5, - 79, - 60 + - 22 * - 92 - 17 / + 15 ) ), COALESCE ( 17, + 9 ) + 18 * - - 42 ) AS col2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8788
SELECT 71 AS col1, CAST( - CASE + ( + 17 ) WHEN + - 73 THEN 17 * - 21 WHEN - ( - + 49 ) THEN NULL END AS SIGNED ) AS col0
----
71
NULL

skipif mysql # not compatible
query II rowsort label-8788
SELECT 71 AS col1, CAST ( - CASE + ( + 17 ) WHEN + - 73 THEN 17 * - 21 WHEN - ( - + 49 ) THEN NULL END AS INTEGER ) AS col0
----
71
NULL

query I rowsort
SELECT ALL 1 * + 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT - 45 + - - MIN( - 89 ) * + + 46 + + 81 + + ( - 74 ) + - + SUM( ALL + 87 ) / CASE - NULLIF ( - 97, + - 58 * + COUNT( * ) * - - 24 * 45 - - 91 ) WHEN 80 THEN 72 WHEN - + COALESCE ( COUNT( DISTINCT - 71 ), 98 ) THEN NULL END * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-8790
SELECT - 45 + - - MIN ( - 89 ) * + + 46 + + 81 + + ( - 74 ) + - + SUM ( ALL + 87 ) / CASE - NULLIF ( - 97, + - 58 * + COUNT ( * ) * - - 24 * 45 - - 91 ) WHEN 80 THEN 72 WHEN - + COALESCE ( COUNT ( DISTINCT - 71 ), 98 ) THEN NULL END * 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT DISTINCT + NULLIF ( + 27, + - ( + + 98 ) * - - COUNT( * ) ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-8791
SELECT DISTINCT + NULLIF ( + 27, + - ( + + 98 ) * - - COUNT ( * ) ) AS col0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8792
SELECT - - 81 * 67 DIV + 35
----
155

skipif mysql # not compatible
query I rowsort label-8792
SELECT - - 81 * 67 / + 35
----
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8793
SELECT DISTINCT - 82 DIV + - 84 - - - COUNT( * ) * + 86 * 46
----
-3956

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT - 82 / + - 84 - - - COUNT ( * ) * + 86 * 46
----
-3956

query I rowsort
SELECT ALL + 36 * - 88 AS col2
----
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT - CASE - - 76 WHEN + - 58 * - - COUNT( * ) THEN - 38 WHEN - 37 * + 19 THEN NULL END * + + CASE - 78 WHEN + - 98 + - 38 THEN + 35 END + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-8795
SELECT - CASE - - 76 WHEN + - 58 * - - COUNT ( * ) THEN - 38 WHEN - 37 * + 19 THEN NULL END * + + CASE - 78 WHEN + - 98 + - 38 THEN + 35 END + 16
----
NULL

query I rowsort
SELECT - 81 * - 96
----
7776

query I rowsort
SELECT ALL + 37 * - 19 AS col2
----
-703

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8798
SELECT - COUNT( * ) + - + COUNT( DISTINCT - - 47 ) - + NULLIF ( + 31, - 75 ) DIV + 56
----
-2

skipif mysql # not compatible
query I rowsort label-8798
SELECT - COUNT ( * ) + - + COUNT ( DISTINCT - - 47 ) - + NULLIF ( + 31, - 75 ) / + 56
----
-2

query I rowsort
SELECT DISTINCT + 19 * - - 2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8800
SELECT ALL - 65 * - COALESCE ( - CAST( + 45 AS SIGNED ), - + COUNT( - + 33 ) * CAST( NULL AS SIGNED ) ) * + - ( + - 36 )
----
-105300

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL - 65 * - COALESCE ( - CAST ( + 45 AS INTEGER ), - + COUNT ( - + 33 ) * CAST ( NULL AS INTEGER ) ) * + - ( + - 36 )
----
-105300

onlyif mysql # DIV for integer division: 
query I rowsort label-8801
SELECT ALL ( - 63 ) DIV - 53 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL ( - 63 ) / - 53 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8802
SELECT - 98 DIV ( + 36 )
----
-2

skipif mysql # not compatible
query I rowsort label-8802
SELECT - 98 / ( + 36 )
----
-2

query I rowsort
SELECT NULLIF ( + 41, - + 79 )
----
41

query I rowsort
SELECT + NULLIF ( - 47, + 94 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT + 92 * - - COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-8805
SELECT + 92 * - - COUNT ( * ) AS col0
----
92

query I rowsort
SELECT DISTINCT + 77 * 59 + + 77
----
4620

query I rowsort
SELECT NULLIF ( + + 56, + 42 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-8808
SELECT COUNT( * ) + - + 62 AS col2, 91
----
-61
91

skipif mysql # not compatible
query II rowsort label-8808
SELECT COUNT ( * ) + - + 62 AS col2, 91
----
-61
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8809
SELECT COUNT( * ) + + + COUNT( * ) + + + 70 * + - 38 * + + 35 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT COUNT ( * ) + + + COUNT ( * ) + + + 70 * + - 38 * + + 35 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT DISTINCT + COUNT( * ) + CASE + 19 WHEN + CASE + 68 WHEN - 51 THEN + 96 + + 23 * - 99 + 97 + - COUNT( * ) ELSE NULL END + - - COUNT( * ) - + - 66 THEN NULL WHEN - + 22 / - - 11 - 79 THEN + + 42 + 45 + + - COUNT( * ) ELSE + ( - 31 ) + 2 + 1 END
----
-27

skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT + COUNT ( * ) + CASE + 19 WHEN + CASE + 68 WHEN - 51 THEN + 96 + + 23 * - 99 + 97 + - COUNT ( * ) ELSE NULL END + - - COUNT ( * ) - + - 66 THEN NULL WHEN - + 22 / - - 11 - 79 THEN + + 42 + 45 + + - COUNT ( * ) ELSE + ( - 31 ) + 2 + 1 END
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT 29 + + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-8811
SELECT 29 + + COUNT ( * )
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-8812
SELECT COUNT( * ) * - 69, - COUNT( * ) AS col0
----
-69
-1

skipif mysql # not compatible
query II rowsort label-8812
SELECT COUNT ( * ) * - 69, - COUNT ( * ) AS col0
----
-69
-1

query II rowsort
SELECT ALL 2 * - 35 AS col2, + 42 AS col0
----
-70
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8814
SELECT NULLIF ( 9, + 31 / + CAST( - - COUNT( * ) AS SIGNED ) + + 18 ) + - 43 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-8814
SELECT NULLIF ( 9, + 31 / + CAST ( - - COUNT ( * ) AS INTEGER ) + + 18 ) + - 43 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT ALL - 98 + 98 + - - 6 + 6 + - CASE - COUNT( - + 98 ) WHEN - 74 THEN - 0 END + + - MAX( - 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8815
SELECT ALL - 98 + 98 + - - 6 + 6 + - CASE - COUNT ( - + 98 ) WHEN - 74 THEN - 0 END + + - MAX ( - 38 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT ALL - COUNT( + ( 26 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL - COUNT ( + ( 26 ) )
----
-1

query I rowsort
SELECT ALL + ( - - ( 64 ) ) + + 85
----
149

query I rowsort
SELECT + 36 + - 64 AS col2
----
-28

query I rowsort
SELECT ALL 19 + 30 - - 7 AS col1
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-8820
SELECT SUM( DISTINCT 67 ) AS col1, - 31 col2
----
67
-31

skipif mysql # not compatible
query II rowsort label-8820
SELECT SUM ( DISTINCT 67 ) AS col1, - 31 col2
----
67
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-8821
SELECT 32 * - 98 AS col0, COUNT( * ) AS col0
----
-3136
1

skipif mysql # not compatible
query II rowsort label-8821
SELECT 32 * - 98 AS col0, COUNT ( * ) AS col0
----
-3136
1

query II rowsort
SELECT - 76 + - 12 AS col1, 39 AS col1
----
-88
39

onlyif mysql # DIV for integer division: 
query I rowsort label-8823
SELECT ALL 46 DIV - 97 DIV 26 * - - 13 * + 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL 46 / - 97 / 26 * - - 13 * + 88 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8824
SELECT 63 DIV - 67 * - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8824
SELECT 63 / - 67 * - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ALL COALESCE ( + 82, - 80 )
----
82

query I rowsort
SELECT ALL + 32 * + 67 / - CASE 39 WHEN 8 THEN + 17 WHEN - 98 THEN + + 88 END * - 60 - 21
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8827
SELECT + ( + 77 ) DIV 69 * - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8827
SELECT + ( + 77 ) / 69 * - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT + NULLIF ( - - COUNT( * ), - 28 ) * - ( + - 61 ) + + 39 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-8828
SELECT + NULLIF ( - - COUNT ( * ), - 28 ) * - ( + - 61 ) + + 39 AS col0
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8829
SELECT - CAST( NULL AS SIGNED ) / - 0 * + + 50 * 32 + - 57 * CASE - MAX( 34 ) WHEN + 17 - - ( - 96 ) THEN - COALESCE ( + COUNT( * ), + - COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8829
SELECT - CAST ( NULL AS INTEGER ) / - 0 * + + 50 * 32 + - 57 * CASE - MAX ( 34 ) WHEN + 17 - - ( - 96 ) THEN - COALESCE ( + COUNT ( * ), + - COUNT ( * ) ) END
----
NULL

query I rowsort
SELECT 14 * + - 78
----
-1092

onlyif mysql # aggregate syntax: 
query II rowsort label-8831
SELECT DISTINCT - COUNT( * ) AS col2, 59 AS col2
----
-1
59

skipif mysql # not compatible
query II rowsort label-8831
SELECT DISTINCT - COUNT ( * ) AS col2, 59 AS col2
----
-1
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT ALL - ( + - MAX( - 30 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL - ( + - MAX ( - 30 ) )
----
-30

query I rowsort
SELECT 4 * - 7
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT DISTINCT + MIN( + 86 ) * + 11 * - 84
----
-79464

skipif mysql # not compatible
query I rowsort label-8834
SELECT DISTINCT + MIN ( + 86 ) * + 11 * - 84
----
-79464

query I rowsort
SELECT DISTINCT - 33 + - - 94 AS col0
----
61

query II rowsort
SELECT 26 AS col1, 66
----
26
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8837
SELECT ALL + NULLIF ( + 91, + 54 ) DIV + 14
----
6

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL + NULLIF ( + 91, + 54 ) / + 14
----
6

query I rowsort
SELECT DISTINCT + 88 * + 36 col1
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT ALL - MIN( - 54 ) + + + 52 + - 92 + - 37 * 36
----
-1318

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL - MIN ( - 54 ) + + + 52 + - 92 + - 37 * 36
----
-1318

query I rowsort
SELECT ALL + 16 + 18 AS col2
----
34

query I rowsort
SELECT 22 - + ( + 9 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT ALL - MAX( - + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL - MAX ( - + 8 )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8843
SELECT 42 AS col1, 11 + + COUNT( * ) AS col0
----
42
12

skipif mysql # not compatible
query II rowsort label-8843
SELECT 42 AS col1, 11 + + COUNT ( * ) AS col0
----
42
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8844
SELECT DISTINCT - COUNT( + ( - - 83 ) ) + + CASE - 43 WHEN + - COUNT( * ) THEN NULL WHEN + 7 + - 84 + - 43 * + - 55 THEN NULL ELSE - + 59 * COUNT( * ) * - COUNT( * ) - + + 99 END - 87 - - 44 * ( + ( 54 ) ) + 21 DIV - - 42 AS col2
----
2248

skipif mysql # not compatible
query I rowsort label-8844
SELECT DISTINCT - COUNT ( + ( - - 83 ) ) + + CASE - 43 WHEN + - COUNT ( * ) THEN NULL WHEN + 7 + - 84 + - 43 * + - 55 THEN NULL ELSE - + 59 * COUNT ( * ) * - COUNT ( * ) - + + 99 END - 87 - - 44 * ( + ( 54 ) ) + 21 / - - 42 AS col2
----
2248

onlyif mysql # aggregate syntax: 
query II rowsort label-8845
SELECT 77 + - ( COALESCE ( + COALESCE ( - 62, + MIN( ALL + + 87 ) + + 17 * - 26 ), + 19 ) ) + + - 85 * - COUNT( * ) * - 69 AS col0, - 51 + - 76 * - 12 AS col2
----
-5726
861

skipif mysql # not compatible
query II rowsort label-8845
SELECT 77 + - ( COALESCE ( + COALESCE ( - 62, + MIN ( ALL + + 87 ) + + 17 * - 26 ), + 19 ) ) + + - 85 * - COUNT ( * ) * - 69 AS col0, - 51 + - 76 * - 12 AS col2
----
-5726
861

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8846
SELECT + CAST( NULL AS SIGNED ) col1, + 49 * 39 - + 42 AS col2
----
NULL
1869

skipif mysql # not compatible
query II rowsort label-8846
SELECT + CAST ( NULL AS INTEGER ) col1, + 49 * 39 - + 42 AS col2
----
NULL
1869

onlyif mysql # aggregate syntax: 
query II rowsort label-8847
SELECT - - 98, 2 + - - CASE 24 WHEN 70 THEN NULL ELSE - SUM( - 14 ) * 34 + - 66 END + - - COUNT( * ) AS col0
----
98
413

skipif mysql # not compatible
query II rowsort label-8847
SELECT - - 98, 2 + - - CASE 24 WHEN 70 THEN NULL ELSE - SUM ( - 14 ) * 34 + - 66 END + - - COUNT ( * ) AS col0
----
98
413

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT COUNT( DISTINCT + 51 ) - - 84 + - NULLIF ( - + COUNT( DISTINCT 71 ), + 89 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-8848
SELECT COUNT ( DISTINCT + 51 ) - - 84 + - NULLIF ( - + COUNT ( DISTINCT 71 ), + 89 ) AS col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8849
SELECT 26 AS col0, + CAST( NULL AS SIGNED ) * MAX( 16 )
----
26
NULL

skipif mysql # not compatible
query II rowsort label-8849
SELECT 26 AS col0, + CAST ( NULL AS INTEGER ) * MAX ( 16 )
----
26
NULL

query I rowsort
SELECT 47 * 63
----
2961

query I rowsort
SELECT DISTINCT + 92 * CASE + 85 WHEN + 56 THEN NULL WHEN + 51 + 49 THEN NULL WHEN + 2 THEN 36 - - + 88 END
----
NULL

query I rowsort
SELECT 57 + + 68 * - + NULLIF ( + - 13, - - NULLIF ( - 49, + + 38 * 76 / - 79 ) )
----
941

query II rowsort
SELECT - + 0, - 35 * - - 27 AS col2
----
0
-945

onlyif mysql # DIV for integer division: 
query I rowsort label-8854
SELECT 3 + + 74 DIV - - 89 * - 71
----
3

skipif mysql # not compatible
query I rowsort label-8854
SELECT 3 + + 74 / - - 89 * - 71
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8855
SELECT + 37, 31 + + - 66 DIV 48 AS col1
----
37
30

skipif mysql # not compatible
query II rowsort label-8855
SELECT + 37, 31 + + - 66 / 48 AS col1
----
37
30

query I rowsort
SELECT 93 * - 48 - + - ( - 35 ) + + 21 AS col0
----
-4478

onlyif mysql # DIV for integer division: 
query I rowsort label-8857
SELECT 23 DIV + 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8857
SELECT 23 / + 75 AS col0
----
0

query I rowsort
SELECT ALL - - 72 * - 55 * - 86 + + 11 AS col1
----
340571

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT DISTINCT COUNT( * ) * 90 + 33 col0
----
123

skipif mysql # not compatible
query I rowsort label-8859
SELECT DISTINCT COUNT ( * ) * 90 + 33 col0
----
123

query I rowsort
SELECT ALL 16 * + 57 * + 42 AS col2
----
38304

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT - ( 0 ) * + 47 + + - ( 74 ) + COALESCE ( + 87, + 64 ) * - 60 * COALESCE ( 8, + COUNT( * ), ( - - COUNT( * ) ) ) * + COUNT( ALL - - 61 ) * - 31 - 5 + + 61 + + 89 - - COUNT( * )
----
1294632

skipif mysql # not compatible
query I rowsort label-8861
SELECT - ( 0 ) * + 47 + + - ( 74 ) + COALESCE ( + 87, + 64 ) * - 60 * COALESCE ( 8, + COUNT ( * ), ( - - COUNT ( * ) ) ) * + COUNT ( ALL - - 61 ) * - 31 - 5 + + 61 + + 89 - - COUNT ( * )
----
1294632

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL SUM( ALL - - 93 ) * + ( + - 18 ) + - - COUNT( - 25 )
----
-1673

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL SUM ( ALL - - 93 ) * + ( + - 18 ) + - - COUNT ( - 25 )
----
-1673

query I rowsort
SELECT 88 + 39 AS col1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT + COUNT( * ) * + COUNT( * ) + - ( - ( - COALESCE ( + + 41, + COUNT( * ) * - ( + 8 ) ) ) ) * - 21 AS col2
----
862

skipif mysql # not compatible
query I rowsort label-8864
SELECT + COUNT ( * ) * + COUNT ( * ) + - ( - ( - COALESCE ( + + 41, + COUNT ( * ) * - ( + 8 ) ) ) ) * - 21 AS col2
----
862

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT - MIN( - 23 ) + + 50
----
73

skipif mysql # not compatible
query I rowsort label-8865
SELECT - MIN ( - 23 ) + + 50
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-8866
SELECT COUNT( 26 ) AS col2, - NULLIF ( - ( - 34 ), + 44 )
----
1
-34

skipif mysql # not compatible
query II rowsort label-8866
SELECT COUNT ( 26 ) AS col2, - NULLIF ( - ( - 34 ), + 44 )
----
1
-34

query I rowsort
SELECT ALL - 56 * 69 + - 21 AS col0
----
-3885

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT ALL - COUNT( * ) * + - 67 + - 7 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL - COUNT ( * ) * + - 67 + - 7 AS col0
----
60

query I rowsort
SELECT + NULLIF ( - 65, 71 ) AS col1
----
-65

query I rowsort
SELECT DISTINCT + 2 - - + ( + + 46 ) + - - ( - 67 ) + 34 + 74 + + 86 AS col1
----
175

query I rowsort
SELECT 39 * 98 + - 41 col1
----
3781

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT SUM( - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-8872
SELECT SUM ( - 20 )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-8873
SELECT + 73 + COUNT( * ) + - 45 * 49, + 13 AS col1
----
-2131
13

skipif mysql # not compatible
query II rowsort label-8873
SELECT + 73 + COUNT ( * ) + - 45 * 49, + 13 AS col1
----
-2131
13

query I rowsort
SELECT - 22 + 78 + + 94 AS col1
----
150

query I rowsort
SELECT + 61 * 53
----
3233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8876
SELECT + CASE - - 70 WHEN - + 39 THEN NULL WHEN CAST( + 99 AS SIGNED ) + - 55 + - 18 THEN - - 36 + + - 75 WHEN 44 THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT + CASE - - 70 WHEN - + 39 THEN NULL WHEN CAST ( + 99 AS INTEGER ) + - 55 + - 18 THEN - - 36 + + - 75 WHEN 44 THEN + COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT ALL - - 19 * - 36 + - 47 * 13
----
-1295

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8878
SELECT ALL + 57 - + - 17 - + COALESCE ( - - 37, - 49 ) DIV + + NULLIF ( - 36, + COALESCE ( + 32, + + ( MIN( NULLIF ( + - 30, 55 ) ) ) + - SUM( DISTINCT 94 ), - 13 ) * 17 * - 36 * + NULLIF ( 76, - - 64 ) ) - + 92 + + - 19 - 39 * - 91 * 0 * - 15 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL + 57 - + - 17 - + COALESCE ( - - 37, - 49 ) / + + NULLIF ( - 36, + COALESCE ( + 32, + + ( MIN ( NULLIF ( + - 30, 55 ) ) ) + - SUM ( DISTINCT 94 ), - 13 ) * 17 * - 36 * + NULLIF ( 76, - - 64 ) ) - + 92 + + - 19 - 39 * - 91 * 0 * - 15 AS col1
----
-36

query I rowsort
SELECT - + 35 + + 69
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8880
SELECT - + 77 / + COUNT( * ) * + CAST( NULL AS SIGNED ) * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-8880
SELECT - + 77 / + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 99
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8881
SELECT - COALESCE ( + - 70, 40 DIV - + ( 13 ) * 9 * + 48 + + CASE 84 WHEN - + COUNT( * ) THEN + - SUM( + 36 ) DIV - - 28 - - 34 + 54 + + 76 END - - 77 + + 36, + + 46 * ( - 63 ) + - 6 ) + - 5
----
65

skipif mysql # not compatible
query I rowsort label-8881
SELECT - COALESCE ( + - 70, 40 / - + ( 13 ) * 9 * + 48 + + CASE 84 WHEN - + COUNT ( * ) THEN + - SUM ( + 36 ) / - - 28 - - 34 + 54 + + 76 END - - 77 + + 36, + + 46 * ( - 63 ) + - 6 ) + - 5
----
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8882
SELECT DISTINCT - CAST( + 76 AS SIGNED ) AS col0, - 36 DIV + - 75
----
-76
0

skipif mysql # not compatible
query II rowsort label-8882
SELECT DISTINCT - CAST ( + 76 AS INTEGER ) AS col0, - 36 / + - 75
----
-76
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT DISTINCT + ( + - COUNT( * ) ) * 7 col1
----
-7

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT + ( + - COUNT ( * ) ) * 7 col1
----
-7

query I rowsort
SELECT - 64 * - 64
----
4096

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT - COUNT( * ) + + COUNT( * ) * + - 46 * + 65 - 85 AS col0
----
-3076

skipif mysql # not compatible
query I rowsort label-8885
SELECT - COUNT ( * ) + + COUNT ( * ) * + - 46 * + 65 - 85 AS col0
----
-3076

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT - NULLIF ( - + NULLIF ( - - COUNT( - 71 ), COUNT( * ) ), - 2 ) * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT - NULLIF ( - + NULLIF ( - - COUNT ( - 71 ), COUNT ( * ) ), - 2 ) * - 59
----
NULL

query I rowsort
SELECT - + 19 + + 65
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT + - COUNT( * ) + - 72 col1
----
-73

skipif mysql # not compatible
query I rowsort label-8888
SELECT + - COUNT ( * ) + - 72 col1
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8889
SELECT ALL CASE - COUNT( + 96 ) WHEN ( + 56 ) THEN + + COUNT( * ) / + + 68 + COUNT( * ) * - CAST( 99 AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL CASE - COUNT ( + 96 ) WHEN ( + 56 ) THEN + + COUNT ( * ) / + + 68 + COUNT ( * ) * - CAST ( 99 AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT + MIN( + + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-8890
SELECT + MIN ( + + 96 )
----
96

query I rowsort
SELECT - + 75 * + 91
----
-6825

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT DISTINCT MIN( 78 ) * + 29 AS col0
----
2262

skipif mysql # not compatible
query I rowsort label-8892
SELECT DISTINCT MIN ( 78 ) * + 29 AS col0
----
2262

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8893
SELECT ALL + 38 DIV + 68 * - + 27 * + 68 * + + 34 + - COUNT( * ) + 62 DIV + - ( + 27 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL + 38 / + 68 * - + 27 * + 68 * + + 34 + - COUNT ( * ) + 62 / + - ( + 27 ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT ( - COALESCE ( + - ( + - COUNT( * ) ), 11 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8894
SELECT ( - COALESCE ( + - ( + - COUNT ( * ) ), 11 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL 40 * - - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL 40 * - - COUNT ( * )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8896
SELECT - COUNT( * ) DIV - + 61
----
0

skipif mysql # not compatible
query I rowsort label-8896
SELECT - COUNT ( * ) / - + 61
----
0

query I rowsort
SELECT + 51 * 56 AS col2
----
2856

query I rowsort
SELECT ALL - 12 * + - 65 + - - 52 * + + 83
----
5096

query I rowsort
SELECT ( - - 72 ) col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT + 15 * - 25 * CASE + 87 WHEN + MIN( + + 93 ) THEN NULL WHEN + 76 THEN NULL ELSE + 82 END AS col0
----
-30750

skipif mysql # not compatible
query I rowsort label-8900
SELECT + 15 * - 25 * CASE + 87 WHEN + MIN ( + + 93 ) THEN NULL WHEN + 76 THEN NULL ELSE + 82 END AS col0
----
-30750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8901
SELECT ALL COUNT( * ) DIV - COALESCE ( + 74, - 61, + 25 ) * + 16
----
0

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL COUNT ( * ) / - COALESCE ( + 74, - 61, + 25 ) * + 16
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8902
SELECT 7 * 26 * + 96 * - ( - 59 ) + - NULLIF ( 3, 10 - - 31 + - 29 ) DIV - - 20 col1
----
1030848

skipif mysql # not compatible
query I rowsort label-8902
SELECT 7 * 26 * + 96 * - ( - 59 ) + - NULLIF ( 3, 10 - - 31 + - 29 ) / - - 20 col1
----
1030848

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT ALL + 34 * - MAX( ALL - 64 ) - 87 AS col1
----
2089

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL + 34 * - MAX ( ALL - 64 ) - 87 AS col1
----
2089

query I rowsort
SELECT + 85 * - + 83
----
-7055

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT 53 * 78 + + MIN( DISTINCT + 38 ) AS col1
----
4172

skipif mysql # not compatible
query I rowsort label-8905
SELECT 53 * 78 + + MIN ( DISTINCT + 38 ) AS col1
----
4172

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT + NULLIF ( - ( - + 12 ), + - NULLIF ( COALESCE ( - - 57, - - CASE + + 79 WHEN + - ( + 86 ) THEN + 94 ELSE - - 29 * - 18 END, + 86 * - + 88 + 5 ), - - 95 + + - 5 ) + + ( - + 48 ) + + COALESCE ( + 67, - NULLIF ( - 65, + COUNT( * ) / 78 ) ) + - CASE - 51 WHEN NULLIF ( ( ( + 40 ) ), - COUNT( * ) ) + 8 THEN + ( - 50 ) * 92 ELSE NULL END * + 45 * - 15 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-8906
SELECT + NULLIF ( - ( - + 12 ), + - NULLIF ( COALESCE ( - - 57, - - CASE + + 79 WHEN + - ( + 86 ) THEN + 94 ELSE - - 29 * - 18 END, + 86 * - + 88 + 5 ), - - 95 + + - 5 ) + + ( - + 48 ) + + COALESCE ( + 67, - NULLIF ( - 65, + COUNT ( * ) / 78 ) ) + - CASE - 51 WHEN NULLIF ( ( ( + 40 ) ), - COUNT ( * ) ) + 8 THEN + ( - 50 ) * 92 ELSE NULL END * + 45 * - 15 ) AS col2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8907
SELECT + 79 + + - COALESCE ( + 27, - - AVG ( + 32 ) DIV + ( - 13 ) + - COUNT( + 90 ), SUM( - + ( - NULLIF ( - - 10, - + 8 ) ) ) + CASE - - 10 WHEN + - NULLIF ( + + 52, - 42 ) * - - COUNT( * ) - - + 45 + + ( - - 26 ) * - 91 - + + NULLIF ( - 27, 41 ) * 14 THEN NULL ELSE - 89 END )
----
52

skipif mysql # not compatible
query I rowsort label-8907
SELECT + 79 + + - COALESCE ( + 27, - - AVG ( + 32 ) / + ( - 13 ) + - COUNT ( + 90 ), SUM ( - + ( - NULLIF ( - - 10, - + 8 ) ) ) + CASE - - 10 WHEN + - NULLIF ( + + 52, - 42 ) * - - COUNT ( * ) - - + 45 + + ( - - 26 ) * - 91 - + + NULLIF ( - 27, 41 ) * 14 THEN NULL ELSE - 89 END )
----
52

query I rowsort
SELECT DISTINCT 85 * + + 88 AS col0
----
7480

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT + 87 * - 35 * - + 37 * COUNT( * ) * - ( - NULLIF ( - + 70, - + AVG ( ALL - NULLIF ( - 61, + - 65 ) ) - - - COALESCE ( + 92, SUM( ALL - 3 ) - 57 * + + COUNT( * ) ) ) ) + - + 10 AS col2
----
-7886560

skipif mysql # not compatible
query I rowsort label-8909
SELECT + 87 * - 35 * - + 37 * COUNT ( * ) * - ( - NULLIF ( - + 70, - + AVG ( ALL - NULLIF ( - 61, + - 65 ) ) - - - COALESCE ( + 92, SUM ( ALL - 3 ) - 57 * + + COUNT ( * ) ) ) ) + - + 10 AS col2
----
-7886560

onlyif mysql # aggregate syntax: 
query II rowsort label-8910
SELECT ALL + 9 AS col1, COUNT( * )
----
9
1

skipif mysql # not compatible
query II rowsort label-8910
SELECT ALL + 9 AS col1, COUNT ( * )
----
9
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT + - ( - 28 ) - 55 - - MIN( 60 )
----
33

skipif mysql # not compatible
query I rowsort label-8911
SELECT + - ( - 28 ) - 55 - - MIN ( 60 )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-8912
SELECT - 64, - 45 + + + COUNT( * ) + 87 AS col0
----
-64
43

skipif mysql # not compatible
query II rowsort label-8912
SELECT - 64, - 45 + + + COUNT ( * ) + 87 AS col0
----
-64
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8913
SELECT - 33 * - 12 * - 23 * + 34 - 5 DIV ( - NULLIF ( - 58, + ( 81 ) ) ) + SUM( 28 ) col0
----
-309644

skipif mysql # not compatible
query I rowsort label-8913
SELECT - 33 * - 12 * - 23 * + 34 - 5 / ( - NULLIF ( - 58, + ( 81 ) ) ) + SUM ( 28 ) col0
----
-309644

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT DISTINCT MAX( DISTINCT + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT MAX ( DISTINCT + 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT ALL + SUM( + - 20 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL + SUM ( + - 20 ) AS col0
----
-20

query I rowsort
SELECT + 53 + 34
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8917
SELECT ALL - - 99 DIV 79 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL - - 99 / 79 AS col1
----
1

query I rowsort
SELECT ALL + 68 + ( + 85 )
----
153

query I rowsort
SELECT + 84 - - - 20
----
64

query I rowsort
SELECT ALL - 18 + + 76
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8921
SELECT DISTINCT + + MIN( 60 ) * - + 86 + 26 + - MIN( - - ( + - CAST( 31 AS SIGNED ) ) ) DIV - 50 + + 80 AS col2, - 77 + - 36 - - COUNT( * )
----
-5054
-112

skipif mysql # not compatible
query II rowsort label-8921
SELECT DISTINCT + + MIN ( 60 ) * - + 86 + 26 + - MIN ( - - ( + - CAST ( 31 AS INTEGER ) ) ) / - 50 + + 80 AS col2, - 77 + - 36 - - COUNT ( * )
----
-5054
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8922
SELECT - COUNT( * ) DIV 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8922
SELECT - COUNT ( * ) / 45 AS col1
----
0

query I rowsort
SELECT ALL + - 24 + + - 93 AS col2
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT - - COUNT( * ) * 28 + + + COALESCE ( + 76, - + 15 * - 15 + + 74 + - - ( + NULLIF ( - - 74, + + ( + 77 ) ) ) * 45 * + + 54 )
----
104

skipif mysql # not compatible
query I rowsort label-8924
SELECT - - COUNT ( * ) * 28 + + + COALESCE ( + 76, - + 15 * - 15 + + 74 + - - ( + NULLIF ( - - 74, + + ( + 77 ) ) ) * 45 * + + 54 )
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT ALL - COUNT( * ) + - 35
----
-36

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL - COUNT ( * ) + - 35
----
-36

query I rowsort
SELECT 97 + + 52
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8927
SELECT COUNT( * ) DIV + + NULLIF ( - 66, - CASE - 78 WHEN - 45 THEN NULL ELSE - COUNT( * ) END * 46 * - 87 ) * - ( + - 36 ) + CAST( COUNT( * ) AS SIGNED ) + - - 1, + 37 + - - SUM( - + ( - 93 ) ) AS col0
----
2
130

skipif mysql # not compatible
query II rowsort label-8927
SELECT COUNT ( * ) / + + NULLIF ( - 66, - CASE - 78 WHEN - 45 THEN NULL ELSE - COUNT ( * ) END * 46 * - 87 ) * - ( + - 36 ) + CAST ( COUNT ( * ) AS INTEGER ) + - - 1, + 37 + - - SUM ( - + ( - 93 ) ) AS col0
----
2
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT ALL + COUNT( * ) + - 92 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL + COUNT ( * ) + - 92 AS col2
----
-91

query I rowsort
SELECT 7 + - + 73
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8930
SELECT ALL - 83 + - CAST( - 79 AS SIGNED ) + - COUNT( 3 ) * - 98 + 7 + + - 86
----
15

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL - 83 + - CAST ( - 79 AS INTEGER ) + - COUNT ( 3 ) * - 98 + 7 + + - 86
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8931
SELECT 47 DIV 6 + ( + ( - 52 ) )
----
-45

skipif mysql # not compatible
query I rowsort label-8931
SELECT 47 / 6 + ( + ( - 52 ) )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8932
SELECT DISTINCT - COUNT( * ) - + - COALESCE ( + ( - + 58 ), - 17, + CAST( NULL AS SIGNED ) )
----
-59

skipif mysql # not compatible
query I rowsort label-8932
SELECT DISTINCT - COUNT ( * ) - + - COALESCE ( + ( - + 58 ), - 17, + CAST ( NULL AS INTEGER ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT ALL MIN( + 27 ) * + 56 - + MAX( ALL - - 6 ) AS col1
----
1506

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL MIN ( + 27 ) * + 56 - + MAX ( ALL - - 6 ) AS col1
----
1506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8934
SELECT COUNT( * ) * - 97 + - + 43 + + 55 * CAST( 88 AS SIGNED )
----
4700

skipif mysql # not compatible
query I rowsort label-8934
SELECT COUNT ( * ) * - 97 + - + 43 + + 55 * CAST ( 88 AS INTEGER )
----
4700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8935
SELECT - COUNT( * ) DIV 51 * - 28 * - COUNT( * ) + 11 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8935
SELECT - COUNT ( * ) / 51 * - 28 * - COUNT ( * ) + 11 AS col2
----
11

query I rowsort
SELECT ALL 80 - + + 64 + + 52 * - 46 * 74 * + + 96 + + ( 62 ) col0
----
-16992690

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT + CASE - 69 WHEN + COUNT( * ) * 10 * 59 + + 50 THEN - 32 * - 15 * + + 11 END / + + 22 + - + 36 - - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-8937
SELECT + CASE - 69 WHEN + COUNT ( * ) * 10 * 59 + + 50 THEN - 32 * - 15 * + + 11 END / + + 22 + - + 36 - - 71
----
NULL

query I rowsort
SELECT 28 * - - 59
----
1652

query II rowsort
SELECT ALL - 2, - 86 + - 87 AS col1
----
-2
-173

onlyif mysql # aggregate syntax: 
query II rowsort label-8940
SELECT 71, NULLIF ( - COUNT( * ), + 16 ) AS col2
----
71
-1

skipif mysql # not compatible
query II rowsort label-8940
SELECT 71, NULLIF ( - COUNT ( * ), + 16 ) AS col2
----
71
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8941
SELECT + 83 * 29 + + + 79 * - COUNT( + CAST( NULL AS SIGNED ) ) - 89 * + 4 * NULLIF ( + + COUNT( * ), - COUNT( DISTINCT 87 ) + + MIN( - 61 ) / + 88 * + - 30 * - - 53 ) * COUNT( * ) + 45 AS col2
----
2096

skipif mysql # not compatible
query I rowsort label-8941
SELECT + 83 * 29 + + + 79 * - COUNT ( + CAST ( NULL AS INTEGER ) ) - 89 * + 4 * NULLIF ( + + COUNT ( * ), - COUNT ( DISTINCT 87 ) + + MIN ( - 61 ) / + 88 * + - 30 * - - 53 ) * COUNT ( * ) + 45 AS col2
----
2096

onlyif mysql # DIV for integer division: 
query I rowsort label-8942
SELECT DISTINCT 1 DIV - + 77
----
0

skipif mysql # not compatible
query I rowsort label-8942
SELECT DISTINCT 1 / - + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT - SUM( DISTINCT 1 ) + + 25 * + COUNT( * ) - 57 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-8943
SELECT - SUM ( DISTINCT 1 ) + + 25 * + COUNT ( * ) - 57 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT ALL + 32 * + MIN( DISTINCT - + 78 ) col1
----
-2496

skipif mysql # not compatible
query I rowsort label-8944
SELECT ALL + 32 * + MIN ( DISTINCT - + 78 ) col1
----
-2496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8945
SELECT + 93 * + + CAST( 94 AS SIGNED ) AS col1
----
8742

skipif mysql # not compatible
query I rowsort label-8945
SELECT + 93 * + + CAST ( 94 AS INTEGER ) AS col1
----
8742

onlyif mysql # aggregate syntax: 
query II rowsort label-8946
SELECT ALL - 19 AS col1, - COUNT( * )
----
-19
-1

skipif mysql # not compatible
query II rowsort label-8946
SELECT ALL - 19 AS col1, - COUNT ( * )
----
-19
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8947
SELECT - 2 - 28 + + 81 + - - 62 * - CAST( + 36 AS SIGNED ) AS col0
----
-2181

skipif mysql # not compatible
query I rowsort label-8947
SELECT - 2 - 28 + + 81 + - - 62 * - CAST ( + 36 AS INTEGER ) AS col0
----
-2181

query I rowsort
SELECT 52 * 27 + + 45
----
1449

query I rowsort
SELECT ALL 85 + - + ( + ( - + 20 ) ) * - 47
----
-855

query I rowsort
SELECT ALL - 14 * - + 27 + + 21 AS col1
----
399

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT - NULLIF ( - COUNT( * ), - 16 ) * + - 1
----
-1

skipif mysql # not compatible
query I rowsort label-8951
SELECT - NULLIF ( - COUNT ( * ), - 16 ) * + - 1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT DISTINCT + 80 * + ( + COUNT( * ) )
----
80

skipif mysql # not compatible
query I rowsort label-8952
SELECT DISTINCT + 80 * + ( + COUNT ( * ) )
----
80

query I rowsort
SELECT ALL 12 + - - 4
----
16

query I rowsort
SELECT 32 + + 61
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8955
SELECT ALL - COUNT( * ) + - 10 - CASE + 59 WHEN - + 42 THEN - COUNT( * ) WHEN NULLIF ( + 62, + MIN( DISTINCT + 50 ) ) THEN NULL WHEN + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) / + - CASE - 56 WHEN + COUNT( * ) THEN - 79 WHEN - 86 THEN - COUNT( - ( - 58 ) ) END THEN + 73 + - CAST( - 55 AS SIGNED ) ELSE + 88 * - 90 END AS col0
----
7909

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL - COUNT ( * ) + - 10 - CASE + 59 WHEN - + 42 THEN - COUNT ( * ) WHEN NULLIF ( + 62, + MIN ( DISTINCT + 50 ) ) THEN NULL WHEN + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) / + - CASE - 56 WHEN + COUNT ( * ) THEN - 79 WHEN - 86 THEN - COUNT ( - ( - 58 ) ) END THEN + 73 + - CAST ( - 55 AS INTEGER ) ELSE + 88 * - 90 END AS col0
----
7909

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT ALL MAX( + 90 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL MAX ( + 90 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT ALL + 31 + + + COUNT( * ) * - 86 * - + 46 + - - 64 col0
----
4051

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL + 31 + + + COUNT ( * ) * - 86 * - + 46 + - - 64 col0
----
4051

query II rowsort
SELECT DISTINCT 22 AS col1, + 82 * - 53
----
22
-4346

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT ALL - - 84 + + + COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL - - 84 + + + COUNT ( * ) AS col2
----
85

query I rowsort
SELECT + 62 * + 61 * - 47
----
-177754

query I rowsort
SELECT 1 + - 89
----
-88

query I rowsort
SELECT 33 + 46 AS col2
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-8963
SELECT ALL COALESCE ( - 92, - 94, - + 31 * + COUNT( * ) * 18 ) / + AVG ( + - 85 ) / - CASE + COUNT( * ) WHEN 72 + - 64 + + + 51 THEN + 54 WHEN + 45 THEN NULL ELSE NULL END AS col1, - 75 col2
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-8963
SELECT ALL COALESCE ( - 92, - 94, - + 31 * + COUNT ( * ) * 18 ) / + AVG ( + - 85 ) / - CASE + COUNT ( * ) WHEN 72 + - 64 + + + 51 THEN + 54 WHEN + 45 THEN NULL ELSE NULL END AS col1, - 75 col2
----
NULL
-75

query II rowsort
SELECT 42 + 50 col1, 38
----
92
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT DISTINCT + COALESCE ( + + MIN( DISTINCT + 29 ), - + 37 ) * - 96 * - MIN( - 18 ) + + - 6 * + + 48
----
-50400

skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT + COALESCE ( + + MIN ( DISTINCT + 29 ), - + 37 ) * - 96 * - MIN ( - 18 ) + + - 6 * + + 48
----
-50400

query I rowsort
SELECT ALL 22 - + + 27 AS col1
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8967
SELECT DISTINCT ( - CAST( NULL AS DECIMAL ) ) * - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8967
SELECT DISTINCT ( - CAST ( NULL AS REAL ) ) * - 88
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8968
SELECT 48 * - - SUM( - 86 ) AS col1, 59 + + 67
----
-4128
126

skipif mysql # not compatible
query II rowsort label-8968
SELECT 48 * - - SUM ( - 86 ) AS col1, 59 + + 67
----
-4128
126

query I rowsort
SELECT 73 * + - 44 * - 49 AS col2
----
157388

query I rowsort
SELECT ALL - COALESCE ( - 82, + + ( + 91 ) )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8971
SELECT 63 * 51 * + CAST( + COUNT( * ) AS SIGNED )
----
3213

skipif mysql # not compatible
query I rowsort label-8971
SELECT 63 * 51 * + CAST ( + COUNT ( * ) AS INTEGER )
----
3213

onlyif mysql # aggregate syntax: 
query II rowsort label-8972
SELECT DISTINCT + 8 * + ( - COUNT( * ) ), 43 AS col1
----
-8
43

skipif mysql # not compatible
query II rowsort label-8972
SELECT DISTINCT + 8 * + ( - COUNT ( * ) ), 43 AS col1
----
-8
43

query I rowsort
SELECT ALL - 67 + - - 93
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8974
SELECT ALL + 3 * 20 DIV 54 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL + 3 * 20 / 54 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8975
SELECT + CASE - ( + 87 ) WHEN 55 + CAST( NULL AS SIGNED ) THEN - + 27 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8975
SELECT + CASE - ( + 87 ) WHEN 55 + CAST ( NULL AS INTEGER ) THEN - + 27 ELSE NULL END
----
NULL

query II rowsort
SELECT + 91 - 46 col2, ( + - 19 ) * - 36 * - 82
----
45
-56088

query II rowsort
SELECT - 0 + + + 68 AS col1, - 82 * ( + 91 ) AS col2
----
68
-7462

onlyif mysql # aggregate syntax: 
query II rowsort label-8978
SELECT 36 * + ( - NULLIF ( - + 7, - - 73 ) ) AS col1, + COUNT( * ) + 45 * - + ( + COUNT( * ) ) * - 50 + - 56 AS col2
----
252
2195

skipif mysql # not compatible
query II rowsort label-8978
SELECT 36 * + ( - NULLIF ( - + 7, - - 73 ) ) AS col1, + COUNT ( * ) + 45 * - + ( + COUNT ( * ) ) * - 50 + - 56 AS col2
----
252
2195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8979
SELECT ALL + CASE + CAST( NULL AS SIGNED ) WHEN 11 THEN NULL ELSE 76 * ( - - 33 ) END + 80 * - MIN( ALL + + 3 )
----
2268

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL + CASE + CAST ( NULL AS INTEGER ) WHEN 11 THEN NULL ELSE 76 * ( - - 33 ) END + 80 * - MIN ( ALL + + 3 )
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT - ( - COUNT( DISTINCT - + 31 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8980
SELECT - ( - COUNT ( DISTINCT - + 31 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT DISTINCT - - 28 + + COUNT( * ) * 27 * + + 79 * - COUNT( * ) AS col0
----
-2105

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT - - 28 + + COUNT ( * ) * 27 * + + 79 * - COUNT ( * ) AS col0
----
-2105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8982
SELECT DISTINCT 15 + + - 14 + + + 57 * + NULLIF ( + 58, - 10 * - - NULLIF ( + - 89, - COUNT( * ) ) + + COUNT( * ) + - - MAX( - 80 ) * - 49 * + CAST( NULL AS SIGNED ) )
----
3307

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT 15 + + - 14 + + + 57 * + NULLIF ( + 58, - 10 * - - NULLIF ( + - 89, - COUNT ( * ) ) + + COUNT ( * ) + - - MAX ( - 80 ) * - 49 * + CAST ( NULL AS INTEGER ) )
----
3307

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8983
SELECT DISTINCT 19 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT 19 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT ALL + NULLIF ( - + COUNT( * ), COUNT( * ) * + 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL + NULLIF ( - + COUNT ( * ), COUNT ( * ) * + 49 )
----
-1

query I rowsort
SELECT - + ( - 8 )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8986
SELECT + 7 * + 6 AS col1, 56 * + + COUNT( * )
----
42
56

skipif mysql # not compatible
query II rowsort label-8986
SELECT + 7 * + 6 AS col1, 56 * + + COUNT ( * )
----
42
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8987
SELECT DISTINCT 86 + - 30 + + + 43 + + CAST( + + MIN( ALL CAST( NULL AS SIGNED ) ) AS SIGNED ) * + 80 / + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT 86 + - 30 + + + 43 + + CAST ( + + MIN ( ALL CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + 80 / + 75
----
NULL

query I rowsort
SELECT + 73 * + 25 * - 29 + - 50
----
-52975

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT - NULLIF ( COUNT( * ), 44 * 69 * - ( + 51 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8989
SELECT - NULLIF ( COUNT ( * ), 44 * 69 * - ( + 51 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8990
SELECT + 40 - - CASE - MIN( + - 8 ) WHEN + 9 / - + 49 THEN - 8 ELSE - 28 + 65 * 76 * + 50 * + + 84 END * - + 16 AS col2, - 73 col0
----
-331967512
-73

skipif mysql # not compatible
query II rowsort label-8990
SELECT + 40 - - CASE - MIN ( + - 8 ) WHEN + 9 / - + 49 THEN - 8 ELSE - 28 + 65 * 76 * + 50 * + + 84 END * - + 16 AS col2, - 73 col0
----
-331967512
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT + 16 - + 22 - - COUNT( - 25 ) * 80 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-8991
SELECT + 16 - + 22 - - COUNT ( - 25 ) * 80 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT ALL COALESCE ( + - 84, COUNT( * ) ) - 64 + + 49 * - 57 * + 51 * - + COUNT( DISTINCT - 41 ) AS col1
----
142295

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL COALESCE ( + - 84, COUNT ( * ) ) - 64 + + 49 * - 57 * + 51 * - + COUNT ( DISTINCT - 41 ) AS col1
----
142295

onlyif mysql # aggregate syntax: 
query II rowsort label-8993
SELECT ALL 25 AS col1, ( - COUNT( * ) ) AS col1
----
25
-1

skipif mysql # not compatible
query II rowsort label-8993
SELECT ALL 25 AS col1, ( - COUNT ( * ) ) AS col1
----
25
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8994
SELECT - COUNT( * ), + 82 DIV + 98 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-8994
SELECT - COUNT ( * ), + 82 / + 98 AS col0
----
-1
0

query I rowsort
SELECT ALL 4 - + 87
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT + COUNT( - 20 ) * - CASE NULLIF ( 92, + + 2 ) WHEN - 15 THEN - + 89 + - - 82 + + 98 + + COUNT( * ) * + 62 END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8996
SELECT + COUNT ( - 20 ) * - CASE NULLIF ( 92, + + 2 ) WHEN - 15 THEN - + 89 + - - 82 + + 98 + + COUNT ( * ) * + 62 END + + COUNT ( * )
----
NULL

query I rowsort
SELECT + 56 + + 92 AS col2
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT + COUNT( * ) + + - 12 + - - 79 col1
----
68

skipif mysql # not compatible
query I rowsort label-8998
SELECT + COUNT ( * ) + + - 12 + - - 79 col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8999
SELECT + COUNT( DISTINCT - - 25 ) DIV NULLIF ( + 23, - + 48 * 98 + + 5 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8999
SELECT + COUNT ( DISTINCT - - 25 ) / NULLIF ( + 23, - + 48 * 98 + + 5 ) AS col1
----
0

query I rowsort
SELECT DISTINCT 62 * COALESCE ( 28, - 66 + - 90 ) AS col1
----
1736

query I rowsort
SELECT + 26 + + 99
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-9002
SELECT ALL 8 DIV + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL 8 / + 94 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9003
SELECT + 20 DIV + 29
----
0

skipif mysql # not compatible
query I rowsort label-9003
SELECT + 20 / + 29
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9004
SELECT ALL + COALESCE ( 13, - - 47 DIV 42 )
----
13

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL + COALESCE ( 13, - - 47 / 42 )
----
13

query I rowsort
SELECT + 67 * - 69 AS col2
----
-4623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9006
SELECT + 1 DIV - 14 * - 82 - COUNT( 20 ) - - CAST( - COUNT( * ) AS SIGNED ) DIV - 92 + + 36
----
35

skipif mysql # not compatible
query I rowsort label-9006
SELECT + 1 / - 14 * - 82 - COUNT ( 20 ) - - CAST ( - COUNT ( * ) AS INTEGER ) / - 92 + + 36
----
35

query II rowsort
SELECT + NULLIF ( + + 87, - + 45 ), + 21 AS col0
----
87
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9008
SELECT - - CAST( NULL AS SIGNED ) * - - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9008
SELECT - - CAST ( NULL AS INTEGER ) * - - 10 AS col2
----
NULL

query I rowsort
SELECT - 89 + - 72 + - + 45 * 72
----
-3401

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT ALL + CASE MAX( ALL + 33 ) WHEN 30 / + MIN( + 59 ) THEN + 34 ELSE NULL END * - 43 + + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL + CASE MAX ( ALL + 33 ) WHEN 30 / + MIN ( + 59 ) THEN + 34 ELSE NULL END * - 43 + + 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT DISTINCT - COUNT( * ) * - 18 + - + ( + 49 ) + + 18
----
-13

skipif mysql # not compatible
query I rowsort label-9011
SELECT DISTINCT - COUNT ( * ) * - 18 + - + ( + 49 ) + + 18
----
-13

query I rowsort
SELECT + ( - - 65 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-9013
SELECT DISTINCT + COUNT( * ), + MAX( ALL 82 ) AS col2
----
1
82

skipif mysql # not compatible
query II rowsort label-9013
SELECT DISTINCT + COUNT ( * ), + MAX ( ALL 82 ) AS col2
----
1
82

query I rowsort
SELECT - - 42 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT ALL + 31 * COUNT( * ) col1
----
31

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL + 31 * COUNT ( * ) col1
----
31

query II rowsort
SELECT 11, 79 + + 15 AS col0
----
11
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT ALL COUNT( - 27 ) * 29 - - + 60 - + - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL COUNT ( - 27 ) * 29 - - + 60 - + - COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT - COALESCE ( - + CASE NULLIF ( - COALESCE ( - ( 72 ), + 36 ), - 42 * + 55 + + 32 ) WHEN - 77 THEN + + 18 ELSE + ( + - 32 ) END, - 14, SUM( DISTINCT 78 ) * - - 51 * + - 37, + + 66 ) - 68
----
-100

skipif mysql # not compatible
query I rowsort label-9018
SELECT - COALESCE ( - + CASE NULLIF ( - COALESCE ( - ( 72 ), + 36 ), - 42 * + 55 + + 32 ) WHEN - 77 THEN + + 18 ELSE + ( + - 32 ) END, - 14, SUM ( DISTINCT 78 ) * - - 51 * + - 37, + + 66 ) - 68
----
-100

query I rowsort
SELECT + - 52 * - - 77 + - 33 * - - 30 * + 14
----
-17864

query II rowsort
SELECT - - 34 - - 57 - + 17 AS col1, + 29 + + + 7
----
74
36

query I rowsort
SELECT ALL - + NULLIF ( - 19, + + 92 * - 20 * + 78 * - 80 ) * - NULLIF ( - + 41, - 66 )
----
779

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT - - 73 + + MIN( DISTINCT 29 ) + + NULLIF ( - COUNT( * ), - - 47 ) * - SUM( ALL 72 )
----
174

skipif mysql # not compatible
query I rowsort label-9022
SELECT - - 73 + + MIN ( DISTINCT 29 ) + + NULLIF ( - COUNT ( * ), - - 47 ) * - SUM ( ALL 72 )
----
174

query I rowsort
SELECT - + 15 * - 85 AS col1
----
1275

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9024
SELECT - 16 + + - CAST( - 22 AS SIGNED ) DIV 55 * + 53 * + 61 * + + 50 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-9024
SELECT - 16 + + - CAST ( - 22 AS INTEGER ) / 55 * + 53 * + 61 * + + 50 AS col0
----
-16

query I rowsort
SELECT DISTINCT ( 4 )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9026
SELECT ALL 63 * + - COUNT( * ), + 98 AS col2
----
-63
98

skipif mysql # not compatible
query II rowsort label-9026
SELECT ALL 63 * + - COUNT ( * ), + 98 AS col2
----
-63
98

query I rowsort
SELECT + 69 * - - 54
----
3726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9028
SELECT DISTINCT CAST( - CAST( + 12 AS SIGNED ) AS SIGNED ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT CAST ( - CAST ( + 12 AS INTEGER ) AS INTEGER ) AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9029
SELECT - 33 * - CAST( NULL AS SIGNED ) * - MAX( + ( - ( - 44 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9029
SELECT - 33 * - CAST ( NULL AS INTEGER ) * - MAX ( + ( - ( - 44 ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT - COUNT( * ) * + - 70
----
70

skipif mysql # not compatible
query I rowsort label-9030
SELECT - COUNT ( * ) * + - 70
----
70

query I rowsort
SELECT + ( - 53 ) + + 78
----
25

query I rowsort
SELECT ALL 21 + + - 10 col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9033
SELECT ALL CAST( + + 26 AS SIGNED ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL CAST ( + + 26 AS INTEGER ) AS col0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9034
SELECT - COALESCE ( 45, + - COUNT( * ) DIV - 97 + + + 79 + - 3, - 32 )
----
-45

skipif mysql # not compatible
query I rowsort label-9034
SELECT - COALESCE ( 45, + - COUNT ( * ) / - 97 + + + 79 + - 3, - 32 )
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9035
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) * + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9035
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) * + + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT DISTINCT MIN( + - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT MIN ( + - 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT DISTINCT 8 + - - 36 * 32 + COUNT( * ) + - 66 - - 61 AS col2
----
1156

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT 8 + - - 36 * 32 + COUNT ( * ) + - 66 - - 61 AS col2
----
1156

query I rowsort
SELECT - 67 - - + 64 + - 48
----
-51

query I rowsort
SELECT + 49 * + 19 AS col0
----
931

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT + + COALESCE ( - 23, - 87 * + + 38, - - COUNT( + + 44 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-9040
SELECT + + COALESCE ( - 23, - 87 * + + 38, - - COUNT ( + + 44 ) )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT + SUM( ALL - + 53 ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-9041
SELECT + SUM ( ALL - + 53 ) col0
----
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-9042
SELECT - - 32 DIV - 90, - 35 col2
----
0
-35

skipif mysql # not compatible
query II rowsort label-9042
SELECT - - 32 / - 90, - 35 col2
----
0
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9043
SELECT ALL + 63 / 93 - CAST( NULL AS SIGNED ) + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL + 63 / 93 - CAST ( NULL AS INTEGER ) + 52 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT - 82 * COALESCE ( - COUNT( * ), - 27 * 28 + - ( - 52 ) * - 51 * + 37 ) - + 63
----
19

skipif mysql # not compatible
query I rowsort label-9044
SELECT - 82 * COALESCE ( - COUNT ( * ), - 27 * 28 + - ( - 52 ) * - 51 * + 37 ) - + 63
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9045
SELECT + - CASE CASE + 97 WHEN SUM( + 79 ) + - CAST( + SUM( DISTINCT - - 2 ) AS SIGNED ) THEN 0 + 29 + 50 WHEN - ( 77 ) THEN NULL END WHEN + 57 + + 79 + + 29 * - 67 THEN NULL WHEN 60 THEN - 84 + 90 + + 16 ELSE NULL END * - ( - + COALESCE ( 85, + 1 / - 3 ) ) - + - ( 81 ) * + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9045
SELECT + - CASE CASE + 97 WHEN SUM ( + 79 ) + - CAST ( + SUM ( DISTINCT - - 2 ) AS INTEGER ) THEN 0 + 29 + 50 WHEN - ( 77 ) THEN NULL END WHEN + 57 + + 79 + + 29 * - 67 THEN NULL WHEN 60 THEN - 84 + 90 + + 16 ELSE NULL END * - ( - + COALESCE ( 85, + 1 / - 3 ) ) - + - ( 81 ) * + + 90
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9046
SELECT DISTINCT - 82 DIV 94 col1
----
0

skipif mysql # not compatible
query I rowsort label-9046
SELECT DISTINCT - 82 / 94 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9047
SELECT + MIN( ALL + + CAST( - 30 AS SIGNED ) ) * COALESCE ( - 83, MIN( DISTINCT + 31 ) * - ( 14 ) - - MIN( 9 ) + - 68, - ( 72 ) * - 86 + - 34 + - + 24 - - 9 + + + NULLIF ( + + COUNT( * ), 38 * + 72 + + 54 + COUNT( * ) ) ) * + + 39 * CASE - COUNT( * ) WHEN + 82 THEN - 59 END + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9047
SELECT + MIN ( ALL + + CAST ( - 30 AS INTEGER ) ) * COALESCE ( - 83, MIN ( DISTINCT + 31 ) * - ( 14 ) - - MIN ( 9 ) + - 68, - ( 72 ) * - 86 + - 34 + - + 24 - - 9 + + + NULLIF ( + + COUNT ( * ), 38 * + 72 + + 54 + COUNT ( * ) ) ) * + + 39 * CASE - COUNT ( * ) WHEN + 82 THEN - 59 END + 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9048
SELECT ALL - 26 DIV - 69 - - NULLIF ( + 98, - - 37 * + ( + + 99 ) + - - CAST( NULL AS SIGNED ) )
----
98

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL - 26 / - 69 - - NULLIF ( + 98, - - 37 * + ( + + 99 ) + - - CAST ( NULL AS INTEGER ) )
----
98

query I rowsort
SELECT - 6 * CASE WHEN NOT + 81 IS NULL THEN + 72 END - - 91
----
-341

query I rowsort
SELECT + 28 * + 49 - - + 5
----
1377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9051
SELECT ( CASE + 35 WHEN + 37 / - + COUNT( * ) / + CAST( NULL AS SIGNED ) + 36 * + 13 THEN - AVG ( + 55 ) WHEN + - 38 THEN NULL WHEN + 10 * + 61 THEN + COUNT( * ) + - 59 / - 86 + 70 + COUNT( * ) * 45 ELSE - 81 + + + 84 * 15 END )
----
1179

skipif mysql # not compatible
query I rowsort label-9051
SELECT ( CASE + 35 WHEN + 37 / - + COUNT ( * ) / + CAST ( NULL AS INTEGER ) + 36 * + 13 THEN - AVG ( + 55 ) WHEN + - 38 THEN NULL WHEN + 10 * + 61 THEN + COUNT ( * ) + - 59 / - 86 + 70 + COUNT ( * ) * 45 ELSE - 81 + + + 84 * 15 END )
----
1179

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT - COALESCE ( + 65, 79 ) * ( + 69 ) + - COUNT( * )
----
-4486

skipif mysql # not compatible
query I rowsort label-9052
SELECT - COALESCE ( + 65, 79 ) * ( + 69 ) + - COUNT ( * )
----
-4486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9053
SELECT DISTINCT - 11 * + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9053
SELECT DISTINCT - 11 * + ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ( 45 ) - - 70
----
115

query II rowsort
SELECT DISTINCT 73 col2, + 75 + - + 76
----
73
-1

query I rowsort
SELECT 22 * + - 70 AS col2
----
-1540

query I rowsort
SELECT DISTINCT - 12 + + 82 + + 11 AS col2
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9058
SELECT 41 DIV - 34 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9058
SELECT 41 / - 34 AS col1
----
-1

query I rowsort
SELECT ALL - 94 + 4 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT 48 - COUNT( * ) + 92 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-9060
SELECT 48 - COUNT ( * ) + 92 AS col1
----
139

query I rowsort
SELECT ALL - 21 * 48 AS col2
----
-1008

query I rowsort
SELECT 57 - 84
----
-27

query I rowsort
SELECT ALL 73 + 91
----
164

query I rowsort
SELECT 67 * - - 88
----
5896

onlyif mysql # aggregate syntax: 
query II rowsort label-9065
SELECT ALL - 94 + - 94 + - - COUNT( DISTINCT + 48 ) + + 17, 3 + - COUNT( * ) AS col1
----
-170
2

skipif mysql # not compatible
query II rowsort label-9065
SELECT ALL - 94 + - 94 + - - COUNT ( DISTINCT + 48 ) + + 17, 3 + - COUNT ( * ) AS col1
----
-170
2

query I rowsort
SELECT 76 * + 4 AS col1
----
304

onlyif mysql # aggregate syntax: 
query II rowsort label-9067
SELECT 83 - - + 12 * + MIN( DISTINCT + + 89 ) * + 48 * - 29 AS col1, 97 AS col2
----
-1486573
97

skipif mysql # not compatible
query II rowsort label-9067
SELECT 83 - - + 12 * + MIN ( DISTINCT + + 89 ) * + 48 * - 29 AS col1, 97 AS col2
----
-1486573
97

query I rowsort
SELECT 57 + + 54 + + 21 * 47 col1
----
1098

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT MIN( DISTINCT + + 0 ) - + 27 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9069
SELECT MIN ( DISTINCT + + 0 ) - + 27 AS col1
----
-27

query I rowsort
SELECT 66 + - 29 - + + 83
----
-46

query I rowsort
SELECT 2 - - + 69 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT ALL 40 + - COUNT( * ) + + COUNT( * ) + 92
----
132

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL 40 + - COUNT ( * ) + + COUNT ( * ) + 92
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT - 10 + + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-9073
SELECT - 10 + + COUNT ( * )
----
-9

query I rowsort
SELECT 21 + - - 11
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9075
SELECT DISTINCT - 24 AS col2, CAST( NULL AS SIGNED )
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-9075
SELECT DISTINCT - 24 AS col2, CAST ( NULL AS INTEGER )
----
-24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT - - 37 * - - COUNT( * ) + 83
----
120

skipif mysql # not compatible
query I rowsort label-9076
SELECT - - 37 * - - COUNT ( * ) + 83
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9077
SELECT ALL + 95 - CAST( NULL AS SIGNED ) * + 80 * + AVG ( DISTINCT 4 ) + NULLIF ( AVG ( - 68 ), + + ( 31 ) * - + COUNT( * ) ) * + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-9077
SELECT ALL + 95 - CAST ( NULL AS INTEGER ) * + 80 * + AVG ( DISTINCT 4 ) + NULLIF ( AVG ( - 68 ), + + ( 31 ) * - + COUNT ( * ) ) * + - 75
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9078
SELECT 32 + 2 DIV COUNT( 21 ) col0
----
34

skipif mysql # not compatible
query I rowsort label-9078
SELECT 32 + 2 / COUNT ( 21 ) col0
----
34

query I rowsort
SELECT - NULLIF ( - 92, + 3 + 90 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9080
SELECT SUM( 17 ) + - - ( COUNT( * ) ) * - NULLIF ( + 33, + - 22 + CAST( - MAX( 43 ) AS SIGNED ) )
----
-16

skipif mysql # not compatible
query I rowsort label-9080
SELECT SUM ( 17 ) + - - ( COUNT ( * ) ) * - NULLIF ( + 33, + - 22 + CAST ( - MAX ( 43 ) AS INTEGER ) )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT DISTINCT - - ( + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9081
SELECT DISTINCT - - ( + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT - 26 * + COUNT( * ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-9082
SELECT - 26 * + COUNT ( * ) AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9083
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9083
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT NULLIF ( + 57, - 89 * + + 12 - + 31 - 8 * - + 49 * - ( - 97 ) ) AS col1
----
57

query I rowsort
SELECT ALL 93 * + - 6
----
-558

query I rowsort
SELECT + 62 * + + 35 AS col2
----
2170

onlyif mysql # aggregate syntax: 
query II rowsort label-9087
SELECT ALL + MIN( DISTINCT - 73 ) * - 55, COUNT( * ) * + 8 AS col1
----
4015
8

skipif mysql # not compatible
query II rowsort label-9087
SELECT ALL + MIN ( DISTINCT - 73 ) * - 55, COUNT ( * ) * + 8 AS col1
----
4015
8

query I rowsort
SELECT COALESCE ( - 22, + 33 - 42 ) + 17 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT 32 * COUNT( * ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-9089
SELECT 32 * COUNT ( * ) AS col1
----
32

query I rowsort
SELECT 62 * - 95 + - 51
----
-5941

query II rowsort
SELECT ALL 45 + + 54 AS col2, 19 * + 73 AS col1
----
99
1387

onlyif mysql # aggregate syntax: 
query II rowsort label-9092
SELECT - MIN( + 87 ), + 42 + + + 46 + - + 24 + 19 AS col1
----
-87
83

skipif mysql # not compatible
query II rowsort label-9092
SELECT - MIN ( + 87 ), + 42 + + + 46 + - + 24 + 19 AS col1
----
-87
83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9093
SELECT 77 DIV - 81 * - CAST( - - 74 AS SIGNED ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9093
SELECT 77 / - 81 * - CAST ( - - 74 AS INTEGER ) col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9094
SELECT CAST( NULL AS SIGNED ) + 17 + - 86 + 42 * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-9094
SELECT CAST ( NULL AS INTEGER ) + 17 + - 86 + 42 * - 69
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9095
SELECT DISTINCT + 53 DIV - 1
----
-53

skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT + 53 / - 1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9096
SELECT DISTINCT CAST( - 15 AS SIGNED ) + 90
----
75

skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT CAST ( - 15 AS INTEGER ) + 90
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT ALL MAX( ALL 88 )
----
88

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL MAX ( ALL 88 )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9098
SELECT 67 + 12 DIV + 57 col1
----
67

skipif mysql # not compatible
query I rowsort label-9098
SELECT 67 + 12 / + 57 col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9099
SELECT ALL 85 + - 92 + - + 12 * - 22 + + 68 + - 37 + - 39 DIV 50 + - - 52 * 24 * + + 90 + - - 18 * + CAST( + COUNT( * ) AS SIGNED ) col2
----
112626

skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL 85 + - 92 + - + 12 * - 22 + + 68 + - 37 + - 39 / 50 + - - 52 * 24 * + + 90 + - - 18 * + CAST ( + COUNT ( * ) AS INTEGER ) col2
----
112626

query I rowsort
SELECT DISTINCT 44 + 36 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT COUNT( * ) * + - 66 * + 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9101
SELECT COUNT ( * ) * + - 66 * + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT DISTINCT - 90 * + COUNT( * ) col1
----
-90

skipif mysql # not compatible
query I rowsort label-9102
SELECT DISTINCT - 90 * + COUNT ( * ) col1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9103
SELECT 92 + - CAST( - 88 AS SIGNED ) AS col2
----
180

skipif mysql # not compatible
query I rowsort label-9103
SELECT 92 + - CAST ( - 88 AS INTEGER ) AS col2
----
180

query I rowsort
SELECT 2 + 80 AS col2
----
82

query I rowsort
SELECT 73 * + 75
----
5475

query II rowsort
SELECT - 13 AS col1, 99
----
-13
99

query II rowsort
SELECT DISTINCT 18, + 4 col1
----
18
4

query I rowsort
SELECT + 17 * + - 98
----
-1666

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT MAX( ALL + 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-9109
SELECT MAX ( ALL + 14 ) AS col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9110
SELECT - + 38 DIV + 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9110
SELECT - + 38 / + 59 AS col2
----
0

query I rowsort
SELECT - + 69 - + - 19 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-9112
SELECT + 8 AS col0, COUNT( * ) AS col0
----
8
1

skipif mysql # not compatible
query II rowsort label-9112
SELECT + 8 AS col0, COUNT ( * ) AS col0
----
8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT ALL + - COUNT( * ) * 21 * - 0 * 26
----
0

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL + - COUNT ( * ) * 21 * - 0 * 26
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9114
SELECT - CAST( NULL AS SIGNED ) / - - 0 + - 8 + + - COUNT( * ) * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-9114
SELECT - CAST ( NULL AS INTEGER ) / - - 0 + - 8 + + - COUNT ( * ) * 65
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9115
SELECT ALL + 91 * 50, COUNT( * ) col1
----
4550
1

skipif mysql # not compatible
query II rowsort label-9115
SELECT ALL + 91 * 50, COUNT ( * ) col1
----
4550
1

query I rowsort
SELECT ALL + 47 * + 48
----
2256

query I rowsort
SELECT DISTINCT + - COALESCE ( - + NULLIF ( + 14, 69 + ( + - 32 ) ), + - 86 )
----
14

query I rowsort
SELECT 67 * - 58 + - 26
----
-3912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9119
SELECT DISTINCT - CAST( - 53 AS SIGNED ) * - 99 + + + 4
----
-5243

skipif mysql # not compatible
query I rowsort label-9119
SELECT DISTINCT - CAST ( - 53 AS INTEGER ) * - 99 + + + 4
----
-5243

onlyif mysql # DIV for integer division: 
query I rowsort label-9120
SELECT - 16 + - COALESCE ( - 85, 9 ) + + 8 DIV - 70 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-9120
SELECT - 16 + - COALESCE ( - 85, 9 ) + + 8 / - 70 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT - 34 * - COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-9121
SELECT - 34 * - COUNT ( * ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT ALL - COUNT( * ) * - 36 * - 75 + + - 97 * - COUNT( * ) * 87 * 97 + COUNT( * )
----
815884

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL - COUNT ( * ) * - 36 * - 75 + + - 97 * - COUNT ( * ) * 87 * 97 + COUNT ( * )
----
815884

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT MAX( 62 ) col2
----
62

skipif mysql # not compatible
query I rowsort label-9123
SELECT MAX ( 62 ) col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT + MIN( ALL - + 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-9124
SELECT + MIN ( ALL - + 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT + NULLIF ( - 74, NULLIF ( - MIN( + 5 ), - 22 * + + COUNT( * ) ) * 28 ) * - 30 + + + MIN( ALL - 91 ) * + COUNT( * ) + 32
----
2161

skipif mysql # not compatible
query I rowsort label-9125
SELECT + NULLIF ( - 74, NULLIF ( - MIN ( + 5 ), - 22 * + + COUNT ( * ) ) * 28 ) * - 30 + + + MIN ( ALL - 91 ) * + COUNT ( * ) + 32
----
2161

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT + COALESCE ( - 95, - 95 - - COUNT( * ) ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-9126
SELECT + COALESCE ( - 95, - 95 - - COUNT ( * ) ) AS col0
----
-95

query I rowsort
SELECT ALL 92 + + NULLIF ( - 1, + 77 )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9128
SELECT COUNT( DISTINCT + + 35 ), + 57 * + 2 AS col0
----
1
114

skipif mysql # not compatible
query II rowsort label-9128
SELECT COUNT ( DISTINCT + + 35 ), + 57 * + 2 AS col0
----
1
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9129
SELECT + CAST( + 75 AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9129
SELECT + CAST ( + 75 AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT MIN( ALL + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-9130
SELECT MIN ( ALL + 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT ALL 38 * - 21 * - 39 * - COUNT( * )
----
-31122

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL 38 * - 21 * - 39 * - COUNT ( * )
----
-31122

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT + 44 + + COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-9132
SELECT + 44 + + COUNT ( * ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-9133
SELECT + MAX( - + 69 ) * - + 46 col0, 17
----
3174
17

skipif mysql # not compatible
query II rowsort label-9133
SELECT + MAX ( - + 69 ) * - + 46 col0, 17
----
3174
17

query I rowsort
SELECT ALL 32 - - + ( 78 ) - - + 79
----
189

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9135
SELECT ALL 2 * COALESCE ( - 13, 99 - - 0 * + ( 47 ) + + 8 * 71 DIV + 98 + - 8, + CAST( - 46 AS SIGNED ) )
----
-26

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL 2 * COALESCE ( - 13, 99 - - 0 * + ( 47 ) + + 8 * 71 / + 98 + - 8, + CAST ( - 46 AS INTEGER ) )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT + NULLIF ( - COUNT( * ), - 56 * + - AVG ( + 89 ) - - + 88 ) - + + 96 - 49
----
-146

skipif mysql # not compatible
query I rowsort label-9136
SELECT + NULLIF ( - COUNT ( * ), - 56 * + - AVG ( + 89 ) - - + 88 ) - + + 96 - 49
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT DISTINCT MIN( - 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT MIN ( - 95 ) AS col2
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9138
SELECT ALL - COALESCE ( - - CAST( NULL AS SIGNED ), - + 74 + 7 * + + CASE - - 96 WHEN + + COUNT( + 34 ) THEN - 15 + COUNT( * ) WHEN + 24 * + 28 * - + ( + + 35 ) * - + 99 THEN + 60 + - - 38 END + SUM( + 2 ) * - COUNT( * ), - NULLIF ( 59, + COUNT( * ) ) - + - 35 * - - CASE SUM( ALL - CAST( + - 15 AS SIGNED ) ) WHEN MAX( ALL - 66 ) * + 8 THEN 52 END ) / + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL - COALESCE ( - - CAST ( NULL AS INTEGER ), - + 74 + 7 * + + CASE - - 96 WHEN + + COUNT ( + 34 ) THEN - 15 + COUNT ( * ) WHEN + 24 * + 28 * - + ( + + 35 ) * - + 99 THEN + 60 + - - 38 END + SUM ( + 2 ) * - COUNT ( * ), - NULLIF ( 59, + COUNT ( * ) ) - + - 35 * - - CASE SUM ( ALL - CAST ( + - 15 AS INTEGER ) ) WHEN MAX ( ALL - 66 ) * + 8 THEN 52 END ) / + 85
----
NULL

query I rowsort
SELECT + 90 + - + 41 * - 80 AS col0
----
3370

query I rowsort
SELECT ALL 96 - - + 49
----
145

query II rowsort
SELECT ALL + + 71 - - 71 AS col2, 59 AS col0
----
142
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT + 59 + 29 * - ( - COUNT( * ) ) + + 57 AS col2
----
145

skipif mysql # not compatible
query I rowsort label-9142
SELECT + 59 + 29 * - ( - COUNT ( * ) ) + + 57 AS col2
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9143
SELECT ALL + 3 * 15 + COALESCE ( - 10, - - 0 - + + 20 * + COUNT( * ), + COUNT( DISTINCT + 62 ) + COUNT( * ) DIV - 5 )
----
35

skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL + 3 * 15 + COALESCE ( - 10, - - 0 - + + 20 * + COUNT ( * ), + COUNT ( DISTINCT + 62 ) + COUNT ( * ) / - 5 )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9144
SELECT - 42 - 92 DIV + + 27 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-9144
SELECT - 42 - 92 / + + 27 AS col1
----
-45

query I rowsort
SELECT + + 81 * - + 70 * + + 58 AS col2
----
-328860

query I rowsort
SELECT + 86 + + + 61 + - 16 AS col0
----
131

query II rowsort
SELECT - 55 + - 67 AS col0, 15
----
-122
15

query I rowsort
SELECT DISTINCT + 54 * 80 + + 32 AS col0
----
4352

query I rowsort
SELECT - + 32 + + 19
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9150
SELECT ALL + + 63 DIV - - COUNT( * ) - 39 + + 77 + - + 26 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL + + 63 / - - COUNT ( * ) - 39 + + 77 + - + 26 AS col1
----
75

query I rowsort
SELECT 57 * - 30 + - 46 + + 63
----
-1693

onlyif mysql # DIV for integer division: 
query I rowsort label-9152
SELECT ALL + ( + - 40 ) DIV + + 74
----
0

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL + ( + - 40 ) / + + 74
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9153
SELECT + + CASE 45 WHEN MAX( ALL - + CASE 53 WHEN - 9 / - + 66 THEN NULL ELSE + - 26 * - 25 END ) - + 43 + + 34 THEN CAST( - 28 AS SIGNED ) ELSE 43 END / CAST( NULL AS DECIMAL ) + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT + + CASE 45 WHEN MAX ( ALL - + CASE 53 WHEN - 9 / - + 66 THEN NULL ELSE + - 26 * - 25 END ) - + 43 + + 34 THEN CAST ( - 28 AS INTEGER ) ELSE 43 END / CAST ( NULL AS REAL ) + - 71
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9154
SELECT ALL 50 DIV - 11 + - 37 + + 80 col0
----
39

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL 50 / - 11 + - 37 + + 80 col0
----
39

query II rowsort
SELECT ALL + 22 AS col2, + 56 + 2 AS col0
----
22
58

query II rowsort
SELECT 99 * 19 + 41 - - ( - 3 ) - ( 38 ) + - + 57, - 96 * 76 * - 99 AS col0
----
1824
722304

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT ALL - 89 * - - COUNT( * ) + + - 11 AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL - 89 * - - COUNT ( * ) + + - 11 AS col2
----
-100

query I rowsort
SELECT ALL ( + - 49 ) * 87 + + + 68 AS col0
----
-4195

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT ALL SUM( 60 ) * 30 + + 5 + + 65 + + 78 * - + 31 * + COALESCE ( 40, + + 7 + - - 51 + + 59, - 22 ) - + 2 AS col0
----
-94852

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL SUM ( 60 ) * 30 + + 5 + + 65 + + 78 * - + 31 * + COALESCE ( 40, + + 7 + - - 51 + + 59, - 22 ) - + 2 AS col0
----
-94852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9160
SELECT - CAST( - COUNT( * ) AS SIGNED ) * + - 48
----
-48

skipif mysql # not compatible
query I rowsort label-9160
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * + - 48
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9161
SELECT ALL CAST( - 56 AS SIGNED ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL CAST ( - 56 AS INTEGER ) AS col2
----
-56

query II rowsort
SELECT + 14 + + ( - 58 ), - 46 AS col2
----
-44
-46

query I rowsort
SELECT ALL 11 * - 31 - + 17
----
-358

query I rowsort
SELECT ALL 78 * - 18
----
-1404

onlyif mysql # DIV for integer division: 
query I rowsort label-9165
SELECT 8 DIV + - 86
----
0

skipif mysql # not compatible
query I rowsort label-9165
SELECT 8 / + - 86
----
0

query I rowsort
SELECT - 56 * - 56 AS col2
----
3136

query I rowsort
SELECT 96 + 20 - 71 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT + COUNT( * ) + + + 33 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9168
SELECT + COUNT ( * ) + + + 33 AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9169
SELECT DISTINCT + NULLIF ( 37, + 0 * + CASE - - 69 WHEN SUM( DISTINCT + 5 ) * + + 31 * + + AVG ( ALL - 46 ) * + 8 * - 37 + + CAST( NULL AS SIGNED ) - - MIN( ALL - 91 ) - - - 14 THEN - + 0 * 74 / 50 + + + CAST( + - 64 AS SIGNED ) ELSE - + COUNT( * ) END + 86 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-9169
SELECT DISTINCT + NULLIF ( 37, + 0 * + CASE - - 69 WHEN SUM ( DISTINCT + 5 ) * + + 31 * + + AVG ( ALL - 46 ) * + 8 * - 37 + + CAST ( NULL AS INTEGER ) - - MIN ( ALL - 91 ) - - - 14 THEN - + 0 * 74 / 50 + + + CAST ( + - 64 AS INTEGER ) ELSE - + COUNT ( * ) END + 86 ) AS col1
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-9170
SELECT 45 DIV + - 21 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9170
SELECT 45 / + - 21 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT DISTINCT 58 * + SUM( + 19 ) AS col1
----
1102

skipif mysql # not compatible
query I rowsort label-9171
SELECT DISTINCT 58 * + SUM ( + 19 ) AS col1
----
1102

query II rowsort
SELECT - + 22, + 60 AS col0
----
-22
60

query I rowsort
SELECT - 15 * - 93 + + COALESCE ( 35, + 40 ) AS col2
----
1430

query II rowsort
SELECT 46 AS col2, - 39 * 35
----
46
-1365

query I rowsort
SELECT ALL 3 + + 88
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9176
SELECT - 72 - - ( + + 74 ) + MIN( DISTINCT 47 ) * + + 70 * - CAST( NULL AS SIGNED ) + + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9176
SELECT - 72 - - ( + + 74 ) + MIN ( DISTINCT 47 ) * + + 70 * - CAST ( NULL AS INTEGER ) + + 99 AS col1
----
NULL

query II rowsort
SELECT ALL - ( ( - + 6 ) ), + 71 + + - 25 AS col2
----
6
46

query I rowsort
SELECT ALL - - 59 * 47 col2
----
2773

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9179
SELECT COUNT( * ) DIV 99 - - 80
----
80

skipif mysql # not compatible
query I rowsort label-9179
SELECT COUNT ( * ) / 99 - - 80
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-9180
SELECT ALL 69 + + 20, + ( + + COUNT( * ) ) AS col1
----
89
1

skipif mysql # not compatible
query II rowsort label-9180
SELECT ALL 69 + + 20, + ( + + COUNT ( * ) ) AS col1
----
89
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9181
SELECT ALL - COALESCE ( + ( + 37 ), + - 44 ) AS col0, - COUNT( * ) AS col2
----
-37
-1

skipif mysql # not compatible
query II rowsort label-9181
SELECT ALL - COALESCE ( + ( + 37 ), + - 44 ) AS col0, - COUNT ( * ) AS col2
----
-37
-1

query I rowsort
SELECT 13 * 42 + 84 AS col0
----
630

query I rowsort
SELECT DISTINCT - 31 - + 31
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9184
SELECT ALL - ( + NULLIF ( - 72, ( - CAST( NULL AS SIGNED ) ) * + 45 ) )
----
72

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL - ( + NULLIF ( - 72, ( - CAST ( NULL AS INTEGER ) ) * + 45 ) )
----
72

query I rowsort
SELECT 76 * + - 52 AS col2
----
-3952

query I rowsort
SELECT ALL - 4 * + 80 * 67
----
-21440

query I rowsort
SELECT DISTINCT - 32 - - 39 + - 19
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9188
SELECT ALL - ( - CAST( 47 AS SIGNED ) ) col1
----
47

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL - ( - CAST ( 47 AS INTEGER ) ) col1
----
47

query I rowsort
SELECT DISTINCT 2 - 19 AS col1
----
-17

query I rowsort
SELECT DISTINCT - 59 * - ( + 61 ) * 66
----
237534

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT 75 * COUNT( ALL - - 87 ) * - 69
----
-5175

skipif mysql # not compatible
query I rowsort label-9191
SELECT 75 * COUNT ( ALL - - 87 ) * - 69
----
-5175

onlyif mysql # aggregate syntax: 
query II rowsort label-9192
SELECT 82 + - - 92 AS col0, - COUNT( * )
----
174
-1

skipif mysql # not compatible
query II rowsort label-9192
SELECT 82 + - - 92 AS col0, - COUNT ( * )
----
174
-1

query II rowsort
SELECT + 54 * - - 65 AS col1, - 38
----
3510
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT - CASE - 47 WHEN - + COUNT( * ) THEN 38 WHEN + 87 THEN NULL ELSE - MIN( + + 63 ) END - - 12 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-9194
SELECT - CASE - 47 WHEN - + COUNT ( * ) THEN 38 WHEN + 87 THEN NULL ELSE - MIN ( + + 63 ) END - - 12 AS col2
----
75

query II rowsort
SELECT ALL 7 + - 5, - 91 AS col0
----
2
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9196
SELECT 44 - - COUNT( DISTINCT + 14 ) DIV + 99 + 55 AS col1, - 84 DIV 67 AS col0
----
99
-1

skipif mysql # not compatible
query II rowsort label-9196
SELECT 44 - - COUNT ( DISTINCT + 14 ) / + 99 + 55 AS col1, - 84 / 67 AS col0
----
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9197
SELECT 91 + 73 - + + 76 + 72 DIV + - ( - 2 )
----
124

skipif mysql # not compatible
query I rowsort label-9197
SELECT 91 + 73 - + + 76 + 72 / + - ( - 2 )
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT ALL + 4 * - COUNT( * ) + + ( 95 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL + 4 * - COUNT ( * ) + + ( 95 ) AS col0
----
91

query I rowsort
SELECT DISTINCT - + ( 4 ) + - ( - 21 ) AS col2
----
17

query I rowsort
SELECT ALL + 60 + + - 66 AS col1
----
-6

query I rowsort
SELECT ( - ( 4 ) ) - 57 * + - 49
----
2789

query I rowsort
SELECT + 70 + - 61 * + 30 col0
----
-1760

query II rowsort
SELECT - - ( + + 48 ) col0, + 51
----
48
51

query I rowsort
SELECT DISTINCT - 41 + 18 * - 35 col2
----
-671

query I rowsort
SELECT ALL NULLIF ( + + 11, - 12 ) + + 13 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT 39 + NULLIF ( - ( 29 ), 28 + - 35 + - 48 + - - 50 * 20 + + COUNT( * ) + + SUM( ALL 10 ) * + - 2 ) + + NULLIF ( - + 12, + 72 ) - - 44
----
42

skipif mysql # not compatible
query I rowsort label-9206
SELECT 39 + NULLIF ( - ( 29 ), 28 + - 35 + - 48 + - - 50 * 20 + + COUNT ( * ) + + SUM ( ALL 10 ) * + - 2 ) + + NULLIF ( - + 12, + 72 ) - - 44
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9207
SELECT DISTINCT - - CAST( - 93 AS SIGNED )
----
-93

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT - - CAST ( - 93 AS INTEGER )
----
-93

query I rowsort
SELECT 41 * - + 16
----
-656

onlyif mysql # aggregate syntax: 
query II rowsort label-9209
SELECT + COUNT( * ) AS col2, 95 * - 43 * + COUNT( * ) + + 28
----
1
-4057

skipif mysql # not compatible
query II rowsort label-9209
SELECT + COUNT ( * ) AS col2, 95 * - 43 * + COUNT ( * ) + + 28
----
1
-4057

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9210
SELECT COUNT( * ) DIV - + 77 + - SUM( ALL - + 90 ) DIV + + 15
----
6

skipif mysql # not compatible
query I rowsort label-9210
SELECT COUNT ( * ) / - + 77 + - SUM ( ALL - + 90 ) / + + 15
----
6

query I rowsort
SELECT CASE 31 WHEN 57 + - 21 THEN + + 48 ELSE + 71 END + + 77 AS col0
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-9212
SELECT DISTINCT 44 * + + 92 * + + ( - - 97 ) * + + 96 AS col1, + ( SUM( ALL - 77 ) ) AS col1
----
37694976
-77

skipif mysql # not compatible
query II rowsort label-9212
SELECT DISTINCT 44 * + + 92 * + + ( - - 97 ) * + + 96 AS col1, + ( SUM ( ALL - 77 ) ) AS col1
----
37694976
-77

query I rowsort
SELECT ALL - NULLIF ( 5, - + 43 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9214
SELECT + 53 * - - 51 * - + CAST( NULL AS SIGNED ) * COUNT( * ) * 35 + + 62 / + COUNT( * ) + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT + 53 * - - 51 * - + CAST ( NULL AS INTEGER ) * COUNT ( * ) * 35 + + 62 / + COUNT ( * ) + 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT MAX( DISTINCT + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-9215
SELECT MAX ( DISTINCT + 79 ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT ALL 79 * ( SUM( 12 ) )
----
948

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL 79 * ( SUM ( 12 ) )
----
948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9217
SELECT CAST( + + 87 AS SIGNED ) DIV MAX( + 34 ) + COALESCE ( + + 47, 64 ) + + 92 * - 91 - + MIN( ALL + 27 )
----
-8350

skipif mysql # not compatible
query I rowsort label-9217
SELECT CAST ( + + 87 AS INTEGER ) / MAX ( + 34 ) + COALESCE ( + + 47, 64 ) + + 92 * - 91 - + MIN ( ALL + 27 )
----
-8350

query I rowsort
SELECT DISTINCT 14 * - 6 AS col2
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9219
SELECT - 43 * + 94 * 27 AS col2, - 42 DIV 29 * + 72 * + CAST( COUNT( * ) AS SIGNED ) AS col2
----
-109134
-72

skipif mysql # not compatible
query II rowsort label-9219
SELECT - 43 * + 94 * 27 AS col2, - 42 / 29 * + 72 * + CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-109134
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT - 61 + + 83 + + 87 + + MIN( 22 ) + - + 66 * - - 16 * 2 col0
----
-1981

skipif mysql # not compatible
query I rowsort label-9220
SELECT - 61 + + 83 + + 87 + + MIN ( 22 ) + - + 66 * - - 16 * 2 col0
----
-1981

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT DISTINCT + SUM( + 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-9221
SELECT DISTINCT + SUM ( + 53 ) AS col0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9222
SELECT - 7 DIV 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9222
SELECT - 7 / 50 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9223
SELECT - ( + + 61 ) + + CAST( - ( 1 ) AS SIGNED ) * + 36
----
-97

skipif mysql # not compatible
query I rowsort label-9223
SELECT - ( + + 61 ) + + CAST ( - ( 1 ) AS INTEGER ) * + 36
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9224
SELECT - 48 + - 36 * 74 * + 62 * 22, - COUNT( * ) AS col2
----
-3633744
-1

skipif mysql # not compatible
query II rowsort label-9224
SELECT - 48 + - 36 * 74 * + 62 * 22, - COUNT ( * ) AS col2
----
-3633744
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9225
SELECT DISTINCT - 88 DIV - CASE + 67 WHEN - 63 DIV MIN( - 20 ) + + 2 - + - 6 * - 94 THEN - 68 WHEN + 22 THEN + 42 WHEN 62 * - - COALESCE ( - 63, + - 99 ) THEN - COUNT( * ) WHEN - SUM( - - 14 ) DIV + COALESCE ( 87, CASE - 6 WHEN - 1 THEN 73 WHEN + 2 + - - 23 THEN NULL WHEN 65 THEN 86 WHEN 80 THEN + 17 * + - ( + 17 ) * + - 22 + - ( 10 ) ELSE NULL END ) * + 99 THEN + 9 ELSE - COALESCE ( 77, - 84 DIV COUNT( * ) ) END
----
-1

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT - 88 / - CASE + 67 WHEN - 63 / MIN ( - 20 ) + + 2 - + - 6 * - 94 THEN - 68 WHEN + 22 THEN + 42 WHEN 62 * - - COALESCE ( - 63, + - 99 ) THEN - COUNT ( * ) WHEN - SUM ( - - 14 ) / + COALESCE ( 87, CASE - 6 WHEN - 1 THEN 73 WHEN + 2 + - - 23 THEN NULL WHEN 65 THEN 86 WHEN 80 THEN + 17 * + - ( + 17 ) * + - 22 + - ( 10 ) ELSE NULL END ) * + 99 THEN + 9 ELSE - COALESCE ( 77, - 84 / COUNT ( * ) ) END
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9226
SELECT ALL - ( + 16 ) + + - CAST( + 21 AS SIGNED ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL - ( + 16 ) + + - CAST ( + 21 AS INTEGER ) AS col0
----
-37

query I rowsort
SELECT ALL - + 68 + + - 0 AS col2
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9228
SELECT ALL + + 5 DIV - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL + + 5 / - COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT DISTINCT - + COUNT( * ) + - SUM( + 56 )
----
-57

skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT - + COUNT ( * ) + - SUM ( + 56 )
----
-57

query I rowsort
SELECT ALL COALESCE ( + 89, 36 )
----
89

query I rowsort
SELECT - + 69 * - 85 AS col1
----
5865

query I rowsort
SELECT DISTINCT - 31 + 86
----
55

query I rowsort
SELECT + 24 + + 11
----
35

query I rowsort
SELECT - 51 - - ( + - 45 ) + + + 4 * + 60
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9235
SELECT - 28 - - 21 * - COUNT( * ) + - COALESCE ( 74, - - 60 ) DIV + COUNT( * ) + - 38 DIV - ( 21 ) + - - 39 DIV - 1 col0
----
-161

skipif mysql # not compatible
query I rowsort label-9235
SELECT - 28 - - 21 * - COUNT ( * ) + - COALESCE ( 74, - - 60 ) / + COUNT ( * ) + - 38 / - ( 21 ) + - - 39 / - 1 col0
----
-161

query II rowsort
SELECT ALL 18, - 32 AS col0
----
18
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9237
SELECT + CASE CAST( NULL AS SIGNED ) WHEN - - CAST( - COUNT( * ) AS DECIMAL ) THEN + - 46 WHEN CASE - CAST( 98 AS SIGNED ) WHEN + 56 + - NULLIF ( 28, + COUNT( * ) * 72 - - 70 - + ( + + 73 ) ) THEN - 51 + - COUNT( * ) END THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9237
SELECT + CASE CAST ( NULL AS INTEGER ) WHEN - - CAST ( - COUNT ( * ) AS REAL ) THEN + - 46 WHEN CASE - CAST ( 98 AS INTEGER ) WHEN + 56 + - NULLIF ( 28, + COUNT ( * ) * 72 - - 70 - + ( + + 73 ) ) THEN - 51 + - COUNT ( * ) END THEN NULL END AS col1
----
NULL

query II rowsort
SELECT ( + 55 ), 81 AS col0
----
55
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9239
SELECT + COUNT( * ) * - + COALESCE ( + 43, - 51 DIV + ( + 9 ), - 19 * - 10 ) * + NULLIF ( + 28, - + 74 ) * - 93 * - + 23 - - 44
----
-2575312

skipif mysql # not compatible
query I rowsort label-9239
SELECT + COUNT ( * ) * - + COALESCE ( + 43, - 51 / + ( + 9 ), - 19 * - 10 ) * + NULLIF ( + 28, - + 74 ) * - 93 * - + 23 - - 44
----
-2575312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9240
SELECT + CAST( - - MAX( 85 ) AS SIGNED ) * + CAST( - 33 AS SIGNED ) * - 58
----
162690

skipif mysql # not compatible
query I rowsort label-9240
SELECT + CAST ( - - MAX ( 85 ) AS INTEGER ) * + CAST ( - 33 AS INTEGER ) * - 58
----
162690

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9241
SELECT ALL + 27 AS col0, + 96 + + 43 * - CAST( + 91 AS SIGNED ) - + 25 AS col1
----
27
-3842

skipif mysql # not compatible
query II rowsort label-9241
SELECT ALL + 27 AS col0, + 96 + + 43 * - CAST ( + 91 AS INTEGER ) - + 25 AS col1
----
27
-3842

query II rowsort
SELECT ALL + 66 AS col1, - 89 * - 21
----
66
1869

query I rowsort
SELECT + 67 * + 19
----
1273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9244
SELECT ALL COUNT( * ) DIV + - 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL COUNT ( * ) / + - 50 AS col2
----
0

query I rowsort
SELECT ( ( + 35 ) )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9246
SELECT CASE - + 12 WHEN + 57 THEN + 89 ELSE NULL END, + 67 * + 4 - + - 53 + - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9246
SELECT CASE - + 12 WHEN + 57 THEN + 89 ELSE NULL END, + 67 * + 4 - + - 53 + - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT + COALESCE ( + MIN( DISTINCT - + 83 ), - + 25 + + 28 * - 24, - COUNT( * ) ) * + - 51 AS col1
----
4233

skipif mysql # not compatible
query I rowsort label-9247
SELECT + COALESCE ( + MIN ( DISTINCT - + 83 ), - + 25 + + 28 * - 24, - COUNT ( * ) ) * + - 51 AS col1
----
4233

query I rowsort
SELECT + 37 * 61
----
2257

query I rowsort
SELECT ALL - 49 * + 85 + + + 88 - - - 66 * - + 61 * + + 63 * - + 98
----
-24860601

query I rowsort
SELECT ALL 90 * + 36 col0
----
3240

query II rowsort
SELECT + + 97 col1, + 64
----
97
64

query I rowsort
SELECT ALL + 32 * + 20 + - 72 + - 73
----
495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9253
SELECT + 12 + - CAST( NULL AS SIGNED ) * + COUNT( + 2 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9253
SELECT + 12 + - CAST ( NULL AS INTEGER ) * + COUNT ( + 2 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT - 81 * - + NULLIF ( - 45, NULLIF ( 28, + + ( - ( 1 ) ) * 48 + + + CASE - AVG ( + 64 ) WHEN - + 61 THEN AVG ( ALL + 43 ) END ) * 84 * + ( 74 ) * - 51 * - - 51 - - + CASE - - 41 WHEN + 54 THEN - AVG ( DISTINCT + - 71 ) WHEN + 24 + + COUNT( 87 ) / + ( + + 67 ) THEN NULL END + + NULLIF ( COUNT( * ), + COUNT( * ) ) - - ( + - SUM( DISTINCT + 10 ) ) * 77 + NULLIF ( + 24, + 58 * 48 ) ) * COUNT( * )
----
-3645

skipif mysql # not compatible
query I rowsort label-9254
SELECT - 81 * - + NULLIF ( - 45, NULLIF ( 28, + + ( - ( 1 ) ) * 48 + + + CASE - AVG ( + 64 ) WHEN - + 61 THEN AVG ( ALL + 43 ) END ) * 84 * + ( 74 ) * - 51 * - - 51 - - + CASE - - 41 WHEN + 54 THEN - AVG ( DISTINCT + - 71 ) WHEN + 24 + + COUNT ( 87 ) / + ( + + 67 ) THEN NULL END + + NULLIF ( COUNT ( * ), + COUNT ( * ) ) - - ( + - SUM ( DISTINCT + 10 ) ) * 77 + NULLIF ( + 24, + 58 * 48 ) ) * COUNT ( * )
----
-3645

query II rowsort
SELECT 97 AS col0, 75
----
97
75

query I rowsort
SELECT + 25 + - + 89
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9257
SELECT ALL 23, NULLIF ( 31, COUNT( * ) + + - 30 ) * - 35 + + - CASE + 29 WHEN + ( 29 ) THEN CASE + COUNT( * ) WHEN - COUNT( * ) * + 26 THEN + + CAST( 43 AS SIGNED ) - - + 31 ELSE - + COUNT( * ) * 87 END - + - 10 END AS col0
----
23
-1008

skipif mysql # not compatible
query II rowsort label-9257
SELECT ALL 23, NULLIF ( 31, COUNT ( * ) + + - 30 ) * - 35 + + - CASE + 29 WHEN + ( 29 ) THEN CASE + COUNT ( * ) WHEN - COUNT ( * ) * + 26 THEN + + CAST ( 43 AS INTEGER ) - - + 31 ELSE - + COUNT ( * ) * 87 END - + - 10 END AS col0
----
23
-1008

query I rowsort
SELECT + 39 + - - ( - - 57 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9259
SELECT + + COUNT( * ) * CAST( NULL AS SIGNED ) - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-9259
SELECT + + COUNT ( * ) * CAST ( NULL AS INTEGER ) - 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9260
SELECT + CAST( - 46 AS SIGNED ) + - NULLIF ( - MIN( DISTINCT 53 ), + + ( MIN( DISTINCT - 81 ) ) ) + NULLIF ( - 90, 30 / ( 38 ) * - 73 + 88 + + 58 + - NULLIF ( 50, 92 ) + 81 ) col1
----
-83

skipif mysql # not compatible
query I rowsort label-9260
SELECT + CAST ( - 46 AS INTEGER ) + - NULLIF ( - MIN ( DISTINCT 53 ), + + ( MIN ( DISTINCT - 81 ) ) ) + NULLIF ( - 90, 30 / ( 38 ) * - 73 + 88 + + 58 + - NULLIF ( 50, 92 ) + 81 ) col1
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9261
SELECT - 66 * + + CAST( 36 AS SIGNED ) col2
----
-2376

skipif mysql # not compatible
query I rowsort label-9261
SELECT - 66 * + + CAST ( 36 AS INTEGER ) col2
----
-2376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9262
SELECT ALL - COUNT( ALL 66 ) DIV + 19
----
0

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL - COUNT ( ALL 66 ) / + 19
----
0

query II rowsort
SELECT - + ( + + 47 ) + + 95 + + 21 AS col2, 75 * - 97 AS col1
----
69
-7275

query I rowsort
SELECT DISTINCT + 50 * - 59
----
-2950

onlyif mysql # DIV for integer division: 
query II rowsort label-9265
SELECT + 52 col1, - 3 DIV 95
----
52
0

skipif mysql # not compatible
query II rowsort label-9265
SELECT + 52 col1, - 3 / 95
----
52
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT - + 22 + CASE + COUNT( * ) WHEN + 44 * - COALESCE ( 48, COUNT( * ) ) THEN 25 WHEN - 19 THEN + COUNT( * ) / - + NULLIF ( + + 87, - 8 ) - 35 END * - + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9266
SELECT - + 22 + CASE + COUNT ( * ) WHEN + 44 * - COALESCE ( 48, COUNT ( * ) ) THEN 25 WHEN - 19 THEN + COUNT ( * ) / - + NULLIF ( + + 87, - 8 ) - 35 END * - + 91 AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( - 85, - - 19 ) + + 64 + - 8
----
-29

query I rowsort
SELECT ALL + 45 * - 54
----
-2430

onlyif mysql # aggregate syntax: 
query II rowsort label-9269
SELECT - COUNT( * ) * COUNT( * ) AS col0, 72 AS col2
----
-1
72

skipif mysql # not compatible
query II rowsort label-9269
SELECT - COUNT ( * ) * COUNT ( * ) AS col0, 72 AS col2
----
-1
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT - 4 + - + COUNT( * ) + - 65 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-9270
SELECT - 4 + - + COUNT ( * ) + - 65 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT - 10 + 53 + + + SUM( - 68 ) + - 7 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-9271
SELECT - 10 + 53 + + + SUM ( - 68 ) + - 7 AS col1
----
-32

query I rowsort
SELECT ALL ( + NULLIF ( + 40, AVG ( DISTINCT - 74 ) + + + 72 ) )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT - 74 + COUNT( * ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-9273
SELECT - 74 + COUNT ( * ) AS col1
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9274
SELECT DISTINCT - NULLIF ( - COUNT( - CAST( + + 52 AS SIGNED ) ), - 98 )
----
1

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT - NULLIF ( - COUNT ( - CAST ( + + 52 AS INTEGER ) ), - 98 )
----
1

query I rowsort
SELECT DISTINCT - 73 + + 14 + + + 46 * - 79
----
-3693

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9276
SELECT ALL - ( + + 16 ), + COALESCE ( - 51, + CAST( + 88 AS SIGNED ) DIV ( 6 ), 23 ) AS col2
----
-16
-51

skipif mysql # not compatible
query II rowsort label-9276
SELECT ALL - ( + + 16 ), + COALESCE ( - 51, + CAST ( + 88 AS INTEGER ) / ( 6 ), 23 ) AS col2
----
-16
-51

query I rowsort
SELECT ALL - 55 + 99
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT DISTINCT + COUNT( * ) * + - 63 * + - 45 AS col1
----
2835

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT + COUNT ( * ) * + - 63 * + - 45 AS col1
----
2835

onlyif mysql # DIV for integer division: 
query I rowsort label-9279
SELECT 85 * 37 DIV + 2
----
1572

skipif mysql # not compatible
query I rowsort label-9279
SELECT 85 * 37 / + 2
----
1572

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT ALL COUNT( * ) + ( - 77 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL COUNT ( * ) + ( - 77 ) AS col0
----
-76

query I rowsort
SELECT ALL 78 + + 29 + + - 94
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT ALL - COUNT( - - 59 ) * - 7 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL - COUNT ( - - 59 ) * - 7 AS col0
----
7

query I rowsort
SELECT DISTINCT + 29 + + 54 AS col1
----
83

query I rowsort
SELECT ALL + 97 + - 54 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT - MAX( 44 ) + + MIN( - - 16 )
----
-28

skipif mysql # not compatible
query I rowsort label-9285
SELECT - MAX ( 44 ) + + MIN ( - - 16 )
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9286
SELECT COUNT( * ) DIV - + 31 * + ( - - 64 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9286
SELECT COUNT ( * ) / - + 31 * + ( - - 64 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT ALL - MIN( ALL - 83 ) col2
----
83

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL - MIN ( ALL - 83 ) col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9288
SELECT ( CAST( NULL AS SIGNED ) ) * + 54 + - 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9288
SELECT ( CAST ( NULL AS INTEGER ) ) * + 54 + - 26 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT ALL + MAX( ALL - - 15 ) * + - 0 * 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL + MAX ( ALL - - 15 ) * + - 0 * 47 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9290
SELECT CAST( 7 AS SIGNED ) * + - 70
----
-490

skipif mysql # not compatible
query I rowsort label-9290
SELECT CAST ( 7 AS INTEGER ) * + - 70
----
-490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9291
SELECT DISTINCT 24 * + CASE + 50 WHEN - 69 * 84 - - 1 * 57 - AVG ( 29 ) THEN NULL WHEN + 21 THEN - 36 ELSE - - CAST( NULL AS SIGNED ) END + - COUNT( * ) - - + 24 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9291
SELECT DISTINCT 24 * + CASE + 50 WHEN - 69 * 84 - - 1 * 57 - AVG ( 29 ) THEN NULL WHEN + 21 THEN - 36 ELSE - - CAST ( NULL AS INTEGER ) END + - COUNT ( * ) - - + 24 + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9292
SELECT ALL - ( COALESCE ( 91, - 42 + + - 3 * - + CAST( NULL AS SIGNED ) - 62 + + 54 DIV + SUM( ALL + - 70 ) ) )
----
-91

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL - ( COALESCE ( 91, - 42 + + - 3 * - + CAST ( NULL AS INTEGER ) - 62 + + 54 / + SUM ( ALL + - 70 ) ) )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT ALL COUNT( * ) * - ( - ( - - CASE - - ( + 29 ) WHEN - - 57 THEN - - 68 + + COUNT( * ) END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL COUNT ( * ) * - ( - ( - - CASE - - ( + 29 ) WHEN - - 57 THEN - - 68 + + COUNT ( * ) END ) )
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + 17, 85 )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9295
SELECT - SUM( - 97 ), - MAX( ALL + 96 ) AS col1
----
97
-96

skipif mysql # not compatible
query II rowsort label-9295
SELECT - SUM ( - 97 ), - MAX ( ALL + 96 ) AS col1
----
97
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9296
SELECT + 48 * - 90 * - COALESCE ( + MAX( DISTINCT - - 95 ), COALESCE ( - 52, + 51, 37 ) DIV - 74 + 85 )
----
410400

skipif mysql # not compatible
query I rowsort label-9296
SELECT + 48 * - 90 * - COALESCE ( + MAX ( DISTINCT - - 95 ), COALESCE ( - 52, + 51, 37 ) / - 74 + 85 )
----
410400

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT + COUNT( * ) + - 11 * + 26 * - 90
----
25741

skipif mysql # not compatible
query I rowsort label-9297
SELECT + COUNT ( * ) + - 11 * + 26 * - 90
----
25741

onlyif mysql # aggregate syntax: 
query II rowsort label-9298
SELECT 87 AS col0, - 2 * - ( - - COALESCE ( + 7, - 9 - + - 74, 39 * COUNT( * ) ) )
----
87
14

skipif mysql # not compatible
query II rowsort label-9298
SELECT 87 AS col0, - 2 * - ( - - COALESCE ( + 7, - 9 - + - 74, 39 * COUNT ( * ) ) )
----
87
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9299
SELECT 70 * + - COUNT( * ) * + 14, - COUNT( * ) DIV + 92 DIV + 28 AS col2
----
-980
0

skipif mysql # not compatible
query II rowsort label-9299
SELECT 70 * + - COUNT ( * ) * + 14, - COUNT ( * ) / + 92 / + 28 AS col2
----
-980
0

query II rowsort
SELECT ALL 68, + 95 AS col0
----
68
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9301
SELECT DISTINCT 21 DIV - 46 * - CASE + 59 WHEN + 2 - + 32 THEN NULL WHEN - 52 THEN NULL ELSE + ( - 51 ) * - COUNT( * ) + 92 END * NULLIF ( + 57, 69 )
----
0

skipif mysql # not compatible
query I rowsort label-9301
SELECT DISTINCT 21 / - 46 * - CASE + 59 WHEN + 2 - + 32 THEN NULL WHEN - 52 THEN NULL ELSE + ( - 51 ) * - COUNT ( * ) + 92 END * NULLIF ( + 57, 69 )
----
0

query I rowsort
SELECT DISTINCT 98 + - 98
----
0

query I rowsort
SELECT ALL 56 * - - 46
----
2576

query I rowsort
SELECT ALL + 14 * - 21
----
-294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9305
SELECT CAST( - - 28 AS SIGNED ) * 92
----
2576

skipif mysql # not compatible
query I rowsort label-9305
SELECT CAST ( - - 28 AS INTEGER ) * 92
----
2576

query II rowsort
SELECT - 38 AS col2, 49 + - 91
----
-38
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT 78 * - + NULLIF ( + 58, - MIN( 19 ) + + 98 ) * 35 + + 83 AS col2
----
-158257

skipif mysql # not compatible
query I rowsort label-9307
SELECT 78 * - + NULLIF ( + 58, - MIN ( 19 ) + + 98 ) * 35 + + 83 AS col2
----
-158257

query I rowsort
SELECT DISTINCT - 42 + - + 40
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT DISTINCT + 97 + 22 + - - COUNT( * ) AS col1
----
120

skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT + 97 + 22 + - - COUNT ( * ) AS col1
----
120

query I rowsort
SELECT DISTINCT + 42 + + - 9
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9311
SELECT ALL - ( - 94 ) * 59 DIV - 16
----
-346

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL - ( - 94 ) * 59 / - 16
----
-346

query I rowsort
SELECT 30 + 67 - + ( - 95 ) AS col1
----
192

query I rowsort
SELECT ALL + 24 + 67 AS col0
----
91

query II rowsort
SELECT DISTINCT - 68, 18 AS col2
----
-68
18

onlyif mysql # aggregate syntax: 
query II rowsort label-9315
SELECT CASE - MAX( ALL - 51 ) WHEN - 0 THEN ( - 7 ) * 97 * - 8 - + 42 WHEN - 2 THEN 0 END, COUNT( * ) - - 69 + - - MIN( + 46 ) + + SUM( DISTINCT 52 ) * 53 AS col1
----
NULL
2872

skipif mysql # not compatible
query II rowsort label-9315
SELECT CASE - MAX ( ALL - 51 ) WHEN - 0 THEN ( - 7 ) * 97 * - 8 - + 42 WHEN - 2 THEN 0 END, COUNT ( * ) - - 69 + - - MIN ( + 46 ) + + SUM ( DISTINCT 52 ) * 53 AS col1
----
NULL
2872

query I rowsort
SELECT 14 * + 40 AS col2
----
560

onlyif mysql # aggregate syntax: 
query II rowsort label-9317
SELECT + COUNT( DISTINCT + 87 ) * + 86 AS col1, + 14 AS col2
----
86
14

skipif mysql # not compatible
query II rowsort label-9317
SELECT + COUNT ( DISTINCT + 87 ) * + 86 AS col1, + 14 AS col2
----
86
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9318
SELECT ALL - - 86 * CAST( - ( + + 3 ) AS SIGNED ) AS col2
----
-258

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL - - 86 * CAST ( - ( + + 3 ) AS INTEGER ) AS col2
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT + COUNT( * ) * 58 * 46
----
2668

skipif mysql # not compatible
query I rowsort label-9319
SELECT + COUNT ( * ) * 58 * 46
----
2668

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9320
SELECT ALL - CAST( NULL AS DECIMAL ) * - + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL - CAST ( NULL AS REAL ) * - + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT 5 * + 45 - + + 60 + - MAX( ALL - + 99 ) + 54
----
318

skipif mysql # not compatible
query I rowsort label-9321
SELECT 5 * + 45 - + + 60 + - MAX ( ALL - + 99 ) + 54
----
318

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9322
SELECT DISTINCT - - 44 * 70 + + COUNT( * ), + 51 DIV - 14 AS col2
----
3081
-3

skipif mysql # not compatible
query II rowsort label-9322
SELECT DISTINCT - - 44 * 70 + + COUNT ( * ), + 51 / - 14 AS col2
----
3081
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-9323
SELECT ALL + + 81 * 5 DIV + 9, NULLIF ( + 10, - 26 ) + 14 * - COALESCE ( + 85, + - 64 ) AS col1
----
45
-1180

skipif mysql # not compatible
query II rowsort label-9323
SELECT ALL + + 81 * 5 / + 9, NULLIF ( + 10, - 26 ) + 14 * - COALESCE ( + 85, + - 64 ) AS col1
----
45
-1180

onlyif mysql # DIV for integer division: 
query I rowsort label-9324
SELECT ALL 87 DIV - 80 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL 87 / - 80 AS col1
----
-1

query II rowsort
SELECT DISTINCT - - 31 AS col1, 6
----
31
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9326
SELECT DISTINCT - ( + - ( + + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9326
SELECT DISTINCT - ( + - ( + + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT 93 + - - 87 AS col1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT + CASE + 82 WHEN - - 61 THEN + 41 END * - COUNT( * ) * + 93 - 18 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT + CASE + 82 WHEN - - 61 THEN + 41 END * - COUNT ( * ) * + 93 - 18 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9329
SELECT ALL - NULLIF ( + 70, - 68 ) DIV + 36
----
-1

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL - NULLIF ( + 70, - 68 ) / + 36
----
-1

query I rowsort
SELECT + 23 + 25 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT + 37 + COALESCE ( - - COUNT( * ), + COUNT( * ), + 71 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-9331
SELECT + 37 + COALESCE ( - - COUNT ( * ), + COUNT ( * ), + 71 ) AS col1
----
38

query I rowsort
SELECT - NULLIF ( 45, + + 84 - + COALESCE ( + 49, - 54 ) ) AS col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9333
SELECT ALL + + 27 + 52 + - + 54 * + CAST( NULL AS SIGNED ) / 83 / 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL + + 27 + 52 + - + 54 * + CAST ( NULL AS INTEGER ) / 83 / 42
----
NULL

query I rowsort
SELECT ALL 63 + 61 AS col1
----
124

query I rowsort
SELECT ALL 80 * 81
----
6480

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT ALL COUNT( * ) + - ( - + 34 )
----
35

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL COUNT ( * ) + - ( - + 34 )
----
35

query I rowsort
SELECT + ( + 7 ) + + 77 AS col1
----
84

query I rowsort
SELECT DISTINCT 15 * 15
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT DISTINCT 74 + + COUNT( * ) * + 52
----
126

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT 74 + + COUNT ( * ) * + 52
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT + 39 + + 16 * COUNT( * ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-9340
SELECT + 39 + + 16 * COUNT ( * ) AS col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9341
SELECT - NULLIF ( + 40, + CAST( NULL AS SIGNED ) )
----
-40

skipif mysql # not compatible
query I rowsort label-9341
SELECT - NULLIF ( + 40, + CAST ( NULL AS INTEGER ) )
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-9342
SELECT ALL COUNT( * ) + 36 - - 35 - 1 * - 8 * 72 * - 98 AS col0, 76 AS col2
----
-56376
76

skipif mysql # not compatible
query II rowsort label-9342
SELECT ALL COUNT ( * ) + 36 - - 35 - 1 * - 8 * 72 * - 98 AS col0, 76 AS col2
----
-56376
76

query I rowsort
SELECT ALL 3 + + - 94 AS col1
----
-91

query I rowsort
SELECT - NULLIF ( - 9, 12 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-9345
SELECT ALL COUNT( DISTINCT + 60 ) AS col1, 9 + 77 * - 5
----
1
-376

skipif mysql # not compatible
query II rowsort label-9345
SELECT ALL COUNT ( DISTINCT + 60 ) AS col1, 9 + 77 * - 5
----
1
-376

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT 47 * - COALESCE ( - - 17, - - 82 - + 95 + + ( + - 43 ), - 45 * + - 24 + + COUNT( * ) ) + + 78 AS col0
----
-721

skipif mysql # not compatible
query I rowsort label-9346
SELECT 47 * - COALESCE ( - - 17, - - 82 - + 95 + + ( + - 43 ), - 45 * + - 24 + + COUNT ( * ) ) + + 78 AS col0
----
-721

query I rowsort
SELECT - 31 * + - 43
----
1333

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT ALL + COUNT( * ) * - - ( - + 19 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL + COUNT ( * ) * - - ( - + 19 ) AS col0
----
-19

query I rowsort
SELECT + 43 + - + 57 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9350
SELECT - + COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT - + COUNT ( * ) * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9351
SELECT - - 61 + + ( + + 61 ) DIV - 36 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-9351
SELECT - - 61 + + ( + + 61 ) / - 36 AS col0
----
60

query I rowsort
SELECT + + ( - 9 ) AS col2
----
-9

query I rowsort
SELECT ALL + + ( 59 ) col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT ALL - - 66 * MIN( + 22 ) AS col1
----
1452

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL - - 66 * MIN ( + 22 ) AS col1
----
1452

query I rowsort
SELECT DISTINCT - 27 * 28 * + - 36
----
27216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9356
SELECT DISTINCT - 61 * + - 43 + 74 + - 85 + - 86 + + + ( + - 63 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT - 61 * + - 43 + 74 + - 85 + - 86 + + + ( + - 63 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT ALL + + COUNT( * ) * + 46 + + 90 + 16 * 83 * 18 AS col0
----
24040

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL + + COUNT ( * ) * + 46 + + 90 + 16 * 83 * 18 AS col0
----
24040

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL 74 * - SUM( ALL + - 40 ) + + - COUNT( * ) + - MAX( + 18 ) * - 44 - + 60 + + 4 * + NULLIF ( - 52, + 21 * 95 * ( + 64 ) * - MIN( DISTINCT 23 ) )
----
3483

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL 74 * - SUM ( ALL + - 40 ) + + - COUNT ( * ) + - MAX ( + 18 ) * - 44 - + 60 + + 4 * + NULLIF ( - 52, + 21 * 95 * ( + 64 ) * - MIN ( DISTINCT 23 ) )
----
3483

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT ALL - 32 * MAX( DISTINCT 3 )
----
-96

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL - 32 * MAX ( DISTINCT 3 )
----
-96

query I rowsort
SELECT DISTINCT ( + - 34 ) AS col0
----
-34

query I rowsort
SELECT ALL + 59 + 8
----
67

query I rowsort
SELECT - NULLIF ( - + 43, - 56 ) * + 26 AS col0
----
1118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9363
SELECT - 15 * - MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col1, + 96
----
NULL
96

skipif mysql # not compatible
query II rowsort label-9363
SELECT - 15 * - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1, + 96
----
NULL
96

query I rowsort
SELECT DISTINCT 62 * - 13 AS col0
----
-806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9365
SELECT DISTINCT + 42 + 64 / + 69 * + + CASE + 69 WHEN + 21 THEN + COUNT( * ) END * - 7 * - 45 * CAST( - 33 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9365
SELECT DISTINCT + 42 + 64 / + 69 * + + CASE + 69 WHEN + 21 THEN + COUNT ( * ) END * - 7 * - 45 * CAST ( - 33 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT ALL MIN( ALL + 37 ) * 30 - + 40
----
1070

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL MIN ( ALL + 37 ) * 30 - + 40
----
1070

query I rowsort
SELECT DISTINCT - 78 - 70
----
-148

query I rowsort
SELECT + 55 * - 93
----
-5115

query I rowsort
SELECT + 19 * - 80 * + 39 AS col2
----
-59280

onlyif mysql # DIV for integer division: 
query I rowsort label-9370
SELECT DISTINCT 24 DIV 5 + + - 20 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT 24 / 5 + + - 20 AS col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-9371
SELECT + + 5 DIV - 21 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9371
SELECT + + 5 / - 21 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9372
SELECT ALL + - COUNT( * ) * 38 * + 12 - ( - - 0 ) AS col2, - 37 * COUNT( * ) * 88 * + NULLIF ( - ( ( - 25 ) ), - 48 - - 69 * + ( + + 99 ) - + 40 + - COUNT( * ) ) AS col0
----
-456
-81400

skipif mysql # not compatible
query II rowsort label-9372
SELECT ALL + - COUNT ( * ) * 38 * + 12 - ( - - 0 ) AS col2, - 37 * COUNT ( * ) * 88 * + NULLIF ( - ( ( - 25 ) ), - 48 - - 69 * + ( + + 99 ) - + 40 + - COUNT ( * ) ) AS col0
----
-456
-81400

query I rowsort
SELECT + + 88 * + 17 + - 15
----
1481

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9374
SELECT DISTINCT - CAST( + - 25 AS SIGNED ) DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-9374
SELECT DISTINCT - CAST ( + - 25 AS INTEGER ) / 96
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9375
SELECT DISTINCT 91 DIV + + COUNT( * ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT 91 / + + COUNT ( * ) AS col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9376
SELECT - + 39 DIV + 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9376
SELECT - + 39 / + 69 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9377
SELECT + 78 * + 58 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9377
SELECT + 78 * + 58 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT - + 14 * + ( - 32 ), 58 AS col2
----
448
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9379
SELECT + 66 AS col1, - COALESCE ( COUNT( * ), - + 2 * - - 31 - 5, + - 49 + + - 57 * + 60 )
----
66
-1

skipif mysql # not compatible
query II rowsort label-9379
SELECT + 66 AS col1, - COALESCE ( COUNT ( * ), - + 2 * - - 31 - 5, + - 49 + + - 57 * + 60 )
----
66
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT ALL + MIN( 94 ) * 14 + + COUNT( * )
----
1317

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL + MIN ( 94 ) * 14 + + COUNT ( * )
----
1317

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT DISTINCT - MAX( ALL 82 ) * 99 * + + 12 AS col0
----
-97416

skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT - MAX ( ALL 82 ) * 99 * + + 12 AS col0
----
-97416

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT ALL - 17 + - + ( + COUNT( * ) ) * 34 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL - 17 + - + ( + COUNT ( * ) ) * 34 AS col1
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9383
SELECT DISTINCT + - CASE - + 87 WHEN 73 * - 56 + + + COUNT( ALL + 80 ) THEN NULL WHEN - + NULLIF ( NULLIF ( + COUNT( * ), + 79 * + - ( - ( - 66 ) ) ), - - 38 + - 47 + - 13 * 93 + 30 * + 35 + - SUM( - CAST( - 87 AS SIGNED ) ) ) + - + 98 THEN - 77 END + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-9383
SELECT DISTINCT + - CASE - + 87 WHEN 73 * - 56 + + + COUNT ( ALL + 80 ) THEN NULL WHEN - + NULLIF ( NULLIF ( + COUNT ( * ), + 79 * + - ( - ( - 66 ) ) ), - - 38 + - 47 + - 13 * 93 + 30 * + 35 + - SUM ( - CAST ( - 87 AS INTEGER ) ) ) + - + 98 THEN - 77 END + - 70
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 51, 25 )
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9385
SELECT ALL - 27 + - 47 + 82 + - 90 + + CAST( NULL AS SIGNED ) + + 44 / - 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL - 27 + - 47 + 82 + - 90 + + CAST ( NULL AS INTEGER ) + + 44 / - 71 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT 76 + 11 * - - 52 * + 2 * CASE + 71 WHEN + 63 - - + COUNT( * ) * + 64 THEN 97 ELSE 10 END + + 90 + COALESCE ( 68, + 38 ) + - + ( 44 )
----
11630

skipif mysql # not compatible
query I rowsort label-9386
SELECT 76 + 11 * - - 52 * + 2 * CASE + 71 WHEN + 63 - - + COUNT ( * ) * + 64 THEN 97 ELSE 10 END + + 90 + COALESCE ( 68, + 38 ) + - + ( 44 )
----
11630

query I rowsort
SELECT 55 * 12 * - 58 * 22 - 68 AS col0
----
-842228

query I rowsort
SELECT 85 + + 17 AS col1
----
102

query I rowsort
SELECT 21 - - 48 AS col2
----
69

query I rowsort
SELECT ALL + 55 * - + ( + 53 ) AS col0
----
-2915

query II rowsort
SELECT 10 AS col0, - 65
----
10
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT ALL + ( ( + COUNT( * ) ) ) - - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL + ( ( + COUNT ( * ) ) ) - - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9393
SELECT 11 + + + SUM( DISTINCT 83 ) DIV COALESCE ( SUM( + 83 ), - - AVG ( - 57 ) + - 8, - 35 ) * + + 91 + + COUNT( * ) AS col1
----
103

skipif mysql # not compatible
query I rowsort label-9393
SELECT 11 + + + SUM ( DISTINCT 83 ) / COALESCE ( SUM ( + 83 ), - - AVG ( - 57 ) + - 8, - 35 ) * + + 91 + + COUNT ( * ) AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT ALL + COUNT( ALL - 65 ) * - 4 * MAX( CASE + 90 WHEN + - 41 THEN 5 + 91 / + 29 WHEN 33 THEN - 94 ELSE NULL END ) + + 44 * SUM( DISTINCT + 6 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL + COUNT ( ALL - 65 ) * - 4 * MAX ( CASE + 90 WHEN + - 41 THEN 5 + 91 / + 29 WHEN 33 THEN - 94 ELSE NULL END ) + + 44 * SUM ( DISTINCT + 6 ) col1
----
NULL

query II rowsort
SELECT ALL 31 AS col2, - 79 + 78 AS col0
----
31
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9396
SELECT DISTINCT CAST( NULL AS SIGNED ) - - COALESCE ( - + 73, - COUNT( * ) - - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - COALESCE ( - + 73, - COUNT ( * ) - - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT COUNT( * ) + + - 4 - - 17
----
14

skipif mysql # not compatible
query I rowsort label-9397
SELECT COUNT ( * ) + + - 4 - - 17
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9398
SELECT 1 DIV + 9 * - - COALESCE ( - 42, 63 )
----
0

skipif mysql # not compatible
query I rowsort label-9398
SELECT 1 / + 9 * - - COALESCE ( - 42, 63 )
----
0

query I rowsort
SELECT COALESCE ( ( + - 49 ), + 66 ) * - 13
----
637

query I rowsort
SELECT 39 + - + 28 AS col0
----
11

query I rowsort
SELECT DISTINCT + ( + 61 ) - + + 27
----
34

query II rowsort
SELECT DISTINCT 48 AS col2, 35
----
48
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9403
SELECT 26 DIV + ( 30 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9403
SELECT 26 / + ( 30 ) AS col1
----
0

query I rowsort
SELECT 35 * + ( 6 )
----
210

onlyif mysql # aggregate syntax: 
query II rowsort label-9405
SELECT DISTINCT 9, COUNT( * ) - - 8 + + COALESCE ( 78, 73 ) * COUNT( - 12 ) + + 86 AS col0
----
9
173

skipif mysql # not compatible
query II rowsort label-9405
SELECT DISTINCT 9, COUNT ( * ) - - 8 + + COALESCE ( 78, 73 ) * COUNT ( - 12 ) + + 86 AS col0
----
9
173

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9406
SELECT ALL + 32 AS col0, SUM( + 87 ) + + + 78 DIV + 64 AS col1
----
32
88

skipif mysql # not compatible
query II rowsort label-9406
SELECT ALL + 32 AS col0, SUM ( + 87 ) + + + 78 / + 64 AS col1
----
32
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT ALL + + COUNT( * ) * 22 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL + + COUNT ( * ) * 22 AS col1
----
22

query I rowsort
SELECT ALL + 37 + + 15
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9409
SELECT DISTINCT - CAST( CASE 81 WHEN 48 - - 3 / - - 47 - - CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN + - 91 + + 43 ELSE + - 0 END AS SIGNED ) AS col0, - 27 * + 43
----
0
-1161

skipif mysql # not compatible
query II rowsort label-9409
SELECT DISTINCT - CAST ( CASE 81 WHEN 48 - - 3 / - - 47 - - CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN + - 91 + + 43 ELSE + - 0 END AS INTEGER ) AS col0, - 27 * + 43
----
0
-1161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9410
SELECT + 76 + - + 41 DIV - - CAST( 9 AS SIGNED ) + + + 20 + - + 45 + - COUNT( * ) * - CASE + COUNT( * ) WHEN COUNT( * ) THEN + - 39 * + 87 - - - 85 ELSE NULL END AS col1
----
-3431

skipif mysql # not compatible
query I rowsort label-9410
SELECT + 76 + - + 41 / - - CAST ( 9 AS INTEGER ) + + + 20 + - + 45 + - COUNT ( * ) * - CASE + COUNT ( * ) WHEN COUNT ( * ) THEN + - 39 * + 87 - - - 85 ELSE NULL END AS col1
----
-3431

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT + - ( + 10 ) * + - 77 - - ( 91 ) * - MIN( DISTINCT 52 ) AS col1
----
-3962

skipif mysql # not compatible
query I rowsort label-9411
SELECT + - ( + 10 ) * + - 77 - - ( 91 ) * - MIN ( DISTINCT 52 ) AS col1
----
-3962

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT DISTINCT - 71 + - COUNT( * ) * + - 22
----
-49

skipif mysql # not compatible
query I rowsort label-9412
SELECT DISTINCT - 71 + - COUNT ( * ) * + - 22
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT DISTINCT COALESCE ( - + 44, COUNT( DISTINCT - ( - 49 ) ) ) + - 94 AS col0
----
-138

skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT COALESCE ( - + 44, COUNT ( DISTINCT - ( - 49 ) ) ) + - 94 AS col0
----
-138

query II rowsort
SELECT DISTINCT - 9, + 76 col0
----
-9
76

query I rowsort
SELECT ALL - 21 + - 52 + - NULLIF ( + 49, + 71 ) col2
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9416
SELECT + - 74 * + + 20 * AVG ( DISTINCT - 54 ) + 97 + - 42 * - - ( - 84 ) * 66 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT + - 74 * + + 20 * AVG ( DISTINCT - 54 ) + 97 + - 42 * - - ( - 84 ) * 66 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 82 + 76 AS col1
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-9418
SELECT 41 DIV 78 + 2 + - 39
----
-37

skipif mysql # not compatible
query I rowsort label-9418
SELECT 41 / 78 + 2 + - 39
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT ALL 9 + - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL 9 + - COUNT ( * )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9420
SELECT ALL - - 23 AS col1, 61 * - CAST( - 79 AS SIGNED ) + COUNT( + 97 ) + + 75
----
23
4895

skipif mysql # not compatible
query II rowsort label-9420
SELECT ALL - - 23 AS col1, 61 * - CAST ( - 79 AS INTEGER ) + COUNT ( + 97 ) + + 75
----
23
4895

query I rowsort
SELECT + 92 * - 96
----
-8832

query I rowsort
SELECT 37 + + 11 + + + 47 * + 20
----
988

onlyif mysql # aggregate syntax: 
query II rowsort label-9423
SELECT DISTINCT - + COUNT( * ) AS col0, 40 AS col1
----
-1
40

skipif mysql # not compatible
query II rowsort label-9423
SELECT DISTINCT - + COUNT ( * ) AS col0, 40 AS col1
----
-1
40

query II rowsort
SELECT ALL 27 + 68 AS col0, 88 + + 45 col0
----
95
133

onlyif mysql # DIV for integer division: 
query I rowsort label-9425
SELECT 30 + 19 DIV + 58
----
30

skipif mysql # not compatible
query I rowsort label-9425
SELECT 30 + 19 / + 58
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT DISTINCT + COUNT( * ) - 4 - + COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9426
SELECT DISTINCT + COUNT ( * ) - 4 - + COUNT ( * ) AS col0
----
-4

query I rowsort
SELECT 1 - 82 col0
----
-81

query I rowsort
SELECT 46 * + 81 AS col0
----
3726

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT DISTINCT + ( + COUNT( * ) ) * COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT + ( + COUNT ( * ) ) * COUNT ( * ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9430
SELECT 36 DIV + 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9430
SELECT 36 / + 62 AS col2
----
0

query I rowsort
SELECT DISTINCT - 89 * 31
----
-2759

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9432
SELECT 45 - + + 4 + - COUNT( * ) DIV + 14
----
41

skipif mysql # not compatible
query I rowsort label-9432
SELECT 45 - + + 4 + - COUNT ( * ) / + 14
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9433
SELECT DISTINCT - COUNT( * ) * + + 35 / CASE + 96 WHEN + COUNT( * ) THEN + + 31 WHEN - CAST( 33 AS SIGNED ) THEN NULL WHEN + CAST( NULL AS SIGNED ) + + - 86 + - ( - 0 ) THEN + 86 * + SUM( 82 ) - + 51 + + + 45 ELSE NULL END, + ( 41 ) + - + 17 AS col2
----
NULL
24

skipif mysql # not compatible
query II rowsort label-9433
SELECT DISTINCT - COUNT ( * ) * + + 35 / CASE + 96 WHEN + COUNT ( * ) THEN + + 31 WHEN - CAST ( 33 AS INTEGER ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) + + - 86 + - ( - 0 ) THEN + 86 * + SUM ( 82 ) - + 51 + + + 45 ELSE NULL END, + ( 41 ) + - + 17 AS col2
----
NULL
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT DISTINCT - + COUNT( * ) + - COUNT( * ) + + 13 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-9434
SELECT DISTINCT - + COUNT ( * ) + - COUNT ( * ) + + 13 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT + NULLIF ( + + NULLIF ( - COUNT( * ), - 53 ), - 77 * - + 75 * - 76 + - 96 - CASE - 11 WHEN - 25 THEN NULL WHEN - CASE COUNT( * ) WHEN + 77 * ( - - 59 ) / - + 41 THEN NULL WHEN - + 63 THEN NULL WHEN - 48 THEN + MIN( DISTINCT ( - - 23 ) ) END THEN + 14 ELSE NULL END ) + - 95 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-9435
SELECT + NULLIF ( + + NULLIF ( - COUNT ( * ), - 53 ), - 77 * - + 75 * - 76 + - 96 - CASE - 11 WHEN - 25 THEN NULL WHEN - CASE COUNT ( * ) WHEN + 77 * ( - - 59 ) / - + 41 THEN NULL WHEN - + 63 THEN NULL WHEN - 48 THEN + MIN ( DISTINCT ( - - 23 ) ) END THEN + 14 ELSE NULL END ) + - 95 AS col2
----
-96

query I rowsort
SELECT 72 - - - 23
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-9437
SELECT - ( - - ( + 51 ) ), COUNT( * ) AS col2
----
-51
1

skipif mysql # not compatible
query II rowsort label-9437
SELECT - ( - - ( + 51 ) ), COUNT ( * ) AS col2
----
-51
1

query I rowsort
SELECT 3 + - 0 AS col0
----
3

query I rowsort
SELECT ALL 47 * + 51 - + ( - 88 ) + - 97 + ( + - 26 )
----
2362

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT ALL + - COUNT( ALL 29 )
----
-1

skipif mysql # not compatible
query I rowsort label-9440
SELECT ALL + - COUNT ( ALL 29 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9441
SELECT DISTINCT + COALESCE ( + 48, - 9, 73 + + 29 ) col1, COUNT( * )
----
48
1

skipif mysql # not compatible
query II rowsort label-9441
SELECT DISTINCT + COALESCE ( + 48, - 9, 73 + + 29 ) col1, COUNT ( * )
----
48
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9442
SELECT 84 DIV + SUM( - 78 ) - 96 - - - 91 + - 31 * - 79
----
2261

skipif mysql # not compatible
query I rowsort label-9442
SELECT 84 / + SUM ( - 78 ) - 96 - - - 91 + - 31 * - 79
----
2261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9443
SELECT - + COALESCE ( - 14, + - 18 ) - + 62 - 48 + - CAST( NULL AS SIGNED ) * - 8 / - - 89 * + 47 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9443
SELECT - + COALESCE ( - 14, + - 18 ) - + 62 - 48 + - CAST ( NULL AS INTEGER ) * - 8 / - - 89 * + 47 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT + + 4 * - 92 + - ( - - 52 ) - - - 68 + + 8 * + 90 + - - COUNT( * ) * + + 41
----
273

skipif mysql # not compatible
query I rowsort label-9444
SELECT + + 4 * - 92 + - ( - - 52 ) - - - 68 + + 8 * + 90 + - - COUNT ( * ) * + + 41
----
273

query I rowsort
SELECT DISTINCT 16 * + 64 AS col1
----
1024

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT + NULLIF ( 42, - 0 / COUNT( * ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-9446
SELECT + NULLIF ( 42, - 0 / COUNT ( * ) ) AS col2
----
42

query I rowsort
SELECT ALL + ( - + 90 ) AS col2
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9448
SELECT + COUNT( * ) AS col2, ( 44 ) - + - 40 - 43
----
1
41

skipif mysql # not compatible
query II rowsort label-9448
SELECT + COUNT ( * ) AS col2, ( 44 ) - + - 40 - 43
----
1
41

query I rowsort
SELECT + NULLIF ( + 91, - 59 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT ALL - 7 * 16 * - 23 - 9 + + NULLIF ( + + 97, + + NULLIF ( + 95, + 55 ) * - - 83 ) + COUNT( * ) AS col0
----
2665

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL - 7 * 16 * - 23 - 9 + + NULLIF ( + + 97, + + NULLIF ( + 95, + 55 ) * - - 83 ) + COUNT ( * ) AS col0
----
2665

query I rowsort
SELECT 92 * + 74 - - 17 + + 33
----
6858

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT SUM( NULLIF ( 42, + 76 ) )
----
42

skipif mysql # not compatible
query I rowsort label-9452
SELECT SUM ( NULLIF ( 42, + 76 ) )
----
42

query II rowsort
SELECT ALL + 75 AS col1, - 38 AS col0
----
75
-38

query I rowsort
SELECT + 86 - - 76 AS col2
----
162

query II rowsort
SELECT DISTINCT + 53, + ( - 16 ) col1
----
53
-16

query I rowsort
SELECT ALL 74 * + 30 * - ( + 40 )
----
-88800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9457
SELECT ALL + MAX( + CAST( + - 67 AS SIGNED ) ) AS col2, - 6 * + ( + + COUNT( + 1 ) ) + - + 80 * 71 AS col2
----
-67
-5686

skipif mysql # not compatible
query II rowsort label-9457
SELECT ALL + MAX ( + CAST ( + - 67 AS INTEGER ) ) AS col2, - 6 * + ( + + COUNT ( + 1 ) ) + - + 80 * 71 AS col2
----
-67
-5686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9458
SELECT - 70 * - + COUNT( * ) * + 38 + ( - COALESCE ( + + 48, - 36 ) ) - + 88 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9458
SELECT - 70 * - + COUNT ( * ) * + 38 + ( - COALESCE ( + + 48, - 36 ) ) - + 88 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 15 * - 33 * 77
----
-38115

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT + 26 + + 28 * + 22 + + 54 + - MAX( ALL + 10 ) AS col2
----
686

skipif mysql # not compatible
query I rowsort label-9460
SELECT + 26 + + 28 * + 22 + + 54 + - MAX ( ALL + 10 ) AS col2
----
686

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9461
SELECT 29 * + - 35 - - 23 - + 61 * + - COUNT( * ) * COUNT( * ), - 59 * + COUNT( * ) DIV - NULLIF ( - 72, - SUM( ALL + 32 ) + 28 ) col2
----
-931
0

skipif mysql # not compatible
query II rowsort label-9461
SELECT 29 * + - 35 - - 23 - + 61 * + - COUNT ( * ) * COUNT ( * ), - 59 * + COUNT ( * ) / - NULLIF ( - 72, - SUM ( ALL + 32 ) + 28 ) col2
----
-931
0

query I rowsort
SELECT 38 * - 45 + - 16 AS col0
----
-1726

query I rowsort
SELECT - 85 * - 39 AS col2
----
3315

query I rowsort
SELECT DISTINCT ( ( - 51 ) ) * 20 AS col1
----
-1020

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9465
SELECT ALL + 2 + + CAST( + 25 AS SIGNED ), - 65 * + 50 + + 34 col0
----
27
-3216

skipif mysql # not compatible
query II rowsort label-9465
SELECT ALL + 2 + + CAST ( + 25 AS INTEGER ), - 65 * + 50 + + 34 col0
----
27
-3216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9466
SELECT + CASE + - ( NULLIF ( + 78, + + 56 + - - 85 - 74 ) ) WHEN - 54 * 67 + + 54 / + COALESCE ( - 25, - - 72 ) * + 44 * + 67 / - - 63 + - - COUNT( DISTINCT + - ( - 25 ) ) THEN NULL WHEN - + 70 * - 94 THEN - + MIN( + + 92 ) + 49 WHEN - - COUNT( * ) THEN - CAST( - 19 AS SIGNED ) / + 77 + + 46 ELSE NULL END + - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9466
SELECT + CASE + - ( NULLIF ( + 78, + + 56 + - - 85 - 74 ) ) WHEN - 54 * 67 + + 54 / + COALESCE ( - 25, - - 72 ) * + 44 * + 67 / - - 63 + - - COUNT ( DISTINCT + - ( - 25 ) ) THEN NULL WHEN - + 70 * - 94 THEN - + MIN ( + + 92 ) + 49 WHEN - - COUNT ( * ) THEN - CAST ( - 19 AS INTEGER ) / + 77 + + 46 ELSE NULL END + - + 56
----
NULL

query I rowsort
SELECT DISTINCT 96 + - 96 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT ALL CASE - COUNT( * ) WHEN - 11 THEN - + 4 / + 43 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL CASE - COUNT ( * ) WHEN - 11 THEN - + 4 / + 43 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9469
SELECT - 25 + CAST( ( + + COUNT( * ) ) AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-9469
SELECT - 25 + CAST ( ( + + COUNT ( * ) ) AS INTEGER )
----
-24

query I rowsort
SELECT ALL 31 + + 99
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT DISTINCT - 4 + - 33 * 21 * + + 78 * - 32 * + COUNT( * )
----
1729724

skipif mysql # not compatible
query I rowsort label-9471
SELECT DISTINCT - 4 + - 33 * 21 * + + 78 * - 32 * + COUNT ( * )
----
1729724

query I rowsort
SELECT - + 76 + + 45
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9473
SELECT DISTINCT - 54 + CAST( COALESCE ( + COALESCE ( 71, - - 57 ), - 20 ) AS SIGNED ) + + SUM( DISTINCT + 94 ) AS col2
----
111

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT - 54 + CAST ( COALESCE ( + COALESCE ( 71, - - 57 ), - 20 ) AS INTEGER ) + + SUM ( DISTINCT + 94 ) AS col2
----
111

query I rowsort
SELECT ALL + 96 + + 77 + + 64 * + 89 * - 76 + 16
----
-432707

query I rowsort
SELECT ALL - + 57 + 12 * + - 77 - - 86
----
-895

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT - 85 * - NULLIF ( - COUNT( * ), + + 53 )
----
-85

skipif mysql # not compatible
query I rowsort label-9476
SELECT - 85 * - NULLIF ( - COUNT ( * ), + + 53 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT - - CASE + COUNT( * ) WHEN - 34 THEN - 60 END + + 89 * + 95 * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9477
SELECT - - CASE + COUNT ( * ) WHEN - 34 THEN - 60 END + + 89 * + 95 * - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9478
SELECT DISTINCT - ( 68 ) + + + 72 * + 66 + - - CAST( + 9 AS SIGNED ), 54 * - 69 col2
----
4693
-3726

skipif mysql # not compatible
query II rowsort label-9478
SELECT DISTINCT - ( 68 ) + + + 72 * + 66 + - - CAST ( + 9 AS INTEGER ), 54 * - 69 col2
----
4693
-3726

query II rowsort
SELECT DISTINCT 73 AS col2, + 39
----
73
39

query I rowsort
SELECT - - 55 * - - 29 AS col1
----
1595

query I rowsort
SELECT - - 50 * 22 AS col1
----
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT - + SUM( ALL - 6 ) - - + 96 + - 62 - COUNT( - + 29 ) * + 3 * - COUNT( ALL + 37 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-9482
SELECT - + SUM ( ALL - 6 ) - - + 96 + - 62 - COUNT ( - + 29 ) * + 3 * - COUNT ( ALL + 37 ) AS col2
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9483
SELECT - 36 DIV + 46 * - 11 + + - 31 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-9483
SELECT - 36 / + 46 * - 11 + + - 31 AS col0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-9484
SELECT ALL + - 40 DIV NULLIF ( 54, + 27 + + 72 )
----
0

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL + - 40 / NULLIF ( 54, + 27 + + 72 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT 96 * - - SUM( DISTINCT - + 52 ) * - 2 + + 33 + + 20 * - + 58 + - - 7 + - 50 + - 64 * 76 * + 67 AS col1
----
-317074

skipif mysql # not compatible
query I rowsort label-9485
SELECT 96 * - - SUM ( DISTINCT - + 52 ) * - 2 + + 33 + + 20 * - + 58 + - - 7 + - 50 + - 64 * 76 * + 67 AS col1
----
-317074

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT ALL + COALESCE ( - 6, 97, ( + 35 ) * 37 * - COUNT( * ) ) col1
----
-6

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL + COALESCE ( - 6, 97, ( + 35 ) * 37 * - COUNT ( * ) ) col1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-9487
SELECT - 66 DIV - - 22 + + COALESCE ( CASE 10 WHEN 0 * - 76 THEN NULL WHEN + + 98 + + 25 + + 9 THEN NULL WHEN - 85 THEN 63 END, - 24 * + 46 ) + + - 72 AS col0
----
-1179

skipif mysql # not compatible
query I rowsort label-9487
SELECT - 66 / - - 22 + + COALESCE ( CASE 10 WHEN 0 * - 76 THEN NULL WHEN + + 98 + + 25 + + 9 THEN NULL WHEN - 85 THEN 63 END, - 24 * + 46 ) + + - 72 AS col0
----
-1179

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT ALL 33 * + MAX( ALL + + 96 ) * + 90
----
285120

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL 33 * + MAX ( ALL + + 96 ) * + 90
----
285120

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT + 39 + + 19 + COUNT( * ) * - 68 * - 73 * 25 * + 50
----
6205058

skipif mysql # not compatible
query I rowsort label-9489
SELECT + 39 + + 19 + COUNT ( * ) * - 68 * - 73 * 25 * + 50
----
6205058

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ALL - COUNT( * ) * - - MIN( - 26 )
----
26

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL - COUNT ( * ) * - - MIN ( - 26 )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9491
SELECT DISTINCT + ( - - 88 ) AS col1, + COUNT( * ) + + - 91
----
88
-90

skipif mysql # not compatible
query II rowsort label-9491
SELECT DISTINCT + ( - - 88 ) AS col1, + COUNT ( * ) + + - 91
----
88
-90

query I rowsort
SELECT + 91 * 90 * - + 86 AS col1
----
-704340

query I rowsort
SELECT ALL 97 * + 79
----
7663

onlyif mysql # aggregate syntax: 
query II rowsort label-9494
SELECT - 3 * - + 50 AS col0, - NULLIF ( COUNT( * ), + + 57 + - 61 * - NULLIF ( + 3, - 82 * + 77 * + - 38 * - 20 + + 71 + + + 3 ) ) + - 65 AS col0
----
150
-66

skipif mysql # not compatible
query II rowsort label-9494
SELECT - 3 * - + 50 AS col0, - NULLIF ( COUNT ( * ), + + 57 + - 61 * - NULLIF ( + 3, - 82 * + 77 * + - 38 * - 20 + + 71 + + + 3 ) ) + - 65 AS col0
----
150
-66

query I rowsort
SELECT NULLIF ( 92, - ( 7 ) ) AS col1
----
92

query I rowsort
SELECT COALESCE ( 43, - 94 )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9497
SELECT CASE - 79 WHEN - 44 THEN - 75 WHEN - - 80 THEN NULL ELSE - - 15 / - - COUNT( * ) + + + 55 + + + CASE - 35 WHEN - - 13 THEN NULL WHEN - COUNT( * ) THEN - 61 ELSE NULL END * + COUNT( * ) END, 99 col0
----
NULL
99

skipif mysql # not compatible
query II rowsort label-9497
SELECT CASE - 79 WHEN - 44 THEN - 75 WHEN - - 80 THEN NULL ELSE - - 15 / - - COUNT ( * ) + + + 55 + + + CASE - 35 WHEN - - 13 THEN NULL WHEN - COUNT ( * ) THEN - 61 ELSE NULL END * + COUNT ( * ) END, 99 col0
----
NULL
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9498
SELECT ALL + CAST( + - 82 AS SIGNED )
----
-82

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL + CAST ( + - 82 AS INTEGER )
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9499
SELECT ALL + 60 * 96 + + CAST( NULL AS SIGNED ) + - 73 / - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL + 60 * 96 + + CAST ( NULL AS INTEGER ) + - 73 / - 98
----
NULL

query I rowsort
SELECT + NULLIF ( - 39, + + 42 / - + 93 )
----
-39

query I rowsort
SELECT - ( - ( + - 18 ) )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9502
SELECT + COUNT( * ) DIV - NULLIF ( - 64, - AVG ( DISTINCT + 1 ) ) * + 50 * - + 87
----
0

skipif mysql # not compatible
query I rowsort label-9502
SELECT + COUNT ( * ) / - NULLIF ( - 64, - AVG ( DISTINCT + 1 ) ) * + 50 * - + 87
----
0

query I rowsort
SELECT ALL 84 * - 2 + - 27 + 75 AS col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT MIN( ALL + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-9504
SELECT MIN ( ALL + 66 )
----
66

query I rowsort
SELECT + 13 - - - 45 AS col0
----
-32

query I rowsort
SELECT ALL + 17 * 95
----
1615

onlyif mysql # DIV for integer division: 
query I rowsort label-9507
SELECT + 33 DIV 27
----
1

skipif mysql # not compatible
query I rowsort label-9507
SELECT + 33 / 27
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT + 3 * + COUNT( ALL - 43 ) * 79 + - CASE + - ( + + COUNT( * ) ) WHEN ( - 60 ) + 8 / + 44 + - + 34 THEN + COUNT( * ) END * + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9508
SELECT + 3 * + COUNT ( ALL - 43 ) * 79 + - CASE + - ( + + COUNT ( * ) ) WHEN ( - 60 ) + 8 / + 44 + - + 34 THEN + COUNT ( * ) END * + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9509
SELECT - COALESCE ( + ( - 92 ), + - 41 ), + 0 + + COUNT( * ) + - - COUNT( * ) col0
----
92
2

skipif mysql # not compatible
query II rowsort label-9509
SELECT - COALESCE ( + ( - 92 ), + - 41 ), + 0 + + COUNT ( * ) + - - COUNT ( * ) col0
----
92
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9510
SELECT - MIN( - COALESCE ( - 94, + + 58 DIV + 17 DIV + + 80 * - 62 * 68 + + 63, 71 ) )
----
-94

skipif mysql # not compatible
query I rowsort label-9510
SELECT - MIN ( - COALESCE ( - 94, + + 58 / + 17 / + + 80 * - 62 * 68 + + 63, 71 ) )
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-9511
SELECT DISTINCT + ( - 97 ) + + MIN( DISTINCT 91 ) AS col2, 67 * - + 52
----
-6
-3484

skipif mysql # not compatible
query II rowsort label-9511
SELECT DISTINCT + ( - 97 ) + + MIN ( DISTINCT 91 ) AS col2, 67 * - + 52
----
-6
-3484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9512
SELECT ALL CAST( + - COALESCE ( - - 35, 72 ) AS SIGNED ) + + COUNT( * ) * - 83 * 35 * + + 33 AS col0
----
-95900

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL CAST ( + - COALESCE ( - - 35, 72 ) AS INTEGER ) + + COUNT ( * ) * - 83 * 35 * + + 33 AS col0
----
-95900

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT ALL - 14 * - + 83 + - 86 * + + 71 + COUNT( * )
----
-4943

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL - 14 * - + 83 + - 86 * + + 71 + COUNT ( * )
----
-4943

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT + MIN( - - 61 ) - 8 * 74
----
-531

skipif mysql # not compatible
query I rowsort label-9514
SELECT + MIN ( - - 61 ) - 8 * 74
----
-531

query I rowsort
SELECT - + ( + 77 ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT DISTINCT NULLIF ( - 47, + + 29 + - + 12 ) - - 48 * + ( 91 ) + + COUNT( * )
----
4322

skipif mysql # not compatible
query I rowsort label-9516
SELECT DISTINCT NULLIF ( - 47, + + 29 + - + 12 ) - - 48 * + ( 91 ) + + COUNT ( * )
----
4322

query I rowsort
SELECT ALL + 90 - + 76
----
14

query I rowsort
SELECT 15 + + 14
----
29

query I rowsort
SELECT - 19 * CASE + 92 WHEN - - 27 THEN + 36 ELSE + ( - - 29 ) END
----
-551

onlyif mysql # aggregate syntax: 
query II rowsort label-9520
SELECT DISTINCT + COALESCE ( - 87, 14 * - COUNT( * ) ), - 39 AS col0
----
-87
-39

skipif mysql # not compatible
query II rowsort label-9520
SELECT DISTINCT + COALESCE ( - 87, 14 * - COUNT ( * ) ), - 39 AS col0
----
-87
-39

query II rowsort
SELECT 61 + 99 AS col0, 52 + - CASE - 31 WHEN - COALESCE ( - + 5, - 91, 27 ) + - + 35 + + 63 * + ( + 12 ) * - 25 THEN + 26 END AS col2
----
160
NULL

query I rowsort
SELECT 4 - 17
----
-13

query I rowsort
SELECT ALL - 49 - 82 AS col0
----
-131

query I rowsort
SELECT + 86 * + 36 AS col1
----
3096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9525
SELECT DISTINCT - - CAST( - - 73 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-9525
SELECT DISTINCT - - CAST ( - - 73 AS INTEGER )
----
73

query I rowsort
SELECT DISTINCT + 16 * + 8 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT DISTINCT - SUM( DISTINCT 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT - SUM ( DISTINCT 27 )
----
-27

query I rowsort
SELECT 20 * - 61
----
-1220

onlyif mysql # DIV for integer division: 
query I rowsort label-9529
SELECT ALL + 65 DIV - 1 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-9529
SELECT ALL + 65 / - 1 AS col2
----
-65

query I rowsort
SELECT 29 * + 63
----
1827

query I rowsort
SELECT DISTINCT - 20 + + 33
----
13

query I rowsort
SELECT ALL 43 + + + 42 * 95 AS col0
----
4033

query I rowsort
SELECT 55 + + 87 AS col1
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9534
SELECT ALL - NULLIF ( - + 81, 7 + 53 * 71 ) + + - COALESCE ( - 73, COALESCE ( + COALESCE ( - 20, - 39 ), CAST( + 68 AS SIGNED ) ) + COUNT( * ) )
----
154

skipif mysql # not compatible
query I rowsort label-9534
SELECT ALL - NULLIF ( - + 81, 7 + 53 * 71 ) + + - COALESCE ( - 73, COALESCE ( + COALESCE ( - 20, - 39 ), CAST ( + 68 AS INTEGER ) ) + COUNT ( * ) )
----
154

query I rowsort
SELECT 35 + 78
----
113

query I rowsort
SELECT ALL - 76 + 58
----
-18

query I rowsort
SELECT 45 + - 17 AS col1
----
28

query I rowsort
SELECT + 42 * - 59 - 92 * - + 59
----
2950

onlyif mysql # DIV for integer division: 
query I rowsort label-9539
SELECT 54 + 11 DIV + + 67
----
54

skipif mysql # not compatible
query I rowsort label-9539
SELECT 54 + 11 / + + 67
----
54

query I rowsort
SELECT 90 - + - 10 * + + 19 * - 0 AS col0
----
90

query I rowsort
SELECT ALL 1 + - - 5
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT COUNT( * ) * + 18 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-9542
SELECT COUNT ( * ) * + 18 AS col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9543
SELECT DISTINCT + + 23 - + - ( CAST( NULL AS SIGNED ) ) + 61 - - COALESCE ( - 97, - 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT + + 23 - + - ( CAST ( NULL AS INTEGER ) ) + 61 - - COALESCE ( - 97, - 48 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9544
SELECT ALL - ( + ( - CAST( NULL AS SIGNED ) ) ) / COALESCE ( - AVG ( DISTINCT + 42 ), + - 30, - 41 * + NULLIF ( - - 53, 88 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL - ( + ( - CAST ( NULL AS INTEGER ) ) ) / COALESCE ( - AVG ( DISTINCT + 42 ), + - 30, - 41 * + NULLIF ( - - 53, 88 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9545
SELECT + 67 + - COUNT( * ) + COUNT( * ) / NULLIF ( AVG ( ALL + 86 ), - - 59 ) + + + 4 / + CAST( NULL AS SIGNED ) * 50 + 89 + 62 * - NULLIF ( - COUNT( * ), + + COUNT( * ) - - + 91 - 22 + - COUNT( * ) + + 57 + + NULLIF ( - + 24, - 87 ) / + NULLIF ( + COUNT( * ), - 81 ) * + + MIN( ALL - - 77 ) + + + ( - - 87 ) * 2 + 23 * + 59 * - - 56 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9545
SELECT + 67 + - COUNT ( * ) + COUNT ( * ) / NULLIF ( AVG ( ALL + 86 ), - - 59 ) + + + 4 / + CAST ( NULL AS INTEGER ) * 50 + 89 + 62 * - NULLIF ( - COUNT ( * ), + + COUNT ( * ) - - + 91 - 22 + - COUNT ( * ) + + 57 + + NULLIF ( - + 24, - 87 ) / + NULLIF ( + COUNT ( * ), - 81 ) * + + MIN ( ALL - - 77 ) + + + ( - - 87 ) * 2 + 23 * + 59 * - - 56 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9546
SELECT ALL 64 * CAST( NULL AS SIGNED ) * - ( - - 55 ) + 52 * - + SUM( + ( - 53 ) ) + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL 64 * CAST ( NULL AS INTEGER ) * - ( - - 55 ) + 52 * - + SUM ( + ( - 53 ) ) + + 6
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9547
SELECT - 69 AS col2, + COUNT( * ) + + 93 AS col0
----
-69
94

skipif mysql # not compatible
query II rowsort label-9547
SELECT - 69 AS col2, + COUNT ( * ) + + 93 AS col0
----
-69
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9548
SELECT COUNT( * ) DIV 21
----
0

skipif mysql # not compatible
query I rowsort label-9548
SELECT COUNT ( * ) / 21
----
0

query II rowsort
SELECT DISTINCT + 86 AS col1, - 21
----
86
-21

query I rowsort
SELECT DISTINCT - 11 * + 51
----
-561

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT ALL - 53 * + - COUNT( DISTINCT - + 71 ) + - + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL - 53 * + - COUNT ( DISTINCT - + 71 ) + - + COUNT ( * )
----
52

query I rowsort
SELECT ALL + NULLIF ( - 82, + 54 / - ( - + 60 ) - - 59 * - 88 / - - AVG ( ALL 85 ) )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT DISTINCT - COUNT( * ) * 13 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-9553
SELECT DISTINCT - COUNT ( * ) * 13 AS col1
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9554
SELECT ALL 62 * + - 92 + COUNT( * ) DIV 74 AS col2
----
-5704

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL 62 * + - 92 + COUNT ( * ) / 74 AS col2
----
-5704

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9555
SELECT 33 * + + COUNT( * ) DIV + 56 * ( 55 ) + + 30 AS col0, 32 + - + 20 AS col2
----
30
12

skipif mysql # not compatible
query II rowsort label-9555
SELECT 33 * + + COUNT ( * ) / + 56 * ( 55 ) + + 30 AS col0, 32 + - + 20 AS col2
----
30
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT MIN( - - 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-9556
SELECT MIN ( - - 51 ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9557
SELECT ( - + SUM( ALL 73 ) ) * - + 75, 40 * + - 42 col2
----
5475
-1680

skipif mysql # not compatible
query II rowsort label-9557
SELECT ( - + SUM ( ALL 73 ) ) * - + 75, 40 * + - 42 col2
----
5475
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT ALL ( COUNT( * ) ) * + 40 + - + 31 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL ( COUNT ( * ) ) * + 40 + - + 31 AS col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9559
SELECT ( + 70 ) DIV 11
----
6

skipif mysql # not compatible
query I rowsort label-9559
SELECT ( + 70 ) / 11
----
6

query I rowsort
SELECT ALL + 21 * + - 46 + + 55 AS col1
----
-911

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT - COUNT( * ) * 53 * - 23 + - 84 - - 93
----
1228

skipif mysql # not compatible
query I rowsort label-9561
SELECT - COUNT ( * ) * 53 * - 23 + - 84 - - 93
----
1228

query I rowsort
SELECT DISTINCT + 61 * + 67 AS col1
----
4087

query I rowsort
SELECT ALL 1 * + - 66 + 23 - + 62 * - 73
----
4483

query I rowsort
SELECT ALL + 55 * 56 + - 95 + 28 AS col2
----
3013

onlyif mysql # aggregate syntax: 
query II rowsort label-9565
SELECT + COUNT( * ), - 9 AS col2
----
1
-9

skipif mysql # not compatible
query II rowsort label-9565
SELECT + COUNT ( * ), - 9 AS col2
----
1
-9

query I rowsort
SELECT + 69 * - 62 + 13 - + 97 AS col1
----
-4362

onlyif mysql # aggregate syntax: 
query II rowsort label-9567
SELECT COUNT( * ), 64 AS col1
----
1
64

skipif mysql # not compatible
query II rowsort label-9567
SELECT COUNT ( * ), 64 AS col1
----
1
64

query I rowsort
SELECT ALL - 72 - - ( - 25 ) * + + 32
----
-872

onlyif mysql # DIV for integer division: 
query I rowsort label-9569
SELECT ALL - 17 DIV + 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL - 17 / + 48 AS col1
----
0

query II rowsort
SELECT + 2 col2, + 57
----
2
57

query II rowsort
SELECT ALL + 99 AS col2, + 59
----
99
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9572
SELECT - 83 DIV - 70 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9572
SELECT - 83 / - 70 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL + - COALESCE ( - 80, - COUNT( * ) ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL + - COALESCE ( - 80, - COUNT ( * ) ) AS col2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9574
SELECT DISTINCT + COUNT( DISTINCT - 47 ) * COALESCE ( + 81, - 39 + 79 - + - COUNT( * ) * + 59, NULLIF ( MIN( DISTINCT + - 39 ), - COUNT( * ) ) * 83 * - 43 * - + CASE - + ( - 44 ) WHEN SUM( ALL 0 ) THEN - 95 * 56 + + 13 + 38 + + 29 END * - 10 + 33 + - 3 * - ( + ( 71 ) ) DIV - 94 ), + COUNT( - 71 ) DIV - 83 + + 73 * COUNT( * ) + - + SUM( 90 ) AS col1
----
81
-17

skipif mysql # not compatible
query II rowsort label-9574
SELECT DISTINCT + COUNT ( DISTINCT - 47 ) * COALESCE ( + 81, - 39 + 79 - + - COUNT ( * ) * + 59, NULLIF ( MIN ( DISTINCT + - 39 ), - COUNT ( * ) ) * 83 * - 43 * - + CASE - + ( - 44 ) WHEN SUM ( ALL 0 ) THEN - 95 * 56 + + 13 + 38 + + 29 END * - 10 + 33 + - 3 * - ( + ( 71 ) ) / - 94 ), + COUNT ( - 71 ) / - 83 + + 73 * COUNT ( * ) + - + SUM ( 90 ) AS col1
----
81
-17

query I rowsort
SELECT - 5 - - 35
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT - + COUNT( * ) * 20 + + MAX( DISTINCT + 7 )
----
-13

skipif mysql # not compatible
query I rowsort label-9576
SELECT - + COUNT ( * ) * 20 + + MAX ( DISTINCT + 7 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9577
SELECT ALL + + 21 * 7 * + 22 * 13 + 34 + - COUNT( * ) DIV 64 * - + 18 * CAST( - 62 AS SIGNED ) col0
----
42076

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL + + 21 * 7 * + 22 * 13 + 34 + - COUNT ( * ) / 64 * - + 18 * CAST ( - 62 AS INTEGER ) col0
----
42076

onlyif mysql # aggregate syntax: 
query II rowsort label-9578
SELECT - 36 col1, - ( COUNT( * ) ) - 10 col0
----
-36
-11

skipif mysql # not compatible
query II rowsort label-9578
SELECT - 36 col1, - ( COUNT ( * ) ) - 10 col0
----
-36
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT - COUNT( + + 0 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9579
SELECT - COUNT ( + + 0 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT - - ( + - ( + COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9580
SELECT - - ( + - ( + COUNT ( * ) ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9581
SELECT ALL - CAST( - 95 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL - CAST ( - 95 AS INTEGER )
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9582
SELECT - - 76 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9582
SELECT - - 76 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT ALL + 71 * COUNT( * ) + 93
----
164

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL + 71 * COUNT ( * ) + 93
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9584
SELECT DISTINCT CASE - + COUNT( * ) WHEN + ( - 87 ) * 54 * - - COUNT( * ) THEN - - 4 + - 68 * - 69 * - COUNT( * ) ELSE + 78 + ( CASE + ( CAST( + 31 AS SIGNED ) ) WHEN 70 THEN + 43 * + 55 * 73 END ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT CASE - + COUNT ( * ) WHEN + ( - 87 ) * 54 * - - COUNT ( * ) THEN - - 4 + - 68 * - 69 * - COUNT ( * ) ELSE + 78 + ( CASE + ( CAST ( + 31 AS INTEGER ) ) WHEN 70 THEN + 43 * + 55 * 73 END ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9585
SELECT ALL CAST( + + 69 AS SIGNED ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL CAST ( + + 69 AS INTEGER ) AS col2
----
69

query II rowsort
SELECT - 68 - 26, 56 AS col0
----
-94
56

query I rowsort
SELECT + 77 * 91
----
7007

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT + MIN( ALL + 63 ) - ( + + 70 ) + + 7 * + 58
----
399

skipif mysql # not compatible
query I rowsort label-9588
SELECT + MIN ( ALL + 63 ) - ( + + 70 ) + + 7 * + 58
----
399

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT - COUNT( ALL + + ( + - 40 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9589
SELECT - COUNT ( ALL + + ( + - 40 ) )
----
-1

query I rowsort
SELECT ALL - 30 + - 33 col2
----
-63

query I rowsort
SELECT ALL + ( 84 ) + - + 51 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT - + 50 * NULLIF ( - + COUNT( * ), 2 * - 82 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-9592
SELECT - + 50 * NULLIF ( - + COUNT ( * ), 2 * - 82 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT - 86 + + COUNT( * ) - - MAX( DISTINCT + 9 ) + - 54 + - 56 * + + 3 * - NULLIF ( - 21, + ( + 23 ) * + 78 + + ( + CASE - 85 WHEN + - ( - + 18 ) * - 15 THEN + 34 ELSE 78 END ) ) + CASE + 77 WHEN ( - COUNT( * ) ) THEN NULL WHEN - 43 * - 61 * - 12 + + ( - - ( + COUNT( * ) ) ) THEN + ( + + 44 ) ELSE - - 54 + + 83 END * + 69 * + 91 * 83 col1
----
71394851

skipif mysql # not compatible
query I rowsort label-9593
SELECT - 86 + + COUNT ( * ) - - MAX ( DISTINCT + 9 ) + - 54 + - 56 * + + 3 * - NULLIF ( - 21, + ( + 23 ) * + 78 + + ( + CASE - 85 WHEN + - ( - + 18 ) * - 15 THEN + 34 ELSE 78 END ) ) + CASE + 77 WHEN ( - COUNT ( * ) ) THEN NULL WHEN - 43 * - 61 * - 12 + + ( - - ( + COUNT ( * ) ) ) THEN + ( + + 44 ) ELSE - - 54 + + 83 END * + 69 * + 91 * 83 col1
----
71394851

query I rowsort
SELECT - 4 * + 99 * - - 54 AS col2
----
-21384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9595
SELECT DISTINCT NULLIF ( CASE - 80 WHEN - - 98 THEN CAST( + 26 AS SIGNED ) * + 61 ELSE NULL END, 60 ) + - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9595
SELECT DISTINCT NULLIF ( CASE - 80 WHEN - - 98 THEN CAST ( + 26 AS INTEGER ) * + 61 ELSE NULL END, 60 ) + - 31 AS col2
----
NULL

query I rowsort
SELECT ALL 74 * ( + - 47 ) AS col2
----
-3478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9597
SELECT DISTINCT - 94 DIV - - 90 + - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9597
SELECT DISTINCT - 94 / - - 90 + - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT + MAX( - 13 ) * + 97
----
-1261

skipif mysql # not compatible
query I rowsort label-9598
SELECT + MAX ( - 13 ) * + 97
----
-1261

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT ALL 66 * - - 22 * + + COALESCE ( COUNT( * ), - + COUNT( * ), + - COUNT( * ) ) + COUNT( * ) AS col0
----
1453

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL 66 * - - 22 * + + COALESCE ( COUNT ( * ), - + COUNT ( * ), + - COUNT ( * ) ) + COUNT ( * ) AS col0
----
1453

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT + COUNT( * ) + + - 62 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-9600
SELECT + COUNT ( * ) + + - 62 AS col1
----
-61

query I rowsort
SELECT ( - - 65 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT ALL 15 * + 50 * 5 - - COUNT( * ) - 37 + + SUM( DISTINCT - 83 ) AS col0
----
3631

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL 15 * + 50 * 5 - - COUNT ( * ) - 37 + + SUM ( DISTINCT - 83 ) AS col0
----
3631

query I rowsort
SELECT + ( + - ( 65 ) ) * + 38 * ( - 52 ) col1
----
128440

query I rowsort
SELECT DISTINCT 77 * + - 38 - + 82 AS col2
----
-3008

onlyif mysql # aggregate syntax: 
query II rowsort label-9605
SELECT ALL - 13 * + COUNT( * ), 23 col2
----
-13
23

skipif mysql # not compatible
query II rowsort label-9605
SELECT ALL - 13 * + COUNT ( * ), 23 col2
----
-13
23

query I rowsort
SELECT + 2 * 69 + 88 col1
----
226

onlyif mysql # aggregate syntax: 
query II rowsort label-9607
SELECT ALL - 77 * 9 col0, COALESCE ( - - 66, 83 + + COUNT( * ) * - 15 ) AS col0
----
-693
66

skipif mysql # not compatible
query II rowsort label-9607
SELECT ALL - 77 * 9 col0, COALESCE ( - - 66, 83 + + COUNT ( * ) * - 15 ) AS col0
----
-693
66

query I rowsort
SELECT + - ( - - 92 ) + - + 9 AS col2
----
-101

query I rowsort
SELECT ALL + + NULLIF ( - - 11, 97 + 20 ) col0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-9610
SELECT + + 97 + + 23 + - COUNT( * ) * ( + 18 ) AS col2, - ( + 47 ) col2
----
102
-47

skipif mysql # not compatible
query II rowsort label-9610
SELECT + + 97 + + 23 + - COUNT ( * ) * ( + 18 ) AS col2, - ( + 47 ) col2
----
102
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT 22 * CASE - 25 WHEN - 76 * + 60 + - + 73 THEN NULL WHEN - - COUNT( * ) * - 58 THEN - + 23 WHEN 20 THEN + 98 / 3 ELSE + + 85 + CASE 6 WHEN + - 77 THEN - 38 WHEN - 55 * + 24 THEN NULL END * 57 * + 14 * + 48 END + - + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9611
SELECT 22 * CASE - 25 WHEN - 76 * + 60 + - + 73 THEN NULL WHEN - - COUNT ( * ) * - 58 THEN - + 23 WHEN 20 THEN + 98 / 3 ELSE + + 85 + CASE 6 WHEN + - 77 THEN - 38 WHEN - 55 * + 24 THEN NULL END * 57 * + 14 * + 48 END + - + 84 AS col1
----
NULL

query I rowsort
SELECT - 86 - 98
----
-184

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9613
SELECT + ( NULLIF ( + 62, - 85 DIV - 55 ) ) DIV - 86 + + COUNT( * ) AS col2, 29 AS col1
----
1
29

skipif mysql # not compatible
query II rowsort label-9613
SELECT + ( NULLIF ( + 62, - 85 / - 55 ) ) / - 86 + + COUNT ( * ) AS col2, 29 AS col1
----
1
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9614
SELECT ALL - - NULLIF ( + - CASE - 37 WHEN + - COUNT( ALL 14 ) THEN COUNT( * ) ELSE NULL END, + - 90 ) + 64 / - AVG ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL - - NULLIF ( + - CASE - 37 WHEN + - COUNT ( ALL 14 ) THEN COUNT ( * ) ELSE NULL END, + - 90 ) + 64 / - AVG ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - ( 33 ) + + 10
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-9616
SELECT ALL - - 14 DIV 90 + + 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL - - 14 / 90 + + 13 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9617
SELECT ALL + - 1 + - NULLIF ( + - ( + 26 ), - COUNT( * ) + NULLIF ( + - ( - - 68 ), CAST( NULL AS SIGNED ) * + + SUM( ALL + + 90 ) ) )
----
25

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL + - 1 + - NULLIF ( + - ( + 26 ), - COUNT ( * ) + NULLIF ( + - ( - - 68 ), CAST ( NULL AS INTEGER ) * + + SUM ( ALL + + 90 ) ) )
----
25

query I rowsort
SELECT ALL - - 39 + - 86
----
-47

query I rowsort
SELECT - 27 + - 46
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-9620
SELECT - COUNT( * ) + - + 37, + 69 AS col0
----
-38
69

skipif mysql # not compatible
query II rowsort label-9620
SELECT - COUNT ( * ) + - + 37, + 69 AS col0
----
-38
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9621
SELECT - CAST( NULL AS SIGNED ) * - 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9621
SELECT - CAST ( NULL AS INTEGER ) * - 13 AS col0
----
NULL

query I rowsort
SELECT ALL + 7 + + + 86 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT DISTINCT + 34 + 0 + - 87 * 40 * 77 * COUNT( * ) * + 78
----
-20900846

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT + 34 + 0 + - 87 * 40 * 77 * COUNT ( * ) * + 78
----
-20900846

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT - MIN( DISTINCT 31 ) + - 64 - 62 + - + 41 AS col1
----
-198

skipif mysql # not compatible
query I rowsort label-9624
SELECT - MIN ( DISTINCT 31 ) + - 64 - 62 + - + 41 AS col1
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-9625
SELECT DISTINCT 62 + 51 DIV + - 80
----
62

skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT 62 + 51 / + - 80
----
62

query I rowsort
SELECT - 20 * + 11
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT - 11 / + - ( + + CASE 21 WHEN - ( ( + SUM( ALL - ( 31 ) ) ) ) * + ( - 80 ) + - 86 THEN 48 ELSE NULL END ) + 65 * - + 10 * 71 + + COUNT( * ) - 53 * 83 * + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-9627
SELECT - 11 / + - ( + + CASE 21 WHEN - ( ( + SUM ( ALL - ( 31 ) ) ) ) * + ( - 80 ) + - 86 THEN 48 ELSE NULL END ) + 65 * - + 10 * 71 + + COUNT ( * ) - 53 * 83 * + + 16
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9628
SELECT + 24 * - + 61 + + + 64 AS col1, CAST( - 62 AS SIGNED )
----
-1400
-62

skipif mysql # not compatible
query II rowsort label-9628
SELECT + 24 * - + 61 + + + 64 AS col1, CAST ( - 62 AS INTEGER )
----
-1400
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9629
SELECT DISTINCT 36 DIV COUNT( * ) - - COALESCE ( 94, + + 59 * COUNT( * ), + - 39 + + + COUNT( * ), - + COUNT( * ) + - - 92 - 68 * 63 + 39 ) col1
----
130

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT 36 / COUNT ( * ) - - COALESCE ( 94, + + 59 * COUNT ( * ), + - 39 + + + COUNT ( * ), - + COUNT ( * ) + - - 92 - 68 * 63 + 39 ) col1
----
130

query I rowsort
SELECT ALL 85 * 93 AS col0
----
7905

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT ALL 61 * - + COALESCE ( - 30, - COUNT( * ), SUM( DISTINCT + 74 ) ) AS col2
----
1830

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL 61 * - + COALESCE ( - 30, - COUNT ( * ), SUM ( DISTINCT + 74 ) ) AS col2
----
1830

query II rowsort
SELECT + 89 AS col0, + 19
----
89
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT + 61 * + 74 + + - COUNT( * )
----
4513

skipif mysql # not compatible
query I rowsort label-9633
SELECT + 61 * + 74 + + - COUNT ( * )
----
4513

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT ALL + 54 * + CASE - 94 WHEN 59 + - - 55 - 64 - 25 - - 89 * + 98 THEN + + 27 WHEN 45 + - COUNT( - 66 ) THEN NULL ELSE NULL END / + 59 + + + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL + 54 * + CASE - 94 WHEN 59 + - - 55 - 64 - 25 - - 89 * + 98 THEN + + 27 WHEN 45 + - COUNT ( - 66 ) THEN NULL ELSE NULL END / + 59 + + + 98 AS col1
----
NULL

query I rowsort
SELECT 89 + - + 79 AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9636
SELECT DISTINCT - NULLIF ( - 92, - CAST( NULL AS SIGNED ) ), - 50 * - 66 * + 65 AS col1
----
92
214500

skipif mysql # not compatible
query II rowsort label-9636
SELECT DISTINCT - NULLIF ( - 92, - CAST ( NULL AS INTEGER ) ), - 50 * - 66 * + 65 AS col1
----
92
214500

query I rowsort
SELECT + 47 * + 4
----
188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9638
SELECT - + MAX( + 72 ) * ( - CAST( NULL AS SIGNED ) ) + + ( + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9638
SELECT - + MAX ( + 72 ) * ( - CAST ( NULL AS INTEGER ) ) + + ( + 11 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT - COUNT( * ) * + - 41 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9639
SELECT - COUNT ( * ) * + - 41 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT ALL SUM( DISTINCT COALESCE ( + + 93, - 24 ) ) * + + COUNT( - - 28 ) + COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL SUM ( DISTINCT COALESCE ( + + 93, - 24 ) ) * + + COUNT ( - - 28 ) + COUNT ( * ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT SUM( - 43 ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-9641
SELECT SUM ( - 43 ) col2
----
-43

query I rowsort
SELECT ALL - ( + + 51 ) col0
----
-51

query I rowsort
SELECT ALL - 91 + - 34 / 38 * + 17 - + 42 - + - CASE - - 78 WHEN + 22 * 8 THEN 18 * - 97 / + - ( 35 ) ELSE NULL END * + 77 * - + 46 + + + 66 AS col1
----
NULL

query I rowsort
SELECT + COALESCE ( + ( - 65 ), + 18 ) col2
----
-65

query I rowsort
SELECT DISTINCT 10 * 44 AS col1
----
440

query I rowsort
SELECT - CASE WHEN - 41 IS NOT NULL THEN + - 69 ELSE NULL END
----
69

query II rowsort
SELECT - 5, + 42 - - + 53 + - 26 + - 70 + + 58 * - 40 AS col1
----
-5
-2321

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT ALL - COUNT( * ) + + COUNT( DISTINCT + 12 ) + 88 * + 76 + - + 97 + - - 9 * + 79
----
7302

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL - COUNT ( * ) + + COUNT ( DISTINCT + 12 ) + 88 * + 76 + - + 97 + - - 9 * + 79
----
7302

query I rowsort
SELECT - 3 - 27
----
-30

query II rowsort
SELECT 15 col0, + 29
----
15
29

query I rowsort
SELECT + 3 * + - 0 - + 22
----
-22

query I rowsort
SELECT - 86 * + 93 + - 23 + + + 87 AS col2
----
-7934

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9653
SELECT ALL - 71 AS col2, NULLIF ( 97, + ( CAST( NULL AS SIGNED ) ) * - - 69 + 4 * - 14 * - 35 + - 38 ) * - + 44 * - - 90
----
-71
-384120

skipif mysql # not compatible
query II rowsort label-9653
SELECT ALL - 71 AS col2, NULLIF ( 97, + ( CAST ( NULL AS INTEGER ) ) * - - 69 + 4 * - 14 * - 35 + - 38 ) * - + 44 * - - 90
----
-71
-384120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9654
SELECT ALL - COUNT( * ) + 36 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL - COUNT ( * ) + 36 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 20 + + - 30
----
-10

query I rowsort
SELECT 39 * + - 47 AS col1
----
-1833

onlyif mysql # DIV for integer division: 
query I rowsort label-9657
SELECT 45 DIV + + 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9657
SELECT 45 / + + 49 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT 49 - + + 14 + COALESCE ( + 92, 75 ) - - NULLIF ( - + 97, - + 23 * + MAX( ALL - 66 ) + + + 50 )
----
30

skipif mysql # not compatible
query I rowsort label-9658
SELECT 49 - + + 14 + COALESCE ( + 92, 75 ) - - NULLIF ( - + 97, - + 23 * + MAX ( ALL - 66 ) + + + 50 )
----
30

query I rowsort
SELECT 58 - - - 74 - + 46 AS col2
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9660
SELECT ALL - 57 - - - 27 DIV + - 79 * 84 * - 94 + + COUNT( * ) + + 48 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL - 57 - - - 27 / + - 79 * 84 * - 94 + + COUNT ( * ) + + 48 AS col0
----
-8

query I rowsort
SELECT 39 + 93 col2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT 80 + - ( + - COUNT( * ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9662
SELECT 80 + - ( + - COUNT ( * ) ) AS col1
----
81

query I rowsort
SELECT DISTINCT - 39 - - 72 - - 15 * + + ( - 63 ) col0
----
-912

query I rowsort
SELECT DISTINCT - 30 * - 29 col2
----
870

query I rowsort
SELECT 64 * + - 75 * ( - - 13 ) AS col1
----
-62400

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9666
SELECT ALL + 58 - 12 * - 3 * + CAST( NULL AS DECIMAL ) + - + 39 + - + ( - 22 ) AS col0, + 98 AS col1
----
NULL
98

skipif mysql # not compatible
query II rowsort label-9666
SELECT ALL + 58 - 12 * - 3 * + CAST ( NULL AS REAL ) + - + 39 + - + ( - 22 ) AS col0, + 98 AS col1
----
NULL
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9667
SELECT 58 DIV - - 80 + 92 * - - COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-9667
SELECT 58 / - - 80 + 92 * - - COUNT ( * ) AS col0
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9668
SELECT MAX( DISTINCT 98 ) DIV + - 30 - + - 7 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9668
SELECT MAX ( DISTINCT 98 ) / + - 30 - + - 7 AS col2
----
4

query I rowsort
SELECT ALL + 44 * - 29 AS col2
----
-1276

query II rowsort
SELECT 80 * - 59 * + - 3 + - 59 + + 54 + + 58 + 92, - ( + - 67 ) col0
----
14305
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT MIN( + ( - 1 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9671
SELECT MIN ( + ( - 1 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9672
SELECT ALL - 95 + + 7 - + 80 * 89 DIV - 45 * COUNT( * ) + + 12
----
82

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL - 95 + + 7 - + 80 * 89 / - 45 * COUNT ( * ) + + 12
----
82

query II rowsort
SELECT ALL + 83 * - 48, + NULLIF ( - 3, - 62 ) + + - 88 AS col0
----
-3984
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT ALL - - 60 + + COUNT( * ) * - - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL - - 60 + + COUNT ( * ) * - - COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT + 20 + - 57 + + COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-9675
SELECT + 20 + - 57 + + COUNT ( * )
----
-36

query I rowsort
SELECT ALL - 45 + 23 AS col2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9677
SELECT - - 68 * - 26 + - - CAST( - 39 AS SIGNED ) + 7 AS col0
----
-1800

skipif mysql # not compatible
query I rowsort label-9677
SELECT - - 68 * - 26 + - - CAST ( - 39 AS INTEGER ) + 7 AS col0
----
-1800

query I rowsort
SELECT ALL + 34 + + 65 AS col0
----
99

query I rowsort
SELECT 60 * - 99 AS col0
----
-5940

query I rowsort
SELECT - 0 + + 34 * - 46
----
-1564

query I rowsort
SELECT - ( - 42 ) - + 13 AS col0
----
29

query I rowsort
SELECT ALL - NULLIF ( - 21, 48 )
----
21

query I rowsort
SELECT 4 * - 41 * - 57 + + - 16
----
9332

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT ALL - SUM( DISTINCT - - 32 ) + 63 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-9684
SELECT ALL - SUM ( DISTINCT - - 32 ) + 63 AS col2
----
31

query I rowsort
SELECT DISTINCT 62 * - - 25 AS col1
----
1550

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT ALL + 18 + + - NULLIF ( + COUNT( * ), + 74 + 42 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL + 18 + + - NULLIF ( + COUNT ( * ), + 74 + 42 ) AS col1
----
17

query I rowsort
SELECT ALL 45 * 57 AS col2
----
2565

query I rowsort
SELECT ALL 15 - - - 9 AS col0
----
6

query I rowsort
SELECT - COALESCE ( - 5, + 24, - ( - 46 ) ) AS col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9690
SELECT COUNT( * ) DIV + + 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9690
SELECT COUNT ( * ) / + + 71 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT ( 72 ) * 90 + - COUNT( * )
----
6479

skipif mysql # not compatible
query I rowsort label-9691
SELECT ( 72 ) * 90 + - COUNT ( * )
----
6479

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT + COUNT( * ) + - 34 + - COALESCE ( + 96, 32 ) * 24 AS col1
----
-2337

skipif mysql # not compatible
query I rowsort label-9692
SELECT + COUNT ( * ) + - 34 + - COALESCE ( + 96, 32 ) * 24 AS col1
----
-2337

query I rowsort
SELECT - 79 + 62 - 52 * - 68
----
3519

query I rowsort
SELECT + 91 + 55
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9695
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN - 24 - - 84 + - + COUNT( * ) THEN - + 55 ELSE NULL END * + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-9695
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN - 24 - - 84 + - + COUNT ( * ) THEN - + 55 ELSE NULL END * + 16
----
NULL

query I rowsort
SELECT + 43 * + - 25
----
-1075

query I rowsort
SELECT + 61 + - + 34 AS col1
----
27

query II rowsort
SELECT 1 AS col0, - 54
----
1
-54

query I rowsort
SELECT ALL + 54 * - 71 AS col2
----
-3834

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9700
SELECT - CAST( NULL AS SIGNED ) + - 43 + ( 31 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9700
SELECT - CAST ( NULL AS INTEGER ) + - 43 + ( 31 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9701
SELECT ALL 43 DIV - + COALESCE ( - ( 38 ), 85 ), 14 AS col1
----
1
14

skipif mysql # not compatible
query II rowsort label-9701
SELECT ALL 43 / - + COALESCE ( - ( 38 ), 85 ), 14 AS col1
----
1
14

query I rowsort
SELECT + 7 * - 27 AS col1
----
-189

query II rowsort
SELECT - COALESCE ( - + 5, 40 * 6 + - - 27 ) + - 28 AS col0, 44 AS col1
----
-23
44

query II rowsort
SELECT + 97, 71 AS col1
----
97
71

query I rowsort
SELECT ALL + ( + - 71 ) AS col2
----
-71

query I rowsort
SELECT COALESCE ( - 32, - 23 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT - CASE COUNT( * ) WHEN - 45 / 93 + 40 THEN - COUNT( - 24 ) / 49 ELSE NULL END * MAX( ALL 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT - CASE COUNT ( * ) WHEN - 45 / 93 + 40 THEN - COUNT ( - 24 ) / 49 ELSE NULL END * MAX ( ALL 71 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9708
SELECT ALL + CAST( NULL AS SIGNED ) * + CASE - ( + COUNT( * ) ) WHEN 25 * - 9 + + 93 / + 65 THEN + 37 - - 14 * 50 END + 67 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL + CAST ( NULL AS INTEGER ) * + CASE - ( + COUNT ( * ) ) WHEN 25 * - 9 + + 93 / + 65 THEN + 37 - - 14 * 50 END + 67 col2
----
NULL

query I rowsort
SELECT DISTINCT 1 * 47
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT ALL + 71 * 99 + + 81 * + COUNT( * ) AS col2
----
7110

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL + 71 * 99 + + 81 * + COUNT ( * ) AS col2
----
7110

query I rowsort
SELECT ALL + 91 * - 54
----
-4914

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT DISTINCT MAX( 55 ) * + 57 + 34 AS col2
----
3169

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT MAX ( 55 ) * + 57 + 34 AS col2
----
3169

query I rowsort
SELECT NULLIF ( 16, - ( 37 ) ) AS col1
----
16

query I rowsort
SELECT ALL - 94 * + 57 + - 5
----
-5363

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT NULLIF ( COUNT( 56 ), + 31 + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9715
SELECT NULLIF ( COUNT ( 56 ), + 31 + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT NULLIF ( - NULLIF ( ( 82 ), + ( + 81 ) - + MIN( ALL + 61 ) / 58 ), + 76 )
----
-82

skipif mysql # not compatible
query I rowsort label-9716
SELECT NULLIF ( - NULLIF ( ( 82 ), + ( + 81 ) - + MIN ( ALL + 61 ) / 58 ), + 76 )
----
-82

query I rowsort
SELECT COALESCE ( - 6, 25 * + 37 ) col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT - 11 * SUM( ALL - 96 ) AS col1
----
1056

skipif mysql # not compatible
query I rowsort label-9718
SELECT - 11 * SUM ( ALL - 96 ) AS col1
----
1056

onlyif mysql # DIV for integer division: 
query I rowsort label-9719
SELECT ALL + 47 DIV + 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL + 47 / + 72 AS col0
----
0

query I rowsort
SELECT NULLIF ( 24, ( 15 ) ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT COALESCE ( 23, + 63, - ( CASE 65 WHEN + 46 - - 4 THEN COUNT( * ) WHEN 77 / MAX( - 70 ) THEN 63 ELSE NULL END ) + + 74 * - 15 ) * 64 + - 5
----
1467

skipif mysql # not compatible
query I rowsort label-9721
SELECT COALESCE ( 23, + 63, - ( CASE 65 WHEN + 46 - - 4 THEN COUNT ( * ) WHEN 77 / MAX ( - 70 ) THEN 63 ELSE NULL END ) + + 74 * - 15 ) * 64 + - 5
----
1467

query I rowsort
SELECT ALL + COALESCE ( 48, 32 ) * + 17
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT COALESCE ( + 77, + COUNT( * ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9723
SELECT COALESCE ( + 77, + COUNT ( * ) ) AS col2
----
77

query I rowsort
SELECT ALL + 79 * - 63 - 86
----
-5063

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9725
SELECT ALL + ( 88 ) DIV + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL + ( 88 ) / + COUNT ( * )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT ALL COUNT( * ) * 47 - 15
----
32

skipif mysql # not compatible
query I rowsort label-9726
SELECT ALL COUNT ( * ) * 47 - 15
----
32

query I rowsort
SELECT ALL + 29 * + 78 AS col2
----
2262

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT DISTINCT + COUNT( DISTINCT + NULLIF ( - 82, - 89 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9728
SELECT DISTINCT + COUNT ( DISTINCT + NULLIF ( - 82, - 89 ) ) AS col1
----
1

query I rowsort
SELECT + 51 * 21
----
1071

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9730
SELECT ALL - 52 * - COUNT( * ) - - 49 DIV SUM( ALL - 71 - + 7 DIV 82 )
----
52

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL - 52 * - COUNT ( * ) - - 49 / SUM ( ALL - 71 - + 7 / 82 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT MIN( ALL - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-9731
SELECT MIN ( ALL - 14 )
----
-14

query I rowsort
SELECT - 98 - 6
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT - COUNT( DISTINCT + 83 ) + - 12 * 16 AS col1
----
-193

skipif mysql # not compatible
query I rowsort label-9733
SELECT - COUNT ( DISTINCT + 83 ) + - 12 * 16 AS col1
----
-193

query I rowsort
SELECT - ( + 48 ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT - COUNT( + 28 ) * - 55 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-9735
SELECT - COUNT ( + 28 ) * - 55 AS col1
----
55

query I rowsort
SELECT + ( - 39 ) + 47
----
8

query I rowsort
SELECT DISTINCT ( 93 ) AS col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9738
SELECT ALL 38 * + CAST( - COUNT( * ) * 46 AS SIGNED ) AS col2
----
-1748

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL 38 * + CAST ( - COUNT ( * ) * 46 AS INTEGER ) AS col2
----
-1748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9739
SELECT ALL COUNT( - CAST( NULL AS SIGNED ) ) * 90
----
0

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL COUNT ( - CAST ( NULL AS INTEGER ) ) * 90
----
0

query I rowsort
SELECT - ( - COALESCE ( - 53, 38 ) ) col2
----
-53

query I rowsort
SELECT ALL 2 * - 47
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT - COALESCE ( 61, + CASE + 36 WHEN COALESCE ( 74, + 93 + COUNT( * ) ) THEN NULL WHEN 36 THEN 53 * + COUNT( * ) END * 81 + 32 * - 2, + 63 )
----
-61

skipif mysql # not compatible
query I rowsort label-9742
SELECT - COALESCE ( 61, + CASE + 36 WHEN COALESCE ( 74, + 93 + COUNT ( * ) ) THEN NULL WHEN 36 THEN 53 * + COUNT ( * ) END * 81 + 32 * - 2, + 63 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL ( - 80 ) + + COUNT( * ) * 2 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL ( - 80 ) + + COUNT ( * ) * 2 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT ALL SUM( + 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL SUM ( + 52 ) AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9745
SELECT ALL 36 + - CASE + 1 WHEN + 5 THEN - 60 / + MIN( DISTINCT 56 ) WHEN NULLIF ( + 74, - 40 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) + - 22 THEN NULL END * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-9745
SELECT ALL 36 + - CASE + 1 WHEN + 5 THEN - 60 / + MIN ( DISTINCT 56 ) WHEN NULLIF ( + 74, - 40 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) + - 22 THEN NULL END * - 47
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9746
SELECT ALL - COALESCE ( 13, - 78, 18 * + 67 ) DIV 23 + 23 * 48
----
1104

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL - COALESCE ( 13, - 78, 18 * + 67 ) / 23 + 23 * 48
----
1104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9747
SELECT + ( COUNT( * ) ) / SUM( CAST( NULL AS SIGNED ) * + ( COALESCE ( 61, 90 ) * - 2 ) + 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT + ( COUNT ( * ) ) / SUM ( CAST ( NULL AS INTEGER ) * + ( COALESCE ( 61, 90 ) * - 2 ) + 12 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9748
SELECT ALL + + 61 DIV + 31 + - 11
----
-10

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL + + 61 / + 31 + - 11
----
-10

query I rowsort
SELECT - - 98 * + 53
----
5194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9750
SELECT + - COALESCE ( - COALESCE ( CAST( NULL AS SIGNED ), CASE COUNT( * ) WHEN + ( + 67 ) DIV 82 + + CAST( NULL AS SIGNED ) THEN 75 WHEN 19 THEN NULL END, - 47 ), ( ( + 55 ) ), - 54 ) DIV + 18 + 43
----
41

skipif mysql # not compatible
query I rowsort label-9750
SELECT + - COALESCE ( - COALESCE ( CAST ( NULL AS INTEGER ), CASE COUNT ( * ) WHEN + ( + 67 ) / 82 + + CAST ( NULL AS INTEGER ) THEN 75 WHEN 19 THEN NULL END, - 47 ), ( ( + 55 ) ), - 54 ) / + 18 + 43
----
41

query I rowsort
SELECT + 46 * 85 AS col1
----
3910

query I rowsort
SELECT + - 12 + + ( - 55 ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT + COALESCE ( 81, COUNT( * ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9753
SELECT + COALESCE ( 81, COUNT ( * ) ) AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9754
SELECT CAST( 23 AS SIGNED ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9754
SELECT CAST ( 23 AS INTEGER ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT - + COUNT( * ) * + 95 + - 9 AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-9755
SELECT - + COUNT ( * ) * + 95 + - 9 AS col0
----
-104

query I rowsort
SELECT - 39 * NULLIF ( ( + CASE WHEN NOT - 96 IS NULL THEN - 58 WHEN NOT ( NULL ) IS NULL THEN NULL END ), - 19 + + 57 )
----
2262

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9757
SELECT ALL + COUNT( * ) DIV 65 - - CASE AVG ( - 79 ) WHEN 8 + 99 THEN - 49 + - 88 ELSE 0 END * - ( + 3 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL + COUNT ( * ) / 65 - - CASE AVG ( - 79 ) WHEN 8 + 99 THEN - 49 + - 88 ELSE 0 END * - ( + 3 ) AS col0
----
0

query I rowsort
SELECT DISTINCT + - 17 * + 16 AS col0
----
-272

query I rowsort
SELECT ALL 66 * - 47 AS col2
----
-3102

query I rowsort
SELECT - 5 + - 28 * 87 AS col1
----
-2441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9761
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 71
----
NULL

query I rowsort
SELECT + 9 * 15 + 99
----
234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9763
SELECT - + 15 * 24 + - 81 DIV - CAST( - COUNT( 29 ) * + 11 AS SIGNED )
----
-367

skipif mysql # not compatible
query I rowsort label-9763
SELECT - + 15 * 24 + - 81 / - CAST ( - COUNT ( 29 ) * + 11 AS INTEGER )
----
-367

query I rowsort
SELECT - - 46 + 76 AS col2
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-9765
SELECT ALL - 98 DIV - - 29 col2
----
-3

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL - 98 / - - 29 col2
----
-3

query I rowsort
SELECT 48 + + 47 * 35
----
1693

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT 84 - COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-9767
SELECT 84 - COUNT ( * ) AS col1
----
83

query I rowsort
SELECT 55 * + 73
----
4015

query I rowsort
SELECT 64 * + - 38
----
-2432

onlyif mysql # DIV for integer division: 
query I rowsort label-9770
SELECT ALL - 99 DIV 7
----
-14

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL - 99 / 7
----
-14

query I rowsort
SELECT 74 + 42
----
116

query I rowsort
SELECT 80 * - + 45 AS col2
----
-3600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9773
SELECT DISTINCT - 81 * + 22 * CAST( - 5 * 51 AS SIGNED ) AS col0
----
454410

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT - 81 * + 22 * CAST ( - 5 * 51 AS INTEGER ) AS col0
----
454410

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT MAX( DISTINCT 26 ) * + NULLIF ( - ( 27 ), 13 )
----
-702

skipif mysql # not compatible
query I rowsort label-9774
SELECT MAX ( DISTINCT 26 ) * + NULLIF ( - ( 27 ), 13 )
----
-702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9775
SELECT 93 + + COUNT( * ) DIV 20
----
93

skipif mysql # not compatible
query I rowsort label-9775
SELECT 93 + + COUNT ( * ) / 20
----
93

query I rowsort
SELECT DISTINCT + 9 * - 2 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT ALL - 54 + - MAX( ALL + 66 )
----
-120

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL - 54 + - MAX ( ALL + 66 )
----
-120

query I rowsort
SELECT 70 + - 27
----
43

query I rowsort
SELECT 79 + 96 + - 50
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT ( 97 ) * - ( COUNT( ALL 20 ) + 73 ) AS col1
----
-7178

skipif mysql # not compatible
query I rowsort label-9780
SELECT ( 97 ) * - ( COUNT ( ALL 20 ) + 73 ) AS col1
----
-7178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9781
SELECT DISTINCT COALESCE ( + 3, + AVG ( - ( 33 ) ) ) + + CAST( NULL AS SIGNED ) / - ( - COUNT( * ) - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT COALESCE ( + 3, + AVG ( - ( 33 ) ) ) + + CAST ( NULL AS INTEGER ) / - ( - COUNT ( * ) - COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT - 37 + 53
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9783
SELECT DISTINCT 83 * 33 DIV COUNT( * ) AS col1
----
2739

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT 83 * 33 / COUNT ( * ) AS col1
----
2739

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT + 73 + MAX( - 75 ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-9784
SELECT + 73 + MAX ( - 75 ) col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT ALL + + COUNT( * ) + + + 30 - - 89 * 71 * + MIN( DISTINCT ( + 91 ) )
----
575060

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL + + COUNT ( * ) + + + 30 - - 89 * 71 * + MIN ( DISTINCT ( + 91 ) )
----
575060

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT ALL COUNT( - 50 )
----
1

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL COUNT ( - 50 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT + CAST( - 34 AS SIGNED ) + - 88 col0
----
-122

skipif mysql # not compatible
query I rowsort label-9787
SELECT + CAST ( - 34 AS INTEGER ) + - 88 col0
----
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-9788
SELECT 66 * 85 DIV 39
----
143

skipif mysql # not compatible
query I rowsort label-9788
SELECT 66 * 85 / 39
----
143

query I rowsort
SELECT DISTINCT 65 * 70 * - 90
----
-409500

query I rowsort
SELECT 56 + - COALESCE ( 80, 40, 53 )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9791
SELECT 61 DIV 68 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9791
SELECT 61 / 68 + - COUNT ( * )
----
-1

query I rowsort
SELECT ALL 93 - + 19 AS col0
----
74

query I rowsort
SELECT DISTINCT - - 11 * 89 AS col0
----
979

query I rowsort
SELECT - 80 * 34 + + ( 25 )
----
-2695

query I rowsort
SELECT DISTINCT - - 54 col0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-9796
SELECT DISTINCT + 89 DIV 39 DIV 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT + 89 / 39 / 54 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9797
SELECT ALL - ( 69 ) DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL - ( 69 ) / - 76
----
0

query I rowsort
SELECT + 47 * + ( - ( - 43 ) ) AS col1
----
2021

onlyif mysql # DIV for integer division: 
query I rowsort label-9799
SELECT 4 DIV + 79 col0
----
0

skipif mysql # not compatible
query I rowsort label-9799
SELECT 4 / + 79 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9800
SELECT DISTINCT CASE - COUNT( * ) WHEN - MIN( - 98 ) THEN + 37 WHEN - 50 THEN + ( - 74 ) * - 7 + NULLIF ( 55 - COUNT( * ), CAST( NULL AS SIGNED ) ) ELSE + 84 END DIV - 45 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT CASE - COUNT ( * ) WHEN - MIN ( - 98 ) THEN + 37 WHEN - 50 THEN + ( - 74 ) * - 7 + NULLIF ( 55 - COUNT ( * ), CAST ( NULL AS INTEGER ) ) ELSE + 84 END / - 45 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT DISTINCT + 37 * - 82 * - 60 + COUNT( * ) AS col2
----
182041

skipif mysql # not compatible
query I rowsort label-9801
SELECT DISTINCT + 37 * - 82 * - 60 + COUNT ( * ) AS col2
----
182041

query II rowsort
SELECT 93, + 11 AS col2
----
93
11

query I rowsort
SELECT DISTINCT 91 * - 87
----
-7917

onlyif mysql # DIV for integer division: 
query I rowsort label-9804
SELECT ALL - 67 + + + 1 + + 76 DIV 70
----
-65

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL - 67 + + + 1 + + 76 / 70
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) + - 68 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-9805
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) + - 68 AS col1
----
-66

query I rowsort
SELECT 89 * + 72 * - 24
----
-153792

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT ALL + 22 + + COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL + 22 + + COUNT ( * ) AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9808
SELECT ALL - COUNT( DISTINCT + 44 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL - COUNT ( DISTINCT + 44 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9809
SELECT 79 / CASE - NULLIF ( - 5, - CAST( ( - ( - COALESCE ( - 22, - 6 - NULLIF ( + AVG ( - 85 ) + + COUNT( * ) * 94, 34 ) ) ) ) AS DECIMAL ) ) WHEN - 29 THEN 88 WHEN 94 / 36 + 10 THEN + 82 - 70 * COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9809
SELECT 79 / CASE - NULLIF ( - 5, - CAST ( ( - ( - COALESCE ( - 22, - 6 - NULLIF ( + AVG ( - 85 ) + + COUNT ( * ) * 94, 34 ) ) ) ) AS REAL ) ) WHEN - 29 THEN 88 WHEN 94 / 36 + 10 THEN + 82 - 70 * COUNT ( * ) ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT - 85 AS col1, - 64 * + 59 + - 67 * 37 AS col1
----
-85
-6255

query I rowsort
SELECT ALL 84 + - 53 - + + 74 * + 94 AS col2
----
-6925

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT DISTINCT - AVG ( DISTINCT 89 ) + ( CASE WHEN - ( + COUNT( * ) ) IS NULL THEN 14 - - 50 WHEN NULL IS NOT NULL THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9812
SELECT DISTINCT - AVG ( DISTINCT 89 ) + ( CASE WHEN - ( + COUNT ( * ) ) IS NULL THEN 14 - - 50 WHEN NULL IS NOT NULL THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL SUM( 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL SUM ( 97 ) AS col2
----
97

query I rowsort
SELECT DISTINCT - 5 + + 7 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT ALL - 32 * - - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL - 32 * - - COUNT ( * )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT DISTINCT - MIN( + + 95 ) * - 99
----
9405

skipif mysql # not compatible
query I rowsort label-9816
SELECT DISTINCT - MIN ( + + 95 ) * - 99
----
9405

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT DISTINCT + COUNT( * ) - - 44
----
45

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT + COUNT ( * ) - - 44
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT - COUNT( * ) + - - 1
----
0

skipif mysql # not compatible
query I rowsort label-9818
SELECT - COUNT ( * ) + - - 1
----
0

query I rowsort
SELECT 40 * - 1
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-9820
SELECT 58 AS col2, - COUNT( DISTINCT + 61 ) * + ( + ( + ( + 23 ) ) )
----
58
-23

skipif mysql # not compatible
query II rowsort label-9820
SELECT 58 AS col2, - COUNT ( DISTINCT + 61 ) * + ( + ( + ( + 23 ) ) )
----
58
-23

query I rowsort
SELECT ALL - 15 * + 37 * - 75 + 3
----
41628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9822
SELECT ALL ( + + COUNT( * ) ) * + - ( + CAST( + 72 AS SIGNED ) ) + + 98
----
26

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL ( + + COUNT ( * ) ) * + - ( + CAST ( + 72 AS INTEGER ) ) + + 98
----
26

query I rowsort
SELECT 29 + 2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9824
SELECT - 44 * 18 * + + 92 * 35 + MAX( + 29 ) DIV 95 AS col1
----
-2550240

skipif mysql # not compatible
query I rowsort label-9824
SELECT - 44 * 18 * + + 92 * 35 + MAX ( + 29 ) / 95 AS col1
----
-2550240

query I rowsort
SELECT + NULLIF ( + + ( + 88 ), - 61 ) * 35 col0
----
3080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9826
SELECT ALL 84 * - NULLIF ( - 87, CAST( + COUNT( * ) AS SIGNED ) + CAST( 60 AS SIGNED ) ) + 2 AS col2
----
7310

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL 84 * - NULLIF ( - 87, CAST ( + COUNT ( * ) AS INTEGER ) + CAST ( 60 AS INTEGER ) ) + 2 AS col2
----
7310

query I rowsort
SELECT - ( - 15 ) + 37
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT - 37 * + ( + - 47 ) + 79 * + MAX( 96 ) AS col1
----
9323

skipif mysql # not compatible
query I rowsort label-9828
SELECT - 37 * + ( + - 47 ) + 79 * + MAX ( 96 ) AS col1
----
9323

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT + + CASE + 3 WHEN - - 27 / 74 THEN NULL WHEN + ( + 60 ) - + 10 * CASE + 46 * - 8 WHEN - 21 THEN NULL WHEN 65 THEN NULL ELSE COUNT( * ) END THEN NULL ELSE - 38 END
----
-38

skipif mysql # not compatible
query I rowsort label-9829
SELECT + + CASE + 3 WHEN - - 27 / 74 THEN NULL WHEN + ( + 60 ) - + 10 * CASE + 46 * - 8 WHEN - 21 THEN NULL WHEN 65 THEN NULL ELSE COUNT ( * ) END THEN NULL ELSE - 38 END
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT + SUM( ALL - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-9830
SELECT + SUM ( ALL - 60 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT ALL MIN( - 93 ) * 99 + - COUNT( * ) + + 76 AS col1
----
-9132

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL MIN ( - 93 ) * 99 + - COUNT ( * ) + + 76 AS col1
----
-9132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9832
SELECT + 45 + + 25 * - CAST( + 19 AS SIGNED ) AS col1
----
-430

skipif mysql # not compatible
query I rowsort label-9832
SELECT + 45 + + 25 * - CAST ( + 19 AS INTEGER ) AS col1
----
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT ALL 87 * COUNT( * ) * + + ( + + COUNT( * ) ) + 77 * NULLIF ( COALESCE ( - 9, 13 - - 93 ) * - 64, - ( + 56 ) ) AS col0
----
44439

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL 87 * COUNT ( * ) * + + ( + + COUNT ( * ) ) + 77 * NULLIF ( COALESCE ( - 9, 13 - - 93 ) * - 64, - ( + 56 ) ) AS col0
----
44439

query I rowsort
SELECT + COALESCE ( + ( + 97 ), - 48 ) + 84 AS col0
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT SUM( ALL - + 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-9835
SELECT SUM ( ALL - + 8 ) AS col1
----
-8

query I rowsort
SELECT + 73 + NULLIF ( + 36, + + 88 * + ( 68 ) ) + 51
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT + 61 * NULLIF ( + COUNT( * ), + + COALESCE ( 47, - 38 + 22 ) / - 14 + + 34 ) col0
----
61

skipif mysql # not compatible
query I rowsort label-9837
SELECT + 61 * NULLIF ( + COUNT ( * ), + + COALESCE ( 47, - 38 + 22 ) / - 14 + + 34 ) col0
----
61

query I rowsort
SELECT ALL 73 * + - ( + 12 )
----
-876

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT + COALESCE ( + 86, COALESCE ( COUNT( * ), - 27 * ( + 10 ), - 28 * + ( 50 ) ) - + 42, - ( - 94 ) + - 42 * - ( - 84 * ( 68 ) ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-9839
SELECT + COALESCE ( + 86, COALESCE ( COUNT ( * ), - 27 * ( + 10 ), - 28 * + ( 50 ) ) - + 42, - ( - 94 ) + - 42 * - ( - 84 * ( 68 ) ) ) AS col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9840
SELECT - CASE + 35 WHEN - COUNT( * ) THEN - - 51 WHEN 39 * + 46 + 24 THEN 29 * CAST( - COUNT( DISTINCT + 63 ) AS SIGNED ) + + 99 ELSE 95 END
----
-95

skipif mysql # not compatible
query I rowsort label-9840
SELECT - CASE + 35 WHEN - COUNT ( * ) THEN - - 51 WHEN 39 * + 46 + 24 THEN 29 * CAST ( - COUNT ( DISTINCT + 63 ) AS INTEGER ) + + 99 ELSE 95 END
----
-95

query I rowsort
SELECT ALL 43 + - 97 + + ( + + 68 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT ALL SUM( DISTINCT 27 )
----
27

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL SUM ( DISTINCT 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT + 31 + + MIN( - + 25 )
----
6

skipif mysql # not compatible
query I rowsort label-9843
SELECT + 31 + + MIN ( - + 25 )
----
6

query I rowsort
SELECT ALL 37 * - - 79 AS col2
----
2923

query I rowsort
SELECT - 7 + - 66 * + - 39
----
2567

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT ALL MIN( - COALESCE ( - - ( - 63 ), + 71 + 12 ) ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL MIN ( - COALESCE ( - - ( - 63 ), + 71 + 12 ) ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT - 1 * - + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9847
SELECT - 1 * - + COUNT ( * ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9848
SELECT + + 99 + + 54 * - + COUNT( * ) - + CAST( NULL AS SIGNED ) * + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9848
SELECT + + 99 + + 54 * - + COUNT ( * ) - + CAST ( NULL AS INTEGER ) * + 92 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9849
SELECT ALL - CAST( + + CASE - CAST( 23 AS SIGNED ) WHEN + NULLIF ( - 95, 27 ) THEN NULL WHEN + 96 * 19 + COUNT( * ) THEN - 47 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL - CAST ( + + CASE - CAST ( 23 AS INTEGER ) WHEN + NULLIF ( - 95, 27 ) THEN NULL WHEN + 96 * 19 + COUNT ( * ) THEN - 47 END AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + - 61, + 92 * + - 90 * 89 - - 37 )
----
-61

query I rowsort
SELECT - 58 + 90 * - 23 AS col0
----
-2128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9852
SELECT - 71 + 96 * + - 50 DIV COUNT( * ) + 61 * + 76
----
-235

skipif mysql # not compatible
query I rowsort label-9852
SELECT - 71 + 96 * + - 50 / COUNT ( * ) + 61 * + 76
----
-235

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT DISTINCT + - COUNT( * ) * - 84 + 93 + - 96 * 90
----
-8463

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT + - COUNT ( * ) * - 84 + 93 + - 96 * 90
----
-8463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9854
SELECT ALL - + 81 * CAST( + - COUNT( - CAST( - 30 AS SIGNED ) ) AS SIGNED ) - + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL - + 81 * CAST ( + - COUNT ( - CAST ( - 30 AS INTEGER ) ) AS INTEGER ) - + COUNT ( * )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9855
SELECT - 29 DIV ( - 72 )
----
0

skipif mysql # not compatible
query I rowsort label-9855
SELECT - 29 / ( - 72 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT - - 23 * - 23 + + + COUNT( * ) * + 86
----
-443

skipif mysql # not compatible
query I rowsort label-9856
SELECT - - 23 * - 23 + + + COUNT ( * ) * + 86
----
-443

onlyif mysql # DIV for integer division: 
query I rowsort label-9857
SELECT DISTINCT 56 DIV - 65 + + 47
----
47

skipif mysql # not compatible
query I rowsort label-9857
SELECT DISTINCT 56 / - 65 + + 47
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT + COUNT( DISTINCT 86 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9858
SELECT + COUNT ( DISTINCT 86 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9859
SELECT ALL - 9 DIV - - COALESCE ( CAST( + + 71 AS SIGNED ), 21 * - 68 ) + 52 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL - 9 / - - COALESCE ( CAST ( + + 71 AS INTEGER ), 21 * - 68 ) + 52 AS col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9860
SELECT ALL 46 * - COUNT( - - 80 ) + - ( 49 ) + + 12 DIV ( - NULLIF ( 62, 29 * ( + 13 * 54 ) ) * 58 - - 31 ) col2
----
-95

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL 46 * - COUNT ( - - 80 ) + - ( 49 ) + + 12 / ( - NULLIF ( 62, 29 * ( + 13 * 54 ) ) * 58 - - 31 ) col2
----
-95

query I rowsort
SELECT + 58 * 8 - - - ( - 46 ) + + 49
----
559

query I rowsort
SELECT + NULLIF ( - 62, + 5 )
----
-62

query I rowsort
SELECT DISTINCT 20 * + 73 * 76 + + 53 + + - 72 * + 59
----
106765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9864
SELECT - ( + + ( 73 ) ) DIV - - 99 * COUNT( * ) - 70
----
-70

skipif mysql # not compatible
query I rowsort label-9864
SELECT - ( + + ( 73 ) ) / - - 99 * COUNT ( * ) - 70
----
-70

query I rowsort
SELECT + 67 * + 56 * + ( 99 )
----
371448

query I rowsort
SELECT ALL 89 * 94 + + - 71
----
8295

query I rowsort
SELECT DISTINCT 57 * 89 + 33 AS col0
----
5106

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT ALL - 68 * - - COUNT( * ) - + + 36
----
-104

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL - 68 * - - COUNT ( * ) - + + 36
----
-104

query I rowsort
SELECT + 31 * - 37
----
-1147

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9870
SELECT DISTINCT + 47 AS col0, COALESCE ( + - COALESCE ( - MAX( ALL 62 ), 98 DIV 99 ), ( - COUNT( * ) ), 96 )
----
47
62

skipif mysql # not compatible
query II rowsort label-9870
SELECT DISTINCT + 47 AS col0, COALESCE ( + - COALESCE ( - MAX ( ALL 62 ), 98 / 99 ), ( - COUNT ( * ) ), 96 )
----
47
62

query I rowsort
SELECT + 7 * 96
----
672

query I rowsort
SELECT NULLIF ( + 18, + - ( + 45 ) )
----
18

query I rowsort
SELECT + ( + - 79 ) AS col0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9874
SELECT ALL ( 31 ) DIV 80 + 88 + - COUNT( * ) - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL ( 31 ) / 80 + 88 + - COUNT ( * ) - COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT COUNT( - + 60 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9875
SELECT COUNT ( - + 60 ) AS col0
----
1

query I rowsort
SELECT + 77 * + + 28 * + 85
----
183260

query I rowsort
SELECT + 76 + - - 45 + - + 35 * 49
----
-1594

query I rowsort
SELECT DISTINCT - COALESCE ( + 13, + 28 + + - 44, 7 ) * + 35 AS col0
----
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT MAX( ALL + 56 ) col0
----
56

skipif mysql # not compatible
query I rowsort label-9879
SELECT MAX ( ALL + 56 ) col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9880
SELECT + 47 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9880
SELECT + 47 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT DISTINCT COUNT( * ) * + - 52 - - 90
----
38

skipif mysql # not compatible
query I rowsort label-9881
SELECT DISTINCT COUNT ( * ) * + - 52 - - 90
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT + MIN( DISTINCT 99 ) + - + MAX( ALL + 31 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-9882
SELECT + MIN ( DISTINCT 99 ) + - + MAX ( ALL + 31 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT + 99 * + 55 + + ( - 7 ) + + 52 + COUNT( * ) * 79 * - 43
----
2093

skipif mysql # not compatible
query I rowsort label-9883
SELECT + 99 * + 55 + + ( - 7 ) + + 52 + COUNT ( * ) * 79 * - 43
----
2093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9884
SELECT - - COALESCE ( CASE - 74 WHEN + + 3 THEN + NULLIF ( 73, - CAST( - COUNT( DISTINCT + 38 ) AS SIGNED ) ) WHEN 49 THEN + 32 WHEN 88 THEN 26 END, + COUNT( * ), 93 - 66, - 42 * - 91 ) * ( 45 * - 24 )
----
-1080

skipif mysql # not compatible
query I rowsort label-9884
SELECT - - COALESCE ( CASE - 74 WHEN + + 3 THEN + NULLIF ( 73, - CAST ( - COUNT ( DISTINCT + 38 ) AS INTEGER ) ) WHEN 49 THEN + 32 WHEN 88 THEN 26 END, + COUNT ( * ), 93 - 66, - 42 * - 91 ) * ( 45 * - 24 )
----
-1080

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT ALL - 32 + COUNT( * ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL - 32 + COUNT ( * ) col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT + COUNT( * ) - + 10 col0
----
-9

skipif mysql # not compatible
query I rowsort label-9886
SELECT + COUNT ( * ) - + 10 col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT - 5 * - NULLIF ( + + 11, - COUNT( * ) * - - 96 * 73 + 21 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-9887
SELECT - 5 * - NULLIF ( + + 11, - COUNT ( * ) * - - 96 * 73 + 21 ) AS col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9888
SELECT ALL - CAST( + + 10 AS SIGNED ) + NULLIF ( - 19, + - COUNT( * ) ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL - CAST ( + + 10 AS INTEGER ) + NULLIF ( - 19, + - COUNT ( * ) ) AS col0
----
-29

query I rowsort
SELECT - 58 - + 31 + - 60 + 27 * - 9 * 92 AS col1
----
-22505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9890
SELECT - 44 AS col2, - 19 * - + CASE MAX( DISTINCT CAST( NULL AS SIGNED ) ) WHEN 7 + + 19 THEN NULL WHEN + ( + 60 ) + + MIN( ALL 72 ) THEN - 63 * - 87 ELSE NULL END col1
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-9890
SELECT - 44 AS col2, - 19 * - + CASE MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) WHEN 7 + + 19 THEN NULL WHEN + ( + 60 ) + + MIN ( ALL 72 ) THEN - 63 * - 87 ELSE NULL END col1
----
-44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT DISTINCT - MAX( ALL - 93 ) + + ( + + COUNT( * ) )
----
94

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT - MAX ( ALL - 93 ) + + ( + + COUNT ( * ) )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT + CASE - COUNT( * ) WHEN 40 * - 77 THEN - + COALESCE ( 25, - 23 ) + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9892
SELECT + CASE - COUNT ( * ) WHEN 40 * - 77 THEN - + COALESCE ( 25, - 23 ) + COUNT ( * ) END
----
NULL

query II rowsort
SELECT + 2 col1, + 61 - 17 col1
----
2
44

query I rowsort
SELECT ALL - 36 + + - 13 * 16
----
-244

query I rowsort
SELECT 99 * 12
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT + MIN( 80 ) * - 63 + + 59 + COUNT( DISTINCT - + 5 ) + + CASE ( 9 ) WHEN - 90 * + 53 + 16 * - 73 THEN 60 WHEN 55 + 73 * 87 THEN - 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT + MIN ( 80 ) * - 63 + + 59 + COUNT ( DISTINCT - + 5 ) + + CASE ( 9 ) WHEN - 90 * + 53 + 16 * - 73 THEN 60 WHEN 55 + 73 * 87 THEN - 9 END
----
NULL

query I rowsort
SELECT 9 - - 13
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9898
SELECT ALL - COALESCE ( + 69, - 40, 89 DIV - + CASE 49 WHEN + 91 * 1 THEN ( 1 ) * ( + 52 ) + + 46 ELSE 69 END - - 45 )
----
-69

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL - COALESCE ( + 69, - 40, 89 / - + CASE 49 WHEN + 91 * 1 THEN ( 1 ) * ( + 52 ) + + 46 ELSE 69 END - - 45 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT CASE 96 WHEN + + ( 38 ) THEN - + 54 * - 37 + + 65 * 92 END * COUNT( * ) + - 96 * - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9899
SELECT CASE 96 WHEN + + ( 38 ) THEN - + 54 * - 37 + + 65 * 92 END * COUNT ( * ) + - 96 * - 33 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT ALL 67 - + 53 + - - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL 67 - + 53 + - - COUNT ( * )
----
15

query II rowsort
SELECT 92 + 10 AS col2, - 1 AS col1
----
102
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT ALL + COUNT( * ) - - 50
----
51

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL + COUNT ( * ) - - 50
----
51

query I rowsort
SELECT 99 * - ( + - 88 )
----
8712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9904
SELECT ALL - COALESCE ( - ( - CAST( + 81 AS SIGNED ) ), - 58 + + + CASE + 50 WHEN - 1 THEN + CASE 4 WHEN NULLIF ( 49, 50 * + 27 ) THEN NULLIF ( 38, 45 - MIN( 37 - 75 ) ) WHEN 1 DIV - 45 + 13 THEN NULL WHEN - 14 THEN - CAST( - ( - 83 ) AS SIGNED ) ELSE - 42 END DIV + COUNT( * ) ELSE NULL END * 45, ( ( + 94 ) ) ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL - COALESCE ( - ( - CAST ( + 81 AS INTEGER ) ), - 58 + + + CASE + 50 WHEN - 1 THEN + CASE 4 WHEN NULLIF ( 49, 50 * + 27 ) THEN NULLIF ( 38, 45 - MIN ( 37 - 75 ) ) WHEN 1 / - 45 + 13 THEN NULL WHEN - 14 THEN - CAST ( - ( - 83 ) AS INTEGER ) ELSE - 42 END / + COUNT ( * ) ELSE NULL END * 45, ( ( + 94 ) ) ) AS col1
----
-81

query I rowsort
SELECT 8 + + 29 AS col1
----
37

query II rowsort
SELECT ALL - 79, + 71 * 46 AS col0
----
-79
3266

query II rowsort
SELECT DISTINCT - 50 col2, 57 * + 62 * + + 29 col1
----
-50
102486

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT 89 * - MIN( ALL - + CASE 53 WHEN - - 70 THEN - + 29 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT 89 * - MIN ( ALL - + CASE 53 WHEN - - 70 THEN - + 29 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT 10 * - - 70 + - 25 - 11 + + + 7 * - 67 * COUNT( * )
----
195

skipif mysql # not compatible
query I rowsort label-9909
SELECT 10 * - - 70 + - 25 - 11 + + + 7 * - 67 * COUNT ( * )
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT ALL - COUNT( DISTINCT - - 40 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL - COUNT ( DISTINCT - - 40 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9911
SELECT ( - 92 ) DIV - 26
----
3

skipif mysql # not compatible
query I rowsort label-9911
SELECT ( - 92 ) / - 26
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT ALL + ( + CASE - 70 WHEN + - ( COALESCE ( + 72, - MIN( 55 ) / 54 + 22 / 26, 25 + + 59 * 48, 98 * COUNT( * ) ) ) / 10 THEN COUNT( * ) + + 11 * 74 END ) * + COALESCE ( - 21, + 78 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL + ( + CASE - 70 WHEN + - ( COALESCE ( + 72, - MIN ( 55 ) / 54 + 22 / 26, 25 + + 59 * 48, 98 * COUNT ( * ) ) ) / 10 THEN COUNT ( * ) + + 11 * 74 END ) * + COALESCE ( - 21, + 78 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT COUNT( * ) * + + MAX( - - 69 )
----
69

skipif mysql # not compatible
query I rowsort label-9913
SELECT COUNT ( * ) * + + MAX ( - - 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT ALL - MIN( ALL + 2 ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL - MIN ( ALL + 2 ) col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT DISTINCT + COUNT( DISTINCT 28 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9915
SELECT DISTINCT + COUNT ( DISTINCT 28 ) AS col2
----
1

query I rowsort
SELECT ALL - + 2 * + + 44
----
-88

query II rowsort
SELECT DISTINCT + 30, 50 AS col0
----
30
50

onlyif mysql # DIV for integer division: 
query I rowsort label-9918
SELECT ( 75 ) DIV + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9918
SELECT ( 75 ) / + 90 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9919
SELECT ALL - 3 + + + 16 - + - ( 73 ) AS col2, + CAST( NULL AS SIGNED ) * - + 25 * 67 - 67 AS col1
----
86
NULL

skipif mysql # not compatible
query II rowsort label-9919
SELECT ALL - 3 + + + 16 - + - ( 73 ) AS col2, + CAST ( NULL AS INTEGER ) * - + 25 * 67 - 67 AS col1
----
86
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9920
SELECT DISTINCT 32 DIV 63 * + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9920
SELECT DISTINCT 32 / 63 * + 91 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT - COUNT( * ) + - ( + + 99 ) col0
----
-100

skipif mysql # not compatible
query I rowsort label-9921
SELECT - COUNT ( * ) + - ( + + 99 ) col0
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9922
SELECT ( - COALESCE ( - ( + - 35 ), + - CAST( NULL AS SIGNED ) ) ) * + 9 AS col1
----
-315

skipif mysql # not compatible
query I rowsort label-9922
SELECT ( - COALESCE ( - ( + - 35 ), + - CAST ( NULL AS INTEGER ) ) ) * + 9 AS col1
----
-315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9923
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * + 69 + + 16 + + 34 + + 56 * + 98 AS col0
----
5469

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * + 69 + + 16 + + 34 + + 56 * + 98 AS col0
----
5469

query I rowsort
SELECT 27 + 60 AS col2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9925
SELECT - 89 + - CAST( - 14 AS SIGNED ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-9925
SELECT - 89 + - CAST ( - 14 AS INTEGER ) AS col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9926
SELECT ALL + CAST( NULL AS SIGNED ) + + 68 * 71 * - + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL + CAST ( NULL AS INTEGER ) + + 68 * 71 * - + 6
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9927
SELECT DISTINCT + COUNT( * ) col0, - 73 AS col0
----
1
-73

skipif mysql # not compatible
query II rowsort label-9927
SELECT DISTINCT + COUNT ( * ) col0, - 73 AS col0
----
1
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT ALL + NULLIF ( - + 57, - - COUNT( * ) ) + COALESCE ( 50, + 40 - 84 )
----
-7

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL + NULLIF ( - + 57, - - COUNT ( * ) ) + COALESCE ( 50, + 40 - 84 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT ALL ( - + 66 ) + + COUNT( * ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL ( - + 66 ) + + COUNT ( * ) AS col2
----
-65

query I rowsort
SELECT + 56 + + 31 AS col2
----
87

query I rowsort
SELECT ( - + 67 ) + 49 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT ALL + 60 + - - CASE + 85 WHEN + NULLIF ( - - 1, MAX( ALL 89 ) ) THEN - 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL + 60 + - - CASE + 85 WHEN + NULLIF ( - - 1, MAX ( ALL 89 ) ) THEN - 39 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9933
SELECT COUNT( * ) + - CAST( - COUNT( * ) AS SIGNED ) DIV 15 * - 34 + - MIN( DISTINCT 26 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-9933
SELECT COUNT ( * ) + - CAST ( - COUNT ( * ) AS INTEGER ) / 15 * - 34 + - MIN ( DISTINCT 26 ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT ( - 44 ) * - MAX( ALL - 51 )
----
-2244

skipif mysql # not compatible
query I rowsort label-9934
SELECT ( - 44 ) * - MAX ( ALL - 51 )
----
-2244

query I rowsort
SELECT 73 * - 70 AS col1
----
-5110

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT MIN( DISTINCT + 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-9936
SELECT MIN ( DISTINCT + 46 ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9937
SELECT MIN( DISTINCT 60 ), COUNT( * ) * - - ( - 15 ) col2
----
60
-15

skipif mysql # not compatible
query II rowsort label-9937
SELECT MIN ( DISTINCT 60 ), COUNT ( * ) * - - ( - 15 ) col2
----
60
-15

query I rowsort
SELECT ALL 14 * + 66
----
924

query I rowsort
SELECT 24 * 35
----
840

query I rowsort
SELECT + 11 * - 74 - + 49 AS col2
----
-863

query I rowsort
SELECT 34 * NULLIF ( + 4, + 22 ) AS col1
----
136

query I rowsort
SELECT + NULLIF ( - 8, + - 71 ) AS col0
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-9943
SELECT 14 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-9943
SELECT 14 / - 90
----
0

query I rowsort
SELECT ALL + 15 + + 79
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT 87 * + + 6 + MIN( 62 ) - - 86
----
670

skipif mysql # not compatible
query I rowsort label-9945
SELECT 87 * + + 6 + MIN ( 62 ) - - 86
----
670

query I rowsort
SELECT 70 * 28 * - + 76 * 11 + 66 - - 76 AS col1
----
-1638418

query I rowsort
SELECT DISTINCT - - ( - - 39 ) + - 28
----
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9948
SELECT - 82 + + COALESCE ( NULLIF ( - - 99, 2 + CAST( NULL AS DECIMAL ) * + COALESCE ( + 38, - 82, - 27 ) ), - 80 * 74 )
----
17

skipif mysql # not compatible
query I rowsort label-9948
SELECT - 82 + + COALESCE ( NULLIF ( - - 99, 2 + CAST ( NULL AS REAL ) * + COALESCE ( + 38, - 82, - 27 ) ), - 80 * 74 )
----
17

query I rowsort
SELECT ALL - - 74 + + 39 - + 56 + + 38 * + NULLIF ( 13, - 58 )
----
551

query I rowsort
SELECT - 91 * - 63 + 7 + 74
----
5814

query I rowsort
SELECT - 9 + 51 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9952
SELECT ALL - 91 + - 88 AS col0, - NULLIF ( - 31, - 35 * - CAST( NULL AS SIGNED ) + 97 ) / CAST( NULL AS SIGNED )
----
-179
NULL

skipif mysql # not compatible
query II rowsort label-9952
SELECT ALL - 91 + - 88 AS col0, - NULLIF ( - 31, - 35 * - CAST ( NULL AS INTEGER ) + 97 ) / CAST ( NULL AS INTEGER )
----
-179
NULL

query I rowsort
SELECT DISTINCT - - 32 + 74 * - 53 AS col0
----
-3890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9954
SELECT + - 11 + MIN( DISTINCT - CAST( - 54 AS SIGNED ) ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9954
SELECT + - 11 + MIN ( DISTINCT - CAST ( - 54 AS INTEGER ) ) AS col0
----
43

query I rowsort
SELECT ALL - - 82 + + 2
----
84

query I rowsort
SELECT - 11 * - 29 * + - 41 AS col1
----
-13079

query II rowsort
SELECT + 81 * 35 AS col1, - 41
----
2835
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9958
SELECT + + CAST( NULL AS DECIMAL ) / - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9958
SELECT + + CAST ( NULL AS REAL ) / - 6 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9959
SELECT ALL + 9 DIV + + 18
----
0

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL + 9 / + + 18
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9960
SELECT + ( + 77 ) - 71 AS col0, COUNT( * )
----
6
1

skipif mysql # not compatible
query II rowsort label-9960
SELECT + ( + 77 ) - 71 AS col0, COUNT ( * )
----
6
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9961
SELECT + 15 * + MAX( ALL + 94 ) AS col0, - COUNT( * ) + + - 52 + - - 35 DIV - - ( - - 65 ) AS col0
----
1410
-53

skipif mysql # not compatible
query II rowsort label-9961
SELECT + 15 * + MAX ( ALL + 94 ) AS col0, - COUNT ( * ) + + - 52 + - - 35 / - - ( - - 65 ) AS col0
----
1410
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9962
SELECT + CASE - CAST( - MIN( - - 65 ) AS DECIMAL ) WHEN 49 * + 16 * 32 + + SUM( 88 ) * CAST( - 91 * + 9 AS SIGNED ) THEN - 65 * 36 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT + CASE - CAST ( - MIN ( - - 65 ) AS REAL ) WHEN 49 * + 16 * 32 + + SUM ( 88 ) * CAST ( - 91 * + 9 AS INTEGER ) THEN - 65 * 36 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT + COUNT( - 15 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9963
SELECT + COUNT ( - 15 ) AS col2
----
1

query I rowsort
SELECT + 79 * - 13 AS col0
----
-1027

query I rowsort
SELECT + ( CASE 89 WHEN + 46 THEN + - 57 + + 81 WHEN + + 6 * 68 THEN NULL ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT + 96 + + 77 AS col1
----
173

query I rowsort
SELECT + 2 * 33 col1
----
66

query II rowsort
SELECT ALL + 72 AS col0, 20 + - 7 AS col1
----
72
13

query I rowsort
SELECT - 45 * 26 + + + 3 AS col0
----
-1167

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT - SUM( ALL + ( - ( + + 44 ) ) ) - - ( - 89 )
----
-45

skipif mysql # not compatible
query I rowsort label-9970
SELECT - SUM ( ALL + ( - ( + + 44 ) ) ) - - ( - 89 )
----
-45

query I rowsort
SELECT + 25 + - - 45 * + - 60 AS col0
----
-2675

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT ALL - COUNT( * ) * - - 10 + - + 1 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL - COUNT ( * ) * - - 10 + - + 1 AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9973
SELECT - MIN( DISTINCT - 89 ) DIV - 23 + - 8 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-9973
SELECT - MIN ( DISTINCT - 89 ) / - 23 + - 8 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT DISTINCT + COALESCE ( - 37, + + 84 * - 68 + CASE - 32 WHEN - 59 * - MAX( DISTINCT 23 ) * - 56 THEN 69 ELSE 78 + - COUNT( * ) * 55 END ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT + COALESCE ( - 37, + + 84 * - 68 + CASE - 32 WHEN - 59 * - MAX ( DISTINCT 23 ) * - 56 THEN 69 ELSE 78 + - COUNT ( * ) * 55 END ) AS col2
----
-37

query I rowsort
SELECT DISTINCT + 99 * + 34 + + + 15 * - - 94
----
4776

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT + CASE MIN( - 6 ) WHEN + - 55 THEN - NULLIF ( + + 11, - 24 ) * - 93 * + COUNT( DISTINCT - 25 ) + 41 - ( - 87 ) / + COALESCE ( 34, 73 + 98 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9976
SELECT + CASE MIN ( - 6 ) WHEN + - 55 THEN - NULLIF ( + + 11, - 24 ) * - 93 * + COUNT ( DISTINCT - 25 ) + 41 - ( - 87 ) / + COALESCE ( 34, 73 + 98 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT ALL - - COUNT( * ) * 55 * - + 64 + + - 86 + + ( ( + 1 ) ) + + COUNT( * ) + 45 col0
----
-3559

skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL - - COUNT ( * ) * 55 * - + 64 + + - 86 + + ( ( + 1 ) ) + + COUNT ( * ) + 45 col0
----
-3559

query I rowsort
SELECT + 68 * 75 * + 11 * 42 + 25
----
2356225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9979
SELECT + 66 * + - CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9979
SELECT + 66 * + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9980
SELECT ALL + 45 * 39 * NULLIF ( 67, + 41 ) + + + CAST( 83 AS SIGNED ) * 73 AS col1
----
123644

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL + 45 * 39 * NULLIF ( 67, + 41 ) + + + CAST ( 83 AS INTEGER ) * 73 AS col1
----
123644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9981
SELECT + + 39 + + + 38 - - 38 - + CAST( + COUNT( * ) AS SIGNED ) - - 87 * 87
----
7683

skipif mysql # not compatible
query I rowsort label-9981
SELECT + + 39 + + + 38 - - 38 - + CAST ( + COUNT ( * ) AS INTEGER ) - - 87 * 87
----
7683

onlyif mysql # aggregate syntax: 
query II rowsort label-9982
SELECT COUNT( * ) AS col2, 90 * + 92 + 51
----
1
8331

skipif mysql # not compatible
query II rowsort label-9982
SELECT COUNT ( * ) AS col2, 90 * + 92 + 51
----
1
8331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9983
SELECT - + MIN( + NULLIF ( - - 54, CAST( NULL AS SIGNED ) ) ) + + 95 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-9983
SELECT - + MIN ( + NULLIF ( - - 54, CAST ( NULL AS INTEGER ) ) ) + + 95 AS col0
----
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9984
SELECT + - CAST( NULL AS DECIMAL ) / + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9984
SELECT + - CAST ( NULL AS REAL ) / + 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT ALL + MAX( DISTINCT 38 )
----
38

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL + MAX ( DISTINCT 38 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9986
SELECT + + NULLIF ( - + 51, + COALESCE ( - 60, - 52 * + 62 + - COALESCE ( - - 55, CAST( NULL AS SIGNED ), - COALESCE ( - 54, 62 ) * - 27 ) * COUNT( * ), + 70 * + 16 ) - 70 )
----
-51

skipif mysql # not compatible
query I rowsort label-9986
SELECT + + NULLIF ( - + 51, + COALESCE ( - 60, - 52 * + 62 + - COALESCE ( - - 55, CAST ( NULL AS INTEGER ), - COALESCE ( - 54, 62 ) * - 27 ) * COUNT ( * ), + 70 * + 16 ) - 70 )
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT ALL + CAST( + - 59 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL + CAST ( + - 59 AS INTEGER )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9988
SELECT ALL - - 88 * + + COUNT( * ) * - - ( + 59 ) + CAST( + 18 AS SIGNED )
----
5210

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL - - 88 * + + COUNT ( * ) * - - ( + 59 ) + CAST ( + 18 AS INTEGER )
----
5210

onlyif mysql # aggregate syntax: 
query II rowsort label-9989
SELECT DISTINCT - COUNT( * ) AS col0, 65 * + 27 + NULLIF ( - 22, 20 )
----
-1
1733

skipif mysql # not compatible
query II rowsort label-9989
SELECT DISTINCT - COUNT ( * ) AS col0, 65 * + 27 + NULLIF ( - 22, 20 )
----
-1
1733

query II rowsort
SELECT + 85 col2, 1 * - 12 AS col0
----
85
-12

query I rowsort
SELECT - - 63 + - 81 * + 16 AS col0
----
-1233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9992
SELECT - - ( + ( - CAST( - + 57 AS SIGNED ) ) ) * 3 * 4
----
684

skipif mysql # not compatible
query I rowsort label-9992
SELECT - - ( + ( - CAST ( - + 57 AS INTEGER ) ) ) * 3 * 4
----
684

query I rowsort
SELECT - 15 * + + 10 AS col2
----
-150

query I rowsort
SELECT - 32 + - ( - + 9 ) + + 27 col1
----
4

query I rowsort
SELECT ALL + 5 * - 31 AS col1
----
-155

query II rowsort
SELECT - 9 + - + 51 AS col0, + 75
----
-60
75

query II rowsort
SELECT - ( - + 0 ) col2, + 0
----
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9998
SELECT DISTINCT COALESCE ( + 90, 94 ) DIV + - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT COALESCE ( + 90, 94 ) / + - COUNT ( * )
----
-90

query I rowsort
SELECT - 49 * 69
----
-3381

